* @package dimension * @version $Id: control.php 4157 2022-11-1 10:24:12Z $ * @link http://www.zentao.net */ class dimension extends control { /** * 显示切换维度的 1.5 级导航的下拉菜单。 * Show the drop menu of 1.5 level navigation for switching dimension. * * @param int $dimensionID * @param string $module * @param string $method * @access public * @return void */ public function ajaxGetDropMenu(int $dimensionID, string $module, string $method) { $items = array(); $dimensions = $this->dimension->getList(); foreach($dimensions as $dimension) { /* 构造 1.5 级导航的数据。*/ /* Build the data of 1.5 level navigation. */ $items[] = array ( 'id' => $dimension->id, 'text' => $dimension->name, 'keys' => zget(common::convert2Pinyin(array($dimension->name)), $dimension->name, ''), ); } $this->view->link = $this->createLink($module, $method, 'dimensionID={id}'); $this->view->items = $items; $this->view->dimensionID = $dimensionID; $this->display(); } }