ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
HelloWorld Class Reference

Some very basic component implementation. More...

+ Inheritance diagram for HelloWorld:
+ Collaboration diagram for HelloWorld:

Public Member Functions

 withGreeting (string $greeting)
 
 getGreeting ()
 
- Public Member Functions inherited from ILIAS\UI\Component\Component
 getCanonicalName ()
 Get the canonical name of the component. More...
 

Protected Attributes

 $greeting = 'Hello World!'
 

Detailed Description

Some very basic component implementation.

Definition at line 26 of file HelloWorld.php.

Member Function Documentation

◆ getGreeting()

HelloWorld::getGreeting ( )

Definition at line 39 of file HelloWorld.php.

References $greeting.

39  : string
40  {
41  return $this->greeting;
42  }

◆ withGreeting()

HelloWorld::withGreeting ( string  $greeting)

Definition at line 32 of file HelloWorld.php.

References $greeting.

32  : self
33  {
34  $clone = clone $this;
35  $clone->greeting = $greeting;
36  return $clone;
37  }

Field Documentation

◆ $greeting

HelloWorld::$greeting = 'Hello World!'
protected

Definition at line 30 of file HelloWorld.php.

Referenced by getGreeting(), and withGreeting().


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