Recent activity
Subscribe to this feed
A comment on the problem "Docs Error" in vuzit:
Thanks for the reply. I wasn't aware of the update to the library. Is there one central place I can look for updates to all the Vuzit libraries (not just PHP), or a way to be notified of new releases? – Jeff Zienowicz, on November 06, 2009 17:20
Jeff Zienowicz marked one of BrentMatzelle's replies in vuzit as useful. BrentMatzelle replied to the problem "Docs Error".
Jeff Zienowicz reported a problem in vuzit on November 05, 2009 23:04:
Docs ErrorDocs for the PHP web services library indicate that one can use Vuzit_Service::signature() to generate a signature; the method is actually called getSignature().
Jeff Zienowicz marked one of BrentMatzelle's replies in vuzit as useful. BrentMatzelle replied to the problem "Minor errors in VuzitPHP Vuzit_Document class".
A comment on the problem "Minor errors in VuzitPHP Vuzit_Document class" in vuzit:
The above will not reliably give you the doc ID as a string. The problem is that the SimpleXML needs to be cast to a string before it's returned from upload(). The fix is to replace line 339 with:
$result->setId((string) $xml->web_id); – Jeff Zienowicz, on September 30, 2009 23:24
Jeff Zienowicz replied on September 30, 2009 22:53 to the problem "Minor errors in VuzitPHP Vuzit_Document class" in vuzit:
The fix for the first problem seems to be to change line 294 to:
if($fileType != null) {
The fix for the second problem seems to be to add this line before line 300:
$params['id'] = null;
The PHP notice isn't because of the SimpleXML element, it's because $params['id'] isn't set before calling postParams(). However, it still seems like getId() is intended to return a scalar, not an object. Currently, you can get the doc ID by doing something like this, assuming that $doc is an instance of Vuzit_Document:
$x = $doc->getId();
echo $x[0];
Jeff Zienowicz reported a problem in vuzit on September 29, 2009 23:14:
Minor errors in VuzitPHP Vuzit_Document classThere seem to be a couple of small problems with the VuzitPHP library (version 1.1.0), in the Vuzit_Document::upload() method.
The first one looks like a typo: there's a parameter "$fileType" that's defaulted to null, but when it's tested (on line 294), it's referred to as "$file_type". That causes a PHP notice to be thrown because $file_type is uninitialized.
Secondly, upon success the ID is set (on line 339) to $xml->web_id. However, that's a SimpleXML element object, not a scalar, so the getId() method will throw a notice (on PHP 5.2.10).
Loading Profile...
