setMessages('faq_ajout_theme','faq_modif_theme','faq_del_theme','faq_add_theme','faq_no_theme_available','faq_used_theme'); $this->setActions('admin.php?categ=faq&sub=theme','admin.php?categ=faq&sub=theme'); } public function hasElements(){ $q = "select count(1) from faq_questions where faq_question_num_theme = '".$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_themes"; $r = pmb_mysql_query($q); return pmb_mysql_result($r, 0, 0); } }?>