Documentation

compare

array public
\Bitrix\Perfmon\Sql\Collection::compare(
 \Bitrix\Perfmon\Sql\Collection $targetList,
 boolean $compareBody = true
);

Non-static method compares two collections of objects and returns an array of pairs:

Each pair is an array consisting of two elements:

  1. First object, with index "0" is an object from source set.
  2. Second object with index "1" is an object from $targetList. When element matches, src element name was not found in the collection.

Parameters

ParameterDescriptionVersion
$targetListCompared collection.
$compareBodySource code (body) comparison.

Example



© «Bitrix24», 2001-2024
Up