|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\App\Helper\Context $context, \Magento\Framework\Filesystem $filesystem, \Magento\Backend\Model\Session $session, \Magento\Framework\View\Design\Theme\FlyweightFactory $themeFactory) | |
| convertPathToId ($path) | |
| convertIdToPath ($value) | |
| getShortFilename ($filename, $maxLength=20) | |
| getStorageRoot () | |
| getStorageType () | |
| getRelativeUrl () | |
| getCurrentPath () | |
| getThumbnailDirectory ($path) | |
| getThumbnailPath ($imageName) | |
| getRequestParams () | |
| getAllowedExtensionsByType () | |
| getStorageTypeName () | |
| getSession () | |
Public Member Functions inherited from AbstractHelper | |
| __construct (Context $context) | |
| isModuleOutputEnabled ($moduleName=null) | |
Data Fields | |
| const | PARAM_NODE = 'node' |
| const | PARAM_CONTENT_TYPE = 'content_type' |
| const | PARAM_THEME_ID = 'theme_id' |
| const | PARAM_FILENAME = 'filename' |
| const | NODE_ROOT = 'root' |
| const | IMAGES = 'Images' |
| const | FONTS = 'Fonts' |
Protected Member Functions | |
| _getTheme () | |
Protected Member Functions inherited from AbstractHelper | |
| _getRequest () | |
| _getModuleName () | |
| _getUrl ($route, $params=[]) | |
Protected Attributes | |
| $_currentPath | |
| $_storageRoot | |
| $filesystem | |
| $_session | |
| $_themeFactory | |
| $mediaDirectoryWrite | |
Protected Attributes inherited from AbstractHelper | |
| $_moduleName | |
| $_request | |
| $_moduleManager | |
| $_logger | |
| $_urlBuilder | |
| $_httpHeader | |
| $_eventManager | |
| $_remoteAddress | |
| $urlEncoder | |
| $urlDecoder | |
| $scopeConfig | |
| $_cacheConfig | |
| __construct | ( | \Magento\Framework\App\Helper\Context | $context, |
| \Magento\Framework\Filesystem | $filesystem, | ||
| \Magento\Backend\Model\Session | $session, | ||
| \Magento\Framework\View\Design\Theme\FlyweightFactory | $themeFactory | ||
| ) |
| \Magento\Framework\App\Helper\Context | $context | |
| \Magento\Framework\Filesystem | $filesystem | |
| \Magento\Backend\Model\Session | $session | |
| \Magento\Framework\View\Design\Theme\FlyweightFactory | $themeFactory |
Definition at line 97 of file Storage.php.
|
protected |
Get theme module for custom static files
Definition at line 172 of file Storage.php.
| convertIdToPath | ( | $value | ) |
Convert id to path
| string | $value |
Definition at line 129 of file Storage.php.
| convertPathToId | ( | $path | ) |
| getAllowedExtensionsByType | ( | ) |
Get allowed extensions by type
Definition at line 291 of file Storage.php.
| getCurrentPath | ( | ) |
Get current path
Definition at line 224 of file Storage.php.
| getRelativeUrl | ( | ) |
Relative url to static content
Definition at line 206 of file Storage.php.
| getRequestParams | ( | ) |
Request params for selected theme
Definition at line 273 of file Storage.php.
| getSession | ( | ) |
| getShortFilename | ( | $filename, | |
$maxLength = 20 |
|||
| ) |
Get short file name
| string | $filename | |
| int | $maxLength |
Definition at line 145 of file Storage.php.
| getStorageRoot | ( | ) |
| getStorageType | ( | ) |
Get storage type
Definition at line 188 of file Storage.php.
| getStorageTypeName | ( | ) |
Get storage type name for display.
Definition at line 304 of file Storage.php.
| getThumbnailDirectory | ( | $path | ) |
Get thumbnail directory for path
| string | $path |
Definition at line 247 of file Storage.php.
| getThumbnailPath | ( | $imageName | ) |
Get thumbnail path in current directory by image name
| string | $imageName |
Definition at line 259 of file Storage.php.
|
protected |
Definition at line 60 of file Storage.php.
|
protected |
Definition at line 79 of file Storage.php.
|
protected |
Definition at line 67 of file Storage.php.
|
protected |
Definition at line 84 of file Storage.php.
|
protected |
Definition at line 74 of file Storage.php.
|
protected |
Definition at line 89 of file Storage.php.
| const FONTS = 'Fonts' |
Display name for fonts storage type
Definition at line 53 of file Storage.php.
| const IMAGES = 'Images' |
Display name for images storage type
Definition at line 48 of file Storage.php.
| const NODE_ROOT = 'root' |
Root node value identification number
Definition at line 43 of file Storage.php.
| const PARAM_CONTENT_TYPE = 'content_type' |
Parameter name of content type
Definition at line 28 of file Storage.php.
| const PARAM_FILENAME = 'filename' |
Parameter name of filename
Definition at line 38 of file Storage.php.
| const PARAM_NODE = 'node' |
Parameter name of node
Definition at line 23 of file Storage.php.
| const PARAM_THEME_ID = 'theme_id' |
Parameter name of theme identification number
Definition at line 33 of file Storage.php.