public function getImageFacesData($image_id, $full = false)
{
$sql = 'SELECT face_id, face_name, image_id';
if ($full) {
$sql .= ', gallery_id, face_x1, face_y1, face_x2, face_y2';
}
$sql .= ' FROM ansel_faces WHERE image_id = ' . (int) $image_id . ' ORDER BY face_id DESC';
try {
return $GLOBALS['ansel_db']->selectAll($sql);
} catch (Horde_Db_Exception $e) {
throw new Ansel_Exception($e);
}
}