'emailevents', 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), 'EventHandlerClass' => Array('class'=>'EmailEventsEventsHandler','file'=>'email_events_event_handler.php','build_event'=>'OnBuild'), 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), 'AutoLoad' => true, 'QueryString' => Array( 1 => 'id', 2 => 'page', 3 => 'event', ), 'IDField' => 'EventId', 'StatusField' => Array('Enabled'), 'TitleField' => 'Event', 'TitlePresets' => Array( 'email_settings_list' => Array('prefixes' => Array('emailevents.module_List'), 'format' => '!la_title_EmailSettings! (#emailevents.module_recordcount#)'), 'email_send' => Array('prefixes' => Array(), 'format' => '!la_title_PleaseWait!'), 'email_send_complete' => Array('prefixes' => Array(), 'format' => '!la_title_SendMailComplete!'), ), 'FilterMenu' => Array( 'Groups' => Array( Array('mode' => 'AND', 'filters' => Array('show_enabled','show_disabled','show_frontonly'), 'type' => WHERE_FILTER), ), 'Filters' => Array( 'show_enabled' => Array('label' =>'la_Enabled', 'on_sql' => '', 'off_sql' => '%1$s.Enabled != 1' ), 'show_disabled' => Array('label' => 'la_Disabled', 'on_sql' => '', 'off_sql' => '%1$s.Enabled != 0' ), 'show_frontonly' => Array('label' => 'la_Text_FrontOnly', 'on_sql' => '', 'off_sql' => '%1$s.Enabled != 2' ), ) ), 'TableName' => TABLE_PREFIX.'Events', 'CalculatedFields' => Array( '' => Array ( 'FromUser' => 'u.Login', ) ), 'ListSQLs' => Array( ''=>' SELECT %1$s.* %2$s FROM %1$s LEFT JOIN '.TABLE_PREFIX.'PortalUser u ON %1$s.FromUserId = u.PortalUserId', ), // key - special, value - list select sql), 'ItemSQLs' => Array( ''=>'SELECT * FROM %s'), 'ListSortings' => Array( '' => Array('Sorting' => Array('Module' => 'asc', 'Description' => 'asc') ), 'module' => Array('Sorting' => Array('Description' => 'asc') ), ), 'Fields' => Array( 'EventId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), 'Event' => Array('type' => 'string','not_null' => '1','default' => ''), 'ReplacementTags' => Array ('type' => 'string', 'default' => NULL), 'Enabled' => Array('type'=>'int', 'formatter'=>'kOptionsFormatter', 'options' => Array(1 => 'la_Enabled', 0 => 'la_Disabled', 2 => 'la_Text_FrontOnly'), 'use_phrases' => 1, 'default' => 1, 'not_null' => 1), 'FromUserId' => Array('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array(-1=>'root'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'PortalUser WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Login', 'required'=>1, 'not_null' => 1, 'default' => -1), 'Module' => Array('type' => 'string','not_null' => '1','default' => ''), 'Description' => Array('type' => 'string','not_null' => '1','default' => ''), 'Type' => Array('type' => 'int', 'formatter'=>'kOptionsFormatter', 'options' => Array (1 => 'la_Text_Admin', 0 => 'la_Text_User'), 'use_phrases' => 1, 'default' => 0, 'not_null' => 1), ), 'VirtualFields' => Array( 'FromUser' => Array(), ), 'Grids' => Array( 'Default' => Array( 'Icons' => Array('default'=>'icon16_custom.gif'), 'Fields' => Array( 'Description' => Array( 'title'=>'la_col_Description', 'data_block' => 'label_grid_checkbox_td'), 'Event' => Array( 'title'=>'la_col_Event'), 'Module' => Array( 'title'=>'la_col_Module'), 'Type' => Array( 'title'=>'la_col_Type', 'filter_block' => 'grid_options_filter'), 'Enabled' => Array( 'title'=>'la_col_Status', 'filter_block' => 'grid_options_filter'), ), ), 'EmailSettings' => Array( 'Icons' => Array('default'=>'icon16_custom.gif'), 'Fields' => Array( 'Description' => Array('title'=>'la_col_Description', 'data_block' => 'label_grid_checkbox_td' ), 'Type' => Array('title'=>'la_col_Type'), 'Enabled' => Array('title'=>'la_col_Status'), 'FromUser' => Array('title'=>'la_col_FromToUser'), ), ), ), ); if (defined('DEBUG_MODE') && DEBUG_MODE) { $config['Grids']['EmailSettings']['Fields']['EventId'] = Array('title' => 'la_col_Id'); } ?>