本文整理汇总了PHP中event::get方法的典型用法代码示例。如果您正苦于以下问题:PHP event::get方法的具体用法?PHP event::get怎么用?PHP event::get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类event
的用法示例。
在下文中一共展示了event::get方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: notify
/**
* Notification handler called when the request is being processed.
* @param event $event the event
**/
function notify($event)
{
if ($event->get('soa_an')) {
$entity = owa_coreAPI::entityFactory('ecoinsight.eco_core');
$entity->load($event->get('guid'));
if (!$entity->wasPersisted()) {
$ret = $this->createEntity($event, $entity);
$this->processOfflineClickEvent($event);
$this->updateVisitor($event);
if ($ret) {
return OWA_EHS_EVENT_HANDLED;
} else {
owa_coreAPI::debug('Event failed to persist.');
return OWA_EHS_EVENT_FAILED;
}
} else {
owa_coreAPI::debug('Event previously persisted.');
return OWA_EHS_EVENT_HANDLED;
}
} else {
owa_coreAPI::debug('No application name parameter.');
return OWA_EHS_EVENT_HANDLED;
}
}
示例2: event
<?php
if (in_array($cls_result->status, $glb_status_results)) {
?>
$('#select_event').hide();
<?php
}
?>
$('#res_result').trigger('keyup');
$('#result_edit_result').trigger('keyup');
});
</script>
<?php
// +++ get events
$cls_event = new event();
$events = $cls_event->get();
// --- get events
?>
<div name="select_event" id="select_event">
<form name="frm_select_event" id="frm_select_event" action="index.php" method="post">
<input type="hidden" name="frm_action" id="frm_action" value="select_event" />
<b><label for="xSerie"><?php
echo $lg['EVENT'];
?>
:</label></b>
<select name="xSerie" id="xSerie">
<?php
if (count($events) == 0) {
?>
<option value="">-- <?php
echo $lg['EVENTS_EMPTY'];