/** * */ public static function find_all_ajax() { $entity_data = ArtficatAjaxRequestProcessorUtils::do_before_ajax_find(); $custom_processor = $entity_data['entity_name'] . 'AjaxRequestProcessor'; if (class_exists($custom_processor) && method_exists($custom_processor, 'find_all_ajax')) { $search_results = call_user_func($custom_processor . '::find_all_ajax', $entity_data); } else { $search_results = EntityAPI::find_all($entity_data); } ArtficatAjaxRequestProcessorUtils::do_after_ajax_find($entity_data, $search_results); }