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
- hji\membership\abstracts\Component
- hji\membership\extension\abstracts\Component implements hji\membership\extension\interfaces\ExtensionInterface
- hji\construction\core\Component
- 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
Namespace: hji\construction\core
Package: hji\construction\core
Located at Core/DataObjectPostView.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
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. |
protected
|
|
protected
|
|
protected
mixed
|
#
_getModelName( $dataObject )
Returns name of the data model, so it can assigned to the post object as a property. |
Methods inherited from hji\membership\extension\abstracts\Component
getMembershipServices()
,
getProjectRoute()
,
getServices()
,
membershipServices()
,
services()
Methods inherited from hji\membership\abstracts\Component
Methods inherited from hji\membership\services\DependencyInjector
Properties summary
protected
|
$model
|
|
protected
|
$postContentTemplate
|
|
protected
|
$postExcerptTemplate
|
|
protected
|
$cacheTransport
|