public function PDDocument::getResourceInfo in GlobalLink Connect for Drupal 7.7
* Internal method used by the UCF API * *
Return value
ResourceInfo object * @throws IOException
File
- gl_ws/
glc/ model/ Document.inc.php, line 110
Class
Code
public function getResourceInfo() {
$resourceInfo = new ResourceInfo();
if (isset($this->encoding)) {
$resourceInfo->encoding = $this->encoding;
}
else {
$resourceInfo->encoding = "UTF-8";
}
$resourceInfo->size = strlen($this->data);
$resourceInfo->classifier = $this->fileformat;
$resourceInfo->name = $this->name;
if (isset($this->clientIdentifier)) {
$resourceInfo->clientIdentifier = $this->clientIdentifier;
}
return $resourceInfo;
}