|
@@ 2053-2067 (lines=15) @@
|
| 2050 |
|
* @since 2.4.8 - 2008-10-22 |
| 2051 |
|
* @return string |
| 2052 |
|
*/ |
| 2053 |
|
function createCompleted( ) { |
| 2054 |
|
if( empty( $this->completed )) return FALSE; |
| 2055 |
|
if( !isset( $this->completed['value']['year'] ) && |
| 2056 |
|
!isset( $this->completed['value']['month'] ) && |
| 2057 |
|
!isset( $this->completed['value']['day'] ) && |
| 2058 |
|
!isset( $this->completed['value']['hour'] ) && |
| 2059 |
|
!isset( $this->completed['value']['min'] ) && |
| 2060 |
|
!isset( $this->completed['value']['sec'] )) |
| 2061 |
|
if( $this->getConfig( 'allowEmpty' )) |
| 2062 |
|
return $this->_createElement( 'COMPLETED' ); |
| 2063 |
|
else return FALSE; |
| 2064 |
|
$formatted = $this->_format_date_time( $this->completed['value'], 7 ); |
| 2065 |
|
$attributes = $this->_createParams( $this->completed['params'] ); |
| 2066 |
|
return $this->_createElement( 'COMPLETED', $attributes, $formatted ); |
| 2067 |
|
} |
| 2068 |
|
/** |
| 2069 |
|
* set calendar component property completed |
| 2070 |
|
* |
|
@@ 2221-2235 (lines=15) @@
|
| 2218 |
|
* @since 2.4.8 - 2008-10-21 |
| 2219 |
|
* @return string |
| 2220 |
|
*/ |
| 2221 |
|
function createDtend() { |
| 2222 |
|
if( empty( $this->dtend )) return FALSE; |
| 2223 |
|
if( !isset( $this->dtend['value']['year'] ) && |
| 2224 |
|
!isset( $this->dtend['value']['month'] ) && |
| 2225 |
|
!isset( $this->dtend['value']['day'] ) && |
| 2226 |
|
!isset( $this->dtend['value']['hour'] ) && |
| 2227 |
|
!isset( $this->dtend['value']['min'] ) && |
| 2228 |
|
!isset( $this->dtend['value']['sec'] )) |
| 2229 |
|
if( $this->getConfig( 'allowEmpty' )) |
| 2230 |
|
return $this->_createElement( 'DTEND' ); |
| 2231 |
|
else return FALSE; |
| 2232 |
|
$formatted = $this->_format_date_time( $this->dtend['value'] ); |
| 2233 |
|
$attributes = $this->_createParams( $this->dtend['params'] ); |
| 2234 |
|
return $this->_createElement( 'DTEND', $attributes, $formatted ); |
| 2235 |
|
} |
| 2236 |
|
/** |
| 2237 |
|
* set calendar component property dtend |
| 2238 |
|
* |
|
@@ 2389-2403 (lines=15) @@
|
| 2386 |
|
* @since 2.4.8 - 2008-10-22 |
| 2387 |
|
* @return string |
| 2388 |
|
*/ |
| 2389 |
|
function createDue() { |
| 2390 |
|
if( empty( $this->due )) return FALSE; |
| 2391 |
|
if( !isset( $this->due['value']['year'] ) && |
| 2392 |
|
!isset( $this->due['value']['month'] ) && |
| 2393 |
|
!isset( $this->due['value']['day'] ) && |
| 2394 |
|
!isset( $this->due['value']['hour'] ) && |
| 2395 |
|
!isset( $this->due['value']['min'] ) && |
| 2396 |
|
!isset( $this->due['value']['sec'] )) |
| 2397 |
|
if( $this->getConfig( 'allowEmpty' )) |
| 2398 |
|
return $this->_createElement( 'DUE' ); |
| 2399 |
|
else return FALSE; |
| 2400 |
|
$formatted = $this->_format_date_time( $this->due['value'] ); |
| 2401 |
|
$attributes = $this->_createParams( $this->due['params'] ); |
| 2402 |
|
return $this->_createElement( 'DUE', $attributes, $formatted ); |
| 2403 |
|
} |
| 2404 |
|
/** |
| 2405 |
|
* set calendar component property due |
| 2406 |
|
* |