ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilPageFormats.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8{
16 private $language;
17
19 {
20 $this->language = $language;
21 }
22
28 public function fetchPageFormats() : 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 }
75}
An exception for terminatinating execution or to throw for unit testing.
language handling
fetchPageFormats()
Retrieves predefined page formats.
__construct(ilLanguage $language)
const DEFAULT_MARGIN_BODY_BOTTOM
language()
Definition: language.php:2