Class MatukioControllerImport

since 2.2.0
package MatukioEvents

 Methods

Construct

__construct() 

Cancels the import

cancel() : void

Make the import from Event Booking

importEb() : void

Import events from CSV file

importcsv() : void

Exceptions

\Exception

Imports events from a ics file

importics() : void

Exceptions

\Exception

Inserts a category

insertCategory(object $category) : integer

Parameters

$category

object
  • The cat object

Returns

integer

Converts a CSV file to an array

csv_to_array(string $filename = '', string $delimiter = ',', string $enclosure = '"', string $escape = "\\") : array | boolean
since 4.0.0

Parameters

$filename

string

Filename

$delimiter

string

Delimiter (coma by default)

$enclosure

string

Enclosure (double quotes by default)

$escape

string

Escape sign (Backslash by default)

Returns

arrayboolean

Converts an ics file to array

icsToArray(string $paramUrl) : mixed

Parameters

$paramUrl

string
  • The saved file on the server

Returns

mixed