Example #1
0
 /**
  * Get the roles that should be displayed on the "Admins" page
  *
  * @return Role[] An array of Roles that should be displayed on the "Admins" page
  */
 public static function getLeaderRoles()
 {
     return parent::arrayIdToModel(parent::fetchIds("WHERE display = 1 ORDER BY display_order ASC"));
 }
Example #2
0
 /**
  * Get all of the existing permissions in the database
  * @return Permission[] An array of permissions
  */
 public static function getPerms()
 {
     return parent::arrayIdToModel(parent::fetchIds());
 }