Skip to content
GitLab
Menu
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
b4aa0c33
Commit
b4aa0c33
authored
Dec 04, 2006
by
Penny Leach
Browse files
the artefact base class now includes the artefact lib so you don't have
to. moved the format constants to lib/artefact.php
parent
3afc0113
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/lib.php
View file @
b4aa0c33
...
...
@@ -25,7 +25,7 @@
*/
defined
(
'INTERNAL'
)
||
die
();
require_once
(
'artefact.php'
);
/**
* Base artefact plugin class
...
...
htdocs/lib/artefact.php
View file @
b4aa0c33
...
...
@@ -27,6 +27,12 @@
defined
(
'INTERNAL'
)
||
die
();
define
(
'FORMAT_ARTEFACT_LISTSELF'
,
'listself'
);
define
(
'FORMAT_ARTEFACT_LISTCHILDREN'
,
'listchildren'
);
define
(
'FORMAT_ARTEFACT_RENDERFULL'
,
'renderfull'
);
define
(
'FORMAT_ARTEFACT_RENDERMETADATA'
,
'rendermetadata'
);
/**
* Given an artefact plugin name, this function will test if
* it's installable or not. If not, InstallationException will be thrown.
...
...
htdocs/lib/template.php
View file @
b4aa0c33
...
...
@@ -28,11 +28,6 @@ defined('INTERNAL') || die();
define
(
'TEMPLATE_RENDER_READONLY'
,
1
);
define
(
'TEMPLATE_RENDER_EDITMODE'
,
2
);
define
(
'FORMAT_ARTEFACT_LISTSELF'
,
'listself'
);
define
(
'FORMAT_ARTEFACT_LISTCHILDREN'
,
'listchildren'
);
define
(
'FORMAT_ARTEFACT_RENDERFULL'
,
'renderfull'
);
define
(
'FORMAT_ARTEFACT_RENDERMETADATA'
,
'rendermetadata'
);
function
template_parse
(
$templatename
)
{
$t
=
array
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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