LLMS_Abstract_Database_Store::setup( array $data )

Setup an object with an array of data


Description Description


Parameters Parameters

$data

(array) (Required) key => val


Top ↑

Return Return

(self)


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; // allow chaining like $this->setup( $data )->save();

	}

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.





Permalink: