[ZF-10089] Zend_Log
[zend/radio.git] / library / Zend / Captcha / Dumb.php
blob7f7ab5811e0ba90ed4c8a3502e1f1cbf52c645bd
1 <?php
2 /**
3 * Zend Framework
5 * LICENSE
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.
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
22 /** @see Zend_Captcha_Word */
23 require_once 'Zend/Captcha/Word.php';
25 /**
26 * Example dumb word-based captcha
28 * Note that only rendering is necessary for word-based captcha
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$
37 class Zend_Captcha_Dumb extends Zend_Captcha_Word
39 /**
40 * Render the captcha
42 * @param Zend_View_Interface $view
43 * @param mixed $element
44 * @return string
46 public function render(Zend_View_Interface $view = null, $element = null)
48 return 'Please type this word backwards: <b>'
49 . strrev($this->getWord())
50 . '</b>';