Phalcon\Acl\Adapter\Database::isRole PHP Method

isRole() public method

public isRole ( string $roleName ) : boolean
$roleName string
return boolean
    public function isRole($roleName)
    {
        $exists = $this->connection->fetchOne("SELECT COUNT(*) FROM {$this->roles} WHERE name = ?", null, [$roleName]);
        return (bool) $exists[0];
    }