OEModule\PatientTicketing\services\PatientTicketing_QueueSetService::getQueueSetRoles PHP 메소드

getQueueSetRoles() 공개 메소드

Returns the roles configured to allow processing of queue sets.
public getQueueSetRoles ( ) : array
리턴 array
    public function getQueueSetRoles()
    {
        $res = array();
        // iterate through roles and pick out those that have the operation as a child
        foreach (Yii::app()->authManager->getAuthItems(2) as $role) {
            if ($role->hasChild('TaskProcessQueueSet')) {
                $res[] = $role->name;
            }
        }
        return $res;
    }