Show
Ignore:
Timestamp:
07/09/2008 04:10:48 PM (5 months ago)
Author:
Geert
Message:

Follow-up to r3015

  • Added Captcha::factory()
  • Added a Captcha example, try it out
Files:
1 modified

Legend:

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

    r3015 r3016  
    55 * $Id$ 
    66 * 
    7  * @package    Core 
     7 * @package    Captcha 
    88 * @author     Kohana Team 
    99 * @copyright  (c) 2007-2008 Kohana Team 
     
    3030 
    3131        /** 
     32         * Constructs and returns a new Captcha object. 
     33         * 
     34         * @param   array   configuration settings 
     35         * @return  object 
     36         */ 
     37        public function factory($config = array()) 
     38        { 
     39                return new Captcha($config); 
     40        } 
     41 
     42        /** 
    3243         * Constructs a new Captcha object. 
    3344         * 
    3445         * @throws  Kohana_Exception 
    35          * @param   string  configuration settings 
     46         * @param   array  configuration settings 
    3647         * @return  void 
    3748         */