public function __construct($params = array()) { $proInstance = array_shift($params); if ($proInstance && $proInstance instanceof Mage_Paypal_Model_Pro) { $this->_pro = $proInstance; } else { $this->_pro = Mage::getModel($this->_proType); } $this->_pro->setMethod($this->_code); }
public function __construct($params = array()) { $proInstance = array_shift($params); if ($proInstance && $proInstance instanceof Ebcomm_PaypalMx_Model_Pro) { $this->_pro = $proInstance; } else { $this->_pro = Mage::getModel('paypalmx/pro'); } $this->_pro->setMethod($this->_code); }