/** * Get all security permissions schemas. * * @return array array if permission schema values. */ public function getallschemas() { // Security check if (!SecurityUtil::checkPermission('Permissions::', '::', ACCESS_ADMIN)) { return LogUtil::registerPermissionError(); } $schemas = SecurityUtil::getSchemas(); BlockUtil::loadAll(); $modinfos = ModUtil::getAllMods(); foreach ($modinfos as $modinfo) { if (!empty($modinfo['securityschema'])) { $schemas = array_merge($schemas, $modinfo['securityschema']); } } uksort($schemas, 'strnatcasecmp'); SecurityUtil::setSchemas($schemas); return $schemas; }