Changeset 1638

Show
Ignore:
Timestamp:
12/28/2007 01:01:26 PM (9 months ago)
Author:
Shadowhand
Message:

Fixing the instance/factory names:

  • Changed ORM::instance() to ORM::factory()
  • Changed View::instance() to View::instance()
Location:
trunk/system/libraries
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/ORM.php

    r1629 r1638  
    5353         * @return  object 
    5454         */ 
    55         public static function instance($model = FALSE, $id = FALSE) 
     55        public static function factory($model = FALSE, $id = FALSE) 
    5656        { 
    5757                $model = empty($model) ? __CLASS__ : ucfirst($model).'_Model'; 
  • trunk/system/libraries/View.php

    r1592 r1638  
    2828         * @param   string  type of file: html, css, js, etc. 
    2929         */ 
    30         public static function instance($name, $data = NULL, $type = NULL) 
     30        public static function factory($name, $data = NULL, $type = NULL) 
    3131        { 
    3232                return new View($name, $data, $type);