コード例 #1
0
ファイル: api.php プロジェクト: uzura8/flockbird
 private function check_id_and_get_profile($profile_id)
 {
     if (!$profile_id || !($profile = \Model_Profile::check_authority($profile_id))) {
         throw new \HttpNotFoundException();
     }
     if (!in_array($profile->form_type, \Site_Profile::get_form_types_having_profile_options())) {
         throw new \HttpInvalidInputException();
     }
     return $profile;
 }