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

Class: ScriptReorganizer_Type_Decorator_AddHeader

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

Class Overview

ScriptReorganizer_Type
   |
   --ScriptReorganizer_Type_Decorator
      |
      --ScriptReorganizer_Type_Decorator_AddHeader

Decorator for adding a header to the script to reorganize


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods

Class: ScriptReorganizer_Type_Decorator

ScriptReorganizer_Type_Decorator::__construct()
Constructor
ScriptReorganizer_Type_Decorator::load()
Loads the script's content to be reorganized from disk
ScriptReorganizer_Type_Decorator::reformat()
Reorganizes the script's content by applying the chosen Strategy
ScriptReorganizer_Type_Decorator::save()
Saves the reorganized script's content to disk
ScriptReorganizer_Type_Decorator::_getContent()
Gets the script's content currently being reorganized
ScriptReorganizer_Type_Decorator::_setContent()
Sets the script's content currently being reorganized
ScriptReorganizer_Type_Decorator::__destruct()
Destructor

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 55]
Decorator for adding a header to the script to reorganize

ANN: Decoration of a directly sequencing Pharize-Decorator is not allowed.



[ Top ]


Method Detail

__construct (Constructor)   [line 68]

ScriptReorganizer_Type_Decorator_AddHeader __construct( ScriptReorganizer_Type $type, [string $header = ''])

Constructor

Overrides ScriptReorganizer_Type_Decorator::__construct() (Constructor)

Parameters:

ScriptReorganizer_Type   $type   —  a ScriptReorganizer_Type to decorate
string   $header   —  a string representing the (optional) default header to prepend

[ Top ]

reformat   [line 96]

void reformat( [string $header = null])

Reorganizes the script's content by applying the chosen Strategy

Overrides ScriptReorganizer_Type_Decorator::reformat() (Reorganizes the script's content by applying the chosen Strategy)

Parameters:

string   $header   —  a string representing the (optional) overriding header to prepend

[ Top ]


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