VirtueMart  3.2.14.9808
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
vmJsApi Class Reference

Public Member Functions

 utf8ize ($mixed)
 

Static Public Member Functions

static safe_json_encode ($value)
 
static addJScript ($name, $script=false, $defer=true, $async=false, $inline=false, $ver=0)
 
static getJScripts ()
 
static removeJScript ($name)
 
static writeJS ()
 
static js ($namespace, $path=FALSE, $version='', $minified=false)
 
static css ($namespace, $path=FALSE, $version='', $minified=NULL)
 
static loadBECSS ()
 
static setPath ($namespace, $path=FALSE, $version='', $minified=NULL, $ext= 'js', $absolute_path=false)
 
static jQuery ($isSite=-1)
 
static jQueryUi ()
 
static vmVariables ()
 
static jPrice ()
 
static jSite ()
 
static jDynUpdate ()
 
static JcountryStateList ($stateIds, $prefix='', $suffix='_field')
 
static loadPopUpLib ()
 
static popup ($container, $activator)
 
static chosenDropDowns ()
 
static JvalideForm ($name='#adminForm')
 
static vmValidator ($guest=null, $userFields=0, $prefiks='')
 
static jCreditCard ()
 
static cssSite ()
 
static jDate ($date='', $name="date", $id=NULL, $resetBt=TRUE, $yearRange='', $minMax='')
 
static date ($date, $format='LC2', $joomla=FALSE, $tz=false)
 
static keepAlive ($minlps=2, $maxlps=5)
 
static ajaxCategoryDropDown ($id, $param, $emptyOpt)
 

Private Member Functions

 __construct ()
 

Static Private Member Functions

static isAdmin ()
 

Static Private Attributes

static $_jsAdd = array()
 
static $_be = null
 

Detailed Description

Class to provide js API of vm

Author
Max Milbers

Constructor & Destructor Documentation

vmJsApi::__construct ( )
private

Member Function Documentation

static vmJsApi::addJScript (   $name,
  $script = false,
  $defer = true,
  $async = false,
  $inline = false,
  $ver = 0 
)
static
Parameters
$name
bool$script
bool$min
bool$deferhttp://peter.sh/experiments/asynchronous-and-deferred-javascript-execution-explained/
bool$async
static vmJsApi::ajaxCategoryDropDown (   $id,
  $param,
  $emptyOpt 
)
static
static vmJsApi::chosenDropDowns ( )
static
static vmJsApi::css (   $namespace,
  $path = FALSE,
  $version = '',
  $minified = NULL 
)
static

Write a <link></link> element

Parameters
stringpath to file
stringlibrary name
stringlibrary version
booleanlibrary version
Returns
nothing
static vmJsApi::cssSite ( )
static

ADD some CSS if needed Prevent duplicate load of CSS stylesheet

Author
Max Milbers
static vmJsApi::date (   $date,
  $format = 'LC2',
  $joomla = FALSE,
  $tz = false 
)
static
static vmJsApi::getJScripts ( )
static
static vmJsApi::isAdmin ( )
staticprivate
static vmJsApi::JcountryStateList (   $stateIds,
  $prefix = '',
  $suffix = '_field' 
)
static
static vmJsApi::jCreditCard ( )
static
static vmJsApi::jDate (   $date = '',
  $name = "date",
  $id = NULL,
  $resetBt = TRUE,
  $yearRange = '',
  $minMax = '' 
)
static
static vmJsApi::jDynUpdate ( )
static
static vmJsApi::jPrice ( )
static
static vmJsApi::jQuery (   $isSite = -1)
static

Adds jQuery if needed

static vmJsApi::jQueryUi ( )
static
static vmJsApi::js (   $namespace,
  $path = FALSE,
  $version = '',
  $minified = false 
)
static

Write a <script></script> element

Deprecated:
Parameters
stringpath to file
stringlibrary name
stringlibrary version
booleanload minified version
Returns
nothing
static vmJsApi::jSite ( )
static
static vmJsApi::JvalideForm (   $name = '#adminForm')
static
static vmJsApi::keepAlive (   $minlps = 2,
  $maxlps = 5 
)
static
static vmJsApi::loadBECSS ( )
static
static vmJsApi::loadPopUpLib ( )
static
static vmJsApi::popup (   $container,
  $activator 
)
static

Creates popup, fancy or other for TOS

static vmJsApi::removeJScript (   $name)
static
static vmJsApi::safe_json_encode (   $value)
static
static vmJsApi::setPath (   $namespace,
  $path = FALSE,
  $version = '',
  $minified = NULL,
  $ext = 'js',
  $absolute_path = false 
)
static

Set file path(look in template if relative path)

Author
Patrick
vmJsApi::utf8ize (   $mixed)
static vmJsApi::vmValidator (   $guest = null,
  $userFields = 0,
  $prefiks = '' 
)
static
static vmJsApi::vmVariables ( )
static
static vmJsApi::writeJS ( )
static

Member Data Documentation

vmJsApi::$_be = null
staticprivate
vmJsApi::$_jsAdd = array()
staticprivate

The documentation for this class was generated from the following file: