/**
  * Maps a BaseClass object contained in a recordset to an object representation
  *
  * @param $rs Recordset filled with the object data
  * @return objeto Mapped BaseClass object
  */
 function &mapOne($rs)
 {
     if ($rs == null) {
         return null;
     }
     $object = new BaseClass();
     $object->setId($rs->fields["ID"]);
     $object->setClassName($rs->fields["className"]);
     $object->setDescriptor($rs->fields["descriptor"]);
     $object->setShortDescription($rs->fields["shortDescription"]);
     $object->setTitle($rs->fields["title"]);
     $object->setLongDescription($rs->fields["longDescription"]);
     return $object;
 }