LLMS_Abstract_Database_Store::setup( array $data )

Setup an object with an array of data


Parameters Parameters

$data

(array) (Required) key => val


Top ↑

Return Return

(LLMS_Abstract_Database_Store) Instance of the current object, useful for chaining.


Top ↑

Source Source

File: includes/abstracts/llms.abstract.database.store.php

	public function setup( $data ) {

		foreach ( $data as $key => $val ) {
			$this->set( $key, $val, false );
		}

		return $this;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.33.0 Return self for chaining instead of void.
3.14.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.