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

  • APIClient
  • Cookies
  • GFHelper
  • HTTP
  • ipAddress
  • MetaBoxes
  • Modal
  • Paths
  • SiteInfo
  • String
  • Updater
  • Validator
  • View
  • Views
  • WPCache
  • WPHelper

Class Views

Namespace: hji\common\utils
Located at common/utils/Views.php

Methods summary

public
# __construct( $templatesDir = null )
public
# setTextdomain( $textdomain )

Sets the text domain variable for templates

Sets the text domain variable for templates

Parameters

$textdomain
public
# setFileName( $fileName )

Sets the filename for the template

Sets the filename for the template

Parameters

$fileName
public
# getFileName( )
public
# set( $name, $value )

Setter for template variables array

Setter for template variables array

Parameters

$name
$value
public null
# get( $name )

Getter for template variables array

Getter for template variables array

Parameters

$name

Returns

null
protected null|
# _validateFile( $fileName )

Validates that a filename was passed correctly when calling render method

Validates that a filename was passed correctly when calling render method

Parameters

$fileName

Returns

null|
protected boolean|
# _prepareVars( $vars,… )

Prepares and validates we've passed template variables

Prepares and validates we've passed template variables

Parameters

$vars,…

Returns

boolean|
protected string
# _locateTemplate( boolean|false $fileName = false )

Locates the template for rendering

Locates the template for rendering

Parameters

$fileName

Returns

string
protected boolean|string
# _renderTemplate( $template, array $vars = array() )

Renders the template based upon the file type

Renders the template based upon the file type

Parameters

$template
$vars

Returns

boolean|string
public boolean|string
# render( boolean|false $fileName = false, array|boolean|false $vars = null )

Render method for rendering a .phtml or .twig template

Render method for rendering a .phtml or .twig template

Parameters

$fileName
$vars

Returns

boolean|string
protected boolean
# _isTwig( $fileName )

Checks if a file is a .twig template

Checks if a file is a .twig template

Parameters

$fileName

Returns

boolean
protected
# _configureTwig( )

Configures Timber correctly for .twig templates

Configures Timber correctly for .twig templates

public mixed
# setTwigCachePath( $twig )

Sets the twig cache path

Sets the twig cache path

Parameters

$twig

Returns

mixed

Properties summary

protected array $vars
# array()
protected array $templatesDir
# array()
protected $fileName
# null
protected string $textdomain
# 'hji-textdomain'
HJI WP Membership Code Reference API documentation generated by ApiGen