Yoast\WP\Lib

ORM::set()publicYoast 1.0

Sets a property to a particular value on this object.

To set multiple properties at once, pass an associative array as the first parameter and leave out the second parameter. Flags the properties as 'dirty' so they will be saved to the database when save() is called.

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

Хуков нет.

Возвращает

ORM.

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

$ORM = new ORM();
$ORM->set( $key, $value );
$key(строка|массив) (обязательный)
Key.
$value(строка|null)
Value.
По умолчанию: null

Код ORM::set() Yoast 22.4

public function set( $key, $value = null ) {
	return $this->set_orm_property( $key, $value );
}