git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/trunk@20 eb19766c-00d9-a042-a3a0-45cb8ec72764
46 lines
1.4 KiB
PHP
46 lines
1.4 KiB
PHP
<?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
|
|
*
|
|
* Contains main plugin classes and behaviour
|
|
*/
|
|
|
|
require_once (KT_LIB_DIR.'/plugins/pluginregistry.inc.php');
|
|
require_once (KT_DIR.'/plugins/KTPFramework/KTPUtil.php');
|
|
|
|
|
|
/**
|
|
* Sets up the KTPlugins.com Framework for KnowledgeTree
|
|
*
|
|
*/
|
|
class KTPFramework extends KTPlugin {
|
|
var $sNamespace = "ktplugins.KTPFramework.plugin";
|
|
|
|
|
|
function KTPFramework($sFilename = null) {
|
|
$res = parent::KTPlugin($sFilename);
|
|
$this->sFriendlyName = _kt('KTPlugins.com Framework');
|
|
return $res;
|
|
}
|
|
|
|
|
|
function setup() {
|
|
//check installation prerequisites
|
|
KTPUtil::doDbTableCheck(array('ktp_fw_triggers'));
|
|
|
|
//register portlets which are used to in intercept template rendering to adjust certain page output
|
|
$this->registerPortlet(array('administration'), 'KTPFwInterceptionAdminPortlet', 'ktplugins.KTPFramework.portlets.interceptionadminportlet', 'KTPInterceptionPortlet.php');
|
|
$this->registerPortlet(array('browse','dashboard'), 'KTPFwInterceptionPortlet', 'ktplugins.KTPFramework.portlets.interceptionportlet', 'KTPInterceptionPortlet.php');
|
|
}
|
|
|
|
|
|
}
|
|
|
|
$oRegistry = &KTPluginRegistry::getSingleton();
|
|
$oRegistry->registerPlugin('KTPFramework', 'ktplugins.KTPFramework.plugin', __FILE__);
|
|
|
|
?>
|