/** * Fetches raw multi valued property not of type \PropertyType::PATH * * @param array &$property The property as read from the "properties" table of the database with $property['type'] != \PropertyType::PATH and $property['multivalue'] == TRUE * @return void * @author Matthias Hoermann <*****@*****.**> * @author Karsten Dambekalns <*****@*****.**> */ protected function getRawMultiValuedProperty(&$property) { $typeName = strtolower(\PropertyType::nameFromValue($property['type'])); $statementHandle = $this->databaseHandle->prepare('SELECT "index", "value" FROM "' . $typeName . 'properties" WHERE "parent" = ? AND "name" = ?'); $statementHandle->execute(array($property['parent'], $property['name'])); $multivalues = $statementHandle->fetchAll(\PDO::FETCH_ASSOC); if (is_array($multivalues)) { $resultArray = array(); foreach ($multivalues as $multivalue) { $resultArray[$multivalue['index']] = $this->convertFromString($property['type'], $multivalue['value']); } $property['value'] = $resultArray; } }