Quote from: BobRay at Oct 01, 2009, 01:19 AM
1. What the heck is a ’file’ validator and how does it work?
Same as a file resolver, except it would work with files before the object is saved.
Quote from: BobRay at Oct 01, 2009, 01:19 AM
2. In a ’php’ validator, how could you check to make sure that the current user is the main admin?
If you’re not installing from the command line, you can check $transport->xpdo->user as always; just best to validate that $transport->xpdo is a modX class instance before assuming there will be a user object (i.e. is_a($transport->xpdo, ’modX’)).