Overview

Packages

  • ACF
  • Automation
    • Actions
    • Activation
    • LeadProfile
    • Menus
    • Queries
    • Rules
    • Triggers
  • CTA
    • Activation
    • AJAXListeners
    • Cloning
    • Core
    • Display
    • EditPage
    • Enqueues
    • GPLSettings
    • LeadsProfile
    • Loading
    • Menus
    • Notices
    • PlacementMetabox
    • PostType
    • Templates
    • Tracking
    • Variations
    • YOAST
  • InboundPro
    • Activation
    • AdminAJAX
    • AutoLoading
    • Cron
    • DataInterface
    • FieldMapping
    • Funnels
    • InboundNowAPI
    • Installer
    • LeadStatuses
    • Menus
    • Notifications
    • Ouath
    • Reports
    • Settings
    • Tracking
    • Translations
    • Updates
  • LandingPages
    • Activation
    • DataInterfaces
    • Management
    • Menus
    • NeedsAttention
    • Notices
    • Sidebars
    • Templates
    • Tracking
    • Variations
    • WelcomeScreen
    • Widgets
  • Leads
    • Activation
    • Akismet
    • BranchControl
    • BulkActions
    • Dashboard
    • Management
    • Notifications
    • Settings
    • Tracking
    • UserProfile
    • WPLogin
  • Mailer
    • Activation
    • Admin
    • ClickTracking
    • DataInterface
    • InboundForms
    • Leads
    • Management
    • Notifications
    • Scheduling
    • Sending
    • Settings
    • ShortcodesAndTokens
    • SparkPost
    • Templates
    • Unsubscribes
    • Variations
    • YoastSEO
  • None
  • Shared
    • APIs
    • CPT
    • DatabaseRoutines
    • DebugTricks
    • DoubleOptin
    • EventManagement
    • FieldMapping
    • InboundForms
    • LeadSorage
    • MarketingButton
    • Menus
    • Notifications
    • Shortcodes
    • ShortcodesAndTokens
    • StandAloneLicensing
    • Tracking
    • VisualEditor
  • xDepreciated

Classes

  • Inbound_Mailer_SparkPost
  • Inbound_Maintenance_Lists
  • Inbound_SparkPost
  • Inbound_SparkPost_Stats
  • Overview
  • Package
  • Class

Class Inbound_SparkPost_Stats

Class Inbound_SparkPost_Stats provides webhook listeners and data storage and retrieval methods related to email stats

Package: Mailer\SparkPost
Located at core/mailer/classes/class.statistics.sparkpost.php
Methods summary
public
# __construct( )
public static
# add_hooks( )
public static
# get_sparkpost_webhook_stats( )

Get SparkPost Stats including varition totals

Get SparkPost Stats including varition totals

public static
# get_sparkpost_inbound_events( $email_id, $variation_id = null , $job_id = null )

Get all all custom event data by a certain indicator

Get all all custom event data by a certain indicator

public static
# process_selected_rows( $query )

Processes queried rows into action counts

Processes queried rows into action counts

public static
# get_statistics_object( )

Get stats object from db

Get stats object from db

public static
# get_sparkpost_timestamp( DATETIME $timestamp )

Converts gmt timestamps to correct timezones

Converts gmt timestamps to correct timezones

Parameters

$timestamp
timestamp in gmt before calculating timezone
public static
# get_send_stream( )

Pull data from Mandrill based on email id and variation id

Pull data from Mandrill based on email id and variation id

public static
# timezone_check( $timezone )

Timezone check

Timezone check

public static
# update_statistics_object( )

Update db stats object

Update db stats object

public static
# process_variation_totals( )

build variation totals

build variation totals

public static
# prepare_date_range( )

Prepares dates to process

Prepares dates to process

public static
# prepare_totals( ARRAY $stats,… )

Totals variation stats to create an aggregated statistic total_stat

Totals variation stats to create an aggregated statistic total_stat

Parameters

$stats,…
array of variations with email statics

Returns

ARRAY $stats array of variations with email statics and aggregated statistics
public static
# prepare_empty_stats( )

Returns an array of zeros for email statistics

Returns an array of zeros for email statistics

public static
# prepare_unsubscribes( )

Returns an array of zeros for email statistics

Returns an array of zeros for email statistics

public static
# prepare_mutes( )

Returns an array of zeros for email statistics

Returns an array of zeros for email statistics

public static
# create_sparkpost_webhooks( $field )
public static
# sparkpost_activation_routines( $field )

Parameters

$field
public static
# process_webhook( )
public static
# process_send_event( $transmission_args, $response )

Check SparkPost Response for Errors and Handle them

Check SparkPost Response for Errors and Handle them

public static
# process_rejections( $transmission_args, $response )

Check SparkPost Response for Errors and Handle them

Check SparkPost Response for Errors and Handle them

public static
# unschedule_email( $email_id )
public static
# display_api_status( $field )

Display API status inside settings area

Display API status inside settings area

Parameters

$field
Properties summary
public static $settings
#
public static $results
#
public static $email_id
#
public static $vid
#
public static $stats
#
public static $timemarker
#
Inbound Pro Plugin - PHP Codex API documentation generated by ApiGen