<?php
$GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"] ?: array()) + array("_7a7cffa4d53ef9ebe07145b1a5bf3" . "d85" => base64_decode("L2ludHJhbmV0L2" . "RvY3VtZW50cy9p" . "bWFnZXMvbWFya2" . "VyLmdpZg=="), "_aed8da0f1909" . "1214b78f80351" . "048517c" => base64_decode("c3RybGV" . "u"), "_5e9a99dc0dd49b907abf1b" . "35e96965f8" => base64_decode("dHJ" . "pbQ" . "=="), "_4ca36bbc" . "844fd9e04" . "b91f8a27c" . "589890" => base64_decode("Z2x5cGhpY29ucyBnbHlwa" . "Gljb25zLW1hcA=="), "_bc9f5b3b6a495ee55eb" . "b7158ab184dc4" => base64_decode("VVBEQVRFIEVSTVNfZGF0YSBTRVQgdGl" . "0bGU9c3RyOnRpdGxlIFdIRVJFIGlkPW" . "ludDppZA=="), "_b969b955d135537988" . "0c0b97b2e4f679" => base64_decode("Y2ZnX21hcmtlc" . "l9hdXRvX2dlbm" . "VyYXRpb25fcHJ" . "lZml4"), "_f1a1c12258c3395" . "42b5f89ca976d35f" . "1" => base64_decode("VVBEQVRFIEVSTVNfZGF0YSBTRVQgZGF0ZV9sYXN0X2FjY2Vzc2VkPW" . "ludDpkYXRlIFdIRVJFIGlkPWludDppZA=="));
use Claromentis\Core\Services;
use Claromentis\Documents\DocumentsApplication;
use Claromentis\Search\Indexing\IndexingQueue;





class ERMSMarker extends ERMSDataObj
{
    
    
    
    
    public function __construct()
    {
        parent::__construct(DOC_TYPE_MARKER);
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    public function Load($id, $_becefc630ea26637f10f240476e32255 = false)
    {
        $db = \Claromentis\Core\Services::I()->GetDb();
        if (!parent::Load($id, $_becefc630ea26637f10f240476e32255)) {
            return false;
        }
        $this->date_last_accessed = new Date();
        $db->unsafe_query = true;
        $db->query($GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_f1a1c12258c3" . "39542b5f89ca9" . "76d35f1"], $this->GetDate($this->date_last_accessed), $id);
        return true;
    }
    
    
    
    
    
    
    
    public function Save()
    {
        $db = Services::I()->GetDb();
        $_b34ab5f1ac69818b996067e04caa4631 = DocumentsApplication::getConfig();
        $_b969b955d1355379880c0b97b2e4f679 = $_b34ab5f1ac69818b996067e04caa4631->Get($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_b969b955d1355379" . "880c0b97b2e4f679"]);
        if (!parent::Save()) {
            return false;
        }
        if (!$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_aed8da0f19091214b78f8" . "0351048517c"]($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_5e9a99dc0dd" . "49b907abf1b3" . "5e96965f8"]($this->title)) > 0) {
            $title = $_b969b955d1355379880c0b97b2e4f679 . $this->doc_id;
            $db->query($GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_bc9f5b3b6a495ee55eb" . "b7158ab184dc4"], $title, $this->id);
        }
        IndexingQueue::Reindex($this->GetSearchType(), $this->doc_id);
        return true;
    }
    
    
    
    
    
    
    public function GetSmallIconUrl()
    {
        return $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_7a7cffa4d53ef9ebe07145b1a5b" . "f3d85"];
    }
    
    
    
    
    
    
    public function GetSmallIconCSSClass()
    {
        return $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_4ca36bbc844fd9e04b91f8a27c5898" . "90"];
    }
    protected function _NewObject()
    {
        return new ERMSMarker();
    }
}