Merge branch '2013.10' into 2014.11
[tine20] / tine20 / Setup / Server / Cli.php
index 1d5af2f..5a1aa7b 100644 (file)
 class Setup_Server_Cli implements Tinebase_Server_Interface
 {
     /**
-     * handler for command line scripts
-     * 
-     * @return boolean
+     * (non-PHPdoc)
+     * @see Tinebase_Server_Interface::handle()
      */
-    public function handle()
+    public function handle(\Zend\Http\Request $request = null, $body = null)
     {
         try {
             $opts = new Zend_Console_Getopt(
@@ -52,7 +51,9 @@ class Setup_Server_Cli implements Tinebase_Server_Interface
                 'sync_passwords_from_ldap'  => 'Synchronize user passwords from ldap',
                 'egw14import'               => 'Import user and groups from egw14
                          Examples: 
-                          setup.php --egw14import /path/to/config.ini'
+                          setup.php --egw14import /path/to/config.ini',
+                'reset_demodata'            => 'reinstall applications and install Demodata (Needs Admin user)',
+                'updateAllImportExportDefinitions' => 'update ImportExport definitions for all applications'
             ));
             $opts->parse();
         } catch (Zend_Console_Getopt_Exception $e) {
@@ -70,6 +71,8 @@ class Setup_Server_Cli implements Tinebase_Server_Interface
             empty($opts->sync_passwords_from_ldap) && 
             empty($opts->egw14import) && 
             empty($opts->check_requirements) && 
+            empty($opts->reset_demodata) &&
+            empty($opts->updateAllImportExportDefinitions) &&
             empty($opts->create_admin) && 
             empty($opts->setconfig) && 
             empty($opts->getconfig)))