aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
AgeCommit message (Collapse)Author
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
2009-10-13Standardized entities.php.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3530 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-09Reverted back to previous copy removing Justin's search because of views ↵brettp
problems in plugins. git-svn-id: http://code.elgg.org/elgg/trunk@3521 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-09Pulled in Justin's search changes from github.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3520 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-09Creating an ElggObject unit test.nickw
Fixing issues with the unit test plugin hooks, as well as infinite looping bugs introduced by the unit test skeleton. git-svn-id: http://code.elgg.org/elgg/trunk@3519 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-08Adding generic unit tests for ElggEntity.nickw
git-svn-id: http://code.elgg.org/elgg/trunk@3516 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-07Fixes #790: Removing unneeded @s.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3513 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-06Adding unit test methods to the new Entities test.nickw
git-svn-id: http://code.elgg.org/elgg/trunk@3512 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-02Added unit tests for entities.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3505 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-09-04Added strip_tags() to setting titles in ElggEntitybrettp
git-svn-id: https://code.elgg.org/elgg/trunk@3463 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-08-31All line endings are now Unix-style.brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3451 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-08-28Fixes #1196: ElggEntity::disable() now accepts a 2nd arg for recursive. New ↵brettp
users are not recursively disabled for plugins that need to create entities owned by the new user upon entity creation. git-svn-id: https://code.elgg.org/elgg/trunk@3450 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-08-20Whoa nelly this is a big one: Removed license and copyright for files.brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3427 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-07-06Closes #742: Ability to retrieve master icon from getIcon() interface.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3386 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-06-29Updated get_*() functions ot return false if an invalid subtype is specified.brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3360 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-05-28Refs #965: Search now correctly using page handler to make it easier to replace.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3308 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-05-05Closes #1007: Private data now removed on entity deletion.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3258 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-04-22Closes #957: Annotations and metadata owned by a deleted user are now also ↵marcus
deleted. git-svn-id: https://code.elgg.org/elgg/trunk@3227 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-11Closes 868: Fixes regression introduced in [3119]. Version number bumped.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3153 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-11Added a clause that will detect if insert_data returned 0 rather than false, ↵ben
and returns 'true' in this case. Fixes #867 git-svn-id: https://code.elgg.org/elgg/trunk@3152 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-06Added garbage collector hook to clear up orphaned sub table entities.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3116 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-05Error in subtype detectionben
git-svn-id: https://code.elgg.org/elgg/trunk@3092 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-05Fixed search RSSben
git-svn-id: https://code.elgg.org/elgg/trunk@3090 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-04Access fixben
git-svn-id: https://code.elgg.org/elgg/trunk@3085 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-04Let's go with the most obvious application of this.ben
git-svn-id: https://code.elgg.org/elgg/trunk@3084 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-04River access issuesben
git-svn-id: https://code.elgg.org/elgg/trunk@3083 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-03Removed calls to the deprecated entity cacheben
git-svn-id: https://code.elgg.org/elgg/trunk@3028 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-26Fixes to container permissions and widgets to allow default widgets to work ↵kevinjardine
with the Elgg permissions system. git-svn-id: https://code.elgg.org/elgg/trunk@2968 36083f99-b078-4883-b0ff-0f9b5a30f544