public function get_comments($obj_option, $obj_id) { $comment = new self(); return $comment->get_list_cache(array('select' => '*', 'where' => sprintf('state=1 AND obj_option = \'%s\' AND obj_id = %s', $obj_option, $obj_id), 'order' => 'parent_id, id ASC')); }