KataoProductCategory.php 573 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Subclass for representing a row from the 'katao_product_category' table.
  4. *
  5. * @package lib.model
  6. */
  7. class KataoProductCategory extends BaseKataoProductCategory {
  8. public function __toString() {
  9. return $this->getName();
  10. }
  11. public function save($con = null) {
  12. if ('' == $this->getUrlIdentifier()) {
  13. $this->setUrlIdentifier(Catalyz::normalizeUrlIdentifier($this->getName()));
  14. }
  15. parent::save($con);
  16. }
  17. public function isDeletable() {
  18. return (0 == $this->countKataoProductFamilys());
  19. }
  20. }