src/models/Scheduler.php
public function hasTriggerPermission($class)
    {
        $model = new $class();

        if (!$model instanceof NgRestModel) {
            return false;
        }

        return Yii::$app->adminmenu->getApiDetail($class::ngRestApiEndpoint());
    }
public function hasTriggerPermission($class)
    {
        $model = new $class();

        if (!$model instanceof NgRestModel) {
            return false;
        }

        return Yii::$app->adminmenu->getApiDetail($class::ngRestApiEndpoint());
    }
public function hasTriggerPermission ( $ class ) { $ model = new $ class ( ) ; if ( ! $ model instanceof NgRestModel ) { return false ; } return Yii :: $ app -> adminmenu -> getApiDetail ( $ class :: ngRestApiEndpoint ( ) ) ; }
Ensure if the given class is an ngrest model and permission exists.

@param string $class
@return boolean
Ensure if the given class is an ngrest model and permission exists .