public static function main($args)
 {
     $clientConnection = ClientConnectionImpl::newClient();
     $identifier = new ResourceIdentifierImpl("anyem.com", "anyemNameSpace", "a");
     $client = new ClientImpl($clientConnection, $identifier);
     for ($i = 0; $i < $args[0]; $i++) {
         $a = 0;
         /**
          * @var ResponseWrapperImpl
          */
         $responseWrapper = $client->get($a);
         $a = $responseWrapper->getResource()->getData();
         $client->put(++$a);
     }
     print "THESE DATA ARE PROVIDED FROM ANYEM SERVER\n";
     printf("after %s repetition, [a] variable contains : %s", $args[0], $a);
 }
Exemple #2
0
 public static function init()
 {
     if (self::$_initialized === TRUE) {
         return;
     }
     Logger::configure(__DIR__ . '/../config/log4php/config.xml');
     self::$_log = Logger::getLogger(__CLASS__);
     self::$_initialized = TRUE;
 }