Ejemplo n.º 1
0
 /**
  * Define and set handler attributes; initialize handler
  *
  * @param array $params Handler params OPTIONAL
  *
  * @return void
  */
 public function __construct(array $params = array())
 {
     parent::__construct($params);
     $this->params[] = 'category_id';
 }
Ejemplo n.º 2
0
 /**
  * Define and set handler attributes; initialize handler
  *
  * @param array $params Handler params (OPTIONAL)
  *
  * @return void
  */
 public function __construct(array $params = array())
 {
     parent::__construct($params);
     // Remove all expired tracking info
     \XLite\Core\Database::getRepo('XLite\\Module\\XC\\CanadaPost\\Model\\Order\\Parcel\\Shipment\\Tracking')->removeExpired();
 }