Class org_geoprisma_proxy_file_FileTree

Description

Class to read the disc and build a JSON array from the files.

This is based on documentation found at: http://aariadne.com/filetree/

  • author: Julien-Samuel Lacroix

Located in /org/geoprisma/proxy/file/FileTree.php (line 27)


	
			
Variable Summary
Method Summary
void __construct ([string $pstrRootPath = ""])
string createDirectory (string $pstrPath)
string download (string $pstrFilePath)
string get (string $pstrFilePath, [array $pobjArrayFileList = array()], [array $pobjArrayResources = array()])
string getFileJSON (string $pstrPath, string $pstrFile, array $pobjArrayResources)
array getFileList (string $pstrFilePath)
void getFileUploadErrorMessage ( $piErrorCode)
array getUploadedItem ()
string upload (string $pstrBasePath)
Variables
mixed $m_strRootPath = '' (line 29)
Methods
Constructor __construct (line 38)

Build a FileTree

  • access: public
void __construct ([string $pstrRootPath = ""])
  • string $pstrRootPath: based path of the listing
createDirectory (line 296)

Create a new directory

  • access: public
string createDirectory (string $pstrPath)
  • string $pstrPath: The path of the directory to create
download (line 91)

Read the content of a file path and returns a JSON object of it

  • return: JSON string
  • access: public
string download (string $pstrFilePath)
  • string $pstrFilePath: directory to read
get (line 55)

Read the content of a file path and returns a JSON object of it

  • return: JSON
  • access: public
string get (string $pstrFilePath, [array $pobjArrayFileList = array()], [array $pobjArrayResources = array()])
  • string $pstrFilePath: Directory to read
  • array $pobjArrayFileList: Array of files
  • array $pobjArrayResources: Array of resources
getFileJSON (line 118)

Get file JSON.

  • return: JSON
  • access: public
string getFileJSON (string $pstrPath, string $pstrFile, array $pobjArrayResources)
  • string $pstrPath: Path of the file
  • string $pstrFile: Name of the file
  • array $pobjArrayResources: Array of resources
getFileList (line 156)

Get file list.

  • access: public
array getFileList (string $pstrFilePath)
  • string $pstrFilePath: Path of the file
getFileUploadErrorMessage (line 315)
  • access: public
void getFileUploadErrorMessage ( $piErrorCode)
  • $piErrorCode
getUploadedItem (line 216)

Returns current uploaded item

  • access: public
array getUploadedItem ()
upload (line 228)

Upload a file using current uploaded item.

  • access: public
string upload (string $pstrBasePath)
  • string $pstrBasePath: The bae path of the file to upload.

Documentation generated on Thu, 19 Jan 2012 00:08:33 +0400 by phpDocumentor 1.4.1