本文整理匯總了PHP中SibdietHelper::getCompositionsOptions方法的典型用法代碼示例。如果您正苦於以下問題:PHP SibdietHelper::getCompositionsOptions方法的具體用法?PHP SibdietHelper::getCompositionsOptions怎麽用?PHP SibdietHelper::getCompositionsOptions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SibdietHelper
的用法示例。
在下文中一共展示了SibdietHelper::getCompositionsOptions方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: defined
<?php
/**
* @package Sibdiet.Administrator
* @subpackage com_sibdiet
* @checked 2020/01/01
* @copyright Copyright (C) 2012 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$published = $this->state->get('filter.state');
$compositionsOptionsHtml = JHtml::_('select.options', SibdietHelper::getCompositionsOptions(), 'value', 'text');
$unitsOptionsHtml = JHtml::_('select.options', SibdietHelper::getUnitsOptions(), 'value', 'text');
?>
<div class="modal hide fade" id="editCompositionsCollapseModal">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3><?php
echo JText::_('COM_SIBDIET_EDIT_SELECTED_FOODS_COMPOSITIONS');
?>
</h3>
</div>
<div class="modal-body modal-batch">
<p><?php
echo JText::_('COM_SIBDIET_FOOD_BATCH_EDIT_TIP');
?>
</p>
<?php
for ($i = 1; $i <= 10; $i++) {
?>