getFullVariable() public method

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.
return string
コード例 #1
0
ファイル: CallerIdFacade.php プロジェクト: d4rkstar/pagi
 /**
  * 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 . ')');
 }