ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ILIAS\Style\Content\InternalRepoService Class Reference
+ Collaboration diagram for ILIAS\Style\Content\InternalRepoService:

Public Member Functions

 __construct (InternalDataService $data_factory, ilDBInterface $db, Filesystem\Filesystem $web_files, FileUpload $upload)
 
 characteristic ()
 
 characteristicCopyPaste ()
 
 color ()
 
 image ()
 
 repositoryContainer ()
 
 object ()
 Objects without ref id (e.g. More...
 
 style ()
 Objects without ref id (e.g. More...
 

Protected Attributes

ilDBInterface $db
 
InternalDataService $data_factory
 
ColorDBRepo $color_repo
 
CharacteristicDBRepo $characteristic_repo
 
CharacteristicCopyPasteSessionRepo $characteristic_copy_paste_repo
 
ImageFileRepo $image_repo
 
FileUpload $upload
 

Detailed Description

Definition at line 29 of file class.InternalRepoService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Style\Content\InternalRepoService::__construct ( InternalDataService  $data_factory,
ilDBInterface  $db,
Filesystem\Filesystem  $web_files,
FileUpload  $upload 
)

Definition at line 41 of file class.InternalRepoService.php.

References ILIAS\Repository\InternalRepoService\$db, and ILIAS\Repository\upload().

46  {
47  $this->db = $db;
48  $this->data_factory = $data_factory;
49  $this->upload = $upload;
50 
51  $this->color_repo = new ColorDBRepo(
52  $db,
53  $data_factory
54  );
55  $this->characteristic_repo = new CharacteristicDBRepo(
56  $db,
57  $data_factory
58  );
59  $this->image_repo = new ImageFileRepo(
60  $data_factory,
61  $web_files,
62  $upload,
63  $this->irss()
64  );
65  $this->characteristic_copy_paste_repo =
66  new CharacteristicCopyPasteSessionRepo();
67  }
+ Here is the call graph for this function:

Member Function Documentation

◆ characteristic()

ILIAS\Style\Content\InternalRepoService::characteristic ( )

Definition at line 69 of file class.InternalRepoService.php.

70  : CharacteristicDBRepo {
71  return $this->characteristic_repo;
72  }

◆ characteristicCopyPaste()

ILIAS\Style\Content\InternalRepoService::characteristicCopyPaste ( )

Definition at line 74 of file class.InternalRepoService.php.

75  : CharacteristicCopyPasteSessionRepo {
76  return $this->characteristic_copy_paste_repo;
77  }

◆ color()

ILIAS\Style\Content\InternalRepoService::color ( )

Definition at line 79 of file class.InternalRepoService.php.

79  : ColorDBRepo
80  {
81  return $this->color_repo;
82  }

◆ image()

ILIAS\Style\Content\InternalRepoService::image ( )

Definition at line 84 of file class.InternalRepoService.php.

84  : ImageFileRepo
85  {
86  return $this->image_repo;
87  }

◆ object()

ILIAS\Style\Content\InternalRepoService::object ( )

Objects without ref id (e.g.

portfolios) can use the manager with a ref_id of 0, e.g. to get selectable styles

Definition at line 100 of file class.InternalRepoService.php.

Referenced by ILIAS\Style\Content\Object\ObjectManager\__construct().

100  : Object\ObjectDBRepository
101  {
102  return new Object\ObjectDBRepository(
103  $this->db
104  );
105  }
+ Here is the caller graph for this function:

◆ repositoryContainer()

ILIAS\Style\Content\InternalRepoService::repositoryContainer ( )

Definition at line 89 of file class.InternalRepoService.php.

Referenced by ILIAS\Style\Content\Container\ContainerManager\__construct(), and ILIAS\Style\Content\Object\ObjectManager\__construct().

89  : Container\ContainerDBRepository
90  {
91  return new Container\ContainerDBRepository(
92  $this->db
93  );
94  }
+ Here is the caller graph for this function:

◆ style()

ILIAS\Style\Content\InternalRepoService::style ( )

Objects without ref id (e.g.

portfolios) can use the manager with a ref_id of 0, e.g. to get selectable styles

Definition at line 111 of file class.InternalRepoService.php.

Referenced by ILIAS\Style\Content\Style\StyleManager\__construct().

111  : StyleRepo
112  {
113  return new StyleRepo(
114  $this->db,
115  $this->data_factory,
116  $this->irss()
117  );
118  }
+ Here is the caller graph for this function:

Field Documentation

◆ $characteristic_copy_paste_repo

CharacteristicCopyPasteSessionRepo ILIAS\Style\Content\InternalRepoService::$characteristic_copy_paste_repo
protected

Definition at line 37 of file class.InternalRepoService.php.

◆ $characteristic_repo

CharacteristicDBRepo ILIAS\Style\Content\InternalRepoService::$characteristic_repo
protected

Definition at line 36 of file class.InternalRepoService.php.

◆ $color_repo

ColorDBRepo ILIAS\Style\Content\InternalRepoService::$color_repo
protected

Definition at line 35 of file class.InternalRepoService.php.

◆ $data_factory

InternalDataService ILIAS\Style\Content\InternalRepoService::$data_factory
protected

Definition at line 34 of file class.InternalRepoService.php.

◆ $db

ilDBInterface ILIAS\Style\Content\InternalRepoService::$db
protected

Definition at line 33 of file class.InternalRepoService.php.

◆ $image_repo

ImageFileRepo ILIAS\Style\Content\InternalRepoService::$image_repo
protected

Definition at line 38 of file class.InternalRepoService.php.

◆ $upload

FileUpload ILIAS\Style\Content\InternalRepoService::$upload
protected

Definition at line 39 of file class.InternalRepoService.php.


The documentation for this class was generated from the following file: