original_string: public function getDisplayField()
      {
          if ($this->_displayField === null) {
              $schema = $this->getSchema();
              $primary = (array)$this->getPrimaryKey();
              $this->_displayField = array_shift($primary);
              if ($schema->getColumn('title')) {
                  $this->_displayField = 'title';
              }
              if ($schema->getColumn('name')) {
                  $this->_displayField = 'name';
              }
          }
  
          return $this->_displayField;
      }
code: public function getDisplayField()
      {
          if ($this->_displayField === null) {
              $schema = $this->getSchema();
              $primary = (array)$this->getPrimaryKey();
              $this->_displayField = array_shift($primary);
              if ($schema->getColumn('title')) {
                  $this->_displayField = 'title';
              }
              if ($schema->getColumn('name')) {
                  $this->_displayField = 'name';
              }
          }
  
          return $this->_displayField;
      }
code_tokens: public function getDisplayField ( ) { if ( $ this -> _displayField === null ) { $ schema = $ this -> getSchema ( ) ; $ primary = ( array ) $ this -> getPrimaryKey ( ) ; $ this -> _displayField = array_shift ( $ primary ) ; if ( $ schema -> getColumn ( 'title' ) ) { $ this -> _displayField = 'title' ; } if ( $ schema -> getColumn ( 'name' ) ) { $ this -> _displayField = 'name' ; } } return $ this -> _displayField ; }
docstring: Returns the display field.
  
  @return string
docstring_tokens: Returns the display field .