@@ -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,17 @@ |
||
| 53 | 53 | return $this->data = $data; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | + /** |
|
| 57 | + * @param string $key |
|
| 58 | + */ |
|
| 56 | 59 | public function getFromData($key) |
| 57 | 60 | { |
| 58 | 61 | return $this->data[$key]; |
| 59 | 62 | } |
| 60 | 63 | |
| 64 | + /** |
|
| 65 | + * @param Vtiger_Widget_Model $widgetModel |
|
| 66 | + */ |
|
| 61 | 67 | public function setWidgetModel($widgetModel) |
| 62 | 68 | { |
| 63 | 69 | $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]); |
@@ -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(); |
@@ -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(); |
@@ -20,6 +20,9 @@ |
||
| 20 | 20 | ])->execute(); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $type |
|
| 25 | + */ |
|
| 23 | 26 | public static function getConfig($type) |
| 24 | 27 | { |
| 25 | 28 | $config = []; |
@@ -32,6 +32,9 @@ |
||
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param Vtiger_Widget_Model $widget |
|
| 37 | + */ |
|
| 35 | 38 | public static function getData(\App\Request $request, $widget) |
| 36 | 39 | { |
| 37 | 40 | $fields = ['id', 'assetname', 'dateinservice', 'parent_id']; |