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