/** * prepare the data for view or model to get it updated * * @return \stdClass */ public static function settingData() { if (isset($_POST['settingSubmitted'])) { ACrop::cropOperation(); ADb::update(ACrop::shouldFetchData()); return AFormatter::renderForDataBinding(Applum::find(1)); } else { return AFormatter::renderForDataBinding(Applum::find(1)); } }