<?php
$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("_5d9771e9f2d18" . "80bedef6147f34" . "37484" => base64_decode("U0VMRUNUICogRlJPTSBFUk1TX3NjaGVkdWxlX2hvbGRzIFdIRVJFIG9iamVjdF9pZCA9IGludDpvYmplY3RfaWQgQU5EIGFn" . "Z3JlZ2F0aW9uID0gaW50OmFnZ3JlZ2F0aW9uIEFORCBwYXJlbnRfaWQgPSBpbnQ6cGFyZW50X2lk"), "_d479b59dd022e4a944c0ec1" . "b9f5f9302" => base64_decode("SU5TRVJUIElOVE8gRVJNU19zY2hlZHVsZV9ob2xkcyAob2JqZWN0X2lkLCBhZ2" . "dyZWdhdGlvbiwgcGFyZW50X2lkKSBWQUxVRVMgKGludDpvYmplY3RfaWQsIGlu" . "dDphZ2dyZWdhdGlvbiwgaW50OnBhcmVudF9pZCk="), "_6e38cb9e043a07cd69a17" . "11a6704c62a" => base64_decode("cGFyZW" . "50X2lk"), "_2c2ffe27f18d2bac1d2" . "7c5d98e7dff6b" => base64_decode("REVMRVRFIEZST00gRVJNU19zY2hlZHVsZV9ob2xkcyBXSEVSRSBvYmplY3RfaWQgPSBpbnQ6b2" . "JqZWN0X2lkIEFORCBhZ2dyZWdhdGlvbiA9IGludDphZ2dyZWdhdGlvbiBBTkQgcGFyZW50X2lk" . "ID0gaW50OnBhcmVudF9pZA=="), "_51b7f4bbc1" . "d1bb48c391d" . "e491e07df27" => base64_decode("ZG9jdW1lbnRzLmV" . "ybXNvYmplY3Qubm" . "90X2RlZmluZWQ="), "aggregati" . "on" => base64_decode("YWdncmVnYXRpb24" . "="), "_0c5123aa7" . "44f69bbc0e" . "8b3ea2f6e8" . "47d" => base64_decode("bG1" . "zZw" . "=="), "object_" . "id" => base64_decode("b2JqZWN" . "0X2lk"));
class ERMSDisposalHold extends ErrorHandler
{
    protected $object_id;
    protected $aggregation;
    protected $parent_id = 0;
    public function SetObjectById($object_id, $aggregation, $_6e38cb9e043a07cd69a1711a6704c62a)
    {
        $this->object_id = $object_id;
        $this->aggregation = $aggregation;
        $this->parent_id = $_6e38cb9e043a07cd69a1711a6704c62a;
        return true;
    }
    public function SetObject($_01ae63927cddbad58fea82ff8663c880)
    {
        if (!$_01ae63927cddbad58fea82ff8663c880) {
            return $this->SetErrMsg($GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_0c5123aa744f69bbc0e8b3ea2" . "f6e847d"]($GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_51b7f4b" . "bc1d1bb4" . "8c391de4" . "91e07df2" . "7"]));
        }
        $this->object_id = $_01ae63927cddbad58fea82ff8663c880->GetID();
        $this->aggregation = $_01ae63927cddbad58fea82ff8663c880->GetAggregation();
        $this->parent_id = $_01ae63927cddbad58fea82ff8663c880->GetParentID();
        return true;
    }
    public function Save()
    {
        $db = Claromentis\Core\Services::I()->GetDb();
        $this->Remove();
        $db->query($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_d479b59dd022e4a944c0ec1b9f5" . "f9302"], $this->object_id, $this->aggregation, $this->parent_id);
    }
    public function Load()
    {
        $db = Claromentis\Core\Services::I()->GetDb();
        if (!$this->object_id || !$this->aggregation) {
            return false;
        }
        $_189840d11056515e52402d1412a0b6e4 = $db->query($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_5d9771e9f2d" . "1880bedef614" . "7f3437484"], $this->object_id, $this->aggregation, $this->parent_id);
        if ($_b8cfc2e06d9d1fec1893ea4a054002bf = $_189840d11056515e52402d1412a0b6e4->fetchArray()) {
            $this->object_id = $_b8cfc2e06d9d1fec1893ea4a054002bf[$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["ob" . "je" . "ct" . "_i" . "d"]];
            $this->aggregation = $_b8cfc2e06d9d1fec1893ea4a054002bf[$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["aggregat" . "ion"]];
            $this->parent_id = $_b8cfc2e06d9d1fec1893ea4a054002bf[$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_6e38cb9e043a07cd69" . "a1711a6704c62a"]];
            return true;
        }
        return false;
    }
    
    
    
    
    public function Remove()
    {
        $db = Claromentis\Core\Services::I()->GetDb();
        $db->query($GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_2c2ffe27f18d2bac1d27c5" . "d98e7dff6b"], $this->object_id, $this->aggregation, $this->parent_id);
    }
}