Class ScriptReorganizer_Type_Library

Description

Many-to-one reorganization

Converts a script file and all included/required files to a single library file according to the Strategy to apply.

To avoid the processing of files' imports, which can change independently from the code base at any time, transform the respective statement from a static to a dynamic one, e.g. from require_once 'configuration.php'; to require_once 'configuration' . '.php';.

If the advanced pack mode strategy is used for packaging, a non-ScriptReorganized source code tree should be shipped together with the optimized one, to enable third parties to track down undiscoverd bugs.

Located in /Type/Library.php (line 65)

ScriptReorganizer_Type
   |
   --ScriptReorganizer_Type_Library
Method Summary
ScriptReorganizer_Type_Library __construct (ScriptReorganizer_Strategy $strategy)
void load (string $file)
Methods
Constructor __construct (line 75)

Constructor

  • access: public
ScriptReorganizer_Type_Library __construct (ScriptReorganizer_Strategy $strategy)

Redefinition of:
ScriptReorganizer_Type::__construct()
Constructor
load (line 93)

Loads the script's content to be reorganized from disk

void load (string $file)
  • string $file: a string representing the file's name to load

Redefinition of:
ScriptReorganizer_Type::load()
Loads the script's content to be reorganized from disk

Inherited Methods

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:10 +0100 by phpDocumentor 1.3.0RC3