\AYAH
Synopsis
class AYAH
{
- // members
- protected string $ayah_publisher_key = '';
- protected string $ayah_scoring_key = '';
- protected string $ayah_web_service_host = 'ws.areyouahuman.com';
- protected boolean $ayah_debug_mode = FALSE;
- protected boolean $ayah_use_curl = TRUE;
- protected $session_secret;
- protected array $__valid_construct_params = ;
- protected array $__message_buffer = ;
- protected string $__version_number = '1.1.7';
- // methods
- public void __construct()
- public string getPublisherHTML()
- public boolean scoreResult()
- public boolean recordConversion()
- protected void doHttpsPostReturnJSONArray()
- protected void doHttpsPost()
- protected void doJSONArrayDecode()
- public boolean debug_mode()
- public string get_version_number()
- private boolean __use_curl()
- private boolean __load_config_file()
- protected null __log()
- private void __flush_message_buffer()
Members
protected
- $__message_buffer
- $__valid_construct_params
- $__version_number
- $ayah_debug_mode
- $ayah_publisher_key
- $ayah_scoring_key
- $ayah_use_curl
- $ayah_web_service_host
- $session_secret
Methods
private
- __flush_message_buffer()
- __load_config_file() — Load the config file.
- __use_curl() — Determine whether or not cURL is available to use.
protected
- __log() — Log a message
- doHttpsPost()
- doHttpsPostReturnJSONArray() — Do a HTTPS POST, return some JSON decoded as array (Internal function)
- doJSONArrayDecode()
public
- __construct() — Constructor If the session secret exists in input, it grabs it
- debug_mode() — Get the current debug mode (TRUE or FALSE)
- getPublisherHTML() — Returns the markup for the PlayThru
- get_version_number() — Get the current version number
- recordConversion() — Records a conversion Called on the goal page that A and B redirect to A/B Testing Specific Function
- scoreResult() — Check whether the user is a human Wrapper for the scoreGame API call