API Documentation

# \Base_MixpanelBase

This a Base class which all Mixpanel classes extend from to provide some very basic debugging and logging functionality. It also serves to persist $_options across the library.

## Summary

Methods
Properties
Constants
__construct()
No public properties found
No constants found
_log()
_debug()
$_options
N/A
No private methods found
$_defaults
N/A

File
  Base/MixpanelBase.php
Package
  Default
Class hierarchy
  \Base_MixpanelBase

## Tags

None found

## Properties

### $_options

    $_options : array

An array of options to be used by the Mixpanel library.

#### Type

array

#

## Tags

None found

### $_defaults

    $_defaults : array

Default options that can be overridden via the $options constructor arg

#### Type

array

#

## Tags

None found

## Methods

### __construct()

    __construct(array  $options = array())

Construct a new MixpanelBase object and merge custom options with defaults

#### Parameters

array | $options |

#

## Tags

None found

### _log()

    _log(  $msg)

Log a message to PHP's error log

#### Parameters

| $msg |

#

## Tags

None found

### _debug()

    _debug() : boolean

Returns true if in debug mode, false if in production mode

#### Returns

boolean

#

## Tags

None found

### MixpanelBase.php