PHP 클래스 PMA\libraries\Scripts

파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Generates new Scripts objects
addCode ( string $code ) : void Adds a new code snippet to the code to be executed
addFile ( string $filename, boolean $before_statics = false ) : void Adds a new file to the list of scripts
addFiles ( array $filelist ) : void Add new files to the list of scripts
getDisplay ( ) : string Renders all the JavaScript file inclusions, code and events
getFiles ( ) : array Returns a list with filenames and a flag to indicate whether to register onload events for this file

비공개 메소드들

메소드 설명
_eventBlacklist ( string $filename ) : integer Determines whether to fire up an onload event for a file
_includeFiles ( array $files ) : string Returns HTML code to include javascript file.

메소드 상세

__construct() 공개 메소드

Generates new Scripts objects
public __construct ( )

addCode() 공개 메소드

Adds a new code snippet to the code to be executed
public addCode ( string $code ) : void
$code string The JS code to be added
리턴 void

addFile() 공개 메소드

Adds a new file to the list of scripts
public addFile ( string $filename, boolean $before_statics = false ) : void
$filename string The name of the file to include
$before_statics boolean Whether this dynamic script should be included before the static ones
리턴 void

addFiles() 공개 메소드

Add new files to the list of scripts
public addFiles ( array $filelist ) : void
$filelist array The array of file names
리턴 void

getDisplay() 공개 메소드

Renders all the JavaScript file inclusions, code and events
public getDisplay ( ) : string
리턴 string

getFiles() 공개 메소드

Returns a list with filenames and a flag to indicate whether to register onload events for this file
public getFiles ( ) : array
리턴 array