web/Zend/Captcha/Dumb.php
changeset 0 4eba9c11703f
equal deleted inserted replaced
-1:000000000000 0:4eba9c11703f
       
     1 <?php
       
     2 /**
       
     3  * Zend Framework
       
     4  *
       
     5  * LICENSE
       
     6  *
       
     7  * This source file is subject to the new BSD license that is bundled
       
     8  * with this package in the file LICENSE.txt.
       
     9  * It is also available through the world-wide-web at this URL:
       
    10  * http://framework.zend.com/license/new-bsd
       
    11  * If you did not receive a copy of the license and are unable to
       
    12  * obtain it through the world-wide-web, please send an email
       
    13  * to license@zend.com so we can send you a copy immediately.
       
    14  *
       
    15  * @category   Zend
       
    16  * @package    Zend_Captcha
       
    17  * @subpackage Adapter
       
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
       
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
       
    20  */
       
    21 
       
    22 /** @see Zend_Captcha_Word */
       
    23 require_once 'Zend/Captcha/Word.php';
       
    24 
       
    25 /**
       
    26  * Example dumb word-based captcha
       
    27  *
       
    28  * Note that only rendering is necessary for word-based captcha
       
    29  *
       
    30  * @category   Zend
       
    31  * @package    Zend_Captcha
       
    32  * @subpackage Adapter
       
    33  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
       
    34  * @license    http://framework.zend.com/license/new-bsd     New BSD License
       
    35  * @version    $Id: Dumb.php 20096 2010-01-06 02:05:09Z bkarwin $
       
    36 */
       
    37 class Zend_Captcha_Dumb extends Zend_Captcha_Word
       
    38 {
       
    39     /**
       
    40      * Render the captcha
       
    41      *
       
    42      * @param  Zend_View_Interface $view
       
    43      * @param  mixed $element
       
    44      * @return string
       
    45      */
       
    46     public function render(Zend_View_Interface $view = null, $element = null)
       
    47     {
       
    48         return 'Please type this word backwards: <b>'
       
    49              . strrev($this->getWord())
       
    50              . '</b>';
       
    51     }
       
    52 }