getId() публичный Метод

Get id
public getId ( ) : integer
Результат integer
 public function getId()
 {
     if ($this->__isInitialized__ === false) {
         return (int) $this->_identifier["id"];
     }
     $this->__load();
     return parent::getId();
 }
Пример #2
0
 /**
  * Get json representation of subscription section
  *
  * @param Newscoop\Subscription\Section $section
  * @return array
  */
 public function SubscriptionSectionJson(\Newscoop\Subscription\Section $section)
 {
     return array('id' => $section->getId(), 'section' => array('number' => $section->getSectionNumber(), 'name' => $section->getName()), 'language' => $section->hasLanguage() ? array('id' => $section->getLanguageId(), 'name' => $section->getLanguageName()) : null, 'startDate' => $section->getStartDate()->format('Y-m-d'), 'days' => $section->getDays(), 'paidDays' => $section->getPaidDays());
 }