本文整理汇总了PHP中log::loadmany方法的典型用法代码示例。如果您正苦于以下问题:PHP log::loadmany方法的具体用法?PHP log::loadmany怎么用?PHP log::loadmany使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类log
的用法示例。
在下文中一共展示了log::loadmany方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: track_object
<?
include("../main_include.php");
if($_POST['log_id'] > 0 ) {
$log = new log;
$log->id = $_REQUEST['log_id'];
$log->loadmany();
}
function track_object(&$obj) {
$classname = get_class($obj);
if ($classname) {
echo "<table border=1 cellspacing=0 cellpadding=0>";
$class_vars = get_object_vars($obj);
foreach ($class_vars as $name => $value) {
echo "<tr><td>\$$name : </td><td>";
track_object($value);
echo "</td></tr>";
}
echo "</table>";
} else {
if (is_array($obj)) {
while (list($key, $val) = each($obj)) {
echo "[ $key ] = ";
track_object($val);
echo "<br>";
}
} else {
示例2: log
$s=$t;
}
if($w>$e){
$t=$w;
$w=$e;
$e=$t;
}
$logtransaction = new log();
$logtransaction->gpslat = "!# between $n and $s #!";
$logtransaction->gpslong = "!# between $w and $e #!";
switch($action){
case 'getcount':
$logtransaction->loadmany();
$arr->totlaRecords = $logtransaction->totalrecords;
break;
case 'mapviewcount':
if(is_numeric($_POST['page'])) $page = $_POST['page'];
else $page = 1;
if(is_numeric($_POST['limit'])) $limit =$_POST['limit'];
else $limit = 1000;
$logtransaction->id = "!# NOT IN ($ids) #!";
$logtransaction->loadmany(' order by id desc',$limit,$page);
$arr->id = $logtransaction->id;