|
|
|
@ -496,7 +496,7 @@ class bbb |
|
|
|
), |
|
|
|
), |
|
|
|
api_get_self().'?'. |
|
|
|
api_get_self().'?'. |
|
|
|
api_get_cidreq(). |
|
|
|
api_get_cidreq(). |
|
|
|
'&action=delete_record&id='.$record['recordId'] |
|
|
|
'&action=delete_record&id='.$meetingDB['id'] |
|
|
|
); |
|
|
|
); |
|
|
|
if ($meetingDB['visibility'] == 0) { |
|
|
|
if ($meetingDB['visibility'] == 0) { |
|
|
|
$actionLinks .= Display::url( |
|
|
|
$actionLinks .= Display::url( |
|
|
|
@ -728,10 +728,17 @@ class bbb |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function deleteRecord($id) |
|
|
|
public function deleteRecord($id) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (empty($id) or $id != intval($id)) { |
|
|
|
if (empty($id)) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
$meetingData = Database::select('*', $this->table, array('where' => array('id = ?' => array($id))), 'first'); |
|
|
|
|
|
|
|
|
|
|
|
$meetingData = Database::select( |
|
|
|
|
|
|
|
'*', |
|
|
|
|
|
|
|
$this->table, |
|
|
|
|
|
|
|
array('where' => array('id = ?' => array($id))), |
|
|
|
|
|
|
|
'first' |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$recordingParams = array( |
|
|
|
$recordingParams = array( |
|
|
|
/* |
|
|
|
/* |
|
|
|
* NOTE: Set the recordId below to a valid id after you have |
|
|
|
* NOTE: Set the recordId below to a valid id after you have |
|
|
|
@ -743,7 +750,17 @@ class bbb |
|
|
|
// REQUIRED - We have to know which recording: |
|
|
|
// REQUIRED - We have to know which recording: |
|
|
|
'recordId' => $meetingData['remote_id'], |
|
|
|
'recordId' => $meetingData['remote_id'], |
|
|
|
); |
|
|
|
); |
|
|
|
return $this->api->deleteRecordingsWithXmlResponseArray($recordingParams); |
|
|
|
|
|
|
|
|
|
|
|
$result = $this->api->deleteRecordingsWithXmlResponseArray($recordingParams); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($result) && isset($result['deleted']) && $result['deleted'] == 'true') { |
|
|
|
|
|
|
|
Database::delete( |
|
|
|
|
|
|
|
$this->table, |
|
|
|
|
|
|
|
array('id = ?' => array($id)) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|