@@ -447,6 +447,9 @@ discard block |
||
| 447 | 447 | return implode('-', $components); |
| 448 | 448 | } |
| 449 | 449 | |
| 450 | + /** |
|
| 451 | + * @param string $fieldName |
|
| 452 | + */ |
|
| 450 | 453 | private function hasCachedFieldGetter($object, $fieldName) |
| 451 | 454 | { |
| 452 | 455 | return isset( |
@@ -454,6 +457,9 @@ discard block |
||
| 454 | 457 | ); |
| 455 | 458 | } |
| 456 | 459 | |
| 460 | + /** |
|
| 461 | + * @param string $fieldName |
|
| 462 | + */ |
|
| 457 | 463 | private function callCachedGetter($object, $fieldName, array $parameters = []) |
| 458 | 464 | { |
| 459 | 465 | $getterKey = $this->getFieldGetterKey($object, $fieldName); |
@@ -472,6 +478,10 @@ discard block |
||
| 472 | 478 | return $object->{$fieldName}; |
| 473 | 479 | } |
| 474 | 480 | |
| 481 | + /** |
|
| 482 | + * @param string $fieldName |
|
| 483 | + * @param string $method |
|
| 484 | + */ |
|
| 475 | 485 | private function cacheFieldGetter($object, $fieldName, $method, $getter = null) |
| 476 | 486 | { |
| 477 | 487 | $getterKey = $this->getFieldGetterKey($object, $fieldName); |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | /** |
| 127 | 127 | * render a list element from the FieldDescription. |
| 128 | 128 | * |
| 129 | - * @param mixed $object |
|
| 129 | + * @param \stdClass $object |
|
| 130 | 130 | * @param array $params |
| 131 | 131 | * |
| 132 | 132 | * @return string |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | /** |
| 223 | 223 | * render a view element. |
| 224 | 224 | * |
| 225 | - * @param mixed $object |
|
| 225 | + * @param \stdClass $object |
|
| 226 | 226 | * |
| 227 | 227 | * @return string |
| 228 | 228 | */ |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | /** |
| 360 | 360 | * Get the identifiers as a string that is safe to use in a url. |
| 361 | 361 | * |
| 362 | - * @param object $model |
|
| 362 | + * @param \stdClass $model |
|
| 363 | 363 | * |
| 364 | 364 | * @return string string representation of the id that is safe to use in a url |
| 365 | 365 | */ |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | } |
| 382 | 382 | |
| 383 | 383 | /** |
| 384 | - * @return string|bool |
|
| 384 | + * @return string|false |
|
| 385 | 385 | */ |
| 386 | 386 | public function getXEditableType($type) |
| 387 | 387 | { |