PHP 클래스 WorkflowRequest, googleads-php-lib

Only one workflow request can be active for any given page; however, a page may have a number of historical, closed workflow requests. The WorkflowRequest object shouldn't be directly edited. Instead, you call "workflow step" methods on the object, that will update the object appropriately. To create or retrieve a WorkflowRequest object, call {@link SiteTreeCMSWorkflow::openOrNewWorkflowRequest()} or {@link SiteTreeCMSWorkflow::openWorkflowRequest()} on the relevant {@link SiteTree} object. The following examples show how a workflow can be created. Request publication: $wf = $page->openOrNewWorkflowRequest('WorkflowPublicationRequest') $wf->request("Can you please publish this page"); Reject changes: $wf = $page->openWorkflowRequest() $wf->deny("It's not acceptable. Please correct the spelling."); Approve changes: $wf = $page->openWorkflowRequest() $wf->approve("Thanks, looks good now"); Make the changes 'go live' changes: $wf = $page->openWorkflowRequest() $wf->action(); {@link WorkflowRequest::Changes()} will provide a list of the changes that the workflow has gone through, suitable for presentation as a discussion thread attached to the page.
상속: extends DataObject, implements i18nEntityProvider
파일 보기 프로젝트 열기: googleads/googleads-php-lib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$entityId integer
$entityType tnsWorkflowEntityType
$id integer
$type tnsWorkflowRequestType
$workflowRuleName string

공개 메소드들

메소드 설명
__construct ( $id = null, $workflowRuleName = null, $entityId = null, $entityType = null, $type = null )
getNamespace ( ) : string Gets the namesapce of this class
getXsiTypeName ( ) : string Gets the xsi:type name of this class

메소드 상세

__construct() 공개 메소드

public __construct ( $id = null, $workflowRuleName = null, $entityId = null, $entityType = null, $type = null )

getNamespace() 공개 메소드

Gets the namesapce of this class
public getNamespace ( ) : string
리턴 string the namespace of this class

getXsiTypeName() 공개 메소드

Gets the xsi:type name of this class
public getXsiTypeName ( ) : string
리턴 string the xsi:type name of this class

프로퍼티 상세

$entityId 공개적으로 프로퍼티

public int $entityId
리턴 integer

$entityType 공개적으로 프로퍼티

public tnsWorkflowEntityType $entityType
리턴 tnsWorkflowEntityType

$id 공개적으로 프로퍼티

public int $id
리턴 integer

$type 공개적으로 프로퍼티

public tnsWorkflowRequestType $type
리턴 tnsWorkflowRequestType

$workflowRuleName 공개적으로 프로퍼티

public string $workflowRuleName
리턴 string