Ejemplo n.º 1
0
 public static function getAddonsFromBoardID($id, $offset, $limit)
 {
     if (isset($limit)) {
         return AddonManager::getFromBoardID($id, $offset, $limit);
     } else {
         return AddonManager::getFromBoardID($id);
     }
 }
Ejemplo n.º 2
0
        }
    }
}
?>
	</div>
	<table class="boardtable">
	<tbody>
		<tr class="boardheader">
			<td>Name</td>
			<td>Author(s)</td>
			<td>Rating</td>
			<td>Downloads</td>
		</tr>
<?php 
//$addons = $boardObject->getAddons(($page-1)*10, 10);
$addonIDs = AddonManager::getFromBoardID($boardObject->getID(), ($page - 1) * 10, 10);
//$addons = BoardManager::getAddonsFromBoardID($boardObject->getID(), ($page-1)*10, 10);
foreach ($addonIDs as $aid) {
    $addon = AddonManager::getFromID($aid);
    ?>
		<tr>
		<td style="width: 33%"><a href="addon.php?id=<?php 
    echo $addon->getID();
    ?>
"><?php 
    echo $addon->getName();
    ?>
</a></td>
		<td style="font-size: 11pt"><?php 
    $authors = $addon->getAuthorInfo();
    //This system should probably be rethought