API15

JLog/setOptions: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
Line 47: Line 47:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=setOptions
  category=setOptions
  category=JLog
  category=JLog
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 00:56, 25 March 2017

Description

Set log file options

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

setOptions($options)
Parameter Name Default Value Description
$options $options Associative array of options to set

Returns

boolean True if successful

Defined in

libraries/joomla/error/log.php

Importing

jimport( 'joomla.error.log' );

Source Body

function setOptions($options) {

        if (isset ($options['format'])) {
                $this->_format = $options['format'];
        }
        return true;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples