Nextcloud PHP API (master)

JsonSerializer
in package

FinalYes

Contains helper static methods to serialize OCP classes into arrays to pass json_encode.

Useful for events implementing \JsonSerializable.

Tags
since
30.0.0

Table of Contents

Methods

serializeFileInfo()  : array<string|int, mixed>
serializeUser()  : array<string|int, mixed>

Methods

serializeFileInfo()

public static serializeFileInfo(FileInfo $node) : array<string|int, mixed>
Parameters
$node : FileInfo
Tags
since
30.0.0
Return values
array<string|int, mixed>

serializeUser()

public static serializeUser(IUser $user) : array<string|int, mixed>
Parameters
$user : IUser
Tags
since
30.0.0
Return values
array<string|int, mixed>

        
On this page

Search results