src/image/Item.php
public function getCaption()
    {
        if ($this->_caption === null) {
            if ($this->getKey('caption', false)) {
                $this->_caption = $this->getKey('caption');
            } else {
                $this->_caption = $this->file->caption;
            }
        }
        
        return $this->_caption;
    }
public function getCaption()
    {
        if ($this->_caption === null) {
            if ($this->getKey('caption', false)) {
                $this->_caption = $this->getKey('caption');
            } else {
                $this->_caption = $this->file->caption;
            }
        }
        
        return $this->_caption;
    }
public function getCaption ( ) { if ( $ this -> _caption === null ) { if ( $ this -> getKey ( 'caption' , false ) ) { $ this -> _caption = $ this -> getKey ( 'caption' ) ; } else { $ this -> _caption = $ this -> file -> caption ; } } return $ this -> _caption ; }
Return the caption text for this image, if not defined or none give its null.

If no image caption is defined from bind it will try to retrieve the caption from the file (set by filemanager).

@return string The caption text for this image
@since 1.0.0
Return the caption text for this image if not defined or none give its null .