Documentation

Util
in package

Description of Util

Tags
author

zozlak

Table of Contents

doesInherit()  : bool
Checks if $what inherits from $from
removeObsoleteChildren()  : void
updateOrCreate()  : RepoResource

Methods

doesInherit()

Checks if $what inherits from $from

public static doesInherit(Resource $what, Resource $from) : bool
Parameters
$what : Resource
$from : Resource
Tags
Return values
bool

removeObsoleteChildren()

public static removeObsoleteChildren(Repo $repo, string $collectionId, string $parentProp, array<string|int, string> $imported, bool $verbose) : void
Parameters
$repo : Repo
$collectionId : string
$parentProp : string
$imported : array<string|int, string>
$verbose : bool
Tags
Return values
void

updateOrCreate()

public static updateOrCreate(Repo $repo, string $id, Resource $meta, bool $verbose) : RepoResource
Parameters
$repo : Repo
$id : string
$meta : Resource
$verbose : bool
Tags
Return values
RepoResource

        

Search results