Image.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @package Zend_Pdf
  16. * @subpackage FileParser
  17. * @copyright Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. */
  20. /**
  21. * @see Zend_Pdf_FileParser
  22. */
  23. require_once 'Zend/Pdf/FileParser.php';
  24. /**
  25. * FileParser for Zend_Pdf_Image subclasses.
  26. *
  27. * @package Zend_Pdf
  28. * @subpackage FileParser
  29. * @copyright Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)
  30. * @license http://framework.zend.com/license/new-bsd New BSD License
  31. */
  32. abstract class Zend_Pdf_FileParser_Image extends Zend_Pdf_FileParser
  33. {
  34. /**
  35. * Image Type
  36. *
  37. * @var integer
  38. */
  39. protected $imageType;
  40. /**
  41. * Object constructor.
  42. *
  43. * Validates the data source and enables debug logging if so configured.
  44. *
  45. * @param Zend_Pdf_FileParserDataSource $dataSource
  46. * @throws Zend_Pdf_Exception
  47. */
  48. public function __construct(Zend_Pdf_FileParserDataSource $dataSource)
  49. {
  50. parent::__construct($dataSource);
  51. $this->imageType = Zend_Pdf_Image::TYPE_UNKNOWN;
  52. }
  53. }