public function index()
 {
     $search = array('user_account' => true);
     if (!empty($_GET['department_id'])) {
         $search['department_id'] = $_GET['department_id'];
     }
     $table = new PersonTable();
     $people = $table->find($search);
     $this->template->blocks[] = new Block('users/userList.inc', array('userList' => $people));
 }
 /**
  * @return PersonList
  */
 public function getPeople()
 {
     if ($this->getId()) {
         $table = new PersonTable();
         return $table->find(['department_id' => $this->getId()]);
     }
 }
Beispiel #3
0
 /**
  * @return Zend\Db\ResultSet
  */
 public function getReportedByPeople()
 {
     if ($this->getId()) {
         $table = new PersonTable();
         return $table->find(['reportedTicket_id' => $this->getId()]);
     }
 }