Confetti Bits

cb-transactions-imports.php

Table of Contents

Functions

cb_import_bits()  : mixed
CB Import Bits
cb_importer()  : mixed
Confetti Bits Importer
cb_import_bda()  : mixed
CB Import BDA
cb_bda_importer()  : mixed
CB BDA Importer

Functions

cb_import_bits()

CB Import Bits

cb_import_bits([mixed $args = [] ]) : mixed

This is going to allow an admin user to bulk import Confetti Bits transactions from a CSV file.

Parameters
$args : mixed = []
Tags
since
1.0.0

cb_importer()

Confetti Bits Importer

cb_importer() : mixed

This is going to allow an admin user to bulk import a whole list of Confetti Bits transactions using PHP's built-in csv parser. We've included a lot of sanitization and error-handling here, but it could always be improved upon.

Some explanatory comments throughout, but the gist is: Make sure it's a post request, on the confetti bits page, from the import panel Get the wp importer Set the redirect path so we can P-R-G after it's finished, Set some variables to display after the import Set where the files go Open the filestream Start the import process Read each line, validate each field Make sure nothing insane is going into our database Compile the feedback and shove it into a session token Redirect Get the messages, kick back and enjoy

Tags
since
1.0.0

cb_import_bda()

CB Import BDA

cb_import_bda([mixed $args = '' ]) : mixed

This is going to allow an admin user to bulk import birthdays and anniversaries from a CSV file.

Parameters
$args : mixed = ''
Tags
since
1.0.0

cb_bda_importer()

CB BDA Importer

cb_bda_importer() : mixed

This is going to allow an admin user to bulk import a whole list of birthdays and anniversaries using PHP's built-in csv parser.

Some explanatory comments throughout, but the gist is: Make sure it's a post request, on the confetti bits page, from the import panel Get the wp importer Set the redirect path so we can P-R-G after it's finished, Set some variables to display after the import Set where the files go Open the filestream Start the import process Read each line, validate each field Make sure nothing insane is going into our database Compile the feedback and shove it into a session token Redirect Get the messages, kick back and enjoy

Tags
since
1.0.0

        
On this page

Search results