@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * @param SS_HTTPRequest $request |
| 64 | - * @return array |
|
| 64 | + * @return SS_HTTPResponse |
|
| 65 | 65 | */ |
| 66 | 66 | public function show($request) { |
| 67 | 67 | $form = $this->ShowVersionForm($request->param('VersionID')); |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * @param SS_HTTPRequest $request |
| 83 | - * @return array |
|
| 83 | + * @return SS_HTTPResponse |
|
| 84 | 84 | */ |
| 85 | 85 | public function compare($request) { |
| 86 | 86 | $form = $this->CompareVersionsForm( |
@@ -118,6 +118,9 @@ |
||
| 118 | 118 | return $this->defaultUrl; |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | + /** |
|
| 122 | + * @param string $url |
|
| 123 | + */ |
|
| 121 | 124 | public function setDefaultURL($url) { |
| 122 | 125 | $this->defaultUrl = $url; |
| 123 | 126 | return $this; |
@@ -252,7 +252,7 @@ |
||
| 252 | 252 | /** |
| 253 | 253 | * Write out the published version of the page to the filesystem |
| 254 | 254 | * |
| 255 | - * @return true if the page write was successful |
|
| 255 | + * @return boolean if the page write was successful |
|
| 256 | 256 | */ |
| 257 | 257 | public function writeStaticPage() { |
| 258 | 258 | if(!self::config()->enable_static_file) { |
@@ -341,6 +341,9 @@ |
||
| 341 | 341 | } |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | + /** |
|
| 345 | + * @param string $field |
|
| 346 | + */ |
|
| 344 | 347 | public function getField($field) { |
| 345 | 348 | if($this->isFieldVirtualised($field)) { |
| 346 | 349 | return $this->CopyContentFrom()->getField($field); |
@@ -753,7 +753,7 @@ |
||
| 753 | 753 | * @param boolean $unlinked Whether to link page titles. |
| 754 | 754 | * @param boolean|string $stopAtPageType ClassName of a page to stop the upwards traversal. |
| 755 | 755 | * @param boolean $showHidden Include pages marked with the attribute ShowInMenus = 0 |
| 756 | - * @return string The breadcrumb trail. |
|
| 756 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText The breadcrumb trail. |
|
| 757 | 757 | */ |
| 758 | 758 | public function Breadcrumbs($maxDepth = 20, $unlinked = false, $stopAtPageType = false, $showHidden = false) { |
| 759 | 759 | $pages = $this->getBreadcrumbItems($maxDepth, $stopAtPageType, $showHidden); |
@@ -284,6 +284,9 @@ discard block |
||
| 284 | 284 | } |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | + /** |
|
| 288 | + * @param string $link |
|
| 289 | + */ |
|
| 287 | 290 | public function LinkWithSearch($link) { |
| 288 | 291 | // Whitelist to avoid side effects |
| 289 | 292 | $params = array( |
@@ -766,7 +769,7 @@ discard block |
||
| 766 | 769 | |
| 767 | 770 | /** |
| 768 | 771 | * @param SS_HTTPRequest $request |
| 769 | - * @return string HTML |
|
| 772 | + * @return DBHTMLText HTML |
|
| 770 | 773 | */ |
| 771 | 774 | public function treeview($request) { |
| 772 | 775 | return $this->renderWith($this->getTemplatesWithSuffix('_TreeView')); |
@@ -774,7 +777,7 @@ discard block |
||
| 774 | 777 | |
| 775 | 778 | /** |
| 776 | 779 | * @param SS_HTTPRequest $request |
| 777 | - * @return string HTML |
|
| 780 | + * @return DBHTMLText HTML |
|
| 778 | 781 | */ |
| 779 | 782 | public function listview($request) { |
| 780 | 783 | return $this->renderWith($this->getTemplatesWithSuffix('_ListView')); |
@@ -1095,7 +1098,7 @@ discard block |
||
| 1095 | 1098 | * Actually perform the publication step |
| 1096 | 1099 | * |
| 1097 | 1100 | * @param Versioned|DataObject $record |
| 1098 | - * @return mixed |
|
| 1101 | + * @return SS_HTTPResponse|null |
|
| 1099 | 1102 | */ |
| 1100 | 1103 | public function performPublish($record) { |
| 1101 | 1104 | if($record && !$record->canPublish()) { |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * |
| 40 | 40 | * @param array $data |
| 41 | 41 | * @param Form $form |
| 42 | - * @return DBHTMLText|SS_HTTPResponse |
|
| 42 | + * @return SS_HTTPResponse|null |
|
| 43 | 43 | */ |
| 44 | 44 | public function addtocampaign($data, $form) |
| 45 | 45 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | * Url handler for add to campaign form |
| 67 | 67 | * |
| 68 | 68 | * @param SS_HTTPRequest $request |
| 69 | - * @return Form |
|
| 69 | + * @return null|\Form |
|
| 70 | 70 | */ |
| 71 | 71 | public function AddToCampaignForm($request) |
| 72 | 72 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | 79 | * @param int $id |
| 80 | - * @return Form |
|
| 80 | + * @return null|\Form |
|
| 81 | 81 | */ |
| 82 | 82 | public function getAddToCampaignForm($id) |
| 83 | 83 | { |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | protected $record; |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * @param DataObject|CMSPreviewable $record |
|
| 35 | + * @param CMSPreviewable $record |
|
| 36 | 36 | */ |
| 37 | 37 | public function __construct(CMSPreviewable $record) { |
| 38 | 38 | parent::__construct(); |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | protected $recordLink; |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * @param DataObject|CMSPreviewable $record |
|
| 30 | + * @param CMSPreviewable $record |
|
| 31 | 31 | */ |
| 32 | 32 | public function __construct(CMSPreviewable $record) |
| 33 | 33 | { |
@@ -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 | { |