All pastes #13369 Raw Edit

Paste

public php v1 · immutable
#13369 ·published 2005-06-04 11:31 UTC
rendered paste body
<?php/* * PHPasteBin - A PasteBin written in PHP * Copyright (C) 2005 Jeroen Budts * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. */using("entities.BaseEntity");/** * A class representing one single paste. * * @package be_lightyear_phpastebin * @subpackage entities * @filesource */class Paste extends BaseEntity {	/**	 * The name of the paste.	 * @var string the name	 * @access private	 */	var $_name;	/**	 * The description of the paste.	 * @var string the description	 * @access private	 */	var $_description;	/**	 * The user that created this paste.	 * @var User the owner	 * @access private	 */	var $_owner;	/**	 * The highlighter used for this paste.	 * @var Highlighter highlighter	 * @access private	 */	var $_highlight;	/**	 * The content of the paste.	 * @var string the content	 * @access private	 */	var $_content;	/**	 * Is the paste public or private?	 * @var boolean is it public?	 * @access private	 */	var $_public;	/**	 * The id of the parent paste, if one.	 * @var int id of the parent	 * @access private	 */	var $_parentId;	/**	 * The timestamp on which the paste was created.	 * @var Date timestamp	 * @access private	 */	var $_timestamp;	/**	 * Timestamp on which the paste expires and may be deleted.	 * @var Date expire timestamp	 * @access private	 */	var $_expiration;	/**	 * @see $_name	 */	function getName() {		return $this->_name;	}	/**	 * @see $_name	 */	function setName($name) {		$this->_name = $name;	}	/**	 * @see $_description	 */	function getDescription() {		return $this->_description;	}	/**	 * @see $_description	 */	function setDescription($description) {		$this->_description = $description;	}	/**	 * @see $_owner	 */	function getOwner() {		return $this->_owner;	}	/**	 * @see $_owner	 */	function setOwner($owner) {		$this->_owner = $owner;	}	/**	 * @see $_highlight	 */	function getHighlighter() {		return $this->_highlight;	}	/**	 * @see $_highlight	 */	function setHighlighter($highlighter) {		$this->_highlight = $highlighter;	}	/**	 * @see $_content	 */	function getContent() {		return $this->_content;	}	/**	 * @see $_content	 */	function setContent($content) {		$this->_content = $content;	}	/**	 * @see $_public	 */	function isPublic() {		return $this->_public;	}	/**	 * @see $_public	 */	function setPublic($public) {		$this->_public = $public;	}	/**	 * @see $_parentId	 */	function getParentId() {		return $this->_parentId;	}	/**	 * @see $_parentId	 */	function setParentId($parentId) {		$this->_parentId = $parentId;	}	/**	 * @see $_timestamp	 */	function getTimestamp() {		return $this->_timestamp;	}	/**	 * @see $_timestamp	 */	function setTimestamp($timestamp) {		$this->_timestamp = $timestamp;	}	/**	 * @see $_expiration	 */	function getExpiration() {		return $this->_expiration;	}	/**	 * @see $_expiration	 */	function setExpiration($expiration) {		$this->_expiration = $expiration;	}}/*_____edit rules_____________________________________________________http://jedit.org:mode=php:tabSize=4:indentSize=4:noTabs=false:encoding=UTF-8:wrap=none:folding=java:*/?>