FRED™  3.0
FRED™: Framework for Rapid and Easy Development
Handler Class Reference
Inheritance diagram for Handler:
Thing Script Style

Public Member Functions

 __construct ($minify, $config)
 
 source ($source, $filename=null)
 Minify a source string. More...
 
 file ($source, $target=null)
 Minify a source file. More...
 
 files ($sources, $target=null)
 Minify and combine multiple source files. More...
 
- Public Member Functions inherited from Thing
 propertyExists ($property)
 Check if a property exists (public or published). More...
 
 constants ($prefix=null)
 Return all constants. More...
 
 get ($key)
 Get one or more properties. More...
 
 set ($key, $value=null)
 Set one or more properties. More...
 
 __get ($key)
 
 __set ($key, $value)
 

Protected Member Functions

 init ()
 
- Protected Member Functions inherited from Thing
 publish ($property, $visibility=self::READABLE)
 Publish a property (or hide it again). More...
 
 configure ($config)
 Configure the object. More...
 
 _get ($key)
 Default getter if no specific setter is defined, and the property is also not published (readable). More...
 
 _set ($key, $value)
 Default setter if no specific setter is defined, and the property is also not published (writeable). More...
 

Protected Attributes

 $_minify
 
 $_config = null
 
- Protected Attributes inherited from Thing
 $_published = []
 Published properties (key = name of property, value = visibility). More...
 

Additional Inherited Members

- Data Fields inherited from Thing
const HIDDEN = 0
 Property is hidden. More...
 
const READABLE = 1
 Property is readable. More...
 
const WRITEABLE = 2
 Property is writeable. More...
 
const READWRITE = 3
 Property is readable and writeable. More...
 

Detailed Description

Definition at line 5 of file Handler.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $minify,
  $config 
)

Definition at line 10 of file Handler.php.

Member Function Documentation

◆ file()

file (   $source,
  $target = null 
)

Minify a source file.

Parameters
string$sourceSource filename.
string$targetTarget filename (when empty, and a cache is definied, a filename will be generated).
Returns
string Target filename (false on error).

Definition at line 33 of file Handler.php.

◆ files()

files (   $sources,
  $target = null 
)

Minify and combine multiple source files.

Parameters
array$sourcesSource filenames.
string$targetTarget filename (when empty, and a cache is definied, a filename will be generated).
Returns
string Target filename (false on error).

Definition at line 48 of file Handler.php.

◆ init()

init ( )
protected

Definition at line 16 of file Handler.php.

◆ source()

source (   $source,
  $filename = null 
)

Minify a source string.

Parameters
string$sourceSource to minify.
string$filenameOptional source filename for use in error messages.
Returns
string Minified source.

Definition at line 24 of file Handler.php.

Field Documentation

◆ $_config

$_config = null
protected

Definition at line 8 of file Handler.php.

◆ $_minify

$_minify
protected

Definition at line 7 of file Handler.php.


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