Yoast\WP\Lib

Model::is_dirty()publicYoast 1.0

Check whether the given property has changed since the object was created or saved.

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

Хуков нет.

Возвращает

true|false. True when field is changed.

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

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

Код Model::is_dirty() Yoast 22.4

public function is_dirty( $property ) {
	return $this->orm->is_dirty( $property );
}