aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-01-09 17:29:04 -0800
committerBrett Profitt <brett.profitt@gmail.com>2012-01-09 17:29:04 -0800
commit0fe0f9d6dc6577d39bf0615c0e714c7fa7d2ebf3 (patch)
tree10e872d03de4e51c3dd2ebe0f7c97ecc9eabb438 /engine/lib/metadata.php
parent266d5f923d34005356a80c8dc87eefd4ebe3a826 (diff)
downloadelgg-0fe0f9d6dc6577d39bf0615c0e714c7fa7d2ebf3.tar.gz
elgg-0fe0f9d6dc6577d39bf0615c0e714c7fa7d2ebf3.tar.bz2
Fixes #4243. Added docs for metadata_calculation option to elgg_get_metadata().
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r--engine/lib/metadata.php27
1 files changed, 12 insertions, 15 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index 6e1b8b39c..a097cd3ef 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -269,21 +269,18 @@ $access_id = ACCESS_PRIVATE, $allow_multiple = false) {
*
* @param array $options Array in format:
*
- * metadata_names => NULL|ARR metadata names
- *
- * metadata_values => NULL|ARR metadata values
- *
-* metadata_ids => NULL|ARR metadata ids
- *
- * metadata_case_sensitive => BOOL Overall Case sensitive
- *
- * metadata_owner_guids => NULL|ARR guids for metadata owners
- *
- * metadata_created_time_lower => INT Lower limit for created time.
- *
- * metadata_created_time_upper => INT Upper limit for created time.
- *
- * metadata_calculation => STR Perform the MySQL function on the metadata values returned.
+ * metadata_names => NULL|ARR metadata names
+ * metadata_values => NULL|ARR metadata values
+ * metadata_ids => NULL|ARR metadata ids
+ * metadata_case_sensitive => BOOL Overall Case sensitive
+ * metadata_owner_guids => NULL|ARR guids for metadata owners
+ * metadata_created_time_lower => INT Lower limit for created time.
+ * metadata_created_time_upper => INT Upper limit for created time.
+ * metadata_calculation => STR Perform the MySQL function on the metadata values returned.
+ * The "metadata_calculation" option causes this function to
+ * return the result of performing a mathematical calculation on
+ * all metadata that match the query instead of returning
+ * ElggMetadata objects.
*
* @return mixed
* @since 1.8.0