本文整理匯總了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");