ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\components\ToDoExample\TodoItem Class Reference
+ Collaboration diagram for ILIAS\components\ToDoExample\TodoItem:

Public Member Functions

 __construct (private int $todo_id, private int $user_id, private string $title, private ?string $description, private ?string $deadline)
 
 getTodoId ()
 Get the id of the item. More...
 
 getUserId ()
 Get the id of the user to which the item belongs. More...
 
 getTitle ()
 Get the title of the item. More...
 
 getDescription ()
 Get a description of the item (optional) More...
 
 getDeadline ()
 Get the deadline of the item (optional) More...
 
 widthTodoId (int $todo_id)
 Get a clone with a new id. More...
 

Detailed Description

Definition at line 23 of file TodoItem.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\components\ToDoExample\TodoItem::__construct ( private int  $todo_id,
private int  $user_id,
private string  $title,
private ?string  $description,
private ?string  $deadline 
)

Definition at line 25 of file TodoItem.php.

31 {
32 }

Member Function Documentation

◆ getDeadline()

ILIAS\components\ToDoExample\TodoItem::getDeadline ( )

Get the deadline of the item (optional)

Definition at line 69 of file TodoItem.php.

69 : ?string
70 {
71 return $this->deadline;
72 }

Referenced by ILIAS\components\ToDoExample\TodoRepository\createItem(), and ILIAS\components\ToDoExample\TodoRepository\updateItem().

+ Here is the caller graph for this function:

◆ getDescription()

ILIAS\components\ToDoExample\TodoItem::getDescription ( )

Get a description of the item (optional)

Definition at line 61 of file TodoItem.php.

61 : ?string
62 {
63 return $this->description;
64 }

Referenced by ILIAS\components\ToDoExample\TodoRepository\createItem(), and ILIAS\components\ToDoExample\TodoRepository\updateItem().

+ Here is the caller graph for this function:

◆ getTitle()

ILIAS\components\ToDoExample\TodoItem::getTitle ( )

Get the title of the item.

Definition at line 53 of file TodoItem.php.

53 : string
54 {
55 return $this->title;
56 }

Referenced by ILIAS\components\ToDoExample\TodoRepository\createItem(), and ILIAS\components\ToDoExample\TodoRepository\updateItem().

+ Here is the caller graph for this function:

◆ getTodoId()

ILIAS\components\ToDoExample\TodoItem::getTodoId ( )

Get the id of the item.

Definition at line 37 of file TodoItem.php.

37 : int
38 {
39 return $this->todo_id;
40 }

Referenced by ILIAS\components\ToDoExample\TodoRepository\updateItem().

+ Here is the caller graph for this function:

◆ getUserId()

ILIAS\components\ToDoExample\TodoItem::getUserId ( )

Get the id of the user to which the item belongs.

Definition at line 45 of file TodoItem.php.

45 : int
46 {
47 return $this->user_id;
48 }

References $user_id.

Referenced by ILIAS\components\ToDoExample\TodoRepository\createItem(), and ILIAS\components\ToDoExample\TodoRepository\updateItem().

+ Here is the caller graph for this function:

◆ widthTodoId()

ILIAS\components\ToDoExample\TodoItem::widthTodoId ( int  $todo_id)

Get a clone with a new id.

Definition at line 77 of file TodoItem.php.

77 : TodoItem
78 {
79 $clone = clone $this;
80 $clone->todo_id = $todo_id;
81 return $clone;
82 }

Referenced by ILIAS\components\ToDoExample\TodoRepository\createItem().

+ Here is the caller graph for this function:

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