aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-15 12:31:14 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-15 12:31:14 +0000
commitb1636d5c19e23c50a3cb72be2ba95a5e4c567f65 (patch)
treedd0c776d749612f281a134da838a5972e6fa12dd /engine
parent374c06ce3525857aa717d07b0050ca58163e3488 (diff)
downloadelgg-b1636d5c19e23c50a3cb72be2ba95a5e4c567f65.tar.gz
elgg-b1636d5c19e23c50a3cb72be2ba95a5e4c567f65.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Added optional set multiple on metadata git-svn-id: https://code.elgg.org/elgg/trunk@452 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php5
1 files 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;
}