Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions
listprint_napdf Class Reference

This creates and manages an instance of the napdf class, and creates the PDF file. More...

List of all members.

Public Member Functions

 __construct ($in_http_vars)
 AssemblePDF ()
 OutputPDF ()

Static Public Member Functions

static sort_meeting_data_callback (&$in_a, &$in_b)
 This is a static callback function to be used for sorting the multi-dimensional meeting_data array. It uses the sort_order_keys array to determine the sort.

Public Attributes

 $weekday_names = null
 $pos = array ( 'start' => 1, 'end' => '', 'count' => 0, 'y' => 0, 'weekday' => 1 )
 $right_offset = 0
 $formats = 0
 $special_formats = ''
 $server = null

Private Member Functions

 DrawFormatPage ()
 DrawListPage ()
 Get_Special_Format_Text ($inFormats)
 RearrangeFormats ($inFormats)

Static Private Member Functions

static sort_cmp_formats ($a, $b)
static sort_formats ($in_format_data)
static sort_cmp ($a, $b)
static translate_time ($in_time_string)
static translate_duration ($in_time_string)

Detailed Description

This creates and manages an instance of the napdf class, and creates the PDF file.


Constructor & Destructor Documentation

listprint_napdf::__construct ( in_http_vars)

< The width, in inches, of each page

< The height, in inches, of each page.

< The measurement units (inches)

< The font we'll use

< The font size we'll use

< The orientation (portrait)

These are the sort keys, for sorting the meetings before display

< First, weekday

< Finally, the time the meeting starts

< Our week starts on Sunday (1)

These are the parameters that we send over to the root server, in order to get our meetings.

< Do a search

Parameters:
in_http_varsThe HTTP parameters we'd like to send to the server.

Member Function Documentation

listprint_napdf::AssemblePDF ( )

Implements IPrintableList.

listprint_napdf::DrawFormatPage ( ) [private]

Referenced by AssemblePDF().

listprint_napdf::DrawListPage ( ) [private]

Referenced by AssemblePDF().

listprint_napdf::Get_Special_Format_Text ( inFormats) [private]

Referenced by DrawListPage().

listprint_napdf::OutputPDF ( )

Implements IPrintableList.

listprint_napdf::RearrangeFormats ( inFormats) [private]
static listprint_napdf::sort_cmp ( a,
b 
) [static, private]
static listprint_napdf::sort_cmp_formats ( a,
b 
) [static, private]
static listprint_napdf::sort_formats ( in_format_data) [static, private]
Parameters:
in_format_dataAn array of format information

Referenced by DrawFormatPage().

static listprint_napdf::sort_meeting_data_callback ( &$  in_a,
&$  in_b 
) [static]

This is a static callback function to be used for sorting the multi-dimensional meeting_data array. It uses the sort_order_keys array to determine the sort.

Returns:
an integer. -1 if a < b, 0 if a == b, or 1 if a > b.
Parameters:
in_aThe first meeting array to compare
in_bThe second meeting array to compare
static listprint_napdf::translate_duration ( in_time_string) [static, private]
static listprint_napdf::translate_time ( in_time_string) [static, private]

Referenced by DrawListPage().


Member Data Documentation

listprint_napdf::$formats = 0

Referenced by DrawFormatPage().

listprint_napdf::$pos = array ( 'start' => 1, 'end' => '', 'count' => 0, 'y' => 0, 'weekday' => 1 )
listprint_napdf::$right_offset = 0
listprint_napdf::$server = null
listprint_napdf::$special_formats = ''
listprint_napdf::$weekday_names = null

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations