/**
  * @param Post $post
  * @param Taxonomy $taxonomy
  */
 public function __construct(Post $post, Taxonomy $taxonomy)
 {
     parent::__construct();
     $this->set_id($post->get_id() . '-' . $taxonomy->get_id());
     $this->post = $post;
     $this->taxonomy = $taxonomy;
 }
예제 #2
0
 /**
  * Constructor.
  */
 public function __construct($id = null)
 {
     parent::__construct((int) $id);
     $this->meta = array();
     $this->post_taxonomy_relationships = array();
 }
예제 #3
0
 /**
  * Constructor.
  *
  * @param int $id
  */
 public function __construct($id = null)
 {
     parent::__construct((int) $id);
     $this->meta_data = array();
     $this->posts = array();
     $this->attachments = array();
     $this->users = array();
     $this->options = array();
     $this->post_rel_keys = array();
     $this->custom_data = array();
 }