model/modx/import/modimport.class.php

Classes 
package
modx
subpackage
import
Classes
modImport

Description

Provides common functions for importing content into a modX repository.

\modImport

package
modx
subpackage
import
Properties
$modx
$properties
$results
Methods
__construct
getFileContent
getFileContentType
getFiles
log

Description

Provides common functions for importing content into a modX repository.

Properties

$modxA reference to the modX instance

\modX $modx = 'null'

Details

\modX
A reference to the modX instance
visibility
public
default
null
final
false
static
false

$propertiesA collection of properties that are being used in this import

array $properties = 'array'

Details

array
A collection of properties that are being used in this import
visibility
public
default
array
final
false
static
false

$resultsA collection of results in an array

array $results = 'array'

Details

array
A collection of results in an array
visibility
public
default
array
final
false
static
false

Methods

__construct

__construct( \modX $modx ) :

Arguments
$modx
\modX
A reference to the modX instance
Details
visibility
public
final
false
static
false

getFileContent

getFileContent( string $file ) : string

Gets the buffered content of a file

Arguments
$file
string
An absolute path to the file
Output
string
Details
visibility
public
final
false
static
false

getFileContentType

getFileContentType( \$extension $extension ) : string

Gets the content type of a file

Arguments
$extension
\$extension
The extension of the file
Output
string
The content-type of the file
Details
visibility
public
final
false
static
false

getFiles

getFiles( array $filesfound, string $directory, array $listing = array, int $count = 0 ) : array

Arguments
$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
Output
array
Details
visibility
public
final
false
static
false

log

log( string $message ) : void

Log a message to the results array

Arguments
$message
string
A string message to log
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox 0.11.2.