| @@ 199-209 (lines=11) @@ | ||
| 196 | * @param mixed $identifier |
|
| 197 | * @return mixed |
|
| 198 | */ |
|
| 199 | protected function identifier($identifier) { |
|
| 200 | if (is_array($identifier)) { |
|
| 201 | return array_map(array($this, 'identifier'), $identifier); |
|
| 202 | } |
|
| 203 | ||
| 204 | if ($this->translatable($identifier)) { |
|
| 205 | return $this->translateValue($identifier); |
|
| 206 | } |
|
| 207 | ||
| 208 | return $this->resolveIdentifier($identifier); |
|
| 209 | } |
|
| 210 | ||
| 211 | /** |
|
| 212 | * Determine whether the given value is translatable. |
|
| @@ 267-277 (lines=11) @@ | ||
| 264 | * @param mixed $value |
|
| 265 | * @return array|string |
|
| 266 | */ |
|
| 267 | protected function value($value) { |
|
| 268 | if (is_array($value)) { |
|
| 269 | return array_map(array($this, 'value'), $value); |
|
| 270 | } |
|
| 271 | ||
| 272 | if ($this->translatable($value)) { |
|
| 273 | return $this->translateValue($value); |
|
| 274 | } |
|
| 275 | ||
| 276 | return $this->resolveValue($value); |
|
| 277 | } |
|
| 278 | ||
| 279 | /** |
|
| 280 | * Resolve a placeholder or constant for the given parameter value. |
|