84 $this->_open = $isOpen;
108 abstract public function isBold();
116 abstract public function setIsBold($isBold);
124 abstract public function getColor();
158 return array(
'title' => $this->_title,
159 'open' => $this->_open,
160 'color' => $this->_color,
161 'italic' => $this->_italic,
162 'bold' => $this->_bold,
163 'target' => $this->_target);
201 #require_once 'Zend/Pdf/Exception.php'; 230 public static function create($param1, $param2 =
null)
232 #require_once 'Zend/Pdf/Outline/Created.php'; 233 if (is_string($param1)) {
234 if ($param2 !==
null && !($param2 instanceof
Zend_Pdf_Target || is_string($param2))) {
235 #require_once 'Zend/Pdf/Exception.php'; 236 throw new Zend_Pdf_Exception(
'Outline create method takes $title (string) and $target (Zend_Pdf_Target or string) or an array as an input');
240 'target' => $param2));
242 if (!is_array($param1) || $param2 !==
null) {
243 #require_once 'Zend/Pdf/Exception.php'; 244 throw new Zend_Pdf_Exception(
'Outline create method takes $title (string) and $destination (Zend_Pdf_Destination) or an array as an input');
262 foreach ($this->childOutlines as $child) {
263 $count += $child->openOutlinesCount();
286 SplObjectStorage $processedOutlines =
null);
300 return current($this->childOutlines);
310 return key($this->childOutlines);
318 return next($this->childOutlines);
326 return reset($this->childOutlines);
336 return current($this->childOutlines) !==
false;
346 return current($this->childOutlines);
356 return count($this->childOutlines) > 0;
371 return count($this->childOutlines);
static create($param1, $param2=null)
setOptions(array $options)
dumpOutline(Zend_Pdf_ElementFactory_Interface $factory, $updateNavigation, Zend_Pdf_Element $parent, Zend_Pdf_Element $prev=null, SplObjectStorage $processedOutlines=null)
setColor(Zend_Pdf_Color_Rgb $color)