getFullVariable() 공개 메소드

Returns a variable value. Uses agi command "GET FULL VARIABLE". False if variable is not set.
public getFullVariable ( string $name, string $channel = false ) : string
$name string Variable name.
$channel string Optional channel name.
리턴 string
예제 #1
0
 /**
  * Access AGI client to get the variables.
  *
  * @param string $name Variable name.
  *
  * @return string
  */
 protected function getCallerIdVariable($name)
 {
     return $this->_client->getFullVariable('CALLERID(' . $name . ')');
 }
예제 #2
0
파일: CDRFacade.php 프로젝트: marcelog/pagi
 /**
  * Access AGI client to get the variables.
  *
  * @param string $name Variable name.
  *
  * @return string
  */
 protected function getCDRVariable($name)
 {
     return $this->client->getFullVariable('CDR(' . $name . ')');
 }