PHP Class Puli\Repository\NullRepository

This repository can be used if you need to inject a repository instance in some code, but you don't want that repository to do anything (for example in tests).
Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: implements Puli\Repository\Api\EditableRepository
Mostrar archivo Open project: puli/repository Class Usage Examples

Public Methods

Method Description
add ( $path, $resource )
clear ( )
contains ( $query, $language = 'glob' )
find ( $query, $language = 'glob' )
get ( $path )
getVersions ( $path )
hasChildren ( $path )
listChildren ( $path )
remove ( $query, $language = 'glob' )

Method Details

add() public method

public add ( $path, $resource )

clear() public method

public clear ( )

contains() public method

public contains ( $query, $language = 'glob' )

find() public method

public find ( $query, $language = 'glob' )

get() public method

public get ( $path )

getVersions() public method

public getVersions ( $path )

hasChildren() public method

public hasChildren ( $path )

listChildren() public method

public listChildren ( $path )

remove() public method

public remove ( $query, $language = 'glob' )