/** * 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")); }
/** * Get all of the existing permissions in the database * @return Permission[] An array of permissions */ public static function getPerms() { return parent::arrayIdToModel(parent::fetchIds()); }