PHP Class Doctrine\OrientDB\Query\Command\Credential

Inheritance: extends Doctrine\OrientDB\Query\Command, implements Doctrine\OrientDB\Query\Command\CredentialInterface
Datei anzeigen Open project: doctrine/orientdb-odm

Public Methods

Method 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.

Protected Methods

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

Method Details

__construct() public method

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

getTokenFormatters() protected method

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

on() public method

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

permission() public method

Sets a permission for the query.
public permission ( string $permission ) : Credential
$permission string
return Credential

to() public method

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