src/core/framework/core/3rdparty/ezcomponents/Database/src/sqlabstraction/query.php
protected function getPrefixedTableNames($tableNames)
    {
    	if ($this->db->options && $this->db->options->tableNamePrefix)
    	{
    		switch (true)
    		{
    			case is_string($tableNames):
    				$tableNames = $this->db->options->tableNamePrefix . $tableNames;
    			break;

    			case is_array($tableNames):
		    		foreach ($tableNames as $key => $table)
		    			$tableNames[$key] = $this->db->options->tableNamePrefix . $table;
		    	break;
    		}
    	}

    	return $tableNames;
    }
protected function getPrefixedTableNames($tableNames)
    {
    	if ($this->db->options && $this->db->options->tableNamePrefix)
    	{
    		switch (true)
    		{
    			case is_string($tableNames):
    				$tableNames = $this->db->options->tableNamePrefix . $tableNames;
    			break;

    			case is_array($tableNames):
		    		foreach ($tableNames as $key => $table)
		    			$tableNames[$key] = $this->db->options->tableNamePrefix . $table;
		    	break;
    		}
    	}

    	return $tableNames;
    }
protected function getPrefixedTableNames ( $ tableNames ) { if ( $ this -> db -> options && $ this -> db -> options -> tableNamePrefix ) { switch ( true ) { case is_string ( $ tableNames ) : $ tableNames = $ this -> db -> options -> tableNamePrefix . $ tableNames ; break ; case is_array ( $ tableNames ) : foreach ( $ tableNames as $ key => $ table ) $ tableNames [ $ key ] = $ this -> db -> options -> tableNamePrefix . $ table ; break ; } } return $ tableNames ; }
Returns prefixed table names if "tableNamePrefix" option not empty
otherwise return untouched names

@param array|string $tableNames
@return array|string
Returns prefixed table names if tableNamePrefix option not empty otherwise return untouched names