當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。