PHP Interface Inpsyde\MultilingualPress\Database\Table

Since: 3.0.0
Datei anzeigen Open project: inpsyde/multilingual-press Interface Usage Examples

Public Methods

Method Description
columns_without_default_content ( ) : string[] Returns an array with all columns that do not have any default content.
default_content_sql ( ) : string Returns the SQL string for the default content.
keys_sql ( ) : string Returns the SQL string for all (unique) keys.
name ( ) : string Returns the table name.
primary_key ( ) : string Returns the primary key.
schema ( ) : string[] Returns the table schema.

Method Details

columns_without_default_content() public method

Returns an array with all columns that do not have any default content.
Since: 3.0.0
public columns_without_default_content ( ) : string[]
return string[] All columns that do not have any default content.

default_content_sql() public method

Returns the SQL string for the default content.
Since: 3.0.0
public default_content_sql ( ) : string
return string The SQL string for the default content.

keys_sql() public method

Returns the SQL string for all (unique) keys.
Since: 3.0.0
public keys_sql ( ) : string
return string The SQL string for all (unique) keys.

name() public method

Returns the table name.
Since: 3.0.0
public name ( ) : string
return string The table name.

primary_key() public method

Returns the primary key.
Since: 3.0.0
public primary_key ( ) : string
return string The primary key.

schema() public method

Returns the table schema.
Since: 3.0.0
public schema ( ) : string[]
return string[] An array with fields as keys and the according SQL definitions as values.