Ejemplo n.º 1
0
 /**
  * @param  Element_Interface $element
  * @return void
  */
 protected function setModificationParams($element, $creation = false)
 {
     $user = $this->getUser();
     if (!$user instanceof User) {
         throw new Exception("No user present");
     }
     if ($creation) {
         $element->setUserOwner($user->getId());
     }
     $element->setUserModification($user->getId());
     $element->setModificationDate(time());
 }