2
0

Context.php 2.1 KB

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