Changeset 3850

Show
Ignore:
Timestamp:
06/15/09 02:12:03 (9 months ago)
Author:
takayama
Message:

* Implemented database driver for mysql. bugid:100378

Location:
branches/feature-php5-migration/php/lib
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • branches/feature-php5-migration/php/lib/class.mt_entry.php

    r3686 r3850  
    4343        $where = "placement_entry_id = " . $this->id; 
    4444        if ($primary) { 
    45             $where .= "and placement_is_primary = 1"; 
     45            $where .= " and placement_is_primary = 1"; 
    4646        } 
    4747 
  • branches/feature-php5-migration/php/lib/mtdb.base.php

    r3840 r3850  
    132132    } 
    133133 
    134     protected function apply_extract_date($part, $column) { 
     134    public function apply_extract_date($part, $column) { 
    135135        return "extract($part from $column)"; 
    136136    } 
     
    352352                        and fileinfo_blog_id = $blog_id 
    353353                        and fileinfo_archive_type = '" . $this->escape($at). "'" . 
    354                         "and templatemap_is_preferred = 1"; 
     354                        " and templatemap_is_preferred = 1"; 
    355355            } 
    356356            $extras['join'] = array( 
     
    436436                       $filter"; 
    437437            if (isset($args['blog_id'])) 
    438                 $where .= "and fileinfo_blog_id = " . $args['blog_id']; 
     438                $where .= " and fileinfo_blog_id = " . $args['blog_id']; 
    439439            require_once('class.mt_fileinfo.php'); 
    440440            $finfo = new FileInfo; 
     
    15081508            $cat_filter .= ' and placement_category_id = category_id'; 
    15091509            if (isset($args['entry_id'])) { 
    1510                 $entry_filter = 'and placement_entry_id = entry_id and placement_entry_id = '.intval($args['entry_id']); 
     1510                $entry_filter = ' and placement_entry_id = entry_id and placement_entry_id = '.intval($args['entry_id']); 
    15111511            } else { 
    1512                 $entry_filter = 'and placement_entry_id = entry_id and entry_status = 2'; 
     1512                $entry_filter = ' and placement_entry_id = entry_id and entry_status = 2'; 
    15131513            } 
    15141514        } 
     
    15191519            $class = "category"; 
    15201520        } 
    1521         $class_filter = "and category_class='$class'"; 
     1521        $class_filter = " and category_class='$class'"; 
    15221522 
    15231523        $sql = "