프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$mimeTypeExtensionGuesser | Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface | A instance of Symfony's MIME type extension guesser interface. |
메소드 | 설명 | |
---|---|---|
create ( mixed $file, boolean $testing = false ) : Codesleeve\Stapler\File\UploadedFile | Build a Codesleeve\Stapler\UploadedFile object using various file input types. | |
getMimeTypeExtensionGuesserInstance ( ) : Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesserInterface | Return an instance of the Symfony MIME type extension guesser. | |
setConfigInstance ( Codesleeve\Stapler\Interfaces\Config $config ) | Set the configuration object instance. |
메소드 | 설명 | |
---|---|---|
createFromArray ( array $file, boolean $testing ) : Codesleeve\Stapler\File\File | Build a Codesleeve\Stapler\File\File object from the raw php $_FILES array date. We assume here that the $_FILES array has been formated using the Stapler::arrangeFiles utility method. | |
createFromDataURI ( string $file ) : Codesleeve\Stapler\File\File | Compose a \Codesleeve\Stapler\File\UploadedFile object from a data uri. | |
createFromObject ( Symfony\Component\HttpFoundation\File\UploadedFile $file ) : Codesleeve\Stapler\File\UploadedFile | Compose a \Codesleeve\Stapler\File\UploadedFile object from a \Symfony\Component\HttpFoundation\File\UploadedFile object. | |
createFromString ( string $file ) : Codesleeve\Stapler\File\File | Fetch a local file using a string location and convert it into an instance of \Codesleeve\Stapler\File\File. | |
createFromUrl ( string $file ) : Codesleeve\Stapler\File\File | Fetch a remote file using a string URL and convert it into an instance of Codesleeve\Stapler\File\File. |
protected static createFromArray ( array $file, boolean $testing ) : Codesleeve\Stapler\File\File | ||
$file | array | |
$testing | boolean | |
리턴 | Codesleeve\Stapler\File\File |
protected static createFromDataURI ( string $file ) : Codesleeve\Stapler\File\File | ||
$file | string | |
리턴 | Codesleeve\Stapler\File\File |
protected static createFromObject ( Symfony\Component\HttpFoundation\File\UploadedFile $file ) : Codesleeve\Stapler\File\UploadedFile | ||
$file | Symfony\Component\HttpFoundation\File\UploadedFile | |
리턴 | Codesleeve\Stapler\File\UploadedFile |
protected static createFromString ( string $file ) : Codesleeve\Stapler\File\File | ||
$file | string | |
리턴 | Codesleeve\Stapler\File\File |
protected static createFromUrl ( string $file ) : Codesleeve\Stapler\File\File | ||
$file | string | |
리턴 | Codesleeve\Stapler\File\File |
public static getMimeTypeExtensionGuesserInstance ( ) : Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesserInterface | ||
리턴 | Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesserInterface |
public static setConfigInstance ( Codesleeve\Stapler\Interfaces\Config $config ) | ||
$config | Codesleeve\Stapler\Interfaces\Config |