src/PelEntryCopyright.php
public function getText($brief = false)
    {
        if ($brief) {
            $p = '';
            $e = '';
        } else {
            $p = ' ' . Pel::tra('(Photographer)');
            $e = ' ' . Pel::tra('(Editor)');
        }

        if ($this->photographer != '' && $this->editor != '') {
            return $this->photographer . $p . ' - ' . $this->editor . $e;
        }

        if ($this->photographer != '') {
            return $this->photographer . $p;
        }

        if ($this->editor != '') {
            return $this->editor . $e;
        }

        return '';
    }
public function getText($brief = false)
    {
        if ($brief) {
            $p = '';
            $e = '';
        } else {
            $p = ' ' . Pel::tra('(Photographer)');
            $e = ' ' . Pel::tra('(Editor)');
        }

        if ($this->photographer != '' && $this->editor != '') {
            return $this->photographer . $p . ' - ' . $this->editor . $e;
        }

        if ($this->photographer != '') {
            return $this->photographer . $p;
        }

        if ($this->editor != '') {
            return $this->editor . $e;
        }

        return '';
    }
public function getText ( $ brief = false ) { if ( $ brief ) { $ p = '' ; $ e = '' ; } else { $ p = ' ' . Pel :: tra ( '(Photographer)' ) ; $ e = ' ' . Pel :: tra ( '(Editor)' ) ; } if ( $ this -> photographer != '' && $ this -> editor != '' ) { return $ this -> photographer . $ p . ' - ' . $ this -> editor . $ e ; } if ( $ this -> photographer != '' ) { return $ this -> photographer . $ p ; } if ( $ this -> editor != '' ) { return $ this -> editor . $ e ; } return '' ; }
Return a text string with the copyright information.

The photographer and editor copyright fields will be returned
with a '-' in between if both copyright fields are present,
otherwise only one of them will be returned.

@param
boolean if false, then the strings '(Photographer)' and
'(Editor)' will be appended to the photographer and editor
copyright fields (if present), otherwise the fields will be
returned as is.

@return string the copyright information in a string.
Return a text string with the copyright information .