예제 #1
0
	public function __construct($forcedValue = NULL)
	{
		parent::__construct();
		$this->control->type = 'hidden';
		$this->value = (string) $forcedValue;
		$this->forcedValue = $forcedValue;
	}
예제 #2
0
파일: SelectBox.php 프로젝트: krecek/nrsn
	/**
	 * @param  string  label
	 * @param  array   items from which to choose
	 * @param  int     number of rows that should be visible
	 */
	public function __construct($label = NULL, array $items = NULL, $size = NULL)
	{
		parent::__construct($label);
		$this->control->setName('select');
		$this->control->size = $size > 1 ? (int) $size : NULL;
		if ($items !== NULL) {
			$this->setItems($items);
		}
	}
예제 #3
0
파일: CBTree.php 프로젝트: oaki/demoshop
 /**
  * @param  string  label
  * @param  TreeView   options from which to choose
  */
 public function __construct($label, TreeView $tree)
 {
     parent::__construct($label);
     $this->control->type = 'checkbox';
     $this->container = NHtml::el();
     if ($tree !== NULL) {
         $this->setItems($tree);
     }
 }
예제 #4
0
	/**
	 * @param  string  label
	 * @param  array   options from which to choose
	 */
	public function __construct($label = NULL, array $items = NULL)
	{
		parent::__construct($label);
		$this->control->type = 'radio';
		$this->container = NHtml::el();
		$this->separator = NHtml::el('br');
		if ($items !== NULL) {
			$this->setItems($items);
		}
	}
예제 #5
0
파일: Button.php 프로젝트: krecek/nrsn
	/**
	 * @param  string  caption
	 */
	public function __construct($caption = NULL)
	{
		parent::__construct($caption);
		$this->control->type = 'button';
	}
예제 #6
0
	/**
	 * @param  string  label
	 */
	public function __construct($label = NULL)
	{
		parent::__construct($label);
		$this->control->type = 'file';
	}
예제 #7
0
파일: Checkbox.php 프로젝트: krecek/nrsn
	/**
	 * @param  string  label
	 */
	public function __construct($label = NULL)
	{
		parent::__construct($label);
		$this->control->type = 'checkbox';
		$this->value = FALSE;
	}
예제 #8
0
파일: TextBase.php 프로젝트: krecek/nrsn
	/**
	 * @param  string  label
	 */
	public function __construct($label = NULL)
	{
		parent::__construct($label);
		$this->addFilter($this->sanitize);
	}