|
@@ 245-265 (lines=21) @@
|
| 242 |
|
* |
| 243 |
|
* @param WordPoints_App_Registry $entities The entities app. |
| 244 |
|
*/ |
| 245 |
|
function wordpoints_bp_groups_entities_init( $entities ) { |
| 246 |
|
|
| 247 |
|
$children = $entities->get_sub_app( 'children' ); |
| 248 |
|
|
| 249 |
|
$entities->register( 'bp_group', 'WordPoints_BP_Entity_Group' ); |
| 250 |
|
$children->register( 'bp_group', 'creator', 'WordPoints_BP_Entity_Group_Creator' ); |
| 251 |
|
$children->register( 'bp_group', 'date_created', 'WordPoints_BP_Entity_Group_Date_Created' ); |
| 252 |
|
$children->register( 'bp_group', 'description', 'WordPoints_BP_Entity_Group_Description' ); |
| 253 |
|
$children->register( 'bp_group', 'name', 'WordPoints_BP_Entity_Group_Name' ); |
| 254 |
|
$children->register( 'bp_group', 'parent', 'WordPoints_BP_Entity_Group_Parent' ); |
| 255 |
|
$children->register( 'bp_group', 'slug', 'WordPoints_BP_Entity_Group_Slug' ); |
| 256 |
|
$children->register( 'bp_group', 'status', 'WordPoints_BP_Entity_Group_Status' ); |
| 257 |
|
|
| 258 |
|
if ( bp_is_active( 'activity' ) ) { |
| 259 |
|
$entities->register( 'bp_group_activity_update', 'WordPoints_BP_Entity_Activity_Update' ); |
| 260 |
|
$children->register( 'bp_group_activity_update', 'author', 'WordPoints_BP_Entity_Activity_Update_Author' ); |
| 261 |
|
$children->register( 'bp_group_activity_update', 'content', 'WordPoints_BP_Entity_Activity_Update_Content' ); |
| 262 |
|
$children->register( 'bp_group_activity_update', 'date_posted', 'WordPoints_BP_Entity_Activity_Update_Date_Posted' ); |
| 263 |
|
$children->register( 'bp_group_activity_update', 'group', 'WordPoints_BP_Entity_Group_Activity_Update_Group' ); |
| 264 |
|
} |
| 265 |
|
} |
| 266 |
|
|
| 267 |
|
/** |
| 268 |
|
* Register entity "know" restrictions for the Groups component. |
|
@@ 909-928 (lines=20) @@
|
| 906 |
|
* |
| 907 |
|
* @param WordPoints_App_Registry $entities The entities app. |
| 908 |
|
*/ |
| 909 |
|
function wordpoints_bp_activity_entities_init( $entities ) { |
| 910 |
|
|
| 911 |
|
$children = $entities->get_sub_app( 'children' ); |
| 912 |
|
|
| 913 |
|
$entities->register( 'bp_activity', 'WordPoints_BP_Entity_Activity' ); |
| 914 |
|
$children->register( 'bp_activity', 'date', 'WordPoints_BP_Entity_Activity_Date' ); |
| 915 |
|
$children->register( 'bp_activity', 'user', 'WordPoints_BP_Entity_Activity_User' ); |
| 916 |
|
|
| 917 |
|
$entities->register( 'bp_activity_update', 'WordPoints_BP_Entity_Activity_Update' ); |
| 918 |
|
$children->register( 'bp_activity_update', 'author', 'WordPoints_BP_Entity_Activity_Update_Author' ); |
| 919 |
|
$children->register( 'bp_activity_update', 'content', 'WordPoints_BP_Entity_Activity_Update_Content' ); |
| 920 |
|
$children->register( 'bp_activity_update', 'date_posted', 'WordPoints_BP_Entity_Activity_Update_Date_Posted' ); |
| 921 |
|
|
| 922 |
|
$entities->register( 'bp_activity_comment', 'WordPoints_BP_Entity_Activity_Comment' ); |
| 923 |
|
$children->register( 'bp_activity_comment', 'activity', 'WordPoints_BP_Entity_Activity_Comment_Activity' ); |
| 924 |
|
$children->register( 'bp_activity_comment', 'author', 'WordPoints_BP_Entity_Activity_Comment_Author' ); |
| 925 |
|
$children->register( 'bp_activity_comment', 'content', 'WordPoints_BP_Entity_Activity_Update_Content' ); |
| 926 |
|
$children->register( 'bp_activity_comment', 'date_posted', 'WordPoints_BP_Entity_Activity_Update_Date_Posted' ); |
| 927 |
|
$children->register( 'bp_activity_comment', 'parent', 'WordPoints_BP_Entity_Activity_Comment_Parent' ); |
| 928 |
|
} |
| 929 |
|
|
| 930 |
|
/** |
| 931 |
|
* Register entity "know" restrictions for the Activity component. |