/** * Return a string representation of this object. * * @return string a string describing this object. This is mostly useful * for debugging. */ public function __toString() { $str = Pel::fmt("Dumping TIFF data...\n"); if ($this->ifd != null) { $str .= $this->ifd->__toString(); } return $str; }
/** * Turn this directory into text. * * @return string information about the directory, mainly for * debugging. */ function __toString() { $str = Pel::fmt("Dumping IFD %s with %d entries...\n", $this->getName(), count($this->entries)); foreach ($this->entries as $entry) { $str .= $entry->__toString(); } $str .= Pel::fmt("Dumping %d sub IFDs...\n", count($this->sub)); foreach ($this->sub as $type => $ifd) { $str .= $ifd->__toString(); } if ($this->next != null) { $str .= $this->next->__toString(); } return $str; }