'mod', 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), 'EventHandlerClass' => Array('class'=>'ModulesEventHandler','file'=>'modules_event_handler.php','build_event'=>'OnBuild'), 'TagProcessorClass' => Array('class'=>'ModulesTagProcessor','file'=>'modules_tag_processor.php','build_event'=>'OnBuild'), 'AutoLoad' => true, 'hooks' => Array(), 'QueryString' => Array( 1 => 'id', 2 => 'page', 3 => 'event', 4 => 'mode', ), 'IDField' => 'Name', 'TitleField' => 'Name', // field, used in bluebar when editing existing item 'StatusField' => Array('Loaded'), 'TitlePresets' => Array( 'modules_list' => Array( 'prefixes' => Array('mod_List'), 'format' => "!la_title_Configuration! - !la_title_Module_Status! (#mod_recordcount#)"), ), 'TableName' => TABLE_PREFIX.'Modules', 'ListSQLs' => Array( ''=>'SELECT * FROM %s', ), // key - special, value - list select sql 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', ), 'ListSortings' => Array( '' => Array( 'Sorting' => Array('LoadOrder' => 'asc'), ) ), 'Fields' => Array( 'Name' => Array('type' => 'string','not_null' => '1','default' => ''), 'Path' => Array('type' => 'string','not_null' => '1','default' => ''), 'Var' => Array('type' => 'string','not_null' => '1','default' => ''), 'Version' => Array('type' => 'string','not_null' => '1','default' => ''), 'Loaded' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array(1 => 'la_Enabled', 0 => 'la_Disabled'), 'use_phrases' => 1, 'not_null' => '1','default' => '1'), 'LoadOrder' => Array('type' => 'int','not_null' => '1','default' => '0'), 'TemplatePath' => Array('type' => 'string','not_null' => '1','default' => ''), 'RootCat' => Array('type' => 'int','not_null' => '1','default' => '0'), 'BuildDate' => Array('type' => 'double', 'formatter' => 'kDateFormatter', 'not_null' => '1','default' => ''), ), 'VirtualFields' => Array(), 'Grids' => Array( 'Default' => Array( 'Icons' => Array('default' => 'icon16_custom.gif'), 'Fields' => Array( 'Name' => Array('title' => 'la_col_Name', 'data_block' => 'grid_checkbox_td_no_icon'), 'Loaded' => Array('title' => 'la_col_Status'), 'Version' => Array('title' => 'la_col_Version'), ), ), ), ); ?>