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


PHP MY_Lang类代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('pricespy');
     $this->load->library('DX_Auth');
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:7,代码来源:admin.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('search');
     //$this->output->enable_profiler(TRUE);
 }
开发者ID:RandomUsernameHere,项目名称:megainfo-corporate-cms,代码行数:7,代码来源:search.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->module('core');
     $lang = new MY_Lang();
     $lang->load('mailer');
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:7,代码来源:mailer.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('cmsemail_model');
     $lang = new MY_Lang();
     $lang->load('cmsemail');
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:7,代码来源:cmsemail.php

示例5: init

 /**
  * Init 
  */
 private function init()
 {
     \CMSFactory\assetManager::create()->registerScript('scripts');
     $this->load->model('found_less_expensive_model');
     $lang = new MY_Lang();
     $lang->load('found_less_expensive');
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:10,代码来源:admin.php

示例6: saveSiteMap

 /**
  * Save sitemap
  */
 public function saveSiteMap()
 {
     $lang = new MY_Lang();
     $lang->load('sitemap');
     $successMessage = lang("Site map have been saved", "sitemap");
     $successMessageTitle = lang("Site map have been saved", "sitemap");
     // Get Site Map Data
     $sitemap = file_get_contents(site_url('sitemapRegenerate.xml'));
     if ($sitemap) {
         if (!is_dir($this->site_map_folder_path)) {
             mkdir($this->site_map_folder_path, 0777);
         }
         foreach (glob($this->site_map_folder_path . '/sitemap*') as $site_map_file) {
             chmod($site_map_file, 0777);
             unlink($site_map_file);
         }
         // Create file and puts Site Map data
         if (file_put_contents($this->sitemap_path, $sitemap)) {
             chmod($this->sitemap_path, 0777);
             $this->lib_admin->log($successMessage);
             showMessage($successMessage, $successMessageTitle);
         } else {
             showMessage(lang("Site map have not been saved. Set writing permissions on module folder.", 'sitemap'), lang("Error", "sitemap"), 'r');
         }
     } else {
         showMessage(lang("Site map have not been saved", 'sitemap'), lang("Error", "sitemap"), 'r');
     }
 }
开发者ID:RandomUsernameHere,项目名称:megainfo-corporate-cms,代码行数:31,代码来源:admin.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('ymarket');
     $this->load->model('ymarket_model');
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:7,代码来源:ymarket.php

示例8: parseModules

 /**
  * Get modules locales
  * @return array
  */
 public function parseModules()
 {
     try {
         $modules = new \DirectoryIterator(self::MODULES_PATH);
         foreach ($modules as $module) {
             if ($module->isDir() && !$module->isDot() && is_dir(self::MODULES_PATH . $module->getBasename() . '/language')) {
                 $module_dir = self::MODULES_PATH . $module->getBasename();
                 $language_dir = $module_dir . '/language/';
                 $locales = new \DirectoryIterator($language_dir);
                 foreach ($locales as $locale) {
                     if ($locale->isDir() && !$locale->isDot() && is_dir($language_dir . $locale->getBasename()) && isLocale($locale->getBasename())) {
                         $objLang = new \MY_Lang();
                         $objLang->load($module->getBasename());
                         include $module_dir . '/module_info.php';
                         $menu_name = $com_info['menu_name'] ? $com_info['menu_name'] : $module->getBasename();
                         self::$MODULES_LOCALES[$locale->getBasename()][] = array('module' => $module->getBasename(), 'menu_name' => ucfirst($menu_name));
                         unset($com_info);
                     }
                 }
             }
         }
         return self::$MODULES_LOCALES;
     } catch (Exception $exc) {
         return array();
     }
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:30,代码来源:FilesParser.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('auth');
     $this->initialize();
 }
开发者ID:RandomUsernameHere,项目名称:megainfo-corporate-cms,代码行数:7,代码来源:authapi.php

示例10: __construct

 /**
  * __construct base object loaded
  * @access public
  * @author DevImageCms
  * @copyright (c) 2013, ImageCMS
  */
 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('mod_discount');
     $this->load->model('discount_model_admin');
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:13,代码来源:mod_discount.php

示例11: parseModules

 /**
  * Get modules locales
  * @return array
  */
 public function parseModules()
 {
     try {
         $modules = getModulesPaths();
         foreach ($modules as $moduleName => $modulePath) {
             $language_dir = $modulePath . 'language/';
             if (!file_exists($language_dir)) {
                 // TODO: Спитати Марка чому в shop нема language =))
                 continue;
             }
             $locales = new \DirectoryIterator($language_dir);
             foreach ($locales as $locale) {
                 if ($locale->isDir() && !$locale->isDot() && is_dir($language_dir . $locale->getBasename()) && isLocale($locale->getBasename())) {
                     $objLang = new \MY_Lang();
                     $objLang->load($moduleName);
                     $module_info = $module_dir . '/module_info.php';
                     $module_info = \get_mainsite_url($module_info);
                     include $module_info;
                     $menu_name = $com_info['menu_name'] ? $com_info['menu_name'] : $moduleName;
                     self::$MODULES_LOCALES[$locale->getBasename()][] = array('module' => $moduleName, 'menu_name' => ucfirst($menu_name));
                     unset($com_info);
                 }
             }
         }
         return self::$MODULES_LOCALES;
     } catch (Exception $exc) {
         return array();
     }
 }
开发者ID:RandomUsernameHere,项目名称:megainfo-corporate-cms,代码行数:33,代码来源:FilesParser.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('wishlist');
     $this->load->helper(array('form', 'url'));
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:7,代码来源:wishlist.php

示例13: __construct

 function __construct()
 {
     parent::__construct();
     $this->load->module('core');
     $lang = new MY_Lang();
     $lang->load('imagebox');
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:7,代码来源:imagebox.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->language('email');
     $this->email = \cmsemail\email::getInstance();
     $lang = new MY_Lang();
     $lang->load('cmsemail');
 }
开发者ID:RandomUsernameHere,项目名称:megainfo-corporate-cms,代码行数:8,代码来源:admin.php

示例15: __construct

 public function __construct()
 {
     if ($this->uri->segments[2] == 'category' || $this->uri->segments[3] == 'category' || $this->uri->segments[2] == 'filter' || $this->uri->segments[3] == 'filter' || $this->uri->segments[2] == 'pre_filter' || $this->uri->segments[3] == 'pre_filter') {
         parent::__construct();
         $lang = new MY_Lang();
         $lang->load('smart_filter');
     }
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:8,代码来源:smart_filter.php


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