function __construct($request) { parent::__construct(); $names = self::parseCommaSeparatedParam($request, 'taxon_name'); $this->request($names); $this->compile(); }
function __construct($request) { //@TODO: hook up to \Api\Cache parent::__construct(); $lookup = new \Api\Ala\BulkSpeciesLookup($request); $this->_status = $lookup->_status; $this->species = $lookup->species; foreach ($this->species as $name => $item) { $this->species[$name]->densityMap = new \Api\Ala\DensityMap(array('taxon_name' => $name)); } }
function __construct($request, $hasWkt = false) { parent::__construct(); if ($hasWkt) { $cached = $this->paramsCacheQuery($request); if ($cached->status != 200) { $this->_status = $response->status; $this->_errors = $response->errors; return false; } $this->qidRequest($request, $cached->body); } else { $this->request($request); } $this->compile(); }
function __construct($request) { parent::__construct(); $this->australia = 'http://biocache.ala.org.au/ws/density/map?q=' . urlencode($request['taxon_name']); }