/**
  * フォルダ公開範囲更新
  *
  * @param  $target_folder_id
  * @param  $new_open_level_code
  * @param  $new_trusted_community_row_array
  * @return $ret 更新結果 (true/false)
  */
 static function update_folder_open_level_code($target_folder_id, $new_open_level_code, $new_trusted_community_row_array)
 {
     $row = array();
     /* 更新データセット */
     $row['open_level_code'] = $new_open_level_code;
     /* フォルダ情報更新 */
     $ret = ACSFolderModel::update_folder($target_folder_id, $row);
     if (!$ret) {
         return $ret;
     }
     /* 閲覧許可コミュニティ更新 */
     if ($new_trusted_community_row_array) {
         // 更新する閲覧許可コミュニティIDを取得
         $trusted_community_id_array = array();
         foreach ($new_trusted_community_row_array as $new_trusted_community_row) {
             array_push($trusted_community_id_array, $new_trusted_community_row['community_id']);
         }
     }
     $ret = ACSFolderModel::update_folder_trusted_community($target_folder_id, $trusted_community_id_array);
     if (!$ret) {
         return $ret;
     }
     return $ret;
 }