original_string: public function getOption($option, $default = null, $namespace = 'options')
      {
          $options = $this->getOptions($namespace);
          $optionArr = explode('.', $option);
  
          $option = $this->getOptionFromArray($options, $optionArr, $default, $option);
          return $option;
      }
code: public function getOption($option, $default = null, $namespace = 'options')
      {
          $options = $this->getOptions($namespace);
          $optionArr = explode('.', $option);
  
          $option = $this->getOptionFromArray($options, $optionArr, $default, $option);
          return $option;
      }
code_tokens: public function getOption ( $ option , $ default = null , $ namespace = 'options' ) { $ options = $ this -> getOptions ( $ namespace ) ; $ optionArr = explode ( '.' , $ option ) ; $ option = $ this -> getOptionFromArray ( $ options , $ optionArr , $ default , $ option ) ; return $ option ; }
docstring: Returns module option value.
  Dot character is used to separate sub arrays.
  
  Example:
  array(
  'option1' => 'this is my option 1'
  'option2' => array(
  'key1' => 'sub key1',
  'key2' => 'sub key2',
  )
  )
  
  $module->getOption('option1');
  Returns: (string) "This is my option 1"
  
  $module->getOption('option2');
  Returns: array(
  'key1' => 'sub key1',
  'key2' => 'sub key2',
  )
  
  $module->getOption('option2.key1');
  Returns: (string) "sub key1"
  
  @param string $option
  @param mixed $default
  @return mixed
docstring_tokens: Returns module option value . Dot character is used to separate sub arrays .