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
73a11fe7
Commit
73a11fe7
authored
Apr 10, 2007
by
Penny Leach
Browse files
fixing [#625] resume render metadata
parent
7fa371f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/resume/lib.php
View file @
73a11fe7
...
...
@@ -502,6 +502,28 @@ abstract class ArtefactTypeResumeComposite extends ArtefactTypeResume {
return
$content
;
}
protected
function
get_metadata
(
$options
=
array
())
{
$data
=
parent
::
get_metadata
(
$options
);
if
(
isset
(
$options
[
'viewid'
])
&&
artefact_in_view
(
$id
=
$this
->
get
(
'id'
),
$options
[
'viewid'
]))
{
$data
[
'title'
][
'value'
]
=
'<a href="'
.
get_config
(
'wwwroot'
)
.
'view/view.php?view='
.
$options
[
'viewid'
]
.
'&artefact='
.
$id
.
'">'
.
$data
[
'title'
][
'value'
]
.
'</a>'
;
}
return
$data
;
}
protected
function
render_metadata
(
$options
)
{
$smarty
=
smarty
();
$data
=
$this
->
get_metadata
(
$options
);
$smarty
->
assign
(
'title'
,
$data
[
'title'
][
'value'
]);
$smarty
->
assign
(
'type'
,
get_string
(
$this
->
get
(
'artefacttype'
),
'artefact.resume'
));
$smarty
->
assign
(
'owner'
,
display_name
(
optional_userobj
(
$this
->
get
(
'owner'
))));
$smarty
->
assign
(
'nicectime'
,
format_date
(
$this
->
get
(
'ctime'
)));
$smarty
->
assign
(
'nicemtime'
,
format_date
(
$this
->
get
(
'mtime'
)));
return
array
(
'html'
=>
$smarty
->
fetch
(
'artefact/render_metadata.tpl'
),
'javascript'
=>
null
);
}
static
function
get_tablerenderer_title_js
(
$titlestring
,
$bodystring
)
{
return
"
function (r, d) {
...
...
Write
Preview
Supports
Markdown
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