37 lines
1010 B
PHP
37 lines
1010 B
PHP
<?php
|
|
|
|
/*+*******************************************************************************
|
|
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
|
* ("License"); You may not use this file except in compliance with the License
|
|
* The Original Code is: vtiger CRM Open Source
|
|
* The Initial Developer of the Original Code is vtiger.
|
|
* Portions created by vtiger are Copyright (C) vtiger.
|
|
* All Rights Reserved.
|
|
*
|
|
*********************************************************************************/
|
|
|
|
/**
|
|
* @author Mohammed Bechlaghem<mohamed.bechlaghem@sophal.dz>
|
|
*/
|
|
|
|
/**
|
|
*
|
|
* @param WebserviceId $id
|
|
* @param String $query
|
|
*
|
|
*/
|
|
function vtws_getEvents($query) {
|
|
|
|
global $adb;
|
|
$result = array();
|
|
$results = array();
|
|
$db = PearDatabase::getInstance();
|
|
$db->dieOnError = true;
|
|
$result = $adb->pquery($query,array());
|
|
while ($recordinfo = $adb->fetch_array($result)) {
|
|
$results[] = $recordinfo;
|
|
}
|
|
VTWS_PreserveGlobal::flush();
|
|
return $results;
|
|
}
|
|
?>
|