@@ -109,6 +109,9 @@ |
||
| 109 | 109 | $response->emit(); |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | + /** |
|
| 113 | + * @param string $datetime |
|
| 114 | + */ |
|
| 112 | 115 | public function changeDateTime($datetime, $delta) |
| 113 | 116 | { |
| 114 | 117 | $date = new DateTime($datetime); |
@@ -149,6 +149,10 @@ discard block |
||
| 149 | 149 | return $hierarchy; |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | + /** |
|
| 153 | + * @param integer $id |
|
| 154 | + * @param integer[] $encountered_accounts |
|
| 155 | + */ |
|
| 152 | 156 | public function __getParentEmployees($id, &$parent_accounts, &$encountered_accounts) |
| 153 | 157 | { |
| 154 | 158 | $adb = PearDatabase::getInstance(); |
@@ -200,6 +204,9 @@ discard block |
||
| 200 | 204 | return $parent_accounts; |
| 201 | 205 | } |
| 202 | 206 | |
| 207 | + /** |
|
| 208 | + * @param integer $id |
|
| 209 | + */ |
|
| 203 | 210 | public function __getChildEmployees($id, &$child_accounts, $depth) |
| 204 | 211 | { |
| 205 | 212 | $adb = PearDatabase::getInstance(); |
@@ -17,6 +17,9 @@ |
||
| 17 | 17 | } |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param Vtiger_Record_Model $recordModel |
|
| 22 | + */ |
|
| 20 | 23 | public function checkMandatoryFields($recordModel) |
| 21 | 24 | { |
| 22 | 25 | $mandatoryFields = $recordModel->getModule()->getMandatoryFieldModels(); |
@@ -29,6 +29,9 @@ |
||
| 29 | 29 | return $ns . '-' . $key; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @param string $namespace |
|
| 34 | + */ |
|
| 32 | 35 | public function set($namespace, $key, $value) |
| 33 | 36 | { |
| 34 | 37 | $this->connection->set($this->cacheKey($namespace, $key), $value); |
@@ -53,11 +53,19 @@ |
||
| 53 | 53 | return $this->data = $data; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | + /** |
|
| 57 | + * @param string $key |
|
| 58 | + * |
|
| 59 | + * @return string |
|
| 60 | + */ |
|
| 56 | 61 | public function getFromData($key) |
| 57 | 62 | { |
| 58 | 63 | return $this->data[$key]; |
| 59 | 64 | } |
| 60 | 65 | |
| 66 | + /** |
|
| 67 | + * @param Vtiger_Widget_Model $widgetModel |
|
| 68 | + */ |
|
| 61 | 69 | public function setWidgetModel($widgetModel) |
| 62 | 70 | { |
| 63 | 71 | $this->widgetModel = $widgetModel; |
@@ -71,6 +71,11 @@ |
||
| 71 | 71 | return $widget; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param Vtiger_Module_Model $model |
|
| 76 | + * @param string $type |
|
| 77 | + * @param string $prefix |
|
| 78 | + */ |
|
| 74 | 79 | public function getCheckboxLables($model, $type, $prefix) |
| 75 | 80 | { |
| 76 | 81 | $on = $prefix . 'ON_' . strtoupper($this->Data[$type]); |
@@ -23,6 +23,9 @@ |
||
| 23 | 23 | } |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param Vtiger_Record_Model $data |
|
| 28 | + */ |
|
| 26 | 29 | public static function setSumTime($data) |
| 27 | 30 | { |
| 28 | 31 | $start = strtotime(DateTimeField::convertToDBFormat($data->get('date_start')) . ' ' . $data->get('time_start')); |
@@ -12,6 +12,9 @@ |
||
| 12 | 12 | class Calendar_Record_Model extends Vtiger_Record_Model |
| 13 | 13 | { |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param false|string $refModuleName |
|
| 17 | + */ |
|
| 15 | 18 | public static function getNameByReference($refModuleName) |
| 16 | 19 | { |
| 17 | 20 | $fieldName = Vtiger_Cache::get('NameRelatedField', $refModuleName . '-Calendar'); |
@@ -25,11 +25,18 @@ |
||
| 25 | 25 | return static::$instance; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $key |
|
| 30 | + * @param string $value |
|
| 31 | + */ |
|
| 28 | 32 | public function addHeader($key, $value) |
| 29 | 33 | { |
| 30 | 34 | $this->headers[$key] = $value; |
| 31 | 35 | } |
| 32 | 36 | |
| 37 | + /** |
|
| 38 | + * @param integer $status |
|
| 39 | + */ |
|
| 33 | 40 | public function setStatus($status) |
| 34 | 41 | { |
| 35 | 42 | $this->status = $status; |