setVariable() публичный Метод

Sets a variable. Uses agi command "SET VARIABLE".
public setVariable ( string $name, string $value ) : void
$name string Variable name.
$value string Variable value.
Результат 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);
 }