Ignore:
Timestamp:
12/14/12 14:30:35 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/inc/Controller.class.php

    r6057 r7655  
    109109                $contents_itens = $this->controller_contentes->getElementsByTagName(self::__CONTROLLER_CONTENTES_ITEM__); 
    110110 
    111                 for ( $i = 0; $i < $contents_itens->length && $contents_itens->item($i)->getAttribute(self::__CONTROLLER_CONTENTES_ITEM_PARAM__) != $section_name; $i++ ); 
     111                for ( $i = 0; $i < $contents_itens->length && $contents_itens->item($i)->getAttribute(self::__CONTROLLER_CONTENTES_ITEM_PARAM__) != $section_name; ++$i ); 
    112112                ( !($i < $contents_itens->length) ) 
    113113                        and die(__CLASS__ . ' [ ERROR #11 ] :: invalid section "' . $section_name . '"'); 
     
    125125 
    126126                if ( empty($alias) && $alias !== '0' ) 
    127                         for ( $i = 0; $i < $section_itens->length && $section_itens->item($i)->getAttribute('ref') != $ref; $i++ ); 
     127                        for ( $i = 0; $i < $section_itens->length && $section_itens->item($i)->getAttribute('ref') != $ref; ++$i ); 
    128128                else 
    129                         for ( $i = 0; $i < $section_itens->length && ( $section_itens->item($i)->getAttribute('ref') != $ref || $section_itens->item($i)->getAttribute('alias') !== $alias); $i++ ); 
     129                        for ( $i = 0; $i < $section_itens->length && ( $section_itens->item($i)->getAttribute('ref') != $ref || $section_itens->item($i)->getAttribute('alias') !== $alias); ++$i ); 
    130130 
    131131                ( !($i < $section_itens->length) ) 
     
    264264        private function _pack($script) 
    265265        { 
    266                 for ( $i = 0; isset($this->_parsers[$i]); $i++ ) 
     266                for ( $i = 0; isset($this->_parsers[$i]); ++$i ) 
    267267                        $script = call_user_func(array(&$this,$this->_parsers[$i]), $script); 
    268268 
Note: See TracChangeset for help on using the changeset viewer.