/** * ajax call rendering the image cropping area */ function mic_ajax_editor_window() { include_once dirname(__FILE__) . '/lib/ManualImageCropEditorWindow.php'; $ManualImageCropEditorWindow = ManualImageCropEditorWindow::getInstance(); $ManualImageCropEditorWindow->renderWindow(); exit; }
/** * Returns the instance of the class [Singleton] * @return ManualImageCropEditorWindow */ public static function getInstance() { if (self::$instance === null) { self::$instance = new ManualImageCropEditorWindow(); } return self::$instance; }
/** * ajax call rendering the image cropping area */ function mic_ajax_editor_window() { $ManualImageCropEditorWindow = ManualImageCropEditorWindow::getInstance(); $ManualImageCropEditorWindow->renderWindow(); exit; }