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