Changeset 2371

Show
Ignore:
Timestamp:
03/28/2008 01:09:50 PM (6 months ago)
Author:
Shadowhand
Message:

Added Image::factory()

Files:
1 modified

Legend:

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

    r1911 r2371  
    4242 
    4343        /** 
     44         * Creates a new Image instance and returns it. 
     45         * 
     46         * @param   string   filename of image 
     47         * @param   array    non-default configurations 
     48         * @return  object 
     49         */ 
     50        public static function factory($image, $config = NULL) 
     51        { 
     52                return new Image($image, $config); 
     53        } 
     54 
     55        /** 
    4456         * Creates a new image editor instance. 
    4557         *