コード例 #1
0
 private function formatUserList(UsrList $list)
 {
     $entries = [];
     foreach ($list->getEntries() as $entry) {
         $entries[] = ['Id' => $entry->getId(), 'User' => $this->formatUser($entry->getUser())];
     }
     return ['type' => 'LIST', 'list_id' => $list->getId(), 'name' => $list->getName(), 'length' => count($entries), 'entries' => $entries];
 }
 /**
  * {@inheritDoc}
  */
 public function getEntries()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getEntries', array());
     return parent::getEntries();
 }