My Php class codes.