|
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.pbb_minimal".
*
* The followings are the available columns in table 'pbb.pbb_minimal':
* @property string $kd_propinsi
* @property string $kd_dati2
* @property string $thn_pbb_minimal
* @property string $no_sk_pbb_minimal
* @property string $tgl_sk_pbb_minimal
* @property integer $nilai_pbb_minimal
* @property string $tgl_rekam_pbb_minimal
* @property string $nip_perekam_pbb_minimal
* @property integer $createdby
* @property string $createdtime
* @property integer $updatedby
* @property string $updatedtime
*/
class PbbMinimal extends CBhumieRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return PbbMinimal 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.pbb_minimal';
}
/**
* @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('thn_pbb_minimal', 'unique', 'message'=>'{attribute} sudah tersedia'),
array('kd_propinsi, kd_dati2, thn_pbb_minimal, nilai_pbb_minimal, nip_perekam_pbb_minimal', 'required', 'message'=>'Nilai {attribute} harus terisi'),
array('nilai_pbb_minimal', 'numerical', 'integerOnly'=>true, 'message'=>'{attribute} harus angka'),
array('thn_pbb_minimal', 'numerical', 'integerOnly'=>true, 'message'=>'Nilai {attribute} harus angka'),
array('kd_propinsi, kd_dati2', 'length', 'max'=>2, 'message'=>'Nilai {attribute} maksimal 2 karakter'),
array('thn_pbb_minimal', 'length', 'max'=>4, 'message'=>'Nilai {attribute} maksimal 4 karakter'),
array('no_sk_pbb_minimal', 'length', 'max'=>30, 'message'=>'Nilai {attribute} maksimal 30 karakter'),
array('nip_perekam_pbb_minimal', 'length', 'max'=>18, 'message'=>'Nilai {attribute} maksimal 18 karakter'),
array('tgl_sk_pbb_minimal, tgl_rekam_pbb_minimal', 'safe'),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('kd_propinsi, kd_dati2, thn_pbb_minimal, no_sk_pbb_minimal, tgl_sk_pbb_minimal, nilai_pbb_minimal, tgl_rekam_pbb_minimal, nip_perekam_pbb_minimal', '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',
'thn_pbb_minimal' => 'Tahun Pbb Minimal',
'no_sk_pbb_minimal' => 'No Sk Pbb Minimal',
'tgl_sk_pbb_minimal' => 'Tgl Sk Pbb Minimal',
'nilai_pbb_minimal' => 'Nilai Pbb Minimal',
'tgl_rekam_pbb_minimal' => 'Tgl Rekam Pbb Minimal',
'nip_perekam_pbb_minimal' => 'Nip Perekam Pbb Minimal',
//'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->order='thn_pbb_minimal';
$criteria->compare('kd_propinsi',$this->kd_propinsi,true);
$criteria->compare('kd_dati2',$this->kd_dati2,true);
$criteria->compare('thn_pbb_minimal',$this->thn_pbb_minimal,true);
$criteria->compare('no_sk_pbb_minimal',$this->no_sk_pbb_minimal,true);
$criteria->compare('tgl_sk_pbb_minimal',$this->tgl_sk_pbb_minimal,true);
$criteria->compare('nilai_pbb_minimal',$this->nilai_pbb_minimal);
$criteria->compare('tgl_rekam_pbb_minimal',$this->tgl_rekam_pbb_minimal,true);
$criteria->compare('nip_perekam_pbb_minimal',$this->nip_perekam_pbb_minimal,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,
));
}
}