コード例 #1
0
ファイル: osi.php プロジェクト: hkilter/OpenSupplyChains
 public function __construct($params = null)
 {
     $action = self::DEFAULT_ACTION;
     if (is_array($params)) {
         if (isset($params['action'])) {
             $action = $params['action'];
             unset($params['action']);
         }
     }
     $this->action = $action;
     parent::__construct($params);
     $this->parameters['limit'] = $this->limit;
     $this->parameters['offset'] = $this->offset;
     if (isset($this->parameters['q'])) {
         $this->parameters['name'] = $this->parameters['q'];
     }
     $this->headers['Referer'] = Url::site('', true);
     $this->parameters['key'] = $this->_api_key;
 }