Метод | Описание | |
---|---|---|
__construct ( |
Constructor. | |
flushScriptFiles ( $writer, $control = null ) | Flushes all pending script registrations | |
getCallbackReference ( Prado\Web\UI\ActiveControls\ICallbackEventHandler $callbackHandler, $options = null ) : string | Returns javascript statement that create a new callback request object. | |
getHiddenFields ( ) | ||
getPradoPackages ( ) | ||
getPradoScriptAssetPath ( $script = 'prado' ) : string | ||
getPradoScriptAssetUrl ( $script = 'prado' ) : string | ||
getPradoScripts ( ) | ||
getRequiresHead ( ) : boolean | ||
getScriptUrls ( ) : array | Returns the URLs of all script files referenced on the page | |
getStyleSheetCodes ( ) : array | Returns all the stylesheet code snippets referenced on the page | |
getStyleSheetUrls ( ) : array | Returns the URLs of all stylesheet files referenced on the page | |
hasBeginScripts ( ) : boolean | ||
hasEndScripts ( ) : boolean | ||
isBeginScriptRegistered ( $key ) : boolean | ||
isEndScriptRegistered ( $key ) : boolean | ||
isHeadScriptFileRegistered ( $key ) : boolean | ||
isHeadScriptRegistered ( $key ) : boolean | ||
isHiddenFieldRegistered ( $key ) : boolean | ||
isScriptFileRegistered ( $key ) : boolean | ||
isStyleSheetFileRegistered ( $key ) : boolean | ||
isStyleSheetRegistered ( $key ) : boolean | ||
markScriptFileAsRendered ( $url ) | ||
registerBeginScript ( $key, $script ) | Registers a javascript script block at the beginning of the form | |
registerCallbackControl ( $class, $options ) | Registers callback javascript for a control. | |
registerDefaultButton ( $panel, $button ) | Register a default button to panel. When the $panel is in focus and the 'enter' key is pressed, the $button will be clicked. | |
registerEndScript ( $key, $script ) | Registers a javascript script block at the end of the form | |
registerFocusControl ( $target ) | Registers the control to receive default focus. | |
registerHeadScript ( $key, $script ) | Registers a javascript block in the page head. | |
registerHeadScriptFile ( $key, $url ) | Registers a javascript file in the page head | |
registerHiddenField ( $name, $value ) | Registers a hidden field to be rendered in the form. | |
registerPostBackControl ( $class, $options ) | Registers postback javascript for a control. A null class parameter will prevent the javascript code registration. | |
registerPradoScript ( $name ) | Registers Prado javascript by library name. See "Web/Javascripts/packages.php" for library names. | |
registerPradoStyle ( $name ) | Registers Prado style by library name. See "Web/Javascripts/packages.php" for library names. | |
registerScriptFile ( $key, $url ) | Registers a javascript file to be rendered within the form | |
registerStyleSheet ( $key, $css, $media = '' ) | Registers a CSS block to be rendered in the page head | |
registerStyleSheetFile ( $key, $url, $media = '' ) | Registers a CSS file to be rendered in the page head | |
renderAllPendingScriptFiles ( $writer ) | ||
renderBeginScripts ( $writer ) | ||
renderBeginScriptsCallback ( $writer ) | ||
renderEndScripts ( $writer ) | ||
renderEndScriptsCallback ( $writer ) | ||
renderHeadScriptFiles ( $writer ) | ||
renderHeadScripts ( $writer ) | ||
renderHiddenFieldsBegin ( $writer ) | ||
renderHiddenFieldsEnd ( $writer ) | ||
renderScriptFilesBegin ( $writer ) | ||
renderScriptFilesEnd ( $writer ) | ||
renderStyleSheetFiles ( $writer ) | ||
renderStyleSheets ( $writer ) |
Метод | Описание | |
---|---|---|
checkIfNotInRender ( ) | Checks whether page rendering has not begun yet | |
getDefaultButtonOptions ( $panelID, $buttonID ) : array | ||
getPackagePathUrl ( $base ) : array | ||
getRenderedScriptFiles ( ) | ||
getScriptPackageFolder ( $script ) : array | ||
getStylePackageFolder ( $script ) : array | ||
registerPradoScriptInternal ( $name ) | Registers a Prado javascript library to be loaded. | |
registerPradoStyleInternal ( $name ) | Registers a Prado style library to be loaded. | |
renderHiddenFieldsInt ( $writer, $initial ) | ||
renderScriptFiles ( $writer, array $scripts ) |
protected checkIfNotInRender ( ) |
public flushScriptFiles ( $writer, $control = null ) |
public getCallbackReference ( Prado\Web\UI\ActiveControls\ICallbackEventHandler $callbackHandler, $options = null ) : string | ||
$callbackHandler | Prado\Web\UI\ActiveControls\ICallbackEventHandler | |
Результат | string | javascript statement that creates a new callback request. |
protected getDefaultButtonOptions ( $panelID, $buttonID ) : array | ||
Результат | array | default button options. |
protected getPackagePathUrl ( $base ) : array | ||
Результат | array | tuple($path,$url). |
public getPradoScriptAssetPath ( $script = 'prado' ) : string | ||
Результат | string | Prado javascript library base asset path in local filesystem. |
public getPradoScriptAssetUrl ( $script = 'prado' ) : string | ||
Результат | string | Prado javascript library base asset url. |
public getRequiresHead ( ) : boolean | ||
Результат | boolean | whether THead is required in order to render CSS and js within head |
protected getScriptPackageFolder ( $script ) : array | ||
Результат | array | tuple($basepath,$subpath). |
public getScriptUrls ( ) : array | ||
Результат | array | Combined list of all script urls used in the page |
protected getStylePackageFolder ( $script ) : array | ||
Результат | array | tuple($basepath,$subpath). |
public getStyleSheetCodes ( ) : array | ||
Результат | array | List of all stylesheet snippets used in the page |
public getStyleSheetUrls ( ) : array | ||
Результат | array | List of all stylesheet urls used in the page |
public hasBeginScripts ( ) : boolean | ||
Результат | boolean | true if any begin scripts are registered. |
public hasEndScripts ( ) : boolean | ||
Результат | boolean | true if any end scripts are registered. |
public isBeginScriptRegistered ( $key ) : boolean | ||
Результат | boolean | whether there is a beginning javascript block registered with the specified key |
public isEndScriptRegistered ( $key ) : boolean | ||
Результат | boolean | whether there is an ending javascript block registered with the specified key |
public isHeadScriptFileRegistered ( $key ) : boolean | ||
Результат | boolean | whether there is a head javascript file registered with the specified key |
public isHeadScriptRegistered ( $key ) : boolean | ||
Результат | boolean | whether there is a head javascript block registered with the specified key |
public isHiddenFieldRegistered ( $key ) : boolean | ||
Результат | boolean | whether there is a hidden field registered with the specified key |
public isScriptFileRegistered ( $key ) : boolean | ||
Результат | boolean | whether there is a javascript file registered with the specified key |
public isStyleSheetFileRegistered ( $key ) : boolean | ||
Результат | boolean | whether there is a CSS file registered with the specified key |
public isStyleSheetRegistered ( $key ) : boolean | ||
Результат | boolean | whether there is a CSS block registered with the specified key |
public registerBeginScript ( $key, $script ) |
public registerCallbackControl ( $class, $options ) |
public registerDefaultButton ( $panel, $button ) |
public registerEndScript ( $key, $script ) |
public registerFocusControl ( $target ) |
public registerHeadScript ( $key, $script ) |
public registerHeadScriptFile ( $key, $url ) |
public registerHiddenField ( $name, $value ) |
public registerPostBackControl ( $class, $options ) |
public registerPradoScript ( $name ) |
protected registerPradoScriptInternal ( $name ) |
public registerPradoStyle ( $name ) |
protected registerPradoStyleInternal ( $name ) |
public registerScriptFile ( $key, $url ) |
public registerStyleSheet ( $key, $css, $media = '' ) |
Page->ClientScript->registerStyleSheetFile($url, $url);
}
}
public registerStyleSheetFile ( $key, $url, $media = '' ) |
protected renderScriptFiles ( $writer, array $scripts ) | ||
$scripts | array |