本文整理汇总了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');
}
示例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');
}
示例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();
}
}
/**
*
示例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();
示例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
示例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
*/
/**
示例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
//------------------------------------------------
/**#@+
示例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 © 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
示例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;
}
}
示例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/";
}
示例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()
示例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()
示例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
示例14: includeFile
/**
* Loads this module in the system.
*
* @param ModuleInfo $moduleInfo
* @return null
*/
function includeFile($file)
{
global $application;
_use($this->store_dir . $file);
}
示例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;
}
}