public function getId() { if ($this->__isInitialized__ === false) { return (int) $this->_identifier["id"]; } $this->__load(); return parent::getId(); }
/** * Get image caption * * @param int $image * @param int $articleNumber * @param int $languageId * * @return string */ public function getCaption(\Newscoop\Image\LocalImage $image, $articleNumber, $languageId) { $caption = $this->getArticleImageCaption($image->getId(), $articleNumber, $languageId); if (!empty($caption)) { return $caption; } return $image->getDescription(); }