當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Interfaces::log方法代碼示例

本文整理匯總了PHP中Interfaces::log方法的典型用法代碼示例。如果您正苦於以下問題:PHP Interfaces::log方法的具體用法?PHP Interfaces::log怎麽用?PHP Interfaces::log使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Interfaces的用法示例。


在下文中一共展示了Interfaces::log方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: unserialize

if ($interface->estCon($_GET['u']) && isset($_GET['dtyp'])) {
    $c = unserialize(base64_decode(file_get_contents($interface->card[0] . ":\\Global")));
    $b = $_GET['dtyp'];
    $c['desease'][$b][] = array(explode(',', $_GET['dnose']), strtotime($_GET['dt']));
    var_export($c);
    //file_put_contents ( $interface->card[0] . ":\\Global", base64_encode ( serialize( $c ) ) ) or print "failed";
    exit;
}
if (isset($_GET['delRec'])) {
    $c = unserialize(base64_decode(file_get_contents($interface->card[0] . ":\\Global")));
    print_r($c);
    $y = $c['desease'][2][$_GET['delRec']];
    unset($c['desease'][2][$_GET['delRec']]);
    $c['desease'][2] = array_values($c['desease'][2]);
    print_r($c);
    $interface->log(array("DEL RECEIPT", $y));
    file_put_contents($interface->card[0] . ":\\Global", base64_encode(serialize($c))) or print "failed";
    exit;
}
if (isset($_GET['delMeeting'])) {
    $c = unserialize(base64_decode(file_get_contents($interface->card[0] . ":\\Global")));
    print_r($c);
    $y = $c['cdates'][$_GET['delMeeting']];
    unset($c['cdates'][$_GET['delMeeting']]);
    $c['cdates'] = array_values($c['cdates']);
    print_r($c);
    $interface->log(array("DEL MEETING", $y));
    file_put_contents($interface->card[0] . ":\\Global", base64_encode(serialize($c))) or print "failed";
    exit;
}
if (isset($_GET['delDiagnose'])) {
開發者ID:KenanSulayman,項目名稱:Healthcard.Kernel,代碼行數:31,代碼來源:Controler.php


注:本文中的Interfaces::log方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。