protected function setProperties(ArrayObject $group, Data $data, array $years) { $this->json .= '{'; $this->json .= '"variety":"' . $data->getVarietyName() . '",'; $this->json .= '"type":"' . $data->getTypeName() . '",'; $this->json .= '"origin":"' . utf8_decode($data->getOriginName()) . '",'; $this->json .= '"destiny":"' . utf8_decode($data->getDestinyName()) . '",'; $this->json .= '"font":"' . utf8_decode($data->getFontName()) . '",'; $this->json .= '"values":'; $this->listValues($group, $years); $this->json .= '},'; }
protected function setProperties(ArrayObject $group, Data $data, array $years) { array_push($this->valuesOfARow, $data->getTypeName()); array_push($this->valuesOfARow, utf8_encode($data->getVarietyName())); array_push($this->valuesOfARow, $data->getOriginName()); array_push($this->valuesOfARow, $data->getDestinyName()); array_push($this->valuesOfARow, $data->getFontName()); parent::listValuesVerifyingTheYearOfThat($group, $years); $this->dataToExcel->setValues($this->valuesOfARow); $this->valuesOfARow = array(); }
public function isOfTheSameCategoryOf(Data $data = null) { return $data != null && $this->getSubgroupName() == $data->getSubgroupName() && $this->getTypeName() == $data->getTypeName() && $this->getVariety() == $data->getVariety() && $this->getOriginName() == $data->getOriginName() && $this->getDestinyName() == $data->getDestinyName() && $this->getFontName() == $data->getFontName(); }