Nextcloud PHP API (master)

CalendarImportOptions
in package

FinalYes

Calendar Import Options

Tags
since
32.0.0

Table of Contents

Constants

ERROR_CONTINUE  = 0
ERROR_FAIL  = 1
ERROR_OPTIONS  = [self::ERROR_CONTINUE, self::ERROR_FAIL]
FORMATS  = ['ical', 'jcal', 'xcal']
VALIDATE_FAIL  = 2
VALIDATE_NONE  = 0
VALIDATE_OPTIONS  = [self::VALIDATE_NONE, self::VALIDATE_SKIP, self::VALIDATE_FAIL]
VALIDATE_SKIP  = 1

Properties

$errors  : int
$format  : "ical"|"jcal"|"xcal"
$supersede  : bool
$validate  : int

Methods

getErrors()  : int
Gets how to handle object errors
getFormat()  : "ical"|"jcal"|"xcal"
Gets the import format
getSupersede()  : bool
Gets whether to supersede existing objects
getValidate()  : int
Gets how to handle object validation
setErrors()  : void
Sets how to handle object errors
setFormat()  : void
Sets the import format
setSupersede()  : void
Sets whether to supersede existing objects
setValidate()  : void
Sets how to handle object validation

Constants

VALIDATE_OPTIONS

public mixed VALIDATE_OPTIONS = [self::VALIDATE_NONE, self::VALIDATE_SKIP, self::VALIDATE_FAIL]

Properties

Methods

getErrors()

Gets how to handle object errors

public getErrors() : int
Return values
int

0 - continue, 1 - fail

getFormat()

Gets the import format

public getFormat() : "ical"|"jcal"|"xcal"
Return values
"ical"|"jcal"|"xcal"

(defaults to ical)

getSupersede()

Gets whether to supersede existing objects

public getSupersede() : bool
Return values
bool

getValidate()

Gets how to handle object validation

public getValidate() : int
Return values
int

0 - no validation, 1 - validate and skip on issue, 2 - validate and fail on issue

setErrors()

Sets how to handle object errors

public setErrors(int $value) : void
Parameters
$value : int

0 - continue, 1 - fail

Tags
@template

$value of self::ERROR_*

setFormat()

Sets the import format

public setFormat("ical"|"jcal"|"xcal" $value) : void
Parameters
$value : "ical"|"jcal"|"xcal"

setSupersede()

Sets whether to supersede existing objects

public setSupersede(bool $supersede) : void
Parameters
$supersede : bool

setValidate()

Sets how to handle object validation

public setValidate(int $value) : void
Parameters
$value : int

0 - no validation, 1 - validate and skip on issue, 2 - validate and fail on issue

Tags
@template

$value of self::VALIDATE_*


        
On this page

Search results