/** * Returns the formatters for this query's tokens. * * @return Array */ protected function getTokenFormatters() { return array_merge(parent::getTokenFormatters(), array( 'Name' => "Congow\Orient\Formatter\Query\Regular", 'Key' => "Congow\Orient\Formatter\Query\Regular", 'Value' => "Congow\Orient\Formatter\Query\EmbeddedRid", )); }
/** * Creates a new statements to manage indexes on the $property of the given * $class. * * @param string $property * @param string $class */ public function __construct($property, $class = null) { parent::__construct(); if ($class) { $this->setToken('IndexClass', $class); } $this->setToken('Property', $property); }
/** * Returns the formatters for this query's tokens. * * @return Array */ protected function getTokenFormatters() { return array_merge(parent::getTokenFormatters(), array( 'Name' => 'Congow\Orient\Formatter\Query\Regular', )); }
/** * Returns the formatters for this query's tokens. * * @return Array */ protected function getTokenFormatters() { return array_merge(parent::getTokenFormatters(), array( 'Index' => "Congow\Orient\Formatter\Query\Regular", )); }