HJI WP Membership Code Reference
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • Slipstream API Docs

Namespaces

  • hji
    • AgentRoster
      • controllers
      • models
      • utils
    • common
      • factories
      • interfaces
      • models
      • utils
    • construction
      • admin
        • controllers
        • models
      • core
      • front
        • controllers
      • interfaces
      • models
        • listings
        • subdivisions
      • views
    • geofarms
      • common
      • controllers
      • models
      • widgets
    • homevalue
      • controllers
      • core
        • abstracts
      • models
    • lifestylefinder
    • listingstoblog
      • controllers
    • membership
      • abstracts
      • controllers
      • entities
      • extension
        • abstracts
        • interfaces
      • factories
      • includes
      • interfaces
      • models
        • data
        • webservice
          • abstracts
          • actions
          • interfaces
      • observers
      • services
    • recentsales
      • controllers
      • tinymce
      • widgets
    • ResponsiveIDX
      • abstracts
      • adapters
      • controllers
      • core
        • abstracts
      • entities
      • models
      • services
      • tinymce
      • utils
      • widgets
    • schools
      • controllers
      • tinymce
      • widgets
    • users
      • abstracts
      • admin
        • controllers
        • models
      • controllers
      • core
        • abstracts
      • entities
      • models
      • utils
  • None
  • REL
    • controllers
    • Models
    • Taxonomies
    • Utils
      • Convert
    • widgets

Classes

  • APIClient
  • CommonScripts
  • Dependency
  • DependencyResolver
  • Dispatcher
  • Downloads
  • GForms
  • ProductManager
  • ProductRegistrar
  • RegistryEntry
  • RequireJs
  • Settings
  • UpdateManager

Functions

  • __inject_plugin_table
  • __inject_theme_table

Class Settings

Namespace: hji\membership\controllers
Located at classes/controllers/Settings.php

Methods summary

public
# __construct( )
public mixed
# preOptionsUpdate( $newValue, $oldValue )

Removes customer information from the Options if License Key has changed.

Removes customer information from the Options if License Key has changed.

This action will force Membership to fetch customer info during next authentication.

Parameters

$newValue
$oldValue

Returns

mixed
public
# onOptionsUpdated( )

Re-authenticates upon options update and executes settings-updated Membership hook.

Re-authenticates upon options update and executes settings-updated Membership hook.

public
# admin_init( )
public
# admin_menu( )
public
# addCRMLink( )

Adds HJI(IRE) CRM external link to the Admin Menu

Adds HJI(IRE) CRM external link to the Admin Menu

A dirty hack since we're modifying global $menu array directly.

public
# admin_scripts( )
public
# admin_notices( )

Renders admin notices related to Membership Settings

Renders admin notices related to Membership Settings

public
# renderSettingsPage( )

Renders settings page HTML

Renders settings page HTML

public
# setOptionsUpdatedNotice( )

Executes action hook "settings-updated" after WP redirects from options.php (upon form submission) back to the Membership settings page.

Executes action hook "settings-updated" after WP redirects from options.php (upon form submission) back to the Membership settings page.

This is important, since Membership re-authenticates and resets Customer Model upon redirection.

IMPORTANT: Making API calls before redirect, can lead to unexpected results, due to the fact that customer model still uses previous licensee information.

public boolean
# isUpdating( )

Determines if state of the Membership options is being currently updated via Settings form submission

Determines if state of the Membership options is being currently updated via Settings form submission

Returns

boolean
protected boolean
# licenseKeyChanged( $newOptions, $oldOptions )

Determines if license key was changed on Options Update

Determines if license key was changed on Options Update

Parameters

$newOptions
$oldOptions

Returns

boolean
protected mixed
# flushCustomerInfo( $options )

Removes customer information form given options

Removes customer information form given options

Parameters

$options

Returns

mixed
HJI WP Membership Code Reference API documentation generated by ApiGen