예제 #1
0
 /**
  * Gets and sets the theme attribute (data-theme="a")
  *
  * @param string $value
  * @return string|self
  */
 public function theme()
 {
     if (func_num_args() === 0) {
         return $this->theme->value();
     }
     $this->theme->value(func_get_arg(0));
     return $this;
 }
예제 #2
0
파일: shop.php 프로젝트: sd-studio/or
 private function addAttrValue(Attribute $attr)
 {
     static $q = null;
     createStaticQuery($q, "\r\n\t\t\tINSERT INTO cf_product_options_attributes\r\n\t\t\t\t(product_option_id, attribute_id, attribute_value)\r\n\t\t\tVALUES \r\n\t\t\t\t(:optionId, :attrId, :value)\r\n\t\t");
     $q->setParam('optionId', $this->id());
     $q->setParam('attrId', $attr->id());
     $q->setParam('value', $attr->value());
     $q->execute();
     $q->close();
 }