/** * Return all users with this role * * @param void * @return array */ function getUsers() { if ($this->users === false) { if ($this->getType() == ROLE_TYPE_SYSTEM) { $this->users = Users::findByRole($this); } else { $this->users = ProjectUsers::findByRole($this); } } // if return $this->users; }