/pdf/code/trunk/administrator/components/com_artofpdf/libraries/artof/pdfcontent.php
PHP | 82 lines | 22 code | 9 blank | 51 comment | 0 complexity | 515cf94f7583ab448c42df4acddd7f57 MD5 | raw file
- <?php
- /**
- * @version $Id: pdfcontent.php 283 2010-09-22 06:10:28Z eddieajau $
- * @package NewLifeInIT
- * @subpackage com_artofpdf
- * @copyright Copyright 2010 New Life in IT Pty Ltd. All rights reserved.
- * @license GNU General Public License version 2 or later.
- * @link http://www.jentla.com
- * @author Andrew Eddie <andrew.eddie@newlifeinit.com>
- */
- // no direct access
- defined('_JEXEC') or die;
- /**
- * PDF Page
- *
- * @package NewLifeInIT
- * @subpackage com_artofpdf
- * @since 1.0
- */
- class JPdfContent extends JObject
- {
- /**
- * @var string The title of the page.
- * @since 1.0
- */
- public $title;
- /**
- * @var boolean Whether this forces a new PDF page.
- * @since 1.0
- */
- public $newpage;
- /**
- * @var string The text for the bookmark for this content.
- * @since 1.0
- */
- public $bookmark;
- /**
- * @var int The level of the bookmark in the TOC.
- * @since 1.0
- */
- public $level;
- /**
- * @var string The name of the sublayout to use to display the content.
- * @since 1.0
- */
- public $layout;
- /**
- * @var string The HTML pertaining to the content.
- * @since 1.0
- */
- public $html;
- /**
- * @var array An array of child content items.
- * @since 1.0
- */
- public $children;
- /**
- * Contructor.
- *
- * @return JPdfContent
- * @since 1.0
- */
- public function __construct($title = '', $level = 0, $html = '')
- {
- $this->title = $title;
- $this->newpage = true;
- $this->bookmark = $title;
- $this->level = $level;
- $this->layout = 'default';
- $this->html = $html;
- $this->children = array();
- }
- }