コード例 #1
0
ファイル: coefficient.php プロジェクト: hardikamutech/loov
 /**
  * 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());
 }
コード例 #2
0
	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');
	}
コード例 #3
0
	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');
	}
コード例 #4
0
	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');
	}
コード例 #5
0
 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);
 }
コード例 #6
0
ファイル: form_fields.php プロジェクト: ZyXelP/oxwall
 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();
 }
コード例 #7
0
 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');
 }
コード例 #8
0
 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');
 }
コード例 #9
0
ファイル: user_select_field.php プロジェクト: vazahat/dudex
 /**
  * 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();
 }
コード例 #10
0
 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;
         }
     }
 }
コード例 #11
0
	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');
	}
コード例 #12
0
	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'
		);
	}
コード例 #13
0
ファイル: Select.php プロジェクト: ToddBudde/phrails
 /**
  * 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);
 }
コード例 #14
0
	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',
		];
	}
コード例 #15
0
ファイル: dropdown_class.php プロジェクト: aselvan/PHPKnock
 /**
  * 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);
 }
コード例 #16
0
 function __construct($initial_value = '', $name = null)
 {
     parent::__construct('select', $initial_value, $name, true);
 }
コード例 #17
0
ファイル: Form.php プロジェクト: rud0lph/HAL
 /**
  * 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();
 }
コード例 #18
0
ファイル: theme.php プロジェクト: ZyXelP/oxwall
 public function __construct($name)
 {
     parent::__construct($name);
 }
コード例 #19
0
ファイル: avatar_field.php プロジェクト: ZyXelP/oxwall
 /**
  * @param string $name
  */
 public function __construct($name, $changeUserAvatar = true)
 {
     parent::__construct($name);
     $this->changeUserAvatar = $changeUserAvatar;
     $this->addAttribute('type', 'file');
 }
コード例 #20
0
 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');
 }
コード例 #21
0
ファイル: form_element.php プロジェクト: vBulleteen/oxwall
 public function __construct($name)
 {
     parent::__construct($name);
     $this->value = array();
     $this->invLabel = OW::getLanguage()->text('base', 'tags_input_field_invitation');
     $this->delimiterChars = array('.');
 }
コード例 #22
0
ファイル: form_fields.php プロジェクト: vazahat/dudex
 public function __construct($name)
 {
     parent::__construct($name);
     OW::getDocument()->addScript(OW::getPluginManager()->getPlugin('admin')->getStaticJsUrl() . 'color_picker.js');
 }
コード例 #23
0
	public function __construct($atts = null) {
		parent::__construct($atts);

		// Some defaults
		$this->_attributes['class'] = 'formelement formaccessstringinput formradioinput';
	}
コード例 #24
0
ファイル: Form.php プロジェクト: decima/M2-platine
 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);
 }
コード例 #25
0
ファイル: base.php プロジェクト: jorgemunoz8807/havanabook
 /**
  * Constructor.
  *
  * @param string $name
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->militaryTime = false;
 }
コード例 #26
0
ファイル: theme.php プロジェクト: vazahat/dudex
 public function __construct($name, $mobile = false)
 {
     parent::__construct($name);
     $this->mobile = (bool) $mobile;
 }
コード例 #27
0
ファイル: ajax_file_upload.php プロジェクト: vazahat/dudex
 /**
  * Constructor.
  *
  * @param string $name
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->addAttribute('type', 'file');
 }
コード例 #28
0
ファイル: upload_slide_field.php プロジェクト: vazahat/dudex
 /**
  * Constructor.
  *
  * @param string $name
  */
 public function __construct($name, $uniqName, $slideId = null)
 {
     parent::__construct($name);
     $this->uniqName = $uniqName;
     $this->slideId = $slideId;
 }
コード例 #29
0
ファイル: form.class.php プロジェクト: rhertzog/lcs
 function __construct($name)
 {
     parent::__construct($name);
     $this->value = array();
     $this->selectedValueList = array();
 }
コード例 #30
0
	public function  __construct($atts = null) {
		parent::__construct($atts);

		// Some defaults
		$this->_validattributes = array('id', 'lang', 'name', 'value');
	}