aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 02:41:53 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 02:41:53 +0000
commit422434216351c84e868b2c91e8bf0059446b89ed (patch)
treef353ef93440ca2827327c9147672bff779a3eb24 /engine/lib
parent82f7909dd08ebfea881d71fd9f2fb1d6ab798932 (diff)
downloadelgg-422434216351c84e868b2c91e8bf0059446b89ed.tar.gz
elgg-422434216351c84e868b2c91e8bf0059446b89ed.tar.bz2
More fixes to annotations/metadata changes. Now all function support getting via a metastring id.
git-svn-id: http://code.elgg.org/elgg/trunk@8221 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/annotations.php2
-rw-r--r--engine/lib/metadata.php2
-rw-r--r--engine/lib/metastrings.php7
3 files changed, 9 insertions, 2 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php
index d4483ab82..c37596ea8 100644
--- a/engine/lib/annotations.php
+++ b/engine/lib/annotations.php
@@ -172,6 +172,8 @@ function update_annotation($annotation_id, $name, $value, $value_type, $owner_gu
*
* annotation_values => NULL|ARR Annotation values
*
+ * annotation_ids => NULL|ARR annotation ids
+ *
* annotation_case_sensitive => BOOL Overall Case sensitive
*
* annotation_owner_guids => NULL|ARR guids for annotation owners
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index c3aebb111..08c87ae67 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -259,6 +259,8 @@ $access_id = ACCESS_PRIVATE, $allow_multiple = false) {
*
* 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
diff --git a/engine/lib/metastrings.php b/engine/lib/metastrings.php
index 3367b433f..6376ac09b 100644
--- a/engine/lib/metastrings.php
+++ b/engine/lib/metastrings.php
@@ -215,6 +215,8 @@ function delete_orphaned_metastrings() {
*
* metastring_values => NULL|ARR metastring values
*
+ * metastring_ids => NULL|ARR metastring ids
+ *
* metastring_case_sensitive => BOOL Overall Case sensitive
*
* metastring_owner_guids => NULL|ARR guids for metadata owners
@@ -593,11 +595,12 @@ function elgg_normalize_metastrings_options(array $options = array()) {
'owner_guids' => 'metastring_owner_guids',
'created_time_lower' => 'metastring_created_time_lower',
'created_time_upper' => 'metastring_created_time_upper',
- 'calculation' => 'metastring_calculation'
+ 'calculation' => 'metastring_calculation',
+ 'ids' => 'metastring_ids'
);
foreach ($prefixes as $prefix) {
- $singulars = array("{$prefix}name", "{$prefix}value", "{$prefix}owner_guid");
+ $singulars = array("{$prefix}name", "{$prefix}value", "{$prefix}owner_guid", "{$prefix}id");
$options = elgg_normalise_plural_options_array($options, $singulars);
foreach ($map as $specific => $normalized) {