Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 

WP Document

Super simple database document for Wordpress

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

$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

About

Wordpress document model

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages