a-bakos / gazebo-cms

0 stars 0 forks source link

Model the Post data structure #32

Closed a-bakos closed 1 year ago

a-bakos commented 1 year ago

A WP post object:

[x] = already implemented
---
[x] public $ID;
[x] public $post_author = 0;
[x] public $post_date = '0000-00-00 00:00:00'; // The entry's local publication time.
public $post_date_gmt = '0000-00-00 00:00:00'; // The entry's GMT publication time.
[x] public $post_content = '';
[x] public $post_title = '';
[x] public $post_excerpt = '';
[x] public $post_status = 'publish';
public $comment_status = 'open';
public $ping_status = 'open'; // Whether pings are allowed
[x] public $post_password = ''; // The entry's password in plain text.
[x] public $post_name = ''; // The entry's slug.
public $to_ping = ''; // URLs queued to be pinged.
public $pinged = ''; // URLs that have been pinged.
[x] public $post_modified = '0000-00-00 00:00:00'; // The entry's local modified time.
public $post_modified_gmt = '0000-00-00 00:00:00'; // The entry's GMT modified time.
public $post_content_filtered = ''; // A utility DB field for entry content.
[x] public $post_parent = 0; // ID of a entry's parent entry.
public $guid = ''; // The unique identifier for a entry, not necessarily a URL, used as the feed GUID.
public $menu_order = 0; // A field used for ordering entry.
[x] public $post_type = 'entry';
public $post_mime_type = ''; // An attachment's mime type.
public $comment_count = 0; // Cached comment count. A numeric string, for compatibility reasons.