Magento
NOTICE OF LICENSE
This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
DISCLAIMER
Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.
Located in /Core/Model/Design/Package.php (line 28)
Package area
Directory of the css file
Using only to transmit additional parametr in callback functions
Package name
Package root directory
Whether theme/skin hierarchy should be checked via fallback mechanism
Current Store for generation ofr base_dir and base_url
Package theme
Return package name based on design exception rules
Before merge css callback function
Remove all merged js/css files
Retrieve package area
Default theme getter
Use this one to get existing file name with fallback to default
$params['_type'] is required
Merge specified css files and return URL to the merged file on success
Merge specified javascript files and return URL to the merged file on success
Design packages list getter
Retrieve package name
Get skin file url
Design package (optional) themes list getter
Set store/package/area at once, and get respective values, that were before
$storePackageArea must be assoc array. The keys may be: 'store', 'package', 'area'
Set package area
Set package name In case of any problem, the default will be set.
Declare design package theme params
Polymorph method: 1) if 1 parameter specified, sets everything to this value 2) if 2 parameters, treats 1st as key and 2nd as value
Check whether requested file exists in specified theme params
Possible params:
Get regex rules from config and check user-agent against them
Rules must be stored in config as a serialized array(['regexp']=>'...', ['value'] => '...') Will return false or found string.
Callback function replaces relative links for @import matches in css file
Callback function replaces relative links for url() matches in css file
Check for files existence by specified scheme
If fallback enabled, the first found file will be returned. Otherwise the base package / default theme file, regardless of found or not. If disabled, the lookup won't be performed to spare filesystem calls.
Make sure merger dir exists and writeable Also can clean it up
Merges files into one and saves it into DB (if DB file storage is on)
Prepare url for css replacement
Get filename by specified theme parameters
Set file dir for css file
Documentation generated on Fri, 11 Feb 2011 17:09:30 +0200 by phpDocumentor 1.4.3