本文整理汇总了PHP中Field::push方法的典型用法代码示例。如果您正苦于以下问题:PHP Field::push方法的具体用法?PHP Field::push怎么用?PHP Field::push使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Field
的用法示例。
在下文中一共展示了Field::push方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: push
public function push($name, $value = null)
{
if ($name == 'multiple') {
$this->multiple = true;
}
parent::push($name, $value);
}
示例2: push
public function push($var, $value = null)
{
if ($var == 'name' || $var == 'required' || $var == 'mapping') {
parent::push($var, $value);
} else {
$this->pushSave[$var] = $value;
}
}
示例3: push
public function push($name, $value = null)
{
if ($name === 'checked') {
$this->checked = true;
} elseif ($name === 'value') {
$this->checkedValue = $value;
$this->setAttribute('value', $value);
} else {
parent::push($name, $value);
}
}
示例4: push
public function push($name, $value = null)
{
if ($name == 'selected') {
$this->selected = true;
if (null !== $this->parent) {
$this->parent->setValue($this->value);
}
} else {
parent::push($name, $value);
}
}
示例5: push
public function push($var, $value = null)
{
switch ($var) {
case 'source':
$this->source = $value;
break;
default:
parent::push($var, $value);
break;
}
}
示例6: push
public function push($name, $value = null)
{
if ($name == 'checked') {
$this->checked = true;
$this->setAttribute('checked', 'checked');
if (null !== $this->parent) {
$this->parent->setValue($this->value);
}
} else {
parent::push($name, $value);
}
}
示例7: push
public function push($var, $value = null)
{
switch ($var) {
case 'maxsize':
$this->maxsize = $value;
break;
case 'filetype':
$this->filetype = $value;
break;
default:
parent::push($var, $value);
break;
}
}
示例8: push
public function push($var, $value = null)
{
switch ($var) {
case 'type':
break;
case 'source':
$this->source = $value;
break;
default:
$this->pushSave[$var] = $value;
parent::push($var, $value);
break;
}
}
示例9: push
public function push($name, $value = null)
{
switch ($name) {
case 'min':
$this->min = $value;
$this->attributes['min'] = $value;
break;
case 'max':
$this->max = $value;
$this->attributes['max'] = $value;
break;
case 'step':
$this->step = $value;
$this->attributes['step'] = $value;
break;
}
parent::push($name, $value);
}