Skip to content

Instantly share code, notes, and snippets.

@DeaVenditama
Created December 5, 2019 08:23
Show Gist options
  • Save DeaVenditama/84058cf2f605485e63e4b33e67b71e77 to your computer and use it in GitHub Desktop.
Save DeaVenditama/84058cf2f605485e63e4b33e67b71e77 to your computer and use it in GitHub Desktop.
simpeg part 1. components/helper.php
<?php
namespace app\components;
use Yii;
use yii\base\Component;
class helper extends Component{
private $agama = [
'1' => 'Islam',
'2' => 'Kristen Protestan',
'3' => 'Kristen Katolik',
'4' => 'Hindu',
'5' => 'Budha',
'6' => 'Konghucu'
];
private $jenisKelamin = [
'1' => 'Laki-Laki',
'2' => 'Perempuan'
];
private $statusPegawai = [
'1' => 'PNS',
'2' => 'Kontrak'
];
private $statusNikah = [
'1' => 'Belum Menikah',
'2' => 'Menikah',
'3' => 'Cerai Hidup',
'4' => 'Cerai Mati'
];
public function listAgama()
{
return $this->agama;
}
public function listJenisKelamin()
{
return $this->jenisKelamin;
}
public function listStatusPegawai()
{
return $this->statusPegawai;
}
public function listStatusNikah()
{
return $this->statusNikah;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment