Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
forena
Commits
b63e4cfd
Commit
b63e4cfd
authored
Jan 24, 2014
by
metzlerd
Browse files
Adding new myreports renderer to render columns from particular
categories.
parent
38feede6
Changes
2
Hide whitespace changes
Inline
Side-by-side
forena.module
View file @
b63e4cfd
...
...
@@ -1090,11 +1090,17 @@ function forena_forena_controls() {
'file'
=>
'renderers/FrxXML.inc'
,
'class'
=>
'FrxXML'
,
);
$controls
[]
=
array
(
'file'
=>
'renderers/FrxInclude.inc'
,
'class'
=>
'FrxInclude'
,
);
$controls
[]
=
array
(
'file'
=>
'renderers/FrxMyReports.inc'
,
'class'
=>
'FrxMyReports'
,
);
$controls
[]
=
array
(
'file'
=>
'renderers/FrxParameterForm.inc'
,
'class'
=>
'FrxParameterForm'
,
...
...
renderers/FrxMyReports.inc
0 → 100644
View file @
b63e4cfd
<?php
class
FrxMyReports
extends
FrxRenderer
{
/*
* This custom renderer uses the existing forena reports module
*/
public
function
render
()
{
$variables
=
$this
->
replacedAttributes
();
$category
=
isset
(
$variables
[
'category'
])
?
$variables
[
'category'
]
:
''
;
if
(
user_access
(
'list reports'
))
{
return
forena_user_reports
(
$category
);
}
}
}
\ No newline at end of file
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