Overview

Namespaces

  • GLFramework
    • Cache
    • Controller
    • DaMa
      • Manipulators
    • Database
    • HTTP
    • Mail
    • Middleware
    • Model
    • Module
    • Tests
    • Upload
    • Utils
  • None

Classes

  • GLFramework\Bootstrap
  • GLFramework\Cache\Cache
  • GLFramework\Cache\MemcachedCache
  • GLFramework\Cache\MemoryCache
  • GLFramework\Controller
  • GLFramework\Controller\AdminController
  • GLFramework\Controller\APIController
  • GLFramework\Controller\AuthController
  • GLFramework\Controller\ErrorController
  • GLFramework\Controller\ExceptionController
  • GLFramework\DaMa\Association
  • GLFramework\DaMa\DataManipulation
  • GLFramework\DaMa\Manipulator
  • GLFramework\DaMa\Manipulators\CSVManipulator
  • GLFramework\DaMa\Manipulators\ManipulatorCore
  • GLFramework\DaMa\Manipulators\XLSManipulator
  • GLFramework\DaMa\Manipulators\XLSXManipulator
  • GLFramework\Database\Connection
  • GLFramework\Database\MySQLConnection
  • GLFramework\DatabaseManager
  • GLFramework\DBStructure
  • GLFramework\Events
  • GLFramework\Filesystem
  • GLFramework\HTTP\API
  • GLFramework\Log
  • GLFramework\Mail
  • GLFramework\Mail\Mail
  • GLFramework\Mail\MailSystem
  • GLFramework\Mail\PHPMailer
  • GLFramework\MailView
  • GLFramework\Middleware\APIAuthorizationMiddleware
  • GLFramework\Middleware\ControllerMiddleware
  • GLFramework\Model
  • GLFramework\Model\Page
  • GLFramework\Model\User
  • GLFramework\Model\UserPage
  • GLFramework\ModelResult
  • GLFramework\Module\Module
  • GLFramework\Module\ModuleManager
  • GLFramework\Request
  • GLFramework\Response
  • GLFramework\Tests\DatabaseTestCase
  • GLFramework\Tests\TestCase
  • GLFramework\Upload\Upload
  • GLFramework\Upload\Uploads
  • GLFramework\Utils\DataTablesManager
  • GLFramework\Versions
  • GLFramework\View

Interfaces

  • GLFramework\Middleware

Functions

  • array_merge_recursive_ex
  • e
  • file_get_php_classes
  • fix_date
  • fix_date_format
  • fix_decimal
  • fix_url
  • get
  • get_php_classes
  • http_response_code
  • instance_method
  • is_module_enabled
  • now
  • post
  • print_array
  • print_brief_debug
  • print_debug
  • random_str
  • reArrayFiles
  • reArrayPost
  • today
  • Overview
  • Namespace
  • Class
 1: <?php
 2: /**
 3:  * Created by PhpStorm.
 4:  * User: manus
 5:  * Date: 14/03/16
 6:  * Time: 13:08
 7:  */
 8: 
 9: namespace GLFramework;
10: 
11: 
12: use Psr\Log\AbstractLogger;
13: 
14: class Log extends AbstractLogger
15: {
16: 
17:     private static $instance;
18: 
19:     /**
20:      * Log constructor.
21:      */
22:     public function __construct()
23:     {
24:         self::$instance = $this;
25:     }
26: 
27:     /**
28:      * @return Log
29:      */
30:     public static function getInstance()
31:     {
32:         if(self::$instance == null) self::$instance = new Log();
33:         return self::$instance;
34:     }
35: 
36: 
37: 
38:     /**
39:      * Logs with an arbitrary level.
40:      *
41:      * @param mixed $level
42:      * @param string $message
43:      * @param array $context
44:      * @return null
45:      */
46:     public function log($level, $message, array $context = array())
47:     {
48:         // TODO: Implement log() method.
49:         if(!in_array('events', $context))
50:             Events::fire('onLog', array($message, $level));
51:     }
52: 
53:     public static function em($message, array $context = array())
54:     {
55:         self::getInstance()->emergency($message, $context); // TODO: Change the autogenerated stub
56:     }
57: 
58:     public static function a($message, array $context = array())
59:     {
60:         self::getInstance()->alert($message, $context); // TODO: Change the autogenerated stub
61:     }
62: 
63:     public static function c($message, array $context = array())
64:     {
65:         self::getInstance()->critical($message, $context); // TODO: Change the autogenerated stub
66:     }
67: 
68:     public static function e($message, array $context = array())
69:     {
70:         self::getInstance()->error($message, $context); // TODO: Change the autogenerated stub
71:     }
72: 
73:     public static function w($message, array $context = array())
74:     {
75:         self::getInstance()->warning($message, $context); // TODO: Change the autogenerated stub
76:     }
77: 
78:     public static function n($message, array $context = array())
79:     {
80:         self::getInstance()->notice($message, $context); // TODO: Change the autogenerated stub
81:     }
82: 
83:     public static function i($message, array $context = array())
84:     {
85:         self::getInstance()->info($message, $context); // TODO: Change the autogenerated stub
86:     }
87: 
88:     public static function d($message, array $context = array())
89:     {
90:         self::getInstance()->debug($message, $context); // TODO: Change the autogenerated stub
91:     }
92: 
93: 
94: }
API documentation generated by ApiGen