Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/skins/Vector/includes/Components/VectorComponentMenu.php
Ðазад
<?php namespace MediaWiki\Skins\Vector\Components; use Countable; /** * VectorComponentMenu component */ class VectorComponentMenu implements VectorComponent, Countable { /** @var array */ private $data; /** * @param array $data */ public function __construct( array $data ) { $this->data = $data; } /** * Counts how many items the menu has. * * @return int */ public function count(): int { $items = $this->data['array-list-items'] ?? null; if ( $items ) { return count( $items ); } $htmlItems = $this->data['html-items'] ?? ''; return substr_count( $htmlItems, '<li' ); } /** * @inheritDoc */ public function getTemplateData(): array { return $this->data + [ 'class' => '', 'label' => '', 'html-tooltip' => '', 'label-class' => '', 'html-before-portal' => '', 'html-items' => '', 'html-after-portal' => '', 'array-list-items' => null, ]; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка