eZPublish(LegacyStack)  5.1
ezcsvimport.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Variables

 $class = eZContentClass::fetchByIdentifier( $createClass )
 
 $cli = eZCLI::instance()
 
 $createClass = $options['class']
 
 $creator = $options['creator']
 
 $csvLineLength = 100000
 
if(!$class) $fp = @fopen( $inputFileName, "r" )
 
 $inputFileName = $options['arguments'][1]
 
 $node = eZContentObjectTreeNode::fetch( $nodeID )
 
if(count($options['arguments'])< 2) $nodeID = $options['arguments'][0]
 
 $options
 
if(!$node) $parentObject = $node->attribute( 'object' )
 
 $script
 
if($options['storage-dir']) else
 

Variable Documentation

$class = eZContentClass::fetchByIdentifier( $createClass )

Referenced by eZContentOperationCollection\addAssignment(), eZXMLSchema\addAvailableClass(), eZISBN10To13Converter\addClass(), eZContentClassPackageHandler\addClass(), eZSiteInstaller\addClassAttributes(), eZContentClassGroup\appendClass(), eZObjectRelationListType\appendObject(), browse(), eZUser\canAssignSectionToClassList(), eZContentObject\canCreateClassList(), eZContentObjectTreeNode\canCreateClassList(), eZContentClass\canInstantiateClassList(), eZContentFunctionCollection\canInstantiateClassList(), eZContentFunctionCollection\checkAccess(), eZContentUpload\checkAccess(), checkNodeActions(), checkNodeAssignments(), checkNodeMovements(), checkRelationActions(), eZAutoloadGenerator\classCanBeAdded(), eZContentClassPackageHandler\classDOMTree(), eZAutoloadGenerator\classExistsInArray(), eZContentObjectTreeNode\classIsContainer(), eZContentObjectTreeNode\className(), eZContentObject\copyVersion(), eZObjectRelationListType\createInstance(), eZObjectRelationListType\createNewObject(), eZContentObject\createWithNodeAssignment(), eZObjectRelationListType\customObjectAttributeHTTPAction(), eZTemplateLocaleOperator\dateTimeTransformation(), eZContentUpload\detectLocations(), eZAutoloadGenerator\dumpArray(), eZMultiplexerType\execute(), eZContentObjectEditHandler\executeInputHandlers(), eZWebDAVContentBackend\fetchNodeInfo(), eZClassFunctionCollection\fetchOverrideTemplateList(), eZUser\fetchUserClassNames(), eZUser\fetchUserGroupClassNames(), generateNodeViewTemplate(), generateObjectViewTemplate(), eZContentClassPackageCreator\generatePackageInformation(), eZContentObjectTreeNode\getClassesJsArray(), eZWebDAVContentBackend\getContentNodeData(), eZContentUpload\handleLocalFile(), eZContentClassPackageHandler\handleParameters(), eZContentUpload\handleUpload(), eZContentClassPackageHandler\install(), eZShopAccountHandler\instance(), eZConfirmOrderHandler\instance(), eZNotificationTransport\instance(), eZWebDAVContentBackend\isObjectFolder(), eZTemplate\loadAndRegisterFunctions(), eZTemplate\loadAndRegisterOperators(), eZTextFileUser\loginUser(), eZAutoloadGenerator\logIssue(), eZBinaryFile\metaData(), eZWordToImageOperator\modify(), eZPackageOperator\modify(), eZTemplateImageOperator\modify(), eZTemplateLocaleOperator\modify(), eZContentUpload\objectFileInfo(), eZObjectRelationListType\onPublish(), eZShopFunctions\productClassList(), eZContentUpload\publishObject(), eZLDAPUser\publishUpdateUser(), eZClassFunctions\removeGroup(), eZContentObjectTreeNode\removeSubtrees(), eZContentClass\removeTemporary(), eZContentOperationCollection\setObjectStatusPublished(), eZRSSEditFunction\storeRSSExport(), eZSiteInstaller\swapNodes(), eZInformationCollection\typeForObject(), eZContentClassPackageHandler\uninstall(), eZContentObjectEditHandler\validateInputHandlers(), eZContentClass\versionHistoryLimit(), and eZContentObjectVersion\versionName().

$cli = eZCLI::instance()
$createClass = $options['class']
$csvLineLength = 100000
$inputFileName = $options['arguments'][1]
$node = eZContentObjectTreeNode::fetch( $nodeID )
if (count($options['arguments'])< 2) $nodeID = $options['arguments'][0]
$options
Initial value:
= $script->getOptions( "[class:][creator:][storage-dir:]",
"[node][file]",
array( 'node' => 'parent node_id to upload object under',
'file' => 'file to read CSV data from',
'class' => 'class identifier to create objects',
'creator' => 'user id of imported objects creator',
'storage-dir' => 'path to directory which will be added to the path of CSV elements' ),
false,
array( 'user' => true ))
$script
Definition: adddefaultstates.php:22
$script
Initial value:
= eZScript::instance( array( 'description' => ( "eZ Publish CSV import script\n\n" .
"\n" .
"\n" .
"\n" .
"\n" .
"" ),
'use-session' => false,
'use-modules' => true,
'use-extensions' => true ) )
static instance($settings=array())
Returns a shared instance of the eZScript class.
Definition: ezscript.php:1084
if ($options['storage-dir']) else
Initial value:
{
$storageDir = ''