PHP Class CanvasModel, thinksns

Author: Stream
Inheritance: extends Model
Mostra file Open project: medz/thinksns-4

Protected Properties

Property Type Description
$path
$tableName

Public Methods

Method Description
_initialize ( )
addCanvas ( array $data ) : boolean 添加画布
deleteCanvas ( array $map ) : boolean 删除画布
getCanvasInfo ( unknown_type $map, unknown_type $fields = 'id,canvas_name,title,data,description' ) : unknown 返回画布详细信息
getCanvasList ( integer $limit = 20, array $map, string $fields = 'id,title,canvas_name,description' ) : array 返回画布列表
getLastError ( ) : string 获取最后错误信息
saveCanvas ( array $data ) : boolean 修改画布

Private Methods

Method Description
convert ( $type, $data )
createhtml ( array $data ) 创建静态画布

Method Details

_initialize() public method

public _initialize ( )

addCanvas() public method

添加画布
public addCanvas ( array $data ) : boolean
$data array
return boolean or 1

deleteCanvas() public method

删除画布
public deleteCanvas ( array $map ) : boolean
$map array
return boolean

getCanvasInfo() public method

返回画布详细信息
public getCanvasInfo ( unknown_type $map, unknown_type $fields = 'id,canvas_name,title,data,description' ) : unknown
$map unknown_type
$fields unknown_type
return unknown

getCanvasList() public method

返回画布列表
public getCanvasList ( integer $limit = 20, array $map, string $fields = 'id,title,canvas_name,description' ) : array
$limit integer
$map array
$fields string
return array or false

getLastError() public method

获取最后错误信息
public getLastError ( ) : string
return string 最后错误信息

saveCanvas() public method

修改画布
public saveCanvas ( array $data ) : boolean
$data array
return boolean or 1

Property Details

$path protected_oe property

protected $path

$tableName protected_oe property

protected $tableName