mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-16 13:34:11 +02:00
[core] store parameters values in BridgeAbstract::parameters
This way, any BridgeAbstract method can now have access to these values, no only collectData Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -73,12 +73,13 @@ class CastorusBridge extends BridgeAbstract {
|
||||
return $price->innertext;
|
||||
}
|
||||
|
||||
public function collectData(array $params){
|
||||
if(isset($params['zip']))
|
||||
$zip_filter = trim($params['zip']);
|
||||
public function collectData(){
|
||||
$params=$this->parameters[$this->queriedContext];
|
||||
if(isset($params['zip']['value']))
|
||||
$zip_filter = trim($params['zip']['value']);
|
||||
|
||||
if(isset($params['city']))
|
||||
$city_filter = trim($params['city']);
|
||||
if(isset($params['city']['value']))
|
||||
$city_filter = trim($params['city']['value']);
|
||||
|
||||
$html = $this->getSimpleHTMLDOM($this->uri);
|
||||
|
||||
|
Reference in New Issue
Block a user