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.

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.

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

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.

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

◆ getId()

arStorageRecord::getId ( )
Returns
int

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

References $id.

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

◆ getStorage()

arStorageRecord::getStorage ( )
Returns
arStorageRecordStorage

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

References $storage.

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

◆ getTitle()

arStorageRecord::getTitle ( )
Returns
string

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

References $title.

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

◆ getUsrIds()

arStorageRecord::getUsrIds ( )
Returns
array

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

References $usr_ids.

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

◆ setDescription()

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

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

References $description.

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

◆ setId()

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

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

References $id.

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

◆ setStorage()

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

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

References $storage.

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

◆ setTitle()

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

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

References $title.

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

◆ setUsrIds()

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

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

References $usr_ids.

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

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