Yoast\WP\Lib

Abstract_Main::__isset()publicYoast 1.0

Checks if the given property exists as a surface.

Метод класса: Abstract_Main{}

Хуков нет.

Возвращает

true|false. True when property is set.

Использование

$Abstract_Main = new Abstract_Main();
$Abstract_Main->__isset( $property );
$property(строка) (обязательный)
The property to retrieve.

Код Abstract_Main::__isset() Yoast 22.4

public function __isset( $property ) {
	if ( \array_key_exists( $property, $this->cached_surfaces ) ) {
		return true;
	}

	$surfaces = $this->get_surfaces();

	if ( ! isset( $surfaces[ $property ] ) ) {
		return false;
	}

	return $this->container->has( $surfaces[ $property ] );
}