ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer Class Reference
+ Inheritance diagram for ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer:
+ Collaboration diagram for ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer:

Public Member Functions

 getId ()
 
 setId (int $id)
 
 getUserId ()
 
 setUserId (int $user_id)
 
 getRootTaskid ()
 
 setRootTaskid (int $root_task_id)
 
 getCurrentTaskid ()
 
 setCurrentTaskid (int $current_task_id)
 
 getState ()
 
 setState (int $state)
 
 getTotalNumberoftasks ()
 
 setTotalNumberoftasks (int $total_number_of_tasks)
 
 getPercentage ()
 
 setPercentage (int $percentage)
 
 getTitle ()
 
 setTitle (string $title)
 
 getDescription ()
 
 setDescription (string $description)
 
 getLastHeartbeat ()
 
 setLastHeartbeat (int $last_heartbeat)
 
- Public Member Functions inherited from ActiveRecord
 getArConnector ()
 
 getArFieldList ()
 
 getConnectorContainerName ()
 @description Return the Name of your Connector Table More...
 
 setConnectorContainerName (string $connector_container_name)
 
 getPrimaryFieldValue ()
 
 setPrimaryFieldValue ($value)
 
 __construct (mixed $primary_key=0)
 
 storeObjectToCache ()
 
 asStdClass ()
 
 asArray ()
 
 buildFromArray (array $array)
 
 fixDateField ($field_name, string $value)
 
 sleep ($field_name)
 
 wakeUp ($field_name, $field_value)
 
 getArrayForConnector ()
 
 installConnector ()
 
 store ()
 
 save ()
 
 create ()
 
 copy (int $new_id=0)
 
 afterObjectLoad ()
 
 read ()
 
 update ()
 
 delete ()
 
 __call ($name, $arguments)
 

Static Public Member Functions

static returnDbTableName ()
 
- Static Public Member Functions inherited from ActiveRecord
static returnDbTableName ()
 
static installDB ()
 
static renameDBField (string $old_name, string $new_name)
 
static tableExists ()
 
static fieldExists (string $field_name)
 
static removeDBField (string $field_name)
 
static updateDB ()
 
static resetDB ()
 
static truncateDB ()
 
static flushDB ()
 @depracated never use in ILIAS Core, Plugins only More...
 
static preloadObjects ()
 
static additionalParams (array $additional_params)
 
static findOrFail ($primary_key, array $add_constructor_args=[])
 Tries to find the object and throws an Exception if object is not found, instead of returning null. More...
 
static findOrGetInstance ($primary_key, array $add_constructor_args=[])
 
static where ($where, $operator=null)
 
static innerjoinAR (ActiveRecord $activeRecord, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false)
 
static innerjoin (string $tablename, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false)
 
static leftjoin (string $tablename, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false)
 
static orderBy (string $orderBy, string $orderDirection='ASC')
 
static dateFormat (string $date_format='d.m.Y - H:i:s')
 
static limit (int $start, int $end)
 
static affectedRows ()
 
static count ()
 
static get ()
 
static debug ()
 
static first ()
 
static getCollection ()
 
static last ()
 
static getFirstFromLastQuery ()
 
static connector (arConnector $arConnector)
 
static raw (bool $set_raw=true)
 
static getArray (?string $key=null, string|array|null $values=null)
 
static _toCamelCase (string $str, bool $capitalise_first_char=false)
 

Protected Attributes

int $id = null
 @con_is_primary true @con_is_unique true @con_has_field true @con_sequence true @con_fieldtype integer @con_length 8 More...
 
int $user_id = 0
 @con_has_field true @con_fieldtype integer @con_length 8 More...
 
int $root_task_id = 0
 @con_has_field true @con_fieldtype integer @con_length 8 More...
 
int $current_task_id = 0
 @con_has_field true @con_fieldtype integer @con_length 8 More...
 
int $state = State::ERROR
 @con_has_field true @con_fieldtype integer @con_length 2 More...
 
int $total_number_of_tasks = 0
 @con_has_field true @con_fieldtype integer @con_length 4 More...
 
int $percentage = 0
 @con_has_field true @con_fieldtype integer @con_length 2 More...
 
string $title = ''
 @con_has_field true @con_fieldtype text @con_length 255 More...
 
string $description = ''
 @con_has_field true @con_fieldtype text @con_length 255 More...
 
int $last_heartbeat = 0
 @con_has_field true @con_fieldtype timestamp More...
 
- Protected Attributes inherited from ActiveRecord
bool $ar_safe_read = true
 
string $connector_container_name = ''
 
bool $is_new = true
 

Additional Inherited Members

- Protected Member Functions inherited from ActiveRecord
 installDatabase ()
 
- Static Protected Member Functions inherited from ActiveRecord
static getCalledClass ()
 @description Returns an instance of the instatiated calling active record (needs to be done in static methods) @TODO : This should be cached somehow More...
 
static fromCamelCase (string $str)
 

Detailed Description

Definition at line 23 of file BucketContainer.php.

Member Function Documentation

◆ getCurrentTaskid()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::getCurrentTaskid ( )

Definition at line 123 of file BucketContainer.php.

123 : int
124 {
126 }
int $current_task_id
@con_has_field true @con_fieldtype integer @con_length 8

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$current_task_id.

◆ getDescription()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::getDescription ( )

Definition at line 173 of file BucketContainer.php.

173 : string
174 {
175 return $this->description;
176 }
string $description
@con_has_field true @con_fieldtype text @con_length 255

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$description.

Referenced by ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getBucketMetaOfUser().

+ Here is the caller graph for this function:

◆ getId()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::getId ( )

Definition at line 93 of file BucketContainer.php.

93 : ?int
94 {
95 return $this->id;
96 }
int $id
@con_is_primary true @con_is_unique true @con_has_field true @con_sequence true @con_fieldtype intege...

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$id.

Referenced by ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getBucketIdsByState().

+ Here is the caller graph for this function:

◆ getLastHeartbeat()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::getLastHeartbeat ( )

Definition at line 183 of file BucketContainer.php.

183 : int
184 {
186 }
int $last_heartbeat
@con_has_field true @con_fieldtype timestamp

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$last_heartbeat.

◆ getPercentage()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::getPercentage ( )

Definition at line 153 of file BucketContainer.php.

153 : int
154 {
155 return $this->percentage;
156 }
int $percentage
@con_has_field true @con_fieldtype integer @con_length 2

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$percentage.

Referenced by ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getBucketMetaOfUser().

+ Here is the caller graph for this function:

◆ getRootTaskid()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::getRootTaskid ( )

Definition at line 113 of file BucketContainer.php.

113 : int
114 {
115 return $this->root_task_id;
116 }
int $root_task_id
@con_has_field true @con_fieldtype integer @con_length 8

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$root_task_id.

◆ getState()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::getState ( )

Definition at line 133 of file BucketContainer.php.

133 : int
134 {
135 return $this->state;
136 }
int $state
@con_has_field true @con_fieldtype integer @con_length 2

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$state.

Referenced by ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getBucketMetaOfUser().

+ Here is the caller graph for this function:

◆ getTitle()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::getTitle ( )

Definition at line 163 of file BucketContainer.php.

163 : string
164 {
165 return $this->title;
166 }
string $title
@con_has_field true @con_fieldtype text @con_length 255

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$title.

Referenced by ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getBucketMetaOfUser().

+ Here is the caller graph for this function:

◆ getTotalNumberoftasks()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::getTotalNumberoftasks ( )

Definition at line 143 of file BucketContainer.php.

143 : int
144 {
146 }
int $total_number_of_tasks
@con_has_field true @con_fieldtype integer @con_length 4

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$total_number_of_tasks.

◆ getUserId()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::getUserId ( )

Definition at line 103 of file BucketContainer.php.

103 : int
104 {
105 return $this->user_id;
106 }
int $user_id
@con_has_field true @con_fieldtype integer @con_length 8

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$user_id.

Referenced by ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getBucketMetaOfUser().

+ Here is the caller graph for this function:

◆ returnDbTableName()

static ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::returnDbTableName ( )
static
Returns
never
Exceptions

arException

Deprecated:

Reimplemented from ActiveRecord.

Definition at line 25 of file BucketContainer.php.

25 : string
26 {
27 return "il_bt_bucket";
28 }

◆ setCurrentTaskid()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::setCurrentTaskid ( int  $current_task_id)

Definition at line 128 of file BucketContainer.php.

128 : void
129 {
130 $this->current_task_id = $current_task_id;
131 }

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$current_task_id.

◆ setDescription()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::setDescription ( string  $description)

Definition at line 178 of file BucketContainer.php.

178 : void
179 {
180 $this->description = $description;
181 }

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$description.

◆ setId()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::setId ( int  $id)

Definition at line 98 of file BucketContainer.php.

98 : void
99 {
100 $this->id = $id;
101 }

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$id.

◆ setLastHeartbeat()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::setLastHeartbeat ( int  $last_heartbeat)

Definition at line 188 of file BucketContainer.php.

188 : void
189 {
190 $this->last_heartbeat = $last_heartbeat;
191 }

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$last_heartbeat.

◆ setPercentage()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::setPercentage ( int  $percentage)

Definition at line 158 of file BucketContainer.php.

158 : void
159 {
160 $this->percentage = $percentage;
161 }

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$percentage.

◆ setRootTaskid()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::setRootTaskid ( int  $root_task_id)

Definition at line 118 of file BucketContainer.php.

118 : void
119 {
120 $this->root_task_id = $root_task_id;
121 }

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$root_task_id.

◆ setState()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::setState ( int  $state)

Definition at line 138 of file BucketContainer.php.

138 : void
139 {
140 $this->state = $state;
141 }

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$state.

◆ setTitle()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::setTitle ( string  $title)

Definition at line 168 of file BucketContainer.php.

168 : void
169 {
170 $this->title = $title;
171 }

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$title.

◆ setTotalNumberoftasks()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::setTotalNumberoftasks ( int  $total_number_of_tasks)

Definition at line 148 of file BucketContainer.php.

148 : void
149 {
150 $this->total_number_of_tasks = $total_number_of_tasks;
151 }

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$total_number_of_tasks.

◆ setUserId()

ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::setUserId ( int  $user_id)

Definition at line 108 of file BucketContainer.php.

108 : void
109 {
110 $this->user_id = $user_id;
111 }

References ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\$user_id.

Field Documentation

◆ $current_task_id

int ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::$current_task_id = 0
protected

◆ $description

string ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::$description = ''
protected

◆ $id

int ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::$id = null
protected

@con_is_primary true @con_is_unique true @con_has_field true @con_sequence true @con_fieldtype integer @con_length 8

Definition at line 38 of file BucketContainer.php.

Referenced by ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\getId(), and ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer\setId().

◆ $last_heartbeat

int ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::$last_heartbeat = 0
protected

◆ $percentage

int ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::$percentage = 0
protected

◆ $root_task_id

int ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::$root_task_id = 0
protected

◆ $state

int ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::$state = State::ERROR
protected

◆ $title

string ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::$title = ''
protected

◆ $total_number_of_tasks

int ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::$total_number_of_tasks = 0
protected

◆ $user_id

int ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::$user_id = 0
protected

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