當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Form_Element_Textarea::init方法代碼示例

本文整理匯總了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');
     }
 }
開發者ID:google-code-backups,項目名稱:vlc-shares,代碼行數:7,代碼來源:Textarea.php

示例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);
 }
開發者ID:xinghao,項目名稱:shs,代碼行數:13,代碼來源:Textarea.php

示例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);
 }
開發者ID:alexukua,項目名稱:opus4,代碼行數:17,代碼來源:Textarea.php

示例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');
 }
開發者ID:laiello,項目名稱:digitalus-cms,代碼行數:10,代碼來源:Tinymce.php

示例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');
 }
開發者ID:laiello,項目名稱:digitalus-cms,代碼行數:10,代碼來源:Wysiwyg.php

示例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');
 }
開發者ID:laiello,項目名稱:digitalus-cms,代碼行數:11,代碼來源:Fckeditor.php

示例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));
 }
開發者ID:juokaz,項目名稱:php-examples,代碼行數:6,代碼來源:TinyMce.php


注:本文中的Zend_Form_Element_Textarea::init方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。