本文整理汇总了PHP中JHtmlBehavior::multiselect方法的典型用法代码示例。如果您正苦于以下问题:PHP JHtmlBehavior::multiselect方法的具体用法?PHP JHtmlBehavior::multiselect怎么用?PHP JHtmlBehavior::multiselect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JHtmlBehavior
的用法示例。
在下文中一共展示了JHtmlBehavior::multiselect方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
/**
* Part of Component Akquickicons files.
*
* @copyright Copyright (C) 2014 Asikart. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
use Windwalker\Data\Data;
use Windwalker\Html\HtmlElement;
// No direct access
defined('_JEXEC') or die;
// Prepare script
JHtmlBehavior::multiselect('adminForm');
/**
* Prepare data for this template.
*
* @var $container Windwalker\DI\Container
* @var $data Windwalker\Data\Data
* @var $asset Windwalker\Helper\AssetHelper
* @var $grid Windwalker\View\Helper\GridHelper
* @var $date \JDate
*/
$container = $this->getContainer();
$asset = $container->get('helper.asset');
$grid = $data->grid;
$date = $container->get('date');
$asset->addCss('akicons.css');
$asset->addCss('font-awesome.css');
// Set order script.
$grid->registerTableSort();
示例2: testMultiselect
/**
* Tests the multiselect method.
*
* @param string $expected @todo
* @param string $id @todo
*
* @return void
*
* @since 3.1
* @dataProvider getMultiselectData
*/
public function testMultiselect($expected, $id = 'adminForm')
{
JHtmlBehavior::multiselect($id);
$this->assertEquals($expected, JHtmlBehaviorInspector::getLoaded(), 'The multiselect behavior is not loaded with all dependencies');
}