/**
  * Maps a ObjectAttribute object contained in a recordset to an object representation
  *
  * @param $rs Recordset filled with the object data
  * @return objeto Mapped ObjectAttribute object
  */
 function &mapOne($rs)
 {
     if ($rs == null) {
         return null;
     }
     $object = new ObjectAttribute();
     $object->setId($rs->fields["ID"]);
     $object->setClassAttributeID($rs->fields["classAttributeID"]);
     $object->setObjectID($rs->fields["objectID"]);
     $object->setLanguageID($rs->fields["languageID"]);
     $object->setValue($rs->fields["value"]);
     return $object;
 }
예제 #2
0
 /**
  * Constructs an ObjectAttribute object with the info contained in FrontAttribute
  * @return ObjectAttribute - an ObjectAttribute object
  */
 function toObjectAttribute()
 {
     $objectAttribute = new ObjectAttribute();
     $objectAttribute->setClassAttributeID($this->attribute->getId());
     $objectAttribute->setLanguageID($this->language->getId());
     $objectAttribute->setValue($this->getValue());
     return $objectAttribute;
 }