static function create_default_records() { for ($i = 0; $i <= 6; $i++) { $record = new RecurringDayOfWeek(); $record->Value = $i; $record->write(); } }
static function doDefaultRecords() { for ($i = 0; $i <= 6; $i++) { $record = new RecurringDayOfWeek(); $record->Value = $i; $record->Skey = self::$days_initial[$i]; $record->write(); } }