protected function AnonymousPublishingClAdminUnverified::getAllUnverifiedContents in Anonymous Publishing 8
Get all contents to moderate.
Parameters
int $test_id: The test_id to retrieve results of.
Return value
array Array of results grouped by test_class.
1 call to AnonymousPublishingClAdminUnverified::getAllUnverifiedContents()
- AnonymousPublishingClAdminUnverified::buildForm in modules/
anonymous_publishing_cl/ src/ Form/ AnonymousPublishingClAdminUnverified.php - Form constructor.
File
- modules/
anonymous_publishing_cl/ src/ Form/ AnonymousPublishingClAdminUnverified.php, line 297
Class
Namespace
Drupal\anonymous_publishing_cl\FormCode
protected function getAllUnverifiedContents($header) {
$query = $this->database
->select('anonymous_publishing', 'a');
$query
->fields('a');
$query
->where('a.verified = 0');
$query
->extend('Drupal\\Core\\Database\\Query\\TableSortExtender')
->orderByHeader($header);
$query
->extend('Drupal\\Core\\Database\\Query\\PagerSelectExtender')
->limit(50);
$query
->range(0, 100);
return $query
->execute()
->fetchAll();
}