StorageBaseService
in package
Provides helpers for storage services. It contains several constants and a helper method for hashing files
Tags
Table of Contents
- BASE_PATH = __ROOT__
- PUBLIC_PATH = self::BASE_PATH . '/public/'
- SAVE_PATH = self::BASE_PATH . '/public/' . self::WEB_PATH
- WEB_PATH = '/jinya-content/'
- getFileHash() : string
- Hashes the given resources content
Constants
BASE_PATH
public
string
BASE_PATH
= __ROOT__
The base path of Jinya CMS
Tags
PUBLIC_PATH
public
mixed
PUBLIC_PATH
= self::BASE_PATH . '/public/'
Tags
SAVE_PATH
public
string
SAVE_PATH
= self::BASE_PATH . '/public/' . self::WEB_PATH
The full base path for stored files
Tags
WEB_PATH
public
string
WEB_PATH
= '/jinya-content/'
The base path for web data
Tags
Methods
getFileHash()
Hashes the given resources content
protected
getFileHash(resource $fileContent) : string
Parameters
- $fileContent : resource