Initial commit

This commit is contained in:
Dan Phiffer committed 2011-03-25 12:22:44 -04:00
commit 86c1e5f82b
40 files changed
+4362

No files matched your search

+26
View File
@@ -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;
}
}
?>