Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 362 Rev 363
Línea 70... Línea 70...
70
 
70
 
71
    public function indexAction()
71
    public function indexAction()
Línea 72... Línea 72...
72
    {
72
    {
-
 
73
 
-
 
74
        $request = $this->getRequest();
Línea 73... Línea 75...
73
 
75
        $initialDate = $request->getQuery('init', null);
74
        $request = $this->getRequest();
76
        $finalDate = $request->getQuery('final', null);
75
 
77
 
Línea 76... Línea -...
76
 
-
 
77
        if ($request->isGet()) {
-
 
78
            $currentUserPlugin = $this->plugin('currentUserPlugin');
-
 
79
            $currentUser = $currentUserPlugin->getUser();
78
 
Línea 80... Línea 79...
80
 
79
        if ($request->isGet()) {
81
            $companyMapper = \LeadersLinked\Mapper\CompanyMapper::getInstance($this->adapter);
80
            $currentUserPlugin = $this->plugin('currentUserPlugin');
Línea 82... Línea -...
82
            $company = $companyMapper->fetchDefaultForNetworkByNetworkId($currentUser->network_id);
-
 
83
 
-
 
84
            $habitReportMapper = \LeadersLinked\Mapper\HabitReportMapper::getInstance($this->adapter);
-
 
85
 
-
 
86
            $userLogRecords = [];
-
 
87
            $records = $habitReportMapper->fetchFiveteen($currentUser->id);
-
 
88
 
-
 
Línea 89... Línea 81...
89
            $date = date('Y-m-d');
81
            $currentUser = $currentUserPlugin->getUser();
90
            foreach ($records as $record) {
82
 
91
                array_push($userLogRecords, [
83
            $habitReportMapper = \LeadersLinked\Mapper\HabitReportMapper::getInstance($this->adapter);
92
                    'date' => $record->date,
84