Acl\Shell\AclShell::_outputNode PHP Method

_outputNode() protected method

Outputs a single node, Either using the alias or Model.key
protected _outputNode ( string $class, array $node, integer $indent ) : void
$class string Class name that is being used.
$node array Array of node information.
$indent integer indent level.
return void
    protected function _outputNode($class, $node, $indent)
    {
        $indent = str_repeat('  ', $indent);
        if ($node['alias']) {
            $this->out($indent . "[" . $node['id'] . "] " . $node['alias']);
        } else {
            $this->out($indent . "[" . $node['id'] . "] " . $node['model'] . '.' . $node['foreign_key']);
        }
    }