original_string: public function getPermissions()
      {
          $permissions = &gplcart_static('user.role.permissions');
  
          if (isset($permissions)) {
              return $permissions;
          }
  
          $permissions = (array) gplcart_config_get(GC_FILE_CONFIG_PERMISSION);
          asort($permissions);
  
          $this->hook->attach('user.role.permissions', $permissions, $this);
          return $permissions;
      }
code: public function getPermissions()
      {
          $permissions = &gplcart_static('user.role.permissions');
  
          if (isset($permissions)) {
              return $permissions;
          }
  
          $permissions = (array) gplcart_config_get(GC_FILE_CONFIG_PERMISSION);
          asort($permissions);
  
          $this->hook->attach('user.role.permissions', $permissions, $this);
          return $permissions;
      }
code_tokens: public function getPermissions ( ) { $ permissions = & gplcart_static ( 'user.role.permissions' ) ; if ( isset ( $ permissions ) ) { return $ permissions ; } $ permissions = ( array ) gplcart_config_get ( GC_FILE_CONFIG_PERMISSION ) ; asort ( $ permissions ) ; $ this -> hook -> attach ( 'user.role.permissions' , $ permissions , $ this ) ; return $ permissions ; }
docstring: Returns an array of all defined permissions
  @return array
docstring_tokens: Returns an array of all defined permissions