@@ 2251-2262 (lines=12) @@ | ||
2248 | * @param array params optional |
|
2249 | * @return bool |
|
2250 | */ |
|
2251 | function setDtend( $year, $month=FALSE, $day=FALSE, $hour=FALSE, $min=FALSE, $sec=FALSE, $tz=FALSE, $params=FALSE ) { |
|
2252 | if( empty( $year )) { |
|
2253 | if( $this->getConfig( 'allowEmpty' )) { |
|
2254 | $this->dtend = array( 'value' => null, 'params' => $this->_setParams( $params )); |
|
2255 | return TRUE; |
|
2256 | } |
|
2257 | else |
|
2258 | return FALSE; |
|
2259 | } |
|
2260 | $this->dtend = $this->_setDate( $year, $month, $day, $hour, $min, $sec, $tz, $params ); |
|
2261 | return TRUE; |
|
2262 | } |
|
2263 | /*********************************************************************************/ |
|
2264 | /** |
|
2265 | * Property Name: DTSTAMP |
|
@@ 2366-2377 (lines=12) @@ | ||
2363 | * @param array $params optional |
|
2364 | * @return bool |
|
2365 | */ |
|
2366 | function setDtstart( $year, $month=FALSE, $day=FALSE, $hour=FALSE, $min=FALSE, $sec=FALSE, $tz=FALSE, $params=FALSE ) { |
|
2367 | if( empty( $year )) { |
|
2368 | if( $this->getConfig( 'allowEmpty' )) { |
|
2369 | $this->dtstart = array( 'value' => null, 'params' => $this->_setParams( $params )); |
|
2370 | return TRUE; |
|
2371 | } |
|
2372 | else |
|
2373 | return FALSE; |
|
2374 | } |
|
2375 | $this->dtstart = $this->_setDate( $year, $month, $day, $hour, $min, $sec, $tz, $params, 'dtstart' ); |
|
2376 | return TRUE; |
|
2377 | } |
|
2378 | /*********************************************************************************/ |
|
2379 | /** |
|
2380 | * Property Name: DUE |
|
@@ 2418-2429 (lines=12) @@ | ||
2415 | * @param array $params optional |
|
2416 | * @return bool |
|
2417 | */ |
|
2418 | function setDue( $year, $month=FALSE, $day=FALSE, $hour=FALSE, $min=FALSE, $sec=FALSE, $tz=FALSE, $params=FALSE ) { |
|
2419 | if( empty( $year )) { |
|
2420 | if( $this->getConfig( 'allowEmpty' )) { |
|
2421 | $this->due = array( 'value' => null, 'params' => $this->_setParams( $params )); |
|
2422 | return TRUE; |
|
2423 | } |
|
2424 | else |
|
2425 | return FALSE; |
|
2426 | } |
|
2427 | $this->due = $this->_setDate( $year, $month, $day, $hour, $min, $sec, $tz, $params ); |
|
2428 | return TRUE; |
|
2429 | } |
|
2430 | /*********************************************************************************/ |
|
2431 | /** |
|
2432 | * Property Name: DURATION |
|
@@ 3174-3185 (lines=12) @@ | ||
3171 | * @param array $params optional |
|
3172 | * @return bool |
|
3173 | */ |
|
3174 | function setRecurrenceid( $year, $month=FALSE, $day=FALSE, $hour=FALSE, $min=FALSE, $sec=FALSE, $tz=FALSE, $params=FALSE ) { |
|
3175 | if( empty( $year )) { |
|
3176 | if( $this->getConfig( 'allowEmpty' )) { |
|
3177 | $this->recurrenceid = array( 'value' => null, 'params' => null ); |
|
3178 | return TRUE; |
|
3179 | } |
|
3180 | else |
|
3181 | return FALSE; |
|
3182 | } |
|
3183 | $this->recurrenceid = $this->_setDate( $year, $month, $day, $hour, $min, $sec, $tz, $params ); |
|
3184 | return TRUE; |
|
3185 | } |
|
3186 | /*********************************************************************************/ |
|
3187 | /** |
|
3188 | * Property Name: RELATED-TO |