Blesta Source Documentation

CsvParser

Generic CSV Parser Migrator.

Table of Contents

Methods

getColumns() Get all data columns.
getColumnsSelect() Get all data columns prepared for a select form.
getRows() Get all data rows.
validateData() Check if the data is valid.
Methods

getColumns()

Get all data columns.

public getColumns(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

An array containing the CSV columns, false if an error occurs

getColumnsSelect()

Get all data columns prepared for a select form.

public getColumnsSelect(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

An array containing the CSV columns, false if an error occurs

getRows()

Get all data rows.

public getRows(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

An array containing the CSV rows, false if an error occurs

validateData()

Check if the data is valid.

public validateData(string $data) : bool
Parameters
$data : string

The CSV data to validate

Return values
bool

True if the data is valid

Tags
subpackage

plugins.import

copyright

Copyright (c) 2010, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results