| @@ 159-171 (lines=13) @@ | ||
| 156 | * |
|
| 157 | * @return BusinessProperty[] The list of business properties |
|
| 158 | */ |
|
| 159 | public function getBusinessProperties(BusinessEntity $businessEntity) |
|
| 160 | { |
|
| 161 | //the business properties usable in a url |
|
| 162 | $businessProperties = $businessEntity->getBusinessPropertiesByType('businessParameter'); |
|
| 163 | ||
| 164 | //the business properties usable in a url |
|
| 165 | $seoBusinessProps = $businessEntity->getBusinessPropertiesByType('seoable'); |
|
| 166 | ||
| 167 | //the business properties are the identifier and the seoables properties |
|
| 168 | $businessProperties = array_merge($businessProperties->toArray(), $seoBusinessProps->toArray()); |
|
| 169 | ||
| 170 | return $businessProperties; |
|
| 171 | } |
|
| 172 | ||
| 173 | /** |
|
| 174 | * Get the position of the identifier in the url of a business entity page pattern. |
|
| @@ 151-163 (lines=13) @@ | ||
| 148 | * |
|
| 149 | * @return BusinessProperty[] The list of business properties |
|
| 150 | */ |
|
| 151 | public function getBusinessProperties(BusinessEntity $businessEntity) |
|
| 152 | { |
|
| 153 | //the business properties usable in a url |
|
| 154 | $businessProperties = $businessEntity->getBusinessPropertiesByType('businessParameter'); |
|
| 155 | ||
| 156 | //the business properties usable in a url |
|
| 157 | $seoBusinessProps = $businessEntity->getBusinessPropertiesByType('seoable'); |
|
| 158 | ||
| 159 | //the business properties are the identifier and the seoables properties |
|
| 160 | $businessProperties = array_merge($businessProperties->toArray(), $seoBusinessProps->toArray()); |
|
| 161 | ||
| 162 | return $businessProperties; |
|
| 163 | } |
|
| 164 | ||
| 165 | /** |
|
| 166 | * Generate update the page parameters with the entity. |
|