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

PHP getController函数代码示例

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

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



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

示例1: dispCashpayForm

 /**
  * @brief print account information
  */
 function dispCashpayForm()
 {
     if ($this->module_info->login_required == 'Y') {
         if (!Context::get('is_logged')) {
             return new Object(-1, 'msg_login_required');
         }
     }
     $oEpayController = getController('epay');
     // get products info using cartnos
     $reviewOutput = $oEpayController->reviewOrder();
     if (!$reviewOutput->toBool()) {
         return $reviewOutput;
     }
     Context::set('transaction_srl', $reviewOutput->transaction_srl);
     Context::set('order_srl', $reviewOutput->order_srl);
     Context::set('review_form', $reviewOutput->review_form);
     Context::set('item_name', $reviewOutput->item_name);
     Context::set('price', $reviewOutput->price);
     Context::set('purchaser_name', $reviewOutput->purchaser_name);
     Context::set('purchaser_email', $reviewOutput->purchaser_email);
     Context::set('purchaser_telnum', $reviewOutput->purchaser_telnum);
     $obj = new stdClass();
     $obj->bank_name = $this->module_info->bank_name;
     $obj->account_number = $this->module_info->account_number;
     $obj->account_holder = $this->module_info->account_holder;
     Context::set('account_info', $obj);
     $this->setTemplateFile('start');
 }
开发者ID:bjrambo,项目名称:nurigo,代码行数:31,代码来源:cashpay.view.php


示例2: moduleUpdate

 /**
  * Execute update
  *
  * @return Object
  */
 function moduleUpdate()
 {
     $oModuleModel = getModel('module');
     $oModuleController = getController('module');
     // Add atom act
     if (!$oModuleModel->getActionForward('atom')) {
         $oModuleController->insertActionForward('rss', 'view', 'atom');
     }
     // 2007. 10. An additional set of 18 to participate in a service module, add a trigger
     if (!$oModuleModel->getTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before')) {
         $oModuleController->insertTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before');
     }
     // 2007. 10. 19 outputs the trigger before you call to set up rss url
     if (!$oModuleModel->getTrigger('moduleHandler.proc', 'rss', 'controller', 'triggerRssUrlInsert', 'after')) {
         $oModuleController->insertTrigger('moduleHandler.proc', 'rss', 'controller', 'triggerRssUrlInsert', 'after');
     }
     if ($oModuleModel->getTrigger('display', 'rss', 'controller', 'triggerRssUrlInsert', 'before')) {
         $oModuleController->deleteTrigger('display', 'rss', 'controller', 'triggerRssUrlInsert', 'before');
     }
     // 2012. 08. 29 Add a trigger to copy additional setting when the module is copied
     if (!$oModuleModel->getTrigger('module.procModuleAdminCopyModule', 'rss', 'controller', 'triggerCopyModule', 'after')) {
         $oModuleController->insertTrigger('module.procModuleAdminCopyModule', 'rss', 'controller', 'triggerCopyModule', 'after');
     }
     return new Object(0, 'success_updated');
 }
开发者ID:kimkucheol,项目名称:xe-core,代码行数:30,代码来源:rss.class.php


示例3: moduleUpdate

 /**
  * @brief 업데이트 실행
  **/
 function moduleUpdate()
 {
     $oModuleModel = getModel('module');
     $oModuleController = getController('module');
     $oDB = DB::getInstance();
     // 트리거 일괄 추가
     foreach ($this->add_triggers as $trigger) {
         if (!$oModuleModel->getTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4])) {
             $oModuleController->insertTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]);
         }
     }
     if (!$oDB->isColumnExists('alliance_sites', 'title')) {
         $oDB->addColumn('alliance_sites', 'title', 'varchar', 250, '', true);
         $oDB->addIndex('alliance_sites', 'unique_title', 'title', true);
     }
     if (!$oDB->isColumnExists('alliance_logs', 'type')) {
         $oDB->addColumn('alliance_logs', 'type', 'char', 20, '', true);
     }
     if (!$oDB->isColumnExists('alliance_contents', 'site_srl')) {
         $oDB->addColumn('alliance_contents', 'site_srl', 'number', 11, 0, true);
         $oDB->addIndex('alliance_contents', 'idx_site_srl', 'site_srl');
     }
     if (!$oDB->isColumnExists('alliance_messages', 'title')) {
         $oDB->addColumn('alliance_messages', 'title', 'varchar', 250, '', true);
     }
     /* 2011.03.12 - 연합 정보 테이블의 count 칼럼 제거 */
     if ($oDB->isColumnExists('alliance_info', 'count')) {
         $oDB->dropColumn('alliance_info', 'count');
     }
     return new Object(0, 'success_updated');
 }
开发者ID:haegyung,项目名称:alliancexe,代码行数:34,代码来源:alliance.class.php


示例4: moduleUpdate

 /**
  * @brief Execute update
  */
 function moduleUpdate()
 {
     $oModuleModel = getModel('module');
     $oModuleController = getController('module');
     // 2007.10.17 When deleting posts/comments delete the poll as well
     if (!$oModuleModel->getTrigger('document.deleteDocument', 'poll', 'controller', 'triggerDeleteDocumentPoll', 'after')) {
         $oModuleController->insertTrigger('document.deleteDocument', 'poll', 'controller', 'triggerDeleteDocumentPoll', 'after');
     }
     if (!$oModuleModel->getTrigger('comment.deleteComment', 'poll', 'controller', 'triggerDeleteCommentPoll', 'after')) {
         $oModuleController->insertTrigger('comment.deleteComment', 'poll', 'controller', 'triggerDeleteCommentPoll', 'after');
     }
     // 2008.04.22 A poll connection to add posts/comments
     if (!$oModuleModel->getTrigger('document.insertDocument', 'poll', 'controller', 'triggerInsertDocumentPoll', 'after')) {
         $oModuleController->insertTrigger('document.insertDocument', 'poll', 'controller', 'triggerInsertDocumentPoll', 'after');
     }
     if (!$oModuleModel->getTrigger('comment.insertComment', 'poll', 'controller', 'triggerInsertCommentPoll', 'after')) {
         $oModuleController->insertTrigger('comment.insertComment', 'poll', 'controller', 'triggerInsertCommentPoll', 'after');
     }
     if (!$oModuleModel->getTrigger('document.updateDocument', 'poll', 'controller', 'triggerUpdateDocumentPoll', 'after')) {
         $oModuleController->insertTrigger('document.updateDocument', 'poll', 'controller', 'triggerUpdateDocumentPoll', 'after');
     }
     if (!$oModuleModel->getTrigger('comment.updateComment', 'poll', 'controller', 'triggerUpdateCommentPoll', 'after')) {
         $oModuleController->insertTrigger('comment.updateComment', 'poll', 'controller', 'triggerUpdateCommentPoll', 'after');
     }
     return new Object(0, 'success_updated');
 }
开发者ID:kimkucheol,项目名称:xe-core,代码行数:29,代码来源:poll.class.php


示例5: dispEposForm

 /**
  * @brief epay.getPaymentForm 에서 호출됨
  */
 function dispEposForm()
 {
     $oEpayController = getController('epay');
     $oNcartModel = getModel('ncart');
     $oModuleModel = getModel('module');
     $oEposModuleConfig = $oModuleModel->getModuleConfig('epos');
     $oEposModel = getModel('epos');
     // get products info using cartnos
     Context::set('plugin_srl', $this->module_info->module_srl);
     $review_args = Context::getRequestVars();
     $output = $oEpayController->reviewOrder();
     if (!$output->toBool()) {
         return $output;
     }
     Context::set('review_form', $output->review_form);
     //$cart_info = $output->cart_info;
     $transaction_srl = $output->transaction_srl;
     $order_srl = $output->order_srl;
     $cavalue = md5($this->module_info->storeid . $order_srl . $output->price . $this->module_info->cubkey);
     //Context::set('cart_info', $cart_info);
     Context::set('price', $output->price);
     Context::set('transaction_srl', $transaction_srl);
     Context::set('order_srl', $order_srl);
     Context::set('cavalue', $cavalue);
     $this->setTemplateFile('formdata');
 }
开发者ID:bjrambo,项目名称:nurigo,代码行数:29,代码来源:epos.view.php


示例6: procErrorLoggerAdminInsertConfig

 /**
  * 모듈 설정을 저장하는 메소드.
  */
 public function procErrorLoggerAdminInsertConfig()
 {
     // 기존 설정을 가져온다.
     $config = $this->getConfig();
     // 새로 저장하려는 설정을 가져온다.
     $request_args = Context::getRequestVars();
     $config->error_types = 0;
     if ($request_args->error_type_fatal === 'Y') {
         $config->error_types = $config->error_types | E_ERROR;
     }
     if ($request_args->error_type_warning === 'Y') {
         $config->error_types = $config->error_types | E_WARNING;
     }
     if ($request_args->error_type_notice === 'Y') {
         $config->error_types = $config->error_types | E_NOTICE;
     }
     // 새 모듈 설정을 저장한다.
     $oModuleController = getController('module');
     $output = $oModuleController->insertModuleConfig('errorlogger', $config);
     if ($output->toBool()) {
         $this->setMessage('success_registed');
     } else {
         return $output;
     }
     if (Context::get('success_return_url')) {
         $this->setRedirectUrl(Context::get('success_return_url'));
     } else {
         $this->setRedirectUrl(getNotEncodedUrl('', 'module', 'admin', 'act', 'dispErrorloggerAdminConfig'));
     }
 }
开发者ID:kijin,项目名称:xe-errorlogger,代码行数:33,代码来源:errorlogger.admin.controller.php


示例7: index

 /**
  *
  */
 public function index()
 {
     $this->layout_assets->addJs("library/bootbox-4.4.0/bootbox.min.js");
     $this->layout_assets->addDataTable();
     $this->layout_assets->addJs("modulo/" . getController() . "/index.js");
     $this->layout_template->view("default", "pages/" . getController() . "/index", array());
 }
开发者ID:CarlosAyala,项目名称:midas-codeigniter-modulo-emergencias,代码行数:10,代码来源:marea_roja_desembarco_resultado.php


示例8: dispInstallIntroduce

 /**
  * @brief Display license messages
  **/
 function dispInstallIntroduce()
 {
     $install_config_file = FileHandler::getRealPath('./config/install.config.php');
     if (file_exists($install_config_file)) {
         include $install_config_file;
         if (is_array($install_config)) {
             foreach ($install_config as $k => $v) {
                 $v = $k == 'db_table_prefix' ? $v . '_' : $v;
                 Context::set($k, $v, true);
             }
             unset($GLOBALS['__DB__']);
             Context::set('install_config', true, true);
             $oInstallController =& getController('install');
             $output = $oInstallController->procInstall();
             if (!$output->toBool()) {
                 return $output;
             }
             header("location: ./");
             Context::close();
             exit;
         }
     }
     Context::set('l', Context::getLangType());
     $this->setTemplateFile('introduce');
 }
开发者ID:relip,项目名称:xe-core,代码行数:28,代码来源:install.view.php


示例9: 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


示例10: procAroundmapAdminSetApiKey

 /**
  * @brief 어드민 페이지에서 입력한 옵션 값들 세팅\n
  * option values
  * - naver_api_key
  * - yahoo_api_key
  * - sphinx info
  **/
 function procAroundmapAdminSetApiKey()
 {
     // 어드민 페이지에서 입력한 옵션값들을 가져온다.
     $config->naver_api_key = Context::get('naver_api_key');
     $config->yahoo_api_key = Context::get('yahoo_api_key');
     $config->useSphinx = Context::get('usesphinx');
     $config->serverName = Context::get('servername');
     $config->serverPort = Context::get('serverport');
     // 가져온 옵션값들을 module config에 저장한다.
     $oModuleController =& getController('module');
     $oModuleController->insertModuleConfig('aroundmap', $config);
     // 기존에 적용된 모듈을 삭제한다.
     $apply_module = Context::get('apply_module');
     $output = executeQuery('aroundmap.deleteApplyModules');
     if (!$output->toBool()) {
         return $output;
     }
     // 어드민 페이지에서 입력한 새로운 모듈을 입력한다.
     $modules = explode(',', $apply_module);
     for ($i = 0, $c = count($modules); $i < $c; $i++) {
         if ($modules[$i] != 0) {
             $args->module_srl = $modules[$i];
             $output = executeQuery('aroundmap.insertApplyModule', $args);
             if (!$output->toBool()) {
                 return $output;
             }
         }
     }
     $this->setMessage('success_applied');
 }
开发者ID:umjinsun12,项目名称:dngshin,代码行数:37,代码来源:aroundmap.admin.controller.php


示例11: _getWidgetContent

 function _getWidgetContent()
 {
     // Arrange a widget ryeolro
     if ($this->module_info->mcontent) {
         $cache_file = sprintf("%sfiles/cache/page/%d.%s.m.cache.php", _XE_PATH_, $this->module_info->module_srl, Context::getLangType());
         $interval = (int) $this->module_info->page_caching_interval;
         if ($interval > 0) {
             if (!file_exists($cache_file) || filesize($cache_file) < 1) {
                 $mtime = 0;
             } else {
                 $mtime = filemtime($cache_file);
             }
             if ($mtime + $interval * 60 > $_SERVER['REQUEST_TIME']) {
                 $page_content = FileHandler::readFile($cache_file);
                 $page_content = preg_replace('@<\\!--#Meta:@', '<!--Meta:', $page_content);
             } else {
                 $oWidgetController = getController('widget');
                 $page_content = $oWidgetController->transWidgetCode($this->module_info->mcontent);
                 FileHandler::writeFile($cache_file, $page_content);
             }
         } else {
             if (file_exists($cache_file)) {
                 FileHandler::removeFile($cache_file);
             }
             $page_content = $this->module_info->mcontent;
         }
     } else {
         $page_content = $this->module_info->content;
     }
     return $page_content;
 }
开发者ID:rhymix,项目名称:rhymix,代码行数:31,代码来源:page.mobile.php


示例12: moduleInstall

 /**
  * @brief 설치시 추가 작업이 필요할시 구현
  **/
 function moduleInstall()
 {
     // action forward에 등록
     $oModuleController =& getController('module');
     $oModuleController->insertActionForward('integration_search', 'view', 'IS');
     return new Object();
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:10,代码来源:integration_search.class.php


示例13: moduleUpdate

 /**
  * @brief Execute update
  **/
 function moduleUpdate()
 {
     $oModuleModel =& getModel('module');
     $oModuleController =& getController('module');
     $oDB =& DB::getInstance();
     // Save module_srl when auto-saving 15/06/2009
     if (!$oDB->isColumnExists("editor_autosave", "module_srl")) {
         $oDB->addColumn("editor_autosave", "module_srl", "number", 11);
     }
     // create an index on module_srl
     if (!$oDB->isIndexExists("editor_autosave", "idx_module_srl")) {
         $oDB->addIndex("editor_autosave", "idx_module_srl", "module_srl");
     }
     // 2007. 10. 17 Add a trigger to delete automatically saved document whenever the document(insert or update) is modified
     if (!$oModuleModel->getTrigger('document.insertDocument', 'editor', 'controller', 'triggerDeleteSavedDoc', 'after')) {
         $oModuleController->insertTrigger('document.insertDocument', 'editor', 'controller', 'triggerDeleteSavedDoc', 'after');
     }
     if (!$oModuleModel->getTrigger('document.updateDocument', 'editor', 'controller', 'triggerDeleteSavedDoc', 'after')) {
         $oModuleController->insertTrigger('document.updateDocument', 'editor', 'controller', 'triggerDeleteSavedDoc', 'after');
     }
     // 2007. 10. Add an editor trigger on the module addition setup
     if (!$oModuleModel->getTrigger('module.dispAdditionSetup', 'editor', 'view', 'triggerDispEditorAdditionSetup', 'before')) {
         $oModuleController->insertTrigger('module.dispAdditionSetup', 'editor', 'view', 'triggerDispEditorAdditionSetup', 'before');
     }
     // 2009. 04. 14 Add a trigger from compiled codes of the editor component
     if (!$oModuleModel->getTrigger('display', 'editor', 'controller', 'triggerEditorComponentCompile', 'before')) {
         $oModuleController->insertTrigger('display', 'editor', 'controller', 'triggerEditorComponentCompile', 'before');
     }
     // 2009. 06. 19 Remove unused trigger
     if ($oModuleModel->getTrigger('file.getIsPermitted', 'editor', 'controller', 'triggerSrlSetting', 'before')) {
         $oModuleController->deleteTrigger('file.getIsPermitted', 'editor', 'controller', 'triggerSrlSetting', 'before');
     }
     return new Object(0, 'success_updated');
 }
开发者ID:relip,项目名称:xe-core,代码行数:37,代码来源:editor.class.php


示例14: moduleUpdate

 /**
  * @brief 업데이트(업그레이드)
  */
 function moduleUpdate()
 {
     $oDB =& DB::getInstance();
     $oModuleModel =& getModel('module');
     $oModuleController =& getController('module');
     if (!$oDB->isColumnExists('purplebook', 'memo1')) {
         $oDB->addColumn('purplebook', 'memo1', 'varchar', '250');
     }
     if (!$oDB->isColumnExists('purplebook', 'memo2')) {
         $oDB->addColumn('purplebook', 'memo2', 'varchar', '250');
     }
     if (!$oDB->isColumnExists('purplebook', 'memo3')) {
         $oDB->addColumn('purplebook', 'memo3', 'varchar', '250');
     }
     if (!$oDB->isIndexExists("purplebook", "idx_memo1")) {
         $oDB->addIndex("purplebook", "idx_memo1", array("memo1"));
     }
     if (!$oDB->isIndexExists("purplebook", "idx_memo2")) {
         $oDB->addIndex("purplebook", "idx_memo2", array("memo2"));
     }
     if (!$oDB->isIndexExists("purplebook", "idx_memo3")) {
         $oDB->addIndex("purplebook", "idx_memo3", array("memo3"));
     }
     if (!$oDB->isIndexExists("purplebook", "idx_node_type")) {
         $oDB->addIndex("purplebook", "idx_node_type", array("node_type"));
     }
 }
开发者ID:seoeun,项目名称:xe-module-purplebook,代码行数:30,代码来源:purplebook.class.php


示例15: 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


示例16: moduleUpdate

 function moduleUpdate()
 {
     $oDB = DB::getInstance();
     $oModuleModel = getModel('module');
     $oModuleController = getController('module');
     foreach (self::$columns as $column) {
         if (!$oDB->isColumnExists($column[0], $column[1])) {
             $oDB->addColumn($column[0], $column[1], $column[2], $column[3], $column[4], $column[5]);
         }
     }
     foreach (self::$deletedIndexes as $index) {
         if ($oDB->isIndexExists($index[0], $index[1])) {
             $oDB->dropIndex($index[0], $index[1], $index[2]);
         }
     }
     foreach (self::$indexes as $index) {
         if (!$oDB->isIndexExists($index[0], $index[1])) {
             $oDB->addIndex($index[0], $index[1], $index[2], $index[3]);
         }
     }
     foreach (self::$triggers as $trigger) {
         if (!$oModuleModel->getTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4])) {
             $oModuleController->insertTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]);
         }
     }
     return new Object();
 }
开发者ID:ajkj,项目名称:xe-module-timeline,代码行数:27,代码来源:timeline.class.php


示例17: dispInipaymobileForm

 /**
  * @brief epay.getPaymentForm 에서 호출됨, 이니시스 모바일 결제폼 출력
  */
 function dispInipaymobileForm()
 {
     $oEpayController =& getController('epay');
     // get products info using cartnos
     $reviewOutput = $oEpayController->reviewOrder();
     if (!$reviewOutput->toBool()) {
         return $reviewOutput;
     }
     Context::set('review_form', $reviewOutput->review_form);
     Context::set('item_name', $reviewOutput->item_name);
     Context::set('price', $reviewOutput->price);
     Context::set('transaction_srl', $reviewOutput->transaction_srl);
     Context::set('order_srl', $reviewOutput->order_srl);
     Context::set('purchaser_name', $reviewOutput->purchaser_name);
     Context::set('purchaser_email', $reviewOutput->purchaser_email);
     Context::set('purchaser_telnum', $reviewOutput->purchaser_telnum);
     /**
      * next_url 및 return_url 에 url 구성은 http://domain/directory?var=val 형식으로 ?var1=val1&var2=val2 처럼 &은 허용되지 않는다. 그래서 부득이하게 n_page 에 transaction_srl을 담아오면 next_url로, r_page에 transaction_srl을 담아오면 return_url로 처리한다.
      */
     $transaction_srl = $reviewOutput->transaction_srl;
     // 가상계좌, 안심클릭시 (n_page)
     Context::set('next_url', getNotEncodedFullUrl('') . $this->module_info->mid . '?n_page=' . $transaction_srl);
     // ISP 결제시 (r_page), 결제처리는 noti_url이 호출되어 처리되므로 여기서는 그냥 결과만 보여줌
     Context::set('return_url', getNotEncodedFullUrl('') . $this->module_info->mid . '?r_page=' . $transaction_srl);
     // ISP 결제시 처리 URL 지정
     Context::set('noti_url', getNotEncodedFullUrl('') . $this->module_info->mid . '?noti_page=' . $transaction_srl);
     $this->setTemplateFile('formdata');
 }
开发者ID:seoeun,项目名称:xe-module-inipaymobile,代码行数:31,代码来源:inipaymobile.view.php


示例18: dispPageIndex

 /**
  * @brief 일반 요청시 출력
  **/
 function dispPageIndex()
 {
     // 템플릿에서 사용할 변수를 Context::set()
     if ($this->module_srl) {
         Context::set('module_srl', $this->module_srl);
     }
     // 캐시 파일 지정
     $cache_file = sprintf("%sfiles/cache/page/%d.%s.cache.php", _XE_PATH_, $this->module_info->module_srl, Context::getLangType());
     $interval = (int) $this->module_info->page_caching_interval;
     if ($interval > 0) {
         if (!file_exists($cache_file)) {
             $mtime = 0;
         } else {
             $mtime = filemtime($cache_file);
         }
         if ($mtime + $interval * 60 > time()) {
             $page_content = FileHandler::readFile($cache_file);
         } else {
             $oWidgetController =& getController('widget');
             $page_content = $oWidgetController->transWidgetCode($this->module_info->content);
             FileHandler::writeFile($cache_file, $page_content);
         }
     } else {
         if (file_exists($cache_file)) {
             FileHandler::removeFile($cache_file);
         }
         $page_content = $this->module_info->content;
     }
     Context::set('module_info', $this->module_info);
     Context::set('page_content', $page_content);
     $this->setTemplateFile('content');
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:35,代码来源:page.view.php


示例19: moduleUpdate

 /**
  * @brief 업데이트 실행
  **/
 function moduleUpdate()
 {
     $oModuleModel =& getModel('module');
     $oModuleController =& getController('module');
     // 2007. 10. 17 글/댓글의 삭제시 설문조사도 삭제
     if (!$oModuleModel->getTrigger('document.deleteDocument', 'poll', 'controller', 'triggerDeleteDocumentPoll', 'after')) {
         $oModuleController->insertTrigger('document.deleteDocument', 'poll', 'controller', 'triggerDeleteDocumentPoll', 'after');
     }
     if (!$oModuleModel->getTrigger('comment.deleteComment', 'poll', 'controller', 'triggerDeleteCommentPoll', 'after')) {
         $oModuleController->insertTrigger('comment.deleteComment', 'poll', 'controller', 'triggerDeleteCommentPoll', 'after');
     }
     // 2008. 04. 22 글/댓글의 추가기 설문조사의 연결
     if (!$oModuleModel->getTrigger('document.insertDocument', 'poll', 'controller', 'triggerInsertDocumentPoll', 'after')) {
         $oModuleController->insertTrigger('document.insertDocument', 'poll', 'controller', 'triggerInsertDocumentPoll', 'after');
     }
     if (!$oModuleModel->getTrigger('comment.insertComment', 'poll', 'controller', 'triggerInsertCommentPoll', 'after')) {
         $oModuleController->insertTrigger('comment.insertComment', 'poll', 'controller', 'triggerInsertCommentPoll', 'after');
     }
     if (!$oModuleModel->getTrigger('document.updateDocument', 'poll', 'controller', 'triggerUpdateDocumentPoll', 'after')) {
         $oModuleController->insertTrigger('document.updateDocument', 'poll', 'controller', 'triggerUpdateDocumentPoll', 'after');
     }
     if (!$oModuleModel->getTrigger('comment.updateComment', 'poll', 'controller', 'triggerUpdateCommentPoll', 'after')) {
         $oModuleController->insertTrigger('comment.updateComment', 'poll', 'controller', 'triggerUpdateCommentPoll', 'after');
     }
     return new Object(0, 'success_updated');
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:29,代码来源:poll.class.php


示例20: procWikiAdminArrangeList

 function procWikiAdminArrangeList()
 {
     $oModuleModel =& getModel('module');
     $oDocumentController =& getController('document');
     // 대상 위키 검증
     $module_srl = Context::get('module_srl');
     $module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
     if (!$module_info->module_srl || $module_info->module != 'wiki') {
         return new Object(-1, 'msg_invalid_request');
     }
     // 대상 위키의 entry값이 없는 글을 추출
     $args->module_srl = $module_srl;
     $output = executeQueryArray('wiki.getDocumentWithoutAlias', $args);
     if (!$output->toBool() || !$output->data) {
         return new Object();
     }
     foreach ($output->data as $key => $val) {
         if ($val->alias_srl) {
             continue;
         }
         $result = $oDocumentController->insertAlias($module_srl, $val->document_srl, $val->alias_title);
         if (!$result->toBool()) {
             $oDocumentController->insertAlias($module_srl, $val->document_srl, $val->alias_title . '_' . $val->document_srl);
         }
     }
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:26,代码来源:wiki.admin.controller.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP getCookie函数代码示例发布时间:2022-05-15
下一篇:
PHP getContents函数代码示例发布时间: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