<?php
namespace Claromentis\Documents\Event;

$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"] ?: array()) + array("_d0845bff5cd0ddb5ed1d7bd9db9" . "96f51" => base64_decode("c291" . "cmNl"), "typ" . "e" => base64_decode("dHlwZ" . "Q=="), "_32155ccb34" . "2f199043093" . "041c1b3bb57" => base64_decode("ZnJvbV9mb2xkZ" . "XJfaWQ="), "_80e7ee43f" . "df838101a2" . "303a7b4a50" . "efc" => base64_decode("dG9fZm9sZG" . "VyX2lk"), "_2e858fb1973337f53ff85" . "c104fcb38f4" => base64_decode("cHVibGlza" . "GVk"), "_4c760fb02a49c55509ba087b84fb" . "da45" => base64_decode("ZHJhZnQ" . "="), "_939c6a45ff74323dbef487ed1575" . "3a7c" => base64_decode("c3" . "Rh" . "dG" . "U="));
use Claromentis\Core\Event\GenericEvent;


class AddDocumentEvent extends GenericEvent
{
    const STATE_DRAFT = 1;
    const STATE_PUBLISHED = 2;
    
    
    
    
    private $error_message = '';
    public function GetState()
    {
        return $this->getArgument($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_939c6a45ff74323dbef487ed157" . "53a7c"]);
    }
    public function GetStateName()
    {
        if ($this->getArgument($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_939c6a4" . "5ff74323" . "dbef487e" . "d15753a7" . "c"]) == self::STATE_DRAFT) {
            return $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_4c760fb02" . "a49c55509b" . "a087b84fbd" . "a45"];
        }
        return $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_2e858fb1973337f53ff85c104fcb38f" . "4"];
    }
    public function GetType()
    {
        return $this->getArgument($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["t" . "y" . "p" . "e"]);
    }
    
    
    
    
    public function GetTypeName()
    {
        return \ERMSDocTypes::GetName($this->getArgument($GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["ty" . "pe"]));
    }
    public function GetSource()
    {
        return $this->getArgument($GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_d0845bff5cd0ddb" . "5ed1d7bd9db996f5" . "1"]);
    }
    public function GetFromFolderId()
    {
        return $this->getArgument($GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_32155ccb" . "342f19904" . "3093041c1" . "b3bb57"]);
    }
    public function GetToFolderId()
    {
        return $this->getArgument($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_80e7ee43fdf838101a2303a7" . "b4a50efc"]);
    }
    public function GetErrorMessage()
    {
        return $this->error_message;
    }
    public function SetErrorMessage($error_message)
    {
        $this->error_message = $error_message;
    }
}