📄 dbinfo.php
字号:
<?php//The install script just defines the new $dbInfo values// These values are used to query/display data from the plugin//global $wbTablePrefix;////////////////////////////////////////////////////////////////////////////////////////////////////////////////// REQUIRED VALUES// //tells the wiki where to get the necessary files $installInfo['isPlugin'] = true; //name of the php class in /plugins/<yourPlugin>/class.php $installInfo['class'] = 'skeleton'; //Database Values $installInfo['dbTable'] = "`{$wbTablePrefix}skeleton`"; //table name ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// OPTIONAL VALUES// //These two fields are optional and used for populating the software's search table // comment or delete them if you don't want the data for this object in the search table, // or modify the array if there are more fields you want in the $installInfo['searchTitle'] = array('title'); $installInfo['searchContent'] = array('content'); //SQL that creates a unique link that can be used in html //$installInfo['uniqLink'] = ' CONCAT("/Skeleton/", `'.$wbTablePrefix.'skeleton`.owner, "/", `'.$wbTablePrefix.'skeleton`.title) '; //$installInfo['keys'] = array('owner'=>1,'title'=>1); //Keys of the primary key in the table //Optional Query values //$installInfo['querySelect'] = " `{$wbTablePrefix}skeleton`.* "; //What to get from the table/tables when displaying a file of this type //$installInfo['queryFrom'] = " `{$wbTablePrefix}skeleton` "; //The table/tables to get the data from //xmlHTTP = 0 would mean the dataType can't be displayed correctly when loaded via xmlHTTP/AJAX //$installInfo['xmlHTTP'] = 0; //An array that will be used to create SQL, this is optional and only needs to be set in special cases... see the dTitle entry for `help` and `comment` // // A value of 0 indicates an SQL statement // A value of 1 tells the script to replace the key with $lang[key] // $installInfo['dTitle'] = array('skeleton'=>1,'" > "'=>0,'`'.$wbTablePrefix.'skeleton`.title'=>0);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -