static public function getPermissionsList($except=null)
    {
        $res = ArrayHelper::map(Yii::$app->authManager->getPermissions(), 'name', 'description');
        if ($except !== null) {
            unset($res[$except]);
        }
        ksort($res);
        return $res;
    }
static public function getPermissionsList($except=null)
    {
        $res = ArrayHelper::map(Yii::$app->authManager->getPermissions(), 'name', 'description');
        if ($except !== null) {
            unset($res[$except]);
        }
        ksort($res);
        return $res;
    }
static public function getPermissionsList ( $ except = null ) { $ res = ArrayHelper :: map ( Yii :: $ app -> authManager -> getPermissions ( ) , 'name' , 'description' ) ; if ( $ except !== null ) { unset ( $ res [ $ except ] ) ; } ksort ( $ res ) ; return $ res ; }
Returns permissions list description by name as key
@param $except string name
@return array
Returns permissions list description by name as key