本文整理汇总了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');
}
示例2: __construct
public function __construct()
{
parent::__construct();
$lang = new MY_Lang();
$lang->load('search');
//$this->output->enable_profiler(TRUE);
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->load->module('core');
$lang = new MY_Lang();
$lang->load('mailer');
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->load->model('cmsemail_model');
$lang = new MY_Lang();
$lang->load('cmsemail');
}
示例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');
}
示例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');
}
}
示例7: __construct
public function __construct()
{
parent::__construct();
$lang = new MY_Lang();
$lang->load('ymarket');
$this->load->model('ymarket_model');
}
示例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();
}
}
示例9: __construct
public function __construct()
{
parent::__construct();
$lang = new MY_Lang();
$lang->load('auth');
$this->initialize();
}
示例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');
}
示例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();
}
}
示例12: __construct
public function __construct()
{
parent::__construct();
$lang = new MY_Lang();
$lang->load('wishlist');
$this->load->helper(array('form', 'url'));
}
示例13: __construct
function __construct()
{
parent::__construct();
$this->load->module('core');
$lang = new MY_Lang();
$lang->load('imagebox');
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->load->language('email');
$this->email = \cmsemail\email::getInstance();
$lang = new MY_Lang();
$lang->load('cmsemail');
}
示例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');
}
}