PHP 클래스 Devise\Media\Helpers\Caption

파일 보기 프로젝트 열기: devisephp/cms

공개 메소드들

메소드 설명
__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