TokyoTyrantIterator::valid

(PECL tokyo_tyrant >= 0.2.0) Rewinds the iterator public bool TokyoTyrantIterator::valid ( void ) Checks whether the internal pointer points to valid element. Returns: Returns TRUE if the current item is valid and FALSE if not. See also: TokyoTyrantIterator::key() - TokyoTyrantItera

TokyoTyrantIterator::rewind

(PECL tokyo_tyrant >= 0.2.0) Rewinds the iterator public void TokyoTyrantIterator::rewind ( void ) Rewinds the iterator for new iteration. Called automatically at the beginning of foreach. Returns: Throws TokyoTyrantException if iterator initialization fails. See also: TokyoTyrantIterator::valid() -

TokyoTyrantIterator::next

(PECL tokyo_tyrant >= 0.2.0) Move to next key public mixed TokyoTyrantIterator::next ( void ) Move to next key during iteration and return it's value. Returns: Returns the next value on success and false on failure. See also: TokyoTyrantIterator::valid() - TokyoTyrantIterator::key()

TokyoTyrantIterator::key

(PECL tokyo_tyrant >= 0.2.0) Returns the current key public mixed TokyoTyrantIterator::key ( void ) Returns the current key. Returns: Returns the current key on success and false on failure. See also: TokyoTyrantIterator::valid() - TokyoTyrantIterator::current() -

TokyoTyrantIterator::current

(PECL tokyo_tyrant >= 0.2.0) Get the current value public mixed TokyoTyrantIterator::current ( void ) Returns the current value during iteration. Returns: Returns the current value on success and false on failure. See also: TokyoTyrantIterator::valid() - TokyoTyrantIterator::key() -

TokyoTyrantIterator::__construct

(PECL tokyo_tyrant >= 0.2.0) Construct an iterator public TokyoTyrantIterator::__construct ( mixed $object ) Construct a new TokyoTyrantIterator object. One connection can have multiple iterators but it is not quaranteed that all items are traversed in that case. object parameter can be either an of instance TokyoTyrant or TokyoTyrantTable. Returns: Throws an exception if iterator initializatio

TokyoTyrantQuery::valid

(PECL tokyo_tyrant >= 0.1.0) Checks the validity of current item public bool TokyoTyrantQuery::valid ( void ) Checks if the current item is valid. Part of the Iterator interface Returns: Returns TRUE if the current item is valid and FALSE if not. Examples: TokyoTyrantQuery iterator example <?php /* Connect to a tabl

TokyoTyrantQuery::setOrder

(PECL tokyo_tyrant >= 0.1.0) Orders results public mixed TokyoTyrantQuery::setOrder ( string $name, int $type ) Sets the order of a query Parameters: name The column name to apply the ordering on. type The type can be one of the following constants: TokyoTyrant::RDBQO_STRASC - String ascending TokyoTyrant::RDBQO_STRDESC - Stri

TokyoTyrantQuery::setLimit

(PECL tokyo_tyrant >= 0.1.0) Limit results public mixed TokyoTyrantQuery::setLimit ([ int $max [, int $skip ]] ) Set the maximum amount of records to return on a query. Parameters: max Maximum amount of records. Default: -1 skip How many records to skip from the start. Default: -1 Returns: This method return

TokyoTyrantQuery::search

(PECL tokyo_tyrant >= 0.1.0) Searches records public array TokyoTyrantQuery::search ( void ) Executes a search on the table database. Returns an array of arrays containing the matching records. In the returned array the first level is the primary key of the data and the second level is the row data. Returns: Returns the matching rows and throws TokyoTyrantException on error