setVariable() public method

Sets a variable. Uses agi command "SET VARIABLE".
public setVariable ( string $name, string $value ) : void
$name string Variable name.
$value string Variable value.
return void
示例#1
0
 /**
  * Access AGI client to set the variable.
  *
  * @param string $name  Variable name.
  * @param string $value Value.
  *
  * @return void
  */
 protected function setCallerIdVariable($name, $value)
 {
     $this->_client->setVariable('CALLERID(' . $name . ')', $value);
 }
示例#2
0
 /**
  * Access AGI client to set the variable.
  *
  * @param string $name  Variable name.
  * @param string $value Value.
  *
  * @return void
  */
 protected function setCDRVariable($name, $value)
 {
     $this->client->setVariable('CDR(' . $name . ')', $value);
 }