PHP Class Devise\Media\Helpers\Caption

Afficher le fichier Open project: devisephp/cms

Méthodes publiques

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

Method Details

__construct() public méthode

Construct a new Caption Helper
public __construct ( MediaPaths $MediaPaths, Framework $Framework ) : void
$MediaPaths Devise\Media\MediaPaths
$Framework Devise\Support\Framework
Résultat void

exists() public méthode

Checks if a caption file exitst for the image passed
public exists ( string $imagePath ) : boolean
$imagePath string
Résultat boolean

saveForImage() public méthode

Saves the text file using the image path, and text passed
public saveForImage ( string $imagePath, $text ) : string
$imagePath string
Résultat string $text

text() public méthode

Finds the caption text for an image
public text ( string $imagePath ) : string
$imagePath string
Résultat string