$controllerInstance = $resolverInstance->getControllerInstance();
// @TODO Add some more pre/post filters to the controller
- $controllerInstance->addPreFilter(ObjectFactory::createObjectByName('UserNameValidatorFilter'));
+ $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_validator'));
// Return the prepared instance
return $commandInstance;
* Create a directory pointer based on the given path. The path will also
* be verified here.
*
- * @param $pathName The path name we shall pass
+ * @param $pathName The path name we shall pass
* to opendir()
- * @param $inConstructor If we are in de/con-structor
+ * @param $inConstructor If we are in de/con-structor
* or from somewhere else
- * @throws PathIsEmptyException If the provided path name
+ * @throws PathIsEmptyException If the provided path name
* is empty
* @throws InvalidPathStringException If the provided path name is
* not a string
* not valid
* @throws PathReadProtectedException If the provided path name is
* read-protected
- * @throws DirPointerNotOpened If opendir() returns not a
+ * @throws DirPointerNotOpened If opendir() returns not a
* directory resource
- * @return $pointerInstance A prepared instance of
+ * @return $pointerInstance A prepared instance of
* FrameworkDirectoryPointer
*/
public final static function createFrameworkDirectoryPointer ($pathName, $inConstructor = false) {
$result = $wrapperInstance->doSelectByCriteria($criteriaInstance);
// Search for it
- if ($result->next()) {
- // Entry found, so all is fine
- $exists = true;
- }
+ if (!$result->next()) {
+ // Entry not found
+ $exists = false;
+ } // END - if
// Return the status
return $exists;
// CFG: FILE-OUTPUT-STREAM
$cfg->setConfigEntry('file_output_stream', "FileIoStream");
+// CFG: USERNAME-VALIDATOR
+$cfg->setConfigEntry('username_validator', "UserNameValidatorFilter");
+
// [EOF]
?>