original_string: protected function get_component_select_sql($alias = '') {
          $component = $this->get_component();
          if ($alias) {
              $alias = $alias.'.';
          }
          if (empty($component)) {
              $componentwhere = "{$alias}component IS NULL";
              $component = null;
          } else {
              $componentwhere = "({$alias}component IS NULL OR {$alias}component = :component)";
          }
          return array($componentwhere, $component);
      }
code: protected function get_component_select_sql($alias = '') {
          $component = $this->get_component();
          if ($alias) {
              $alias = $alias.'.';
          }
          if (empty($component)) {
              $componentwhere = "{$alias}component IS NULL";
              $component = null;
          } else {
              $componentwhere = "({$alias}component IS NULL OR {$alias}component = :component)";
          }
          return array($componentwhere, $component);
      }
code_tokens: protected function get_component_select_sql ( $ alias = '' ) { $ component = $ this -> get_component ( ) ; if ( $ alias ) { $ alias = $ alias . '.' ; } if ( empty ( $ component ) ) { $ componentwhere = "{$alias}component IS NULL" ; $ component = null ; } else { $ componentwhere = "({$alias}component IS NULL OR {$alias}component = :component)" ; } return array ( $ componentwhere , $ component ) ; }
docstring: Returns an SQL fragment and param for selecting on component.
  @param string $alias
  @return array
docstring_tokens: Returns an SQL fragment and param for selecting on component .