public static function PorQ($id) { $QNA = new QNA(); $post = new self(); if (is_object($QNA->get_question($id))) { return "q"; } elseif (is_array($post->get_post($id, true))) { return "p"; } elseif (is_array(Comment::getComment($id))) { return "c"; } else { return false; } }