setMessages('faq_ajout_type','faq_modif_type','faq_del_type','faq_add_type','faq_no_type_available','faq_used_type'); $this->setActions('admin.php?categ=faq&sub=type','admin.php?categ=faq&sub=type'); } public function hasElements(){ $q = "select count(1) from faq_questions where faq_question_num_type = '".$this->id_liste."' "; $r = pmb_mysql_query($q); return pmb_mysql_result($r, 0, 0); } public static function get_qty() { $q = "select count(1) from faq_types"; $r = pmb_mysql_query($q); return pmb_mysql_result($r, 0, 0); } }?>