public function getAlbums() { return AlbumData::getAllByChannelId($this->id); }
<?php $album = AlbumData::getById($_GET['id']); $images = $album->getImages(); ?> <div class='row'> <?php if ($album != null) { ?> <div class='span7'> <h2><?php echo $album->title; ?> </h2> <p><?php echo $album->description; ?> </p> <br> <?php if (count($images) > 0) { ?> <?php $count_images = count($images); $filas = $count_images / 4; $resto = $count_images % 4; if ($resto > 0) { $filas++; }