/**
  * returns the right CustomFieldValuexxx object but this method can be used
  * in those occasions when we know the fieldId but we do not know its type so what we need to do
  * is first load the field definition and then work on creating the right object type
  *
  * @param fieldId
  * @param row An array
  * @see getCustomFieldValueObject
  */
 function getCustomFieldValueByFieldId($fieldId, $row)
 {
     // load the field definition first
     $customFields = new CustomFields();
     $customField = $customFields->getCustomField($fieldId);
     if (!$customField) {
         return false;
     }
     // if everything went fine, then continue
     $row["field_id"] = $fieldId;
     $row["field_type"] = $customField->getType();
     $row["field_description"] = $customField->getDescription();
     $row["field_name"] = $customField->getName();
     $fieldValueObject = CustomFieldValueFactory::getCustomFieldValueObject($row);
     return $fieldValueObject;
 }
 /**
  * @private
  */
 function _fillCustomFieldValueInformation($row)
 {
     return CustomFieldValueFactory::getCustomFieldValueObject($row);
 }