PHP Класс Jarves\Utils

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$cachedPageToUrl
$jarves Jarves
$localFilesystem Jarves\Filesystem\Filesystem
$webFilesystem Jarves\Filesystem\Filesystem

Открытые методы

Метод Описание
__construct ( Jarves $jarves, PageStack $pageStack, Filesystem $localFilesystem, Filesystem $webFilesystem, Cacher $cacher ) Utils constructor.
compressCss ( array $files, string $includePath = '' ) : string
compressJs ( array $assets, $targetPath )
getComposerArray ( $bundleClass )
newNewsFeed ( Objects $repo, string $objectKey, array $item, string $verb, string | null $message = null ) Adds a new news-feed entry. If not message (means null) is passed we generate a diff.

Защищенные методы

Метод Описание
generateDiff ( Objects $repo, $objectKey, $origItem ) : string

Описание методов

__construct() публичный Метод

Utils constructor.
public __construct ( Jarves $jarves, PageStack $pageStack, Filesystem $localFilesystem, Filesystem $webFilesystem, Cacher $cacher )
$jarves Jarves
$pageStack PageStack
$localFilesystem Jarves\Filesystem\Filesystem
$webFilesystem Jarves\Filesystem\Filesystem
$cacher Jarves\Cache\Cacher

compressCss() публичный Метод

public compressCss ( array $files, string $includePath = '' ) : string
$files array
$includePath string The directory where to compressed css is. with trailing slash!
Результат string

compressJs() публичный Метод

public compressJs ( array $assets, $targetPath )
$assets array

generateDiff() защищенный Метод

protected generateDiff ( Objects $repo, $objectKey, $origItem ) : string
$repo Objects
$objectKey
$origItem
Результат string

getComposerArray() публичный Метод

public getComposerArray ( $bundleClass )

newNewsFeed() публичный Метод

Adds a new news-feed entry. If not message (means null) is passed we generate a diff.
public newNewsFeed ( Objects $repo, string $objectKey, array $item, string $verb, string | null $message = null )
$repo Objects
$objectKey string
$item array
$verb string
$message string | null

Описание свойств

$cachedPageToUrl защищенное свойство

protected $cachedPageToUrl

$jarves защищенное свойство

protected Jarves,jarves $jarves
Результат Jarves

$localFilesystem защищенное свойство

protected Filesystem,Jarves\Filesystem $localFilesystem
Результат Jarves\Filesystem\Filesystem

$webFilesystem защищенное свойство

protected Filesystem,Jarves\Filesystem $webFilesystem
Результат Jarves\Filesystem\Filesystem