/** * Generowanie listy userow przypisanych do CC. * * @return array - Lista userow z hashowanymi id-kami, sortowana po nazwisku. */ public function fetchAllUsersFromCC() { $model = new User(); $rows = $model->fetchAllUsersFromCC(); $strToHex = Zend_Controller_Action_HelperBroker::getStaticHelper('IdConvert'); if (isset($rows)) { foreach ($rows as $guardian) { $this->guardians[$strToHex->strToHex($guardian['id'])] = $guardian['surname'] . ' ' . $guardian['first_name']; } return $this->guardians; } else { return null; } }