@@ -28,6 +28,9 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | private static $currency_symbol = '$'; |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string $name |
|
| 33 | + */ |
|
| 31 | 34 | public function __construct($name = null, $wholeSize = 9, $decimalSize = 2, $defaultValue = 0) { |
| 32 | 35 | parent::__construct($name, $wholeSize, $decimalSize, $defaultValue); |
| 33 | 36 | } |
@@ -51,6 +54,9 @@ discard block |
||
| 51 | 54 | else return $val; |
| 52 | 55 | } |
| 53 | 56 | |
| 57 | + /** |
|
| 58 | + * @param string $value |
|
| 59 | + */ |
|
| 54 | 60 | public function setValue($value, $record = null, $markChanged = true) { |
| 55 | 61 | $matches = null; |
| 56 | 62 | if(is_numeric($value)) { |
@@ -40,6 +40,9 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | private static $nice_format = 'd/m/Y'; |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $value |
|
| 45 | + */ |
|
| 43 | 46 | public function setValue($value, $record = null, $markChanged = true) { |
| 44 | 47 | if($value === false || $value === null || (is_string($value) && !strlen($value))) { |
| 45 | 48 | // don't try to evaluate empty values with strtotime() below, as it returns "1970-01-01" when it should be |
@@ -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'; |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * @param string $name |
| 23 | 23 | * @param int $wholeSize |
| 24 | 24 | * @param int $decimalSize |
| 25 | - * @param float|int $defaultValue |
|
| 25 | + * @param integer $defaultValue |
|
| 26 | 26 | */ |
| 27 | 27 | public function __construct($name = null, $wholeSize = 9, $decimalSize = 2, $defaultValue = 0) { |
| 28 | 28 | $this->wholeSize = is_int($wholeSize) ? $wholeSize : 9; |
@@ -34,14 +34,14 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | - * @return float |
|
| 37 | + * @return string |
|
| 38 | 38 | */ |
| 39 | 39 | public function Nice() { |
| 40 | 40 | return number_format($this->value, $this->decimalSize); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * @return int |
|
| 44 | + * @return double |
|
| 45 | 45 | */ |
| 46 | 46 | public function Int() { |
| 47 | 47 | return floor($this->value); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @return float |
|
| 90 | + * @return integer |
|
| 91 | 91 | */ |
| 92 | 92 | public function nullValue() { |
| 93 | 93 | return 0; |
@@ -27,6 +27,9 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | protected $autoIncrement = true; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param boolean $autoIncrement |
|
| 32 | + */ |
|
| 30 | 33 | public function setAutoIncrement($autoIncrement) { |
| 31 | 34 | $this->autoIncrement = $autoIncrement; |
| 32 | 35 | return $this; |
@@ -64,6 +64,9 @@ |
||
| 64 | 64 | if($this->value) return date($format, strtotime($this->value)); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string[] $parts |
|
| 69 | + */ |
|
| 67 | 70 | public function TwelveHour( $parts ) { |
| 68 | 71 | $hour = $parts[1]; |
| 69 | 72 | $min = $parts[2]; |
@@ -24,6 +24,9 @@ |
||
| 24 | 24 | DB::require_field($this->tableName, $this->name, $values); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $title |
|
| 29 | + */ |
|
| 27 | 30 | public function scaffoldFormField($title = null, $params = null) { |
| 28 | 31 | $selectBox = new DropdownField($this->name, $title); |
| 29 | 32 | $selectBox->setSource($this->getDefaultOptions()); |
@@ -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; |
@@ -374,7 +374,6 @@ discard block |
||
| 374 | 374 | * @see SQLConditionalExpression::addWhere() for syntax examples |
| 375 | 375 | * |
| 376 | 376 | * @param mixed $where Predicate(s) to set, as escaped SQL statements or paramaterised queries |
| 377 | - * @param mixed $where,... Unlimited additional predicates |
|
| 378 | 377 | * @return self Self reference |
| 379 | 378 | */ |
| 380 | 379 | public function setWhere($where) { |
@@ -460,7 +459,6 @@ discard block |
||
| 460 | 459 | * </code> |
| 461 | 460 | * |
| 462 | 461 | * @param mixed $where Predicate(s) to set, as escaped SQL statements or paramaterised queries |
| 463 | - * @param mixed $where,... Unlimited additional predicates |
|
| 464 | 462 | * @return self Self reference |
| 465 | 463 | */ |
| 466 | 464 | public function addWhere($where) { |
@@ -476,7 +474,6 @@ discard block |
||
| 476 | 474 | * @see SQLConditionalExpression::addWhere() |
| 477 | 475 | * |
| 478 | 476 | * @param mixed $filters Predicate(s) to set, as escaped SQL statements or paramaterised queries |
| 479 | - * @param mixed $filters,... Unlimited additional predicates |
|
| 480 | 477 | * @return self Self reference |
| 481 | 478 | */ |
| 482 | 479 | public function setWhereAny($filters) { |
@@ -490,7 +487,6 @@ discard block |
||
| 490 | 487 | * @see SQLConditionalExpression::addWhere() |
| 491 | 488 | * |
| 492 | 489 | * @param mixed $filters Predicate(s) to set, as escaped SQL statements or paramaterised queries |
| 493 | - * @param mixed $filters,... Unlimited additional predicates |
|
| 494 | 490 | * @return self Self reference |
| 495 | 491 | */ |
| 496 | 492 | public function addWhereAny($filters) { |