getId() public method

Get id
public getId ( ) : integer
return integer
 public function getId()
 {
     if ($this->__isInitialized__ === false) {
         return (int) $this->_identifier["id"];
     }
     $this->__load();
     return parent::getId();
 }
Exemplo n.º 2
0
 /**
  * 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();
 }