本文整理汇总了PHP中Zend_Form_Element_Textarea::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Form_Element_Textarea::init方法的具体用法?PHP Zend_Form_Element_Textarea::init怎么用?PHP Zend_Form_Element_Textarea::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Form_Element_Textarea
的用法示例。
在下文中一共展示了Zend_Form_Element_Textarea::init方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
function init()
{
parent::init();
if (is_null($this->getAttrib('rows'))) {
$this->setAttrib('rows', '5');
}
}
示例2: init
/**
* (non-PHPdoc)
* @see library/Zend/Form/Zend_Form_Element#init()
*/
public function init()
{
parent::init();
// call the CrFramework form element common init function
// refer to CrFramework_Form_Element_ElementCommon.php
CrFramework_Form_Element_ElementCommon::init($this, $this->_cssClass);
$this->setAttrib('rows', $this->_rows);
$this->setAttrib('cols', $this->_cols);
}
示例3: init
/**
* Initialisiert das Formularelement.
*
* Fügt PrefixPath für angepasste OPUS Dekoratoren hinzu.
*/
public function init()
{
parent::init();
// TODO move to setDefaultAttribs()
if (is_null($this->getAttrib('rows'))) {
$this->setAttrib('rows', 6);
}
if (is_null($this->getAttrib('cols'))) {
$this->setAttrib('cols', 70);
}
$this->addPrefixPath('Form_Decorator', 'Form/Decorator', Zend_Form::DECORATOR);
}
示例4: init
/**
* Initialize object; inherited from Zend_Form_Element_Textarea
*
* @return void
*/
public function init()
{
parent::init();
$this->setAttrib('class', 'tinymce')->setDecorators(array('Composite'))->addFilter('StripSlashes');
}
示例5: init
/**
* Initialize object; inherited from Zend_Form_Element_Textarea
*
* @return void
*/
public function init()
{
parent::init();
$this->setAttribs(array('id' => 'wysiwyg', 'class' => 'wysiwyg'))->setDecorators(array('Composite'))->addFilter('StripSlashes');
}
示例6: init
/**
* Initialize object; inherited from Zend_Form_Element_Textarea
*
* @return void
*/
public function init()
{
$form = new Digitalus_Form();
parent::init();
$this->setAttrib('class', 'fckeditor')->setDecorators(array('Composite'))->addFilter('StripSlashes');
}
示例7: init
public function init()
{
parent::init();
$theme = array('theme' => 'advanced', 'theme_advanced_buttons1' => "bold,italic,underline,separator,anchor,image,separator,bullist,numlist,separator,undo,redo,separator,tablecontrols,separator,cleanup,code", 'theme_advanced_buttons2' => '', 'theme_advanced_buttons3' => '', 'theme_advanced_toolbar_location' => "top", 'theme_advanced_toolbar_align' => "center", 'theme_advanced_statusbar_location' => "bottom", 'theme_advanced_resizing' => "true");
$this->setOptions(array('editorOptions' => array('plugins' => 'table') + $theme));
}