PHP Class VersionPress\Database\Database

To explain the motivation a little bit, when VersionPress is installed, it rewrites the wpdb class and adds its own logic into DB-manipulating methods. That is good for WordPress and all the 3rd party plugins but not for VersionPress itself - it needs the raw query() functionality not to trigger itself recursively. Now, the developers could call $wpdb->__wp_query() but that's ugly, fragile and easy to forget. This proxy improves that. (The PhpDoc API description below can be regenerated by ./wpdb-api-to-phpdoc.php.)
Show file Open project: versionpress/versionpress Class Usage Examples

Public Properties

Property Type Description
$vp_id

Public Methods

Method Description
__call ( $name, $arguments )
__construct ( $wpdb )
__get ( $name )
__set ( $name, $value )
query ( string $query ) : integer | false

Method Details

__call() public method

public __call ( $name, $arguments )

__construct() public method

public __construct ( $wpdb )

__get() public method

public __get ( $name )

__set() public method

public __set ( $name, $value )

query() public method

See also: wpdb::query()
public query ( string $query ) : integer | false
$query string Database query
return integer | false Number of rows affected/selected or false on error

Property Details

$vp_id public property

public $vp_id