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

Class arTestRecord. More...

+ Inheritance diagram for arStorageRecord:
+ Collaboration diagram for arStorageRecord:

Public Member Functions

 __construct ($id=0)
 
 create ()
 
 update ()
 
 delete ()
 
 setDescription ($description)
 
 getDescription ()
 
 setId ($id)
 
 getId ()
 
 setTitle ($title)
 
 getTitle ()
 
 setUsrIds ($usr_ids)
 
 getUsrIds ()
 
 setStorage ($storage)
 
 getStorage ()
 

Data Fields

 $description = ''
 

Protected Attributes

 $id = 0
 
 $title = ''
 
 $usr_ids = array()
 
 $storage
 

Detailed Description

Class arTestRecord.

@description A Class which does not extend from ActiveRecord uses arStorage for dynamic DB usage

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
2.0.7

Definition at line 14 of file class.arStorageRecord.php.

Constructor & Destructor Documentation

◆ __construct()

arStorageRecord::__construct (   $id = 0)
Parameters
$id

Definition at line 57 of file class.arStorageRecord.php.

58 {
59 $this->id = $id;
60 $this->storage = arStorageRecordStorage::getInstance($this);
61 $this->storage->installDB();
62 }

References $id.

Member Function Documentation

◆ create()

arStorageRecord::create ( )

Definition at line 65 of file class.arStorageRecord.php.

66 {
67 $this->storage->create();
68 }

◆ delete()

arStorageRecord::delete ( )

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

78 {
79 $this->storage->delete();
80 }

◆ getDescription()

arStorageRecord::getDescription ( )
Returns
string

Definition at line 95 of file class.arStorageRecord.php.

References $description.

◆ getId()

arStorageRecord::getId ( )
Returns
int

Definition at line 113 of file class.arStorageRecord.php.

114 {
115 return $this->id;
116 }

References $id.

◆ getStorage()

arStorageRecord::getStorage ( )
Returns
arStorageRecordStorage

Definition at line 167 of file class.arStorageRecord.php.

168 {
169 return $this->storage;
170 }

References $storage.

◆ getTitle()

arStorageRecord::getTitle ( )
Returns
string

Definition at line 131 of file class.arStorageRecord.php.

132 {
133 return $this->title;
134 }

References $title.

◆ getUsrIds()

arStorageRecord::getUsrIds ( )
Returns
array

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

150 {
151 return $this->usr_ids;
152 }

References $usr_ids.

◆ setDescription()

arStorageRecord::setDescription (   $description)
Parameters
string$description

Definition at line 86 of file class.arStorageRecord.php.

87 {
88 $this->description = $description;
89 }

References $description.

◆ setId()

arStorageRecord::setId (   $id)
Parameters
int$id

Definition at line 104 of file class.arStorageRecord.php.

105 {
106 $this->id = $id;
107 }

References $id.

◆ setStorage()

arStorageRecord::setStorage (   $storage)
Parameters
arStorageRecordStorage$storage

Definition at line 158 of file class.arStorageRecord.php.

159 {
160 $this->storage = $storage;
161 }

References $storage.

◆ setTitle()

arStorageRecord::setTitle (   $title)
Parameters
string$title

Definition at line 122 of file class.arStorageRecord.php.

123 {
124 $this->title = $title;
125 }

References $title.

◆ setUsrIds()

arStorageRecord::setUsrIds (   $usr_ids)
Parameters
array$usr_ids

Definition at line 140 of file class.arStorageRecord.php.

141 {
142 $this->usr_ids = $usr_ids;
143 }

References $usr_ids.

◆ update()

arStorageRecord::update ( )

Definition at line 71 of file class.arStorageRecord.php.

72 {
73 $this->storage->update();
74 }

Field Documentation

◆ $description

arStorageRecord::$description = ''

Definition at line 40 of file class.arStorageRecord.php.

Referenced by getDescription(), and setDescription().

◆ $id

arStorageRecord::$id = 0
protected

Definition at line 26 of file class.arStorageRecord.php.

Referenced by __construct(), getId(), and setId().

◆ $storage

arStorageRecord::$storage
protected

Definition at line 51 of file class.arStorageRecord.php.

Referenced by getStorage(), and setStorage().

◆ $title

arStorageRecord::$title = ''
protected

Definition at line 33 of file class.arStorageRecord.php.

Referenced by getTitle(), and setTitle().

◆ $usr_ids

arStorageRecord::$usr_ids = array()
protected

Definition at line 47 of file class.arStorageRecord.php.

Referenced by getUsrIds(), and setUsrIds().


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