|
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_spop".
*
* The followings are the available columns in table 'pbb.inject_spop':
* @property integer $id
* @property string $no_sk
* @property string $tgl_sk
* @property string $keterangan
* @property string $file_name
* @property string $upload_sk
* @property string $nip_pendata
* @property string $createdtime
*/
class InjectSpop extends CActiveRecord
{
/**
* @return string the associated database table name
*/
public function tableName()
{
return 'pbb.inject_spop';
}
/**
* @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('no_sk', 'length', 'max'=>100),
array('keterangan', 'length', 'max'=>1000),
array('file_name, upload_sk', 'length', 'max'=>200),
array('nip_pendata', 'length', 'max'=>18),
array('tgl_sk, createdtime', 'safe'),
// The following rule is used by search().
// @todo Please remove those attributes that should not be searched.
array('id, no_sk, tgl_sk, keterangan, file_name, upload_sk, nip_pendata, createdtime', '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(
'id' => 'ID',
'no_sk' => 'No Sk',
'tgl_sk' => 'Tgl Sk',
'keterangan' => 'Keterangan',
'file_name' => 'File Name',
'upload_sk' => 'Upload Sk',
'nip_pendata' => 'Nip Pendata',
'createdtime' => 'Createdtime',
);
}
/**
* 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('id',$this->id);
$criteria->compare('no_sk',$this->no_sk,true);
$criteria->compare('tgl_sk',$this->tgl_sk,true);
$criteria->compare('keterangan',$this->keterangan,true);
$criteria->compare('file_name',$this->file_name,true);
$criteria->compare('upload_sk',$this->upload_sk,true);
$criteria->compare('nip_pendata',$this->nip_pendata,true);
$criteria->compare('createdtime',$this->createdtime,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 InjectSpop the static model class
*/
public static function model($className=__CLASS__)
{
return parent::model($className);
}
}