本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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);
}