/** * Post constructor * @param $id Identifier of post. * @param $subject Subject of post (not required). */ function __construct($id = 0, $subject = "") { // Initialize values $this->init($id, $subject); // Call parent constructor if (!empty($this->blog->id)) { parent::__construct("blogModuleId", "blogPostContentId", "blogContentId", $this->blog->id, $this->user->id); } else { parent::__construct("blogModuleId", "blogPostContentId", "", 0, $this->user->id); } }
/** * Category constructor. * @param $id Identifier of category. * @param $title Title of category. */ function __construct($id = 0, $title = "") { parent::__construct("categoryModuleId", "categoryContentTypeId"); // Initialize values $this->init($id, $title); }
/** * Comment constructor. * @param $id Identifier of comment. */ function __construct($id = 0) { parent::__construct("commentModuleId", "commentContentTypeId"); // Initialize values $this->init($id); }
/** * Blog constructor * @param $id Blog id */ function __construct($id = 0, $title = "") { parent::__construct("blogModuleId", "blogContentId"); // Initialize values $this->init($id, $title); }
/** * Group constructor. * @param $id Identifier of group. */ function __construct($id = "") { parent::__construct("groupModuleId", "groupContentTypeId"); // Initialize values $this->init($id); }