ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 25 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 31 of file class.ilICalItem.php.

32 {
33 $this->name = $a_name;
34 $this->value = $a_value;
35 }

Member Function Documentation

◆ addItem()

ilICalItem::addItem ( ilICalItem  $a_item)

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

62 : void
63 {
64 $this->items[] = $a_item;
65 }

◆ getItems()

ilICalItem::getItems ( )

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

47 : array
48 {
49 return $this->items;
50 }

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 57 of file class.ilICalItem.php.

57 : array
58 {
59 return [];
60 }

◆ getName()

ilICalItem::getName ( )

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

52 : string
53 {
54 return $this->name;
55 }

References $name.

◆ getValue()

ilICalItem::getValue ( )

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

42 : string
43 {
44 return trim($this->value);
45 }

◆ setValue()

ilICalItem::setValue ( string  $a_value)

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

37 : void
38 {
39 $this->value = $a_value;
40 }

Field Documentation

◆ $items

array ilICalItem::$items = []
protected

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

Referenced by getItems().

◆ $name

string ilICalItem::$name = ''
protected

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

Referenced by getName().

◆ $value

string ilICalItem::$value = ''
protected

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


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