import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Submit.php';
/**
* Button form element
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Button.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Button.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Button extends Zend_Form_Element_Submit
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Xhtml.php';
/**
* Checkbox form element
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Checkbox.php 17716 2009-08-21 15:08:31Z matthew $
* @version $Id: Checkbox.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Checkbox extends Zend_Form_Element_Xhtml
{
@ -76,10 +76,10 @@ class Zend_Form_Element_Checkbox extends Zend_Form_Element_Xhtml
/**
* Set options
*
* Intercept checked and unchecked values and set them early; test stored
* Intercept checked and unchecked values and set them early; test stored
* value against checked and unchecked values after configuration.
*
* @param array $options
*
* @param array $options
* @return Zend_Form_Element_Checkbox
*/
public function setOptions(array $options)
@ -109,11 +109,11 @@ class Zend_Form_Element_Checkbox extends Zend_Form_Element_Xhtml
* If value matches checked value, sets to that value, and sets the checked
* flag to true.
*
* Any other value causes the unchecked value to be set as the current
* Any other value causes the unchecked value to be set as the current
* value, and the checked flag to be set as false.
*
*
* @param mixed $value
*
* @param mixed $value
* @return Zend_Form_Element_Checkbox
*/
public function setValue($value)
@ -130,8 +130,8 @@ class Zend_Form_Element_Checkbox extends Zend_Form_Element_Xhtml
/**
* Set checked value
*
* @param string $value
*
* @param string $value
* @return Zend_Form_Element_Checkbox
*/
public function setCheckedValue($value)
@ -143,7 +143,7 @@ class Zend_Form_Element_Checkbox extends Zend_Form_Element_Xhtml
/**
* Get value when checked
*
*
* @return string
*/
public function getCheckedValue()
@ -153,8 +153,8 @@ class Zend_Form_Element_Checkbox extends Zend_Form_Element_Xhtml
/**
* Set unchecked value
*
* @param string $value
*
* @param string $value
* @return Zend_Form_Element_Checkbox
*/
public function setUncheckedValue($value)
@ -166,7 +166,7 @@ class Zend_Form_Element_Checkbox extends Zend_Form_Element_Xhtml
/**
* Get value when not checked
*
*
* @return string
*/
public function getUncheckedValue()
@ -176,8 +176,8 @@ class Zend_Form_Element_Checkbox extends Zend_Form_Element_Xhtml
/**
* Set checked flag
*
* @param bool $flag
*
* @param bool $flag
* @return Zend_Form_Element_Checkbox
*/
public function setChecked($flag)
@ -193,7 +193,7 @@ class Zend_Form_Element_Checkbox extends Zend_Form_Element_Xhtml
/**
* Get checked flag
*
*
* @return bool
*/
public function isChecked()

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Xhtml.php';
/**
* CSRF form protection
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Hash.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Hash.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
{
@ -42,7 +42,7 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
/**
* Actual hash used.
*
*
* @var mixed
*/
protected $_hash;
@ -67,11 +67,11 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
/**
* Constructor
*
* Creates session namespace for CSRF token, and adds validator for CSRF
* Creates session namespace for CSRF token, and adds validator for CSRF
* token.
*
* @param string|array|Zend_Config $spec
* @param array|Zend_Config $options
*
* @param string|array|Zend_Config $spec
* @param array|Zend_Config $options
* @return void
*/
public function __construct($spec, $options = null)
@ -85,8 +85,8 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
/**
* Set session object
*
* @param Zend_Session_Namespace $session
*
* @param Zend_Session_Namespace $session
* @return Zend_Form_Element_Hash
*/
public function setSession($session)
@ -99,7 +99,7 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
* Get session object
*
* Instantiate session object if none currently exists
*
*
* @return Zend_Session_Namespace
*/
public function getSession()
@ -114,9 +114,9 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
/**
* Initialize CSRF validator
*
* Creates Session namespace, and initializes CSRF token in session.
* Creates Session namespace, and initializes CSRF token in session.
* Additionally, adds validator for validating CSRF token.
*
*
* @return Zend_Form_Element_Hash
*/
public function initCsrfValidator()
@ -158,7 +158,7 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
* Retrieve CSRF token
*
* If no CSRF token currently exists, generates one.
*
*
* @return string
*/
public function getHash()
@ -173,7 +173,7 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
* Get session namespace for CSRF token
*
* Generates a session namespace based on salt, element name, and class.
*
*
* @return string
*/
public function getSessionName()
@ -183,8 +183,8 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
/**
* Set timeout for CSRF session token
*
* @param int $ttl
*
* @param int $ttl
* @return Zend_Form_Element_Hash
*/
public function setTimeout($ttl)
@ -195,7 +195,7 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
/**
* Get CSRF session token timeout
*
*
* @return int
*/
public function getTimeout()
@ -205,7 +205,7 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
/**
* Override getLabel() to always be empty
*
*
* @return null
*/
public function getLabel()
@ -215,7 +215,7 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
/**
* Initialize CSRF token in session
*
*
* @return void
*/
public function initCsrfToken()
@ -228,8 +228,8 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
/**
* Render CSRF token in form
*
* @param Zend_View_Interface $view
*
* @param Zend_View_Interface $view
* @return string
*/
public function render(Zend_View_Interface $view = null)
@ -241,17 +241,17 @@ class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
/**
* Generate CSRF token
*
* Generates CSRF token and stores both in {@link $_hash} and element
* Generates CSRF token and stores both in {@link $_hash} and element
* value.
*
*
* @return void
*/
protected function _generateHash()
{
$this->_hash = md5(
mt_rand(1,1000000)
. $this->getSalt()
. $this->getName()
mt_rand(1,1000000)
. $this->getSalt()
. $this->getName()
. mt_rand(1,1000000)
);
$this->setValue($this->_hash);

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Xhtml.php';
/**
* Hidden form element
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Hidden.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Hidden.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Hidden extends Zend_Form_Element_Xhtml
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Xhtml.php';
/**
* Image form element
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Image.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Image.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml
{
@ -54,7 +54,7 @@ class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml
/**
* Load default decorators
*
*
* @return void
*/
public function loadDefaultDecorators()
@ -75,8 +75,8 @@ class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml
/**
* Set image path
*
* @param string $path
*
* @param string $path
* @return Zend_Form_Element_Image
*/
public function setImage($path)
@ -87,7 +87,7 @@ class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml
/**
* Get image path
*
*
* @return string
*/
public function getImage()
@ -97,8 +97,8 @@ class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml
/**
* Set image value to use when submitted
*
* @param mixed $value
*
* @param mixed $value
* @return Zend_Form_Element_Image
*/
public function setImageValue($value)
@ -109,7 +109,7 @@ class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml
/**
* Get image value to use when submitted
*
*
* @return mixed
*/
public function getImageValue()
@ -119,7 +119,7 @@ class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml
/**
* Was this element used to submit the form?
*
*
* @return bool
*/
public function isChecked()
@ -127,5 +127,5 @@ class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml
$imageValue = $this->getImageValue();
return ((null !== $imageValue) && ($this->getValue() == $imageValue));
}
}

View File

@ -25,16 +25,16 @@ require_once 'Zend/Form/Element/Multi.php';
/**
* MultiCheckbox form element
*
* Allows specifyinc a (multi-)dimensional associative array of values to use
* as labelled checkboxes; these will return an array of values for those
* Allows specifyinc a (multi-)dimensional associative array of values to use
* as labelled checkboxes; these will return an array of values for those
* checkboxes selected.
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: MultiCheckbox.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: MultiCheckbox.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_MultiCheckbox extends Zend_Form_Element_Multi
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Select.php';
/**
* Multiselect form element
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Multiselect.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Multiselect.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Multiselect extends Zend_Form_Element_Select
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Xhtml.php';
/**
* Password form element
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Password.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Password.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Password extends Zend_Form_Element_Xhtml
{
@ -48,7 +48,7 @@ class Zend_Form_Element_Password extends Zend_Form_Element_Xhtml
/**
* Set flag indicating whether or not to render the password
* @param bool $flag
* @param bool $flag
* @return Zend_Form_Element_Password
*/
public function setRenderPassword($flag)
@ -59,7 +59,7 @@ class Zend_Form_Element_Password extends Zend_Form_Element_Xhtml
/**
* Get value of renderPassword flag
*
*
* @return bool
*/
public function renderPassword()
@ -71,9 +71,9 @@ class Zend_Form_Element_Password extends Zend_Form_Element_Xhtml
* Override isValid()
*
* Ensure that validation error messages mask password value.
*
* @param string $value
* @param mixed $context
*
* @param string $value
* @param mixed $context
* @return bool
*/
public function isValid($value, $context = null)

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Multi.php';
/**
* Radio form element
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Radio.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Radio.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Radio extends Zend_Form_Element_Multi
{
@ -39,4 +39,19 @@ class Zend_Form_Element_Radio extends Zend_Form_Element_Multi
* @var string
*/
public $helper = 'formRadio';
/**
* Load default decorators
*
* Disables "for" attribute of label if label decorator enabled.
*
* @return void
*/
public function loadDefaultDecorators()
{
parent::loadDefaultDecorators();
if (false !== $decorator = $this->getDecorator('Label')) {
$decorator->setOption('disableFor', true);
}
}
}

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Submit.php';
/**
* Reset form element
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Reset.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Reset.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Reset extends Zend_Form_Element_Submit
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Multi.php';
/**
* Select.php form element
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Select.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Select.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Select extends Zend_Form_Element_Multi
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Xhtml.php';
/**
* Submit form element
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Submit.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Submit.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Submit extends Zend_Form_Element_Xhtml
{
@ -42,7 +42,7 @@ class Zend_Form_Element_Submit extends Zend_Form_Element_Xhtml
/**
* Constructor
*
*
* @param string|array|Zend_Config $spec Element name or configuration
* @param string|array|Zend_Config $options Element value or configuration
* @return void
@ -62,7 +62,7 @@ class Zend_Form_Element_Submit extends Zend_Form_Element_Xhtml
* If no label is present, returns the currently set name.
*
* If a translator is present, returns the translated label.
*
*
* @return string
*/
public function getLabel()
@ -82,7 +82,7 @@ class Zend_Form_Element_Submit extends Zend_Form_Element_Xhtml
/**
* Has this submit button been selected?
*
*
* @return bool
*/
public function isChecked()
@ -103,7 +103,7 @@ class Zend_Form_Element_Submit extends Zend_Form_Element_Xhtml
* Default decorators
*
* Uses only 'Submit' and 'DtDdWrapper' decorators by default.
*
*
* @return void
*/
public function loadDefaultDecorators()

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Xhtml.php';
/**
* Text form element
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Text.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Text.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Text extends Zend_Form_Element_Xhtml
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element/Xhtml.php';
/**
* Textarea form element
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Textarea.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Textarea.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Form_Element_Textarea extends Zend_Form_Element_Xhtml
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element.php';
/**
* Base element for XHTML elements
*
*
* @category Zend
* @package Zend_Form
* @subpackage Element
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Xhtml.php 16218 2009-06-21 19:44:04Z thomas $
* @version $Id: Xhtml.php 18951 2009-11-12 16:26:19Z alexander $
*/
abstract class Zend_Form_Element_Xhtml extends Zend_Form_Element
{