From: <ok...@us...> - 2003-01-07 21:33:01
|
Update of /cvsroot/xoops/xoops2/kernel/comment/object In directory sc8-pr-cvs1:/tmp/cvs-serv14503/kernel/comment/object Added Files: comment.php Log Message: added global comments feature --- NEW FILE: comment.php --- <?php // $Id: comment.php,v 1.1 2003/01/07 21:32:56 okazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // // <http://www.xoops.org/> // // ------------------------------------------------------------------------ // // 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. // // // // You may not change or alter any portion of this comment or credits // // of supporting developers from this source code or any supporting // // source code which is considered copyrighted (c) material of the // // original comment or credit authors. // // // // 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // // Author: Kazumi Ono (AKA onokazu) // // URL: http://www.xoops.org/ http://jp.xoops.org/ http://www.myweb.ne.jp/ // // Project: The XOOPS Project (http://www.xoops.org/) // // ------------------------------------------------------------------------- // require_once XOOPS_ROOT_PATH.'/kernel/object/object/object.php'; class XoopsComment extends XoopsObject { function XoopsComment() { $this->XoopsObject(); $this->initVar('com_id', XOBJ_DTYPE_INT, NULL, false); $this->initVar('com_pid', XOBJ_DTYPE_INT, 0, false); $this->initVar('com_modid', XOBJ_DTYPE_INT, NULL, false); $this->initVar('com_icon', XOBJ_DTYPE_OTHER, NULL, false); $this->initVar('com_title', XOBJ_DTYPE_TXTBOX, NULL, true, 255, true); $this->initVar('com_text', XOBJ_DTYPE_TXTAREA, NULL, true, NULL, true); $this->initVar('com_created', XOBJ_DTYPE_INT, 0, false); $this->initVar('com_modified', XOBJ_DTYPE_INT, 0, false); $this->initVar('com_uid', XOBJ_DTYPE_INT, 0, true); $this->initVar('com_ip', XOBJ_DTYPE_OTHER, NULL, false); $this->initVar('com_sig', XOBJ_DTYPE_INT, 0, false); $this->initVar('com_itemid', XOBJ_DTYPE_INT, 0, false); $this->initVar('com_rootid', XOBJ_DTYPE_INT, 0, false); $this->initVar('com_status', XOBJ_DTYPE_INT, 0, false); $this->initVar('dohtml', XOBJ_DTYPE_INT, 0, false); $this->initVar('dosmiley', XOBJ_DTYPE_INT, 0, false); $this->initVar('doxcode', XOBJ_DTYPE_INT, 0, false); $this->initVar('doimage', XOBJ_DTYPE_INT, 0, false); $this->initVar('dobr', XOBJ_DTYPE_INT, 0, false); } function isRoot() { return ($this->getVar('com_id') == $this->getVar('com_rootid')); } } ?> |