Acl\Shell\AclShell::_getParams PHP Method

_getParams() protected method

get params for standard Acl methods
protected _getParams ( ) : array
return array aro, aco, action
    protected function _getParams()
    {
        $aro = is_numeric($this->args[0]) ? intval($this->args[0]) : $this->args[0];
        $aco = is_numeric($this->args[1]) ? intval($this->args[1]) : $this->args[1];
        $aroName = $aro;
        $acoName = $aco;
        if (is_string($aro)) {
            $aro = $this->parseIdentifier($aro);
        }
        if (is_string($aco)) {
            $aco = $this->parseIdentifier($aco);
        }
        $action = '*';
        if (isset($this->args[2]) && !in_array($this->args[2], ['', 'all'])) {
            $action = $this->args[2];
        }
        return compact('aro', 'aco', 'action', 'aroName', 'acoName');
    }