/** * @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; }
/** * Constructor. */ public function __construct($id = null) { parent::__construct((int) $id); $this->meta = array(); $this->post_taxonomy_relationships = array(); }
/** * 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->post_rel_keys = array(); $this->custom_data = array(); }