@@ -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); |
@@ -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]); |
@@ -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; |
@@ -41,6 +41,9 @@ |
||
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $action |
|
| 46 | + */ |
|
| 44 | 47 | public function getInventoryDataAndSend(Vtiger_Record_Model $recordModel, $action) |
| 45 | 48 | { |
| 46 | 49 | $moduleName = $recordModel->getModuleName(); |
@@ -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); |
@@ -67,6 +67,9 @@ |
||
| 67 | 67 | return $query; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param Vtiger_Paging_Model $pagingModel |
|
| 72 | + */ |
|
| 70 | 73 | public function calculatePageRange($record, $pagingModel) |
| 71 | 74 | { |
| 72 | 75 | $pageLimit = $pagingModel->getPageLimit(); |