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


PHP VmConfig::get方法代码示例

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


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

示例1: __construct

	public function __construct()
	{
		parent::__construct();
		$this->useSSL = VmConfig::get('useSSL',0);
		$this->useXHTML = true;

	}
开发者ID:rubengarcia0510,项目名称:tienda,代码行数:7,代码来源:user.php

示例2: display

 function display($tpl = null)
 {
     $db = JFactory::getDBO();
     if ($field = JRequest::getVar('field')) {
         if (strpos($field, 'plugin') !== false) {
             if (JVM_VERSION === 1) {
                 $table = '#__plugins';
                 //$ext_id = 'id';
             } else {
                 $table = '#__extensions';
                 //$ext_id = 'extension_id';
             }
             $field = substr($field, 6);
             $q = 'SELECT `params`,`element` FROM `' . $table . '` WHERE `element` = "' . $field . '"';
             $db->setQuery($q);
             $this->plugin = $db->loadObject();
             if (!class_exists('vmParameters')) {
                 require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'parameterparser.php';
             }
             $parameters = new vmParameters($this->plugin, $this->plugin->element, 'plugin', 'vmuserfield');
             $lang = JFactory::getLanguage();
             $filename = 'plg_vmuserfield_' . $this->plugin->element;
             if (VmConfig::get('enableEnglish', 1)) {
                 $lang->load($filename, JPATH_ADMINISTRATOR, 'en-GB', true);
             }
             $lang->load($filename, JPATH_ADMINISTRATOR, $lang->getDefault(), true);
             $lang->load($filename, JPATH_ADMINISTRATOR, null, true);
             echo $parameters->render();
             //echo '<input type="hidden" value="'.$this->plugin->element.'" name="custom_value">';
             jExit();
         }
     }
     jExit();
 }
开发者ID:Arturogcalleja,项目名称:herbolario,代码行数:34,代码来源:view.json.php

示例3: getLangTag

 function getLangTag(&$order)
 {
     $lang = JFactory::getLanguage();
     $lang = $lang->getDefault();
     if (!class_exists('VmConfig')) {
         require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php';
         VmConfig::loadConfig();
     }
     if (!empty($order['details']['BT'])) {
         if (!empty($order['details']['BT']->order_language)) {
             $lang = $order['details']['BT']->order_language;
         } else {
             $langs = VmConfig::get('active_languages', array($lang));
             foreach ($langs as $lang2) {
                 $lang = $lang2;
                 break;
             }
         }
     }
     $vmlang = strtolower($lang);
     $vmlang = str_replace('-', '_', $vmlang);
     if (defined('VMLANG')) {
         $vmlang_c = VMLANG;
         if (empty($vmlang) && !empty($vmlang_c)) {
             $vmlang = VMLANG;
         }
     }
     return $vmlang;
 }
开发者ID:aldegtyarev,项目名称:stelsvelo,代码行数:29,代码来源:order_details.php

示例4: linkIcon

 function linkIcon($link, $altText = '', $boutonName, $verifyConfigValue = false, $modal = true, $use_icon = true, $use_text = false, $class = '')
 {
     if ($verifyConfigValue) {
         if (!VmConfig::get($verifyConfigValue, 0)) {
             return '';
         }
     }
     $folder = 'media/system/images/';
     //shouldn't be root slash before media, as it automatically tells to look in root directory, for media/system/ which is wrong it should append to root directory.
     $text = '';
     if ($use_icon) {
         $text .= JHtml::_('image', $folder . $boutonName . '.png', vmText::_($altText), null, false, false);
     }
     //$folder shouldn't be as alt text, here it is: image(string $file, string $alt, mixed $attribs = null, boolean $relative = false, mixed $path_rel = false) : string, you should change first false to true if images are in templates media folder
     if ($use_text) {
         $text .= '&nbsp;' . vmText::_($altText);
     }
     if ($text == '') {
         $text .= '&nbsp;' . vmText::_($altText);
     }
     if ($modal) {
         return '<a ' . $class . ' class="modal" rel="{handler: \'iframe\', size: {x: 700, y: 550}}" title="' . vmText::_($altText) . '" href="' . JRoute::_($link, FALSE) . '">' . $text . '</a>';
     } else {
         return '<a ' . $class . ' title="' . vmText::_($altText) . '" href="' . JRoute::_($link, FALSE) . '">' . $text . '</a>';
     }
 }
开发者ID:lenard112,项目名称:cms,代码行数:26,代码来源:vmview.php

示例5: filterPath

 /**
  * This function does not allow unicode, replacement for JPath::clean
  * and makesafe
  * @param      $string
  * @param bool $forceNoUni
  * @return mixed|string
  */
 static function filterPath($str)
 {
     if (empty($str)) {
         vmError('filterPath empty string check your paths ');
         vmTrace('Critical error, empty string in filterPath');
         return VMPATH_ROOT;
     }
     $str = trim($str);
     // Delete all '?'
     $str = str_replace('?', '', $str);
     // Replace double byte whitespaces by single byte (East Asian languages)
     $str = preg_replace('/\\xE3\\x80\\x80/', ' ', $str);
     $unicodeslugs = VmConfig::get('transliterateSlugs', false);
     if ($unicodeslugs) {
         $lang = JFactory::getLanguage();
         $str = $lang->transliterate($str);
     }
     //This is a path, so remove all strange slashes
     $str = str_replace('/', DS, $str);
     //Clean from possible injection
     while (strpos($str, '..') !== false) {
         $str = str_replace('..', '', $str);
     }
     $str = preg_replace('#[/\\\\]+#', DS, $str);
     $str = filter_var($str, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW);
     return $str;
 }
开发者ID:sam-akopyan,项目名称:hamradio,代码行数:34,代码来源:vrequest.php

示例6: linkIcon

 function linkIcon($link, $altText = '', $boutonName, $verifyConfigValue = false, $modal = true, $use_icon = true, $use_text = false)
 {
     if ($this->document->_type == 'pdf') {
         return;
     }
     if ($verifyConfigValue) {
         if (!VmConfig::get($verifyConfigValue, 0)) {
             return '';
         }
     }
     // $folder = '/media/system/images/'; // use of relative path, $folder is not needed in j3
     $text = '';
     // if ( $use_icon ) $text .= JHtml::_('image', $boutonName.'.png', JText::_($altText),  null, true);
     if ($use_icon) {
         $text .= '<span class="' . $boutonName . '"> </span>';
     }
     //JHtml::_('image', $boutonName.'.png', JText::_($altText),  null, true);
     if ($use_text) {
         $text .= '&nbsp;' . JText::_($altText);
     }
     if ($text == '') {
         $text .= '&nbsp;' . JText::_($altText);
     }
     if ($modal) {
         return '<a class="modal btn btn-default" rel="{handler: \'iframe\', size: {x: 700, y: 550}}" title="' . JText::_($altText) . '" href="' . JRoute::_($link) . '">' . $text . '</a>';
     } else {
         return '<a class="btn btn-default" title="' . JText::_($altText) . '" href="' . JRoute::_($link, FALSE) . '">' . $text . '</a>';
     }
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:29,代码来源:vmview.php

示例7: paste

 /**
  * Paste the table  in json format
  *
  */
 public function paste()
 {
     // TODO Test user ?
     $json = array();
     $json['fields'] = 'error';
     $json['msg'] = 'Invalid Token';
     $json['structure'] = 'empty';
     if (!JSession::checkToken('get')) {
         echo json_encode($json);
         jexit();
     }
     $lang = JRequest::getvar('lg');
     $langs = VmConfig::get('active_languages', array());
     $language = JFactory::getLanguage();
     if (!in_array($lang, $langs)) {
         $json['msg'] = 'Invalid language ! ' . $lang;
         $json['langs'] = $langs;
         echo json_encode($json);
         jexit();
     }
     $lang = strtolower($lang);
     // Remove tag if defaut or
     // if ($language->getDefault() == $lang ) $dblang ='';
     $dblang = strtr($lang, '-', '_');
     $id = JRequest::getInt('id', 0);
     $viewKey = JRequest::getWord('editView');
     // we have here 2 access user & vendor give same results
     if ($viewKey == 'user') {
         $viewKey = 'vendor';
     }
     // Not needed , vendor is checked in constructor
     //if ($viewKey == 'vendor') $id = 1 ;
     $tables = array('category' => 'categories', 'product' => 'products', 'manufacturer' => 'manufacturers', 'manufacturercategories' => 'manufacturercategories', 'vendor' => 'vendors', 'paymentmethod' => 'paymentmethods', 'shipmentmethod' => 'shipmentmethods');
     if (!isset($tables[$viewKey])) {
         $json['msg'] = "Invalid view " . $viewKey;
         echo json_encode($json);
         jExit();
     }
     $tableName = '#__virtuemart_' . $tables[$viewKey] . '_' . $dblang;
     $db = JFactory::getDBO();
     $q = 'select * FROM `' . $tableName . '` where `virtuemart_' . $viewKey . '_id` =' . $id;
     $db->setQuery($q);
     if ($json['fields'] = $db->loadAssoc()) {
         $json['structure'] = 'filled';
         $json['msg'] = jText::_('COM_VIRTUEMART_SELECTED_LANG') . ':' . $lang;
     } else {
         $json['structure'] = 'empty';
         $db->setQuery('SHOW COLUMNS FROM ' . $tableName);
         $tableDescribe = $db->loadAssocList();
         array_shift($tableDescribe);
         $fields = array();
         foreach ($tableDescribe as $key => $val) {
             $fields[$val['Field']] = $val['Field'];
         }
         $json['fields'] = $fields;
         $json['msg'] = JText::sprintf('COM_VIRTUEMART_LANG_IS_EMPTY', $lang, jText::_('COM_VIRTUEMART_' . strtoupper($viewKey)));
     }
     echo json_encode($json);
     jExit();
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:64,代码来源:translate.php

示例8: display

 public function display($tpl = null)
 {
     $user =& JFactory::getUser();
     $db =& JFactory::getDBO();
     $session = JFactory::getSession();
     $cmp = $session->get('compare', '');
     $listpid = explode(",", $cmp);
     if (empty($cmp)) {
         $valid = 0;
         $this->assignRef('valid', $valid);
         //$app =& JFactory::getApplication();
         //$app->enqueueMessage('Your Wishlist is Empty Please Add any product to Wishlist', 'error');
         //$app->redirect('index.php');
         //exit;
     } else {
         $valid = 1;
         $this->assignRef('valid', $valid);
         $this->assignRef('wids', $wids);
         $productModel = VmModel::getModel('product');
         $products = $productModel->getProducts($listpid);
         //echo "<pre>";
         //print_r($wishlist);
         //exit;
         $productModel->addImages($products, 1);
         $this->assignRef('products', $products);
         foreach ($products as $product) {
             $product->stock = $productModel->getStockIndicator($product);
         }
         $show_prices = VmConfig::get('show_prices', 1);
         if ($show_prices == '1') {
             if (!class_exists('calculationHelper')) {
                 require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'calculationh.php';
             }
         }
         $this->assignRef('show_prices', $show_prices);
         if (!class_exists('Permissions')) {
             require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'permissions.php';
         }
         $showBasePrice = Permissions::getInstance()->check('admin');
         //todo add config settings
         $this->assignRef('showBasePrice', $showBasePrice);
         $currency = CurrencyDisplay::getInstance();
         $this->assignRef('currency', $currency);
         $pagination = $productModel->getPagination(3);
         $this->assignRef('vmPagination', $pagination);
         /*** rating ***/
         $ratingModel = VmModel::getModel('ratings');
         $showRating = $ratingModel->showRating($product->virtuemart_product_id);
         $this->assignRef('showRating', $showRating);
         if ($showRating) {
             $vote = $ratingModel->getVoteByProduct($product->virtuemart_product_id);
             $this->assignRef('vote', $vote);
             $rating = $ratingModel->getRatingByProduct($product->virtuemart_product_id);
             $this->assignRef('rating', $rating);
         }
     }
     parent::display($tpl);
 }
开发者ID:sergy444,项目名称:joomla,代码行数:58,代码来源:view.html.php

示例9: display

 function display()
 {
     if (VmConfig::get('shop_is_offline') == '1') {
         $this->input->set('layout', 'off_line');
     }
     // Display it all
     $safeurlparams = array('virtuemart_category_id' => 'INT', 'virtuemart_currency_id' => 'INT', 'return' => 'BASE64', 'lang' => 'CMD');
     return parent::display(true, $safeurlparams);
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:9,代码来源:virtuemart.php

示例10: __construct

 function __construct()
 {
     parent::__construct();
     if (VmConfig::get('shop_is_offline') == '1') {
         vRequest::setVar('layout', 'off_line');
     } else {
         vRequest::setVar('layout', 'default');
     }
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:9,代码来源:virtuemart.php

示例11: mailAskquestion

 /**
  * Send the ask question email.
  * @author Kohl Patrick, Christopher Roussel
  */
 public function mailAskquestion()
 {
     vRequest::vmCheckToken();
     if (!class_exists('shopFunctionsF')) {
         require VMPATH_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php';
     }
     $model = VmModel::getModel('vendor');
     $mainframe = JFactory::getApplication();
     $vars = array();
     $min = VmConfig::get('asks_minimum_comment_length', 50) + 1;
     $max = VmConfig::get('asks_maximum_comment_length', 2000) - 1;
     $commentSize = vRequest::getString('comment');
     if (function_exists('mb_strlen')) {
         $commentSize = mb_strlen($commentSize);
     } else {
         $commentSize = strlen($commentSize);
     }
     $validMail = filter_var(vRequest::getVar('email'), FILTER_VALIDATE_EMAIL);
     $virtuemart_vendor_id = vRequest::getInt('virtuemart_vendor_id', 1);
     if (!class_exists('VirtueMartModelVendor')) {
         require VMPATH_ADMIN . DS . 'models' . DS . 'vendor.php';
     }
     $userId = VirtueMartModelVendor::getUserIdByVendorId($virtuemart_vendor_id);
     //$vendorUser = JFactory::getUser($userId);
     if ($commentSize < $min || $commentSize > $max || !$validMail) {
         $this->setRedirect(JRoute::_('index.php?option=com_virtuemart&view=vendor&task=contact&virtuemart_vendor_id=' . $virtuemart_vendor_id, FALSE), vmText::_('COM_VIRTUEMART_COMMENT_NOT_VALID_JS'));
         return;
     }
     $user = JFactory::getUser();
     $fromMail = vRequest::getVar('email');
     //is sanitized then
     $fromName = vRequest::getVar('name', '');
     //is sanitized then
     $fromMail = str_replace(array('\'', '"', ',', '%', '*', '/', '\\', '?', '^', '`', '{', '}', '|', '~'), array(''), $fromMail);
     $fromName = str_replace(array('\'', '"', ',', '%', '*', '/', '\\', '?', '^', '`', '{', '}', '|', '~'), array(''), $fromName);
     if (!empty($user->id)) {
         if (empty($fromMail)) {
             $fromMail = $user->email;
         }
         if (empty($fromName)) {
             $fromName = $user->name;
         }
     }
     $vars['user'] = array('name' => $fromName, 'email' => $fromMail);
     $VendorEmail = $model->getVendorEmail($virtuemart_vendor_id);
     $vars['vendor'] = array('vendor_store_name' => $fromName);
     if (shopFunctionsF::renderMail('vendor', $VendorEmail, $vars, 'vendor')) {
         $string = 'COM_VIRTUEMART_MAIL_SEND_SUCCESSFULLY';
     } else {
         $string = 'COM_VIRTUEMART_MAIL_NOT_SEND_SUCCESSFULLY';
     }
     $mainframe->enqueueMessage(vmText::_($string));
     // Display it all
     $view = $this->getView('vendor', 'html');
     $view->setLayout('mail_confirmed');
     $view->display();
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:61,代码来源:vendor.php

示例12: display

 function display($tpl = null)
 {
     // Load the helper(s)
     if (!class_exists('VmHTML')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php';
     }
     $model = VmModel::getModel();
     $coupon = $model->getCoupon();
     $this->SetViewTitle('', $coupon->coupon_code);
     $layoutName = vRequest::getCmd('layout', 'default');
     // 		if(Vmconfig::get('multix','none')!=='none'){
     // 				$vendorList= ShopFunctions::renderVendorList($coupon->virtuemart_vendor_id);
     // 				$this->assignRef('vendorList', $vendorList);
     // 		}
     $vendorModel = VmModel::getModel('Vendor');
     $vendorModel->setId(1);
     $vendor = $vendorModel->getVendor();
     $currencyModel = VmModel::getModel('Currency');
     $currencyModel = $currencyModel->getCurrency($vendor->vendor_currency);
     $this->assignRef('vendor_currency', $currencyModel->currency_symbol);
     if ($layoutName == 'edit') {
         if ($coupon->virtuemart_coupon_id < 1) {
             // Set a default expiration date
             $_expTime = explode(',', VmConfig::get('coupons_default_expire', '14,D'));
             if (!empty($_expTime[1]) && $_expTime[1] == 'W') {
                 $_expTime[0] = $_expTime[0] * 7;
                 $_expTime[1] = 'D';
             }
             if (version_compare(PHP_VERSION, '5.3.0', '<')) {
                 $_dtArray = getdate(time());
                 if ($_expTime[1] == 'D') {
                     $_dtArray['mday'] += $_expTime[0];
                 } elseif ($_expTime[1] == 'M') {
                     $_dtArray['mon'] += $_expTime[0];
                 } elseif ($_expTime[1] == 'Y') {
                     $_dtArray['year'] += $_expTime[0];
                 }
                 $coupon->coupon_expiry_date = mktime($_dtArray['hours'], $_dtArray['minutes'], $_dtArray['seconds'], $_dtArray['mon'], $_dtArray['mday'], $_dtArray['year']);
             } else {
                 $_expDate = new DateTime();
                 $_expDate->add(new DateInterval('P' . $_expTime[0] . $_expTime[1]));
                 $coupon->coupon_expiry_date = $_expDate->format("U");
             }
         }
         $this->assignRef('coupon', $coupon);
         $this->addStandardEditViewCommands();
     } else {
         $this->addStandardDefaultViewCommands();
         $this->addStandardDefaultViewLists($model);
         $coupons = $model->getCoupons();
         $this->assignRef('coupons', $coupons);
         $pagination = $model->getPagination();
         $this->assignRef('pagination', $pagination);
     }
     parent::display($tpl);
 }
开发者ID:lenard112,项目名称:cms,代码行数:56,代码来源:view.html.php

示例13: addtocart

    private static function addtocart($product)
    {
        $output = '';
        ob_start();
        if (!VmConfig::get('use_as_catalog', 0)) {
            ?>
                <div class="ns2-addtocart">

				<form method="post" class="product" action="index.php">
					<input type="hidden" class="quantity-input" name="quantity[]" value="1" />
					<?php 
            $button_lbl = JText::_('COM_VIRTUEMART_CART_ADD_TO');
            $button_cls = '';
            // Display the add to cart button
            $stockhandle = VmConfig::get('stockhandle', 'none');
            if (($stockhandle == 'disableit' or $stockhandle == 'disableadd') and $product->product_in_stock - $product->product_ordered < 1) {
                $button_lbl = JText::_('COM_VIRTUEMART_CART_NOTIFY');
                $button_cls = 'notify-button';
                $button_name = 'notifycustomer';
            }
            ?>
					<?php 
            // Display the add to cart button
            ?>
					<input type="submit" name="addtocart"  class="addtocart-button" value="<?php 
            echo $button_lbl;
            ?>
" title="<?php 
            echo $button_lbl;
            ?>
" />
                    <div class="clear"></div>
                    <input type="hidden" class="pname" value="<?php 
            echo $product->product_name;
            ?>
"/>
                    <input type="hidden" name="option" value="com_virtuemart" />
                    <input type="hidden" name="view" value="cart" />
                    <noscript><input type="hidden" name="task" value="add" /></noscript>
                    <input type="hidden" name="virtuemart_product_id[]" value="<?php 
            echo $product->virtuemart_product_id;
            ?>
" />
                    <input type="hidden" name="virtuemart_category_id[]" value="<?php 
            echo $product->virtuemart_category_id;
            ?>
" />
                </form>
				<div class="clear"></div>
            </div>
        <?php 
        }
        $output = ob_get_clean();
        return $output;
    }
开发者ID:ashanrupasinghe,项目名称:slbcv1,代码行数:55,代码来源:vmhelper.php

示例14: getVmLink

 function getVmLink($id, &$errorMsg)
 {
     if (JComponentHelper::isEnabled('com_virtuemart', true)) {
         if ((int) $id < 1) {
             return "";
         }
     } else {
         return "";
     }
     $db =& JFactory::getDBO();
     $query = 'SELECT c.virtuemart_category_id AS catid, a.virtuemart_product_id AS id, a.published AS published, a.product_in_stock AS product_in_stock' . ' FROM #__virtuemart_product_categories AS c' . ' LEFT JOIN #__virtuemart_products AS a ON a.virtuemart_product_id = c.virtuemart_product_id' . ' WHERE c.virtuemart_product_id = ' . (int) $id;
     $db->setQuery($query, 0, 1);
     $product = $db->loadObject();
     if (!$db->query()) {
         $this->setError($db->getErrorMsg());
         $errorMsg = 'VirtueMart Product Not Found';
         return false;
     }
     $catPart = '';
     if (!empty($product->catid)) {
         $catPart = '&virtuemart_category_id=' . $product->catid;
     }
     $itemId = PhocaGalleryVirtueMart::_getVmItemid();
     $link = 'index.php?option=com_virtuemart&view=productdetails' . '&virtuemart_product_id=' . (int) $id . $catPart . '&itemId=' . (int) $itemId;
     // Check PUBLISHED
     if (isset($product->published) && $product->published == 0) {
         $errorMsg = 'VirtueMart Product Not Published';
         return '';
         //don't display cart icon for unpublished product
     }
     // Check Stock if check stock feature is enabled
     //$component			=	'com_virtuemart';
     //$paramsC			= JComponentHelper::getParams($component) ;
     if (is_file(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php')) {
         require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php';
         VmConfig::loadConfig();
         if (VmConfig::get('check_stock', 0) == 1) {
             // Check STOCK
             if (isset($product->product_in_stock) && $product->product_in_stock == 0) {
                 $errorMsg = 'VirtueMart Product Not On Stock';
                 return '';
                 //don't display cart icon for non stock products
             }
         }
     } else {
         $errorMsg = 'VirtueMart Config Not Found';
         return false;
     }
     return $link;
 }
开发者ID:sansandeep143,项目名称:av,代码行数:50,代码来源:virtuemart.php

示例15: __construct

 /**
  * Constructor
  *
  * @param object $subject The object to observe
  * @param array  $config  An array that holds the plugin configuration
  * @since 1.5
  */
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_psType = substr($this->_type, 2);
     $lang = JFactory::getLanguage();
     $filename = 'plg_' . $this->_type . '_' . $this->_name;
     if (VmConfig::get('enableEnglish', 1)) {
         $lang->load($filename, JPATH_ADMINISTRATOR, 'en-GB', true);
         $lang->load($filename, JPATH_ADMINISTRATOR, $lang->getDefault(), true);
     }
     $lang->load($filename, JPATH_ADMINISTRATOR, $lang->getUsed(), true);
     if (!class_exists('JParameter')) {
         require JPATH_VM_LIBRARIES . DS . 'joomla' . DS . 'html' . DS . 'parameter.php';
     }
     $this->_tablename = '#__virtuemart_' . $this->_psType . '_plg_' . $this->_name;
     $this->_tableChecked = false;
 }
开发者ID:joselapria,项目名称:virtuemart,代码行数:24,代码来源:vmplugin.php


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