import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -20,9 +20,6 @@
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
/** Zend_Pdf_ElementFactory */
|
||||
require_once 'Zend/Pdf/ElementFactory.php';
|
||||
|
||||
|
||||
/**
|
||||
* Abstract PDF outline representation class
|
||||
@ -170,7 +167,7 @@ abstract class Zend_Pdf_Outline implements RecursiveIterator, Countable
|
||||
* Set outline options
|
||||
*
|
||||
* @param array $options
|
||||
* @return Zend_Pdf_Actions
|
||||
* @return Zend_Pdf_Action
|
||||
* @throws Zend_Pdf_Exception
|
||||
*/
|
||||
public function setOptions(array $options)
|
||||
@ -232,13 +229,13 @@ abstract class Zend_Pdf_Outline implements RecursiveIterator, Countable
|
||||
*/
|
||||
public static function create($param1, $param2 = null)
|
||||
{
|
||||
require_once 'Zend/Pdf/Outline/Created.php';
|
||||
if (is_string($param1)) {
|
||||
if ($param2 !== null && !($param2 instanceof Zend_Pdf_Target || is_string($param2))) {
|
||||
require_once 'Zend/Pdf/Exception.php';
|
||||
throw new Zend_Pdf_Exception('Outline create method takes $title (string) and $target (Zend_Pdf_Target or string) or an array as an input');
|
||||
}
|
||||
|
||||
require_once 'Zend/Pdf/Outline/Created.php';
|
||||
return new Zend_Pdf_Outline_Created(array('title' => $param1,
|
||||
'target' => $param2));
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user