diff --git a/htdocs/core/class/CSMSFile.class.php b/htdocs/core/class/CSMSFile.class.php index 7d0bf5fad0c..5620e641df0 100644 --- a/htdocs/core/class/CSMSFile.class.php +++ b/htdocs/core/class/CSMSFile.class.php @@ -54,7 +54,6 @@ class CSMSFile * @param int $deferred Deferred or not * @param int $priority Priority * @param int $class Class - * @return int */ function __construct($to,$from,$msg,$deliveryreceipt=0,$deferred=0,$priority=3,$class=1) { diff --git a/htdocs/core/class/antivir.class.php b/htdocs/core/class/antivir.class.php index 68241cb4d62..d7f765fa510 100644 --- a/htdocs/core/class/antivir.class.php +++ b/htdocs/core/class/antivir.class.php @@ -40,7 +40,6 @@ class AntiVir * Constructor * * @param DoliDB $db Database handler - * @return AntiVir */ function __construct($db) { diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index ac0899c286e..649fe89ac21 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -72,8 +72,6 @@ class Conf /** * Constructor - * - * @return Conf */ function __construct() { diff --git a/htdocs/core/class/dolgeoip.class.php b/htdocs/core/class/dolgeoip.class.php index 9844e6b74c9..7cddd4c16f5 100644 --- a/htdocs/core/class/dolgeoip.class.php +++ b/htdocs/core/class/dolgeoip.class.php @@ -40,7 +40,6 @@ class DolGeoIP * * @param string $type 'country' or 'city' * @param string $datfile Data file - * @return GeoIP */ function __construct($type,$datfile) { diff --git a/htdocs/core/class/dolprintipp.class.php b/htdocs/core/class/dolprintipp.class.php index 71ee2a1be37..b6e09547743 100644 --- a/htdocs/core/class/dolprintipp.class.php +++ b/htdocs/core/class/dolprintipp.class.php @@ -45,7 +45,6 @@ class dolprintIPP * @param string $userid userid * @param string $user user * @param string $password password - * @return printIPP */ function __construct($db,$host,$port,$userid,$user,$password) { @@ -90,7 +89,7 @@ class dolprintIPP global $conf,$db; include_once DOL_DOCUMENT_ROOT.'/includes/printipp/CupsPrintIPP.php'; - + $ipp = new CupsPrintIPP(); $ipp->setLog(DOL_DATA_ROOT.'/dolibarr_printipp.log','file',3); // logging very verbose $ipp->setHost($this->host); @@ -121,12 +120,12 @@ class dolprintIPP } } } - + // Set number of copy $ipp->setCopies($obj->copy); $ipp->setData(DOL_DATA_ROOT.'/'.$module.'/'.$file); $ipp->printJob(); - + return ''; } diff --git a/htdocs/core/class/google.class.php b/htdocs/core/class/google.class.php index 7f36c6f0d99..b0649f575fc 100644 --- a/htdocs/core/class/google.class.php +++ b/htdocs/core/class/google.class.php @@ -36,7 +36,6 @@ class GoogleAPI * * @param DoliDB $db Database handler * @param string $key Google key - * @return GoogleAPI */ function __construct($db,$key) { diff --git a/htdocs/core/class/mobiledetect.class.php b/htdocs/core/class/mobiledetect.class.php index 72d192a7614..297058698aa 100644 --- a/htdocs/core/class/mobiledetect.class.php +++ b/htdocs/core/class/mobiledetect.class.php @@ -637,6 +637,11 @@ class MobileDetect return null; } + /** + * getMobileHeaders + * + * @return string mobile Headers + */ public function getMobileHeaders() { return self::$mobileHeaders; diff --git a/htdocs/core/class/openid.class.php b/htdocs/core/class/openid.class.php index 5165dcb4994..a5e01998ecd 100644 --- a/htdocs/core/class/openid.class.php +++ b/htdocs/core/class/openid.class.php @@ -247,6 +247,12 @@ class SimpleOpenID } } + /** + * array2url + * + * @param array $arr An array + * @return boolean|string false if KO, string of url if OK + */ function array2url($arr) { // converts associated array to URL Query String if (!is_array($arr)){ @@ -259,6 +265,14 @@ class SimpleOpenID return $query; } + /** + * FSOCK_Request + * + * @param string $url URL + * @param string $method Method + * @param string $params Params + * @return boolean|unknown + */ function FSOCK_Request($url, $method="GET", $params = "") { $fp = fsockopen("ssl://www.myopenid.com", 443, $errno, $errstr, 3); // Connection timeout is 3 seconds @@ -283,6 +297,14 @@ class SimpleOpenID } } + /** + * CURL_Request + * + * @param string $url URL + * @param string $method Method + * @param string $params Params + * @return boolean|unknown + */ function CURL_Request($url, $method="GET", $params = "") { // Remember, SSL MUST BE SUPPORTED if (is_array($params)) $params = $this->array2url($params); @@ -305,6 +327,12 @@ class SimpleOpenID return $response; } + /** + * HTML2OpenIDServer + * + * @param string $content Content + * @return array Array of servers + */ function HTML2OpenIDServer($content) { $get = array(); diff --git a/htdocs/core/db/mssql.class.php b/htdocs/core/db/mssql.class.php index a8f9e9aff50..0f86f01693c 100644 --- a/htdocs/core/db/mssql.class.php +++ b/htdocs/core/db/mssql.class.php @@ -53,7 +53,6 @@ class DoliDBMssql extends DoliDB * @param string $pass Mot de passe * @param string $name Nom de la database * @param int $port Port of database server - * @return int 1 if OK, 0 if not */ function __construct($type, $host, $user, $pass, $name='', $port=0) { diff --git a/htdocs/core/db/mysql.class.php b/htdocs/core/db/mysql.class.php index dc0cbb1cb1b..bd3e77f37d5 100644 --- a/htdocs/core/db/mysql.class.php +++ b/htdocs/core/db/mysql.class.php @@ -50,7 +50,6 @@ class DoliDBMysql extends DoliDB * @param string $pass Mot de passe * @param string $name Nom de la database * @param int $port Port of database server - * @return int 1 if OK, 0 if not */ function __construct($type, $host, $user, $pass, $name='', $port=0) { diff --git a/htdocs/core/db/mysqli.class.php b/htdocs/core/db/mysqli.class.php index 9ec495f7ca5..cd692db677c 100644 --- a/htdocs/core/db/mysqli.class.php +++ b/htdocs/core/db/mysqli.class.php @@ -50,7 +50,6 @@ class DoliDBMysqli extends DoliDB * @param string $pass Mot de passe * @param string $name Nom de la database * @param int $port Port of database server - * @return int 1 if OK, 0 if not */ function __construct($type, $host, $user, $pass, $name='', $port=0) { @@ -357,7 +356,6 @@ class DoliDBMysqli extends DoliDB * @return int Nombre de lignes * @see num_rows */ - function affected_rows($resultset) { // If resultset not provided, we take the last used by connexion diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php index a7baf59783d..c1bc48c0aaf 100644 --- a/htdocs/core/db/pgsql.class.php +++ b/htdocs/core/db/pgsql.class.php @@ -60,7 +60,6 @@ class DoliDBPgsql extends DoliDB * @param string $pass Mot de passe * @param string $name Nom de la database * @param int $port Port of database server - * @return int 1 if OK, 0 if not */ function __construct($type, $host, $user, $pass, $name='', $port=0) { diff --git a/htdocs/core/db/sqlite.class.php b/htdocs/core/db/sqlite.class.php index 53ecb880dce..d19786bb815 100644 --- a/htdocs/core/db/sqlite.class.php +++ b/htdocs/core/db/sqlite.class.php @@ -50,7 +50,6 @@ class DoliDBSqlite extends DoliDB * @param string $pass Mot de passe * @param string $name Nom de la database * @param int $port Port of database server - * @return int 1 if OK, 0 if not */ function __construct($type, $host, $user, $pass, $name='', $port=0) {