Skip to content

Commit 2386fe4

Browse files
authored
put back generateAskResponseLink PHPDoc
Added a new method to generate API URL for ask responses.
1 parent 7864145 commit 2386fe4

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

core/class/cmd.class.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2684,7 +2684,16 @@ public function pushUrl($_value) {
26842684
log::add('cmd', 'error', __('Erreur push sur :', __FILE__) . ' ' . $url . ' commande : ' . $this->getHumanName() . ' => ' . log::exception($e));
26852685
}
26862686
}
2687-
2687+
2688+
/**
2689+
* Generate API URL for ask response
2690+
*
2691+
* @param string $_response Response value
2692+
* @param string $_plugin Plugin name
2693+
* @param string $_network Network type
2694+
* @return string Generated URL
2695+
* @throws Exception
2696+
*/
26882697
public function generateAskResponseLink($_response, $_plugin = 'core', $_network = 'external') {
26892698
if ($this->getCache('ask::token') == null || $this->getCache('ask::token') == '' || strlen($this->getCache('ask::token')) < 60) {
26902699
$this->setCache('ask::token', config::genKey());

0 commit comments

Comments
 (0)