eZPublish  3.8
ezsqldumpschema.php File Reference

Functions

if(strlen(trim($type))==0) eZTriedDatabaseString ($database, $host, $user, $password, $socket)
 

Variables

 $cli =& eZCLI::instance()
 
 $db
 
 $dbSchema = eZDBSchema::instance( $db )
 
if($options['output-types']) $dbschemaParameters
 
 $host = $options['host']
 
 $includeData = false
 
switch(count($options['arguments'])) $includeSchema = true
 
 $options
 
 $outputType = 'serialized'
 
 $parameters
 
 $password = $options['password']
 
 $script
 
 $socket = $options['socket']
 
 $type = $options['type']
 
 $user = $options['user']
 
if(file_exists($database) and
is_file($database)) 
else
 
if(!is_object($db)) if (!$db or!$db->isConnected())
 

Function Documentation

if (strlen(trim($type))==0) eZTriedDatabaseString (   $database,
  $host,
  $user,
  $password,
  $socket 
)

Referenced by connectToDatabase().

Variable Documentation

$cli =& eZCLI::instance()
$db
Initial value:
true )
$parameters
Definition: ezsqldumpschema.php:239
& instance($databaseImplementation=false, $databaseParameters=false, $forceNewInstance=false)
Definition: ezdb.php:148
$type
Definition: ezsqldumpschema.php:76
$dbSchema = eZDBSchema::instance( $db )
if ($options['output-types']) $dbschemaParameters
Initial value:
= array( 'schema' => $includeSchema,
'data' => $includeData,
'format' => $options['format'] ? $options['format'] : 'generic',
'meta_data' => $options['meta-data'],
'table_type' => $options['table-type'],
'table_charset' => $options['table-charset'],
'compatible_sql' => $options['compatible-sql'],
'allow_multi_insert' => $options['allow-multi-insert'],
'diff_friendly' => $options['diff-friendly'] )
switch(count($options['arguments'])) $includeSchema
Definition: ezsqldumpschema.php:105
$includeData
Definition: ezsqldumpschema.php:106
$options
Definition: clusterize.php:143
$host = $options['host']
$options
$outputType = 'serialized'
$parameters
Initial value:
= array( 'use_defaults' => false,
'server' => $host,
'user' => $user,
'password' => $password,
'database' => $database )
$user
Definition: ezconvertmysqltabletype.php:57
$password
Definition: ezconvertmysqltabletype.php:59
$database
Definition: ezconvertmysqltabletype.php:60
$host
Definition: ezconvertmysqltabletype.php:56

Referenced by eZDBPackageHandler\add(), eZInstallScriptPackageHandler\add(), eZFilePackageHandler\add(), eZExtensionPackageHandler\add(), eZContentClassPackageHandler\add(), eZContentObjectPackageHandler\add(), eZStaticCache\addAction(), eZPHPCreator\addCodePiece(), eZPHPCreator\addComment(), eZPHPCreator\addDefine(), eZPDFTable\addDocSpecFunction(), eZPHPCreator\addInclude(), eZPHPCreator\addMethodCall(), eZPHPCreator\addVariable(), eZPHPCreator\addVariableUnset(), eZPHPCreator\addVariableUnsetList(), eZImageManager\analyzeImage(), eZImageObject\appendLayer(), eZCodeTemplate\apply(), eZTemplateArrayOperator\arrayTrans(), eZTemplateArithmeticOperator\basicTransformation(), eZTemplateCompiler\boundVariableName(), eZContentBrowse\browse(), eZContentCache\cachePathInfo(), eZImageObject\calculatePosition(), eZTemplateCompiler\calculateVariableNodeStatistics(), eZPDFTable\callFrameLine(), eZTemplateArithmeticOperator\castTransformation(), eZTemplateLogicOperator\chooseTransformation(), eZContentObject\cleanupInternalDrafts(), eZTemplateArrayOperator\compareTrans(), eZTemplateCompiler\compileTemplate(), eZTemplateTextOperator\concatTransformation(), eZTemplateControlOperator\condTransform(), eZImageManager\convert(), eZWorkflowProcess\create(), eZNodeAssignment\create(), eZTemplateNodeTool\createAssignFromOutputVariableNode(), eZTemplateNodeTool\createCodePieceNode(), eZTemplateNodeTool\createErrorNode(), eZImageManager\createImageAlias(), eZOperationMemento\createKey(), eZWorkflowProcess\createKey(), eZTemplateNodeTool\createNamespaceChangeNode(), eZTemplateNodeTool\createNamespaceRestoreNode(), eZTemplateNodeTool\createOperatorElement(), eZTemplateNodeTool\createOutputVariableDecreaseNode(), eZTemplateNodeTool\createOutputVariableIncreaseNode(), eZHTTPTool\createRedirectUrl(), eZTemplateNodeTool\createResourceAcquisitionNode(), eZTemplateNodeTool\createSpacingDecreaseNode(), eZTemplateNodeTool\createSpacingIncreaseNode(), eZTemplateNodeTool\createVariableNode(), eZTemplateNodeTool\createVariableUnsetNode(), eZTemplateNodeTool\createWarningNode(), eZTemplateNodeTool\createWriteToOutputVariableNode(), eZModule\currentAction(), eZModule\currentRedirectionURI(), eZTemplateCompiler\currentTextName(), eZContentObjectAttribute\customHTTPAction(), eZTemplateStringOperator\customMapTransformation(), eZObjectRelationType\customObjectAttributeHTTPAction(), eZObjectRelationListType\customObjectAttributeHTTPAction(), eZTemplateLocaleOperator\dateTimeTransformation(), eZTemplateArithmeticOperator\decIncTransformation(), eZCodeMapper\decodeCommand(), eZTemplateCompiler\decreaseCurrentTextName(), eZWaitUntilDateType\execute(), eZSimpleShippingType\execute(), eZApproveType\execute(), eZStaticCache\executeActions(), eZModuleOperationInfo\executeBody(), eZContentCache\exists(), eZPDFTable\extractFunction(), eZTemplateNodeTool\extractNodes(), eZPDFTable\extractParameters(), eZTemplateArrayOperator\extractTrans(), eZAppendWarningItem(), eZCollaborationItemHandler\eZCollaborationItemHandler(), eZDBInterface\eZDBInterface(), eZMySQLDB\eZMySQLDB(), eZNullDB\eZNullDB(), eZPackage\eZPackage(), eZPackageHandler\eZPackageHandler(), eZPostgreSQLDB\eZPostgreSQLDB(), eZReferenceDocument(), eZSOAPRequest\eZSOAPRequest(), eZTemplateCompiledLoop\eZTemplateCompiledLoop(), eZContentFunctionCollection\fetchContentSearch(), eZCollaborationItemMessageLink\fetchItemCount(), eZCollaborationItemMessageLink\fetchItemList(), eZURLFunctionCollection\fetchList(), eZTrigger\fetchList(), eZURL\fetchList(), eZContentClassAttribute\fetchList(), eZCollaborationItem\fetchList(), eZContentObjectTreeNode\fetchList(), eZURLFunctionCollection\fetchListCount(), eZURL\fetchListCount(), eZCollaborationItem\fetchListCount(), eZCollaborationItem\fetchListTool(), eZUser\fetchLoggedInList(), eZURLObjectLink\fetchObjectVersionList(), eZCollaborationItemParticipantLink\fetchParticipantList(), eZCollaborationItemParticipantLink\fetchParticipantMap(), eZTemplateExecuteOperator\fetchTransform(), eZExtension\findExtensionType(), eZModule\forward(), eZTemplateSetFunction\functionTemplateStatistics(), eZTemplateSectionFunction\functionTemplateStatistics(), eZTemplateCompiler\generatePHPCode(), eZTemplateCompiler\generatePHPCodeChildren(), eZTemplateCompiler\generateVariableDataCode(), eZTemplateLocaleOperator\getTimeTransformation(), eZImageObject\getTransparency(), eZImageObject\getTransparencyPercent(), eZCharTransform\groupCommands(), eZSubTreeHandler\handle(), eZCollaborationNotificationHandler\handle(), eZCollaborationNotificationHandler\handleCollaborationEvent(), eZCollaborationItemHandler\handleCollaborationEvent(), eZModule\handleError(), eZURL\handleList(), eZSubTreeHandler\handlePublishEvent(), eZTemplateDigestOperator\hashTransformation(), eZMail\headers(), eZMail\headerText(), eZMail\headerTextList(), eZi18nOperator\i18nTrans(), eZTemplateCompiler\increaseCurrentTextName(), eZTemplateTextOperator\indentTransformation(), eZImageObject\initializeAxis(), eZStepCreateSites\initializePackage(), eZURLOperator\iniTrans(), eZFilePackageHandler\install(), eZDBPackageHandler\install(), eZExtensionPackageHandler\install(), eZContentObjectPackageHandler\installFetchAliases(), eZContentObjectPackageHandler\installOverrides(), eZTemplateTypeOperator\isTransform(), eZCollaborationGroup\itemCount(), eZCollaborationGroup\itemList(), eZTemplateLocaleOperator\l10nTransformation(), loadDatabaseSchema(), eZTemplateLogicOperator\logicalComparisonTransformation(), eZContentOperationCollection\loopNodeAssignment(), eZTemplateLocaleOperator\makeDateTimeTransformation(), eZTemplateArrayOperator\mergeTrans(), eZTemplateArithmeticOperator\minMaxTransformation(), eZPDF\modify(), eZTemplateLocaleOperator\modify(), eZTemplateStringOperator\modify(), eZTemplateArithmeticOperator\modTransformation(), eZSearchLog\mostFrequentPhraseArray(), eZTemplateLogicOperator\negateTransformation(), eZTemplateNl2BrOperator\nl2brTransformation(), eZTemplateUnitOperator\operatorTransform(), eZTemplateStringOperator\phpMapTransformation(), eZTemplatePHPOperator\phpOperatorTransformation(), eZKernelOperator\preferencesTransformation(), eZImageObject\prependLayer(), eZEXIFImageAnalyzer\process(), eZGIFImageAnalyzer\process(), eZTemplateBlockFunction\process(), eZTemplateDebugFunction\process(), eZTemplateSetFunction\process(), eZTemplateSectionFunction\process(), eZTemplateArithmeticOperator\randTransformation(), eZModule\redirect(), eZHTTPTool\redirect(), eZModule\redirectionURI(), eZModule\redirectionURIForModule(), eZModule\redirectModule(), eZModule\redirectToView(), eZContentCache\restore(), eZTemplateArithmeticOperator\romanTransformation(), eZTemplateArithmeticOperator\roundTransformation(), eZModule\run(), eZModule\runHooks(), eZTrigger\runTrigger(), eZMailNotificationTransport\send(), eZSMTPTransport\sendMail(), eZCollaborationNotificationHandler\sendMessage(), eZSubTreeHandler\sendMessage(), eZContentObjectAttribute\setInputParameters(), eZPackage\setParameters(), eZContentObjectAssignmentHandler\setupAssignments(), eZContentObjectAttribute\setValidationParameters(), eZContentCache\store(), eZCollaborationGroup\subTree(), eZTemplateSequenceFunction\templateNodeSequenceCreate(), eZTemplateCacheFunction\templateNodeTransformation(), eZObjectForwarder\templateNodeTransformation(), eZTemplateMenuFunction\templateNodeTransformation(), eZTemplateToolbarFunction\templateNodeTransformation(), eZTemplateIncludeFunction\templateNodeTransformation(), eZTemplateDoFunction\templateNodeTransformation(), eZTemplateWhileFunction\templateNodeTransformation(), eZTemplateIfFunction\templateNodeTransformation(), eZTemplateForFunction\templateNodeTransformation(), eZTemplateDefFunction\templateNodeTransformation(), eZTemplateForeachFunction\templateNodeTransformation(), eZTemplateSequenceFunction\templateNodeTransformation(), eZTemplateBlockFunction\templateNodeTransformation(), eZTemplateDebugFunction\templateNodeTransformation(), eZTemplateSwitchFunction\templateNodeTransformation(), eZTemplateSetFunction\templateNodeTransformation(), eZTemplateSectionFunction\templateNodeTransformation(), testPHPIni(), eZTemplateLogicOperator\trueFalseTransformation(), eZPersistentObject\updateObjectList(), eZContentUpload\upload(), eZURLOperator\urlTransformation(), eZContentObject\validateInput(), eZObjectRelationListType\validateObjectAttributeHTTPInput(), eZCharTransform\varExportInternal(), eZPHPCreator\variableText(), eZContentObject\versions(), eZTemplateStringOperator\washTransformation(), eZPHPCreator\writeCodePiece(), eZPHPCreator\writeDefine(), eZPHPCreator\writeInclude(), eZPHPCreator\writeMethodCall(), eZPHPCreator\writeVariableUnset(), and eZPHPCreator\writeVariableUnsetList().

$password = $options['password']
$script
Initial value:
=& eZScript::instance( array( 'description' => ( "eZ publish SQL Schema dump\n\n" .
"Dump sql schema to specified file or standard output\n".
"ezsqldumpschema.php --type=mysql --user=root stable33 schema.sql" ),
'use-session' => false,
'use-modules' => true,
'use-extensions' => true ) )
& instance($settings=array())
Definition: ezscript.php:1011
$socket = $options['socket']
$type = $options['type']

Referenced by accessType(), eZPHPCreator\addInclude(), eZMultiPrice\addPrice(), eZInformationCollection\allowAnonymous(), eZUser\authenticateHash(), eZImageObject\calculateAxisPlacement(), eZDateTimeType\classAttributeContent(), eZSearchEngine\constructMethodName(), eZPgsqlSchema\convertFromStandardType(), eZPgsqlSchema\convertToStandardType(), eZLocale\countryFile(), eZPHPMath\create(), eZMultiPriceData\create(), eZNotificationEvent\create(), eZCollaborationSimpleMessage\create(), eZObjectRelationListType\createClassContentStructure(), eZUser\createHash(), eZCollaborationItem\createNotificationEvent(), eZMultiPrice\createPrice(), eZModule\currentAction(), eZObjectRelationType\customObjectAttributeHTTPAction(), eZObjectRelationListType\customObjectAttributeHTTPAction(), eZSOAPResponse\decodeDataTypes(), eZMultiPrice\decodeDOMTree(), eZContentCacheManager\dependencyInfo(), eZTemplateDesignResource\designSetting(), eZContentUpload\detectClassIdentifier(), eZMultiPrice\discountExVATPriceList(), eZMultiPrice\discountIncVATPriceList(), eZStepSiteDetails\display(), eZInformationCollection\displayHandling(), eZTemplateAttributeOperator\displayVariable(), eZMultiPrice\DOMDocument(), eZModuleOperationInfo\executeBody(), eZPDFTable\extractFunction(), eZCodeMapper\extractUnicodeValue(), eZCodeMapper\extractUnicodeValues(), eZMultiPrice\exVATPriceList(), eZContentObjectPackageInstaller\eZContentObjectPackageInstaller(), eZDisplayDebug(), Cezpdf\ezImage(), eZPackageInstallationHandler\eZPackageInstallationHandler(), eZSetupCheckExecutable(), eZSetupCheckTestFunctions(), eZSetupConfigVariable(), eZSetupConfigVariableArray(), eZSetupImageConfigVariableArray(), eZSetupTestDirectoryPermissions(), eZSetupTestExecutionTime(), eZSetupTestExtension(), eZSetupTestFilePermissions(), eZSetupTestFunctionExists(), eZSetupTestMemLimit(), eZSetupTestPhpVersion(), eZWorkflowType\eZWorkflowType(), eZMultiPriceData\fetch(), eZStepSiteTypes\fetchAvailablePackages(), eZIniSettingType\fetchClassAttributeHTTPInput(), eZObjectRelationListType\fetchClassAttributeHTTPInput(), eZContentFunctionCollection\fetchSameClassAttributeNodeList(), eZFilePackageHandler\fileExists(), filePathForBinaryFile(), eZPolicyLimitation\findByType(), eZExtension\findExtensionType(), eZMysqlSchema\generateFieldDef(), eZCodeMapper\generateSimpleMappingTable(), generateUniqueVatTypeName(), eZBinaryFileHandler\handleDownload(), eZXMLInputParser\handleError(), handleMessageNode(), eZFilePackageHandler\handleParameters(), eZUser\hashType(), eZDBInterface\implodeWithTypeCast(), eZMultiPrice\incVATPriceList(), eZTemplateTextOperator\indentTransformation(), eZXMLText\inputHandler(), eZDBInterface\insertFile(), eZBinaryFileType\insertRegularFile(), eZMediaType\insertRegularFile(), eZCollaborationViewHandler\instance(), eZDebug\isLogFileEnabled(), eZShopFunctions\isMultiPriceClass(), eZShopFunctions\isMultiPriceProductType(), eZShopFunctions\isProductClass(), eZShopFunctions\isProductObject(), eZShopFunctions\isSimplePriceClass(), eZShopFunctions\isSimplePriceProductType(), eZLocale\languageFile(), eZNotificationEventType\loadAndRegisterAllTypes(), eZWorkflowType\loadAndRegisterAllTypes(), eZDataType\loadAndRegisterAllTypes(), eZNotificationEventType\loadAndRegisterType(), eZWorkflowType\loadAndRegisterType(), eZDataType\loadAndRegisterType(), loadDatabaseSchema(), eZLocale\localeFile(), eZTemplateLocaleOperator\modify(), eZTemplateStringOperator\modify(), eZXMLText\outputHandler(), eZSchema\parseElement(), eZTemplateMultiPassParser\parseIntoTextElements(), eZTemplateMultiPassParser\parseIntoTree(), eZCodeMapper\parseTransformationFile(), eZPgsqlSchema\parseType(), eZDir\path(), eZMultiPrice\priceByCurrency(), eZMultiPrice\priceList(), eZShopFunctions\productTypeByClass(), eZShopFunctions\productTypeByObject(), eZInformationCollection\redirectURL(), eZWorkflowType\registerType(), eZImageVariation\requestVariation(), eZFilePackageHandler\roleExists(), eZInformationCollection\sendOutEmail(), eZDir\separator(), eZPackageType\serializeContentClassAttribute(), eZIniSettingType\serializeContentClassAttribute(), eZMediaType\serializeContentClassAttribute(), eZMail\setContentType(), eZSchemaElement\setDataType(), eZTemplateDesignResource\setDesignSetting(), eZDebug\setHandleType(), eZDebug\setIsLogFileEnabled(), eZDebug\setLogFileEnabled(), eZMultiPrice\setPriceByCurrency(), eZCurrencyConverter\setRoundingType(), eZImageInterface\setStoredFile(), eZSchemaElement\setType(), eZDebug\showMessage(), eZImageInterface\store(), eZMedia\storedFileInfo(), eZBinaryFile\storedFileInfo(), eZContentObjectTreeNode\subTreeGroupByDateField(), eZMysqlSchema\tableStorageTypeName(), eZTemplateElementParser\templateTypeName(), eZLocale\transformToPHPFormat(), eZBasket\type(), eZInformationCollection\typeForObject(), eZDir\unlinkWildcard(), eZPackageType\unserializeContentClassAttribute(), eZIniSettingType\unserializeContentClassAttribute(), eZMediaType\unserializeContentClassAttribute(), eZMultiPrice\updatePrice(), eZInformationCollection\userDataHandling(), validate(), eZTemplateStringOperator\wash(), and eZTemplateStringOperator\washTransformation().

$user = $options['user']
if (file_exists($database) and is_file($database)) else
Initial value:
{
if ( strlen( trim( $user ) ) == 0)
{
$cli->error( "No database user chosen" );
$script->shutdown( 1 );
}
include_once( 'lib/ezdb/classes/ezdb.php' )
$user
Definition: ezconvertmysqltabletype.php:57
$script
Definition: clusterize.php:132
$cli
Definition: clusterize.php:131
if (!is_object($db)) if(!$db or!$db->isConnected())