src/ORM/Queries/SQLConditionalExpression.php
public function queriedTables()
    {
        $tables = array();

        foreach ($this->from as $key => $tableClause) {
            if (is_array($tableClause)) {
                $table = '"' . $tableClause['table'] . '"';
            } elseif (is_string($tableClause) && preg_match('/JOIN +("[^"]+") +(AS|ON) +/i', $tableClause, $matches)) {
                $table = $matches[1];
            } else {
                $table = $tableClause;
            }

            // Handle string replacements
            if ($this->replacementsOld) {
                $table = str_replace($this->replacementsOld, $this->replacementsNew, $table);
            }

            $tables[] = preg_replace('/^"|"$/', '', $table);
        }

        return $tables;
    }
public function queriedTables()
    {
        $tables = array();

        foreach ($this->from as $key => $tableClause) {
            if (is_array($tableClause)) {
                $table = '"' . $tableClause['table'] . '"';
            } elseif (is_string($tableClause) && preg_match('/JOIN +("[^"]+") +(AS|ON) +/i', $tableClause, $matches)) {
                $table = $matches[1];
            } else {
                $table = $tableClause;
            }

            // Handle string replacements
            if ($this->replacementsOld) {
                $table = str_replace($this->replacementsOld, $this->replacementsNew, $table);
            }

            $tables[] = preg_replace('/^"|"$/', '', $table);
        }

        return $tables;
    }
public function queriedTables ( ) { $ tables = array ( ) ; foreach ( $ this -> from as $ key => $ tableClause ) { if ( is_array ( $ tableClause ) ) { $ table = '"' . $ tableClause [ 'table' ] . '"' ; } elseif ( is_string ( $ tableClause ) && preg_match ( '/JOIN +("[^"]+") +(AS|ON) +/i' , $ tableClause , $ matches ) ) { $ table = $ matches [ 1 ] ; } else { $ table = $ tableClause ; } // Handle string replacements if ( $ this -> replacementsOld ) { $ table = str_replace ( $ this -> replacementsOld , $ this -> replacementsNew , $ table ) ; } $ tables [ ] = preg_replace ( '/^"|"$/' , '' , $ table ) ; } return $ tables ; }
Return a list of tables that this query is selecting from.

@return array Unquoted table names
Return a list of tables that this query is selecting from .