Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 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);
 }
Example #4
0
 protected function parseVars($vars)
 {
     return parent::parseVars(array_merge(array('DOM_ID' => $this->getInputId(), 'INPUT_NAME' => $this->getInputName(), 'STYLE' => $this->buildDomStyles(), 'CLASS' => $this->buildDomClass(), 'CLASSES' => $this->getDomClass(), 'SELECTORS' => $this->buildSelectors(), 'VALUE' => htmlspecialchars($this->dataValue, ENT_COMPAT, 'UTF-8'), 'MESSAGE' => $this->buildValidatorMessage(), 'VALIDOR_ICON' => $this->buildValidatorIcon(), 'JSON_REL' => htmlspecialchars($this->jsonArgs(), ENT_COMPAT, 'UTF-8')), $vars));
 }
Example #5
0
 function __construct($args)
 {
     parent::__construct($args);
     $this->arg('fields', 2, $args);
     $this->arg('selectors', 3, $args);
 }