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


PHP FormField::SmallFieldHolder方法代码示例

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


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

示例1: Field

 /**
  * @return string
  */
 function Field($properties = array())
 {
     //Requirements::javascript($this->jquery_UI_JS_location);
     //Requirements::css($this->jquery_UI_CSS_location);
     Requirements::javascript('ecommerce/javascript/EcomBuyableSelectField.js');
     Requirements::customScript($this->getJavascript(), "BuyableSelectField" . $this->id());
     Requirements::themedCSS("BuyableSelectField", 'ecommerce');
     return "<div class=\"fieldgroup\">" . "<div class=\"findBuyable fieldGroupInner\">" . $this->fieldFindBuyable->SmallFieldHolder() . "</div>" . "<div class=\"selectedBuyable fieldGroupInner\">" . $this->fieldSelectedBuyable->SmallFieldHolder() . "</div>" . "</div>";
 }
开发者ID:helpfulrobot,项目名称:sunnysideup-ecommerce,代码行数:12,代码来源:BuyableSelectField.php

示例2: Field

 /**
  * @return string
  */
 function Field()
 {
     if (!$this->form->dataFieldByName("Version")) {
         user_error("You must have a Version field in your form");
     }
     if (!$this->form->dataFieldByName("BuyableClassName")) {
         user_error("You must have a BuyableClassName field in your form");
     }
     if (!$this->form->dataFieldByName("BuyableID")) {
         user_error("You must have a BuyableID field in your form.");
     }
     Requirements::javascript($this->jquery_UI_JS_location);
     Requirements::css($this->jquery_UI_CSS_location);
     Requirements::javascript('ecommerce/javascript/EcomBuyableSelectField.js');
     Requirements::customScript($this->getJavascript(), "BuyableSelectField" . $this->id());
     Requirements::themedCSS("BuyableSelectField");
     return "<div class=\"fieldgroup\">" . "<div class=\"findBuyable fieldGroupInner\">" . $this->fieldFindBuyable->SmallFieldHolder() . "</div>" . "<div class=\"selectedBuyable fieldGroupInner\">" . $this->fieldSelectedBuyable->SmallFieldHolder() . "</div>" . "</div>";
 }
开发者ID:nieku,项目名称:silverstripe-ecommerce,代码行数:21,代码来源:BuyableSelectField.php

示例3: Field

 /**
  * @param array
  * @return HTMLText
  */
 public function Field($properties = array())
 {
     return DBField::create_field('HTMLText', "<div class=\"fieldgroup\">" . "<div class=\"fieldgroup-field\">" . $this->fieldCurrency->SmallFieldHolder() . "</div>" . "<div class=\"fieldgroup-field\">" . $this->fieldAmount->SmallFieldHolder() . "</div>" . "</div>");
 }
开发者ID:miamollie,项目名称:echoAerial,代码行数:8,代码来源:MoneyField.php

示例4: Field

 /**
  * @return string
  */
 public function Field($properties = array())
 {
     return "<div class=\"fieldgroup\">" . "<div class=\"fieldgroupField\">" . $this->fieldCurrency->SmallFieldHolder() . "</div>" . "<div class=\"fieldgroupField\">" . $this->fieldAmount->SmallFieldHolder() . "</div>" . "</div>";
 }
开发者ID:normann,项目名称:sapphire,代码行数:7,代码来源:MoneyField.php

示例5: SmallFieldHolder

 /**
  * Generates the small field holder for the field
  * @param {array} $properties Properties to add to the field holder
  * @return {string}
  */
 public function SmallFieldHolder($properties = null)
 {
     if (!empty($this->_link) && !empty($this->_label)) {
         return parent::SmallFieldHolder($properties);
     }
 }
开发者ID:helpfulrobot,项目名称:webbuilders-group-silverstripe-kapost-bridge-logger,代码行数:11,代码来源:KapostLogLinkField.php

示例6: Field

 /**
  * @return string
  */
 public function Field($properties = array())
 {
     Requirements::javascript(self::$module_dir . '/js/LinkFormField.js');
     Requirements::css(self::$module_dir . '/css/linkfield.css');
     return "<div class=\"fieldgroup LinkFormField \">" . "<div class=\"fieldgroupField LinkFormFieldTitle\">" . $this->fieldTitle->SmallFieldHolder() . "</div>" . "<div class=\"fieldgroupField LinkFormFieldLinkmode\">" . $this->fieldLinkmode->SmallFieldHolder() . "</div>" . "<div class=\"fieldgroupField LinkFormFieldPageID\">" . $this->fieldPageID->SmallFieldHolder() . '<label class="right">(&uarr; Select internal page to link to (click again to unset))</label>' . "</div>" . "<div class=\"fieldgroupField LinkFormFieldCustomURL\">" . $this->fieldCustomURL->SmallFieldHolder() . '<label class="right">(&uarr; Enter external URL)</label>' . "</div>" . "</div>";
 }
开发者ID:helpfulrobot,项目名称:micschk-silverstripe-namedlinkfield,代码行数:9,代码来源:NamedLinkFormField.php

示例7: Field

 /**
  * @return string
  */
 public function Field($properties = array())
 {
     Requirements::javascript(self::$module_dir . '/js/LinkFormField.js');
     return "<div class=\"fieldgroup LinkFormField \">" . "<div class=\"fieldgroupField LinkFormFieldPageID\">" . $this->fieldPageID->SmallFieldHolder() . "</div>" . "<div class=\"fieldgroupField LinkFormFieldCustomURL\">" . $this->fieldCustomURL->SmallFieldHolder() . "</div>" . "</div>";
 }
开发者ID:helpfulrobot,项目名称:lrc-silverstripe-link-field,代码行数:8,代码来源:LinkFormField.php


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