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

  • Component
  • Controller
  • DataModel
  • DataObjectPostView
  • Model
  • Paths
  • PostModel
  • WebService
  • Widget

Class DataObjectPostView

Class DataObjectPostView

This view model automatically hooks into the WP process and generates post object with ready-to-render post content based on the data model passed into it.

hji\membership\services\DependencyInjector
Extended by hji\membership\abstracts\Component
Extended by hji\membership\extension\abstracts\Component implements hji\membership\extension\interfaces\ExtensionInterface
Extended by hji\construction\core\Component
Extended by hji\construction\core\DataObjectPostView

Direct known subclasses

hji\construction\views\ListingsView, hji\construction\views\SubdivisionsView

Abstract
Namespace: hji\construction\core
Package: hji\construction\core
Located at Core/DataObjectPostView.php

Methods summary

public
# __construct( $dataModel )
public
# getPosts( $posts, $query )
public
# removeAutoP( $content )
public
# createPosts( $dataArray )
public hji\construction\core\PostModel
# createPost( $dataObject )

Creates Post Object (the one that WP converts to WP_Post) with post_content and post_excerpt fully rendered in HTML based on the passed API data model.

Creates Post Object (the one that WP converts to WP_Post) with post_content and post_excerpt fully rendered in HTML based on the passed API data model.

Parameters

$dataObject

Returns

hji\construction\core\PostModel
protected
# _getPostContentData( $post, $dataObject )
protected
# _getPostExcerptData( $post, $dataObject )
protected mixed
# _getModelName( $dataObject )

Returns name of the data model, so it can assigned to the post object as a property.

Returns name of the data model, so it can assigned to the post object as a property.

Example: ListingModel will return listing and will be represented as $post->listing = $listingModel;

Parameters

$dataObject

Returns

mixed

Methods inherited from hji\membership\extension\abstracts\Component

getMembershipServices(), getProjectRoute(), getServices(), membershipServices(), services()

Methods inherited from hji\membership\abstracts\Component

getServiceContainer()

Methods inherited from hji\membership\services\DependencyInjector

di()

Properties summary

protected $model
#
protected $postContentTemplate
#
protected $postExcerptTemplate
#
protected $cacheTransport
#
HJI WP Membership Code Reference API documentation generated by ApiGen