本文整理汇总了PHP中Interfaces::getInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP Interfaces::getInfo方法的具体用法?PHP Interfaces::getInfo怎么用?PHP Interfaces::getInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Interfaces
的用法示例。
在下文中一共展示了Interfaces::getInfo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Interfaces
define ( 'cp', count($x[1]) );
return @is_array( $this->card );
}
public function Interfaces () {
return $this->findCard();
}
public function invokeflush() {
return '<script type="text">true;</script>';
}
}
$interface = new Interfaces();
/* die( $interface->getInfo('auth','Z')); */
switch ( $interface->getInfo ('channel', $interface->master[0]) ) {
case 2: $interface->mode = 2; break;
case 3: $interface->mode = 3; break;
case 4: $interface->mode = 4; break;
case 5: $interface->mode = 5; break;
default: die ( "Beschädigtes Ärzte-Zertifikat." );
}
if ( isset( $_GET['indicateMode'] ) ) {
print "Sie sind zur Zeit angemeldet als ";
switch ( $interface->mode ) {
case 2:
die ( "<b>Arzt.</b>" );
case 3:
die ( "<b>Ambulanz.</b>" );
case 4:
示例2: unserialize
}
if (isset($_GET['delDiagnose'])) {
$c = unserialize(base64_decode(file_get_contents($interface->card[0] . ":\\Global")));
print_r($c);
$y = $c['desease'][1][$_GET['delDiagnose']];
unset($c['desease'][1][$_GET['delDiagnose']]);
$c['desease'] = array_values($c['desease'][1]);
print_r($c);
$interface->log(array("DEL DIAGNOSE", $y));
file_put_contents($interface->card[0] . ":\\Global", base64_encode(serialize($c))) or print "failed";
exit;
}
if (isset($_GET['putMeeting'])) {
$c = unserialize(base64_decode(file_get_contents($interface->card[0] . ":\\Global")));
//print_r($c);
$c['cdates'][] = $y = array_merge($interface->getInfo('identity', $interface->master[0]), array('at' => strtotime($_GET['dt'])));
$c['cdates'] = array_values($c['cdates']);
//print_r($c);
print "Gespeichert!";
$interface->log(array("PUT MEETING", $y));
file_put_contents($interface->card[0] . ":\\Global", base64_encode(serialize($c))) or print "failed";
exit;
}
if (isset($_GET['pTherapy'])) {
$c = unserialize(base64_decode(file_get_contents($interface->card[0] . ":\\Global")));
//print_r($c);
$c['desease'][3][] = $y = array_merge($interface->getInfo('identity', $interface->master[0]), array('at' => strtotime($_GET['dd']), 'desc' => $_GET['dn']));
$c['desease'][3] = array_values($c['desease'][3]);
//print_r($c);
print "Gespeichert!";
$interface->log(array("PUT THERAPY", $y));