/**
  * (non-PHPdoc)
  *
  * @return void
  * @see \AppserverIo\Appserver\Core\AbstractThread::run()
  */
 public function run()
 {
     // register the class loader again, because in a Thread the context has been lost maybe
     require SERVER_AUTOLOADER;
     // call the parent run method to start the thread
     parent::run();
 }
 /**
  * (non-PHPdoc)
  *
  * @return void
  * @see \TechDivision\ApplicationServer\AbstractThread::run()
  */
 public function run()
 {
     // register the class loader again, because in a Thread the context has been lost maybe
     $this->getInitialContext()->getClassLoader()->register(true);
     // call the parent run method to start the thread
     parent::run();
 }
Example #3
0
 /**
  * @param \HelpScout\model\ref\PersonRef $createdBy
  */
 public function setCreatedBy(\HelpScout\model\ref\PersonRef $createdBy)
 {
     if ($createdBy) {
         if ($createdBy->getType() !== 'user') {
             throw new \HelpScout\ApiException('A note thread can only be created by a PersonRef of type user');
         }
     }
     parent::setCreatedBy($createdBy);
 }
Example #4
0
 public function __construct($data = null)
 {
     parent::__construct($data);
     $this->setType('chat');
 }
 public function __construct($data = null)
 {
     parent::__construct($data);
     $this->setType('forwardchild');
 }