aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggEntity.php
AgeCommit message (Collapse)Author
2011-03-21oof -- how did that happen?ewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@8806 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-03-21Added documentation of magic properties to ElggEntityewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@8805 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-03-20Fixes #3192, refs #650. ElggEntity->getMetaData() sets the limit to 0 for ↵brettp
array-based metadata. git-svn-id: http://code.elgg.org/elgg/trunk@8780 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-03-12improved documentation of can write to container method/functioncash
git-svn-id: http://code.elgg.org/elgg/trunk@8656 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-03-09Fixes #3058 pulls likes out as a plugincash
git-svn-id: http://code.elgg.org/elgg/trunk@8639 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-21fixes #2885 #2569 likes controlled by canAnnotate() with plugin hookcash
git-svn-id: http://code.elgg.org/elgg/trunk@8382 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-21Fixes #2971 added canComment() method and implemented it for ElggBlogcash
git-svn-id: http://code.elgg.org/elgg/trunk@8381 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-20Fixes #2963: Rewrote ElggEntity->setMetadata() because yikes. Wrote unit ↵brettp
tests for setting metadata on saved / unsaved entities. git-svn-id: http://code.elgg.org/elgg/trunk@8359 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-14Removed last of deprecated metadata calls in trunk.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8224 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-14Updated trunk to use new annotation functions. Added checks for ↵brettp
annotations_* options vs annotation_* options because it's so easy to confuse. git-svn-id: http://code.elgg.org/elgg/trunk@8223 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-12Refs #650. Replaced count_annotations().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8188 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-12Updated a few recent calls to elgg_get_annotations() to use ↵brettp
'reverse_order_by' => true. git-svn-id: http://code.elgg.org/elgg/trunk@8186 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-12Refs #650. Replaced calls to get_annotations() by elgg_get_annotations().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8182 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-12Refs #650. Replaced uses for get_metadata_byname() by elgg_get_metadata()brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8180 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-12Refs #650: Replaced uses of get_metadata_for_entity() by elgg_get_metadata().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8177 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-06moved the count comments and likes functions into the ElggEntity classcash
git-svn-id: http://code.elgg.org/elgg/trunk@8047 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-05supporting private settings before an entity is savedcash
git-svn-id: http://code.elgg.org/elgg/trunk@8032 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-01-02Refs #2490. Using array_key_exists() instead of isset() in get() overrides ↵brettp
to prevent a check for (invalid) metadata with the name of an attribute if that attribute evaluates to !isset(). git-svn-id: http://code.elgg.org/elgg/trunk@7815 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-29Refs #2668: Deprecated ElggEntity::setContainer() for setContainerGUID()brettp
git-svn-id: http://code.elgg.org/elgg/trunk@7474 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-20Fixes #2629: Pulled old initialise_attributes() into ElggData and added a ↵brettp
default param to emit a deprecation notice if called. git-svn-id: http://code.elgg.org/elgg/trunk@7387 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-20Refs #2668 adds getContainerGUID()cash
git-svn-id: http://code.elgg.org/elgg/trunk@7379 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 #2490: attributes initialize to NULL instead of empty string or 0. ↵ewinslow
Updated tests to reflect this git-svn-id: http://code.elgg.org/elgg/trunk@7376 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-14No comment...ewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7309 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-14Wow, what a blunder -- what to go deleting random methods, Winslowewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7308 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-14Refs #2486: Added support for the 'recursive' parameter to ElggEntity::delete()ewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7306 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-14Added comments to several undocumented methodsewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7305 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-03Fixes #2134: Moved getContainerEntity() method to ElggEntityewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7219 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-31Refs #2597: Pushed getOwner and getOwnerEntity into ElggEntity and ElggExtenderewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7172 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-31Refs #2597: Pulled __set, __get, __isset magic functions definitions into ↵ewinslow
ElggData git-svn-id: http://code.elgg.org/elgg/trunk@7163 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-31Refs #2597: Auto-initialize temp_metadata, temp_annotations, and volatile as ↵ewinslow
arrays git-svn-id: http://code.elgg.org/elgg/trunk@7162 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-31Refs #2597: Moved "implements Exportable" up to {{{ElggData}}}ewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7161 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-31Refs #2597: ElggEntity::initializeAttributes calls into parent ↵ewinslow
initializeAttributes() git-svn-id: http://code.elgg.org/elgg/trunk@7160 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-31Improved initializeAttributes implementationsewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7159 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-31Refs #2597: Added getURL(), getTimeCreated(), and initializeAttributes() to ↵ewinslow
{{{ElggData}}} git-svn-id: http://code.elgg.org/elgg/trunk@7157 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-30Refs #2597: pulled getOwner and getOwnerEntity functions into ElggDataewinslow
I thought this would be OK even though relationships don't technically have owners because ElggRelationship implemented the getObectOwnerGUID method git-svn-id: http://code.elgg.org/elgg/trunk@7156 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-30Refs #2597: Pulled Loggable functions with identical implementations into ↵ewinslow
ElggData git-svn-id: http://code.elgg.org/elgg/trunk@7155 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-30Refs #2597: Pulled identical {{{Iterator}}} and {{{ArrayAccess}}} ↵ewinslow
implementations into {{{ElggData}}} git-svn-id: http://code.elgg.org/elgg/trunk@7154 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-30Refs #2597: Added a new ElggData class that ElggEntity, ElggExtender, and ↵ewinslow
ElggRelationship all extend git-svn-id: http://code.elgg.org/elgg/trunk@7152 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-10ElggEntity::disable() and enable() now update the attributes so you don't ↵brettp
have stale data on the object. git-svn-id: http://code.elgg.org/elgg/trunk@7048 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-22Converted line endings to unix.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6957 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-22Refs #2450: ElggEntity documented.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6954 36083f99-b078-4883-b0ff-0f9b5a30f544