1 | <?php |
||
8 | class CLog |
||
9 | { |
||
10 | /** |
||
11 | * Properties |
||
12 | * |
||
13 | */ |
||
14 | private $timestamp = array(); |
||
15 | private $pos = 0; |
||
16 | |||
17 | /** |
||
18 | * Constructor |
||
19 | * |
||
20 | */ |
||
21 | 1 | public function __construct() { |
|
23 | |||
24 | /** |
||
25 | * Timestamp, log a event with a time. |
||
26 | * |
||
27 | * @param string $domain is the module or class. |
||
28 | * @param string $where a more specific place in the domain. |
||
29 | * @param string $comment on the timestamp. |
||
30 | * |
||
31 | */ |
||
32 | 1 | public function Timestamp($domain, $where, $comment=null) { |
|
47 | |||
48 | /** |
||
49 | * |
||
50 | */ |
||
51 | 1 | public function getTimestamp() { |
|
54 | |||
55 | /** |
||
56 | * Print page load time. |
||
57 | * |
||
58 | * @return string with the page load time. |
||
59 | * |
||
60 | */ |
||
61 | public function getPageLoadTime() { |
||
67 | |||
68 | /** |
||
69 | * Print memory peak. |
||
70 | * |
||
71 | * @return string with the memory peak. |
||
72 | * |
||
73 | */ |
||
74 | public function getMemoryPeak() { |
||
78 | |||
79 | /* |
||
80 | * Test if class is loaded |
||
81 | */ |
||
82 | public function saySomething($word) { |
||
85 | } |
||
86 |