Class IdxApp
Class Component to use for extending components, controllers and models in other plugins
- hji\membership\services\DependencyInjector
- hji\membership\abstracts\Component
- hji\membership\extension\abstracts\Component implements hji\membership\extension\interfaces\ExtensionInterface
- hji\ResponsiveIDX\core\abstracts\Component
- hji\ResponsiveIDX\core\Controller
- hji\ResponsiveIDX\controllers\BaseController
- hji\ResponsiveIDX\controllers\IdxApp
Package: hji\membership\extension\abstracts
Codecoverageignore
Located at classes/controllers/IdxApp.php
Methods summary
public
|
|
public static
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public static
|
|
public static
|
|
public
|
#
loadJsVars( )
Creates rIDXdata JavaScript object with rIDX related data and loads it on the page before DOM is ready. |
public
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
#
preactivate( $q )
this is a roundabout way to make sure that any other plugin / widget / etc that uses the WP_Query object doesn't get our IDX data in their query. since we don't actually get the query itself in the "the_posts" filter, we have to step around the issue by checking it BEFORE it gets to the the_posts filter. later, i n the the_posts filter, we restore the previous state of things. |
public
mixed
|
#
listingPermalink( $permalink, $post, $leavename )
Returns correct listing URL when get_permalink() is being called on listing details pages. page_link filter implementation |
public
mixed
|
#
removeIdxSearchWidgetSortcode( $content )
Removes idx search widget shortcode from content to avoid duplication on a search results page. Bad logic... |
public
|
#
preprocessQueryParams( )
If search is initiated pre-process parameters and trigger next action. This should be before any content is rendered (before headers sent). |
public
boolean|string
|
|
public
boolean|string
|
#
renderSearchResultsView(
Renders search results view |
public
boolean|string
|
#
getIdxContentView(
Returns IDX content view from whatever action was set: search results; listing details, scrolling listings etc. |
public
array|boolean
|
|
public
array
|
#
getPostObj( $listing, $title, $content, $slug )
Generating a fake post object for listing details page this object is exactly the same as WP native post object created during the_posts filter |
public static
boolean|string
|
|
public
|
|
public
|
|
public
string
|
Methods inherited from hji\ResponsiveIDX\core\abstracts\Component
Methods inherited from hji\membership\extension\abstracts\Component
getMembershipServices()
,
getProjectRoute()
,
getServices()
,
membershipServices()
,
services()
Methods inherited from hji\membership\services\DependencyInjector
Properties summary
public
|
$settingsController
|
|
public
|
$idxSearchModel
|
|
public
|
$searchParams
|
|
public
|
$shortcodesModel
|
|
public
boolean
|
$is_listing_details_page
Set if current page is listing details |
#
false
|
public
boolean
|
$is_listing_print_page
Set if current page is a listing print page |
#
false
|
public static
boolean
|
$jsVars
|
#
false
|