function __construct(&$setup_array, &$output_array) { parent::__construct(); $this->setup_array_raw =& $setup_array; $this->output_array =& $output_array; $this->convertSetupArray(); }
function __construct(&$setup_array, &$output_array) { parent::__construct(); $this->setup_array_raw =& $setup_array; $this->output_array =& $output_array; $this->convertSetupArray(); $this->setHTTPProtocolVersion(PHPCrawlerHTTPProtocols::HTTP_1_0); }
public function __construct($primary) { parent::__construct(); $parsed = parse_url($primary); $primary = isset($parsed['host']) ? $parsed['host'] : $parsed['path']; $this->primary_domain = $primary; $this->setURL($this->primary_domain); }
/** * Initiates a new crawler. */ public function __construct($crawler_id, $body_xpaths) { $this->crawler_id = $crawler_id; $this->body_xpaths = $body_xpaths; if (empty($this->body_xpaths)) { $this->body_xpaths = array('/html/body'); } parent::__construct(); }
function __construct(StaticSiteUrlList $urlList, $limit = false, $verbose = false) { parent::__construct(); $this->urlList = $urlList; $this->verbose = $verbose; if ($limit) { $this->setPageLimit($limit); } }