]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
More fixes to annotations/metadata changes. Now all function support getting via...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 14 Feb 2011 02:41:53 +0000 (02:41 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 14 Feb 2011 02:41:53 +0000 (02:41 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8221 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/annotations.php
engine/lib/metadata.php
engine/lib/metastrings.php

index d4483ab8262c94bd78a9380079f0fc0fe1dc996f..c37596ea865604c238e1964ca7ac9adb3c4c341f 100644 (file)
@@ -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
index c3aebb1110b59b6afaac73fd1dfe7144d9a3c077..08c87ae67355c0b5a5c4f60c5c663353df34d01e 100644 (file)
@@ -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
index 3367b433f7db8a3714ba90ea770b7d5d61a519c2..6376ac09ba3165e9fa2ba63177f79de182ea4946 100644 (file)
@@ -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) {