Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15823 | Rev 15826 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15823 Rev 15825
Línea 101... Línea 101...
101
        $endDate = $this->params()->fromQuery('endDate');
101
        $endDate = $this->params()->fromQuery('endDate');
102
        if (empty($endDate)) {
102
        if (empty($endDate)) {
103
            $endDate = date('Y-m-d');
103
            $endDate = date('Y-m-d');
104
        }
104
        }
Línea 105... Línea 105...
105
 
105
 
106
        $startDate = '2023-03-01';
106
        $startDateA = '2023-01-09';
Línea 107... Línea 107...
107
        $endDate = '2023-03-19';
107
        $endDateB = '2023-03-19';
108
 
108
 
Línea 109... Línea 109...
109
        $dtStartDate = \DateTime::createFromFormat('Y-n-d', $startDate);
109
        $dtStartDate = \DateTime::createFromFormat('Y-n-d', $startDate);
Línea 119... Línea 119...
119
                $endDate = date('Y-m-d');
119
                $endDate = date('Y-m-d');
120
            }
120
            }
121
        }
121
        }
Línea 122... Línea 122...
122
 
122
 
123
        $contactProgressRecordMapper = DiscoveryContactLogMapper::getInstance($this->adapter);
123
        $contactProgressRecordMapper = DiscoveryContactLogMapper::getInstance($this->adapter);
Línea 124... Línea 124...
124
        $dailyProgress = $contactProgressRecordMapper->fetchAllDataByDateRange($currentUser->id, $startDate, $endDate);
124
        $dailyProgress = $contactProgressRecordMapper->fetchAllDataByDateRange($currentUser->id, $startDateA, $endDateB);
125
 
125
 
126
        return new JsonModel([
126
        return new JsonModel([
127
            'success' => true,
127
            'success' => true,
128
            'message' => $startDate
128
            'message' => $startDateA
Línea 129... Línea 129...
129
        ]);
129
        ]);
130
        //}
130
        //}