@@ -8,7 +8,7 @@ |
||
| 8 | 8 | class PrintableTransformation_TabSet extends TabSet |
| 9 | 9 | { |
| 10 | 10 | /** |
| 11 | - * @param array $tabs |
|
| 11 | + * @param FieldList $tabs |
|
| 12 | 12 | */ |
| 13 | 13 | public function __construct($tabs) |
| 14 | 14 | { |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | * If $dontEscape is false the returned value will be safely encoded, |
| 84 | 84 | * but should not be escaped by the frontend. |
| 85 | 85 | * |
| 86 | - * @return mixed|string |
|
| 86 | + * @return string |
|
| 87 | 87 | */ |
| 88 | 88 | public function Value() |
| 89 | 89 | { |
@@ -37,6 +37,9 @@ discard block |
||
| 37 | 37 | return $this->title; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $title |
|
| 42 | + */ |
|
| 40 | 43 | function setTitle($title) |
| 41 | 44 | { |
| 42 | 45 | $this->title = $title; |
@@ -48,6 +51,9 @@ discard block |
||
| 48 | 51 | return $this->value; |
| 49 | 52 | } |
| 50 | 53 | |
| 54 | + /** |
|
| 55 | + * @param string $Value |
|
| 56 | + */ |
|
| 51 | 57 | function setValue($Value) |
| 52 | 58 | { |
| 53 | 59 | $this->value = $Value; |
@@ -57,6 +57,10 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | protected $schemaDataType = FormField::SCHEMA_DATA_TYPE_TIME; |
| 59 | 59 | |
| 60 | + /** |
|
| 61 | + * @param string $name |
|
| 62 | + * @param string $title |
|
| 63 | + */ |
|
| 60 | 64 | public function __construct($name, $title = null, $value = "") |
| 61 | 65 | { |
| 62 | 66 | if (!$this->locale) { |
@@ -231,7 +235,7 @@ discard block |
||
| 231 | 235 | |
| 232 | 236 | /** |
| 233 | 237 | * @param String $name Optional, returns the whole configuration array if empty |
| 234 | - * @return mixed|array |
|
| 238 | + * @return string|null |
|
| 235 | 239 | */ |
| 236 | 240 | public function getConfig($name = null) |
| 237 | 241 | { |
@@ -250,6 +254,9 @@ discard block |
||
| 250 | 254 | return $this->castedCopy('SilverStripe\\Forms\\TimeField_Readonly'); |
| 251 | 255 | } |
| 252 | 256 | |
| 257 | + /** |
|
| 258 | + * @param string $class |
|
| 259 | + */ |
|
| 253 | 260 | public function castedCopy($class) |
| 254 | 261 | { |
| 255 | 262 | $copy = parent::castedCopy($class); |
@@ -238,7 +238,7 @@ |
||
| 238 | 238 | |
| 239 | 239 | /** |
| 240 | 240 | * @param array $properties |
| 241 | - * @return string |
|
| 241 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
| 242 | 242 | */ |
| 243 | 243 | public function Field($properties = array()) |
| 244 | 244 | { |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | /** |
| 305 | 305 | * Determine if the target folder for new uploads in is visible the field UI. |
| 306 | 306 | * |
| 307 | - * @return boolean |
|
| 307 | + * @return boolean|string |
|
| 308 | 308 | */ |
| 309 | 309 | public function canPreviewFolder() |
| 310 | 310 | { |
@@ -581,7 +581,7 @@ discard block |
||
| 581 | 581 | * Customises a file with additional details suitable for rendering in the |
| 582 | 582 | * UploadField.ss template |
| 583 | 583 | * |
| 584 | - * @param ViewableData|AssetContainer $file |
|
| 584 | + * @param AssetContainer $file |
|
| 585 | 585 | * @return ViewableData_Customised |
| 586 | 586 | */ |
| 587 | 587 | protected function customiseFile(AssetContainer $file) |
@@ -690,7 +690,7 @@ discard block |
||
| 690 | 690 | /** |
| 691 | 691 | * Determine if the user has permission to upload. |
| 692 | 692 | * |
| 693 | - * @return boolean |
|
| 693 | + * @return boolean|string |
|
| 694 | 694 | */ |
| 695 | 695 | public function canUpload() |
| 696 | 696 | { |
@@ -718,7 +718,7 @@ discard block |
||
| 718 | 718 | * Determine if the user has permission to attach existing files |
| 719 | 719 | * By default returns true if the user has the CMS_ACCESS_AssetAdmin permission |
| 720 | 720 | * |
| 721 | - * @return boolean |
|
| 721 | + * @return boolean|string |
|
| 722 | 722 | */ |
| 723 | 723 | public function canAttachExisting() |
| 724 | 724 | { |
@@ -2171,6 +2171,7 @@ discard block |
||
| 2171 | 2171 | |
| 2172 | 2172 | /** |
| 2173 | 2173 | * @param String |
| 2174 | + * @param string $name |
|
| 2174 | 2175 | * @return Zend_Translate |
| 2175 | 2176 | */ |
| 2176 | 2177 | public static function get_translator($name) |
@@ -2212,6 +2213,7 @@ discard block |
||
| 2212 | 2213 | |
| 2213 | 2214 | /** |
| 2214 | 2215 | * @param String |
| 2216 | + * @param string $name |
|
| 2215 | 2217 | */ |
| 2216 | 2218 | public static function unregister_translator($name) |
| 2217 | 2219 | { |
@@ -2323,7 +2325,7 @@ discard block |
||
| 2323 | 2325 | * |
| 2324 | 2326 | * @see get_locale_name() |
| 2325 | 2327 | * |
| 2326 | - * @param mixed $code Language code |
|
| 2328 | + * @param string $code Language code |
|
| 2327 | 2329 | * @param boolean $native If true, the native name will be returned |
| 2328 | 2330 | * @return string Name of the language |
| 2329 | 2331 | */ |
@@ -52,6 +52,7 @@ |
||
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * Parses a template and returns any translatable entities |
| 55 | + * @param string $template |
|
| 55 | 56 | */ |
| 56 | 57 | public static function GetTranslatables($template) |
| 57 | 58 | { |
@@ -178,7 +178,7 @@ |
||
| 178 | 178 | * |
| 179 | 179 | * Actually only one array argument is supported. |
| 180 | 180 | * |
| 181 | - * @param $f callback to apply |
|
| 181 | + * @param string $f callback to apply |
|
| 182 | 182 | * @param $array array |
| 183 | 183 | * @return array |
| 184 | 184 | */ |