Метод | Описание | |
---|---|---|
findByResource ( string $resource_type, string $resource_id, $internal_type = null ) : |
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__ ) : |
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. |
public findByResource ( string $resource_type, string $resource_id, $internal_type = null ) : |
||
$resource_type | string | |
$resource_id | string | |
Результат |
public getInternal ( boolean $force_create = false ) : CActiveRecord | ||
$force_create | boolean | |
Результат | CActiveRecord |
protected lock ( $resource_type, $resource_id ) | ||
$resource_type | ||
$resource_id |
public static model ( $className = __CLASS__ ) : |
||
Результат | the static model class |