1 | <?php |
||
14 | class Yikes_Easy_MC_bbPress_Checkbox_Class extends Yikes_Easy_MC_Checkbox_Integration_Class { |
||
15 | |||
16 | /** |
||
17 | * The integration type. |
||
18 | * |
||
19 | * @var string $type |
||
20 | */ |
||
21 | protected $type = 'bbpress_forms'; |
||
22 | |||
23 | /** |
||
24 | * Constructor. |
||
25 | */ |
||
26 | public function __construct() { |
||
33 | |||
34 | /** |
||
35 | * Outputs a checkbox if user is not already subscribed. |
||
36 | */ |
||
37 | public function output_checkbox() { |
||
43 | |||
44 | /** |
||
45 | * Subscribe the user. At this point, they chose. |
||
46 | * |
||
47 | * @param int $user_id The WP User ID. |
||
48 | */ |
||
49 | public function subscribe_from_bbpress( $user_id ) { |
||
61 | |||
62 | /** |
||
63 | * Subscribe the user if they so chose. |
||
64 | * |
||
65 | * @param int $topic_id The topic's ID. |
||
66 | * @param int $forum_id The forum's ID. |
||
67 | * @param mixed $anonymous_data Honestly I don't know. |
||
68 | * @param int $topic_author_id The topic author's ID (WP User ID). |
||
69 | */ |
||
70 | public function subscribe_from_bbpress_new_topic( $topic_id, $forum_id, $anonymous_data, $topic_author_id ) { |
||
77 | |||
78 | /** |
||
79 | * Subscribe the user if they so chose. |
||
80 | * |
||
81 | * @param int $reply_id The reply's ID. |
||
82 | * @param int $topic_id The topic's ID. |
||
83 | * @param int $forum_id The forum's ID. |
||
84 | * @param mixed $anonymous_data Honestly I don't know. |
||
85 | * @param int $reply_author_id The topic author's ID (WP User ID). |
||
86 | */ |
||
87 | public function subscribe_from_bbpress_new_reply( $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author_id ) { |
||
94 | } |
||
95 | $yikes_easy_mc_bbpress_checkbox_class = new Yikes_Easy_MC_bbPress_Checkbox_Class(); |
||
96 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.