当前位置: 首页>>代码示例>>PHP>>正文


PHP eZWorkflow::definition方法代码示例

本文整理汇总了PHP中eZWorkflow::definition方法的典型用法代码示例。如果您正苦于以下问题:PHP eZWorkflow::definition方法的具体用法?PHP eZWorkflow::definition怎么用?PHP eZWorkflow::definition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在eZWorkflow的用法示例。


在下文中一共展示了eZWorkflow::definition方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

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" ) )
    $cur_type = $http->postVariable( "WorkflowTypeString" );

// set temporary version to edited workflow
$workflow->setVersion( 1, $event_list );

// Set new modification date
$date_time = time();
$workflow->setAttribute( "modified", $date_time );
$user = eZUser::currentUser();
$user_id = $user->attribute( "contentobject_id" );
$workflow->setAttribute( "modifier_id", $user_id );

开发者ID:sushilbshinde,项目名称:ezpublish-study,代码行数:29,代码来源:edit.php

示例2: foreach

}
$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")) {
    $cur_type = $http->postVariable("WorkflowTypeString");
}
// set temporary version to edited workflow
$workflow->setVersion(1, $event_list);
// Set new modification date
$date_time = time();
$workflow->setAttribute("modified", $date_time);
$user = eZUser::currentUser();
$user_id = $user->attribute("contentobject_id");
$workflow->setAttribute("modifier_id", $user_id);
/********** Custom Action Code Start ***************/
$customAction = false;
$customActionAttributeID = null;
// Check for custom actions
开发者ID:CG77,项目名称:ezpublish-legacy,代码行数:31,代码来源:edit.php


注:本文中的eZWorkflow::definition方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。