Back to Language class

Method setDebug

public bool
setDebug
(mixed $debug)
Set the Debug property.
Parameters
  • bool $debug The debug setting.
Returns
  • bool Previous value.
Since
  • 1.7.0
Class: Language
Project: Joomla

Method setDebug - Source code

/**
 * Set the Debug property.
 *
 * @param   boolean  $debug  The debug setting.
 *
 * @return  boolean  Previous value.
 *
 * @since   1.7.0
 */
public function setDebug($debug)
{
    $previous = $this->debug;
    $this->debug = (bool) $debug;
    return $previous;
}