Gravity Forms Checkout for Easy Digital Downloads  1.2.1
Integrate Gravity Forms purchases with Easy Digital Downloads
 All Classes Functions Pages
Public Member Functions | List of all members
KWS_GF_EDD_Admin Class Reference

Public Member Functions

 __construct ()
 
 register_no_conflict ($registered)
 
 enable_gform_logging ($supported_plugins=array())
 
 gravity_forms_required ()
 
 admin_enqueue_scripts ()
 
 admin_init ()
 
 check_for_variations ()
 
 results_per_page ($per_page)
 
 editor_script ()
 
 product_field ($position, $form_id)
 
 options_field ($position, $form_id)
 
 gf_tooltips ($tooltips)
 

Constructor & Destructor Documentation

KWS_GF_EDD_Admin::__construct ( )

Add hooks and setup licensing

Member Function Documentation

KWS_GF_EDD_Admin::admin_enqueue_scripts ( )

Add scripts to the admin.

KWS_GF_EDD_Admin::admin_init ( )

Add hooks and license stuff

Todo:
Hook up the license functionality
KWS_GF_EDD_Admin::check_for_variations ( )

Get the price variations for an EDD product

Returns
string JSON-encoded array of price variations
KWS_GF_EDD_Admin::editor_script ( )

Output binding JS for when GF fields are shown in admin

KWS_GF_EDD_Admin::enable_gform_logging (   $supported_plugins = array())

Add this plugin to GF logging

Parameters
array$logging_supportedExisting integrations using GF logging
Returns
array Modified list, including this plugin
KWS_GF_EDD_Admin::gf_tooltips (   $tooltips)

Add a variations tooltip

Parameters
array$tooltipsOriginal tooltips array
Returns
array Modified array
KWS_GF_EDD_Admin::gravity_forms_required ( )

Print an admin notice that Gravity Forms is necessary for this plugin.

KWS_GF_EDD_Admin::options_field (   $position,
  $form_id 
)

Output field HTML for GF "Product Options" variations

Parameters
int$positionCurrent position on GF field
int$form_idThe current GF form ID
KWS_GF_EDD_Admin::product_field (   $position,
  $form_id 
)

Add a "Connect to EDD Download" select box to GF product fields

Parameters
int$positionCurrent position on GF field
int$form_idThe current GF form ID
KWS_GF_EDD_Admin::register_no_conflict (   $registered)

Allow EDD GF scripts to be shown with Gravity Forms No-Conflict Mode

Since
1.0.4
Parameters
array$registeredAllowed scripts or styles for GF
Returns
array Allowed scripts or styles for GF, with EDDGF added
KWS_GF_EDD_Admin::results_per_page (   $per_page)

Modify the number of results fetched by EDD

This allows all downloads to be shown in the dropdown. Hopefully, not a ton, otherwise it'll get heavy!

Parameters
int$per_pagePrevious results per page setting
Returns
int New results per page setting. If you have this many, you're in trouble.

The documentation for this class was generated from the following file: