/**
  * Get section and link
  *
  * @access	public
  * @param 	array 		Report data
  * @return	array 		Section/link
  */
 public function giveSectionLinkTitle($report_row)
 {
     ipsRegistry::_loadAppCoreVariables('calendar');
     $calendarCache = $this->cache->getCache('calendars');
     return array('title' => $calendarCache[$report_row['exdat1']]['cal_title'], 'url' => "/index.php?app=calendar&module=calendar&cal_id={$report_row['exdat1']}");
 }
Esempio n. 2
0
 /**
  * View an individual cache store contents
  *
  * @return	@e void		[Outputs to screen]
  */
 public function cacheView()
 {
     //-----------------------------------------
     // INIT
     //-----------------------------------------
     $id = trim($this->request['id']);
     //-----------------------------------------
     // Check
     //-----------------------------------------
     if (!$id) {
         $this->registry->output->global_message = $this->lang->words['c_noid'];
         $this->cacheOverview();
         return false;
     }
     //-----------------------------------------
     // Get cache...
     //-----------------------------------------
     if ($this->request['cache_app'] and !in_array($this->request['cache_app'], array('core', 'global'))) {
         ipsRegistry::_loadAppCoreVariables($this->request['cache_app']);
     }
     $db_cache = $this->cache->getCache($id);
     //-----------------------------------------
     // Build HTML and output...
     //-----------------------------------------
     ob_start();
     print_r($db_cache);
     $out = ob_get_contents();
     ob_end_clean();
     $this->registry->output->html .= $this->html->cache_pop_up($id, htmlspecialchars($out));
     $this->registry->output->printPopupWindow();
 }
Esempio n. 3
0
 /**
  * Get section and link
  *
  * @access	public
  * @param 	array 		Report data
  * @return	array 		Section/link
  */
 public function giveSectionLinkTitle($report_row)
 {
     $_event = $this->DB->buildAndFetch(array('select' => 'event_calendar_id', 'from' => 'cal_events', 'where' => 'event_id=' . intval($report_row['exdat1'])));
     ipsRegistry::_loadAppCoreVariables('calendar');
     $calendarCache = $this->cache->getCache('calendars');
     return array('title' => $calendarCache[$_event['event_calendar_id']]['cal_title'], 'url' => "/index.php?app=calendar&module=calendar&section=view&cal_id={$_event['event_calendar_id']}", 'seo_title' => $calendarCache[$_event['event_calendar_id']]['cal_title_seo'], 'seo_template' => 'cal_calendar');
 }