Class ScriptReorganizer_Type_Decorator_Pharize

Description

Decorator/Adapter for creating a PHP_Archive

If a (complex) application is pharized, a non-ScriptReorganized source code tree should be shipped together with the optimized one, to enable third parties to track down undiscoverd bugs.

ANN: Decoration of a directly sequencing Pharize-Decorator or Bcompile-Decorator is not allowed.

Located in /Type/Decorator/Pharize.php (line 71)

ScriptReorganizer_Type
   |
   --ScriptReorganizer_Type_Decorator
      |
      --ScriptReorganizer_Type_Decorator_Pharize
Method Summary
ScriptReorganizer_Type_Decorator_Pharize __construct (ScriptReorganizer_Type $type)
void load (string $source, string $target, [boolean $magicRequire = false])
void loadFiles (array $files, [boolean $magicRequire = false])
void reformat ()
void save (string $file, [string $initFile = 'index.php'], [boolean $compress = false], [mixed $allowDirectAccess = false])
array _getContent ()
void _setContent (array $targets, [boolean $magicRequire = false])
Methods
Constructor __construct (line 82)

Constructor

ScriptReorganizer_Type_Decorator_Pharize __construct (ScriptReorganizer_Type $type)

Redefinition of:
ScriptReorganizer_Type_Decorator::__construct()
Constructor
load (line 122)

Loads the script's content to be reorganized from disk

void load (string $source, string $target, [boolean $magicRequire = false])
  • string $source: a string representing the file's name to load
  • string $target: a string representing the file's location in the PHP Archive
  • boolean $magicRequire: boolean true, for phar-stream activation within the PHP Arcive; otherwise false

Redefinition of:
ScriptReorganizer_Type_Decorator::load()
Loads the script's content to be reorganized from disk
loadFiles (line 158)

Loads the scripts' content to be reorganized from disk

void loadFiles (array $files, [boolean $magicRequire = false])
  • array $files: an associative array holding all files' name to load and the corresponding files' locations in the PHP Archive
  • boolean $magicRequire: boolean true, for phar-stream activation within the PHP Archive; otherwise false
reformat (line 180)

Reorganizes the script's content by applying the chosen Strategy

  • access: public
void reformat ()

Redefinition of:
ScriptReorganizer_Type_Decorator::reformat()
Reorganizes the script's content by applying the chosen Strategy
save (line 206)

Saves the PHP Archive to disk

void save (string $file, [string $initFile = 'index.php'], [boolean $compress = false], [mixed $allowDirectAccess = false])
  • string $file: a string representing the PHP Archive file's name to save
  • string $initFile: a string representing the file's name called by default upon PHAR execution
  • boolean $compress: boolean true, if the files have to be compressed; otherwise false
  • mixed $allowDirectAccess: boolean true, for unrestricted file access; boolean false, for access restricted to the init file; a string representing the restricted file type (extension) access

Redefinition of:
ScriptReorganizer_Type_Decorator::save()
Saves the reorganized script's content to disk
_getContent (line 251)

Gets the scripts' contents currently being reorganized

  • return: an associative array holding all files' locations in the PHP Archive and the corresponding contents
  • access: public
  • since: Method available since Release 0.3.0
  • visibility: package restricted
array _getContent ()

Redefinition of:
ScriptReorganizer_Type_Decorator::_getContent()
Gets the script's content currently being reorganized
_setContent (line 271)

Sets the scripts' contents currently being reorganized

void _setContent (array $targets, [boolean $magicRequire = false])
  • array $targets: an associative array holding all files' locations in the PHP Archive and the corresponding contents
  • boolean $magicRequire: boolean true, for phar-stream activation within the PHP Arcive; otherwise false

Redefinition of:
ScriptReorganizer_Type_Decorator::_setContent()
Sets the script's content currently being reorganized

Inherited Methods

Inherited From ScriptReorganizer_Type_Decorator

ScriptReorganizer_Type_Decorator::__construct()
ScriptReorganizer_Type_Decorator::load()
ScriptReorganizer_Type_Decorator::reformat()
ScriptReorganizer_Type_Decorator::save()
ScriptReorganizer_Type_Decorator::_getContent()
ScriptReorganizer_Type_Decorator::_setContent()
ScriptReorganizer_Type_Decorator::__destruct()

Inherited From ScriptReorganizer_Type

ScriptReorganizer_Type::__construct()
ScriptReorganizer_Type::getEolIdentifier()
ScriptReorganizer_Type::load()
ScriptReorganizer_Type::reformat()
ScriptReorganizer_Type::save()
ScriptReorganizer_Type::_getContent()
ScriptReorganizer_Type::_setContent()
ScriptReorganizer_Type::__destruct()

Documentation generated on Tue, 22 Nov 2005 01:57:12 +0100 by phpDocumentor 1.3.0RC3