/** * Get data */ private function getData() { try { BackendAnalyticsHelper::getRecentReferrers(); BackendAnalyticsHelper::getRecentKeywords(); } catch (Exception $e) { $this->output(self::OK, array('status' => 'error'), 'Something went wrong while getting traffic sources.'); } }
/** * Get data */ private function getData() { try { BackendAnalyticsHelper::getRecentReferrers(); BackendAnalyticsHelper::getRecentKeywords(); } catch (Exception $e) { throw new SpoonException('Something went wrong while getting dashboard data.'); } }
/** * Get data * * @return void */ private function getData() { // try try { // fetch from google and save in db BackendAnalyticsHelper::getRecentReferrers(); // fetch from google and save in db BackendAnalyticsHelper::getRecentKeywords(); } catch (Exception $e) { // throw exception throw new SpoonException('Something went wrong while getting dashboard data.'); } }
/** * Get data * * @return void */ private function getData() { // try try { // fetch from google and save in db BackendAnalyticsHelper::getRecentReferrers(); // fetch from google and save in db BackendAnalyticsHelper::getRecentKeywords(); } catch (Exception $e) { // return status $this->output(self::OK, array('status' => 'error'), 'Something went wrong while getting the traffic sources.'); } }