Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/main/coursecopy/classes/wiki.class.php

40 lines
973 B

<?php
require_once('resource.class.php');
/**
* Class for migrating the wiki
*
*@author Matthias Crauwels <matthias.crauwels@UGent.be>, Ghent University
*/
class Wiki extends Resource
{
var $id;
var $reflink;
var $title;
var $content;
var $user_id;
var $group_id;
var $timestamp;
var $template;
var $menu;
function Wiki($id, $reflink, $title, $content, $user_id, $group_id, $timestamp, $template, $menu)
{
parent::Resource($id,RESOURCE_WIKI);
$this->reflink = $reflink;
$this->title = $title;
$this->content = $content;
$this->user_id = $user_id;
$this->group_id = $group_id;
$this->dtime = $timestamp;
$this->template = $template;
$this->menu = $menu;
}
function show()
{
parent::show();
echo $this->reflink.' ('. (empty($this->group_id) ? get_lang('Everyone') : get_lang('Group') . ' ' . $this->group_id) .') ' . '<i>(' . $this->dtime . ')</i>';
}
}
?>