forked from Dolibarr/dolibarr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into New-create-public-page-for-recruitement-c…
…andidature
- Loading branch information
Showing
435 changed files
with
4,685 additions
and
2,127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<?php | ||
/* Copyright (C) 2024 MDW <[email protected]> | ||
*/ | ||
|
||
namespace { | ||
/** | ||
* Use an OVH account to send SMS with Dolibarr | ||
*/ | ||
class OvhSms extends \CommonObject | ||
{ | ||
public $db; | ||
//!< To store db handler | ||
public $error; | ||
//!< To return error code (or message) | ||
public $errors = array(); | ||
//!< To return several error codes (or messages) | ||
public $element = 'ovhsms'; | ||
//!< Id that identify managed object | ||
public $id; | ||
public $account; | ||
public $socid; | ||
public $contact_id; | ||
public $member_id; | ||
public $fk_project; | ||
public $nostop; | ||
public $expe; | ||
public $dest; | ||
public $message; | ||
public $validity; | ||
public $class; | ||
public $deferred; | ||
public $priority; | ||
public $soap; | ||
// Old API | ||
public $conn; | ||
// New API | ||
public $endpoint; | ||
/** | ||
* Constructor | ||
* | ||
* @param DoliDB $db Database handler | ||
*/ | ||
public function __construct($db) | ||
{ | ||
} | ||
/** | ||
* Logout | ||
* | ||
* @return void | ||
*/ | ||
public function logout() | ||
{ | ||
} | ||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps,PEAR.NamingConventions.ValidFunctionName.PublicUnderscore | ||
/** | ||
* Send SMS | ||
* | ||
* @return int <=0 if error, >0 if OK | ||
*/ | ||
public function SmsSend() | ||
{ | ||
} | ||
/** | ||
* Show HTML select box to select account | ||
* | ||
* @return void | ||
*/ | ||
public function printListAccount() | ||
{ | ||
} | ||
/** | ||
* Return list of SMSAccounts | ||
* | ||
* @return array | ||
*/ | ||
public function getSmsListAccount() | ||
{ | ||
} | ||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps,PEAR.NamingConventions.ValidFunctionName.PublicUnderscore | ||
/** | ||
* Return Credit | ||
* | ||
* @return array | ||
*/ | ||
public function CreditLeft() | ||
{ | ||
} | ||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps,PEAR.NamingConventions.ValidFunctionName.PublicUnderscore | ||
/** | ||
* Return History | ||
* | ||
* @return array | ||
*/ | ||
public function SmsHistory() | ||
{ | ||
} | ||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps,PEAR.NamingConventions.ValidFunctionName.PublicUnderscore | ||
/** | ||
* Return list of possible SMS senders | ||
* | ||
* @return array|int <0 if KO, array with list of available senders if OK | ||
*/ | ||
public function SmsSenderList() | ||
{ | ||
} | ||
/** | ||
* Call soapDebug method to output traces | ||
* | ||
* @return void | ||
*/ | ||
public function soapDebug() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.