diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-15 12:31:14 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-15 12:31:14 +0000 |
commit | b1636d5c19e23c50a3cb72be2ba95a5e4c567f65 (patch) | |
tree | dd0c776d749612f281a134da838a5972e6fa12dd /engine | |
parent | 374c06ce3525857aa717d07b0050ca58163e3488 (diff) | |
download | elgg-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.php | 5 |
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; } |