public static function sqlBuildJoin($arrJoin)
    {
        $joins = null;
        if (is_array($arrJoin))
        {
            foreach ($arrJoin as $v)
            {
                $joins .= $v . " \n";
            }
            $joins = " \n" . $joins;
        }
        
        return  $joins;
    }
public static function sqlBuildJoin($arrJoin)
    {
        $joins = null;
        if (is_array($arrJoin))
        {
            foreach ($arrJoin as $v)
            {
                $joins .= $v . " \n";
            }
            $joins = " \n" . $joins;
        }
        
        return  $joins;
    }
public static function sqlBuildJoin ( $ arrJoin ) { $ joins = null ; if ( is_array ( $ arrJoin ) ) { foreach ( $ arrJoin as $ v ) { $ joins .= $ v . " \n" ; } $ joins = " \n" . $ joins ; } return $ joins ; }
Builds sql join criters

@param array $arrJoin
ex: array('users' => 'INNER JOIN users u ON (u.user_id = f.user_id))
Builds sql join criters