uawdijnntqw1x1x1
IP : 13.58.11.68
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
kirov.axolotls.ru
/
bitrix
/
modules
/
pull
/
..
/
perfmon
/
lib
/
sql
/
collection.php
/
/
<?php namespace Bitrix\Perfmon\Sql; /** * Class Collection * This class represents collection of database objects such as table columns or indexes, schema procedures or sequences. * @package Bitrix\Perfmon\Sql */ class Collection { /** @var array[BaseObject] */ private $list = array(); /** * Add object into the tail of the collection. * * @param BaseObject $object Object to add. * * @return void */ public function add(BaseObject $object) { $this->list[] = $object; } /** * Searches collection for an object by it's name. * * @param string $name Object name to look up. * * @return BaseObject|null */ public function search($name) { /** @var BaseObject $object */ foreach ($this->list as $object) { if ($object->compareName($name) == 0) return $object; } return null; } /** * Returns all collection objects. * * @return array[BaseObject] */ public function getList() { return $this->list; } /** * Compares two collections of objects and returns array of pairs. * <p> * Pair is the two element array: * - First element with index "0" is the object from the source collection. * - Second element with index "1" is the object from $targetList. * - if pair element is null when no such element found (by name) in the collection. * * @param Collection $targetList Collection to compare. * @param bool $compareBody Whenever to compare objects bodies or not. * * @return array */ public function compare(Collection $targetList, $compareBody = true) { $difference = array(); /** @var BaseObject $source */ foreach ($this->list as $source) { if (!$targetList->search($source->name)) { $difference[] = array( $source, null, ); } } /** @var BaseObject $target */ foreach ($targetList->list as $target) { $source = $this->search($target->name); if (!$source) { $difference[] = array( null, $target, ); } elseif ( !$compareBody || $source->body !== $target->body ) { $difference[] = array( $source, $target, ); } } return $difference; } }
/var/www/axolotl/data/www/kirov.axolotls.ru/bitrix/modules/pull/../perfmon/lib/sql/collection.php