Ejemplo n.º 1
0
 public function save($opEndpoint, Association $assoc)
 {
     $data = unserialize(FileObject::getContents($this->file));
     $key = md5($opEndpoint);
     $data[$key] = array('opEndpoint' => $opEndpoint, 'assocHandle' => $assoc->getAssocHandle(), 'assocType' => $assoc->getAssocType(), 'sessionType' => $assoc->getSessionType(), 'secret' => $assoc->getSecret(), 'expires' => $assoc->getExpire());
     FileObject::putContents($this->file, serialize($data));
 }
Ejemplo n.º 2
0
Archivo: Sql.php Proyecto: k42b3/psx-ws
 public function save($opEndpoint, Association $assoc)
 {
     $now = new DateTime();
     $this->sql->insert($this->table, array('opEndpoint' => $opEndpoint, 'assocHandle' => $assoc->getAssocHandle(), 'assocType' => $assoc->getAssocType(), 'sessionType' => $assoc->getSessionType(), 'secret' => $assoc->getSecret(), 'expires' => $assoc->getExpire(), 'date' => $now->format(DateTime::SQL)));
 }
Ejemplo n.º 3
0
 public function save($opEndpoint, Association $assoc)
 {
     $key = md5($opEndpoint);
     $this->container[$key] = array('opEndpoint' => $opEndpoint, 'assocHandle' => $assoc->getAssocHandle(), 'assocType' => $assoc->getAssocType(), 'sessionType' => $assoc->getSessionType(), 'secret' => $assoc->getSecret(), 'expires' => $assoc->getExpire());
 }