Mercurial > defr > DualBlog
comparison includes/class.dataaccess.php @ 87:249de0d66f8c
Data Access: Ajout d'un helper pour nettoyer les données
author | Franck Deroche <franck@defr.org> |
---|---|
date | Sun, 02 Dec 2018 21:31:19 +0100 |
parents | e4e50d4d3b7a |
children | e37ef9a81737 |
comparison
equal
deleted
inserted
replaced
86:2a03eac5e9ca | 87:249de0d66f8c |
---|---|
72 } | 72 } |
73 | 73 |
74 function formatDate($timestamp, $decallage=2, $pattern='d/m/Y H:i:s') { | 74 function formatDate($timestamp, $decallage=2, $pattern='d/m/Y H:i:s') { |
75 return gmdate($pattern, $timestamp + $decallage * 3600); | 75 return gmdate($pattern, $timestamp + $decallage * 3600); |
76 } | 76 } |
77 | |
78 function escapeString($string) { | |
79 return mysqli_escape_string($this->link, $string); | |
80 } | |
77 | 81 |
78 function isInError() | 82 function isInError() |
79 { | 83 { |
80 return $this->_inError; | 84 return $this->_inError; |
81 } | 85 } |