class FileManager (View source)

Methods

string
file(string $id, string $postname, string $chooseText, File $bf = null, $filterArgs = [])

Sets up a file field for use with a block.

string
image(string $id, string $postname, string $chooseText, File $fileInstanceBlock = null, array $additionalArgs = [])

Sets up an image to be chosen for use with a block.

string
video(string $id, string $postname, string $chooseText, File $fileInstanceBlock = null, array $additionalArgs = [])

Sets up a video to be chosen for use with a block.

string
text(string $id, string $postname, string $chooseText, File $fileInstanceBlock = null, array $additionalArgs = [])

Sets up a text file to be chosen for use with a block.

string
audio(string $id, string $postname, string $chooseText, File $fileInstanceBlock = null, array $additionalArgs = [])

Sets up audio to be chosen for use with a block.

string
doc(string $id, string $postname, string $chooseText, File $fileInstanceBlock = null, array $additionalArgs = [])

Sets up a document to be chosen for use with a block.

string
app(string $id, string $postname, string $chooseText, File $fileInstanceBlock = null, array $additionalArgs = [])

Sets up an application to be chosen for use with a block.

Details

string file(string $id, string $postname, string $chooseText, File $bf = null, $filterArgs = [])

Sets up a file field for use with a block.

Parameters

string $id

The ID of your form field

string $postname

The name of your database column into which you'd like to save the file ID

string $chooseText
File $bf
$filterArgs

Return Value

string

$html

string image(string $id, string $postname, string $chooseText, File $fileInstanceBlock = null, array $additionalArgs = [])

Sets up an image to be chosen for use with a block.

Parameters

string $id

The ID of your form field

string $postname

The name of your database column into which you'd like to save the file ID

string $chooseText
File $fileInstanceBlock
array $additionalArgs

Return Value

string

$html

string video(string $id, string $postname, string $chooseText, File $fileInstanceBlock = null, array $additionalArgs = [])

Sets up a video to be chosen for use with a block.

Parameters

string $id

The ID of your form field

string $postname

The name of your database column into which you'd like to save the file ID

string $chooseText
File $fileInstanceBlock
array $additionalArgs

Return Value

string

$html

string text(string $id, string $postname, string $chooseText, File $fileInstanceBlock = null, array $additionalArgs = [])

Sets up a text file to be chosen for use with a block.

Parameters

string $id

The ID of your form field

string $postname

The name of your database column into which you'd like to save the file ID

string $chooseText
File $fileInstanceBlock
array $additionalArgs

Return Value

string

$html

string audio(string $id, string $postname, string $chooseText, File $fileInstanceBlock = null, array $additionalArgs = [])

Sets up audio to be chosen for use with a block.

Parameters

string $id

The ID of your form field

string $postname

The name of your database column into which you'd like to save the file ID

string $chooseText
File $fileInstanceBlock
array $additionalArgs

Return Value

string

$html

string doc(string $id, string $postname, string $chooseText, File $fileInstanceBlock = null, array $additionalArgs = [])

Sets up a document to be chosen for use with a block.

Parameters

string $id

The ID of your form field

string $postname

The name of your database column into which you'd like to save the file ID

string $chooseText
File $fileInstanceBlock
array $additionalArgs

Return Value

string

$html

string app(string $id, string $postname, string $chooseText, File $fileInstanceBlock = null, array $additionalArgs = [])

Sets up an application to be chosen for use with a block.

Parameters

string $id

The ID of your form field

string $postname

The name of your database column into which you'd like to save the file ID

string $chooseText
File $fileInstanceBlock
array $additionalArgs

Return Value

string

$html