コード例 #1
0
 function _formatNew(&$objDBDoc)
 {
     global $_DOCMAN;
     $days = $_DOCMAN->getCfg('days_for_new');
     $result = null;
     if ($days > 0 && DOCMAN_Utils::Daysdiff($objDBDoc->dmdate_published) > $days - 2 * $days && DOCMAN_Utils::Daysdiff($objDBDoc->dmdate_published) <= 0) {
         $result = _DML_NEW;
     }
     return $result;
 }