‪TYPO3CMS  ‪main
KauderwelschService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
26 {
32  public function ‪getLoremIpsum(): string
33  {
34  return 'Bacon ipsum dolor sit strong amet capicola jerky pork chop rump shoulder shank. Shankle strip steak pig salami link.';
35  }
36 
42  public function ‪getLoremIpsumHtml(): string
43  {
44  return 'Bacon ipsum dolor sit <strong>strong amet capicola</strong> jerky pork chop rump shoulder shank. Shankle strip <a href="#">steak pig salami link</a>. Leberkas shoulder ham hock cow salami bacon <em>em pork pork</em> chop, jerky pork belly drumstick ham. Tri-tip strip steak sirloin prosciutto pastrami. Corned beef venison tenderloin, biltong meatball pork tongue short ribs jowl cow hamburger strip steak. Doner turducken jerky short loin chuck filet mignon.';
45  }
46 
52  public function ‪getWord(): string
53  {
54  return 'lipsum';
55  }
56 
60  public function ‪getPassword(): string
61  {
62  return 'somePassword1!';
63  }
64 
70  public function ‪getInteger(): int
71  {
72  return 42;
73  }
74 
80  public function ‪getDateTimestamp(): int
81  {
82  // 1960-1-1 00:00:00 GMT
83  return -315619200;
84  }
85 
91  public function ‪getDatetimeTimestamp(): int
92  {
93  // 1960-1-1 05:23:42 GMT
94  return -315599778;
95  }
96 
102  public function ‪getDateString(): string
103  {
104  // GMT
105  return '1960-01-01';
106  }
107 
113  public function ‪getDatetimeString(): string
114  {
115  // GMT
116  return '1960-01-01 05:42:23';
117  }
118 
124  public function ‪getFloat(): float
125  {
126  return 5.23;
127  }
128 
134  public function ‪getLink(): string
135  {
136  return 'https://typo3.org';
137  }
138 
144  public function ‪getEmail(): string
145  {
146  return 'foo@example.com';
147  }
148 
154  public function ‪getHexColor(): string
155  {
156  return '#FF8700';
157  }
158 }
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getDateString
‪string getDateString()
Definition: KauderwelschService.php:102
‪TYPO3\CMS\Styleguide\Service\KauderwelschService
Definition: KauderwelschService.php:26
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getDatetimeTimestamp
‪int getDatetimeTimestamp()
Definition: KauderwelschService.php:91
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getPassword
‪getPassword()
Definition: KauderwelschService.php:60
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getFloat
‪float getFloat()
Definition: KauderwelschService.php:124
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getDatetimeString
‪string getDatetimeString()
Definition: KauderwelschService.php:113
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getEmail
‪string getEmail()
Definition: KauderwelschService.php:144
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getLoremIpsum
‪string getLoremIpsum()
Definition: KauderwelschService.php:32
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getHexColor
‪string getHexColor()
Definition: KauderwelschService.php:154
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getWord
‪string getWord()
Definition: KauderwelschService.php:52
‪TYPO3\CMS\Styleguide\Service
Definition: KauderwelschService.php:18
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getLink
‪string getLink()
Definition: KauderwelschService.php:134
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getInteger
‪int getInteger()
Definition: KauderwelschService.php:70
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getDateTimestamp
‪int getDateTimestamp()
Definition: KauderwelschService.php:80
‪TYPO3\CMS\Styleguide\Service\KauderwelschService\getLoremIpsumHtml
‪string getLoremIpsumHtml()
Definition: KauderwelschService.php:42