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/upload/../protected/models/

[  Home  ][  C0mmand  ][  Upload File  ]

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

/**
 * This is the model class for table "pbb.hrg_resource".
 *
 * The followings are the available columns in table 'pbb.hrg_resource':
 * @property string $kd_propinsi
 * @property string $kd_dati2
 * @property string $thn_hrg_resource
 * @property string $kd_group_resource
 * @property string $kd_resource
 * @property string $kd_kanwil
 * @property string $kd_kantor
 * @property string $jns_dokumen
 * @property string $no_dokumen
 * @property double $hrg_resource
 * @property integer $createdby
 * @property string $createdtime
 * @property integer $updatedby
 * @property string $updatedtime
 */
class HrgResource extends CBhumieRecord
{
	/**
	 * Returns the static model of the specified AR class.
	 * @param string $className active record class name.
	 * @return HrgResource 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.hrg_resource';
	}

	/**
	 * @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_hrg_resource, kd_group_resource, kd_resource, kd_kanwil, kd_kantor, jns_dokumen, no_dokumen, hrg_resource, createdby, createdtime, updatedby, updatedtime', 'required'),
			array('createdby, updatedby', 'numerical', 'integerOnly'=>true),
			array('hrg_resource', 'numerical'),
			array('kd_propinsi, kd_dati2, kd_group_resource, kd_resource, kd_kanwil, kd_kantor', 'length', 'max'=>2),
			array('thn_hrg_resource', 'length', 'max'=>4),
			array('jns_dokumen', 'length', 'max'=>1),
			array('no_dokumen', 'length', 'max'=>11),
			// The following rule is used by search().
			// Please remove those attributes that should not be searched.
			array('kd_propinsi, kd_dati2, thn_hrg_resource, kd_group_resource, kd_resource, kd_kanwil, kd_kantor, jns_dokumen, no_dokumen, hrg_resource, 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_propinsi' => 'Kd Propinsi',
			'kd_dati2' => 'Kd Dati2',
			'thn_hrg_resource' => 'Thn Hrg Resource',
			'kd_group_resource' => 'Kd Group Resource',
			'kd_resource' => 'Kd Resource',
			'kd_kanwil' => 'Kd Kanwil',
			'kd_kantor' => 'Kd Kantor',
			'jns_dokumen' => 'Jns Dokumen',
			'no_dokumen' => 'No Dokumen',
			'hrg_resource' => 'Hrg Resource',
			'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_propinsi',$this->kd_propinsi,true);
		$criteria->compare('kd_dati2',$this->kd_dati2,true);
		$criteria->compare('thn_hrg_resource',$this->thn_hrg_resource,true);
		$criteria->compare('kd_group_resource',$this->kd_group_resource,true);
		$criteria->compare('kd_resource',$this->kd_resource,true);
		$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('hrg_resource',$this->hrg_resource);
		$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,
		));
	}
}

AnonSec - 2021