File_Bittorrent
[ class tree: File_Bittorrent ] [ index: File_Bittorrent ] [ all elements ]

Class: File_Bittorrent_Decode

Source Location: /File_Bittorrent-0.1.2/File/Bittorrent/Decode.php

Class Overview


Decode .torrent files


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 61]
Decode .torrent files


[ Top ]


Class Variables

$comment =  ''

[line 76]

  • Var: Comment

Type:   string


[ Top ]

$created_by =  ''

[line 96]

  • Var: Signature of the software which created the Torrent

Type:   string


[ Top ]

$date =  0

[line 81]

  • Var: Creation date as unix timestamp

Type:   int


[ Top ]

$filename =  ''

[line 71]

  • Var: Filename of the torrent

Type:   string


[ Top ]

$files = array()

[line 86]

  • Var: Files in the Torrent

Type:   array


[ Top ]

$name =  ''

[line 66]

  • Var: Name of the Torrent

Type:   string


[ Top ]

$size =  0

[line 91]

  • Var: Size of of the full Torrent (after download)

Type:   int


[ Top ]



Method Detail

decode   [line 116]

mixed decode( string $str)

Decode a Bencoded string

Parameters:

string   $str   — 

[ Top ]

decodeFile   [line 129]

mixed decodeFile( string $file)

Decode .torrent file and accumulate information
  • Return: Returns an arrayon success or false on error

Parameters:

string   $file   —  Filename

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:53:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.