aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
AgeCommit message (Collapse)Author
2008-10-08Closes #301: Profile icons now use getIcon() API. Overrides now possible:marcus
For themes to override, create a plugin hook listening to 'entity:icon:url' and object 'user'. In the hook return a different url. To replace default user icons in a plugin one might create a hook: function profile_usericon_hook($hook, $entity_type, $returnvalue, $params) { if ((!$returnvalue) && ($params['entity'] instanceof ElggUser)) { // return your default graphic here. } } And set it to priority 900 (lower priority than the code that displays a pretty icon for users but higher than the default object display code in entities.php) git-svn-id: https://code.elgg.org/elgg/trunk@2221 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-07Minor tweaks to the getIcon code:marcus
* Default now running on priority 1000 * Renamed default hook to a better name Marcus Povey git-svn-id: https://code.elgg.org/elgg/trunk@2214 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-06You can now remove pagination from a listben
git-svn-id: https://code.elgg.org/elgg/trunk@2192 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-06Closes #405: If -> else if. Nice spot.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2183 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-09-15Closes #346: More granularity on enable/disable. marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2082 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-18Removing a user disables their entitiesben
git-svn-id: https://code.elgg.org/elgg/trunk@1997 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-16Code also uselessmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@1960 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-16Salt free dietmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@1959 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-15The front page now only shows content and groups.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1929 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Closes #227 and #243: Hopefully this has the fscking thing nailed to the wall. marcus
Please report any problems, especially is they relate to access permissions (granted when you shouldn't or denied when you should) git-svn-id: https://code.elgg.org/elgg/trunk@1912 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Reverted changes so users can now register again.marcus
There are critical issues with enable/disable. Primarily: 1) A number of functions do not use the access controls, these throw an exception when accessing a disabled entity. 2) #243 does not seem possible. git-svn-id: https://code.elgg.org/elgg/trunk@1909 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Correct menus being usedmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@1907 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Refs #237: Added option, now just needs a search listing banned users.marcus
Depends #243 git-svn-id: https://code.elgg.org/elgg/trunk@1904 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Closes #227. Depends on #243 to work.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@1903 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Actually closes #46marcus
git-svn-id: https://code.elgg.org/elgg/trunk@1901 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Added a reason for disabled objects.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@1891 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Closes #46: Method for activating an entity. No hookup yet.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@1890 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-11Added latest content to the front pageben
git-svn-id: https://code.elgg.org/elgg/trunk@1847 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-11Added a search submenu.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1819 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-08Solved write issues in groups for non-admin users.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1808 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-08Adjusted contributors file.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1806 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-07Centralised set and get magic functions to the tlc. Added isset and unset ↵marcus
magic methods. Report any problems! git-svn-id: https://code.elgg.org/elgg/trunk@1776 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-06Edited container-related permissions.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1737 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-05Tagging issue on unsaved entities: solved.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1708 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-05Speculative fix for metadata issue.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@1707 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-05Actually fixes #202marcus
git-svn-id: https://code.elgg.org/elgg/trunk@1706 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-05Fixes #202 : Listen to plugin hook 'entity:icon:url', which passes parameters:marcus
'entity' The entity 'viewtype' The view (eg 'default') 'size' The size (eg, large, tiny etc) You should return a url for the object's icon if you can.. otherwise return nothing at all. git-svn-id: https://code.elgg.org/elgg/trunk@1705 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-04Further changes to the admin panelben
git-svn-id: https://code.elgg.org/elgg/trunk@1694 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-04Fixed the container_guid override.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1684 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-01Changed so that validated_email flag written as null user. Refs #190.marcus
Also confirms fix and closes #104. git-svn-id: https://code.elgg.org/elgg/trunk@1649 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-01The metadata permissions check now passes along (optionally) the specific ↵ben
piece of metadata. Refs #104 git-svn-id: https://code.elgg.org/elgg/trunk@1648 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-31Closes #151: Introducing getIcon($size)marcus
git-svn-id: https://code.elgg.org/elgg/trunk@1629 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-25User test negative non-fatal on permissions checkmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@1548 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-25Actually fetching the usermarcus
git-svn-id: https://code.elgg.org/elgg/trunk@1547 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-25Support multiple metadata values on entities, closes #179marcus
git-svn-id: https://code.elgg.org/elgg/trunk@1519 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-24Allowing multiplemarcus
git-svn-id: https://code.elgg.org/elgg/trunk@1510 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-24Correctly exporting site and container as openddmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@1506 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-23Moving canWriteToContainermarcus
git-svn-id: https://code.elgg.org/elgg/trunk@1500 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-22Saving cached annotationsmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@1487 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-21Exporting full profilemarcus
git-svn-id: https://code.elgg.org/elgg/trunk@1484 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-18Fix for can_write_to_containerben
git-svn-id: https://code.elgg.org/elgg/trunk@1481 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-18Fixed the can_write_to_container function when you're logged out.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1480 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-18Further fixes.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1479 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-18Fix for previous.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1478 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-18Container_guid is set intelligently for get_entities when owner_guid is set.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1477 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-18Moved can_write_to_container into elgglibben
git-svn-id: https://code.elgg.org/elgg/trunk@1474 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-18Moved container_guid to entities, modified a bunch of functions.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1473 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-17Closes #160marcus
git-svn-id: https://code.elgg.org/elgg/trunk@1452 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-16Fixed numerous occurrances of elgg_view_entity being called incorrectly. ↵marcus
Fixes #163 git-svn-id: https://code.elgg.org/elgg/trunk@1449 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-16Closes #155: Introduces 'volatile' type of metadata in odd feeds.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@1444 36083f99-b078-4883-b0ff-0f9b5a30f544