index 355e3c0af5e5ebaffd9b3e67bfc58543bdc7d0c4..4bf3f5bc89ef52c94cd63fda5580df9f84bc26cb 100644 (file)
}
- /* FIXME: replace this -> not our task */
- private function getEntryIcon($entry,$alt = ""){
- return("<img src='images/".$entry['_icon']."' alt='".$alt."' class='center'>");
- }
-
-
/*! \brief Renders entries from the ObjectList iterator into a string
Gets the entry descriptions from the ObjectList object and renders them.
\return HTML rendered list entries
if (!isset($entry[$attribute])){
throw new ObjectListViewportException(sprintf(_("Can't locate attribute '%s' to replace in entry!"), $attribute));
} else {
-
- if(preg_match("/_icon/i",$attribute)){
- $buffer= preg_replace('/\{'.$attribute.'\}/', $this->getEntryIcon($entry),$buffer);
- }else{
- $buffer= preg_replace('/\{'.$attribute.'\}/', $entry[$attribute],$buffer);
- }
+ $buffer= preg_replace('/\{'.$attribute.'\}/', $entry[$attribute],$buffer);
}
}