PHP Class KM

Exibir arquivo Open project: kissmetrics/kissmetrics Class Usage Examples

Public Properties

Property Type Description
$VERSION
$epoch
$host used for testing only atm.
$id
$key
$log_dir
$logs
$query_line
$to_stderr
$use_cron

Public Methods

Method Description
alias ( $name, $alias_to )
array_get ( $array, $key, $default = null, $treat_empty_as_not_set = false )
error_handler ( $errno, $errstr, $errfile, $errline )
identify ( $id )
init ( $key, $options = [] )
record ( $action, $props = [] )
send_logged_queries ( )
set ( $array )

Protected Methods

Method Description
epoch ( )
generate_query ( $type, $data, $update = true )
is_identified ( )
is_initialized ( )
is_initialized_and_identified ( )
is_log_dir_writable ( ) #### PROTECTED #############################################################
log ( $type, $msg )
log_error ( $msg )
log_name ( $type )
log_query ( $msg )
log_send ( $msg )
reset ( )
send_query ( $query )

Method Details

alias() static public method

static public alias ( $name, $alias_to )

array_get() static public method

static public array_get ( $array, $key, $default = null, $treat_empty_as_not_set = false )

epoch() protected static method

protected static epoch ( )

error_handler() static public method

static public error_handler ( $errno, $errstr, $errfile, $errline )

generate_query() protected static method

protected static generate_query ( $type, $data, $update = true )

identify() static public method

static public identify ( $id )

init() static public method

static public init ( $key, $options = [] )

is_identified() protected static method

protected static is_identified ( )

is_initialized() protected static method

protected static is_initialized ( )

is_initialized_and_identified() protected static method

protected static is_initialized_and_identified ( )

is_log_dir_writable() protected static method

#### PROTECTED #############################################################
protected static is_log_dir_writable ( )

log() protected static method

protected static log ( $type, $msg )

log_error() protected static method

protected static log_error ( $msg )

log_name() protected static method

protected static log_name ( $type )

log_query() protected static method

protected static log_query ( $msg )

log_send() protected static method

protected static log_send ( $msg )

record() static public method

static public record ( $action, $props = [] )

reset() protected static method

protected static reset ( )

send_logged_queries() static public method

static public send_logged_queries ( )

send_query() protected static method

protected static send_query ( $query )

set() static public method

static public set ( $array )

Property Details

$VERSION static_oe public_oe property

static public $VERSION

$epoch static_oe public_oe property

static public $epoch

$host static_oe public_oe property

used for testing only atm.
static public $host

$id static_oe public_oe property

static public $id

$key static_oe public_oe property

static public $key

$log_dir static_oe public_oe property

static public $log_dir

$logs static_oe public_oe property

static public $logs

$query_line static_oe public_oe property

static public $query_line

$to_stderr static_oe public_oe property

static public $to_stderr

$use_cron static_oe public_oe property

static public $use_cron