[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 1430 lignes (48 kb) |
Inclus ou requis: | 11 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Horde_iCalendar:: (38 méthodes):
newComponent()
setAttribute()
setParameter()
getAttribute()
getAttributeValues()
getAttributeDefault()
removeAttribute()
getAllAttributes()
addComponent()
getComponents()
getComponentClasses()
getComponentCount()
getComponent()
findComponent()
clear()
exportvCalendar()
toHash()
parsevCalendar()
_exportvData()
_parseUtcOffset()
_exportUtcOffset()
_parsePeriod()
_exportPeriod()
_parseDateTime()
_exportDateTime()
_parseTime()
_exportTime()
_parseDate()
_exportDate()
_parseDuration()
_exportDuration()
_foldLine()
_quotedPrintableEncode()
EncodeQP_old()
WrapText_old()
FixEOL()
EncodeQP()
WrapText()
Classe: Horde_iCalendar - X-Ref
Class representing iCalendar files.newComponent($type, &$container) X-Ref |
Return a reference to a new component. param: string $type The type of component to return param: object $container A container that this component return: object Reference to a Horde_iCalendar_* object as specified. |
setAttribute($name, $value, $params = array() X-Ref |
Set the value of an attribute. param: string $name The name of the attribute. param: string $value The value of the attribute. param: array $params (optional) Array containing any addition param: boolean $append (optional) True to append the attribute, False param: array $values (optional) array representation of $value. |
setParameter($name, $params) X-Ref |
Sets parameter(s) for an (already existing) attribute. The parameter set is merged into the existing set. param: string $name The name of the attribute. param: array $params Array containing any additional return: boolean True on success, false if no attribute $name exists. |
getAttribute($name, $params = false) X-Ref |
Get the value of an attribute. param: string $name The name of the attribute. param: boolean $params Return the parameters for this attribute return: mixed (object) PEAR_Error if the attribute does not exist. |
getAttributeValues($name) X-Ref |
Gets the values of an attribute as an array. Multiple values are possible due to: a) multiplce occurences of 'name' b) (unsecapd) comma seperated lists. So for a vcard like "KEY:a,b\nKEY:c" getAttributesValues('KEY') will return array('a','b','c'). param: string $name The name of the attribute. return: mixed (object) PEAR_Error if the attribute does not exist. |
getAttributeDefault($name, $default = '') X-Ref |
Returns the value of an attribute, or a specified default value if the attribute does not exist. param: string $name The name of the attribute. param: mixed $default (optional) What to return if the attribute return: mixed (string) The value of $name. |
removeAttribute($name) X-Ref |
Remove all occurences of an attribute. param: string $name The name of the attribute. |
getAllAttributes($tag = false) X-Ref |
Get attributes for all tags or for a given tag. param: string $tag (optional) return attributes for this tag. return: array Array containing all the attributes and their types. |
addComponent($component) X-Ref |
Add a vCalendar component (eg vEvent, vTimezone, etc.). param: object Horde_iCalendar $component Component (subclass) to add. |
getComponents() X-Ref |
Retrieve all the components. return: array Array of Horde_iCalendar objects. |
getComponentClasses() X-Ref |
Return the classes (entry types) we have. return: array Hash with class names Horde_iCalendar_xxx as keys |
getComponentCount() X-Ref |
Number of components in this container. return: integer Number of components in this container. |
getComponent($idx) X-Ref |
Retrieve a specific component. param: integer $idx The index of the object to retrieve. return: mixed (boolean) False if the index does not exist. |
findComponent($childclass) X-Ref |
Locates the first child component of the specified class, and returns a reference to this component. param: string $type The type of component to find. return: mixed (boolean) False if no subcomponent of the specified |
clear() X-Ref |
Clears the iCalendar object (resets the components and attributes arrays). |
exportvCalendar() X-Ref |
Export as vCalendar format. |
toHash($paramsInKeys = false) X-Ref |
Export this entry as a hash array with tag names as keys. param: boolean (optional) $paramsInKeys return: array A hash array with tag names as keys. |
parsevCalendar($text, $base = 'VCALENDAR', $charset = 'utf-8', $clear = true) X-Ref |
Parse a string containing vCalendar data. param: string $text The data to parse. param: string $base The type of the base object. param: string $charset (optional) The encoding charset for $text. Defaults to utf-8 param: boolean $clear (optional) True to clear() the iCal object before parsing. return: boolean True on successful import, false otherwise. |
_exportvData($base = 'VCALENDAR') X-Ref |
Export this component in vCal format. param: string $base (optional) The type of the base object. return: string vCal format data. |
_parseUtcOffset($text) X-Ref |
Parse a UTC Offset field. |
_exportUtcOffset($value) X-Ref |
Export a UTC Offset field. |
_parsePeriod($text) X-Ref |
Parse a Time Period field. |
_exportPeriod($value) X-Ref |
Export a Time Period field. |
_parseDateTime($text) X-Ref |
Parse a DateTime field into a unix timestamp. |
_exportDateTime($value) X-Ref |
Export a DateTime field. |
_parseTime($text) X-Ref |
Parse a Time field. |
_exportTime($value) X-Ref |
Export a Time field. |
_parseDate($text) X-Ref |
Parse a Date field. |
_exportDate($value) X-Ref |
Export a Date field. |
_parseDuration($text) X-Ref |
Parse a Duration Value field. |
_exportDuration($value) X-Ref |
Export a duration value. |
_foldLine($line) X-Ref |
Return the folded version of a line. JVL rewritten to fold on any ; or: or = if present before column 75 this is still rfc2445 section 4.1 compliant |
_quotedPrintableEncode($input = '') X-Ref |
Convert an 8bit string to a quoted-printable string according to RFC2045, section 6.7. Uses imap_8bit if available. param: string $input The string to be encoded. return: string The quoted-printable encoded string. |
EncodeQP_old($str) X-Ref |
Encode string to quoted-printable. return: string |
WrapText_old($message, $length, $qp_mode = false) X-Ref |
Wraps message for use with mailers that do not automatically perform wrapping and for quoted-printable. Original written by philippe. return: string |
FixEOL($str) X-Ref |
Changes every end of line from CR or LF to CRLF. return: string |
EncodeQP($str) X-Ref |
Encode string to quoted-printable. return: string |
WrapText($message, $length, $qp_mode = false) X-Ref |
Wraps message for use with mailers that do not automatically perform wrapping and for quoted-printable. Original written by philippe. return: string |
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |