diff -r bd595ad770fc -r 1c2f13fd785c web/enmi/Zend/Pdf/Element/Boolean.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/enmi/Zend/Pdf/Element/Boolean.php Thu Jan 20 19:30:54 2011 +0100 @@ -0,0 +1,83 @@ +value = $val; + } + + + /** + * Return type of the element. + * + * @return integer + */ + public function getType() + { + return Zend_Pdf_Element::TYPE_BOOL; + } + + + /** + * Return object as string + * + * @param Zend_Pdf_Factory $factory + * @return string + */ + public function toString($factory = null) + { + return $this->value ? 'true' : 'false'; + } +}