本文整理匯總了PHP中HtmlInput::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP HtmlInput::__construct方法的具體用法?PHP HtmlInput::__construct怎麽用?PHP HtmlInput::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類HtmlInput
的用法示例。
在下文中一共展示了HtmlInput::__construct方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct($identifier, $label = NULL)
{
parent::__construct($identifier);
$this->setProperty("type", "checkbox");
$this->setProperty("class", "");
if (isset($label)) {
$this->setLabel($label, false);
}
}
示例2:
function __construct($name = "", $value = "", $p_id = "")
{
parent::__construct($name, $value, $p_id);
$this->fct = 'update_value';
$this->dblclick = '';
$this->callback = 'null';
$this->javascript = '';
// the pa_id to filter
$this->plan = 0;
// or the container of the Plan Analytic which contains the pa_id
$this->plan_ctl = "";
}
示例3:
function __construct($name = '', $value = '', $p_id = "")
{
parent::__construct($name, $value, $p_id);
$this->style = ' class="input_text" ';
}
示例4: __construct
public function __construct($name, $value = null)
{
$value = is_null($value) ? 1 : $value;
parent::__construct($name, 'checkbox', $value);
}
示例5: __construct
public function __construct($p_name = "", $p_value = "")
{
parent::__construct($p_name, $p_value);
$this->style = "display:inline";
}
示例6:
function __construct($name = "", $value = "", $p_id = "")
{
parent::__construct($name, $value);
$this->fct = 'update_value';
$this->dblclick = '';
$this->callback = 'null';
$this->javascript = '';
$this->id = $p_id != "" ? $p_id : $name;
$this->choice = null;
$this->indicator = null;
$this->choice_create = 1;
$this->autocomplete = 1;
$this->style = ' style="vertical-align:50%"';
}