printableList.class.php

Go to the documentation of this file.
00001 <?php
00002 /**
00003     \file printableList.class.php
00004     
00005     \brief This file contains the exported interface for subclasses
00006 */
00007 /**
00008     This is the interface, describing the exported functions.
00009 */
00010 require_once ( dirname ( __FILE__ ).'/napdf.class.php' );
00011 interface IPrintableList
00012 {
00013     function AssemblePDF ();
00014     function OutputPDF ();
00015 };
00016 
00017 /**
00018     This is the base class for use by specialized printing classes.
00019 */
00020 class printableList
00021 {
00022     var $page_x = 8.5;      ///< The width, in inches, of each page
00023     var $page_y = 11;       ///< The height, in inches, of each page.
00024     var $units = 'in';      ///< The measurement units (inches)
00025     var $orientation = 'P'; ///< The orientation (portrait)
00026     /// These are the sort keys, for sorting the meetings before display
00027     var $sort_keys = array ();
00028     /// These are the parameters that we send over to the root server, in order to get our meetings.
00029     var $out_http_vars = array ();
00030     /// This contains the instance of napdf that we use to extract our data from the server, and to hold onto it.
00031     var $napdf_instance = null;
00032     var $font = 'Times';    ///< The font we'll use
00033     var $font_size = 9;     ///< The font size we'll use
00034     
00035     /**
00036         \brief  The constructor for this class does a lot. It creates the instance of the napdf class, gets the data from the
00037         server, then sorts it. When the constructor is done, the data is ready to be assembled into a PDF.
00038         
00039         If the napdf object does not successfully get data from the server, then it is set to null.
00040     */
00041     protected function __construct ( $in_http_vars, ///< The HTTP parameters we'd like to send to the server.
00042                                      $in_lang_search = null ///< An array of language enums, used to extract the correct format codes.
00043                                     )
00044     {
00045         $this->napdf_instance =& napdf::MakeNAPDF ( $this->page_x, $this->page_y, $this->out_http_vars, $this->units, $this->orientation, $this->sort_keys, $in_lang_search );
00046         if ( !($this->napdf_instance instanceof napdf) )
00047             {
00048             $this->napdf_instance = null;
00049             }
00050     }
00051 };
00052 ?>
 All Data Structures Files Functions Variables Enumerations