PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/pdf/code/trunk/administrator/components/com_artofpdf/libraries/artof/pdfcontent.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 82 lines | 22 code | 9 blank | 51 comment | 0 complexity | 515cf94f7583ab448c42df4acddd7f57 MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: pdfcontent.php 283 2010-09-22 06:10:28Z eddieajau $
  4. * @package NewLifeInIT
  5. * @subpackage com_artofpdf
  6. * @copyright Copyright 2010 New Life in IT Pty Ltd. All rights reserved.
  7. * @license GNU General Public License version 2 or later.
  8. * @link http://www.jentla.com
  9. * @author Andrew Eddie <andrew.eddie@newlifeinit.com>
  10. */
  11. // no direct access
  12. defined('_JEXEC') or die;
  13. /**
  14. * PDF Page
  15. *
  16. * @package NewLifeInIT
  17. * @subpackage com_artofpdf
  18. * @since 1.0
  19. */
  20. class JPdfContent extends JObject
  21. {
  22. /**
  23. * @var string The title of the page.
  24. * @since 1.0
  25. */
  26. public $title;
  27. /**
  28. * @var boolean Whether this forces a new PDF page.
  29. * @since 1.0
  30. */
  31. public $newpage;
  32. /**
  33. * @var string The text for the bookmark for this content.
  34. * @since 1.0
  35. */
  36. public $bookmark;
  37. /**
  38. * @var int The level of the bookmark in the TOC.
  39. * @since 1.0
  40. */
  41. public $level;
  42. /**
  43. * @var string The name of the sublayout to use to display the content.
  44. * @since 1.0
  45. */
  46. public $layout;
  47. /**
  48. * @var string The HTML pertaining to the content.
  49. * @since 1.0
  50. */
  51. public $html;
  52. /**
  53. * @var array An array of child content items.
  54. * @since 1.0
  55. */
  56. public $children;
  57. /**
  58. * Contructor.
  59. *
  60. * @return JPdfContent
  61. * @since 1.0
  62. */
  63. public function __construct($title = '', $level = 0, $html = '')
  64. {
  65. $this->title = $title;
  66. $this->newpage = true;
  67. $this->bookmark = $title;
  68. $this->level = $level;
  69. $this->layout = 'default';
  70. $this->html = $html;
  71. $this->children = array();
  72. }
  73. }