CommonITILObject::isUser PHP Метод

isUser() публичный Метод

Is a user linked to the object ?
public isUser ( $type, $users_id ) : boolean
$type type to search (see constants)
$users_id integer user ID
Результат boolean
    function isUser($type, $users_id)
    {
        if (isset($this->users[$type])) {
            foreach ($this->users[$type] as $data) {
                if ($data['users_id'] == $users_id) {
                    return true;
                }
            }
        }
        return false;
    }
CommonITILObject