當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ZurmoHtml::radioButtonList方法代碼示例

本文整理匯總了PHP中ZurmoHtml::radioButtonList方法的典型用法代碼示例。如果您正苦於以下問題:PHP ZurmoHtml::radioButtonList方法的具體用法?PHP ZurmoHtml::radioButtonList怎麽用?PHP ZurmoHtml::radioButtonList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ZurmoHtml的用法示例。


在下文中一共展示了ZurmoHtml::radioButtonList方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: renderThemeContent

 /**
  * Renders the setting as a radio list.
  * @return A string containing the element's content.
  */
 protected function renderThemeContent()
 {
     $gameLevel = GameLevel::resolveByTypeAndPerson(GameLevel::TYPE_GENERAL, Yii::app()->user->userModel);
     $content = ZurmoHtml::tag('h3', array(), Zurmo::t('Core', 'Theme'));
     $content .= ZurmoHtml::radioButtonList($this->getEditableInputName(KanbanBoard::SELECTED_THEME), $this->model->getKanbanBoard()->getSelectedTheme(), $this->resolveThemeColorNamesAndLabelsForLocking($gameLevel), $this->getEditableThemeHtmlOptions(), array(), $this->resolveDataHtmlOptions($gameLevel));
     return $content;
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:11,代碼來源:KanbanBoardOptionsElement.php

示例2: renderControlEditable

 /**
  * Renders the setting as a radio list.  The second radio option also has a dropdown of available groups
  * as part of the label.
  * @return A string containing the element's content.
  */
 protected function renderControlEditable()
 {
     $this->assertModelIsValid();
     list($attributeName, $relationAttributeName) = $this->resolveAttributeNameAndRelatedAttributes();
     list($data, $dataSelectOption) = $this->resolveData();
     $content = ZurmoHtml::radioButtonList($this->getEditableInputName($attributeName, $relationAttributeName), $this->resolveSelectedType(), $data, $this->getEditableHtmlOptions(), $dataSelectOption);
     return $content;
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:13,代碼來源:ExplicitReadWriteModelPermissionsElement.php

示例3: renderThemeContent

 /**
  * Renders the setting as a radio list.
  * @return A string containing the element's content.
  */
 protected function renderThemeContent()
 {
     $content = ZurmoHtml::tag('h3', array(), Zurmo::t('Core', 'Theme'));
     $content .= ZurmoHtml::radioButtonList($this->getEditableInputName(KanbanBoard::SELECTED_THEME), $this->model->getKanbanBoard()->getSelectedTheme(), $this->model->getKanbanBoard()->getThemeNamesAndLabels(), $this->getEditableThemeHtmlOptions());
     return $content;
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:10,代碼來源:KanbanBoardOptionsElement.php

示例4: renderStatusButtonsContent

 public static function renderStatusButtonsContent(RedBeanModel $model)
 {
     $content = ZurmoHtml::radioButtonList(static::getRadioButtonListName($model->id), static::resolveSelectedRadioButtonListOption($model), static::getDropDownArray(), static::getRadioButtonListHtmlOptions($model));
     return ZurmoHtml::tag('div', array('class' => 'switch'), $content);
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:5,代碼來源:StateToggleElement.php


注:本文中的ZurmoHtml::radioButtonList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。