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
파일: CDRFacade.php 프로젝트: marcelog/pagi
 /**
  * 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);
 }