PHP Class PageModel, thinksns

Inheritance: extends AppModel
Mostrar archivo Open project: medz/thinksns-4 Class Usage Examples

Protected Properties

Property Type Description
$tableName

Public Methods

Method Description
addPage ( array $data ) : boolean 添加页面
addReader ( unknown_type $pageId ) 浏览量
deletePage ( array $map ) : boolean 删除页面
getLastError ( ) : string 获取最后错误信息
getManagers ( array $map ) : Ambigous 返回管理员信息
getPageInfo ( $map, unknown_type $field = 'id,page_name,domain,canvas,manager,status,guest,seo_title,seo_keywords,seo_description' ) : unknown 返回页面详细信息
getPageList ( $limit = 20, array $map, string $field = 'id,page_name,domain,canvas,manager,visit_count' ) 返回页面列表
saveData ( $page, $layoutData, $widgetData ) 保存页面数据
savePage ( array $data ) : boolean 修改页面

Method Details

addPage() public method

添加页面
public addPage ( array $data ) : boolean
$data array
return boolean

addReader() public method

浏览量
public addReader ( unknown_type $pageId )
$pageId unknown_type

deletePage() public method

删除页面
public deletePage ( array $map ) : boolean
$map array
return boolean

getLastError() public method

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

getManagers() public method

返回管理员信息
public getManagers ( array $map ) : Ambigous
$map array
return Ambigous <返回新的一维数组, multitype:Ambigous >

getPageInfo() public method

返回页面详细信息
public getPageInfo ( $map, unknown_type $field = 'id,page_name,domain,canvas,manager,status,guest,seo_title,seo_keywords,seo_description' ) : unknown
$field unknown_type
return unknown

getPageList() public method

返回页面列表
public getPageList ( $limit = 20, array $map, string $field = 'id,page_name,domain,canvas,manager,visit_count' )
$map array
$field string

saveData() public method

保存页面数据
public saveData ( $page, $layoutData, $widgetData )

savePage() public method

修改页面
public savePage ( array $data ) : boolean
$data array
return boolean

Property Details

$tableName protected_oe property

protected $tableName