getModificationDate() public method

Return the document modification date.
public getModificationDate ( ) : integer
return integer
Esempio n. 1
0
 /**
  * @param Model\Document $document
  * @return Model\Document
  */
 protected function getLatestVersion(Model\Document $document)
 {
     $latestVersion = $document->getLatestVersion();
     if ($latestVersion) {
         $latestDoc = $latestVersion->loadData();
         if ($latestDoc instanceof Model\Document) {
             $latestDoc->setModificationDate($document->getModificationDate());
             // set de modification-date from published version to compare it in js-frontend
             return $latestDoc;
         }
     }
     return $document;
 }