/**
  * フォルダ挿入
  *
  * @param  $folder_row
  * @param  $trusted_community_id_array
  * @return true / false
  */
 static function insert_folder($folder_row, $trusted_community_id_array = '')
 {
     ACSLib::escape_sql_array($folder_row);
     ACSLib::get_sql_value_array($folder_row);
     $sql = "INSERT INTO folder";
     $sql .= " (folder_id, community_id, folder_name, comment, parent_folder_id, ";
     $sql .= "entry_user_community_id, entry_date, ";
     $sql .= "update_user_community_id, update_date, open_level_code)";
     $sql .= " VALUES (";
     $sql .= $folder_row['folder_id'] . ",";
     $sql .= $folder_row['community_id'] . ",";
     $sql .= $folder_row['folder_name'] . ",";
     $sql .= $folder_row['comment'] . ",";
     $sql .= $folder_row['parent_folder_id'] . ",";
     $sql .= $folder_row['entry_user_community_id'] . ",";
     $sql .= $folder_row['entry_date'] . ",";
     $sql .= $folder_row['update_user_community_id'] . ",";
     $sql .= $folder_row['update_date'] . ",";
     $sql .= $folder_row['open_level_code'];
     $sql .= ")";
     $ret = ACSDB::_do_query($sql);
     if (!$ret) {
         return $ret;
     }
     // フォルダ閲覧許可コミュニティ挿入
     if ($trusted_community_id_array) {
         $ret = ACSFolderModel::insert_folder_trusted_community($folder_row['folder_id'], $trusted_community_id_array);
         if (!$ret) {
             return $ret;
         }
     }
     return $ret;
 }