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


PHP _use函数代码示例

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


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

示例1: install

 /**
  * Module installator.
  */
 function install()
 {
     _use(dirname(__FILE__) . '/includes/install.inc');
     //                                RemovePersonInfoType
     //                   ,          -     CheckoutEditor
     //             PersonInfoType,         , BillingInfo, ShippingInfo,
     //  CustomerInfo, CreditCardInfo, BankAccountInfo, PaymentMethodInfo (
     //             ), ShippingMethodInfo (              ).
     //       ShippingModule'                                                 ,
     //                                     .
     //                    ,                 PersonInfoType          .
     //
     //  PersonInfoType.
     modApiFunc('EventsManager', 'addEventHandler', 'RemovePersonInfoTypeEvent', 'Shipping_Module_DSR', 'OnRemovePersonInfoType');
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:18,代码来源:shipping_module_dsr_api.php

示例2: install

 /**
  * Installs the specified module in the system.
  *
  * The install() method is called statically.
  * To call other methods of this class from this method,
  * the static call is used, for example,
  * Configuration::getTables() instead of $this->getTables()
  */
 function install()
 {
     _use(dirname(__FILE__) . '/install/install.php');
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:12,代码来源:localization_api.php

示例3: _use

| =============================================
| 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 Shipping Cost Calculator
 * @access  public
 * @author Ravil Garafutdinov
 */
_use(dirname(__FILE__) . '/add-fs-rule-az.php');
class EditFsRule extends AddFsRule
{
    function EditFsRule()
    {
        global $application;
        $this->mTmplFiller =& $application->getInstance('TmplFiller');
        if (modApiFunc("Session", "is_Set", "SessionPost")) {
            $this->copyFormData();
            modApiFunc('Session', 'un_Set', 'SessionPost');
        } else {
            $this->initDBFormData();
        }
    }
    /**
     *
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:edit-fs-rule-az.php

示例4: _use

<?php

//_use('jquery');
//_use('jquery-cdn');
//_use('font-awesome');
_use('bootstrap');
if (!isset($merge_css)) {
    $merge_css = false;
}
if (!isset($minify_css)) {
    $minify_css = false;
}
if (!isset($merge_js)) {
    $merge_js = false;
}
if (!isset($minify_js)) {
    $minify_js = false;
}
// --------------------------------
// the "classic" assets web accessible directory
if (empty($assets)) {
    $assets = $_template->getAssetsLoader()->getAssetsWebPath();
    //trim(str_replace($_SERVER['DOCUMENT_ROOT'], '', __DIR__.'/../'), '/');
}
if (strlen($assets)) {
    $assets = rtrim($assets, '/') . '/';
}
// --------------------------------
// METAS
$old_metas = $_template->getTemplateObject('MetaTag')->get();
$_template->getTemplateObject('MetaTag')->reset();
开发者ID:atelierspierrot,项目名称:assets-bootstrapper,代码行数:31,代码来源:layout.html.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.
|
 ***********************************************************************/
_use(dirname(__FILE__) . '/breadcrumb-az.php');
/**
 * Catalog module.
 * Catalog Move Category view.
 *
 * @package Catalog
 * @access  public
 * @author  Girin Alexander
 */
class MoveCategory extends Breadcrumb
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
     * @access public
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:move_category_az.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.
|
 ***********************************************************************/
_use(dirname(__FILE__) . '/number_settings_az.php');
/**
 * Localization Module, CurrencySettings View.
 *
 * @package Localization
 * @author Alexey Florinsky
 */
class CurrencySettings extends NumberSettings
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
     * @access public
     */
    /**
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:currency_settings_az.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.
|
 ***********************************************************************/
_use(dirname(__FILE__) . '/add_category_info_action.php');
loadModuleFile('catalog/abstract/category_class.php');
/**
 * Catalog module.
 * This action is responsible for adding a new category.
 *
 * @package Catalog
 * @access  public
 * @author  Alexander Girin
 */
class UpdateCategoryInfo extends AddCategoryInfo
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:update_category_info_action.php

示例8: _use

| 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
 */
_use(dirname(__FILE__) . '/error_view.php');
/**
 * SetupWarnings is a view of errors or warnings, which is concerned with the
 * general configuration. For example, check if folders are writable
 * and if distribution files exist or not.
 *
 * @package Error
 * @access public
 */
class SetupWarnings
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
     * @access public
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:setup_warnings.php

示例9: _tryInclude

 /**
  *                                           .
  *
  *                  :                   TRUE,             ,
  *                  $handler_class,      FALSE -          .
  *
  *                                                     ,
  *                                                                  .
  *
  *                                       :
  *  -            $handler_class                      ,                 TRUE
  *  -         ,                                        $handler_include_path
  *  -                    ,                                  $handler_include_path
  *  -                                          ,          ,                 TRUE
  *  -         ,               ModulesManager
  *    API        $handler_class
  *  -                                          ,          ,                 TRUE,
  *          FALSE
  *
  * @param string $handler_class                ,
  * @param string $handler_include_path             ,
  * @return boolean True if $handler_class exists or FALSE
  */
 function _tryInclude($handler_class, $handler_include_path)
 {
     if (class_exists($handler_class)) {
         return true;
     }
     if (file_exists($handler_include_path) && is_file($handler_include_path) && is_readable($handler_include_path)) {
         _use($handler_include_path);
         if (class_exists($handler_class)) {
             return true;
         }
     }
     global $application;
     $objMM =& $application->getInstance('Modules_Manager');
     $objMM->includeAPIFileOnce($handler_class);
     if (class_exists($handler_class)) {
         return true;
     } else {
         return false;
     }
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:43,代码来源:events_manager_api.php

示例10: _use

| =============================================
| 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.
|
 ***********************************************************************/
/**
 * Tools Module, Backup View
 *
 * @package Tools
 * @author Alexander Girin
 */
_use(dirname(__FILE__) . '/backup_create_az.php');
class AutoBackupCreate extends BackupCreate
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
     * @access public
     */
    /**
     * Constructor
     */
    function AutoBackupCreate()
    {
        $this->container_template_folder_name = "tools/auto_backup_create/";
    }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:auto_backup_create_az.php

示例11: 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.
|
 ***********************************************************************/
_use(dirname(__FILE__) . '/tax-settings-add-display-az.php');
/**
 * Checkout Module, EditTaxName View.
 *
 * @package Checkout
 * @author Alexey Florinsky
 */
class EditTaxDisplayOption extends AddTaxDisplayOption
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
     * @access public
     */
    function initFormData()
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:tax-settings-edit-display-az.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.
|
 ***********************************************************************/
_use(dirname(__FILE__) . '/image_output_az.php');
/**
 * @package Images
 * @author Vadim Lyalikov
 *
 */
/**
 *                 .
 *                   image_obj.
 *  . .                               : image_id            NULL (               )            .
 *                                                 .
 * (                                                         )
 */
class image_output_cz
{
    function image_output_cz()
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:image_output_cz.php

示例13: 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.
|
 ***********************************************************************/
_use(dirname(__FILE__) . '/product_search_form_az.php');
/**
 * Catalog module.
 * Showing search short form
 *
 * @author Sergey Kulitsky
 * @package Catalog
 * @access public
 */
class ProductSearchFormShort
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**
     * The viewer constructor
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:product_search_form_short_az.php

示例14: includeFile

 /**
  * Loads this module in the system.
  *
  * @param ModuleInfo $moduleInfo
  * @return null
  */
 function includeFile($file)
 {
     global $application;
     _use($this->store_dir . $file);
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:11,代码来源:mm_api.php

示例15: _use

| 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 Catalog
 * @author Egor V. Derevyankin
 *
 */
_use(dirname(__FILE__) . '/product_bookmarks.php');
class CategoryBookmarks extends ProductBookmarks
{
    function CategoryBookmarks()
    {
        parent::ProductBookmarks();
    }
    function _initBookmarks()
    {
        $tree_id = modApiFunc('Request', 'getValueByKey', 'tree_id');
        $this->bms = array('details' => array('title' => 'CAT_DETAILS', 'icon' => 'c-details', 'location' => array('view' => 'EditCategory', 'action' => 'SetEditableCategory', 'keys' => array('category_id' => $this->entity_id, 'tree_id' => $tree_id))), 'featured' => array('title' => 'CAT_FEATURED', 'icon' => 'c-featured', 'location' => array('view' => 'PopupWindow', 'keys' => array('page_view' => 'FP_LinksList', 'category_id' => $this->entity_id, 'tree_id' => $tree_id))), 'bestsellers' => array('title' => 'CAT_BESTSELLERS', 'icon' => 'c-bestsellers', 'location' => array('view' => 'PopupWindow', 'keys' => array('page_view' => 'BS_LinksList', 'category_id' => $this->entity_id, 'tree_id' => $tree_id))));
        $this->m_bms = array();
        $this->status_depends = array('details_edit' => '', 'details_add' => 'featured_notavail bestsellers_notavail');
        $this->_need_right_space = true;
    }
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:category_bookmarks.php


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