phpDocumentor Swift
[ class tree: Swift ] [ index: Swift ] [ all elements ]

Class: SwiftMinify

Source Location: /classes/SwiftMinify.php

Class SwiftMinify

Class Overview

Holds functions to minimize and compress string and file content.

Located in /classes/SwiftMinify.php [line 41]



		
		
		
		

Methods

[ Top ]
Method Summary
SwiftMinify   __construct()   Creates a new SwiftMinify object.
int   minifyFile()   Minimizes and compresses the provided $filename. Removes comments, tabs, spaces, and newlines.
string   minifyString()   Minimizes and compresses the provided string. Removes comments, tabs, spaces, and newlines.

[ Top ]
Methods
Constructor __construct  [line 47]

  SwiftMinify __construct( )

Creates a new SwiftMinify object.


API Tags:
Return:  The new SwiftMinify object
Access:  public


[ Top ]
minifyFile  [line 74]

  int minifyFile( string $filename  )

Minimizes and compresses the provided $filename. Removes comments, tabs, spaces, and newlines.

Warning: Does not work with double slash (//) comments

Parameters:
string   $filename:  The string to minimize.

API Tags:
Return:  Returns the number of bytes that were written to the file, or FALSE on failure.
Access:  public


[ Top ]
minifyString  [line 55]

  string minifyString( string $buffer  )

Minimizes and compresses the provided string. Removes comments, tabs, spaces, and newlines.

Warning: Does not work with double slash (//) comments

Parameters:
string   $buffer:  The string to minimize.

API Tags:
Return:  The minimized string.
Access:  public


[ Top ]

Documentation generated on Tue, 08 Oct 2013 05:37:16 +0200 by phpDocumentor 1.4.4