eZ Publish  [4.2]
ezconvert2isbn13.php File Reference

Converts ISBN-10 numbers to ISBN-13. More...

Go to the source code of this file.

Variables

 $allClasses = $options['all-classes']
 $attributeID = $options['attribute-id']
 $classID = $options['class-id']
 $cli = eZCLI::instance()
 $converter = new eZISBN10To13Converter( $script, $cli, $params )
 $force = $options['force']
 $found = false
 $options
 $params = array( 'force' => $force )
 $script

Detailed Description

Converts ISBN-10 numbers to ISBN-13.

The script should be runned by command line with example:

php bin/php/ezconvert2isbn13.php --all-classes

Depending on the parameter, the script will search through contentobjects and convert ezisbn values in content attributes from ISBN-10 to ISBN-13. The script will also set the hyphen on the correct place as well. You should set the class attribute to ISBN-13 in the contentclass before running this script or add the flag --force as a parameter when you're running the script.

When --force is used, the is ISBN-13 will also be updated to ISBN-13 at the contentclass level.

Example: --class-id=2 Will Go through all ezisbn attributes in the class with id 2 and convert everyone which is a ISBN-10 value. --attribute-id=12 will check if this is an ISBN datatype and convert all ISBN-13 values in the attribute with id 12. --all-classes Does not have any argument, and converts all contentobject attributes that is set to ISBN-13.

--force or -f will work in addition to all the options above and set the class attribute to ISBN-13, even if it was ISBN-10 before.

Definition in file ezconvert2isbn13.php.


Variable Documentation

$allClasses = $options['all-classes']

Definition at line 81 of file ezconvert2isbn13.php.

$attributeID = $options['attribute-id']

Definition at line 80 of file ezconvert2isbn13.php.

$classID = $options['class-id']

Definition at line 79 of file ezconvert2isbn13.php.

Referenced by eZContentClassPackageHandler\add(), eZISBN10To13Converter\addClass(), eZContentClassPackageHandler\addClass(), eZSiteInstaller\addClassAttributes(), eZContentObject\allowedAssignStateIDList(), eZContentClassGroup\appendClass(), eZWaitUntilDateType\attribute(), eZUser\canAssignSectionToObject(), eZUser\canAssignToObjectSectionList(), eZContentObjectTreeNode\canMoveTo(), eZContentObjectVersion\checkAccess(), eZContentObject\checkAccess(), eZContentObjectTreeNode\checkAccess(), eZSubtreeNotificationRule\checkObjectAccess(), eZUserType\classAttributeRemovableInformation(), eZSiteInstaller\classIDbyIdentifier(), eZSiteInstaller\contentObjectByName(), eZWebDAVContentBackend\copyContent(), eZWebDAVContentBackend\copyObject(), eZWebDAVContentBackend\copyObjectSameDirectory(), eZContentObjectTreeNode\createClassFilteringSQLString(), eZObjectRelationListType\createNewObject(), eZObjectRelationListType\customObjectAttributeHTTPAction(), eZContentCacheManager\dependencyInfo(), eZMultiplexerType\execute(), eZTemplateOptimizer\fetchClassDeclaration(), eZContentClassName\fetchList(), eZContentClassAttribute\fetchListByClassID(), eZContentObject\fetchObjectCountByUserID(), eZViewCounter\fetchTopList(), eZContentClassPackageCreator\finalize(), eZContentObjectPackageHandler\generatePackage(), eZContentClassPackageCreator\generatePackageInformation(), eZContentObjectTreeNode\getClassesJsArray(), eZContentClassPackageHandler\handleParameters(), eZContentClassAttribute\initializeObjectAttributes(), eZContentClassPackageHandler\install(), eZWebDAVContentServer\moveContent(), eZWebDAVContentBackend\moveContent(), eZContentClassOperations\remove(), eZContentClass\removeTranslation(), eZContentClass\setAlwaysAvailableLanguageID(), eZContentClassNameList\store(), eZKeyword\store(), eZContentCache\store(), eZContentObjectTreeNode\subTreeCountByNodeID(), eZSiteInstaller\swapNodes(), eZInformationCollection\typeForObject(), and eZContentClass\versionHistoryLimit().

$cli = eZCLI::instance()

Definition at line 61 of file ezconvert2isbn13.php.

$converter = new eZISBN10To13Converter( $script, $cli, $params )

Definition at line 85 of file ezconvert2isbn13.php.

Referenced by eZMultiPrice\updateAutoPriceList().

$options
Initial value:
 $script->getOptions( "[class-id:][attribute-id:][all-classes][f|force]",
                                "",
                                array( 'class-id' => 'The class id for the ISBN attribute.',
                                       'attribute-id' => 'The attribute id for the ISBN attribute which should be converted.',
                                       'all-classes' => 'Will convert all ISBN attributes in all content classes.',
                                       'f' => 'Short alias for force.',
                                       'force' => 'Will convert all attributes even if the class is set to ISBN.' ) )

Definition at line 70 of file ezconvert2isbn13.php.

$params = array( 'force' => $force )

Definition at line 84 of file ezconvert2isbn13.php.

Referenced by ezpLanguageSwitcher\__construct(), eZDBFileHandlerMysqlBackend\_connect(), eZSiteInstaller\addClassAttributes(), eZSiteInstaller\addPoliciesForRole(), eZContentCacheManager\appendKeywordNodeIDs(), eZContentCacheManager\appendSiblingsNodeIDs(), eZPostgreSQLDB\arrayQuery(), eZMySQLiDB\arrayQuery(), eZMySQLDB\arrayQuery(), eZSiteInstaller\assignUserToRole(), eZSiteInstaller\buildFunctionParams(), eZContentObjectTreeNode\calendar(), eZPDFTable\callBlockFrame(), eZPDFTable\callCircle(), eZPDFTable\callDrawLine(), eZPDFTable\callFilledRectangle(), eZPDFTable\callFont(), eZPDFTable\callFrame(), eZPDFTable\callFrameMargins(), eZPDFTable\callFrontpage(), eZPDFTable\callHeader(), eZPDFTable\callImage(), eZPDFTable\callInsertTOC(), eZPDFTable\callLine(), eZSimplifiedXMLEditOutput\callOutputHandler(), eZXMLInputParser\callOutputHandler(), eZPDFTable\callRectangle(), eZPDFTable\callStartPageCounter(), eZPDFTable\callTable(), eZPDFTable\callText(), eZPDFTable\callTextBox(), eZPDFTable\callTextFrame(), eZPDFTable\callTOC(), eZContentObjectTreeNode\childrenCount(), eZSiteInstaller\classByIdentifier(), eZSiteInstaller\classIDbyIdentifier(), eZContentObjectTreeNode\clearViewCacheForSubtree(), eZTemplateArrayOperator\compareTrans(), eZSiteInstaller\contentObjectByName(), eZSiteInstaller\contentObjectByUrl(), eZPolicy\copy(), eZPHPMath\create(), eZNotificationEvent\create(), eZContentFunctions\createAndPublishObject(), eZSiteInstaller\createContentObject(), eZSiteInstaller\createContentSection(), eZPolicy\createNew(), eZContentObject\createNewVersion(), eZSiteInstaller\createSiteAccess(), eZSiteInstaller\createSiteaccessUrls(), eZContentObjectTreeNode\createSortingSQLStrings(), createTranslationSiteAccesses(), eZMultiPriceType\customSortingSQL(), eZDBSchemaInterface\data(), eZLintSchema\data(), eZDiscount\discountPercent(), eZDefaultConfirmOrderHandler\execute(), eZContentObjectEditHandler\executeHandlerFunction(), eZContentObjectEditHandler\executeInputHandlers(), eZContentObjectEditHandler\executePublish(), eZBCMath\eZBCMath(), eZContentBrowse\eZContentBrowse(), eZContentUpload\eZContentUpload(), eZDBSchemaInterface\eZDBSchemaInterface(), eZPDFTable\ezInsertLine(), eZISBN10To13Converter\eZISBN10To13Converter(), eZMysqlSchema\eZMysqlSchema(), eZTemplateFunctionElement\eZTemplateFunctionElement(), eZTemplateOperatorElement\eZTemplateOperatorElement(), eZPDFTable\ezText(), eZURLAliasQuery\fetchAll(), eZMysqlSchema\fetchTableFields(), eZPgsqlSchema\fetchTableFields(), eZMysqlSchema\fetchTableIndexes(), eZPgsqlSchema\fetchTableIndexes(), eZLintSchema\generateAddFieldSql(), eZPgsqlSchema\generateAddFieldSql(), eZMysqlSchema\generateAddIndexSql(), eZLintSchema\generateAddIndexSql(), eZPgsqlSchema\generateAddIndexSql(), eZLintSchema\generateAlterFieldSql(), eZPgsqlSchema\generateAlterFieldSql(), eZLintSchema\generateDataFile(), eZDBSchemaInterface\generateDataFile(), eZPgsqlSchema\generateDefaultDef(), eZLintSchema\generateDropFieldSql(), eZLintSchema\generateDropIndexSql(), eZLintSchema\generateDropTable(), eZMysqlSchema\generateFieldDef(), eZPgsqlSchema\generateFieldDef(), eZLintSchema\generateSchemaFile(), eZDBSchemaInterface\generateSchemaFile(), eZPgsqlSchema\generateSchemaFile(), eZPgsqlSchema\generateTableArrays(), eZLintSchema\generateTableInsert(), eZDBSchemaInterface\generateTableInsert(), eZDBSchemaInterface\generateTableInsertSQLList(), eZPgsqlSchema\generateTableInsertSQLList(), eZLintSchema\generateTableSchema(), eZMysqlSchema\generateTableSchema(), eZPgsqlSchema\generateTableSchema(), eZMysqlSchema\generateTableSQL(), eZMysqlSchema\generateTableSQLList(), eZPgsqlSchema\generateTableSQLList(), eZLintSchema\generateUpgradeFile(), eZDBSchemaInterface\generateUpgradeFile(), eZMultiOption2\getIDsFromMultioptions(), eZSiteInstaller\getParam(), eZLDAPUser\goAndPublishGroups(), eZInstallScriptPackageHandler\handleAddParameters(), eZUser\hasAccessToView(), eZCurrentTimeType\initializeEvent(), eZPublishType\initializeEvent(), eZCollaborationEventType\initializeEvent(), eZNotificationEvent\initializeEventType(), eZPDFTable\insertFrontpage(), eZDBSchemaInterface\insertSchema(), eZPDFTable\insertTextBox(), eZPDFTable\insertTextFrame(), installPackages(), eZDbSchema\instance(), eZPDF\modify(), eZTemplateArrayOperator\modify(), eZWorkflowEvent\move(), eZContentClassAttribute\move(), eZSiteInstaller\moveTreeNode(), eZSiteInstaller\nodeByName(), eZSiteInstaller\nodeByUrl(), eZSiteInstaller\nodeIdByName(), eZSiteInstaller\nodePathStringByURL(), eZXMLOutputHandler\outputText(), eZSiteInstaller\packageFileItemPath(), eZXMLInputParser\parseTag(), postInstallAdminSiteaccessINIUpdate(), postInstallUserSiteaccessINIUpdate(), eZTemplateMenuFunction\process(), eZTemplateSequenceFunction\process(), eZTemplateIncludeFunction\process(), eZTemplateToolbarFunction\process(), eZTemplateSwitchFunction\process(), eZObjectForwarder\process(), eZTemplateLoop\processFunctionParameters(), eZSOAPServer\processRequest(), eZDbSchema\read(), eZContentObject\relatedContentObjectArray(), eZContentObject\relatedContentObjectCount(), eZContentObject\relatedContentObjectList(), eZContentObject\relatedObjectCount(), eZContentObject\relatedObjects(), eZSiteInstaller\removeClassAttribute(), eZSiteInstaller\removeContentObject(), eZSiteInstaller\removePoliciesForRole(), eZSiteInstaller\renameContentObject(), eZContentObject\reverseRelatedObjectCount(), eZContentObject\reverseRelatedObjectList(), eZModule\run(), eZMultiOption2\runFunctionForAllGroups(), eZMysqlSchema\schema(), eZLintSchema\schema(), eZPgsqlSchema\schema(), eZSearch\search(), eZSiteInstaller\sectionIDbyName(), smtp\send(), eZDefaultConfirmOrderHandler\sendOrderEmail(), eZSiteInstaller\setRSSExport(), eZSiteInstaller\setSection(), smtp\smtp(), eZSimplifiedXMLInputParser\structHandlerCustom(), eZSimplifiedXMLInputParser\structHandlerLists(), eZContentStructureTreeOperator\subTree(), eZContentObjectTreeNode\subTree(), eZContentObjectTreeNode\subTreeByNodeID(), eZContentObjectTreeNode\subTreeCount(), eZContentObjectTreeNode\subTreeCountByNodeID(), eZContentObjectTreeNode\subtreeSoleNodeCount(), eZSiteInstaller\swapNodes(), templateLookObjectData(), eZTemplateToolbarFunction\templateNodeTransformation(), eZContentObjectTrashNode\trashList(), eZContentObjectTrashNode\trashListCount(), eZSession\triggerCallback(), eZSiteInstaller\updateClassAttributes(), eZSiteInstaller\updateContentObjectAttributes(), updateINIAccessType(), eZSiteInstaller\updateINIFiles(), eZSiteInstaller\updateObjectAttributeFromString(), eZSiteInstaller\updatePreferences(), eZSiteInstaller\updateRoles(), eZContentObjectEditHandler\validateInputHandlers(), eZDBSchemaInterface\writeArraySchemaFile(), eZDBSchemaInterface\writeSerializedSchemaFile(), eZDBSchemaInterface\writeSQLSchemaFile(), and eZDBSchemaInterface\writeUpgradeFile().

Initial value:
 eZScript::instance( array( 'description' => ( "eZ Publish ISBN-10 to ISBN-13 converter\n\n" .
                                                        "Converts an ISBN-10 number to ISBN-13\n" ),
                                     'use-session' => false,
                                     'use-modules' => true,
                                     'use-extensions' => true ) )

Definition at line 62 of file ezconvert2isbn13.php.