本文整理汇总了PHP中CMbArray::naturalSort方法的典型用法代码示例。如果您正苦于以下问题:PHP CMbArray::naturalSort方法的具体用法?PHP CMbArray::naturalSort怎么用?PHP CMbArray::naturalSort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMbArray
的用法示例。
在下文中一共展示了CMbArray::naturalSort方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intval
/**
* $Id: vw_categories.php 28919 2015-07-09 09:07:35Z kgrisel $
*
* @category Files
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision: 28919 $
* @link http://www.mediboard.org
*/
CCanDo::checkAdmin();
$category_id = CValue::getOrSession("category_id", 0);
$page = intval(CValue::get('page', 0));
$filter = CValue::getOrSession("filter", "");
$eligible_file_view = CValue::getOrSession("eligible_file_view");
$class = CValue::getOrSession("class");
$listClass = CApp::getChildClasses();
$classes = array();
foreach ($listClass as $key => $_class) {
$classes[$_class] = CAppUI::tr($_class);
}
CMbArray::naturalSort($classes);
$smarty = new CSmartyDP();
$smarty->assign("category_id", $category_id);
$smarty->assign("page", $page);
$smarty->assign("listClass", $classes);
$smarty->assign("filter", $filter);
$smarty->assign("class", $class);
$smarty->assign("eligible_file_view", $eligible_file_view);
$smarty->display("vw_categories.tpl");