1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Issue #3233 Example added to _blank plugin.

This commit is contained in:
Cameron
2019-01-31 15:38:21 -08:00
parent e462759c4f
commit 644a10c370

View File

@@ -89,7 +89,7 @@ class plugin_blank_admin_ui extends e_admin_ui
*
* @var string
*/
protected $pluginName = 'blank';
protected $pluginName = '_blank';
/**
* DB Table, table alias is supported
@@ -282,12 +282,17 @@ class plugin_blank_admin_ui extends e_admin_ui
protected $prefs = array(
'pref_type' => array('title'=> 'type', 'type'=>'text', 'data' => 'string', 'validate' => true),
'pref_folder' => array('title'=> 'folder', 'type' => 'boolean', 'data' => 'integer'),
'pref_name' => array('title'=> 'name', 'type' => 'text', 'data' => 'string', 'validate' => 'regex', 'rule' => '#^[\w]+$#i', 'help' => 'allowed characters are a-zA-Z and underscore')
'pref_name' => array('title'=> 'name', 'type' => 'text', 'data' => 'string', 'validate' => 'regex', 'rule' => '#^[\w]+$#i', 'help' => 'allowed characters are a-zA-Z and underscore'),
'pref_classes' => array('title'=> 'classes', 'type' => 'userclasses', 'data' => 'array')
);
// optional
public function init()
{
$pref = e107::pref('_blank');
e107::getDebug()->log($pref);
}