ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalDataService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace 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
43  ): Characteristic {
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 }
characteristic(string $type, string $characteristic, bool $hide, array $titles, int $style_id=0, int $order_nr=0, bool $outdated=false)
This class provides the data size with additional information to remove the work to calculate the siz...
Definition: DataSize.php:30
$c
Definition: deliver.php:25
$path
Definition: ltiservices.php:29
image(string $path, DataSize $size, int $width, int $height)
Characteristic (Class) of style.