Archived
Initial commit
This commit is contained in:
commit
86c1e5f82b
40 files changed
+4362
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
class JSON_API_Tag {
|
||||
|
||||
var $id; // Integer
|
||||
var $slug; // String
|
||||
var $title; // String
|
||||
var $description; // String
|
||||
|
||||
function JSON_API_Tag($wp_tag = null) {
|
||||
if ($wp_tag) {
|
||||
$this->import_wp_object($wp_tag);
|
||||
}
|
||||
}
|
||||
|
||||
function import_wp_object($wp_tag) {
|
||||
$this->id = (int) $wp_tag->term_id;
|
||||
$this->slug = $wp_tag->slug;
|
||||
$this->title = $wp_tag->name;
|
||||
$this->description = $wp_tag->description;
|
||||
$this->post_count = (int) $wp_tag->count;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user