Class vComponent
Created by JetBrains PhpStorm. User: milan Date: 7/4/13 Time: 12:59 PM To change this template use File | Settings | File Templates.
- vObject
-
vComponent
Direct known subclasses
vCalendarCopyright: Morphoss Ltd http://www.morphoss.com/
License: GNU LGPL v2 or later
Author: Milan Medlik milan@morphoss.com
Located at vComponent.php
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
integer
|
|
public
integer
|
|
public
null
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
CollectParameterValues( $parameter_name )
Collect an array of all parameters of our properties which are the specified type Mainly used for collecting the full variety of references TZIDs |
public
|
|
public
|
|
public
|
#
GetProperties( $type = null )
Get all properties, or the properties matching a particular type, or matching an array associating property names with true values: array( 'PROPERTY' => true, 'PROPERTY2' => true ) |
public
array
|
|
public
|
#
ClearProperties( string|array $type = null )
Clear all properties, or the properties matching a particular type |
public
|
#
SetProperties( $new_properties, $type = null )
Set all properties, or the ones matching a particular type |
public
|
#
AddProperty(
Adds a new property |
public
array
|
#
GetComponents( mixed $type = null, boolean $normal_match = true )
Get all sub-components, or at least get those matching a type, or failling to match, should the second parameter be set to false. Component types may be a string or an array associating property names with true values: array( 'TYPE' => true, 'TYPE2' => true ) |
public
|
#
ClearComponents( string $type = null )
Clear all components, or the components matching a particular type |
public
|
#
SetComponents( array $new_component, string $type = null )
Sets some or all sub-components of the component to the supplied new components |
public
|
|
public
|
#
MaskComponents( array $keep, boolean $recursive = true )
Mask components, removing any that are not of the types in the list |
public
|
#
MaskProperties( array $keep, array $component_list = null )
Mask properties, removing any that are not in the list |
public
|
#
WrapComponent( $content )
This imposes the (CRLF + linear space) wrapping specified in RFC2445. According to RFC2445 we should always end with CRLF but the CalDAV spec says that normalising XML parsers often muck with it and may remove the CR. We output RFC2445 compliance. |
public
|
#
UnwrapComponent( & $content )
This unescapes the (CRLF + linear space) wrapping specified in RFC2445. According to RFC2445 we should always end with CRLF but the CalDAV spec says that normalising XML parsers often muck with it and may remove the CR. We accept either case. |
protected
string
|
#
RenderWithoutWrap( null $restricted_properties = null, boolean $force_rendering = false )
Render vComponent without wrap lines |
protected
string
|
|
protected
string
|
#
RenderWithoutWrapFromIterator( boolean $unrolledComponents )
take source data in Iterator and recreate to string |
public
string
|
|
public
|
|
public
boolean
|
#
TestFilter( array $filters )
Test a PROP-FILTER or COMP-FILTER and return a true/false COMP-FILTER (is-defined | is-not-defined | (time-range?, prop-filter*, comp-filter)) PROP-FILTER (is-defined | is-not-defined | ((time-range | text-match)?, param-filter)) |
getMaster(),
invalidate(),
setMaster()
|
string |
KEYBEGIN
|
#
'BEGIN:'
|
integer |
KEYBEGINLENGTH
|
#
6
|
string |
KEYEND
|
#
"END:"
|
integer |
KEYENDLENGTH
|
#
4
|
string |
VEOL
|
#
"\r\n"
|
public static
boolean
|
$PREPARSED
|
#
false
|
$lineHeap,
$master,
$valid
|