本文整理汇总了PHP中eZWorkflow::fetchListCount方法的典型用法代码示例。如果您正苦于以下问题:PHP eZWorkflow::fetchListCount方法的具体用法?PHP eZWorkflow::fetchListCount怎么用?PHP eZWorkflow::fetchListCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZWorkflow
的用法示例。
在下文中一共展示了eZWorkflow::fetchListCount方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
}
else
{
eZDebug::writeError( "Cannot fetch workflow with WorkfowID = " . $WorkflowID );
$Module->setExitStatus( eZModule::STATUS_FAILED );
return;
}
}
}
else
{
// if WorkflowID was not given then create new workflow
$user = eZUser::currentUser();
$user_id = $user->attribute( "contentobject_id" );
$workflow = eZWorkflow::create( $user_id );
$workflowCount = eZWorkflow::fetchListCount();
++$workflowCount;
$workflow->setAttribute( "name", ezpI18n::tr( 'kernel/workflow/edit', "New Workflow" ) . "$workflowCount" );
$db = eZDB::instance();
$db->begin();
$workflow->store();
$WorkflowID = $workflow->attribute( "id" );
$WorkflowVersion = $workflow->attribute( "version" );
$ingroup = eZWorkflowGroupLink::create( $WorkflowID, $WorkflowVersion, $GroupID, $GroupName );
$ingroup->store();
$db->commit();
return $Module->redirectTo( $Module->functionURI( 'edit' ) . '/' . $WorkflowID . '/' . $GroupID );
}
$http = eZHTTPTool::instance();