/usr/local/miolo2/classes/database/mysql/msqljoin.class

Go to the documentation of this file.
00001 <?
00006 class MysqlSqlJoin extends MSqlJoin
00007 {
00008 
00018     function _sqlJoin($sql)
00019     {
00020         $cond = '';
00021 
00022         foreach ($sql->join as $join)
00023         {
00024             if ($cond != '')
00025             {
00026                 $cond = "($cond " . $join[3] . " JOIN $join[1] ON ($join[2]))";
00027             }
00028             else
00029             {
00030                 $cond = "($join[0] " . $join[3] . " JOIN $join[1] ON ($join[2]))";
00031             }
00032         }
00033 
00034         $sql->SetTables($cond);
00035     }
00036 }
00037 ?>
CopyLeft (L) 2001-2006 - [MIOLO Development Team] SOLIS - Cooperativa de Soluções Livres - Lajeado/RS - Brasil