protected function prepare(array $product)
    {
        $data = array();
        foreach ($this->job['data']['header'] as $key => $value) {
            $data[$key] = isset($product[$key]) ? $product[$key] : '';
        }

        $this->prepareImages($data, $product);
        $this->preparePrice($data, $product);
        $this->prepareImages($data, $product);

        return $data;
    }
protected function prepare(array $product)
    {
        $data = array();
        foreach ($this->job['data']['header'] as $key => $value) {
            $data[$key] = isset($product[$key]) ? $product[$key] : '';
        }

        $this->prepareImages($data, $product);
        $this->preparePrice($data, $product);
        $this->prepareImages($data, $product);

        return $data;
    }
protected function prepare ( array $ product ) { $ data = array ( ) ; foreach ( $ this -> job [ 'data' ] [ 'header' ] as $ key => $ value ) { $ data [ $ key ] = isset ( $ product [ $ key ] ) ? $ product [ $ key ] : '' ; } $ this -> prepareImages ( $ data , $ product ) ; $ this -> preparePrice ( $ data , $ product ) ; $ this -> prepareImages ( $ data , $ product ) ; return $ data ; }
Prepares export data
@param array $product
@return array
Prepares export data