本文整理汇总了PHP中Zend_Form_Element_Hidden::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Form_Element_Hidden::__construct方法的具体用法?PHP Zend_Form_Element_Hidden::__construct怎么用?PHP Zend_Form_Element_Hidden::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Form_Element_Hidden
的用法示例。
在下文中一共展示了Zend_Form_Element_Hidden::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($spec, $options = null)
{
parent::__construct($spec, $options);
$this->associatedElement = $options['associatedElement'];
$this->pathTmp = $options['pathTmp'];
$this->contentID = $options['contentID'];
}
示例2: __construct
public function __construct($spec, $aOptions = array())
{
if (isset($aOptions['ajax'])) {
$this->_ajax = $aOptions['ajax'];
unset($aOptions['ajax']);
}
parent::__construct($spec, $aOptions);
}
示例3: __construct
public function __construct($spec, $options = null)
{
parent::__construct($spec, $options);
$this->_menu = empty($options['menu']) ? '' : $options['menu'];
$this->_associatedElement = empty($options['associatedElement']) ? '' : $options['associatedElement'];
$this->_onClick = "javascript:assignPage(\"{$this->getId()}\",\"%PAGEID%\",\"{$this->_associatedElement}\",\"%PAGEINDEX%\");";
if (!empty($options['onclick'])) {
$this->_onClick .= $options['onclick'];
}
}
示例4: __construct
public function __construct($spec, $params = array(), $options = null)
{
parent::__construct($spec, $options);
$this->_lang = empty($options['lang']) ? 1 : $options['lang'];
if ($options['mode'] == 'add') {
$this->_mode = 'add';
$config = Zend_registry::get('config');
$this->_lang = $config->defaultEditLanguage;
}
$this->_params = $params;
}
示例5: __construct
/**
*
* @param string $spec Id of the element for html tag.
* @param array $options Options to create the element.<br />
* The following ones are mandatory:<br />
* <p>- associatedElement: Element containing the
* file path. It's the form element to be saved into db.</p>
* <p>- displayElement: The field name to display the file name.</p>
* <p>- pathTmp: Path to initialize the browser.</p>
* <p>- setInit: Set to true for the first element.
* This is not usefull if there is more than one element.</p>
* <p>- contentID: OPTIONAL</p>
*/
public function __construct($spec, $options = null)
{
parent::__construct($spec, $options);
if (isset($options['associatedElement'])) {
$this->associatedElement = $options['associatedElement'] . "-";
} else {
$this->associatedElement = "";
}
$this->displayElement = $options['displayElement'];
$this->pathTmp = $options['pathTmp'];
$this->contentID = $options['contentID'];
$this->setInit = $options['setInit'];
// var_dump($options);
}
示例6: __construct
public function __construct($spec = null, $options = null)
{
parent::__construct($spec, $options);
$this->removeDecorator('label')->removeDecorator('HtmlTag');
}
示例7: __construct
public function __construct($spec, $options = null)
{
parent::__construct($spec, $options);
$this->associatedElement = $options['associatedElement'];
$this->galleryID = $options['galleryID'];
}