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

  • Javascript

Class Javascript

Javascript Helper, requires Html Helper

Facilitates rendering/loading javascript into a view

Html
Extended by Javascript
Package: minPHP\helpers\javascript
Located at helpers/javascript/javascript.php

Methods summary

public
# __construct( string $default_path = null )

Constructs a Javascript Helper

Constructs a Javascript Helper

Parameters

$default_path
string
$default_path The default path to use for javascript files
public string
# setDefaultPath( string $default_path )

Sets the default path to use for all javascript requests

Sets the default path to use for all javascript requests

Parameters

$default_path
string
$default_path The default path to use for javascript files

Returns

string
The previous default path
public string
# getFiles( string $location )

Return the HTML used to create the script tags and load the set javascript

Return the HTML used to create the script tags and load the set javascript

Parameters

$location
string
$location The location where the script resides (generally "head" or "body")

Returns

string
The HTML used to load all of the set javascript files
public string
# getInline( )

Return the HTML used to create the inline javascript

Return the HTML used to create the inline javascript

Returns

string
The HTML used to load all of the set inline javascript
public Javascript
# setFile( string $file, string $location = "head", string $path = null, mixed $condition = null, mixed $hidden = true )

Sets the given javascript file into the structure view

Sets the given javascript file into the structure view

Parameters

$file
string
$file The name of the javascript file to load
$location
string
$location The location to set the given file (genearlly "head" or "body")
$path
string
$path The path to the javascript file, if null will use the default path set in the constructor
$condition
$hidden

Returns

Javascript
Returns the instance of this object
public Javascript
# setInline( string $data, mixed $condition = null, mixed $hidden = true )

Sets the given javascript data to be appended to the list of javascript data.

Sets the given javascript data to be appended to the list of javascript data.

Parameters

$data
string
$data The javascript data to set
$condition
$hidden

Returns

Javascript
Returns the instance of this object
public Javascript
# unsetFiles( )

Unset all files that are currently set

Unset all files that are currently set

Returns

Javascript
Returns the instance of this object
public Javascript
# unsetInline( )

Unset all inline data that is currently set

Unset all inline data that is currently set

Returns

Javascript
Returns the instance of this object

Methods inherited from Html

_(), addCondition(), buildAttributes(), concat(), hyperlink(), ifSet(), isUtf8(), safe()

Magic methods summary

Properties summary

Properties inherited from Html

$xhtml

Blesta API documentation generated by ApiGen 2.8.0