Skip to content
Travis edited this page Mar 13, 2014 · 7 revisions

Box\TokenRoot

A root token. This should be the first element in a token chain returned from a Query.

  • Class name: TokenRoot
  • Namespace: Box
  • Parent class: Box\TokenBase

Properties

$instance

public \Box\DataObjectInterface $instance
  • Visibility: public

$nextToken

public \Box\TokenBase $nextToken
  • Visibility: public

Methods

\Box\TokenRoot::_getNative()

string Box\TokenRoot::\Box\TokenRoot::_getNative()(\Box\TokenNativeInterface $tokenTranslator, \Box\TokenBase|null $previous)

Get the native translation of token.

  • Visibility: protected

Arguments

\Box\TokenRoot::__toString()

string Box\TokenRoot::\Box\TokenRoot::__toString()()

An example implementation of a translator to a native query language.

This one generates a pseudo query language.

  • Visibility: public

\Box\TokenBase::buildNative()

string Box\TokenRoot::\Box\TokenBase::buildNative()(\Box\TokenNativeInterface $tokenTranslator)

Build a native query from tokens.

  • Visibility: public

Arguments

\Box\TokenBase::_getNative()

string Box\TokenRoot::\Box\TokenBase::_getNative()(\Box\TokenNativeInterface $tokenTranslator, \Box\TokenBase|null $previous)

Get the native translation of token.

  • Visibility: protected
  • This method is abstract.

Arguments

\Box\TokenInterface::buildNative()

string Box\TokenInterface::\Box\TokenInterface::buildNative()(\Box\TokenNativeInterface $tokenTranslator)

Build a native query from tokens.

Arguments

Clone this wiki locally