@@ -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; |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use SilverStripe\Control\HTTPRequest; |
8 | 8 | use SilverStripe\Core\Convert; |
9 | 9 | use SilverStripe\Forms\TextField; |
10 | -use SilverStripe\View\Requirements; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * Used to edit the SiteTree->URLSegment property, and suggest input based on the serverside rules |
@@ -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); |
@@ -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 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SilverStripe\CMS\Model; |
4 | 4 | |
5 | 5 | use SilverStripe\Assets\File; |
6 | -use SilverStripe\Core\Convert; |
|
7 | 6 | use SilverStripe\Forms\FieldList; |
8 | 7 | use SilverStripe\Forms\ReadonlyField; |
9 | 8 | use SilverStripe\ORM\DataExtension; |
@@ -59,7 +59,7 @@ |
||
59 | 59 | /** |
60 | 60 | * Generate an HTML list which provides links to where a file is used. |
61 | 61 | * |
62 | - * @return string |
|
62 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
63 | 63 | */ |
64 | 64 | public function BackLinkHTMLList() { |
65 | 65 | $viewer = new SSViewer(["type" => "Includes", self::class . "_description"]); |
@@ -272,6 +272,9 @@ discard block |
||
272 | 272 | } |
273 | 273 | } |
274 | 274 | |
275 | + /** |
|
276 | + * @param string $link |
|
277 | + */ |
|
275 | 278 | public function LinkWithSearch($link) { |
276 | 279 | // Whitelist to avoid side effects |
277 | 280 | $params = array( |
@@ -754,7 +757,7 @@ discard block |
||
754 | 757 | |
755 | 758 | /** |
756 | 759 | * @param HTTPRequest $request |
757 | - * @return string HTML |
|
760 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText HTML |
|
758 | 761 | */ |
759 | 762 | public function treeview($request) { |
760 | 763 | return $this->renderWith($this->getTemplatesWithSuffix('_TreeView')); |
@@ -762,7 +765,7 @@ discard block |
||
762 | 765 | |
763 | 766 | /** |
764 | 767 | * @param HTTPRequest $request |
765 | - * @return string HTML |
|
768 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText HTML |
|
766 | 769 | */ |
767 | 770 | public function listview($request) { |
768 | 771 | return $this->renderWith($this->getTemplatesWithSuffix('_ListView')); |
@@ -1085,7 +1088,7 @@ discard block |
||
1085 | 1088 | * Actually perform the publication step |
1086 | 1089 | * |
1087 | 1090 | * @param Versioned|DataObject $record |
1088 | - * @return mixed |
|
1091 | + * @return HTTPResponse|null |
|
1089 | 1092 | */ |
1090 | 1093 | public function performPublish($record) { |
1091 | 1094 | if($record && !$record->canPublish()) { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * @param array $data |
44 | 44 | * @param Form $form |
45 | - * @return DBHTMLText|HTTPResponse |
|
45 | + * @return null|HTTPResponse |
|
46 | 46 | */ |
47 | 47 | public function addtocampaign($data, $form) |
48 | 48 | { |