本文整理汇总了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);
}