Пример #1
0
 public function delete()
 {
     parent::delete();
     $db = Loader::db();
     $r = $db->Execute('select avID from CollectionAttributeValues where akID = ?', array($this->getAttributeKeyID()));
     while ($row = $r->FetchRow()) {
         $db->Execute('delete from AttributeValues where avID = ?', array($row['avID']));
     }
     $db->Execute('delete from CollectionAttributeValues where akID = ?', array($this->getAttributeKeyID()));
 }
Пример #2
0
 public function delete()
 {
     parent::delete();
     $db = Database::get();
     $r = $db->Execute('select avID from VividStoreProductAttributeValues where akID = ?', array($this->getAttributeKeyID()));
     while ($row = $r->FetchRow()) {
         $db->Execute('delete from AttributeValues where avID = ?', array($row['avID']));
     }
     $db->Execute('delete from VividStoreProductAttributeValues where akID = ?', array($this->getAttributeKeyID()));
 }
Пример #3
0
 public function delete()
 {
     parent::delete();
     $db = Database::connection();
     $r = $db->executeQuery('select avID from CollectionAttributeValues where akID = ?', array($this->getAttributeKeyID()));
     while ($row = $r->FetchRow()) {
         $db->executeQuery('delete from AttributeValues where avID = ?', array($row['avID']));
     }
     $db->executeQuery('delete from CollectionAttributeValues where akID = ?', array($this->getAttributeKeyID()));
 }