选择语言 :

Core_Model

Model基础核心类

API - Core_Model

author
呼吸二氧化碳 jonwang@myqee.com
category
MyQEE
package
System
subpackage
Core
copyright
Copyright © 2008-2013 myqee.com
license
http://www.myqee.com/license.html

$this->__construct( )


$this->db( )

数据库对象

返回值
  • Database

$this->cache( )

缓存对象

返回值
  • Cache

$this->get_cache_data( )


$this->set_cache_data( )


$this->clear_cache_data( $fun , $arg1 = '', $arg2 = '')

清除指定方法和参数的缓存

参数列表

参数 类型 描述 默认值
$fun string $model_name
$arg1 string $fun empty
$arg2 mixed $arg1 empty

$this->_get_cache_key( $e , $trace_offset = 0)

根据trace获取唯一key

参数列表

参数 类型 描述 默认值
$e Exception $e
$trace_offset int 需要获取key的参照位置,>=0,默认0,通常都是0 integer 0
返回值
  • string

$this->error( $message , $no = 0)

设置错误

参数列表

参数 类型 描述 默认值
$message string $message
$no int $no integer 0

$this->get_error( )

获取错误信息

返回值
  • Exception