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

  • AreaCache
  • CMB
  • CPT
  • FrontEnd
  • Settings
  • Shortcodes
  • Slipstream
  • Taxonomy
  • TinyMCE
  • UpdateNeighborhoods

Class AreaCache

Class AreaCache

Namespace: hji\geofarms\controllers
Package: hji\geofarms\controllers
Since: 1.1.6
Located at classes/controllers/AreaCache.php

Methods summary

public
# __construct( )
public
# create_area_cache_json_callback( )

Callback for JSON Admin Command A button on the GeoFarms settings page triggers this callback which fires the generateGeoFarmsTransient() method.

Callback for JSON Admin Command A button on the GeoFarms settings page triggers this callback which fires the generateGeoFarmsTransient() method.

Since

1.1.6
public integer
# generateGeoFarmsTransient( boolean $refresh = false )

Gets our GeoFarms areas map data and stores them in a transient array.

Gets our GeoFarms areas map data and stores them in a transient array.

Parameters

$refresh

Returns

integer

Since

1.1.6
public
# retrieveGeoFarmsMarkets( null $post_id = null )

Save MLS markets array Generates an array of MLS markets that each area can be associated with. For use with the area cache. Uses the map (community object) that is associated with the area. Triggered automatically by mapGeoFarmArea()

Save MLS markets array Generates an array of MLS markets that each area can be associated with. For use with the area cache. Uses the map (community object) that is associated with the area. Triggered automatically by mapGeoFarmArea()

Parameters

$post_id

Since

1.1.6
public boolean
# mapGeoFarmArea( null $post_id = null )

Generate map data from slipstream for one or more GeoFarm areas If you pass a post ID(s) to this method, it will run against only those post IDs. If no post ID is passed, it will run on all areas in the database. Calls retrieveGeoFarmsMarkets() when finished. Uses the polygon ID from the shortcode entered into the listing display area of the area.

Generate map data from slipstream for one or more GeoFarm areas If you pass a post ID(s) to this method, it will run against only those post IDs. If no post ID is passed, it will run on all areas in the database. Calls retrieveGeoFarmsMarkets() when finished. Uses the polygon ID from the shortcode entered into the listing display area of the area.

Parameters

$post_id

Returns

boolean

Since

1.1.6
public
# bulk_post_admin_footer( )

Loads JS Bulk Edit On the GeoFarms area list page the following method adds JS to the admin which creates our new bulk action select

Loads JS Bulk Edit On the GeoFarms area list page the following method adds JS to the admin which creates our new bulk action select

Since

1.1.6

Output

JS to footer
public
# bulk_post_action( )

Custom Bulk Post Action Callback This method is trigger when a user chooses to bulk generate new maps for selected GeoFarms areas from the post list table.

Custom Bulk Post Action Callback This method is trigger when a user chooses to bulk generate new maps for selected GeoFarms areas from the post list table.

Since

1.1.6
public
# bulk_post_admin_notices( )

Custom Bulk Actions Admin Notices Creates and displays the admin notices of the custom bulk action above.

Custom Bulk Actions Admin Notices Creates and displays the admin notices of the custom bulk action above.

Since

1.1.6

Properties summary

public static $postArgs
#
public static $areas
#
public static $membership
#
public static $apiController
#
public static $geoAreaTransient
#
protected $postType
#
HJI WP Membership Code Reference API documentation generated by ApiGen