本文整理汇总了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>";
}
示例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>";
}
示例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>");
}
示例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>";
}
示例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">(↑ Select internal page to link to (click again to unset))</label>' . "</div>" . "<div class=\"fieldgroupField LinkFormFieldCustomURL\">" . $this->fieldCustomURL->SmallFieldHolder() . '<label class="right">(↑ Enter external URL)</label>' . "</div>" . "</div>";
}
示例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>";
}