当前位置: 首页>>代码示例>>PHP>>正文


PHP getAdminModel函数代码示例

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


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


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