3ev Core Wordpress library API
  • Namespace
  • Class

Namespaces

  • Tev
    • Application
      • Bootstrap
    • Author
      • Model
    • Contracts
    • Database
      • CustomTables
    • Field
      • Model
      • Util
    • Plugin
      • Action
      • Shortcode
    • Post
      • Model
      • Repository
    • Taxonomy
      • Model
      • Repository
    • Term
      • Model
      • Repository
    • Util
    • View
      • Exception
  • None

Classes

  • AbstractInstaller

Class AbstractInstaller

Run install scripts for custom database tables.

See: http://codex.wordpress.org/Creating_Tables_with_Plugins for more information.

Abstract
Namespace: Tev\Database\CustomTables
Located at Tev/Database/CustomTables/AbstractInstaller.php

Methods summary

public
# __construct( Tev\Database\CustomTables\AbstractInstaller::$wpdb $wpdb, Tev\Application\Application $app )

Constructor.

Constructor.

Inject dependencies.

Parameters

$wpdb
WPDB API
$app
Application container
abstract protected string
# getSql( )

Return the SQL statement that will install/update the database for this installer.

Return the SQL statement that will install/update the database for this installer.

See http://codex.wordpress.org/Creating_Tables_with_Plugins#Creating_or_Updating_the_Table for SQL idiosyncrasies in Wordpress.

Returns

string
SQL string
abstract protected string
# getVersion( )

Get the current database version.

Get the current database version.

Should be updated every time the database needs to be updated.

Returns

string
Semver string, like 1.0.0
public
# install( )

Install the database for this first.

Install the database for this first.

public
# update( )

Update the database if it's out of date.

Update the database if it's out of date.

protected
# run( )

Run database scripts.

Run database scripts.

See http://codex.wordpress.org/Creating_Tables_with_Plugins#Creating_or_Updating_the_Table for SQL idiosyncrasies in Wordpress.

Properties summary

protected wpdb $wpdb

WPDB API.

WPDB API.

#
protected Tev\Application\Application $app

Application container.

Application container.

#
3ev Core Wordpress library API API documentation generated by ApiGen