backend/protected/modules/contact/models/BContact.php 1 location
|
@@ 77-85 (lines=9) @@
|
74 |
|
return CMap::mergeArray(parent::attributeLabels(), $labels);
|
75 |
|
}
|
76 |
|
|
77 |
|
public function getSearchCriteria(CDbCriteria $criteria)
|
78 |
|
{
|
79 |
|
$criteria->compare('name', $this->name, true);
|
80 |
|
$criteria->compare('sysname', $this->sysname, true);
|
81 |
|
$criteria->compare('url', $this->url);
|
82 |
|
$criteria->compare('visible', $this->visible);
|
83 |
|
|
84 |
|
return $criteria;
|
85 |
|
}
|
86 |
|
} |
backend/protected/modules/gallery/models/BGallery.php 1 location
|
@@ 58-66 (lines=9) @@
|
55 |
|
*
|
56 |
|
* @return CDbCriteria
|
57 |
|
*/
|
58 |
|
protected function getSearchCriteria(CDbCriteria $criteria)
|
59 |
|
{
|
60 |
|
$criteria->compare('name', $this->name, true);
|
61 |
|
$criteria->compare('url', $this->url, true);
|
62 |
|
$criteria->compare('type', $this->type, true);
|
63 |
|
$criteria->compare('visible', $this->visible);
|
64 |
|
|
65 |
|
return $criteria;
|
66 |
|
}
|
67 |
|
} |
backend/protected/modules/product/modules/text/models/BProductText.php 1 location
|
@@ 52-61 (lines=10) @@
|
49 |
|
*
|
50 |
|
* @return CDbCriteria
|
51 |
|
*/
|
52 |
|
public function getSearchCriteria(CDbCriteria $criteria)
|
53 |
|
{
|
54 |
|
$criteria = new CDbCriteria;
|
55 |
|
|
56 |
|
$criteria->compare('url', $this->url, true);
|
57 |
|
$criteria->compare('visible', $this->visible);
|
58 |
|
$criteria->compare('content', $this->content, true);
|
59 |
|
|
60 |
|
return $criteria;
|
61 |
|
}
|
62 |
|
} |
backend/protected/modules/tag/models/BTag.php 1 location
|
@@ 42-49 (lines=8) @@
|
39 |
|
*
|
40 |
|
* @return CDbCriteria
|
41 |
|
*/
|
42 |
|
protected function getSearchCriteria(CDbCriteria $criteria)
|
43 |
|
{
|
44 |
|
$criteria->compare('id', $this->id);
|
45 |
|
$criteria->compare('name', $this->name, true);
|
46 |
|
$criteria->compare('`group`', $this->group, true);
|
47 |
|
|
48 |
|
return $criteria;
|
49 |
|
}
|
50 |
|
} |
backend/protected/modules/menu/models/BFrontendMenu.php 1 location
|
@@ 264-271 (lines=8) @@
|
261 |
|
*
|
262 |
|
* @return CDbCriteria
|
263 |
|
*/
|
264 |
|
protected function getSearchCriteria(CDbCriteria $criteria)
|
265 |
|
{
|
266 |
|
$criteria->compare('name', $this->name, true);
|
267 |
|
$criteria->compare('sysname', $this->sysname, true);
|
268 |
|
$criteria->compare('url', $this->url, true);
|
269 |
|
|
270 |
|
return $criteria;
|
271 |
|
}
|
272 |
|
|
273 |
|
/**
|
274 |
|
* Удаление из доступных элементов для добавления уже добавленных
|