Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F859773
custom
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Apr 29, 12:22 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Thu, May 1, 12:22 PM (14 h, 23 m)
Engine
blob
Format
Raw Data
Handle
611515
Attached To
rMCUS Modules.Custom
custom
View Options
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
Log In to Comment