public function __construct() { parent::__construct(); $this->_steps = array(self::STEP_SELECT_ADDRESSES => new Varien_Object(array('label' => Mage::helper('checkout')->__('Select Addresses'))), self::STEP_SHIPPING => new Varien_Object(array('label' => Mage::helper('checkout')->__('Shipping Information'))), self::STEP_BILLING => new Varien_Object(array('label' => Mage::helper('checkout')->__('Billing Information'))), self::STEP_OVERVIEW => new Varien_Object(array('label' => Mage::helper('checkout')->__('Place Order'))), self::STEP_SUCCESS => new Varien_Object(array('label' => Mage::helper('checkout')->__('Order Success')))); $this->_checkout = Mage::getSingleton('checkout/type_multishipping'); $this->_steps[$this->getActiveStep()]->setIsActive(true); }
/** * Initialize default values of the options * * @param array $data */ public function __construct(array $data = array()) { $this->_io = isset($data['io']) ? $data['io'] : new Varien_Io_File(); unset($data['io']); parent::__construct($data); $appRoot = isset($data['app_dir']) ? $data['app_dir'] : Mage::getRoot(); $root = dirname($appRoot); $this->_data['app_dir'] = $appRoot; $this->_data['base_dir'] = $root; $this->_data['code_dir'] = $appRoot . DIRECTORY_SEPARATOR . 'code'; $this->_data['design_dir'] = $appRoot . DIRECTORY_SEPARATOR . 'design'; $this->_data['etc_dir'] = $appRoot . DIRECTORY_SEPARATOR . 'etc'; $this->_data['lib_dir'] = $root . DIRECTORY_SEPARATOR . 'lib'; $this->_data['locale_dir'] = $appRoot . DIRECTORY_SEPARATOR . 'locale'; $this->_data['pub_dir'] = $root . DIRECTORY_SEPARATOR . 'pub'; $this->_data['js_dir'] = $this->_data['pub_dir'] . DIRECTORY_SEPARATOR . 'lib'; $this->_data['media_dir'] = isset($data['media_dir']) ? $data['media_dir'] : $this->_data['pub_dir'] . DIRECTORY_SEPARATOR . 'media'; $this->_data['var_dir'] = $this->getVarDir(); $this->_data['tmp_dir'] = $this->_data['var_dir'] . DIRECTORY_SEPARATOR . 'tmp'; $this->_data['cache_dir'] = $this->_data['var_dir'] . DIRECTORY_SEPARATOR . 'cache'; $this->_data['log_dir'] = $this->_data['var_dir'] . DIRECTORY_SEPARATOR . 'log'; $this->_data['session_dir'] = $this->_data['var_dir'] . DIRECTORY_SEPARATOR . 'session'; $this->_data['upload_dir'] = $this->_data['media_dir'] . DIRECTORY_SEPARATOR . 'upload'; $this->_data['export_dir'] = $this->_data['var_dir'] . DIRECTORY_SEPARATOR . 'export'; }
/** * Constructor * * @param Magento_Filesystem $filesystem * @param array $data */ public function __construct(Magento_Filesystem $filesystem, array $data = array()) { $this->_filesystem = $filesystem; $this->_filesystem->setIsAllowCreateDirectories(true); $this->_filesystem->setWorkingDirectory($this->getHelper()->getStorageRoot()); parent::__construct($data); }
/** * Constructor * * @param array $args */ public function __construct(array $args = array()) { $this->_factory = !empty($args['factory']) ? $args['factory'] : Mage::getSingleton('core/factory'); $this->_app = !empty($args['app']) ? $args['app'] : Mage::app(); unset($args['factory'], $args['app']); parent::__construct($args); }
public function __construct($aArgs) { $this->_vJobCode = $aArgs[0]; $this->_oJobConfig = $aArgs[1]; ini_set('memory_limit', '3000M'); parent::__construct(); }
public function __construct() { parent::__construct(); $this->setCaption("Unnamed customer behavior points rule action"); // TODO transalte me? $this->setDescription("Unnamed customer behavior points rule action"); // TODO translate me? }
/** * @param Mage_Backup_Helper_Data $helper * @param array $data */ public function __construct(Mage_Backup_Helper_Data $helper, $data = array()) { $adapter = new Magento_Filesystem_Adapter_Zlib(self::COMPRESS_RATE); $this->_filesystem = new Magento_Filesystem($adapter); $this->_filesystem->setIsAllowCreateDirectories(true); $this->_helper = $helper; parent::__construct($data); }
public function __construct() { $mapping = Mage::helper('merlinsearch/mapping'); $this->_facetableHistAttributes = array("price" => array(0, 1000, 25)); $this->_facetableEnumAttributes = $mapping->getEnumFacets(); $this->addFacetableAttribute('category'); parent::__construct(); }
public function __construct(array $data = array()) { $this->_eventManager = isset($data['eventManager']) ? $data['eventManager'] : Mage::getSingleton('Mage_Core_Model_Event_Manager'); $this->_structureReader = isset($data['structureReader']) ? $data['structureReader'] : Mage::getSingleton('Mage_Backend_Model_Config_Structure_Reader'); $this->_transactionFactory = isset($data['transactionFactory']) ? $data['transactionFactory'] : Mage::getSingleton('Mage_Core_Model_Resource_Transaction_Factory'); $this->_objectFactory = isset($data['objectFactory']) ? $data['objectFactory'] : Mage::getConfig(); $this->_appConfig = isset($data['applicationConfig']) ? $data['applicationConfig'] : Mage::getConfig(); $this->_application = isset($data['application']) ? $data['application'] : Mage::app(); parent::__construct($data); }
/** * Init model, steps * */ public function __construct() { parent::__construct(); $this->_steps = array(self::STEP_SELECT_ADDRESSES => new Varien_Object(array('label' => Mage::helper('Mage_Checkout_Helper_Data')->__('Select Addresses'))), self::STEP_SHIPPING => new Varien_Object(array('label' => Mage::helper('Mage_Checkout_Helper_Data')->__('Shipping Information'))), self::STEP_BILLING => new Varien_Object(array('label' => Mage::helper('Mage_Checkout_Helper_Data')->__('Billing Information'))), self::STEP_OVERVIEW => new Varien_Object(array('label' => Mage::helper('Mage_Checkout_Helper_Data')->__('Place Order'))), self::STEP_SUCCESS => new Varien_Object(array('label' => Mage::helper('Mage_Checkout_Helper_Data')->__('Order Success')))); foreach ($this->_steps as $step) { $step->setIsComplete(false); } $this->_checkout = Mage::getSingleton('Mage_Checkout_Model_Type_Multishipping'); $this->_steps[$this->getActiveStep()]->setIsActive(true); }
/** * Init model, steps * */ public function __construct() { parent::__construct(); $this->_steps = array(self::STEP_SHIPPING => new Varien_Object(array('label' => Mage::helper('checkout')->__('Shipping Information'))), self::STEP_BILLING => new Varien_Object(array('label' => Mage::helper('checkout')->__('Billing Information'))), self::STEP_OVERVIEW => new Varien_Object(array('label' => Mage::helper('checkout')->__('Place Order'))), self::STEP_SUCCESS => new Varien_Object(array('label' => Mage::helper('checkout')->__('Order Success')))); foreach ($this->_steps as $step) { $step->setIsComplete(false); } $this->_checkout = Mage::getSingleton('ketai/type_checkout'); $this->_steps[$this->getActiveStep()]->setIsActive(true); }
public function __construct($aArgs) { $this->_vStepCode = $aArgs[0]; $this->_oStepConfig = $aArgs[1]; $this->_oParentJob = $aArgs[2]; if (array_key_exists(3, $aArgs)) { $this->_oParentStep = $aArgs[3]; } parent::__construct(); }
public function __construct() { parent::__construct(); $this->loadAttributeOptions()->loadOperatorOptions()->loadValueOptions(); foreach ($this->getAttributeOption() as $attr => $dummy) { $this->setAttribute($attr); break; } foreach ($this->getOperatorOption() as $operator => $dummy) { $this->setOperator($operator); break; } }
/** * Initialise the queue with the queue name * * @param mixed $queue The queue identifier * * @return void */ public function __construct($queue = null) { //set the queue appropriately if (is_null($queue) || !array_key_exists('queue', $queue)) { $_queue = self::DEFAULT_QUEUE_CODE; } else { $_queue = $queue['queue']; } //assign the queue name $this->_queue = $_queue; //and run the inheritor parent::__construct(); }
/** * Initialize default values of the options */ public function __construct() { parent::__construct(); $appRoot = Mage::getRoot(); $root = dirname($appRoot); $this->_data['app_dir'] = $appRoot; $this->_data['base_dir'] = $root; $this->_data['code_dir'] = $appRoot . DIRECTORY_SEPARATOR . 'code'; $this->_data['design_dir'] = $appRoot . DIRECTORY_SEPARATOR . 'design'; $this->_data['etc_dir'] = $appRoot . DIRECTORY_SEPARATOR . 'etc'; $this->_data['lib_dir'] = $root . DIRECTORY_SEPARATOR . 'lib'; $this->_data['locale_dir'] = $appRoot . DIRECTORY_SEPARATOR . 'locale'; $this->_data['pub_dir'] = $root . DIRECTORY_SEPARATOR . 'pub'; $this->_data['js_dir'] = $this->_data['pub_dir'] . DIRECTORY_SEPARATOR . 'js'; $this->_data['media_dir'] = $this->_data['pub_dir'] . DIRECTORY_SEPARATOR . 'media'; $this->_data['var_dir'] = $this->getVarDir(); $this->_data['tmp_dir'] = $this->_data['var_dir'] . DIRECTORY_SEPARATOR . 'tmp'; $this->_data['cache_dir'] = $this->_data['var_dir'] . DIRECTORY_SEPARATOR . 'cache'; $this->_data['log_dir'] = $this->_data['var_dir'] . DIRECTORY_SEPARATOR . 'log'; $this->_data['session_dir'] = $this->_data['var_dir'] . DIRECTORY_SEPARATOR . 'session'; $this->_data['upload_dir'] = $this->_data['media_dir'] . DIRECTORY_SEPARATOR . 'upload'; $this->_data['export_dir'] = $this->_data['var_dir'] . DIRECTORY_SEPARATOR . 'export'; }
public function __construct() { // Initialize shutdown function register_shutdown_function(array($this, 'destruct')); parent::__construct(); }
public function __construct() { parent::__construct(); }
public function __construct($productBlock) { $this->_productBlock = $productBlock; parent::__construct(); }
/** * @param Mage_Core_Model_App $application * @param Mage_Core_Model_Config $config * @param Mage_Core_Model_Event_Manager $eventManager * @param Mage_Backend_Model_Config_Structure $configStructure * @param Mage_Core_Model_Resource_Transaction_Factory $transactionFactory * @param Mage_Backend_Model_Config_Loader $configLoader * @param Mage_Core_Model_Config_Data_Factory $configDataFactory * @param array $data */ public function __construct(Mage_Core_Model_App $application, Mage_Core_Model_Config $config, Mage_Core_Model_Event_Manager $eventManager, Mage_Backend_Model_Config_Structure $configStructure, Mage_Core_Model_Resource_Transaction_Factory $transactionFactory, Mage_Backend_Model_Config_Loader $configLoader, Mage_Core_Model_Config_Data_Factory $configDataFactory, array $data = array()) { $this->_eventManager = $eventManager; $this->_configStructure = $configStructure; $this->_transactionFactory = $transactionFactory; $this->_appConfig = $config; $this->_application = $application; $this->_configLoader = $configLoader; $this->_configDataFactory = $configDataFactory; parent::__construct($data); }
/** * Constructor * * Initializes components and allows to save the cache * * @param array $data */ public function __construct($data = array()) { parent::__construct($data); $this->setComponents(array()); $this->setIsAllowedToSave(true); }
/** * Init form model * * @param array $attributes */ public function __construct($attributes = array()) { parent::__construct($attributes); $this->_prepareXmlObject(); }
/** * Enter description here... * * @param array $attributes */ public function __construct($attributes = array()) { parent::__construct($attributes); }
public function __construct() { $this->_io = Mage::helper('feedexport/io'); $this->resetTimeout(); return parent::__construct(); }
/** * Initialize factory instance * * @param array $args */ public function __construct(array $args = array()) { if (!empty($args['core_factory']) && $args['core_factory'] instanceof Mage_Core_Model_Factory) { $this->_factory = $args['core_factory']; } if (!empty($args['app']) && $args['app'] instanceof Mage_Core_Model_App) { $this->_app = $args['app']; } parent::__construct($args); }
/** * Constructs configuration model. * Currently loaded configuration from the database. */ public function __construct() { parent::__construct(); $this->load(); }
/** * Instantiate save button * */ public function __construct() { Varien_Object::__construct(); $this->_addButton('save', array('label' => Mage::helper('enterprise_pci')->__('Change Encryption Key'), 'onclick' => 'editForm.submit();', 'class' => 'save'), 1); }
/** * Initialize object * */ public function __construct() { parent::__construct(); $this->setIdFieldName('visibility_id'); }
public function __construct() { parent::__construct(); $this->_logger = Mage::helper('webgriffe_golive/log'); }
/** * Constructor * * Initializes observers collection * * @param array $data */ public function __construct(array $data = array()) { $this->_observers = new Varien_Event_Observer_Collection(); parent::__construct($data); }
/** * @param array $initParams Must have this key: * - 'order' => EbayEnterprise_Order_Model_Detail_Process_IResponse */ public function __construct(array $initParams) { list($this->_order, $this->_coreHelper) = $this->_checkTypes($initParams['order'], $this->_nullCoalesce($initParams, 'core_helper', Mage::helper('eb2ccore'))); parent::__construct($this->_removeKnownKeys($initParams)); }