/** * Renders a property in accordance with rfc 2445 * @todo $proptype is created below and never used... wtf? */ protected function renderProperty(qCal_Property $property) { $propval = $property->getValue(); $params = $property->getParams(); $paramreturn = ""; foreach ($params as $paramname => $paramval) { $paramreturn .= $this->renderParam($paramname, $paramval); } // if property has a "value" param, then use it as the type instead $proptype = isset($params['VALUE']) ? $params['VALUE'] : $property->getType(); if ($property instanceof qCal_Property_MultiValue) { $values = array(); foreach ($property->getValue() as $value) { $values[] = $this->renderValue($property->getValue(), $proptype); } $value = implode(chr(44), $values); } else { $value = $this->renderValue($property->getValue(), $proptype); } $content = $property->getName() . $paramreturn . ":" . $value . self::LINE_ENDING; return $this->fold($content); }