Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • areyouahuman
      • auth
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
        • default
      • exchange
        • rates
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • quickbooks
            • invoice
      • json
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • recaptcha
      • reports
        • aging
          • invoices
        • custom
          • report
        • invoice
          • creation
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • form
      • html
      • javascript
      • xml
    • lib
  • None
  • PHP

Classes

  • AdminController
  • AYAH
  • Backup
  • ClientController
  • Ldap

Class AYAH

Direct known subclasses

Areyouahuman

Located at helpers/areyouahuman/lib/AYAH/AYAH.php

Methods summary

public
# __construct( string $publisherKey, string $scoringKey, string $webServiceHost = 'ws.areyouahuman.com' )

Constructs a new AYAH instance and grabs the session secret if it exists.

Constructs a new AYAH instance and grabs the session secret if it exists.

Parameters

$publisherKey
string
$publisherKey
$scoringKey
string
$scoringKey
$webServiceHost
string
$webServiceHost

Throws

InvalidArgumentException
public
# setSessionSecret( string $secret )

Sets the session secret.

Sets the session secret.

Parameters

$secret
string
$secret
public string
# getPublisherHTML( mixed $config = array() )

Returns the markup for PlayThru.

Returns the markup for PlayThru.

Returns

string
public boolean
# scoreResult( )

Check whether the user is a human. Wrapper for the scoreGame API call

Check whether the user is a human. Wrapper for the scoreGame API call

Returns

boolean
public boolean
# recordConversion( )

Records a conversion Called on the goal page that A and B redirect to A/B Testing Specific Function

Records a conversion Called on the goal page that A and B redirect to A/B Testing Specific Function

Returns

boolean
protected
# doHttpsPostReturnJSONArray( mixed $hostname, mixed $path, mixed $fields )

Do an HTTPS POST, return some JSON decoded as array.

Do an HTTPS POST, return some JSON decoded as array.

Parameters

$hostname
mixed
$host hostname
$path
mixed
$path path
$fields
mixed
$fields associative array of fields return array Decoded json structure or empty data structure
protected Ambigous
# doHttpsPost( string $hostname, string $path, array $fields )

Initiate a request to the AYAH web service through curl or using a socket if the system does not have curl available.

Initiate a request to the AYAH web service through curl or using a socket if the system does not have curl available.

Parameters

$hostname
string
$hostname
$path
string
$path
$fields
array
$fields

Returns

Ambigous
<string, mixed>

Magic methods summary

Properties summary

protected string $publisherKey
#

The developer publisher key.

The developer publisher key.

protected string $scoringKey
#

The developer scoring key.

The developer scoring key.

protected string $webService
#

The webservice url to use in validating AYAH requests.

The webservice url to use in validating AYAH requests.

protected string $sessionSecret
#

A session secret to be used in determining which AYAH request the library is dealing with.

A session secret to be used in determining which AYAH request the library is dealing with.

protected string $version
#
Blesta API documentation generated by ApiGen 2.8.0