SproutCMS

This is the code documentation for the SproutCMS project

function fileSelector()

A file selection field, for use in the admin only.

Usage

string Fb::fileSelector ( string $name , array $attrs , array $options );

Arguments

  1. string $name
    Field name
  2. array $attrs
    Unused.
  3. array $options
    Includes the following:
           'filter': (int) One of the filters, e.g. FileConstants::TYPE_IMAGE
           'required': (bool) true if the field is required
           'req_category': (int) Category field required. Default of 1: required. 0: not required

Return value

  • string
    HTML