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

PHP getModel函数代码示例

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

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



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

示例1: dispTrashAdminList

 /**
  * Trash list
  * @return void
  */
 function dispTrashAdminList()
 {
     $args->page = Context::get('page');
     // /< Page
     $args->list_count = 30;
     // /< the number of posts to display on a single page
     $args->page_count = 5;
     // /< the number of pages that appear in the page navigation
     $args->search_target = Context::get('search_target');
     // /< search (title, contents ...)
     $args->search_keyword = Context::get('search_keyword');
     // /< keyword to search
     $oTrashModel = getModel('trash');
     $output = $oTrashModel->getTrashList($args);
     // for no text comment language and for document manange language
     $oCommentModel =& getModel('comment');
     $oDocumentModel =& getModel('document');
     Context::set('trash_list', $output->data);
     Context::set('total_count', $output->total_count);
     Context::set('total_page', $output->total_page);
     Context::set('page', $output->page);
     Context::set('page_navigation', $output->page_navigation);
     // 템플릿 파일 지정
     $this->setTemplateFile('trash_list');
 }
开发者ID:relip,项目名称:xe-core,代码行数:29,代码来源:trash.admin.view.php


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


示例3: dispImporterAdminImportForm

 /**
  * Display a form to upload the xml file
  * @return void
  */
 function dispImporterAdminImportForm()
 {
     $oDocumentModel = getModel('document');
     //for document lang use in this page
     $this->setTemplatePath($this->module_path . 'tpl');
     $this->setTemplateFile('index');
 }
开发者ID:rhymix,项目名称:rhymix,代码行数:11,代码来源:importer.admin.view.php


示例4: getCommunicationAdminColorset

 /**
  * the html to select colorset of the skin
  * @return void
  */
 function getCommunicationAdminColorset()
 {
     $skin = Context::get('skin');
     $type = Context::get('type') == 'P' ? 'P' : 'M';
     Context::set('type', $type);
     if ($type == 'P') {
         $dir = 'skins';
     } else {
         $dir = 'm.skins';
     }
     if (!$skin) {
         $tpl = "";
     } else {
         $oModuleModel = getModel('module');
         $skin_info = $oModuleModel->loadSkinInfo($this->module_path, $skin, $dir);
         Context::set('skin_info', $skin_info);
         $oModuleModel = getModel('module');
         $communication_config = $oModuleModel->getModuleConfig('communication');
         if (!$communication_config->colorset) {
             $communication_config->colorset = "white";
         }
         Context::set('communication_config', $communication_config);
         $security = new Security();
         $security->encodeHTML('skin_info.colorset..title', 'skin_info.colorset..name');
         $security->encodeHTML('skin_info.colorset..name');
         $oTemplate = TemplateHandler::getInstance();
         $tpl = $oTemplate->compile($this->module_path . 'tpl', 'colorset_list');
     }
     $this->add('tpl', $tpl);
     $this->add('type', $type);
 }
开发者ID:umjinsun12,项目名称:dngshin,代码行数:35,代码来源:communication.admin.model.php


示例5: moduleUpdate

 function moduleUpdate()
 {
     $oModuleModel = getModel('module');
     $oModuleController = getController('module');
     $oDB =& DB::getInstance();
     foreach ($this->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('androidpushapp_gcmregid', 'member_srl')) {
         $oDB->addColumn('androidpushapp_gcmregid', 'member_srl', 'number', 11);
     }
     if (!$oDB->isColumnExists('androidpushapp_gcmregid', 'setting')) {
         $oDB->addColumn('androidpushapp_gcmregid', 'setting', 'text');
     }
     if (!$oDB->isColumnExists('androidpushapp_gcmregid', 'setting_board')) {
         $oDB->addColumn('androidpushapp_gcmregid', 'setting_board', 'text');
     }
     if (!$oDB->isColumnExists('androidpushapp_gcmregid', 'last_login')) {
         $oDB->addColumn('androidpushapp_gcmregid', 'last_login', 'date');
     }
     if (!$oDB->isColumnExists('androidpushapp_gcmregid', 'sort')) {
         $oDB->addColumn('androidpushapp_gcmregid', 'sort', 'char', 1, 'W', 'true');
     }
     return new Object(0, 'success_updated');
 }
开发者ID:umjinsun12,项目名称:dngshin,代码行数:27,代码来源:androidpushapp.class.php


示例6: dispCommentDeclare

 /**
  * Report an improper comment
  * @return void
  */
 function dispCommentDeclare()
 {
     $this->setLayoutFile('popup_layout');
     $comment_srl = Context::get('target_srl');
     $oMemberModel = getModel('member');
     // A message appears if the user is not logged-in
     if (!$oMemberModel->isLogged()) {
         return $this->stop('msg_not_logged');
     }
     // Create the comment object.
     $oCommentModel = getModel('comment');
     // Creates an object for displaying the selected comment
     $oComment = $oCommentModel->getComment($comment_srl);
     if (!$oComment->isExists()) {
         return new Object(-1, 'msg_invalid_request');
     }
     // Check permissions
     if (!$oComment->isAccessible()) {
         return new Object(-1, 'msg_not_permitted');
     }
     // Browser title settings
     Context::set('target_comment', $oComment);
     Context::set('target_srl', $comment_srl);
     $this->setTemplatePath($this->module_path . 'tpl');
     $this->setTemplateFile('declare_comment');
 }
开发者ID:rhymix,项目名称:rhymix,代码行数:30,代码来源:comment.view.php


示例7: getNickChangeList

 function getNickChangeList($obj)
 {
     $args->s_member_srl = $obj->member_srl;
     $args->page = Context::get('page');
     // /< Page
     $args->list_count = 20;
     // /< the number of posts to display on a single page
     $args->page_count = 10;
     // /< the number of pages that appear in the page navigation
     $args->sort_index = 'regdate';
     // /< sorting values
     $args->order_type = 'desc';
     // /< sorting values by order
     if ($obj->search_target == 'nick_name') {
         $args->nick_name_old = $obj->search_keyword;
         $args->nick_name_new = $obj->search_keyword;
     }
     if ($obj->search_target == 'member_srl') {
         $args->s_member_srl = $obj->search_keyword;
     }
     if ($obj->search_target == 'user_id') {
         $oMemberModel =& getModel('member');
         $member_info = $oMemberModel->getMemberInfoByUserID($obj->search_keyword);
         $args->s_member_srl = $member_info->member_srl;
     }
     $output = executeQueryArray('sejin7940_nick.getNickChangeList', $args);
     return $output;
 }
开发者ID:leehankyeol,项目名称:JaWeTip,代码行数:28,代码来源:sejin7940_nick.model.php


示例8: getBoardAdminSimpleSetup

 /**
  * Get the board module admin simple setting page
  * @return void
  */
 public function getBoardAdminSimpleSetup($moduleSrl, $setupUrl)
 {
     if (!$moduleSrl) {
         return;
     }
     Context::set('module_srl', $moduleSrl);
     // default module info setting
     $oModuleModel = getModel('module');
     $moduleInfo = $oModuleModel->getModuleInfoByModuleSrl($moduleSrl);
     $moduleInfo->use_status = explode('|@|', $moduleInfo->use_status);
     if ($moduleInfo) {
         Context::set('module_info', $moduleInfo);
     }
     // get document status list
     $oDocumentModel = getModel('document');
     $documentStatusList = $oDocumentModel->getStatusNameList();
     Context::set('document_status_list', $documentStatusList);
     // set order target list
     foreach ($this->order_target as $key) {
         $order_target[$key] = Context::getLang($key);
     }
     $order_target['list_order'] = Context::getLang('document_srl');
     $order_target['update_order'] = Context::getLang('last_update');
     Context::set('order_target', $order_target);
     // for advanced language & url
     $oAdmin = getClass('admin');
     Context::set('setupUrl', $setupUrl);
     // Extract admin ID set in the current module
     $admin_member = $oModuleModel->getAdminId($moduleSrl);
     Context::set('admin_member', $admin_member);
     $oTemplate =& TemplateHandler::getInstance();
     $html = $oTemplate->compile($this->module_path . 'tpl/', 'board_setup_basic');
     return $html;
 }
开发者ID:kimkucheol,项目名称:xe-core,代码行数:38,代码来源:board.admin.model.php


示例9: proc

 /**
  * @brief Widget execution
  * Get extra_vars declared in ./widgets/widget/conf/info.xml as arguments
  * After generating the result, do not print but return it.
  */
 function proc($args)
 {
     // Set a path of the template skin (values of skin, colorset settings)
     $tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
     Context::set('colorset', $args->colorset);
     // Specify a template file
     if (Context::get('is_logged')) {
         $tpl_file = 'login_info';
     } else {
         $tpl_file = 'login_form';
     }
     // Get the member configuration
     $oModuleModel = getModel('module');
     $this->member_config = $oModuleModel->getModuleConfig('member');
     Context::set('member_config', $this->member_config);
     // Set a flag to check if the https connection is made when using SSL and create https url
     $ssl_mode = false;
     $useSsl = Context::getSslStatus();
     if ($useSsl != 'none') {
         if (strncasecmp('https://', Context::getRequestUri(), 8) === 0) {
             $ssl_mode = true;
         }
     }
     Context::set('ssl_mode', $ssl_mode);
     // Compile a template
     $oTemplate =& TemplateHandler::getInstance();
     return $oTemplate->compile($tpl_path, $tpl_file);
 }
开发者ID:kimkucheol,项目名称:xe-core,代码行数:33,代码来源:login_info.class.php


示例10: dispMessage

 /**
  * @brief Message output
  **/
 function dispMessage()
 {
     // Get configurations (using module model object)
     $oModuleModel = getModel('module');
     $config = $oModuleModel->getModuleConfig('message');
     if (!$config->mskin) {
         $config->mskin = 'default';
     }
     // Set the template path
     $template_path = sprintf('%sm.skins/%s', $this->module_path, $config->mskin);
     // Get the member configuration
     $oModuleModel = getModel('module');
     $member_config = $oModuleModel->getModuleConfig('member');
     Context::set('member_config', $member_config);
     // Set a flag to check if the https connection is made when using SSL and create https url
     $ssl_mode = false;
     if ($member_config->enable_ssl == 'Y') {
         if (strncasecmp('https://', Context::getRequestUri(), 8) === 0) {
             $ssl_mode = true;
         }
     }
     Context::set('ssl_mode', $ssl_mode);
     Context::set('system_message', nl2br($this->getMessage()));
     Context::set('act', 'procMemberLogin');
     Context::set('mid', '');
     $this->setTemplatePath($template_path);
     $this->setTemplateFile('system_message');
 }
开发者ID:umjinsun12,项目名称:dngshin,代码行数:31,代码来源:message.mobile.php


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


示例12: dispLdapAdminConfig

 /**
  * @brief 스팸필터의 설정 화면
  **/
 function dispLdapAdminConfig()
 {
     $oModel =& getModel('ldap');
     Context::set('config', $oModel->getConfig());
     // 템플릿 파일 지정
     $this->setTemplateFile('index');
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:10,代码来源:ldap.admin.view.php


示例13: procCounterExecute

 /**
  * @brief 카운터 기록
  **/
 function procCounterExecute()
 {
     $oDB =& DB::getInstance();
     $oDB->begin();
     $site_module_info = Context::get('site_module_info');
     $site_srl = (int) $site_module_info->site_srl;
     // 로그를 검사
     $oCounterModel =& getModel('counter');
     // 오늘자 row가 있는지 체크하여 없으면 등록
     if (!$oCounterModel->isInsertedTodayStatus($site_srl)) {
         $this->insertTodayStatus(0, $site_srl);
         // 기존 row가 있으면 사용자 체크
     } else {
         // 등록되어 있지 않은 아이피일 경우
         if (!$oCounterModel->isLogged($site_srl)) {
             // 로그 등록
             $this->insertLog($site_srl);
             // unique 및 pageview 등록
             $this->insertUniqueVisitor($site_srl);
         } else {
             // pageview 등록
             $this->insertPageView($site_srl);
         }
     }
     $oDB->commit();
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:29,代码来源:counter.controller.php


示例14: moduleUpdate

 /**
  * @brief Execute update
  **/
 function moduleUpdate()
 {
     $oModuleModel =& getModel('module');
     $oModuleController =& getController('module');
     $oDB =& DB::getInstance();
     // 2007. 10. 17 document.insertDocument, updateDocument, deleteDocument trigger property for
     if (!$oModuleModel->getTrigger('document.insertDocument', 'tag', 'controller', 'triggerArrangeTag', 'before')) {
         $oModuleController->insertTrigger('document.insertDocument', 'tag', 'controller', 'triggerArrangeTag', 'before');
     }
     if (!$oModuleModel->getTrigger('document.insertDocument', 'tag', 'controller', 'triggerInsertTag', 'after')) {
         $oModuleController->insertTrigger('document.insertDocument', 'tag', 'controller', 'triggerInsertTag', 'after');
     }
     if (!$oModuleModel->getTrigger('document.updateDocument', 'tag', 'controller', 'triggerArrangeTag', 'before')) {
         $oModuleController->insertTrigger('document.updateDocument', 'tag', 'controller', 'triggerArrangeTag', 'before');
     }
     if (!$oModuleModel->getTrigger('document.updateDocument', 'tag', 'controller', 'triggerInsertTag', 'after')) {
         $oModuleController->insertTrigger('document.updateDocument', 'tag', 'controller', 'triggerInsertTag', 'after');
     }
     if (!$oModuleModel->getTrigger('document.deleteDocument', 'tag', 'controller', 'triggerDeleteTag', 'after')) {
         $oModuleController->insertTrigger('document.deleteDocument', 'tag', 'controller', 'triggerDeleteTag', 'after');
     }
     // 2007. 10. 17 modules are deleted when you delete all registered triggers that add tag
     if (!$oModuleModel->getTrigger('module.deleteModule', 'tag', 'controller', 'triggerDeleteModuleTags', 'after')) {
         $oModuleController->insertTrigger('module.deleteModule', 'tag', 'controller', 'triggerDeleteModuleTags', 'after');
     }
     // tag in the index column of the table tag
     if (!$oDB->isIndexExists("tags", "idx_tag")) {
         $oDB->addIndex("tags", "idx_tag", array("document_srl", "tag"));
     }
     return new Object(0, 'success_updated');
 }
开发者ID:relip,项目名称:xe-core,代码行数:34,代码来源:tag.class.php


示例15: triggerDispFileAdditionSetup

 /**
  * @brief 서비스형 모듈의 추가 설정을 위한 부분
  * file의 사용 형태에 대한 설정만 받음
  **/
 function triggerDispFileAdditionSetup(&$obj)
 {
     $current_module_srl = Context::get('module_srl');
     $current_module_srls = Context::get('module_srls');
     if (!$current_module_srl && !$current_module_srls) {
         // 선택된 모듈의 정보를 가져옴
         $current_module_info = Context::get('current_module_info');
         $current_module_srl = $current_module_info->module_srl;
         if (!$current_module_srl) {
             return new Object();
         }
     }
     // 선택된 모듈의 file설정을 가져옴
     $oFileModel =& getModel('file');
     $file_config = $oFileModel->getFileModuleConfig($current_module_srl);
     Context::set('file_config', $file_config);
     // 그룹의 설정을 위한 권한 가져오기
     $oMemberModel =& getModel('member');
     $site_module_info = Context::get('site_module_info');
     $group_list = $oMemberModel->getGroups($site_module_info->site_srl);
     Context::set('group_list', $group_list);
     // 템플릿 파일 지정
     $oTemplate =& TemplateHandler::getInstance();
     $tpl = $oTemplate->compile($this->module_path . 'tpl', 'file_module_config');
     $obj .= $tpl;
     return new Object();
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:31,代码来源:file.view.php


示例16: dispMessage

 /**
  * @brief 메세지 출력 
  **/
 function dispMessage()
 {
     // 설정 정보를 받아옴 (module model 객체를 이용)
     $oModuleModel =& getModel('module');
     $config = $oModuleModel->getModuleConfig('message');
     if (!$config->skin) {
         $config->skin = 'default';
     }
     // 템플릿 경로를 지정
     $template_path = sprintf('%sskins/%s', $this->module_path, $config->skin);
     // 회원 관리 정보를 받음
     $oModuleModel =& getModel('module');
     $member_config = $oModuleModel->getModuleConfig('member');
     Context::set('member_config', $member_config);
     // ssl 사용시 현재 https접속상태인지에 대한 flag및 https url 생성
     $ssl_mode = false;
     if ($member_config->enable_ssl == 'Y') {
         if (preg_match('/^https:\\/\\//i', Context::getRequestUri())) {
             $ssl_mode = true;
         }
     }
     Context::set('ssl_mode', $ssl_mode);
     Context::set('system_message', nl2br($this->getMessage()));
     $this->setTemplatePath($template_path);
     $this->setTemplateFile('system_message');
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:29,代码来源:message.view.php


示例17: procCympusadminAdminInsertModInst

 /**
  * @brief 모듈 환경설정값 쓰기
  **/
 function procCympusadminAdminInsertModInst()
 {
     // module 모듈의 model/controller 객체 생성
     $oModuleController = getController('module');
     $oModuleModel = getModel('module');
     // 게시판 모듈의 정보 설정
     $args = Context::getRequestVars();
     $args->module = 'cympusadmin';
     // module_srl이 넘어오면 원 모듈이 있는지 확인
     if ($args->module_srl) {
         $module_info = $oModuleModel->getModuleInfoByModuleSrl($args->module_srl);
         if ($module_info->module_srl != $args->module_srl) {
             unset($args->module_srl);
         }
     }
     // module_srl의 값에 따라 insert/update
     if (!$args->module_srl) {
         $output = $oModuleController->insertModule($args);
         $msg_code = 'success_registed';
     } else {
         $output = $oModuleController->updateModule($args);
         $msg_code = 'success_updated';
     }
     if (!$output->toBool()) {
         return $output;
     }
     $this->add('module_srl', $output->get('module_srl'));
     $this->setMessage($msg_code);
     $returnUrl = getNotEncodedUrl('', 'module', Context::get('module'), 'act', 'dispCympusadminAdminInsertModInst', 'module_srl', $output->get('module_srl'));
     $this->setRedirectUrl($returnUrl);
 }
开发者ID:WEN2ER,项目名称:nurigo,代码行数:34,代码来源:cympusadmin.admin.controller.php


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


示例19: getContributors

 function getContributors($document_srl)
 {
     $oDocumentModel =& getModel('document');
     $oDocument = $oDocumentModel->getDocument($document_srl);
     if (!$oDocument->isExists()) {
         return array();
     }
     $args->document_srl = $document_srl;
     $output = executeQueryArray("wiki.getContributors", $args);
     if ($output->data) {
         $list = $output->data;
     } else {
         $list = array();
     }
     $item->member_srl = $oDocument->getMemberSrl();
     $item->nick_name = $oDocument->getNickName();
     $contributors[] = $item;
     for ($i = 0, $c = count($list); $i < $c; $i++) {
         unset($item);
         $item->member_srl = $list[$i]->member_srl;
         $item->nick_name = $list[$i]->nick_name;
         if ($item->member_srl == $oDocument->getMemberSrl()) {
             continue;
         }
         $contributors[] = $item;
     }
     return $contributors;
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:28,代码来源:wiki.model.php


示例20: dispMessage

 /**
  * @brief Display messages
  **/
 function dispMessage()
 {
     // Get configurations (using module model object)
     $oModuleModel =& getModel('module');
     $this->module_config = $config = $oModuleModel->getModuleConfig('message', $this->module_info->site_srl);
     if (!$config->skin) {
         $config->skin = 'default';
         $template_path = sprintf('%sskins/%s', $this->module_path, $config->skin);
     } else {
         //check theme
         $config_parse = explode('|@|', $config->skin);
         if (count($config_parse) > 1) {
             $template_path = sprintf('./themes/%s/modules/message/', $config_parse[0]);
         } else {
             $template_path = sprintf('%sskins/%s', $this->module_path, $config->skin);
         }
     }
     // Template path
     $this->setTemplatePath($template_path);
     // Get the member configuration
     $member_config = $oModuleModel->getModuleConfig('member');
     Context::set('member_config', $member_config);
     // Set a flag to check if the https connection is made when using SSL and create https url
     $ssl_mode = false;
     if ($member_config->enable_ssl == 'Y') {
         if (preg_match('/^https:\\/\\//i', Context::getRequestUri())) {
             $ssl_mode = true;
         }
     }
     Context::set('ssl_mode', $ssl_mode);
     Context::set('system_message', nl2br($this->getMessage()));
     $this->setTemplateFile('system_message');
 }
开发者ID:relip,项目名称:xe-core,代码行数:36,代码来源:message.view.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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