core/model/modx/import/modimport.class.php

Show: inherited
Table of Contents

Package
modx  
Subpackage
import  

\modImport

Package: modx\import

Provides common functions for importing content into a modX repository.

Children
\modStaticImport

Properties

Propertypublic\modX  $modx= 'null'

A reference to the modX instance
Default valuenullDetails
Type
\modX
Propertypublicarray  $properties= 'array ()'

A collection of properties that are being used in this import
Default valuearray ()Details
Type
array
Propertypublicarray  $results= 'array()'

A collection of results in an array
Default valuearray()Details
Type
array

Methods

methodpublic__construct( \modX $modx ) : void

Parameters
Name Type Description
$modx \modX

A reference to the modX instance

methodpublicgetFileContent( string $file ) : string

Gets the buffered content of a file

Parameters
Name Type Description
$file string

An absolute path to the file

Returns
Type Description
string
methodpublicgetFileContentType( \$extension $extension ) : string

Gets the content type of a file

Parameters
Name Type Description
$extension \$extension

The extension of the file

Returns
Type Description
string The content-type of the file
methodpublicgetFiles( array $filesfound, string $directory, array $listing = array (), int $count = 0 ) : array

Parameters
Name Type Description
$filesfound array

A reference to an array of file locations

$directory string

The directory to import from

$listing array

A listing of imported files

$count int

The current count iteration

Returns
Type Description
array
methodpubliclog( string $message ) : void

Log a message to the results array

Parameters
Name Type Description
$message string

A string message to log

Documentation was generated by DocBlox 0.18.1.