@@ 331-340 (lines=10) @@ | ||
328 | * @param array $params optional |
|
329 | * @return bool |
|
330 | */ |
|
331 | function setXprop( $label, $value, $params=FALSE ) { |
|
332 | if( empty( $value )) if( $this->getConfig( 'allowEmpty' )) $value = null; else return FALSE; |
|
333 | if( empty( $label )) return FALSE; |
|
334 | $xprop = array( 'value' => $value ); |
|
335 | $toolbox = new calendarComponent(); |
|
336 | $xprop['params'] = $toolbox->_setParams( $params ); |
|
337 | if( !is_array( $this->xprop )) $this->xprop = array(); |
|
338 | $this->xprop[strtoupper( $label )] = $xprop; |
|
339 | return TRUE; |
|
340 | } |
|
341 | /*********************************************************************************/ |
|
342 | /** |
|
343 | * delete calendar property value |
|
@@ 3936-3945 (lines=10) @@ | ||
3933 | * @param array $params optional |
|
3934 | * @return bool |
|
3935 | */ |
|
3936 | function setXprop( $label, $value, $params=FALSE ) { |
|
3937 | if( empty( $label )) return; |
|
3938 | if( empty( $value )) if( $this->getConfig( 'allowEmpty' )) $value = null; else return FALSE; |
|
3939 | $xprop = array( 'value' => $value ); |
|
3940 | $toolbox = new calendarComponent(); |
|
3941 | $xprop['params'] = $toolbox->_setParams( $params ); |
|
3942 | if( !is_array( $this->xprop )) $this->xprop = array(); |
|
3943 | $this->xprop[strtoupper( $label )] = $xprop; |
|
3944 | return TRUE; |
|
3945 | } |
|
3946 | /*********************************************************************************/ |
|
3947 | /*********************************************************************************/ |
|
3948 | /** |