AnonSec Team
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  ]

Current File : C:/xampp5/htdocs/bhumie/protected/models/Njkp.php
<?php

/**
 * This is the model class for table "pbb.njkp".
 *
 * The followings are the available columns in table 'pbb.njkp':
 * @property string $kd_propinsi
 * @property string $kd_dati2
 * @property string $thn_awal
 * @property string $thn_akhir
 * @property string $njop_min
 * @property string $njop_max
 * @property double $nilai_njkp
 */
class Njkp extends CBhumieRecord
{
	/**
	 * Returns the static model of the specified AR class.
	 * @param string $className active record class name.
	 * @return Njkp 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.njkp';
	}

	/**
	 * @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, thn_awal, thn_akhir,njop_min, njop_max, nilai_njkp', 'required'),
			array('nilai_njkp', 'numerical'),
			array('kd_propinsi, kd_dati2', 'length', 'max'=>2),
			array('thn_awal, thn_akhir', 'length', 'max'=>4),
			// The following rule is used by search().
			// Please remove those attributes that should not be searched.
			array('kd_propinsi, kd_dati2, thn_awal, thn_akhir, njop_min, njop_max, nilai_njkp', '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' => 'Kode Propinsi',
			'kd_dati2' => 'Kode Dati2',
			'thn_awal' => 'Tahun Awal',
			'thn_akhir' => 'Tahun Akhir',
			'njop_min' => 'Njop Min',
			'njop_max' => 'Njop Max',
			'nilai_njkp' => 'Nilai Njkp',
		);
	}

	/**
	 * 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 = 'kd_propinsi, kd_dati2, thn_awal, thn_akhir, njop_min, njop_max, nilai_njkp';

		$criteria->compare('kd_propinsi',$this->kd_propinsi,true);
		$criteria->compare('kd_dati2',$this->kd_dati2,true);
		$criteria->compare('thn_awal',$this->thn_awal,true);
		$criteria->compare('thn_akhir',$this->thn_akhir,true);
		$criteria->compare('njop_min',$this->njop_min,true);
		$criteria->compare('njop_max',$this->njop_max,true);
		$criteria->compare('nilai_njkp',$this->nilai_njkp);

		return new CActiveDataProvider($this, array(
			'criteria'=>$criteria,
		));
	}
}

AnonSec - 2021