aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
AgeCommit message (Collapse)Author
2010-05-14Merged 5928-6908 from 1.7 branch to trunk.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6059 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-05-14merge -r5898:5928 (not excluding riverdashboard, notifications, and ↵brettp
messageboard) from 1.7 to trunk. git-svn-id: http://code.elgg.org/elgg/trunk@6058 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-04-17Updated docs for types and subtypes in elgg_get_entities().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5796 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-04-16Merged type_subtype_pair fix from 1.7 branch.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5789 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-04-05Merged 5605:5622 from 1.7 to trunk.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5623 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-04-05Merged 5530:5604 from 1.7 to trunk.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5622 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-04-05Merged 5487:5525 from 1.7 to trunk.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5621 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-03-23Added remove_subtype() and update_subtype().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5488 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-03-22Merged 1.7 bugfixes back into core. (5376:HEAD).brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5471 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-03-10Added elgg_instanceof().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5353 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-03-09Fixed incorrect deprecated function rewrite for list_entities().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5338 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-03-01Fixes #1563: Added time_updated and site_guid to the export vals.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3977 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-17Fixes #1488: Removed use of deprecated functions in core. brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3947 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-13Cleaned up tag searching so you can search on a specific tag. Useful in ↵brettp
search so a tag in "Things I like" won't match a tag in "Things I hate." git-svn-id: http://code.elgg.org/elgg/trunk@3938 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-12Closes #1506: Added elgg_register_tag_metadata_name(), ↵brettp
elgg_get_registered_tag_metadata_names(), and ElggEntity::getTags(). Search on tags updated to use registered tag names instead of hard-coded 'tags' metadata name. git-svn-id: http://code.elgg.org/elgg/trunk@3936 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-01Fixed incorrect variable for subtype in get_entity_dates().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3896 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Fixes #1406: get_entity_dates() supports order by.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3892 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Fixes #1376: added ElggEntity::removeRelationship().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3889 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Updated documentation for elgg_get_entities().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3881 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Fixes #1325: ElggEntities::countEntitiesFromRelationship() support inverse ↵brettp
relationships. git-svn-id: http://code.elgg.org/elgg/trunk@3880 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Put the can_write_to_container() plugin hook in the right place after [3871].brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3875 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-31Deprecated old search functions and views.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3872 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-31Fixes #1164: can_write_to_container() now sends default values through ↵brettp
container_permissions_check hook. git-svn-id: http://code.elgg.org/elgg/trunk@3871 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-20Fixed documentation for time created and modified params in elgg_get_entities().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3814 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-12Fixes #1414: Metadata set to a falsy value (except NULL) returns TRUE for ↵brettp
isset($obj->md). git-svn-id: http://code.elgg.org/elgg/trunk@3803 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-12closes #1145 - deprecated current "copy constructor" for all entities and ↵cash
implemented a clone method. The clone copies over all metadata but not annotations and private settings. It sets the guid to 0 so saving the cloned entity creates a new database record. The ownership/access of metadata is set during the save and will be the same as that of the entity. git-svn-id: http://code.elgg.org/elgg/trunk@3802 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-08Refs #1400: Fixed a typo in checking the site_guid. Can't duplicate #1400 ↵brettp
now, so possible fix for that. Waiting for other tests to close this one. git-svn-id: http://code.elgg.org/elgg/trunk@3790 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-21fixes #988 - subtype is now available on new entities after being savedcash
git-svn-id: http://code.elgg.org/elgg/trunk@3777 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-20fixed typo in list_entities()cash
git-svn-id: http://code.elgg.org/elgg/trunk@3772 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-17when asking for a count of entities, we now return an integer rather than a ↵cash
string git-svn-id: http://code.elgg.org/elgg/trunk@3764 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-08fixes #1305 - user and entity cache now cleared on deletecash
git-svn-id: http://code.elgg.org/elgg/trunk@3743 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-24Fixing a bug resulting from get_loggedin_user() return FALSE.nickw
This bug could throw a fatal error to non-loggedin users. git-svn-id: http://code.elgg.org/elgg/trunk@3707 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-24entities can now have metadata of 0 and return the correct type. Fixes #1192cash
git-svn-id: http://code.elgg.org/elgg/trunk@3705 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-24fixes #935cash
git-svn-id: http://code.elgg.org/elgg/trunk@3702 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-20Fixed a bug with group by and order by in elgg_get_entities. #ElggCampBAbrettp
git-svn-id: http://code.elgg.org/elgg/trunk@3694 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-09Ignoring empty owner_guids in elgg_get_entities.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3644 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-07fixed bug in list_entities() wrapper function - it was ignoring false values ↵cash
- there are probably similar problems in the other new wrapper functions git-svn-id: http://code.elgg.org/elgg/trunk@3632 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-06Added ability to pass 0 as a subtype meaning "entities without a subtype".brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3623 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-02Deprecated elgg_get_entities_from_annotations().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3614 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-28Deprecated get_entities_from_metadata() and get_entities_from_metadata_multi().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3592 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-27Removed some commented out code.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3587 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-25Corrected bug when passing container_guids or owner_guids of 0.brettp
Changed the name of the $prefix to $table in sql helper functions. Improved documentation. git-svn-id: http://code.elgg.org/elgg/trunk@3580 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-24Created elgg_get_entities() and rewrote get_entities() to pass to the new ↵brettp
function. First go at removing get_entities() calls in native functions. git-svn-id: http://code.elgg.org/elgg/trunk@3579 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-22Pulling in MITRE's search core. Fo'rizzle this time. Yo.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3572 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-16Rewriting core debug messages to be more informative.nickw
Introducing the concept of levels for Elgg debugging: notices, warnings and errors are displayed when the appropriate debugging level is enabled. An additional level of "debug" exists to differentiate from errors. git-svn-id: http://code.elgg.org/elgg/trunk@3560 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-13Standardized users and entities.brettp
Fleshed out elgg_set_ignore_access() and elgg_get_ignore_access() git-svn-id: http://code.elgg.org/elgg/trunk@3533 36083f99-b078-4883-b0ff-0f9b5a30f544