Esempio n. 1
0
 private static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 protected function _delete()
 {
     OpenpayApiConnector::request('delete', $this->getUrl(), null);
     // remove from list, if parent is a list
     if ($this->id && $this->parent && method_exists($this->parent, 'removeResource')) {
         $this->parent->removeResource($this->id);
     }
     //$this->empty(); // TODO
 }