web/lib/Zend/Dojo/View/Helper/Slider.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Dojo
    16  * @package    Zend_Dojo
    17  * @subpackage View
    17  * @subpackage View
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: Slider.php 20096 2010-01-06 02:05:09Z bkarwin $
    20  * @version    $Id: Slider.php 24593 2012-01-05 20:35:02Z matthew $
    21  */
    21  */
    22 
    22 
    23 /** Zend_Dojo_View_Helper_Dijit */
    23 /** Zend_Dojo_View_Helper_Dijit */
    24 require_once 'Zend/Dojo/View/Helper/Dijit.php';
    24 require_once 'Zend/Dojo/View/Helper/Dijit.php';
    25 
    25 
    27  * Abstract class for Dojo Slider dijits
    27  * Abstract class for Dojo Slider dijits
    28  *
    28  *
    29  * @uses       Zend_Dojo_View_Helper_Dijit
    29  * @uses       Zend_Dojo_View_Helper_Dijit
    30  * @package    Zend_Dojo
    30  * @package    Zend_Dojo
    31  * @subpackage View
    31  * @subpackage View
    32  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    32  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    33  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    33  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    34   */
    34   */
    35 abstract class Zend_Dojo_View_Helper_Slider extends Zend_Dojo_View_Helper_Dijit
    35 abstract class Zend_Dojo_View_Helper_Slider extends Zend_Dojo_View_Helper_Dijit
    36 {
    36 {
    37     /**
    37     /**
    75                 throw new Zend_Dojo_View_Exception('prepareSlider() requires minimally the "minimum", "maximum", and "discreteValues" parameters');
    75                 throw new Zend_Dojo_View_Exception('prepareSlider() requires minimally the "minimum", "maximum", and "discreteValues" parameters');
    76             }
    76             }
    77         }
    77         }
    78 
    78 
    79         $content = '';
    79         $content = '';
    80         $params['value'] = $value;
    80         $attribs['value'] = $value;
    81 
    81 
    82         if (!array_key_exists('onChange', $attribs)) {
    82         if (!array_key_exists('onChange', $attribs)) {
    83             $attribs['onChange'] = "dojo.byId('" . $id . "').value = arguments[0];";
    83             $attribs['onChange'] = "dojo.byId('" . $id . "').value = arguments[0];";
    84         }
    84         }
    85 
    85