You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
672 B
29 lines
672 B
![]()
11 years ago
|
<?php
|
||
|
/* For licensing terms, see /license.txt */
|
||
|
|
||
|
/**
|
||
|
* Class HookUpdateUser
|
||
|
* @var \SplObjectStorage $observers
|
||
|
*/
|
||
|
class HookUpdateUser extends HookEvent implements HookUpdateUserEventInterface
|
||
|
{
|
||
|
public function __construct()
|
||
|
{
|
||
|
parent::__construct('HookUpdateUser');
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Update all the observers
|
||
|
* @param int $type
|
||
|
* @return int
|
||
|
*/
|
||
|
public function notifyUpdateUser($type)
|
||
|
{
|
||
|
/** @var \HookUpdateUserObserverInterface $observer */
|
||
|
$this->eventData['type'] = $type;
|
||
|
foreach ($this->observers as $observer) {
|
||
|
$observer->hookUpdateUser($this);
|
||
|
}
|
||
|
return 1;
|
||
|
}
|
||
|
}
|