public function getImageArticleIndex() { return $this->m_data['Number']; }
/** * Returns the index of the current image inside the article. * If the image doesn't belong to the article returns null. * * @return int */ protected function getImageIndex() { $image = CampTemplate::singleton()->context()->image; if (!$image->defined) { return null; } $articleImage = new ArticleImage($this->m_dbObject->getArticleNumber(), $image->number); if (!$articleImage->exists()) { return null; } return $articleImage->getImageArticleIndex(); }