Back to W3cLogger class

Method __construct

public
__construct
(array &$options)
Constructor.
Parameters
  • array & $options Log object options.
Since
  • 1.7.0
Class: W3cLogger
Project: Joomla

Method __construct - Source code

/**
 * Constructor.
 *
 * @param   array  &$options  Log object options.
 *
 * @since   1.7.0
 */
public function __construct(array &$options)
{
    // The name of the text file defaults to 'error.w3c.php' if not explicitly given.
    if (empty($options['text_file'])) {
        $options['text_file'] = 'error.w3c.php';
    }
    // Call the parent constructor.
    parent::__construct($options);
}