From 870dad034eeb209237d8e1c90ca9f878eeb8ff4a Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 26 Jul 2010 15:46:44 +0000 Subject: [PATCH] Updated several service dialogs, fixed typos, string, html, post handling and more. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19124 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../services/gofax/class_goFaxServer.inc | 196 +++++++++--------- 1 file changed, 98 insertions(+), 98 deletions(-) diff --git a/gosa-plugins/gofax/admin/systems/services/gofax/class_goFaxServer.inc b/gosa-plugins/gofax/admin/systems/services/gofax/class_goFaxServer.inc index d659e716b..4dc6ff9f0 100644 --- a/gosa-plugins/gofax/admin/systems/services/gofax/class_goFaxServer.inc +++ b/gosa-plugins/gofax/admin/systems/services/gofax/class_goFaxServer.inc @@ -1,111 +1,111 @@ "Eins ist toll", "zwei" => "Zwei ist noch besser"); - - /* This plugin only writes its objectClass */ - var $objectclasses = array("goFaxServer"); - var $attributes = array("goFaxAdmin", "goFaxPassword"); - var $StatusFlag = "goFaxServerStatus"; - - /* This class can't be assigned twice so it conflicts with itsself */ - var $conflicts = array("goFaxServer"); - - var $DisplayName = ""; - var $dn = NULL; - var $acl; - - var $goFaxAdmin = ""; - var $goFaxPassword = ""; - var $goFaxServerStatus = ""; - var $cn = ""; - var $view_logged =FALSE; - - function goFaxServer(&$config,$dn) - { - goService::goService($config,$dn); - $this->DisplayName = _("FAX database"); - } - - - function execute() - { - $smarty = get_smarty(); - - if($this->is_account && !$this->view_logged){ - $this->view_logged = TRUE; - new log("view","server/".get_class($this),$this->dn); - } - /* Assign acls */ - $tmp = $this->plInfo(); - foreach($tmp['plProvidedAcls'] as $name => $translation ){ - $smarty->assign($name."ACL",$this->getacl($name)); + var $cli_summary = "This pluign is used within the ServerService Pluign \nand indicates that this server supports fax informations."; + var $cli_description = "Some longer text\nfor help"; + var $cli_parameters = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser"); + + /* This plugin only writes its objectClass */ + var $objectclasses = array("goFaxServer"); + var $attributes = array("goFaxAdmin", "goFaxPassword"); + var $StatusFlag = "goFaxServerStatus"; + + /* This class can't be assigned twice so it conflicts with itsself */ + var $conflicts = array("goFaxServer"); + + var $DisplayName = ""; + var $dn = NULL; + var $acl; + + var $goFaxAdmin = ""; + var $goFaxPassword = ""; + var $goFaxServerStatus = ""; + var $cn = ""; + var $view_logged =FALSE; + + function goFaxServer(&$config,$dn) + { + goService::goService($config,$dn); + $this->DisplayName = _("FAX database"); } - foreach($this->attributes as $attr){ - $smarty->assign($attr,$this->$attr); + + function execute() + { + $smarty = get_smarty(); + + if($this->is_account && !$this->view_logged){ + $this->view_logged = TRUE; + new log("view","server/".get_class($this),$this->dn); + } + + /* Assign acls */ + $tmp = $this->plInfo(); + foreach($tmp['plProvidedAcls'] as $name => $translation ){ + $smarty->assign($name."ACL",$this->getacl($name)); + } + + foreach($this->attributes as $attr){ + $smarty->assign($attr, set_post($this->$attr)); + } + return($smarty->fetch(get_template_path("goFaxServer.tpl",TRUE,dirname(__FILE__)))); } - return($smarty->fetch(get_template_path("goFaxServer.tpl",TRUE,dirname(__FILE__)))); - } - - - function getListEntry() - { - $fields = goService::getListEntry(); - $fields['Message'] = _("FAX database configuration"); - #$fields['AllowEdit'] = true; - return($fields); - } - - function check() - { - $message = plugin::check(); - if (empty($this->goFaxAdmin)){ - $message[]= msgPool::required(_("User")); + + + function getListEntry() + { + $fields = goService::getListEntry(); + $fields['Message'] = _("FAX database configuration"); +#$fields['AllowEdit'] = true; + return($fields); } - if (empty($this->goFaxPassword)){ - $message[]= msgPool::required(_("Password")); + + function check() + { + $message = plugin::check(); + if (empty($this->goFaxAdmin)){ + $message[]= msgPool::required(_("User")); + } + if (empty($this->goFaxPassword)){ + $message[]= msgPool::required(_("Password")); + } + return($message); } - return($message); - } - - - function save_object() - { - if(isset($_POST['goFaxServerPosted'])){ - plugin::save_object(); + + + function save_object() + { + if(isset($_POST['goFaxServerPosted'])){ + plugin::save_object(); + } + } + + /* Return plugin informations for acl handling */ + static function plInfo() + { + return (array( + "plShortName" => _("Fax database"), + "plDescription" => _("Fax database")." ("._("Services").")", + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 99, + "plSection" => array("administration"), + "plCategory" => array("server"), + "plRequirements"=> array( + 'ldapSchema' => array('goFaxServer' => '>=2.7'), + 'onFailureDisablePlugin' => array(get_class(),'faxreport','gofaxAccount') + ), + + "plProvidedAcls"=> array( + "goFaxAdmin" => _("Login name"), + "goFaxPassword" => _("Password"), + + "start" => _("Start"), + "stop" => _("Stop"), + "restart" => _("Restart")) + )); } - } - - /* Return plugin informations for acl handling */ - static function plInfo() - { - return (array( - "plShortName" => _("Fax database"), - "plDescription" => _("Fax database")." ("._("Services").")", - "plSelfModify" => FALSE, - "plDepends" => array(), - "plPriority" => 99, - "plSection" => array("administration"), - "plCategory" => array("server"), - "plRequirements"=> array( - 'ldapSchema' => array('goFaxServer' => '>=2.7'), - 'onFailureDisablePlugin' => array(get_class(),'faxreport','gofaxAccount') - ), - - "plProvidedAcls"=> array( - "goFaxAdmin" => _("Login name"), - "goFaxPassword" => _("Password"), - - "start" => _("Start"), - "stop" => _("Stop"), - "restart" => _("Restart")) - )); - } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> -- 2.30.2