Abstract Class AKAbstractPostproc

Description

File post processor engines base class

  • abstract:

Located in /administrator/components/com_joomlaupdate/restore.php (line 1159)

AKAbstractObject
   |
   --AKAbstractPostproc
Direct descendents
Class Description
 class AKPostprocDirect Direct file writer
 class AKPostprocFTP FTP file writer
Variable Summary
 string $filename
 int $perms
 string $tempFilename
Method Summary
 void chmod ( $file,  $perms)
 void createDirRecursive (string $dirName, int $perms)
 void process ()
 string processFilename (string $filename, [int $perms = 0755])
 void rename ( $from,  $to)
 void rmdir ( $directory)
 void unlink ( $file)
Variables
string $filename = null (line 1162)
  • var: The current (real) file path we'll have to process
  • access: protected
int $perms = 0755 (line 1165)
  • var: The requested permissions
  • access: protected
string $tempFilename = null (line 1168)
  • var: The temporary file path we gave to the unarchiver engine
  • access: protected
int $timestamp = 0 (line 1171)
  • var: The UNIX timestamp of the file's desired modification date
  • access: public

Inherited Variables

Inherited from AKAbstractObject

AKAbstractObject::$_errors_queue_size
AKAbstractObject::$_warnings_queue_size
Methods
chmod (line 1194)
  • abstract:
  • access: public
void chmod ( $file,  $perms)
  • $file
  • $perms

Redefined in descendants as:
createDirRecursive (line 1192)

Recursively creates a directory if it doesn't exist

  • abstract:
  • access: public
void createDirRecursive (string $dirName, int $perms)
  • string $dirName: The directory to create
  • int $perms: The permissions to give to that directory

Redefined in descendants as:
process (line 1176)

Processes the current file, e.g. moves it from temp to final location by FTP

  • abstract:
  • access: public
void process ()

Redefined in descendants as:
processFilename (line 1185)

The unarchiver tells us the path to the filename it wants to extract and we give it a different path instead.

  • return: The path to the temporary file
  • abstract:
  • access: public
string processFilename (string $filename, [int $perms = 0755])
  • string $filename: The path to the real file
  • int $perms: The permissions we need the file to have

Redefined in descendants as:
rename (line 1200)
  • abstract:
  • access: public
void rename ( $from,  $to)
  • $from
  • $to

Redefined in descendants as:
rmdir (line 1198)
  • abstract:
  • access: public
void rmdir ( $directory)
  • $directory

Redefined in descendants as:
unlink (line 1196)
  • abstract:
  • access: public
void unlink ( $file)
  • $file

Redefined in descendants as:

Inherited Methods

Inherited From AKAbstractObject

 AKAbstractObject::__construct()
 AKAbstractObject::getError()
 AKAbstractObject::getErrors()
 AKAbstractObject::getWarning()
 AKAbstractObject::getWarnings()
 AKAbstractObject::propagateFromObject()
 AKAbstractObject::propagateToObject()
 AKAbstractObject::resetErrors()
 AKAbstractObject::resetWarnings()
 AKAbstractObject::setError()
 AKAbstractObject::setErrorsQueueSize()
 AKAbstractObject::setWarning()
 AKAbstractObject::setWarningsQueueSize()

Documentation generated on Tue, 19 Nov 2013 15:12:16 +0100 by phpDocumentor 1.4.3