Rename the Plan bundle to Program across config, routes, menus, and controllers (Plan -> Initiative), bump version to 0.16.0, and introduce new audience and UTM taxonomy routes and permissions to support the expanded Programs feature set.
48 lines
1.0 KiB
PHP
48 lines
1.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace MauticPlugin\ProgramBundle\Entity;
|
|
|
|
use Mautic\CoreBundle\Entity\CommonRepository;
|
|
|
|
/**
|
|
* @extends CommonRepository<Stakeholder>
|
|
*/
|
|
class StakeholderRepository extends CommonRepository
|
|
{
|
|
use CountsItemsByTypeTrait;
|
|
|
|
public function getTableAlias(): string
|
|
{
|
|
return 'ps';
|
|
}
|
|
|
|
/**
|
|
* The list's search box matches the name, email, role and type.
|
|
*
|
|
* @param array<int, mixed> $filter
|
|
*
|
|
* @return array<int, mixed>
|
|
*/
|
|
protected function addCatchAllWhereClause($q, $filter): array
|
|
{
|
|
return $this->addStandardCatchAllWhereClause($q, $filter, [
|
|
$this->getTableAlias().'.name',
|
|
$this->getTableAlias().'.email',
|
|
$this->getTableAlias().'.role',
|
|
$this->getTableAlias().'.type',
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* @return array<array{0: string, 1: string}>
|
|
*/
|
|
protected function getDefaultOrder(): array
|
|
{
|
|
return [
|
|
[$this->getTableAlias().'.name', 'ASC'],
|
|
];
|
|
}
|
|
}
|