public static function getVoteCount($objPicture) { return clsDB::getCountStatic('vote', "`<<foreign><vote><picture>>`='" . $objPicture->get('id') . "'"); }
/** Same as getCountStatic, except the name is taken from the table */ public function getCount($where = '', $groupby = '') { return clsDB::getCountStatic($this->getName(), $where, $groupby); }