setResourceTitle() public method

Set resource title.
public setResourceTitle ( string $resourceTitle ) : Newscoop\Entity\AuditEvent
$resourceTitle string
return Newscoop\Entity\AuditEvent
コード例 #1
0
 public function save(AuditEvent $event, array $values)
 {
     $em = $this->getEntityManager();
     $event->setResourceId($values['resource_id']);
     $event->setResourceType($values['resource_type']);
     $event->setResourceTitle($values['resource_title']);
     $event->setResourceDiff($values['resource_diff']);
     $event->setAction($values['action']);
     if (!empty($values['user'])) {
         $user = is_int($values['user']) ? $em->getReference('Newscoop\\Entity\\User', $values['user']) : $values['user'];
         $event->setUser($user);
     }
     $em->persist($event);
     $em->flush();
 }
コード例 #2
0
 public function setResourceTitle($resourceTitle)
 {
     $this->__load();
     return parent::setResourceTitle($resourceTitle);
 }