* @version $Revision: 17580 $ */ class PopularAlbumView extends UpdatesAlbumView { function PopularAlbumView() { global $gallery; $this->_view = 'dynamicalbum.PopularAlbum'; $this->_title = $gallery->i18n('Most Viewed Items'); $this->_itemType = array($gallery->i18n('Most Viewed'), $gallery->i18n('most viewed')); $this->_viewDescription = $gallery->i18n('most viewed'); $this->_param = 'views'; } /** * Dynamic query for items * @param int $userId * @return array GalleryStatus a status code * array of item ids * @static */ function getChildIds($userId) { return parent::getChildIds($userId, 'views', 'viewCount', ORDER_DESCENDING, 'GalleryItemAttributesMap', 'itemId'); } } ?>