选择语言 :

 Module_OOP_ORM_Parse::get_offset_cache_key

根据index获取一个唯一的缓存key

string Module_OOP_ORM_Parse::get_offset_cache_key( string $data_obj , $index )

参数列表

参数 类型 描述 默认值
$data_obj string $index
$index unknown
返回值
  • string
File: ./modules/oop/orm/parse.class.php
public static function get_offset_cache_key( OOP_ORM_Data $data_obj , $index )
{
    $id_field_name = $data_obj->id_field_name();
    $id_value = $data_obj->$id_field_name;
    return '_ORM_OFFSET_CACHE_' . get_class($data_obj) . '_' . $id_value . '_' . $index;
}