You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.0 KiB

11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
  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. * @category Zend
  16. * @package Zend_Pdf
  17. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. * @version $Id$
  20. */
  21. /**
  22. * PDF reference object context
  23. * Reference context is defined by PDF parser and PDF Refernce table
  24. *
  25. * @category Zend
  26. * @package Zend_Pdf
  27. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  28. * @license http://framework.zend.com/license/new-bsd New BSD License
  29. */
  30. class Zend_Pdf_Element_Reference_Context
  31. {
  32. /**
  33. * PDF parser object.
  34. *
  35. * @var Zend_Pdf_StringParser
  36. */
  37. private $_stringParser;
  38. /**
  39. * Reference table
  40. *
  41. * @var Zend_Pdf_Element_Reference_Table
  42. */
  43. private $_refTable;
  44. /**
  45. * Object constructor
  46. *
  47. * @param Zend_Pdf_StringParser $parser
  48. * @param Zend_Pdf_Element_Reference_Table $refTable
  49. */
  50. public function __construct(Zend_Pdf_StringParser $parser,
  51. Zend_Pdf_Element_Reference_Table $refTable)
  52. {
  53. $this->_stringParser = $parser;
  54. $this->_refTable = $refTable;
  55. }
  56. /**
  57. * Context parser
  58. *
  59. * @return Zend_Pdf_StringParser
  60. */
  61. public function getParser()
  62. {
  63. return $this->_stringParser;
  64. }
  65. /**
  66. * Context reference table
  67. *
  68. * @return Zend_Pdf_Element_Reference_Table
  69. */
  70. public function getRefTable()
  71. {
  72. return $this->_refTable;
  73. }
  74. }