Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques statiques | |
static | fromCamelCase ($input, $grouped=false) |
static | toCamelCase ($input) |
static | toDashSeparated ($input) |
static | toSpaceSeparated ($input) |
static | toUnderscoreSeparated ($input) |
static | toVariable ($input) |
static | toKey ($input) |
Définition à la ligne 19 du fichier normalise.php.
|
static |
Method to convert a string from camel case.
This method offers two modes. Grouped allows for splitting on groups of uppercase characters as follows:
"FooBarABCDef" becomes array("Foo", "Bar", "ABC", "Def") "JFooBar" becomes array("J", "Foo", "Bar") "J001FooBar002" becomes array("J001", "Foo", "Bar002") "abcDef" becomes array("abc", "Def") "abc_defGhi_Jkl" becomes array("abc_def", "Ghi_Jkl") "ThisIsA_NASAAstronaut" becomes array("This", "Is", "A_NASA", "Astronaut")) "JohnFitzgerald_Kennedy" becomes array("John", "Fitzgerald_Kennedy"))
Non-grouped will split strings at each uppercase character.
string | $input | The string input (ASCII only). |
boolean | $grouped | Optionally allows splitting on groups of uppercase characters. |
Définition à la ligne 43 du fichier normalise.php.
Référencé par JFormField\__construct(), et JString\splitCamelCase().
|
static |
Method to convert a string into camel case.
string | $input | The string input (ASCII only). |
Définition à la ligne 59 du fichier normalise.php.
|
static |
Method to convert a string into dash separated form.
string | $input | The string input (ASCII only). |
Définition à la ligne 78 du fichier normalise.php.
|
static |
Method to convert a string into key form.
string | $input | The string input (ASCII only). |
Définition à la ligne 157 du fichier normalise.php.
|
static |
Method to convert a string into space separated form.
string | $input | The string input (ASCII only). |
Définition à la ligne 95 du fichier normalise.php.
|
static |
Method to convert a string into underscore separated form.
string | $input | The string input (ASCII only). |
Définition à la ligne 112 du fichier normalise.php.
|
static |
Method to convert a string into variable form.
string | $input | The string input (ASCII only). |
Définition à la ligne 129 du fichier normalise.php.