%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php
namespace backend\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\models\Circulation;
/**
* CirculationSearch represents the model behind the search form of `backend\models\Circulation`.
*/
class CirculationAllSearch extends Circulation
{
/**
* @inheritdoc
*/
public function rules()
{
return [
[['id', 'member_id', 'document_id', 'item_id', 'created_by', 'updated_by'], 'integer'],
[['member', 'title', 'item_code', 'tanggal_pinjam', 'tanggal_kembali', 'status', 'denda', 'created_at', 'updated_at'], 'safe'],
];
}
/**
* @inheritdoc
*/
public function scenarios()
{
// bypass scenarios() implementation in the parent class
return Model::scenarios();
}
/**
* Creates data provider instance with search query applied
*
* @param array $params
*
* @return ActiveDataProvider
*/
public function search($params)
{
$query = Circulation::find();
// add conditions that should always apply here
$dataProvider = new ActiveDataProvider([
'query' => $query,
'sort' => ['defaultOrder' => ['id' => SORT_DESC]]
]);
$this->load($params);
if (!$this->validate()) {
// uncomment the following line if you do not want to return any records when validation fails
// $query->where('0=1');
return $dataProvider;
}
// grid filtering conditions
$query->andFilterWhere([
'id' => $this->id,
'member_id' => $this->member_id,
'document_id' => $this->document_id,
'item_id' => $this->item_id,
'tanggal_pinjam' => $this->tanggal_pinjam,
'tanggal_kembali' => $this->tanggal_kembali,
]);
$query->andFilterWhere(['like', 'member', $this->member])
->andFilterWhere(['like', 'title', $this->title])
->andFilterWhere(['like', 'item_code', $this->item_code])
->andFilterWhere(['like', 'status', $this->status])
->andFilterWhere(['like', 'denda', $this->denda]);
return $dataProvider;
}
}