class/Utility.php 1 location
|
@@ 1099-1112 (lines=14) @@
|
| 1096 |
|
* @param int $start |
| 1097 |
|
* @return array |
| 1098 |
|
*/ |
| 1099 |
|
public static function getAuthors($limit = 0, $start = 0) |
| 1100 |
|
{ |
| 1101 |
|
global $xoopsDB; |
| 1102 |
|
|
| 1103 |
|
$ret = []; |
| 1104 |
|
$sql = 'SELECT DISTINCT(uid) AS uid FROM ' . $xoopsDB->prefix('lxentries') . ' WHERE offline = 0 '; |
| 1105 |
|
$sql .= ' ORDER BY uid'; |
| 1106 |
|
$result = $xoopsDB->query($sql); |
| 1107 |
|
while ($myrow = $xoopsDB->fetchArray($result)) { |
| 1108 |
|
$ret[] = $myrow['uid']; |
| 1109 |
|
} |
| 1110 |
|
|
| 1111 |
|
return $ret; |
| 1112 |
|
} |
| 1113 |
|
|
| 1114 |
|
// link to userprofile |
| 1115 |
|
/** |
include/functions.php 1 location
|
@@ 785-797 (lines=13) @@
|
| 782 |
|
} |
| 783 |
|
|
| 784 |
|
// Returns the author's IDs for authorslist |
| 785 |
|
function lx_getAuthors($limit=0, $start=0) { |
| 786 |
|
global $xoopsDB ; |
| 787 |
|
|
| 788 |
|
$ret = []; |
| 789 |
|
$sql = 'SELECT distinct(uid) as uid FROM '.$xoopsDB->prefix('lxentries').' WHERE offline = 0 '; |
| 790 |
|
$sql .= " ORDER BY uid"; |
| 791 |
|
$result = $xoopsDB->query($sql); |
| 792 |
|
while ( $myrow = $xoopsDB->fetchArray($result) ) { |
| 793 |
|
$ret[] = $myrow['uid']; |
| 794 |
|
} |
| 795 |
|
|
| 796 |
|
return $ret; |
| 797 |
|
} |
| 798 |
|
|
| 799 |
|
// link to userprofile |
| 800 |
|
function lx_getLinkedProfileFromId($userid) { |