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:
yllen
2011-09-08 09:51:40 +00:00
parent 6188cf8ad0
commit acf0490727
6 changed files with 90 additions and 81 deletions

View File

@ -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;
}
}
?>