1 <?php
3 class ServiceAddDialog extends plugin{
5 var $cli_summary = "This dialog is used to add services";
6 var $cli_description = "Some longer text\nfor help";
7 var $cli_parameters = array("config"=>"Config object" , "dn"=>"Object dn");
9 /* This plugin does not have any ocs */
10 var $objectclasses = array();
11 var $parent = NULL;
13 function ServiceAddDialog($config,$dn,$parent)
14 {
15 plugin::plugin($config);
16 $this->parent = $parent;
17 }
19 function execute()
20 {
21 $smarty = get_smarty();
22 $services = $this->parent->getAllUnusedServices();
23 natcasesort($services);
24 $smarty->assign("Services",$services);
25 return($smarty->fetch(get_template_path("ServiceAddDialog.tpl", TRUE,dirname(__FILE__))));
26 }
28 function check(){ return array();}
29 function save_object(){;}
30 function save(){}
32 }
33 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
34 ?>