12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- /* For licensing terms, see /license.txt */
- require_once('Resource.class.php');
- /**
- * Wiki backup script
- * @package chamilo.backup
- */
- /**
- * Class for migrating the wiki
- *
- *@author Matthias Crauwels <matthias.crauwels@UGent.be>, Ghent University
- */
- class Wiki extends Resource
- {
- var $id;
- var $page_id;
- var $reflink;
- var $title;
- var $content;
- var $user_id;
- var $group_id;
- var $timestamp;
- var $progress;
- var $version;
- function Wiki($id, $page_id, $reflink, $title, $content, $user_id, $group_id, $timestamp, $progress, $version)
- {
- parent::Resource($id,RESOURCE_WIKI);
- $this->id = $id;
- $this->page_id = $page_id;
- $this->reflink = $reflink;
- $this->title = $title;
- $this->content = $content;
- $this->user_id = $user_id;
- $this->group_id = $group_id;
- $this->dtime = $timestamp;
- $this->progress = $progress;
- $this->version = $version;
- }
- function show()
- {
- parent::show();
- echo $this->reflink.' ('. (empty($this->group_id) ? get_lang('Everyone') : get_lang('Group') . ' ' . $this->group_id) .') ' . '<i>(' . $this->dtime . ')</i>';
- }
- }
|