public function from($tables)
    {
        settype($tables, 'array');

        //The table needle
        $needle = $this->_adapter->getTableNeedle();

        //Prepent the table prefix
        foreach ($tables as &$table) {
            if (strpos($table, $needle) !== 0) {
                $table = $needle.$table;
            }
        }

        $this->from = array_unique(array_merge($this->from, $tables));
        return $this;
    }
public function from($tables)
    {
        settype($tables, 'array');

        //The table needle
        $needle = $this->_adapter->getTableNeedle();

        //Prepent the table prefix
        foreach ($tables as &$table) {
            if (strpos($table, $needle) !== 0) {
                $table = $needle.$table;
            }
        }

        $this->from = array_unique(array_merge($this->from, $tables));
        return $this;
    }
public function from ( $ tables ) { settype ( $ tables , 'array' ) ; //The table needle $ needle = $ this -> _adapter -> getTableNeedle ( ) ; //Prepent the table prefix foreach ( $ tables as & $ table ) { if ( strpos ( $ table , $ needle ) !== 0 ) { $ table = $ needle . $ table ; } } $ this -> from = array_unique ( array_merge ( $ this -> from , $ tables ) ) ; return $ this ; }
Built the from clause of the query

@param   array|string    A string or array of table names
@return  AnDatabaseQuery
Built the from clause of the query