22 parent::__construct();
30 return $this->
getData(
'publicationFormatId');
38 return $this->
setData(
'publicationFormatId', $publicationFormatId);
46 return $this->
getData(
'countriesIncluded');
54 $this->
setData(
'countriesIncluded', array_filter($countriesIncluded, array(&$this,
'_removeEmptyElements')));
62 return $this->
getData(
'countriesExcluded');
70 $this->
setData(
'countriesExcluded', array_filter($countriesExcluded, array(&$this,
'_removeEmptyElements')));
78 return $this->
getData(
'regionsIncluded');
86 $this->
setData(
'regionsIncluded', array_filter($regionsIncluded, array(&$this,
'_removeEmptyElements')));
94 return $this->
getData(
'regionsExcluded');
102 $this->
setData(
'regionsExcluded', array_filter($regionsExcluded, array(&$this,
'_removeEmptyElements')));
110 return $this->
getData(
'dateRole');
118 $this->
setData(
'dateRole', $dateRole);
126 return $this->
getData(
'dateFormat');
134 $this->
setData(
'dateFormat', $dateFormat);
158 return $this->
getData(
'currencyCode');
166 return $this->
setData(
'currencyCode', $currencyCode);
174 return $this->
getData(
'price');
182 return $this->
setData(
'price', $price);
190 return $this->
getData(
'discount');
198 return $this->
setData(
'discount', $discount);
207 return $this->
getData(
'priceTypeCode');
215 return $this->
setData(
'priceTypeCode', $priceTypeCode);
223 return $this->
getData(
'taxRateCode');
231 return $this->
setData(
'taxRateCode', $taxRateCode);
239 return $this->
getData(
'taxTypeCode');
247 return $this->
setData(
'taxTypeCode', $taxTypeCode);
255 return $this->
getData(
'agentId');
263 return $this->
setData(
'agentId', $agentId);
271 return $this->
getData(
'supplierId');
279 return $this->
setData(
'supplierId', $supplierId);
287 $territories = __(
'grid.catalogEntry.included');
289 $territories .=
', ' . __(
'grid.catalogEntry.excluded');
301 $agent = $representativeDao->getById($this->
getAgentId());
302 $supplier = $representativeDao->getById($this->
getSupplierId());
306 if (isset($agent) && isset($supplier)) {
307 $returner = join(
', ', array($agent->getName(), $supplier->getName()));
308 }
else if (isset($agent) && !isset($supplier)) {
309 $returner = $agent->getName();
310 }
else if (isset($supplier)) {
311 $returner = $supplier->getName();
325 return (trim($value) !=
'') ? true :
false;