Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • areyouahuman
      • auth
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
        • default
      • exchange
        • rates
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • quickbooks
            • invoice
      • json
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • recaptcha
      • reports
        • aging
          • invoices
        • custom
          • report
        • invoice
          • creation
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • form
      • html
      • javascript
      • xml
    • lib
  • None
  • PHP

Classes

  • Cache
  • Configure
  • Controller
  • Dispatcher
  • Language
  • Loader
  • Model
  • Router
  • View

Exceptions

  • UnknownException

Class View

Allows the creation of views.

Language
Extended by View
Package: minPHP\lib
Located at lib/view.php

Methods summary

public
# __construct( string $file = null, string $view = null )

Parameters

$file
string
$file The file name you want to load.
$view
string
$view The view directory to use (plugins use PluginName.directory).
public
# __clone( )

Copy constructor used to clone the View with all properties (e.g. helpers) retained, while clearing all variables to be set in the view file.

Copy constructor used to clone the View with all properties (e.g. helpers) retained, while clearing all variables to be set in the view file.

final public
# setDefaultView( string $path )

Overwrites the default view path

Overwrites the default view path

Parameters

$path
string
$path The path to set as the default view path in this view
final public
# setView( string $file = null, string $view = null )

Sets the view file and view to be used for this View

Sets the view file and view to be used for this View

Parameters

$file
string
$file The file name to load
$view
string
$view The view directory to use (plugins use PluginName.directory)
final public
# set( mixed $name, mixed $value = null )

Sets a variable in this view with the given name and value

Sets a variable in this view with the given name and value

Parameters

$name
mixed
$name Name of the variable to set in the view, or an array of key/value pairs where each key is the variable and each value is the value to set.
$value
mixed
$value Value of the variable to set in the view.
final public string
# fetch( string $file = null, string $view = null )

Returns the output of the view

Returns the output of the view

Parameters

$file
string
$file The file used as our view
$view
string
$view The view directory to use

Returns

string
HTML generated by the view

Methods inherited from Language

_(), getText(), loadLang(), setLang()

Magic methods summary

Properties summary

protected array $vars
#

Holds all the variables we will send to the view

Holds all the variables we will send to the view

public string $file
#

The file used in the view

The file used in the view

public string $view_ext
#

The file extension used in the view

The file extension used in the view

public string $view
#

The location of this view's files within the view path

The location of this view's files within the view path

public string $view_dir
#

This view's relative path (useful in template to reference view related files [e.g. images, javascript, css])

This view's relative path (useful in template to reference view related files [e.g. images, javascript, css])

public string $view_path
#

This view's partial path relative to the public web directory

This view's partial path relative to the public web directory

public string $default_view_path
#

The default view path

The default view path

Blesta API documentation generated by ApiGen 2.8.0