예제 #1
0
파일: Materi.php 프로젝트: htwibowo/simonev
 public static function addOrModify($data, $id = null)
 {
     $d = parent::addOrModify($data, $id);
     $d->setExists('label', $data);
     $d->setExists('kegiatan_id', $data);
     $d->save();
 }
예제 #2
0
 public static function addOrModify($data, $id = null)
 {
     $d = parent::addOrModify($data, $id);
     $d->nama = $data['nama'];
     $d->kota_id = $data['kota_id'];
     $d->save();
 }
예제 #3
0
 public static function addOrModify($data, $id = null)
 {
     $d = parent::addOrModify($data, $id);
     $d->label = $data['label'];
     $d->group_nilai_id = $data['group_nilai_id'];
     $d->weight = $data['weight'];
     $d->save();
 }
예제 #4
0
 public static function addOrModify($data, $id = null)
 {
     $d = parent::addOrModify($data, $id);
     $d->periode_id = $data['periode_id'];
     $d->label = $data['label'];
     $d->hari = $data['hari'];
     $d->deskripsi = $data['deskripsi'];
     $d->save();
 }
예제 #5
0
파일: Kelas.php 프로젝트: miarizkim/simonev
 public static function addOrModify($data, $id = null)
 {
     $d = parent::addOrModify($data, $id);
     $d->gelombang_id = $data['gelombang_id'];
     $d->label = $data['label'];
     $d->jenis_kelas_id = $data['jenis_kelas_id'];
     $d->deskripsi = $data['deskripsi'];
     $d->save();
 }
예제 #6
0
 public static function addOrModify($data, $id = null)
 {
     $i = parent::addOrModify($data, $id);
     $i->nama = $data['nama'];
     $i->kota_id = $data['kota_id'];
     $i->alamat = $data['alamat'];
     $i->no_telp = $data['no_telp'];
     $i->save();
 }
예제 #7
0
파일: User.php 프로젝트: miarizkim/simonev
 public static function addOrModify($data, $id = null)
 {
     $d = parent::addOrModify($data, $id);
     $d->nama = $data['nama'];
     $d->password = \Hash::make($data['password']);
     $d->username = $data['username'];
     $d->email = $data['email'];
     $d->role_id = $data['role_id'];
     $d->save();
 }
예제 #8
0
파일: Guru.php 프로젝트: htwibowo/simonev
 public static function addOrModify($data, $id = null)
 {
     $user = new User();
     if ($id != null) {
         $user = User::find($id);
     }
     $user->nama = $data['nama'];
     $user->username = $data['username'];
     $user->email = $data['username'];
     $user->password = bcrypt($data['password']);
     $user->role_id = 2;
     $user->save();
     $d = parent::addOrModify($data, $id);
     $d->id = User::orderBy('id', 'desc')->first()->id;
     $d->nip = $data['nip'];
     $d->instansi_id = $data['instansi_id'];
     $d->nuptk = $data['nuptk'];
     $d->alamat = $data['alamat'];
     $d->no_telp = $data['no_telp'];
     $d->save();
 }
예제 #9
0
 public static function addOrModify($data, $id = null)
 {
     $d = parent::addOrModify($data, $id);
 }
예제 #10
0
 public static function addOrModify($data, $id = null)
 {
     $d = parent::addOrModify($data, $id);
     $d->populateData($data);
     $d->save();
 }
예제 #11
0
 public static function addOrModify($data, $id = null)
 {
     $d = parent::addOrModify($data, $id);
     $d->label = $data['label'];
     $d->save();
 }