Page MenuHomeIn-Portal Phabricator

custom
No OneTemporary

File Metadata

Created
Tue, Apr 29, 12:22 PM
Index: branches/1.1.x/custom/units/sections/custom_eh.php
===================================================================
--- branches/1.1.x/custom/units/sections/custom_eh.php (revision 12453)
+++ branches/1.1.x/custom/units/sections/custom_eh.php (revision 12454)
@@ -1,37 +1,39 @@
<?php
+ defined('FULL_PATH') or die('restricted access!');
+
/**
* Custom event handler class
*
*/
class CustomEventHandler extends kEventHandler {
/**
* Connection to database
*
* @var kDBConnection
* @access public
*/
var $Conn;
function CustomEventHandler()
{
- parent::kEventHandler();
+ parent::kBase();
$this->Conn =& $this->Application->GetADODBConnection();
}
/**
* [HOOK] Modify config stored in "categories_config.php" without extending CategoriesEventHandler class
*
* @param kEvent $event
*/
function OnModifyCategoriesConfig(&$event)
{
# get Fields configuration from /core/units/categories/categories_config.php
$fields = $this->Application->getUnitOption($event->MasterEvent->Prefix, 'Fields');
# set configuration fields
$this->Application->setUnitOption($event->MasterEvent->Prefix, 'Fields', $fields);
}
}
\ No newline at end of file
Property changes on: branches/1.1.x/custom/units/sections/custom_eh.php
___________________________________________________________________
Added: svn:mergeinfo
## -0,0 +0,2 ##
Merged /custom/branches/1.0.x/custom/units/sections/custom_eh.php:r12144-12452
Merged /custom/branches/RC/custom/units/sections/custom_eh.php:r12143

Event Timeline