WikiLambda
MediaWiki WikiLambda extension
Loading...
Searching...
No Matches
MediaWiki\Extension\WikiLambda\Diff\ZObjectDiffer Class Reference

Public Member Functions

 doDiff ( $oldValues, $newValues)
 

Static Public Member Functions

static flattenDiff ( $diff)
 Returns a flat collection of diffs with an absolute path and the DiffOp that has been detected under that path.
 

Protected Member Functions

 getDifferType ( $input)
 Returns the type of differ that we should use for a given input.
 

Member Function Documentation

◆ doDiff()

MediaWiki\Extension\WikiLambda\Diff\ZObjectDiffer::doDiff ( $oldValues,
$newValues )
See also
Differ::doDiff

Takes two ZObjects, computes the diff, and returns this diff as an array of DiffOp.

Parameters
array | string$oldValuesThe first array
array | string$newValuesThe second array
Exceptions
Exception
Returns
DiffOp returns either an atomic DiffOp or a new

◆ flattenDiff()

static MediaWiki\Extension\WikiLambda\Diff\ZObjectDiffer::flattenDiff ( $diff)
static

Returns a flat collection of diffs with an absolute path and the DiffOp that has been detected under that path.

Parameters
DiffOp$diff
Returns
array

◆ getDifferType()

MediaWiki\Extension\WikiLambda\Diff\ZObjectDiffer::getDifferType ( $input)
protected

Returns the type of differ that we should use for a given input.

Parameters
array | string$input
Returns
int

The documentation for this class was generated from the following file: