public function __construct() { if (!self::$db) { self::$db = SafeMySQL::getInstance(); } parent::__construct(); }
public function __construct($method = null) { parent::__construct(); $this->_paymentOptions = self::getOptions(); $this->_systemInfo = self::$paymentSystems[static::$_systemCode]; if (!$method instanceof PaymentMethod || !self::checkMethod($method)) { return; } $this->paymentMethod = $method; $this->paymentMethod->options = self::getPayOptions($this->paymentMethod); }
public function __construct() { parent::__construct(); }