roblib/php_listeners — pull request #9 by yqjiang (2013-06-03 18:25:38+00:00)
Title: Fedora connect static method using tuque

1 Edit FedoraConnectStaticMethod using tuque:
Using try catch to define if the fedora object is exist.
In the tuque file Respository.php There is an get object function
/**
* @see AbstractRepository::getObject()
* @todo perhaps we should check if an object exists instead of catching
* the exception
*/
public function getObject($id) {
$object = $this->cache->get($id);
if ($object !== FALSE) {
return $object;
}

try {
$object = new $this->objectClass($id, $this);
$this->cache->set($id, $object);
return $object;
}
catch (RepositoryException $e) {
throw $e;
}
}

so I catch RespositoryException if fedora object not exist. May be improved if tuque change

2. Remove TextData because it should be TestData. And it is already in test/

3. Edit ssl to verify_ssl