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

Class: ScriptReorganizer_Type

Source Location: /ScriptReorganizer-0.3.0/Type.php

Class Overview


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


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Child classes:

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

Inherited Variables

Inherited Methods


Class Details

[line 49]
Base class to be extended by (reorganizer) types to use

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



[ Top ]


Method Detail

__construct (Constructor)   [line 59]

ScriptReorganizer_Type __construct( ScriptReorganizer_Strategy $strategy)

Constructor
  • Access: public

Overridden in child classes as:

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

Parameters:

ScriptReorganizer_Strategy   $strategy   —  a ScriptReorganizer_Strategy to apply

[ Top ]

__destruct (Destructor)   [line 74]

void __destruct( )

Destructor
  • Access: public

Overridden in child classes as:

ScriptReorganizer_Type_Decorator::__destruct()
Destructor

[ Top ]

getEolIdentifier   [line 180]

string getEolIdentifier( string &$content)

Detects the currently used end-of-line identifier
  • Return: a string representing the end-of-line identifier found in the script's content
  • Since: Method available sind Release 0.3.0
  • Access: protected

Parameters:

string   &$content   —  a string representing the script's content

[ Top ]

load   [line 90]

void load( string $file)

Loads the script's content to be reorganized from disk

Overridden in child classes as:

ScriptReorganizer_Type_Decorator::load()
Loads the script's content to be reorganized from disk
ScriptReorganizer_Type_Decorator_Pharize::load()
Loads the script's content to be reorganized from disk
ScriptReorganizer_Type_Library::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 132]

void reformat( )

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

Overridden in child classes as:

ScriptReorganizer_Type_Decorator::reformat()
Reorganizes the script's content by applying the chosen Strategy
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

[ Top ]

save   [line 153]

void save( string $file)

Saves the reorganized script's content to disk

Overridden in child classes as:

ScriptReorganizer_Type_Decorator::save()
Saves the reorganized script's content to disk
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

Parameters:

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

[ Top ]

_getContent   [line 199]

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::_getContent()
Gets the script's content currently being reorganized
ScriptReorganizer_Type_Decorator_Pharize::_getContent()
Gets the scripts' contents currently being reorganized

[ Top ]

_setContent   [line 214]

void _setContent( string $content)

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

Overridden in child classes as:

ScriptReorganizer_Type_Decorator::_setContent()
Sets the script's content currently being reorganized
ScriptReorganizer_Type_Decorator_Pharize::_setContent()
Sets the scripts' contents currently being reorganized

Parameters:

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

[ Top ]


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