*
* @return boolean hook return
*/
- function onRouterInitialized(URLMapper $m)
+ public function onRouterInitialized(URLMapper $m)
{
$m->connect('main/flag/profile', array('action' => 'flagprofile'));
$m->connect('main/flag/clear', array('action' => 'clearflag'));
* @param boolean &$result out, result of the check
*
* @return boolean hook result
+ * @TODO Other implementing classes expect Profile here!!!
+ * @WARNING
*/
function onUserRightsCheck($user, $right, &$result)
{
*
* @return boolean hook result
*/
- function onEndBlockProfile($user, $profile)
+ function onEndBlockProfile(User $user, Profile $profile)
{
if ($this->flagOnBlock && !User_flag_profile::exists($profile->id,
$user->id)) {
*
* @return boolean hook result
*/
- function onProfileDeleteRelated($profile, &$related)
+ public function onProfileDeleteRelated(Profile $profile, array &$related)
{
- $related[] = 'user_flag_profile';
+ $related[] = 'User_flag_profile';
return true;
}