Class ScriptReorganizer_Type_Decorator

Description

Base class to be extended by (type) decorators to apply

All decorators must follow the naming convention ScriptReorganizer_Type_Decorator_<Decorator>.

Located in /Type/Decorator.php (line 46)

ScriptReorganizer_Type
   |
   --ScriptReorganizer_Type_Decorator
Direct descendents
Class Description
ScriptReorganizer_Type_Decorator_AddFooter Decorator for adding a footer to the script to reorganize
ScriptReorganizer_Type_Decorator_AddHeader Decorator for adding a header to the script to reorganize
ScriptReorganizer_Type_Decorator_Bcompile Decorator/Adapter for encoding a PHP source file to byte-code
ScriptReorganizer_Type_Decorator_Pharize Decorator/Adapter for creating a PHP_Archive
Method Summary
ScriptReorganizer_Type_Decorator __construct (ScriptReorganizer_Type $type)
void __destruct ()
void load (string $file)
void reformat ()
void save (string $file)
string _getContent ()
void _setContent (string $content)
Methods
Constructor __construct (line 56)

Constructor

  • access: public
ScriptReorganizer_Type_Decorator __construct (ScriptReorganizer_Type $type)

Redefinition of:
ScriptReorganizer_Type::__construct()
Constructor

Redefined in descendants as:
Destructor __destruct (line 67)

Destructor

  • access: public
void __destruct ()

Redefinition of:
ScriptReorganizer_Type::__destruct()
Destructor
load (line 83)

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

Redefined in descendants as:
reformat (line 97)

Reorganizes the script's content by applying the chosen Strategy

  • access: public
void reformat ()

Redefinition of:
ScriptReorganizer_Type::reformat()
Reorganizes the script's content by applying the chosen Strategy

Redefined in descendants as:
save (line 112)

Saves the reorganized script's content to disk

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

Redefinition of:
ScriptReorganizer_Type::save()
Saves the reorganized script's content to disk

Redefined in descendants as:
_getContent (line 127)

Gets the script's content currently being reorganized

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

Redefinition of:
ScriptReorganizer_Type::_getContent()
Gets the script's content currently being reorganized

Redefined in descendants as:
_setContent (line 142)

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

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

Redefined in descendants as:

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