Exemplo n.º 1
0
 public function getSunset($format = 'Y-m-d H:i:s')
 {
     $sunset = parent::getSunset($format);
     if (!is_null($sunset)) {
         return $sunset;
     }
     $entry = entryPeer::retrieveByPKNoFilter($this->getEntryId());
     if (!$entry) {
         return null;
     }
     return $entry->getEndDate($format);
 }
Exemplo n.º 2
0
 public function getSunset($format = 'Y-m-d H:i:s')
 {
     $sunset = parent::getSunset($format);
     if (!is_null($sunset)) {
         return $sunset;
     }
     $entry = $this->getEntry();
     if (!$entry) {
         return null;
     }
     return $entry->getEndDate($format);
 }