Liste de tous les membres
Fonctions membres publiques statiques |
static | toInteger (&$array, $default=null) |
static | toObject (&$array, $class= 'stdClass') |
static | toString ($array=null, $inner_glue= '=', $outer_glue= ' ', $keepOuterKey=false) |
static | fromObject ($p_obj, $recurse=true, $regex=null) |
static | getColumn (&$array, $index) |
static | getValue (&$array, $name, $default=null, $type= '') |
static | isAssociative ($array) |
static | pivot ($source, $key=null) |
static | sortObjects (&$a, $k, $direction=1, $caseSensitive=true, $locale=false) |
static | arrayUnique ($myArray) |
Documentation des fonctions membres
static JArrayHelper::_fromObject |
( |
|
$item, |
|
|
|
$recurse, |
|
|
|
$regex |
|
) |
| |
|
staticprotected |
Utility function to map an object or array to an array
- Paramètres:
-
mixed | $item | The source object or array |
boolean | $recurse | True to recurse through multi-level objects |
string | $regex | An optional regular expression to match on field names |
- Renvoie:
- array The array mapped from the given object
- Depuis:
- 11.1
Références $item, et elseif.
static JArrayHelper::_sortObjects |
( |
& |
$a, |
|
|
& |
$b |
|
) |
| |
|
staticprotected |
static JArrayHelper::arrayUnique |
( |
|
$myArray | ) |
|
|
static |
static JArrayHelper::fromObject |
( |
|
$p_obj, |
|
|
|
$recurse = true , |
|
|
|
$regex = null |
|
) |
| |
|
static |
static JArrayHelper::getColumn |
( |
& |
$array, |
|
|
|
$index |
|
) |
| |
|
static |
Extracts a column from an array of arrays or objects
- Paramètres:
-
array | &$array | The source array |
string | $index | The index of the column or name of object property |
- Renvoie:
- array Column of values from the source array
- Depuis:
- 11.1
Références $i, $item, $n, et elseif.
Référencé par MenusModelMenus\getItems().
static JArrayHelper::getValue |
( |
& |
$array, |
|
|
|
$name, |
|
|
|
$default = null , |
|
|
|
$type = '' |
|
) |
| |
|
static |
Utility function to return a value from a named array or a specified default
- Paramètres:
-
array | &$array | A named array |
string | $name | The key to search for |
mixed | $default | The default value to give if no key found |
string | $type | Return type for the variable (INT, FLOAT, STRING, WORD, BOOLEAN, ARRAY) |
- Renvoie:
- mixed The value from the source array
- Depuis:
- 11.1
Références $name, $type, et null.
Référencé par plgContentGeshi\_replace(), ContactControllerContact\allowAdd(), WeblinksControllerWeblink\allowAdd(), NewsfeedsControllerNewsfeed\allowAdd(), BannersControllerBanner\allowAdd(), ContentControllerArticle\allowAdd(), ContactModelContact\batch(), BannersModelBanner\batch(), ModulesModelModule\batch(), MenusModelItem\batch(), JModelAdmin\batch(), UsersModelUser\batch(), MenusModelItem\batchCopy(), CategoriesModelCategory\batchCopy(), MenusModelItem\batchMove(), JUser\bind(), UsersControllerUsers\changeBlock(), JHtmlContentAdministrator\featured(), JHtmlContact\featured(), ContactControllerContacts\featured(), ContentControllerArticles\featured(), PluginsModelPlugin\getForm(), TemplatesModelStyle\getForm(), ModulesModelModule\getForm(), MenusModelItem\getForm(), JFormFieldMenutype\getInput(), modArticlesLatestHelper\getList(), JModelForm\loadForm(), plgUserProfile\onUserAfterDelete(), plgUserProfile\onUserAfterSave(), InstallerControllerManage\publish(), JControllerAdmin\publish(), JHtmlRedirect\published(), MenusControllerItems\setDefault(), JHtmlMessages\state(), JHtmlNewsfeed\state(), et BannersControllerBanners\sticky_publish().
static JArrayHelper::isAssociative |
( |
|
$array | ) |
|
|
static |
static JArrayHelper::pivot |
( |
|
$source, |
|
|
|
$key = null |
|
) |
| |
|
static |
Pivots an array to create a reverse lookup of an array of scalars, arrays or objects.
- Paramètres:
-
array | $source | The source array. |
string | $key | Where the elements of the source array are objects or arrays, the key to pivot on. |
- Renvoie:
- array An array of arrays pivoted either on the value of the keys, or an individual key of an object or array.
- Depuis:
- 11.3
Références $counter, $key, et elseif.
static JArrayHelper::sortObjects |
( |
& |
$a, |
|
|
|
$k, |
|
|
|
$direction = 1 , |
|
|
|
$caseSensitive = true , |
|
|
|
$locale = false |
|
) |
| |
|
static |
static JArrayHelper::toInteger |
( |
& |
$array, |
|
|
|
$default = null |
|
) |
| |
|
static |
Function to convert array to integer values
- Paramètres:
-
array | &$array | The source array to convert |
mixed | $default | A default value (int|array) to assign if $array is not an array |
- Renvoie:
- void
- Depuis:
- 11.1
Références $i, elseif, et null.
Référencé par RedirectControllerLinks\activate(), RedirectModelLink\activate(), ContactModelContact\batch(), BannersModelBanner\batch(), ModulesModelModule\batch(), MenusModelItem\batch(), JModelAdmin\batch(), UsersModelUser\batch(), MenusModelItem\batchMove(), CategoriesModelCategory\batchMove(), UsersModelUser\batchUser(), JTableUser\bind(), JHtmlCategory\categories(), UsersControllerLevel\delete(), MenusControllerMenus\delete(), CategoriesControllerCategories\delete(), JControllerAdmin\delete(), MenusModelMenu\delete(), InstallerModelDiscover\discover_install(), TemplatesControllerStyles\duplicate(), ModulesControllerModules\duplicate(), ContentModelArticle\featured(), ContactModelContact\featured(), JElementAuthor\fetchElement(), JForm\filterField(), FinderModelSearch\getExcludedLinkIds(), FinderIndexerQuery\getExcludedTermIds(), JAccess\getGroupsByUser(), FinderIndexerQuery\getIncludedTermIds(), BannersModelBanners\getListQuery(), ContactModelContacts\getListQuery(), ContentModelArticles\getListQuery(), JFormFieldCategoryEdit\getOptions(), ModFinderHelper\getQuery(), FinderIndexerQuery\getRequiredTermIds(), JAccess\getUsersByGroup(), InstallerControllerLanguages\install(), JHtmlCategory\options(), UsersModelUsers\populateState(), FinderModelSearch\populateState(), FinderIndexerQuery\processDynamicTaxonomy(), FinderIndexerQuery\processStaticTaxonomy(), BannersTableClient\publish(), FinderTableMap\publish(), MessagesTableMessage\publish(), UsersTableNote\publish(), FinderTableFilter\publish(), JTableExtension\publish(), WeblinksTableWeblink\publish(), JControllerAdmin\publish(), BannersTableBanner\publish(), JTableContent\publish(), JTableNested\publish(), JTable\publish(), InstallerControllerManage\refresh(), InstallerControllerManage\remove(), FinderControllerFilter\save(), TemplatesModelStyle\save(), JControllerAdmin\saveorder(), TemplatesControllerStyles\setDefault(), MenusControllerItems\setDefault(), JUserHelper\setUserGroups(), BannersTableBanner\stick(), JInstallerModule\uninstall(), TemplatesControllerStyles\unsetDefault(), et InstallerControllerUpdate\update().
static JArrayHelper::toObject |
( |
& |
$array, |
|
|
|
$class = 'stdClass' |
|
) |
| |
|
static |
Utility function to map an array to a stdClass object.
- Paramètres:
-
array | &$array | The array to map. |
string | $class | Name of the class to create |
- Renvoie:
- object The object mapped from the given array
- Depuis:
- 11.1
Références $class, et null.
Référencé par JInstallationModelFilesystem\detectFtpRoot(), WeblinksModelWeblink\getItem(), ContentModelForm\getItem(), LanguagesModelLanguage\getItem(), MenusModelMenu\getItem(), PluginsModelPlugin\getItem(), TemplatesModelStyle\getItem(), FinderIndexerAdapter\getItem(), ModulesModelModule\getItem(), MenusModelItem\getItem(), JModelAdmin\getItem(), FinderIndexerAdapter\getItems(), JInstallationModelDatabase\initialise(), JInstallationModelDatabase\installSampleData(), UsersModelGroup\preprocessForm(), JInstallationModelFilesystem\setFolderPermissions(), JInstallationModelConfiguration\setup(), et JInstallationModelFilesystem\verifyFtpSettings().
static JArrayHelper::toString |
( |
|
$array = null , |
|
|
|
$inner_glue = '=' , |
|
|
|
$outer_glue = ' ' , |
|
|
|
$keepOuterKey = false |
|
) |
| |
|
static |
Utility function to map an array to a string.
- Paramètres:
-
array | $array | The array to map. |
string | $inner_glue | The glue (optional, defaults to '=') between the key and the value. |
string | $outer_glue | The glue (optional, defaults to ' ') between array elements. |
boolean | $keepOuterKey | True if final key should be kept. |
- Renvoie:
- string The string mapped from the given array
- Depuis:
- 11.1
Références $item, $key, et $output.
Référencé par JHtmlImage\administrator(), JHtml\calendar(), JDocumentRendererHead\fetchHead(), JHtmlSelect\genericlist(), modSyndicateHelper\getLink(), ContentModelArticles\getListQuery(), JHtmlSelect\groupedlist(), JHtml\iframe(), JHtml\image(), JHtml\link(), JHtmlSelect\options(), JHtmlSelect\radiolist(), et JHtmlImage\site().
Documentation des données membres
JArrayHelper::$sortDirection |
|
staticprotected |
JArrayHelper::$sortLocale |
|
staticprotected |
La documentation de cette classe a été générée à partir du fichier suivant :