FormBuilderMain::addNew() FormBuilderMain::addNew(string $formName) FormBuilderMain::addNew(string $formName) | FormBuilderForm | Add a new form with the given name | |
FormBuilderMain::count() FormBuilderMain::count() FormBuilderMain::count() | (nothing) | Return number of forms here, per Countable interface | |
FormBuilderMain::countEntries() FormBuilderMain::countEntries($form) FormBuilderMain::countEntries($form) | int | Return the number of entries for the given form ID | |
FormBuilderMain::delete() FormBuilderMain::delete($form) FormBuilderMain::delete($form) | bool | Delete the given form | |
FormBuilderMain::entryToForm() FormBuilderMain::entryToForm($entry) FormBuilderMain::entryToForm($entry) | bool FormBuilderForm | Given an entry array or ID return the FormBuilderForm object that it belongs to | |
FormBuilderMain::error() FormBuilderMain::error(string $str) FormBuilderMain::error(string $str) | (nothing) | Error message | |
FormBuilderMain::exportJSON() FormBuilderMain::exportJSON($id) FormBuilderMain::exportJSON($id) | string | Return the JSON schema for the given form ID | |
FormBuilderMain::findEntries() FormBuilderMain::findEntries(string $keywords) FormBuilderMain::findEntries(string $keywords, string $operator = '*=', $form = 0) | array | Find form entries across all forms (or on specific form if specified) | |
FormBuilderMain::form() FormBuilderMain::form($form) FormBuilderMain::form($form, bool $throw = true) | FormBuilderForm bool | Convert given value to FormBuilderForm if it isn’t already | |
FormBuilderMain::formID() FormBuilderMain::formID($formID) FormBuilderMain::formID($formID, bool $throw = true) | int | Convert given value to form ID if is isn’t already | |
FormBuilderMain::formName() FormBuilderMain::formName($formName) FormBuilderMain::formName($formName, bool $throw = true) | int | Convert given value to form name if is isn’t already | |
FormBuilderMain::frameworksPath() FormBuilderMain::frameworksPath() FormBuilderMain::frameworksPath() | string | Return the path where frameworks are stored | |
FormBuilderMain::frameworksURL() FormBuilderMain::frameworksURL() FormBuilderMain::frameworksURL() | string | Return the URL where frameworks are stored | |
FormBuilderMain::get() FormBuilderMain::get($key) FormBuilderMain::get($key) | FormBuilderForm null | Retrieve a form (alias of load) | |
FormBuilderMain::getDatabase() FormBuilderMain::getDatabase() FormBuilderMain::getDatabase() | PDO WireDatabasePDO | Get the $database API var | |
FormBuilderMain::getEmbedVersion() FormBuilderMain::getEmbedVersion() FormBuilderMain::getEmbedVersion($v = '') | (nothing) | | |
FormBuilderMain::getEntry() FormBuilderMain::getEntry(int $entryID) FormBuilderMain::getEntry(int $entryID, $form = 0) | array bool | Get a form entry by ID | |
FormBuilderMain::getFileFromKey() FormBuilderMain::getFileFromKey(string $key) FormBuilderMain::getFileFromKey(string $key) | bool string | Retrieve a filename from a transportable key | |
FormBuilderMain::getFileKey() FormBuilderMain::getFileKey($formID, int $entryID, string $filename) FormBuilderMain::getFileKey($formID, int $entryID, string $filename) | bool string | Generate a transportable key for the given filename within a form and entry | |
FormBuilderMain::getFilePath() FormBuilderMain::getFilePath($form, int $entryID, string $filename) FormBuilderMain::getFilePath($form, int $entryID, string $filename) | bool | Get full disk path for given file basename | |
FormBuilderMain::getFileURL() FormBuilderMain::getFileURL($formID, int $entryID, string $filename) FormBuilderMain::getFileURL($formID, int $entryID, string $filename) | bool string | Return a URL where the given file can be viewed | |
FormBuilderMain::getFilesPath() FormBuilderMain::getFilesPath() FormBuilderMain::getFilesPath(bool $tmp = false, bool $create = true) | string | Return path that FormBuilder uses for storing files | |
FormBuilderMain::getFormNames() FormBuilderMain::getFormNames() FormBuilderMain::getFormNames(int $id = 0) | array string | Get names for all forms indexed by id | |
FormBuilderMain::getFramework() FormBuilderMain::getFramework($form) FormBuilderMain::getFramework($form, bool $fallback = true) | FormBuilderFramework null | Get the framework used by the given $form | |
FormBuilderMain::getHelpers() FormBuilderMain::getHelpers($for) FormBuilderMain::getHelpers($for, bool $getDirs = true) | array | Get all 'themes' or 'frameworks' files | |
FormBuilderMain::getIterator() FormBuilderMain::getIterator() FormBuilderMain::getIterator() | ArrayObject | Make this module iterable, as required by the IteratorAggregate interface | |
FormBuilderMain::helperPath() FormBuilderMain::helperPath(string $for) FormBuilderMain::helperPath(string $for, string $item = '') | string | Get path for 'themes' or 'frameworks' helpers | |
FormBuilderMain::helperURL() FormBuilderMain::helperURL(string $for) FormBuilderMain::helperURL(string $for, string $item = '') | string | Get URL for 'themes' or 'frameworks' helpers | |
FormBuilderMain::importJSON() FormBuilderMain::importJSON($id, string $json) FormBuilderMain::importJSON($id, string $json) | bool | Import the given JSON schema for the given form | |
FormBuilderMain::isForm() FormBuilderMain::isForm($id) FormBuilderMain::isForm($id) | bool | Given a form ID or name, returns true if is used by a form, false if not | |
FormBuilderMain::isReservedName() FormBuilderMain::isReservedName(string $name) FormBuilderMain::isReservedName(string $name) | bool | Returns whether or not the given $name may be used or a form or field name | |
FormBuilderMain::isValidLicense() FormBuilderMain::isValidLicense() FormBuilderMain::isValidLicense(string $k = '') | bool | Returns whether the given license key is valid for the domain its running on | |
FormBuilderMain::load() FormBuilderMain::load($id) FormBuilderMain::load($id) | FormBuilderForm array null | Retrieve a form by $id or $name or boolean true to return all forms | |
FormBuilderMain::parseFilesPath() FormBuilderMain::parseFilesPath(string $path) FormBuilderMain::parseFilesPath(string $path) | string | Given a path with a potential {config.paths.$key} in it, parse it to an actual runtime path | |
FormBuilderMain::save() FormBuilderMain::save(FormBuilderForm $form) FormBuilderMain::save(FormBuilderForm $form) | bool | Save the given $form | |
FormBuilderMain::saveEntry() FormBuilderMain::saveEntry(array $entry) FormBuilderMain::saveEntry(array $entry, $form = 0) | bool int | Save a form entry | |
FormBuilderMain::themesPath() FormBuilderMain::themesPath() FormBuilderMain::themesPath(string $theme = '') | string | Return the path where themes are stored | |
FormBuilderMain::themesURL() FormBuilderMain::themesURL() FormBuilderMain::themesURL(string $theme = '') | string | Return the URL where themes are stored | |
FormBuilderMain::viewFile() FormBuilderMain::viewFile(string $key) FormBuilderMain::viewFile(string $key) | bool | Outputs the given file, must be located under getFilesPath() | |
FormBuilderMain::wire() FormBuilderMain::wire() FormBuilderMain::wire($key = '') | ProcessWire Wire null | ProcessWire API access | |