You are here

public function ParserVcalendar::parsePropertyParameter in Date iCal 7.3

Handler that parses field parameters.

Return value

string The parsed field parameter.

File

libraries/ParserVcalendar.inc, line 270
Defines a class that parses iCalcreator vcalendar objects into Feeds-compatible data arrays.

Class

ParserVcalendar
@file Defines a class that parses iCalcreator vcalendar objects into Feeds-compatible data arrays.

Code

public function parsePropertyParameter($property_key, $vcalendar_component) {
  list($key, $attr) = explode(':', $property_key);
  $property = $vcalendar_component
    ->getProperty($key, FALSE, TRUE);

  // See parseTextProperty() for why this is here.
  if (in_array($property_key, $this->multi_entry_properties)) {
    unset($vcalendar_component->propix[$property_key]);
  }
  if ($property === FALSE) {

    // If the component doesn't have this property, return NULL.
    return NULL;
  }
  $param = isset($property['params'][$attr]) ? $property['params'][$attr] : '';
  return $param;
}