CommonITILObject::isGroup PHP Метод

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

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