function __construct($args) { parent::__construct($args); $this->arg('domId', null, $args); $this->arg('label', null, $args); $this->arg('domClass', null, $args); $this->arg('selectors', null, $args); }
function __construct($args) { parent::__construct($args); $this->arg('dataKey', null, $args); $this->arg('dataObject', null, $args); $key = $this->dataKey; $this->arg('dataValue', null, $args, $this->dataObject && $key ? isset($this->dataObject->{$key}) ? $this->dataObject->{$key} : null : null); $this->arg('domID', null, $args, $this->dataKey); $this->arg('values', null, $args, $this->values); }
function __construct($args) { parent::__construct($args); $this->arg('htmlFieldLabel', 2, $args); $this->arg('htmlFieldInput', 3, $args); $this->arg('domClass', 4, $args); $defaultSelectors = array('width' => '140', 'align' => 'right', 'class' => 'key'); $this->arg('labelSelectors', 5, $args, $defaultSelectors); $this->arg('fieldSelectors', 6, $args); }
function __construct($args) { parent::__construct($args); $this->arg('dataKey', null, $args); $this->arg('dataObject', null, $args); $key = $this->dataKey; $this->arg('dataValue', null, $args, $this->dataObject && $key ? isset($this->dataObject->{$key}) ? $this->dataObject->{$key} : null : null); $this->arg('domId', null, $args); $this->arg('domName', null, $args); $this->arg('formControl', null, $args); $this->arg('formGroup', null, $args); $this->arg('required', null, $args, false); $this->arg('validatorHandler', null, $args); $this->arg('dateFormat', null, $args); $this->arg('validatorRegex', null, $args); $this->arg('validatorMsgInfo', null, $args); $this->arg('validatorMsgIncorrect', null, $args, "PLG_JDOM_VALIDATOR_INCORRECT"); $this->arg('validatorMsgRequired', null, $args, "PLG_JDOM_VALIDATOR_REQUIRED"); $this->arg('placeholder', null, $args); $this->arg('title', null, $args); $this->arg('hidden', null, $args); $this->arg('type', null, $args, 'text'); if (isset($this->dateFormat)) { $this->validatorRegex = $this->strftime2regex($this->dateFormat); } if (isset($this->validatorRegex)) { //Last char is a 'i' modifier if (substr(strrev($this->validatorRegex), 0, 1) == 'i') { $this->validatorRegex = substr($this->validatorRegex, 0, strlen($this->validatorRegex) - 1); $this->validatorInsensitive = true; $this->validatorModifiers = 'i'; } //Trim slashes $this->validatorRegex = trim($this->validatorRegex, "/"); } if ($this->required) { $this->addClass('required'); } if ($this->validatorHandler) { $this->addClass('validate-' . $this->validatorHandler); } if ($this->placeholder) { $this->addSelector('placeholder', $this->JText($this->placeholder)); } if ($this->title) { $this->addSelector('title', $this->title); } }
function __construct($args) { parent::__construct($args); $this->arg('fields', 2, $args); $this->arg('selectors', 3, $args); }