LLMS_Abstract_Database_Store::get( string $key, boolean $cache = true )
Get object data
Description Description
Parameters Parameters
- $key
-
(string) (Required) key to retrieve
- $cache
-
(boolean) (Optional) if true, save data to to the object for future gets
Default value: true
Return Return
(mixed)
Source Source
File: includes/abstracts/llms.abstract.database.store.php
public function get( $key, $cache = true ) { if ( ! isset( $this->data[ $key ] ) && $this->id ) { $res = $this->read( $key )[ $key ]; if ( $cache ) { $this->set( $key, $res ); } return $res; } return $this->$key; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.14.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: