PHP Класс Devise\Media\Helpers\Caption

Показать файл Открыть проект

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

Метод Описание
__construct ( MediaPaths $MediaPaths, Framework $Framework ) : void Construct a new Caption Helper
exists ( string $imagePath ) : boolean Checks if a caption file exitst for the image passed
saveForImage ( string $imagePath, $text ) : string Saves the text file using the image path, and text passed
text ( string $imagePath ) : string Finds the caption text for an image

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

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

Construct a new Caption Helper
public __construct ( MediaPaths $MediaPaths, Framework $Framework ) : void
$MediaPaths Devise\Media\MediaPaths
$Framework Devise\Support\Framework
Результат void

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

Checks if a caption file exitst for the image passed
public exists ( string $imagePath ) : boolean
$imagePath string
Результат boolean

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

Saves the text file using the image path, and text passed
public saveForImage ( string $imagePath, $text ) : string
$imagePath string
Результат string $text

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

Finds the caption text for an image
public text ( string $imagePath ) : string
$imagePath string
Результат string