HomeHelpTrac

Changeset 15797 for trunk/templates


Ignore:
Timestamp:
12/27/11 01:35:35 (5 months ago)
Author:
Alexander Trofimov
Message:

Grid - method generation function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/base/scripts/BxBaseGrid.php

    r15759 r15797  
    228228 
    229229            $sMethod = '_getCellHeaderDefault'; 
    230             $sCustomMethod = '_getCellHeader' . ucfirst($sKey); 
     230            $sCustomMethod = '_getCellHeader' . $this->_genMethodName($sKey); 
    231231            if (method_exists($this, $sCustomMethod)) 
    232232                $sMethod = $sCustomMethod; 
     
    353353            $sMethod = '_getCellOrder'; 
    354354 
    355         $sCustomMethod = '_getCell' . ucfirst($sKey); 
     355        $sCustomMethod = '_getCell' . $this->_genMethodName($sKey); 
    356356        if (method_exists($this, $sCustomMethod)) 
    357357            $sMethod = $sCustomMethod; 
     
    434434        $sRet = ''; 
    435435        foreach ($this->_aOptions[$sActionsType] as $sKey => $a) { 
    436             $sFunc = '_getAction' . ucfirst($sKey); 
     436            $sFunc = '_getAction' . $this->_genMethodName($sKey); 
    437437            if (!method_exists($this, $sFunc)) 
    438438                $sFunc = empty($a) ? '_getActionDivider' : '_getActionDefault'; 
Note: See TracChangeset for help on using the changeset viewer.