ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilDataCollectionFieldProp Class Reference

Class ilDataCollectionFieldProp. More...

+ Collaboration diagram for ilDataCollectionFieldProp:

Public Member Functions

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

Protected Attributes

 $id
 $datatype_property_id
 $value
 $field_id

Detailed Description

Constructor & Destructor Documentation

ilDataCollectionFieldProp::__construct (   $a_id = 0)

Constructor.

Parameters
intdatatype_id

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

References doRead().

{
if ($a_id != 0)
{
$this->id = $a_id;
$this->doRead();
}
}

+ Here is the call graph for this function:

Member Function Documentation

ilDataCollectionFieldProp::doCreate ( )

Create new field property.

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

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

{
global $ilDB;
$id = $ilDB->nextId("il_dcl_field_prop");
$this->setId($id);
$query = "INSERT INTO il_dcl_field_prop (".
"id".
", datatype_prop_id".
", field_id".
", value".
" ) VALUES (".
$ilDB->quote($this->getId(), "integer")
.",".$ilDB->quote($this->getDatatypePropertyId(), "integer")
.",".$ilDB->quote($this->getFieldId(), "integer")
.",".$ilDB->quote($this->getValue(), "text")
.")";
$ilDB->manipulate($query);
}

+ Here is the call graph for this function:

ilDataCollectionFieldProp::doRead ( )

Read Datatype.

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

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

Referenced by __construct().

{
global $ilDB;
$query = "SELECT * FROM il_dcl_field_prop WHERE id = ".$ilDB->quote($this->getId(),"integer");
$set = $ilDB->query($query);
$rec = $ilDB->fetchAssoc($set);
$this->setDatatypePropertyId($rec["property_id"]);
$this->setValue($rec["value"]);
$this->setFieldId($rec["field_id"]);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilDataCollectionFieldProp::doUpdate ( )

Update field property.

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

References getDatatypePropertyId(), getFieldId(), and getValue().

{
global $ilDB;
$ilDB->update("il_dcl_field_prop", array(
"datatype_prop_id" => array("integer", $this->getDatatypePropertyId()),
"field_id" => array("integer", $this->getFieldId()),
"value" => array("text", $this->getValue())
), array(
"datatype_prop_id" => array("integer", $this->getDatatypePropertyId()),
"field_id" => array("integer", $this->getFieldId())
));
}

+ Here is the call graph for this function:

ilDataCollectionFieldProp::getDatatypePropertyId ( )

Get property id.

Returns
int

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

References $datatype_property_id.

Referenced by doCreate(), and doUpdate().

+ Here is the caller graph for this function:

ilDataCollectionFieldProp::getFieldId ( )

Get field id.

Returns
int

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

References $field_id.

Referenced by doCreate(), and doUpdate().

{
}

+ Here is the caller graph for this function:

ilDataCollectionFieldProp::getId ( )

Get id.

Returns
int

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

References $id.

Referenced by doCreate(), and doRead().

{
return $this->id;
}

+ Here is the caller graph for this function:

ilDataCollectionFieldProp::getValue ( )

Get value.

Returns
string

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

References $value.

Referenced by doCreate(), and doUpdate().

{
return $this->value;
}

+ Here is the caller graph for this function:

ilDataCollectionFieldProp::setDatatypePropertyId (   $a_id)

Set property id.

Parameters
int$a_id

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

Referenced by doRead().

{
$this->datatype_property_id = $a_id;
}

+ Here is the caller graph for this function:

ilDataCollectionFieldProp::setFieldId (   $a_id)

Set field id.

Parameters
int$a_id

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

Referenced by doRead().

{
$this->field_id = $a_id;
}

+ Here is the caller graph for this function:

ilDataCollectionFieldProp::setId (   $a_id)

Set id.

Parameters
int$a_id

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

Referenced by doCreate().

{
$this->id = $a_id;
}

+ Here is the caller graph for this function:

ilDataCollectionFieldProp::setValue (   $a_value)

Set value.

Parameters
string$a_value

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

Referenced by doRead().

{
$this->value = $a_value;
}

+ Here is the caller graph for this function:

Field Documentation

ilDataCollectionFieldProp::$datatype_property_id
protected

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

Referenced by getDatatypePropertyId().

ilDataCollectionFieldProp::$field_id
protected

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

Referenced by getFieldId().

ilDataCollectionFieldProp::$id
protected

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

Referenced by doCreate(), and getId().

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: