Example #1
0
 /**
  * Contructor
  *
  * @param  void
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     // Set type course
     $this->setType('course');
     // Override SKU
     $this->setSku(new CourseOffering());
 }
Example #2
0
 /**
  * Contructor
  *
  * @param  void
  * @return void
  */
 public function __construct($pId = false)
 {
     parent::__construct($pId);
     if (!$pId) {
         // Set type course
         $this->setType('course');
         // Override SKU
         $this->setSku(new CourseOffering());
     }
 }