本文整理匯總了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;