<?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. *//** * PHPasteBin - A PasteBin written in PHP. * * @author Jeroen Budts * @copyright copyright (c) 2005 Jeroen Budts * @license http://opensource.org/licenses/gpl-license.php GNU Public License * * @package be_lightyear_phpastebin * @subpackage entities *//** * The base entity class. * * @abstract * @package be_lightyear_phpastebin * @subpackage entities */class BaseEntity { /** * The id of the entity. * @var int the id * @access private */ var $_id = null; /** * Gets the id. */ function getId() { return $this->_id; } /** * Sets the id. * * @param int $id the id of the entity * @access private */ function _setId($id) { $this->_id = $id; } /** * Entities should implement this method and return an array * describing their properties. * * The array should have the following structure: * <pre> * ['table_name'] = tablename * ['fields'] = array with all the fields * [0] = first field * ['table_field'] = fieldname in the database * ['property_name'] = name of the property in the entity * [1] = second field * ... * </pre> * * @return array the propertiesinfo * @static */ function getPersistencyInfo() { return null; }}/*_____edit rules_____________________________________________________http://jedit.org:mode=php:tabSize=4:indentSize=4:noTabs=false:encoding=UTF-8:wrap=none:folding=java:*/?>