public function add($properties = null) { parent::add($properties); $itemTagIDs = array(); $tags = $this->db->selectAll('Tag', 'ORDER BY Value'); if (is_null($tags)) { throw new DatabaseException('Error loading tags.', 500); } $this->view->setData(array('Tags' => $tags, 'BlogPostTagIDs' => $itemTagIDs)); }
public function add($properties = null) { parent::add($properties); $itemUserIDs = array(); $users = $this->db->selectAll('User', 'ORDER BY FirstName, LastName'); if (is_null($users)) { throw new DatabaseException('Error loading users.', 500); } $this->view->setData(array('Users' => $users, 'RoleUserIDs' => $itemUserIDs)); }
public function add($properties = null) { parent::add($properties); $itemRoleIDs = array(); $roles = $this->db->selectAll('Role', 'ORDER BY Name'); if (is_null($roles)) { throw new DatabaseException('Error loading roles.', 500); } $this->view->setData(array('Roles' => $roles, 'UserRoleIDs' => $itemRoleIDs)); }