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
fusiondirectory
fusiondirectory
Commits
9d861dd4
Commit
9d861dd4
authored
Mar 02, 2015
by
Côme Bernigaud
Committed by
Benoit Mortier
Mar 02, 2015
Browse files
Fixes
#3595
Cleaned dashboard and added reporting menu section
parent
65f9cca5
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/addons/dashboard/class_dashBoard.inc
View file @
9d861dd4
<?php
/*
* This code is part of FusionDirectory (http://www.fusiondirectory.org)
* Copyright (C) 2010 Antoine Gallavardin
* Copyright (C) 2011-201
3
FusionDirectory project
* Copyright (C)
2010 Antoine Gallavardin
* Copyright (C)
2011-201
5
FusionDirectory project
*
* 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
...
...
@@ -21,8 +21,30 @@
class
dashboard
extends
simplePlugin
{
/* Generic */
var
$view_logged
=
FALSE
;
static
function
plInfo
()
{
return
array
(
'plShortName'
=>
_
(
'Dashboard'
),
'plDescription'
=>
_
(
'Statistics and various informations'
),
'plIcon'
=>
'geticon.php?context=applications&icon=utilities-system-monitor&size=48'
,
'plObjectType'
=>
array
(
'dashboard'
=>
array
(
'name'
=>
_
(
'Dashboard'
))),
'plSection'
=>
array
(
'reporting'
=>
array
(
'name'
=>
_
(
'Reporting'
),
'priority'
=>
30
)),
'plPriority'
=>
0
,
'plProvidedAcls'
=>
array
()
);
}
static
function
getAttributesInfo
()
{
return
array
(
'stats'
=>
array
(
'name'
=>
_
(
'Statistics'
),
'attrs'
=>
array
(
new
FakeAttribute
(
'stats'
)),
'template'
=>
get_template_path
(
'main_stats.tpl'
,
TRUE
,
dirname
(
__FILE__
)),
),
);
}
function
__construct
(
&
$config
,
$dn
=
NULL
,
$object
=
NULL
)
{
...
...
@@ -31,7 +53,7 @@ class dashboard extends simplePlugin
$this
->
stats
=
$this
->
overview_stats
();
}
/* Compute some statistics */
/* Compute some statistics */
function
overview_stats
()
{
$ldap
=
$this
->
config
->
get_ldap_link
();
...
...
@@ -74,31 +96,5 @@ class dashboard extends simplePlugin
return
$stats
;
}
static
function
getAttributesInfo
()
{
return
array
(
'stats'
=>
array
(
'name'
=>
_
(
'Statistics'
),
'attrs'
=>
array
(
new
FakeAttribute
(
'stats'
)),
'template'
=>
get_template_path
(
'main_stats.tpl'
,
TRUE
,
dirname
(
__FILE__
)),
),
);
}
/* Return plugin informations for acl handling */
static
function
plInfo
()
{
return
array
(
'plShortName'
=>
_
(
'Dashboard'
),
'plDescription'
=>
_
(
'Statistics and various informations'
),
'plIcon'
=>
'geticon.php?context=applications&icon=utilities-system-monitor&size=48'
,
'plObjectType'
=>
array
(
'dashboard'
=>
array
(
'name'
=>
_
(
'Dashboard'
))),
'plSection'
=>
'addons'
,
'plPriority'
=>
2
,
'plProvidedAcls'
=>
array
()
);
}
}
?>
Côme Chilliet
@cchilliet
mentioned in issue
#1199 (closed)
·
Sep 02, 2017
mentioned in issue
#1199 (closed)
mentioned in issue #1199
Toggle commit list
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