本文整理汇总了PHP中ipsRegistry::_loadAppCoreVariables方法的典型用法代码示例。如果您正苦于以下问题:PHP ipsRegistry::_loadAppCoreVariables方法的具体用法?PHP ipsRegistry::_loadAppCoreVariables怎么用?PHP ipsRegistry::_loadAppCoreVariables使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ipsRegistry
的用法示例。
在下文中一共展示了ipsRegistry::_loadAppCoreVariables方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: giveSectionLinkTitle
/**
* 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']}");
}
示例2: cacheView
/**
* 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();
}
示例3: giveSectionLinkTitle
/**
* 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');
}