| @@ 40-50 (lines=11) @@ | ||
| 37 | * |
|
| 38 | * @return array |
|
| 39 | */ |
|
| 40 | public function getTagItemIds($tagId) |
|
| 41 | {
|
|
| 42 | $criteria = new CDbCriteria(); |
|
| 43 | $criteria->select = 'item_id'; |
|
| 44 | $criteria->compare('`group`', $this->group);
|
|
| 45 | $criteria->compare('tag_id', $tagId);
|
|
| 46 | ||
| 47 | $command = Yii::app()->db->commandBuilder->createFindCommand(TagItem::model()->tableName(), $criteria); |
|
| 48 | ||
| 49 | return $command->queryColumn(); |
|
| 50 | } |
|
| 51 | } |
|
| @@ 163-172 (lines=10) @@ | ||
| 160 | return null; |
|
| 161 | } |
|
| 162 | ||
| 163 | private function getCurrentProductParameterNameIds() |
|
| 164 | {
|
|
| 165 | $criteria = new CDbCriteria(); |
|
| 166 | $criteria->compare('product_id', $this->owner->primaryKey);
|
|
| 167 | $criteria->select = 'param_id'; |
|
| 168 | ||
| 169 | $command = Yii::app()->db->commandBuilder->createFindCommand(ProductParameter::model()->tableName(), $criteria); |
|
| 170 | ||
| 171 | return $command->queryColumn(); |
|
| 172 | } |
|
| 173 | ||
| 174 | /** |
|
| 175 | * @param string $name |
|