ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjectReferenceCustomIconPresenter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilObjectReferenceCustomIconPresenter:
+ Collaboration diagram for ilObjectReferenceCustomIconPresenter:

Public Member Functions

 __construct (int $obj_id, ilObjectCustomIconFactory $factory)
 
 init ()
 Init ilObjectCustomIconPresenter If the target is invalid the icon instance creation is based on the reference object obj_id. More...
 
 exists ()
 
 getFullPath ()
 

Protected Member Functions

 lookupTargetId ()
 

Private Attributes

ilObjectCustomIconFactory $factory
 
ilObjectCustomIcon $icon = null
 
int $obj_id
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 21 of file class.ilObjectReferenceCustomIconPresenter.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjectReferenceCustomIconPresenter::__construct ( int  $obj_id,
ilObjectCustomIconFactory  $factory 
)

Definition at line 27 of file class.ilObjectReferenceCustomIconPresenter.php.

References $factory, and $obj_id.

Member Function Documentation

◆ exists()

ilObjectReferenceCustomIconPresenter::exists ( )

Implements ilObjectCustomIconPresenter.

Definition at line 44 of file class.ilObjectReferenceCustomIconPresenter.php.

44  : bool
45  {
46  return $this->icon->exists();
47  }

◆ getFullPath()

ilObjectReferenceCustomIconPresenter::getFullPath ( )

Implements ilObjectCustomIconPresenter.

Definition at line 49 of file class.ilObjectReferenceCustomIconPresenter.php.

49  : string
50  {
51  return $this->icon->getFullPath();
52  }

◆ init()

ilObjectReferenceCustomIconPresenter::init ( )

Init ilObjectCustomIconPresenter If the target is invalid the icon instance creation is based on the reference object obj_id.

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

References lookupTargetId().

38  : void
39  {
40  $target_obj_id = $this->lookupTargetId();
41  $this->icon = $this->factory->getByObjId($target_obj_id);
42  }
+ Here is the call graph for this function:

◆ lookupTargetId()

ilObjectReferenceCustomIconPresenter::lookupTargetId ( )
protected

Definition at line 54 of file class.ilObjectReferenceCustomIconPresenter.php.

References ilContainerReference\_lookupTargetId().

Referenced by init().

54  : int
55  {
56  return ilContainerReference::_lookupTargetId($this->obj_id);
57  }
static _lookupTargetId(int $a_obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $factory

ilObjectCustomIconFactory ilObjectReferenceCustomIconPresenter::$factory
private

Definition at line 23 of file class.ilObjectReferenceCustomIconPresenter.php.

Referenced by __construct().

◆ $icon

ilObjectCustomIcon ilObjectReferenceCustomIconPresenter::$icon = null
private

◆ $obj_id

int ilObjectReferenceCustomIconPresenter::$obj_id
private

Definition at line 25 of file class.ilObjectReferenceCustomIconPresenter.php.

Referenced by __construct().


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