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


PHP Common::get_module_lang方法代码示例

本文整理汇总了PHP中Common::get_module_lang方法的典型用法代码示例。如果您正苦于以下问题:PHP Common::get_module_lang方法的具体用法?PHP Common::get_module_lang怎么用?PHP Common::get_module_lang使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Common的用法示例。


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

示例1: define_front_actions

 function define_front_actions()
 {
     $l = Common::get_module_lang('votes', $_SESSION['lang'], 'define_front_actions');
     $this->def_action('show_vote', $l['{show_vote}'], 'ai_show_vote');
     $this->def_action('show_vote_server', $l['{show_vote_server}'], array('showvresult', 'addvote'));
     $this->def_action('show_random_vote', $l['{show_random_vote}'], 'ai_show_random_vote');
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:7,代码来源:votes.common.class.php

示例2: define_front_actions

 function define_front_actions()
 {
     $l = Common::get_module_lang('banners', $_SESSION['lang'], 'define_front_actions');
     $this->def_action('show_selected_banner', $l['{show_selected_banner}'], 'ai_show_selected_banner');
     $this->def_action('show_random_banner', $l['{show_random_banner}'], 'ai_show_random_banner');
     $this->def_action('show_banners_from_group', $l['{show_banners_from_group}'], 'ai_show_banners_from_group');
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:7,代码来源:banners.common.class.php

示例3: show_logs_on_main_page

 function show_logs_on_main_page($xcall = false)
 {
     global $TMS, $_PATH;
     if (!$TMS->isSectionDefined('last_modification')) {
         $lang = Common::get_module_lang('admin', $_SESSION['lang'], 'run');
         $TMS->AddFileSection(Common::translate_to(file($_PATH['PATH_ADM'] . 'tpl/run.html'), $lang));
     }
     if ($logs = logger::getLogs()) {
         Common::call_common_instance('users');
         $users =& users_module_common::getInstance();
         $users_list = XARRAY::arr_to_lev($users->load_users_list(), 'id', 'params', 'Name');
         $mod_list = XARRAY::arr_to_keyarr(admin_mod::get_module_list(), 'name', 'alias');
         $actions = $users->collect_module_actions();
         $lm = '';
         foreach ($logs as $log) {
             if ($action = $actions[$log['module']][$log['action']]) {
                 $log['action'] = $action;
             }
             $log['module'] = $mod_list[$log['module']];
             $log['user'] = $users_list[$log['user_id']];
             $log['time'] = date("d.m.y G:i:s", $log['time']);
             $TMS->AddMassReplace('last_modification', $log);
             if (!$xcall) {
                 $TMS->parseSection('last_modification', true);
             } else {
                 $lm .= $TMS->parseSection('last_modification', false, true);
             }
         }
         if ($xcall) {
             return $lm;
         }
     }
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:33,代码来源:logger.class.php

示例4: define_front_actions

 function define_front_actions()
 {
     $l = Common::get_module_lang('gallery', $_SESSION['lang'], 'define_front_actions');
     $this->def_action('show_gallery_list', $l['{show_gallery_list}'], 'ai_show_gallery_list');
     $this->def_action('show_selected_album', $l['{show_selected_album}'], 'ai_show_selected_album');
     $this->def_action('show_gallery_server', $l['{show_gallery_server}'], array('show_album'));
     $this->def_action('show_from_folder', $l['{show_from_folder}'], array('show_from_folder'));
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:8,代码来源:gallery.common.class.php

示例5: define_front_actions

 function define_front_actions()
 {
     $l = Common::get_module_lang('ishop', $_SESSION['lang'], 'define_front_actions');
     $this->def_action('show_basket_status', $l['{show_basket_status}'], 'show_search_form');
     $this->def_action('show_currency', $l['{show_currency}'], 'show_currency');
     $this->def_action('show_ishop_basket', $l['{show_ishop_basket}'], array('order', 'remove', 'removeall', 'cart', 'addtocart', 'submitorder'));
     $this->set_action_priority('show_basket_status', array('show_ishop_basket' => 0));
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:8,代码来源:ishop.common.class.php

示例6: define_front_actions

 function define_front_actions()
 {
     $l = Common::get_module_lang('content', $_SESSION['lang'], 'define_front_actions');
     $this->def_action('show_content', $l['{show_content}'], '');
     $this->def_action('show_content_announce', $l['{show_content_announce}'], '');
     $this->def_action('show_contents_list', $l['{show_contents_list}'], '');
     $this->def_action('show_contentgroups_list', $l['{show_contentgroups_list}'], '');
     $this->def_action('content_server', $l['{content_server}'], array('showcontent', 'show_content_announce', 'show_contents_list', 'show_articles'));
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:9,代码来源:content.common.class.php

示例7: define_front_actions

 function define_front_actions()
 {
     $l = Common::get_module_lang('faq', $_SESSION['lang'], 'define_front_actions');
     $this->def_action('show_categories', $l['{show_categories}'], '');
     $this->def_action('show_selected_category', $l['{show_selected_category}'], '');
     $this->def_action('show_folder_questions', $l['{show_folder_questions}'], '');
     $this->def_action('show_faq_server', $l['{show_faq_server}'], array('show_question'));
     $this->def_action('show_faq_search', $l['{show_faq_search}'], '');
     $this->def_action('show_faq_search_server', $l['{show_faq_search_server}'], array('faqsearch'));
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:10,代码来源:faq.common.class.php

示例8: define_front_actions

 function define_front_actions()
 {
     $l = Common::get_module_lang('search', $_SESSION['lang'], 'define_front_actions');
     $this->def_action('show_search_form', $l['{show_search_form}'], 'show_search_form');
     $this->def_action('search_server', $l['{search_server}'], array('find'));
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:6,代码来源:search.common.class.php

示例9: content_table

 function content_table($params)
 {
     $TD = Common::inc_module_factory('TTreeSource');
     $options['startNode'] = $params['id'];
     $options['shownodesWithObjType'] = array('_CONTENTGROUP', '_CONTENT', '_ROOT');
     $options['groups'] = array('_CONTENTGROUP', '_ROOT');
     $options['columnsAsParameters'] = array('Name' => 'Name', 'template' => 'Template');
     $options['preventDots'] = true;
     $options['columnsAsStructs'] = array('id' => 'id');
     $options['sequence'] = array('Name', 'template');
     $l = Common::get_module_lang('content', $_SESSION['lang'], 'common_content');
     $options['emulate_root'] = array($l['{root_name}'], '');
     $options['gridFormat'] = 1;
     $TD->init_from_source($this->_tree);
     $TD->setOptions($options);
     $TD->CreateView($params['id']);
     $this->result = $TD->result;
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:18,代码来源:content.back.class.php

示例10: define_front_actions

 function define_front_actions()
 {
     $l = Common::get_module_lang('news', $_SESSION['lang'], 'define_front_actions');
     $this->def_action('show_news_categories', $l['{show_news_categories}'], '');
     $this->def_action('show_news_interval', $l['{show_news_interval}'], '');
     $this->def_action('show_news_by_author', $l['{show_news_by_author}'], '');
     $this->def_action('show_news_server', $l['{show_news_server}'], array('shownews', 'showncat', 'bytag', 'newsinterval', 'rss'));
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:8,代码来源:news.common.class.php

示例11: define_front_actions

 function define_front_actions()
 {
     $l = Common::get_module_lang('price', $_SESSION['lang'], 'define_front_actions');
     $this->def_action('show_price_list', $l['{show_price_list}'], array('ai_show_price_list', 'download'));
     $this->def_action('show_folder', $l['{show_folder}'], array('ai_show_folder', 'download'));
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:6,代码来源:price.common.class.php

示例12: date_locale

 function date_locale($val, $params)
 {
     global $_COMMON_SITE_CONF;
     if (!$params[1]) {
         $params[1] = 'RUS';
     }
     $v = strtotime($val);
     setlocale(LC_ALL, $params[1]);
     $tdate = strftime($params[0], strtotime($val));
     $l = Common::get_module_lang('core', $_COMMON_SITE_CONF['site_language'], 'date_format');
     if ($params[1] == 'RUS') {
         $treplace = array($l['{January}'] => $l['{january}'], $l['{February}'] => $l['{february}'], $l['{March}'] => $l['{march}'], $l['{April}'] => $l['{april}'], $l['{May}'] => $l['{may}'], $l['{June}'] => $l['{june}'], $l['{July}'] => $l['{july}'], $l['{August}'] => $l['{august}'], $l['{September}'] => $l['{september}'], $l['{October}'] => $l['{october}'], $l['{November}'] => $l['{november}'], $l['{December}'] => $l['{december}'], $l['{Jan}'] => $l['{jan}'], $l['{Feb}'] => $l['{feb}'], $l['{Mar}'] => $l['{mar}'], $l['{Apr}'] => $l['{apr}'], $l['{May}'] => $l['{may}'], $l['{Jun}'] => $l['{jun}'], $l['{Jul}'] => $l['{jul}'], $l['{Aug}'] => $l['{aug}'], $l['{Sep}'] => $l['{sep}'], $l['{Oct}'] => $l['{oct}'], $l['{Nov}'] => $l['{nov}'], $l['{Dec}'] => $l['{dec}'], 'January' => $l['{january}'], 'February' => $l['{february}'], 'March' => $l['{march}'], 'April' => $l['{april}'], 'May' => $l['{may}'], 'June' => $l['{june}'], 'July' => $l['{july}'], 'August' => $l['{august}'], 'September' => $l['{september}'], 'October' => $l['{october}'], 'November' => $l['{november}'], 'December' => $l['{december}'], 'Jan' => $l['{jan}'], 'Feb' => $l['{feb}'], 'Mar' => $l['{mar}'], 'Apr' => $l['{apr}'], 'May' => $l['{may}'], 'Jun' => $l['{jun}'], 'Jul' => $l['{jul}'], 'Aug' => $l['{aug}'], 'Sep' => $l['{sep}'], 'Oct' => $l['{oct}'], 'Nov' => $l['{nov}'], 'Dec' => $l['{dec}']);
         return strtr($tdate, $treplace);
     } else {
         return $tdate;
     }
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:17,代码来源:helpers.tpl.php

示例13: define_front_actions

 function define_front_actions()
 {
     $l = Common::get_module_lang('fusers', $_SESSION['lang'], 'define_front_action');
     $this->def_action('show_auth_panel', $l['{show_auth_panel}'], 'show_auth_panel');
     $this->def_action('show_users_from_group', $l['{show_users_from_group}'], 'show_users_from_group');
     $this->def_action('user_panel', $l['{user_panel}'], array('needauth', 'submitsubuser', 'registration', 'forgotpassword', 'logout', 'edituser', 'auth', 'save_profile', 'userpanel', 'submituser', 'editsubusers', 'addsubuser', 'deletesubuser', 'editsubuser', 'verifyuser'));
     $this->set_action_priority('show_auth_panel', array('auth' => 0, 'logout' => 0));
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:8,代码来源:fusers.common.class.php

示例14: define_front_actions

 function define_front_actions()
 {
     $l = Common::get_module_lang('forms', $_SESSION['lang'], 'define_front_actions');
     $this->def_action('show_forms', $l['{show_forms}'], '');
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:5,代码来源:forms.common.class.php

示例15: show_edit

 function show_edit($params)
 {
     $this->result['news_data'] = $this->_common_obj->select_news($params['id'], '%d-%m-%Y %H:%i:%s');
     $l = Common::get_module_lang('news', $_SESSION['lang'], 'user_types');
     $user = $this->_common_obj->get_author($this->result['news_data']['author_id'], $this->result['news_data']['author_type']);
     $this->result['news_data']['author_id'] = $user['params']['Name'];
     $this->result['news_data']['author_type'] = $l['{n-' . $this->result['news_data']['author_type'] . '}'];
     $this->get_categories('news_data', $this->result['news_data']['ctg_id'], false);
 }
开发者ID:umaxfun,项目名称:x4m,代码行数:9,代码来源:news.back.class.php


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