public function display($mode = 'source')
    {
        if ($this->mode === $mode) {
            return $this;
        }


        $this->mode = $mode;

        return $mode === 'thumbnail' ? ($this->getThumbnail() ? $this->getThumbnail()->reset() : null) : $this->reset();
    }
public function display($mode = 'source')
    {
        if ($this->mode === $mode) {
            return $this;
        }


        $this->mode = $mode;

        return $mode === 'thumbnail' ? ($this->getThumbnail() ? $this->getThumbnail()->reset() : null) : $this->reset();
    }
public function display ( $ mode = 'source' ) { if ( $ this -> mode === $ mode ) { return $ this ; } $ this -> mode = $ mode ; return $ mode === 'thumbnail' ? ( $ this -> getThumbnail ( ) ? $ this -> getThumbnail ( ) -> reset ( ) : null ) : $ this -> reset ( ) ; }
Switch display mode.

@param string $mode

@return $this
Switch display mode .