|
const | TABLE = Contribution::TABLE |
|
const | PK = Contribution::PK |
|
◆ __construct()
Default constructor
- Parameters
-
Db | $zdb | Database |
Login | $login | Login |
| ?ContributionsList | $filters Filtering |
◆ getArrayList()
Galette\Repository\Contributions::getArrayList |
( |
array |
$ids, |
|
|
bool |
$as_contrib = false , |
|
|
?array |
$fields = null |
|
) |
| |
Get contributions list for a specific transaction
- Parameters
-
| array<int> | $ids an array of members id that has been selected |
bool | $as_contrib | return the results as an array of |
| ?array<string> | $fields field(s) name(s) to get. Should be a string or an array. If null, all fields will be returned |
- Returns
- array<int, Contribution>|false
◆ getCount()
Galette\Repository\Contributions::getCount |
( |
| ) |
|
Get count for current query
- Returns
- int
◆ getList()
Galette\Repository\Contributions::getList |
( |
bool |
$as_contrib = false , |
|
|
?array |
$fields = null |
|
) |
| |
Get contributions list
- Parameters
-
bool | $as_contrib | return the results as an array of Contribution object. |
| ?array<string> | $fields field(s) name(s) to get. Should be a string or an array. If null, all fields will be returned |
- Returns
- array<int, Contribution>|ResultSet
◆ getListFromTransaction()
Galette\Repository\Contributions::getListFromTransaction |
( |
int |
$trans_id | ) |
|
Get contributions list for a specific transaction
- Parameters
-
int | $trans_id | Transaction identifier |
- Returns
- Contribution[]
◆ getSum()
Galette\Repository\Contributions::getSum |
( |
| ) |
|
◆ remove()
Galette\Repository\Contributions::remove |
( |
int|array |
$ids, |
|
|
History |
$hist, |
|
|
bool |
$transaction = true |
|
) |
| |
Remove specified contributions
- Parameters
-
| integer|array<int> | $ids Contributions identifiers to delete |
History | $hist | History |
boolean | $transaction | True to begin a database transaction |
- Returns
- boolean
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/Repository/Contributions.php