public function canDelete($product_class_id)
    {
        $sql = 'SELECT product_id FROM product WHERE product_class_id=?';
        $result = $this->db->fetchColumn($sql, array($product_class_id));
        return empty($result);
    }
public function canDelete($product_class_id)
    {
        $sql = 'SELECT product_id FROM product WHERE product_class_id=?';
        $result = $this->db->fetchColumn($sql, array($product_class_id));
        return empty($result);
    }
public function canDelete ( $ product_class_id ) { $ sql = 'SELECT product_id FROM product WHERE product_class_id=?' ; $ result = $ this -> db -> fetchColumn ( $ sql , array ( $ product_class_id ) ) ; return empty ( $ result ) ; }
Whether the product class can be deleted
@param integer $product_class_id
@return boolean
Whether the product class can be deleted