|
Server IP : 127.0.0.1 / Your IP : 127.0.0.1 Web Server : Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 System : Windows NT WIN-R7LTCC7BPLI 6.3 build 9200 (Windows Server 2012 R2 Datacenter Edition) i586 User : GerbangSIPAD ( 0) PHP Version : 5.6.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0777) : C:/xampp5/htdocs/bhumie/upload/../protected/models/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* This is the model class for table "pbb.posisi_pegawai".
*
* The followings are the available columns in table 'pbb.posisi_pegawai':
* @property string $kd_kanwil
* @property string $kd_kantor
* @property string $nip
* @property string $kd_seksi
* @property string $tgl_awal_berlaku
* @property string $tgl_akhir_berlaku
* @property string $kd_wewenang
* @property string $kd_jabatan
*/
class PosisiPegawai extends CBhumieRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return PosisiPegawai the static model class
*/
public static function model($className=__CLASS__)
{
return parent::model($className);
}
/**
* @return string the associated database table name
*/
public function tableName()
{
return 'pbb.posisi_pegawai';
}
/**
* @return array validation rules for model attributes.
*/
public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('kd_kanwil, kd_kantor, nip, kd_seksi, tgl_awal_berlaku, kd_jabatan', 'required'),
array('kd_kanwil, kd_kantor, kd_seksi, kd_jabatan', 'length', 'max'=>2),
array('nip', 'length', 'max'=>18),
array('tgl_akhir_berlaku', 'safe'),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('kd_kanwil, kd_kantor, nip, kd_seksi, tgl_awal_berlaku, tgl_akhir_berlaku, kd_jabatan', 'safe', 'on'=>'search'),
);
}
/**
* @return array relational rules.
*/
public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
);
}
/**
* @return array customized attribute labels (name=>label)
*/
public function attributeLabels()
{
return array(
'kd_kanwil' => 'Kode Kanwil',
'kd_kantor' => 'Kode Kantor',
'nip' => 'Nip',
'kd_seksi' => 'Kode Seksi',
'tgl_awal_berlaku' => 'Tanggal Awal Berlaku',
'tgl_akhir_berlaku' => 'Tanggal Akhir Berlaku',
'kd_jabatan' => 'Kode Jabatan',
);
}
/**
* Retrieves a list of models based on the current search/filter conditions.
* @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
*/
public function search()
{
// Warning: Please modify the following code to remove attributes that
// should not be searched.
$criteria=new CDbCriteria;
$criteria->order = 'kd_kanwil, kd_kantor, nip, kd_seksi, tgl_awal_berlaku, tgl_akhir_berlaku, kd_jabatan';
$criteria->compare('kd_kanwil',$this->kd_kanwil,true);
$criteria->compare('kd_kantor',$this->kd_kantor,true);
$criteria->compare('nip',$this->nip,true);
$criteria->compare('kd_seksi',$this->kd_seksi,true);
$criteria->compare('tgl_awal_berlaku',$this->tgl_awal_berlaku,true);
$criteria->compare('tgl_akhir_berlaku',$this->tgl_akhir_berlaku,true);
$criteria->compare('kd_jabatan',$this->kd_jabatan,true);
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}
}