TABLE_PREFIX
TABLE_PREFIX
A prefix for all tables used by this plugin
pluploadAppStoreHead( $doReturn = false, $targets = array())
Generates the js code and initializes the appropriate plupload drop zones for the app store screen. This should only be called from wp->admin_head().
Change the $targets array in here to add/remove target divs as drop zones
| $doReturn | bool FALSE to echo, TRUE to return |
|
| $targets | array An array of target layers. Leave null for all layers. |
getValuesForType(string $type, boolean $allowUnsaved, $htmlEscape = false) : array
Hub for retrieving stored values for various aspects of the app.
| string | $type | The type of information being requested |
| boolean | $allowUnsaved | Set TRUE to have "unsaved" changes override the saved values where they exist |
| $htmlEscape |
handleUploadReceived(array $post, array $files) : string
Feed file uplaods into this for error checking and processing.
Will return "ok" if everything checks out. An error message otherwise.
| array | $post | Contents of the $_POST array |
| array | $files | Contents of the $_FILES array |
processUpload(array $post, array $files) : integer
Perform post-upload processing of an uploaded file
Assumes that all error checking has completed.
Returns the database ID of the newly inserted image
| array | $post | Contents of the $_POST array |
| array | $files | Contents of the $_FILES array |
tagImageWithFile(string $srcPath, string $tagFile) : void
Overlays (currently only the bottom of) an image with another file.
Used for tagging launch images with the sharefaith logo
| string | $srcPath | The full path to the source file |
| string | $tagFile | The full path to file to overlay |
sectionIsComplete(string $section, string $returnType = 'bool') : mixed
Tells the caller whether or not the supplied section has complete inofrmation
If the returnType is 'bool' will return true or false. Returns the string 'yes' or 'no' otherwise.
The 'string' return type is for ajax calls
| string | $section | The section to test |
| string | $returnType | Either 'string' or 'bool' |