Пример #1
0
 public static function add($type, $args, $pkg = false)
 {
     $ak = parent::add('store_order', $type, $args, $pkg);
     extract($args);
     $v = array($ak->getAttributeKeyID());
     $db = Database::get();
     $db->Execute('REPLACE INTO VividStoreOrderAttributeKeys (akID) VALUES (?)', $v);
     $nak = new StoreOrderKey();
     $nak->load($ak->getAttributeKeyID());
     return $ak;
 }