public function getName($id = false)
 {
     if ($id === false) {
         $id = $this->id;
     }
     $rez = $id;
     switch ($id) {
         case 'recent':
         case 'commented':
         case 'modified':
         case 'added':
             return L\get(ucfirst($id));
         default:
             $rez = Objects::getName($id);
             break;
     }
     return $rez;
 }
function notifyAdminAboutContent($contentId)
{
    //select latest file with that content
    $fileIds = DataModel\Files::getContentIdReferences($contentId);
    $fileInfo = '';
    if (!empty($fileIds)) {
        $p = new Objects\Plugins\SystemProperties();
        $fileId = array_pop($fileIds);
        $data = $p->getData($fileId);
        $d =& $data['data'];
        $fileInfo = '<table border="0">' . '<tr><td>ID:</td><td>' . $d['id'] . '</td></tr>' . '<tr><td>Name:</td><td>' . Objects::getName($fileId) . '</td></tr>' . '<tr><td>Path:</td><td>' . $d['path'] . '</td></tr>' . '<tr><td>Creator: </td><td>' . $d['cid_text'] . '</td></tr>' . '</table>';
    }
    $err = error_get_last();
    if (!is_null($err) && !in_array($err['type'], array(E_NOTICE, E_WARNING))) {
        $fileInfo .= "\n\r<hr />\n\r" . $err['message'];
    }
    System::notifyAdmin('Casebox error extracting file content #' . $contentId, $fileInfo);
}