Lambda-lib
[ class tree: Lambda-lib ] [ index: Lambda-lib ] [ all elements ]

Class: Download

Source Location: /libs/Download.php

Class Overview


ダウンロード class


Author(s):

  • rooth

Version:

  • 0.0.1

    PHP version 5

     usage:
      require_once '/path/to/Download.php';
      require_once '/path/to/Mime.php';
    
      // download and count
      $fpath = '/path/to/hoge.zip';
      $fname = 'hoge.zip';
      $dl = new Download($fpath, $fname);
      $dl->increment($counter_file);
      $dl->execute();
    
      // get count
      $counter_file = '/path/to/counter/hoge.txt';
      echo Download::getCount($counter_file);

Variables

Methods



Class Details

[line 31]
ダウンロード class



Tags:

author:  rooth
version:  

0.0.1

PHP version 5

 usage:
  require_once '/path/to/Download.php';
  require_once '/path/to/Mime.php';

  // download and count
  $fpath = '/path/to/hoge.zip';
  $fname = 'hoge.zip';
  $dl = new Download($fpath, $fname);
  $dl->increment($counter_file);
  $dl->execute();

  // get count
  $counter_file = '/path/to/counter/hoge.txt';
  echo Download::getCount($counter_file);



[ Top ]


Class Variables

$fname =

[line 34]



Tags:

access:  protected

Type:   mixed


[ Top ]

$fpath =

[line 33]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


static method getCount [line 78]

static void getCount( $counter_file)



Tags:

access:  public


Parameters:

   $counter_file  

[ Top ]

constructor __construct [line 36]

Download __construct( $fpath, [ $fname = ''])



Parameters:

   $fpath  
   $fname  

[ Top ]

method execute [line 66]

void execute( )



Tags:

access:  public


[ Top ]

method getExt [line 90]

void getExt( $fname)



Tags:

access:  protected


Parameters:

   $fname  

[ Top ]

method getFilename [line 85]

void getFilename( $fpath)



Tags:

access:  protected


Parameters:

   $fpath  

[ Top ]

method increment [line 42]

void increment( $counter_file)



Tags:

access:  public


Parameters:

   $counter_file  

[ Top ]


Documentation generated on Sat, 21 May 2011 18:34:05 +0900 by phpDocumentor 1.4.1