src/file/Item.php
public function getCaption()
    {
        if ($this->_caption === null) {
            // if its a none json value, it has been observed by bind()
            if (!Json::isJson($this->getKey('caption', false))) {
                $this->_caption = $this->getKey('caption');
            } else {
                $this->_caption = I18n::findActive($this->getCaptionArray());
            }
        }
    
        return $this->_caption;
    }
public function getCaption()
    {
        if ($this->_caption === null) {
            // if its a none json value, it has been observed by bind()
            if (!Json::isJson($this->getKey('caption', false))) {
                $this->_caption = $this->getKey('caption');
            } else {
                $this->_caption = I18n::findActive($this->getCaptionArray());
            }
        }
    
        return $this->_caption;
    }
public function getCaption ( ) { if ( $ this -> _caption === null ) { // if its a none json value, it has been observed by bind() if ( ! Json :: isJson ( $ this -> getKey ( 'caption' , false ) ) ) { $ this -> _caption = $ this -> getKey ( 'caption' ) ; } else { $ this -> _caption = I18n :: findActive ( $ this -> getCaptionArray ( ) ) ; } } return $ this -> _caption ; }
Return the caption text for this file, if not defined the item array will be collected

@return string The caption text for this image
Return the caption text for this file if not defined the item array will be collected