mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-07-01 16:18:41 +02:00
CS + call functions
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@172 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
@ -47,21 +47,23 @@ if (!defined('GLPI_ROOT')) {
|
||||
class PluginExampleRuleTest extends Rule {
|
||||
|
||||
// From Rule
|
||||
public $right='rule_ocs';
|
||||
public $can_sort=true;
|
||||
public $right = 'rule_ocs';
|
||||
public $can_sort = true;
|
||||
|
||||
|
||||
function getTitle() {
|
||||
global $LANG;
|
||||
|
||||
return 'test';
|
||||
}
|
||||
|
||||
|
||||
function maxActionsCount() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
function getCriterias() {
|
||||
global $LANG;
|
||||
|
||||
$criterias = array();
|
||||
$criterias['name']['field'] = 'name';
|
||||
$criterias['name']['name'] = $LANG['help'][31];
|
||||
@ -70,8 +72,10 @@ class PluginExampleRuleTest extends Rule {
|
||||
return $criterias;
|
||||
}
|
||||
|
||||
|
||||
function getActions() {
|
||||
global $LANG;
|
||||
|
||||
$actions = array();
|
||||
$actions['softwarecategories_id']['name'] = $LANG['common'][36];
|
||||
$actions['softwarecategories_id']['type'] = 'dropdown';
|
||||
@ -79,5 +83,4 @@ class PluginExampleRuleTest extends Rule {
|
||||
return $actions;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user