Ejemplo n.º 1
0
 } else {
     if ($args[0] == "--get-node-configuration") {
         echo $am->getNodeConfiguration($args[1], $args[2], $args[3]);
     } else {
         if ($args[0] == "--fetch-items") {
             echo $am->fetchItems($args[1], $args[2], $args[3]);
         } else {
             if ($args[0] == "--register-hook") {
                 if (count($args) > 2) {
                     echo $am->registerHook($args[1], $args[2]);
                 } else {
                     echo $am->registerHook($args[1]);
                 }
             } else {
                 if ($args[0] == "--unregister-hook") {
                     echo $am->unregisterHook();
                 } else {
                     if ($args[0] == "--hook-info") {
                         echo $am->getHookInfo();
                     } else {
                         if ($args[0] == "--register-repository") {
                             if (count($args) > 2) {
                                 echo $am->registerRepository($args[1], $args[2]);
                             } else {
                                 echo $am->registerRepository($args[1]);
                             }
                         } else {
                             if ($args[0] == "--unregister-repository") {
                                 echo $am->unregisterRepository();
                             } else {
                                 if ($args[0] == "--repository-info") {