Source for file w3c.php

Documentation is available at w3c.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Platform
  4.  * @subpackage  Log
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE
  8.  */
  9.  
  10. defined('JPATH_PLATFORM'or die;
  11.  
  12. /**
  13.  * Joomla! W3c Logging class
  14.  *
  15.  * This class is designed to build log files based on the W3c specification
  16.  * at: http://www.w3.org/TR/WD-logfile.html
  17.  *
  18.  * @package     Joomla.Platform
  19.  * @subpackage  Log
  20.  * @since       11.1
  21.  */
  22. {
  23.     /**
  24.      * @var    string  The format which each entry follows in the log file.  All fields must be
  25.      *  named in all caps and be within curly brackets eg. {FOOBAR}.
  26.      * @since  11.1
  27.      */
  28.     protected $format = '{DATE}    {TIME}    {PRIORITY}    {CLIENTIP}    {CATEGORY}    {MESSAGE}';
  29.  
  30.     /**
  31.      * Constructor.
  32.      *
  33.      * @param   array  &$options  Log object options.
  34.      *
  35.      * @since   11.1
  36.      */
  37.     public function __construct(array &$options)
  38.     {
  39.         // The name of the text file defaults to 'error.w3c.php' if not explicitly given.
  40.         if (empty($options['text_file']))
  41.         {
  42.             $options['text_file''error.w3c.php';
  43.         }
  44.  
  45.         // Call the parent constructor.
  46.         parent::__construct($options);
  47.     }
  48. }

Documentation generated on Tue, 19 Nov 2013 15:18:18 +0100 by phpDocumentor 1.4.3