API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JArrayHelper::_sortObjects | ( | &$ | a, |
&$ | b | ||
) | [static] |
Private callback function for sorting an array of objects on a key
array | $a | An array of objects |
array | $b | An array of objects |
JArrayHelper::fromObject | ( | $ | p_obj, |
$ | recurse = true , |
||
$ | regex = null |
||
) | [static] |
Utility function to map an object to an array
object | The source object |
boolean | True to recurve through multi-level objects |
string | An optional regular expression to match on field names |
Références $k.
Référencé par mosObjectToArray().
JArrayHelper::getColumn | ( | &$ | array, |
$ | index | ||
) | [static] |
JArrayHelper::getValue | ( | &$ | array, |
$ | name, | ||
$ | default = null , |
||
$ | type = '' |
||
) | [static] |
Utility function to return a value from a named array or a specified default
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) |
Références $array, $name, et $type.
Référencé par JUser::bind(), JInstallationHelper::createAdminUser(), JInstallationModel::ftpConfig(), JInstallationHelper::getFilePerms(), JInstallationModel::getVars(), josSpoofCheck(), JInstallationModel::makeDB(), mosGetParam(), plgContentGeshi_replacer(), et PollController::save().
JArrayHelper::sortObjects | ( | &$ | a, |
$ | k, | ||
$ | direction = 1 |
||
) | [static] |
Utility function to sort an array of objects on a given field
array | $arr | An array of objects |
string | $k | The key to sort on |
int | $direction | Direction to sort in [1 = Ascending] [-1 = Descending] |
Référencé par mosAdminMenus::MenuSelect(), et SortArrayObjects().
JArrayHelper::toInteger | ( | &$ | array, |
$ | default = null |
||
) | [static] |
Function to convert array to integer values
array | $array | The source array to convert |
mixed | $default | A default value (int|array) to assign if $array is not an array |
Références $array, $i, et elseif.
Référencé par TOOLBAR_sections::_EDIT(), TOOLBAR_newsfeeds::_EDIT(), TOOLBAR_modules::_EDIT(), MenusModelList::_rebuildSubLevel(), MenusModelItem::_setSubLevel(), PluginsController::access(), MenusController::accesspublic(), MenusController::accessregistered(), MenusController::accessspecial(), UsersController::block(), changeContact(), changeFrontPage(), changePublishNewsFeeds(), MenusModelItem::checkout(), copyCategorySave(), copyCategorySelect(), ContentController::copyItem(), ContentController::copyItemSave(), copySectionSave(), copySectionSelect(), WeblinksModelWeblink::delete(), MenusModelList::delete(), MenusModelItem::delete(), InstallerController::disable(), UsersViewUsers::display(), UsersViewUser::display(), PluginsViewPlugin::display(), MenusController::doCopy(), MenusController::doCopyMenu(), MenusController::doMove(), editCategory(), editContact(), ContentController::editContent(), editNewsFeed(), editSection(), InstallerController::enable(), MenusModelList::fromTrash(), MenusModelItem::getItem(), MenusModelList::getItemsFromRequest(), modMostReadHelper::getList(), modLatestNewsHelper::getList(), UsersController::logout(), mosArrayToInts(), moveCategorySave(), moveCategorySelect(), ContentController::moveSection(), ContentController::moveSectionSave(), newMessage(), PluginsController::order(), MenusController::orderdown(), orderNewsFeed(), MenusController::orderup(), WeblinksModelWeblink::publish(), JTable::publish(), WeblinksController::publish(), PollController::publish(), PluginsController::publish(), MenusController::publish(), BannerControllerBanner::publish(), publishCategories(), publishSections(), WeblinksController::remove(), UsersController::remove(), PollController::remove(), MenusController::remove(), InstallerController::remove(), BannerControllerBanner::remove(), removeCategories(), removeContacts(), ContentController::removeContent(), removeMessage(), removeNewsFeeds(), removeSections(), restoreTrash(), WeblinksController::saveorder(), PluginsController::saveorder(), MenusController::saveorder(), ContentController::saveOrder(), saveOrder(), TemplatesController::saveTemplate(), sendMail(), MenusController::setdefault(), MenusModelList::setOrder(), ContentController::toggleFrontPage(), MenusModelList::toTrash(), JInstallerModule::uninstall(), WeblinksController::unpublish(), MenusController::unpublish(), viewdeleteTrash(), et viewrestoreTrash().
JArrayHelper::toObject | ( | &$ | array, |
$ | class = 'stdClass' |
||
) | [static] |
JArrayHelper::toString | ( | $ | array = null , |
$ | inner_glue = '=' , |
||
$ | outer_glue = ' ' , |
||
$ | keepOuterKey = false |
||
) |
Références $array, $item, et $output.
Référencé par JDocumentHTML::addHeadLink(), JHTMLImage::administrator(), JHTML::calendar(), JDocumentRendererHead::fetchHead(), JHTMLSelect::genericlist(), JHTML::iframe(), JHTML::image(), JHTML::link(), JHTMLSelect::radiolist(), et JHTMLImage::site().