File: MongoGridFSFile.xml

package info (click to toggle)
phpdox 0.12.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 7,672 kB
  • sloc: xml: 80,724; php: 9,167; makefile: 13
file content (54 lines) | stat: -rw-r--r-- 2,424 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8" ?>
<class xmlns="http://xml.phpdox.net/src" full="MongoGridFSFile" namespace="" name="MongoGridFSFile">
  <member name="file" static="false" visibility="public">
    <default>null</default>
    <docblock>
      <var type="array"/>
    </docblock>
  </member>
  <member name="gridfs" static="false" visibility="protected">
    <default>null</default>
    <docblock>
      <var type="MongoGridFS"/>
    </docblock>
  </member>
  <constructor name="__construct" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Create a new GridFS file"/>
      <return type="void"/>
    </docblock>
    <parameter name="gridfs" optional="false" byreference="false" type="object" class="MongoGridFS"/>
    <parameter name="file" optional="false" byreference="false" type="object" class="array"/>
  </constructor>
  <method name="getBytes" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Returns this file's contents as a string of bytes"/>
      <return type="string"/>
    </docblock>
  </method>
  <method name="getFilename" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Returns this file's filename"/>
      <return type="string"/>
    </docblock>
  </method>
  <method name="getResource" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Returns a resource that can be used to read the stored file">This method returns a stream resource that can be used with all file functions in PHP that deal with reading files. The contents of the file are pulled out of MongoDB on the fly, so that the whole file does not have to be loaded into memory first.</description>
      <return type="resource"/>
    </docblock>
  </method>
  <method name="getSize" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Returns this file's size"/>
      <return type="int"/>
    </docblock>
  </method>
  <method name="write" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Writes this file to the filesystem"/>
      <return type="int"/>
    </docblock>
    <parameter name="filename" optional="true" byreference="false" type="string"/>
  </method>
</class>