Ignore:
Timestamp:
08/04/09 14:42:23 (15 years ago)
Author:
rodsouza
Message:

Ticket #589 - Adicionando listagem de todos os funcionarios em ordem alfabetica.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/class.bo_userinterface.inc.php

    r1266 r1269  
    10381038                        return array( 'error' => 'Localidade não encontrada.' ); 
    10391039 
    1040                 //usort( $employees['employees'], create_function( '$a,$b', 'return strcasecmp($a[\'cn\'],$b[\'cn\']);' ) ); 
     1040                return $employees; 
     1041        } 
     1042 
     1043        /** 
     1044         * Return the list of employees in alphabetical order 
     1045         * @access public 
     1046         * @return array array of employees 
     1047         */ 
     1048        function getAlphabeticalEmployees( ) 
     1049        { 
     1050                /* check for access */ 
     1051                if ( ( $checkWarnings = $this -> checkOrgchartAccess( ) ) !== true ) 
     1052                        return $checkWarnings; 
     1053 
     1054                $employees = $this -> so -> getAlphabeticalEmployees( $this -> organizationInfo[ 'organizacao_id' ] ); 
     1055 
     1056                if ( $employees === false ) 
     1057                        return array( 'error' => 'Localidade não encontrada.' ); 
    10411058 
    10421059                return $employees; 
Note: See TracChangeset for help on using the changeset viewer.