original_string: public final function get_config($key) {
          if (!in_array($key, $this->get_allowed_config())) {
              $a = (object)array('property' => $key, 'class' => get_class($this));
              throw new portfolio_export_exception($this->get('exporter'), 'invalidconfigproperty', 'portfolio', null, $a);
          }
          if (isset($this->config->{$key})) {
              return $this->config->{$key};
          }
          return null;
      }
code: public final function get_config($key) {
          if (!in_array($key, $this->get_allowed_config())) {
              $a = (object)array('property' => $key, 'class' => get_class($this));
              throw new portfolio_export_exception($this->get('exporter'), 'invalidconfigproperty', 'portfolio', null, $a);
          }
          if (isset($this->config->{$key})) {
              return $this->config->{$key};
          }
          return null;
      }
code_tokens: public final function get_config ( $ key ) { if ( ! in_array ( $ key , $ this -> get_allowed_config ( ) ) ) { $ a = ( object ) array ( 'property' => $ key , 'class' => get_class ( $ this ) ) ; throw new portfolio_export_exception ( $ this -> get ( 'exporter' ) , 'invalidconfigproperty' , 'portfolio' , null , $ a ) ; } if ( isset ( $ this -> config -> { $ key } ) ) { return $ this -> config -> { $ key } ; } return null ; }
docstring: Gets the value of a particular config item
  
  @param string $key key to fetch
  @return null|mixed the corresponding value
docstring_tokens: Gets the value of a particular config item