ILIAS  release_8 Revision v8.24
ilICalItem Class Reference

Abstract base class for all ical items (Component, Parameter and Value) More...

+ Inheritance diagram for ilICalItem:
+ Collaboration diagram for ilICalItem:

Public Member Functions

 __construct (string $a_name, string $a_value='')
 
 setValue (string $a_value)
 
 getValue ()
 
 getItems ()
 
 getName ()
 
 getItemsByName (string $a_name, bool $a_recursive=true)
 
 addItem (ilICalItem $a_item)
 

Protected Attributes

string $name = ''
 
string $value = ''
 
array $items = []
 

Detailed Description

Abstract base class for all ical items (Component, Parameter and Value)

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 31 of file class.ilICalItem.php.

Constructor & Destructor Documentation

◆ __construct()

ilICalItem::__construct ( string  $a_name,
string  $a_value = '' 
)

Reimplemented in ilICalValue, ilICalParameter, and ilICalProperty.

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

38 {
39 $this->name = $a_name;
40 $this->value = $a_value;
41 }

Member Function Documentation

◆ addItem()

ilICalItem::addItem ( ilICalItem  $a_item)

Definition at line 68 of file class.ilICalItem.php.

68 : void
69 {
70 $this->items[] = $a_item;
71 }

◆ getItems()

ilICalItem::getItems ( )

Definition at line 53 of file class.ilICalItem.php.

53 : array
54 {
55 return $this->items;
56 }

References $items.

Referenced by ilICalComponent\getItemsByName(), and ilICalProperty\getItemsByName().

+ Here is the caller graph for this function:

◆ getItemsByName()

ilICalItem::getItemsByName ( string  $a_name,
bool  $a_recursive = true 
)

Reimplemented in ilICalComponent, and ilICalProperty.

Definition at line 63 of file class.ilICalItem.php.

63 : array
64 {
65 return [];
66 }

◆ getName()

ilICalItem::getName ( )

Definition at line 58 of file class.ilICalItem.php.

58 : string
59 {
60 return $this->name;
61 }

References $name.

◆ getValue()

ilICalItem::getValue ( )

Definition at line 48 of file class.ilICalItem.php.

48 : string
49 {
50 return trim($this->value);
51 }

◆ setValue()

ilICalItem::setValue ( string  $a_value)

Definition at line 43 of file class.ilICalItem.php.

43 : void
44 {
45 $this->value = $a_value;
46 }

Field Documentation

◆ $items

array ilICalItem::$items = []
protected

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

Referenced by getItems().

◆ $name

string ilICalItem::$name = ''
protected

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

Referenced by getName().

◆ $value

string ilICalItem::$value = ''
protected

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


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