|
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/protected/models/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* This is the model class for table "pbb.inject_lspop_purwakarta".
*
* The followings are the available columns in table 'pbb.inject_lspop_purwakarta':
* @property string $kd_propinsi
* @property string $kd_dati2
* @property string $kd_kecamatan
* @property string $kd_kelurahan
* @property string $kd_blok
* @property string $no_urut
* @property string $kd_jns_op
* @property integer $no_bng
* @property string $kd_jpb
* @property string $no_formulir_lspop
* @property string $luas_bng
* @property string $sheets_row
* @property integer $id
* @property string $nip_pendata
* @property string $createdtime
* @property string $id_inject_spop
*
* The followings are the available model relations:
* @property InjectSpop $idInjectSpop
*/
class InjectLspopPurwakarta extends CActiveRecord
{
/**
* @return string the associated database table name
*/
public function tableName()
{
return 'pbb.inject_lspop_purwakarta';
}
/**
* @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, no_urut, kd_jns_op, no_bng, sheets_row, createdtime, id_inject_spop', 'required'),
array('no_bng', 'numerical', 'integerOnly'=>true),
array('kd_propinsi, kd_dati2, kd_jpb', 'length', 'max'=>2),
array('kd_kecamatan, kd_kelurahan, kd_blok', 'length', 'max'=>3),
array('no_urut', 'length', 'max'=>4),
array('kd_jns_op', 'length', 'max'=>1),
array('no_formulir_lspop', 'length', 'max'=>11),
array('nip_pendata', 'length', 'max'=>18),
array('luas_bng', 'safe'),
// The following rule is used by search().
// @todo Please remove those attributes that should not be searched.
array('kd_propinsi, kd_dati2, kd_kecamatan, kd_kelurahan, kd_blok, no_urut, kd_jns_op, no_bng, kd_jpb, no_formulir_lspop, luas_bng, sheets_row, id, nip_pendata, createdtime, id_inject_spop', '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(
'idInjectSpop' => array(self::BELONGS_TO, 'InjectSpop', 'id_inject_spop'),
);
}
/**
* @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' => 'Kd Blok',
'no_urut' => 'No Urut',
'kd_jns_op' => 'Kd Jns Op',
'no_bng' => 'No Bng',
'kd_jpb' => 'Kd Jpb',
'no_formulir_lspop' => 'No Formulir Lspop',
'luas_bng' => 'Luas Bng',
'sheets_row' => 'Sheets Row',
'id' => 'ID',
'nip_pendata' => 'Nip Pendata',
'createdtime' => 'Createdtime',
'id_inject_spop' => 'Id Inject Spop',
);
}
/**
* Retrieves a list of models based on the current search/filter conditions.
*
* Typical usecase:
* - Initialize the model fields with values from filter form.
* - Execute this method to get CActiveDataProvider instance which will filter
* models according to data in model fields.
* - Pass data provider to CGridView, CListView or any similar widget.
*
* @return CActiveDataProvider the data provider that can return the models
* based on the search/filter conditions.
*/
public function search()
{
// @todo 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',$this->kd_blok,true);
$criteria->compare('no_urut',$this->no_urut,true);
$criteria->compare('kd_jns_op',$this->kd_jns_op,true);
$criteria->compare('no_bng',$this->no_bng);
$criteria->compare('kd_jpb',$this->kd_jpb,true);
$criteria->compare('no_formulir_lspop',$this->no_formulir_lspop,true);
$criteria->compare('luas_bng',$this->luas_bng,true);
$criteria->compare('sheets_row',$this->sheets_row,true);
$criteria->compare('id',$this->id);
$criteria->compare('nip_pendata',$this->nip_pendata,true);
$criteria->compare('createdtime',$this->createdtime,true);
$criteria->compare('id_inject_spop',$this->id_inject_spop,true);
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}
/**
* Returns the static model of the specified AR class.
* Please note that you should have this exact method in all your CActiveRecord descendants!
* @param string $className active record class name.
* @return InjectLspopPurwakarta the static model class
*/
public static function model($className=__CLASS__)
{
return parent::model($className);
}
}