Nextcloud PHP API (master)

IChange

Represents a detected change in the storage

Tags
since
12.0.0

Table of Contents

Constants

ADDED  = 1
MODIFIED  = 3
REMOVED  = 2
RENAMED  = 4

Methods

getPath()  : mixed
Get the path of the file that was changed relative to the root of the storage
getType()  : int
Get the type of the change

Constants

ADDED

public mixed ADDED = 1
Tags
since
12.0.0

MODIFIED

public mixed MODIFIED = 3
Tags
since
12.0.0

REMOVED

public mixed REMOVED = 2
Tags
since
12.0.0

RENAMED

public mixed RENAMED = 4
Tags
since
12.0.0

Methods

getPath()

Get the path of the file that was changed relative to the root of the storage

public getPath() : mixed

Note, for rename changes this path is the old path for the file

Tags
since
12.0.0

getType()

Get the type of the change

public getType() : int
Tags
since
12.0.0
Return values
int

IChange::ADDED, IChange::REMOVED, IChange::MODIFIED or IChange::RENAMED


        
On this page

Search results