\Isotope\Model\Gallery::registerModelType('inline', 'Isotope\\Model\\Gallery\\Inline'); /** * Products */ \Isotope\Model\Product::registerModelType('standard', 'Isotope\\Model\\Product\\Standard'); /** * Product collections */ \Isotope\Model\ProductCollection::registerModelType('cart', 'Isotope\\Model\\ProductCollection\\Cart'); \Isotope\Model\ProductCollection::registerModelType('order', 'Isotope\\Model\\ProductCollection\\Order'); /** * Product collection surcharge */ \Isotope\Model\ProductCollectionSurcharge::registerModelType('payment', 'Isotope\\Model\\ProductCollectionSurcharge\\Payment'); \Isotope\Model\ProductCollectionSurcharge::registerModelType('shipping', 'Isotope\\Model\\ProductCollectionSurcharge\\Shipping'); \Isotope\Model\ProductCollectionSurcharge::registerModelType('tax', 'Isotope\\Model\\ProductCollectionSurcharge\\Tax'); /** * Attributes */ \Isotope\Model\Attribute::registerModelType('text', 'Isotope\\Model\\Attribute\\TextField'); \Isotope\Model\Attribute::registerModelType('textarea', 'Isotope\\Model\\Attribute\\TextArea'); \Isotope\Model\Attribute::registerModelType('select', 'Isotope\\Model\\Attribute\\SelectMenu'); \Isotope\Model\Attribute::registerModelType('radio', 'Isotope\\Model\\Attribute\\RadioButton'); \Isotope\Model\Attribute::registerModelType('checkbox', 'Isotope\\Model\\Attribute\\CheckboxMenu'); \Isotope\Model\Attribute::registerModelType('mediaManager', 'Isotope\\Model\\Attribute\\MediaManager'); \Isotope\Model\Attribute::registerModelType('fileTree', 'Isotope\\Model\\Attribute\\FileTree'); \Isotope\Model\Attribute::registerModelType('downloads', 'Isotope\\Model\\Attribute\\Downloads'); \Isotope\Model\Attribute::registerModelType('upload', 'Isotope\\Model\\Attribute\\Upload'); /** * Notification Center notification types */
* Copyright (C) 2009-2014 terminal42 gmbh & Isotope eCommerce Workgroup * * @package Isotope * @link http://isotopeecommerce.org * @license http://opensource.org/licenses/lgpl-3.0.html */ /** * Backend modules */ array_insert($GLOBALS['BE_MOD']['isotope'], 2, array('iso_rules' => array('tables' => array(\Isotope\Model\Rule::getTable()), 'javascript' => \Haste\Util\Debug::uncompressedFile('system/modules/isotope/assets/js/backend.min.js'), 'icon' => 'system/modules/isotope_rules/assets/auction-hammer-gavel.png'))); /** * Models */ $GLOBALS['TL_MODELS'][\Isotope\Model\Rule::getTable()] = 'Isotope\\Model\\Rule'; /** * Checkout Steps * @todo this will no longer work */ array_insert($GLOBALS['ISO_CHECKOUT_STEPS']['review'], 0, array(array('Isotope\\Rules', 'cleanRuleUsages'))); /** * Product collection surcharge */ \Isotope\Model\ProductCollectionSurcharge::registerModelType('rule', 'Isotope\\Model\\ProductCollectionSurcharge\\Rule'); /** * Hooks */ $GLOBALS['ISO_HOOKS']['calculatePrice'][] = array('Isotope\\Rules', 'calculatePrice'); $GLOBALS['ISO_HOOKS']['compileCart'][] = array('Isotope\\Rules', 'getCouponForm'); $GLOBALS['ISO_HOOKS']['findSurchargesForCollection'][] = array('Isotope\\Rules', 'findSurcharges'); $GLOBALS['ISO_HOOKS']['preCheckout'][] = array('Isotope\\Rules', 'writeRuleUsages'); $GLOBALS['ISO_HOOKS']['transferredCollection'][] = array('Isotope\\Rules', 'transferCoupons');