Code

Updated Workstation service
[gosa.git] / gosa-plugins / goto / admin / systems / goto / class_gotoLpdEnabled.inc
1 <?php
3 class gotoLpdEnable extends plugin
4 {
5         public $parent;
7   protected $device   = "";
8   protected $port     = "";
9   protected $options  = "";
10   protected $writeonly= FALSE;
12   public    $attributes = array("device","port","options","writeonly");
14         public function __construct($config,$data,&$parent)
15         {
16                 plugin::plugin($config,NULL);
17     
18                 $this->parent = $parent;
19         }
21         public function execute()
22         {
23                 $smarty = get_smarty();
25     $smarty->assign("devices",array(
26           "USB"       => _("USB"),
27           "PARALLEL"  => _("Parallel"),
28           "SERIAL"    => _("Serial")));
30     foreach($this->attributes as $attr){
31       $smarty->assign($attr,$this->$attr);
32     }
33     foreach(array("devices","ports") as $attr){
34       $smarty->assign($attr,array());
35     }
37                 return($smarty->fetch(get_template_path("gotoLpdEnable.tpl",TRUE,dirname(__FILE__))));
38         }
40   public function save_object()
41   {
42     plugin::save_object();
43   }
46   /* Allow every action, check are made in class service not here.
47    */
48   public function acl_is_writeable($attr,$skip_write = FALSE)
49   { 
50     return(TRUE);
51   }
52 }
56 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
57 ?>