zoukankan      html  css  js  c++  java
  • file

    通过复制文件从真实的文件区域初始化一个文件区域。如果还不存在,将创建一个草稿区。通常,通过调用file_get_submitted_draft_itemid('elementname'),您应该获得$draftitemid;

    如果$text传入时返回字符串,则返回重写的$text。否则无效。$options:文件规则数组;$text:一些需要嵌入链接的html内容被重写为指向草稿区

    file_prepare_draft_area(&$draftitemid, $contextid, $component, $filearea, $itemid, array $options=null, $text=null)

    //返回一个给定元素的草稿(draft)区域itemid。参数:formlib编辑器元素名,隐藏表单字段或存储该draft区域项目id等

    $draftitemid = file_get_submitted_draft_itemid('videos');

     

     

    $draftitemid 使用的草稿draft区域的id。正常情况下通过调用file_get_submitted_draft_itemid('elementname')获得 或者类似的.

    $contextid 个参数和接下来的两个标识要保存的文件区域.
    $filearea校正文件区域
    $itemid helps identifies the file area.
    $options area options (subdirs=>false, maxfiles=-1, maxbytes=0)
    $text some html content that needs to have embedded links rewritten to the @@PLUGINFILE@@ form for saving in the database.

    如果$text传入时返回字符串,则返回重写的$text。否则无效。
    将文件区域的文件保存到一个真正的文件区域(合并文件列表)。如果需要,可以在同一时间重写某些内容的url。

    file_save_draft_area_files($draftitemid, $contextid, $component, $filearea, $itemid, array $options=null, $text=null, $forcehttps=false)

  • 相关阅读:
    HDU4474 Yet Another Multiple Problem BFS搜索
    HDU4473 Exam 数学分析
    2013ACM多校联合(4)
    POJ1273 网络流...
    HDU4472 Count 递推
    POJ1149 PIGS 网络流
    UVA10881 Piotr's Ants 想法题
    javascript js string.Format()收集
    修改 设置 vs.net 网站 调试 设为 起始页
    【转】HTML5杂谈 概念与现行游戏 割绳子 宝石迷阵
  • 原文地址:https://www.cnblogs.com/lichihua/p/7782104.html
Copyright © 2011-2022 走看看