⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 attachments.xml

📁 实现一个网络购物
💻 XML
字号:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE builder PUBLIC "-//MMBase//DTD builder config 1.1//EN" "http://www.mmbase.org/dtd/builder_1_1.dtd">
<builder extends="object" maintainer="mmbase.org" name="attachments" version="0">
  <!-- Builder configuration for attachments -->
  <!-- Status of the builder: active or inactive -->
  <status>active</status>
  <!-- Classname of the builder.This is a optional tag, it names the classfile to use for this builderProviding an alternate buidler class allows you to add or change support routines. -->
  <classfile>Attachments</classfile>
  <!-- The default maximum age of objects in a searchused by some MMBase editors to limit the results of a search -->
  <searchage>31</searchage>
  <!-- Names defines the different names used in user visible partsSingular names are used when talking about one object (Url,Person) and plurar when talking about multiple objects (Urls, people).Names can be provided in various languages. -->
  <names>
    <!-- singular names per language as defined by ISO 639 -->
    <singular xml:lang="nl">Bijlage</singular>
    <singular xml:lang="eo">Aldono</singular>
    <singular xml:lang="en">Attachment</singular>
    <!-- plural names per language as defined by ISO 639 -->
    <plural xml:lang="nl">Bijlagen</plural>
    <plural xml:lang="eo">Aldonoj</plural>
    <plural xml:lang="en">Attachments</plural>
  </names>
  <!-- Descriptions are ment to provide some additional clarification to an object.They are useful for GUI editors to provide helptexts.Descriptions can be provided in various languages. -->
  <descriptions>
    <description xml:lang="nl">Bijlage, zoals een PDF bestand</description>
    <description xml:lang="en">Attachment, such as a PDF file</description>
  </descriptions>
  <!-- decsription per language as defined by ISO 639 -->
  <!-- You can define properties to be used by the classfile.Properties are entered using name/value pairs.The actual properties available differ by class. -->
  <properties/>
  <!-- defines the different fields in this objectDepending on the database, the order of the fields may be important.Once defined, it is a good practice to keep the same order.This counts especially when you convert buidler configurations using builder inheritance. -->
  <fieldlist>
    <!-- field definition for field 4 : title -->
    <field>
      <!-- field descriptions (help texts) -->
      <descriptions>
        <description xml:lang="nl">Titel van de bijlage</description>
        <description xml:lang="en">Title of the attachment</description>
      </descriptions>
      <!-- gui related -->
      <gui>
        <guiname xml:lang="nl">Titel</guiname>
        <guiname xml:lang="eo">Titolo</guiname>
        <guiname xml:lang="en">Title</guiname>
        <guitype>string</guitype>
      </gui>
      <!-- editor related -->
      <editor>
        <positions>
          <!-- position in the input area of the editor -->
          <input>1</input>
          <!-- position in the list area of the editor -->
          <list>1</list>
          <!-- position in the search area of the editor -->
          <search>1</search>
        </positions>
      </editor>
      <!-- database related -->
      <db>
        <!-- name of the field in the database -->
        <name>title</name>
        <!-- MMBase datatype and demands on it -->
        <type key="false" notnull="false" size="32" state="persistent">STRING</type>
      </db>
    </field>
    <!-- field definition for field 5 : description -->
    <field>
      <!-- field descriptions (help texts) -->
      <descriptions>
        <description xml:lang="nl">Omschrijving van de bijlage</description>
        <description xml:lang="en">Description of the attachment</description>
      </descriptions>
      <!-- gui related -->
      <gui>
        <guiname xml:lang="nl">Omschrijving</guiname>
        <guiname xml:lang="eo">Priskribo</guiname>
        <guiname xml:lang="en">Description</guiname>
        <guitype>field</guitype>
      </gui>
      <!-- editor related -->
      <editor>
        <positions>
          <!-- position in the input area of the editor -->
          <input>2</input>
          <!-- position in the list area of the editor -->
          <list>2</list>
          <!-- position in the search area of the editor -->
          <search>2</search>
        </positions>
      </editor>
      <!-- database related -->
      <db>
        <!-- name of the field in the database -->
        <name>description</name>
        <!-- MMBase datatype and demands on it -->
        <type key="false" notnull="false" size="64000" state="persistent">STRING</type>
      </db>
    </field>
    <!-- field definition for field 6 : mimetype -->
    <field>
      <!-- field descriptions (help texts) -->
      <descriptions>
        <description xml:lang="nl">Mimetype van de bijlage, standaard: application/octet-stream</description>
        <description xml:lang="en">Mimetype of the attachment, default: application/octet-stream</description>
      </descriptions>
      <!-- gui related -->
      <gui>
        <guiname xml:lang="nl">MimeType</guiname>
        <guiname xml:lang="en">MimeType</guiname>
        <guitype>string</guitype>
      </gui>
      <!-- editor related -->
      <editor>
        <positions>
          <!-- position in the input area of the editor -->
          <input>-1</input>
          <!-- position in the list area of the editor -->
          <list>3</list>
          <!-- position in the search area of the editor -->
          <search>3</search>
        </positions>
      </editor>
      <!-- database related -->
      <db>
        <!-- name of the field in the database -->
        <name>mimetype</name>
        <!-- MMBase datatype and demands on it -->
        <type key="false" notnull="true" size="32" state="persistent">STRING</type>
      </db>
    </field>
    <!-- field definition for field 7 : filename -->
    <field>
      <!-- field descriptions (help texts) -->
      <descriptions>
        <description xml:lang="nl">Oorspronkelijke bestandsnaam als de bijlage een ge-uplaod bestand betreft</description>
        <description xml:lang="en">Original filename of attachment if it was an uploaded file</description>
      </descriptions>
      <!-- gui related -->
      <gui>
        <guiname xml:lang="nl">Bestandsnaam</guiname>
        <guiname xml:lang="eo">Dosiernomo</guiname>
        <guiname xml:lang="en">Filename</guiname>
        <guitype>string</guitype>
      </gui>
      <!-- editor related -->
      <editor>
        <positions>
          <!-- position in the input area of the editor -->
          <input>-1</input>
          <!-- position in the list area of the editor -->
          <list>-1</list>
          <!-- position in the search area of the editor -->
          <search>4</search>
        </positions>
      </editor>
      <!-- database related -->
      <db>
        <!-- name of the field in the database -->
        <name>filename</name>
        <!-- MMBase datatype and demands on it -->
        <type key="false" notnull="true" size="128" state="persistent">STRING</type>
      </db>
    </field>
    <!-- field definition for field 8 : size -->
    <field>
      <!-- field descriptions (help texts) -->
      <descriptions>
        <description xml:lang="nl">Grootte van de bijlage in bytes</description>
        <description xml:lang="en">Size of the attachment in bytes</description>
      </descriptions>
      <!-- gui related -->
      <gui>
        <guiname xml:lang="nl">Grootte</guiname>
        <guiname xml:lang="eo">Grando</guiname>
        <guiname xml:lang="en">Size</guiname>
        <guitype>integer</guitype>
      </gui>
      <!-- editor related -->
      <editor>
        <positions>
          <!-- position in the input area of the editor -->
          <input>-1</input>
          <!-- position in the list area of the editor -->
          <list>4</list>
          <!-- position in the search area of the editor -->
          <search>-1</search>
        </positions>
      </editor>
      <!-- database related -->
      <db>
        <!-- name of the field in the database -->
        <name>size</name>
        <!-- MMBase datatype and demands on it -->
        <type key="false" notnull="true" state="persistent">INTEGER</type>
      </db>
    </field>
    <!-- field definition for field 9 : handle -->
    <field>
      <!-- field descriptions (help texts) -->
      <descriptions>
        <description xml:lang="nl">De bijlage, up te loaden als een bestand</description>
        <description xml:lang="en">The attachment (which you can upload as a file)</description>
      </descriptions>
      <!-- gui related -->
      <gui>
        <guiname xml:lang="nl">Bestand</guiname>
        <guiname xml:lang="eo">Dosiero</guiname>
        <guiname xml:lang="en">File</guiname>
        <guitype>newfile</guitype>
      </gui>
      <!-- editor related -->
      <editor>
        <positions>
          <!-- position in the input area of the editor -->
          <input>3</input>
          <!-- position in the list area of the editor -->
          <list>-1</list>
          <!-- position in the search area of the editor -->
          <search>-1</search>
        </positions>
      </editor>
      <!-- database related -->
      <db>
        <!-- name of the field in the database -->
        <name>handle</name>
        <!-- MMBase datatype and demands on it -->
        <type key="false" notnull="true" size="16777215" state="persistent">BYTE</type>
      </db>
    </field>
  </fieldlist>
</builder>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -