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