예제 #1
0
 public function __construct(PWECore $core)
 {
     parent::__construct($core);
     $params = $this->PWE->getURL()->getParamsAsArray();
     if ($params) {
         $this->item = $params[0];
     }
 }
예제 #2
0
 public function __construct(PWECore $core)
 {
     parent::__construct($core);
     $node = $core->getNode();
     $this->dl_base = $node['!a']['files_base'];
     if (!$this->dl_base) {
         throw new HTTP5xxException("Not configured files base");
     }
     $this->link_base = $node['!a']['download_link'];
 }