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:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -16,14 +16,10 @@
* @package Zend_Pdf
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Element.php 16978 2009-07-22 19:59:40Z alexander $
* @version $Id: Element.php 18993 2009-11-15 17:09:16Z alexander $
*/
/** Zend_Pdf_Element_Object */
require_once 'Zend/Pdf/Element/Object.php';
/**
* PDF file element implementation
*
@ -131,8 +127,10 @@ abstract class Zend_Pdf_Element
public static function phpToPdf($input)
{
if (is_numeric($input)) {
require_once 'Zend/Pdf/Element/Numeric.php';
return new Zend_Pdf_Element_Numeric($input);
} else if (is_bool($input)) {
require_once 'Zend/Pdf/Element/Boolean.php';
return new Zend_Pdf_Element_Boolean($input);
} else if (is_array($input)) {
$pdfElementsArray = array();
@ -146,13 +144,15 @@ abstract class Zend_Pdf_Element
}
if ($isDictionary) {
require_once 'Zend/Pdf/Element/Dictionary.php';
return new Zend_Pdf_Element_Dictionary($pdfElementsArray);
} else {
require_once 'Zend/Pdf/Element/Array.php';
return new Zend_Pdf_Element_Array($pdfElementsArray);
}
} else {
require_once 'Zend/Pdf/Element/String.php';
return new Zend_Pdf_Element_String((string)$input);
}
}
}