/** * Registers a function to be called on init * * This function will be called when Flow inits and imports * things such as the $_GET, $_POST datasets. This permits the developer * to perform actions before assignement to flow such as stripping tags, etc * This method will be given an array and needs to return an array. * * @param mixed $handler a function or an array of class=>method * * @return null */ public static function registerImportHandler($handler) { if (is_callable($handler)) { self::$_importHandler = $handler; } else { Nexista_Error::init('Flow Import Handler is not callable!'); } }