|
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.penghapusan_bng".
*
* The followings are the available columns in table 'pbb.penghapusan_bng':
* @property string $kd_propinsi
* @property string $kd_dati2
* @property string $kd_kecamatan
* @property string $kd_kelurahan
* @property string $kd_blok_penghapusan_bng
* @property string $no_urut_penghapusan_bng
* @property string $kd_jns_op_penghapusan_bng
* @property integer $no_bng_penghapusan
* @property integer $indeks_penghapusan_bng
* @property string $thn_pajak_penghapusan_bng
* @property string $no_formulir_penghapusan_bng
* @property string $luas_bng_penghapusan
* @property string $nilai_bng_penghapusan
* @property string $tgl_penghapusan_bng
* @property string $nip_perekam_penghapusan_bng
* @property integer $createdby
* @property string $createdtime
* @property integer $updatedby
* @property string $updatedtime
*/
class PenghapusanBng extends CBhumieRecord
{
public $maxindexhapusbng;
public $nopenghapusan;
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return PenghapusanBng 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.penghapusan_bng';
}
/**
* @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_propinsi, kd_dati2, kd_kecamatan, kd_kelurahan, kd_blok_penghapusan_bng, no_urut_penghapusan_bng, kd_jns_op_penghapusan_bng, no_bng_penghapusan, indeks_penghapusan_bng, thn_pajak_penghapusan_bng, no_formulir_penghapusan_bng, luas_bng_penghapusan, nilai_bng_penghapusan, nip_perekam_penghapusan_bng', 'required'),
array('no_bng_penghapusan, indeks_penghapusan_bng', 'numerical', 'integerOnly'=>true),
array('kd_propinsi, kd_dati2', 'length', 'max'=>2),
array('kd_kecamatan, kd_kelurahan, kd_blok_penghapusan_bng', 'length', 'max'=>3),
array('no_urut_penghapusan_bng, thn_pajak_penghapusan_bng', 'length', 'max'=>4),
array('kd_jns_op_penghapusan_bng', 'length', 'max'=>1),
array('no_formulir_penghapusan_bng', 'length', 'max'=>11),
array('nip_perekam_penghapusan_bng', 'length', 'max'=>18),
array('tgl_penghapusan_bng', 'safe'),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('kd_propinsi, kd_dati2, kd_kecamatan, kd_kelurahan, kd_blok_penghapusan_bng, no_urut_penghapusan_bng, kd_jns_op_penghapusan_bng, no_bng_penghapusan, indeks_penghapusan_bng, thn_pajak_penghapusan_bng, no_formulir_penghapusan_bng, luas_bng_penghapusan, nilai_bng_penghapusan, tgl_penghapusan_bng, nip_perekam_penghapusan_bng, createdby, createdtime, updatedby, updatedtime', '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_propinsi' => 'Kd Propinsi',
'kd_dati2' => 'Kd Dati2',
'kd_kecamatan' => 'Kd Kecamatan',
'kd_kelurahan' => 'Kd Kelurahan',
'kd_blok_penghapusan_bng' => 'Kd Blok Penghapusan Bng',
'no_urut_penghapusan_bng' => 'No Urut Penghapusan Bng',
'kd_jns_op_penghapusan_bng' => 'Kd Jns Op Penghapusan Bng',
'no_bng_penghapusan' => 'No Bng Penghapusan',
'indeks_penghapusan_bng' => 'Indeks Penghapusan Bng',
'thn_pajak_penghapusan_bng' => 'Thn Pajak Penghapusan Bng',
'no_formulir_penghapusan_bng' => 'No Formulir Penghapusan Bng',
'luas_bng_penghapusan' => 'Luas Bng Penghapusan',
'nilai_bng_penghapusan' => 'Nilai Bng Penghapusan',
'tgl_penghapusan_bng' => 'Tgl Penghapusan Bng',
'nip_perekam_penghapusan_bng' => 'Nip Perekam Penghapusan Bng',
'createdby' => 'Createdby',
'createdtime' => 'Createdtime',
'updatedby' => 'Updatedby',
'updatedtime' => 'Updatedtime',
);
}
/**
* 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->compare('kd_propinsi',$this->kd_propinsi,true);
$criteria->compare('kd_dati2',$this->kd_dati2,true);
$criteria->compare('kd_kecamatan',$this->kd_kecamatan,true);
$criteria->compare('kd_kelurahan',$this->kd_kelurahan,true);
$criteria->compare('kd_blok_penghapusan_bng',$this->kd_blok_penghapusan_bng,true);
$criteria->compare('no_urut_penghapusan_bng',$this->no_urut_penghapusan_bng,true);
$criteria->compare('kd_jns_op_penghapusan_bng',$this->kd_jns_op_penghapusan_bng,true);
$criteria->compare('no_bng_penghapusan',$this->no_bng_penghapusan);
$criteria->compare('indeks_penghapusan_bng',$this->indeks_penghapusan_bng);
$criteria->compare('thn_pajak_penghapusan_bng',$this->thn_pajak_penghapusan_bng,true);
$criteria->compare('no_formulir_penghapusan_bng',$this->no_formulir_penghapusan_bng,true);
$criteria->compare('luas_bng_penghapusan',$this->luas_bng_penghapusan,true);
$criteria->compare('nilai_bng_penghapusan',$this->nilai_bng_penghapusan,true);
$criteria->compare('tgl_penghapusan_bng',$this->tgl_penghapusan_bng,true);
$criteria->compare('nip_perekam_penghapusan_bng',$this->nip_perekam_penghapusan_bng,true);
$criteria->compare('createdby',$this->createdby);
$criteria->compare('createdtime',$this->createdtime,true);
$criteria->compare('updatedby',$this->updatedby);
$criteria->compare('updatedtime',$this->updatedtime,true);
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}
}