ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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.

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

References $id.

Member Function Documentation

◆ create()

arStorageRecord::create ( )

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

64 {
65 $this->storage->create();
66 }

◆ delete()

arStorageRecord::delete ( )

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

74 {
75 $this->storage->delete();
76 }

◆ getDescription()

arStorageRecord::getDescription ( )
Returns
string

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

References $description.

◆ getId()

arStorageRecord::getId ( )
Returns
int

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

106 {
107 return $this->id;
108 }

References $id.

◆ getStorage()

arStorageRecord::getStorage ( )
Returns
arStorageRecordStorage

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

154 {
155 return $this->storage;
156 }

References $storage.

◆ getTitle()

arStorageRecord::getTitle ( )
Returns
string

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

122 {
123 return $this->title;
124 }

References $title.

◆ getUsrIds()

arStorageRecord::getUsrIds ( )
Returns
array

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

138 {
139 return $this->usr_ids;
140 }

References $usr_ids.

◆ setDescription()

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

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

82 {
83 $this->description = $description;
84 }

References $description.

◆ setId()

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

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

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

References $id.

◆ setStorage()

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

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

146 {
147 $this->storage = $storage;
148 }

References $storage.

◆ setTitle()

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

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

114 {
115 $this->title = $title;
116 }

References $title.

◆ setUsrIds()

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

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

130 {
131 $this->usr_ids = $usr_ids;
132 }

References $usr_ids.

◆ update()

arStorageRecord::update ( )

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

69 {
70 $this->storage->update();
71 }

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: