Index: trunk/kernel/units/images/images_config.php =================================================================== diff -u -N --- trunk/kernel/units/images/images_config.php (revision 8771) +++ trunk/kernel/units/images/images_config.php (revision 0) @@ -1,158 +0,0 @@ - 'img', - 'Clones' => Array( - 'l-img' => Array('ParentPrefix' => 'l'), - 'n-img' => Array('ParentPrefix' => 'n'), - 'bb-img'=> Array('ParentPrefix' => 'bb'), - 'bb-post-img'=> Array('ParentPrefix' => 'bb-post'), - /*'p-img' => Array('ParentPrefix' => 'p'),*/ - 'c-img' => Array('ParentPrefix' => 'c'), - ), - - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'ImageEventHandler','file'=>'image_event_handler.php','build_event'=>'OnBuild'), - 'TagProcessorClass' => Array('class'=>'ImageTagProcessor','file'=>'image_tag_processor.php','build_event'=>'OnBuild'), - 'AutoLoad' => true, - - 'AggregateTags' => Array ( - Array ( - 'AggregateTo' => '#PARENT#', - 'AggregatedTagName' => 'Image', - 'LocalTagName' => 'ItemImageTag', - 'LocalSpecial' => '-item', - ), - - Array ( - 'AggregateTo' => '#PARENT#', - 'AggregatedTagName' => 'ImageSrc', - 'LocalTagName' => 'ItemImageTag', - 'LocalSpecial' => '-item', - ), - - Array ( - 'AggregateTo' => '#PARENT#', - 'AggregatedTagName' => 'ImageSize', - 'LocalTagName' => 'ItemImageTag', - 'LocalSpecial' => '-item', - ), - - Array ( - 'AggregateTo' => '#PARENT#', - 'AggregatedTagName' => 'ListImages', - 'LocalTagName' => 'PrintList2', - 'LocalSpecial' => 'list', - ), - - Array ( - 'AggregateTo' => '#PARENT#', - 'AggregatedTagName' => 'LargeImageExists', - 'LocalTagName' => 'LargeImageExists', - ), - ), - - 'QueryString' => Array( - 1 => 'id', - 2 => 'page', - 3 => 'event', - ), - 'IDField' => 'ImageId', - 'StatusField' => Array('Enabled', 'DefaultImg'), // field, that is affected by Approve/Decline events - 'TitleField' => 'Name', // field, used in bluebar when editing existing item - 'TableName' => TABLE_PREFIX.'Images', - 'ParentTableKey'=> 'ResourceId', // linked field in master table - 'ForeignKey' => 'ResourceId', // linked field in subtable - 'ParentPrefix' => 'p', - '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' => 'Enabled != 1' ), - 'show_disabled' => Array('label' => 'la_Disabled', 'on_sql' => '', 'off_sql' => 'Enabled != 0' ), - ) - ), - - 'CalculatedFields' => Array( - '' => Array( - 'Preview' => '0', - ), - ), - - 'ListSQLs' => Array( ''=>'SELECT * FROM %s', - ), // key - special, value - list select sql - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', - ), - 'ListSortings' => Array( - '' => Array( - 'ForcedSorting' => Array('Priority' => 'desc'), - 'Sorting' => Array('Name' => 'asc'), - ) - ), - 'Fields' => Array( - 'ImageId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ResourceId' => Array('type'=>'int', 'not_null'=>1, 'default' => 0), - 'Url' => Array('type' => 'string', 'max_len'=>255, 'default' => '', 'not_null'=>1), - 'Name' => Array('type' => 'string', 'max_len'=>255, 'required'=>1, 'not_null'=>1, 'default' => ''), - 'AltName' => Array('type' => 'string', 'max_len'=>255, 'required' => 1, 'not_null' => 1, 'default' => ''), - 'ImageIndex' => Array('type'=>'int', 'default' => 0, 'not_null'=>1), - 'LocalImage' => Array('type'=>'int', 'default' => 1, 'not_null'=>1), - 'LocalPath' => Array('type' => 'string', 'formatter'=>'kPictureFormatter', 'skip_empty'=>1, 'max_len'=>240, 'default' => '', 'not_null' => 1, 'include_path' => 1, - 'allowed_types' => Array( - 0 => 'image/jpeg', - 1 => 'image/pjpeg', - 2 => 'image/png', - 3 => 'image/gif', - 4 => 'image/bmp' - ), - 'error_msgs' => Array( 'bad_file_format' => '!la_error_InvalidFileFormat!', - 'bad_file_size' => '!la_error_FileTooLarge!', - 'cant_save_file' => '!la_error_cant_save_file!' - ) - ), - 'Enabled' => Array('type' => 'int', 'formatter'=>'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array ( 1 => 'la_Enabled', 0 => 'la_Disabled' ), 'default' => 0, 'not_null'=>1), - 'DefaultImg' => Array('type'=>'int', 'default' => 0, 'not_null'=>1), - 'ThumbUrl' => Array('type' => 'string', 'max_len' => 255, 'default' => null), - 'Priority' => Array('type'=>'int', 'default' => 0, 'not_null'=>1), - 'ThumbPath' => Array('type' => 'string', 'formatter'=>'kPictureFormatter', 'skip_empty'=>1, 'max_len' => 255, 'default' => null, - 'allowed_types' => Array( - 0 => 'image/jpeg', - 1 => 'image/pjpeg', - 2 => 'image/png', - 3 => 'image/gif', - 4 => 'image/bmp' - ), - 'error_msgs' => Array( 'bad_file_format' => '!la_error_InvalidFileFormat!', - 'bad_file_size' => '!la_error_FileTooLarge!', - 'cant_save_file' => '!la_error_cant_save_file!' - ) - ), - 'LocalThumb' => Array('type'=>'int', 'default' => 1, 'not_null'=>1), - 'SameImages' => Array('type'=>'int', 'default' => 1, 'not_null'=>1), - ), - 'VirtualFields' => Array( - 'Preview' => Array(), - 'ImageUrl' => Array(), - ), - - 'Grids' => Array( - 'Default' => Array( - 'Icons' => Array('default'=>'icon17_custom.gif','1_0'=>'icon16_image.gif','0_0'=>'icon16_image_disabled.gif','1_1'=>'icon16_image_primary.gif'), - 'Fields' => Array( - 'Name' => Array( 'title'=>'la_col_ImageName' , 'data_block' => 'image_caption_td'), - 'AltName' => Array( 'title'=>'la_col_AltName' ), - 'Url' => Array( 'title'=>'la_col_ImageUrl', 'data_block' => 'image_url_td' ), - 'Enabled' => Array( 'title'=>'la_col_ImageEnabled' ), - 'Preview' => Array( 'title'=>'la_col_Preview', 'data_block' => 'image_preview_td' ), - ), - - ), - ), - ); - -?> \ No newline at end of file