Beispiel #1
0
 private function _updateSchemeUid(\Akzo\Scheme $scheme)
 {
     // Need to add today's month / year
     $dT = new \DateTime();
     // Now retrieve the id of this scheme saved in DB, build the uid and save it again
     $scheme->uid = self::_getSchemeTypeIdentifier($scheme->type) . $dT->format("my") . str_pad($scheme->id, 6, "0", STR_PAD_LEFT);
     $scheme->save();
     return $scheme;
 }