_retriever=$dataRetriever; $d=Sanitizer::GetValueFromPath($Options,'d'); if(is_array($d)) foreach($Options->d as $sentence) { $this->Sentences[]=FRFactory::GetFRElement($sentence,$this); } } public function GetRetriever(){ return $this->_retriever; } public function Parse(){ $result=null; foreach($this->Sentences as $sentence) { $result=$sentence->Parse(); if($this->ShouldReturn) break; } if($result instanceof FRFieldSource) return $result->GetText(); return $result; } public function GetType(){ return "Main"; } public function ReturnWasExecuted(){ $this->ShouldReturn=true; } }