‪TYPO3CMS  11.5
Image.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
22 class ‪Image
23 {
29  protected ‪$url;
30 
34  protected ‪$width;
35 
39  protected ‪$height;
40 
46  public function ‪__construct(‪$url, ‪$width, ‪$height)
47  {
48  $this->url = ‪$url;
49  $this->width = (int)‪$width;
50  $this->height = (int)‪$height;
51  }
52 
59  public function ‪getUrl($relativeToCurrentScript = false)
60  {
61  // TODO deprecate $relativeToCurrentScript here as well
62  return ‪$this->url;
63  }
64 
68  public function ‪getWidth()
69  {
70  return ‪$this->width;
71  }
72 
76  public function ‪getHeight()
77  {
78  return ‪$this->height;
79  }
80 }
‪TYPO3\CMS\Backend\Backend\Avatar\Image\getHeight
‪int getHeight()
Definition: Image.php:73
‪TYPO3\CMS\Backend\Backend\Avatar\Image\getUrl
‪string getUrl($relativeToCurrentScript=false)
Definition: Image.php:56
‪TYPO3\CMS\Backend\Backend\Avatar\Image\__construct
‪__construct($url, $width, $height)
Definition: Image.php:43
‪TYPO3\CMS\Backend\Backend\Avatar\Image\$url
‪string $url
Definition: Image.php:28
‪TYPO3\CMS\Backend\Backend\Avatar\Image\$width
‪int $width
Definition: Image.php:32
‪TYPO3\CMS\Backend\Backend\Avatar\Image\$height
‪int $height
Definition: Image.php:36
‪TYPO3\CMS\Backend\Backend\Avatar
Definition: Avatar.php:16
‪TYPO3\CMS\Backend\Backend\Avatar\Image\getWidth
‪int getWidth()
Definition: Image.php:65
‪TYPO3\CMS\Backend\Backend\Avatar\Image
Definition: Image.php:23