aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
AgeCommit message (Collapse)Author
2011-02-15Fixes #2777: delete_entity is now recursiveewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@8258 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-15Fixes #2860: Deprecated several registration functions that were using the ↵ewinslow
'callback-first' ordering git-svn-id: http://code.elgg.org/elgg/trunk@8257 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-15Fixes #2476: update_entity_last_action() sanitizes posted time.ewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@8255 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-15Replaced all occurrences of register_page_handler in core with ↵ewinslow
elgg_register_page_handler git-svn-id: http://code.elgg.org/elgg/trunk@8244 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-14Fixes #2918. Moved annotation/metadata delete functions from ElggUser to ↵brettp
ElggEntity. When deleted, entities now correctly delete metadata they own as well as metadata on them. Removed uses of deprecated functions. git-svn-id: http://code.elgg.org/elgg/trunk@8222 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-13Deprecated ElggEntity->clearMetadata() by ElggEntity->deleteMetadata(). ↵brettp
Disabling entities now disables their annotations and metadata. Enabling entities enables annotations and metadata. Fixes #1115. git-svn-id: http://code.elgg.org/elgg/trunk@8213 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-13Refs #2907. DRY'd up and abstracted out a lot of metadata / annotation ↵brettp
functions so I can implement #1115 with a clean conscious. git-svn-id: http://code.elgg.org/elgg/trunk@8207 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-13Refs #2301 demoting type:subtype warnings to noticescash
git-svn-id: http://code.elgg.org/elgg/trunk@8205 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-12Fixes #2906. Added elgg_sql_reverse_order_by() and wired it up to ege() and ↵brettp
ega(). Pass 'reverse_order_by' => true in option arrays. git-svn-id: http://code.elgg.org/elgg/trunk@8184 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-12register_entity_url_handler => elgg_register_entity_url_handler (because ↵ewinslow
every other reigstration function asks for the callback last) git-svn-id: http://code.elgg.org/elgg/trunk@8140 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-12Refs #2610: Using call_user_func in url hooksewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@8139 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-11Added $viewer callback option for elgg_list_entities().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8117 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-08Refs #2543: Core uses the new functions from previous commit.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8078 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-06fixed some minor documentation issuescash
git-svn-id: http://code.elgg.org/elgg/trunk@8050 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-05Fixes #2559 refs #2475 added ElggEntity:getIconURL() and ↵cash
elgg_view_entity_icon() git-svn-id: http://code.elgg.org/elgg/trunk@8039 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-01Moving deprecated functions out of files access.php - entities.php. This ↵ewinslow
time into two files based on version deprecated and maintaining documentation git-svn-id: http://code.elgg.org/elgg/trunk@7979 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-01Reversing 7975ewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7978 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-01Refs #2839: moved deprecated functions from access.php - ↵ewinslow
private_settings.php to deprecated.php. Still have to do relationships.php - xml.php. Deleted documentation for these functions since 1) it was using up precious bytes, and 2) documentation should not be needed since people should not be trying to use these if they are using 1.8, and 3) I assume the documentation will exist as archived 1.7 docs. git-svn-id: http://code.elgg.org/elgg/trunk@7975 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-01-23Refs #2804 #2805 pulling changes in trunk from 1.7 branchcash
git-svn-id: http://code.elgg.org/elgg/trunk@7915 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-01-07Changed callback function option from 'row_callback' to 'callback' for ↵brettp
elgg_get_entities(). git-svn-id: http://code.elgg.org/elgg/trunk@7856 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-01-06Fixes #1242: elgg_get_data() correctly returns an empty array on no results. ↵brettp
It still returns false on error, but I consider that the correct behavior. Please reopen if it needs discussion. git-svn-id: http://code.elgg.org/elgg/trunk@7850 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-31Refs #2684, #2754: Merged r7701 to trunk.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@7796 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-31added a proper gallery view - still need to wire up the elgg_view_list_item ↵cash
functions and remove the use of context git-svn-id: http://code.elgg.org/elgg/trunk@7784 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-30adding ability to override access regardless of whether the entity is saved ↵cash
in the database yet git-svn-id: http://code.elgg.org/elgg/trunk@7777 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-14Pulling in hellekin's commit to fix typos in log messages: ↵cash
https://github.com/lorea/Elgg/commit/90e94fc594a25b93429fbc8f746d99a047c41b0d git-svn-id: http://code.elgg.org/elgg/trunk@7619 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-11fixed spelling error in documentationcash
git-svn-id: http://code.elgg.org/elgg/trunk@7598 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-09Refs #1411: Can specify custom row callbacks with 'row_callback' options in ↵brettp
elgg_get_entities(). git-svn-id: http://code.elgg.org/elgg/trunk@7585 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-09DRY'd up elgg_get_entities() where clause helper functions. Added ability ↵brettp
to specify guids in elgg_get_entity*() functions. git-svn-id: http://code.elgg.org/elgg/trunk@7575 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-08Fixed a bug that wouldn't let you specify multiple selects in get_entities().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@7570 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-20Fixes #2668 adding getOwnerGUID()cash
git-svn-id: http://code.elgg.org/elgg/trunk@7378 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-20Fixes #2473: removes initialise_entity_cache()ewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7365 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-14Fixes #2334: Converted viewtype => listtype and viewtypetoggle => ↵ewinslow
listtypetoggle. Did my best to maintain backwards compatibility but might have missed something... git-svn-id: http://code.elgg.org/elgg/trunk@7311 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-10Fixes #2367: With fear and trepidation, converting events/plugin hooks to ↵ewinslow
use elgg_ prefixed versions git-svn-id: http://code.elgg.org/elgg/trunk@7284 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-06pulled private settings out into a separate libcash
git-svn-id: http://code.elgg.org/elgg/trunk@7249 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-03Moved list_entities_groups to groups.php and deprecated in favor of ↵ewinslow
elgg_list_entities git-svn-id: http://code.elgg.org/elgg/trunk@7232 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-03Refs #1320. Updated core to use elgg_echo()'s native string replacement.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@7227 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-03Refs #2050: Added missing docblock parametersewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7222 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-03Fixes #2050: Added subtype parameter to can_write_to_container functions and ↵ewinslow
hooks git-svn-id: http://code.elgg.org/elgg/trunk@7221 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-03Set return type of get_entity to ElggEntityewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7220 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-03Fixes #2606: Abstracted elgg_list_entities. Takes an optional second ↵ewinslow
argument for the 'getter', defaulting to 'elgg_get_entities'. Converted current elgg_list_entities* functions to use it git-svn-id: http://code.elgg.org/elgg/trunk@7212 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-02Refs #2463: Added URL normalization support for entity and extender url handlersewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7203 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-02Refs #2463: Fixed typo of elgg_normalize_url functionewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7201 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-02Refs #2463: Removed some more instances of $CONFIG->url. Added support for ↵ewinslow
elgg_normalize_url to elgg_add_action_tokens_to_url git-svn-id: http://code.elgg.org/elgg/trunk@7200 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-02Refs #2538: Renamed elgg.extendUrl to elgg.normalize_urlewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7188 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-30Fixed an invalid call to get_pageowner_guid() in can_edit_entity().brettp
Removed the call to the validation function in useradd. git-svn-id: http://code.elgg.org/elgg/trunk@7132 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-28Standardized code in all of core, not including language files, tests, or ↵brettp
core mods. git-svn-id: http://code.elgg.org/elgg/trunk@7124 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-14Fixes #2403 - adds unregister_entity_type()cash
git-svn-id: http://code.elgg.org/elgg/trunk@7077 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-10Checking for a valid entity before using its methods in update_entity().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@7049 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-30Refs #2344 - moves entities directory to pages directorycash
git-svn-id: http://code.elgg.org/elgg/trunk@6988 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-22Refs #2450: Changed the subpackage and fixed a typo.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6953 36083f99-b078-4883-b0ff-0f9b5a30f544