ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
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 57 of file class.arStorageRecord.php.

References $id.

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

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.

90  {
91  return $this->description;
92  }

◆ getId()

arStorageRecord::getId ( )
Returns
int

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

References $id.

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

◆ getStorage()

arStorageRecord::getStorage ( )
Returns
arStorageRecordStorage

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

References $storage.

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

◆ getTitle()

arStorageRecord::getTitle ( )
Returns
string

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

References $title.

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

◆ getUsrIds()

arStorageRecord::getUsrIds ( )
Returns
array

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

References $usr_ids.

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

◆ setDescription()

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

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

References $description.

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

◆ setId()

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

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

References $id.

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

◆ setStorage()

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

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

References $storage.

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

◆ setTitle()

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

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

References $title.

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

◆ setUsrIds()

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

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

References $usr_ids.

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

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