aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions_history.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-01-24 12:50:48 +0000
committermistic100 <mistic@piwigo.org>2014-01-24 12:50:48 +0000
commit1f448f9b1e731688133a943fe451c3d73a3ae0c4 (patch)
tree47f93c6796f356bf15adc7307503fe42721e8d17 /admin/include/functions_history.inc.php
parent01324a50ad93d616a2b2ff3d0477ffbaa1a1ab95 (diff)
feature 2999; docblocks for history, install and metadata
git-svn-id: http://piwigo.org/svn/trunk@26946 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions_history.inc.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/admin/include/functions_history.inc.php b/admin/include/functions_history.inc.php
index 61d676503..938061e96 100644
--- a/admin/include/functions_history.inc.php
+++ b/admin/include/functions_history.inc.php
@@ -21,8 +21,17 @@
// | USA. |
// +-----------------------------------------------------------------------+
+/**
+ * @package functions\admin\history
+ */
+
+
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
+/**
+ * Init tabsheet for history pages
+ * @ignore
+ */
function history_tabsheet()
{
global $page, $link_start;
@@ -34,11 +43,22 @@ function history_tabsheet()
$tabsheet->assign();
}
+/**
+ * Callback used to sort history entries
+ */
function history_compare($a, $b)
{
return strcmp($a['date'].$a['time'], $b['date'].$b['time']);
}
+/**
+ * Perform history search.
+ *
+ * @param array $data - used in trigger_change
+ * @param array $search
+ * @param string[] $types
+ * @param array
+ */
function get_history($data, $search, $types)
{
if (isset($search['fields']['filename']))