Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
81c2b50d
Commit
81c2b50d
authored
Nov 28, 2006
by
Richard Mansfield
Browse files
Moved basic file plugin stuff into its own directories
parent
0616cb7f
Changes
7
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/db/install.xml
0 → 100644
View file @
81c2b50d
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB
PATH=
"lib/db"
VERSION=
"20060926"
COMMENT=
"XMLDB file for Mahara files plugin tables"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"../../lib/xmldb/xmldb.xsd"
>
<TABLES>
<TABLE
NAME=
"artefact_file_files"
>
<FIELDS>
<FIELD
NAME=
"id"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
<FIELD
NAME=
"owner"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
<FIELD
NAME=
"artefact"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"id"
/>
<KEY
NAME=
"ownerfk"
TYPE=
"foreign"
FIELDS=
"owner"
REFTABLE=
"usr"
REFFIELDS=
"id"
/>
<KEY
NAME=
"artefactfk"
TYPE=
"foreign"
FIELDS=
"artefact"
REFTABLE=
"artefact"
REFFIELDS=
"id"
/>
</KEYS>
</TABLE>
</TABLES>
</XMLDB>
htdocs/artefact/file/db/upgrade.php
0 → 100644
View file @
81c2b50d
<?php
/**
* This program is part of Mahara
*
* 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.
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package mahara
* @subpackage artefact-file
* @author Penny Leach <penny@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
*
*/
defined
(
'INTERNAL'
)
||
die
();
function
xmldb_artefact_file_upgrade
(
$oldversion
=
0
)
{
$status
=
true
;
return
$status
;
}
?>
htdocs/artefact/file/index.php
0 → 100644
View file @
81c2b50d
<?php
/**
* This program is part of Mahara
*
* 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.
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package mahara
* @subpackage artefact-file
* @author Martyn Smith <martyn@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
*
*/
define
(
'INTERNAL'
,
1
);
define
(
'MENUITEM'
,
'myfiles'
);
require
(
dirname
(
dirname
(
dirname
(
__FILE__
)))
.
'/init.php'
);
safe_require
(
'artefact'
,
'file'
);
$smarty
=
smarty
();
$smarty
->
display
(
'artefact:file:index.tpl'
);
?>
htdocs/artefact/file/lang/en.utf8/artefact.file.php
0 → 100644
View file @
81c2b50d
<?php
/**
* This program is part of Mahara
*
* 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.
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package mahara
* @subpackage lang
* @author Martyn Smith <martyn@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
*
*/
defined
(
'INTERNAL'
)
||
die
();
$string
[
'file'
]
=
'file'
;
$string
[
'folder'
]
=
'folder'
;
$string
[
'image'
]
=
'image'
;
$string
[
'myfiles'
]
=
'My Files'
;
?>
htdocs/artefact/file/lib.php
0 → 100644
View file @
81c2b50d
<?php
/**
* This program is part of Mahara
*
* 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.
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package mahara
* @subpackage artefact-internal
* @author Penny Leach <penny@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
*
*/
defined
(
'INTERNAL'
)
||
die
();
class
ArtefactTypeFolder
extends
ArtefactType
{
public
function
commit
()
{
$this
->
commit_basic
();
}
public
function
delete
()
{
$this
->
delete_basic
();
}
public
function
render
(
$format
,
$options
)
{
}
public
function
get_icon
()
{
}
public
static
function
get_render_list
()
{
}
public
static
function
can_render_to
(
$format
)
{
}
public
static
function
collapse_config
()
{
return
'file'
;
}
}
class
ArtefactTypeFile
extends
ArtefactType
{
public
function
commit
()
{
$this
->
commit_basic
();
}
public
function
delete
()
{
$this
->
delete_basic
();
}
public
function
render
(
$format
,
$options
)
{
}
public
function
get_icon
()
{
}
public
static
function
get_render_list
()
{
}
public
static
function
can_render_to
(
$format
)
{
}
public
static
function
has_config
()
{
return
true
;
}
public
static
function
get_config_options
()
{
return
array
();
// @todo
}
}
class
ArtefactTypeImage
extends
ArtefactTypeFile
{
public
static
function
collapse_config
()
{
return
'file'
;
}
}
?>
htdocs/artefact/file/theme/default/index.tpl
0 → 100644
View file @
81c2b50d
{
include
file
=
"header.tpl"
}
{
include
file
=
"adminmenu.tpl"
}
<div
class=
"content"
>
<h2>
{
str
section
=
"artefact.file"
tag
=
"myfiles"
}
</h2>
</div>
{
include
file
=
"footer.tpl"
}
htdocs/artefact/file/version.php
0 → 100644
View file @
81c2b50d
<?php
/**
* This program is part of Mahara
*
* 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.
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package mahara
* @subpackage artefact-file
* @author Penny Leach <penny@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
*
*/
defined
(
'INTERNAL'
)
||
die
();
$config
=
new
StdClass
;
$config
->
version
=
2006112800
;
$config
->
release
=
'0.1'
;
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment