This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Incam_SGD/plugins/KTPFramework/KTPInterceptionPortlet.php

89 lines
3.3 KiB
PHP
Raw Normal View History

<?php
/**
* Copyright 2010 Aart-Jan Boor <aart-jan@wemag.nl>
* Author: Aart-Jan Boor
* Wemag Advisering <http://www.wemag.nl>
* Website: http://www.ktplugins.com
*
*/
require_once(KT_LIB_DIR . '/widgets/portlet.inc.php');
require_once('KTPFwPage.php');
/**
* Interception portlet for frontend pages, replaces KTPage object with KTplugins extension of
* this object that allows adjusting page output
*/
class KTPFwInterceptionPortlet extends KTPortlet {
var $sNamespace = "ktplugins.KTPFramework.portlets.interceptionportlet";
var $systemPortlet = true;
function KTPFwInterceptionPortlet(){
$page = new KTPFwPage('browse');
$page->portlets = $GLOBALS['main']->portlets;
$page->contents = $GLOBALS['main']->contents;
$page->breadcrumbs = $GLOBALS['main']->breadcrumbs;
$page->breadcrumbDetails = $GLOBALS['main']->breadcrumbDetails;
$page->breadcrumbSection = $GLOBALS['main']->breadcrumbSection;
$page->js_resources = $GLOBALS['main']->js_resources;
$page->css_resources = $GLOBALS['main']->css_resources;
$page->js_standalone = $GLOBALS['main']->js_standalone;
$page->css_standalone = $GLOBALS['main']->css_standalone;
$page->secondary_title = $GLOBALS['main']->secondary_title;
$page->ie_only_css = $GLOBALS['main']->ie_only_css;
$page->menu = $GLOBALS['main']->menu;
$page->userMenu = $GLOBALS['main']->userMenu;
$page->componentLabel = $GLOBALS['main']->componentLabel;
$page->componentClass = $GLOBALS['main']->componentClass;
$page->template = $GLOBALS['main']->template;
$page->content_class = $GLOBALS['main']->content_class;
$page->user = $GLOBALS['main']->user;
$page->show_portlets = $GLOBALS['main']->show_portlets; // Rodax Software - Ticket #446
$GLOBALS['main'] = $page;
}
function render() {
return null;
}
}
/**
* Interception portlet for administration pages, replaces KTPage object with KTplugins extension of
* this object that allows adjusting page output
*/
class KTPFwInterceptionAdminPortlet extends KTPortlet {
var $sNamespace = "ktplugins.KTPFramework.portlets.interceptionadminportlet";
function KTPFwInterceptionAdminPortlet(){
$page = new KTPFwPage('admin');
$page->portlets = $GLOBALS['main']->portlets;
$page->contents = $GLOBALS['main']->contents;
$page->breadcrumbs = $GLOBALS['main']->breadcrumbs;
$page->breadcrumbDetails = $GLOBALS['main']->breadcrumbDetails;
$page->breadcrumbSection = $GLOBALS['main']->breadcrumbSection;
$page->js_resources = $GLOBALS['main']->js_resources;
$page->css_resources = $GLOBALS['main']->css_resources;
$page->js_standalone = $GLOBALS['main']->js_standalone;
$page->css_standalone = $GLOBALS['main']->css_standalone;
$page->secondary_title = $GLOBALS['main']->secondary_title;
$page->ie_only_css = $GLOBALS['main']->ie_only_css;
$page->menu = $GLOBALS['main']->menu;
$page->userMenu = $GLOBALS['main']->userMenu;
$page->componentLabel = $GLOBALS['main']->componentLabel;
$page->componentClass = $GLOBALS['main']->componentClass;
$page->template = $GLOBALS['main']->template;
$page->content_class = $GLOBALS['main']->content_class;
$page->user = $GLOBALS['main']->user;
$GLOBALS['main'] = $page;
}
function render() {
return null;
}
}
?>