public function categoryId(array $condition, array $data)
    {
        if (empty($data['product_id']) || empty($data['category_id'])) {
            return false;
        }

        return $this->compare($data['category_id'], $condition['value'], $condition['operator']);
    }
public function categoryId(array $condition, array $data)
    {
        if (empty($data['product_id']) || empty($data['category_id'])) {
            return false;
        }

        return $this->compare($data['category_id'], $condition['value'], $condition['operator']);
    }
public function categoryId ( array $ condition , array $ data ) { if ( empty ( $ data [ 'product_id' ] ) || empty ( $ data [ 'category_id' ] ) ) { return false ; } return $ this -> compare ( $ data [ 'category_id' ] , $ condition [ 'value' ] , $ condition [ 'operator' ] ) ; }
Whether the product category ID condition is met
@param array $condition
@param array $data
@return boolean
Whether the product category ID condition is met