Extended Property for Tasks

This commit is contained in:
Hugo Loza
2011-01-18 22:14:46 +00:00
parent 8b3663df5f
commit 324bb69a6a
4 changed files with 112 additions and 5 deletions

View File

@@ -297,6 +297,26 @@ class caseSchedulerPlugin {
$this->sActionGetFields = $sActionGetFields;
}
}
class taskExtendedProperty {
var $sNamespace;
var $sPage;
var $sName;
var $sIcon;
/**
* This function is the constructor of the taskExtendedProperty class
* @param string $sNamespace
* @param string $sPage
* @param string $sName
* @param string $sIcon
* @return void
*/
function __construct( $sNamespace, $sPage, $sName, $sIcon ) {
$this->sNamespace = $sNamespace;
$this->sPage = $sPage;
$this->sName = $sName;
$this->sIcon = $sIcon;
}
}
class PMPlugin {
var $sNamespace;
@@ -516,4 +536,13 @@ class PMPlugin {
$oPluginRegistry =& PMPluginRegistry::getSingleton();
$oPluginRegistry->registerCaseSchedulerPlugin( $this->sNamespace, $sActionId, $sActionForm, $sActionSave, $sActionExecute, $sActionGetFields );
}
/**
* With this function we can register a Dashboard Page for Cases Dashboard
* @param string $sPage
* @return void
*/
function registerTaskExtendedProperty( $sPage, $sName, $sIcon="") {
$oPluginRegistry =& PMPluginRegistry::getSingleton();
$oPluginRegistry->registerTaskExtendedProperty ( $this->sNamespace, $sPage, $sName, $sIcon );
}
}