@@ -103,7 +103,7 @@ |
||
| 103 | 103 | * (e.g. because of malformed content) no further attempts will be |
| 104 | 104 | * made. |
| 105 | 105 | * |
| 106 | - * @param DataObject $owner |
|
| 106 | + * @param \SilverStripe\ORM\DataObject $owner |
|
| 107 | 107 | * @return Tocifier|false|null |
| 108 | 108 | */ |
| 109 | 109 | private static function getTocifier($owner) |
@@ -26,6 +26,10 @@ |
||
| 26 | 26 | ]; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param string $method |
|
| 31 | + * @param \Closure $callback |
|
| 32 | + */ |
|
| 29 | 33 | public static function addCallbackMethodToInstance($instance, $method, $callback) |
| 30 | 34 | { |
| 31 | 35 | // hasMethod() trigger the population of $extra_methods |