@return: {STRING} [HTML Code]
@param: {STRING} $dom_selector: A valid jQuery HTML-DOM Selector as container(s) for Pre>Code (see jQuery ...) ; Can be: 'body', '#id-element', ...
@param: {ENUM} $theme: The Visual CSS Theme to Load ; By default is set to '' which loads the default theme ; List of Available Themes: 'light', 'dark'
@param: {BOOL} $use_absolute_url: If TRUE will use full URL prefix to load CSS and Javascripts ; Default is FALSE
Return the HTML / CSS / Javascript code to Load the required Javascripts for the prism.js
If a valid DOM Selector is specified all code areas in that dom selector will be highlighted
This function should not be rendered more than once in a HTML page
@return: {STRING} [HTML Code]
@param: {BOOL} $y_use_absolute_url: If TRUE will use full URL prefix to load CSS and Javascripts ; Default is FALSE
@param: {ARRAY} $custom_themes: An array with custom themes to load from available themes like [ 'theme1', 'theme2', ... ]
Return the HTML / Javascript code to Load the required Javascripts for the Code Editor (Edit Area).
Should be called just once, before calling one or many ::html_js_editarea()
@return: {STRING} [HTML Code]
@param: {STRING} $yid: [Unique HTML Page Element ID]
@param: {STRING} $yvarname: [HTML Form Variable Name]
@param: {STRING} $yvalue: [HTML Data]
@param: {ENUM} $y_mode: [Parser mode: css, javascript, json, json-ld, html, xml, yaml, markdown, sql, php, ini, shell, go, text, gpg]
@param: {BOOLEAN} $y_editable: [Editable: true / Not Editable: false]
@param: {INTEGER+} $ywidth: [Area Width: (Example) 720px or 75%]
@param: {INTEGER+} $yheight: [Area Height (Example) 480px or 50%]
@param: {BOOLEAN} $y_line_numbers: [Display line numbers: true ; Hide line numbersL false]
@param: {STRING} $custom_theme: A custom theme to load from the available themes
Return the HTML / Javascript code with a special TextArea with a built-in javascript Code Editor (Edit Area).
Supported syntax parsers: CSS, Javascript, Json, HTML, XML, YAML, Markdown, SQL, PHP, Text (default).
@return: {STRING} JS Code
@param: {STRING} $y_title: The Growl Title
@param: {STRING} $y_text: The Growl Text
@param: {STRING} $y_image: The Growl Image (can be empty)
@param: {INTEGER+} $y_time: *optional* ; default is 5000 (5 seconds) ; The Display Time in microseconds
@param: {ENUM} $y_sticky: *optional* ; default is 'false' ; If set to 'false' will be not sticky ; if set to 'true' will be sticky
@param: {STRING} $y_class: *optional* the CSS class
Returns the JS Code to add (raise) a Growl Notification (sticky or not)
Must be enclosed in a <script>...</script> html tag or can be used for a JS action (ex: onClick="...")
public staticfunctionjs_code_notification_remove (
STRING$y_id = ""
) {} :: STRING
@return: {STRING} JS Code
@param: {STRING} $y_id: *optional* the Growl ID ; default is '' ; if non empty will remove just the Growl that match the ID ; otherwise will remove ALL Growl instances
Returns the JS Code to remove a Growl Notification (sticky or not)
Must be enclosed in a <script>...</script> html tag or can be used for a JS action (ex: onClick="...")
Return the JS Code to Submit a HTML Form by Ajax
Expects a standardized (json) reply created with SmartViewHtmlHelpers::js_ajax_replyto_html_form()
Must be enclosed in a <script>...</script> html tag or can be used for a JS action (ex: onClick="...")
Reply back to the HTML Form submited by Ajax by returning a Json answer
Creates a standardized (json) reply for SmartViewHtmlHelpers::js_ajax_submit_html_form()
NOTICE:
- if OK: and redirect URL have been provided, the replace div is not handled
- if ERROR: no replace div or redirect is handled
class Properties
class Constants
documentation generated on: 2023-10-19 23:15:52 +0000