Scalr\Model\Entity\Role::isUsed PHP Méthode

isUsed() public méthode

Checks whether the Role is already used in some Farm
public isUsed ( ) : boolean
Résultat boolean Returns TRUE if the Role is already used or FALSE otherwise
    public function isUsed()
    {
        return !!$this->db()->GetOne("\n            SELECT EXISTS(SELECT 1 FROM farm_roles WHERE role_id = ?)\n        ", [$this->id]);
    }