Class ScriptReorganizer_Type

Description

Base class to be extended by (reorganizer) types to use

All types must follow the naming convention ScriptReorganizer_Type_<Type>.

Located in /Type.php (line 49)


	
			
Direct descendents
Class Description
ScriptReorganizer_Type_Decorator Base class to be extended by (type) decorators to apply
ScriptReorganizer_Type_Library Many-to-one reorganization
ScriptReorganizer_Type_Script One-to-one reorganization
Method Summary
ScriptReorganizer_Type __construct (ScriptReorganizer_Strategy $strategy)
void __destruct ()
string getEolIdentifier (string &$content)
void load (string $file)
void reformat ()
void save (string $file)
string _getContent ()
void _setContent (string $content)
Methods
Constructor __construct (line 59)

Constructor

  • access: public
ScriptReorganizer_Type __construct (ScriptReorganizer_Strategy $strategy)

Redefined in descendants as:
Destructor __destruct (line 70)

Destructor

  • access: public
void __destruct ()

Redefined in descendants as:
getEolIdentifier (line 176)

Detects the currently used end-of-line identifier

  • return: a string representing the end-of-line identifier found in the script's content
  • access: protected
  • since: Method available sind Release 0.3.0
string getEolIdentifier (string &$content)
  • string &$content: a string representing the script's content
load (line 86)

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

Redefined in descendants as:
reformat (line 128)

Reorganizes the script's content by applying the chosen Strategy

  • access: public
void reformat ()

Redefined in descendants as:
save (line 149)

Saves the reorganized script's content to disk

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

Redefined in descendants as:
_getContent (line 199)

Gets the script's content currently being reorganized

  • return: a string representing the script's content
  • access: public
  • visibility: package restricted
string _getContent ()

Redefined in descendants as:
_setContent (line 214)

Sets the script's content currently being reorganized

  • access: public
  • visibility: package restricted
void _setContent (string $content)
  • string $content: a string representing the content's replacement

Redefined in descendants as:

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