@@ -205,6 +205,9 @@ |
||
205 | 205 | return null; |
206 | 206 | } |
207 | 207 | |
208 | + /** |
|
209 | + * @param string $field |
|
210 | + */ |
|
208 | 211 | public function hasField($field) { |
209 | 212 | $fields = $this->compositeDatabaseFields(); |
210 | 213 | return isset($fields[$field]); |
@@ -23,6 +23,9 @@ discard block |
||
23 | 23 | */ |
24 | 24 | private static $currency_symbol = '$'; |
25 | 25 | |
26 | + /** |
|
27 | + * @param string $name |
|
28 | + */ |
|
26 | 29 | public function __construct($name = null, $wholeSize = 9, $decimalSize = 2, $defaultValue = 0) { |
27 | 30 | parent::__construct($name, $wholeSize, $decimalSize, $defaultValue); |
28 | 31 | } |
@@ -46,6 +49,9 @@ discard block |
||
46 | 49 | else return $val; |
47 | 50 | } |
48 | 51 | |
52 | + /** |
|
53 | + * @param string $value |
|
54 | + */ |
|
49 | 55 | public function setValue($value, $record = null, $markChanged = true) { |
50 | 56 | $matches = null; |
51 | 57 | if(is_numeric($value)) { |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * Return a date and time formatted as per a CMS user's settings. |
109 | 109 | * |
110 | 110 | * @param Member $member |
111 | - * @return boolean | string A time and date pair formatted as per user-defined settings. |
|
111 | + * @return false|string | string A time and date pair formatted as per user-defined settings. |
|
112 | 112 | */ |
113 | 113 | public function FormatFromSettings($member = null) { |
114 | 114 | require_once 'Zend/Date.php'; |
@@ -36,6 +36,9 @@ |
||
36 | 36 | |
37 | 37 | protected $whitelist = false; |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $name |
|
41 | + */ |
|
39 | 42 | public function __construct($name = null, $options = array()) { |
40 | 43 | if(is_string($options)) { |
41 | 44 | $options = array('whitelist' => $options); |
@@ -20,6 +20,9 @@ |
||
20 | 20 | */ |
21 | 21 | protected $autoIncrement = true; |
22 | 22 | |
23 | + /** |
|
24 | + * @param boolean $autoIncrement |
|
25 | + */ |
|
23 | 26 | public function setAutoIncrement($autoIncrement) { |
24 | 27 | $this->autoIncrement = $autoIncrement; |
25 | 28 | return $this; |
@@ -55,6 +55,9 @@ |
||
55 | 55 | if($this->value) return date($format, strtotime($this->value)); |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param string[] $parts |
|
60 | + */ |
|
58 | 61 | public function TwelveHour( $parts ) { |
59 | 62 | $hour = $parts[1]; |
60 | 63 | $min = $parts[2]; |
@@ -18,6 +18,9 @@ |
||
18 | 18 | DB::require_field($this->tableName, $this->name, $values); |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $title |
|
23 | + */ |
|
21 | 24 | public function scaffoldFormField($title = null, $params = null) { |
22 | 25 | $selectBox = new DropdownField($this->name, $title); |
23 | 26 | $selectBox->setSource($this->getDefaultOptions()); |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | /** |
420 | 420 | * Return the IDs of all the marked nodes. |
421 | 421 | * |
422 | - * @return array |
|
422 | + * @return integer[] |
|
423 | 423 | */ |
424 | 424 | public function markedNodeIDs() { |
425 | 425 | return array_keys($this->markedNodes); |
@@ -636,7 +636,7 @@ discard block |
||
636 | 636 | /** |
637 | 637 | * Return all the children that this page had, including pages that were deleted from both stage & live. |
638 | 638 | * |
639 | - * @return DataList |
|
639 | + * @return \SilverStripe\ORM\DataList |
|
640 | 640 | * @throws Exception |
641 | 641 | */ |
642 | 642 | public function AllHistoricalChildren() { |
@@ -826,7 +826,7 @@ discard block |
||
826 | 826 | * Get the next node in the tree of the type. If there is no instance of the className descended from this node, |
827 | 827 | * then search the parents. |
828 | 828 | * @param string $className Class name of the node to find. |
829 | - * @param string|int $root ID/ClassName of the node to limit the search to |
|
829 | + * @param integer $root ID/ClassName of the node to limit the search to |
|
830 | 830 | * @param DataObject $afterNode Used for recursive calls to this function |
831 | 831 | * @return DataObject |
832 | 832 | */ |
@@ -41,6 +41,7 @@ discard block |
||
41 | 41 | * Set the key field for this map. |
42 | 42 | * |
43 | 43 | * @var string $keyField |
44 | + * @param string $keyField |
|
44 | 45 | */ |
45 | 46 | public function setKeyField($keyField) { |
46 | 47 | $this->keyField = $keyField; |
@@ -50,6 +51,7 @@ discard block |
||
50 | 51 | * Set the value field for this map. |
51 | 52 | * |
52 | 53 | * @var string $valueField |
54 | + * @param string $valueField |
|
53 | 55 | */ |
54 | 56 | public function setValueField($valueField) { |
55 | 57 | $this->valueField = $valueField; |
@@ -95,6 +97,7 @@ discard block |
||
95 | 97 | * |
96 | 98 | * @var string $key |
97 | 99 | * @var mixed $value |
100 | + * @param string $value |
|
98 | 101 | */ |
99 | 102 | public function unshift($key, $value) { |
100 | 103 | $oldItems = $this->firstItems; |
@@ -114,6 +117,7 @@ discard block |
||
114 | 117 | * |
115 | 118 | * @var string $key |
116 | 119 | * @var mixed $value |
120 | + * @param string $value |
|
117 | 121 | */ |
118 | 122 | public function push($key, $value) { |
119 | 123 | $oldItems = $this->lastItems; |