mirror of
https://github.com/Combodo/iTop.git
synced 2026-09-29 21:09:10 +02:00
Modularization of the portal. The entry points for portals is now defined in XML, and thus can be altered by an extension.
SVN:trunk[3509]
This commit is contained in:
@@ -171,6 +171,40 @@ class MFDeltaModule extends MFModule
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MFDeltaModule: an optional module, made of a single file
|
||||
* @package ModelFactory
|
||||
*/
|
||||
class MFCoreModule extends MFModule
|
||||
{
|
||||
public function __construct($sName, $sLabel, $sDeltaFile)
|
||||
{
|
||||
$this->sId = $sName;
|
||||
|
||||
$this->sName = $sName;
|
||||
$this->sVersion = '1.0';
|
||||
|
||||
$this->sRootDir = '';
|
||||
$this->sLabel = $sLabel;
|
||||
$this->aDataModels = array($sDeltaFile);
|
||||
}
|
||||
|
||||
public function GetRootDir()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
public function GetModuleDir()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
public function GetDictionaryFiles()
|
||||
{
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ModelFactory: the class that manages the in-memory representation of the XML MetaModel
|
||||
* @package ModelFactory
|
||||
|
||||
Reference in New Issue
Block a user