ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCertificateMigrationInformationObject Class Reference

Class ilCertificateMigrationInformationObject. More...

+ Collaboration diagram for ilCertificateMigrationInformationObject:

Public Member Functions

 __construct (array $data)
 ilCertificateMigrationInformationObject constructor. More...
 
 getId ()
 
 getUserId ()
 
 getLock ()
 
 getProgressedItems ()
 
 getFoundItems ()
 
 getProgress ()
 
 getState ()
 
 getStartingTime ()
 
 getFinishedTime ()
 
 getProcessingTime ()
 
 getDataAsArray ()
 

Private Member Functions

 setDataByArray (array $data)
 

Private Attributes

 $id
 
 $usr_id
 
 $lock
 
 $found_items
 
 $processed_items
 
 $progress
 
 $state
 
 $starting_time
 
 $finished_time
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilCertificateMigrationInformationObject::__construct ( array  $data)

ilCertificateMigrationInformationObject constructor.

Parameters
array$data

Definition at line 61 of file class.ilCertificateMigrationInformationObject.php.

References setDataByArray().

+ Here is the call graph for this function:

Member Function Documentation

◆ getDataAsArray()

ilCertificateMigrationInformationObject::getDataAsArray ( )
Returns
array

Definition at line 149 of file class.ilCertificateMigrationInformationObject.php.

149 : array
150 {
151 return [
152 'id' => $this->getId(),
153 'usr_id' => $this->getUserId(),
154 'lock' => (int) $this->getLock(),
155 'found_items' => $this->getFoundItems(),
156 'processed_items' => $this->getProgressedItems(),
157 'progress' => $this->getProgress(),
158 'state' => $this->getState(),
159 'started_ts' => $this->getStartingTime(),
160 'finished_ts' => $this->getFinishedTime(),
161 ];
162 }

References getFinishedTime(), getFoundItems(), getId(), getLock(), getProgress(), getProgressedItems(), getStartingTime(), getState(), and getUserId().

+ Here is the call graph for this function:

◆ getFinishedTime()

ilCertificateMigrationInformationObject::getFinishedTime ( )
Returns
int

Definition at line 133 of file class.ilCertificateMigrationInformationObject.php.

133 : int
134 {
135 return isset($this->finished_time) ? $this->finished_time : 0;
136 }

Referenced by getDataAsArray(), and getProcessingTime().

+ Here is the caller graph for this function:

◆ getFoundItems()

ilCertificateMigrationInformationObject::getFoundItems ( )
Returns
int

Definition at line 101 of file class.ilCertificateMigrationInformationObject.php.

101 : int
102 {
103 return isset($this->found_items) ? $this->found_items : 0;
104 }

Referenced by getDataAsArray().

+ Here is the caller graph for this function:

◆ getId()

ilCertificateMigrationInformationObject::getId ( )
Returns
int

Definition at line 69 of file class.ilCertificateMigrationInformationObject.php.

69 : int
70 {
71 return isset($this->id) ? $this->id : 0;
72 }

Referenced by getDataAsArray().

+ Here is the caller graph for this function:

◆ getLock()

ilCertificateMigrationInformationObject::getLock ( )
Returns
bool

Definition at line 85 of file class.ilCertificateMigrationInformationObject.php.

85 : bool
86 {
87 return isset($this->lock) ? $this->lock : false;
88 }

Referenced by getDataAsArray().

+ Here is the caller graph for this function:

◆ getProcessingTime()

ilCertificateMigrationInformationObject::getProcessingTime ( )
Returns
int

Definition at line 141 of file class.ilCertificateMigrationInformationObject.php.

141 : int
142 {
143 return $this->getFinishedTime() - $this->getStartingTime();
144 }

References getFinishedTime(), and getStartingTime().

+ Here is the call graph for this function:

◆ getProgress()

ilCertificateMigrationInformationObject::getProgress ( )
Returns
int

Definition at line 109 of file class.ilCertificateMigrationInformationObject.php.

109 : int
110 {
111 return isset($this->progress) ? $this->progress : 0;
112 }

Referenced by getDataAsArray().

+ Here is the caller graph for this function:

◆ getProgressedItems()

ilCertificateMigrationInformationObject::getProgressedItems ( )
Returns
int

Definition at line 93 of file class.ilCertificateMigrationInformationObject.php.

93 : int
94 {
95 return isset($this->processed_items) ? $this->processed_items : 0;
96 }

Referenced by getDataAsArray().

+ Here is the caller graph for this function:

◆ getStartingTime()

ilCertificateMigrationInformationObject::getStartingTime ( )
Returns
int

Definition at line 125 of file class.ilCertificateMigrationInformationObject.php.

125 : int
126 {
127 return isset($this->starting_time) ? $this->starting_time : 0;
128 }

Referenced by getDataAsArray(), and getProcessingTime().

+ Here is the caller graph for this function:

◆ getState()

ilCertificateMigrationInformationObject::getState ( )
Returns
string

Definition at line 117 of file class.ilCertificateMigrationInformationObject.php.

117 : string
118 {
119 return isset($this->state) ? $this->state : '';
120 }

Referenced by getDataAsArray().

+ Here is the caller graph for this function:

◆ getUserId()

ilCertificateMigrationInformationObject::getUserId ( )
Returns
int|null

Definition at line 77 of file class.ilCertificateMigrationInformationObject.php.

References $usr_id.

Referenced by getDataAsArray().

+ Here is the caller graph for this function:

◆ setDataByArray()

ilCertificateMigrationInformationObject::setDataByArray ( array  $data)
private
Parameters
array$data
Returns
void

Definition at line 168 of file class.ilCertificateMigrationInformationObject.php.

169 {
170 $this->id = $data['id'];
171 $this->usr_id = $data['usr_id'];
172 $this->lock = ($data['lock'] === true || $data['lock'] === 1);
173 $this->found_items = $data['found_items'];
174 $this->processed_items = $data['processed_items'];
175 $this->progress = $data['progress'];
176 $this->state = $data['state'];
177 $this->starting_time = $data['started_ts'];
178 $this->finished_time = $data['finished_ts'];
179 }

References $data.

Referenced by __construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $finished_time

ilCertificateMigrationInformationObject::$finished_time
private

◆ $found_items

ilCertificateMigrationInformationObject::$found_items
private

◆ $id

ilCertificateMigrationInformationObject::$id
private

◆ $lock

ilCertificateMigrationInformationObject::$lock
private

◆ $processed_items

ilCertificateMigrationInformationObject::$processed_items
private

◆ $progress

ilCertificateMigrationInformationObject::$progress
private

◆ $starting_time

ilCertificateMigrationInformationObject::$starting_time
private

◆ $state

ilCertificateMigrationInformationObject::$state
private

◆ $usr_id

ilCertificateMigrationInformationObject::$usr_id
private

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

Referenced by getUserId().


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