src/wcmf/lib/security/principal/impl/AbstractUser.php
protected function setRoleConfig() {
    if (strlen($this->getConfig()) == 0) {
      // check added nodes for Role instances
      foreach ($this->getAddedNodes() as $relationName => $nodes) {
        foreach ($nodes as $node) {
          if ($node instanceof Role) {
            $roleName = $node->getName();
            $roleConfigs = self::getRoleConfigs();
            if (isset($roleConfigs[$roleName])) {
              $this->setConfig($roleConfigs[$roleName]);
              break;
            }
          }
        }
      }
    }
  }
protected function setRoleConfig() {
    if (strlen($this->getConfig()) == 0) {
      // check added nodes for Role instances
      foreach ($this->getAddedNodes() as $relationName => $nodes) {
        foreach ($nodes as $node) {
          if ($node instanceof Role) {
            $roleName = $node->getName();
            $roleConfigs = self::getRoleConfigs();
            if (isset($roleConfigs[$roleName])) {
              $this->setConfig($roleConfigs[$roleName]);
              break;
            }
          }
        }
      }
    }
  }
protected function setRoleConfig ( ) { if ( strlen ( $ this -> getConfig ( ) ) == 0 ) { // check added nodes for Role instances foreach ( $ this -> getAddedNodes ( ) as $ relationName => $ nodes ) { foreach ( $ nodes as $ node ) { if ( $ node instanceof Role ) { $ roleName = $ node -> getName ( ) ; $ roleConfigs = self :: getRoleConfigs ( ) ; if ( isset ( $ roleConfigs [ $ roleName ] ) ) { $ this -> setConfig ( $ roleConfigs [ $ roleName ] ) ; break ; } } } } } }
Set the configuration of the currently associated role, if no
configuration is set already.
Set the configuration of the currently associated role if no configuration is set already .