Пример #1
0
	/**
	 * 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($catPk)
	{
		return parent::search($catPk, array('title', 'index_text', 'sidebar_text'));
	}
Пример #2
0
	/**
	 * 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($portfolioPk)
	{
		return parent::search(array('name', 'descr'), 'portfolio_id='.$portfolioPk);
	}