Jinya CMS

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

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
Tags
Return values
string

Search results