projects
/
mw_actions_logs
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
syntaxe POO (visibilité)
[mw_actions_logs]
/
app
/
data
/
modules
/
sql
/
mw_data_actions_logs.php
diff --git
a/app/data/modules/sql/mw_data_actions_logs.php
b/app/data/modules/sql/mw_data_actions_logs.php
index
2a7902e
..
86eee85
100644
(file)
--- a/
app/data/modules/sql/mw_data_actions_logs.php
+++ b/
app/data/modules/sql/mw_data_actions_logs.php
@@
-6,7
+6,7
@@
// config
//
// config
//
- function get_actions_logs_config(){
+
public
function get_actions_logs_config(){
$env = $this->env();
return array(
"do_log" => $env->config("actions_logs_do_log") ? true : false,
$env = $this->env();
return array(
"do_log" => $env->config("actions_logs_do_log") ? true : false,
@@
-16,7
+16,7
@@
);
}
);
}
- function set_actions_logs_config($params = array()){
+
public
function set_actions_logs_config($params = array()){
if(isset($params["do_log"])){
if(!$this->set_config("actions_logs_do_log", $params["do_log"] ? 1 : 0)){
return false;
if(isset($params["do_log"])){
if(!$this->set_config("actions_logs_do_log", $params["do_log"] ? 1 : 0)){
return false;
@@
-44,7
+44,7
@@
// actions
//
// actions
//
- function clear_logs_actions(){
+
public
function clear_logs_actions(){
$sgbd = $this->sgbd();
try{
$sgbd->query("DELETE FROM #--logs_actions");
$sgbd = $this->sgbd();
try{
$sgbd->query("DELETE FROM #--logs_actions");
@@
-57,7
+57,7
@@
// logs
//
// logs
//
- function add_action_log($params = array()){
+
public
function add_action_log($params = array()){
$env = $this->env();
$sgbd = $this->sgbd();
$log = array();
$env = $this->env();
$sgbd = $this->sgbd();
$log = array();
@@
-83,7
+83,7
@@
return true;
}
return true;
}
- function clear_actions_logs(){
+
public
function clear_actions_logs(){
$sgbd = $this->sgbd();
try{
$sgbd->query("DELETE FROM #--actions_logs");
$sgbd = $this->sgbd();
try{
$sgbd->query("DELETE FROM #--actions_logs");
@@
-93,5
+93,3
@@
}
}
}
}
-
-?>
\ No newline at end of file