@@ -331,6 +331,9 @@ discard block |
||
| 331 | 331 | } |
| 332 | 332 | } |
| 333 | 333 | |
| 334 | + /** |
|
| 335 | + * @param string $link |
|
| 336 | + */ |
|
| 334 | 337 | public function LinkWithSearch($link) |
| 335 | 338 | { |
| 336 | 339 | // Whitelist to avoid side effects |
@@ -842,7 +845,7 @@ discard block |
||
| 842 | 845 | |
| 843 | 846 | /** |
| 844 | 847 | * @param HTTPRequest $request |
| 845 | - * @return string HTML |
|
| 848 | + * @return HTTPResponse HTML |
|
| 846 | 849 | */ |
| 847 | 850 | public function treeview($request) |
| 848 | 851 | { |
@@ -851,7 +854,7 @@ discard block |
||
| 851 | 854 | |
| 852 | 855 | /** |
| 853 | 856 | * @param HTTPRequest $request |
| 854 | - * @return string HTML |
|
| 857 | + * @return HTTPResponse HTML |
|
| 855 | 858 | */ |
| 856 | 859 | public function listview($request) |
| 857 | 860 | { |
@@ -1207,7 +1210,7 @@ discard block |
||
| 1207 | 1210 | * Actually perform the publication step |
| 1208 | 1211 | * |
| 1209 | 1212 | * @param Versioned|DataObject $record |
| 1210 | - * @return mixed |
|
| 1213 | + * @return HTTPResponse|null |
|
| 1211 | 1214 | */ |
| 1212 | 1215 | public function performPublish($record) |
| 1213 | 1216 | { |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | * |
| 44 | 44 | * @param array $data |
| 45 | 45 | * @param Form $form |
| 46 | - * @return DBHTMLText|HTTPResponse |
|
| 46 | + * @return null|HTTPResponse |
|
| 47 | 47 | */ |
| 48 | 48 | public function addtocampaign($data, $form) |
| 49 | 49 | { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * @param HTTPRequest $request |
| 66 | - * @return array |
|
| 66 | + * @return HTTPResponse |
|
| 67 | 67 | */ |
| 68 | 68 | public function show($request) |
| 69 | 69 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | 85 | * @param HTTPRequest $request |
| 86 | - * @return array |
|
| 86 | + * @return HTTPResponse |
|
| 87 | 87 | */ |
| 88 | 88 | public function compare($request) |
| 89 | 89 | { |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | protected $recordLink; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @param DataObject|CMSPreviewable $record |
|
| 28 | + * @param CMSPreviewable $record |
|
| 29 | 29 | */ |
| 30 | 30 | public function __construct(CMSPreviewable $record) |
| 31 | 31 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | - * @return DataObject |
|
| 79 | + * @return CMSPreviewable |
|
| 80 | 80 | */ |
| 81 | 81 | public function getRecord() |
| 82 | 82 | { |
@@ -137,6 +137,9 @@ |
||
| 137 | 137 | return $this->defaultUrl; |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | + /** |
|
| 141 | + * @param string $url |
|
| 142 | + */ |
|
| 140 | 143 | public function setDefaultURL($url) |
| 141 | 144 | { |
| 142 | 145 | $this->defaultUrl = $url; |
@@ -295,7 +295,7 @@ |
||
| 295 | 295 | /** |
| 296 | 296 | * Write out the published version of the page to the filesystem |
| 297 | 297 | * |
| 298 | - * @return true if the page write was successful |
|
| 298 | + * @return boolean if the page write was successful |
|
| 299 | 299 | */ |
| 300 | 300 | public function writeStaticPage() |
| 301 | 301 | { |
@@ -782,7 +782,7 @@ |
||
| 782 | 782 | * @param boolean $unlinked Whether to link page titles. |
| 783 | 783 | * @param boolean|string $stopAtPageType ClassName of a page to stop the upwards traversal. |
| 784 | 784 | * @param boolean $showHidden Include pages marked with the attribute ShowInMenus = 0 |
| 785 | - * @return string The breadcrumb trail. |
|
| 785 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText The breadcrumb trail. |
|
| 786 | 786 | */ |
| 787 | 787 | public function Breadcrumbs($maxDepth = 20, $unlinked = false, $stopAtPageType = false, $showHidden = false) |
| 788 | 788 | { |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | /** |
| 62 | 62 | * Generate an HTML list which provides links to where a file is used. |
| 63 | 63 | * |
| 64 | - * @return string |
|
| 64 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
| 65 | 65 | */ |
| 66 | 66 | public function BackLinkHTMLList() |
| 67 | 67 | { |
@@ -379,6 +379,9 @@ |
||
| 379 | 379 | return null; |
| 380 | 380 | } |
| 381 | 381 | |
| 382 | + /** |
|
| 383 | + * @param string $field |
|
| 384 | + */ |
|
| 382 | 385 | public function getField($field) |
| 383 | 386 | { |
| 384 | 387 | if ($this->isFieldVirtualised($field)) { |