/** * Constructor. * * @param string $name */ public function __construct($name, $value = 0) { parent::__construct($name); $this->count = MATCHMAKING_BOL_Service::MAX_COEFFICIENT; $this->setValue($value); $this->addValidator(new CoefficientValidator()); }
public function __construct($atts = null) { parent::__construct($atts); // Some defaults $this->_attributes['class'] = 'formelement formcheckboxinput'; $this->_validattributes = array('accesskey', 'checked', 'dir', 'disabled', 'id', 'lang', 'name', 'required', 'tabindex', 'style', 'value'); }
public function __construct($atts = null) { parent::__construct($atts); // Some defaults $this->_attributes['class'] = 'formelement formtextareainput'; $this->_validattributes = array('accesskey', 'dir', 'disabled', 'id', 'lang', 'name', 'placeholder', 'readonly', 'required', 'tabindex', 'rows', 'cols', 'style', 'class'); }
public function __construct($atts = null) { parent::__construct($atts); // Some defaults $this->_attributes['class'] = 'formelement formpasswordinput'; $this->_validattributes = array('accesskey', 'autocomplete', 'dir', 'disabled', 'id', 'lang', 'name', 'required', 'size', 'tabindex', 'width', 'height', 'value', 'style'); }
public function __construct($atts = null) { // Some defaults $this->_attributes = array('class' => 'formelement multifileinput', 'previewdimensions' => '200x100', 'browsable' => false, 'basedir' => ''); $this->_validattributes = array(); $this->requiresupload = true; parent::__construct($atts); }
public function __construct($name) { parent::__construct($name); $tagFieldName = 'input_' . $this->getName() . '_tag_field'; $this->tag = new TagsInputField($tagFieldName); $this->tag->setMinChars(1); $this->value = array(); }
public function __construct($atts = null) { parent::__construct($atts); // Some defaults $this->_attributes['class'] = 'formelement formwysiwyginput tinymce'; $this->_attributes['rows'] = '25'; // Note, I'm taking the required flag out from here; tinymce doesn't support it. $this->_validattributes = array('accesskey', 'dir', 'disabled', 'id', 'lang', 'name', 'readonly', 'tabindex', 'rows', 'cols', 'style', 'class'); }
public function __construct($atts = null) { parent::__construct($atts); // Some defaults $this->_attributes['class'] = 'formelement formcaptchainput'; if (!$this->get('name')) { $this->set('name', 'captcha'); } $this->_validattributes = array('id', 'name', 'required', 'tabindex', 'style'); }
/** * Constructor. * * @param string $name */ public function __construct($name, $invitation = null, $context = MCOMPOSE_BOL_Service::CONTEXT_USER) { parent::__construct($name); if (!empty($invitation)) { $this->setInvitation($invitation); } $this->context = $context; $this->addClass('mc-user-select'); $this->addClass('jhtmlarea'); $this->service = MCOMPOSE_BOL_Service::getInstance(); }
public function __construct($atts = null) { $defaults = ['class' => 'formelement geoaddressforminput', 'use_label' => true]; parent::__construct($atts); // Some defaults foreach ($defaults as $k => $v) { if (!isset($this->_attributes[$k])) { $this->_attributes[$k] = $v; } } }
public function __construct($atts = null) { parent::__construct($atts); // Some defaults $defaults = [ 'class' => 'formelement formbuttoninput', ]; foreach($defaults as $k => $v){ if(!isset($this->_attributes[$k])){ $this->_attributes[$k] = $v; } } $this->_validattributes = array('accesskey', 'dir', 'disabled', 'id', 'lang', 'name', 'size', 'tabindex', 'width', 'height', 'value', 'style'); }
public function __construct($atts = null){ parent::__construct($atts); // Some defaults $defaults = [ 'class' => 'formelement formuserinput', ]; foreach($defaults as $k => $v){ if(!isset($this->_attributes[$k])){ $this->_attributes[$k] = $v; } } $this->_validattributes = array( 'accesskey', 'autocomplete', 'dir', 'disabled', 'lang', 'maxlength', 'placeholder', 'required', 'size', 'tabindex', 'width', 'height', 'style' ); }
/** * Constructor * * @param string $name * @param string $selectedValue * @param Option $optionsTags * @param string or array $options * @author Justin Palmer */ function __construct($name, $selectedValue, $optionTags, $options = null) { $args = func_get_args(); $name = array_shift($args); $selectedValue = array_shift($args); $options = array_pop($args); $options = $this->preparePrompt($options); if ($args[0] !== null) { foreach ($args as $option) { if (!$option instanceof Option) { throw new Exception("Invalid tag for element 'Select'. Only 'Option' elements may be passed."); } if ($option->value === $selectedValue) { $option->selected = true; } $this->display .= $option . "\n"; } } parent::__construct($name, '', $options); }
public function __construct($atts = null) { parent::__construct($atts); // Some defaults $this->_attributes['class'] = 'formelement formtextinput'; $this->_validattributes = [ 'accesskey', 'autocomplete', 'dir', 'disabled', 'height', 'id', 'lang', 'maxlength', 'name', 'placeholder', 'readonly', 'required', 'size', 'style', 'tabindex', 'value', 'width', ]; }
/** * Constructor * * @param string $name Database column name * @param string $label Label content * @param array $options Array containing values available for selection */ public function __construct($name, $label, $options = array()) { parent::__construct($name); $this->setLabel($label); $this->setOptions($options); }
function __construct($initial_value = '', $name = null) { parent::__construct('select', $initial_value, $name, true); }
/** * Constructor * * @param string name of the element. * @param array attributes to set to the element. Default is an empty array. */ public function __construct($name, $attributes = array()) { parent::__construct($name, $attributes); $this['type'] = 'submit'; $this->UseNameAsDefaultValue(); }
public function __construct($name) { parent::__construct($name); }
/** * @param string $name */ public function __construct($name, $changeUserAvatar = true) { parent::__construct($name); $this->changeUserAvatar = $changeUserAvatar; $this->addAttribute('type', 'file'); }
function __construct($initial_value = '', $name = null) { parent::__construct('textarea', $initial_value, $name, true); $this->setValidator(array()); $this->config = array('mode' => 'exact', 'elements' => $this->getId(), 'theme' => 'advanced', 'theme_advanced_buttons1' => 'bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,link,unlink,image,markettoimages,media,separator,bullist,formatselect,forecolor,backcolor,emotions,code', 'theme_advanced_buttons2' => '', 'theme_advanced_buttons3' => '', 'relative_urls' => false, 'height' => '250', 'verify_html' => true, 'cleanup' => true, 'document_base_url' => UrlHelper::get('/'), 'plugins' => 'advimage,media,emotions,paste', 'content_css' => UrlHelper::resource('/phaxsi/extensions/tinycss.css'), 'theme_advanced_statusbar_location' => 'bottom', 'theme_advanced_resizing' => true, 'theme_advanced_resize_horizontal' => false, 'theme_advanced_toolbar_location' => 'top'); }
public function __construct($name) { parent::__construct($name); $this->value = array(); $this->invLabel = OW::getLanguage()->text('base', 'tags_input_field_invitation'); $this->delimiterChars = array('.'); }
public function __construct($name) { parent::__construct($name); OW::getDocument()->addScript(OW::getPluginManager()->getPlugin('admin')->getStaticJsUrl() . 'color_picker.js'); }
public function __construct($atts = null) { parent::__construct($atts); // Some defaults $this->_attributes['class'] = 'formelement formaccessstringinput formradioinput'; }
public function __construct($method = "POST", $action = "", $name = "", $id = null) { if ($id == null) { $id = $name; } parent::__construct("form", $name, null, "", $id); $this->setAttribute("method", $method); $this->setAttribute("action", $action); }
/** * Constructor. * * @param string $name */ public function __construct($name) { parent::__construct($name); $this->militaryTime = false; }
public function __construct($name, $mobile = false) { parent::__construct($name); $this->mobile = (bool) $mobile; }
/** * Constructor. * * @param string $name */ public function __construct($name) { parent::__construct($name); $this->addAttribute('type', 'file'); }
/** * Constructor. * * @param string $name */ public function __construct($name, $uniqName, $slideId = null) { parent::__construct($name); $this->uniqName = $uniqName; $this->slideId = $slideId; }
function __construct($name) { parent::__construct($name); $this->value = array(); $this->selectedValueList = array(); }
public function __construct($atts = null) { parent::__construct($atts); // Some defaults $this->_validattributes = array('id', 'lang', 'name', 'value'); }