Exemple #1
0
 public function save()
 {
     $arguments = array();
     foreach ($this->getMapping() as $key => $value) {
         $arguments[$key] = $this->{$value};
     }
     if (!empty($arguments) && $this->getClient()) {
         ResponseValidator::validate('session-set', $this->getClient()->call('session-set', $arguments));
     }
 }
 /**
  * @param string $method
  * @param array  $arguments
  */
 protected function call($method, $arguments)
 {
     if (!($client = $this->getClient())) {
         return;
     }
     ResponseValidator::validate($method, $client->call($method, $arguments));
 }
 /**
  * @param string $method
  * @param array  $arguments
  */
 protected function call($method, $arguments)
 {
     if ($this->client) {
         ResponseValidator::validate($method, $this->client->call($method, $arguments));
     }
 }