Example #1
0
 function setData($data)
 {
     arr::apply($this->propertyvalues, $data);
 }
Example #2
0
 function __construct($url, $target, $args = null)
 {
     $this->args = arr::apply(array('method' => 'get', 'useragent' => config::get(self::KEY_USERAGENT, 'LeptonPHP/1.0 (+http://labs.noccy.com)')), (array) $args);
     $this->url = $url;
     $this->target = $target;
     if (function_exists('curl_init')) {
         $this->_curlDoRequest();
     } else {
         $this->_streamDoRequest();
     }
 }