function removeSelectedGroups($http, &$groups, $base) { if ($http->hasPostVariable("DeleteGroupButton")) { if (eZHTTPPersistence::splitSelected($base, $groups, $http, "id", $keepers, $rejects)) { $groups = $keepers; foreach ($rejects as $reject) { $group_id = $reject->attribute("id"); // Remove all workflows in current group $list_in_group = eZWorkflowGroupLink::fetchWorkflowList(0, $group_id, $asObject = true); $workflow_list = eZWorkflow::fetchList(); $list = array(); foreach ($workflow_list as $workflow) { foreach ($list_in_group as $group) { $id = $workflow->attribute("id"); $workflow_id = $group->attribute("workflow_id"); if ($id === $workflow_id) { $list[] = $workflow; } } } foreach ($list as $workFlow) { eZTrigger::removeTriggerForWorkflow($workFlow->attribute('id')); $workFlow->remove(); } $reject->remove(); eZWorkflowGroupLink::removeGroupMembers($group_id); } } } }
{ eZDebug::writeError( "Couldn't load eventype '{$event->attribute( 'workflow_type_string' )}' for workflow. Is it activated ?" ); continue; } $status = $eventType->fixupHTTPInput( $http, "WorkflowEvent", $event ); } } $cur_type = 0; // Apply HTTP POST variables eZHTTPPersistence::fetch( "WorkflowEvent", eZWorkflowEvent::definition(), $event_list, $http, true ); if ( $http->hasPostVariable( "DeleteButton" ) ) { if ( eZHTTPPersistence::splitSelected( "WorkflowEvent", $event_list, $http, "id", $keepers, $rejects ) ) { $db = eZDB::instance(); $db->begin(); foreach ( $rejects as $reject ) { $reject->remove(); } $db->commit(); $event_list = $keepers; } } eZHTTPPersistence::fetch( "Workflow", eZWorkflow::definition(), $workflow, $http, false ); if ( $http->hasPostVariable( "WorkflowTypeString" ) )
foreach ($attributes as $attribute) { if ($customActionAttributeID == $attribute->attribute('id')) { $attribute->customHTTPAction($Module, $http, $customAction); } } } // Set new modification date $date_time = time(); $class->setAttribute('modified', $date_time); $user = eZUser::currentUser(); $user_id = $user->attribute('contentobject_id'); $class->setAttribute('modifier_id', $user_id); // Remove attributes which are to be deleted if ($http->hasPostVariable('RemoveButton')) { $validation['processed'] = true; if (eZHTTPPersistence::splitSelected('ContentAttribute', $attributes, $http, 'id', $keepers, $rejects)) { $attributes = $keepers; foreach ($rejects as $reject) { if (!$reject->removeThis(true)) { $dataType = $reject->dataType(); $removeInfo = $dataType->classAttributeRemovableInformation($reject); if ($removeInfo !== false) { $validation['attributes'] = array(array('id' => $reject->attribute('id'), 'identifier' => $reject->attribute('identifier'), 'reason' => $removeInfo)); } } } } } // Fetch HTTP input $datatypeValidation = array(); if ($contentClassHasInput) {