protected function afterLoad() { //распаковываем данные из detail $xml = simplexml_load_string($this->detail); $this->mfo = (string) $xml->mfo[0]; parent::afterLoad(); }
protected function afterLoad() { if (strlen($this->detail) > 0) { //распаковываем данные из detail $xml = simplexml_load_string($this->detail); $this->url = (string) $xml->url[0]; $this->address = (string) $xml->address[0]; $this->phone = (string) $xml->phone[0]; } parent::afterLoad(); }
protected function afterLoad() { $xml = @simplexml_load_string($this->detail); $this->priceopt = (string) $xml->priceopt[0]; $this->priceret = (string) $xml->priceret[0]; $this->barcode = (string) $xml->barcode[0]; $this->uktzed = (string) $xml->uktzed[0]; $this->code = (string) $xml->code[0]; $this->description = (string) $xml->description[0]; parent::afterLoad(); }
protected function afterLoad() { //распаковываем данные из detail $xml = simplexml_load_string($this->detail); $this->code = (string) $xml->code[0]; $this->inn = (string) $xml->inn[0]; $this->city = (string) $xml->city[0]; $this->street = (string) $xml->street[0]; $this->bank = (string) $xml->bankaccount1->bank[0]; $this->bankaccount = (string) $xml->bankaccount1->account[0]; parent::afterLoad(); }