parent
144b94dbdb
commit
32c7c9b980
@ -0,0 +1,40 @@ |
|||||||
|
<?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>'; |
||||||
|
} |
||||||
|
} |
||||||
|
?> |
Loading…
Reference in new issue