ScriptReorganizer
[ class tree: ScriptReorganizer ] [ index: ScriptReorganizer ] [ all elements ]

Class: ScriptReorganizer_Type_Library

Source Location: /ScriptReorganizer-0.3.0/Type/Library.php

Class Overview

ScriptReorganizer_Type
   |
   --ScriptReorganizer_Type_Library

Many-to-one reorganization


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 Stefano F. Rausch <stefano@rausch-e.net>

Methods


Inherited Variables

Inherited Methods

Class: ScriptReorganizer_Type

ScriptReorganizer_Type::__construct()
Constructor
ScriptReorganizer_Type::getEolIdentifier()
Detects the currently used end-of-line identifier
ScriptReorganizer_Type::load()
Loads the script's content to be reorganized from disk
ScriptReorganizer_Type::reformat()
Reorganizes the script's content by applying the chosen Strategy
ScriptReorganizer_Type::save()
Saves the reorganized script's content to disk
ScriptReorganizer_Type::_getContent()
Gets the script's content currently being reorganized
ScriptReorganizer_Type::_setContent()
Sets the script's content currently being reorganized
ScriptReorganizer_Type::__destruct()
Destructor

Class Details

[line 65]
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.



[ Top ]


Method Detail

__construct (Constructor)   [line 75]

ScriptReorganizer_Type_Library __construct( ScriptReorganizer_Strategy $strategy)

Constructor
  • Access: public

Overrides ScriptReorganizer_Type::__construct() (Constructor)

Parameters:

ScriptReorganizer_Strategy   $strategy   —  a ScriptReorganizer_Strategy to apply

[ Top ]

load   [line 93]

void load( string $file)

Loads the script's content to be reorganized from disk

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

Parameters:

string   $file   —  a string representing the file's name to load

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:10:30 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.