コード例 #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
ファイル: RadioList.php プロジェクト: rinaldinoor/scoreBoard
	/**
	 * @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);
	}