Properties

$info

$info : 

$info = array( 'name'=>'Editor', 'title'=>'编辑器', 'description'=>'用于增强整站长文本的输入和显示', 'status'=>1, 'author'=>'thinkphp', 'version'=>'0.1' )

Type

$addon_path

$addon_path : 

Type

$config_file

$config_file : 

Type

$custom_config

$custom_config : 

Type

$admin_list

$admin_list : 

Type

$custom_adminlist

$custom_adminlist : 

Type

$access_url

$access_url : 

Type

$view

$view : \Common\Controller\view

视图实例对象

Type

\Common\Controller\view

Methods

__construct()

__construct() 

getName()

getName() 

checkInfo()

checkInfo() 

getConfig()

getConfig(  $name = '') 

获取插件的配置数组

Parameters

$name

install()

install() 

uninstall()

uninstall() 

documentEditForm()

documentEditForm(  $param = array()) 

Parameters

$param

documentDetailAfter()

documentDetailAfter(  $info = array()) 

Parameters

$info

documentSaveComplete()

documentSaveComplete(  $param) 

文档保存成功后执行行为

Parameters

$param

theme()

theme(string  $theme) : \Common\Controller\Action

模板主题设置

Parameters

string $theme

模版主题

Returns

\Common\Controller\Action

display()

display(  $template = '') 

Parameters

$template

assign()

assign(mixed  $name, mixed  $value = '') : \Common\Controller\Action

模板变量赋值

Parameters

mixed $name

要显示的模板变量

mixed $value

变量的值

Returns

\Common\Controller\Action

fetch()

fetch(  $templateFile = CONTROLLER_NAME) 

Parameters

$templateFile