NextDom\Helpers\Utils
Class Utils
Synopsis
class Utils
{
- // members
- private static array $properties = ;
- // methods
- public static void sendVarToJs()
- private static string getVarInJs()
- public static string getArrayToJQueryJson()
- public static void sendVarsToJS()
- public static string getVarsToJS()
- public static void redirect()
- public static int initInt()
- public static mixed init()
- public static string initStr()
- public static string sanitizeString()
- public static string initFilename()
- public static mixed initPath()
- public static bool checkPath()
- public static mixed templateReplace()
- public static bool|false|string resizeImage()
- public static float getMicrotime()
- public static string convertDuration()
- public static bool connectedToDatabase()
- public static string displayException()
- public static string displaySimpleException()
- public static false|int isSha1()
- public static false|int isSha512()
- public static string cleanPath()
- public static array|false globBrace()
- public static array|false polyfillGlobBrace()
- public static string removeCR()
- public static array br2nl()
- public static string calculPath()
- public static string sizeFormat()
- public static mixed cast()
- public static string evaluate()
- public static string transformExpressionForEvaluation()
- public static mixed|null secureXSS()
- public static array minify()
- public static array sanitizeAccent()
- public static string getZipErrorMessage()
- public static array arg2array()
- public static string strToHex()
- public static array hexToRgb()
- public static string sha512()
- public static array findCodeIcon()
- public static null addGraphLink()
- public static bool strContainsOneOf()
- public static bool|string makeZipSupport()
- public static array o2a()
- public static bool|mixed|null isJson()
- public static void processJsonObject()
- public static void a2o()
- public static array|bool|mixed|null setJsonAttr()
- public static array|bool|mixed|string|null getJsonAttr()
- public static array parseArgs()
- public static mixed array_key_default()
- public static string readUploadedFile()
- public static float|int getTZoffsetMin()
- public static mixed cleanComponentName()
- public static bool startsWith()
- public static bool endsWith()
- public array|string getDominantColor()
Tasks
Line | Task |
---|---|
548+ | : Stocker la version évaluée |
654+ | : Pourquoi en minuscule ? |
Members
private
- $properties — array
Methods
private
- getVarInJs() — Convert variable in javascript format
public
- a2o()
- addGraphLink()
- arg2array()
- array_key_default() — Return value of $key in $array when available, $default otherwise
- br2nl()
- calculPath()
- cast() — Convert object of type to another
- checkPath() — Check if path is valid
- cleanComponentName() — Clean some characters from name passed
- cleanPath()
- connectedToDatabase()
- convertDuration()
- displayException()
- displaySimpleException()
- endsWith()
- evaluate()
- findCodeIcon()
- getArrayToJQueryJson() — Encode at JSON format for javascript
- getDominantColor()
- getJsonAttr()
- getMicrotime()
- getTZoffsetMin()
- getVarsToJS() — Get HTML code of list a javascript variables.
- getZipErrorMessage()
- globBrace()
- hexToRgb()
- init() — Obtenir une variable passée en paramètre
- initFilename() — Obtenir une chaine de caractère passée en paramètre pour un nom de fichier
- initInt() — Obtenir un entier passé en paramètre
- initPath() — Obtenir un chemin passé en paramètre
- initStr() — Obtenir un entier passé en paramètre
- isJson()
- isSha1()
- isSha512()
- makeZipSupport()
- minify()
- o2a() — Convert an object to an array
- parseArgs() — Fill associative array with given list of parameters <name>=<value>
- polyfillGlobBrace() — got from https://github.com/zendframework/zend-stdlib/issues/58
- processJsonObject()
- readUploadedFile() — Checks and moves uploaded to given directory
- redirect() — Redirect to target url
- removeCR()
- resizeImage()
- sanitizeAccent()
- sanitizeString() — Keep only characters, numbers, - _ characters
- secureXSS()
- sendVarToJs() — Add javascript variable in HTML code
- sendVarsToJS() — Add list of javascript variables in HTML code
- setJsonAttr()
- sha512()
- sizeFormat()
- startsWith()
- strContainsOneOf()
- strToHex()
- templateReplace()
- transformExpressionForEvaluation() — Transforme une expression lisible en une expression analysable