diff options
Diffstat (limited to 'app/class')
| -rw-r--r-- | app/class/globals.php | 24 | 
1 files changed, 24 insertions, 0 deletions
| diff --git a/app/class/globals.php b/app/class/globals.php index e71ebc6..468ad6d 100644 --- a/app/class/globals.php +++ b/app/class/globals.php @@ -50,6 +50,12 @@ $_SCROTT['PAGE_OBJECT'] = NULL;  $_SCROTT['PAGE_NAME'] = "";  /* + * The auto modal variable holds the name (DOM ID) of a modal to automatically + * open on page load.  The `stdpage` footer will reference this. + */ +$_SCROTT['AUTO_MODAL'] = ""; + +/*   * Get the application root path.  This is an absolute path on the server.   */  function ar() : string @@ -182,6 +188,24 @@ function getPageName() : string  }  /* + * Set the auto modal. + */ +function setAutoModal(string $autoModal) : void +{ +    global $_SCROTT; +    $_SCROTT['AUTO_MODAL'] = $autoModal; +} + +/* + * Get the auto modal. + */ +function getAutoModal() : string +{ +    global $_SCROTT; +    return $_SCROTT['AUTO_MODAL']; +} + +/*   * Produce a string, but only once.  This function is useful   * when dealing with some variable collection of markup and   * you want to affect only the first one with a modifier. | 
