MediaWiki  REL1_20
MinifyScript Class Reference

Maintenance script that minifies a file or set of files. More...

Inheritance diagram for MinifyScript:
Collaboration diagram for MinifyScript:

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 execute ()
 Do the actual work.
 getExtension ($fileName)
 minify ($inPath, $outPath)

Public Attributes

 $outDir

Detailed Description

Maintenance script that minifies a file or set of files.

Definition at line 31 of file minify.php.


Constructor & Destructor Documentation

Default constructor.

Children should call this *first* if implementing their own constructors

Reimplemented from Maintenance.

Definition at line 34 of file minify.php.

References Maintenance\addOption().


Member Function Documentation

Do the actual work.

All child classes will need to implement this

Reimplemented from Maintenance.

Definition at line 55 of file minify.php.

References $outDir, Maintenance\error(), Maintenance\getArg(), getExtension(), Maintenance\getOption(), Maintenance\hasOption(), and minify().

MinifyScript::getExtension ( fileName)

Definition at line 100 of file minify.php.

References Maintenance\error().

Referenced by execute(), and minify().

MinifyScript::minify ( inPath,
outPath 
)

Definition at line 109 of file minify.php.

References Maintenance\error(), getExtension(), Maintenance\getOption(), and Maintenance\output().

Referenced by execute().


Member Data Documentation

MinifyScript::$outDir

Definition at line 32 of file minify.php.

Referenced by execute().


The documentation for this class was generated from the following file: