Doctrine 1.2.4
Doctrine_Search_Query Class Reference

Public Member Functions

 __construct ($table)
 

Detailed Description

Definition at line 33 of file Query.php.

Constructor & Destructor Documentation

Doctrine_Search_Query::__construct (   $table)
Parameters
Doctrine_Table$_tablethe index table

Definition at line 54 of file Query.php.

{
if (is_string($table)) {
$table = Doctrine_Core::getTable($table);
} else {
if ( ! $table instanceof Doctrine_Table) {
throw new Doctrine_Search_Exception('Invalid argument type. Expected instance of Doctrine_Table.');
}
}
$this->_tokenizer = new Doctrine_Query_Tokenizer();
$this->_table = $table;
$foreignId = current(array_diff($this->_table->getColumnNames(), array('keyword', 'field', 'position')));
$this->_condition = $foreignId . ' %s (SELECT ' . $foreignId . ' FROM ' . $this->_table->getTableName() . ' WHERE ';
}

The documentation for this class was generated from the following file: