Doc: doxygen
This commit is contained in:
parent
81211651c9
commit
1aacf7d52a
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2006-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -321,22 +321,20 @@ class CommonObject
|
|||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Retourne le détail d'un contact
|
* \brief Charge le contact d'id $id dans this->contact
|
||||||
* \param id id du contact
|
* \param contactid Id du contact
|
||||||
* \return array détail du contact
|
|
||||||
*/
|
*/
|
||||||
function fetch_contact($id)
|
function fetch_contact($contactid)
|
||||||
{
|
{
|
||||||
$idcontact = $id;
|
$contact = new Contact($this->db);
|
||||||
$contact = new Contact($this->db);
|
$contact->fetch($contactid);
|
||||||
$contact->fetch($idcontact);
|
$this->contact = $contact;
|
||||||
$this->contact = $contact;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* \brief Charge l'objet client depuis la base
|
* \brief Charge le tiers d'id $this->socid dans this->client
|
||||||
*/
|
*/
|
||||||
function fetch_client()
|
function fetch_client()
|
||||||
{
|
{
|
||||||
@ -345,29 +343,27 @@ class CommonObject
|
|||||||
$this->client = $client;
|
$this->client = $client;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* \brief Charge l'objet projet depuis la base
|
* \brief Charge le projet d'id $this->projet_id dans this->projet
|
||||||
*
|
*/
|
||||||
*/
|
|
||||||
function fetch_projet()
|
function fetch_projet()
|
||||||
{
|
{
|
||||||
$projet = new Project($this->db);
|
$projet = new Project($this->db);
|
||||||
$projet->fetch($this->projet_id);
|
$projet->fetch($this->projet_id);
|
||||||
$this->projet = $projet;
|
$this->projet = $projet;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Retourne le détail d'un utilisateur
|
* \brief Charge le user d'id userid dans this->user
|
||||||
* \param id id du contact
|
* \param userid Id du contact
|
||||||
* \return array détail du contact
|
|
||||||
*/
|
*/
|
||||||
function fetch_user($userid)
|
function fetch_user($userid)
|
||||||
{
|
{
|
||||||
$user = new User($this->db, $userid);
|
$user = new User($this->db, $userid);
|
||||||
$user->fetch();
|
$user->fetch();
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user