Метод |
Описание |
|
addNumber ( string $string ) : string |
Add a number to the string |
|
generatePassword ( integer $length = 6, boolean $uppercaseAllowed = true, boolean $lowercaseAllowed = true ) : string |
Generate a totally random but readable/speakable password |
|
generateThumbnails ( string $path, string $sourceFile ) |
Generate thumbnails based on the folders in the path
Use
- 128x128 as foldername to generate an image where the width will be
128px and the height will be 128px
- 128x as foldername to generate an image where the width will be
128px, the height will be calculated based on the aspect ratio. |
|
getModules ( ) : array |
Get the modules |
|
getThumbnailFolders ( string $path, boolean $includeSource = false ) : array |
Get the thumbnail folders |
|
getUTCDate ( string $format = null, integer $timestamp = null ) : string |
Get the UTC date in a specific format. Use this method when inserting dates in the database! |
|
getUTCTimestamp ( SpoonFormDate $date, SpoonFormTime $time = null ) : integer |
Get the UTC timestamp for a date/time object combination. |
|
startProcessingHooks ( ) |
Start processing the hooks |
|
subscribeToEvent ( string $eventModule, string $eventName, string $module, mixed $callback ) |
Subscribe to an event, when the subscription already exists, the callback will be updated. |
|
triggerEvent ( string $module, string $eventName, mixed $data = null ) |
Trigger an event |
|
unsubscribeFromEvent ( string $eventModule, string $eventName, string $module ) |
Unsubscribe from an event |
|