PHP Class Jarves\Utils

Afficher le fichier Open project: jarves/jarves Class Usage Examples

Protected Properties

Свойство Type Description
$cachedPageToUrl
$jarves Jarves
$localFilesystem Jarves\Filesystem\Filesystem
$webFilesystem Jarves\Filesystem\Filesystem

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
generateDiff ( Objects $repo, $objectKey, $origItem ) : string

Method Details

__construct() public méthode

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 méthode

public compressCss ( array $files, string $includePath = '' ) : string
$files array
$includePath string The directory where to compressed css is. with trailing slash!
Résultat string

compressJs() public méthode

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

generateDiff() protected méthode

protected generateDiff ( Objects $repo, $objectKey, $origItem ) : string
$repo Objects
$objectKey
$origItem
Résultat string

getComposerArray() public méthode

public getComposerArray ( $bundleClass )

newNewsFeed() public méthode

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

Property Details

$cachedPageToUrl protected_oe property

protected $cachedPageToUrl

$jarves protected_oe property

protected Jarves,jarves $jarves
Résultat Jarves

$localFilesystem protected_oe property

protected Filesystem,Jarves\Filesystem $localFilesystem
Résultat Jarves\Filesystem\Filesystem

$webFilesystem protected_oe property

protected Filesystem,Jarves\Filesystem $webFilesystem
Résultat Jarves\Filesystem\Filesystem