Page MenuHomeIn-Portal Phabricator

module_deployment_logs_config.php
No OneTemporary

File Metadata

Created
Sun, Aug 3, 5:10 PM

module_deployment_logs_config.php

<?php
/**
* @version $Id: module_deployment_logs_config.php 16252 2015-09-27 06:34:45Z alex $
* @package In-Portal
* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
* @license GNU/GPL
* In-Portal is Open Source software.
* This means that this software may have been modified pursuant
* the GNU General Public License, and as distributed it includes
* or is derivative of works licensed under the GNU General Public License
* or other free or open source software licenses.
* See http://www.in-portal.org/license for copyright notices and details.
*/
defined('FULL_PATH') or die('restricted access!');
$config = Array (
'Prefix' => 'module-deployment-log',
'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'),
'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'),
'EventHandlerClass' => Array ('class' => 'ModuleDeploymentLogEventHandler', 'file' => 'module_deployment_log_eh.php', 'build_event' => 'OnBuild'),
'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'),
'AutoLoad' => true,
'QueryString' => Array (
1 => 'id',
2 => 'Page',
3 => 'PerPage',
4 => 'event',
5 => 'mode',
),
'IDField' => 'Id',
'TableName' => TABLE_PREFIX . 'ModuleDeploymentLog',
'TitlePresets' => Array (
'default' => Array (
'new_status_labels' => Array ('module-deployment-log' => '!la_title_AddingModuleDeploymentLog!'),
'edit_status_labels' => Array ('module-deployment-log' => '!la_title_ViewingModuleDeploymentLog!'),
),
'module_deployment_log_list' => Array (
'prefixes' => Array ('module-deployment-log_List'), 'format' => "!la_title_ModuleDeploymentLog!",
'toolbar_buttons' => Array ('edit', 'delete', 'cancel', 'view', 'dbl-click'),
),
'module_deployment_log_edit' => Array (
'prefixes' => Array ('module-deployment-log'), 'format' => "#module-deployment-log_status#",
'toolbar_buttons' => Array ('select', 'cancel', 'reset_edit', 'prev', 'next'),
),
),
'PermSection' => Array ('main' => 'in-portal:module_deployment_log'),
'Sections' => Array (
'in-portal:module_deployment_log' => Array (
'parent' => 'in-portal:modules_folder',
'icon' => 'conf_modules',
'label' => 'la_title_Deployment',
'url' => Array ('t' => 'logs/module_deployment_logs/module_deployment_log_list', 'pass' => 'm'),
'permissions' => Array ('view', 'edit', 'delete'),
'priority' => 12.2, // <parent_priority>.<own_priority>, because this section replaces parent in tree
'type' => stTAB,
),
),
'ListSQLs' => Array (
'' => ' SELECT %1$s.* %2$s
FROM %1$s',
),
'ListSortings' => Array (
'' => Array (
'Sorting' => Array ('Id' => 'desc'),
)
),
'Fields' => Array (
'Id' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0),
'Module' => Array (
'type' => 'string', 'max_len' => 30,
'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Modules WHERE (Loaded = 1) AND (Name <> "In-Portal") ORDER BY LoadOrder', 'option_key_field' => 'Name', 'option_title_field' => 'Name',
'not_null' => 1, 'default' => 'In-Portal'
),
'RevisionNumber' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0),
'RevisionTitle' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''),
'CreatedOn' => Array ('formatter' => 'kDateFormatter', 'default' => '#NOW#'),
'IPAddress' => Array ('type' => 'string', 'max_len' => 15, 'not_null' => 1, 'default' => ''),
'Output' => Array ('type' => 'string', 'default' => NULL),
'ErrorMessage' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''),
'Mode' => Array (
'type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (
ModuleDeploymentLog::MODE_AUTOMATIC => 'la_opt_Automatic',
ModuleDeploymentLog::MODE_MANUAL => 'la_opt_Manual'
), 'use_phrases' => 1, 'not_null' => 1, 'default' => ModuleDeploymentLog::MODE_AUTOMATIC
),
'Status' => Array (
'type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (
ModuleDeploymentLog::STATUS_SUCCESS => 'la_opt_Success',
ModuleDeploymentLog::STATUS_ERROR => 'la_opt_Error',
ModuleDeploymentLog::STATUS_SKIPPED => 'la_opt_Skipped'
), 'use_phrases' => 1, 'not_null' => 1, 'default' => ModuleDeploymentLog::STATUS_SUCCESS
),
),
'Grids' => Array (
'Default' => Array (
'Icons' => Array ('default' => 'icon16_item.png'),
'Fields' => Array (
'Id' => Array ('filter_block' => 'grid_range_filter', 'width' => 80),
'Module' => Array ('filter_block' => 'grid_like_filter'),
'RevisionNumber' => Array ('filter_block' => 'grid_like_filter'),
'RevisionTitle' => Array ('filter_block' => 'grid_like_filter'),
'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 120),
'IPAddress' => Array ('filter_block' => 'grid_like_filter'),
'ErrorMessage' => Array ('filter_block' => 'grid_like_filter'),
'Mode' => Array ('filter_block' => 'grid_options_filter'),
'Status' => Array ('filter_block' => 'grid_options_filter')
),
),
),
);

Event Timeline