Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions
booklet_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 ($in_left)
 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

booklet_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

booklet_napdf::AssemblePDF ( )

Implements IPrintableList.

booklet_napdf::DrawFormatPage ( ) [private]

Referenced by AssemblePDF().

booklet_napdf::DrawListPage ( in_left) [private]
Parameters:
in_leftIf this is true, it is the left side. If false, it is the right side column.

Referenced by AssemblePDF().

booklet_napdf::Get_Special_Format_Text ( inFormats) [private]

Referenced by DrawListPage().

booklet_napdf::OutputPDF ( )

Implements IPrintableList.

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

Referenced by DrawFormatPage().

static booklet_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 booklet_napdf::translate_duration ( in_time_string) [static, private]
static booklet_napdf::translate_time ( in_time_string) [static, private]

Referenced by DrawListPage().


Member Data Documentation

booklet_napdf::$formats = 0

Referenced by DrawFormatPage().

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

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