Changeset 2222


Ignore:
Timestamp:
03/11/10 14:10:57 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Atualizando comentários para seguir o padrão phpdoc.

Location:
sandbox/workflow/branches/609
Files:
7 added
5 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/609/inc/common.inc.php

    r2206 r2222  
    11<?php 
     2/**************************************************************************\ 
     3* eGroupWare                                                               * 
     4* http://www.egroupware.org                                                * 
     5* --------------------------------------------                             * 
     6*  This program is free software; you can redistribute it and/or modify it * 
     7*  under the terms of the GNU General Public License as published by the   * 
     8*  Free Software Foundation; either version 2 of the License, or (at your  * 
     9*  option) any later version.                                              * 
     10\**************************************************************************/ 
     11 
     12 
     13/** 
     14 * Server base path. This constant must be defined by expresso itself. 
     15 * Anyway, there are cases that we access Workflow directly; therefore 
     16 * it must be defined somewhere... 
     17 * @name PHPGW_SERVER_ROOT 
     18 */ 
     19if (!defined('PHPGW_SERVER_ROOT')) 
     20        define('PHPGW_SERVER_ROOT', $HTTP_SERVER_VARS['DOCUMENT_ROOT']); 
     21 
     22/** 
     23 * Workflow base path. 
     24 * @name WF_SERVER_ROOT 
     25 */ 
     26define('WF_SERVER_ROOT', PHPGW_SERVER_ROOT.'/workflow/'); 
     27 
     28/** 
     29 * Workflow include path. 
     30 * @name WF_INC_ROOT 
     31 */ 
     32define('WF_INC_ROOT', WF_SERVER_ROOT.'/inc/'); 
     33 
     34/** 
     35 * Workflow lib base dir. 
     36 * @name WF_LIB_ROOT 
     37 */ 
     38define('WF_LIB_ROOT', WF_SERVER_ROOT.'/lib/'); 
     39 
     40 
    241if (file_exists(PHPGW_SERVER_ROOT . '/header.session.inc.php')) { 
    342        require_once PHPGW_SERVER_ROOT . '/header.session.inc.php'; 
    443} 
    544 
    6 /* garante que durante a execução de funções que modificam strings, os 
    7  * caracteres acentuados sejam tratados corretamente (e.g. strtoupper) 
    8  */ 
     45 
     46/* assure that the correct encondig will be used (e.g string functions) */ 
    947setlocale(LC_CTYPE, 'pt_BR', 'pt_BR.iso-8859-1', 'pt_BR.utf-8'); 
    1048 
     
    1452 
    1553 
    16 /* defining constants */ 
    17 define('WF_SERVER_ROOT', PHPGW_SERVER_ROOT.'/workflow/'); 
    18 define('WF_INC_ROOT', WF_SERVER_ROOT.'/inc/'); 
    19 define('WF_LIB_ROOT', WF_SERVER_ROOT.'/lib/'); 
     54/* including common classes */ 
     55require_once WF_LIB_ROOT . 'security/Security.php'; 
     56//require_once WF_LIB_ROOT . 'factory/Factory.php'; 
     57require_once WF_LIB_ROOT . 'factory/BaseFactory.php'; 
     58require_once WF_LIB_ROOT . 'factory/WorkflowFactory.php'; 
     59require_once WF_LIB_ROOT . 'factory/ProcessFactory.php'; 
    2060 
    2161 
    22 /* including common classes */ 
    23 require_once WF_LIB_ROOT . 'Security.php'; 
    24 require_once WF_LIB_ROOT . 'Factory.php'; 
    25 require_once WF_LIB_ROOT . 'BaseFactory.php'; 
    26 require_once WF_LIB_ROOT . 'WorkflowFactory.php'; 
    27 require_once WF_LIB_ROOT . 'ProcessFactory.php'; 
     62/* TODO - here we will still using that old and ugly factory */ 
     63/* in a near future we should do things right.. */ 
     64require_once WF_INC_ROOT . 'class.factory.inc.php'; 
     65$GLOBALS['workflow']['factory'] = new Factory(); 
     66$GLOBALS['workflow']['workflowObjects'] = $GLOBALS['workflow']['factory']->newInstance('WorkflowObjects'); 
    2867 
    29  
    30 /* FIXME!! */ 
    31 $GLOBALS['workflow']['workflowObjects'] = Factory::getInstance('WorkflowObjects', 'asd', 123); 
     68//$GLOBALS['workflow']['workflowObjects'] = Factory::getInstance('WorkflowObjects', 'asd', 123); 
    3269?> 
Note: See TracChangeset for help on using the changeset viewer.