Constructor
object
RepositoryImporter
(
String $filepath,
object Id $repositoryId, [
mixed $dieOnError =
false])
-
object Id
$repositoryId
-
String
$filepath: filename
adds an error to the error array
adds an error to the error array
void
addGoodAssetId
(
mixed $goodAssetId,
String $error)
Iterates through the building of the assets
boolean
assetBuildingIteration
(mixed $assetIterator, mixed $parent, mixed $buildOrderedSet)
builds asset in repository from assetinfo and records from recordlist
asset
buildAsset
(array $info, array 1)
-
array
1: recordList
-
array
$info: assetInfo
Iterates through the assets and gathers all required information for creating assets
iterator
getAllAssetsInfoIterator
(mixed $assetIterator)
Gets whether or not to build an ordered list
Should be overridden in subclasses that allow child assets
bool
getBuildOrderedSet
(obj $asset)
Redefined in descendants as:
-
: get whether or not to build ordered set from children
gets error array
array
getErrors
()
gets created assset ids array
array
getGoodAssetIds
()
creates appropriate object from given ids
object mixed
getPartObject
(
Id $structureId,
Id $partStructureId,
String $part)
checks for built Assets
boolean
hasAssets
()
checks for errors
boolean
hasErrors
()
obj
import
([
String $decompress =
true],
object Id 1)
-
object Id
1: repositoryId
-
String
$decompress: filename
tries to match the given array with partstructure in the given structure
false
matchPartStructures
(mixed $schema, mixed $partArray)
tries to match given string to a schema with the same name.
false
matchSchema
(mixed $schema, mixed $repository)
Parses the archive file according to its type i.e. properly
void
parse
()
Print the AssetIds for Assets created properly by the importer
void
printErrorMessages
(array $goodAssetIds)
Print the AssetIds for Assets created properly by the importer
void
printGoodAssetIds
(array $goodAssetIds)
Set An asset that will the parent of imported assets
void
setParent
(object Asset $asset)