PHP Class Doctrine\OrientDB\Query\Command\Credential

Inheritance: extends Doctrine\OrientDB\Query\Command, implements Doctrine\OrientDB\Query\Command\CredentialInterface
Afficher le fichier Open project: doctrine/orientdb-odm

Méthodes publiques

Méthode Description
__construct ( string $permission ) Creates a new statement, setting the $permission.
on ( string $resource ) : Credential Sets the $resource on which the credential is given.
permission ( string $permission ) : Credential Sets a permission for the query.
to ( string $role ) : Credential Sets the $role having the credential on a resource.

Méthodes protégées

Méthode Description
getTokenFormatters ( ) : Array Returns the formatters for this query's tokens.

Method Details

__construct() public méthode

Creates a new statement, setting the $permission.
public __construct ( string $permission )
$permission string

getTokenFormatters() protected méthode

Returns the formatters for this query's tokens.
protected getTokenFormatters ( ) : Array
Résultat Array

on() public méthode

Sets the $resource on which the credential is given.
public on ( string $resource ) : Credential
$resource string
Résultat Credential

permission() public méthode

Sets a permission for the query.
public permission ( string $permission ) : Credential
$permission string
Résultat Credential

to() public méthode

Sets the $role having the credential on a resource.
public to ( string $role ) : Credential
$role string
Résultat Credential