torq / pimcore-helpers-bundle
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:pimcore-bundle
Requires
- pimcore/pimcore: ^11.0
README
A collection of several simple but commonly used, mockable service wrappers
AssetRepository
: Service wrapper for fetching, saving and deleting assetscreateAsset(UploadedFile $file, ElementInterface $parent)
: A helper which builds an asset from an UploadedFile
FolderRepository
: Service wrappers for either getting or getting/creating the three major folder types in pimcoreDataObjectRepository
: Abstract service wrapper for saving/deleting data objectsArrayUtils
: A collection of helper functions for deep parsing arrays as well as finding items within an arrayget(string|string[] $key, array $array)
: Navigates either one or a series of nested keys within an array and returns either the target value or null if any part of the chain does not exist. Several casting variations also exist which return specific types or null:getDate()
getInt()
getFloat()
findIndex(callable $callable, array $array)
andfindInArray(callable $callable, array $array)
functions, which find an item in an array based on a given function