original_string: public function get_setting() {
          $result = $this->config_read($this->name);
          if (is_null($result)) {
              return NULL;
          }
          if (!$this->load_choices()) {
              return NULL;
          }
          $result = str_pad($result, count($this->choices), '0');
          $result = preg_split('//', $result, -1, PREG_SPLIT_NO_EMPTY);
          $setting = array();
          foreach ($this->choices as $key=>$unused) {
              $value = array_shift($result);
              if ($value) {
                  $setting[$key] = 1;
              }
          }
          return $setting;
      }
code: public function get_setting() {
          $result = $this->config_read($this->name);
          if (is_null($result)) {
              return NULL;
          }
          if (!$this->load_choices()) {
              return NULL;
          }
          $result = str_pad($result, count($this->choices), '0');
          $result = preg_split('//', $result, -1, PREG_SPLIT_NO_EMPTY);
          $setting = array();
          foreach ($this->choices as $key=>$unused) {
              $value = array_shift($result);
              if ($value) {
                  $setting[$key] = 1;
              }
          }
          return $setting;
      }
code_tokens: public function get_setting ( ) { $ result = $ this -> config_read ( $ this -> name ) ; if ( is_null ( $ result ) ) { return NULL ; } if ( ! $ this -> load_choices ( ) ) { return NULL ; } $ result = str_pad ( $ result , count ( $ this -> choices ) , '0' ) ; $ result = preg_split ( '//' , $ result , - 1 , PREG_SPLIT_NO_EMPTY ) ; $ setting = array ( ) ; foreach ( $ this -> choices as $ key => $ unused ) { $ value = array_shift ( $ result ) ; if ( $ value ) { $ setting [ $ key ] = 1 ; } } return $ setting ; }
docstring: Returns the setting if set
  
  @return mixed null if not set, else an array of set settings
docstring_tokens: Returns the setting if set