Moving define in main_api (just for now)

skala
Julio Montoya 13 years ago
parent 614f809fc4
commit a18551af8d
  1. 5
      main/inc/lib/career.lib.php
  2. 3
      main/inc/lib/course_home.lib.php
  3. 3
      main/inc/lib/course_request.lib.php
  4. 20
      main/inc/lib/display.lib.php
  5. 5
      main/inc/lib/event_email_template.class.php
  6. 29
      main/inc/lib/main_api.lib.php

@ -8,11 +8,6 @@
/**
* Code
*/
require_once 'promotion.lib.php';
require_once 'fckeditor/fckeditor.php';
define ('CAREER_STATUS_ACTIVE', 1);
define ('CAREER_STATUS_INACTIVE',0);
/**
* @package chamilo.library

@ -1,9 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
define('SHORTCUTS_HORIZONTAL', 0);
define('SHORTCUTS_VERTICAL', 1);
class CourseHome {
/**

@ -13,9 +13,6 @@
/**
* Code
*/
define(COURSE_REQUEST_PENDING, 0);
define(COURSE_REQUEST_ACCEPTED, 1);
define(COURSE_REQUEST_REJECTED, 2);
/**
* Course request manager

@ -16,26 +16,6 @@
/**
* Code
*/
define('MAX_LENGTH_BREADCRUMB', 100);
define('ICON_SIZE_TINY', 16);
define('ICON_SIZE_SMALL', 22);
define('ICON_SIZE_MEDIUM', 32);
define('ICON_SIZE_LARGE', 48);
define('ICON_SIZE_BIG', 64);
define('ICON_SIZE_HUGE', 128);
define('SHOW_TEXT_NEAR_ICONS', false);
/**
* Display class
* contains several public functions dealing with the display of
* table data, messages, help topics, ...
*
* @package chamilo.library
*/
class Display {
/* The main template*/

@ -8,8 +8,6 @@
/**
* Code
*/
define ('EVENT_EMAIL_TEMPLATE_ACTIVE', 1);
define ('EVENT_EMAIL_TEMPLATE_INACTIVE',0);
/**
* @package chamilo.library
@ -25,8 +23,7 @@ class EventEmailTemplate extends Model {
public function get_all($where_conditions = array()) {
return Database::select('*',$this->table, array('where'=>$where_conditions,'order' =>'name ASC'));
}
}
/**
* Displays the title + grid

@ -157,7 +157,6 @@ define('LOG_USER_DELETE', 'user_deleted');
define('LOG_USER_ACTIVATED', 'user_activated');
define('LOG_USER_DEACTIVATED', 'user_deactivated');
define('LOG_SESSION_CREATE', 'session_created');
define('LOG_SESSION_DELETE', 'session_deleted');
define('LOG_SESSION_CATEGORY_CREATE', 'session_category_created');
@ -282,6 +281,34 @@ define('USER_RELATION_TYPE_ENEMY', 5); // should be deprecated is useless
define('USER_RELATION_TYPE_DELETED', 6);
define('USER_RELATION_TYPE_RRHH', 7);
//Course request
define('COURSE_REQUEST_PENDING', 0);
define('COURSE_REQUEST_ACCEPTED', 1);
define('COURSE_REQUEST_REJECTED', 2);
define('SHORTCUTS_HORIZONTAL', 0);
define('SHORTCUTS_VERTICAL', 1);
//Career
define ('CAREER_STATUS_ACTIVE', 1);
define ('CAREER_STATUS_INACTIVE',0);
//Display
define('MAX_LENGTH_BREADCRUMB', 100);
define('ICON_SIZE_TINY', 16);
define('ICON_SIZE_SMALL', 22);
define('ICON_SIZE_MEDIUM', 32);
define('ICON_SIZE_LARGE', 48);
define('ICON_SIZE_BIG', 64);
define('ICON_SIZE_HUGE', 128);
define('SHOW_TEXT_NEAR_ICONS', false);
//Event
define ('EVENT_EMAIL_TEMPLATE_ACTIVE', 1);
define ('EVENT_EMAIL_TEMPLATE_INACTIVE',0);
/**
* Inclusion of internationalization libraries

Loading…
Cancel
Save