Index: branches/RC/kernel/units/files/files_config.php =================================================================== diff -u -N --- branches/RC/kernel/units/files/files_config.php (revision 11153) +++ branches/RC/kernel/units/files/files_config.php (revision 0) @@ -1,84 +0,0 @@ - '#file', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'FileEventHandler', 'file' => 'file_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'FileTagProcessor', 'file' => 'file_tp.php', 'build_event' => 'OnBuild'), - - 'AutoLoad' => true, - - 'QueryString' => Array ( - 1 => 'id', - 2 => 'page', - 3 => 'event', - ), - - 'IDField' => 'FileId', - 'StatusField' => Array('Status'), - - 'TitleField' => 'FileName', - 'TableName' => TABLE_PREFIX.'ItemFiles', - - 'ParentTableKey' => 'ResourceId', - 'ForeignKey' => 'ResourceId', - 'AutoDelete' => true, - 'AutoClone' => true, - - 'FilterMenu' => Array ( - 'Groups' => Array ( - Array ('mode' => 'AND', 'filters' => Array ('show_active','show_disabled'), 'type' => WHERE_FILTER), - ), - - 'Filters' => Array( - 'show_active' => Array('label' =>'la_Active', 'on_sql' => '', 'off_sql' => '%1$s.Status != 1' ), - 'show_disabled' => Array('label' => 'la_Disabled', 'on_sql' => '', 'off_sql' => '%1$s.Status != 0' ), - ) - ), - - 'ListSQLs' => Array ( - '' => 'SELECT * FROM %s', - ), - - 'ItemSQLs' => Array ( - '' => 'SELECT * FROM %s', - ), - - 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('FileName' => 'asc'), - ) - ), - - 'Fields' => Array ( - 'FileId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ResourceId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'FileName' => Array ('type' => 'string', 'max_len' => 255, 'required' => 1, 'not_null' => 1, 'default' => ''), - 'FilePath' => Array ( - 'type' => 'string', 'max_len' => 255, - 'formatter' => 'kUploadFormatter', 'upload_dir' => ITEM_FILES_PATH, 'include_path' => false, - 'size_field' => 'Size', 'content_type_field' => 'MimeType', 'max_size' => 50000000, - 'allowed_types' => Array ('application/pdf', 'application/msexcel', 'application/vnd.ms-excel', 'application/msword', 'application/mspowerpoint', 'application/zip', 'plain/text', 'application/x-gzip'), - 'not_null' => 1, 'required' => 1, 'default' => '' - ), - 'Size' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Enabled', 0 => 'la_Disabled'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 1), - 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'not_null' => 1, 'default' => '#NOW#'), - 'CreatedById' => Array ('type' => 'int', 'not_null' => 1, 'default' => -1), - 'MimeType' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), - ), - - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array (1 => 'icon16_file.gif', 0 => 'icon16_file_disabled.gif'), - 'Fields' => Array( - 'FileId' => Array ('title' => 'la_col_Id' , 'data_block' => 'grid_checkbox_td', 'module' => 'In-Portal'), - 'FileName' => Array ('title' => 'la_col_FileName'), - 'Status' => Array ('title' => 'la_col_Status'), - ), - ), - ), - ); - -?> \ No newline at end of file