From b1636d5c19e23c50a3cb72be2ba95a5e4c567f65 Mon Sep 17 00:00:00 2001 From: icewing Date: Tue, 15 Apr 2008 12:31:14 +0000 Subject: Marcus Povey * Added optional set multiple on metadata git-svn-id: https://code.elgg.org/elgg/trunk@452 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 559701406..f7816569b 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -137,14 +137,15 @@ * @param string $name * @param mixed $value * @param string $value_type + * @param bool $multiple * @return bool */ - public function setMetaData($name, $value, $value_type = "") + public function setMetaData($name, $value, $value_type = "", $multiple = false) { if (is_array($value)) { foreach ($value as $v) - if (!create_metadata($this->getGUID(), $name, $v, $value_type, $this->getOwner(), $this->getAccessID(), true)) return false; + if (!create_metadata($this->getGUID(), $name, $v, $value_type, $this->getOwner(), $this->getAccessID(), $multiple)) return false; return true; } -- cgit v1.2.3