◆ __construct()
Constructor
Prevent creating instances of this class by making the constructor private
◆ addWord()
static addWord |
( |
|
$singular, |
|
|
|
$plural |
|
) |
| |
|
static |
Add a word to the cache, useful to make exceptions or to add words in other languages.
- Paramètres
-
string | $singular | word. |
string | $plural | word. |
- Renvoie
- void
◆ camelize()
◆ classify()
static classify |
( |
|
$tableName | ) |
|
|
static |
◆ deleteCache()
◆ explode()
◆ getPart()
static getPart |
( |
|
$string, |
|
|
|
$index, |
|
|
|
$default = null |
|
) |
| |
|
static |
Gets a part of a CamelCased word by index.
Use a negative index to start at the last part of the word (-1 is the last part)
- Paramètres
-
string | $string | Word |
integer | $index | Index of the part |
string | $default | Default value |
- Renvoie
- string
Références $default, et $parts.
Référencé par FOFView\findRenderer().
◆ humanize()
Returns a human-readable string from $word.
Returns a human-readable string from $word, by replacing underscores with a space, and by upper-casing the initial character by default.
- Paramètres
-
string | $word | String to "humanize" |
- Renvoie
- string Human-readable word
◆ implode()
◆ isPlural()
static isPlural |
( |
|
$string | ) |
|
|
static |
◆ isSingular()
static isSingular |
( |
|
$string | ) |
|
|
static |
◆ pluralize()
static pluralize |
( |
|
$word | ) |
|
|
static |
Singular English word to plural.
- Paramètres
-
string | $word | word to pluralize. |
- Renvoie
- string Plural noun.
Références null.
Référencé par FOFViewCsv\__construct(), FOFView\__construct(), FOFModel\addBehavior(), FOFAutoloaderComponent\autoload_fof_controller(), FOFAutoloaderComponent\autoload_fof_helper(), FOFAutoloaderComponent\autoload_fof_model(), FOFAutoloaderComponent\autoload_fof_table(), FOFAutoloaderComponent\autoload_fof_view(), FOFController\cancel(), FOFController\copy(), FOFController\createView(), FOFDispatcher\dispatch(), FOFController\edit(), FOFModel\findFormFilename(), FOFTable\getAnInstance(), FOFModel\getHash(), FOFFormHeader\getLabel(), FOFToolbar\getMyViews(), FOFFormFieldRelation\getOptions(), FOFFormFieldRelation\getRepeatable(), FOFController\getThisModel(), FOFController\getTmpInstance(), FOFIntegrationJoomlaPlatform\getViewTemplatePaths(), FOFController\loadhistory(), FOFTableRelations\normaliseItemName(), FOFTableRelations\normaliseParameters(), FOFToolbar\onAdd(), FOFController\orderdown(), FOFController\orderup(), FOFController\remove(), FOFRenderJoomla\renderFormBrowse(), FOFRenderStrapper\renderFormBrowse(), FOFToolbar\renderSubmenu(), FOFToolbar\renderToolbar(), FOFController\save(), FOFController\saveorder(), FOFController\setaccess(), et FOFController\setstate().
◆ singularize()
static singularize |
( |
|
$word | ) |
|
|
static |
Plural English word to singular.
- Paramètres
-
string | $word | Word to singularize. |
- Renvoie
- string Singular noun.
Références null.
Référencé par FOFTableRelations\__construct(), FOFView\__construct(), FOFController\__construct(), FOFTable\__construct(), FOFModel\__construct(), FOFAutoloaderComponent\autoload_fof_controller(), FOFAutoloaderComponent\autoload_fof_helper(), FOFAutoloaderComponent\autoload_fof_model(), FOFAutoloaderComponent\autoload_fof_table(), FOFAutoloaderComponent\autoload_fof_view(), FOFController\checkACL(), FOFController\createView(), FOFDispatcher\dispatch(), FOFModel\findFormFilename(), FOFTable\getAnInstance(), FOFModel\getIterator(), FOFTableRelations\getSiblings(), FOFModel\getTable(), FOFController\getTmpInstance(), FOFIntegrationJoomlaPlatform\getViewTemplatePaths(), FOFController\loadhistory(), FOFTableRelations\normaliseItemName(), FOFTableRelations\normaliseParameters(), FOFController\onBeforeAccesspublic(), FOFController\onBeforeAccessregistered(), FOFController\onBeforeAccessspecial(), FOFController\onBeforeAdd(), FOFController\onBeforeApply(), FOFController\onBeforeBrowse(), FOFController\onBeforeCancel(), FOFController\onBeforeEdit(), FOFController\onBeforeGenericTask(), FOFController\onBeforeOrderdown(), FOFController\onBeforeOrderup(), FOFController\onBeforePublish(), FOFController\onBeforeRemove(), FOFController\onBeforeSave(), FOFController\onBeforeSavenew(), FOFController\onBeforeSaveorder(), FOFController\onBeforeUnpublish(), et FOFToolbar\renderSubmenu().
◆ tableize()
static tableize |
( |
|
$className | ) |
|
|
static |
Converts a class name to its table name according to Koowa naming conventions.
Converts "Person" to "people"
- Paramètres
-
string | $className | Class name for getting related table_name. |
- Renvoie
- string plural_table_name
- Voir également
- classify
Références $className.
◆ underscore()
static underscore |
( |
|
$word | ) |
|
|
static |
Converts a word "into_it_s_underscored_version"
Convert any "CamelCased" or "ordinary Word" into an "underscored_word".
- Paramètres
-
string | $word | Word to underscore |
- Renvoie
- string Underscored word
◆ variablize()
static variablize |
( |
|
$string | ) |
|
|
static |
Returns camelBacked version of a string. Same as camelize but first char is lowercased.
- Paramètres
-
string | $string | String to be camelBacked. |
- Renvoie
- string
- Voir également
- camelize
◆ $_cache
Valeur initiale := array(
'singularized' => array(),
'pluralized' => array()
)
◆ $_rules
La documentation de cette classe a été générée à partir du fichier suivant :