ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

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

69  : ?string
70  {
71  return $this->deadline;
72  }
+ 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.

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

61  : ?string
62  {
63  return $this->description;
64  }
+ 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.

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

53  : string
54  {
55  return $this->title;
56  }
+ 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.

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

37  : int
38  {
39  return $this->todo_id;
40  }
+ 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.

References $user_id.

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

45  : int
46  {
47  return $this->user_id;
48  }
+ 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.

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

77  : TodoItem
78  {
79  $clone = clone $this;
80  $clone->todo_id = $todo_id;
81  return $clone;
82  }
+ Here is the caller graph for this function:

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