eZPublish  3.8
attribute_edit.php File Reference

Variables

 $assignedNodes =& $object->attribute( 'assigned_nodes' )
 
 $assignments =& $version->attribute( 'parent_nodes' )
 
 $attributeDataBaseName = 'ContentObjectAttribute'
 
 $class = eZContentClass::fetch( $classID )
 
 $classID = $object->attribute( 'contentclass_id' )
 
 $contentObjectAttributes =& $version->contentObjectAttributes( $EditLanguage )
 
if($OmitSectionSetting!==true) $contentObjectDataMap = array()
 
if($locationCount< 1 &&$Module->
isCurrentAction( 'Publish')) 
$customAction = false
 
 $customActionAttributeArray = array()
 
if($contentObjectAttributes===null
or count($contentObjectAttributes)==0) 
$fromContentObjectAttributes = false
 
 $hasObjectInput = true
 
 $hasPath = false
 
if($FromLanguage!==false) $http =& eZHTTPTool::instance()
 
 $inputValidated = true
 
if($storingAllowed
&&$hasObjectInput) elseif($storingAllowed) 
$invalidNodeAssignmentList = array()
 
 $isTranslatingContent = false
 
foreach($assignedNodes as
$node) foreach($assignments as
$assignment) 
$locationCount = count( $locationIDList )
 
 $locationIDList = array()
 
 $locationUIEnabled = true
 
 $mainAssignment = false
 
 $object =& eZContentObject::fetch( $ObjectID )
 
 $ObjectID =& $Params['ObjectID']
 
 $path = array()
 
 $requireFixup = false
 
 $res =& eZTemplateDesignResource::instance()
 
if($Module->isCurrentAction(
'Publish')) 
$Result = ''
 
 $Result ['content'] =& $tpl->fetch( $templateName )
 
if($mainAssignment) if(!$hasPath)
if(!$hasPath) 
$Result ['path'] = $path
 
 $section = eZSection::fetch( $object->attribute( 'section_id' ) )
 
 $storeActions
 
 $storingAllowed
 
 $templateName = 'design:content/edit.tpl'
 
 $titlePath = array()
 
 $validatedAttributes = array()
 
 $validation
 
 $version =& $object->version( $EditVersion )
 
if(($http->hasSessionVariable(
'LastCurrentAction')) and($http->
sessionVariable(
'LastCurrentAction')==
'Publish') and($Module->
isCurrentAction(
'AddNodeAssignment')||$Module->
isCurrentAction(
'AddPrimaryNodeAssignment'))) 
else
 
 if ($http->hasPostVariable("CustomActionButton"))
 

Detailed Description

This file is a shared code file which is used by different parts of the system to edit objects. This file only implements editing of attributes and uses hooks to allow external code to add functionality.

Parameters
$Modulemust be set by the code which includes this file

Variable Documentation

$assignments =& $version->attribute( 'parent_nodes' )
$class = eZContentClass::fetch( $classID )
$classID = $object->attribute( 'contentclass_id' )

Referenced by eZContentClassPackageHandler\add(), eZContentClassPackageHandler\addClass(), eZClassFunctions\addGroup(), eZContentClassGroup\appendClass(), eZWaitUntilDateType\attribute(), browse(), eZContentFunctionCollection\calendar(), eZContentObjectTreeNode\canMoveTo(), eZContentObjectVersion\checkAccess(), eZContentObject\checkAccess(), eZContentObjectTreeNode\checkAccess(), eZSubtreeNotificationRule\checkObjectAccess(), eZUserType\classAttributeRemovableInformation(), copyObject(), eZContentObjectTreeNode\createClassFilteringSQLString(), eZContentObject\createNewVersion(), eZObjectRelationListType\customObjectAttributeHTTPAction(), eZContentCacheManager\dependencyInfo(), eZMultiplexerType\execute(), eZContentFunctionCollection\fetchClass(), eZClassFunctionCollection\fetchClassAttributeList(), eZContentFunctionCollection\fetchClassAttributeList(), eZTemplateOptimizer\fetchClassDeclaration(), eZContentFunctionCollection\fetchContentSearch(), eZContentClassAttribute\fetchListByClassID(), eZContentFunctionCollection\fetchMostViewedTopList(), eZContentFunctionCollection\fetchObjectCountByUserID(), eZContentObject\fetchObjectCountByUserID(), eZContentFunctionCollection\fetchObjectTree(), eZClassFunctionCollection\fetchOverrideTemplateList(), eZViewCounter\fetchTopList(), eZContentClassPackageCreator\finalize(), generateObjectViewTemplate(), eZContentObjectPackageHandler\generatePackage(), eZContentClassPackageCreator\generatePackageInformation(), eZContentClassPackageHandler\handleParameters(), eZSearchEngine\indexWords(), eZContentClassPackageHandler\install(), eZWebDAVContentServer\moveContent(), eZContentClassOperations\remove(), eZClassFunctions\removeGroup(), eZPDFXMLOutput\renderPDFTag(), eZKeyword\store(), eZContentCache\store(), eZContentObjectTreeNode\subTreeCount(), and eZInformationCollection\typeForObject().

if ($OmitSectionSetting!==true) $contentObjectDataMap = array()
if ($locationCount< 1 &&$Module->isCurrentAction( 'Publish')) $customAction = false
if ($contentObjectAttributes===null or count($contentObjectAttributes)==0) $fromContentObjectAttributes = false
$hasObjectInput = true
$hasPath = false
if ($FromLanguage!==false) $http =& eZHTTPTool::instance()
if ($storingAllowed &&$hasObjectInput) elseif ($storingAllowed) $invalidNodeAssignmentList = array()
$isTranslatingContent = false
foreach ($assignedNodes as $node) foreach ($assignments as $assignment) $locationCount = count( $locationIDList )
$locationIDList = array()
$locationUIEnabled = true
$mainAssignment = false
$object =& eZContentObject::fetch( $ObjectID )

Referenced by eZShopOperationCollection\addToBasket(), eZContentCacheManager\appendKeywordNodeIDs(), eZObjectRelationListType\appendObject(), eZContentCacheManager\appendParentNodeIDs(), eZContentCacheManager\appendRelatingNodeIDs(), eZContentOperationCollection\attributePublishAction(), browse(), eZContentObjectVersion\checkAccess(), eZContentObjectTreeNode\checkAccess(), checkNodeActions(), checkNodeAssignments(), checkNodeMovements(), eZSSLZone\checkObject(), checkRelationActions(), checkRelationAssignments(), chooseObjectVersionsToCopy(), eZContentObjectTreeNode\classListFromPolicy(), eZContentCacheManager\clearContentCacheIfNeededBySectionID(), eZContentCacheManager\clearTemplateBlockCache(), eZUser\contentObject(), contentPDFGenerate(), copyObject(), eZContentOperationCollection\copyTranslations(), eZCollaborationSimpleMessage\create(), eZObjectRelationListType\createInstance(), eZContentObjectTreeNode\createObject(), eZObjectRelationListType\customObjectAttributeHTTPAction(), eZOrder\discount(), eZWaitUntilDateType\execute(), eZApproveType\execute(), eZMultiplexerType\execute(), eZContentObjectEditHandler\executeInputHandlers(), eZSimplePrice\eZSimplePrice(), eZHTTPPersistence\fetch(), eZWorkflowGroupLink\fetch(), eZWaitUntilDateValue\fetch(), eZContentClassAttribute\fetch(), eZPaymentObject\fetchByID(), eZContentObject\fetchByRemoteID(), eZContentFunctionCollection\fetchClass(), eZHTTPPersistence\fetchElement(), eZWebDAVContentServer\fetchNodeInfo(), eZContentFunctionCollection\fetchObject(), eZObjectRelationListType\fetchObjectAttributeHTTPInput(), eZURLObjectLink\fetchObjectVersionList(), eZContentFunctionCollection\fetchRelatedObjects(), eZContentFunctionCollection\fetchRelatedObjectsCount(), eZRSSExport\fetchRSS1_0(), eZRSSExport\fetchRSS2_0(), eZContentObject\fillNodeListAttributes(), eZObjectRelationListType\fixupObjectAttributeHTTPInput(), eZNodeviewfunctions\generateNodeView(), eZContentCacheManager\generateObjectViewCache(), generatePDF(), eZWebDAVContentServer\getContentNodeData(), eZVatType\getPercentage(), eZDefaultVATHandler\getProductCategory(), eZVATManager\getVAT(), eZDefaultVATHandler\getVatPercent(), eZHTTPPersistence\handleChecked(), eZHTTPPersistence\handleCheckedElement(), eZObjectRelationListType\handleCustomObjectHTTPActions(), eZContentObjectAttribute\handleDownload(), eZContentUpload\handleLocalFile(), handleNodeTemplate(), handleRelationTemplate(), eZContentUpload\handleUpload(), eZContentObjectVersion\hasConflicts(), eZObjectRelationType\hasObjectAttributeContent(), eZContentObjectAttribute\hasStoredFileInformation(), eZObjectRelationListType\initializeObjectAttribute(), eZContentObjectAttribute\insertHTTPFile(), eZContentObjectAttribute\insertRegularFile(), eZContentObjectAttribute\insertSimpleString(), eZContentObjectPackageHandler\installContentObjects(), eZImportLookupTable\instance(), eZContentClass\instantiate(), eZContentObjectAttribute\language(), eZContentOperationCollection\loopNodeAssignment(), eZContentObjectTreeNode\makeObjectsArray(), eZObjectRelationType\metaData(), eZObjectRelationListType\metaData(), eZContentObjectTreeNodeOperations\move(), eZWebDAVContentServer\moveContent(), eZContentCacheManager\nodeList(), eZContentCacheManager\nodeListForObject(), eZContentObjectVersion\nonTranslatableAttributesToUpdate(), eZContentObjectAttribute\object(), eZInformationCollection\object(), eZObjectRelationType\objectAttributeContent(), eZObjectRelationListType\onPublish(), eZContentObjectAttribute\onPublish(), eZPDFXMLOutput\pdf(), eZObjectRelationType\postUnserializeContentObjectAttribute(), eZObjectRelationListType\postUnserializeContentObjectAttribute(), eZSOAPServer\processRequest(), eZContentOperationCollection\publishNode(), eZContentUpload\publishObject(), eZContentOperationCollection\readObject(), eZContentOperationCollection\registerSearchObject(), eZKeyword\relatedObjects(), eZContentObject\relatedObjects(), eZContentObjectOperations\remove(), eZContentObjectTreeNode\removeNodeFromTree(), eZContentOperationCollection\removeOldNodes(), eZContentObjectTreeNode\removeSubtrees(), eZContentOperationCollection\removeTemporaryDrafts(), eZPDFXMLOutput\renderPDFTag(), eZXHTMLXMLOutput\renderXHTMLTag(), eZContentOperationCollection\resetNodeassignmentOpcodes(), eZModule\runHooks(), eZXMLTextType\serializeContentObjectAttribute(), eZContentOperationCollection\setObjectStatusPublished(), eZContentOperationCollection\setVersionStatus(), eZKeyword\store(), eZContentObjectAttribute\storedFileInformation(), storeNodeAssignments(), eZObjectRelationListType\storeObjectAttribute(), eZInformationCollection\templateForObject(), eZContentObjectVersion\tempMainNode(), eZObjectRelationType\title(), eZInformationCollection\typeForObject(), eZContentObjectPackageHandler\uninstall(), eZContentObjectVersion\unserialize(), eZObjectRelationType\unserializeContentObjectAttribute(), eZContentOperationCollection\updateNontranslatableAttributes(), eZContentOperationCollection\updateSectionID(), eZObjectRelationListType\validateObjectAttributeHTTPInput(), eZSimplePrice\VATPercent(), eZContentObjectVersion\versionName(), and eZXHTMLXMLOutput\xhtml().

$ObjectID =& $Params['ObjectID']
$path = array()

Referenced by eZSys\addAccessPath(), eZTemplate\appendDebugNodes(), eZTemplate\autoload(), eZPHPCreator\canRestore(), eZContentObjectVersion\checkAccess(), eZContentObject\checkAccess(), eZContentObjectTreeNode\checkAccess(), eZSubtreeNotificationRule\checkObjectAccess(), eZContentObjectTreeNode\checkPath(), eZContentObject\classListFromPolicy(), eZContentObjectTreeNode\classListFromPolicy(), eZDir\cleanPath(), eZDir\convertSeparators(), eZContentObjectPackageHandler\createDOMNodeFromFile(), eZImageShellHandler\createFromINI(), eZContentObjectPackageHandler\createObjectListNode(), eZHTTPTool\createRedirectUrl(), eZWebDAVContentServer\currentSiteFromPath(), eZDBFileHandler\delete(), eZFSFileHandler\delete(), eZDBFileHandler\deleteLocal(), eZFSFileHandler\deleteLocal(), eZCharTransform\executeCacheFile(), eZDBFileHandler\exists(), eZFSFileHandler\exists(), eZPHPCreator\exists(), eZExtension\expandedPathList(), extension_path(), eZModule\eZModule(), eZSetupCheckExecutable(), eZSOAPClient\eZSOAPClient(), eZDBFileHandler\fileDelete(), eZFSFileHandler\fileDelete(), eZDBFileHandler\fileDeleteLocal(), eZDBFileHandler\fileExists(), eZFSFileHandler\fileExists(), eZDir\filenamePath(), eZModule\findModule(), eZINI\findSettingPlacement(), eZNodeviewfunctions\generateNodeView(), eZDir\getPathFromFilename(), eZContentObjectPackageHandler\handleParameters(), eZTemplateDesignResource\handleResource(), eZTemplateFileResource\handleResourceData(), eZHTTPHeader\headerOverrideArray(), eZModule\initialize(), eZSimpleTagsOperator\initializeIncludes(), eZIniSettingType\initializeObjectAttribute(), eZDBInterface\insertFile(), eZDBPackageHandler\install(), eZExtensionPackageHandler\install(), isExtension(), eZModuleFunctionInfo\loadDefinition(), eZModuleOperationInfo\loadDefinition(), eZTSTranslator\loadTranslationFile(), eZMimeType\mimeTypeFor(), eZTreeMenuOperator\modify(), nameFromPath(), eZIniSettingType\objectAttributeContent(), eZIniSettingType\onPublish(), eZPHPCreator\open(), eZDBFileHandler\passthrough(), eZFSFileHandler\passthrough(), eZDir\path(), eZDir\recursiveList(), eZHTTPTool\redirect(), eZPackage\remove(), eZObjectForwarder\resourceAcquisitionTransformation(), eZPHPCreator\restore(), eZHTTPTool\sendHTTPRequest(), eZTemplateDesignResource\setDesignStartPath(), eZImageInterface\setStoredFile(), eZWebDAVContentServer\splitFirstPathElement(), eZWebDAVContentServer\splitLastPathElement(), eZContentCache\store(), and eZURLOperator\urlTransformation().

$requireFixup = false
$Result = ''
$Result['content'] =& $tpl->fetch( $templateName )
if ($mainAssignment) if (!$hasPath) if (!$hasPath) $Result['path'] = $path
$storeActions
Initial value:
= array( 'Preview',
'Translate',
'TranslateLanguage',
'VersionEdit',
'Apply',
'Publish',
'Store',
'StoreExit',
'EditLanguage',
'FromLanguage',
'BrowseForObjects',
'UploadFileRelation',
'NewObject',
'BrowseForNodes',
'BrowseForPrimaryNodes',
'RemoveAssignments',
'DeleteRelation',
'DeleteNode',
'MoveNode' )
$storingAllowed
Initial value:
= ( in_array( $Module->currentAction(), $storeActions ) ||
$Module
Definition: classlist.php:32
isStoreAction()
Definition: ezcontentobjectedithandler.php:164
if($http->hasPostVariable( 'CustomActionButton')) $storeActions
Definition: class/edit.php:218
$titlePath = array()
$validatedAttributes = array()
$validation
Initial value:
= array( 'processed' => false,
'attributes' => array(),
'placement' => array( ) )
$version =& $object->version( $EditVersion )

Referenced by eZContentClassGroup\appendClass(), eZIdentifierType\assignValue(), eZContentOperationCollection\attributePublishAction(), checkNodeActions(), checkNodeAssignments(), checkNodeMovements(), eZEnumType\classAttributeContent(), eZContentObject\contentActionList(), eZContentFunctionCollection\contentobjectAttributes(), eZContentObject\contentObjectAttributes(), eZContentObject\contentObjectListRelatingThis(), eZContentClass\contentObjectName(), eZContentObject\copyRevertTo(), eZContentOperationCollection\copyTranslations(), eZContentObject\copyVersion(), eZBinaryFile\create(), eZMedia\create(), eZContentObjectAttribute\create(), eZContentObjectVersion\create(), eZContentObject\create(), eZWebDAVContentServer\createFolder(), eZContentObject\createNewVersion(), eZContentObjectPackageHandler\createObjectListNode(), eZImageVariation\createOriginal(), eZEnumType\customClassAttributeHTTPAction(), eZBinaryFileType\customObjectAttributeHTTPAction(), eZMediaType\customObjectAttributeHTTPAction(), eZObjectRelationListType\customObjectAttributeHTTPAction(), eZWaitUntilDateType\customWorkflowEventHTTPAction(), eZPublishSDK\databaseVersion(), datatypeDownload(), eZEnumType\deleteStoredClassAttribute(), eZUserType\deleteStoredObjectAttribute(), eZMediaType\deleteStoredObjectAttribute(), eZImageType\deleteStoredObjectAttribute(), eZURLType\deleteStoredObjectAttribute(), eZBinaryFileType\deleteStoredObjectAttribute(), eZEnumType\deleteStoredObjectAttribute(), eZKeywordType\deleteStoredObjectAttribute(), eZMultiPriceType\deleteStoredObjectAttribute(), eZXMLTextType\deleteStoredObjectAttribute(), eZBinaryFileHandler\downloadFileObject(), eZBinaryFileHandler\downloadType(), eZXMLInputType\editorName(), eZWaitUntilDateType\execute(), eZApproveType\execute(), eZMultiplexerType\execute(), eZContentObjectEditHandler\executeInputHandlers(), eZContentClass\exists(), eZContentObjectTranslation\eZContentObjectTranslation(), eZEnum\eZEnum(), eZMail\eZMail(), eZWorkflowEvent\fetch(), eZBinaryFile\fetch(), eZEnumValue\fetch(), eZContentObjectAttribute\fetch(), eZWaitUntilDateValue\fetch(), eZMedia\fetch(), eZPDFExport\fetch(), eZImage\fetch(), eZWorkflow\fetch(), eZContentClassAttribute\fetch(), eZNodeAssignment\fetch(), eZContentClass\fetch(), eZEnumValue\fetchAllElements(), eZWaitUntilDateValue\fetchAllElements(), eZContentObjectVersion\fetchAttributes(), eZContentClass\fetchAttributes(), eZContentObjectAttribute\fetchByClassAttributeID(), eZBinaryFile\fetchByFileName(), eZContentClass\fetchByIdentifier(), eZContentClass\fetchByRemoteID(), eZEnumType\fetchClassAttributeHTTPInput(), eZContentObject\fetchClassAttributes(), eZContentObject\fetchDataMap(), eZWorkflow\fetchEventCount(), eZWorkflow\fetchEvents(), eZNodeAssignment\fetchForObject(), eZContentClassAttribute\fetchList(), eZWorkflow\fetchList(), eZContentClass\fetchList(), eZContentObjectAttribute\fetchListByClassID(), eZContentClassAttribute\fetchListByClassID(), eZWorkflow\fetchListCount(), eZContentFunctionCollection\fetchNonTranslationList(), eZMediaType\fetchObjectAttributeHTTPInput(), eZBinaryFileType\fetchObjectAttributeHTTPInput(), eZContentObjectAttribute\fetchSameClassAttributeIDList(), eZContentClass\fetchSearchableAttributes(), eZImageVariation\fetchVariation(), eZContentObjectVersion\fetchVersion(), eZImageVariation\fullPath(), eZBinaryFileHandler\handleDownload(), eZBinaryFileType\handleDownload(), eZContentUpload\handleLocalFile(), handleNodeTemplate(), eZContentUpload\handleUpload(), eZContentObjectVersion\hasConflicts(), eZDBInterface\hasRequiredServerVersion(), importRSSItem(), eZBinaryFileType\initializeObjectAttribute(), eZIdentifierType\initializeObjectAttribute(), eZXMLInputType\instance(), eZContentClass\instantiate(), eZContentClassAttribute\instantiate(), eZLDAPUser\loginUser(), eZTextFileUser\loginUser(), eZContentOperationCollection\loopNodeAssignment(), eZEnumType\metaData(), eZWorkflowEvent\move(), eZContentClassAttribute\move(), eZContentObject\name(), eZContentObject\names(), eZContentObjectVersion\nonTranslatableAttributesToUpdate(), eZEnumType\objectAttributeContent(), eZContentObjectAttribute\objectVersion(), eZObjectRelationListType\onPublish(), eZMediaType\postInitializeObjectAttribute(), eZContentObject\postUnserialize(), eZContentObject\publishContentObjectRelations(), eZContentOperationCollection\publishNode(), eZContentObject\relatedObjectCount(), eZEnumValue\remove(), eZWaitUntilDateValue\remove(), eZBinaryFile\remove(), eZMedia\remove(), eZImage\remove(), eZContentObjectVersion\remove(), eZEnumValue\removeAllElements(), eZWaitUntilDateValue\removeAllElements(), eZContentClass\removeAttributes(), eZWaitUntilDate\removeEntry(), eZEnum\removeEnumeration(), eZWorkflow\removeEvents(), eZContentOperationCollection\removeOldNodes(), eZEnum\removeOldVersion(), eZObjectRelationListType\removeRelationObject(), eZWorkflow\removeTemporary(), eZContentClass\removeTemporary(), eZContentObject\removeTranslation(), eZImageVariation\removeVariation(), eZContentObjectVersion\removeVersions(), eZWorkflow\removeWorkflow(), eZImageVariation\requestVariation(), eZContentOperationCollection\resetNodeassignmentOpcodes(), eZContentObject\reverseRelatedObjectCount(), eZContentObject\reverseRelatedObjectList(), eZContentObject\revertTo(), eZRSSImport\rssFieldDefinition(), eZContentObject\serialize(), eZContentObjectVersion\setAlwaysAvailableLanguageID(), eZContentObject\setAlwaysAvailableLanguageID(), eZContentObject\setContentObjectAttributes(), eZWorkflow\setIsEnabled(), eZMail\setMIMEVersion(), eZNodeAssignment\setNewMainAssignment(), eZContentOperationCollection\setObjectStatusPublished(), eZEnum\setValue(), eZWaitUntilDate\setVersion(), eZEnum\setVersion(), eZWorkflow\setVersion(), eZContentClass\setVersion(), eZContentOperationCollection\setVersionStatus(), eZEnumType\storeClassAttribute(), eZEnumType\storeDefinedClassAttribute(), eZWaitUntilDateType\storeEventData(), storeNodeAssignments(), eZObjectRelationListType\storeObjectAttribute(), templateOperatorDownload(), eZContentObjectAttribute\translateTo(), eZContentObjectVersion\unpublish(), eZContentObject\unserialize(), eZContentObjectTreeNode\unserialize(), eZContentObjectTreeNode\updateMainNodeID(), eZContentOperationCollection\updateNontranslatableAttributes(), eZContentOperationCollection\updateSectionID(), eZMediaType\validateObjectAttributeHTTPInput(), eZBinaryFileType\validateObjectAttributeHTTPInput(), eZContentObject\version(), eZContentObject\versionLanguageName(), and eZWaitUntilDateType\workflowEventContent().

if (($http->hasSessionVariable( 'LastCurrentAction')) and($http->sessionVariable( 'LastCurrentAction')== 'Publish') and($Module->isCurrentAction( 'AddNodeAssignment')||$Module->isCurrentAction( 'AddPrimaryNodeAssignment'))) else
Initial value:
{
$http->removeSessionVariable( 'LastCurrentAction' )
$http
Definition: eztc.php:83
if($http->hasPostVariable("CustomActionButton"))