diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-28 20:08:33 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-28 20:08:33 +0000 |
commit | 6f98219d28071d8c019167f6fa7bea18bb5e2de7 (patch) | |
tree | 4aac7c40fdde4428afa0cbf94e7b2d7922126ec0 /engine/lib | |
parent | b0664f1eb44024913109276e25c75349f07b8c26 (diff) | |
download | elgg-6f98219d28071d8c019167f6fa7bea18bb5e2de7.tar.gz elgg-6f98219d28071d8c019167f6fa7bea18bb5e2de7.tar.bz2 |
Updated documentation for elgg_get_entity_metadata_where_sql()
git-svn-id: http://code.elgg.org/elgg/trunk@3596 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/metadata.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index 248203162..bbdd3365a 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -584,10 +584,6 @@ function elgg_get_entities_from_metadata(array $options = array()) { $singulars = array('name', 'value', 'name_value_pair'); $options = elgg_normalise_plural_options_array($options, $singulars); - if (!is_array($options['wheres'])) { - $options['wheres'] = array(); - } - $clauses = elgg_get_entity_metadata_where_sql('e', $options['names'], $options['values'], $options['name_value_pairs'], $options['name_value_pairs_operator'], $options['case_sensitive']); @@ -617,8 +613,12 @@ function elgg_get_entities_from_metadata(array $options = array()) { * nb: $names and $values are not paired. Use $pairs for this. * Pairs default to '=' operand. * - * @param $names - * @param $values + * @param $prefix + * @param ARR|NULL $names + * @param ARR|NULL $values + * @param ARR|NULL $pairs array of names / values / operands + * @param AND|OR $pair_operator Operator to use to join the where clauses for pairs + * @param BOOL $case_sensitive * @return FALSE|array False on fail, array('joins', 'wheres') */ function elgg_get_entity_metadata_where_sql($prefix, $names = NULL, $values = NULL, $pairs = NULL, $pair_operator = 'AND', $case_sensitive = TRUE) { |