Class Crud
The CRUD class is a base class which acts as an interface between any objects which are stored on in the database and represented in server side logic, for example Map, Marker, Polygon
- WPGMZA\Factory
-
WPGMZA\Crud implements IteratorAggregate, JsonSerializable
Indirect known subclasses
WPGMZA\GoogleMap
public
|
#
__construct( string $table_name, integer|array|object $id_or_fields = -1, $read_mode = Crud::SINGLE_READ )
Constructor |
public static
|
|
public static
|
|
public
string
|
|
public
array
|
|
public
array
|
|
public
string
|
|
protected
string
|
#
get_placeholder_by_type( string $type )
Gets the placeholder for a prepared statement based on the SQL column type specified. |
protected
mixed
|
#
get_column_parameter( string $name )
Gets the parameter to be passed to a prepared statement, from this object, by the name of the DB column given. |
protected
array
|
|
protected
array
|
#
get_column_parameters( )
Gets all the values to be passed to a prepared statement from this object |
protected
string
|
#
get_arbitrary_data_column_name( )
Gets the column name used to store arbitrary data, for instance, other_data, or NULL for tables which do not have such a field. |
protected
|
#
assert_not_trashed( )
Asserts that this object hasn't been trashed and throws an exception if it has |
protected
boolean
|
|
protected
|
#
parse_arbitrary_data( $data )
Parses arbitrary data following a DB read, for example by unserializing strings or decoding JSON. |
protected
|
|
protected
|
|
protected
|
|
protected
boolean
|
|
public
|
|
public
|
|
public
|
|
public
ArrayIterator
|
|
public
array
|
|
public
mixed
|
|
public
boolean
|
|
public
|
|
public
|
createInstance()
|
string |
SINGLE_READ
|
#
"single-read"
|
string |
BULK_READ
|
#
"bulk-read"
|