projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add interface PlIteraface and the corresponding abstract class
[platal.git]
/
classes
/
pllogger.php
diff --git
a/classes/pllogger.php
b/classes/pllogger.php
index
d8008e1
..
87ef69b
100644
(file)
--- a/
classes/pllogger.php
+++ b/
classes/pllogger.php
@@
-1,6
+1,6
@@
<?php
/*
<?php
/*
- * Copyright (C) 2003-20
09
Polytechnique.org
+ * Copyright (C) 2003-20
10
Polytechnique.org
* http://opensource.polytechnique.org/
*
* This program is free software; you can redistribute it and/or modify
* http://opensource.polytechnique.org/
*
* This program is free software; you can redistribute it and/or modify
@@
-43,18
+43,6
@@
abstract class PlLogger
*/
abstract public function isValid($uid);
*/
abstract public function isValid($uid);
- /** Build a logger.
- */
- public static function get($uid, $suid = 0)
- {
- if (defined('PL_LOGGER_CLASS')) {
- $class = PL_LOGGER_CLASS;
- return new $class($uid, $suid);
- } else {
- return new DummyLogger($uid, $suid);
- }
- }
-
/** Return a dummy logger.
*/
public static function dummy($uid, $suid = 0) {
/** Return a dummy logger.
*/
public static function dummy($uid, $suid = 0) {