eZ Publish  [trunk]
ezcheckphptag.php File Reference

Go to the source code of this file.

Variables

 $badFiles = array()
 $cli = eZCLI::instance()
 $endNewlineTag = "?>\n"
 $endTag = '?>'
 $error = false
 $ini = eZINI::instance()
 $options
 $pathList = $options['arguments']
if(count($options['arguments'])< 1) $print = true
 $script
 $shellTag = '#!'
 $shortStartTag = '<?'
 $startTag = '<?php'

Variable Documentation

$badFiles = array()

Definition at line 46 of file ezcheckphptag.php.

$cli = eZCLI::instance()

Definition at line 14 of file ezcheckphptag.php.

$endNewlineTag = "?>\n"

Definition at line 52 of file ezcheckphptag.php.

$endTag = '?>'

Definition at line 51 of file ezcheckphptag.php.

Definition at line 45 of file ezcheckphptag.php.

Referenced by eZDFSFileHandlerMySQLBackend\_error(), eZDFSFileHandlerMySQLiBackend\_error(), eZDBFileHandlerMysqlBackend\_error(), eZDBFileHandlerMysqliBackend\_error(), eZDBFileHandlerMysqliBackend\_selectOne(), eZDBFileHandlerMysqlBackend\_selectOne(), eZDFSFileHandlerMySQLBackend\_selectOne(), eZDFSFileHandlerMySQLiBackend\_selectOne(), eZDBFileHandlerMysqliBackend\_selectOneAssoc(), eZDBFileHandlerMysqlBackend\_selectOneAssoc(), eZDFSFileHandlerMySQLBackend\_selectOneAssoc(), eZDFSFileHandlerMySQLiBackend\_selectOneAssoc(), eZDBFileHandlerMysqliBackend\_selectOneRow(), eZDBFileHandlerMysqlBackend\_selectOneRow(), eZDFSFileHandlerMySQLBackend\_selectOneRow(), eZDFSFileHandlerMySQLiBackend\_selectOneRow(), Cpdf\addImage(), Cpdf\addPngFromFile(), eZCodeTemplate\apply(), eZBasket\canAddProduct(), ezpRestOauthTokenController\checkParams(), eZStepSiteDetails\display(), eZISBN13\extractISBNNumber(), eZAppendWarningItem(), eZISBNType\fetchObjectAttributeHTTPInput(), eZISBN13\formatedISBNValue(), handlePackageError(), eZFilePackageHandler\handleParameters(), eZContentClassPackageHandler\handleParameters(), eZContentObjectPackageHandler\handleParameters(), ezpOauthErrorType\httpCodeforError(), ezpOauthTokenEndpointErrorType\httpCodeForError(), eZStepCreateSites\initializePackage(), eZShopFunctions\isPreferredCurrencyValid(), eZWebDAVContentBackend\performCopy(), eZStepSiteDetails\processPostData(), eZWebDAVContentServer\putContentData(), eZECBHandler\requestRates(), eZExchangeRatesUpdateHandler\requestRates(), eZShopFunctions\setPreferredCurrencyCode(), eZMultiPriceData\updateAutoprices(), eZShopFunctions\updateAutoRates(), eZISBN10To13Converter\updateContentObjectAttribute(), eZISBN13\validate(), eZISBNType\validateISBN13Checksum(), eZISBN13\validateISBN13Checksum(), eZISBNType\validateObjectAttributeHTTPInput(), and verifyDataInternal().

$ini = eZINI::instance()

Definition at line 42 of file ezcheckphptag.php.

Referenced by eZStaticCache\__construct(), eZWebDAVContentBackend\__construct(), eZUser\_loginUser(), eZModule\accessAllowed(), eZCodeTemplate\allCodeFiles(), eZInformationCollection\allowAnonymous(), eZMail\allowedCharsets(), eZTemplateCompiler\alwaysGenerate(), eZImageAnalyzer\analyzerData(), eZUser\anonymousId(), eZInformationCollection\attributeHideList(), eZUser\authenticationMatch(), eZContentObjectTreeNode\availableClassListJsArray(), eZDBInterface\begin(), eZContentBrowse\browse(), eZStaticCache\buildCacheDirPath(), eZSearchEngine\buildTempTablesForFullTextSearch(), eZTranslationCache\cacheDirectory(), eZSys\cacheDirectory(), eZURLWildcard\cacheInfo(), eZContentCache\cachePathInfo(), eZContentObject\canCreateClassList(), eZContentObjectTreeNode\canCreateClassList(), eZContentClass\canInstantiateClassList(), eZContentFunctionCollection\canInstantiateClassList(), eZSiteAccess\change(), changeDBCharsetORACLE(), eZImageHandler\changeFilePermissions(), eZSSLZone\checkModuleView(), eZTipafriendRequest\checkReceiver(), eZDB\checkTransactionCounter(), eZUserLoginHandler\checkUser(), eZUser\checkUser(), eZContentObjectTreeNode\childrenByName(), eZUserType\classAttributeRemovableInformation(), eZDataType\classDisplayInformation(), eZContentClassPackageHandler\classDOMTree(), eZTipafriendRequest\cleanup(), eZContentCache\cleanup(), eZSubtreeCache\cleanupCacheDir(), eZBasket\cleanupCurrentBasket(), eZContentCacheManager\clearAllContentCache(), eZContentCacheManager\clearObjectViewCache(), eZContentCacheManager\clearObjectViewCacheIfNeeded(), eZContentCacheManager\clearTemplateBlockCache(), eZContentCacheManager\clearTemplateBlockCacheIfNeeded(), eZDBInterface\commit(), eZTemplateCompiler\compilationDirectory(), eZTemplateCompiler\compilationFilename(), eZTemplateCompiler\compileTemplate(), eZUser\contentClassIDs(), eZContentClass\contentObjectName(), eZNodeviewfunctions\contentViewRetrieve(), eZURLAliasML\convertToAlias(), eZLocale\create(), eZImageManager\createAliasFromINI(), eZImageShellHandler\createFromINI(), eZImageGDHandler\createFromINI(), eZTemplateDesignResource\createOverrideCache(), eZHTTPTool\createRedirectUrl(), eZSiteInstaller\createSiteAccess(), eZPackageCreationHandler\creatorList(), eZMultiOption2Type\customObjectAttributeHTTPAction(), eZObjectRelationType\customObjectAttributeHTTPAction(), eZObjectRelationListType\customObjectAttributeHTTPAction(), eZWebDAVServer\dataCharset(), eZSiteAccess\debugEnabled(), eZCodeMapper\decodeCommand(), eZContentObject\defaultLanguage(), eZContentOperationCollection\deleteObject(), eZContentCacheManager\dependencyInfo(), eZTemplateDesignResource\designSetting(), eZInformationCollection\displayHandling(), eZFilePassthroughHandler\dispositionType(), eZObjectRelationListType\domString(), eZMatrix\domString(), eZStepSiteTypes\downloadFile(), downloadPackages(), eZHTTPHeader\enabled(), eZSSLZone\enabled(), eZTemplate\error(), eZDefaultConfirmOrderHandler\execute(), eZSimpleShippingType\execute(), eZStaticCache\executeActions(), eZCharTransform\executeCacheFile(), eZCodeMapper\executeCommandCode(), eZContentObject\expireTemplateBlockCacheIfNeeded(), eZISBN13\extractISBNNumber(), eZSiteAccess\extraDebugEnabled(), eZCheckUser(), eZCheckValidity(), eZCodeTemplate\eZCodeTemplate(), eZCollaborationViewHandler\eZCollaborationViewHandler(), eZSys\ezcrc32(), eZDBInterface\eZDBInterface(), eZDisplayDebug(), eZImageManager\eZImageManager(), eZMail\eZMail(), eZMimeType\eZMimeType(), eZPostgreSQLDB\eZPostgreSQLDB(), eZSetupCriticalTests(), eZSetupOptionalTests(), eZSetupTestDirectoryPermissions(), eZSetupTestFilePermissions(), eZStepCreateSites\eZStepCreateSites(), eZStepDatabaseChoice\eZStepDatabaseChoice(), eZStepDatabaseInit\eZStepDatabaseInit(), eZStepEmailSettings\eZStepEmailSettings(), eZStepFinal\eZStepFinal(), eZStepInstaller\eZStepInstaller(), eZStepLanguageOptions\eZStepLanguageOptions(), eZStepPackageLanguageOptions\eZStepPackageLanguageOptions(), eZStepSecurity\eZStepSecurity(), eZStepSiteAccess\eZStepSiteAccess(), eZStepSiteAdmin\eZStepSiteAdmin(), eZStepSiteDetails\eZStepSiteDetails(), eZStepSitePackages\eZStepSitePackages(), eZStepSiteTemplates\eZStepSiteTemplates(), eZStepSiteTypes\eZStepSiteTypes(), eZStepSystemCheck\eZStepSystemCheck(), eZStepSystemFinetune\eZStepSystemFinetune(), eZStepWelcome\eZStepWelcome(), eZTemplate\eZTemplate(), eZTemplateImageOperator\eZTemplateImageOperator(), eZUpdateDebugSettings(), eZUpdateTextCodecSettings(), eZXHTMLXMLOutput\eZXHTMLXMLOutput(), eZXMLInputParser\eZXMLInputParser(), eZXMLOutputHandler\eZXMLOutputHandler(), eZXMLSchema\eZXMLSchema(), eZTemplate\factory(), eZUser\fetchAnonymousCount(), eZAudit\fetchAuditEnabled(), eZAudit\fetchAuditNameSettings(), eZCountryType\fetchCountryList(), eZCache\fetchList(), eZNavigationPart\fetchList(), eZTSTranslator\fetchList(), eZPackage\fetchMaintainerRoleIDList(), eZContentObjectTreeNode\fetchNode(), eZWebDAVContentBackend\fetchNodeByTranslation(), eZUserType\fetchObjectAttributeHTTPInput(), eZClassFunctionCollection\fetchOverrideTemplateList(), eZWebDAVContentBackend\fetchParentNodeByTranslation(), eZProductCategory\fetchProductCountByCategory(), eZRSSImport\fieldMap(), eZFilePackageHandler\fileExists(), eZExtension\findExtensionType(), eZSiteAccess\findPathToSiteAccess(), eZCodeMapper\generateCommandCode(), eZContentCacheManager\generateObjectViewCache(), eZNodeviewfunctions\generateViewCacheFile(), eZUser\getCacheFilename(), eZHTTPTool\getDataByURL(), eZSearch\getEngine(), eZExtension\getHandlerClass(), eZSession\getHandlerInstance(), eZSiteAccess\getIni(), eZLDAPUser\getNodeAssignmentsForGroupName(), eZDir\getPathFromFilename(), eZDefaultVATHandler\getProductCategory(), eZSSLZone\getSSLZones(), eZVATManager\getUserCountryAttributeName(), eZWebDAVContentBackend\getVirtualFolderCollection(), eZCharTransform\groupCommands(), eZGeneralDigestHandler\handle(), eZContentObjectPackageHandler\handleParameters(), eZSubTreeHandler\handlePublishEvent(), handleRelationTemplate(), eZUser\hashType(), eZHTTPHeader\headerOverrideArray(), eZLocale\httpLocaleCode(), eZi18nOperator\i18nTrans(), eZWordToImageOperator\iconDirectMapping(), eZWordToImageOperator\iconGroupMapping(), eZImageAliasHandler\imagePath(), eZImageAliasHandler\imagePathByNode(), eZContentCache\inCleanupThresholdRange(), eZSys\indexFile(), eZStepCreateSites\init(), ezpContentPublishingQueue\initHooks(), eZModule\initialize(), eZScript\initialize(), eZSimpleTagsOperator\initializeIncludes(), eZContentObjectPackageCreator\initializeObjectLimits(), eZContentObjectPackageInstaller\initializeSiteAccess(), eZContentObjectPackageInstaller\initializeTopNodes(), eZURLOperator\iniTrans(), eZFilePackageHandler\install(), eZINIAddonPackageHandler\install(), eZContentObjectPackageHandler\installTemplates(), eZDbSchema\instance(), eZNotificationTransport\instance(), eZUserLoginHandler\instance(), eZDB\instance(), eZFileHandler\instance(), eZUser\instance(), eZLocale\instance(), eZTemplateTreeCache\internalKey(), eZTemplateCompiler\isAccumulatorsEnabled(), eZTemplateTreeCache\isCacheEnabled(), eZTemplateCompiler\isCommentsEnabled(), eZTemplateCompiler\isCompilationEnabled(), eZContentObject\isComplexViewMode(), eZDebugSetting\isConditionTrue(), eZTemplateCompiler\isDevelopmentModeEnabled(), ezpI18n\isEnabled(), eZTemplateCompiler\isExecutionEnabled(), isExtensionSiteaccess(), eZTemplateCompiler\isFallbackResourceCodeEnabled(), eZSSLZone\isKeepModeView(), eZWebDAVServer\isLoggingEnabled(), eZTemplate\isMethodDebugEnabled(), eZTemplateCompiler\isNodePlacementEnabled(), eZINI\isSettingReadOnly(), eZSys\isSSLNow(), eZTemplate\isTemplatesUsageStatisticsEnabled(), eZTemplateCompiler\isTimingPointsEnabled(), eZTemplateCompiler\isTreeEnabled(), eZUser\isTrusted(), eZTemplate\isXHTMLCodeIncluded(), ezpRestDbConfig\lazyDbHelper(), eZMail\lineSeparator(), eZLintSchema\lintCheckSchema(), eZContentObjectPackageCreator\loadObjectLimits(), eZDBSchemaInterface\loadSchemaTransformationRules(), eZCodeMapper\loadTransformationFiles(), eZTSTranslator\loadTranslationFile(), eZLDAPUser\loginUser(), eZTextFileUser\loginUser(), eZPackage\maintainerRoleListForRoles(), eZSiteAccess\match(), eZCurrencyConverter\mathHandler(), eZContentBrowseRecent\maximumRecentItems(), eZUser\maxNumberOfFailedLogin(), ezpLanguageSwitcherOperator\modify(), eZWordToImageOperator\modify(), eZAutoLinkOperator\modify(), eZSimpleTagsOperator\modify(), eZTopMenuOperator\modify(), eZTemplateImageOperator\modify(), eZTemplateUnitOperator\modify(), eZURLOperator\modify(), eZDataType\objectDisplayInformation(), eZPHPCreator\open(), eZTemplateUnitOperator\operatorTransform(), eZMail\outputCharset(), eZContentObjectTreeNode\parentDepthLimitationList(), eZHTTPTool\password(), eZUser\passwordCharacterTable(), eZContentObjectTreeNode\pathWithNames(), eZUserLoginHandler\preCheck(), precheckAllowed(), eZShopFunctions\preferredCurrencyCode(), eZSearchEngine\prepareWordIDArrays(), eZExtension\prependExtensionSiteAccesses(), eZExtension\prependSiteAccess(), eZContentLanguage\prioritizedLanguages(), eZURLAliasFilterAppendNodeID\process(), ezpMobileDeviceRegexpFilter\process(), eZTemplateCacheFunction\process(), eZURLAliasFilter\processFilters(), eZWebDAVContentBackend\propFind(), eZLDAPUser\publishNewUserGroup(), eZLDAPUser\publishUpdateUser(), ezpSessionHandlerDB\read(), eZImageAnalyzer\readAnalyzerSettingsFromINI(), eZImageManager\readConversionRuleSettingsFromINI(), eZImageManager\readImageAliasesFromINI(), eZImageManager\readImageHandlersFromINI(), eZImageManager\readMIMETypeQualitySettingFromINI(), eZImageManager\readMIMETypeSettingFromINI(), eZImageManager\readMIMETypeSettingsFromINI(), eZImageManager\readSupportedFormatsFromINI(), eZInformationCollection\redirectURL(), eZSession\registerFunctions(), eZContentOperationCollection\registerSearchObject(), eZProductCategory\removeByID(), removeRelatedCache(), eZContentObjectTreeNode\removeThis(), ezpContentXHTMLRenderer\render(), eZDBInterface\reportError(), eZPackage\repositoryPath(), eZUser\requireUniqueEmail(), resetINI(), eZContentBrowse\result(), eZDBInterface\rollback(), eZTranslationCache\rootCacheDirectory(), eZCurrencyConverter\roundingPrecision(), eZCurrencyConverter\roundingTarget(), eZCurrencyConverter\roundingType(), eZSiteAccess\saNameByLanguage(), eZSearchEngine\search(), eZMailNotificationTransport\send(), eZMailTransport\send(), eZUserOperationCollection\sendActivationEmail(), eZSMTPTransport\sendMail(), eZFileTransport\sendMail(), eZSendmailTransport\sendMail(), eZDefaultConfirmOrderHandler\sendOrderEmail(), eZInformationCollection\sendOutEmail(), eZContentOperationCollection\sendToPublishingQueue(), eZUserOperationCollection\sendUserNotification(), eZSys\serverURL(), eZUserLoginHandler\sessionCleanup(), eZTemplateTreeCache\setCachedTree(), eZSession\setCookieParams(), ezpSessionHandlerPHP\setSaveHandler(), ezpLanguageSwitcher\setupTranslationSAList(), eZURI\setURIString(), eZContentObjectTreeNode\showInvisibleNodes(), eZUser\site(), eZSiteAccess\siteAccessList(), eZStepInstaller\siteaccessURLs(), eZScript\startup(), eZPackage\stateList(), eZSys\storageDirectory(), eZHTTPFile\store(), eZPackageType\storeObjectAttribute(), eZContentObjectTreeNode\subTreeCountByNodeID(), eZSSLZone\switchIfNeeded(), eZPackage\systemRepositoryInformation(), eZTemplateCacheFunction\templateNodeTransformation(), eZTemplateCompiler\TemplatePrefix(), eZURLWildcard\translate(), eZURLAliasML\translate(), ezpI18n\translateText(), eZInformationCollection\typeForObject(), eZPackage\typeList(), eZBinaryFileType\unserializeContentObjectAttribute(), eZMediaType\unserializeContentObjectAttribute(), ezpRestDebug\updateDebugSettings(), eZScript\updateDebugSettings(), updateINI_1_1_0(), updateINI_1_4_0(), eZSiteInstaller\updateINIFiles(), eZContentObjectTreeNode\updateSubTreePath(), eZScript\updateTextCodecSettings(), eZContentUpload\upload(), eZContentObjectTreeNode\url(), eZContentObjectTreeNode\urlAlias(), eZURLOperator\urlTransformation(), eZURLAliasML\urlTranslationEnabledByUri(), eZInformationCollection\userDataHandling(), eZHTTPTool\username(), eZUser\validateLoginName(), eZUserType\validateObjectAttributeHTTPInput(), eZUser\validatePassword(), eZSys\varDirectory(), eZTemplateStringOperator\wash(), eZTemplateStringOperator\washTransformation(), eZXMLInputParser\wordMatchSupport(), eZCharTransform\wordSeparator(), eZLog\write(), ezpSessionHandlerDB\write(), eZDebug\writeFile(), and eZLog\writeStorageLog().

$options
Initial value:
 $script->getOptions( "[no-print]",
                                "[path+]",
                                array( 'no-print' => "Do not print path for bad files"
                                       ) )

Definition at line 27 of file ezcheckphptag.php.

if (count($options['arguments'])< 1) $print = true

Definition at line 38 of file ezcheckphptag.php.

Initial value:
 eZScript::instance( array( 'description' => ( "eZ Publish PHP tag checker\n\n" .
                                                         "Checks for characters before the PHP start tag and after the PHP end tag\n" .
                                                         "and sets exit code based on the result\n" .
                                                         "PATH can either be a file or a directory\n" .
                                                         "\n" .
                                                         "ezcheckphptag.php lib" ),
                                      'use-session' => false,
                                      'use-modules' => true,
                                      'use-extensions' => true ) )

Definition at line 15 of file ezcheckphptag.php.

$shellTag = '#!'

Definition at line 48 of file ezcheckphptag.php.

$shortStartTag = '<?'

Definition at line 50 of file ezcheckphptag.php.

$startTag = '<?php'

Definition at line 49 of file ezcheckphptag.php.