1
0

Added a URL for displaying the number of items in an album (excluding sub-albums).

This commit is contained in:
rWatcher 2009-08-16 15:26:02 -04:00
parent d5906c9057
commit af1e856d9e

View File

@ -18,6 +18,16 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class itemchecksum_Controller extends Controller {
public function albumcount($album_id) {
$item = ORM::factory("item")
->viewable()
->where("parent_id", $album_id)
->where("type !=", "album")
->find_all();
print count($item);
}
public function md5($album_id, $file_name) {
$item = ORM::factory("item")
->where("parent_id", $album_id)