HomeHelpTrac

Changeset 15722 for trunk/inc


Ignore:
Timestamp:
12/04/11 20:05:12 (6 months ago)
Author:
Anton Lesnikov
Message:

Studio -> Permissions (ACL)

Location:
trunk/inc/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/classes/BxDolForm.php

    r15682 r15722  
    233233        return isset($aData[$sKey]) ? $aData[$sKey] : false; 
    234234    } 
     235     
     236    function setSubmittedValue($sKey, $mixedValue, $sMethod, &$aSpecificValues = false) { 
     237        $aData = array(); 
     238        if($sMethod == BX_DOL_FORM_METHOD_GET) { 
     239            $aData = &$_GET; 
     240        } else if($sMethod == BX_DOL_FORM_METHOD_POST) { 
     241            $aData = &$_POST; 
     242        } else if($sMethod == BX_DOL_FORM_METHOD_SPECIFIC) {             
     243            $aData = &$aSpecificValues; 
     244        } 
     245 
     246        return $aData[$sKey] = $mixedValue; 
     247    } 
    235248 
    236249    // Static Methods related to CSRF Tocken 
  • trunk/inc/classes/BxDolModuleQuery.php

    r15664 r15722  
    6262 
    6363        switch($aParams['type']) { 
     64            case 'modules': 
     65                $sPostfix .= '_modules'; 
     66                $sWhereClause .= $this->prepare(" AND `type`=?", BX_DOL_MODULE_TYPE_MODULE); 
     67                break; 
    6468            case 'languages': 
    65                 $sPostfix .= '_modules'; 
     69                $sPostfix .= '_languages'; 
    6670                $sWhereClause .= $this->prepare(" AND `type`=?", BX_DOL_MODULE_TYPE_LANGUAGE); 
    67                 break; 
    68             case 'modules': 
    69                 $sPostfix .= '_languages'; 
    70                 $sWhereClause .= $this->prepare(" AND `type`=?", BX_DOL_MODULE_TYPE_MODULE); 
    7171                break; 
    7272            case 'templates': 
     
    8181        } 
    8282 
    83         $sSql = "SELECT `id`, `type` `title`, `vendor`, `version`, `product_url`, `update_url`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `date`, `enabled` FROM `sys_modules` WHERE 1" . $sWhereClause . " ORDER BY `title`"; 
     83        $sSql = "SELECT `id`, `type`, `title`, `vendor`, `version`, `product_url`, `update_url`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `date`, `enabled` FROM `sys_modules` WHERE 1" . $sWhereClause . " ORDER BY `title`"; 
    8484        return $this->fromMemory('sys_modules' . $sPostfix, 'getAll', $sSql); 
    8585    } 
Note: See TracChangeset for help on using the changeset viewer.