protected function beforeSave() { parent::beforeSave(); //упаковываем данные в detail $this->detail = "<detail><mfo>{$this->mfo}</mfo>"; $this->detail .= "</detail>"; return true; }
protected function beforeSave() { parent::beforeSave(); //упаковываем данные в detail $this->detail = "<detail><address>{$this->address}</address>"; $this->detail .= "<url>{$this->url}</url>"; $this->detail .= "<phone>{$this->phone}</phone>"; $this->detail .= "</detail>"; return true; }
protected function beforeSave() { parent::beforeSave(); //упаковываем данные в detail $this->detail = "<detail><code>{$this->code}</code>"; $this->detail .= "<inn>{$this->inn}</inn>"; $this->detail .= "<lic>{$this->lic}</lic>"; $this->detail .= "<faddress><![CDATA[{$this->faddress}]]></faddress>"; $this->detail .= "<laddress><![CDATA[{$this->laddress}]]></laddress>"; $this->detail .= "<bankaccount1><bank>{$this->bank}</bank><account>{$this->bankaccount}</account></bankaccount1>"; $this->detail .= "</detail>"; return true; }
protected function beforeSave() { parent::beforeSave(); //упаковываем данные в detail $this->detail = "<detail><priceopt>{$this->priceopt}</priceopt>"; $this->detail .= "<priceret>{$this->priceret}</priceret>"; $this->detail .= "<code>{$this->code}</code>"; $this->detail .= "<uktzed>{$this->uktzed}</uktzed>"; $this->detail .= "<barcode>{$this->barcode}</barcode>"; $this->detail .= "<description>{$this->description}</description>"; $this->detail .= "</detail>"; return true; }