Changeset 4458 for sandbox


Ignore:
Timestamp:
05/19/11 14:26:12 (13 years ago)
Author:
airton
Message:

Ticket #1991 - Parametrizacao das buscas LDAP no ExpressoMail? - Adequacao do codigo ao phpdoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.2.0.2/API/class.servicelocator.php

    r4445 r4458  
    11<?php 
     2/** 
     3* 
     4* Copyright (C) 2011 Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     5* 
     6* This program is free software; you can redistribute it and/or modify it under 
     7* the terms of the GNU Affero General Public License version 3 as published by 
     8* the Free Software Foundation with the addition of the following permission 
     9* added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED 
     10* WORK IN WHICH THE COPYRIGHT IS OWNED BY FUNAMBOL, FUNAMBOL DISCLAIMS THE 
     11* WARRANTY OF NON INFRINGEMENT  OF THIRD PARTY RIGHTS. 
     12* 
     13* This program is distributed in the hope that it will be useful, but WITHOUT 
     14* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
     15* FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more 
     16* details. 
     17* 
     18* You should have received a copy of the GNU Affero General Public License 
     19* along with this program; if not, see www.gnu.org/licenses or write to 
     20* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
     21* MA 02110-1301 USA. 
     22* 
     23* This code is based on the OpenXchange Connector and on the Prognus pSync 
     24* Connector both developed by the community and licensed under the GPL 
     25* version 2 or above as published by the Free Software Foundation. 
     26* 
     27* You can contact Prognus Software Livre headquarters at Av. Tancredo Neves, 
     28* 6731, PTI, Bl. 05, Esp. 02, Sl. 10, Foz do Iguaçu - PR - Brasil or at 
     29* e-mail address prognus@prognus.com.br. 
     30* 
     31* 
     32* Faz a localização dos serviços que serão utilizados pela aplicação e que estão localizados na API 
     33*  
     34* 
     35* @package    expressoMail 
     36* @license    http://www.gnu.org/copyleft/gpl.html GPL 
     37* @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     38* @since      Arquivo disponibilizado na versão 2.2 
     39*/ 
    240 
    341//Helper function and defines that must be moved to a common area 
    442///////////////////////////////////////////////////// 
    5  
    643if(!function_exists('define_once') ) 
    744{ 
     
    2663 
    2764///////////////////////////////////////////////////// 
     65/** 
     66* Faz a localização dos serviços que serão utilizados pela aplicação e que estão localizados na API 
     67* 
     68* @package    expressoMail 
     69* @license    http://www.gnu.org/copyleft/gpl.html GPL 
     70* @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     71* @version    1.0 
     72*/ 
    2873class ServiceLocator 
    2974{ 
     
    3883//     static $empty_locator = new ServiceLocator( 'empty' ); 
    3984 
    40     static function load( $configuration ) 
     85     
     86        /** 
     87        * Carrega a configuração 
     88        * 
     89        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     90        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     91        * @param      $configuration 
     92        */ 
     93        static function load( $configuration ) 
    4194    { 
    4295        $configuration = SERVICES.$configuration; 
     
    53106    } 
    54107 
     108         
     109        /** 
     110        * Deploy 
     111        * 
     112        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     113        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     114        * @param      $serviceType 
     115        * @param      $serviceName 
     116        */ 
    55117    static function deploy( $serviceType, $serviceName = null ) 
    56118    { 
     
    65127    } 
    66128 
    67     //make all the treatment of 
     129 
     130        /** 
     131        * make all the treatment of 
     132        * 
     133        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     134        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     135        * @param      $service 
     136        * @param      $object 
     137        */ 
    68138    static function register( $service, $object ) 
    69139    { 
     
    75145    } 
    76146 
     147         
     148        /** 
     149        * unregister service 
     150        * 
     151        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     152        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     153        * @param      $service 
     154        */ 
    77155    static function unregister( $service ) 
    78156    { 
     
    84162    } 
    85163 
    86     //implement 
     164    /** 
     165        * configure 
     166        * 
     167        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     168        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     169        * @param      $service 
     170        */ 
    87171    static function configure( $service ) 
    88172    { 
     
    90174    } 
    91175 
     176        /** 
     177        * locate 
     178        * 
     179        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     180        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     181        * @param      $service 
     182        * @param      $arguments 
     183        * @param      $target 
     184        */ 
    92185    static function locate( $service, $arguments = array(), $target = false ) 
    93186    { 
     
    126219    } 
    127220 
     221         
     222        /** 
     223        * construct 
     224        * 
     225        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     226        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     227        * @param      $serviceName 
     228        * @param      $object 
     229        */ 
    128230    function __construct( $serviceName, $object ) 
    129231    { 
     
    132234    } 
    133235 
     236         
     237        /** 
     238        * proxy 
     239        * 
     240        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     241        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     242        * @param      $method 
     243        * @param      $arguments 
     244        */ 
    134245    function proxy( $method, $arguments ) 
    135246    { 
     
    157268    } 
    158269 
     270         
     271        /** 
     272        * call 
     273        * 
     274        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     275        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     276        */ 
    159277    function call() 
    160278    { 
     
    172290    } 
    173291 
     292         
     293        /** 
     294        * dispatch 
     295        * 
     296        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     297        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     298        * @param      $service 
     299        * @param      $arguments 
     300        */ 
    174301    function dispatch( $service, $arguments ) 
    175302    { 
     
    183310    } 
    184311 
     312         
     313        /** 
     314        * call 
     315        * 
     316        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     317        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     318        * @param      $method 
     319        * @param      $arguments 
     320        */ 
    185321    function __call( $method, $arguments ) 
    186322    { 
     
    188324    } 
    189325 
     326         
     327        /** 
     328        * get 
     329        * 
     330        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     331        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     332        * @param      $name 
     333        */ 
    190334    function __get( $name ) 
    191335    { 
     
    193337    } 
    194338 
     339         
     340        /** 
     341        * call static 
     342        * 
     343        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     344        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     345        * @param      $method 
     346        * @param      $arguments 
     347        */ 
    195348    static function __callStatic( $method, $arguments ) 
    196349    { 
     
    198351    } 
    199352 
     353         
     354        /** 
     355        * get service 
     356        * 
     357        * @license    http://www.gnu.org/copyleft/gpl.html GPL 
     358        * @author     Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 
     359        * @param      $service 
     360        */ 
    200361    static function getService( $service ) 
    201362    { 
Note: See TracChangeset for help on using the changeset viewer.