ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ()
 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 ()
 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
 true true true true integer 8 More...
 
int $user_id = 0
 true integer 8 More...
 
int $root_task_id = 0
 true integer 8 More...
 
int $current_task_id = 0
 true integer 8 More...
 
int $state = State::ERROR
 true integer 2 More...
 
int $total_number_of_tasks = 0
 true integer 4 More...
 
int $percentage = 0
 true integer 2 More...
 
string $title = ''
 true text 255 More...
 
string $description = ''
 true text 255 More...
 
int $last_heartbeat = 0
 true 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 ()
 Returns an instance of the instatiated calling active record (needs to be done in static methods) : 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 ( )

◆ getDescription()

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

◆ getId()

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

Definition at line 93 of file BucketContainer.php.

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

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

93  : ?int
94  {
95  return $this->id;
96  }
+ Here is the caller graph for this function:

◆ getLastHeartbeat()

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

◆ getPercentage()

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

◆ getRootTaskid()

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

◆ getState()

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

◆ getTitle()

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

◆ getTotalNumberoftasks()

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

◆ getUserId()

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

◆ returnDbTableName()

static ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer::returnDbTableName ( )
static

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.

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

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

◆ setDescription()

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

Definition at line 178 of file BucketContainer.php.

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

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

◆ setId()

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

Definition at line 98 of file BucketContainer.php.

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

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

◆ setLastHeartbeat()

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

Definition at line 188 of file BucketContainer.php.

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

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

◆ setPercentage()

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

Definition at line 158 of file BucketContainer.php.

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

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

◆ setRootTaskid()

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

Definition at line 118 of file BucketContainer.php.

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

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

◆ setState()

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

Definition at line 138 of file BucketContainer.php.

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

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

◆ setTitle()

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

Definition at line 168 of file BucketContainer.php.

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

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

◆ setTotalNumberoftasks()

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

Definition at line 148 of file BucketContainer.php.

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

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

◆ setUserId()

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

Definition at line 108 of file BucketContainer.php.

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

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

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

◆ $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: