本文整理汇总了PHP中EventLog::logItemCheckedOut方法的典型用法代码示例。如果您正苦于以下问题:PHP EventLog::logItemCheckedOut方法的具体用法?PHP EventLog::logItemCheckedOut怎么用?PHP EventLog::logItemCheckedOut使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EventLog
的用法示例。
在下文中一共展示了EventLog::logItemCheckedOut方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ini_set
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
include '../autoloader.php';
EventLog::logAddItem(1);
echo "<p> ading to log item 1 add at time: " . date('Y-m-d H:i:s', time());
EventLog::logRemoveItem(1);
echo "<p> ading to log item 1 remove at time: " . date('Y-m-d H:i:s', time());
EventLog::logItemCheckedOut(1, NULL);
echo "<p> ading to log item 1 checked out no loan at time: " . date('Y-m-d H:i:s', time());
EventLog::logItemCheckedIn(1, NULL);
echo "<p> ading to log item 1 checked in no loan at time: " . date('Y-m-d H:i:s', time());
EventLog::logItemCheckedOut(1, 1);
echo "<p> ading to log item 1 checked out loan 1 at time: " . date('Y-m-d H:i:s', time());
EventLog::logItemCheckedIn(1, 1);
echo "<p> ading to log item 1 checked in loan 1 at time: " . date('Y-m-d H:i:s', time());
EventLog::logUpdatedItem(1);
echo "<p> ading to log item 1 update at time: " . date('Y-m-d H:i:s', time());
EventLog::logItemUnavailable(1);
echo "<p> ading to log item 1 unavailable at time: " . date('Y-m-d H:i:s', time());
EventLog::logItemAvailable(1);
echo "<p> ading to log item 1 unavailable at time: " . date('Y-m-d H:i:s', time());
$testItem = Item::getItem(1);
$results = $testItem->getHistory();
var_dump($results);