'c', 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), 'EventHandlerClass' => Array('class'=>'CategoriesEventHandler','file'=>'categories_event_handler.php','build_event'=>'OnBuild'), 'TagProcessorClass' => Array('class'=>'CategoriesTagProcessor','file'=>'categories_tag_processor.php','build_event'=>'OnBuild'), 'AutoLoad' => true, 'QueryString' => Array( 1 => 'id', 2 => 'page', 3 => 'event', ), 'IDField' => 'CategoryId', 'TableName' => TABLE_PREFIX.'Category', 'ListSQLs' => Array( ''=> 'SELECT * FROM %s'), // key - special, value - list select sql 'ItemSQLs' => Array( ''=> 'SELECT * FROM %s'), 'Fields' => Array ( 'CategoryId' => Array('type' => 'int','not_null' => '1','default' => ''), 'Type' => Array('type' => 'int','not_null' => '1','default' => '0'), 'ParentId' => Array('type' => 'int','not_null' => '1','default' => '0'), 'Name' => Array('type' => 'string','not_null' => '1','default' => ''), 'Description' => Array('type' => 'string','not_null' => '1','default' => ''), 'CreatedOn' => Array('type' => 'int','not_null' => '1','default' => '0'), 'EditorsPick' => Array('type' => 'int','default' => ''), 'Status' => Array('type' => 'int','not_null' => '1','default' => '0'), 'Pop' => Array('type' => 'int','default' => ''), 'Priority' => Array('type' => 'int','default' => ''), 'MetaKeywords' => Array('type' => 'string','default' => ''), 'CachedDescendantCatsQty' => Array('type' => 'int','default' => ''), 'CachedNavbar' => Array('type' => 'string','not_null' => '1','default' => ''), 'CreatedById' => Array('type' => 'int','not_null' => '1','default' => '0'), 'ResourceId' => Array('type' => 'int','default' => ''), 'ParentPath' => Array('type' => 'string','not_null' => '1','default' => ''), 'MetaDescription' => Array('type' => 'string','default' => ''), 'HotItem' => Array('type' => 'int','not_null' => '1','default' => '2'), 'NewItem' => Array('type' => 'int','not_null' => '1','default' => '2'), 'PopItem' => Array('type' => 'int','not_null' => '1','default' => '2'), 'Modified' => Array('type' => 'int','not_null' => '1','default' => '0'), 'ModifiedById' => Array('type' => 'int','not_null' => '1','default' => '0'), ), 'Grids' => Array( 'Default' => Array( 'Icons' => Array('default'=>'icon16_cat.gif'), 'Fields' => Array( 'Name' => Array( 'width'=>150, 'title'=>'la_col_Title', 'data_block'=>'category_td' ), ), ), ), ); ?>