'down', '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'), 'RegisterClasses' => Array( Array('pseudo'=>'DownloadHelper','class'=>'DownloadHelper','file'=>'download_helper.php','build_event'=>'','require_classes'=>'kHelper'), ), 'AutoLoad' => true, 'Hooks' => Array( /*Array( 'Mode' => hBEFORE, 'Conditional' => true, 'HookToPrefix' => 'p', 'HookToSpecial' => '', 'HookToEvent' => Array( 'onPreSave' ), 'DoPrefix' => 'pr', 'DoSpecial' => 'tang', 'DoEvent' => 'OnArrange', ),*/ ), 'QueryString' => Array( 1 => 'id', 2 => 'page', 3 => 'event', ), 'TitlePresets' => Array( 'downloads_list'=>Array( 'prefixes' => Array('down_List'), 'format' => "!la_title_FileDownloads! (#down_recordcount#)", ), ), 'PermSection' => Array('main' => 'in-commerce:downloadlog'), 'Sections' => Array( 'in-commerce:downloadlog' => Array( 'parent' => 'in-portal:reports', 'icon' => 'download_log', 'label' => 'la_tab_DownloadLog', 'url' => Array('t' => 'in-commerce/downloads/downloads_list', 'pass' => 'm'), 'permissions' => Array('view', 'delete'), 'priority' => 7, 'type' => stTREE, ), ), 'IDField' => 'DownloadId', 'TitleField' => 'Name', 'TableName' => TABLE_PREFIX.'UserDownloads', 'ListSQLs' => Array( ''=>'SELECT * FROM %s', ), // key - special, value - list select sql 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', ), 'ListSortings' => Array( '' => Array( 'Sorting' => Array('StartedOn' => 'desc'), ) ), 'Fields' => Array( 'DownloadId' => Array('type' => 'int','not_null' => '1','default' => ''), 'PortalUserId' => Array('type' => 'int','not_null' => '1','default' => '0'), 'Username' => Array('type' => 'string','not_null' => '1','default' => ''), 'ProductId' => Array('type' => 'int','not_null' => '1','default' => '0'), 'ProductName' => Array('type' => 'string','not_null' => '1','default' => ''), 'FileId' => Array('type' => 'int','not_null' => '1','default' => '0'), 'Filename' => Array('type' => 'string','not_null' => '1','default' => ''), 'IPAddress' => Array('type' => 'string','not_null' => '1','default' => ''), 'StartedOn' => Array('type' => 'int','formatter' => 'kDateFormatter','not_null' => '1','default' => '0'), 'EndedOn' => Array('type' => 'int','formatter' => 'kDateFormatter','not_null' => '1','default' => '0'), ), 'VirtualFields' => Array( ), 'Grids' => Array( 'Default' => Array( 'Icons' => Array('default'=>'icon16_custom.gif'), // icons for each StatusField values, if no matches or no statusfield selected, then "default" icon is used 'Fields' => Array( 'DownloadId' => Array( 'title'=>'la_col_Id', 'data_block' => 'grid_checkbox_td_no_icon'), 'Username' => Array( 'title'=>'la_col_Username' ), 'ProductName' => Array( 'title'=>'la_col_DownloadedProductName' ), 'Filename' => Array( 'title'=>'la_col_DownloadedFileName' ), 'IPAddress' => Array( 'title'=>'la_col_IPAddress' ), 'StartedOn' => Array( 'title'=>'la_col_StartedOn' ), ), ), ), ); ?>