/** * set calendar component property x-prop * * @author Kjell-Inge Gustafsson <*****@*****.**> * @since 2.4.11 - 2008-11-04 * @param string $label * @param mixed $value * @param array $params optional * @return bool */ function setXprop($label, $value, $params = FALSE) { if (empty($label)) { return; } if (empty($value)) { if ($this->getConfig('allowEmpty')) { $value = null; } else { return FALSE; } } $xprop = array('value' => $value); $toolbox = new calendarComponent(); $xprop['params'] = $toolbox->_setParams($params); if (!is_array($this->xprop)) { $this->xprop = array(); } $this->xprop[strtoupper($label)] = $xprop; return TRUE; }
/** * set calendar property x-prop * * @author Kjell-Inge Gustafsson <*****@*****.**> * @since 1.x.x - 2007-05-07 * @param string $label * @param string $value * @param array $params optional * @return void */ function setXprop($label, $value, $params = FALSE) { $xprop['value'] = array($label => $value); if (empty($xprop['value'])) { return; } $toolbox = new calendarComponent(); $xprop['params'] = $toolbox->_setParams($params); $this->xprop[] = $xprop; }