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


PHP TextareaField::__construct方法代碼示例

本文整理匯總了PHP中TextareaField::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP TextareaField::__construct方法的具體用法?PHP TextareaField::__construct怎麽用?PHP TextareaField::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TextareaField的用法示例。


在下文中一共展示了TextareaField::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * @see TextareaField::__construct()
  */
 public function __construct($name, $title = null, $rows = 30, $cols = 20, $value = '', $form = null)
 {
     parent::__construct($name, $title, $rows, $cols, $value, $form);
     $this->addExtraClass('typography');
     $this->addExtraClass('htmleditor');
     self::include_js();
 }
開發者ID:Raiser,項目名稱:Praktikum,代碼行數:10,代碼來源:HtmlEditorField.php

示例2: __construct

	/**
	 * @see TextareaField::__construct()
	 */
	public function __construct($name, $title = null, $value = '') {
		if(count(func_get_args()) > 3) Deprecation::notice('3.0', 'Use setRows() and setCols() instead of constructor arguments');

		parent::__construct($name, $title, $value);
		
		self::include_js();
	}
開發者ID:redema,項目名稱:sapphire,代碼行數:10,代碼來源:HtmlEditorField.php

示例3: __construct

 /**
  * Creates a new HTMLEditorField.
  * @see TextareaField::__construct()
  *
  * @param string $name The internal field name, passed to forms.
  * @param string $title The human-readable field label.
  * @param mixed $value The value of the field.
  * @param string $config HTMLEditorConfig identifier to be used. Default to the active one.
  */
 public function __construct($name, $title = null, $value = '', $config = null)
 {
     parent::__construct($name, $title, $value);
     if ($config) {
         $this->setEditorConfig($config);
     }
     $this->setRows($this->config()->default_rows);
 }
開發者ID:jacobbuck,項目名稱:silverstripe-framework,代碼行數:17,代碼來源:HTMLEditorField.php

示例4: __construct

 public function __construct($config, $name, $title = null, $rows = 30, $cols = 20, $value = '', $form = null)
 {
     // Skip the HtmlEditorField's constructor
     TextareaField::__construct($name, $title, $rows, $cols, $value, $form);
     $this->addExtraClass('typography');
     $this->addExtraClass("htmleditor{$config}");
     self::include_js($config);
 }
開發者ID:helpfulrobot,項目名稱:sunnysideup-mysite-ssu-flava,代碼行數:8,代碼來源:HTMLEditorFieldSmall.php

示例5: __construct

 public function __construct($name, $title = null, $extraAttributes = null, $rows = 5, $cols = 20, $value = "", $form = null)
 {
     if (is_array($extraAttributes)) {
         $this->extraAttributes = $extraAttributes;
     }
     $this->rows = $rows;
     $this->cols = $cols;
     parent::__construct($name, $title, $value, $form);
 }
開發者ID:helpfulrobot,項目名稱:heyday-silverstripe-flexiblefields,代碼行數:9,代碼來源:FlexibleTextareaField.php

示例6:

 function __construct($name, $title = null, $value = null)
 {
     parent::__construct($name, $title, $value);
     Requirements::javascript(FORM_EXTRAS_PATH . '/javascript/tinymce/tinymce.min.js');
     $lang = i18n::get_lang_from_locale(i18n::get_locale());
     if ($lang != 'en') {
         Requirements::javascript(FORM_EXTRAS_PATH . '/javascript/tinymce/langs/' . $lang . '.js');
     }
 }
開發者ID:helpfulrobot,項目名稱:lekoala-silverstripe-form-extras,代碼行數:9,代碼來源:SimpleTinyMceField.php

示例7: array

	function __construct($name, $title = null, $config = array(), $rows = 5, $cols = 55, $value = "", $form = null) {
		parent::__construct($name, $title, $rows, $cols, $value, $form);
		$this->extraClasses = array('hidden');
		if(!empty($config)) {
			foreach($config as $k => $v) {
				if($k == "css") $this->css = $v;
				else if(array_key_exists($k, $this->controls))
					$this->controls[$k] = $v;
			}
		}
	}
開發者ID:notioncollective,項目名稱:stationid,代碼行數:11,代碼來源:SimpleHTMLEditorField.php

示例8: __construct

 public function __construct($name, $title = null, $value = null)
 {
     parent::__construct($name, $title, $value);
     if ($this->getFileManager()) {
         FormExtraJquery::include_jquery();
     }
     Requirements::javascript(FORM_EXTRAS_PATH . '/javascript/tinymce/tinymce.min.js');
     $lang = i18n::get_lang_from_locale(i18n::get_locale());
     if ($lang != 'en') {
         Requirements::javascript(FORM_EXTRAS_PATH . '/javascript/tinymce/langs/' . $lang . '.js');
     }
 }
開發者ID:lekoala,項目名稱:silverstripe-form-extras,代碼行數:12,代碼來源:SimpleTinyMceField.php

示例9: __construct

 /**
  * Creates a new HTMLEditorField.
  * @see TextareaField::__construct()
  *
  * @param string $name The internal field name, passed to forms.
  * @param string $title The human-readable field label.
  * @param mixed $value The value of the field.
  * @param string $config HTMLEditorConfig identifier to be used. Default to the active one.
  */
 public function __construct($name, $title = null, $value = '', $config = null)
 {
     parent::__construct($name, $title, $value);
     $this->editorConfig = $config ? $config : HtmlEditorConfig::get_active_identifier();
 }
開發者ID:ivoba,項目名稱:silverstripe-framework,代碼行數:14,代碼來源:HtmlEditorField.php

示例10: __construct

 /**
  * @see TextareaField::__construct()
  */
 public function __construct($name, $title = null, $value = '')
 {
     parent::__construct($name, $title, $value);
     self::include_js();
 }
開發者ID:hemant-chakka,項目名稱:awss,代碼行數:8,代碼來源:HtmlEditorField.php

示例11: __construct

 /**
  * @see TextareaField::__construct()
  */
 public function __construct($name, $title = null, $type = 'wiki', $rows = 30, $cols = 20, $value = '', $form = null)
 {
     parent::__construct($name, $title, $rows, $cols, $value, $form);
     $this->markupType = $type;
 }
開發者ID:nyeholt,項目名稱:silverstripe-simplewiki,代碼行數:8,代碼來源:MarkItUpField.php

示例12: __construct

 public function __construct($name, $title = null, $value = null)
 {
     parent::__construct($name, $title, $value);
     $this->setLimit(150);
 }
開發者ID:helpfulrobot,項目名稱:lekoala-silverstripe-form-extras,代碼行數:5,代碼來源:LimitedTextareaField.php

示例13: __construct

 /**
  * Constructor
  */
 public function __construct($name, $title = null, $value = null)
 {
     parent::__construct($name, $title, $value);
     // preload scenarios
     self::preloadScenarios();
 }
開發者ID:silverbusters,項目名稱:silverstripe-simplelistfield,代碼行數:9,代碼來源:SimpleListField.php

示例14: array

 function __construct($name, $title = null, $config = array(), $rows = 15, $cols = 55, $value = "", $form = null)
 {
     parent::__construct($name, $title, $rows, $cols, $value, $form);
 }
開發者ID:SustainableCoastlines,項目名稱:loveyourwater,代碼行數:4,代碼來源:SimpleTinyMCEField.php

示例15: __construct

 public function __construct($name, $title = null, $value = '')
 {
     parent::__construct($name, $title, $value);
     self::requirements();
 }
開發者ID:wehe,項目名稱:silverstripe-sirtrevor,代碼行數:5,代碼來源:SirTrevorEditor.php


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