forked from claroline/CoreBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5afc52
commit 27fe302
Showing
8 changed files
with
176 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Claroline Connect package. | ||
* | ||
* (c) Claroline Consortium <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Claroline\CoreBundle\Event; | ||
|
||
use Claroline\CoreBundle\Entity\User; | ||
use Symfony\Component\EventDispatcher\Event; | ||
|
||
class UserAddFilterEvent extends Event | ||
{ | ||
private $filters; | ||
|
||
public function __construct($filters) | ||
{ | ||
$this->filters = $filters; | ||
} | ||
|
||
public function addFilter($filter) | ||
{ | ||
$this->filters[] = $filter; | ||
} | ||
|
||
public function removeFilter($filter) | ||
{ | ||
if (($key = array_search($filter, $this->filters)) !== false) { | ||
unset($filters[$key]); | ||
} | ||
|
||
} | ||
|
||
public function getFilters() | ||
{ | ||
return $this->filters; | ||
} | ||
|
||
public function setFilters($filters) | ||
{ | ||
$this->filters = $filters; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Claroline Connect package. | ||
* | ||
* (c) Claroline Consortium <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Claroline\CoreBundle\Event; | ||
|
||
use Symfony\Component\EventDispatcher\Event; | ||
use Doctrine\ORM\QueryBuilder; | ||
|
||
class UserEditSearchEvent extends Event | ||
{ | ||
private $qb; | ||
|
||
public function __construct(QueryBuilder $qb) | ||
{ | ||
$this->qb = $qb; | ||
} | ||
|
||
public function getQueryBuilder() | ||
{ | ||
return $this->qb; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters