<?php
/***************************************************************************
- * Copyright (C) 2003-2010 Polytechnique.org *
+ * Copyright (C) 2003-2011 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
// function fix_bestalias() {{{1
// Checks for an existing 'bestalias' among the the current user's aliases, and
// eventually selects a new bestalias when required.
-function fix_bestalias(User &$user)
+function fix_bestalias(User $user)
{
$res = XDB::query("SELECT COUNT(*)
FROM aliases
// constructor {{{2
- public function __construct(User &$user)
+ public function __construct(User $user)
{
if (!$user) {
return;
{
// constructor {{{2
- public function __construct(User &$user, $row)
+ public function __construct(User $user, $row)
{
$this->user = &$user;
$this->sufficient = true;
}
// Returns the list of allowed storages for the @p user.
- static public function get_allowed_storages(User &$user)
+ static public function get_allowed_storages(User $user)
{
global $globals;
$storages = array();
}
- public function __construct(User &$user, $name)
+ public function __construct(User $user, $name)
{
$this->user = &$user;
$this->email = $name;
// constructor {{{2
- public function __construct(User &$user)
+ public function __construct(User $user)
{
$this->user = &$user;
$this->bogo = new Bogo($user);