save documentation

This commit is contained in:
William Knauss
2014-02-05 18:41:21 -05:00
parent 0638049fb2
commit c7e1f825a0

View File

@@ -248,12 +248,15 @@ class parseCSV {
} }
/** /**
* Save changes, or new file and/or data * Save
* @param file file to save to * Save changes, or write a new file and/or data
* @param data 2D array with data *
* @param append append current data to end of target CSV if exists * @access public
* @param fields field names * @param [string] $file File location to save to
* @return true or false * @param [array] $data 2D array of data
* @param [bool] $append Append current data to end of target CSV, if file exists
* @param [array] $fields Field names
* @return [bool]
*/ */
public function save ($file = null, $data = array(), $append = false, $fields = array()) { public function save ($file = null, $data = array(), $append = false, $fields = array()) {
if (empty($file)) { if (empty($file)) {