Make function name consist with life cycle of php