/** * Comment object constructor * * @param int $comment_id * @return comment * @access public */ function comment($comment_id) { $this->_id = intval(zoom::escapeString($comment_id)); $this->_getInfo(); }
/** * Delete a comment * * @param int $delComment * @return void * @access public */ function delComment($delComment) { global $database, $zoom; $database->setQuery("DELETE FROM #__zoom_comments WHERE cmtid=" . intval(zoom::escapeString($delComment))); $database->query(); $zoom->EditMon->purgeComments($this->_id); $this->getComments(); }
/** * Ecard object constructor * * @param int $id * @return ecard * @access public */ function ecard($id = 0) { $this->_user_ip = getenv('REMOTE_ADDR'); if ($id === 0) { $this->_id = date("U") . rand(100, 500); } else { $this->_id = zoom::escapeString($id); $this->getInfo(); } }