<?php

class TrashVO
{
	var $trashSrl;
	var $title;
	var $originModule;
	var $serializedObject;
	var $unserializedObject;
	var $description;
	var $ipaddress;
	var $removerSrl;
	var $userId;
	var $nickName;
	var $regdate;

	function getTrashSrl()
	{
		return $this->trashSrl;
	}
	function setTrashSrl($trashSrl)
	{
		$this->trashSrl = $trashSrl;
	}
	function getTitle()
	{
		if(empty($this->title)) return lang('untitle');
		return escape($this->title, false);
	}
	function setTitle($title)
	{
		$this->title = $title;
	}
	function getOriginModule()
	{
		if(empty($this->originModule)) return 'document';
		return $this->originModule;
	}
	function setOriginModule($originModule)
	{
		$this->originModule = $originModule;
	}
	function getSerializedObject()
	{
		return $this->serializedObject;
	}
	function setSerializedObject($serializedObject)
	{
		$this->serializedObject = $serializedObject;
	}
	function getUnserializedObject()
	{
		return $this->unserializedObject;
	}
	function setUnserializedObject($serializedObject)
	{
		$this->unserializedObject = unserialize($serializedObject);
	}
	function getDescription()
	{
		return htmlspecialchars($this->description, ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
	}
	function setDescription($description)
	{
		$this->description = $description;
	}
	function getIpaddress()
	{
		return $this->ipaddress;
	}
	function setIpaddress($ipaddress)
	{
		$this->ipaddress = $ipaddress;
	}
	function getRemoverSrl()
	{
		return $this->removerSrl;
	}
	function setRemoverSrl($removerSrl)
	{
		$this->removerSrl = $removerSrl;
	}
	function getUserId()
	{
		return $this->userId;
	}
	function setUserId($userId)
	{
		$this->userId = $userId;
	}
	function getNickName()
	{
		return escape($this->nickName, false);
	}
	function setNickName($nickName)
	{
		$this->nickName = $nickName;
	}
	function getRegdate()
	{
		if(empty($this->regdate)) return date('YmdHis');

		return $this->regdate;
	}
	function setRegdate($regdate)
	{
		$this->regdate = $regdate;
	}
}

/* End of file Trash.php */
/* Location: ./modules/trash/model/Trash.php */
