original_string: protected function executeQuery($select = null, $conditions = null, $values = [], $options = [])
      {
          $query = $this->db->connect();
          if (!empty($this->fetchRefs)) {
              $query = $this->setupJoin($query, $select, $conditions, (isset($options['order']) ? $options['order'] : null));
          } else {
              $query = (!is_null($select) ? $query->select($select) : $query->select());
              $query = $query->from($this->table);
              if (!is_null($conditions)) {
                  $query = $query->where($conditions);
              }
              if (isset($options['order'])) {
                  $query = $query->orderBy($options['order']);
              }
          }
          
          if (isset($options['limit'])) {
              $query = $query->limit($options['limit']);
          }
          if (isset($options['offset'])) {
              $query = $query->offset($options['offset']);
          }
          
          return $query->execute($values);
      }
code: protected function executeQuery($select = null, $conditions = null, $values = [], $options = [])
      {
          $query = $this->db->connect();
          if (!empty($this->fetchRefs)) {
              $query = $this->setupJoin($query, $select, $conditions, (isset($options['order']) ? $options['order'] : null));
          } else {
              $query = (!is_null($select) ? $query->select($select) : $query->select());
              $query = $query->from($this->table);
              if (!is_null($conditions)) {
                  $query = $query->where($conditions);
              }
              if (isset($options['order'])) {
                  $query = $query->orderBy($options['order']);
              }
          }
          
          if (isset($options['limit'])) {
              $query = $query->limit($options['limit']);
          }
          if (isset($options['offset'])) {
              $query = $query->offset($options['offset']);
          }
          
          return $query->execute($values);
      }
code_tokens: protected function executeQuery ( $ select = null , $ conditions = null , $ values = [ ] , $ options = [ ] ) { $ query = $ this -> db -> connect ( ) ; if ( ! empty ( $ this -> fetchRefs ) ) { $ query = $ this -> setupJoin ( $ query , $ select , $ conditions , ( isset ( $ options [ 'order' ] ) ? $ options [ 'order' ] : null ) ) ; } else { $ query = ( ! is_null ( $ select ) ? $ query -> select ( $ select ) : $ query -> select ( ) ) ; $ query = $ query -> from ( $ this -> table ) ; if ( ! is_null ( $ conditions ) ) { $ query = $ query -> where ( $ conditions ) ; } if ( isset ( $ options [ 'order' ] ) ) { $ query = $ query -> orderBy ( $ options [ 'order' ] ) ; } } if ( isset ( $ options [ 'limit' ] ) ) { $ query = $ query -> limit ( $ options [ 'limit' ] ) ; } if ( isset ( $ options [ 'offset' ] ) ) { $ query = $ query -> offset ( $ options [ 'offset' ] ) ; } return $ query -> execute ( $ values ) ; }
docstring: Execute query for selection methods.
  
  @param   string  $select                     Selection criteria.
  @param   string  $conditions                 Where conditions.
  @param   array   $values                     Array of where condition values to bind.
  @param   array   $options                    Query options.
  
  @return \Anax\Database\DatabaseQueryBuilder  Database service instance with executed internal query.
docstring_tokens: Execute query for selection methods .