ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
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

ilLanguage $language
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

ilPageFormats::__construct ( ilLanguage  $language)

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

References $language, and ILIAS\UI\examples\Symbol\Glyph\Language\language().

34  {
35  $this->language = $language;
36  }
+ Here is the call graph for this function:

Member Function Documentation

◆ fetchPageFormats()

ilPageFormats::fetchPageFormats ( )

Retrieves predefined page formats.

Returns
array<string, array{name: string, value: string, width: string, height: string}>

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

References ILIAS\UI\examples\Symbol\Glyph\Language\language().

42  : array
43  {
44  return [
45  'a4' => [
46  'name' => $this->language->txt('certificate_a4'), // (297 mm x 210 mm)
47  'value' => 'a4',
48  'width' => '210mm',
49  'height' => '297mm'
50  ],
51  'a4landscape' => [
52  'name' => $this->language->txt('certificate_a4_landscape'), // (210 mm x 297 mm)',
53  'value' => 'a4landscape',
54  'width' => '297mm',
55  'height' => '210mm'
56  ],
57  'a5' => [
58  'name' => $this->language->txt('certificate_a5'), // (210 mm x 148.5 mm)
59  'value' => 'a5',
60  'width' => '148mm',
61  'height' => '210mm'
62  ],
63  'a5landscape' => [
64  'name' => $this->language->txt('certificate_a5_landscape'), // (148.5 mm x 210 mm)
65  'value' => 'a5landscape',
66  'width' => '210mm',
67  'height' => '148mm'
68  ],
69  'letter' => [
70  'name' => $this->language->txt('certificate_letter'), // (11 inch x 8.5 inch)
71  'value' => 'letter',
72  'width' => '8.5in',
73  'height' => '11in'
74  ],
75  'letterlandscape' => [
76  'name' => $this->language->txt('certificate_letter_landscape'), // (8.5 inch x 11 inch)
77  'value' => 'letterlandscape',
78  'width' => '11in',
79  'height' => '8.5in'
80  ],
81  'custom' => [
82  'name' => $this->language->txt('certificate_custom'),
83  'value' => 'custom',
84  'width' => '',
85  'height' => ''
86  ]
87  ];
88  }
+ Here is the call graph for this function:

Field Documentation

◆ $language

ilLanguage ilPageFormats::$language
private

Definition at line 31 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: