當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。