Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-27 11:16:41 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-27 11:16:41 +0400
commit5f93048baac056265f58576d58cfa37ba4dfe488 (patch)
tree993a51f81d73760d965521e4cb80246f2b281bf2 /core
parente9124635e97f7536ccd4055a020b7f0e22937c7f (diff)
More documentation.
Diffstat (limited to 'core')
-rw-r--r--core/Error.php35
-rw-r--r--core/ExceptionHandler.php7
2 files changed, 32 insertions, 10 deletions
diff --git a/core/Error.php b/core/Error.php
index abf1aee9b0..02e8d1fcdc 100644
--- a/core/Error.php
+++ b/core/Error.php
@@ -14,42 +14,61 @@ use Piwik\Log;
use Piwik\Version;
/**
- * TODO
+ * Holds PHP error information (non-exception errors). Also contains log formatting logic
+ * for PHP errors and Piwik's error handler function.
*/
class Error
{
/**
- * TODO
+ * The backtrace string to use when testing.
+ *
+ * @var string
*/
public static $debugBacktraceForTests = null;
/**
- * TODO
+ * The error number. See http://php.net/manual/en/errorfunc.constants.php#errorfunc.constants.errorlevels
+ *
+ * @var int
*/
public $errno;
/**
- * TODO
+ * The error message.
+ *
+ * @var string
*/
public $errstr;
/**
- * TODO
+ * The file in which the error occurred.
+ *
+ * @var string
*/
public $errfile;
/**
- * TODO
+ * The line number on which the error occurred.
+ *
+ * @var int
*/
public $errline;
/**
- * TODO
+ * The error backtrace.
+ *
+ * @var string
*/
public $backtrace;
/**
- * TODO
+ * Constructor.
+ *
+ * @param int $errno
+ * @param string $errstr
+ * @param string $errfile
+ * @param int $errline
+ * @param string $backtrace
*/
public function __construct($errno, $errstr, $errfile, $errline, $backtrace)
{
diff --git a/core/ExceptionHandler.php b/core/ExceptionHandler.php
index 47cfa12634..b070766db8 100644
--- a/core/ExceptionHandler.php
+++ b/core/ExceptionHandler.php
@@ -18,12 +18,15 @@ use Piwik\FrontController;
use Piwik\API\ResponseBuilder;
/**
- * TODO
+ * Contains Piwik's uncaught exception handler and log file formatting for exception
+ * instances.
*/
class ExceptionHandler
{
/**
- * TODO
+ * The backtrace string to use when testing.
+ *
+ * @var string
*/
public static $debugBacktraceForTests = null;