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)

  • 相关阅读:
    【C语言】C语言static和extern区别
    【C语言】C语言外部变量和内部变量
    【C语言】C语言局部变量和全局变量
    【C语言】C语言常量和变量
    【C语言】C语言数据类型
    【C语言】C语言标识符
    【C语言】C语言关键字
    【C语言】外部函数和内部函数
    【C语言】C语言函数
    Android 测试 Appium、Robotium、monkey等框架或者工具对比
  • 原文地址:https://www.cnblogs.com/lichihua/p/7782104.html
Copyright © 2011-2022 走看看