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

Class: ScriptReorganizer_Type_Decorator

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

Class Overview

ScriptReorganizer_Type
   |
   --ScriptReorganizer_Type_Decorator

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


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Child classes:

ScriptReorganizer_Type_Decorator_Bcompile
Decorator/Adapter for encoding a PHP source file in byte-code
ScriptReorganizer_Type_Decorator_Pharize
Decorator/Adapter for creating a PHP_Archive
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

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 46]
Base class to be extended by (type) decorators to apply

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



[ Top ]


Method Detail

__construct (Constructor)   [line 56]

ScriptReorganizer_Type_Decorator __construct( ScriptReorganizer_Type $type)

Constructor
  • Access: public

Overridden in child classes as:

ScriptReorganizer_Type_Decorator_Bcompile::__construct()
Constructor
ScriptReorganizer_Type_Decorator_Pharize::__construct()
Constructor
ScriptReorganizer_Type_Decorator_AddFooter::__construct()
Constructor
ScriptReorganizer_Type_Decorator_AddHeader::__construct()
Constructor

Overrides ScriptReorganizer_Type::__construct() (Constructor)

Parameters:

ScriptReorganizer_Type   $type   —  a ScriptReorganizer_Type to decorate

[ Top ]

__destruct (Destructor)   [line 67]

void __destruct( )

Destructor
  • Access: public

Overrides ScriptReorganizer_Type::__destruct() (Destructor)
[ Top ]

load   [line 83]

void load( string $file)

Loads the script's content to be reorganized from disk

Overridden in child classes as:

ScriptReorganizer_Type_Decorator_Pharize::load()
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 ]

reformat   [line 97]

void reformat( )

Reorganizes the script's content by applying the chosen Strategy
  • Access: public

Overridden in child classes as:

ScriptReorganizer_Type_Decorator_Pharize::reformat()
Reorganizes the script's content by applying the chosen Strategy
ScriptReorganizer_Type_Decorator_AddFooter::reformat()
Reorganizes the script's content by applying the chosen Strategy
ScriptReorganizer_Type_Decorator_AddHeader::reformat()
Reorganizes the script's content by applying the chosen Strategy

Overrides ScriptReorganizer_Type::reformat() (Reorganizes the script's content by applying the chosen Strategy)
[ Top ]

save   [line 112]

void save( string $file)

Saves the reorganized script's content to disk

Overridden in child classes as:

ScriptReorganizer_Type_Decorator_Bcompile::save()
Saves the reorganized script's content as encoded byte-code to disk
ScriptReorganizer_Type_Decorator_Pharize::save()
Saves the PHP Archive to disk

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

Parameters:

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

[ Top ]

_getContent   [line 127]

string _getContent( )

Gets the script's content currently being reorganized
  • Return: a string representing the script's content
  • Access: public

Overridden in child classes as:

ScriptReorganizer_Type_Decorator_Pharize::_getContent()
Gets the scripts' contents currently being reorganized

Overrides ScriptReorganizer_Type::_getContent() (Gets the script's content currently being reorganized)
[ Top ]

_setContent   [line 142]

void _setContent( string $content)

Sets the script's content currently being reorganized
  • Access: public

Overridden in child classes as:

ScriptReorganizer_Type_Decorator_Pharize::_setContent()
Sets the scripts' contents currently being reorganized

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

Parameters:

string   $content   —  a string representing the content's replacement

[ Top ]


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