/** * Adds a FROM table and optional columns to the query. * * The table name can be expressed * * @param array|string|Zend_Db_Expr|Kwf_Db_Table $name The table name or an associative array relating table name to correlation name. * @param array|string|Zend_Db_Expr $cols The columns to select from this table. * @param string $schema The schema name to specify, if any. * @return Kwf_Db_Table_Select This Kwf_Db_Table_Select object. */ public function from($name, $cols = self::SQL_WILDCARD, $schema = null) { if ($name instanceof Kwf_Db_Table) { $schema = $name->getTableName(); $schema = $name->getSchemaName(); } return $this->joinInner($name, null, $cols, $schema); }