• 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)

  • 相关阅读:
    快速上手系列:JavaScript
    快速上手系列:CSS
    快速上手系列:HTML
    滑雪 记忆化搜索简单模型
    洪水
    选数
    斐波拉契数列
    CSS_01_css和html的结合1、2
    struts_24_基于XML校验的规则、特点
    struts_20_对Action中所有方法、某一个方法进行输入校验(基于XML配置方式实现输入校验)
  • 原文地址:https://www.cnblogs.com/lichihua/p/7782104.html
Copyright © 2020-2023  润新知