Updated PHP Windows builds for Brotli security fix

The ReflectionObject class

(PHP 5, PHP 7, PHP 8)

Einführung

The ReflectionObject class reports information about an object.

Klassenbeschreibung

class ReflectionObject extends ReflectionClass {
/* Geerbte Konstanten */
/* Geerbte Eigenschaften */
public string $name;
/* Methoden */
public function __construct(object $object)
/* Geerbte Methoden */
public static function ReflectionClass::export(mixed $argument, bool $return = false): string
public function ReflectionClass::getAttributes(?string $name = null, int $flags = 0): array
public function ReflectionClass::getConstant(string $name): mixed
public function ReflectionClass::getConstants(?int $filter = null): array
public function ReflectionClass::getMethods(?int $filter = null): array
public function ReflectionClass::getName(): string
public function ReflectionClass::getProperties(?int $filter = null): array
public function ReflectionClass::getStaticPropertyValue(string $name, mixed &$default = ?): mixed
public function ReflectionClass::hasConstant(string $name): bool
public function ReflectionClass::hasMethod(string $name): bool
public function ReflectionClass::hasProperty(string $name): bool
public function ReflectionClass::isEnum(): bool
public function ReflectionClass::isFinal(): bool
public function ReflectionClass::isInstance(object $object): bool
public function ReflectionClass::isTrait(): bool
public function ReflectionClass::newInstance(mixed ...$args): object
public function ReflectionClass::newInstanceArgs(array $args = []): ?object
public function ReflectionClass::newLazyGhost(callable $initializer, int $options = 0): object
public function ReflectionClass::newLazyProxy(callable $factory, int $options = 0): object
public function ReflectionClass::resetAsLazyGhost(object $object, callable $initializer, int $options = 0): void
public function ReflectionClass::resetAsLazyProxy(object $object, callable $factory, int $options = 0): void
}

Changelog

Version Beschreibung
8.0.0 ReflectionObject::export() was removed.

Inhaltsverzeichnis

+add a note

User Contributed Notes 1 note

up
4
marcel dot nolte at noltecomputer dot de
17 years ago
To simply enlist all methods and properties of an object simply write:

<?php ReflectionObject::export($yourObject); ?>

,which will cause an var_export-like output.
To Top