models/Assignment.php
public function getAvailableItems()
    {
        return ArrayHelper::map($this->manager->getItems(), 'name', function ($item) {
            return empty($item->description)
                ? $item->name
                : $item->name . ' (' . $item->description . ')';
        });
    }
public function getAvailableItems()
    {
        return ArrayHelper::map($this->manager->getItems(), 'name', function ($item) {
            return empty($item->description)
                ? $item->name
                : $item->name . ' (' . $item->description . ')';
        });
    }
public function getAvailableItems ( ) { return ArrayHelper :: map ( $ this -> manager -> getItems ( ) , 'name' , function ( $ item ) { return empty ( $ item -> description ) ? $ item -> name : $ item -> name . ' (' . $ item -> description . ')' ; } ) ; }
Returns all available auth items to be attached to user.
@return array
Returns all available auth items to be attached to user .