Exemplo n.º 1
0
 /**
  * Renders a stored value. Allows the class to modify the value to display, e.g. to
  * replace a timestamp by a readable string.
  *
  * @param string $strProperty
  * @param string $strValue
  *
  * @return string
  */
 public function renderVersionValue($strProperty, $strValue)
 {
     if (($strProperty == "objDateStart" || $strProperty == "objDateEnd" || $strProperty == "objDateSpecial") && $strValue > 0) {
         return dateToString(new class_date($strValue), false);
     } else {
         if ($strProperty == "assignedCategories" && validateSystemid($strValue)) {
             $objCategory = new class_module_news_category($strValue);
             return $objCategory->getStrTitle();
         }
     }
     return $strValue;
 }