aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
AgeCommit message (Collapse)Author
2010-03-10Added elgg_instanceof().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5353 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-03-03Pulled in missing interface modifications for the engine dir.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5259 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-03-01Fixes #1558: Applied Cash's patch. Added unit tests to test for regressions ↵brettp
for any bugs fixed in trac. git-svn-id: http://code.elgg.org/elgg/trunk@3979 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-22Fixes #1531: Correctly implemented dates for friendly times. No more coding ↵brettp
while watching the Olympics! git-svn-id: http://code.elgg.org/elgg/trunk@3965 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-21Deprecated elgg_validate_action_url() by elgg_add_action_tokens_to_url(). ↵brettp
Updated elgg_deprecated_notice() to include the file & line of the caller. Updated core to use elgg_add_action_tokens_to_url(). git-svn-id: http://code.elgg.org/elgg/trunk@3962 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-20Refs #1531: Added full time and dates to friendly time stamptes via acronym ↵brettp
tags. git-svn-id: http://code.elgg.org/elgg/trunk@3957 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-17Refs #1523: elgg_get_entities() uses the constants for defaults and ↵brettp
conditionals. Added some tests to check for no subtypes. Updated the documentation. git-svn-id: http://code.elgg.org/elgg/trunk@3946 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-16Removing embed extended view from core.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3939 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-12Can't type hint for strings.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3937 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-12Fixes #1510: Added elgg_get_file_list(). get_library_files() wraps to this ↵brettp
function with a deprecation notice for any plugin authors using it to auto-load files. git-svn-id: http://code.elgg.org/elgg/trunk@3935 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-12Fixes #1512: Using a helper function for mb_parse_str() instead of wrapping ↵brettp
it exactly. git-svn-id: http://code.elgg.org/elgg/trunk@3934 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-11Fixes #1501: Setting ini for mbstring.internal_encoding to utf8 to work ↵brettp
around a PHP bug. Replaced calls to parse_str() with elgg_parse_str(). git-svn-id: http://code.elgg.org/elgg/trunk@3932 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-09Fixes #1503, fixes #1474: Library files are loaded using a hard-coded list ↵brettp
to better deal with removed files. Also, ~4% performance increase per page load on my server! git-svn-id: http://code.elgg.org/elgg/trunk@3927 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-06fixes #1486 - elgg_dump now works when sending to server error logcash
git-svn-id: http://code.elgg.org/elgg/trunk@3909 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-05Fixes #1486: elgg_log() can now log arrays and objects to error_log().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3905 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-05Fixes #1481: Applie Mike's patch and created function ↵brettp
elgg_http_add_url_query_elements() to handle what the pagination view was trying to do. git-svn-id: http://code.elgg.org/elgg/trunk@3903 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-04Refs #1200: Changed logic in elgg_get_entity_type_subtype_where_sql() to ↵brettp
return FALSE if there are no valid subtypes passed. Ignores all invalid subtypes. Added (partial) tests for elgg_get_entities() types and subtypes. git-svn-id: http://code.elgg.org/elgg/trunk@3901 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Fixes #340: add_menu() and make_register_object() deprecated.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3894 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Fixes #1478: uh....how did that get in there?brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3888 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Fixes: #1475. elgg_http_build_url() correctly sets port number.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3887 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Fixes #1261: Exceptions force an HTTP recache.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3884 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Refs #1079: elgg_view() casts view to a string before attempting to call views.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3877 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Add elgg_deprecated_notice() so we don't have to re-write all the elgg_log() ↵brettp
deprecated notices to register_error()s. Updated current ones to use this. git-svn-id: http://code.elgg.org/elgg/trunk@3874 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-31Fixes #959: Added elgg_http_remove_url_query_element() to remove a GET ↵brettp
element instead of using faulty regexp. git-svn-id: http://code.elgg.org/elgg/trunk@3866 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-30Changed array_key_exists() to isset() in elgg_validate_action_url().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3865 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-30Added checking for $query array in elgg_validate_action_url().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3864 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-29Fixes #1470, Fixes #1471: elgg_view_regenerate_simplecache() no longer ↵brettp
triggers the pagesetup/system hook. Fixes problems with creating the submenu. git-svn-id: http://code.elgg.org/elgg/trunk@3855 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-27Fixes #1465: Added unregister_event_handler() and unregister_plugin_hook().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3848 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-24Correctly forwarding messages among multiple forwards (action_gatekeeper() ↵brettp
-> index -> dashboard would drop messages generated in action_gatekeeper()). git-svn-id: http://code.elgg.org/elgg/trunk@3839 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-22Fixed a bug preventing messages and warnings from passing during a forward().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3829 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-21Changed default declaration of $vars in elgg_view() to array().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3823 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-21elgg_http_build_query() now supports ports.brettp
Checking for __elgg_ts also in elgg_validate_action_url(). Fixed a spelling mistake ;) git-svn-id: http://code.elgg.org/elgg/trunk@3820 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-14Added checking and an ERROR log if elgg_view() is passed a non-array $vars.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3806 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-13Creating a helper function to return INI values in bytes.nickw
git-svn-id: http://code.elgg.org/elgg/trunk@3804 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-11Always generating action tokens with output/confirmlink.nickw
Includes a check for actions already defining the tokens. git-svn-id: http://code.elgg.org/elgg/trunk@3799 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-20fixed bug where array of messages passed to system_messages caused execution ↵cash
to stop - also displaying only errors if they exist rather than having success and error messages overlapping each other git-svn-id: http://code.elgg.org/elgg/trunk@3776 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-17get_submenu was throwing out tons of notices - this should be fixed nowcash
git-svn-id: http://code.elgg.org/elgg/trunk@3763 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-07fixed issue where php notices were written to log on any debug level and ↵cash
added a plugin hook so plugins can direct elgg_log messages where they want git-svn-id: http://code.elgg.org/elgg/trunk@3735 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-04fixes #1273 - replaced previous hack with call to getTypecash
git-svn-id: http://code.elgg.org/elgg/trunk@3725 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-03Trimming the paths when detecting which nav item to mark as selected.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3718 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-02Changed the way the sidebar nav "selected" class is applied. Should yield ↵brettp
more accurate results if the URIs aren't exactly the same. git-svn-id: http://code.elgg.org/elgg/trunk@3716 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-11fixes #1339 - elgg_view_exists now handles view extensions for non-default ↵cash
viewtypes (for one level of recursion) git-svn-id: http://code.elgg.org/elgg/trunk@3666 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-11get_views deprecated for elgg_get_views (just to be consistent with views api)cash
git-svn-id: http://code.elgg.org/elgg/trunk@3665 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-10elgg_extend_view() replaces extend_view()cash
git-svn-id: http://code.elgg.org/elgg/trunk@3661 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-10updated documentation of functions used in creating the topbar tools ↵cash
dropdown menu git-svn-id: http://code.elgg.org/elgg/trunk@3660 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-09Removed old code from get_submenu().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3643 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-30Cleaning up logic regarding view error notices.nickw
git-svn-id: http://code.elgg.org/elgg/trunk@3604 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-27Fixes #1161: Views now default to 'default' if not found.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3585 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-27Created elgg_get_entities_from_metadata() and made get_entities_from_metadata().brettp
Made elgg_get_entities() accept extra joins and wheres in the options. Created a helper function elgg_normalise_plural_options_array() to rewrite shortcut singular options to plurals. git-svn-id: http://code.elgg.org/elgg/trunk@3584 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-24Cleaned up some code in elgg_view().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3578 36083f99-b078-4883-b0ff-0f9b5a30f544