本文整理汇总了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();
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例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');
}
}
示例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;
}
}
}
示例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');
}
}
示例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();
}
示例10: __construct
/**
* @see TextareaField::__construct()
*/
public function __construct($name, $title = null, $value = '')
{
parent::__construct($name, $title, $value);
self::include_js();
}
示例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;
}
示例12: __construct
public function __construct($name, $title = null, $value = null)
{
parent::__construct($name, $title, $value);
$this->setLimit(150);
}
示例13: __construct
/**
* Constructor
*/
public function __construct($name, $title = null, $value = null)
{
parent::__construct($name, $title, $value);
// preload scenarios
self::preloadScenarios();
}
示例14: array
function __construct($name, $title = null, $config = array(), $rows = 15, $cols = 55, $value = "", $form = null)
{
parent::__construct($name, $title, $rows, $cols, $value, $form);
}
示例15: __construct
public function __construct($name, $title = null, $value = '')
{
parent::__construct($name, $title, $value);
self::requirements();
}