ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDataCollectionFieldProp Class Reference

Class ilDataCollectionFieldProp. More...

+ Collaboration diagram for ilDataCollectionFieldProp:

Public Member Functions

 __construct ($a_id=0)
 Constructor. More...
 
 setId ($a_id)
 Set id. More...
 
 getId ()
 Get id. More...
 
 setDatatypePropertyId ($a_id)
 Set property id. More...
 
 getDatatypePropertyId ()
 Get property id. More...
 
 setValue ($a_value)
 Set value. More...
 
 getValue ()
 Get value. More...
 
 setFieldId ($a_id)
 Set field id. More...
 
 getFieldId ()
 Get field id. More...
 
 doRead ()
 Read Datatype. More...
 
 doCreate ()
 Create new field property. More...
 

Protected Attributes

 $id
 
 $datatype_property_id
 
 $value
 
 $field_id
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilDataCollectionFieldProp::__construct (   $a_id = 0)

Constructor.

Parameters
intdatatype_id

Definition at line 29 of file class.ilDataCollectionFieldProp.php.

References doRead().

30  {
31  if ($a_id != 0)
32  {
33  $this->id = $a_id;
34  $this->doRead();
35  }
36  }
+ Here is the call graph for this function:

Member Function Documentation

◆ doCreate()

ilDataCollectionFieldProp::doCreate ( )

Create new field property.

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

References $id, $ilDB, $query, getDatatypePropertyId(), getFieldId(), getId(), getValue(), and setId().

141  {
142  global $ilDB;
143 
144  $id = $ilDB->nextId("il_dcl_field_prop");
145  $this->setId($id);
146  $query = "INSERT INTO il_dcl_field_prop (".
147  "id".
148  ", datatype_prop_id".
149  ", field_id".
150  ", value".
151  " ) VALUES (".
152  $ilDB->quote($this->getId(), "integer")
153  .",".$ilDB->quote($this->getDatatypePropertyId(), "integer")
154  .",".$ilDB->quote($this->getFieldId(), "integer")
155  .",".$ilDB->quote($this->getValue(), "text")
156  .")";
157  $ilDB->manipulate($query);
158  }
global $ilDB
+ Here is the call graph for this function:

◆ doRead()

ilDataCollectionFieldProp::doRead ( )

Read Datatype.

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

References $ilDB, $query, getId(), setDatatypePropertyId(), setFieldId(), and setValue().

Referenced by __construct().

123  {
124  global $ilDB;
125 
126  $query = "SELECT * FROM il_dcl_field_prop WHERE id = ".$ilDB->quote($this->getId(),"integer");
127  $set = $ilDB->query($query);
128  $rec = $ilDB->fetchAssoc($set);
129 
130  $this->setDatatypePropertyId($rec["datatype_prop_id"]);
131  $this->setValue($rec["value"]);
132  $this->setFieldId($rec["field_id"]);
133 
134  }
global $ilDB
setDatatypePropertyId($a_id)
Set property id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDatatypePropertyId()

ilDataCollectionFieldProp::getDatatypePropertyId ( )

Get property id.

Returns
int

Definition at line 73 of file class.ilDataCollectionFieldProp.php.

References $datatype_property_id.

Referenced by doCreate().

+ Here is the caller graph for this function:

◆ getFieldId()

ilDataCollectionFieldProp::getFieldId ( )

Get field id.

Returns
int

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

References $field_id.

Referenced by doCreate().

+ Here is the caller graph for this function:

◆ getId()

ilDataCollectionFieldProp::getId ( )

Get id.

Returns
int

Definition at line 53 of file class.ilDataCollectionFieldProp.php.

References $id.

Referenced by doCreate(), and doRead().

+ Here is the caller graph for this function:

◆ getValue()

ilDataCollectionFieldProp::getValue ( )

Get value.

Returns
string

Definition at line 93 of file class.ilDataCollectionFieldProp.php.

References $value.

Referenced by doCreate().

+ Here is the caller graph for this function:

◆ setDatatypePropertyId()

ilDataCollectionFieldProp::setDatatypePropertyId (   $a_id)

Set property id.

Parameters
int$a_id

Definition at line 63 of file class.ilDataCollectionFieldProp.php.

Referenced by doRead().

64  {
65  $this->datatype_property_id = $a_id;
66  }
+ Here is the caller graph for this function:

◆ setFieldId()

ilDataCollectionFieldProp::setFieldId (   $a_id)

Set field id.

Parameters
int$a_id

Definition at line 103 of file class.ilDataCollectionFieldProp.php.

Referenced by doRead().

104  {
105  $this->field_id = $a_id;
106  }
+ Here is the caller graph for this function:

◆ setId()

ilDataCollectionFieldProp::setId (   $a_id)

Set id.

Parameters
int$a_id

Definition at line 43 of file class.ilDataCollectionFieldProp.php.

Referenced by doCreate().

44  {
45  $this->id = $a_id;
46  }
+ Here is the caller graph for this function:

◆ setValue()

ilDataCollectionFieldProp::setValue (   $a_value)

Set value.

Parameters
string$a_value

Definition at line 83 of file class.ilDataCollectionFieldProp.php.

Referenced by doRead().

84  {
85  $this->value = $a_value;
86  }
+ Here is the caller graph for this function:

Field Documentation

◆ $datatype_property_id

ilDataCollectionFieldProp::$datatype_property_id
protected

Definition at line 18 of file class.ilDataCollectionFieldProp.php.

Referenced by getDatatypePropertyId().

◆ $field_id

ilDataCollectionFieldProp::$field_id
protected

Definition at line 20 of file class.ilDataCollectionFieldProp.php.

Referenced by getFieldId().

◆ $id

ilDataCollectionFieldProp::$id
protected

Definition at line 17 of file class.ilDataCollectionFieldProp.php.

Referenced by doCreate(), and getId().

◆ $value

ilDataCollectionFieldProp::$value
protected

Definition at line 19 of file class.ilDataCollectionFieldProp.php.

Referenced by getValue().


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