'theme-file', 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), 'EventHandlerClass' => Array('class' => 'kDBEventHandler', 'file' => '', 'build_event'=>'OnBuild'), 'TagProcessorClass' => Array('class' => 'kDBTagProcessor', 'file' => '', 'build_event'=>'OnBuild'), 'AutoLoad' => true, 'QueryString' => Array( 1 => 'id', 2 => 'page', 3 => 'event', ), 'IDField' => 'FileId', 'TitleField' => 'FileName', 'TableName' => TABLE_PREFIX.'ThemeFiles', 'ForeignKey' => 'ThemeId', 'ParentTableKey' => 'ThemeId', 'ParentPrefix' => 'theme', 'AutoDelete' => true, 'AutoClone' => true, 'ListSQLs' => Array( '' => 'SELECT %1$s.* %2$s FROM %s'), 'ItemSQLs' => Array( '' => 'SELECT %1$s.* %2$s FROM %s'), 'ListSortings' => Array ( '' => Array( 'Sorting' => Array('FileName' => 'asc'), ) ), 'Fields' => Array( 'FileId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'ThemeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'FileName' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), 'FilePath' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), 'Description' => Array ('type' => 'string', 'max_len' => 255, 'default' => NULL), 'FileType' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'FileFound' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'FileMetaInfo' => Array ('type' => 'string', 'default' => NULL), ), 'Grids' => Array ( 'Default' => Array ( 'Icons' => Array('default' => 'icon16_custom.gif'), 'Fields' => Array ( 'FileId' => Array ('title' => 'la_col_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), 'FilePath' => Array( 'title'=>'la_col_FilePath',), 'FileName' => Array( 'title'=>'la_col_FileName',), 'Description' => Array( 'title'=>'la_col_Description',), ), ), ), ); ?>