ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilPageFormats Class Reference
+ Collaboration diagram for ilPageFormats:

Public Member Functions

 __construct (ilLanguage $language)
 
 fetchPageFormats ()
 Retrieves predefined page formats. More...
 

Data Fields

const DEFAULT_MARGIN_BODY_TOP = '0cm'
 
const DEFAULT_MARGIN_BODY_RIGHT = '2cm'
 
const DEFAULT_MARGIN_BODY_BOTTOM = '0cm'
 
const DEFAULT_MARGIN_BODY_LEFT = '2cm'
 

Private Attributes

 $language
 

Detailed Description

Author
Niels Theen nthee.nosp@m.n@da.nosp@m.tabay.nosp@m..de

Definition at line 7 of file class.ilPageFormats.php.

Constructor & Destructor Documentation

◆ __construct()

ilPageFormats::__construct ( ilLanguage  $language)

Definition at line 18 of file class.ilPageFormats.php.

References $language.

19  {
20  $this->language = $language;
21  }

Member Function Documentation

◆ fetchPageFormats()

ilPageFormats::fetchPageFormats ( )

Retrieves predefined page formats.

Returns
array Associative array containing available page formats

Definition at line 28 of file class.ilPageFormats.php.

28  : array
29  {
30  return array(
31  'a4' => array(
32  'name' => $this->language->txt('certificate_a4'), // (297 mm x 210 mm)
33  'value' => 'a4',
34  'width' => '210mm',
35  'height' => '297mm'
36  ),
37  'a4landscape' => array(
38  'name' => $this->language->txt('certificate_a4_landscape'), // (210 mm x 297 mm)',
39  'value' => 'a4landscape',
40  'width' => '297mm',
41  'height' => '210mm'
42  ),
43  'a5' => array(
44  'name' => $this->language->txt('certificate_a5'), // (210 mm x 148.5 mm)
45  'value' => 'a5',
46  'width' => '148mm',
47  'height' => '210mm'
48  ),
49  'a5landscape' => array(
50  'name' => $this->language->txt('certificate_a5_landscape'), // (148.5 mm x 210 mm)
51  'value' => 'a5landscape',
52  'width' => '210mm',
53  'height' => '148mm'
54  ),
55  'letter' => array(
56  'name' => $this->language->txt('certificate_letter'), // (11 inch x 8.5 inch)
57  'value' => 'letter',
58  'width' => '8.5in',
59  'height' => '11in'
60  ),
61  'letterlandscape' => array(
62  'name' => $this->language->txt('certificate_letter_landscape'), // (8.5 inch x 11 inch)
63  'value' => 'letterlandscape',
64  'width' => '11in',
65  'height' => '8.5in'
66  ),
67  'custom' => array(
68  'name' => $this->language->txt('certificate_custom'),
69  'value' => 'custom',
70  'width' => '',
71  'height' => ''
72  )
73  );
74  }

Field Documentation

◆ $language

ilPageFormats::$language
private

Definition at line 16 of file class.ilPageFormats.php.

Referenced by __construct().

◆ DEFAULT_MARGIN_BODY_BOTTOM

const ilPageFormats::DEFAULT_MARGIN_BODY_BOTTOM = '0cm'

◆ DEFAULT_MARGIN_BODY_LEFT

const ilPageFormats::DEFAULT_MARGIN_BODY_LEFT = '2cm'

◆ DEFAULT_MARGIN_BODY_RIGHT

const ilPageFormats::DEFAULT_MARGIN_BODY_RIGHT = '2cm'

◆ DEFAULT_MARGIN_BODY_TOP

const ilPageFormats::DEFAULT_MARGIN_BODY_TOP = '0cm'

The documentation for this class was generated from the following file: