src/Security/Permission.php
public static function get_declared_permissions_list()
    {
        if (!self::$declared_permissions) {
            return null;
        }

        if (self::$declared_permissions_list) {
            return self::$declared_permissions_list;
        }

        self::$declared_permissions_list = array();

        self::traverse_declared_permissions(self::$declared_permissions, self::$declared_permissions_list);

        return self::$declared_permissions_list;
    }
public static function get_declared_permissions_list()
    {
        if (!self::$declared_permissions) {
            return null;
        }

        if (self::$declared_permissions_list) {
            return self::$declared_permissions_list;
        }

        self::$declared_permissions_list = array();

        self::traverse_declared_permissions(self::$declared_permissions, self::$declared_permissions_list);

        return self::$declared_permissions_list;
    }
public static function get_declared_permissions_list ( ) { if ( ! self :: $ declared_permissions ) { return null ; } if ( self :: $ declared_permissions_list ) { return self :: $ declared_permissions_list ; } self :: $ declared_permissions_list = array ( ) ; self :: traverse_declared_permissions ( self :: $ declared_permissions , self :: $ declared_permissions_list ) ; return self :: $ declared_permissions_list ; }
Get a linear list of the permissions in the system.

@return array Linear list of declared permissions in the system.
@deprecated 4.4.0
Get a linear list of the permissions in the system .