function __construct($post_id = null) { parent::__construct(DB::table('postinfo'), "post_id", $post_id); // call parent with appropriate parameters }
function __construct($comment_id = NULL) { parent::__construct(DB::table('commentinfo'), 'comment_id', $comment_id); // call parent with appropriate parameters }
function __construct($user_id = null) { // call parent with appropriate parameters parent::__construct(DB::table('userinfo'), 'user_id', $user_id); }
function __construct($term_id = null) { parent::__construct(DB::table('terminfo'), 'term_id', $term_id); // call parent with appropriate parameters }