/** * Class constructor */ private function __construct() { $this->billingSaleDao = BOL_BillingSaleDao::getInstance(); $this->billingGatewayDao = BOL_BillingGatewayDao::getInstance(); $this->billingGatewayConfigDao = BOL_BillingGatewayConfigDao::getInstance(); $this->billingGatewayProductDao = BOL_BillingGatewayProductDao::getInstance(); $this->billingProductDao = BOL_BillingProductDao::getInstance(); }
public function deleteConfig($gatewayKey, $name) { if (!mb_strlen($gatewayKey) || !mb_strlen($name)) { return false; } $config = BOL_BillingGatewayConfigDao::getInstance()->getConfig($gatewayKey, $name); if ($config) { $this->deleteById($config->id); return true; } return false; }