Context.php 2.1 KB

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