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


PHP loadModuleFile函数代码示例

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


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

示例1: getLineChartAmchart

 function getLineChartAmchart($xlabels, $series, $width = NULL, $height = NULL, $unit = '', $unit_position = 'right', $frequency = '', $title = '')
 {
     loadModuleFile('charts/includes/line_chart_amchart.php');
     loadModuleFile('charts/includes/line_chart.php');
     $line_chart = new line_chart();
     $line_chart->set_xlabels($xlabels);
     $line_chart->set_series_data($series);
     $chart = new line_chart_amchart();
     $chart->set_frequency($frequency);
     $chart->set_line_chart($line_chart);
     $chart->setTitle($title);
     if ($height !== NULL) {
         $chart->set_height($height);
     }
     if ($width !== NULL) {
         $chart->set_width($width);
     }
     $chart->set_unit($unit);
     $chart->set_unit_position($unit_position);
     $res = $chart->output();
     return $res;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:22,代码来源:charts_api.php

示例2: checkIfSetIsUsed

     *
     * @param int $sid
     */
    function checkIfSetIsUsed($sid)
    {
        $result = execQuery("SELECT_TAXES_WHICH_USE_SET", array("sid" => $sid));
        if (count($result) > 0) {
            return true;
        }
        return false;
    }
    //------------------------------------------------
    //              PRIVATE DECLARATION
    //------------------------------------------------
    /**#@+
     * @access private
     */
    var $TaxNamesList;
    var $CostList;
    /**
     * Error data, e.g. to be passed for mapping from Action to View.
     */
    var $ErrorData;
}
global $zone;
if ($zone == 'AdminZone') {
    loadModuleFile('taxes/includes/taxes_api_az.php');
    eval("class Taxes extends Taxes_AZ{};");
} else {
    eval("class Taxes extends TaxesBase{};");
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:taxes_api.php

示例3: Avactis

/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('cms/cms_api.php');
// ---------------------------
// Select queries
// ---------------------------
class SELECT_CMS_PAGE_NAMES_BY_PARENT_ID extends DB_Select
{
    function initQuery($params)
    {
        $tables = CMS::getTables();
        $pt = $tables['cms_pages']['columns'];
        $this->addSelectField($pt['page_id']);
        $this->addSelectField($pt['page_index']);
        $this->setMultiLangAlias('_name', 'cms_pages', $pt['name'], $pt['page_id'], 'CMS');
        $this->addSelectField($this->getMultiLangAlias('_name'), 'name');
        $this->WhereValue($pt['parent_id'], DB_EQ, $params['parent_id']);
        if (isset($params['zone']) && $params['zone'] == 'CZ') {
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:common.php

示例4: Avactis

/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('catalog/catalog_api.php');
/**
 * The class gives complete information about category.
 * To get this information, it's necessary to create the class object
 * and invoke the method getCategoryTagValue, specifying the tag.
 *
 * The class interface:
 * CCategoryInfo::CCategoryInfo($cid, $localized = CATEGORYINFO_DEFAULT_LOCALIZED_MODE)
 * CCategoryInfo::turnOnDebugMode()
 * CCategoryInfo::turnOffDebugMode()
 * CCategoryInfo::getCategoryTagValue($tag, $localized = CATEGORYINFO_DEFAULT_LOCALIZED_MODE)
 *
 * Example of usage:
 * <code>
 *  $category = new CCategoryInfo(8);
 *  $category_name = $category->getCategoryTagValue('name');
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:category_class.php

示例5: Avactis

/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('catalog/abstract/product_list_filter.php');
/**
 * The size of the selection from the DB on each relevance level.
 */
define('PSF_PRODUCT_SEARCH_RESULT_LIMIT', 300);
/**
 * @package Catalog
 * @author Sergey Kulitsky
 *
 */
class SetSearchProductFormFilter extends AjaxAction
{
    function SetSearchProductFormFilter()
    {
        $this->overflow = false;
    }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:set_search_product_form_filter.php

示例6: Avactis

| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('catalog/catalog_api.php');
loadModuleFile('catalog/abstract/product_class.php');
/**
 * The words in the searching request shorter than PRODUCT_SEARCH_MIN_WORD_LENGTH
 * are skipped.
 */
define('PRODUCT_SEARCH_MIN_WORD_LENGTH', 3);
/**
 * The words in the searching request longer than PRODUCT_SEARCH_MAX_WORD_LENGTH
 * are skipped.
 */
define('PRODUCT_SEARCH_MAX_WORD_LENGTH', 20);
/**
 * The number of the first words in the searching request, which will be used
 * in the search. The rest of the words are skipped.
 */
define('PRODUCT_SEARCH_MAX_WORD_NUMBER', 10);
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:catalog_search.php

示例7: Avactis

/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('currency_converter/currency_converter_api.php');
class SELECT_CURRENT_GROUP_ID extends DB_Select
{
    function initQuery($params)
    {
        $tables = Customer_Account::getTables();
        $t_ca_customers = $tables['ca_customers']['columns'];
        $this->addSelectField($t_ca_customers['group_id'], 'group_id');
        $this->WhereValue($t_ca_customers['customer_account'], DB_EQ, $params['customer_account']);
    }
}
class SELECT_CUSTOMER_ACCOUNT_GROUPS extends DB_Select
{
    function initQuery($params)
    {
        $tables = Customer_Account::getTables();
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:common.php

示例8: Avactis

/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('catalog/abstract/product_info.php');
/**
 * A clone of ProductInfo class
 * used to show its own set of templates
 * since mechanism of aliases does not work for ProductInfo
 *
 * @package Catalog
 * @access  public
 * @author Sergey E. Kulitsky
 */
class CustomerReviewsProductInfo extends Catalog_ProdInfo_Base
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:cr_product_info_cz.php

示例9: content

| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('subscriptions/subscriptions_api.php');
loadModuleFile('customer_account/customer_account_api.php');
loadModuleFile('newsletter/newsletter_api.php');
loadModuleFile('checkout/checkout_api.php');
class SUBSCR_GET_SUBSCRIPTION_EMAILS extends DB_Select
{
    function initQuery($params)
    {
        $stables = Subscriptions::getTables();
        $atable = 'email_address';
        $acolumns = $stables[$atable]['columns'];
        $this->addSelectField($acolumns['email']);
        $this->addSelectField($acolumns['lng']);
        if (isset($params['account'])) {
            $ctables = Customer_Account::getTables();
            $ctable = 'ca_customers';
            $ccolumns =& $ctables[$ctable]['columns'];
            $this->WhereField($acolumns['customer_id'], DB_EQ, $ccolumns['customer_id']);
            $this->WhereAND();
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:common.php

示例10: loadModuleFile

| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
/**
 * @package CustomerAccount
 * @author Egor V. Derevyankin
 *
 */
loadModuleFile('customer_account/views/customer_order_info_cz.php');
class OrderInvoice extends OrderInfo
{
    function getTemplateFormat()
    {
        $format = array('layout-file' => 'customer-account-order-invoice.ini', 'files' => array('Container' => TEMPLATE_FILE_SIMPLE, 'AccessDenied' => TEMPLATE_FILE_SIMPLE, 'GroupHeader' => TEMPLATE_FILE_SIMPLE, 'GroupField' => TEMPLATE_FILE_SIMPLE, 'ProductsContainer' => TEMPLATE_FILE_SIMPLE, 'OrderedProduct' => TEMPLATE_FILE_SIMPLE, 'PriceItem' => TEMPLATE_FILE_SIMPLE, 'ProductOptionsContainer' => TEMPLATE_FILE_SIMPLE, 'ProductOptionsItem' => TEMPLATE_FILE_SIMPLE), 'options' => array());
        return $format;
    }
    function OrderInvoice()
    {
        global $application;
        #check if fatal errors of the block tag exist
        $this->NoView = false;
        if ($application->issetBlockTagFatalErrors("OrderInvoice")) {
            $this->NoView = true;
        }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:customer_order_invoice_cz.php

示例11: Avactis

<?php

/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('users/users_api.php');
class USERS_GET_USER_PERMISSIONS extends DB_Select
{
    function initQuery($params)
    {
        $stables = Users::getTables();
        $atable = 'admin_permissions';
        $acolumns = $stables[$atable]['columns'];
        $this->addSelectField($acolumns['permission']);
        $this->addSelectField($acolumns['access_level']);
        $this->WhereValue($acolumns['admin_id'], DB_EQ, $params['admin_id']);
    }
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:30,代码来源:common.php

示例12: Avactis

/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('shipping_cost_calculator/shipping_cost_calculator_api.php');
class SELECT_SCC_FS_RULES extends DB_Select
{
    function initQuery($params)
    {
        $tables = Shipping_Cost_Calculator::getTables();
        $c = $tables['scc_fs_rules']['columns'];
        $this->addSelectTable('scc_fs_rules');
        $this->addSelectField($c['id'], 'id');
        $this->addSelectField($c['rule_name'], 'rule_name');
        $this->addSelectField($c['min_subtotal'], 'min_subtotal');
        $this->addSelectField($c['cats'], 'cats');
        $this->addSelectField($c['prods'], 'prods');
        $this->addSelectField($c['dirty_cart'], 'dirty_cart');
    }
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:common.php

示例13: start

 /**
  * Initializes the session: e.g. retrieves session data from the database.
  */
 function start($sid = "")
 {
     global $zone, $application;
     $drop_session_cookie = false;
     if ($zone == "AdminZone") {
         ini_set("session.cookie_lifetime", 0);
         session_name("AZSESSID");
         if ($application->db->DB_isTableExists($application->getAppIni('DB_TABLE_PREFIX') . "settings") != null) {
             $duration_cfg = (int) modApiFunc("Settings", "getParamValue", "ADMIN_SESSION_DURATION", "ADM_SESSION_DURATION_VALUE");
         } else {
             $duration_cfg = 3600;
         }
         $ClientSessionLifetime = $duration_cfg;
     } else {
         if (isset($_COOKIE['save_session']) && $_COOKIE['save_session'] == "save") {
             if ($application->db->DB_isTableExists($application->getAppIni('DB_TABLE_PREFIX') . "settings") != null) {
                 $cz_duration_cfg = (int) modApiFunc("Settings", "getParamValue", "CUSTOMER_ACCOUNT_SETTINGS", "CUSTOMER_SESSION_DURATION_VALUE");
             } else {
                 $cz_duration_cfg = 3600 * 24 * 30;
                 //30 days
             }
             ini_set("session.cookie_lifetime", $cz_duration_cfg);
             ini_set("session.gc_maxlifetime", $cz_duration_cfg);
         } else {
             ini_set("session.cookie_lifetime", 0);
             #ini_set("session.gc_maxlifetime",  0);
             $drop_session_cookie = true;
         }
         session_name("CZSESSID");
     }
     if ($sid) {
         session_id($sid);
     }
     $session_save_handler = $application->getAppIni('SESSION_SAVE_HANDLER');
     if ($session_save_handler == 'DB') {
         // redefine session handler
         __set_session_db_handler();
     } elseif ($session_save_handler != 'PHP_INI') {
         ini_set("session.save_handler", $session_save_handler);
     }
     $session_save_path = $application->getAppIni('SESSION_SAVE_PATH');
     if ($session_save_path == 'AVACTIS_CACHE_DIR') {
         session_save_path($application->getAppIni("PATH_CACHE_DIR"));
     } elseif ($session_save_path != 'PHP_INI') {
         session_save_path($session_save_path);
     }
     session_start();
     global $application;
     $HTTP_URL = md5($application->getAppIni('HTTP_URL'));
     if (!isset($_COOKIE['HTTP_URL'])) {
         setcookie('HTTP_URL', $HTTP_URL, time());
     } elseif ($_COOKIE['HTTP_URL'] != $HTTP_URL) {
         setcookie('HTTP_URL', $HTTP_URL, time());
         session_destroy();
         if ($session_save_handler == 'DB') {
             // redefine session handler (http://bugs.php.net/bug.php?id=32330)
             // redefine session handler
             __set_session_db_handler();
         }
         session_start();
     }
     if ($zone == "CustomerZone") {
         $sess = session_get_cookie_params();
         if ($drop_session_cookie) {
             $t = 0;
         } else {
             $t = time() + $sess['lifetime'];
         }
         setcookie(session_name(), session_id(), $t, '/');
         if ($application->getCurrentProtocol() == 'http') {
             $temp_url = $application->getAppIni('SITE_HTTPS_URL');
         } else {
             $temp_url = $application->getAppIni('SITE_URL');
         }
         $temp_url = parse_url($temp_url);
         if (isset($temp_url['host'])) {
             setcookie(session_name(), session_id(), $t, '/', $temp_url['host']);
         }
     }
     //
     //                                   ,                                   .
     //        ,                   .
     //         ,                                ,                   .
     //                                                                  .
     //                          IP                             .
     //                                                                  .
     //                                                   .
     //
     $CURRENT_PRODUCT_VERSION = PRODUCT_VERSION;
     $current_hash = "";
     if ($zone != "AdminZone") {
         loadModuleFile('configuration/const.php');
         /*_use(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR.'configuration'.DIRECTORY_SEPARATOR.'configuration_api.php');
         
                     $tables = Configuration::getTables();
                     $ss = $tables['store_settings']['columns'];
         
//.........这里部分代码省略.........
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:101,代码来源:session.php

示例14: Avactis

/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('eventstack/event_stack_api.php');
class SELECT_EVENTSTACK_NAME extends DB_select
{
    function initQuery($params)
    {
        $tables = EventStack::getTables();
        $tbl_events = $tables['eventstack_event_names']['columns'];
        $this->addSelectField($tbl_events['id_event_name'], 'id_event_name');
        $this->addSelectField($tbl_events['event_name'], 'event_name');
        if (isset($params['id_event_name'])) {
            $this->WhereValue($tbl_events['id_event_name'], DB_EQ, $params['id_event_name']);
        } elseif (isset($params['event_name'])) {
            $this->WhereValue($tbl_events['event_name'], DB_EQ, $params['event_name']);
        }
    }
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:common.php

示例15: loadModuleFile

| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
/**
 * @copyright Copyright &copy; 2005, HBWSL.
 * @package Error
 * @author ag
 */
loadModuleFile('error/views/error_view.php');
/**
 * A_Error is a view of errors or warnings in the Admin Zone.
 *
 * @package Error
 * @access public
 */
class A_Error extends Abstract_Error_View
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
     * @access public
     */
    /**
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:a_error.php


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