PHP Class Jarves\Utils

ファイルを表示 Open project: jarves/jarves Class Usage Examples

Protected Properties

Property Type Description
$cachedPageToUrl
$jarves Jarves
$localFilesystem Jarves\Filesystem\Filesystem
$webFilesystem Jarves\Filesystem\Filesystem

Public Methods

Method 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.

Protected Methods

Method Description
generateDiff ( Objects $repo, $objectKey, $origItem ) : string

Method Details

__construct() public method

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 method

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

compressJs() public method

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

generateDiff() protected method

protected generateDiff ( Objects $repo, $objectKey, $origItem ) : string
$repo Objects
$objectKey
$origItem
return string

getComposerArray() public method

public getComposerArray ( $bundleClass )

newNewsFeed() public method

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
return Jarves

$localFilesystem protected_oe property

protected Filesystem,Jarves\Filesystem $localFilesystem
return Jarves\Filesystem\Filesystem

$webFilesystem protected_oe property

protected Filesystem,Jarves\Filesystem $webFilesystem
return Jarves\Filesystem\Filesystem