Doxyen
This commit is contained in:
parent
ea05b8192d
commit
95a6d7f8f5
@ -239,8 +239,8 @@ class CoreObject extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Function to update object or create or delete if needed
|
* Function to update object or create or delete if needed
|
||||||
*
|
*
|
||||||
* @param User $user user object
|
* @param User $user User object
|
||||||
* @return < 0 if ko, > 0 if ok
|
* @return int < 0 if KO, > 0 if OK
|
||||||
*/
|
*/
|
||||||
public function update(User &$user)
|
public function update(User &$user)
|
||||||
{
|
{
|
||||||
@ -280,7 +280,7 @@ class CoreObject extends CommonObject
|
|||||||
* Function to create object in database
|
* Function to create object in database
|
||||||
*
|
*
|
||||||
* @param User $user user object
|
* @param User $user user object
|
||||||
* @return < 0 if ko, > 0 if ok
|
* @return int < 0 if KO, > 0 if OK
|
||||||
*/
|
*/
|
||||||
public function create(User &$user)
|
public function create(User &$user)
|
||||||
{
|
{
|
||||||
@ -321,7 +321,7 @@ class CoreObject extends CommonObject
|
|||||||
* Function to delete object in database
|
* Function to delete object in database
|
||||||
*
|
*
|
||||||
* @param User $user user object
|
* @param User $user user object
|
||||||
* @return < 0 if ko, > 0 if ok
|
* @return int < 0 if KO, > 0 if OK
|
||||||
*/
|
*/
|
||||||
public function delete(User &$user)
|
public function delete(User &$user)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -29,7 +29,7 @@ require_once DOL_DOCUMENT_ROOT .'/core/db/Database.interface.php';
|
|||||||
*/
|
*/
|
||||||
abstract class DoliDB implements Database
|
abstract class DoliDB implements Database
|
||||||
{
|
{
|
||||||
/** @var resource Database handler */
|
/** @var bool|resource Database handler */
|
||||||
public $db;
|
public $db;
|
||||||
/** @var string Database type */
|
/** @var string Database type */
|
||||||
public $type;
|
public $type;
|
||||||
|
|||||||
@ -40,7 +40,7 @@ class DoliDBMysqli extends DoliDB
|
|||||||
const LABEL='MySQL or MariaDB';
|
const LABEL='MySQL or MariaDB';
|
||||||
//! Version min database
|
//! Version min database
|
||||||
const VERSIONMIN='5.0.3';
|
const VERSIONMIN='5.0.3';
|
||||||
/** @var mysqli_result Resultset of last query */
|
/** @var bool|mysqli_result Resultset of last query */
|
||||||
private $_results;
|
private $_results;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -187,12 +187,12 @@ class DoliDBMysqli extends DoliDB
|
|||||||
/**
|
/**
|
||||||
* Connect to server
|
* Connect to server
|
||||||
*
|
*
|
||||||
* @param string $host database server host
|
* @param string $host Database server host
|
||||||
* @param string $login login
|
* @param string $login Login
|
||||||
* @param string $passwd password
|
* @param string $passwd Password
|
||||||
* @param string $name name of database (not used for mysql, used for pgsql)
|
* @param string $name Name of database (not used for mysql, used for pgsql)
|
||||||
* @param integer $port Port of database server
|
* @param integer $port Port of database server
|
||||||
* @return mysqli Database access object
|
* @return mysqli Database access object
|
||||||
* @see close()
|
* @see close()
|
||||||
*/
|
*/
|
||||||
public function connect($host, $login, $passwd, $name, $port = 0)
|
public function connect($host, $login, $passwd, $name, $port = 0)
|
||||||
|
|||||||
@ -401,7 +401,7 @@ class DoliDBPgsql extends DoliDB
|
|||||||
* @param string $passwd Password
|
* @param string $passwd Password
|
||||||
* @param string $name Name of database (not used for mysql, used for pgsql)
|
* @param string $name Name of database (not used for mysql, used for pgsql)
|
||||||
* @param integer $port Port of database server
|
* @param integer $port Port of database server
|
||||||
* @return false|resource Database access handler
|
* @return bool|resource Database access handler
|
||||||
* @see close()
|
* @see close()
|
||||||
*/
|
*/
|
||||||
public function connect($host, $login, $passwd, $name, $port = 0)
|
public function connect($host, $login, $passwd, $name, $port = 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user