mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
add array manipulation to the wraper code
This commit is contained in:
+10
-2
@@ -76,8 +76,8 @@ class ESLevent {
|
||||
return $r;
|
||||
}
|
||||
|
||||
function getHeader($header_name) {
|
||||
return ESLevent_getHeader($this->_cPtr,$header_name);
|
||||
function getHeader($header_name,$idx=-1) {
|
||||
return ESLevent_getHeader($this->_cPtr,$header_name,$idx);
|
||||
}
|
||||
|
||||
function getBody() {
|
||||
@@ -96,6 +96,14 @@ class ESLevent {
|
||||
return ESLevent_addHeader($this->_cPtr,$header_name,$value);
|
||||
}
|
||||
|
||||
function pushHeader($header_name,$value) {
|
||||
return ESLevent_pushHeader($this->_cPtr,$header_name,$value);
|
||||
}
|
||||
|
||||
function unshiftHeader($header_name,$value) {
|
||||
return ESLevent_unshiftHeader($this->_cPtr,$header_name,$value);
|
||||
}
|
||||
|
||||
function delHeader($header_name) {
|
||||
return ESLevent_delHeader($this->_cPtr,$header_name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user