| @@ 22-35 (lines=14) @@ | ||
| 19 | * |
|
| 20 | * @return \DateTime|null Null is returned if there is no value set for this column |
|
| 21 | */ |
|
| 22 | public function getValue () |
|
| 23 | { |
|
| 24 | if ($this->isNullValue()) |
|
| 25 | { |
|
| 26 | return null; |
|
| 27 | } |
|
| 28 | ||
| 29 | if (!isset($this->column_value)) |
|
| 30 | { |
|
| 31 | $this->setValue($this->jsonResponse); |
|
| 32 | } |
|
| 33 | ||
| 34 | return $this->column_value; |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * Update the date of the date column. |
|
| @@ 23-36 (lines=14) @@ | ||
| 20 | * |
|
| 21 | * @return int|double|null Null is returned if there is no value set for this column |
|
| 22 | */ |
|
| 23 | public function getValue () |
|
| 24 | { |
|
| 25 | if ($this->isNullValue()) |
|
| 26 | { |
|
| 27 | return null; |
|
| 28 | } |
|
| 29 | ||
| 30 | if (!isset($this->column_value)) |
|
| 31 | { |
|
| 32 | $this->setValue($this->jsonResponse); |
|
| 33 | } |
|
| 34 | ||
| 35 | return $this->column_value; |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * Update the value of a numeric column |
|
| @@ 24-37 (lines=14) @@ | ||
| 21 | * |
|
| 22 | * @return PulseUser|null Null is returned when no person is listed in this person column |
|
| 23 | */ |
|
| 24 | public function getValue () |
|
| 25 | { |
|
| 26 | if ($this->isNullValue()) |
|
| 27 | { |
|
| 28 | return null; |
|
| 29 | } |
|
| 30 | ||
| 31 | if (!isset($this->column_value)) |
|
| 32 | { |
|
| 33 | $this->setValue($this->jsonResponse); |
|
| 34 | } |
|
| 35 | ||
| 36 | return $this->column_value; |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * Update the person in a person column |
|
| @@ 78-91 (lines=14) @@ | ||
| 75 | * |
|
| 76 | * @return int The color value of a column |
|
| 77 | */ |
|
| 78 | public function getValue () |
|
| 79 | { |
|
| 80 | if ($this->isNullValue()) |
|
| 81 | { |
|
| 82 | return self::Grey; // The default color for DaPulse columns |
|
| 83 | } |
|
| 84 | ||
| 85 | if (!isset($this->column_value)) |
|
| 86 | { |
|
| 87 | $this->setValue($this->jsonResponse); |
|
| 88 | } |
|
| 89 | ||
| 90 | return $this->column_value; |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * Update the status of a status column |
|
| @@ 22-35 (lines=14) @@ | ||
| 19 | * |
|
| 20 | * @return string|null The column's content |
|
| 21 | */ |
|
| 22 | public function getValue () |
|
| 23 | { |
|
| 24 | if ($this->isNullValue()) |
|
| 25 | { |
|
| 26 | return null; |
|
| 27 | } |
|
| 28 | ||
| 29 | if (!isset($this->column_value)) |
|
| 30 | { |
|
| 31 | $this->setValue($this->jsonResponse); |
|
| 32 | } |
|
| 33 | ||
| 34 | return $this->column_value; |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * Update the text of a text column |
|
| @@ 27-40 (lines=14) @@ | ||
| 24 | * 'to' => \DateTime |
|
| 25 | * ) |
|
| 26 | */ |
|
| 27 | public function getValue () |
|
| 28 | { |
|
| 29 | if ($this->isNullValue()) |
|
| 30 | { |
|
| 31 | return null; |
|
| 32 | } |
|
| 33 | ||
| 34 | if (!isset($this->column_value)) |
|
| 35 | { |
|
| 36 | $this->setValue($this->jsonResponse); |
|
| 37 | } |
|
| 38 | ||
| 39 | return $this->column_value; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * Update the values of a timeline column |
|