• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getAdminModel函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getAdminModel函数的典型用法代码示例。如果您正苦于以下问题:PHP getAdminModel函数的具体用法?PHP getAdminModel怎么用?PHP getAdminModel使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getAdminModel函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: dispStore_searchAdminSkinInfo

	/**
	 * Skin Settings
	 *
	 * @return Object
	 */
	function dispStore_searchAdminSkinInfo()
	{
		$oModuleModel = getModel('module');
		$module_srl = Context::get('module_srl');
		// module_srl이 넘어오면 해당 모듈의 정보를 미리 구해 놓음
		if($module_srl) 
		{
			$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
			if(!$module_info) 
			{
				Context::set('module_srl','');
				$this->act = 'list';
			}
			else
			{
				$oModuleModel->syncModuleToSite($module_info);
				$this->module_info = $module_info;
				Context::set('module_info',$module_info);
			}
		}

		// 공통 모듈 권한 설정 페이지 호출
		$oModuleAdminModel = getAdminModel('module');
		$skin_content = $oModuleAdminModel->getModuleSkinHTML($this->module_info->module_srl);
		Context::set('skin_content', $skin_content);
		$this->setTemplateFile('skininfo');
	}
开发者ID:WEN2ER,项目名称:nurigo,代码行数:32,代码来源:store_search.admin.view.php


示例2: getLayoutList

 /**
  * Get a layout list created in the DB
  * If you found a new list, it means that the layout list is inserted to the DB
  * @deprecated
  * @param int $site_srl
  * @param string $layout_type (P : PC, M : Mobile)
  * @param array $columnList
  * @return array layout lists in site
  */
 function getLayoutList($site_srl = 0, $layout_type = "P", $columnList = array())
 {
     if (!$site_srl) {
         $site_module_info = Context::get('site_module_info');
         $site_srl = (int) $site_module_info->site_srl;
     }
     $args = new stdClass();
     $args->site_srl = $site_srl;
     $args->layout_type = $layout_type;
     $output = executeQueryArray('layout.getLayoutList', $args, $columnList);
     foreach ($output->data as $no => &$val) {
         if (!$this->isExistsLayoutFile($val->layout, $layout_type)) {
             unset($output->data[$no]);
         }
     }
     $oLayoutAdminModel = getAdminModel('layout');
     $siteDefaultLayoutSrl = $oLayoutAdminModel->getSiteDefaultLayout($layout_type, $site_srl);
     if ($siteDefaultLayoutSrl) {
         $siteDefaultLayoutInfo = $this->getlayout($siteDefaultLayoutSrl);
         $newLayout = sprintf('%s, %s', $siteDefaultLayoutInfo->title, $siteDefaultLayoutInfo->layout);
         $siteDefaultLayoutInfo->layout_srl = -1;
         $siteDefaultLayoutInfo->title = lang('use_site_default_layout');
         $siteDefaultLayoutInfo->layout = $newLayout;
         array_unshift($output->data, $siteDefaultLayoutInfo);
     }
     return $output->data;
 }
开发者ID:rhymix,项目名称:rhymix,代码行数:36,代码来源:layout.model.php


示例3: dispTrackbackAdminList

 /**
  * Display output list (administrative)
  * @return void
  */
 function dispTrackbackAdminList()
 {
     // Wanted set
     $oModuleModel =& getModel('module');
     $config = $oModuleModel->getModuleConfig('trackback');
     Context::set('config', $config);
     // Options to get a list
     $args->page = Context::get('page');
     // / "Page
     $args->list_count = 30;
     // / "One page of posts to show the
     $args->page_count = 10;
     // / "Number of pages that appear in the page navigation
     $args->sort_index = 'list_order';
     // / "Sorting values
     $args->module_srl = Context::get('module_srl');
     // Get a list
     $oTrackbackAdminModel =& getAdminModel('trackback');
     $output = $oTrackbackAdminModel->getTotalTrackbackList($args);
     // To write to a template parameter settings
     Context::set('total_count', $output->total_count);
     Context::set('total_page', $output->total_page);
     Context::set('page', $output->page);
     Context::set('trackback_list', $output->data);
     Context::set('page_navigation', $output->page_navigation);
     //Security
     $security = new Security();
     $security->encodeHTML('config.');
     $security->encodeHTML('trackback_list..');
     // Set a template
     $this->setTemplatePath($this->module_path . 'tpl');
     $this->setTemplateFile('trackback_list');
 }
开发者ID:relip,项目名称:xe-core,代码行数:37,代码来源:trackback.admin.view.php


示例4: dispTextylehubAdminSkinInfo

 function dispTextylehubAdminSkinInfo()
 {
     $oModuleAdminModel =& getAdminModel('module');
     $skin_content = $oModuleAdminModel->getModuleSkinHTML($this->module_info->module_srl);
     Context::set('skin_content', $skin_content);
     $this->setTemplateFile('skin_info');
 }
开发者ID:google-code-backups,项目名称:xe-textyle,代码行数:7,代码来源:textylehub.admin.view.php


示例5: dispTrackbackAdminList

 /**
  * @brief 목록 출력 (관리자용)
  **/
 function dispTrackbackAdminList()
 {
     // 설정 구함
     $oModuleModel =& getModel('module');
     $config = $oModuleModel->getModuleConfig('trackback');
     Context::set('config', $config);
     // 목록을 구하기 위한 옵션
     $args->page = Context::get('page');
     ///< 페이지
     $args->list_count = 30;
     ///< 한페이지에 보여줄 글 수
     $args->page_count = 10;
     ///< 페이지 네비게이션에 나타날 페이지의 수
     $args->sort_index = 'list_order';
     ///< 소팅 값
     $args->module_srl = Context::get('module_srl');
     // 목록 구함
     $oTrackbackAdminModel =& getAdminModel('trackback');
     $output = $oTrackbackAdminModel->getTotalTrackbackList($args);
     // 템플릿에 쓰기 위해서 변수 설정
     Context::set('total_count', $output->total_count);
     Context::set('total_page', $output->total_page);
     Context::set('page', $output->page);
     Context::set('trackback_list', $output->data);
     Context::set('page_navigation', $output->page_navigation);
     // 템플릿 지정
     $this->setTemplatePath($this->module_path . 'tpl');
     $this->setTemplateFile('trackback_list');
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:32,代码来源:trackback.admin.view.php


示例6: procTrackbackGetList

 /**
  * Trackback List
  * @return void
  */
 function procTrackbackGetList()
 {
     if (!Context::get('is_logged')) {
         return new Object(-1, 'msg_not_permitted');
     }
     $trackbackSrls = Context::get('trackback_srls');
     if ($trackbackSrls) {
         $trackbackSrlList = explode(',', $trackbackSrls);
     }
     global $lang;
     if (count($trackbackSrlList) > 0) {
         $oTrackbackAdminModel =& getAdminModel('trackback');
         $args->trackbackSrlList = $trackbackSrlList;
         $args->list_count = 100;
         $output = $oTrackbackAdminModel->getTotalTrackbackList($args);
         if (is_array($output->data)) {
             $trackbackList = $output->data;
         } else {
             unset($_SESSION['trackback_management']);
             $trackbackList = array();
             $this->setMessage($lang->no_trackbacks);
         }
     } else {
         $trackbackList = array();
         $this->setMessage($lang->no_trackbacks);
     }
     $this->add('trackback_list', $trackbackList);
 }
开发者ID:relip,项目名称:xe-core,代码行数:32,代码来源:trackback.controller.php


示例7: setLayoutAdminSetInfoView

 public function setLayoutAdminSetInfoView()
 {
     $layout_srl = Context::get('layout_srl');
     // Get layout information
     $oLayoutModel = getModel('layout');
     $layout_info = $oLayoutModel->getLayout($layout_srl);
     // Error appears if there is no layout information is registered
     if (!$layout_info) {
         return $this->stop('msg_invalid_request');
     }
     // Get a menu list
     $oMenuAdminModel = getAdminModel('menu');
     $menu_list = $oMenuAdminModel->getMenus();
     Context::set('menu_list', $menu_list);
     $security = new Security();
     $security->encodeHTML('menu_list..');
     $security = new Security($layout_info);
     $layout_info = $security->encodeHTML('.', 'author..', 'extra_var..');
     $layout_info->description = nl2br(trim($layout_info->description));
     if (!is_object($layout_info->extra_var)) {
         $layout_info->extra_var = new StdClass();
     }
     foreach ($layout_info->extra_var as $var_name => $val) {
         if (isset($layout_info->{$var_name}->description)) {
             $layout_info->{$var_name}->description = nl2br(trim($val->description));
         }
     }
     Context::set('selected_layout', $layout_info);
 }
开发者ID:ddmshu,项目名称:xe-core,代码行数:29,代码来源:layout.admin.model.php


示例8: dispMenuMenu

 /**
  * Display menu
  * @return void
  */
 function dispMenuMenu()
 {
     $menu_srl = Context::get('menu_srl');
     $oAdminModel =& getAdminModel('menu');
     $menu_info = $oAdminModel->getMenu($menu_srl);
     if (!$menu_srl) {
         $oMenuAdminController = getAdminController('menu');
         $homeMenuCacheFile = $oMenuAdminController->getHomeMenuCacheFile();
         if (file_exists($homeMenuCacheFile)) {
             @(include $homeMenuCacheFile);
         }
         $menu_info->php_file = './files/cache/menu/' . $homeMenuSrl . '.php';
     }
     if (file_exists($menu_info->php_file)) {
         @(include $menu_info->php_file);
     }
     if (is_array($menu->list)) {
         foreach ($menu->list as $menu_item) {
             $this->straightenMenu($menu_item, 0);
         }
     }
     Context::set('menu', $this->result);
     $this->setTemplatePath(sprintf("%stpl/", $this->module_path));
     $this->setTemplateFile('menu.html');
 }
开发者ID:umjinsun12,项目名称:dngshin,代码行数:29,代码来源:menu.mobile.php


示例9: procInstallAdminUpdateIndexModule

 function procInstallAdminUpdateIndexModule()
 {
     if (!Context::get('index_module_srl') || !Context::get('menu_item_srl')) {
         return new Object(-1, 'msg_invalid_request');
     }
     $site_args = new stdClass();
     $site_args->site_srl = 0;
     $site_args->index_module_srl = Context::get('index_module_srl');
     $oModuleController = getController('module');
     $oModuleController->updateSite($site_args);
     // get menu item info
     $menuItemSrl = Context::get('menu_item_srl');
     $oMenuAdminModel = getAdminModel('menu');
     $output = $oMenuAdminModel->getMenuItemInfo($menuItemSrl);
     // update homeSitemap.php cache file
     $oMenuAdminController = getAdminController('menu');
     $homeMenuCacheFile = $oMenuAdminController->getHomeMenuCacheFile();
     if (file_exists($homeMenuCacheFile)) {
         include $homeMenuCacheFile;
     }
     if (!$homeMenuSrl || $homeMenuSrl != $output->menu_srl) {
         $oMenuAdminController->makeHomemenuCacheFile($output->menu_srl);
     }
     $this->setMessage('success_updated');
 }
开发者ID:kkkyyy03,项目名称:coffeemix,代码行数:25,代码来源:install.admin.controller.php


示例10: dispTimelineAdminList

 /**
  * @brief 타임라인 게시판 목록
  * @return void
  */
 function dispTimelineAdminList()
 {
     $oTimelineModel = getModel('timeline');
     $oTimelineController = getController('timeline');
     // 모든 타임라인 게시판 정보 불러오기
     $whole_timeline_info = $oTimelineModel->getWholeTimelineInfo();
     $oModuleModel = getModel('module');
     $modules_info = array();
     // 타임라인 게시판의 모듈 정보 불러오기
     foreach ($whole_timeline_info as $key => $val) {
         $module_info = $oModuleModel->getModuleInfoByModuleSrl($key);
         if ($module_info) {
             $modules_info[$key] = new stdClass();
             $modules_info[$key]->module_info = $module_info;
             $modules_info[$key]->timeline_info = $val;
         } else {
             $output = $oTimelineController->deleteTimelineInfo($key);
             if (!$output->toBool()) {
                 return $output;
             }
         }
     }
     // 데이터 페이징 처리
     $oTimelineAdminModel = getAdminModel('timeline');
     $output = $oTimelineAdminModel->getPageHandler($modules_info, Context::get('page'));
     Context::set('page', $output->page);
     Context::set('total_page', $output->total_page);
     Context::set('total_count', $output->total_count);
     Context::set('modules_info', $output->data);
     Context::set('page_navigation', $output->page_navigation);
     $this->setTemplateFile('list');
 }
开发者ID:ajkj,项目名称:xe-module-timeline,代码行数:36,代码来源:timeline.admin.view.php


示例11: dispPurplebookAdminGrantInfo

 /**
  * display the grant information
  */
 function dispPurplebookAdminGrantInfo()
 {
     // get the grant infotmation from admin module
     $oModuleAdminModel =& getAdminModel('module');
     $grant_content = $oModuleAdminModel->getModuleGrantHTML($this->module_info->module_srl, $this->xml_info->grant);
     Context::set('grant_content', $grant_content);
     $this->setTemplateFile('grant_list');
 }
开发者ID:seoeun,项目名称:xe-module-purplebook,代码行数:11,代码来源:purplebook.admin.view.php


示例12: dispGradeupAdminGrantInfo

 function dispGradeupAdminGrantInfo()
 {
     $oModuleAdminModel = getAdminModel('module');
     $grant_content = $oModuleAdminModel->getModuleGrantHTML($this->module_info->module_srl, $this->xml_info->grant);
     Context::set('grant_content', $grant_content);
     //템플릿 파일 지정
     $this->setTemplateFile('grant_list');
 }
开发者ID:bjrambo,项目名称:gradeup,代码行数:8,代码来源:gradeup.admin.view.php


示例13: getCympusStatus

function getCympusStatus()
{
    $args->date = date("Ymd000000", time() - 60 * 60 * 24);
    $today = date("Ymd");
    // Member Status
    $oMemberAdminModel =& getAdminModel('member');
    $status->member->todayCount = $oMemberAdminModel->getMemberCountByDate($today);
    $status->member->totalCount = $oMemberAdminModel->getMemberCountByDate();
    // Document Status
    $oDocumentAdminModel =& getAdminModel('document');
    $statusList = array('PUBLIC', 'SECRET');
    $status->document->todayCount = $oDocumentAdminModel->getDocumentCountByDate($today, array(), $statusList);
    $status->document->totalCount = $oDocumentAdminModel->getDocumentCountByDate('', array(), $statusList);
    // Comment Status
    $oCommentModel =& getModel('comment');
    $status->comment->todayCount = $oCommentModel->getCommentCountByDate($today);
    $status->comment->totalCount = $oCommentModel->getCommentCountByDate();
    // shoppping-mall
    $oNstoreAdminModel =& getAdminModel('nstore');
    if ($oNstoreAdminModel) {
        $salesInfoToday = $oNstoreAdminModel->getSalesInfo($today);
        $salesInfoTotal = $oNstoreAdminModel->getSalesInfo();
        $status->nstore->todayCount = $salesInfoToday->count;
        $status->nstore->todayAmount = $salesInfoToday->amount;
        $status->nstore->totalCount = $salesInfoTotal->count;
        $status->nstore->totalAmount = $salesInfoTotal->amount;
        $status->nstore->orderStatus = $oNstoreAdminModel->getTotalStatus();
    }
    // contents-mall
    $oNstore_digitalAdminModel =& getAdminModel('nstore_digital');
    if ($oNstore_digitalAdminModel) {
        $salesInfoToday = $oNstore_digitalAdminModel->getSalesInfo($today);
        $salesInfoTotal = $oNstore_digitalAdminModel->getSalesInfo();
        $status->nstore_digital->todayCount = $salesInfoToday->count;
        $status->nstore_digital->todayAmount = $salesInfoToday->amount;
        $status->nstore_digital->totalCount = $salesInfoTotal->count;
        $status->nstore_digital->totalAmount = $salesInfoTotal->amount;
        $status->nstore_digital->orderStatus = $oNstore_digitalAdminModel->getTotalStatus();
    }
    // elearning
    $oElearningAdminModel =& getAdminModel('elearning');
    if ($oElearningAdminModel) {
        $salesInfoToday = $oElearningAdminModel->getSalesInfo($today);
        $salesInfoTotal = $oElearningAdminModel->getSalesInfo();
        $status->elearning->todayCount = $salesInfoToday->count;
        $status->elearning->todayAmount = $salesInfoToday->amount;
        $status->elearning->totalCount = $salesInfoTotal->count;
        $status->elearning->totalAmount = $salesInfoTotal->amount;
        $status->elearning->lessonStatus = $oElearningAdminModel->getTotalStatus();
    }
    // for layer
    $oScmsAdminModel =& getAdminModel('scms');
    if ($oScmsAdminModel) {
        $status->player->currentPlayCount = $oScmsAdminModel->getCurrentPlayCount();
    }
    return $status;
}
开发者ID:umjinsun12,项目名称:dngshin,代码行数:57,代码来源:functions.php


示例14: dispNcenterliteAdminList

 function dispNcenterliteAdminList()
 {
     $oNcenterliteAdminModel = getAdminModel('ncenterlite');
     $output = $oNcenterliteAdminModel->getAdminNotifyList();
     Context::set('total_count', $output->page_navigation->total_count);
     Context::set('total_page', $output->page_navigation->total_page);
     Context::set('page', $output->page);
     Context::set('ncenterlite_list', $output->data);
     Context::set('page_navigation', $output->page_navigation);
     $this->setTemplateFile('ncenter_list');
 }
开发者ID:rhymix,项目名称:rhymix,代码行数:11,代码来源:ncenterlite.admin.view.php


示例15: dispMemberAdminList

 /**
  * display member list
  *
  * @return void
  **/
 function dispMemberAdminList()
 {
     $oMemberAdminModel =& getAdminModel('member');
     $oMemberModel =& getModel('member');
     $output = $oMemberAdminModel->getMemberList();
     $filter = Context::get('filter_type');
     global $lang;
     switch ($filter) {
         case 'super_admin':
             Context::set('filter_type_title', $lang->cmd_show_super_admin_member);
             break;
         case 'site_admin':
             Context::set('filter_type_title', $lang->cmd_show_site_admin_member);
             break;
         case 'enable':
             Context::set('filter_type_title', $lang->approval);
             break;
         case 'disable':
             Context::set('filter_type_title', $lang->denied);
             break;
         default:
             Context::set('filter_type_title', $lang->cmd_show_all_member);
             break;
     }
     // retrieve list of groups for each member
     if ($output->data) {
         foreach ($output->data as $key => $member) {
             $output->data[$key]->group_list = $oMemberModel->getMemberGroups($member->member_srl, 0);
         }
     }
     $config = $oMemberModel->getMemberConfig();
     $memberIdentifiers = array('user_id' => 'user_id', 'user_name' => 'user_name', 'nick_name' => 'nick_name');
     $usedIdentifiers = array();
     if (is_array($config->signupForm)) {
         foreach ($config->signupForm as $signupItem) {
             if (!count($memberIdentifiers)) {
                 break;
             }
             if (in_array($signupItem->name, $memberIdentifiers) && ($signupItem->required || $signupItem->isUse)) {
                 unset($memberIdentifiers[$signupItem->name]);
                 $usedIdentifiers[$signupItem->name] = $lang->{$signupItem->name};
             }
         }
     }
     Context::set('total_count', $output->total_count);
     Context::set('total_page', $output->total_page);
     Context::set('page', $output->page);
     Context::set('member_list', $output->data);
     Context::set('usedIdentifiers', $usedIdentifiers);
     Context::set('page_navigation', $output->page_navigation);
     $security = new Security();
     $security->encodeHTML('member_list..user_name', 'member_list..nick_name', 'member_list..group_list..');
     $this->setTemplateFile('member_list');
 }
开发者ID:relip,项目名称:xe-core,代码行数:59,代码来源:member.admin.view.php


示例16: makeCacheFile

 /**
  * Re-generate the cache file
  *
  * @param int $site_srl Site srl
  * @param string $type pc or mobile
  * @param string $gtype site or global
  * @return void
  */
 function makeCacheFile($site_srl = 0, $type = "pc", $gtype = 'site')
 {
     // Add-on module for use in creating the cache file
     $buff = array('<?php if(!defined("__XE__")) exit();', '$_m = Context::get(\'mid\');');
     $buff[] = 'ob_start();';
     $oAddonModel = getAdminModel('addon');
     $addon_list = $oAddonModel->getInsertedAddons($site_srl, $gtype);
     foreach ($addon_list as $addon => $val) {
         if ($val->addon == "smartphone" || $type == "pc" && $val->is_used != 'Y' || $type == "mobile" && $val->is_used_m != 'Y' || $gtype == 'global' && $val->is_fixed != 'Y' || !is_dir(_XE_PATH_ . 'addons/' . $addon)) {
             continue;
         }
         $extra_vars = unserialize($val->extra_vars);
         $mid_list = $extra_vars->mid_list;
         if (!is_array($mid_list) || count($mid_list) < 1) {
             $mid_list = NULL;
         }
         $buff[] = '$before_time = microtime(true);';
         $buff[] = '$rm = \'' . $extra_vars->xe_run_method . "';";
         $buff[] = '$ml = array(';
         if ($mid_list) {
             foreach ($mid_list as $mid) {
                 $buff[] = "'{$mid}' => 1,";
             }
         }
         $buff[] = ');';
         $buff[] = sprintf('$addon_file = \'./addons/%s/%s.addon.php\';', $addon, $addon);
         if ($val->extra_vars) {
             unset($extra_vars);
             $extra_vars = base64_encode($val->extra_vars);
         }
         $addon_include = sprintf('unset($addon_info); $addon_info = unserialize(base64_decode(\'%s\')); @include($addon_file);', $extra_vars);
         $buff[] = 'if(file_exists($addon_file)){';
         $buff[] = 'if($rm === \'no_run_selected\'){';
         $buff[] = 'if(!isset($ml[$_m])){';
         $buff[] = $addon_include;
         $buff[] = '}}else{';
         $buff[] = 'if(isset($ml[$_m]) || count($ml) === 0){';
         $buff[] = $addon_include;
         $buff[] = '}}}';
         $buff[] = '$after_time = microtime(true);';
         $buff[] = '$addon_time_log = new stdClass();';
         $buff[] = '$addon_time_log->caller = $called_position;';
         $buff[] = '$addon_time_log->called = "' . $addon . '";';
         $buff[] = '$addon_time_log->called_extension = "' . $addon . '";';
         $buff[] = 'writeSlowlog("addon",$after_time-$before_time,$addon_time_log);';
     }
     $buff[] = 'ob_end_flush();';
     $addon_path = _XE_PATH_ . 'files/cache/addons/';
     FileHandler::makeDir($addon_path);
     $addon_file = $addon_path . ($gtype == 'site' ? $site_srl : '') . $type . '.acivated_addons.cache.php';
     FileHandler::writeFile($addon_file, join(PHP_EOL, $buff));
 }
开发者ID:perzona420,项目名称:xe-core,代码行数:60,代码来源:addon.controller.php


示例17: dispAddonAdminInfo

 /**
  * @brief 애드온의 상세 정보(conf/info.xml)를 팝업 출력
  **/
 function dispAddonAdminInfo()
 {
     $site_module_info = Context::get('site_module_info');
     // 요청된 애드온을 구함
     $selected_addon = Context::get('selected_addon');
     // 요청된 애드온의 정보를 구함
     $oAddonModel =& getAdminModel('addon');
     $addon_info = $oAddonModel->getAddonInfoXml($selected_addon, $site_module_info->site_srl);
     Context::set('addon_info', $addon_info);
     // 레이아웃을 팝업으로 지정
     $this->setLayoutFile('popup_layout');
     // 템플릿 패스 및 파일을 지정
     $this->setTemplateFile('addon_info');
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:17,代码来源:addon.admin.view.php


示例18: dispMenuMenu

 /**
  * Display menu
  * @return void
  */
 function dispMenuMenu()
 {
     $menu_srl = Context::get('menu_srl');
     $oAdminModel =& getAdminModel('menu');
     $menu_info = $oAdminModel->getMenu($menu_srl);
     if (file_exists($menu_info->php_file)) {
         @(include $menu_info->php_file);
     }
     foreach ($menu->list as $menu_item) {
         $this->straightenMenu($menu_item, 0);
     }
     Context::set('menu', $this->result);
     $this->setTemplatePath(sprintf("%stpl/", $this->module_path));
     $this->setTemplateFile('menu.html');
 }
开发者ID:relip,项目名称:xe-core,代码行数:19,代码来源:menu.mobile.php


示例19: procAddonAdminToggleActivate

 /**
  * @brief 애드온의 활성/비활성 체인지
  **/
 function procAddonAdminToggleActivate()
 {
     $oAddonModel =& getAdminModel('addon');
     $site_module_info = Context::get('site_module_info');
     // addon값을 받아옴
     $addon = Context::get('addon');
     if ($addon) {
         // 활성화 되어 있으면 비활성화 시킴
         if ($oAddonModel->isActivatedAddon($addon, $site_module_info->site_srl)) {
             $this->doDeactivate($addon, $site_module_info->site_srl);
         } else {
             $this->doActivate($addon, $site_module_info->site_srl);
         }
     }
     $this->makeCacheFile($site_module_info->site_srl);
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:19,代码来源:addon.admin.controller.php


示例20: dispAjaxboardAdminBroadcast

 function dispAjaxboardAdminBroadcast()
 {
     $oMemberAdminModel = getAdminModel('member');
     $oMemberModel = getModel('member');
     $output = $oMemberAdminModel->getMemberList();
     $filter = Context::get('filter_type');
     switch ($filter) {
         case 'super_admin':
             Context::set('filter_type_title', Context::getLang('cmd_show_super_admin_member'));
             break;
         case 'site_admin':
             Context::set('filter_type_title', Context::getLang('cmd_show_site_admin_member'));
             break;
         default:
             Context::set('filter_type_title', Context::getLang('cmd_show_all_member'));
             break;
     }
     if ($output->data) {
         foreach ($output->data as $key => $member) {
             $output->data[$key]->group_list = $oMemberModel->getMemberGroups($member->member_srl, 0);
         }
     }
     $module_config = $oMemberModel->getMemberConfig();
     $memberIdentifiers = array('user_id' => 'user_id', 'user_name' => 'user_name', 'nick_name' => 'nick_name');
     $usedIdentifiers = array();
     if (is_array($module_config->signupForm)) {
         foreach ($module_config->signupForm as $signupItem) {
             if (!count($memberIdentifiers)) {
                 break;
             }
             if (in_array($signupItem->name, $memberIdentifiers) && ($signupItem->required || $signupItem->isUse)) {
                 unset($memberIdentifiers[$signupItem->name]);
                 $usedIdentifiers[$signupItem->name] = Context::getLang($signupItem->name);
             }
         }
     }
     $group_list = $oMemberModel->getGroups();
     Context::set('total_count', $output->total_count);
     Context::set('total_page', $output->total_page);
     Context::set('page', $output->page);
     Context::set('group_list', $group_list);
     Context::set('member_list', $output->data);
     Context::set('usedIdentifiers', $usedIdentifiers);
     Context::set('page_navigation', $output->page_navigation);
     $security = new Security();
     $security->encodeHTML('group_list..', 'member_list..user_name', 'member_list..nick_name', 'member_list..group_list..');
 }
开发者ID:bjrambo,项目名称:xe-module-ajaxboard,代码行数:47,代码来源:ajaxboard.admin.view.php



注:本文中的getAdminModel函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getAdvSearchfields函数代码示例发布时间:2022-05-15
下一篇:
PHP getAdminId函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap