Class Mage_Core_Model_Design_Package
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 license@magentocommerce.com 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.
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/Core/Model/Design/Package.php
public
|
|
public
string|integer|
|
|
public
|
|
public
unknown
|
|
public
|
#
setPackageName( string $name = '' )
Set package name In case of any problem, the default will be set. |
public
array
|
#
setAllGetOld( array $storePackageArea )
Set store/package/area at once, and get respective values, that were before |
public
string
|
|
public
|
#
designPackageExists( mixed $packageName, mixed $area =
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string|false
|
#
validateFile( string $file, array $params )
Check whether requested file exists in specified theme params |
protected
string
|
|
protected
string
|
|
public
string
|
#
getFilename( string $file, array $params )
Use this one to get existing file name with fallback to default |
public
string
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
array
|
|
public
string
|
|
private
array
|
#
_listDirectories( string $path, string|boolean $fullPath = false )
Directories lister utility method |
protected
mixed
|
#
_checkUserAgentAgainstRegexps( string $regexpsConfigPath )
Get regex rules from config and check user-agent against them |
public static
boolean|string
|
#
getPackageByUserAgent( array $rules, string $regexpsConfigPath = 'path_mock' )
Return package name based on design exception rules |
public
string
|
#
getMergedJsUrl( mixed $files )
Merge specified javascript files and return URL to the merged file on success |
public
string
|
#
getMergedCssUrl( mixed $files )
Merge specified css files and return URL to the merged file on success |
protected
boolean|string
|
#
_mergeFiles( array $srcFiles, string|boolean $targetFile = false, boolean $mustMerge = false, callable $beforeMergeCallback = null, array|string $extensionsFilter = array() )
Merges files into one and saves it into DB (if DB file storage is on) |
public
boolean
|
|
protected
boolean
|
#
_initMergerDir( string $dirRelativeName, boolean $cleanup = false )
Make sure merger dir exists and writeable Also can clean it up |
public
string
|
|
protected
|
|
protected
string
|
#
_cssMergerImportCallback( array $match )
Callback function replaces relative links for @import matches in css file |
protected
string
|
#
_cssMergerUrlCallback( array $match )
Callback function replaces relative links for url() matches in css file |
protected
string
|
string |
DEFAULT_AREA
|
'frontend' |
|
string |
DEFAULT_PACKAGE
|
'default' |
|
string |
DEFAULT_THEME
|
'default' |
|
string |
BASE_PACKAGE
|
'base' |
private static
array
|
$_regexMatchCache | array() |
|
private static
array
|
$_customThemeTypeCache | array() |
|
protected
string|integer| |
$_store | null |
#
Current Store for generation ofr base_dir and base_url |
protected
string
|
$_area |
|
#
Package area |
protected
string
|
$_name |
|
#
Package name |
protected
string
|
$_theme |
|
#
Package theme |
protected
string
|
$_rootDir |
|
#
Package root directory |
protected
string
|
$_callbackFileDir |
|
#
Directory of the css file Using only to transmit additional parametr in callback functions |
protected
mixed
|
$_config | null |
|
protected
boolean
|
$_shouldFallback | true |
#
Whether theme/skin hierarchy should be checked via fallback mechanism |