wvulibraries / mfcs

Archival and Preservation Digital Asset Management System.
Other
8 stars 4 forks source link

Validate function #117

Closed MichaelRBond closed 8 years ago

MichaelRBond commented 8 years ago

We need a validate function for the top of most of the files. This will help reduce duplicate code in most files.

mfcsPerms::validate($objectID=TRUE,$formID=TRUE,$authType=viewer,$metadata=FALSE,$productionReady=TRUE,$objectID_required=FALSE,$object_in_form = TRUE)

$authtype = viewer | editor | admin | FALSE

If a value is TRUE / Set than it tests for validity or condition.

returns array([true|false],"result string");