当前位置: 首页>>代码示例>>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;未经允许,请勿转载。