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


PHP DropdownField::FieldHolder方法代码示例

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


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

示例1: FieldHolder

 public function FieldHolder($properties = array())
 {
     Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js');
     Requirements::javascript(THIRDPARTY_DIR . '/jquery-entwine/dist/jquery.entwine-dist.js');
     Requirements::javascript('swipestripe-currency/javascript/ExchangeRateField.js');
     return parent::FieldHolder();
 }
开发者ID:helpfulrobot,项目名称:swipestripe-swipestripe-currency,代码行数:7,代码来源:ExchangeRateField.php

示例2: FieldHolder

 function FieldHolder()
 {
     $regions = Region::shipping_regions();
     $jsonRegions = json_encode($regions);
     Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js');
     Requirements::javascriptTemplate('swipestripe/javascript/RegionField.js', array("regions" => $jsonRegions, 'defaultValue' => $this->Value()));
     return parent::FieldHolder();
 }
开发者ID:helpfulrobot,项目名称:swipestripe-swipestripe,代码行数:8,代码来源:RegionField.php

示例3: FieldHolder

 /**
  * Builds the form field, sets default attributes, and includes JS
  *
  * @param array $attributes The attributes to include on the formfield
  * @return SSViewer
  */
 public function FieldHolder($attributes = array())
 {
     Requirements::javascript(FRAMEWORK_DIR . "/admin/thirdparty/chosen/chosen/chosen.jquery.js");
     Requirements::css(FRAMEWORK_DIR . "/admin/thirdparty/chosen/chosen/chosen.css");
     $this->addExtraClass('chosen');
     if (!$this->getAttribute('data-search-threshold')) {
         $this->setSearchThreshold(self::$default_search_threshold);
     }
     return parent::FieldHolder($attributes);
 }
开发者ID:helpfulrobot,项目名称:unclecheese-bootstrap-forms,代码行数:16,代码来源:ChosenDropdownField.php

示例4: FieldHolder

	function FieldHolder() {
		ShowHideField::include_files();
		return parent::FieldHolder();
	}
开发者ID:nathancox,项目名称:silverstripe-showhidefield,代码行数:4,代码来源:ShowHideField.php

示例5: FilterDropdown

	public function FilterDropdown()
	{
		$map = $this->filter_empty_string ? array($this->RelativeLink(array('filter' => '')) => $this->filter_empty_string) : array();
		foreach($this->filter_map as $k => $v) {
			$map[$this->RelativeLink(array('filter' => $this->filtered_field.'_'.$k))] = $v;
		}
		$value = !empty($this->filter) ? $this->RelativeLink(array('filter' => $this->filter)) : null;
		$dropdown = new DropdownField('Filter',$this->filter_label . " (<a href='#' class='refresh'>"._t('DataObjectManager.REFRESH','refresh')."</a>)", $map, $value);
		return $dropdown->FieldHolder();
	}
开发者ID:notioncollective,项目名称:stationid,代码行数:10,代码来源:DataObjectManager.php

示例6: GroupFilter

 function GroupFilter()
 {
     $groups = DataObject::get('Group');
     $groupArray = array('' => _t('MemberList.ANYGROUP', 'Any group'));
     foreach ($groups as $group) {
         $groupArray[$group->ID] = $group->Title;
     }
     $field = new DropdownField('MemberListGroup', _t('MemberList.FILTERBYG', 'Filter by group'), $groupArray);
     return $field->FieldHolder();
 }
开发者ID:ramziammar,项目名称:websites,代码行数:10,代码来源:MemberList.php


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