Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • components
        • events
          • default
      • controllers
      • models
    • components
      • auth
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • exchange
        • rates
          • foxrate
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
      • json
      • modules
      • net
        • http
        • net
          • amazon
            • s3
          • geo
            • ip
      • plugins
      • recaptcha
      • security
      • session
        • cart
      • settingscollection
      • upgrades
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
  • com
    • tecnick
      • tcpdf
        • blesta
          • components
            • invoice
              • templates
                • quickbooks
                  • invoice
                • templates
                  • default
  • Crypt
    • AES
    • DES
    • Hash
    • Random
    • RC4
    • Rijndael
    • RSA
    • TerraDES
  • File
    • ANSI
    • ASN1
    • X509
  • Math
    • BigInteger
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • html
      • xml
    • lib
  • Net
    • SFTP
    • SSH1
    • SSH2
  • None
  • PHP
  • PHPMailer
  • Services
    • JSON
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Form
  • Html
  • Javascript
  • Pagination
  • Widget
  • WidgetClient

Class Javascript

Provides helper methods for dealing with HTML content

Html
Extended by Javascript
Package: minPHP\helpers\html
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

private array $js_files
#

A multi-dimensional array of locations and their respective javascript files

A multi-dimensional array of locations and their respective javascript files

private array $js_inline
#

An array of inline javascript blocks

An array of inline javascript blocks

private string $default_path
#

The default path to use for javascript files

The default path to use for javascript files

Properties inherited from Html

$xhtml

Blesta API documentation generated by ApiGen 2.8.0