/** * 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'); }
/** * 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'); }
| ============================================= | 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(); } } /** *
<?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();
/*********************************************************************** | 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
/*********************************************************************** | 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 */ /**
/*********************************************************************** | 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 //------------------------------------------------ /**#@+
| 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
/** * . * * : 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; } }
| ============================================= | 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/"; }
/*********************************************************************** | 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()
/*********************************************************************** | 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()
/*********************************************************************** | 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
/** * Loads this module in the system. * * @param ModuleInfo $moduleInfo * @return null */ function includeFile($file) { global $application; _use($this->store_dir . $file); }
| 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; } }
/*********************************************************************** | 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_promo_code_info_action.php'); /** * Catalog module. * This action is responsible for adding new category. * * @package PromoCodes * @access public * @author Vadim Lyalikov */ class UpdatePromoCodeArea extends AddPromoCodeInfo { //------------------------------------------------ // PUBLIC DECLARATION //------------------------------------------------ /**#@+ * @access public
/*********************************************************************** | 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_az.php'); /** * Catalog module. * "Catalog -> Edit Category" View. * * @package Catalog * @access public * */ class EditCategory extends AddCategory { //------------------------------------------------ // PUBLIC DECLARATION //------------------------------------------------ /**#@+ * @access public
| ***********************************************************************/ /** * @package Notifications * @author Egor V. Derevyankin * */ define('NOTIFICATIONS_INSTALL_DATA_XML_FILE', dirname(__FILE__) . '/install_data.xml'); define('NOTIFICATIONS_INSTALL_DATA_BLOCKTAGS_DIR', dirname(__FILE__) . '/install_data/blocktags/'); define('NOTIFICATIONS_INSTALL_DATA_NOTIFICATIONS_DIR', dirname(__FILE__) . '/install_data/notifications/'); /* * , , Checkout * . * : - , ModulesManager' . */ _use(dirname(__FILE__) . '/../../checkout/const.php'); class Notifications_Installer { function Notifications_Installer() { $this->infotags = array(); $this->blocktags = array(); $this->actions = array(); loadCoreFile('db_multiple_insert.php'); global $application; $this->MR =& $application->getInstance('MessageResources', 'notifications-messages', 'AdminZone'); $this->SYS_MR =& $application->getInstance('MessageResources', 'system-messages', 'AdminZone'); // RemovePersonInfoType // , - . modApiFunc('EventsManager', 'addEventHandler', 'RemoveAdmin', 'Notifications', 'OnRemoveAdmin'); }
/*********************************************************************** | 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__) . '/db_stat_action.php'); /** * * @package Tools * @author Alexander Girin */ class SetRestoreFile extends AjaxAction { //------------------------------------------------ // PUBLIC DECLARATION //------------------------------------------------ /**#@+ * @access public */ /** * DBStat constructor
/*********************************************************************** | 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__) . '/admin_member_add_az.php'); /** * Admin Module, Edit Admin Member View. * * @package Users * @author Alexey Florinsky, Alexander Girin */ class AdminMemberEdit extends AdminMemberAdd { //------------------------------------------------ // PUBLIC DECLARATION //------------------------------------------------ /**#@+ * @access public */ /**
/*********************************************************************** | 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_admin_action.php'); /** * Users module. * * @package Users * @author Alexandr Girin * @access public */ class EditAdmin extends AddAdmin { //------------------------------------------------ // PUBLIC DECLARATION //------------------------------------------------ /**#@+ * @access public */
<?php _use("MooseLike_Types"); _use("MooseLike_Meta_Object"); _use("MooseLike_Exceptions"); class MooseLike { public $_stash; public $_meta; public function _buildargs($config) { return $config; } public function _generate_attributes() { } public function meta() { if (!isset($this->_meta)) { $this->_meta = new MetaObject($this->_class(), $this); } return $this->_meta; } public function __construct() { $args = func_get_args(); $this->_stash = array(); $this->_generate_attributes(); $config = array(); if (isset($args[0])) { if (!is_array($args[0])) {
/*********************************************************************** | 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__) . '/move_category_az.php'); /** * Catalog module. * Catalog Move Products view. * * @package Catalog * @access public * @author Girin Alexander */ class MoveProducts extends MoveCategory { //------------------------------------------------ // PUBLIC DECLARATION //------------------------------------------------ /**#@+ * @access public
function loadModuleFile($filename) { global $application; $modules_dir = CConf::get('modules_dir'); $add_modules_dir = CConf::get('add_modules_dir'); if (is_file($add_modules_dir . $filename)) { _use($add_modules_dir . $filename); } else { _use($modules_dir . $filename); } }
/*********************************************************************** | 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-name-az.php'); /** * Checkout Module, EditTaxName View. * * @package Checkout * @author Alexey Florinsky */ class EditTaxName extends AddTaxName { //------------------------------------------------ // PUBLIC DECLARATION //------------------------------------------------ /**#@+ * @access public */ function initFormData()
/*********************************************************************** | 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__) . '/sort_categories_az.php'); /** * Catalog module. * Catalog Sort Products view. * * @author Alexander Girin * @package Catalog * @access public */ class SortProducts extends SortCategories { //------------------------------------------------ // PUBLIC DECLARATION //------------------------------------------------ /**#@+ * @access public
/*********************************************************************** | 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__) . '/password_update_action.php'); /** * Users module. * * @package Users * @author Alexandr Girin * @access public */ class AddAdmin extends PasswordUpdate { //------------------------------------------------ // PUBLIC DECLARATION //------------------------------------------------ /**#@+ * @access public */
/*********************************************************************** | 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__) . '/gc_edit_az.php'); /** * Output Gift Certificate Editor * * @package GiftCertificate * @author Alexey Florinsky */ class GiftCertificateAddView extends GiftCertificateEditView { function GiftCertificateAddView() { parent::GiftCertificateEditView(); } function getCurrentGC() { loadClass('GiftCertificateCreator');
/** * Installs the module. * * The install() method is called statically. * To call other methods of this class from this method, * the static call is used, for example, * Checkout::getTables() instead of $this->getTables() * * @ copy to create only necessary tables and data. */ function install() { _use(dirname(__FILE__) . '/includes/install.inc'); }
/*********************************************************************** | 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_manufacturer.php'); /** * @access public * @author Vadim Lyalikov */ class update_manufacturer extends add_manufacturer { //------------------------------------------------ // PUBLIC DECLARATION //------------------------------------------------ /**#@+ * @access public */ /** * Action constructor */