Add the information set

@param Infoset $infoset
492225
public function addInfo(Infoset $infoset) {
		if ($infoset->getLevel() > Infoset::LEVEL_ALERT) {
			$this->info[] = $infoset;
		} else {
			$this->info->unshift($infoset);
		}
	}
1255296
protected function createDump(Infoset $info) {
		$content = '';
		
		foreach ($info as $part) {
			$content .= Dump::getDump($part);
		}
		
		return $content;
	}
613554
protected function eventsInfo(Infoset $info, array $profiles) {
		$table = $this->createTable()
			->setColsWidths([1, 1, 1, 94])
			->setHeadContent(['', '', 'Time', 'Action'])
			->enableBbCodes()
			->setTitle('Events');
		
		$info[] = $table;
		$number = 1;
		
		foreach ($profiles as $profile) {
			$status = $this->handleProfileStatus($profile);
			$time   = '[strong]' . $this->formatTime($profile->getElapsedTime()) . '[/strong]';
			
			$row = [$number, $status, $time, $profile->getMessage()];
			$this->handleProfileType($profile, $table, $row);
			
			++ $number;
		}
	}
890752
public void
addRRset(RRset rrset) {
	Name name = rrset.getName();
	addRRset(name, rrset);
}
949579
protected function appendInfoToContainer($info, $container)
    {
        if ($info && $container) {
            if (is_array($info) == false) {
                $container->appendChild($info);
            } else {
                foreach ($info as $infoItem) {
                    $container->appendChild($infoItem);
                }
            }
        }
    }
682353
protected function createList(Infoset $info) {
		$list = new ListUnordered();
		$list->addClass('content-list');
		
		foreach ($info as $content) {
			if ($content instanceof Infoset) {
				$content = $this->createContent($content);
			}
			
			$content = $this->specialCharsHandle($content);
			
			if ($info->isContentBbCodes()) {
				$content = $this->bbCodesHandle($content);
			}
			
			$list[] = $content;
		}
		
		return $list->render();
	}
1365923
public function addCommonParams(Dataset $dataset)
    {
        $dataset
            ->setParam('VK_SERVICE', $this->getConfParam('VK_SERVICE', '1011'))
            ->setParam('VK_VERSION', '008')
            ->setParam('VK_SND_ID', $this->getConfParam('VK_SND_ID'))
            ->setParam('VK_ACC', $this->getConfParam('VK_ACC'))
            ->setParam('VK_NAME', $this->getConfParam('VK_NAME'))
            ->setParam('VK_RETURN', $this->getReturnUrl())
            ->setParam('VK_CANCEL', $this->getCancelUrl())
            ->setParam('VK_ENCODING', $this->getConfParam('VK_ENCODING', 'UTF-8'))
            ->setParam('VK_DATETIME', date(DATE_ISO8601))
        ;
    }
1107286
protected function apcInfo(Infoset $infoset, array $apcInfo) {
		$info = $this->createTable()
			->setColsWidths([50, 50])
			->setTitle('APC Info')
			->enableBbCodes();
		
		$infoset[] = $info;
		
		$info[] = ['Memory:', '[info]' . $this->formatMemory($apcInfo['mem_size']) . '[/info]'];

		if (isset($apcInfo['num_entries'])) {
			$info[] = ['Cache entries: ', '[success]' . $apcInfo['num_entries'] . '[/success]'];
		}
		else if (isset($apcInfo['nentries'])) {
			$info[] = ['Cache entries: ', '[success]' . $apcInfo['nentries'] . '[/success]'];
		}

		if (isset($apcInfo['num_hits'])) {
			$info[] = ['Cache hits: ', '[success]' . $apcInfo['num_hits'] . '[/success]'];
		}
		else if (isset($apcInfo['nhits'])) {
			$info[] = ['Cache hits: ', '[success]' . $apcInfo['nhits'] . '[/success]'];
		}

		if (isset($apcInfo['num_misses'])) {
			$info[] = ['Cache misses: ', '[success]' . $apcInfo['num_misses'] . '[/success]'];
		}
		else if (isset($apcInfo['nmisses'])) {
			$info[] = ['Cache misses: ', '[success]' . $apcInfo['nmisses'] . '[/success]'];
		}
	}
236043
public void addResultSet(SelectResultSet resultSet, boolean moreResultAvailable) {
    if (resultSet.isCallableResult()) {
      callableResultSet = resultSet;
      return;
    }
    if (executionResults == null) {
      executionResults = new ArrayDeque<>();
    }
    executionResults.add(resultSet);
    if (cmdInformation == null) {
      if (batch) {
        cmdInformation = new CmdInformationBatch(expectedSize, autoIncrement);
      } else if (moreResultAvailable) {
        cmdInformation = new CmdInformationMultiple(expectedSize, autoIncrement);
      } else {
        cmdInformation = new CmdInformationSingle(0, -1, autoIncrement);
        return;
      }
    }
    cmdInformation.addResultSetStat();
  }
131665
public function addInfo($info) : void
    {
        Assert::isInstanceOfAny($info, [Chunk::class, KeyInfo::class]);
        $this->info[] = $info;
    }
1340240
public function setCharset($charset)
    {
        $this->charset = $charset;
        $this->factory->charsetChanged($charset);
        $this->notifyHeadersOfCharset($charset);
    }
509162
public function addInfo($info) : void
    {
        Assert::isInstanceOfAny(
            $info,
            [Chunk::class, KeyName::class, X509Data::class],
            'KeyInfo can only contain instances of KeyName, X509Data or Chunk.'
        );
        $this->info[] = $info;
    }
557077
public static function add(&$set, $args)
    {
        self::assertArgsNumber(1, $args);

        $value = $args[0];

        foreach ($set as $item) {
            if ($item === $value) {
                return;
            }
        }

        $set[] = $value;
    }
565880
protected function createContent(Infoset $info) {
		$content = '';
		
		switch ($info->getContentType()) {
			case Infoset::TYPE_LIST:
				$content .= $this->createList($info);
				break;
			
			case Infoset::TYPE_TABLE:
				$content .= $this->createTable($info);
				break;
			
			case Infoset::TYPE_MULTI:
				foreach ($info as $part) {
					if (($title = $part->getTitle()) !== null) {
						$content .= $this->getTagsLocator()->get('title')->render($title);
					}
				
					$content .= $this->createContent($part);
				}
				break;
				
			case Infoset::TYPE_TEXT:
				foreach ($info as $part) {
					$content .= $this->specialCharsHandle($part);
				}
				break;
				
			case Infoset::TYPE_DESCLIST:
				$content .= $this->createDescriptionList($info);
				break;
			
			case Infoset::TYPE_DUMP:
				$content .= $this->createDump($info);
				break;
			
			case Infoset::TYPE_TOPOLOGY:
				$content .= $this->createTopology($info);
				break;
			
			default:
				throw new InvalidContent('Unknown content type: "' . $info->getContentType() . '"');
		}
		
		return $content;
	}
26429
public function update(Dataset $dataset) : void
    {
        if ($this->means === null or $this->variances === null) {
            $this->fit($dataset);

            return;
        }

        $n = $dataset->numRows();

        foreach ($this->means as $column => $oldMean) {
            $oldVariance = $this->variances[$column];

            $values = $dataset->column($column);

            [$mean, $variance] = Stats::meanVar($values);

            $this->means[$column] = (($n * $mean)
                + ($this->n * $oldMean))
                / ($this->n + $n);

            $varNew = ($this->n
                * $oldVariance + ($n * $variance)
                + ($this->n / ($n * ($this->n + $n)))
                * ($n * $oldMean - $n * $mean) ** 2)
                / ($this->n + $n);

            $this->variances[$column] = $varNew;
            $this->stddevs[$column] = sqrt($varNew ?: EPSILON);
        }

        $this->n += $n;
    }
1158334
protected function createTable(Infoset $info) {
		$table = new Table();
		$table->addClass('content-table');
		
		if ($info instanceof InfosetTable) {
			if (($widths = $info->getColsWidths()) !== null) {
				$table->getColgroup()->addElements($widths);
			}
			
			if (($headRow = $info->getHeadContent()) !== null) {
				$table->getHead()->addElement($headRow);
			}
		}
		
		foreach ($info as $row) {
			if (! is_array($row) && ! $row instanceof Traversable) {
				throw new InvalidContent('Table row content must be an array or a Traversable implementation');
			}
			
			$cols = [];
			
			foreach ($row as $content) {
				if ($content instanceof Infoset) {
					$content = $this->createContent($content);
				}
				
				$content = $this->specialCharsHandle($content);
				
				if ($info->isContentBbCodes()) {
					$content = $this->bbCodesHandle($content);
				}
				
				$cols[] = $content;
			}
			
			if ($row instanceof Row && $row->isMarked()) {
				$cols['_class_'] = $row->getMark();
			}
			
			$table[] = $cols;
		}
		
		return $table->render();
	}
28774
public function setValueSet($valueSet)
    {
        if (is_string($valueSet)) {
            $valueSet = explode(',', $valueSet);
            $valueSet = array_map('trim', $valueSet);
        }

        $this->valueSet = $valueSet;
    }