/** * set calendar component property rrule * * @author Kjell-Inge Gustafsson, kigkonsult <*****@*****.**> * @since 2.5.1 - 2008-11-05 * @param array $rruleset * @param array $params, optional * @param integer $index, optional * @return void */ function setRrule($rruleset, $params = FALSE, $index = FALSE) { if (empty($rruleset)) { if ($this->getConfig('allowEmpty')) { $rruleset = null; } else { return FALSE; } } iCal_UtilityFunctions::_setMval($this->rrule, iCal_UtilityFunctions::_setRexrule($rruleset), $params, FALSE, $index); return TRUE; }