/**
  * Initialize the object.
  *
  * @param \JDatabaseDriver $db
  */
 public function __construct(\JDatabaseDriver $db = null)
 {
     parent::__construct($db);
     // Implement JObservableInterface:
     // Create observer updater and attaches all observers interested by $this class:
     $this->observers = new \JObserverUpdater($this);
     \JObserverMapper::attachAllObservers($this);
 }
예제 #2
0
 /**
  * Initialize the object.
  *
  * @param \JDatabaseDriver $db
  */
 public function __construct(\JDatabaseDriver $db = null)
 {
     parent::__construct($db);
     $this->custom_data = new Registry();
 }
 /**
  * Initialize the object.
  *
  * @param \JDatabaseDriver $db
  */
 public function __construct(\JDatabaseDriver $db = null)
 {
     parent::__construct($db);
     $this->allowedStatuses = array('pending', 'completed', 'canceled', 'refunded', 'failed');
 }