PHP 클래스 raoul2000\workflow\base\WorkflowBaseObject

It mainly provides a way to store additional properties without the need to declare them in the class definition. Theses properties are called **metadata** and stored into an array. They can be accessed like regular class properties.
상속: extends yii\base\Object
파일 보기 프로젝트 열기: raoul2000/yii2-workflow 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $config = [] ) Construct a workflow object.
__get ( $name )
getId ( ) : string
getMetadata ( string $paramName = null, mixed $defaultValue = null ) : mixed Returns the value of the metadata with namer $paramName.
getSource ( ) : raoul2000\workflow\source\IWorkflowSource Returns the source workflow component used to create this instance.
hasMetadata ( string $paramName ) : boolean Test if a metadata parameter is defined.

메소드 상세

__construct() 공개 메소드

Construct a workflow object.
public __construct ( array $config = [] )
$config array

__get() 공개 메소드

public __get ( $name )

getId() 추상적인 공개 메소드

abstract public getId ( ) : string
리턴 string the object identifier

getMetadata() 공개 메소드

If no $paramNameis provided, this method returns an array containing all metadata parameters.
public getMetadata ( string $paramName = null, mixed $defaultValue = null ) : mixed
$paramName string when null the method returns the complet metadata array, otherwise it returns the value of the correponding metadata.
$defaultValue mixed
리턴 mixed

getSource() 공개 메소드

Returns the source workflow component used to create this instance.
public getSource ( ) : raoul2000\workflow\source\IWorkflowSource
리턴 raoul2000\workflow\source\IWorkflowSource the source instance or null if no source was been provided

hasMetadata() 공개 메소드

Test if a metadata parameter is defined.
public hasMetadata ( string $paramName ) : boolean
$paramName string the metadata parameter name
리턴 boolean TRUE if the metadata parameter exists, FALSE otherwise