Code

Moved class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 Nov 2010 06:11:38 +0000 (06:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 Nov 2010 06:11:38 +0000 (06:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20199 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc [deleted file]

diff --git a/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc b/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc
deleted file mode 100644 (file)
index d79cce7..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-
-class GOsaRegistration extends plugin
-{
-
-    static function registerGOsa($config, $uuid, $type, $userData = array())
-    {
-        echo "<br>Register GOsa.";
-        print_a(func_get_args());
-    }
-
-
-    static function getRegistrationType($config)
-    {
-        return($config->configRegistry->getPropertyValue('GOsaRegistration','registerStatus'));
-    }    
-
-
-    static function isRegistered($config, $uuid = NULL)
-    {
-        // Return cached values first.
-        if(GOsaRegistration::$isRegistered != NULL) return(GOsaRegistration::$isRegistered);
-
-        // Get the GOsa-instance-uuid and ask the backend if a registration of this uuid is known.
-        $instanceUUID = $config->getInstanceUUID();
-
-        echo $instanceUUID;
-    
-        $status = $config->configRegistry->getPropertyValue('GOsaRegistration','registerStatus');
-        if(!$uuid){
-            $uuid = $config->configRegistry->getPropertyValue('GOsaRegistration','registeredUUID');
-        }       
-
-        // Not yet registered 
-        if(!$status) return(FALSE);
-        
-        // Registered, but backend status not confirmed.
-        echo "<br>Validate registration";
-    }
-
-
-    public static function getRegisterStatusValues()
-    {
-        $ret= array();
-        $ret[''] = _("not registered");
-        $ret['anonymous'] = _("anonym");
-        $ret['registered'] = _("registered");
-        return($ret);
-    }
-
-   
-    public static function checkRegisteredUUID($message,$class,$name,$value, $type)
-    {
-        // Add check here later 
-        $valid = TRUE;
-
-        // Display the reason for failing this check.
-        if($message && !$valid){
-            msg_dialog::display(_("Warning"),
-                    sprintf(_("The given registration UUID '%s' specified for '%s:%s' is invalid!"),
-                        bold($value),bold($class),bold($name)),
-                    WARNING_DIALOG);
-        }
-
-        return($valid);
-    }
-
-    static function plInfo()
-    {
-        return (array(
-                    "plProperties"  => array(
-                        array(
-                            "name"          => "registerStatus",
-                            "type"          => "switch",
-                            "default"       => "",
-                            "defaults"      => "GOsaRegistration::getRegisterStatusValues",
-                            "description"   => _("The GOsa registration status."),
-                            "check"         => "",
-                            "migrate"       => "",
-                            "group"         => "registerGOsa",
-                            "mandatory"     => FALSE),
-                        array(
-                            "name"          => "registeredUUID",
-                            "type"          => "string",
-                            "default"       => "",
-                            "description"   => _("The UUID of the current GOsa installation. This UUID is used to identify the installation, once you've registered GOsa."),
-                            "check"         => "GOsaRegistration::checkRegisteredUUID",
-                            "migrate"       => "",
-                            "group"         => "registerGOsa",
-                            "mandatory"     => FALSE)
-                        )));
-    }
-}
-?>