XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
Legacy_HeaderScript Class Reference

Public Member Functions

 __construct ()
 
 _setupDefaultStylesheet ()
 
 addLibrary (string $url, bool $xoopsUrl=true)
 
 addStylesheet (string $url, bool $xoopsUrl=true)
 
 addScript (string $script, bool $isOnloadFunction=true)
 
 getLibraryArr ()
 
 getScriptArr (bool $isOnloadFunction=true)
 
 addLink (string $rel, string $href, string $type, string $title=null)
 
 addMeta (string $name, string $content)
 
 getMeta (string $name)
 
 createLibraryTag ()
 
 createOnloadFunctionTag ()
 

Data Fields

 $mUsePrototype = false
 
 $mFuncNamePrefix = ''
 

Protected Member Functions

 _loadGoogleJQueryLibrary ()
 
 _loadLocalJQueryLibrary ()
 
 _makeScript (bool $isOnloadFunction=true)
 
 _convertFuncName (string $script)
 
 _getRenderConfig (string $key)
 

Protected Attributes

 $_mType = 'google'
 
 $_mCore = '1'
 
 $_mUi = '1'
 
 $_mLibrary = []
 
 $_mScript = []
 
 $_mMeta
 
 $_mOnloadScript = []
 
 $_mStylesheet = []
 
 $_mLink = []
 

Detailed Description

Definition at line 18 of file Legacy_HeaderScript.class.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

__construct

Parameters
void
Returns
void

Definition at line 53 of file Legacy_HeaderScript.class.php.

Member Function Documentation

◆ _convertFuncName()

_convertFuncName ( string $script)
protected

_convertFuncName

Parameters
string$script
Returns
string

Definition at line 353 of file Legacy_HeaderScript.class.php.

◆ _getRenderConfig()

_getRenderConfig ( string $key)
protected

Get Render Configuration

Parameters
string$key
Returns
string

Definition at line 368 of file Legacy_HeaderScript.class.php.

◆ _loadGoogleJQueryLibrary()

_loadGoogleJQueryLibrary ( )
protected

_loadGoogleJQueryLibrary

Parameters
void
Returns
string

Definition at line 266 of file Legacy_HeaderScript.class.php.

◆ _loadLocalJQueryLibrary()

_loadLocalJQueryLibrary ( )
protected

load Local JQuery Library Defer UI since XCL 2.3.x

Parameters
void
Returns
string

Definition at line 286 of file Legacy_HeaderScript.class.php.

◆ _makeScript()

_makeScript ( bool $isOnloadFunction = true)
protected

_makeScript

Parameters
bool$isOnloadFunction
Returns
string

Definition at line 336 of file Legacy_HeaderScript.class.php.

◆ _setupDefaultStylesheet()

_setupDefaultStylesheet ( )

_setupDefaultStylesheet

Parameters
void
Returns
void

Definition at line 80 of file Legacy_HeaderScript.class.php.

◆ addLibrary()

addLibrary ( string $url,
bool $xoopsUrl = true )

addLibrary

Parameters
string$url
bool$xoopsUrl
Returns
void

Definition at line 95 of file Legacy_HeaderScript.class.php.

◆ addLink()

addLink ( string $rel,
string $href,
string $type,
string $title = null )

addLink

Parameters
string$rel
string$href
string$type
string | null$title
Returns
void

Definition at line 174 of file Legacy_HeaderScript.class.php.

◆ addMeta()

addMeta ( string $name,
string $content )

addMeta

Parameters
string$name
string$content
Returns
void

Definition at line 187 of file Legacy_HeaderScript.class.php.

◆ addScript()

addScript ( string $script,
bool $isOnloadFunction = true )

addScript

Parameters
string$script
bool$isOnloadFunction
Returns
void

Definition at line 127 of file Legacy_HeaderScript.class.php.

◆ addStylesheet()

addStylesheet ( string $url,
bool $xoopsUrl = true )

addStylesheet

Parameters
string$url
bool$xoopsUrl
Returns
void

Definition at line 111 of file Legacy_HeaderScript.class.php.

◆ createLibraryTag()

createLibraryTag ( )

createLibraryTag

Parameters
void
Returns
string

Definition at line 211 of file Legacy_HeaderScript.class.php.

◆ createOnloadFunctionTag()

createOnloadFunctionTag ( )

createOnloadFunctionTag

Parameters
void
Returns
string

Definition at line 306 of file Legacy_HeaderScript.class.php.

◆ getLibraryArr()

getLibraryArr ( )

getLibraryArr

Parameters
void
Returns
string[]

Definition at line 143 of file Legacy_HeaderScript.class.php.

◆ getMeta()

getMeta ( string $name)

getMeta

Parameters
string$name
Returns
string

Definition at line 199 of file Legacy_HeaderScript.class.php.

◆ getScriptArr()

getScriptArr ( bool $isOnloadFunction = true)

getScriptArr

Parameters
bool$isOnloadFunction
Returns
string[]

Definition at line 155 of file Legacy_HeaderScript.class.php.

Field Documentation

◆ $_mCore

$_mCore = '1'
protected

Definition at line 21 of file Legacy_HeaderScript.class.php.

◆ $_mLibrary

$_mLibrary = []
protected

Definition at line 24 of file Legacy_HeaderScript.class.php.

◆ $_mLink

$_mLink = []
protected

Definition at line 41 of file Legacy_HeaderScript.class.php.

◆ $_mMeta

$_mMeta
protected
Initial value:
= [
'keywords' =>'',
'description' =>'',
'robots' =>'',
'rating' =>'',
'author' =>'',
'copyright' =>'',
'msvalidate.01' =>'',
'google-site-verification' =>'',
'yandex-verification' =>'',
'fb:app_id' =>'',
'twitter:site' =>''
]

Definition at line 26 of file Legacy_HeaderScript.class.php.

◆ $_mOnloadScript

$_mOnloadScript = []
protected

Definition at line 39 of file Legacy_HeaderScript.class.php.

◆ $_mScript

$_mScript = []
protected

Definition at line 25 of file Legacy_HeaderScript.class.php.

◆ $_mStylesheet

$_mStylesheet = []
protected

Definition at line 40 of file Legacy_HeaderScript.class.php.

◆ $_mType

$_mType = 'google'
protected

Definition at line 20 of file Legacy_HeaderScript.class.php.

◆ $_mUi

$_mUi = '1'
protected

Definition at line 22 of file Legacy_HeaderScript.class.php.

◆ $mFuncNamePrefix

$mFuncNamePrefix = ''

Definition at line 44 of file Legacy_HeaderScript.class.php.

◆ $mUsePrototype

$mUsePrototype = false

Definition at line 43 of file Legacy_HeaderScript.class.php.


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