/** * Constructor * * @param array $options */ public function __construct($options = array()) { if (isset($options['checked'])) { $this->checked = $options['checked']; } else { if (isset($options['value']) && ($options['value'] === true || $options['value'] === 1)) { $this->checked = true; } else { $this->checked = false; } } if (isset($options['text']) && $options['text']) { $this->setText($options['text']); } if (isset($options['options']) && isset($options['options']['text']) && $options['options']['text']) { $this->setText($options['options']['text']); } if (isset($options['value']) && $options['value']) { $this->setChecked(1); } if (isset($options['postValue']) && $options['postValue']) { $this->setPostValue($options['postValue']); } parent::__construct($options); }
/** * Constructor * * @param array $options */ public function __construct($options = array()) { parent::__construct($options); $this->removeAttribute('id'); // This field has two inputs. We need to implement support of two different ID's or remove such feature :) $this->addValidator('Antispam'); }
public function __construct($options = array()) { if (!empty($options['optionName'])) { $this->optionName = $options['optionName']; } parent::__construct($options); }
public function __construct($options = array()) { if (isset($options['fileLimit'])) { $this->fileLimit = $options['fileLimit']; } return parent::__construct($options); }
/** * Constructor * * @param array $options */ public function __construct($options = array()) { parent::__construct($options); if (!empty($options['html'])) { $this->setHtml($options['html']); } }
/** * Constructor * * @param array $options */ public function __construct($options = array()) { parent::__construct($options); if (!empty($options['mode'])) { $this->setMode($options['mode']); } if (!empty($options['theme'])) { $this->setTheme($options['theme']); } }
/** * Constructor * * @param array $options */ public function __construct($options = array()) { if (isset($options['values'])) { $this->values = $options['values']; } else { $this->values = array(); } parent::__construct($options); $this->stolenId = $this->getAttribute('id'); $this->removeAttribute('id'); // We need to put id only on the first input. So we will remove it from attributes list. And put it temporary to stolenId. }
/** * Constructor * * @param array $options */ public function __construct($options = array()) { $this->value = array(); if (isset($options['values'])) { $this->values = $options['values']; } else { $this->values = array(); } parent::__construct($options); $this->stolenId = $this->getAttribute('id'); $this->removeAttribute('id'); }
public function __construct($options = array()) { if (isset($options['fileLimit'])) { $this->fileLimit = $options['fileLimit']; } if (isset($options['preview'])) { $this->preview = $options['preview']; } if (isset($options['secure'])) { $this->secure = (bool) $options['secure']; } if (isset($options['path'])) { $this->path = $options['path']; } if (isset($options['filter'])) { $this->filter = $options['filter']; } if (isset($options['filterExtensions'])) { $this->filterExtensions = $options['filterExtensions']; } parent::__construct($options); }
/** * Constructor * * @param array $options */ public function __construct($options = array()) { parent::__construct($options); $this->addValidator('Email'); }
/** * Constructor * * @param array $options */ public function __construct($options = array()) { $this->captchaInit = array('tempfolder' => ipFile('file/tmp/'), 'TTF_folder' => ipFile('Ip/Lib/HnCaptcha/fonts/'), 'TTF_RANGE' => 'AUTO', 'chars' => 5, 'minsize' => 25, 'maxsize' => 30, 'maxrotation' => 25, 'use_only_md5' => false, 'noise' => true, 'websafecolors' => false, 'refreshlink' => true, 'lang' => 'en', 'maxtry' => 3, 'badguys_url' => '/', 'secretstring' => md5(ipConfig()->get('sessionName')), 'secretposition' => 9); $this->addValidator('Required'); parent::__construct($options); }