Stud.IP  2.4 Revision 48548
 All Data Structures Namespaces Files Functions Variables Groups Pages
Studip\Squeeze Namespace Reference

Data Structures

class  Compressor
class  Configuration
class  Exception
class  Packager

Functions

 packageAll ($configFile=NULL, $outputDir=NULL)
 includePackages ($packager, $packages)
 shouldPackage ()
 packageAsIndividualURLs ($packager, $package)
 packageAsCompressedURL ($packager, $package)

Function Documentation

Studip\Squeeze\includePackages (   $packager,
  $packages 
)

Include a single squeeze package depending on as individual script elements or as a single one containing the squeezed source code of all files comprising the package.

Parameters
Packager$packagerthe packager instance to use
array$packagesan array containing the names of packages
Returns
an array containing PageLayout style HTML elements

Here is the call graph for this function:

Studip\Squeeze\packageAll (   $configFile = NULL,
  $outputDir = NULL 
)

Write all packages specified in $configFile to $outputDir. The default $outputDir is "$STUDIP_BASE_PATH/config/assets.yml"

Parameters
string$configFilepath to the config file
string$outputDirpath to the output directory

Here is the call graph for this function:

Studip\Squeeze\packageAsCompressedURL (   $packager,
  $package 
)

Include a single squeeze package as a single one containing the squeezed source code of all files comprising the package.

Parameters
Packager$packagerthe packager instance to use
string$packagethe name of a package
Returns
an array containing PageLayout style HTML elements

Here is the caller graph for this function:

Studip\Squeeze\packageAsIndividualURLs (   $packager,
  $package 
)

Include a single squeeze package as individual script elements.

Parameters
Packager$packagerthe packager instance to use
string$packagethe name of a package
Returns
an array containing PageLayout style HTML elements

Here is the caller graph for this function:

Studip\Squeeze\shouldPackage ( )
Returns
bool TRUE in production mode, FALSE in development or while debugging (= GET request contains a 'debug_assets' param)

Here is the caller graph for this function: