XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
LegacyRenderAssignMytrustdirname.class.php
1<?php
2
3if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ;
4
6{
7 function preFilter()
8 {
9 $this->mRoot->mDelegateManager->add('Legacy_RenderSystem.SetupXoopsTpl', array( &$this , 'hook' ) ) ;
10 }
11
12 function hook( &$xoopsTpl )
13 {
14 $root =& $this->mController->mRoot ;
15 $context =& $root->getContext();
16 $xoopsModule =& $context->mXoopsModule;
17 if( $xoopsModule ) {
18 @include XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->get('dirname').'/mytrustdirname.php' ;
19 if( ! empty( $mytrustdirname ) ) {
20 $xoopsTpl->assign( 'mytrustdirname' , $mytrustdirname ) ;
21 }
22 }
23 }
24}
preFilter()
[Abstract] Executes the logic, when the controller executes preFilter().