Beispiel #1
0
 /**
  * @param RecordEvent $event
  * @param string      $eventName
  */
 private function process(RecordEvent $event, $eventName)
 {
     $record = $event->getRecord();
     $tableName = $record->getTable()->getTableName();
     $fields = $this->getTableEventFields($tableName, $eventName);
     if ($fields) {
         $this->setFieldTimestamps($record, $fields);
     }
 }
Beispiel #2
0
 /**
  * @param Record $record
  * @param string $property
  * @param mixed  $value
  */
 public function __construct(Record $record, $property, $value = null)
 {
     parent::__construct($record);
     $this->property = $property;
     $this->value = $value;
 }