ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

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 58 of file class.arStorageRecord.php.

References $id.

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

Member Function Documentation

◆ create()

arStorageRecord::create ( )

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

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

◆ delete()

arStorageRecord::delete ( )

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

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

◆ getDescription()

arStorageRecord::getDescription ( )
Returns
string

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

References $description.

97  {
98  return $this->description;
99  }

◆ getId()

arStorageRecord::getId ( )
Returns
int

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

References $id.

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

◆ getStorage()

arStorageRecord::getStorage ( )
Returns
arStorageRecordStorage

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

References $storage.

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

◆ getTitle()

arStorageRecord::getTitle ( )
Returns
string

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

References $title.

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

◆ getUsrIds()

arStorageRecord::getUsrIds ( )
Returns
array

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

References $usr_ids.

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

◆ setDescription()

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

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

References $description.

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

◆ setId()

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

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

References $id.

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

◆ setStorage()

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

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

References $storage.

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

◆ setTitle()

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

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

References $title.

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

◆ setUsrIds()

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

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

References $usr_ids.

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

◆ update()

arStorageRecord::update ( )

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

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

Field Documentation

◆ $description

arStorageRecord::$description = ''

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

Referenced by getDescription(), and setDescription().

◆ $id

arStorageRecord::$id = 0
protected

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

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

◆ $storage

arStorageRecord::$storage
protected

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

Referenced by getStorage(), and setStorage().

◆ $title

arStorageRecord::$title = ''
protected

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

Referenced by getTitle(), and setTitle().

◆ $usr_ids

arStorageRecord::$usr_ids = array()
protected

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

Referenced by getUsrIds(), and setUsrIds().


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