PHP 클래스 OEModule\PASAPI\models\PasApiAssignment

상속: extends BaseActiveRecord
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 메소드들

메소드 설명
findByResource ( string $resource_type, string $resource_id, $internal_type = null ) : PasApiAssignment Find or create association using resource details and lock.
getInternal ( boolean $force_create = false ) : CActiveRecord Returns the internal model that this assignment is associated with (or a new instance if it has not been attached yet).
model ( $className = __CLASS__ ) : PasApiAssignment Returns the static model of the specified AR class.
rules ( ) : array
tableName ( ) : string
unlock ( ) Unlock the assignment.

보호된 메소드들

메소드 설명
getLockKey ( $resource_type, $resource_id )
lock ( $resource_type, $resource_id ) Lock the assignment so no other instances can clash with efforts to create or update the record.

메소드 상세

findByResource() 공개 메소드

Find or create association using resource details and lock.
public findByResource ( string $resource_type, string $resource_id, $internal_type = null ) : PasApiAssignment
$resource_type string
$resource_id string
리턴 PasApiAssignment

getInternal() 공개 메소드

if force_create is true, it will create a new instance if the internal id cannot find the internal model. This allows for fault tolerance on internal models that might be deleted by other means.
public getInternal ( boolean $force_create = false ) : CActiveRecord
$force_create boolean
리턴 CActiveRecord

getLockKey() 보호된 메소드

protected getLockKey ( $resource_type, $resource_id )

lock() 보호된 메소드

Lock the assignment so no other instances can clash with efforts to create or update the record.
protected lock ( $resource_type, $resource_id )
$resource_type
$resource_id

model() 공개 정적인 메소드

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : PasApiAssignment
리턴 PasApiAssignment the static model class

rules() 공개 메소드

public rules ( ) : array
리턴 array validation rules for model attributes.

tableName() 공개 메소드

public tableName ( ) : string
리턴 string the associated database table name

unlock() 공개 메소드

Unlock the assignment.
public unlock ( )