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)

  • 相关阅读:
    HTML 中的几种空格字符
    css第二天
    css第一天
    html第二天
    html 第一天
    javaScript
    数据类型扩展
    Hello world可能遇到的问题
    卸载安装jdk的步骤与问题
    windows常用快捷键和Dos命令
  • 原文地址:https://www.cnblogs.com/lichihua/p/7782104.html
Copyright © 2011-2022 走看看