getView()->setPath('dashboard'); } // //서비스카운팅 , total_counting_customer.php //CLI 접속방법 : php index.php site/client/dashboard/totalcount/client_code/코드번호 //WEB 접속방법 : http://localhost/site/client/dashboard/totalcount/client_code/코드번호 public function totalcount(mixed $client_code = null) { if ($client_code === null) { $client_code = $this->getSegments('client_code'); if ($client_code === null) { throw new \Exception("client_code 값이 정의되지 않았습니다."); } } $this->client_code = $client_code; $dashboard = []; foreach (DBMS_SERVICE_SWITCHCODE as $district => $switchcodes) { $switchcode_begin = $switchcodes['begin']; $switchcode_end = $switchcodes['end']; $dashboard[$district] = $this->getServiceService()->getDistrictCountByClient( $client_code, $switchcode_begin, $switchcode_end ); } //foreach foreach (array_keys(DBMS_SERVICE_LINE) as $service_line) { $dashboard[$service_line] = $this->getServiceService()->getServiceLineCountByClient($client_code, $service_line); } //foreach $dashboard['coupon'] = $this->getServiceService()->getCouponCountByClient($client_code); $this->dashboard = $dashboard; return $this->render(__FUNCTION__); } } //Class