components/AuthBehavior.php
public function getItems($itemName = null)
    {
        if ($itemName && isset($this->_items[$itemName])) {
            return $this->_items[$itemName];
        }

        return $this->_items;
    }
public function getItems($itemName = null)
    {
        if ($itemName && isset($this->_items[$itemName])) {
            return $this->_items[$itemName];
        }

        return $this->_items;
    }
public function getItems ( $ itemName = null ) { if ( $ itemName && isset ( $ this -> _items [ $ itemName ] ) ) { return $ this -> _items [ $ itemName ] ; } return $ this -> _items ; }
Return thee parents and children of specific item or all items
@param string $itemName name of the item.
@return array
Return thee parents and children of specific item or all items