Yoast\WP\Lib

Abstract_Main::__isset │ public │ Yoast 1.0

Checks if the given property exists as a surface.

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

Хуков нет.

Возвращает

bool. True when property is set.

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

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

Код Abstract_Main::__isset() Yoast 28.9

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 ] );
}