PHP Class Inpsyde\MultilingualPress\Database\Table\SiteRelationsTable

Since: 3.0.0
Inheritance: implements Inpsyde\MultilingualPress\Database\Table
Datei anzeigen Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( string $prefix = '' ) Constructor. Set up the properties.
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

__construct() public method

Constructor. Set up the properties.
Since: 3.0.0
public __construct ( string $prefix = '' )
$prefix string Optional Table name prefix. Defaults to empty string.

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.