main/work/work.lib.php 1 location
|
@@ 1713-1717 (lines=5) @@
|
| 1710 |
|
$direction = in_array(strtolower($direction), array('desc', 'asc')) ? $direction : 'desc'; |
| 1711 |
|
$column = Database::escape_string($column); |
| 1712 |
|
|
| 1713 |
|
if ($getCount) { |
| 1714 |
|
$result = Database::query($sql); |
| 1715 |
|
$result = Database::fetch_array($result); |
| 1716 |
|
return $result['count']; |
| 1717 |
|
} |
| 1718 |
|
|
| 1719 |
|
$sql .= " ORDER BY $column $direction"; |
| 1720 |
|
$sql .= " LIMIT $start, $limit"; |
main/inc/lib/usermanager.lib.php 1 location
|
@@ 4413-4417 (lines=5) @@
|
| 4410 |
|
if ($getSql) { |
| 4411 |
|
return $sql; |
| 4412 |
|
} |
| 4413 |
|
if ($getCount) { |
| 4414 |
|
$result = Database::query($sql); |
| 4415 |
|
$row = Database::fetch_array($result); |
| 4416 |
|
return $row['count']; |
| 4417 |
|
} |
| 4418 |
|
|
| 4419 |
|
$orderBy = null; |
| 4420 |
|
if ($getOnlyUserId == false) { |
main/inc/lib/course.lib.php 1 location
|
@@ 6204-6208 (lines=5) @@
|
| 6201 |
|
$sql .= $limitCondition; |
| 6202 |
|
} |
| 6203 |
|
|
| 6204 |
|
if ($getCount) { |
| 6205 |
|
$result = Database::query($sql); |
| 6206 |
|
$row = Database::fetch_array($result); |
| 6207 |
|
return $row['total']; |
| 6208 |
|
} |
| 6209 |
|
$result = Database::query($sql); |
| 6210 |
|
|
| 6211 |
|
$html = null; |
main/inc/lib/sessionmanager.lib.php 1 location
|
@@ 3509-3513 (lines=5) @@
|
| 3506 |
|
src.session_id IN ($sessionsSQL) |
| 3507 |
|
$keywordCondition |
| 3508 |
|
"; |
| 3509 |
|
if ($getCount) { |
| 3510 |
|
$result = Database::query($sql); |
| 3511 |
|
$row = Database::fetch_array($result,'ASSOC'); |
| 3512 |
|
return $row['count']; |
| 3513 |
|
} |
| 3514 |
|
|
| 3515 |
|
if (isset($from) && isset($limit)) { |
| 3516 |
|
$from = intval($from); |