예제 #1
0
	/**
	 * This ensures that the WordPress database connection has been initialised
	 * This fixes issues when calling WordPress functions via the CRON
	 * As the necessary event is not triggered
	 *
	 */
	public function __construct()
	{
		if (!Mage::helper('wordpress/db')->hasBeenInitialised()) {
			Mage::getSingleton('wordpress/observer_databaseSetup')->initConnection();
		}
		
		parent::__construct();
	}
 public function __construct($data = null)
 {
     if (is_array($data)) {
         if (isset($data['scope'])) {
             $this->_scope = $data['scope'];
         }
     }
     parent::__construct();
 }
 public function __construct()
 {
     $resource = Mage::getSingleton('core/resource');
     $this->_currencyRateTable = $resource->getTableName('directory/currency_rate');
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct();
 }