本文整理汇总了PHP中FormField::setForm方法的典型用法代码示例。如果您正苦于以下问题:PHP FormField::setForm方法的具体用法?PHP FormField::setForm怎么用?PHP FormField::setForm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormField
的用法示例。
在下文中一共展示了FormField::setForm方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setForm
public function setForm($form)
{
$this->fieldPageID->setForm($form);
$this->fieldCustomURL->setForm($form);
$this->fieldTitle->setForm($form);
$this->fieldLinkmode->setForm($form);
return parent::setForm($form);
}
示例2: setForm
public function setForm($form)
{
foreach ($this->children as $field) {
$field->setForm($form);
}
return parent::setForm($form);
}
示例3: setForm
public function setForm($form)
{
foreach ($this->composite_fields as $type => $field) {
$field->setForm($form);
}
return parent::setForm($form);
}
示例4: setForm
public function setForm($form)
{
parent::setForm($form);
foreach ($this->children as $child) {
$child->setForm($form);
}
}
示例5: setForm
public function setForm($form)
{
parent::setForm($form);
$this->dateField->setForm($form);
$this->timeField->setForm($form);
$this->timezoneField->setForm($form);
return $this;
}
示例6: setForm
public function setForm($form)
{
$this->child->setForm($form);
$this->checkbox->setForm($form);
if ($this->child instanceof FileField) {
$form->setEncType(Form::ENC_TYPE_MULTIPART);
}
return parent::setForm($form);
}
开发者ID:helpfulrobot,项目名称:ajshort-silverstripe-memberprofiles,代码行数:9,代码来源:CheckableVisibilityField.php
示例7: setForm
public function setForm($form)
{
foreach ($this->children as $f) {
if (is_object($f)) {
$f->setForm($form);
}
}
parent::setForm($form);
return $this;
}
示例8: setForm
public function setForm($form)
{
foreach ($this->getChildren() as $field) {
if ($field instanceof FormField) {
$field->setForm($form);
}
}
parent::setForm($form);
return $this;
}
示例9: setForm
/**
* Include our children in the form too
* {@inheritdoc}
*/
public function setForm($form)
{
parent::setForm($form);
foreach ($this->getChildren() as $childField) {
$childField->setForm($form);
}
return $this;
}
开发者ID:helpfulrobot,项目名称:betterbrief-silverstripe-autocompletefield,代码行数:12,代码来源:AutocompleteField.php
示例10: setForm
function setForm($form) {
foreach($this->children as $f)
if(is_object($f)) $f->setForm($form);
parent::setForm($form);
return $this;
}
示例11: setForm
function setForm($form)
{
$this->fieldSelectedValue->setForm($form);
$this->fieldAlternativeValue->setForm($form);
return parent::setForm($form);
}
示例12: setForm
public function setForm($form)
{
$this->fieldCurrency->setForm($form);
$this->fieldAmount->setForm($form);
return parent::setForm($form);
}
示例13: setForm
public function setForm($form)
{
$form->addExtraClass('.rangeslider-display--form');
return parent::setForm($form);
}