예제 #1
0
 /**
  * Records an audit trail
  *
  * @param array $desc the associtive array mapping the
  * db field names from the audit_log table to values
  */
 public function audit($desc)
 {
     $audit = Audit::from($desc);
     if (!$audit->validate()) {
         return false;
     }
     return $audit->create();
 }