protected function parseDefinitionRights($definition)
    {
        $permissions = [];

        // We need to explode the definition in case it contains
        // multiple rights, for example: (GR,GE).
        $rights = explode(',', $definition);

        foreach ($rights as $right) {
            // We'll make sure the right exists inside the definitions
            // array before we try to instantiate it.
            if (array_key_exists($right, static::$definitions)) {
                $permissions[] =  new static::$definitions[$right];
            }
        }

        return $permissions;
    }
protected function parseDefinitionRights($definition)
    {
        $permissions = [];

        // We need to explode the definition in case it contains
        // multiple rights, for example: (GR,GE).
        $rights = explode(',', $definition);

        foreach ($rights as $right) {
            // We'll make sure the right exists inside the definitions
            // array before we try to instantiate it.
            if (array_key_exists($right, static::$definitions)) {
                $permissions[] =  new static::$definitions[$right];
            }
        }

        return $permissions;
    }
protected function parseDefinitionRights ( $ definition ) { $ permissions = [ ] ; // We need to explode the definition in case it contains // multiple rights, for example: (GR,GE). $ rights = explode ( ',' , $ definition ) ; foreach ( $ rights as $ right ) { // We'll make sure the right exists inside the definitions // array before we try to instantiate it. if ( array_key_exists ( $ right , static :: $ definitions ) ) { $ permissions [ ] = new static :: $ definitions [ $ right ] ; } } return $ permissions ; }
Parses a ACE definition list into an array of permission objects.

@param string $definition

@return array
Parses a ACE definition list into an array of permission objects .