setValue($val); } /** * Returns a raw mime-dir representation of the value. * * @return string */ function getRawMimeDirValue() { return $this->value ? 'TRUE' : 'FALSE'; } /** * Returns the type of value. * * This corresponds to the VALUE= parameter. Every property also has a * 'default' valueType. * * @return string */ function getValueType() { return 'BOOLEAN'; } /** * Hydrate data from a XML subtree, as it would appear in a xCard or xCal * object. * * @param array $value * * @return void */ function setXmlValue(array $value) { $value = array_map( function($value) { return 'true' === $value; }, $value ); parent::setXmlValue($value); } }