|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| filterByIsEnabled ($isEnabled) | |
| filterByUserId ($userId) | |
| getCount () | |
| getIds () | |
| getManySummary () | |
| getQuery () | |
| searchPhrase ($phrase) | |
Protected Attributes | |
| $db | |
| $dbIdColumn | |
| $dbSettings | |
| $isEnabled = null | |
| $searchPhrase = null | |
| $userId | |
Definition at line 20 of file PKPContextQueryBuilder.inc.php.
| PKP\Services\QueryBuilders\PKPContextQueryBuilder::filterByIsEnabled | ( | $isEnabled | ) |
Set isEnabled filter
| $isEnabled | boolean |
Definition at line 65 of file PKPContextQueryBuilder.inc.php.
References PKP\Services\QueryBuilders\PKPContextQueryBuilder\$isEnabled.
| PKP\Services\QueryBuilders\PKPContextQueryBuilder::filterByUserId | ( | $userId | ) |
Set userId filter
The user id can access contexts where they are assigned to a user group. If the context is disabled, they must be assigned to ROLE_ID_MANAGER user group.
| $userId | boolean |
Definition at line 81 of file PKPContextQueryBuilder.inc.php.
References PKP\Services\QueryBuilders\PKPContextQueryBuilder\$userId.
| PKP\Services\QueryBuilders\PKPContextQueryBuilder::getCount | ( | ) |
Get a count of the number of rows that match the select conditions configured in this query builder.
Implements PKP\Services\QueryBuilders\Interfaces\EntityQueryBuilderInterface.
Definition at line 101 of file PKPContextQueryBuilder.inc.php.
| PKP\Services\QueryBuilders\PKPContextQueryBuilder::getIds | ( | ) |
Get a list of ids that match the select conditions configured in this query builder.
Implements PKP\Services\QueryBuilders\Interfaces\EntityQueryBuilderInterface.
Definition at line 112 of file PKPContextQueryBuilder.inc.php.
| PKP\Services\QueryBuilders\PKPContextQueryBuilder::getManySummary | ( | ) |
Get the name and basic data for a set of contexts
This returns data from the main table and the name of the context in its primary locale.
Definition at line 128 of file PKPContextQueryBuilder.inc.php.
| PKP\Services\QueryBuilders\PKPContextQueryBuilder::getQuery | ( | ) |
Get a query builder with the applied select, where and join clauses based on builder's configuration
This returns an instance of Laravel's query builder.
Call the get method on a query builder to return an array of matching rows.
Or use the query builder to retrieve objects from a DAO. This example retrieves the first 20 matching Publications.
Laravel's other query builder methods, such as first and pluck, can also be used.
See: https://laravel.com/docs/5.5/queries
Implements PKP\Services\QueryBuilders\Interfaces\EntityQueryBuilderInterface.
Definition at line 154 of file PKPContextQueryBuilder.inc.php.
References HookRegistry\call(), and PKP\Services\QueryBuilders\PKPContextQueryBuilder\searchPhrase().
| PKP\Services\QueryBuilders\PKPContextQueryBuilder::searchPhrase | ( | $phrase | ) |
Set query search phrase
| $phrase | string |
Definition at line 93 of file PKPContextQueryBuilder.inc.php.
Referenced by PKP\Services\QueryBuilders\PKPContextQueryBuilder\getQuery().
|
protected |
The database name for this context: journals or presses
Definition at line 26 of file PKPContextQueryBuilder.inc.php.
|
protected |
The column name for a context ID: journal_id or press_id
Definition at line 38 of file PKPContextQueryBuilder.inc.php.
|
protected |
The database name for this context's settings: journal_settings or press_settings
Definition at line 32 of file PKPContextQueryBuilder.inc.php.
|
protected |
enabled or disabled contexts
Definition at line 44 of file PKPContextQueryBuilder.inc.php.
Referenced by PKP\Services\QueryBuilders\PKPContextQueryBuilder\filterByIsEnabled().
|
protected |
search phrase
Definition at line 56 of file PKPContextQueryBuilder.inc.php.
|
protected |
Filter contexts by whether or not this user can access it when logged in
Definition at line 50 of file PKPContextQueryBuilder.inc.php.
Referenced by PKP\Services\QueryBuilders\PKPContextQueryBuilder\filterByUserId().