ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InternalDataService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Style\Content;
22
24
30{
31 public function __construct()
32 {
33 }
34
35 public function characteristic(
36 string $type,
37 string $characteristic,
38 bool $hide,
39 array $titles,
40 int $style_id = 0,
41 int $order_nr = 0,
42 bool $outdated = false
44 $c = new Characteristic(
45 $type,
46 $characteristic,
47 $hide,
48 $titles,
49 $order_nr,
50 $outdated
51 );
52 if ($style_id > 0) {
53 $c = $c->withStyleId($style_id);
54 }
55 return $c;
56 }
57
58 // image
59 public function image(
60 string $path,
61 DataSize $size,
62 int $width,
63 int $height
64 ): Image {
65 return new Image(
66 $path,
67 $size,
68 $width,
69 $height
70 );
71 }
72}
This class provides the data size with additional information to remove the work to calculate the siz...
Definition: DataSize.php:31
Characteristic (Class) of style.
image(string $path, DataSize $size, int $width, int $height)
characteristic(string $type, string $characteristic, bool $hide, array $titles, int $style_id=0, int $order_nr=0, bool $outdated=false)
$c
Definition: deliver.php:25
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$path
Definition: ltiservices.php:30