CommonITILObject::getFromDBwithData PHP Метод

getFromDBwithData() публичный Метод

Retrieve an item from the database with datas associated (hardwares)
public getFromDBwithData ( $ID, $purecontent ) : true
$ID ID of the item to get
$purecontent boolean true : nothing change / false : convert to HTML display
Результат true if succeed else false
    function getFromDBwithData($ID, $purecontent)
    {
        if ($this->getFromDB($ID)) {
            if (!$purecontent) {
                $this->fields["content"] = nl2br(preg_replace("/\r\n\r\n/", "\r\n", $this->fields["content"]));
            }
            $this->getAdditionalDatas();
            return true;
        }
        return false;
    }
CommonITILObject