PHP Класс OEModule\PASAPI\models\PasApiAssignment

Наследование: extends BaseActiveRecord
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 ( )