|
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.dokumen".
*
* The followings are the available columns in table 'pbb.dokumen':
* @property string $kd_kanwil
* @property string $kd_kantor
* @property string $jns_dokumen
* @property string $no_dokumen
* @property string $tgl_pendataan_dok
* @property string $nip_pendata_dok
* @property string $tgl_pemeriksaan_dok
* @property string $nip_pemeriksa_dok
* @property string $tgl_perekaman_dok
* @property string $nip_perekam_dok
* @property integer $createdby
* @property string $createdtime
* @property integer $updatedby
* @property string $updatedtime
*/
class Dokumen extends CBhumieRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return Dokumen 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.dokumen';
}
/**
* @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, jns_dokumen, no_dokumen, tgl_pendataan_dok, tgl_pemeriksaan_dok, createdby, createdtime, updatedby, updatedtime', 'required'),
array('kd_kanwil, kd_kantor, jns_dokumen, no_dokumen, tgl_pendataan_dok, tgl_pemeriksaan_dok', 'required'),
//array('createdby, updatedby', 'numerical', 'integerOnly'=>true),
array('kd_kanwil, kd_kantor', 'length', 'max'=>2),
array('jns_dokumen', 'length', 'max'=>1),
array('no_dokumen', 'length', 'max'=>11),
array('nip_pendata_dok, nip_pemeriksa_dok, nip_perekam_dok', 'length', 'max'=>18),
array('tgl_perekaman_dok', 'safe'),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
//array('kd_kanwil, kd_kantor, jns_dokumen, no_dokumen, tgl_pendataan_dok, nip_pendata_dok, tgl_pemeriksaan_dok, nip_pemeriksa_dok, tgl_perekaman_dok, nip_perekam_dok, createdby, createdtime, updatedby, updatedtime', 'safe', 'on'=>'search'),
array('kd_kanwil, kd_kantor, jns_dokumen, no_dokumen, tgl_pendataan_dok, nip_pendata_dok, tgl_pemeriksaan_dok, nip_pemeriksa_dok, tgl_perekaman_dok, nip_perekam_dok', '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' => 'Kd Kanwil',
'kd_kantor' => 'Kd Kantor',
'jns_dokumen' => 'Jns Dokumen',
'no_dokumen' => 'No Dokumen',
'tgl_pendataan_dok' => 'Tgl Pendataan Dok',
'nip_pendata_dok' => 'Nip Pendata Dok',
'tgl_pemeriksaan_dok' => 'Tgl Pemeriksaan Dok',
'nip_pemeriksa_dok' => 'Nip Pemeriksa Dok',
'tgl_perekaman_dok' => 'Tgl Perekaman Dok',
'nip_perekam_dok' => 'Nip Perekam Dok',
//'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_kanwil',$this->kd_kanwil,true);
$criteria->compare('kd_kantor',$this->kd_kantor,true);
$criteria->compare('jns_dokumen',$this->jns_dokumen,true);
$criteria->compare('no_dokumen',$this->no_dokumen,true);
$criteria->compare('tgl_pendataan_dok',$this->tgl_pendataan_dok,true);
$criteria->compare('nip_pendata_dok',$this->nip_pendata_dok,true);
$criteria->compare('tgl_pemeriksaan_dok',$this->tgl_pemeriksaan_dok,true);
$criteria->compare('nip_pemeriksa_dok',$this->nip_pemeriksa_dok,true);
$criteria->compare('tgl_perekaman_dok',$this->tgl_perekaman_dok,true);
$criteria->compare('nip_perekam_dok',$this->nip_perekam_dok,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,
));
}
}