Can you give me a hint?

Description

Hey Tom,

from pages/search.inc.php

### query string is a number? ###
if(preg_match("/^[0-9]*$/", $search_query, $matches)) {
    # project items like projects, tasks, comments, efforts and files #
    if($item= DbProjectItem::getVisibleById(intval($matches[0]))) {
        new FeedbackMessage(__('Jumped to the only result found.'));
        switch ($item->type) {
            case ITEM_PROJECT:
                $PH->show('projView',array('prj'=>$item->id));
            	exit;
            case ITEM_TASK:
            	$PH->show('taskView',array('tsk'=>$item->id));
            	exit;
            case ITEM_COMMENT:
            	$PH->show('commentView',array('comment'=>$item->id));
            	exit;  
            # effort-view not implemented so far
            /*case ITEM_EFFORT:
            	$PH->show('effortView',array('effort'=>$item->id));
            	exit;  */  
            case ITEM_FILE:
            	$PH->show('fileView',array('file'=>$item->id));
            	exit; 			        			
        }
    }

For the person- and company-search I need something similar to DbProjectItem::getVisibleById.
Is there something similar, Tom?

So I can upload the cleaner and more accessible version of the search by Item-Id's.