当前位置: 首页>>代码示例>>PHP>>正文


PHP DataObject::getFrontEndFields方法代码示例

本文整理汇总了PHP中DataObject::getFrontEndFields方法的典型用法代码示例。如果您正苦于以下问题:PHP DataObject::getFrontEndFields方法的具体用法?PHP DataObject::getFrontEndFields怎么用?PHP DataObject::getFrontEndFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DataObject的用法示例。


在下文中一共展示了DataObject::getFrontEndFields方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getFrontEndFields

 function getFrontEndFields()
 {
     $fields = parent::getFrontEndFields();
     $fields->removeByName("ParentID");
     $fields->removeByName("Name");
     $fields->replaceField("Title", new LiteralField("Title", "<h3>Edit the details for " . $this->Title . "</h3>"));
     return $fields;
 }
开发者ID:helpfulrobot,项目名称:sunnysideup-formfieldexplanations,代码行数:8,代码来源:FormFieldExplanation.php

示例2: getFrontEndFields

 /**
  * Setup the fields for the frontend
  * @param type $params
  * @return FieldList $fields the default FieldList
  */
 public function getFrontEndFields($params = null)
 {
     $fields = parent::getFrontEndFields($params);
     $fields->removeByName(array('MD5Email', 'AkismetMarked', 'Visible', 'ShowGravatar', 'News'));
     $fields->replaceField('Email', EmailField::create('Email', $this->fieldLabel('Email')));
     $fields->replaceField('Comment', TextAreaField::create('Comment', $this->fieldLabel('Comment')));
     $fields->fieldByName('Comment')->setColumns(20)->setRows(10);
     return $fields;
 }
开发者ID:MilesSummers,项目名称:silverstripe-newsmodule,代码行数:14,代码来源:Comment.php

示例3: getFrontEndFields

 public function getFrontEndFields($params = null)
 {
     $fields = parent::getFrontEndFields($params);
     $fields->replaceField('Layout', $dd = DropdownField::create('Layout', null, self::$layouts));
     $dd->setHasEmptyDefault(true);
     $fields->removeByName('InheritPerms');
     $fields->removeByName('OwnerID');
     //		$fields->removeByName('PublicAccess');
     return $fields;
 }
开发者ID:helpfulrobot,项目名称:silverstripe-frontend-dashboards,代码行数:10,代码来源:DashboardPage.php

示例4: getFrontEndFields

 public function getFrontEndFields($params = null)
 {
     $fields = parent::getFrontEndFields($params);
     $fields->removeByName("Identifier");
     $fields->removeByName("ParentID");
     $fields->removeByName("Name");
     $fields->unshift(self::dropdown("Identifier", "Network"));
     $this->extend('updateFrontEndFields', $fields);
     return $fields;
 }
开发者ID:helpfulrobot,项目名称:burnbright-silverstripe-sociallinks,代码行数:10,代码来源:SocialLink.php

示例5: getFrontEndFields

 /**
  * Return fields that should be visible to the user
  * on the front end. These are scaffolded fields
  * with some inappropriate fields removed.
  * 
  * @return object FieldSet object
  */
 public function getFrontEndFields()
 {
     $fields = parent::getFrontEndFields();
     $fields->removeByName('Weight');
     $fields->removeByName('Version');
     $fields->removeByName('ProductID');
     foreach ($fields as $field) {
         $field->setValue($this->getField($field->Name()));
     }
     return $fields;
 }
开发者ID:halkyon,项目名称:silverstripe-ecommerce_experiment,代码行数:18,代码来源:ProductVariation.php

示例6: getFrontEndFields

 public function getFrontEndFields($params = null)
 {
     $fields = parent::getFrontEndFields($params);
     $exludes = array("BouncedCount", "Blacklisted", "ReceivedCount", "ValidateHash", "ValidateHashExpired", "Verified");
     foreach ($exludes as $exclude) {
         $fields->removeByName($exclude);
     }
     return $fields;
 }
开发者ID:helpfulrobot,项目名称:silverstripe-newsletter,代码行数:9,代码来源:Recipient.php

示例7: getFrontEndFields

 public function getFrontEndFields($params = null)
 {
     $fields = parent::getFrontEndFields($params);
     $this->updateFields($fields);
     return $fields;
 }
开发者ID:helpfulrobot,项目名称:silverstripe-australia-frontend-objects,代码行数:6,代码来源:ItemList.php


注:本文中的DataObject::getFrontEndFields方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。