Added a URL for displaying the number of items in an album (excluding sub-albums).
This commit is contained in:
parent
d5906c9057
commit
af1e856d9e
|
@ -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)
|
||||
|
|
Reference in New Issue
Block a user