Class WPDA_List_Columns_Cache

This class caches the instances of class \WPDataAccess\Data_Dictionary\WPDA_List_Columns used during the request to prevent repeating the same query more than once.

author Peter Schulz
since 1.0.0
see \WPDataAccess\Data_Dictionary\WPDA_List_Columns
package WPDataAccess\Data_Dictionary

 Methods

Get instance of WPDA_List_Columns for supplied schema and table name

get_list_columns($schema_name, $table_name) : object
Static

Checks if an instance of class \WPDataAccess\Data_Dictionary\WPDA_List_Columns for the given combination of $schema_name and $table_name is already in cache. If an instance was found, a handle to it is returned. If not, a new instance is created, added to the cache and a handle to it is returned.

Parameters

$schema_name

Database schema name (= MySQL database)

$table_name

Datable table name

Returns

objectHandle to instance of {@see WPDA_List_Columns} for supplied $schema_name and $table_name

 Properties

 

Cached instances of WPDA_List_Columns

$cached_list_columns : array

Default

array()
Static