2017 © Pedro Peláez
 

library wpdocument

Super simple database document for Wordpress

image

om/wpdocument

Super simple database document for Wordpress

  • Sunday, March 23, 2014
  • by OzzyCzech
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

WP Document

Super simple database document for Wordpress, (*1)

class Something extends \om\WpDocument {
  public $propertyone = true;
  /** @var bool */
  public $propertytwo = 'default value';

  public function __construct() {
    $this->currency = 'CZK'; // TODO from options
  }

}

Simplify from id creation and save updates, (*2)

$something = Something::fromId(1);
$something->propertyone = fasle;
$something->propertytwo = 'add something';
$something->save(); // that's all

Key properties

  • super simple document interface
  • constructor free parent
  • table prefix support
  • late static binding table names

The Versions

23/03 2014

dev-master

9999999-dev

Super simple database document for Wordpress

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

22/03 2014

v0.0.1

0.0.1.0

Super simple database document for Wordpress

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0