Инструменты пользователя

Инструменты сайта


Боковая панель

ru:objects:dom:interfaces:get:get_by_xxx

get_by_xxx

Каноническая страница: https://humanemulator.net/objects/DOM/interfaces/get/get_by_xxx.php

← Objects


Справка Human Emulator interfaces: get_by_xxx

Interfaces«; ?>

get_by_xxx

get_by_xxx($xxx,$condition,$exactly); - A collection class for working with Interface DOM elements

/ class XHEInterfaces extends XHEBaseList { server initialization function construct(string $inner_numbers, string $server, string $password = »«) { parent::construct($inner_numbers, $server, $password); if ($inner_numbers != »« && $inner_numbers != «Ignore») { if ($inner_numbers === false) return; $elms_nums = explode(»;«, $inner_numbers); $elms_nums_count = count($elms_nums); for ($k = 0; $k < $elms_nums_count; $k++) { $inner_number = trim($elms_nums[$k]); Не брать в коллекцию элементы, которые не существуют: inner_number = -1 if ($inner_number != »« && $inner_number != -1) $this→elements[$k] = new XHEInterface(intval($inner_number), $server, $password); } } } /** Получить интерфейс объекта по заданному условию

* $xxx – название команды

* $condition – критерий поиска

* $exactly – Требуется точное соответствие значения? Да/Нет

После выполнения функции возвращаемое значение будет равно одному из двух :

* результат – false|mixed

ru/objects/dom/interfaces/get/get_by_xxx.txt · Последнее изменение: 2026/08/05 23:12 (внешнее изменение)