mirror of
https://github.com/buddypress/buddypress.git
synced 2026-07-23 21:06:56 +08:00
• Add `BP_Invitation`, a new class describing generic invitation objects with methods for adding, updating and deleting invitations and membership requests. • Add a creation routine for the new table that will contain invitations data. • Add `BP_Invitation_Manager`, a new class that offers helper functions for managing `BP_Invitation` objects. For most use cases, this class will be extended for new invitation types, like group invitations. • Add unit tests for the new classes. See #6210. git-svn-id: https://buddypress.svn.wordpress.org/trunk@12428 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
18 lines
436 B
PHP
18 lines
436 B
PHP
<?php
|
|
/**
|
|
* The following implementations of BP_Attachment act as dummy plugins
|
|
* for our unit tests
|
|
*/
|
|
class BPTest_Invitation_Manager_Extension extends BP_Invitation_Manager {
|
|
public function __construct( $args = array() ) {
|
|
parent::__construct( $args );
|
|
}
|
|
|
|
public function run_send_action( BP_Invitation $invitation ) {
|
|
return true;
|
|
}
|
|
|
|
public function run_acceptance_action( $type = 'invite', $r ) {
|
|
return true;
|
|
}
|
|
}
|