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

  • ListingViewModel
  • rIDXImport
  • Upgrades

Class ListingViewModel

Namespace: REL\Models
Located at classes/models/ListingViewModel.php

Methods summary

public
# __construct( $post_obj )
public stdClass
# getListing( )

Returns Listing Object

Returns Listing Object

Returns

stdClass
protected null|string
# getAddress( )

Returns concatenated property address

Returns concatenated property address

Returns

null|string
protected null|string
# getMainPhoto( )

Returns main photo of the listing

Returns main photo of the listing

Returns

null|string
protected string
# getMainPhotoURL( )

Returns URL of the listing thumbnail or false if it's not available

Returns URL of the listing thumbnail or false if it's not available

Returns

string
protected null|string
# getPhotoGallery( )

Returns additional listing photos

Returns additional listing photos

Returns

null|string
public null|string
# getMainDetails( )

Returns HTML markup for main listing details snippet

Returns HTML markup for main listing details snippet

Returns

null|string
protected
# _toPriceFormat( $value )

Converts integer to formatted $price. Strips $ and , if they were entered by user into input field.

Converts integer to formatted $price. Strips $ and , if they were entered by user into input field.

Since

2.2.4
protected null|string
# getMap( )

Returns Google Map based on listing post meta-fields data: address, latitude, longitude

Returns Google Map based on listing post meta-fields data: address, latitude, longitude

Returns

null|string
protected null|string
# getStreetView( )

Returns Google StreetView Map based on listing post meta-fields data: address, latitude, longitude

Returns Google StreetView Map based on listing post meta-fields data: address, latitude, longitude

Returns

null|string
protected null|string
# getBirdsEyeView( )

Returns Bing's Birds-Eye View iFrame based on listing post meta-fields data: latitude, longitude

Returns Bing's Birds-Eye View iFrame based on listing post meta-fields data: latitude, longitude

Returns

null|string
public mixed
# getVideo( )

Returns HTML content with oEmbed video

Returns HTML content with oEmbed video

Returns

mixed

Since

2.0.0
protected string
# getContactForm( )

Returns basic lead generation/contact form

Returns basic lead generation/contact form

Returns

string
protected array|null
# getAddressArray( )

Returns array of address parameters

Returns array of address parameters

Returns

array|null
protected string|false
# getMeta( $field_id )

Returns listing's meta field value

Returns listing's meta field value

Parameters

$field_id
ID WITHOUT meta prefix

Returns

string|false

Since

2.0.0
public string|null
# getTaxonomies( )

Returns HTML for listing taxonomies linked to their respective pages

Returns HTML for listing taxonomies linked to their respective pages

Returns

string|null
public
# getMetaKeys( )

Returns keys of all available cusotm meta fields

Returns keys of all available cusotm meta fields

Since

2.0.0

Properties summary

public $metaboxes
#
public $taxonomies
#
HJI WP Membership Code Reference API documentation generated by ApiGen