Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_osmembership/libraries/mpf/form/field/textarea.php
Ðазад
<?php /** * @package MPF * @subpackage Form * * @copyright Copyright (C) 2016 Ossolution Team, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('_JEXEC') or die; /** * Form Field class for the Joomla MPF. * Supports a textarea inut. * * @package Joomla.MPF * @subpackage Form */ class MPFFormFieldTextarea extends MPFFormField { protected $type = 'Textarea'; /** * Visable attributes, which will be displayed on field settings form * * @var array */ public static $visibleProperties = ['rows', 'cols', 'place_holder', 'max_length']; /** * Required properties, which will be used for js validate before the field is saved * * @var array */ public static $requiredProperties = []; /** * MPFFormFieldText constructor. * * @param OSMembershipTableField $row * @param mixed $value * @param string $fieldSuffix */ public function __construct($row, $value, $fieldSuffix) { parent::__construct($row, $value, $fieldSuffix); if ($row->place_holder) { $this->attributes['placeholder'] = $row->place_holder; } if ($row->max_length) { $this->attributes['maxlength'] = $row->max_length; } if ($row->rows) { $this->attributes['rows'] = $row->rows; } if ($row->cols) { $this->attributes['cols'] = $row->cols; } if ($row->readonly) { $this->attributes['readonly'] = true; } } /** * Get the field input markup. * * @param OSMembershipHelperBootstrap $bootstrapHelper * * @return string */ public function getInput($bootstrapHelper = null) { // Add uk-textarea to input elements if ($bootstrapHelper && $bootstrapHelper->getFrameworkClass('uk-textarea')) { $this->addClass('uk-textarea'); } if ($bootstrapHelper && $bootstrapHelper->getFrameworkClass('form-control')) { $this->addClass('form-control'); } $data = [ 'name' => $this->name, 'value' => $this->value, 'attributes' => $this->buildAttributes(), 'row' => $this->row, ]; return OSMembershipHelperHtml::loadCommonLayout('fieldlayout/textarea.php', $data); } /** * Overide getRawDisplayValu * * @return mixed|string */ public function getRawDisplayValue() { if ($this->value) { return nl2br($this->value); } return $this->value; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка