query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Clean up internal collections prior to serializing Avoids recursive loops that turn into segmentation faults when serializing
public function __sleep() { $this->clearAllReferences(); $cls = new \ReflectionClass($this); $propertyNames = []; $serializableProperties = array_diff($cls->getProperties(), $cls->getProperties(\ReflectionProperty::IS_STATIC)); foreach($serializableProperties as $property) { $propertyNames[] = $property->getName(); } return $propertyNames; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetCollectionsForPersist()\n {\n $this->containers = new ArrayCollection();\n $this->functions = new ArrayCollection();\n $this->constants = new ArrayCollection();\n }", "public function __destruct() {\n\t\t\tparent::__destruct();\n\t\t\tunset($this->collection);\n\t\t}", "abstract protected function unSerializeData();", "function __destruct() {\n\n\t\tunset ($this->iterable);\n\t}", "public function resetLookupCollections()\n\t{\n\t\t$this->lookupCollections[] = null;\n\t}", "private function resetSerializationConditions(): void\n {\n $this->isPartial = false;\n }", "protected function garbageCollect()\n {\n \n }", "protected function _afterLoad()\n {\n foreach ($this->_items as $item) {\n $this->getResource()->unserializeFields($item);\n }\n return parent::_afterLoad();\n }", "public function __destruct()\n {\n unset($this->index);\n unset($this->objectList);\n unset($this->objectListKeys);\n }", "public function cleanup()\n {\n // Remove old parts without binaries \n $this->removePartsWithoutBinary();\n \n // Remove parts where the binary is missing\n $this->removePartsWithMissingBinary();\n \n // Remove binaries without parts\n $this->removeBinariesWithoutParts();\n }", "public function clean() {\n\t\t\tif( !$items = $this->getStats( 'items' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$memcache = $this->getMemcache();\n\t\t\tforeach( $items['items'] as $key => $item ) {\n\t\t\t\t$dump = $memcache->getStats( 'cachedump', $key, $item['number'] * 2 );\n\t\t\t\tforeach( array_keys( $dump ) as $ckey ) {\n\t\t\t\t\t$memcache->get( $ckey );\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->stats = null;\n\t\t}", "public function reset(): void\n {\n $this->_add = new SplObjectStorage();\n $this->_delete = new SplObjectStorage();\n }", "public function garbageCollection();", "public function clearMembros()\n\t{\n\t\t$this->collMembros = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function flush()\r\n {\r\n foreach ($this->_collections as $key => $coll) {\r\n $coll->takeSnapshot();\r\n }\r\n foreach ($this->_tables as $table) {\r\n $table->setAttribute(Doctrine::ATTR_LOAD_REFERENCES, true);\r\n }\r\n $this->_initializedRelations = null;\r\n $this->_collections = null;\r\n $this->_tables = null;\r\n }", "public function removeAll() {\n\t\t$this->addedObjects = new \\SplObjectStorage();\n\t\tforeach ($this->findAll() as $object) {\n\t\t\t$this->remove($object);\n\t\t}\n\t}", "function unserializeChildren()\r\n {\r\n reset($this->components->items);\r\n while (list($k,$v)=each($this->components->items))\r\n {\r\n $v->unserialize();\r\n }\r\n }", "public function __destruct() {\n\t\tforeach ($this as $index => $value) unset($this->$index);\n\t}", "public function _memorizeCleanState() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function __destruct() {\n\t\t\tparent::__destruct();\n\t\t\tunset($this->metadata);\n\t\t\tunset($this->models);\n\t\t\tunset($this->translators);\n\t\t}", "function cleanup()\n {\n if (is_object( $this->roottag )) {\n $this->roottag->clear_subtags();\n }\n }", "public function __wakeup() {\n $this->unset_members();\n }", "private function desabilitaPoolIdsObjetosManipulados()\n {\n \t// setando para null o atributo _arrayObjetosManipulados\n \t$this->_arrayObjetosManipulados = null;\n }", "public function cleanLookupCache(){\n\t\t$this->lookup = [];\n\t}", "function _memorizeCleanState() ;", "public function clearCollection()\n {\n $this->collections = [];\n }", "function smart_foundation_category_transient_flusher() {\n\t// Like, beat it. Dig?\n\tdelete_transient( 'smart_foundation_categories' );\n}", "public function collectGarbage() {}", "public function collectGarbage() {}", "public function collectGarbage() {}", "public function collectGarbage() {}", "public function collectGarbage() {}", "public function collectGarbage() {}", "public function flushData()\n\t{\n\t\t$class = get_class($this);\n\t\tunset($this->_data[$class]);\n\t}", "public static function reset() {\n\t\tself::$objects = array();\n\t}", "public function delete_all() {\n\t\t$this->_cache = array();\n\t\t$this->_collections = array();\n\t}", "function __destruct()\n {\n unset($this->parent);\n unset($this->sz);\n }", "private function clear()\n {\n $this->mappedQueries = [];\n $this->mappedFilters = [];\n $this->requestData = [];\n }", "public function cleanUp();", "public function cleanUp();", "public function cleanUp();", "function prepareData(){\n $this->ref = array();\n foreach($this->getIterator() as $junk=>$item){\n // current values\n $id = $item[$this->id_field];\n \n // save item\n $this->items[$id] = $item;\n \n // save relation\n if(isset($item[$this->parent_id_field])) {\n $this->ref[$item[$this->parent_id_field]][] = $id;\n } else {\n $this->ref[undefined][] = $id;\n }\n }\n }", "public function reset()\r\n\t{\r\n\t\t$this->first = null;\r\n\t\t$this->alreadyIncluded = array();\r\n\t\t$this->depths = array();\r\n\t}", "public function clearChildren(): void\n {\n if ($this->children instanceof Collection) {\n $this->children = new Collection;\n return;\n }\n\n $this->children = [];\n }", "public static function clear()\n {\n self::$map = array();\n self::$instances = array();\n }", "public function __destruct()\n\t{\n\t\t$this->tree = false;\n\t\t$this->current_category = false;\n\t\t$this->tree_steped_item = false;\n\t\t$this->tree_items = 0;\n\t\t$this->walk_step = 0;\n\t\t$this->parent_data = false;\n\t}", "protected function flushBuiltKeys()\n {\n $this->builtKeys = [];\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collMonths) {\n foreach ($this->collMonths as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collFileCats) {\n foreach ($this->collFileCats as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collDocCats) {\n foreach ($this->collDocCats as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collBookks) {\n foreach ($this->collBookks as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAccounts) {\n foreach ($this->collAccounts as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collReports) {\n foreach ($this->collReports as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collProjects) {\n foreach ($this->collProjects as $o) {\n $o->clearAllReferences($deep);\n }\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collMonths instanceof PropelCollection) {\n $this->collMonths->clearIterator();\n }\n $this->collMonths = null;\n if ($this->collFileCats instanceof PropelCollection) {\n $this->collFileCats->clearIterator();\n }\n $this->collFileCats = null;\n if ($this->collDocCats instanceof PropelCollection) {\n $this->collDocCats->clearIterator();\n }\n $this->collDocCats = null;\n if ($this->collBookks instanceof PropelCollection) {\n $this->collBookks->clearIterator();\n }\n $this->collBookks = null;\n if ($this->collAccounts instanceof PropelCollection) {\n $this->collAccounts->clearIterator();\n }\n $this->collAccounts = null;\n if ($this->collReports instanceof PropelCollection) {\n $this->collReports->clearIterator();\n }\n $this->collReports = null;\n if ($this->collProjects instanceof PropelCollection) {\n $this->collProjects->clearIterator();\n }\n $this->collProjects = null;\n }", "public function __destruct()\n {\n $this->clear();\n }", "public function __destruct()\n {\n $this->clear();\n }", "public function __destruct()\n\t{\n\t\tunset($this -> arrNewData);\n\t\tunset($this -> arrOldData);\n\t\tunset($this -> isCheckModify);\n\t\tunset($this -> tableName);\n\t\tunset($this -> databaseName);\n\t\t\t\n\t}", "public function __destruct(){\n\t\t$this->store();\n\t}", "public function __destruct()\n {\n for ($i = 0; $i < count($this->containingMarkers); $i++) {\n $this->containingMarkers[$i]->setInCluster(false);\n }\n }", "private function _reinit()\n {\n $this->compressed_list = array();\n $this->central_dir_list = array();\n $this->end_of_central = array();\n $this->info = array();\n $this->error = array();\n }", "public function clearVenueratings()\n\t{\n\t\t$this->collVenueratings = null; // important to set this to NULL since that means it is uninitialized\n\t}" ]
[ "0.66015196", "0.6449753", "0.6215551", "0.61597574", "0.6106723", "0.6075431", "0.5996365", "0.59832555", "0.59745175", "0.5912412", "0.59108835", "0.588695", "0.5884994", "0.58803946", "0.5879229", "0.5864257", "0.58602923", "0.5825001", "0.5820132", "0.58089477", "0.58089477", "0.58089477", "0.58089477", "0.58089477", "0.58089477", "0.58089477", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.58087677", "0.5808463", "0.5808463", "0.5808463", "0.5808463", "0.5808463", "0.5808463", "0.5798067", "0.5787638", "0.5777945", "0.57658", "0.57533246", "0.57465345", "0.5731204", "0.57310045", "0.5727925", "0.5727925", "0.5727925", "0.5727925", "0.5727925", "0.5727925", "0.5727723", "0.57075447", "0.57067627", "0.5696333", "0.5694273", "0.5672951", "0.5672951", "0.5672951", "0.5665867", "0.5644741", "0.5639636", "0.5634053", "0.56161916", "0.55990183", "0.5593005", "0.5588424", "0.5588424", "0.55858564", "0.5575674", "0.55705684", "0.5564562", "0.55643356" ]
0.0
-1
Get the [prod_id] column value.
public function getProdId() { return $this->prod_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getProdId($product){\r\n require '../../model/dbconnect.php';\r\n $prod = $db->quote($product);\r\n $rows_prod = $db->query(\"SELECT id FROM product WHERE name = $prod\");\r\n if ($rows_prod) {\r\n foreach($rows_prod as $row)\r\n return $row['id'];\r\n }\r\n }", "public function getProductid() {\n\t\treturn $this->productid;\n\t}", "function getId()\n\t{\n\t\t$id=(int)$_GET['prodid'];\n\t\tif(is_int($id))\n\t\t{\n\t\t\treturn $id;\n\t\t}\n\t}", "public function getPrimaryKey()\n {\n return $this->getProdId();\n }", "public function getId()\n {\n return $this->product->{$this->params['productFieldId']};\n }", "public function getId()\n {\n return $this->product->{$this->params['productFieldId']};\n }", "public function getProductId()\n {\n $value = $this->get(self::product_id);\n return $value === null ? (integer)$value : $value;\n }", "function product_id($product_id=null)\n {\n if (isset($product_id)) $this->product_id = $product_id;\n return $this->product_id;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function get_id_product()\n\t{\n\t\treturn $this->id_product;\n\t}", "function getID(){ return (int)$this->productInfo['products_id']; }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductIdFieldName() {\n return 'products_id';\n }", "public function getId()\n {\n return $this->idProduct;\n }", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "public function getId_product()\n {\n return $this->id_product;\n }", "public function getProduct_Id() {\n return $this->product_Id;\n }", "public function getProductID()\n {\n if ($product = $this->Product()) {\n return $product->ID;\n }\n return 0;\n }", "public function getProductId()\n {\n $productIdAttribute = $this->helper->getProductIdConfig();\n\n return $this->getAttribute($productIdAttribute);\n }", "public function getProductId(): string\n {\n return $this->productId;\n }", "private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }", "public function get_productId(): int\n {\n // $res is a int;\n // $dev is a YDevice;\n if ($this->_cacheExpiration == 0) {\n $dev = $this->_getDev();\n if (!($dev == null)) {\n return $dev->getProductId();\n }\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::PRODUCTID_INVALID;\n }\n }\n $res = $this->_productId;\n return $res;\n }", "public function GetIdProducto()\n\t{\n\t\treturn $this->idProd;\n\t}", "public function getProductId() {\n\t\treturn($this->productId);\n\t}", "public function get_product_id() {\n return $this->product_id;\n }", "protected function getLinkedProductID () {\n $productFilter = Search::getInstance($this->data['attrs']['source_id'])->getFilter('product');\n\n return $productFilter ? $productFilter['value'] : null;\n }", "public function getProductsId()\n {\n return $this->productsId;\n }", "public function getProductId()\n {\n return $this->product_id;\n }", "public function getProductId()\n {\n return $this->product_id;\n }", "public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getId() : string\n {\n return $this->get('id', 'products');\n }", "public function getProductID()\n {\n }", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "function get_product_id( $dsn, $product_name ) {\n\t$db =& MDB2::factory($dsn);\n\t\n\tif (DB::isError($db)) {\n\t\tdie ($db->getMessage());\n\t}\n\n\t$sql = \"SELECT id FROM products WHERE name = '\" . $product_name . \"'\";\n\n\treturn $db->queryOne($sql);\n\n}", "public function getProductIdentifier()\n {\n $value = $this->_config->get('dataprocessing/products/identifier');\n\n if ($value === null) {\n $value = 'sku';\n }\n\n return $value;\n }", "public function getId() : int\n {\n return $this->getValue('nb_icontact_prospect_id');\n }", "public function getProductId() : int\n {\n return (int)$this->getProduct()->getId();\n }", "public function getProductId(){\n return $this->product_id;\n }", "function getId_Producto(){\r\n\t\treturn $this->nId_Producto;\r\n\t}", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getId() {\r\n\t\t\treturn $this->columns[ $this->index ];\r\n\t\t}", "public function getId_produto()\n {\n return $this->id_produto;\n }", "public function getIdProduto()\n\t\t{\n\t\t\treturn $this -> idproduto;\n\t\t}", "public function getProductId(): ?string\n {\n return isset($this->ProductId) ? $this->ProductId : null;\n }", "public function getProductId(): ?string\n {\n return isset($this->ProductId) ? $this->ProductId : null;\n }", "public function getId() : int\n {\n return $this->getValue('nb_commerce_product_category_id');\n }", "public function getID() {\n return array_key_exists($this->_key_field, $this->_data) ? $this->_data[$this->_key_field] : null;\n }", "public function getProdsId($id_prod) {\n try{\n $products = DB::table('categs_prods')->where('id_prod', '=', $id_prod)->get();\n return response()->json(['status' => 1, 'relations by id_prod' => $products]);\n } catch(\\Exception $e) {\n return response()->json(['status' => 0, 'relations by id_prod' => []], 500);\n }\n }", "function get_product_id_by_cat($cat_id) \n {\n global $db;\n $query = \"SELECT productID FROM tblproduct WHERE catID = '$cat_id'\";\n $result = $db -> query($query);\n return $result;\n }", "function get_product_by_id($product_id) {\r\n try {\r\n $params[0] = array(\"name\" => \":prod_id\", \"value\" => &$product_id);\r\n return $this->DBObject->readCursor(\"product_actions.get_product_by_id(:prod_id)\", $params);\r\n } catch (Exception $ex) {\r\n echo \">>\" . ex;\r\n }\r\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getIdProductSaleForIdProduct($id){\n try{\n $sql = \"Select id_productforsale from productforsale where id_product = ?\";\n $stm = $this->pdo->prepare($sql);\n $stm->execute([$id]);\n\n $result = $stm->fetch();\n } catch (Exception $e){\n $this->log->insert($e->getMessage(), 'Inventory|getIdProductSaleForIdProduct');\n $result = 0;\n }\n\n return $result->id_productforsale;\n }", "function getProductId($product_name)\n\t{\n\t\tglobal $log;\n $log->info(\"in getProductId \".$product_name);\n\t\tglobal $adb;\n\t\tif($product_name != '')\n\t\t{\n\t\t\t$sql = \"select productid from ec_products where productname='\".$product_name.\"'\";\n\t\t\t$result = $adb->query($sql);\n\t\t\t$productid = $adb->query_result($result,0,\"productid\");\n\t\t}\n\t\treturn $productid;\n\t}", "public function get_id()\n {\n $pkey = static::tinydb_get_table_info()->primary_key;\n if (is_array($pkey)) {\n $val = array();\n foreach ($pkey as $field) {\n $val[$field] = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($field)->type,\n $this->tinydb_rowdata[$field]);\n }\n } else {\n $val = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($pkey)->type,\n $this->tinydb_rowdata[$pkey]);\n }\n\n\n return $val;\n }", "public function getProductId() {\n return $this->item->getProductId();\n }", "public function getProduitid()\n {\n return $this->produitid;\n }", "public function getProducts_prid() {\n\t\treturn $this->products_prid;\n\t}", "public function getProductId(): int;", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "public function getColumnId(): string\n {\n return $this->getColumn('id', 'id');\n }", "function get_id() {\n return $this->get_mapped_property('id');\n }", "public function getproductdetail($prod_id)\n {\n $product = $this->Dbmodel->getproductdata($prod_id); \n return $product;\n }", "public function getProductDetailId()\n {\n return $this->product_detail_id;\n }", "public function getProductuuid(){\n return $this->productuuid;\n }", "public function getMaxID(){\n\t\t try{\n\t\t\t$conn = DBConnection::GetConnection();\t\n\t\t\t$queryForGetMaxId=\"SELECT MAX(product_id) AS max_value FROM product\";\n\t\t\t$max_result=$conn->prepare($queryForGetMaxId);\n\t\t\t$max_result->execute();\n\t\t\t$maxId = $max_result->fetch(PDO::FETCH_ASSOC); \n\t\t\t$pId=$maxId['max_value']; \n\t\t\t$incrementPid=$pId+1;\n\t\t\treturn $incrementPid;\n\t\t}catch(PDOException $e){\n\t\t\techo 'Fail to connect';\n\t\t\techo $e->getMessage();\n\t\t}\t\n }", "public function getIdProducto()\n {\n return $this->id_producto;\n }", "public function getIdProducto()\n {\n return $this->id_producto;\n }", "protected function getProductLoadId()\n {\n $product = $this->locator->getProduct();\n if (method_exists($product, 'getData')) {\n return $product->getData($this->getProductLinkField());\n }\n }", "public function getIdProducto()\n {\n return $this->idProducto;\n }", "public function getProductId(): string;", "function getProductuuid()\n {\n return $this->product_uuid;\n }", "protected function get__id()\n\t{\n\t\t$idColumn = static::$databaseColumnId;\n\t\treturn $this->$idColumn;\n\t}", "public function getCustomPriceId($product_variety_id, $multiplicator) {\n\t\t\n\t\tif (!is_numeric($product_variety_id)) return false;\n\t\tif (!is_numeric($multiplicator)) return false;\n\t\t\n\t\trequire_once('models/ecommerce/ecommerce_price.php');\n\t\t$Price = new ecommerce_price();\n\t\t\n\t\t$price_id = $Price->getCustomPriceIdByMultiplicator($product_variety_id, $multiplicator);\n\t\t\n\t\tif (is_numeric($price_id)) return $price_id;\n\t\telse return false;\t\n\t}", "function getTTUidForProdId($prodId) {\n\t\t$ms3Oid = $this->getMs3OidForProdId($prodId);\n\t\treturn $this->getTTUidForMs3Oid($ms3Oid);\n\t}", "public function getIdColumn()\n {\n return $this->idColumn;\n }", "public function getProductId()\n {\n $product = Mage::registry('current_product');\n if ($product) {\n return $product->getId();\n }\n return false;\n }", "public function cartId() {\n\t\treturn $this->field('Cart.id', $this->cartConditions());\n\t}", "public function getId()\n {\n $rtn = $this->data['id'];\n\n return $rtn;\n }", "public function getId()\n {\n return $this->getValue('id');\n }", "public function getProductOptionId();", "function getID() \n {\n return $this->getValueByFieldName( 'statevar_id' );\n }", "public function getCommerceId() : int\n {\n return $this->getValue('nb_commerce_id');\n }", "public function getValueId()\n {\n return $this->valueId;\n }", "function select_user_id_by_product_id($product_id)\n {\n $query = new Query;\n $count = $query->select('user_id')->from('core_products')->where(\"product_id = '$product_id'\")->All();\n return $count[0]['user_id'];\n }", "function get_id()\n {\n return $this->get_default_property(self :: PROPERTY_ID);\n }", "function get_id()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_ID);\r\n }", "public function getId()\n {\n return isset($this->id) ? $this->id : '';\n }", "public function getId()\n {\n return isset($this->id) ? $this->id : '';\n }", "public function getProductAttributeInt($productId, $attributeCode){\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_int where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getProductValueById()\n\t{\n\t\t$product_id = $this->input->post('product_id');\n\t\tif ($product_id) {\n\t\t\t$product_data = $this->model_products->getProductData($product_id);\n\t\t\techo json_encode($product_data);\n\t\t}\n\t}", "protected function getCurrentId()\n {\n return (array_key_exists($this->idfieldName(), $this->data)) ? $this->data[$this->idfieldName()] : NULL;\n }", "public function getId() : string\n {\n $rtn = $this->data['id'];\n\n return $rtn;\n }", "public function id()\n {\n return $this->read($this->metadata['pk']->name);\n }" ]
[ "0.73035824", "0.69820976", "0.6949236", "0.6908819", "0.6898615", "0.6853161", "0.6833888", "0.67703784", "0.67697114", "0.67697114", "0.67697114", "0.6722221", "0.66953254", "0.6691161", "0.6691161", "0.6691161", "0.6690784", "0.66845405", "0.6667453", "0.6627047", "0.65908873", "0.65892875", "0.65609366", "0.65596837", "0.6507168", "0.65040934", "0.64928496", "0.64716375", "0.64584494", "0.6447525", "0.64423543", "0.6413214", "0.6413214", "0.63725984", "0.63725984", "0.63488054", "0.6322521", "0.63204265", "0.6300353", "0.6260861", "0.6226847", "0.6204422", "0.61880136", "0.61796695", "0.6171918", "0.6167014", "0.61234516", "0.6114056", "0.61107934", "0.6054825", "0.6054825", "0.60403144", "0.60352546", "0.6030648", "0.60270345", "0.6009095", "0.60048884", "0.60048884", "0.59856564", "0.5985177", "0.59667486", "0.5965685", "0.5959018", "0.5935881", "0.59324896", "0.5928234", "0.5927607", "0.59260786", "0.5908214", "0.5893855", "0.58853734", "0.5873638", "0.58617055", "0.58617055", "0.5855584", "0.5855274", "0.58383465", "0.58331054", "0.5833025", "0.58231014", "0.5821389", "0.57924557", "0.57790494", "0.57671636", "0.5752529", "0.5751858", "0.57442886", "0.5741001", "0.5739695", "0.5738013", "0.57377565", "0.57268775", "0.5717647", "0.5695239", "0.5695239", "0.56937796", "0.5686897", "0.56858146", "0.5683098", "0.56830364" ]
0.7903942
0
Get the [prod_price_id] column value.
public function getProdPriceId() { return $this->prod_price_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getProductId()\n {\n $value = $this->get(self::product_id);\n return $value === null ? (integer)$value : $value;\n }", "private function getPriceAttributeId()\n {\n if (!$this->priceAttributeId) {\n $this->priceAttributeId = $this->attributeRepository->get('special_price')->getAttributeId();\n }\n\n return $this->priceAttributeId;\n }", "public function getProductid() {\n\t\treturn $this->productid;\n\t}", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "function getProdId($product){\r\n require '../../model/dbconnect.php';\r\n $prod = $db->quote($product);\r\n $rows_prod = $db->query(\"SELECT id FROM product WHERE name = $prod\");\r\n if ($rows_prod) {\r\n foreach($rows_prod as $row)\r\n return $row['id'];\r\n }\r\n }", "public function get_id_product()\n\t{\n\t\treturn $this->id_product;\n\t}", "public function getProductIdFieldName() {\n return 'products_id';\n }", "public function getProductId()\n {\n $productIdAttribute = $this->helper->getProductIdConfig();\n\n return $this->getAttribute($productIdAttribute);\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getId_product()\n {\n return $this->id_product;\n }", "public function getProductId()\n {\n return $this->product_id;\n }", "public function getProductId()\n {\n return $this->product_id;\n }", "public function getProductId() {\n\t\treturn($this->productId);\n\t}", "public function get_productId(): int\n {\n // $res is a int;\n // $dev is a YDevice;\n if ($this->_cacheExpiration == 0) {\n $dev = $this->_getDev();\n if (!($dev == null)) {\n return $dev->getProductId();\n }\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::PRODUCTID_INVALID;\n }\n }\n $res = $this->_productId;\n return $res;\n }", "public function get_product_id() {\n return $this->product_id;\n }", "public function getProductID()\n {\n if ($product = $this->Product()) {\n return $product->ID;\n }\n return 0;\n }", "public function getCustomPriceId($product_variety_id, $multiplicator) {\n\t\t\n\t\tif (!is_numeric($product_variety_id)) return false;\n\t\tif (!is_numeric($multiplicator)) return false;\n\t\t\n\t\trequire_once('models/ecommerce/ecommerce_price.php');\n\t\t$Price = new ecommerce_price();\n\t\t\n\t\t$price_id = $Price->getCustomPriceIdByMultiplicator($product_variety_id, $multiplicator);\n\t\t\n\t\tif (is_numeric($price_id)) return $price_id;\n\t\telse return false;\t\n\t}", "public function GetIdProducto()\n\t{\n\t\treturn $this->idProd;\n\t}", "public function getId()\n {\n return $this->product->{$this->params['productFieldId']};\n }", "public function getProduct_Id() {\n return $this->product_Id;\n }", "public function getId()\n {\n return $this->idProduct;\n }", "public function getId()\n {\n return $this->product->{$this->params['productFieldId']};\n }", "function getID(){ return (int)$this->productInfo['products_id']; }", "public function getPrimaryKey()\n {\n return $this->getProdId();\n }", "function product_id($product_id=null)\n {\n if (isset($product_id)) $this->product_id = $product_id;\n return $this->product_id;\n }", "public function getPriceId($id)\n { \n $product = $this->postFactory->create();\n $productPriceById = $product->load($id)->getPrice();\n return $productPriceById;\n }", "public function getProductId(): string\n {\n return $this->productId;\n }", "public function getProductId() : int\n {\n return (int)$this->getProduct()->getId();\n }", "protected function getLinkedProductID () {\n $productFilter = Search::getInstance($this->data['attrs']['source_id'])->getFilter('product');\n\n return $productFilter ? $productFilter['value'] : null;\n }", "public function getProductsId()\n {\n return $this->productsId;\n }", "private function getPriceToAttributeId()\n {\n if (!$this->priceToAttributeId) {\n $this->priceToAttributeId = $this->attributeRepository->get('special_to_date')->getAttributeId();\n }\n\n return $this->priceToAttributeId;\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "private function getPriceFromAttributeId()\n {\n if (!$this->priceFromAttributeId) {\n $this->priceFromAttributeId = $this->attributeRepository->get('special_from_date')->getAttributeId();\n }\n\n return $this->priceFromAttributeId;\n }", "function getId()\n\t{\n\t\t$id=(int)$_GET['prodid'];\n\t\tif(is_int($id))\n\t\t{\n\t\t\treturn $id;\n\t\t}\n\t}", "public function getProductId(){\n return $this->product_id;\n }", "private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }", "function getId_Producto(){\r\n\t\treturn $this->nId_Producto;\r\n\t}", "public function getId_produto()\n {\n return $this->id_produto;\n }", "public function getIdProductSaleForIdProduct($id){\n try{\n $sql = \"Select id_productforsale from productforsale where id_product = ?\";\n $stm = $this->pdo->prepare($sql);\n $stm->execute([$id]);\n\n $result = $stm->fetch();\n } catch (Exception $e){\n $this->log->insert($e->getMessage(), 'Inventory|getIdProductSaleForIdProduct');\n $result = 0;\n }\n\n return $result->id_productforsale;\n }", "public function getProductID()\n {\n }", "public function getProductId() {\n return $this->item->getProductId();\n }", "public function getIdProduto()\n\t\t{\n\t\t\treturn $this -> idproduto;\n\t\t}", "public function listIdproducforproductsale($id){\n try{\n $sql = \"Select * from product p inner join productforsale p2 on p.id_product = p2.id_product where p2.id_productforsale = ?\";\n $stm = $this->pdo->prepare($sql);\n $stm->execute([$id]);\n\n $result = $stm->fetch();\n $result = $result->id_product;\n } catch (Exception $e){\n $this->log->insert($e->getMessage(), 'Inventory|listProductprice');\n $result = 0;\n }\n\n return $result;\n }", "public function getIdProducto()\n {\n return $this->id_producto;\n }", "public function getIdProducto()\n {\n return $this->id_producto;\n }", "public function getIdProducto()\n {\n return $this->idProducto;\n }", "public function getProducts_prid() {\n\t\treturn $this->products_prid;\n\t}", "function getPriceValueById($id) {\n\t\t$this->db->select('*');\n\t\t$this->db->from($this->test_price_table);\n\t\t$this->db->where('test_price_id', $id);\n $query = $this->db->get();\n\t\treturn $query->result();\n\t}", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "function getProductId($product_name)\n\t{\n\t\tglobal $log;\n $log->info(\"in getProductId \".$product_name);\n\t\tglobal $adb;\n\t\tif($product_name != '')\n\t\t{\n\t\t\t$sql = \"select productid from ec_products where productname='\".$product_name.\"'\";\n\t\t\t$result = $adb->query($sql);\n\t\t\t$productid = $adb->query_result($result,0,\"productid\");\n\t\t}\n\t\treturn $productid;\n\t}", "function get_product_price($field_product_id){\r\n\r\n $this->load->model('logistics_model');\r\n $result = $this->logistics_model->get_product_price($field_product_id);\r\n $value = $result->price;\r\n echo $value;\r\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getMaxID(){\n\t\t try{\n\t\t\t$conn = DBConnection::GetConnection();\t\n\t\t\t$queryForGetMaxId=\"SELECT MAX(product_id) AS max_value FROM product\";\n\t\t\t$max_result=$conn->prepare($queryForGetMaxId);\n\t\t\t$max_result->execute();\n\t\t\t$maxId = $max_result->fetch(PDO::FETCH_ASSOC); \n\t\t\t$pId=$maxId['max_value']; \n\t\t\t$incrementPid=$pId+1;\n\t\t\treturn $incrementPid;\n\t\t}catch(PDOException $e){\n\t\t\techo 'Fail to connect';\n\t\t\techo $e->getMessage();\n\t\t}\t\n }", "public function getProductId(): int;", "public function listProductprice($id){\n try{\n $sql = \"Select * from productforsale where id_productforsale = ?\";\n $stm = $this->pdo->prepare($sql);\n $stm->execute([$id]);\n\n $result = $stm->fetch();\n } catch (Exception $e){\n $this->log->insert($e->getMessage(), 'Inventory|listProductprice');\n $result = 2;\n }\n\n return $result;\n }", "public function getPriceProduct()\n {\n return $this->priceProduct;\n }", "public function getProductId(): ?string\n {\n return isset($this->ProductId) ? $this->ProductId : null;\n }", "public function getProductId(): ?string\n {\n return isset($this->ProductId) ? $this->ProductId : null;\n }", "public function getProductOptionId();", "public function getProductDetailId()\n {\n return $this->product_detail_id;\n }", "protected function getProductLoadId()\n {\n $product = $this->locator->getProduct();\n if (method_exists($product, 'getData')) {\n return $product->getData($this->getProductLinkField());\n }\n }", "public function getProductIdentifier()\n {\n $value = $this->_config->get('dataprocessing/products/identifier');\n\n if ($value === null) {\n $value = 'sku';\n }\n\n return $value;\n }", "public function getIdProductIdForProductSale($id){\n try{\n $sql = \"Select id_product from productforsale where id_productforsale = ?\";\n $stm = $this->pdo->prepare($sql);\n $stm->execute([$id]);\n\n $result = $stm->fetch();\n } catch (Exception $e){\n $this->log->insert($e->getMessage(), 'Inventory|getIdProductIdForProductSale');\n $result = 0;\n }\n\n return $result->id_product;\n }", "public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "function get_product_id( $dsn, $product_name ) {\n\t$db =& MDB2::factory($dsn);\n\t\n\tif (DB::isError($db)) {\n\t\tdie ($db->getMessage());\n\t}\n\n\t$sql = \"SELECT id FROM products WHERE name = '\" . $product_name . \"'\";\n\n\treturn $db->queryOne($sql);\n\n}", "public function getIdProducto()\n {\n return $this->idProducto;\n }", "function get_price($pid){\n\t$products = \"scart_products\"; // products table\n\t$serial = \"bookid\"; // products key\n\t$result=mysql_query(\"select price from $products where $serial=$pid\")\n or die (\"Query '$products' and '$pid' failed with error message: \\\"\" . mysql_error () . '\"');\n\t$row=mysql_fetch_array($result);\n\treturn $row['price']; // products price\n}", "public function getPricecode()\n {\n return $this->pricecode;\n }", "public function getId_producto()\n {\n return $this->id_producto;\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductAttributeInt($productId, $attributeCode){\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_int where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getProductId()\n {\n $product = Mage::registry('current_product');\n if ($product) {\n return $product->getId();\n }\n return false;\n }", "function get_product_id_by_cat($cat_id) \n {\n global $db;\n $query = \"SELECT productID FROM tblproduct WHERE catID = '$cat_id'\";\n $result = $db -> query($query);\n return $result;\n }", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "public function setProdPriceId($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_price_id !== $v) {\n $this->prod_price_id = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_PRICE_ID] = true;\n }\n\n if ($this->aTblProdPricing !== null && $this->aTblProdPricing->getProdPriceId() !== $v) {\n $this->aTblProdPricing = null;\n }\n\n return $this;\n }", "public function getProductoID($id)\n {\n $stmt = Conexion::conectar()->prepare('SELECT *from productos where idProducto=:id');\n $stmt->bindParam(\":id\",$id);\n $stmt->execute();\n $resultado=$stmt->fetch();\n return $resultado;\n }", "public function getProductPrice() {\n\t\t\t$data = request()->all();\n\t\t\t$dataArr = explode('-', $data['idSize']);\n\t\t\t$proAttr = ProductsAttribute::where(['product_id'=>$dataArr[0], 'size'=>$dataArr[1]])->first();\n\t\t\t$productData = [\n\t\t\t\t'sku' \t=> $proAttr->sku, \n\t\t\t\t'price' => $proAttr->price,\n\t\t\t\t'stock' => $proAttr->stock\n\t\t\t]; \n\t\t\treturn $productData;\n\t\t}", "public static function getProductPrice($id)\n\t{\n\t // rework params\n\t $id = (int) $id;\n\n\t\ttry {\n\t\t\t$db = new OneArchyDB(F2T_DB_HOST, F2T_DB_NAME, F2T_DB_USER, F2T_DB_PASS);\n\t\t\t$db->connect();\n\n\t\t\t$query = 'SELECT price FROM Products WHERE id = ?';\n\t\t\t$price = $db->queryOne($query, [$id]);\n\t\t}\n\t\tcatch (Exception $e) {\n $errorMessage = 'Er is een fout opgetreden bij het oproepen van een productprijs.';\n\n if ($db !== null) {\n $db->logError($errorMessage, ['exception' => $e->getMessage(), 'query' => $query, 'results' => $price, 'productId' => $id, 'site' => 'checkout']);\n }\n\n\t\t\tthrow new Exception($errorMessage);\n\t\t}\n\n\t return $price['price'];\n\t}", "public function getPrimaryProductId()\n {\n return $this->primary_product_id;\n }", "public function getId() {\r\n\t\treturn($this->_currency_id);\r\n\t}", "function get_product_by_id($product_id) {\r\n try {\r\n $params[0] = array(\"name\" => \":prod_id\", \"value\" => &$product_id);\r\n return $this->DBObject->readCursor(\"product_actions.get_product_by_id(:prod_id)\", $params);\r\n } catch (Exception $ex) {\r\n echo \">>\" . ex;\r\n }\r\n }", "public function getId() : string\n {\n return $this->get('id', 'products');\n }", "public function getProductValueById()\n\t{\n\t\t$product_id = $this->input->post('product_id');\n\t\tif ($product_id) {\n\t\t\t$product_data = $this->model_products->getProductData($product_id);\n\t\t\techo json_encode($product_data);\n\t\t}\n\t}", "public function getProduitid()\n {\n return $this->produitid;\n }", "public function cartId() {\n\t\treturn $this->field('Cart.id', $this->cartConditions());\n\t}", "public function getProducts_options_values_id() {\n\t\treturn $this->products_options_values_id;\n\t}", "public function getId() : int\n {\n return $this->getValue('nb_icontact_prospect_id');\n }", "public function getProductPrice(){\n return $this->product_price;\n }", "public function getId() : int\n {\n return $this->getValue('nb_commerce_product_category_id');\n }", "public function getIdproducto()\n {\n return $this->idproducto;\n }", "public function productPrice(){\n\t\treturn $this->hasOne('App\\ProductPrices','product_id');\n\t}", "public function getProductId(): string;", "public function getProductID($name){\n try{\n $sql = \"Select * from product where product_name = ?\";\n $stm = $this->pdo->prepare($sql);\n $stm->execute([$name]);\n\n $result = $stm->fetch();\n } catch (Exception $e){\n $this->log->insert($e->getMessage(), 'Inventory|listProduct');\n $result = 2;\n }\n\n return $result->id_product;\n }" ]
[ "0.7352852", "0.69665", "0.68221", "0.6768231", "0.669076", "0.669076", "0.669076", "0.66472805", "0.6647117", "0.66364694", "0.6608908", "0.65955067", "0.65955067", "0.65955067", "0.65907025", "0.65622246", "0.65622246", "0.6549087", "0.6509767", "0.64932376", "0.6485814", "0.64837724", "0.64619106", "0.64528424", "0.64498717", "0.6446351", "0.6433748", "0.6428177", "0.63942224", "0.6387931", "0.63836354", "0.6363885", "0.63477445", "0.63428724", "0.6334914", "0.6295913", "0.62898123", "0.626869", "0.6267497", "0.62321883", "0.6222118", "0.62142015", "0.61635053", "0.61417425", "0.61016715", "0.6078848", "0.60432595", "0.603456", "0.60296655", "0.60296655", "0.6022971", "0.5986349", "0.59819555", "0.59672713", "0.59520966", "0.5940398", "0.5933793", "0.5916563", "0.5914174", "0.5913501", "0.59033924", "0.5901039", "0.5901039", "0.58841556", "0.58805555", "0.58742726", "0.5872063", "0.5864638", "0.58600295", "0.58600295", "0.58332926", "0.58254546", "0.5823777", "0.5812409", "0.58094424", "0.57864076", "0.57864076", "0.5775523", "0.5766792", "0.5758047", "0.5738954", "0.5721107", "0.5719746", "0.5718606", "0.57031137", "0.5698196", "0.569055", "0.5683749", "0.5682164", "0.5676355", "0.5671447", "0.56705445", "0.56689155", "0.565846", "0.5649815", "0.56439036", "0.5633295", "0.5627114", "0.5622253", "0.56219333" ]
0.819803
0
Get the [prod_name] column value.
public function getProdName() { return $this->prod_name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }", "public function getProductName()\n {\n return $this->product_name;\n }", "public function getProductName()\n {\n return $this->product_name;\n }", "public function getName_product()\n {\n return $this->name_product;\n }", "protected function getProductName(): ?string\n\t{\n\t\tstatic $cache = [];\n\n\t\t$productId = $this->getProductId();\n\t\tif (!$productId)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tif (!array_key_exists($productId, $cache))\n\t\t{\n\t\t\tLoader::includeModule('iblock');\n\n\t\t\t$row = ElementTable::getRow([\n\t\t\t\t'select' => [\n\t\t\t\t\t'NAME',\n\t\t\t\t],\n\t\t\t\t'filter' => [\n\t\t\t\t\t'=ID' => $productId,\n\t\t\t\t],\n\t\t\t]);\n\t\t\t$cache[$productId] = $row ? (string)$row['NAME'] : null;\n\t\t}\n\n\t\treturn $cache[$productId];\n\t}", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "public function getProductName(){\n return $this->product_name;\n }", "public function getProdName(){\n\t\treturn array_keys($this->_products);\n\t}", "function prodname()\r\n {\r\n //left join oc_product as op on opd.product_id=op.product_id \");\r\n\r\n //return $query->rows; \r\n \r\n $query = $this->db->query(\"SELECT product_id,model,sku FROM `oc_product` WHERE `status`='1'\");\r\n \r\n return $query->rows;\r\n }", "public function get_productName(): string\n {\n // $res is a string;\n // $dev is a YDevice;\n if ($this->_cacheExpiration == 0) {\n $dev = $this->_getDev();\n if (!($dev == null)) {\n return $dev->getProductName();\n }\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::PRODUCTNAME_INVALID;\n }\n }\n $res = $this->_productName;\n return $res;\n }", "function get_product_name($pid){\n\t\tglobal $connection;\n\t\t\n\t\t\t$query = \"SELECT name FROM products WHERE id=\" .$pid;\n\t\t\t$result = mysql_query($query, $connection);\n\t\t\tconfirm_query($result);\n\t\t\t$row = mysql_fetch_array($result);\n\t\t\n\t\treturn $row['name'];\n\t}", "public function getProductName(): ?string\n {\n return $this->productName;\n }", "public function getProductName(): ?string\n {\n return $this->productName;\n }", "public function getProductName(): ?string\n {\n return $this->productName;\n }", "public function getProdTitle()\n {\n return $this->prod_title;\n }", "public function findNameProd($id){\n return Product::where('id',$id)->first()->name;\n }", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "function get_product_name($pid){\n\t$products = \"scart_products\"; // products table\n\t$serial = \"bookid\"; // products key\n\t$name = \"book_name\"; // products name\n\t$result=mysql_query(\"select $name from $products where $serial=$pid\")\n or die (\"Query $products and pid - $pid - failed error message: \\\"\" . mysql_error () . '\"');\n\t$row=mysql_fetch_array($result);\n\treturn $row[$name];\n}", "public function getProductName()\n {\n if (!isset($this->name))\n {\n if (!$this->name = $this->getHelper()->getName($this->getSlug()))\n {\n $this->name = $this->getHelper()->getNameFromPath($this->getPathname());\n }\n }\n\n return $this->name;\n }", "public function getName() : string\n {\n return $this->get('name', 'products');\n }", "function GetProductName ( $whichProduct )\n{\n\n\tmysql_select_db ( 'products' );\n\t$query = 'SELECT * FROM products where ID like '.$whichProduct;\n\n\t$result = mysql_query($query );\n\n\tif ( $result )\n\t{\n\t\t$num_results = mysql_num_rows ( $result );\n\t\tif ( $num_results == 1 )\n\t\t{\n\t\t\t$row = mysql_fetch_object ( $result );\n\t\t\t$productName = $row->name;\n\t\t}\n\t\telse\n\t\t\t$productName = 'General';\n\t}\n\n\treturn $productName;\n}", "public function product_name($name,$category)\n {\n $pro_name = $this->Dbmodel->get_product_name($name,$category); \n return $pro_name;\n }", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getProdName() {\n return $this->ProductName;\n}", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getnameAttribute() : String\n {\n $locale = LaravelLocalization::getCurrentLocale();\n $fieldName = 'name';\n $column = $fieldName.\"_\" . $locale;\n $value = $this->{$column};\n return $value;\n }", "public static function get_name() {\n $type = static::get_type();\n return util::string(\"product:{$type}\");\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "private function getProductTypeName() {\n $result = WooCommerceSettings::getProductTypeOptionsForSelect()[$this->wooData->getProductType()];\n return is_array($result) ? $result['name'] : $result;\n }", "protected function getSkuColumnName()\n {\n return $this->skuColumnName;\n }", "public function getName()\n {\n return $this['column_name'];\n }", "function getProdId($product){\r\n require '../../model/dbconnect.php';\r\n $prod = $db->quote($product);\r\n $rows_prod = $db->query(\"SELECT id FROM product WHERE name = $prod\");\r\n if ($rows_prod) {\r\n foreach($rows_prod as $row)\r\n return $row['id'];\r\n }\r\n }", "public function getEntityName()\n {\n return CacheKeys::PRODUCT_VARCHAR;\n }", "public function getBrand_name () {\n\t$preValue = $this->preGetValue(\"brand_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->brand_name;\n\treturn $data;\n}", "public function getMarket_name () {\n\t$preValue = $this->preGetValue(\"market_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->market_name;\n\treturn $data;\n}", "public function getNamePl() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(2, $this->_result)) return (string) $this->_result[2];\n\t\t\telse parent::throwGetColException('Not set ProjectsListingsModel::getNamePl', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From ProjectsListingsModel::getNamePl', __LINE__, __FILE__);\n\t}", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductId(): string\n {\n return $this->productId;\n }", "public function getProductName(): ?string {\n $val = $this->getBackingStore()->get('productName');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'productName'\");\n }", "public function getNameColumn()\n {\n return $this->nameColumn;\n }", "function getProductName($ms3Oid) {\n\t\t$this->dbgstart();\n\t\t$sql = \"SELECT Name FROM Product WHERE AsimOid = '$ms3Oid'\";\n\t\t$result = $this->db->sql_query($sql);\n\t\tif ($result) {\n\t\t\t$row = $this->db->sql_fetch_row($result);\n\t\t\t$this->dbgend();\n\t\t\treturn $row[0];\n\t\t}\n\t\t$this->dbgend();\n\t\treturn false;\n\t}", "protected static function column_name(): mixed\n\t{\n\t\treturn self::$query->column_name;\n\t}", "public function getName()\n {\n return name_to_id($this->columnName);\n }", "function get_products_id_name($product_type) {\r\n $params[0] = array(\"name\" => \":product_type\", \"value\" => &$product_type);\r\n return $this->DBObject->readCursor(\"product_actions.get_products_id_name(:product_type)\", $params);\r\n }", "function get_name() {\n\t\treturn $this->get_name_from_vtec();\t\n\t}", "function tep_get_products_name($product_id, $language = '') {\n global $languages_id;\n\n if (empty($language)) $language = $languages_id;\n\n $product_query = tep_db_query(\"select products_name from \" . TABLE_PRODUCTS_DESCRIPTION . \" where products_id = '\" . (int)$product_id . \"' and language_id = '\" . (int)$language . \"'\");\n $product = tep_db_fetch_array($product_query);\n\n return $product['products_name'];\n }", "public function get_product_names()\n\t{\n\t\t$ret = array();\n\t\t$sum = 0;\n\t\tforeach($this->connections_from(array(\"type\" => \"RELTYPE_ROW\")) as $c)\n\t\t{\n\t\t\t$row = $c->to();\n\t\t\t$ret[] = $row->prod_name();\n\t\t}\n\t\treturn $ret;\n\t}", "function getProductNameFromId($dbc, $id)\n{\n\t$id = cleanString($dbc, $id);\n\t\n\t$q = \"SELECT NAME FROM PRODUCTS WHERE ID = '$id'\";\n\t$r = mysqli_query($dbc, $q);\n\t\n\tif(mysqli_num_rows($r) == 1)\n\t{\n\t\tlist($productName) = mysqli_fetch_array($r);\n\t\treturn $productName;\n\t}else{\n\t\treturn false;\n\t}\n}", "public function name()\n\t{\n\t\treturn $this->get($this->meta()->name_key);\n\t}", "public function getProductIdentifier()\n {\n $value = $this->_config->get('dataprocessing/products/identifier');\n\n if ($value === null) {\n $value = 'sku';\n }\n\n return $value;\n }", "public function getName() {\n //return the value name\n return $this->Name;\n }", "public function name()\n\t{\n\t\treturn $this->array['name'] ?? '';\n\t}", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getCartName()\n {\n return $this->name;\n }", "public function getProductIdFieldName() {\n return 'products_id';\n }", "public function setProdName($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_name !== $v) {\n $this->prod_name = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_NAME] = true;\n }\n\n return $this;\n }", "public static function getProductName($product_id) {\n $name = fn_get_product_name($product_id, $lang_code = CART_LANGUAGE, $as_array = false);\n return $name;\n }", "public function getName()\n {\n if (array_key_exists('name', $this->data)) {\n return $this->data['name'];\n }\n\n if ($this->getType() == Reader\\Reader::TYPE_YML) {\n $name = $this->xpath->evaluate('string(/yml_catalog/shop/name)');\n }\n\n if (! $name) {\n $name = null;\n }\n\n $this->data['name'] = $name;\n return $this->data['name'];\n }", "protected function getShopName()\n {\n return $this->shopName;\n }", "function getName () {return $this->getFieldValue ('name');}", "public function name(): string\n {\n return 'PROD';\n }", "public function fullname()\n\t{\n\t\treturn $this->product->name .' - '. $this->name();\n\t}", "public function getName() : ?string{\n\t\treturn isset($this->data[0]) ? $this->data[0] : null;\n\t}", "function get_name()\n {\n return $this->get_default_property(self :: PROPERTY_NAME);\n }", "public function getDisplayValue($name)\n\t{\n\t\tswitch ($name) {\n\t\t\tcase 'server_id':\n\t\t\t\t$servers = Settings_WebserviceApps_Record_Model::getInstanceById($this->get($name));\n\t\t\t\treturn $servers ? $servers->getName() : '<span class=\"redColor\">ERROR</span>';\n\t\t\tcase 'crmid':\n\t\t\t\treturn $this->get($name) ? \\App\\Record::getLabel($this->get($name)) : '';\n\t\t\tcase 'status':\n\t\t\t\treturn empty($this->get($name)) ? 'PLL_INACTIVE' : 'PLL_ACTIVE';\n\t\t\tcase 'user_id':\n\t\t\t\treturn \\App\\Fields\\Owner::getLabel($this->get($name));\n\t\t\tcase 'language':\n\t\t\t\treturn $this->get($name) ? \\App\\Language::getLanguageLabel($this->get($name)) : '';\n\t\t\tcase 'type':\n\t\t\t\t$label = \\App\\Language::translate($this->getTypeValues($this->get($name)), $this->getModule()->getName(true));\n\t\t\t\treturn \\App\\TextParser::textTruncate($label);\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $this->get($name);\n\t}", "public function getName()\n {\n return $this->getValue('name');\n }", "public function getNombreProducto()\n {\n return $this->nombreProducto;\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "public function getItemName();", "function get_name()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_NAME);\r\n }", "private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }", "function Product_lookup_name_by_id($product_id) {\n\t// Create call\n\t$call = new xmlrpcmsg('Product.lookup_name_by_id', array(new xmlrpcval($product_id, \"int\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "public function getColumnName(){\n $sql = 'SELECT * FROM wp_operatore_museale';\n $result = $this->conn->query($sql);\n $column = array();\n $i = 0;\n while($nameColumn = $result->fetch_field()){\n $column[$i] = $nameColumn->name;\n $i++;\n }\n return $column;\n }", "public function getEquipmentName()\n {\n return isset($this->EquipmentName) ? $this->EquipmentName : null;\n }", "public function getEquipmentName()\n {\n return isset($this->EquipmentName) ? $this->EquipmentName : null;\n }", "public function productCategoryName() {\n\t\treturn $this->generator->randomElement( static::$categories );\n\t}", "function GetColVal($col_name) {\n\t\treturn $this->$col_name;\n\t}", "public function getNamedValue(): string {\n return self::$namedValues[$this->value];\n }", "public function getProductId(): string;", "public function get_name() : string\n {\n return $this->additional['name'] ?? '';\n }", "public function getProductNameList()\n {\n $productName = [];\n // get the max of product for displaying\n $number = (int) $this->getRequest()->getParam('number');\n if ($number <= 0) {\n // set the default value\n $number = 5;\n }\n $productList = $this->product->getCollection()->addAttributeToFilter('type_id', array('eq' => 'simple'))->setPageSize($number)->setCurPage(1)->load()->getData();\n foreach ($productList as $product) {\n $productName[] = [\n 'name' => $this->productFactory->create()->load($product['entity_id'])->getName()\n ];\n }\n return $productName;\n }", "function getProductId($product_name)\n\t{\n\t\tglobal $log;\n $log->info(\"in getProductId \".$product_name);\n\t\tglobal $adb;\n\t\tif($product_name != '')\n\t\t{\n\t\t\t$sql = \"select productid from ec_products where productname='\".$product_name.\"'\";\n\t\t\t$result = $adb->query($sql);\n\t\t\t$productid = $adb->query_result($result,0,\"productid\");\n\t\t}\n\t\treturn $productid;\n\t}", "function select_by_nameproduct($name_product= NULL, $slug_product= NULL) {\t\n\t\t$this->db->select('*'); \n\t\t$this->db->from($this->table_name);\n\t\t$this->db->join('ac_brand', 'ac_brand.id_brand = ac_product.id_brand','left');\n\t\t$this->db->where(array('name_product'=>$name_product));\n\t\t$this->db->or_where(array('slug_product'=>$name_product));\n\t\t$query = $this->db->get();\n\t\treturn $query ->row();\n\t}", "public function productName(): string\n{\n return $this->get_productName();\n}", "public function getProperty()\n\t{\n\t\treturn empty($this->property) ? strtolower($this->getName()) : $this->property;\n\t}", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function getConflictingProductTypeName()\n {\n return $this->conflictingProductTypeName;\n }", "public function getShopName()\n {\n return $this->shopName;\n }", "public function getName()\r\n {\r\n $name = $this->properties['transmittable_display_name'] ?? $this->properties['display_name'] ?? '';\r\n return preg_replace('/^\\'(.*)\\'/', '\\1', $name);\r\n }" ]
[ "0.73609793", "0.73025787", "0.69124365", "0.68912", "0.6861022", "0.683174", "0.6813809", "0.66766363", "0.66518664", "0.6434648", "0.6411795", "0.6391148", "0.63107395", "0.63107395", "0.63107395", "0.6301035", "0.6291906", "0.6282099", "0.6253907", "0.62482584", "0.61818254", "0.61161774", "0.6090071", "0.608197", "0.60570997", "0.6056643", "0.60347867", "0.60318315", "0.6022479", "0.6015266", "0.59581834", "0.5953354", "0.5923788", "0.5905796", "0.5891345", "0.58768344", "0.584637", "0.5840809", "0.579696", "0.5768826", "0.5768826", "0.57680905", "0.5741492", "0.5731495", "0.5727654", "0.57256705", "0.5683021", "0.564848", "0.5634513", "0.5627756", "0.56214386", "0.5610494", "0.5609187", "0.5599534", "0.5597828", "0.55923706", "0.5581089", "0.55746263", "0.55724305", "0.5555402", "0.5532307", "0.5519385", "0.55092525", "0.549961", "0.5489569", "0.54881454", "0.5485543", "0.5484124", "0.548009", "0.54704416", "0.54664844", "0.5462239", "0.5462239", "0.5462239", "0.5462239", "0.5462239", "0.5462239", "0.5462239", "0.5462239", "0.5453885", "0.54509735", "0.5449831", "0.5449182", "0.5428609", "0.5425668", "0.5425668", "0.54240865", "0.5421192", "0.54146", "0.54043496", "0.5392174", "0.5389906", "0.5374866", "0.53740686", "0.5371802", "0.53707224", "0.53689504", "0.5364749", "0.5358236", "0.53540516" ]
0.77092487
0
Get the [prod_alt1] column value.
public function getProdAlt1() { return $this->prod_alt1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function setProdAlt1($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt1 !== $v) {\n $this->prod_alt1 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT1] = true;\n }\n\n return $this;\n }", "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function setProdAlt2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt2 !== $v) {\n $this->prod_alt2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true;\n }\n\n return $this;\n }", "public function getAlt()\n {\n return $this->alt;\n }", "public function get_value() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"gtmetrix\";\n $return = $wpdb->get_results( \"SELECT * FROM $table_name ORDER BY id DESC LIMIT 1\" );\n return $return[0];\n }", "public function getProductDefaultValue() {\n //initialize dummy value.. no content header.pure html\n $sql = null;\n $productId = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n SELECT `productId`\n FROM `product`\n WHERE `isActive` = 1\n AND `companyId` = '\" . $this->getCompanyId() . \"'\n AND \t `isDefault` =\t 1\n LIMIT 1\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n SELECT TOP 1 [productId],\n FROM [product]\n WHERE [isActive] = 1\n AND [companyId] = '\" . $this->getCompanyId() . \"'\n AND \t [isDefault] = 1\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n SELECT PRODUCTID AS \\\"productId\\\",\n FROM PRODUCT\n WHERE ISACTIVE = 1\n AND COMPANYID = '\" . $this->getCompanyId() . \"'\n AND \t ISDEFAULT\t =\t 1\n AND \t\t ROWNUM\t =\t 1\";\n } else {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $this->t['databaseNotFoundMessageLabel']));\n exit();\n }\n }\n }\n try {\n $result = $this->q->fast($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n if ($result) {\n $row = $this->q->fetchArray($result);\n $productId = $row['productId'];\n }\n return $productId;\n }", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getPrecio1()\n {\n return $this->precio1;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getProduct_img () {\n\t$preValue = $this->preGetValue(\"product_img\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_img;\n\treturn $data;\n}", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getPointProd1():?int\n {\n return $this->produit1 <= 0 ? 0 : $this->produit1 * 5;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function getExpr1()\n {\n return $this->expr1;\n }", "public function getProdEra()\n {\n return $this->prod_era;\n }", "public function getAltura() \r\n\t{\r\n\t\treturn $this->iAltura;\r\n\t}", "public static function getAltAttribute(int $id = 0){\n // vars\n $output = '';\n $lang = prefix_core_BaseFunctions::getCurrentLang();\n // check if active lang is default or not\n if($lang == SELF::$WPimgAttr_Alt_languages[0]):\n // default language\n $output .= get_post_meta($id, '_wp_attachment_image_alt', TRUE);\n else:\n // alternative text\n $name = SELF::$WPimgAttr_Alt_prefix . $lang;\n $output .= get_post_meta($id, $name, true);\n endif;\n // output\n return $output;\n }", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function getDefaultVariationId()\n {\n return $this->_defaultPriceVariationId;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function product()\n {\n return $this->m_product;\n }", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "public function get_first_variation_image( $retProd ) {\n\n $images = array( 'large' => array(), 'small' => array() );\n\n if ( isset($retProd['Variations'], $retProd['Variations']['TotalVariations'], $retProd['Variations']['Item']) ) {\n $total = (int)$retProd['Variations']['TotalVariations'];\n \n $variations = array();\n if ($total <= 1 || isset($retProd['Variations']['Item']['ASIN'])) { // --fix 2015.03.19\n $variations[] = $retProd['Variations']['Item'];\n } else {\n $variations = (array) $retProd['Variations']['Item'];\n }\n \n // Loop through the variation\n foreach ($variations as $variation_item) {\n \n $images = $this->build_images_data( $variation_item );\n if ( !empty($images['large']) ) {\n return $images;\n }\n } // end foreach\n }\n return $images;\n }", "public function select_one_product($db,$idprod)\n {\n $sql = \"SELECT nombre,marca,talla,imagen,precio,descripcion,idprod FROM products where idprod = '$idprod' \";\n $stmt = $db->ejecutar($sql);\n return $db->listar($stmt);\n }", "private function _getNoteTableRowLabel($tableName,$col,$alt){\n\t\tglobal $TCA;\n\t\t$label = isset($TCA[$tableName]['columns'][$col]['label']) ? $GLOBALS['LANG']->sL( $TCA[$tableName]['columns'][$col]['label']) : $alt;\n\t\tif( empty($label) ){ $label = $alt; }\n\t\treturn $label;\n\t}", "public function getAttr1(){\r\n\t\treturn $this->attr1;\r\n\t}", "public function alt(){\n\t\tif( $this->alt ) {\n\t\t\treturn $this->alt;\n\t\t}//end if\n\n\t\t$this->alt = @file_get_contents( $this->base_dir.'/'.$this->dir . $this->filename . '.alt');\n\n\t\treturn $this->alt;\n\t}", "public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }", "public static function get_one_product_image($productId)\n {\n $db = new Db();\n $sql = \"SELECT image_filename FROM image i , product_image pi WHERE i.image_id = pi.image_id AND pi.product_id= '\".$productId.\"' ORDER BY pi.image_id\";\n $res = $db->select_to_array($sql);\n reset($res);\n return $res[0]['image_filename'];\n }", "public function get_value() {\n\t\t$row = $this->get_row();\n\t\tif ($row) {\n\t\t\treturn current($row);\n\t\t}\n\t}", "function getProdId($product){\r\n require '../../model/dbconnect.php';\r\n $prod = $db->quote($product);\r\n $rows_prod = $db->query(\"SELECT id FROM product WHERE name = $prod\");\r\n if ($rows_prod) {\r\n foreach($rows_prod as $row)\r\n return $row['id'];\r\n }\r\n }", "public function setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "public function product1(){\r\n\t\t$sql =\"SELECT * FROM `products`,`manufactures`,`protypes` WHERE manufactures.manu_ID = products.manu_ID AND protypes.type_ID = products.type_ID\";\r\n\t\t$result = self::$conn->query($sql);\r\n\t\treturn $this->getData($result);\r\n\t}", "public function item_primary_image()\n\t{\n\t\t$product_id = ee()->TMPL->fetch_param('product_id');\n\n\t\t$query = ee()->db\n\t\t\t->select('field_id_32')\n\t\t\t->where('channel_id', 1)\n\t\t\t->where('entry_id', $product_id)\n\t\t\t->get('channel_data');\n\n\t\treturn $query->row('field_id_32');\t\n\t}", "public function prod($prod);", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "public function product() {\n\t\treturn array_product($this->_value);\n\t}", "function column_alt_text( $item ) {\r\n\t\tif ( isset( $item->mla_wp_attachment_image_alt ) ) {\r\n\t\t\tif ( is_array( $item->mla_wp_attachment_image_alt ) ) {\r\n\t\t\t\t$alt_text = $item->mla_wp_attachment_image_alt[0];\r\n\t\t\t} else {\r\n\t\t\t\t$alt_text = $item->mla_wp_attachment_image_alt;\r\n\t\t\t}\r\n\r\n\t\t\treturn sprintf( '<a href=\"%1$s\" title=\"' . __( 'Filter by', 'media-library-assistant' ) . ' &#8220;%2$s&#8221;\">%3$s</a>', esc_url( add_query_arg( array_merge( array(\r\n\t\t\t\t'page' => MLACore::ADMIN_PAGE_SLUG,\r\n\t\t\t\t'mla-metakey' => '_wp_attachment_image_alt',\r\n\t\t\t\t'mla-metavalue' => urlencode( $alt_text ),\r\n\t\t\t\t'heading_suffix' => urlencode( __( 'ALT Text', 'media-library-assistant' ) . ': ' . $alt_text ) \r\n\t\t\t), self::mla_submenu_arguments( false ) ), 'upload.php' ) ), esc_html( $alt_text ), esc_html( $alt_text ) );\r\n\t\t}\r\n\r\n\t\treturn '';\r\n\t}", "public function getBestBadge1()\n\t{\n\t\treturn $this->best_badge_1;\n\t}", "public function setProdAlt4($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt4 !== $v) {\n $this->prod_alt4 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT4] = true;\n }\n\n return $this;\n }", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProdRelatedPa()\n {\n return $this->prod_related_pa;\n }", "public function get_id_product()\n\t{\n\t\treturn $this->id_product;\n\t}", "public function getProdTitle()\n {\n return $this->prod_title;\n }", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "public function getPrice ($key) {\n $query = \"SELECT avg_price\n FROM ea_product\n WHERE id = '$key' \";\n //print(\"$query\");\n foreach($this->dbo->query($query) as $row) {\n $avg_price = stripslashes($row[0]);\n }\n \n return $avg_price;\n }", "protected function getLinkedProductID () {\n $productFilter = Search::getInstance($this->data['attrs']['source_id'])->getFilter('product');\n\n return $productFilter ? $productFilter['value'] : null;\n }", "public function getProdDescription()\n {\n return $this->prod_description;\n }", "public function getVariationValue()\n {\n return $this->variationValue;\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getValue(){\n return $this->value2 ? $this->value2 : $this->value1;\n }", "public function getId_product()\n {\n return $this->id_product;\n }", "public function getValue()\n {\n return 1;\n }", "public function getName_product()\n {\n return $this->name_product;\n }", "public function getOperand1() {}", "public function getProduct(){\r\n return rand(0,1);\r\n }", "public function getProduct_type () {\n\t$preValue = $this->preGetValue(\"product_type\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_type;\n\treturn $data;\n}", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function getProductid() {\n\t\treturn $this->productid;\n\t}", "public function getCategory1()\n {\n if (array_key_exists(\"category1\", $this->_propDict)) {\n return $this->_propDict[\"category1\"];\n } else {\n return null;\n }\n }", "public function getCustomPriceId($product_variety_id, $multiplicator) {\n\t\t\n\t\tif (!is_numeric($product_variety_id)) return false;\n\t\tif (!is_numeric($multiplicator)) return false;\n\t\t\n\t\trequire_once('models/ecommerce/ecommerce_price.php');\n\t\t$Price = new ecommerce_price();\n\t\t\n\t\t$price_id = $Price->getCustomPriceIdByMultiplicator($product_variety_id, $multiplicator);\n\t\t\n\t\tif (is_numeric($price_id)) return $price_id;\n\t\telse return false;\t\n\t}", "public function getAddress1()\n {\n return $this->getValue('nb_icontact_prospect_address_1');\n }", "public function getShowInProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product');\n }", "public function getProduct()\n {\n return isset($this->product) ? $this->product : null;\n }", "public function getK1()\n {\n return $this->k1;\n }", "public function getShowInProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getAlt(): string\n {\n return htmlspecialchars($this->getDescription(), ENT_QUOTES);\n }", "public function getPointProd2():?int\n {\n //Verifier si au moins un produit 1 est vendu afin de dettminer \n //le nombre de point du produit 2\n\n return $this->produit1<=0 ? 0 : ($this->produit2<=0 ? 0 : $this->produit2 * 5);\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getColImgAttribute() {\n if ( $already_fetched = $this->getAttributeFromArray( 'col_img' ) ) {\n return $already_fetched;\n }\n if ( $image = $this->entry->augmentedValue( 'col_img' )->value() ) {\n $this->setAttribute( 'col_img', $image );\n\n return $image;\n }\n\n return null;\n\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function get_product()\n {\n return $this->_product;\n }", "public function getSingleRowValue($table, $column, $postID): string {\n global $wpdb;\n $table = $wpdb->prefix . $table;\n $data = $wpdb->get_var(\"SELECT {$column} FROM {$table} WHERE post_id = {$postID};\");\n if ($data) {\n return $data;\n }\n return '';\n }", "function tep_get_products_image($product_id) {\n\tglobal $languages_id;\n\t$product_query = tep_db_query(\"select products_image from \" . TABLE_PRODUCTS . \" where products_id = '\" . (int)$product_id . \"'\");\n\t$product = tep_db_fetch_array($product_query);\n\treturn $product['products_image'];\n}", "public function getProduct()\r\n {\r\n return $this->_params['product'];\r\n }", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function get($key, $alt = null)\n {\n if (isset($_SESSION[$this->name][$key])) {\n return $_SESSION[$this->name][$key];\n }\n\n return $alt;\n }", "protected function LiveRawTableValue()\n {\n // if (! isset(self::$temp_raw_table_value[$this->OrderID])) {\n $currentRate = $this->LiveCurrentRate();\n $currentCountry = $this->LiveCountry();\n $itemsTax = $this->workoutOrderItemsTax($currentRate, $currentCountry);\n $modifiersTax = $this->workoutModifiersTax($currentRate, $currentCountry);\n return $itemsTax + $modifiersTax;\n }", "function getProductCode()\n {\n return $this->productCode;\n }", "public function getItemaPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(4, $this->_result)) return (string) $this->_result[4];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getItemaPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getItemaPt', __LINE__, __FILE__);\n\t}", "public function getItembPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(7, $this->_result)) return (string) $this->_result[7];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getItembPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getItembPt', __LINE__, __FILE__);\n\t}", "function get_army_value()\n\t{\n\t\t$result = pg_query(\"SELECT sum(point_cost) as point_total FROM warhammer.user_army\");\n\t\t$result_a = pg_fetch_array($result,0,PGSQL_ASSOC);\n\t\treturn $result_a[\"point_total\"];\n\t}", "public function mainImage():string\n {\n return ($this->image_1) ? url( $this->image_1 ) : url( env('NO_IMAGE_PRODUCT_DEFAULT','') );\n }", "public function sqlValue()\n {\n return ($this->arrConfig['operator'] == 'like' ? ('%' . $this->arrConfig['value'] . '%') : $this->arrConfig['value']);\n }", "function column_price($item){\n if ( $item['post_id'] && WPLA_ProductWrapper::hasVariations( $item['post_id'] ) ) {\n\n $variations = $this->getProductVariations( $item['post_id'] );\n if ( ! is_array($variations) || ! sizeof($variations) ) return '';\n\n $price_min = PHP_INT_MAX;\n $price_max = 0;\n foreach ($variations as $var) {\n $price = $var['price'];\n if ( $price > $price_max ) $price_max = $price;\n if ( $price < $price_min ) $price_min = $price;\n }\n\n if ( $price_min == $price_max ) {\n return $this->number_format( $price_min, 2 );\n } else {\n return $this->number_format( $price_min, 2 ) . ' - ' . $this->number_format( $price_max, 2 );\n }\n } // parent variation\n\n\n // get prices\n $regular_price = $this->getPriceForItem( $item );\n $sale_price = $this->getSalePriceForItem( $item );\n\n $profile = $this->getProfile( $item['profile_id'] );\n\n // check for profile prices (standard_price or price) and run the prices through WPLA_FeedDataBuilder::parseProfileShortcode()\n // to substitute shortcodes with actual values #20263\n if ( !empty( $profile->fields['standard_price'] ) ) {\n $price = WPLA_FeedDataBuilder::parseProfileShortcode( $profile->fields['standard_price'], $profile->fields['standard_price'], $item, wc_get_product( $item['post_id'] ), $item['post_id'], $profile );\n return $this->number_format( $price, 2 );\n } elseif ( !empty( $profile->fields['price'] ) ) {\n $price = WPLA_FeedDataBuilder::parseProfileShortcode( $profile->fields['price'], $profile->fields['price'], $item, wc_get_product( $item['post_id'] ), $item['post_id'], $profile );\n return $this->number_format( $price, 2 );\n }\n\n // no sale price\n if ( ! $sale_price )\n return $this->number_format( $regular_price, 2 );\n\n // show sale price\n return sprintf('<span style=\"%1$s\">%2$s</span> <br><span style=\"\">%3$s</span>',\n /*$1%s*/ 'text-decoration: line-through;color:silver',\n /*$2%s*/ $this->number_format( $regular_price, 2 ),\n /*$3%s*/ $this->number_format( $sale_price, 2 )\n ); \n\n }", "public function getProdScale()\n {\n return $this->prod_scale;\n }", "public function getProduct() {\n return $this->_registry->registry ( 'current_product' );\n }", "public function getProduct_desc () {\n\t$preValue = $this->preGetValue(\"product_desc\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_desc\")->preGetData($this);\n\treturn $data;\n}", "function prodname()\r\n {\r\n //left join oc_product as op on opd.product_id=op.product_id \");\r\n\r\n //return $query->rows; \r\n \r\n $query = $this->db->query(\"SELECT product_id,model,sku FROM `oc_product` WHERE `status`='1'\");\r\n \r\n return $query->rows;\r\n }" ]
[ "0.693212", "0.6838282", "0.64445156", "0.6274969", "0.56699014", "0.55439097", "0.55326116", "0.54882497", "0.5472325", "0.5453856", "0.53777385", "0.5346117", "0.5280656", "0.5278605", "0.52767426", "0.5213206", "0.51875067", "0.51318526", "0.51313627", "0.5121668", "0.51138204", "0.5079701", "0.5071473", "0.50710446", "0.5024749", "0.5017806", "0.5007659", "0.5007334", "0.5005676", "0.50052905", "0.5005105", "0.5003508", "0.49748296", "0.4970251", "0.49240804", "0.49184647", "0.4914226", "0.49088398", "0.48979938", "0.48749334", "0.48601243", "0.48568636", "0.48512542", "0.48506773", "0.4826523", "0.48199102", "0.4815869", "0.48060766", "0.4789845", "0.47853702", "0.47853702", "0.4785324", "0.47818723", "0.4759943", "0.47548753", "0.47545344", "0.4746038", "0.47365925", "0.4735414", "0.4731781", "0.47294322", "0.47266126", "0.47253585", "0.4712408", "0.46990895", "0.4698931", "0.4680717", "0.46788087", "0.46788087", "0.46734422", "0.467007", "0.46687746", "0.46684578", "0.465116", "0.46481752", "0.46438944", "0.4642968", "0.46422", "0.4641598", "0.46360868", "0.46354255", "0.46293265", "0.4625574", "0.46208367", "0.46199554", "0.46189126", "0.4616484", "0.4611719", "0.46106818", "0.4610526", "0.46096122", "0.46094793", "0.46094695", "0.4609284", "0.4609205", "0.4608417", "0.46044672", "0.46040124", "0.4603346", "0.4598573" ]
0.800319
0
Get the [prod_alt2] column value.
public function getProdAlt2() { return $this->prod_alt2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function setProdAlt2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt2 !== $v) {\n $this->prod_alt2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true;\n }\n\n return $this;\n }", "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "public function getValue2(){\n return $this->_value2;\n }", "public function setProdAlt1($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt1 !== $v) {\n $this->prod_alt1 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT1] = true;\n }\n\n return $this;\n }", "public function getExpr2()\n {\n return $this->expr2;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getPointProd2():?int\n {\n //Verifier si au moins un produit 1 est vendu afin de dettminer \n //le nombre de point du produit 2\n\n return $this->produit1<=0 ? 0 : ($this->produit2<=0 ? 0 : $this->produit2 * 5);\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "public function getAlt()\n {\n return $this->alt;\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getAttr2(){\r\n\t\treturn $this->attr2;\r\n\t}", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getP2() {\n return $this->p2;\n }", "public function get_value() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"gtmetrix\";\n $return = $wpdb->get_results( \"SELECT * FROM $table_name ORDER BY id DESC LIMIT 1\" );\n return $return[0];\n }", "public function getBestBadge2()\n\t{\n\t\treturn $this->best_badge_2;\n\t}", "public function getProduct_img () {\n\t$preValue = $this->preGetValue(\"product_img\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_img;\n\treturn $data;\n}", "public function getK2()\n {\n return $this->k2;\n }", "public function getAddress2()\n {\n return $this->getValue('nb_icontact_prospect_address_2');\n }", "public function getC2()\r\n {\r\n return $this->C2;\r\n }", "public function getAltura() \r\n\t{\r\n\t\treturn $this->iAltura;\r\n\t}", "public function getProdDescription()\n {\n return $this->prod_description;\n }", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function getID2()\n\t{\n\t\treturn $this->id2;\n\t}", "public function getCategory2()\n {\n if (array_key_exists(\"category2\", $this->_propDict)) {\n return $this->_propDict[\"category2\"];\n } else {\n return null;\n }\n }", "private function two() {\n $position1 = $this->inputarray[$this->position+1];\n $position2 = $this->inputarray[$this->position+2];\n $content1 = $this->inputarray[$position1];\n $content2 = $this->inputarray[$position2];\n $product = $content1 * $content2;\n return $product;\n }", "public function getProdEra()\n {\n return $this->prod_era;\n }", "public function product()\n {\n return $this->m_product;\n }", "public function getAlpha2Code()\n {\n return $this->alpha2Code;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getProductDefaultValue() {\n //initialize dummy value.. no content header.pure html\n $sql = null;\n $productId = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n SELECT `productId`\n FROM `product`\n WHERE `isActive` = 1\n AND `companyId` = '\" . $this->getCompanyId() . \"'\n AND \t `isDefault` =\t 1\n LIMIT 1\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n SELECT TOP 1 [productId],\n FROM [product]\n WHERE [isActive] = 1\n AND [companyId] = '\" . $this->getCompanyId() . \"'\n AND \t [isDefault] = 1\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n SELECT PRODUCTID AS \\\"productId\\\",\n FROM PRODUCT\n WHERE ISACTIVE = 1\n AND COMPANYID = '\" . $this->getCompanyId() . \"'\n AND \t ISDEFAULT\t =\t 1\n AND \t\t ROWNUM\t =\t 1\";\n } else {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $this->t['databaseNotFoundMessageLabel']));\n exit();\n }\n }\n }\n try {\n $result = $this->q->fast($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n if ($result) {\n $row = $this->q->fetchArray($result);\n $productId = $row['productId'];\n }\n return $productId;\n }", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function getOperand2() {}", "public function getMDB2DataValue()\n\t{\n\t\tif($this->mdb2DataValue != '')\n\t\t{\n\t\t\treturn $this->mdb2DataValue;\n\t\t}\n\t}", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "public function getProdHeight()\n {\n return $this->prod_height;\n }", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function getValue(){\n return $this->value2 ? $this->value2 : $this->value1;\n }", "public function getPriceProduct()\n {\n return $this->priceProduct;\n }", "public static function getAltAttribute(int $id = 0){\n // vars\n $output = '';\n $lang = prefix_core_BaseFunctions::getCurrentLang();\n // check if active lang is default or not\n if($lang == SELF::$WPimgAttr_Alt_languages[0]):\n // default language\n $output .= get_post_meta($id, '_wp_attachment_image_alt', TRUE);\n else:\n // alternative text\n $name = SELF::$WPimgAttr_Alt_prefix . $lang;\n $output .= get_post_meta($id, $name, true);\n endif;\n // output\n return $output;\n }", "public function getApellido2()\n {\n return $this->apellido2;\n }", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "public function product() {\n\t\treturn array_product($this->_value);\n\t}", "public function getProduct_desc () {\n\t$preValue = $this->preGetValue(\"product_desc\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_desc\")->preGetData($this);\n\treturn $data;\n}", "public function getShowInProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getValFromT2()\n {\n return $this->test02->parameter;\n }", "protected function getLinkedProductID () {\n $productFilter = Search::getInstance($this->data['attrs']['source_id'])->getFilter('product');\n\n return $productFilter ? $productFilter['value'] : null;\n }", "public function setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "public function get_max_product_price()\n\t{\n\t\t$this->db->select('MAX(product_selling_price) AS price')->from('product')->where(\"product_status = 1\");\n\t\t$query = $this->db->get();\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result->price;\n\t}", "public function prod($prod);", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getSpCode2()\n {\n return $this->sp_code2;\n }", "function column_price($item){\n if ( $item['post_id'] && WPLA_ProductWrapper::hasVariations( $item['post_id'] ) ) {\n\n $variations = $this->getProductVariations( $item['post_id'] );\n if ( ! is_array($variations) || ! sizeof($variations) ) return '';\n\n $price_min = PHP_INT_MAX;\n $price_max = 0;\n foreach ($variations as $var) {\n $price = $var['price'];\n if ( $price > $price_max ) $price_max = $price;\n if ( $price < $price_min ) $price_min = $price;\n }\n\n if ( $price_min == $price_max ) {\n return $this->number_format( $price_min, 2 );\n } else {\n return $this->number_format( $price_min, 2 ) . ' - ' . $this->number_format( $price_max, 2 );\n }\n } // parent variation\n\n\n // get prices\n $regular_price = $this->getPriceForItem( $item );\n $sale_price = $this->getSalePriceForItem( $item );\n\n $profile = $this->getProfile( $item['profile_id'] );\n\n // check for profile prices (standard_price or price) and run the prices through WPLA_FeedDataBuilder::parseProfileShortcode()\n // to substitute shortcodes with actual values #20263\n if ( !empty( $profile->fields['standard_price'] ) ) {\n $price = WPLA_FeedDataBuilder::parseProfileShortcode( $profile->fields['standard_price'], $profile->fields['standard_price'], $item, wc_get_product( $item['post_id'] ), $item['post_id'], $profile );\n return $this->number_format( $price, 2 );\n } elseif ( !empty( $profile->fields['price'] ) ) {\n $price = WPLA_FeedDataBuilder::parseProfileShortcode( $profile->fields['price'], $profile->fields['price'], $item, wc_get_product( $item['post_id'] ), $item['post_id'], $profile );\n return $this->number_format( $price, 2 );\n }\n\n // no sale price\n if ( ! $sale_price )\n return $this->number_format( $regular_price, 2 );\n\n // show sale price\n return sprintf('<span style=\"%1$s\">%2$s</span> <br><span style=\"\">%3$s</span>',\n /*$1%s*/ 'text-decoration: line-through;color:silver',\n /*$2%s*/ $this->number_format( $regular_price, 2 ),\n /*$3%s*/ $this->number_format( $sale_price, 2 )\n ); \n\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getPlate2()\n {\n return isset($this->plate2) ? $this->plate2 : null;\n }", "public function getType2()\n {\n return $this->type2;\n }", "public function getEditorial2()\n\t{\n\n\t\treturn $this->editorial2;\n\t}", "public function getProductDesc()\n {\n return isset($this->productDesc) ? $this->productDesc : null;\n }", "public function _getLotNo2() {\n\t\treturn $this->_lotNo2;\n\t}", "public function getProduct()\n {\n return isset($this->product) ? $this->product : null;\n }", "public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }", "public function getAuth2()\n {\n return $this->getProperty()->auth2;\n }", "public function getLine2()\n {\n return (string) $this->json()->line2;\n }", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function getShntkey2()\n {\n return $this->shntkey2;\n }", "public function getId2()\n {\n return $this->id2;\n }", "public function get_id_product()\n\t{\n\t\treturn $this->id_product;\n\t}", "public function getOpcion2() {\n return $this->opcion2;\n }", "public function getProductId(): string\n {\n return $this->productId;\n }", "public function getEmpAdresse2() {\n return $this->empAdresse2;\n }", "public function get_product()\n {\n return $this->_product;\n }", "public function getProductPrice() {\n //return the value product price\n return $this->ProductPrice;\n }", "function getProductCode()\n {\n return $this->productCode;\n }", "public function getProduct()\r\n {\r\n return $this->product;\r\n }", "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getMtDeductionAcompte2(): ?float {\n return $this->mtDeductionAcompte2;\n }", "public function getProductPrice(){\n return $this->product_price;\n }", "public function getShowInProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product');\n }", "public function getProduct_type () {\n\t$preValue = $this->preGetValue(\"product_type\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_type;\n\treturn $data;\n}", "public function getCodeArticle2() {\n return $this->codeArticle2;\n }", "public function getProductsMaxPrice()\n {\n return $this->filterData['max'] ?? '';\n }", "public function getPointProd1():?int\n {\n return $this->produit1 <= 0 ? 0 : $this->produit1 * 5;\n }", "public function get_alpha2_code(): string { return $this->alpha2_code; }", "static function altValue($key_arr, &$arr1, &$arr2)\n\t{\n\t\tif ($tmp = self::valByArrKey($arr1, $key_arr))\n\t\t\treturn $tmp;\n\n\t\treturn self::valByArrKey($arr2, $key_arr);\n\t}", "public function getId_product()\n {\n return $this->id_product;\n }", "static public function ctrCalcularIva2(){\r\n\t\t$tabla = \"banco6278\";\r\n\r\n\t\t$respuesta = ModeloBanco6278Diario::mdlCalcularIva2($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}" ]
[ "0.7162106", "0.6817994", "0.6595363", "0.62658614", "0.6155384", "0.57799315", "0.5756571", "0.5624732", "0.55749595", "0.55123776", "0.54806703", "0.53976256", "0.53962004", "0.5386562", "0.5372085", "0.53507113", "0.5317736", "0.5285686", "0.52729803", "0.52345175", "0.5191411", "0.51797396", "0.5165985", "0.5156452", "0.51527876", "0.51478785", "0.5120368", "0.5113771", "0.51043165", "0.510338", "0.5066954", "0.50635135", "0.5041099", "0.5035122", "0.50085604", "0.5002918", "0.49804223", "0.4966055", "0.4952729", "0.49466702", "0.49459392", "0.49432108", "0.49432108", "0.49338877", "0.49112776", "0.49034712", "0.48868123", "0.48851892", "0.48807892", "0.48758134", "0.48723724", "0.48696205", "0.4868211", "0.48679072", "0.4865047", "0.48570058", "0.4848238", "0.48402745", "0.48394895", "0.48204148", "0.48068008", "0.48029003", "0.4799802", "0.47992545", "0.4795695", "0.4792013", "0.47890896", "0.4786237", "0.47802982", "0.4779732", "0.477728", "0.47756448", "0.47725627", "0.47681573", "0.47644484", "0.4764163", "0.47618812", "0.47538096", "0.47510052", "0.4745653", "0.4743742", "0.47426993", "0.47425807", "0.47390297", "0.47390297", "0.47390297", "0.47390297", "0.47390297", "0.47390297", "0.47377768", "0.4737501", "0.47224915", "0.47198942", "0.47188023", "0.4718344", "0.47167942", "0.47140104", "0.47123566", "0.47056684", "0.47025374" ]
0.7935492
0
Get the [prod_alt3] column value.
public function getProdAlt3() { return $this->prod_alt3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function getExpr3()\n {\n return $this->expr3;\n }", "public function getAttr3(){\r\n\t\treturn $this->attr3;\r\n\t}", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "public function getProdRelatedM3()\n {\n return $this->prod_related_m3;\n }", "public function getPointProd3():?int\n {\n //Recuperation de la partie entière de la division du nombre\n //de produit3 par 2\n $paire = (int)($this->produit3 / 2);\n return $this->produit3 <= 0 ? 0 : $paire * 15;\n }", "public function get_value() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"gtmetrix\";\n $return = $wpdb->get_results( \"SELECT * FROM $table_name ORDER BY id DESC LIMIT 1\" );\n return $return[0];\n }", "protected static function iso3(): mixed\n\t{\n\t\treturn self::$query->iso3;\n\t}", "public function getAlt()\n {\n return $this->alt;\n }", "public function getCategory3()\n {\n if (array_key_exists(\"category3\", $this->_propDict)) {\n return $this->_propDict[\"category3\"];\n } else {\n return null;\n }\n }", "function getProductValue($ms3Oid, $featureName, $raw = false) {\n\t\t$this->dbgstart();\n\t\t$FeatureId = $this->calc->dbutils->getFeatureIdByName($featureName);\n\t\t$pid = $this->calc->getProdIdForMs3Oid($ms3Oid);\n\t\t$ret = $this->calc->dbutils->getProductValue($pid, $FeatureId, $raw);\n\t\t$this->dbgend();\n\t\treturn $ret;\n\t}", "public function getC3()\r\n {\r\n return $this->C3;\r\n }", "public function setProdAlt1($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt1 !== $v) {\n $this->prod_alt1 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT1] = true;\n }\n\n return $this;\n }", "public function getAltura() \r\n\t{\r\n\t\treturn $this->iAltura;\r\n\t}", "public function getEtblAdresse3() {\n return $this->etblAdresse3;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getCmp3()\n {\n return $this->cmp3;\n }", "public function getThirdVat()\n {\n return isset($this->thirdVat) ? $this->thirdVat : null;\n }", "public function getThird()\n {\n return isset($this->third) ? $this->third : null;\n }", "public function getCodeArticle3() {\n return $this->codeArticle3;\n }", "public function getAlpha3BCode()\n {\n return $this->alpha3BCode;\n }", "public static function getAltAttribute(int $id = 0){\n // vars\n $output = '';\n $lang = prefix_core_BaseFunctions::getCurrentLang();\n // check if active lang is default or not\n if($lang == SELF::$WPimgAttr_Alt_languages[0]):\n // default language\n $output .= get_post_meta($id, '_wp_attachment_image_alt', TRUE);\n else:\n // alternative text\n $name = SELF::$WPimgAttr_Alt_prefix . $lang;\n $output .= get_post_meta($id, $name, true);\n endif;\n // output\n return $output;\n }", "public function getAlpha3TCode()\n {\n return $this->alpha3TCode;\n }", "public function getCodeRef3() {\n return $this->codeRef3;\n }", "public function getVolPondasiM3()\n {\n return $this->vol_pondasi_m3;\n }", "public function setProdAlt2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt2 !== $v) {\n $this->prod_alt2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true;\n }\n\n return $this;\n }", "public function _getLotNo3() {\n\t\treturn $this->_lotNo3;\n\t}", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function getSp3()\n {\n return $this->sp3;\n }", "public function getProductDefaultValue() {\n //initialize dummy value.. no content header.pure html\n $sql = null;\n $productId = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n SELECT `productId`\n FROM `product`\n WHERE `isActive` = 1\n AND `companyId` = '\" . $this->getCompanyId() . \"'\n AND \t `isDefault` =\t 1\n LIMIT 1\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n SELECT TOP 1 [productId],\n FROM [product]\n WHERE [isActive] = 1\n AND [companyId] = '\" . $this->getCompanyId() . \"'\n AND \t [isDefault] = 1\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n SELECT PRODUCTID AS \\\"productId\\\",\n FROM PRODUCT\n WHERE ISACTIVE = 1\n AND COMPANYID = '\" . $this->getCompanyId() . \"'\n AND \t ISDEFAULT\t =\t 1\n AND \t\t ROWNUM\t =\t 1\";\n } else {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $this->t['databaseNotFoundMessageLabel']));\n exit();\n }\n }\n }\n try {\n $result = $this->q->fast($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n if ($result) {\n $row = $this->q->fetchArray($result);\n $productId = $row['productId'];\n }\n return $productId;\n }", "public function setProdAlt4($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt4 !== $v) {\n $this->prod_alt4 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT4] = true;\n }\n\n return $this;\n }", "public function getProduct_img () {\n\t$preValue = $this->preGetValue(\"product_img\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_img;\n\treturn $data;\n}", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getThird()\n\t{\t\treturn $this->third;\n\t}", "static public function ctrCalcularIva3(){\r\n\t\t$tabla = \"banco6278\";\r\n\r\n\t\t$respuesta = ModeloBanco6278Diario::mdlCalcularIva3($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}", "public function getSp3disp()\n {\n return $this->sp3disp;\n }", "function getid3()\n\t{\n\t\tif ($this->investigated)\n\t\t{\n\t\t\tif ($this->id3 == false)\n\t\t\t\t$this->id3 = gen_file_info_sid($this->origrow);\n\t\t}\n\t\treturn $this->id3;\n\t}", "public function getOpcion3() {\n return $this->opcion3;\n }", "public function getVariationValue()\n {\n return $this->variationValue;\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getEditorial3()\n\t{\n\n\t\treturn $this->editorial3;\n\t}", "public function get3PT() {\n\t\t\treturn \"<p>3PT Pct: \".$this->pt.\"</p>\";\n\t\t}", "public function get_game_three_image () {\n\t\treturn get_field('field_5b4770892c38a', $this->get_id());\n\t}", "public function getGcId3()\n {\n return $this->gc_id_3;\n }", "public function getPosCur3()\n {\n return $this->pos_cur3;\n }", "function wp_store_loop_columns() {\r\n\t\t\tif(get_theme_mod('wp_store_woocommerce_setting_product_rows') && get_theme_mod('wp_store_woocommerce_setting_product_rows')>0){\r\n\t\t\t\t$xr = get_theme_mod('wp_store_woocommerce_setting_product_rows');\r\n\t\t\t} else {\r\n\t\t\t\t$xr = 3;\r\n\t\t\t}\r\n\t\t\treturn intval($xr); \r\n\t\t}", "public function getVolKudakudaM3()\n {\n return $this->vol_kudakuda_m3;\n }", "public function getRevenueThirdConversion()\n {\n $sumAmount = Mage::getModel('abandonment/orderflag')->getResource()\n ->getSumAmountThirdReminderConvertedCarts($this->_getFilterStartingPeriod(), $this->_getFilterEndingPeriod());\n\n return $sumAmount;\n }", "static public function ctrCalcularIva3(){\r\n\t\t$tabla = \"banco1219\";\r\n\r\n\t\t$respuesta = ModeloBanco1219Diario::mdlCalcularIva3($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getLine3()\n {\n return (string) $this->json()->line3;\n }", "public function getM3()\n {\n return $this->m3;\n }", "static public function ctrCalcularIva3(){\r\n\t\t$tabla = \"banco0840\";\r\n\r\n\t\t$respuesta = ModeloBanco0840Diario::mdlCalcularIva3($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "function column_alt_text( $item ) {\r\n\t\tif ( isset( $item->mla_wp_attachment_image_alt ) ) {\r\n\t\t\tif ( is_array( $item->mla_wp_attachment_image_alt ) ) {\r\n\t\t\t\t$alt_text = $item->mla_wp_attachment_image_alt[0];\r\n\t\t\t} else {\r\n\t\t\t\t$alt_text = $item->mla_wp_attachment_image_alt;\r\n\t\t\t}\r\n\r\n\t\t\treturn sprintf( '<a href=\"%1$s\" title=\"' . __( 'Filter by', 'media-library-assistant' ) . ' &#8220;%2$s&#8221;\">%3$s</a>', esc_url( add_query_arg( array_merge( array(\r\n\t\t\t\t'page' => MLACore::ADMIN_PAGE_SLUG,\r\n\t\t\t\t'mla-metakey' => '_wp_attachment_image_alt',\r\n\t\t\t\t'mla-metavalue' => urlencode( $alt_text ),\r\n\t\t\t\t'heading_suffix' => urlencode( __( 'ALT Text', 'media-library-assistant' ) . ': ' . $alt_text ) \r\n\t\t\t), self::mla_submenu_arguments( false ) ), 'upload.php' ) ), esc_html( $alt_text ), esc_html( $alt_text ) );\r\n\t\t}\r\n\r\n\t\treturn '';\r\n\t}", "public function getProdEra()\n {\n return $this->prod_era;\n }", "static public function ctrCalcularIva3Importacion(){\r\n\t\t$tabla = \"banco6278\";\r\n\r\n\t\t$respuesta = ModeloBanco6278Diario::mdlCalcularIva3Importacion($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}", "public function getApplicantReferenceThree()\n {\n return $this->getProperty('applicant_reference_three');\n }", "private function _getNoteTableRowLabel($tableName,$col,$alt){\n\t\tglobal $TCA;\n\t\t$label = isset($TCA[$tableName]['columns'][$col]['label']) ? $GLOBALS['LANG']->sL( $TCA[$tableName]['columns'][$col]['label']) : $alt;\n\t\tif( empty($label) ){ $label = $alt; }\n\t\treturn $label;\n\t}", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "function column_price($item){\n if ( $item['post_id'] && WPLA_ProductWrapper::hasVariations( $item['post_id'] ) ) {\n\n $variations = $this->getProductVariations( $item['post_id'] );\n if ( ! is_array($variations) || ! sizeof($variations) ) return '';\n\n $price_min = PHP_INT_MAX;\n $price_max = 0;\n foreach ($variations as $var) {\n $price = $var['price'];\n if ( $price > $price_max ) $price_max = $price;\n if ( $price < $price_min ) $price_min = $price;\n }\n\n if ( $price_min == $price_max ) {\n return $this->number_format( $price_min, 2 );\n } else {\n return $this->number_format( $price_min, 2 ) . ' - ' . $this->number_format( $price_max, 2 );\n }\n } // parent variation\n\n\n // get prices\n $regular_price = $this->getPriceForItem( $item );\n $sale_price = $this->getSalePriceForItem( $item );\n\n $profile = $this->getProfile( $item['profile_id'] );\n\n // check for profile prices (standard_price or price) and run the prices through WPLA_FeedDataBuilder::parseProfileShortcode()\n // to substitute shortcodes with actual values #20263\n if ( !empty( $profile->fields['standard_price'] ) ) {\n $price = WPLA_FeedDataBuilder::parseProfileShortcode( $profile->fields['standard_price'], $profile->fields['standard_price'], $item, wc_get_product( $item['post_id'] ), $item['post_id'], $profile );\n return $this->number_format( $price, 2 );\n } elseif ( !empty( $profile->fields['price'] ) ) {\n $price = WPLA_FeedDataBuilder::parseProfileShortcode( $profile->fields['price'], $profile->fields['price'], $item, wc_get_product( $item['post_id'] ), $item['post_id'], $profile );\n return $this->number_format( $price, 2 );\n }\n\n // no sale price\n if ( ! $sale_price )\n return $this->number_format( $regular_price, 2 );\n\n // show sale price\n return sprintf('<span style=\"%1$s\">%2$s</span> <br><span style=\"\">%3$s</span>',\n /*$1%s*/ 'text-decoration: line-through;color:silver',\n /*$2%s*/ $this->number_format( $regular_price, 2 ),\n /*$3%s*/ $this->number_format( $sale_price, 2 )\n ); \n\n }", "public function alt(){\n\t\tif( $this->alt ) {\n\t\t\treturn $this->alt;\n\t\t}//end if\n\n\t\t$this->alt = @file_get_contents( $this->base_dir.'/'.$this->dir . $this->filename . '.alt');\n\n\t\treturn $this->alt;\n\t}", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "public function get_cat_three()\n {\n $select = $this->db->get('category_three');\n $cat_three = $select->result();\n return $cat_three;\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function product()\n {\n return $this->m_product;\n }", "function get_army_value()\n\t{\n\t\t$result = pg_query(\"SELECT sum(point_cost) as point_total FROM warhammer.user_army\");\n\t\t$result_a = pg_fetch_array($result,0,PGSQL_ASSOC);\n\t\treturn $result_a[\"point_total\"];\n\t}", "public function getDefaultVariationId()\n {\n return $this->_defaultPriceVariationId;\n }", "public function getProduct_category () {\n\t$preValue = $this->preGetValue(\"product_category\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_category\")->preGetData($this);\n\treturn $data;\n}", "public function getCustomPriceId($product_variety_id, $multiplicator) {\n\t\t\n\t\tif (!is_numeric($product_variety_id)) return false;\n\t\tif (!is_numeric($multiplicator)) return false;\n\t\t\n\t\trequire_once('models/ecommerce/ecommerce_price.php');\n\t\t$Price = new ecommerce_price();\n\t\t\n\t\t$price_id = $Price->getCustomPriceIdByMultiplicator($product_variety_id, $multiplicator);\n\t\t\n\t\tif (is_numeric($price_id)) return $price_id;\n\t\telse return false;\t\n\t}", "public function getCodeRef3(): ?string {\n return $this->codeRef3;\n }", "public function getProdHeight()\n {\n return $this->prod_height;\n }", "public function get_value() {\n\t\t$row = $this->get_row();\n\t\tif ($row) {\n\t\t\treturn current($row);\n\t\t}\n\t}", "static public function ctrCalcularIva3Importacion(){\r\n\t\t$tabla = \"banco0840\";\r\n\r\n\t\t$respuesta = ModeloBanco0840Diario::mdlCalcularIva3Importacion($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "public function getColImgAttribute() {\n if ( $already_fetched = $this->getAttributeFromArray( 'col_img' ) ) {\n return $already_fetched;\n }\n if ( $image = $this->entry->augmentedValue( 'col_img' )->value() ) {\n $this->setAttribute( 'col_img', $image );\n\n return $image;\n }\n\n return null;\n\n }", "public function getCcmp3()\n {\n return $this->ccmp3;\n }", "public function getThirdName()\n {\n return isset($this->thirdName) ? $this->thirdName : null;\n }", "public function getRemiseLigne3(): ?float {\n return $this->remiseLigne3;\n }", "public function getVariationKey()\n {\n return $this->variationKey;\n }", "protected function LiveRawTableValue()\n {\n // if (! isset(self::$temp_raw_table_value[$this->OrderID])) {\n $currentRate = $this->LiveCurrentRate();\n $currentCountry = $this->LiveCountry();\n $itemsTax = $this->workoutOrderItemsTax($currentRate, $currentCountry);\n $modifiersTax = $this->workoutModifiersTax($currentRate, $currentCountry);\n return $itemsTax + $modifiersTax;\n }", "public function magic3() { return $this->_m_magic3; }", "public function getAverageRevenueThirdConversion()\n {\n $average = 0;\n $resource = Mage::getModel('abandonment/orderflag')->getResource();\n\n $nbConvertedCarts= $resource->getNbThirdReminderConvertedCarts($this->_getFilterStartingPeriod(), $this->_getFilterEndingPeriod());\n if ($nbConvertedCarts) {\n $total = $resource->getSumAmountThirdReminderConvertedCarts($this->_getFilterStartingPeriod(), $this->_getFilterEndingPeriod());\n $average = $total / $nbConvertedCarts;\n }\n\n return $average;\n }", "static public function ctrCalcularIva3Importacion(){\r\n\t\t$tabla = \"banco1219\";\r\n\r\n\t\t$respuesta = ModeloBanco1219Diario::mdlCalcularIva3Importacion($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}", "public function getValue() {\n\t\t$db = Loader::db();\n\t\t$value = $db->GetOne('select value from atDefault where avID = ?', array($this->getAttributeValueID()));\n\t\t\n\t\t$jsonHelper = Loader::helper('json');\n\t\treturn $jsonHelper->decode($value);\n\t}", "function iti_get_image_alt_from_url( $url = '' ) {\n\tglobal $wpdb;\n\n\t$url = esc_url( $url );\n\n\t/** @noinspection PhpUndefinedMethodInspection */\n\t$attachment = $wpdb->get_col( $wpdb->prepare( \"SELECT ID FROM $wpdb->posts WHERE guid='%s';\", $url ) );\n\n\t$post_id = isset( $attachment[0] ) ? $attachment[0] : 0;\n\t$alt = get_post_meta( absint( $post_id ), '_wp_attachment_image_alt', true );\n\n\treturn $alt;\n}", "static public function ctrCalcularIsr3(){\r\n\t\t$tabla = \"banco6278\";\r\n\r\n\t\t$respuesta = ModeloBanco6278Diario::mdlCalcularIsr3($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}", "public function getPrice ($key) {\n $query = \"SELECT avg_price\n FROM ea_product\n WHERE id = '$key' \";\n //print(\"$query\");\n foreach($this->dbo->query($query) as $row) {\n $avg_price = stripslashes($row[0]);\n }\n \n return $avg_price;\n }", "public function _getExpDate3() {\n\t\treturn $this->_expDate3;\n\t}", "public function get_max_product_price()\n\t{\n\t\t$this->db->select('MAX(product_selling_price) AS price')->from('product')->where(\"product_status = 1\");\n\t\t$query = $this->db->get();\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result->price;\n\t}", "public function getShowInProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getItemaPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(4, $this->_result)) return (string) $this->_result[4];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getItemaPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getItemaPt', __LINE__, __FILE__);\n\t}", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "public function getProductAttributeInt($productId, $attributeCode){\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_int where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getProdGeneral()\n {\n return $this->prod_general;\n }" ]
[ "0.6773512", "0.66009206", "0.6473621", "0.6386664", "0.59449494", "0.56074005", "0.5577009", "0.5562584", "0.5513693", "0.5492104", "0.54364216", "0.539802", "0.5391844", "0.53265613", "0.53190905", "0.5295672", "0.5286534", "0.5243338", "0.5226241", "0.5189013", "0.5187751", "0.51805913", "0.5159926", "0.5152837", "0.5136437", "0.51301897", "0.5116963", "0.5116163", "0.5112946", "0.5099279", "0.50830966", "0.50816303", "0.50726414", "0.50694716", "0.50651866", "0.50584203", "0.50540507", "0.50493973", "0.5043949", "0.5039", "0.50137246", "0.49932164", "0.4983814", "0.4954838", "0.49414366", "0.4912157", "0.4911533", "0.48916942", "0.48877338", "0.48624954", "0.48479107", "0.48474756", "0.48422655", "0.48389047", "0.483418", "0.48286355", "0.48247457", "0.48144934", "0.48103425", "0.4799664", "0.47956628", "0.47629777", "0.47601247", "0.4760122", "0.47557566", "0.4748506", "0.4741645", "0.47205085", "0.47141737", "0.47042945", "0.47009373", "0.46746808", "0.46713114", "0.463873", "0.46306622", "0.46304592", "0.46225375", "0.46080104", "0.4595678", "0.45948812", "0.45909622", "0.4589434", "0.45882344", "0.4587006", "0.45748076", "0.45728755", "0.4569282", "0.45690763", "0.45686987", "0.4565545", "0.45589545", "0.45563987", "0.45539254", "0.45525685", "0.4544134", "0.45252323", "0.45166236", "0.4514522", "0.4513072", "0.4512381" ]
0.7954392
0
Get the [prod_alt4] column value.
public function getProdAlt4() { return $this->prod_alt4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "public function setProdAlt4($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt4 !== $v) {\n $this->prod_alt4 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT4] = true;\n }\n\n return $this;\n }", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "public function getPointProd4():?int\n { \n return $this->produit4 <= 0 ? 0 : $this->produit4 * 35;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getProductDefaultValue() {\n //initialize dummy value.. no content header.pure html\n $sql = null;\n $productId = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n SELECT `productId`\n FROM `product`\n WHERE `isActive` = 1\n AND `companyId` = '\" . $this->getCompanyId() . \"'\n AND \t `isDefault` =\t 1\n LIMIT 1\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n SELECT TOP 1 [productId],\n FROM [product]\n WHERE [isActive] = 1\n AND [companyId] = '\" . $this->getCompanyId() . \"'\n AND \t [isDefault] = 1\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n SELECT PRODUCTID AS \\\"productId\\\",\n FROM PRODUCT\n WHERE ISACTIVE = 1\n AND COMPANYID = '\" . $this->getCompanyId() . \"'\n AND \t ISDEFAULT\t =\t 1\n AND \t\t ROWNUM\t =\t 1\";\n } else {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $this->t['databaseNotFoundMessageLabel']));\n exit();\n }\n }\n }\n try {\n $result = $this->q->fast($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n if ($result) {\n $row = $this->q->fetchArray($result);\n $productId = $row['productId'];\n }\n return $productId;\n }", "public function getAttr4(){\r\n\t\treturn $this->attr4;\r\n\t}", "public function setProdAlt1($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt1 !== $v) {\n $this->prod_alt1 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT1] = true;\n }\n\n return $this;\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "public function get_value() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"gtmetrix\";\n $return = $wpdb->get_results( \"SELECT * FROM $table_name ORDER BY id DESC LIMIT 1\" );\n return $return[0];\n }", "public function getCategory4()\n {\n if (array_key_exists(\"category4\", $this->_propDict)) {\n return $this->_propDict[\"category4\"];\n } else {\n return null;\n }\n }", "public function getC4()\r\n {\r\n return $this->C4;\r\n }", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getProdEra()\n {\n return $this->prod_era;\n }", "private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }", "public function getProductid() {\n\t\treturn $this->productid;\n\t}", "public function getProduct_img () {\n\t$preValue = $this->preGetValue(\"product_img\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_img;\n\treturn $data;\n}", "public static function getAltAttribute(int $id = 0){\n // vars\n $output = '';\n $lang = prefix_core_BaseFunctions::getCurrentLang();\n // check if active lang is default or not\n if($lang == SELF::$WPimgAttr_Alt_languages[0]):\n // default language\n $output .= get_post_meta($id, '_wp_attachment_image_alt', TRUE);\n else:\n // alternative text\n $name = SELF::$WPimgAttr_Alt_prefix . $lang;\n $output .= get_post_meta($id, $name, true);\n endif;\n // output\n return $output;\n }", "public function getAlt()\n {\n return $this->alt;\n }", "public function getCodeArticle4() {\n return $this->codeArticle4;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "private function getProductLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "public function getRecommendedProduct()\n {\n $this->db->connect();\n $sql = \"SELECT * FROM $this->table WHERE recommended = 'yes' LIMIT 4;\";\n $product = $this->db->executeFetchAll($sql);\n return $product;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductAttributeVarchar($productId, $attributeCode) {\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_varchar where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getAltura() \r\n\t{\r\n\t\treturn $this->iAltura;\r\n\t}", "public function getCodeRef4() {\n return $this->codeRef4;\n }", "public function getProductAttributeInt($productId, $attributeCode){\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_int where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "public function get_id_product()\n\t{\n\t\treturn $this->id_product;\n\t}", "public function setProdAlt2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt2 !== $v) {\n $this->prod_alt2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true;\n }\n\n return $this;\n }", "public function getId_product()\n {\n return $this->id_product;\n }", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getOpcion4() {\n return $this->opcion4;\n }", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function product()\n {\n return $this->m_product;\n }", "public function getProductAttribute($product_id) {\n\t\t$attribute = array();\n\n\t\tif ($this->MultiLanguages && $this->CountLanguages > 1) {\n\t\t\t$field = ', patt.attribute_id';\n\t\t} else {\n\t\t\t$field = '';\n\t\t}\n\n\t\t$sql = \"SELECT CONCAT_WS('\" . $this->AttributeDelimiter . \"'\" . $field . \", attgd.name, attd.name, patt.text) AS p_attribute FROM `\" . DB_PREFIX . \"product_attribute` patt\n\t\t \tLEFT JOIN `\" . DB_PREFIX . \"attribute_description` attd ON (attd.attribute_id = patt.attribute_id)\n\t\t \tLEFT JOIN `\" . DB_PREFIX . \"attribute` att ON (attd.attribute_id = att.attribute_id) \n\t\t \tLEFT JOIN `\" . DB_PREFIX . \"attribute_group_description` attgd ON (attgd.attribute_group_id = att.attribute_group_id)\n\t\t \tWHERE patt.product_id = \" . (int)$product_id . \" AND attgd.language_id = '\" . (int)$this->LanguageID . \"' AND attd.language_id = '\" . (int)$this->LanguageID . \"' AND patt.language_id = '\" . (int)$this->LanguageID . \"'\";\n\t\t$query = $this->db->query($sql);\n\n\t\tforeach ( $query->rows as $result ) {\n\t\t\t$attribute[] = htmlspecialchars_decode($result['p_attribute']);\n\t\t}\n\n\t\treturn implode(\"\\n\", $attribute);\n\t}", "public function getProdHeight()\n {\n return $this->prod_height;\n }", "protected function getLinkedProductID () {\n $productFilter = Search::getInstance($this->data['attrs']['source_id'])->getFilter('product');\n\n return $productFilter ? $productFilter['value'] : null;\n }", "public function getProduct_Id() {\n return $this->product_Id;\n }", "public function getLatestProduct()\n {\n $this->db->connect();\n $sql = \"SELECT * FROM $this->table ORDER BY added LIMIT 4;\";\n $product = $this->db->executeFetchAll($sql);\n return $product;\n }", "public function getProductIdentifier()\n {\n $value = $this->_config->get('dataprocessing/products/identifier');\n\n if ($value === null) {\n $value = 'sku';\n }\n\n return $value;\n }", "function getProductCode()\n {\n return $this->productCode;\n }", "public function getProductuuid(){\n return $this->productuuid;\n }", "public function getProductAttributeDecimal($productId, $attributeCode){\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_decimal where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function get_product_id() {\n return $this->product_id;\n }", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }", "public function getDefaultVariationId()\n {\n return $this->_defaultPriceVariationId;\n }", "function getProductValue($ms3Oid, $featureName, $raw = false) {\n\t\t$this->dbgstart();\n\t\t$FeatureId = $this->calc->dbutils->getFeatureIdByName($featureName);\n\t\t$pid = $this->calc->getProdIdForMs3Oid($ms3Oid);\n\t\t$ret = $this->calc->dbutils->getProductValue($pid, $FeatureId, $raw);\n\t\t$this->dbgend();\n\t\treturn $ret;\n\t}", "public function getShowInProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "function getProdId($product){\r\n require '../../model/dbconnect.php';\r\n $prod = $db->quote($product);\r\n $rows_prod = $db->query(\"SELECT id FROM product WHERE name = $prod\");\r\n if ($rows_prod) {\r\n foreach($rows_prod as $row)\r\n return $row['id'];\r\n }\r\n }", "public function getProductData()\n {\n return $this->_coreRegistry->registry('current_product');\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getProductEntityLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getDefaultProductID() {\n return self::$defaultProductID;\n }", "private function getProductEntityLinkField()\n {\n if (!$this->productEntityLinkField) {\n $this->productEntityLinkField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getLinkField();\n }\n return $this->productEntityLinkField;\n }", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "protected function getProductLoadId()\n {\n $product = $this->locator->getProduct();\n if (method_exists($product, 'getData')) {\n return $product->getData($this->getProductLinkField());\n }\n }", "function getProductuuid()\n {\n return $this->product_uuid;\n }", "public function getProducts_prid() {\n\t\treturn $this->products_prid;\n\t}", "public function getProdName()\n {\n return $this->prod_name;\n }", "protected function LiveTableValue()\n {\n return $this->LiveRawTableValue();\n }", "function wp_store_loop_columns() {\r\n\t\t\tif(get_theme_mod('wp_store_woocommerce_setting_product_rows') && get_theme_mod('wp_store_woocommerce_setting_product_rows')>0){\r\n\t\t\t\t$xr = get_theme_mod('wp_store_woocommerce_setting_product_rows');\r\n\t\t\t} else {\r\n\t\t\t\t$xr = 3;\r\n\t\t\t}\r\n\t\t\treturn intval($xr); \r\n\t\t}", "public function getProductVariant()\n {\n if (is_null($this->productVariant)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_PRODUCT_VARIANT);\n if (is_null($data)) {\n return null;\n }\n\n $this->productVariant = ProductVariantKeyReferenceModel::of($data);\n }\n\n return $this->productVariant;\n }", "public function getProductID()\n {\n }", "public function getProductId(): string\n {\n return $this->productId;\n }", "public function getProductCode()\n {\n if (array_key_exists(\"productCode\", $this->_propDict)) {\n return $this->_propDict[\"productCode\"];\n } else {\n return null;\n }\n }", "function getProductInfo($prodId)\n {\n $this->db->select('*');\n $this->db->from('tbl_products');\n $this->db->where('id', $prodId);\n $query = $this->db->get();\n \n return $query->result();\n }", "public function select_one_product($db,$idprod)\n {\n $sql = \"SELECT nombre,marca,talla,imagen,precio,descripcion,idprod FROM products where idprod = '$idprod' \";\n $stmt = $db->ejecutar($sql);\n return $db->listar($stmt);\n }", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "function get_product_price($field_product_id){\r\n\r\n $this->load->model('logistics_model');\r\n $result = $this->logistics_model->get_product_price($field_product_id);\r\n $value = $result->price;\r\n echo $value;\r\n }", "public function getEndbPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(8, $this->_result)) return (string) $this->_result[8];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getEndbPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getEndbPt', __LINE__, __FILE__);\n\t}", "public function getFeaturedProduct(){\n\t\t$sql = \"SELECT * FROM tbl_product WHERE type = '1' ORDER BY pid DESC LIMIT 4\";\n\t\t$result = $this->db->select($sql);\n\t\treturn $result;\n\t}", "public function getProdLength()\n {\n return $this->prod_length;\n }", "public function getVariationValue()\n {\n return $this->variationValue;\n }", "protected function LiveRawTableValue()\n {\n // if (! isset(self::$temp_raw_table_value[$this->OrderID])) {\n $currentRate = $this->LiveCurrentRate();\n $currentCountry = $this->LiveCountry();\n $itemsTax = $this->workoutOrderItemsTax($currentRate, $currentCountry);\n $modifiersTax = $this->workoutModifiersTax($currentRate, $currentCountry);\n return $itemsTax + $modifiersTax;\n }", "public function getShowInProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product');\n }", "public function getLine4()\n {\n return (string) $this->json()->line4;\n }", "function tep_get_products_image($product_id) {\n\tglobal $languages_id;\n\t$product_query = tep_db_query(\"select products_image from \" . TABLE_PRODUCTS . \" where products_id = '\" . (int)$product_id . \"'\");\n\t$product = tep_db_fetch_array($product_query);\n\treturn $product['products_image'];\n}", "public function getProductSKU()\n {\n }", "public function getItemaPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(4, $this->_result)) return (string) $this->_result[4];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getItemaPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getItemaPt', __LINE__, __FILE__);\n\t}", "public function getProduct()\r\n {\r\n return $this->product;\r\n }", "public function getProdScale()\n {\n return $this->prod_scale;\n }", "public function getProduct()\n {\n return isset($this->product) ? $this->product : null;\n }", "public function get_max_product_price()\n\t{\n\t\t$this->db->select('MAX(product_selling_price) AS price')->from('product')->where(\"product_status = 1\");\n\t\t$query = $this->db->get();\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result->price;\n\t}", "public function getCustomPriceId($product_variety_id, $multiplicator) {\n\t\t\n\t\tif (!is_numeric($product_variety_id)) return false;\n\t\tif (!is_numeric($multiplicator)) return false;\n\t\t\n\t\trequire_once('models/ecommerce/ecommerce_price.php');\n\t\t$Price = new ecommerce_price();\n\t\t\n\t\t$price_id = $Price->getCustomPriceIdByMultiplicator($product_variety_id, $multiplicator);\n\t\t\n\t\tif (is_numeric($price_id)) return $price_id;\n\t\telse return false;\t\n\t}" ]
[ "0.6830606", "0.68163145", "0.6669471", "0.6263033", "0.5547978", "0.5535405", "0.5524351", "0.5515742", "0.5514858", "0.546568", "0.5439236", "0.5426851", "0.54183006", "0.5360734", "0.53241444", "0.5271889", "0.52682793", "0.52449316", "0.5231102", "0.52244246", "0.52027315", "0.5199202", "0.5186524", "0.51732516", "0.5168445", "0.5160309", "0.51315546", "0.5119532", "0.5118879", "0.51183665", "0.51183665", "0.51183665", "0.50922227", "0.5089627", "0.5064801", "0.5064183", "0.5041665", "0.50377387", "0.5027763", "0.50207126", "0.49895087", "0.49874416", "0.4986758", "0.49784967", "0.49749824", "0.49730358", "0.49683332", "0.49638376", "0.4962656", "0.49606538", "0.49579132", "0.4954524", "0.4946612", "0.4934184", "0.4922259", "0.49109125", "0.4901231", "0.49007234", "0.48966467", "0.48878664", "0.48770306", "0.485578", "0.4848709", "0.48419166", "0.48419166", "0.48419166", "0.48368663", "0.48359674", "0.48273033", "0.48272514", "0.48270354", "0.48248973", "0.48230854", "0.48142958", "0.48005664", "0.47992712", "0.47924095", "0.47879678", "0.47721782", "0.47718418", "0.4767387", "0.4763416", "0.47589666", "0.47555733", "0.47488582", "0.4747887", "0.47476318", "0.47411364", "0.47384578", "0.47379568", "0.47352725", "0.472999", "0.47169852", "0.4713", "0.47127998", "0.47125673", "0.47119796", "0.4710796", "0.47064537", "0.47040913" ]
0.7901901
0
Get the [prod_code] column value.
public function getProdCode() { return $this->prod_code; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getProductCode()\n {\n if (array_key_exists(\"productCode\", $this->_propDict)) {\n return $this->_propDict[\"productCode\"];\n } else {\n return null;\n }\n }", "function getProductCode()\n {\n return $this->productCode;\n }", "public function getProductCode(): ?string\n {\n return $this->productCode;\n }", "public function getCode()\n {\n return $this->values[\"code\"];\n }", "public function setProdCode($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_code !== $v) {\n $this->prod_code = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_CODE] = true;\n }\n\n return $this;\n }", "public function getCodeProduit() {\n return $this->codeProduit;\n }", "function getProduction($production_code) {\n $data = $this->db\n ->where('LCASE(production_code)',strtolower($production_code))\n ->limit(1)\n ->get('production')\n ->row_array();\n \n return $data;\n }", "public function get_Code_produit()\n\t\t{\n\t\t\treturn $this->Code_produit;\n\t\t}", "public function getCode()\n {\n return $this->getValueObject('code');\n }", "public function getCode()\n {\n return $this->getData()->code;\n }", "function productCode($prod)\n\t{\n\t\t$product = $this->Product->findByCode($prod);\n\t\t$parent = !empty($product['Product']['parent_product_type_id']) ? $this->Product->read(null, $product['Product']['parent_product_type_id']) : null;\n\t\t$parentProd = !empty($parent) ? $parent['Product']['code'] : null;\n\n\t\tif(!empty($parentProd) && !file_exists(APP.\"/webroot/images/designs/products/$prod.svg\") && file_exists(APP.\"/webroot/images/designs/products/$parentProd.svg\"))\n\t\t{\n\t\t\t$prod = $parentProd;\n\t\t}\n\t\treturn $prod;\n\t}", "public function getCode()\n {\n return $this->data[1];\n }", "public function getCode() {\n return $this->get(self::CODE);\n }", "public function getCode()\n {\n return $this->get(self::CODE);\n }", "public function getPricecode()\n {\n return $this->pricecode;\n }", "public function getLocalProductCode(): ?string\n {\n return $this->localProductCode;\n }", "public function get_code() {\n\t\treturn $this->code;\n\t}", "public function getCode()\n {\n if (is_null($this->code)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_CODE);\n if (is_null($data)) {\n return null;\n }\n $this->code = (string) $data;\n }\n\n return $this->code;\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getCarCode(){\r\n\t\t\t$this->car_code = getValue(\"SELECT car_code FROM tbl_car WHERE car_id=\".$this->car_id);\r\n\t\t\treturn $this->car_code;\r\n\t}", "public function getcode()\n {\n return $this->code;\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getAttributeId($code = '') {\n if (! $code) {\n return;\n }\n $attribute_details = Mage::getSingleton ( \"eav/config\" )->getAttribute ( 'catalog_product', $code );\n return $attribute_details->getData ( static::ATTRIBUTE_ID );\n }", "public function getCode()\r\n {\r\n return $this->code;\r\n }", "public function getCode() {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode() {\n return $this->code;\n }", "public function getCode() {\n return $this->code;\n }", "public function setProductCode($val)\n {\n $this->_propDict[\"productCode\"] = $val;\n return $this;\n }", "public function getCode()\n {\n return $this->__get(\"code\");\n }", "public function getCode() {\n\t\treturn $this->code;\n\t}", "public function getCode() {\n\t\treturn $this->code;\n\t}", "public function getCode() {\n\t\treturn $this->code;\n\t}", "public function getCode()\n\t{\n\t\treturn $this->code;\n\t}", "public function getCode()\n\t{\n\t\treturn $this->code;\n\t}", "public function getCode()\n\t{\n\t\treturn $this->code;\n\t}", "public function getCode() {\r\n return $this->__code;\r\n }", "public function getCode(): string\n {\n return $this->code;\n }", "public function getCode(): string\n {\n return $this->code;\n }", "public function getCode(): string\n {\n return $this->code;\n }", "public static function getCode()\n {\n return Currency::get('code', false);\n }", "public function getCode() {\n return @$this->attributes['code'];\n }", "public function getCode()\n {\n return $this->get(self::ENTRY_CODE);\n }", "public function getProductAttributeVarchar($productId, $attributeCode) {\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_varchar where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getProductAttributeInt($productId, $attributeCode){\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_int where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function GetCode () \r\n\t{\r\n\t\treturn ($Code);\r\n\t}", "protected function getAttribute($code)\n {\n $attributeValue = '';\n\n $attribute = $this->getProduct()->getResource()->getAttribute($code);\n\n if (!$attribute) return $attributeValue;\n\n if (in_array($attribute->getFrontendInput(), ['select', 'multiselect'])) {\n $attributeValue = $this->getProduct()->getAttributeText($code);\n } else {\n $attributeValue = $this->getProduct()->getData($code);\n }\n\n return $attributeValue;\n }", "public function getCode(): int\n {\n return $this->code;\n }", "function getCode()\r\n {\r\n return $this->code;\r\n }", "public function getCode() { return $this->code; }", "function code_value()\n {\n return app('code_value');\n }", "public function get_number() { return $this->getCode(); }", "public function getCode()\n {\n return $this->_code;\n }", "public function getCode()\n {\n return $this->_code;\n }", "public function getCode()\n {\n return $this->_code;\n }", "public function getAttributeCode()\r\n {\r\n return $this->getAttribute()->getAttributeCode();\r\n }", "public function getCode() {return $this->code;}", "public function productData()\n {\n $this->db->select('BarCode');\n $this->db->from('products');\n $this->db->order_by('BarCode', 'DESC');\n $this->db->limit(1);\n $query = $this->db->get();\n if ($query->num_rows() == 1) {\n return $query->result();\n } else {\n return false;\n }\n }", "public function getProductID($productCode){\n\t\t$select = $this->_db->select()\n\t\t->from($this->_name,array('*'))\n\t\t->where('code_product LIKE ?',$productCode);\n\t\t$result = $this->getAdapter()->fetchAll($select);\n\t\t\n\t\tif(!$result){return false;}\n\t\t\n\t\treturn $result[0]['id_product'];\t\n\t\t\n\t}", "public function getCodeStatutPro() {\n return $this->codeStatutPro;\n }", "function getCode()\n {\n return $this->code;\n }", "public function getcode() {\n\t\t$this -> db -> select('id');\n\t\t$this -> db -> from('store_info');\n\t\t$this -> db -> limit(1);\n\t\t$this -> db -> order_by(\"id\", \"desc\");\n\t\t$query = $this->db->get();\n\t\tif ($query->num_rows() > 0) {\n $row = $query->row();\n\t\t\tif (isset($row)){\n\t\t\t\treturn $row->id;\n\t\t\t}\n }else{\n\t\t\treturn 0;\n\t\t}\n \t}", "public function getCodeEmploi() {\n return $this->codeEmploi;\n }", "protected static function phone_code(): mixed\n\t{\n\t\treturn self::$query->phone_code;\n\t}", "public function Code()\n {\n return $this->code;\n }", "public function getAttributeCode(){\n\t\t$code = 'brand_name';\n\t\treturn $code;\n\t}", "protected static function num_code(): mixed\n\t{\n\t\treturn self::$query->num_code;\n\t}", "public function getCodeAttribute()\n {\n return $this->id;\n }", "public function getCode() : string\n {\n return $this->_code;\n }", "public function getPromotionCode()\r\n\t{\r\n\t\treturn $this->root->getAttribute('codepromo');\r\n\t}", "public function getImpactCode() {\n $row = $this->getInnerRow();\n return (int)$row['impact_code'];\n }", "public function getCodProy() {\n return $this->codProy;\n }", "public function code()\n {\n return $this->code;\n }", "public function code()\n {\n return $this->code;\n }", "public function getAttributeValueByCode($product, $attributeCode)\n {\n if (array_key_exists($attributeCode, $this->attributeValues)) {\n return $this->attributeValues[$attributeCode];\n }\n\n $tempValue = '';\n $value = $product->getData($attributeCode);\n\n if ($attribute = $product->getResource()->getAttribute($attributeCode)) {\n $attribute->setStoreId($product->getStoreId());\n $tempValue = $attribute->setStoreId($product->getStoreId())->getSource()->getOptionText($product->getData($attributeCode));\n }\n if ($tempValue) {\n $value = $tempValue;\n }\n if (!$value) {\n if ($product->getTypeId() == 'configurable') {\n $productAttributeOptions = $product->getTypeInstance(true)->getConfigurableAttributesAsArray($product);\n\n $attributeOptions = [];\n foreach ($productAttributeOptions as $productAttribute) {\n if ($productAttribute['attribute_code'] != $attributeCode) {\n continue;\n }\n foreach ($productAttribute['values'] as $attribute) {\n $attributeOptions[] = $attribute['store_label'];\n }\n }\n if (count($attributeOptions) == 1) {\n $value = array_shift($attributeOptions);\n }\n } else {\n $value = $product->getData($attributeCode);\n }\n }\n\n $finalValue = is_array($value) ? array_map('trim', array_filter($value)) : trim($value);\n\n $this->attributeValues[$attributeCode] = $finalValue;\n return $finalValue;\n }" ]
[ "0.7673927", "0.72473294", "0.7006389", "0.6916624", "0.6466807", "0.6464332", "0.63460916", "0.6270903", "0.6258426", "0.6233503", "0.6193467", "0.61709696", "0.61593795", "0.61585677", "0.61318225", "0.61248577", "0.6121542", "0.61152744", "0.6090303", "0.6081627", "0.60629296", "0.6036923", "0.6029756", "0.60278314", "0.6019222", "0.60153526", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.6014834", "0.60100156", "0.60100156", "0.5996168", "0.5995691", "0.59906876", "0.59906876", "0.59906876", "0.59800345", "0.59800345", "0.59800345", "0.59721524", "0.59661716", "0.59661716", "0.59661716", "0.59535074", "0.595087", "0.59296286", "0.5927378", "0.5924271", "0.5910629", "0.5902303", "0.589247", "0.5888998", "0.5863449", "0.5852884", "0.58450747", "0.58278126", "0.58278126", "0.58278126", "0.5826307", "0.5824512", "0.5820707", "0.57997036", "0.57873887", "0.5774003", "0.5756276", "0.5753418", "0.57352245", "0.5732224", "0.5722336", "0.57103366", "0.5703309", "0.568641", "0.5674603", "0.5673161", "0.56716543", "0.56707865", "0.56707865", "0.56693685" ]
0.8045544
0
Get the [prod_category] column value.
public function getProdCategory() { return $this->prod_category; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProduct_category () {\n\t$preValue = $this->preGetValue(\"product_category\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_category\")->preGetData($this);\n\treturn $data;\n}", "public function getCategory()\n\t{\n\t\treturn $this->data['category'];\n\t}", "public function get_category(){\n\t\treturn $this->category;\n\t}", "public function getCategory()\n {\n\t\treturn self::$categories[ $this->category ];\n }", "public function getId_cat()\n {\n return $this->id_cat;\n }", "public static function getCategory()\n {\n return self::$category;\n }", "function category(){\n\t\trequire('quizrooDB.php');\n\t\t$query = sprintf(\"SELECT cat_name FROM q_quiz_cat WHERE cat_id = %d\", GetSQLValueString($this->fk_quiz_cat, \"int\"));\n\t\t$getQuery = mysql_query($query, $quizroo) or die(mysql_error());\n\t\t$row_getQuery = mysql_fetch_assoc($getQuery);\n\t\treturn $row_getQuery['cat_name'];\n\t}", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory() {\r\n return $this->catList->find('id', $this->categoryId)[0];\r\n }", "public function getCat()\n {\n $query = $this->db->get('categories');\n\n return $query->result();\n }", "public function getCategory() {\n return $this->category;\n }", "public function getCategory()\n\t{\n\t\treturn $this->category;\n\t}", "public function getIdCat()\n {\n return $this->id_cat;\n }", "public function getCategory()\n {\n\n return $this->category;\n }", "public function getCategory()\n {\n return $this->_category;\n }", "public function getCategory() {\n\t\treturn $this->category;\n\t}", "public function getCat_id() {\n return $this->cat_id;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory() {\n return $this->category;\n }", "public function category() {\n\t\treturn $this->get_category();\n\t}", "public function get_category_id(){\n\t\treturn $this->_categoryid;\n\t}", "public function getCategory()\n {\n return $this->readOneof(2);\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function get_category() {\n $data['get_category'] = $this->Category_model->get_category();\n return $data['get_category'];\n }", "public function getCatId()\n {\n return $this->getParamCatId();\n }", "public function getCategory_id()\n {\n return $this->category_id;\n }", "public function getCategory_id()\n {\n return $this->category_id;\n }", "public function getCategory_id()\n {\n return $this->category_id;\n }", "public function getCategory(){\n return $this->category;\n }", "public function getCategory() {\r\n return \\models\\Database::validateData($this->_category, 'string|specialchars|strip_tags');\r\n }", "public function getCategoryName() {\n try {\n // connect to db\n $pdo = $this->_db->connect();\n\n // set up SQL\n $sql = \"SELECT categoryName FROM category WHERE categoryId = \" . $_GET[\"categoryId\"];\n $stmt = $pdo->prepare($sql);\n\n // execuet SQL\n $rows = $this->_db->executeSQL($stmt);\n\n return $rows;\n } catch (PDOException $e) {\n throw $e;\n }\n }", "public function get_category(){\n\t\t$this->load->model('seller/product_model');\n\t\t$category = $this->product_model->get_category();\n\t\treturn $category;\n\t}", "public function get_category()\n {\n return $this->primary_category();\n }", "public function productCategoryName() {\n\t\treturn $this->generator->randomElement( static::$categories );\n\t}", "function getCategory()\r\n\t\t{\r\n\t\t\treturn $this->category;\r\n\t\t\t\r\n\t\t}", "public function getCategory()\n\t\t{\n\t\t\t$sql = \"SELECT id_category,name_cate FROM tbl_category_products\";\n\t\t\t$pre = $this->pdo->prepare($sql);\n\t\t\t$pre->execute();\n\n\t\t\treturn $pre->fetchAll(PDO::FETCH_ASSOC);\n\t\t}", "function getCategoryNameById($cat_id) {\n $ci = & get_instance();\n $category = $ci->crud->get(ES_PRODUCT_CATEGORIES, array('id' => $cat_id));\n if (count($category) > 0) {\n return $category['name'];\n } else {\n return \"Not available\";\n }\n}", "public function getCategory($id){\n $category = Product::find($id)->category_id;\n return $category;\n }", "public function getCategory() {\n return $this->randomQuote->category_name;\n }", "public function getCurrentCategory()\n {\n return $this->category;\n }", "public function fetchCategoriesName() {\n $sql = \"SELECT id, category FROM category\";\n return $this->getAllColumns($sql, 'id');\n }", "public function getCategory(){\r\n return Mage::registry('current_category');\r\n }", "public function getKey()\n {\n return $this->getValue('nb_commerce_product_category_key');\n }", "public function returnUpdateCat() {\n return $this->category_id;\n }", "public function getCurrentCat()\n {\n if (empty($this->multifilterSession->getTopCategory()) && empty($this->multifilterSession->getCategories())) {\n $currentCat = $this->coreRegistry->registry('current_category');\n return $currentCat->getId();\n } else {\n return $this->multifilterSession->getTopCategory();\n }\n }", "public function getCategory()\r\n\t{\r\n\t\tif (!empty($this->category))\r\n\t\t{\r\n\t\t\treturn $this->category;\r\n\t\t}\r\n\r\n\t\t$pk = $this->getState('category.id');\r\n\r\n\t\t$this->category = JTable::getInstance('Category');\r\n\t\t$this->category->load($pk);\r\n\r\n\t\treturn $this->category;\r\n\t}", "public function getCategory()\n {\n if (!$this->_category) {\n $this->_category = Mage::registry('current_category');\n }\n return $this->_category;\n }", "public function getCategoryId(): string\n {\n return $this->categoryId;\n }", "public function getCategory1()\n {\n if (array_key_exists(\"category1\", $this->_propDict)) {\n return $this->_propDict[\"category1\"];\n } else {\n return null;\n }\n }", "function get_product_id_by_cat($cat_id) \n {\n global $db;\n $query = \"SELECT productID FROM tblproduct WHERE catID = '$cat_id'\";\n $result = $db -> query($query);\n return $result;\n }", "private function getCategory() {\n return '';\n }", "public function get_cat_one()\n {\n $select = $this->db->get('category_one');\n $cat_one = $select->result();\n return $cat_one;\n }", "public function getActiveCategory()\n {\n return $this->_activeCategory;\n }", "function getCategory() {\n\t\t$categoryId = JRequest::getInt('category_id', 0) ;\n\t\t$sql = 'SELECT * FROM #__eb_categories WHERE id='.$categoryId;\n\t\t$this->_db->setQuery($sql) ;\n\t\treturn $this->_db->loadObject();\t\t\t\n\t}", "public function getItemCategory()\n {\n return $this->item_category;\n }", "public function getId() : int\n {\n return $this->getValue('nb_commerce_product_category_id');\n }", "function getCategory() {\n\t\treturn $this->node->firstChild->toString();\n\t}", "public function getNom_cat()\n {\n return $this->nom_cat;\n }", "public function getCategoryNameAttribute()\n {\n return $this->category->name ?? '';\n }", "public function getCategoryDescription() {\n //as part of a search in a gridview, that is why we are returning it\n //only if not empty\n if (!empty($this->idCategoria)) {\n return $this->idCategoria;\n }\n return $this->_categoryDescription;\n }", "public function getSource()\n {\n return 'product_category';\n }", "private function retrieve_category() {\n\t\t$replacement = null;\n\n\t\tif ( ! empty( $this->args->ID ) ) {\n\t\t\t$cat = $this->get_terms( $this->args->ID, 'category' );\n\t\t\tif ( $cat !== '' ) {\n\t\t\t\t$replacement = $cat;\n\t\t\t}\n\t\t}\n\n\t\tif ( ( ! isset( $replacement ) || $replacement === '' ) && ( isset( $this->args->cat_name ) && ! empty( $this->args->cat_name ) ) ) {\n\t\t\t$replacement = $this->args->cat_name;\n\t\t}\n\n\t\treturn $replacement;\n\t}", "public function get_cat_name() {\n $c = $this->cat;\n $tmp = \"\";\n switch($c) {\n case 1:\n $tmp = \"News\";\n break;\n case 2:\n $tmp = \"Eventi\";\n break;\n case 3:\n $tmp = \"Pubblicazioni\";\n break;\n }\n return $tmp;\n }", "function getCategoryStatusById($cat_id) {\n $ci = & get_instance();\n $category = $ci->crud->get(ES_PRODUCT_CATEGORIES, array('id' => $cat_id));\n if (count($category) > 0) {\n return $category['status'];\n } else {\n return 0;\n }\n}", "public function getProductCategory(): ?ProductCategory\n {\n return $this->productCategory;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getCurrentCategory()\n {\n return $this->registry->registry('current_category');\n }", "public function get_category_type()\n {\n return $this->m_cat_dao->get_category_type();\n }", "function getCategoryValueById($id) {\n\t\t$this->db->select('*');\n\t\t$this->db->from($this->test_category_table);\n\t\t$this->db->where('testcategory_id', $id);\n $query = $this->db->get();\n\t\treturn $query->result();\n\t}", "public function getCategoryName()\n {\n return ($this->category !== null?$this->category->name:'-');\n }", "public function getCategory()\n {\n if ($this->_oCategory === null) {\n $this->_oCategory = $this->getProduct()->getCategory();\n }\n\n return $this->_oCategory;\n }", "public function getCat()\n {\n return $this->cat = get_the_category($this->id);\n }", "public function getCategory6()\n {\n if (array_key_exists(\"category6\", $this->_propDict)) {\n return $this->_propDict[\"category6\"];\n } else {\n return null;\n }\n }", "public function getCategory(): string|null;", "public function getCategory(): string;", "function _get_cat($id) {\r\n $qry = $this->db->where('cat_id', $id)\r\n ->get($this->_cat);\r\n return $qry->row();\r\n }", "public function get_catR()\n {\n return $this->_catR;\n }", "public function getCategoryCode(): ?string\n {\n return isset($this->CategoryCode) ? $this->CategoryCode : null;\n }", "function getCategoryName($catId) {\n\t\t\n // Function to connect to the DB\n $link = connectToDB();\n\n\t//Retrieve the data\n\t$strSQL = \"SELECT CategoryName FROM FC_Categories where CategoryID=\" . $catId;\n $result = mysql_query($strSQL) or die(mysql_error());\n if ($result) {\n if (mysql_num_rows($result) > 0) {\n $ors = mysql_fetch_array($result);\n $category = $ors['CategoryName'];\n } else {\n $category = \" \";\n }\n }\n mysql_close($link);\n\n return $category;\n}", "public function getCategoryName()\n {\n return $this->cat->title;\n }", "public function column_category( $request ) {\n\t\trequire_once( WP_PLUGIN_DIR . '/wordcamp-payments/classes/payment-request.php' );\n\t\t$categories = WCP_Payment_Request::get_payment_categories();\n\t\t$selected_category = get_post_meta( $request->ID, '_camppayments_payment_category', true );\n\n\t\treturn isset( $categories[ $selected_category ] ) ? $categories[ $selected_category ] : '';\n\t}", "public function getCategoryName()\n {\n if (is_null($this->categoryName)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_CATEGORY_NAME);\n if (is_null($data)) {\n return null;\n }\n $this->categoryName = (string) $data;\n }\n\n return $this->categoryName;\n }", "public function category()\n {\n // check if user is already loaded, if not, we fetch it from database\n if (!$this->_category) {\n $categories = new Application_Model_DbTable_Categories();\n try {\n $this->_category = $categories->findById($this->_category_id);\n } catch (Exception $e) {\n $this->_category = null;\n }\n }\n return $this->_category;\n }", "public function getCategory() {}" ]
[ "0.7472611", "0.65053254", "0.6380111", "0.6347475", "0.63456774", "0.6323605", "0.6313287", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.62840873", "0.6281755", "0.62638104", "0.62632763", "0.6262719", "0.62487197", "0.62408155", "0.62346244", "0.62237465", "0.6219709", "0.62004477", "0.62004477", "0.61896515", "0.61662483", "0.615496", "0.6152383", "0.6151916", "0.6134226", "0.6132739", "0.61190814", "0.61190814", "0.61190814", "0.6094241", "0.60908365", "0.60671747", "0.60663164", "0.6039099", "0.60203815", "0.60151446", "0.59888625", "0.5963491", "0.59480155", "0.59318876", "0.5920338", "0.5908476", "0.5875717", "0.58675367", "0.5861908", "0.58600944", "0.5852877", "0.5852445", "0.58381873", "0.5826336", "0.5795098", "0.578471", "0.57847005", "0.5782142", "0.57698536", "0.57553905", "0.5754909", "0.5731688", "0.57284427", "0.5728011", "0.5721588", "0.57156986", "0.5711993", "0.5704666", "0.5703236", "0.5703189", "0.5695782", "0.56947726", "0.56787944", "0.56624997", "0.5653135", "0.5644982", "0.56401986", "0.5631162", "0.56289107", "0.5628255", "0.5627326", "0.56249136", "0.5621784", "0.5602643", "0.5601481", "0.5599363", "0.5594509", "0.5588168", "0.55821586" ]
0.7681955
0
Get the [prod_category_shipping] column value.
public function getProdCategoryShipping() { return $this->prod_category_shipping; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getShippingCategoryId();", "protected function getShippingCity()\n {\n $formatter = new \\Dotpay\\Tool\\StringFormatter\\Name();\n return $this->checkoutSession->getLastRealOrder()->getShippingAddress() ? $formatter->format($this->checkoutSession->getLastRealOrder()->getShippingAddress()->getCity()) : null;\n }", "private function getShippingClass() {\n $classId = $this->wooData->getShippingClassId();\n $classTerm = get_terms([\n 'taxonomy' => 'product_shipping_class',\n 'include' => $classId,\n 'number' => 1,\n 'hide_empty' => false,\n ]);\n\n if (is_wp_error($classTerm) || !$classTerm) return _wpcc('No shipping class');\n if (is_array($classTerm)) $classTerm = $classTerm[0];\n\n /** @var WP_Term $classTerm */\n return $classTerm->name;\n }", "protected function getShippingCountry()\n {\n return $this->checkoutSession->getLastRealOrder()->getShippingAddress() ? strtoupper($this->checkoutSession->getLastRealOrder()->getShippingAddress()->getCountryId()) : null;\n }", "public function getShippingCountry()\n {\n return $this->getParameter('shippingCountry');\n }", "public function getShipping()\r\n {\r\n return $this->shipping;\r\n }", "public function getDisplayTotalShippingAttribute()\n {\n return Shop::format($this->totalShipping);\n }", "public function getShipping()\n {\n return $this->shipping;\n }", "public function getShipping()\n {\n return $this->shipping;\n }", "public function getShipping()\n {\n return $this->shipping;\n }", "public function getShippedValue()\n {\n return defined('static::SHIPPED_VALUE') ? static::SHIPPED_VALUE : 'shipped';\n }", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function getShippingCost()\r\n {\r\n return $this->shipping_cost;\r\n }", "public function getShippingCity()\n {\n return $this->getParameter('shippingCity');\n }", "public function getStdShipToCd()\n {\n return $this->std_ship_to_cd;\n }", "public function setProdCategoryShipping($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_category_shipping !== $v) {\n $this->prod_category_shipping = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_CATEGORY_SHIPPING] = true;\n }\n\n if ($this->aTblShippingCategories !== null && $this->aTblShippingCategories->getProdShippingPriceId() !== $v) {\n $this->aTblShippingCategories = null;\n }\n\n return $this;\n }", "public function getShippingCode()\n {\n $result = parent::getShippingCode();\n return $result;\n }", "function getShippingPrice(){\n\t\t$data = $this->_collectShippingInfo();\n\t\tif(Mage::getModel(\"tax/config\")->displayCartShippingExclTax()) return $data->getShippingExclTax();\n\t\telse return $data->getShippingInclTax();\n\t}", "public function getShippingType()\n {\n return $this->shippingType;\n }", "public function getShippingId() \n {\n if (!$this->hasShippingId())\n {\n $this->shippingId = '';\n }\n\n return $this->shippingId;\n }", "public function getShipping();", "public function getShippingCost();", "public function getCalculatedShippingDiscount()\n {\n return $this->calculatedShippingDiscount;\n }", "public function getShippingAddress(){\n return $this->_getData(self::SHIPPING_ADDRESS);\n }", "private function getShippingCost($variation):string\n {\n $shippingCost = null;\n if(isset($this->shippingCostCache) && array_key_exists($variation['data']['item']['id'], $this->shippingCostCache))\n {\n $shippingCost = $this->shippingCostCache[$variation['data']['item']['id']];\n }\n if(!is_null($shippingCost) && $shippingCost != '0.00')\n {\n return $shippingCost;\n }\n return '';\n }", "public function get_shipping_cost()\n {\n $products = $this->get();\n $shipping = 0;\n if (! empty($products)) {\n foreach ($products as $product) {\n if ($product['weight'] <= 200) {\n $shipping += 1.00 * ($_SESSION['cart'][$product['id']]);\n } elseif ($product['weight'] <= 500) {\n $shipping += 3.00 * ($_SESSION['cart'][$product['id']]);\n } elseif ($product['weight'] <= 800) {\n $shipping += 5.00 * ($_SESSION['cart'][$product['id']]);\n } elseif ($product['weight'] <= 1000) {\n $shipping += 8.00 * ($_SESSION['cart'][$product['id']]);\n } elseif ($product['weight'] <= 1500) {\n $shipping += 8.00 * ($_SESSION['cart'][$product['id']]);\n } elseif ($product['weight'] <= 1500) {\n $shipping += 8.00 * ($_SESSION['cart'][$product['id']]);\n } else {\n $shipping += 20.00 * ($_SESSION['cart'][$product['id']]);\n }\n }\n return $shipping; \n }\n else {\n return 0.00;\n }\n\n }", "public function shippingCosts(): string\n {\n return $this->rate->price;\n }", "public function getShippingKey()\n {\n return $this->shippingKey;\n }", "public function getShippingKey()\n {\n return $this->shippingKey;\n }", "public function getSellerShipping() {\r\n return Mage::getResourceModel ( 'eav/entity_attribute' )->getIdByCode ( 'catalog_product', 'seller_shipping_option' );\r\n }", "public function getProduct_category () {\n\t$preValue = $this->preGetValue(\"product_category\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_category\")->preGetData($this);\n\treturn $data;\n}", "public function getShippingPrice() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->shippingPrice;\r\n\t}", "public function getShipment()\n {\n /** @var $shipping \\Magento\\Rma\\Model\\Shipping */\n $shipping = $this->_shippingFactory->create();\n return $shipping->getShippingLabelByRma($this->getRma());\n }", "public function getSubtotalShipping()\n {\n $this->initializeSubtotals();\n\n return $this->getIfSet('shipping', $this->data->amount->subtotals);\n }", "protected function getShippingPostcode()\n {\n return $this->checkoutSession->getLastRealOrder()->getShippingAddress() ? $this->checkoutSession->getLastRealOrder()->getShippingAddress()->getPostcode() : null;\n }", "public function getShipcountry()\n {\n return $this->shipcountry;\n }", "public function getTotalShippingAttribute()\n {\n if (empty($this->shopCalculations)) $this->runCalculations();\n return round($this->shopCalculations->totalShipping, 2);\n }", "public function getPromotionalShippingDiscountDetails()\n {\n return $this->promotionalShippingDiscountDetails;\n }", "public function getShippingStatus()\n {\n return $this->status ?: '';\n }", "function getPaypalShippingAddress()\n {\n return $this->getPaypalAddress('shipping');\n }", "public function getAddressShipping()\n {\n return $this->addressShipping;\n }", "public function getCartShippingMethod()\n {\n }", "public function getTblShippingCategories(ConnectionInterface $con = null)\n {\n if ($this->aTblShippingCategories === null && ($this->prod_category_shipping !== null)) {\n $this->aTblShippingCategories = ChildTblShippingCategoriesQuery::create()->findPk($this->prod_category_shipping, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aTblShippingCategories->addTblProdInfos($this);\n */\n }\n\n return $this->aTblShippingCategories;\n }", "public function shippingCost()\n {\n return $this->shippingCalculator->run($this);\n }", "public function getEmailShippingLabelDetail()\n {\n return isset($this->emailShippingLabelDetail) ? $this->emailShippingLabelDetail : null;\n }", "private function getShippingData()\n {\n $isOrderVirtual = $this->order->getIsVirtual();\n $orderParams = null;\n\n if ($isOrderVirtual) {\n $orderParams = $this->order->getBillingAddress();\n } else {\n $orderParams = $this->order->getShippingAddress();\n }\n\n return $orderParams->getData();\n }", "public function getShippingDiscountAmount()\n {\n return $this->shippingDiscountAmount;\n }", "public function getShippingInformation(){\n return $this->_getData(self::SHIPPING_INFORMATION);\n }", "function get_item_shipping() {\n\t}", "public function getFlatShippingDiscount()\n {\n return $this->flatShippingDiscount;\n }", "public function getShippingOptionId(){\n return $this->shippingOptionId;\n }", "public function getStdShipToBrnchCd()\n {\n return $this->std_ship_to_brnch_cd;\n }", "public function getShippingAddress()\n {\n return Mage::getSingleton('checkout/cart')->getQuote()->getShippingAddress();\n }", "public function getShippingInfo()\n {\n return $this->shippingInfo;\n }", "public function getShippingServiceName(){\n if(!$this->shippingServiceName){\n return $this->getCarrierServiceName();\n }\n return $this->shippingServiceName;\n }", "public function get_cart_shipping_total() {\n\t\tif ( 0 < $this->get_shipping_total() ) {\n\n\t\t\tif ( $this->display_prices_including_tax() ) {\n\t\t\t\t$return = wc_price( $this->shipping_total + $this->shipping_tax_total );\n\n\t\t\t\tif ( $this->shipping_tax_total > 0 && ! wc_prices_include_tax() ) {\n\t\t\t\t\t$return .= ' <small class=\"tax_label\">' . WC()->countries->inc_tax_or_vat() . '</small>';\n\t\t\t\t}\n\n\t\t\t\treturn $return;\n\t\t\t} else {\n\t\t\t\t$return = wc_price( $this->shipping_total );\n\n\t\t\t\tif ( $this->shipping_tax_total > 0 && wc_prices_include_tax() ) {\n\t\t\t\t\t$return .= ' <small class=\"tax_label\">' . WC()->countries->ex_tax_or_vat() . '</small>';\n\t\t\t\t}\n\n\t\t\t\treturn $return;\n\t\t\t}\n\t\t} else {\n\t\t\treturn __( 'Free!', 'woocommerce' );\n\t\t}\n\t}", "public function getShippingAmount();", "public function TotalPackageShipping() {\n\treturn $this->nMaxShPkg;\n }", "private function getShippingKey()\n {\n $result = '';\n if ($this->getQuoteId() !== null) {\n try {\n $quote = $this->quoteRepository->get($this->getQuoteId(), ['*']);\n\n if ($quote->getShippingAddress() !== null\n && $quote->getShippingAddress()->getCustomerAddressId() !== null\n ) {\n $result = $this->keyCustomerAddress . $quote->getShippingAddress()->getCustomerAddressId();\n }\n } catch (NoSuchEntityException $e) {\n // If no such entity, skip\n }\n }\n return $result;\n }", "public function getCategory6()\n {\n if (array_key_exists(\"category6\", $this->_propDict)) {\n return $this->_propDict[\"category6\"];\n } else {\n return null;\n }\n }", "public function getShippingInfo();", "public function getFreeShipping() {\n return $this->item->getFreeShipping();\n }", "public function getShippingPhone()\n {\n return $this->getParameter('shippingPhone');\n }", "public function getShippingDiscountAmount();", "public function getShippingMethod()\n {\n return $this->shippingMethod;\n }", "protected function getShippingStreet()\n {\n\n $streetOriginal = $this->checkoutSession->getLastRealOrder()->getShippingAddress() ? $this->checkoutSession->getLastRealOrder()->getShippingAddress()->getStreet() : null;\n $streetData = is_array($streetOriginal) ? implode(' ', $streetOriginal) : $streetOriginal;\n\n return $streetData;\n }", "public function getShippingPostcode()\n {\n return $this->getParameter('shippingPostcode');\n }", "public function getShippingOption()\n {\n if($this->shippingOptionId) {\n $shippingOption = Shop_ShippingOption::create()->find($this->shippingOptionId);\n if(is_a($shippingOption,'Shop_ShippingOption') && $shippingOption->id){\n return $shippingOption;\n }\n }\n return null;\n }", "public function getShippingDescription();", "public function getShipcity()\n {\n return $this->shipcity;\n }", "protected function getStoredShippingData()\n {\n $group_key = isset($this->shipping_info['keys']['group_key']) ? $this->shipping_info['keys']['group_key'] : 0;\n $shipping_id = isset($this->shipping_info['keys']['shipping_id']) ? $this->shipping_info['keys']['shipping_id'] : 0;\n if (isset(Tygh::$app['session']['cart']['shippings_extra']['data'][$group_key][$shipping_id])) {\n return Tygh::$app['session']['cart']['shippings_extra']['data'][$group_key][$shipping_id];\n }\n\n return [];\n }", "public function getCartShippingMethodID()\n {\n }", "public function getShippingDetails();", "public function getDelivery()\n {\n $value = $this->get(self::delivery);\n return $value === null ? (double)$value : $value;\n }", "public function getShippingMethod()\n {\n return $this->getOrder()->getShippingMethod();\n }", "public function getShipping()\n {\n if (is_null($this->shipping)) {\n /** @psalm-var ?list<stdClass> $data */\n $data = $this->raw(self::FIELD_SHIPPING);\n if (is_null($data)) {\n return null;\n }\n $this->shipping = ShippingDraftCollection::fromArray($data);\n }\n\n return $this->shipping;\n }", "function get_shipping_type($shipping_profile_id)\n\t{\n\t\t$shipping_profile_id = mysql_escape_string($shipping_profile_id);\n\t\t$sql = \"SELECT shipping_type FROM nm_partner_shipping_profile WHERE shipping_profile_id = $shipping_profile_id\";\n\t\t$result = Mage::getSingleton('core/resource')->getConnection('core_read')->fetchAll($sql);\n\t\treturn end(end($result));\n\t}", "public function getShippingAmount()\n {\n return $this->getOrder()->getShippingAmount();\n }", "public function getShippingMode()\n {\n if (is_null($this->shippingMode)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_SHIPPING_MODE);\n if (is_null($data)) {\n return null;\n }\n $this->shippingMode = (string) $data;\n }\n\n return $this->shippingMode;\n }", "public function getShippingAddress(): ?ShippingDetail\n {\n return $this->{self::SHIPPING_ADDRESS};\n }", "public function getShippingAddress()\n {\n if (empty($this->_address)) {\n $this->_address = $this->getQuote()->getShippingAddress();\n }\n\n return $this->_address;\n }", "public function get_shipping_cost($total)\n\t{\n\t\tif ($total > 20)\n\t\t{\n\t\t\treturn 2.00;\n\t\t}\n\t\telse if ($total < 50)\n\t\t{\n\t\t\treturn 0.00;\n\t\t}\n\t}", "public function getShippingAndHandling(){\n return $this->_getData(self::SHIPPING_AND_HANDLING);\n }", "protected function getShippingCountry(Mage_Catalog_Model_Product $product){\n $countryNames = array();\n\n $storeIds = $product->getStoreIds();\n\n foreach($storeIds as $id){\n if(array_key_exists($id, $this->allowedCountries)){\n foreach($this->allowedCountries[$id] as $country){\n $countryNames[$country['value']] = $country['value'];\n }\n } else {\n Mage::app()->setCurrentStore($id);\n\n $this->allowedCountries[$id] = Mage::getResourceModel('directory/country_collection')->loadByStore()->toOptionArray(false);\n\n foreach($this->allowedCountries[$id] as $country){\n $countryNames[$country['value']] = $country['value'];\n }\n }\n }\n\n // Set store back to admin\n Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);\n\n ksort($countryNames);\n return implode(',', $countryNames);\n }", "public function column_category( $request ) {\n\t\trequire_once( WP_PLUGIN_DIR . '/wordcamp-payments/classes/payment-request.php' );\n\t\t$categories = WCP_Payment_Request::get_payment_categories();\n\t\t$selected_category = get_post_meta( $request->ID, '_camppayments_payment_category', true );\n\n\t\treturn isset( $categories[ $selected_category ] ) ? $categories[ $selected_category ] : '';\n\t}", "public function getShippingMethodName();", "public function getShippingCarrier()\n {\n return $this->shippingCarrier;\n }", "public function getCustomShipping()\n {\n if (is_null($this->customShipping)) {\n /** @psalm-var ?list<stdClass> $data */\n $data = $this->raw(self::FIELD_CUSTOM_SHIPPING);\n if (is_null($data)) {\n return null;\n }\n $this->customShipping = CustomShippingDraftCollection::fromArray($data);\n }\n\n return $this->customShipping;\n }", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getCountryId()\n {\n return $this->getShippingAddress()->getCountryId();\n }", "public function getPacklinkShippingPrice()\n {\n return $this->packlinkShippingPrice;\n }", "public function isCatalogShippingVisible()\n {\n return (\n $this->isCatalogInformationVisible() && Mage::getStoreConfigFlag(self::XML_PATH_CATALOG_DISPLAY_SHIPPING)\n ) ? true : false;\n }", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "private function getShippingCost($deal)\n {\n if ($deal->find('span[class*=space--ml-2 size--all-s overflow--wrap-off]', 0) != null) {\n if ($deal->find('span[class*=space--ml-2 size--all-s overflow--wrap-off]', 0)->children(1) != null) {\n return '<div>' . $this->i8n('shipping') . ' : '\n . $deal->find('span[class*=space--ml-2 size--all-s overflow--wrap-off]', 0)->children(1)->innertext\n . '</div>';\n } else {\n return '<div>' . $this->i8n('shipping') . ' : '\n . $deal->find('span[class*=text--color-greyShade flex--inline]', 0)->innertext\n . '</div>';\n }\n } else {\n return '';\n }\n }", "public function getShippingAddress()\n {\n if (is_null($this->shippingAddress)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_SHIPPING_ADDRESS);\n if (is_null($data)) {\n return null;\n }\n\n $this->shippingAddress = BaseAddressModel::of($data);\n }\n\n return $this->shippingAddress;\n }", "public function getShipcom()\n {\n return $this->shipcom;\n }", "public function getOrderShippingCost($params, $shipping_cost)\r\n {\r\n return $shipping_cost;\r\n return false; // carrier is not known\r\n }", "public function getGenShippingLabel(){\n\t\tif(null !== $this->getGenerateShippingLabel()){ //run only once\n\t\t\treturn $this->getGenerateShippingLabel();\n\t\t} //TODO: Review - should function calculate the flag whenever it is invoked?\n\t\tif(!isset($this->sellerPartner)){\n\t\t\t$errMsg = \"SellerPartner is not set for order: \" . $this->poNumber;\n\t\t\t$this->logger->LogError(\"NewOrder:getGenShippingLabel: \" . $errMsg);\n\t\t\tthrow new Exception($errMsg);\n\t\t}\n\t\t$db = new ediSqlNew($this->trader);\n\t\t$scacArr = $db->getCarrierShippingCodeInfo ( $this->getTrader()->getId (), $this->getShipmentCarrier () );\n\t\t$carrier = strtoupper($scacArr['partner_id']);\n\t\tif(strtoupper($this->sellerPartner->getGenShippingLabel()) == 'NO'){\n\t\t\t$this->setGenerateShippingLabel(false);\n\t\t}elseif ($carrier == \"FEDEX\" || $carrier == \"UPS\") {\n\t\t\t$this->setGenerateShippingLabel(true);\n\t\t}else{\n\t\t\t$this->setGenerateShippingLabel(false);\n\t\t}\n\t\treturn $this->getGenerateShippingLabel();\n\t}", "public function getShippingMethod() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->shippingMethod;\r\n\t}" ]
[ "0.6467912", "0.63609004", "0.6302341", "0.62680554", "0.6178654", "0.61362493", "0.61239505", "0.6115321", "0.6115321", "0.6115321", "0.6075325", "0.6036468", "0.5938521", "0.5933263", "0.590516", "0.5889088", "0.5855242", "0.58290136", "0.5825828", "0.58234787", "0.5716927", "0.57014143", "0.5666732", "0.5613612", "0.5606244", "0.55914503", "0.55908465", "0.55702543", "0.55702543", "0.55473435", "0.55295134", "0.55084366", "0.55047363", "0.5495022", "0.5492241", "0.5489094", "0.5481333", "0.5479655", "0.5474458", "0.54660434", "0.5463833", "0.5458343", "0.54480124", "0.54403245", "0.5432607", "0.54093003", "0.54023045", "0.5395733", "0.53877246", "0.5384324", "0.5359664", "0.53459644", "0.5345528", "0.53321046", "0.5324553", "0.53232473", "0.5322804", "0.5309573", "0.5295767", "0.52935934", "0.52868754", "0.5283012", "0.5275706", "0.5272888", "0.52693874", "0.5266923", "0.5265538", "0.525163", "0.52501", "0.52429485", "0.5238448", "0.52363026", "0.5230277", "0.5223743", "0.5212916", "0.5211305", "0.52085274", "0.520199", "0.5200253", "0.518592", "0.5177885", "0.5174809", "0.5173484", "0.5163544", "0.513132", "0.51304376", "0.51293266", "0.51272655", "0.51142013", "0.51112866", "0.5109992", "0.5106048", "0.5095455", "0.5084716", "0.5083237", "0.5077676", "0.5063833", "0.50602734", "0.50548404", "0.50536543" ]
0.82064396
0
Get the [prod_writeup] column value.
public function getProdWriteup() { return $this->prod_writeup; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdWriteup($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_writeup !== $v) {\n $this->prod_writeup = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_WRITEUP] = true;\n }\n\n return $this;\n }", "public function getProdKeywordsWriteup()\n {\n return $this->prod_keywords_writeup;\n }", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "public function getWriteApiUsage() {\n return @$this->attributes['write_api_usage'];\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getShippedValue()\n {\n return defined('static::SHIPPED_VALUE') ? static::SHIPPED_VALUE : 'shipped';\n }", "public function getOutputProperty(): ?string\n {\n return $this->output;\n }", "public function getBuildProperty($key)\n {\n return $this->database ? $this->database->getBuildProperty($key) : '';\n }", "public function toValue(): string\n {\n return (string) $this->pdoStatement->fetchColumn();\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function get_value() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"gtmetrix\";\n $return = $wpdb->get_results( \"SELECT * FROM $table_name ORDER BY id DESC LIMIT 1\" );\n return $return[0];\n }", "public function getUpn(): ?string {\n $val = $this->getBackingStore()->get('upn');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'upn'\");\n }", "public function sqlValue()\n {\n return ($this->arrConfig['operator'] == 'like' ? ('%' . $this->arrConfig['value'] . '%') : $this->arrConfig['value']);\n }", "public function GetCartRecord_toWrite() {\n\t$rcCart = $this->GetCartRecord_ifWriteable();\n\tif (is_null($rcCart)) {\t// If current Cart is not writeable...\n\techo 'GOT TO '.__FILE__.' line '.__LINE__.'<br>';\n\t // ...then create a new one:\n\t $idSess = $this->GetKeyValue();\n\t $idCart = $this->CartTable()->Create($idSess);\n\techo \"SESSION ID=[$idSess] CART ID=[$idCart]<br>\";\n\t $this->SetCartID($idCart);\n\t $this->SetCartRecord_fromCurrentID();\n\t $rc = $this->GetCartRecord_cached();\n\t $this->Save();\n\t}\n\treturn $rcCart;\n }", "public function getProductPurchaseDetail($colname='',$whrValue='',$type=''){\r\n if($colname != ''){\r\n if($type == 'proddownload'){\r\n $this->CI->db->select('SUM('.$colname.') AS prodcnt');\r\n $this->CI->db->from('ts_purchaserecord');\r\n $this->CI->db->where($whrValue);\r\n $rs=$this->CI->db->get();\r\n $res = $rs->result_array();\r\n return (($res[0]['prodcnt']!='') ? $res[0]['prodcnt'] : '0') ;\r\n\t\t\t}\r\n\t\t\telse if($type == 'prodpurchase'){\r\n $res = $this->CI->DatabaseModel->access_database('ts_purchaserecord','select','',$whrValue);\r\n return (!empty($res) ? count($res) : '0') ;\r\n\t\t\t}\r\n }\r\n else {\r\n return '0';\r\n }\r\n die();\r\n\t}", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "function get_value_db()\n\t{\n\t\treturn $this->value;\n\t}", "public function getValue()\n {\n return $this->_db->prepareStringToOut($this->_value);\n }", "public function toValue() {\r\n\t\treturn $this->PDOStatement->fetchColumn();\r\n\t}", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function getExportValue()\n {\n return $this->Value;\n }", "public function getSqlCol()\n {\n return $this->sqlCol;\n }", "public function getProdWingspan()\n {\n return $this->prod_wingspan;\n }", "public function getValue($idx)\n {\n return (($dbname = $this->_getDbname($idx))!=null\n ? $this->columns[$dbname]->value\n : null);\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "function GetColVal($col_name) {\n\t\treturn $this->$col_name;\n\t}", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getPrimaryKey()\n {\n return $this->getProdId();\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "protected function getSkuColumnName()\n {\n return $this->skuColumnName;\n }", "public function getProdSaveas()\n {\n return $this->prod_saveas;\n }", "public function getUniqueKey()\n\t{\n\t\t$product = $this->getCurrent();\n\t\t\n\t\tif (is_null($product)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$sku = $product->getSku();\n\t\tMage::log(\"Got SKU: $sku\");\n\t\t\n\t\treturn $sku;\n\t}", "public function getSingleRowValue($table, $column, $postID): string {\n global $wpdb;\n $table = $wpdb->prefix . $table;\n $data = $wpdb->get_var(\"SELECT {$column} FROM {$table} WHERE post_id = {$postID};\");\n if ($data) {\n return $data;\n }\n return '';\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "function getAssignedUnixName() {\n\t\treturn $this->data_array['assigned_unixname'];\n\t}", "function getConfigPropertyValue($config, $pagename, $property){\n\t\treturn $config['query']['results'][$pagename]['printouts'][$property][0];\n\t}", "public function getHighestCommittedUSN()\n {\n return $this->getRootDse()->getHighestCommittedUSN();\n }", "function press_release($pid)\n{\n\n\t$pname=mysql_fetch_array(mysql_query(\"select press_release from manage_property where pid='$pid'\"));\n\t return $pname['press_release'];\n}", "public function getStringValue()\n {\n if ($this->defaultValue === $this->getValue()) {\n return '';\n }\n\n return $this->value . 'W';\n }", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "public function get_resource_qty() {\n\t\t\n\t\t$bkap_resource_qty = get_post_meta( $this->get_id(), '_bkap_resource_qty', true );\n\t\t\n\t\treturn $bkap_resource_qty;\n\t}", "public function getProduction() {\n return isset($this->configuration['production']) ? $this->configuration['production'] : '';\n }", "public function getUomUnwrapped()\n {\n return $this->readWrapperValue(\"uom\");\n }", "public function get_saved_value() {\n\t\treturn $this->saved_value;\n\t}", "public function get_value() {\r\n\t\tif ( $this->key === 'job_title' ) {\r\n\t\t\treturn $this->listing->get_name();\r\n\t\t}\r\n\r\n\t\tif ( $this->key === 'job_description' ) {\r\n\t\t\treturn $this->listing->get_data('post_content');\r\n\t\t}\r\n\r\n\t\t// othewise, retrieve from wp_postmeta\r\n\t\treturn get_post_meta( $this->listing->get_id(), '_'.$this->key, true );\r\n\t}", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "public function getItembPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(7, $this->_result)) return (string) $this->_result[7];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getItembPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getItembPt', __LINE__, __FILE__);\n\t}", "public function value ()\n {\n return $this->context->storage->value ($this->name);\n }", "public function getDataReleaseId(): string\n {\n return $this->dataReleaseId;\n }", "public function getStoredValue()\n {\n return $this->_fields['StoredValue']['FieldValue'];\n }", "function getRecordCol($index) {\n return $this->records[$index]->getCol();\n }", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getProductionType() {\n\t\treturn $this->_oProdType;\n\t}", "public function get_repo(){\n $this->pg_db->select(\"cfg_value\");\n $this->pg_db->from(\"configuration\");\n $this->pg_db->where(\"cfg_sub_category\", \"ppe.id\");\n $result = $this->pg_db->get();\n $data = '';\n foreach ($result->result() as $rows) {\n $data = $rows->cfg_value;\n }\n return $data;\n }", "public function get_value() {\n\t\t$row = $this->get_row();\n\t\tif ($row) {\n\t\t\treturn current($row);\n\t\t}\n\t}", "protected function value()\n {\n return $this->row($this->row);\n }", "public function getStdShipToCd()\n {\n return $this->std_ship_to_cd;\n }", "public function newValue()\n\t{\n\t\tif(is_null($this->new_value) or strlen($this->new_value) == '')\n\t\t{\n\t\t\treturn $this->revisionNullString;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tif(strpos($this->key, '_id'))\n\t\t\t{\n\t\t\t\t$model = str_replace('_id', '', $this->key);\n\t\t\t\t$item = $model::find($this->new_value);\n\n\t\t\t\tif(!$item)\n\t\t\t\t{\n\t\t\t\t\treturn $this->format($this->key, $this->revisionUnknownString);\n\t\t\t\t}\n\n\t\t\t\treturn $this->format($this->key, $item->identifiableName());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\t// Just a failsafe, in the case the data setup isn't as expected.\n\t\t}\n\n\t\treturn $this->format($this->key, $this->new_value);\n\t}", "protected function _storePgtSql()\n\t{\n\t\treturn 'INSERT INTO ' . $this->getTable() . ' (pgt_iou, pgt) VALUES (:pgt_iou, :pgt)';\n\t}", "public function setProdKeywordsWriteup($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_keywords_writeup !== $v) {\n $this->prod_keywords_writeup = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP] = true;\n }\n\n return $this;\n }", "public function getValue() {\n \n return $this->toScalar();\n }", "protected function getOurValue()\n {\n $ourModel = $this->getOurModel();\n\n if ($ourModel->loaded()) {\n return $this->our_field\n ? $ourModel->get($this->our_field)\n : $ourModel->getId();\n }\n\n // create expression based on existing conditions\n return $ourModel->action('field', [\n $this->getOurFieldName(),\n ]);\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "private function db_write($table, $col, $val) {\r\n $q = \"INSERT INTO $table ($col) VALUES ($val)\";\r\n // DO SOMETHING TO WRITE DOWN THE DATA\r\n return true;\r\n }", "function ajan_get_db_version_raw() {\n\t\t$ajan = activitynotifications();\n\t\treturn !empty( $ajan->db_version_raw ) ? $ajan->db_version_raw : 0;\n\t}", "public function getValue()\n {\n return 1;\n }", "protected function getPrimaryKeyColumnName()\n {\n return ColumnKeys::SKU;\n }", "public function getStdShipToBrnchCd()\n {\n return $this->std_ship_to_brnch_cd;\n }", "public function getAccess()\n\t{\n\t\t$column = self::COL_ACCESS;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "protected function _retrievePgtSql()\n\t{\n\t\treturn 'SELECT pgt FROM ' . $this->getTable() . ' WHERE pgt_iou = :pgt_iou';\n\t}", "private function getWritableProductFeedFolder() {\n if (is_writable(DIR_MODIFICATION)) {\n return DIR_MODIFICATION;\n }\n if (is_writable(DIR_LOGS)) {\n return DIR_LOGS;\n }\n return false;\n }", "public function generateProductSKU()\n {\n return $this->skuString . int_random();\n }", "function getDestCountVarName() {\n return $this->destCountVarName;\n }", "function rawpheno_function_data() {\n $sql = \"SELECT plant_project_id FROM pheno_plant_project\";\n $stock_count = db_query($sql)\n ->rowCount();\n\n return ($stock_count <= 0) ? 0 : 1;\n}", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function fetchColumn() {\n if ($this->result === true) {\n return false;\n }\n\n // Are we running PHP >=8.1?\n if (PHP_VERSION_ID >= 80100) {\n $value = $this->result->fetch_column();\n return ($value === null || $value === false) ? $value : (string) $value;\n }\n\n // Fallback to traditional approach\n $row = $this->result->fetch_row();\n return $row ? $row[0] : false;\n }", "public function getProductSKU()\n {\n }", "function getProfitLastWeek(){\n global $db;\n \n $get = getWeek();//Pulls most recent week from purchasing table\n $week = $get['week'];\n \n $stmt=$db->prepare(\"SELECT SUM(revenue) - SUM(expense) AS 'profit' FROM invoices WHERE week = :week\");\n \n $binds=array(\n \":week\"=>$week\n );\n $results= false;\n if($stmt->execute($binds) && $stmt->rowCount()>0){\n $results = $stmt->fetch(PDO::FETCH_ASSOC);\n }\n return $results;\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getProduct_type () {\n\t$preValue = $this->preGetValue(\"product_type\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_type;\n\treturn $data;\n}", "public function getProductIdentifier()\n {\n $value = $this->_config->get('dataprocessing/products/identifier');\n\n if ($value === null) {\n $value = 'sku';\n }\n\n return $value;\n }", "public function getPublished()\n {\n return $this->systemProperties->getPublished();\n }", "public function getEndbPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(8, $this->_result)) return (string) $this->_result[8];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getEndbPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getEndbPt', __LINE__, __FILE__);\n\t}", "public function getSku()\n {\n $skuAttribute = $this->helper->getSkuConfig();\n\n return $this->getAttribute($skuAttribute);\n }", "public function getItemPl() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(10, $this->_result)) return (string) $this->_result[10];\n\t\t\telse parent::throwGetColException('Not set ProjectsListingsModel::getItemPl', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From ProjectsListingsModel::getItemPl', __LINE__, __FILE__);\n\t}", "public function getUpdPgId()\n {\n return $this->upd_pg_id;\n }", "public function getUpdUserId()\n {\n return $this->upd_user_id;\n }", "public function getSku(): ?string\n {\n return isset($this->Sku) ? $this->Sku : null;\n }", "public function getStatproKey()\n\t{\n\t\treturn $this->statpro_key;\n\t}", "public function getPropertyValue() {\n\t\t$propertyValue = parent::getPropertyValue();\n\t\tif ($propertyValue === NULL)\n\t\t\treturn FALSE;\n\t\treturn $propertyValue;\n\t}", "public function scalar(): ?string\n {\n if ($this->shouldEmulateExecution()) {\n return null;\n }\n\n $record = $this->one();\n\n if ($record !== null) {\n return $record->hasAttribute($this->attribute) ? $record->getAttribute($this->attribute) : null;\n }\n\n return null;\n }", "public function iN_WeeklyTotalSubscriptionEarning() {\n\t\t$query = mysqli_query($this->db, \"SELECT SUM(admin_earning) AS WeekTotalEarnSubscription FROM i_user_subscriptions WHERE status = 'active' AND WEEK(created) = WEEK(NOW())\") or die(mysqli_error($this->db));\n\t\t$row = mysqli_fetch_array($query, MYSQLI_ASSOC);\n\t\treturn isset($row['WeekTotalEarnSubscription']) ? $row['WeekTotalEarnSubscription'] : '0.00';\n\t}", "public function value()\n {\n return implode(' ', $this->all());\n }", "public function getCheckValue()\n {\n return $this->check !== null ? (string) $this->check : null;\n }", "public function getProductWeightUnit()\n {\n return (string) $this->getConfig(\n 'packages/global_settings_default_weight_unit');\n }" ]
[ "0.60206604", "0.5464475", "0.5196237", "0.48941946", "0.4861912", "0.48147532", "0.4788214", "0.47757304", "0.47574437", "0.46825048", "0.46481758", "0.46395206", "0.46394047", "0.4621653", "0.4621204", "0.4612771", "0.46043685", "0.4603395", "0.4593313", "0.45583618", "0.45327377", "0.4518181", "0.4511263", "0.45051605", "0.44832617", "0.44806296", "0.44757468", "0.44704503", "0.44370905", "0.44300842", "0.44202808", "0.44180983", "0.4410568", "0.4409975", "0.44092375", "0.44084564", "0.43928292", "0.43887585", "0.43760577", "0.43751663", "0.43739215", "0.43678", "0.43672228", "0.4357386", "0.43486825", "0.43418285", "0.43412995", "0.43411785", "0.43311685", "0.43238643", "0.4320926", "0.4314531", "0.42974102", "0.42912042", "0.42882368", "0.42842594", "0.42730024", "0.42632708", "0.4255748", "0.42547587", "0.42534924", "0.42503914", "0.4245764", "0.42436534", "0.42357033", "0.42282236", "0.42265755", "0.42217803", "0.42212224", "0.4218195", "0.42166048", "0.42122525", "0.42115775", "0.42097977", "0.42096886", "0.42088875", "0.4200896", "0.41989765", "0.41952562", "0.41936207", "0.41908696", "0.4186755", "0.41781905", "0.4170337", "0.41615123", "0.4155655", "0.41535097", "0.41518232", "0.41454056", "0.4145062", "0.41377836", "0.4133957", "0.41334414", "0.41315144", "0.41309544", "0.41297847", "0.41287914", "0.4126046", "0.41232556", "0.41228393" ]
0.7585709
0
Get the [prod_length] column value.
public function getProdLength() { return $this->prod_length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdLength($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_length !== $v) {\n $this->prod_length = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_LENGTH] = true;\n }\n\n return $this;\n }", "public function getProdHeight()\n {\n return $this->prod_height;\n }", "public function getColumnLength()\n {\n $columnLength = self::INITIAL_COLUMN_LENGTH;\n while ($columnLength < $this->maximumLength) {\n $columnLength *= self::COLUMN_LENGTH_STEPS;\n }\n\n return $columnLength;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength() {\n \n return $this->_length;\n }", "public function getLength() {\r\n return $this->length;\r\n }", "public function getLength()\r\n {\r\n return $this->length;\r\n }", "public function getFieldLength()\n {\n return $this->FieldLength;\n }", "public function getLength() {\n return $this->_length;\n }", "public function getLength()\n\t\t{\n\t\t\treturn $this->length;\n\t\t}", "public function length() {\n \n return $this->getLength();\n }", "private final function getLength() {\n\t\t\treturn $this->length;\n\t\t}", "public function getLen()\n {\n $value = $this->get(self::LEN);\n return $value === null ? (integer)$value : $value;\n }", "public function getNbProd()\n {\n return $this->CollProduit->taille();\n }", "public function width()\n {\n return $this->setRightOperand(PVar::WIDTH);\n }", "public function length()\n {\n return $this->length;\n }", "function getLength(): int\n {\n return $this->length;\n }", "public function getLength() : int\n {\n return $this->b[$this->offset];\n }", "public function getLength() {}", "public function getLength() {}", "public function getLength() {}", "public function getLength() {}", "function length() {\n return $this->norm();\n }", "public function getLength()\n {\n return $this->int_length;\n }", "public function getLen()\n {\n return $this->_len;\n }", "public function getQueryStringLengthValue()\n {\n return $this->readWrapperValue(\"query_string_length\");\n }", "public function length()\n {\n return $this->provider->length();\n }", "public function getMaxLength()\n {\n return $this->__get(self::FIELD_MAXLENGTH); \n }", "public function getExtensionLength()\n {\n return $this->_fields['ExtensionLength']['FieldValue'];\n }", "public function getProdScale()\n {\n return $this->prod_scale;\n }", "public function getMaxAttributeLength()\n {\n return (int)$this->floatValue('recorded.value.max.length', 1200);\n }", "public function getSize()\n {\n return $this->length;\n }", "public function getLengthUnitAttribute()\n {\n return new Length($this->length, $this->dimensions_unit);\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getMaxLength() {\n return $this->maxLength;\n }", "public function getMaxLength()\n {\n return $this->maxLength;\n }", "function getLength ()\n\t{\n\t\treturn $this->_len ; \n\t}", "public function getLength();", "public function getWidth()\n {\n if (null === $this->width && !$this->initialised) {\n $this->refreshDimensions();\n }\n\n if (null === $this->width) {\n $width = getenv('COLUMNS');\n if (false !== $width) {\n $this->width = (int) trim($width);\n }\n }\n\n return $this->width ?: static::DEFAULT_WIDTH;\n }", "public function getLength(): int;", "public function getLength(): int;", "public function getWidthUnitAttribute()\n {\n return new Length($this->width, $this->dimensions_unit);\n }", "function getClassSubLength($classId) {\r\n $this->db->select('classSubLength');\r\n $this->db->where('id', $classId);\r\n\r\n $row = $this->db->get('class')->row();\r\n return $row->classSubLength;\r\n }", "public function getColumns()\n {\n return strlen($this->string);\n }", "public function getWidth()\n {\n return $this->getProperty(\"Width\");\n }", "public function getMaxLength() {}", "public function setLength($var)\n {\n GPBUtil::checkInt64($var);\n $this->length = $var;\n\n return $this;\n }", "public function Size() {\n return $this->RowCount() * $this->_coln;\n }", "public function getLength() {\n\t\treturn null;\n\t}", "public function getMaxColumnNameLength();", "public function getWidth()\n {\n return $this->get('width');\n }", "function getBody_length($id){\n\t$crud = new CRUD();\n\t$crud->connect();\n\n\t$crud->sql(\"select * from pigs_tbl where pig_id='{$id}'\");\n\t$r = $crud->getResult();\n\tforeach($r as $rs){\n\t\treturn $rs['body_length'];\n\n\t}\n\t$crud->disconnect();\n}", "public function length($length = null)\n {\n if (!is_null($length)) {\n $this->length = (int) $length;\n }\n\n return $this->length;\n }", "function getLength() {\n\t\treturn $this->getAttribute(DOMIT_RSS_ATTR_LENGTH);\n\t}", "public function length() {\n return $this->count();\n }", "public function length()\n {\n return $this->count();\n }", "public function inputLength()\r\n\t{\r\n\t\treturn $this->input_stats['size'];\r\n\t}", "public function getLength(): ?string\n {\n $this->length = $this->DateStart->diff( $this->DateEnd, FALSE);\n return $this->length->format('%d');\n }", "function size()\n\t\t\t{\n\t\t\t\treturn $this->db->order_by('size_id')->get('size');\n\t\t\t}", "public function length($value)\n {\n return 'LEN(' . $value . ')';\n }", "public function initialWidth()\n {\n return $this->setRightOperand(PVar::INITIAL_WIDTH);\n }", "public function getLength()\n {\n return strlen($this->data);\n }", "public function getCompleteLength()\n {\n return $this->complete_length;\n }", "public function getBulletSizeField()\n {\n return $this->bulletSizeField;\n }", "public function length($length = null)\n {\n // TODO: Implement length() method.\n }", "public function getProductLimit() {\r\n\t\t$config = $this->getConfig();\r\n $limit = $this->getData(\"product_count\");\r\n if(!$limit)\r\n $limit = $config[\"limit\"];\r\n return $limit;\r\n }", "public function getKeyLength() {\n\t\treturn $this->current_key_length;\n\t}", "protected function get_max_length(): int\n\t{\n\t\treturn $this->end < $this->total ? $this->length : -1;\n\t}", "public function getLengthBytes()\n {\n return $this->length_bytes;\n }", "public function getLengthUnitValue($value, array $product)\n {\n if (empty($this->_system_units['length_class_description'])) {\n $this->getLengthUnits();\n }\n $units = $this->_system_units['length_class_description'];\n if (!isset($units[$product['length_class_id']])\n ) {\n return 0;\n }\n $all = $this->getAllUnits();\n $unit = $units[$product['length_class_id']]['unit'];\n return $value / $all[$unit]['divider'];\n }", "public function getSizeAttribute()\n {\n return self::SIZES[$this->attributes['size']];\n }", "public function getLenom():string\n {\n return $this->lenom;\n }", "public function size() : int\n {\n return $this->numRows() * $this->numColumns();\n }", "function getLength(): ?int;", "public function get_data_length() {\n return $this->duration;\n }", "public function getTotalLength() {}", "public function getTotalLength() {}", "function getTail_length($id){\n\t$crud = new CRUD();\n\t$crud->connect();\n\n\t$crud->sql(\"select * from pigs_tbl where pig_id='{$id}'\");\n\t$r = $crud->getResult();\n\tforeach($r as $rs){\n\t\treturn $rs['tail_length'];\n\n\t}\n\t$crud->disconnect();\n}", "public function getLengthMax()\n {\n return $this->lengthMax;\n }", "public function size() {\n return count($this->_values) * 32;\n }", "public function getRightColumnSize(): int\n {\n return $this->rightColumnSize;\n }", "function odbc_field_len($result_id, $field_number)\n{\n}", "public function getWidth()\n {\n if (array_key_exists(\"width\", $this->_propDict)) {\n return $this->_propDict[\"width\"];\n } else {\n return null;\n }\n }", "public function length() {\n\t\treturn count($this->_value);\n\t}", "public function field_len($result, $index){\r\n\t\t$obj_field = new ADOFieldObject();\r\n\t\t$obj_field = $result->FetchField($index);\r\n\t\treturn isset($obj_field->max_length) ? $obj_field->max_length : \"\";\r\n\t}", "public function getCarEngineSize(){\r\n\t\t$this->car_engine_size = getValue(\"SELECT engine_size FROM tbl_car WHERE car_id=\".$this->car_id);\r\n\t\treturn $this->car_engine_size;\r\n\t}", "abstract public function getLength();", "public function getStepLength()\n {\n return $this->prototype->getStepLength();\n }", "public function getHeightUnitAttribute()\n {\n return new Length($this->height, $this->dimensions_unit);\n }", "public function getSize($id){\n $getSize = Product::find($id)->size;\n $size = explode(\";\", $getSize);\n return $size;\n }", "public function columnCount()\r\n\t{\r\n\t\treturn intval($this->columnCount);\r\n\t}", "public function lenEapol() { return $this->_m_lenEapol; }", "function getEarlength($id){\n\t$crud = new CRUD();\n\t$crud->connect();\n\n\t$crud->sql(\"select * from pigs_tbl where pig_id='{$id}'\");\n\t$r = $crud->getResult();\n\tforeach($r as $rs){\n\t\treturn $rs['ear_length'];\n\n\t}\n\t$crud->disconnect();\n}" ]
[ "0.6777339", "0.64025635", "0.631446", "0.61475265", "0.61475265", "0.61475265", "0.61475265", "0.61475265", "0.61475265", "0.61475265", "0.61475265", "0.60917467", "0.60769767", "0.60654753", "0.6032441", "0.60309994", "0.59982646", "0.5995489", "0.5982477", "0.59772617", "0.5972856", "0.5950017", "0.5946882", "0.58060277", "0.5777614", "0.5762238", "0.5762238", "0.5762238", "0.5762051", "0.5736043", "0.57212293", "0.57087666", "0.56722987", "0.56611216", "0.5656185", "0.5650477", "0.56500524", "0.56477255", "0.5644708", "0.5630124", "0.55996126", "0.5598491", "0.55931383", "0.55746615", "0.55627596", "0.55486846", "0.5537088", "0.5537088", "0.5524875", "0.5511474", "0.5502958", "0.54980654", "0.54900205", "0.5487115", "0.5481523", "0.54699445", "0.5465956", "0.5465921", "0.5458424", "0.5448969", "0.54354084", "0.5432762", "0.541501", "0.54118353", "0.5410801", "0.5410794", "0.54074347", "0.54027206", "0.53827375", "0.5373746", "0.53731054", "0.5358484", "0.5358228", "0.5356992", "0.53506666", "0.5343328", "0.5340183", "0.5324783", "0.5324477", "0.53202903", "0.53080165", "0.53066856", "0.5285358", "0.5284843", "0.5282902", "0.5271835", "0.5270266", "0.5252887", "0.5243469", "0.5240493", "0.52368283", "0.5228217", "0.5221704", "0.5206406", "0.5203536", "0.52017605", "0.51891464", "0.5183509", "0.5177217", "0.5172845" ]
0.808475
0
Get the [prod_wingspan] column value.
public function getProdWingspan() { return $this->prod_wingspan; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdWingspan($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_wingspan !== $v) {\n $this->prod_wingspan = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_WINGSPAN] = true;\n }\n\n return $this;\n }", "public function getSpan(): int {\n $span = (int) $this->getAttribute('span');\n return $span > 1 ? $span : 1;\n }", "public function getSpan(){\n return $this->_colspan;\n }", "public function getSpan()\n {\n return $this->Span;\n }", "public function getSpanId()\n {\n return $this->span_id;\n }", "public function getW() {\n\t\t\treturn $this->_w;\n\t\t}", "public function getProductWeightUnit()\n {\n return (string) $this->getConfig(\n 'packages/global_settings_default_weight_unit');\n }", "public function getWhse()\n {\n return $this->whse;\n }", "private function largestSeriesProduct($span): int\n {\n $products = [];\n for ($start = 0; $start <= $this->sequenceLength - $span; $start++) {\n $products[] = $this->multiplyStringSection(substr($this->digitSequence, $start, $span));\n }\n return max($products);\n }", "protected function getrowspan(){\n\t\t$y_points=$this->GTemp->struct->YPoints;\n\t\treturn array_search($this->y2, $y_points)-array_search($this->y1, $y_points);\n\t}", "public function getShippedValue()\n {\n return defined('static::SHIPPED_VALUE') ? static::SHIPPED_VALUE : 'shipped';\n }", "public function getWolBar()\n {\n return $this->wolBar;\n }", "public function getIntbwhse()\n {\n return $this->intbwhse;\n }", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "function get_placement() {\n\t\treturn intval($this->settings['row']);\n\t}", "public function getWarehouseID()\n {\n return $this->warehouseID;\n }", "public function getEventWingType() {\n\t\treturn ($this->eventWingType);\n\t}", "public function getWNumber()\n {\n if ($this->isConfirmed()) {\n return $this->wnumber;\n }\n\n return '';\n }", "public function getW() {}", "public function getWKT() {\r\n $wkt = $this->db->query(\"SELECT ST_AsText(geom) AS wkt FROM {$this->table} WHERE id=?\", array($this->id) );\r\n $wkt = $wkt->row()->wkt;\r\n return $wkt;\r\n}", "public function getWind() {\n\n return $this->wind;\n }", "protected function getCurrentWarehouseId()\n\t{\n\t\tstatic $warehouse = 0;\n\n\t\tif ($warehouse == 0)\n\t\t{\n\t\t\t$warehouse = -1;\n\t\t\tif ((int)Tools::getValue('warehouse'))\n\t\t\t\t$warehouse = (int)Tools::getValue('warehouse');\n\t\t\telse if ((int)$this->context->cookie->warehouse)\n\t\t\t\t$warehouse = (int)$this->context->cookie->warehouse;\n\t\t\t$this->context->cookie->warehouse = $warehouse;\n\t\t}\n\n\t\treturn $warehouse;\n\t}", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getPollingStationsNumber()\n {\n return $this->pollingStationsNumber;\n }", "public function getProdHeight()\n {\n return $this->prod_height;\n }", "public function getProductStock()\n {\n /** @var \\Magento\\CatalogInventory\\Model\\Stock\\ItemArray $stockItem */\n $stockItem = $this->stockRegistry->getStockItem(\n $this->getCurrentProduct()->getId(),\n $this->getCurrentProduct()->getStore()->getWebsiteId()\n );\n if ($stockItem->getManageStock() == 0) {\n return 1;\n }\n\n $qty = round($stockItem->getQty());\n if ($qty < 1) {\n if ($stockItem->getBackorders() == 1) {\n return 1;\n }\n\n if ($stockItem->getIsInStock()) {\n return '';\n }\n }\n return $qty;\n }", "public function getLeagueWar()\n {\n $value = $this->get(self::LEAGUE_WAR);\n return $value === null ? (integer)$value : $value;\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getWarehouse(): ?string\n {\n return isset($this->Warehouse) ? $this->Warehouse : null;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getGwPrice() {\n return $this->item->getGwPrice();\n }", "public function getPointOfSale(): string\n {\n return $this->configuration[ConfigurationInterface::POINT_OF_SALE];\n }", "public function getGoodsSn()\n {\n return $this->goods_sn;\n }", "public function spans()\n {\n return $this->spans;\n }", "public function silver(): int\n {\n return $this->pluck('definedTrophies.silver');\n }", "public function max_size( $span ) {\n\t\t$breakpoint_value = end( $this->breakpoints );\n\t\t// Breakpoint name.\n\t\t$breakpoint = key( $this->breakpoints );\n\n\t\t$margin_size = $this->margins[ $breakpoint ];\n\t\t$gutter_size = $this->gutters[ $breakpoint ];\n\t\t$cols = $this->columns[ $breakpoint ];\n\n\t\t$max_container_width = $this->max_width();\n\t\t$max_container_width_in_ems = $this->px_to_em( $max_container_width );\n\t\t$calc = $this->calc( $span, $cols, $max_container_width_in_ems, $margin_size, $gutter_size );\n\t\t$max_size = '(min-width: ' . $max_container_width_in_ems . ') ' . $calc;\n\n\t\treturn $max_size;\n\t}", "private function getWeight()\n\t{\n\t\treturn $this->cart->getWeight();\n\t}", "protected function getShippingWeight(Mage_Catalog_Model_Product $product){\n $weight = (float) $product->getWeight();\n $weight = !empty($weight) ? $weight . ' lb' : '';\n\n return $weight;\n }", "public function largestProduct($span): int\n {\n if (0 == $span) {\n return 1;\n }\n\n $this->validateSpan($span);\n\n return $this->largestSeriesProduct($span);\n }", "public function get_current_week_value()\n {\n // Today is first day of week\n if ((int) RightPress_Helper::get_adjusted_datetime(null, 'w') === RightPress_Helper::get_start_of_week()) {\n return 'midnight';\n }\n else {\n return 'midnight last ' . RightPress_Helper::get_literal_start_of_week();\n }\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getMeasurement()\n {\n return $this->db->get($this->product_measurement);\n }", "public function getProdWriteup()\n {\n return $this->prod_writeup;\n }", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "public function getDwoo()\n\t{\n\t\treturn $this->_dwoo;\n\t}", "public static function getTraceSpanId()\n {\n static::checkInit();\n return static::$traceSpanId;\n }", "public function getWorship()\n {\n return $this->get(self::_WORSHIP);\n }", "public function getSpansLimit()\n {\n return (int)$this->floatValue('spans.limit', 1000);\n }", "public function weight() {\r\n\t\treturn (int)$this->techData['weight'];\r\n\t}", "public function width($manipulation_name = '')\n\t{\n\t\treturn $this->row_field('width');\n\t}", "protected function getcolspan(){\r\n\t\t$x_points=$this->GTemp->struct->XPoints;\r\n\t\treturn array_search($this->x2, $x_points)-array_search($this->x1, $x_points);\r\n\t}", "function getValue($device = null)\n {\n $dev = $this->getDevice($device);\n\n return $dev['usePct'];\n }", "public function getWing0()\n {\n return $this->hasOne(Wings::className(), ['wing_id' => 'wing_id']);\n }", "public function getStdShipToCd()\n {\n return $this->std_ship_to_cd;\n }", "public function getCellValue()\n {\n return $this->get('CellValue');\n }", "public function getCellValue()\n {\n return $this->get('CellValue');\n }", "public function getWing()\n {\n return $this->hasOne(Wings::className(), ['wing_id' => 'wing_id']);\n }", "public static function getSpanid(): int\n {\n $contextData = self::getCoroutineContext(self::DATA_KEY);\n\n return (int)($contextData['spanid'] ?? 0);\n }", "public function getWgname () {\n\t$preValue = $this->preGetValue(\"wgname\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->wgname;\n\treturn $data;\n}", "function _get_product_stock_bystkid($stock_id = 0)\r\n {\r\n return @$this->db->query(\"select available_qty as t from t_stock_info where stock_id = ? and available_qty >= 0 \",$stock_id)->row()->t;\r\n }", "public function getSens() {\n return $this->sens;\n }", "public function getProdScale()\n {\n return $this->prod_scale;\n }", "public function getProdLength()\n {\n return $this->prod_length;\n }", "public function getProductPosition()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product_position', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getPlacementName()\n {\n return $this->placement_name;\n }", "public function getEndPl() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(12, $this->_result)) return (string) $this->_result[12];\n\t\t\telse parent::throwGetColException('Not set ProjectsListingsModel::getEndPl', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From ProjectsListingsModel::getEndPl', __LINE__, __FILE__);\n\t}", "function wcs_custom_get_availability( $availability, $_product ) {\n global $product;\n\t// $koostis = $product->get_attribute( 'goal-number' );\n\n if ( $_product->is_in_stock() ) {\n $availability['availability'] = __($_product->total_sales . '/' . (int)$product->get_meta('sharethewarmth_selling_goal') . (string)' sold!', 'woocommerce');\n }\n // Change Out of Stock Text\n if ( ! $_product->is_in_stock() ) {\n $availability['availability'] = __('Sold Out', 'woocommerce');\n }\n return $availability;\n}", "public function getIntbwhseorig()\n {\n return $this->intbwhseorig;\n }", "protected function getBhp()\n {\n preg_match(\"/\\d+.ps|\\d+.PS/i\", $this->excelRow->model_description, $bhpArr);\n if(!empty($bhpArr))\n {\n return (int) filter_var($bhpArr[0],FILTER_SANITIZE_NUMBER_INT);\n }\n }", "public function getProductPosition()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product_position');\n }", "public function QtyForSale() {\n\treturn $this->Value('QtyForSale');\n }", "public function getStyleWidth()\n\t{\n\t\tif (!$this->getBox()->isForMeasurement() && !$this->getBox()) {\n\t\t\treturn '0';\n\t\t}\n\t\t$width = $this->getBox()->getStyle()->getRules('width');\n\t\tif ('auto' === $width) {\n\t\t\treturn null;\n\t\t}\n\t\t$percentPos = strpos($width, '%');\n\t\tif (false !== $percentPos) {\n\t\t\t$widthInPercent = substr($width, 0, $percentPos);\n\t\t\t$closestBoxDimensions = $this->getBox()->getClosestBox()->getDimensions();\n\t\t\tif (null !== $closestBoxDimensions->getWidth()) {\n\t\t\t\t$parentWidth = $closestBoxDimensions->getInnerWidth();\n\t\t\t\t$style = $this->getBox()->getStyle();\n\t\t\t\t$parentWidth = Math::sub($parentWidth, $style->getHorizontalMarginsWidth());\n\t\t\t\tif ($parentWidth) {\n\t\t\t\t\treturn Math::percent($widthInPercent, $parentWidth);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn $width;\n\t\t}\n\t\treturn null;\n\t}", "public function getSellerShipping() {\r\n return Mage::getResourceModel ( 'eav/entity_attribute' )->getIdByCode ( 'catalog_product', 'seller_shipping_option' );\r\n }", "function _get_product_stock($product_id = 0)\r\n {\r\n return @$this->db->query(\"select sum(available_qty) as t from t_stock_info where product_id = ? and available_qty >= 0 \",$product_id)->row()->t;\r\n }", "public function getPriceCodeAndName()\n {\n return DB::table($this->table_wrist)\n ->select(DB::raw('wristband_style.code AS `style_code`, wristband_style.name AS `style_name`, wristband_size.code AS `size_code`, wristband_size.name AS `size_name`, price.qty, price.price'))\n ->join('wristband_style', 'price.style_id', '=', 'wristband_style.id')\n ->join('wristband_size', 'price.size_id', '=', 'wristband_size.id')\n ->get();\n }", "public function getShipmentWeight(): ?float;", "public function getSellingStatus()\n {\n return $this->sellingStatus;\n }", "public function getWeightUnitValue($value, array $product)\n {\n if (empty($this->_system_units['weight_class_description'])) {\n $this->getWeightUnits();\n }\n $units = $this->_system_units['weight_class_description'];\n if (!isset($units[$product['weight_class_id']])\n ) {\n return 0;\n }\n $all = $this->getAllUnits();\n $unit = $units[$product['weight_class_id']]['unit'];\n return $value / $all[$unit]['divider'];\n }", "function organique_get_shop_sidebar() {\n\t\tif ( is_product() ) {\n\t\t\treturn get_theme_mod( 'single_product_sidebar', 'no' );\n\t\t} else {\n\t\t\treturn get_post_meta( (int)get_option( 'woocommerce_shop_page_id' ) , 'sidebar_position', true );\n\t\t}\n\t}", "public function getShntlotser()\n {\n return $this->shntlotser;\n }", "public function getStatPro()\n\t{\n\t\treturn $this->statpro;\n\t}", "public function getBaseWeeeTaxRowDisposition() {\n return $this->item->getBaseWeeeTaxRowDisposition();\n }", "public function getStock()\n {\n return $this->Stock;\n }", "public function sqlValue()\n {\n return ($this->arrConfig['operator'] == 'like' ? ('%' . $this->arrConfig['value'] . '%') : $this->arrConfig['value']);\n }", "public function colSpan($value) {\n return $this->setProperty('colSpan', $value);\n }", "function get_wht($pl_id)\n {\n return $this->db->where(['delivery_id' => $pl_id])->get('sales_delivery_whtax')->row_array();\n }", "public function getShowInProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getNumberWithinSeries()\n\t{\n\t\treturn $this->numberWithinSeries;\n\t}", "public function getPothglpd()\n {\n return $this->pothglpd;\n }", "public function getWsName()\n {\n return $this->wsName;\n }", "public function getNextBeltGradeSyllabus()\n {\n return $this->nextBeltGradeSyllabus;\n }", "public function getShopNumber()\n {\n return $this->ShopNumber;\n }", "public function getAdjustment(): string\n {\n return $this->adjustment;\n }", "public function getPigWeight($pig)\r\n\t\t{\r\n\t\t\t\t$link = $this->connect();\r\n\t\t\t\t$query = \"SELECT DISTINCT record_date,\r\n\r\n\t\t\t\t\t\t\tweight, \r\n\t\t\t\t\t\t\tWEEK(record_date),\r\n\t\t\t\t\t\t\trecord_time\r\n\t\t\t\t\t\tFROM weight_record \r\n\t\t\t\t\t\tWHERE pig_id = '\" . $pig . \" '\r\n\t\t\t\t\t\tORDER BY record_date ASC,record_time asc\";\r\n\t\t\t\t$result = mysqli_query($link, $query);\r\n\t\t\t\t$dates = \"\";\r\n\t\t\t\t$weeks = \"\";\r\n\t\t\t\t$weights = \"\";\r\n\t\t\t\t$data = \"\";\r\n\t\t\t\t$data2 = 0;\r\n\t\t\t\t$arr = array();\r\n\t\t\t\t$ar_data = array();\r\n\t\t\t\twhile ($row = mysqli_fetch_row($result)) {\r\n\t\t\t\t\t\t$ddate = $row[0];\r\n\t\t\t\t\t\t$wt = $row[1];\r\n\t\t\t\t\t\t$arr['color'] = '#83b26a';\r\n\t\t\t\t\t\tif($data2 > 0){\r\n\t\t\t\t\t\t\tif($data >= $wt){\r\n\t\t\t\t\t\t\t\t$arr['color'] = '#bb4230';\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$weekno = $row[2];\r\n\t\t\t\t\t\t$year = strtotime($ddate);\r\n\t\t\t\t\t\t$arr['year'] = date('F d,Y', $year);\r\n\t\t\t\t\t\t$dates = $ddate;\r\n\t\t\t\t\t\t$arr['week'] = $weekno;\r\n\t\t\t\t\t\t$arr['weight'] = $wt;\r\n\t\t\t\t\t\t$data = $wt;\r\n\t\t\t\t\t\t$ar_data[] = $arr;\r\n\t\t\t\t\t\t$data2++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn $ar_data;\r\n\t\t}", "protected function get_var_wind( ) {\n// Format is fffVttt where V stands for varies from fff degrees to ttt degrees.\n if (preg_match('#([0-9]{3})V([0-9]{3})#',$this->current_group_text,$pieces)) {\n $this->wxInfo['ITEMS'][$this->tend]['CODE_VAR_WIND'] = $this->current_group_text;\n $this->wxInfo['ITEMS'][$this->tend]['WIND_VARIABILITY_FROM'] = $pieces[1];\n $this->wxInfo['ITEMS'][$this->tend]['WIND_VARIABILITY_TO'] = $pieces[2];\n $this->current_ptr++;\n }\n $this->current_group++;\n }", "public function getSwtSample()\n {\n return isset($this->swtSample) ? $this->swtSample : null;\n }", "protected function getProductAttrCodeUseForSearchWeight()\n {\n if (null === $this->_productAttrCodeUseForSearchWeight) {\n $this->_productAttrCodeUseForSearchWeight = $this->_helper->getGeneralSetting('advanced/product_search_weight');\n }\n return $this->_productAttrCodeUseForSearchWeight;\n }", "public function getManageStock()\n {\n return (int) Mage::getStoreConfig(Mage_CatalogInventory_Model_Stock_Item::XML_PATH_MANAGE_STOCK);\n }", "function get_weight() {\n\t\tif ($this->data['weight']) return $this->data['weight'];\n\t}" ]
[ "0.67590576", "0.56630665", "0.5634274", "0.5549128", "0.51754206", "0.51175356", "0.5055865", "0.50526583", "0.5034041", "0.49946502", "0.4941673", "0.4923966", "0.48230496", "0.48179525", "0.4815563", "0.47526273", "0.4736553", "0.4713514", "0.4695064", "0.46734354", "0.464488", "0.46237797", "0.46011436", "0.45568746", "0.45499253", "0.45467117", "0.45303455", "0.45287824", "0.4521896", "0.45171008", "0.44933832", "0.44927922", "0.4490626", "0.4488028", "0.44788045", "0.44762066", "0.44692495", "0.4468298", "0.44633022", "0.44590178", "0.4456399", "0.44522202", "0.4439764", "0.44368336", "0.44332495", "0.4432969", "0.44270852", "0.44232202", "0.4423013", "0.44136688", "0.44130713", "0.44126317", "0.4411685", "0.44095644", "0.44020018", "0.43917665", "0.43917665", "0.43771517", "0.43695545", "0.4366073", "0.4363652", "0.4354768", "0.43514", "0.43490905", "0.4337308", "0.43317425", "0.43256027", "0.43194455", "0.43174616", "0.43162838", "0.43138567", "0.43078038", "0.4305842", "0.43055794", "0.4295714", "0.4294814", "0.4292732", "0.4289201", "0.42871174", "0.42757252", "0.4273858", "0.42720935", "0.4267997", "0.42599007", "0.4259426", "0.42469925", "0.42388797", "0.42365268", "0.4235768", "0.42354563", "0.42352435", "0.4230818", "0.42286626", "0.4227981", "0.42245114", "0.4224069", "0.42138782", "0.42126974", "0.42109078", "0.42097554" ]
0.8273792
0
Get the [prod_height] column value.
public function getProdHeight() { return $this->prod_height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function height()\n {\n return $this->setRightOperand(PVar::HEIGHT);\n }", "public function getHeight()\n {\n return $this->getProperty(\"Height\");\n }", "public function getHeight()\n {\n if (array_key_exists(\"height\", $this->_propDict)) {\n return $this->_propDict[\"height\"];\n } else {\n return null;\n }\n }", "public function setProdHeight($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_height !== $v) {\n $this->prod_height = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_HEIGHT] = true;\n }\n\n return $this;\n }", "public function getHeight()\n {\n return $this->data->height;\n }", "public function getheight(){\n $height = $this->_run('getheight');\n return $height;\n }", "public function getHeight()\r\n {\r\n return $this->height;\r\n }", "public function getHeight()\n {\n return $this->height;\n }", "public function getHeight()\n {\n return $this->height;\n }", "public function getHeight()\n {\n return $this->height;\n }", "public function getHeight()\n {\n return $this->height;\n }", "public function getHeight()\n {\n return $this->height;\n }", "public function getHeight()\n {\n return $this->height;\n }", "public function getHeight()\n {\n return $this->height;\n }", "public function getHeight()\n {\n return $this->height;\n }", "public function getHeight()\n {\n return $this->height;\n }", "public function getHeight()\n {\n return $this->height;\n }", "public function getHeight()\n {\n return $this->height;\n }", "public function height($manipulation_name = '')\n\t{\n\t\treturn $this->row_field('height');\n\t}", "protected function height() {\n return $this->height;\n }", "public function getHeight()\r\n {\r\n return $this->height;\r\n }", "public function getHeight() {\n\t\treturn $this->_height;\n\t}", "final public function get_height()\n {\n return $this->height;\n }", "public function getHeight()\n\t{\n\t\treturn $this->height;\n\t}", "public function getHeight()\n\t{\n\t\treturn $this->height;\n\t}", "public function getHeight()\n\t{\n\t\treturn $this->height;\n\t}", "public function getHeightSq()\n {\n if (! isset($this->heightSq)) {\n $this->heightSq = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightSqQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightSq;\n }", "public function getHeight()\n {\n // Support for 'n%', relative to parent\n return $this->parseGlobalValue_v($this->h);\n }", "function spectra_block_height ()\n\t{\n\t\t$response = $GLOBALS[\"db\"][\"obj\"]->query (\"SELECT MAX(`height`) as `height` FROM `\".$GLOBALS[\"tables\"][\"block\"].\"`\");\n\t\t$result = $response->fetch_assoc ();\n\t\t\n\t\treturn $result[\"height\"];\n\t}", "public function getHeight()\n {\n if (null === $this->height && !$this->initialised) {\n $this->refreshDimensions();\n }\n\n if (null === $this->height) {\n $height = getenv('LINES');\n if (false !== $height) {\n $this->height = (int) trim($height);\n }\n }\n\n return $this->height ?: static::DEFAULT_HEIGHT;\n }", "public function getHeight()\n {\n if (!isset($this->height)) {\n $this->height = ps_get_value($this->document->resource, \"imageheight\", $this->id);\n }\n\n return $this->height;\n }", "public function getHeight() {\n return $this->h;\n }", "public function getHeightC()\n {\n if (! isset($this->heightC)) {\n $this->heightC = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightCQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightC;\n }", "public function getProdLength()\n {\n return $this->prod_length;\n }", "public function getHeight(): int\n {\n return $this->height;\n }", "function\tgetHeight() {\n\t\treturn $this->height ;\n\t}", "function getHeight() {\n\t\treturn $this->_Height;\n\t}", "public function getHeightN()\n {\n if (! isset($this->heightN)) {\n $this->heightN = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightNQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightN;\n }", "public function getPixelHeightUnwrapped()\n {\n return $this->readWrapperValue(\"pixel_height\");\n }", "public function getHeight(): int\n {\n $height = getenv('LINES');\n if (false !== $height) {\n return (int) trim($height);\n }\n\n if (null === self::$height) {\n self::initDimensions();\n }\n\n return self::$height ?: 50;\n }", "protected function getHeightCQuery()\n {\n return $this->heightCQuery;\n }", "public function getStyleHeight()\n\t{\n\t\tif (!$this->getBox()->isForMeasurement()) {\n\t\t\treturn '0';\n\t\t}\n\t\t$height = $this->getBox()->getStyle()->getRules('height');\n\t\tif ('auto' === $height) {\n\t\t\treturn null;\n\t\t}\n\t\t$percentPos = strpos($height, '%');\n\t\tif (false !== $percentPos) {\n\t\t\t$widthInPercent = substr($height, 0, $percentPos);\n\t\t\t$closestBoxDimensions = $this->getBox()->getClosestBox()->getDimensions();\n\t\t\tif (null !== $closestBoxDimensions->getHeight()) {\n\t\t\t\t$parentHeight = $closestBoxDimensions->getInnerHeight();\n\t\t\t\tif ($parentHeight) {\n\t\t\t\t\treturn Math::percent($widthInPercent, $parentHeight);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn $height;\n\t\t}\n\t\treturn null;\n\t}", "public function getHeight() {}", "public function getHeight() {}", "public function getHeight() {}", "public function getHeight() {}", "public function getHeight() {}", "public function getHeight() {}", "public function getHeight() {}", "public function getHeight(): int\n\t{\n\t\treturn $this->processor->getHeight();\n\t}", "protected function getBhp()\n {\n preg_match(\"/\\d+.ps|\\d+.PS/i\", $this->excelRow->model_description, $bhpArr);\n if(!empty($bhpArr))\n {\n return (int) filter_var($bhpArr[0],FILTER_SANITIZE_NUMBER_INT);\n }\n }", "public function getHeightQ()\n {\n if (! isset($this->heightQ)) {\n $this->heightQ = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightQQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightQ;\n }", "public function getPreviewPixelHeightUnwrapped()\n {\n return $this->readWrapperValue(\"preview_pixel_height\");\n }", "public function getHeight() {\n $height = false;\n if (isset($this->_height)) {\n $height = $this->_height;\n }\n\n return $height;\n }", "public function getHeight(): int\n {\n return (int) $this->height;\n }", "public function getPixelHeight()\n {\n return isset($this->pixel_height) ? $this->pixel_height : null;\n }", "function getHeight() {\n // return $originalHeight;\n\t\t\n return $this->height;\n }", "public function getHeightO()\n {\n if (! isset($this->heightO)) {\n $this->heightO = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightOQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightO;\n }", "public function getHeight()\n\t{\n\t\tif (substr($this->getContainerStyle('height'), -2, 2) != 'px')\n\t\t\treturn false;\n\n\t\treturn intval(substr($this->getContainerStyle('height'), 0, -2));\n\t}", "public function getHeight();", "public function getHeight();", "public function getHeight();", "public function getHeight();", "public function getHeight();", "public function getCapHeight() {}", "public function getCapHeight() {}", "public function getCapHeight() {}", "public function getHeightT()\n {\n if (! isset($this->heightT)) {\n $this->heightT = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightTQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightT;\n }", "public function height() {\n\t\treturn $this->_cache(__FUNCTION__, function($file) {\n\t\t\tif (!$file->isImage()) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t$height = 0;\n\n\t\t\tif ($dims = $file->dimensions()) {\n\t\t\t\t$height = $dims['height'];\n\t\t\t}\n\n\t\t\treturn $height;\n\t\t});\n\t}", "public function initialHeight()\n {\n return $this->setRightOperand(PVar::INITIAL_HEIGHT);\n }", "public function getHeightS()\n {\n if (! isset($this->heightS)) {\n $this->heightS = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightSQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightS;\n }", "public function getHeightM()\n {\n if (! isset($this->heightM)) {\n $this->heightM = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightMQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightM;\n }", "protected function getHeightSqQuery()\n {\n return $this->heightSqQuery;\n }", "function get_height() {\n //based on image height\n return $this->_height;\n }", "public function getHeight() : ?float ;", "function getHeight() {\n\t\t}", "public function getHeight() {\n return imagesy($this->image);\n }", "protected function getHeightOQuery()\n {\n return $this->heightOQuery;\n }", "public function getHeight()\n {\n return imagesy($this->image);\n }", "public function getHeightZ()\n {\n if (! isset($this->heightZ)) {\n $this->heightZ = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightZQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightZ;\n }", "public function getHeightUnitAttribute()\n {\n return new Length($this->height, $this->dimensions_unit);\n }", "public static function getHeight($aspect)\n {\n return self::getMetaProperty($aspect, 'height');\n }", "function getHeight() {\n\t\t$myHeight = $this->getElementText(DOMIT_RSS_ELEMENT_HEIGHT);\n\n\t\tif ($myHeight == '') {\n\t\t\t$myHeight = '31';\n\t\t}\n\t\telse if (intval($myHeight) > 400) {\n\t $myHeight = '400';\n\t\t}\n\n\t\treturn $myHeight;\n\t}", "function getHeight() {\r\n\t\treturn imagesy($this->image);\r\n\t}", "protected function getHeightSQuery()\n {\n return $this->heightSQuery;\n }", "public function getPreviewPixelHeight()\n {\n return isset($this->preview_pixel_height) ? $this->preview_pixel_height : null;\n }", "public function getLandheightValueAttribute()\n {\n $landheight = Landheight::where(['village_id' => $this->id])->get();\n\n $landheight = $landheight->avg('total');\n\n return $landheight;\n }", "public final function getHeight()\n {\n return $this->googleVisualization->getHeight();\n }", "public function getHeight()\n\t{\n\t\treturn $this->image->getHeight();\n\t}", "public function getMaxHeight()\n {\n return $this->maxHeight;\n }", "public function getMaxHeight()\n {\n return $this->maxHeight;\n }", "public function height($value) {\n return $this->setProperty('height', $value);\n }", "public function height($value) {\n return $this->setProperty('height', $value);\n }", "public function height($value) {\n return $this->setProperty('height', $value);\n }", "public function height($value) {\n return $this->setProperty('height', $value);\n }", "public function getHeight() {\n\t\tif (!$this->isBound()) {\n\t\t\treturn -1;\n\t\t}\n\t\treturn $this->h;\n\t}", "public function getMaxHeight()\n {\n return $this->_maxHeight;\n }", "public function getHeight() {\n return Image::make($this->file)->height();\n }", "public function testSetHeightProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setHeight($value);\n $this->assertEquals($value, $product->getHeight());\n }", "public function height() : int;" ]
[ "0.6729948", "0.6722317", "0.6676694", "0.66436493", "0.66036385", "0.6543087", "0.6349073", "0.6321409", "0.63086915", "0.63086915", "0.63086915", "0.63086915", "0.63086915", "0.63086915", "0.63086915", "0.63086915", "0.63086915", "0.63086915", "0.63078684", "0.6292543", "0.6244485", "0.6242864", "0.6236268", "0.62106353", "0.62106353", "0.62106353", "0.6208121", "0.62015784", "0.6128577", "0.6119424", "0.61146384", "0.60974467", "0.607394", "0.60503745", "0.60348547", "0.6002557", "0.6001853", "0.59450215", "0.591376", "0.5884939", "0.5884735", "0.58819044", "0.5865942", "0.5865736", "0.5865736", "0.5865736", "0.5865736", "0.5865736", "0.5865478", "0.585585", "0.5838716", "0.5831207", "0.58188105", "0.5816909", "0.5784046", "0.5773784", "0.5770934", "0.57685", "0.5761143", "0.5743024", "0.5743024", "0.5743024", "0.5743024", "0.5743024", "0.5733587", "0.5733587", "0.5733587", "0.5715817", "0.571234", "0.5709683", "0.570213", "0.5676856", "0.56658214", "0.5663283", "0.56504416", "0.5631775", "0.5591516", "0.55822355", "0.5582101", "0.5564721", "0.5562564", "0.554827", "0.55470175", "0.5546946", "0.5544263", "0.55437917", "0.55428404", "0.55361265", "0.5534498", "0.55252856", "0.55252856", "0.5523868", "0.5523868", "0.5523868", "0.5523868", "0.5516182", "0.55139595", "0.5509872", "0.5507416", "0.55049515" ]
0.80150294
0
Get the [prod_scale] column value.
public function getProdScale() { return $this->prod_scale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getScale()\n {\n return $this->scale;\n }", "public function getScale()\n {\n return $this->scale;\n }", "public function getScale()\n\t{\n\t\treturn $this->scale;\n\t}", "public function setProdScale($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_scale !== $v) {\n $this->prod_scale = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_SCALE] = true;\n }\n\n return $this;\n }", "public function getScaling()\n {\n return $this->scaling;\n }", "public function getScaling()\n {\n return $this->scaling;\n }", "public function getScale()\n {\n return $this->domain->getScale();\n }", "public function getScaling() {}", "function load_scale() {\n if (!empty($this->scaleid)) {\n $this->scale = grade_scale::fetch('id', $this->scaleid);\n $this->scale->load_items();\n }\n return $this->scale;\n }", "public function getScales() {\n return $this->scales;\n }", "public function setScale($var)\n {\n GPBUtil::checkInt32($var);\n $this->scale = $var;\n\n return $this;\n }", "public function setScale($var)\n {\n GPBUtil::checkDouble($var);\n $this->scale = $var;\n\n return $this;\n }", "public function getProdLength()\n {\n return $this->prod_length;\n }", "public function getScaleControl()\n {\n return $this->scaleControl;\n }", "public function scale()\n {\n return $this->belongsTo(Scale::class);\n }", "public function getCertificateValidityPeriodScale()\n {\n if (array_key_exists(\"certificateValidityPeriodScale\", $this->_propDict)) {\n if (is_a($this->_propDict[\"certificateValidityPeriodScale\"], \"\\Beta\\Microsoft\\Graph\\Model\\CertificateValidityPeriodScale\") || is_null($this->_propDict[\"certificateValidityPeriodScale\"])) {\n return $this->_propDict[\"certificateValidityPeriodScale\"];\n } else {\n $this->_propDict[\"certificateValidityPeriodScale\"] = new CertificateValidityPeriodScale($this->_propDict[\"certificateValidityPeriodScale\"]);\n return $this->_propDict[\"certificateValidityPeriodScale\"];\n }\n }\n return null;\n }", "public function getPrintScaling() {}", "public function prod($prod);", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getScale($index) {\n if (isset($this->scales[$index])) {\n return $this->scales[$index];\n }\n\n return null;\n }", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "public function getGemstoneScale() {\r\n\t\t$this->db->from('stone_scale');\r\n\t\t$this->db->order_by('scale_id');\r\n\t\t$query = $this->db->get();\r\n\t\t$data = array();\r\n\t\tif($query->num_rows() > 0) {\r\n\t\t\tforeach($query->result_array() as $row) {\r\n\t\t\t\t$data[$row['scale_id']] = $row;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $data;\r\n\t}", "public function scale() { }", "public function get_grade_scale($itemid, $userid, $courseid) {\n global $remotedb;\n $sql = \"SELECT DISTINCT gg.finalgrade, s.scale \n FROM {grade_grades} gg\n JOIN {grade_items} gi ON gg.itemid=gi.id AND gi.id=? \n AND gg.userid=? AND gi.courseid=? AND gi.gradetype = 2\n JOIN {scale} s ON gi.scaleid=s.id limit 1\";\n $params = array($itemid, $userid, $courseid);\n $scales = $remotedb->get_record_sql($sql, $params);\n $num = 0;\n if ($scales) {\n $scale = explode(',', $scales->scale);\n $num = ($num ? (int) $scales->finalgrade - 1 : 0);\n return $scale[$num];\n } else {\n return '-';\n }\n }", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "public function getProductPrice() {\n\t\t\t$data = request()->all();\n\t\t\t$dataArr = explode('-', $data['idSize']);\n\t\t\t$proAttr = ProductsAttribute::where(['product_id'=>$dataArr[0], 'size'=>$dataArr[1]])->first();\n\t\t\t$productData = [\n\t\t\t\t'sku' \t=> $proAttr->sku, \n\t\t\t\t'price' => $proAttr->price,\n\t\t\t\t'stock' => $proAttr->stock\n\t\t\t]; \n\t\t\treturn $productData;\n\t\t}", "public function getProdHeight()\n {\n return $this->prod_height;\n }", "public function get_available_grade_scale($itemid, $userid, $courseid) {\n global $remotedb;\n $sql = \"SELECT DISTINCT s.scale \n FROM {grade_grades} gg\n JOIN {grade_items} gi ON gg.itemid=gi.id AND gi.id=? \n AND gg.userid=? AND gi.courseid=? AND gi.gradetype = 2\n JOIN {scale} s ON gi.scaleid=s.id limit 1\";\n $params = array($itemid, $userid, $courseid);\n $scales = $remotedb->get_record_sql($sql, $params);\n if ($scales) {\n $scale = explode(',', $scales->scale);\n $num = max(array_keys($scale));\n return $scale[$num];\n } else {\n return '-';\n }\n }", "public function get_max_product_price()\n\t{\n\t\t$this->db->select('MAX(product_selling_price) AS price')->from('product')->where(\"product_status = 1\");\n\t\t$query = $this->db->get();\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result->price;\n\t}", "public function scalePrices($product)\n {\n \n // Get the configurable Id\n $configurableId = $this->getConfigurableId($product);\n \n // Check we actually have a configurable product\n if ($configurableId > 0)\n {\n // Get the configurable product and associated base price\n // Please note the price will not be the actual configurable, price but the cheapest price from all the simple products\n $configurableProduct = Mage::getSingleton(\"catalog/Product\")->load($configurableId);\n $configurablePrice = $configurableProduct->getPrice();\n \n // Get current attribute data\n $configurableAttributesData = $configurableProduct->getTypeInstance()->getConfigurableAttributesAsArray();\n $configurableProductsData = array();\n \n // We need to identify the attribute name and Id\n $prodAttrName = $this->getAttributeName($configurableProduct);\n $prodAttrId = $this->getAttributeId($prodAttrName);\n \n // Get associates simple products\n $associatedProducts = $configurableProduct->getTypeInstance()->getUsedProducts();\n foreach ($associatedProducts as $prodList)\n {\n // For each associated simple product gather the data and calculate the extra fixed price\n $prodId = $prodList->getId();\n $prodAttrLabel = $prodList->getAttributeText($prodAttrName);\n $prodAttrValueIndex = $prodList[$prodAttrName];\n $prodScalePrice = $prodList['price'] - $configurablePrice;\n \n $productData = array(\n 'label' => $prodAttrLabel,\n 'attribute_id' => $prodAttrId,\n 'value_index' => $prodAttrValueIndex,\n 'pricing_value' => $prodScalePrice,\n 'is_percent' => '0'\n );\n $configurableProductsData[$prodId] = $productData;\n $configurableAttributesData[0]['values'][] = $productData;\n }\n \n $configurableProduct->setConfigurableProductsData($configurableProductsData);\n $configurableProduct->setConfigurableAttributesData($configurableAttributesData);\n $configurableProduct->setCanSaveConfigurableAttributes(true);\n Mage::log($configurableProductsData, null, 'configurableProductsData.log', true);\n Mage::log($configurableAttributesData, null, 'configurableAttributesData.log', true);\n \n try\n {\n $configurableProduct->save(); \n }\n catch (Exception $e)\n {\n $this->_debug($e->getMessage());\n }\n \n } \n }", "public function getProductPriceX()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_config/maximum_splits', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getProductPriceX()\n {\n return Mage::getStoreConfig('splitprice/split_price_config/maximum_splits');\n }", "public function getMinMaxPriceAttribute(): array\n {\n $minmax_price = DB::selectOne('CALL get_minmax_price_by_category(?)', [$this->id]);\n return (array) $minmax_price;\n }", "public function getMinMaxCategoryPrice()\n {\n if (isset(self::$_cache['minmaxprice'])) {\n return self::$_cache['minmaxprice'];\n }\n $sql = new SqlStatement();\n $sql->select(array(\n 'min' => \"MIN({$this->subquery->actualPrice})\",\n 'max' => \"MAX({$this->subquery->actualPrice})\"))\n ->from(array('p' => self::RESULTS_TABLE));\n \n if ($this->conditions->rating) {\n $sql->where('ROUND(total) IN ('. implode(',', $this->conditions->rating[0]) . ')');\n } \n \n $res = $this->db->query($sql);\n self::$_cache['minmaxprice'] = $res->row;\n \n return $res->row;\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getPricePrecision()\n {\n return $this->getValueByPath(self::XML_PATH_PRICE_PRECISION);\n }", "public function getPriceProduct()\n {\n return $this->priceProduct;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getProductPrice(Request $request){\n $data = $request->all();\n // echo '<pre>'; print_r($data); die;\n $prodArray = explode(\"-\", $data['idSize']);\n // echo $prodArray[0]; echo $prodArray[1]; die;\n $prodAttr = ProductsAttribute::where(['product_id' => $prodArray[0], 'size' => $prodArray[1]])->first();\n echo $prodAttr->price;\n echo \"#\";\n echo $prodAttr->stock;\n }", "public function get_min_grade_scale($itemid, $userid, $courseid) {\n global $remotedb;\n $sql = \"SELECT DISTINCT s.scale \n FROM {grade_grades} gg\n JOIN {grade_items} gi ON gg.itemid=gi.id AND gi.id=? \n AND gg.userid=? AND gi.courseid=? AND gi.gradetype = 2\n JOIN {scale} s ON gi.scaleid=s.id limit 1\";\n $params = array($itemid, $userid, $courseid);\n $scales = $remotedb->get_record_sql($sql, $params);\n if ($scales) {\n $scale = explode(',', $scales->scale);\n $num = min(array_keys($scale));\n return $scale[$num];\n } else {\n return '-';\n }\n }", "public function getReticleDifficultyScale()\n {\n return $this->reticle_difficulty_scale;\n }", "function econsole_scale_used ($econsoleid,$scaleid) {\r\n $return = false;\r\n\r\n //$rec = get_record(\"console\",\"id\",\"$econsoleid\",\"scale\",\"-$scaleid\");\r\n //\r\n //if (!empty($rec) && !empty($scaleid)) {\r\n // $return = true;\r\n //}\r\n \r\n return $return;\r\n}", "public function setScaling($scaling = 100) {}", "function bookking_scale_used($cmid, $scaleid) {\n global $DB;\n\n $return = false;\n\n // Note: scales are assigned using negative index in the grade field of the appointment (see mod/assignement/lib.php).\n $rec = $DB->get_record('bookking', array('id' => $cmid, 'scale' => -$scaleid));\n\n if (!empty($rec) && !empty($scaleid)) {\n $return = true;\n }\n\n return $return;\n}", "public function getProductPrice() {\n //return the value product price\n return $this->ProductPrice;\n }", "public function getMultiplier()\n {\n return $this->multiplier;\n }", "public function product() {\n\t\treturn array_product($this->_value);\n\t}", "public function setScale($scale)\n {\n $this->scale = $scale;\n return $this;\n }", "public function getCalculatedPrice($products, $quantityScale = 1) {\n return $this->getOSPrice($quantityScale, $products);\n }", "public static function scale()\n {\n return new CropMode(CropMode::SCALE);\n }", "public function getProductsMaxPrice()\n {\n return $this->filterData['max'] ?? '';\n }", "public function getCertificateValidityPeriodScale(): ?CertificateValidityPeriodScale {\n $val = $this->getBackingStore()->get('certificateValidityPeriodScale');\n if (is_null($val) || $val instanceof CertificateValidityPeriodScale) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'certificateValidityPeriodScale'\");\n }", "public function getCssCustomProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/css_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getOSPrice($quantityScale = null, $products = null) {\n if( $this->getOSPriceInfo($quantityScale,$products)) {\n return $this->getOSPriceInfo($quantityScale,$products)->getPrice();\n }\n return null;\n }", "public function GetMinVal()\n\t{\n\t\tif (function_exists('bcpow')) {\n\t\t\treturn round(bcpow(10, $this->scale[0], 15), 14);\n\t\t}\n\n\t\treturn round(pow(10, $this->scale[0]), 14);\n\t}", "public function getCssCustomProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/css_product');\n }", "public function getQuality()\r\n\t{\r\n\t\t$quality = 0;\r\n\r\n\t\tforeach ($this->_sum('quality')->result() as $row) \r\n\t\t\t$quality = $row->quality;\r\n\r\n\t\treturn $quality;\r\n\t}", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function get_min_product_price()\n\t{\n\t\t$this->db->select('MIN(product_selling_price) AS price')->from('product')->where(\"product_status = 1\");\n\t\t$query = $this->db->get();\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result->price;\n\t}", "public function getQuality()\n {\n $value = $this->get(self::quality);\n return $value === null ? (double)$value : $value;\n }", "public function getQuality()\r\n\t{\r\n\t\tif($this->getGrade() == 'A')\r\n\t\t\treturn ($this->sks * 4);\r\n\t\telseif ($this->getGrade() == 'B')\r\n\t\t\treturn ($this->sks * 3);\r\n\t\telseif ($this->getGrade() == 'C')\r\n\t\t\treturn ($this->sks * 2);\r\n\t\telseif ($this->getGrade() == 'D')\r\n\t\t\treturn ($this->sks * 1);\r\n\t\telse\r\n\t\t\treturn ($this->sks * 0);\r\n\t}", "public function stats($scale = 1024)\n {\n return $this->db()->command_safe(array(\n 'collStats' => $this->name,\n 'scale' => $scale\n ));\n }", "public function getProductPrice()\n {\n $currentProduct = $this->_registry->registry('current_product');\n\n //seria melhor usar uma constante nativa, mas nao encontrei.\n if ('configurable' == $currentProduct->getTypeId()) {\n return $currentProduct->getPriceInfo()->getPrice('regular_price')->getMinRegularAmount()->getValue();\n }\n\n if ('bundle' == $currentProduct->getTypeId()) {\n return $currentProduct->getPriceInfo()->getPrice('regular_price')->getMinimalPrice()->getValue();\n }\n\n if ('grouped' == $currentProduct->getTypeId()) {\n $regularPrice = 0;\n $usedProds = $currentProduct->getTypeInstance(true)->getAssociatedProducts($currentProduct); \n foreach ($usedProds as $child) {\n if ($child->getId() != $currentProduct->getId()) {\n $regularPrice += $child->getPrice();\n }\n }\n return $regularPrice;\n }\n\n return $currentProduct->getFinalPrice();\n }", "protected function resultScale($a, $b, ?int $scale = null): int\n {\n if ($scale === null) {\n $scale = max($a->scale(), $b->scale());\n }\n\n return $scale;\n }", "public function product()\n {\n return $this->m_product;\n }", "abstract protected function getScaleFromFormatNode(\\DOMNode $formatNode);", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function getMaximalPrice()\n {\n if (!$this->maximalPrice) {\n $maximalPrice = $this->product->getMaximalPrice();\n if ($maximalPrice === null) {\n $maximalPrice = $this->getValue();\n } else {\n $maximalPrice = $this->priceCurrency->convertAndRound($maximalPrice);\n }\n $this->maximalPrice = $this->calculator->getAmount($maximalPrice, $this->product);\n }\n return $this->maximalPrice;\n }", "public function getAttributes_price_factor() {\n\t\treturn $this->attributes_price_factor;\n\t}", "public function getPurchaseProdPrice() {\n return $this->purchaseProdPrice;\n }", "public function getProductPriceType()\n {\n return Mage::getStoreConfig('splitprice/split_price_config/base_price');\n }", "public function getProductPrice()\n {\n $currentProduct = Mage::registry('current_product');\n\n //seria melhor usar uma constante nativa, mas nao encontrei.\n if ('configurable' == $currentProduct->getTypeId()) {\n return $currentProduct->getFinalPrice();\n }\n\n if ('bundle' == $currentProduct->getTypeId()) {\n $_priceModel = $currentProduct->getPriceModel();\n list($_minimalPriceTax, $_maximalPriceTax) = $_priceModel->getTotalPrices($currentProduct, null, null, false);\n\n return $_minimalPriceTax;\n }\n\n if ('grouped' == $currentProduct->getTypeId()) {\n $regularPrice = 0;\n $usedProds = $currentProduct->getTypeInstance(true)->getAssociatedProducts($currentProduct); \n foreach ($usedProds as $child) {\n if ($child->getId() != $currentProduct->getId()) {\n $regularPrice += $child->getPrice();\n }\n }\n return $regularPrice;\n }\n\n return $currentProduct->getFinalPrice();\n }", "public function getProductPriceType()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_config/base_price', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "public function getProductPrice(Request $request)\n {\n $proArr = explode(\"-\", $request->idSize);\n //echo $proArr[0]; echo $proArr[1]; die;\n //explode takes the first parameter as the divisor for values in a new array\n $productsAttribute = ProductsAttribute::where(['product_id' => $proArr[0], 'size' => $proArr[1]])->first();\n //we get the id and size from the value, use the value to send an ajax, split those values, and pull what we need\n\n $getCurrencyRates = Product::getCurrencyRates($productsAttribute->price);\n echo $productsAttribute->price.\"-\".$getCurrencyRates['INR_Rate'].\"-\".$getCurrencyRates['GBP_Rate'].\"-\".$getCurrencyRates['EUR_Rate'];\n echo \"#\";\n echo $productsAttribute->stock;\n }", "public function getProductPrice(){\n return $this->product_price;\n }", "public function get_price() {\n\n\t\t$price = null;\n\t\tif ( $this->is_on_sale() ) {\n\t\t\tif ( strstr($this->sale_price,'%') ) {\n\t\t\t\t$price = round($this->regular_price * ( (100 - str_replace('%','',$this->sale_price) ) / 100 ), 4);\n\t\t\t} else if ( $this->sale_price ) {\n\t\t\t\t$price = $this->sale_price;\n\t\t\t}\n\t\t} else {\n\t\t\t$price = apply_filters('jigoshop_product_get_regular_price', $this->regular_price, $this->variation_id);\n\t\t}\n\t\treturn apply_filters( 'jigoshop_product_get_price', $price, $this->variation_id );\n\n\t}", "public function getReadNamespacedScaleScale(\n $name,\n $mnamespace,\n $pretty = null\n ) {\n\n //the base uri for api requests\n $_queryBuilder = Configuration::$BASEURI;\n \n //prepare query string for API call\n $_queryBuilder = $_queryBuilder.\n '/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale';\n\n //process optional query parameters\n $_queryBuilder = APIHelper::appendUrlWithTemplateParameters($_queryBuilder, array (\n 'name' => $name,\n 'namespace' => $mnamespace,\n ));\n\n //process optional query parameters\n APIHelper::appendUrlWithQueryParameters($_queryBuilder, array (\n 'pretty' => $pretty,\n ));\n\n //validate and preprocess url\n $_queryUrl = APIHelper::cleanUrl($_queryBuilder);\n\n //prepare headers\n $_headers = array (\n 'user-agent' => 'APIMATIC 2.0',\n 'Accept' => 'application/json'\n );\n\n //call on-before Http callback\n $_httpRequest = new HttpRequest(HttpMethod::GET, $_headers, $_queryUrl);\n if ($this->getHttpCallBack() != null) {\n $this->getHttpCallBack()->callOnBeforeRequest($_httpRequest);\n }\n\n //and invoke the API call request to fetch the response\n $response = Request::get($_queryUrl, $_headers);\n\n $_httpResponse = new HttpResponse($response->code, $response->headers, $response->raw_body);\n $_httpContext = new HttpContext($_httpRequest, $_httpResponse);\n\n //call on-after Http callback\n if ($this->getHttpCallBack() != null) {\n $this->getHttpCallBack()->callOnAfterRequest($_httpContext);\n }\n\n //handle errors defined at the API level\n $this->validateResponse($_httpResponse, $_httpContext);\n\n $mapper = $this->getJsonMapper();\n\n return $mapper->mapClass($response->body, 'OpenShiftAPIWithKubernetesLib\\\\Models\\\\V1beta1Scale');\n }", "public function askFieldScale(InputInterface $input, OutputInterface $output): ?int\n {\n $question = new Question($this->getQuestion('Scale', 0), 0);\n $question->setValidator(WameValidators::getScaleValidator());\n return (int) $this->ask($input, $output, $question);\n }", "public function getProductPrice()\n {\n $currentProduct = $this->_registry->registry('current_product');\n \n //qual preco retornar? o base ou o special???\n //o ideal seria usar constante nativa, mas nao encontrei.\n if ('configurable' == $currentProduct->getTypeId()) {\n return $currentProduct->getPriceInfo()->getPrice('regular_price')->getMinRegularAmount()->getValue();\n }\n\n if ('bundle' == $currentProduct->getTypeId()) {\n return $currentProduct->getPriceInfo()->getPrice('regular_price')->getMinimalPrice()->getValue();\n }\n\n if ('grouped' == $currentProduct->getTypeId()) {\n $regularPrice = 0;\n $usedProds = $currentProduct->getTypeInstance(true)->getAssociatedProducts($currentProduct); \n foreach ($usedProds as $child) {\n if ($child->getId() != $currentProduct->getId()) {\n $regularPrice += $child->getPrice();\n }\n }\n return $regularPrice;\n }\n\n return $currentProduct->getFinalPrice();\n }", "public function getProductAttributeDecimal($productId, $attributeCode){\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_decimal where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getProductPrice(Request $request)\r\n {\r\n $product_id = $request->product_id;\r\n $product = Product::leftjoin('variations', 'products.id', 'variations.product_id')\r\n ->where('products.id', $product_id)\r\n ->select('default_sell_price')\r\n ->first();\r\n if (!empty($product)) {\r\n $price = $product->default_sell_price;\r\n } else {\r\n $price = 0.00;\r\n }\r\n return ['price' => $price];\r\n }", "public function setScaling($scaleing) {}", "public function scale(float $scale_x = 0, float $scale_y = 0, float $scale_z = 0): EntityInterface;", "public function getProduct()\n {\n return isset($this->product) ? $this->product : null;\n }", "public function getMeasurement()\n {\n return $this->db->get($this->product_measurement);\n }", "protected function getPricingDimensions()\n {\n return $this->pricingDimensions;\n }", "public function addPictureScaled($row, $column, $picture_id, $scale) {\n\t}", "public function getVariationValue()\n {\n return $this->variationValue;\n }", "function vitero_scale_used($viteroid, $scaleid) {\n return false;\n}", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\r\n {\r\n return $this->product;\r\n }", "public function getProduct_category () {\n\t$preValue = $this->preGetValue(\"product_category\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_category\")->preGetData($this);\n\treturn $data;\n}" ]
[ "0.67325586", "0.67325586", "0.6703614", "0.6552015", "0.6480752", "0.6480752", "0.6425339", "0.6169297", "0.61030984", "0.5690525", "0.5670635", "0.56556165", "0.56259245", "0.5586447", "0.54192877", "0.5414554", "0.5381439", "0.53204477", "0.5285388", "0.527065", "0.52501106", "0.524985", "0.52493733", "0.5210245", "0.51510584", "0.5150684", "0.5141089", "0.51408434", "0.513698", "0.5105122", "0.51015806", "0.50866896", "0.5058698", "0.5008738", "0.4993983", "0.49819344", "0.49778092", "0.49740884", "0.49697948", "0.4956021", "0.4954916", "0.49522275", "0.49409232", "0.4884093", "0.4869331", "0.4864646", "0.4852153", "0.48499274", "0.48402402", "0.4827007", "0.48221427", "0.48151457", "0.48114944", "0.48070365", "0.47898394", "0.4770715", "0.47653195", "0.47592074", "0.47498655", "0.47466877", "0.4742938", "0.4730238", "0.4728855", "0.47243524", "0.4719742", "0.47063985", "0.46899375", "0.46861878", "0.46616176", "0.4657418", "0.46538737", "0.4652652", "0.46520877", "0.46409363", "0.46400797", "0.46399462", "0.4616159", "0.46080226", "0.45940548", "0.45890218", "0.45745134", "0.45730603", "0.45685455", "0.45589426", "0.45574588", "0.45502496", "0.45353827", "0.45305735", "0.45231467", "0.4517929", "0.45145857", "0.45114917", "0.4504538", "0.4504538", "0.4504538", "0.4504538", "0.4504538", "0.4504538", "0.4502661", "0.44986662" ]
0.8041914
0
Get the [prod_links] column value.
public function getProdLinks() { return $this->prod_links; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getProductLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "public function getProdLinkdescription()\n {\n return $this->prod_linkdescription;\n }", "public function getProductEntityLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "private function getProductEntityLinkField()\n {\n if (!$this->productEntityLinkField) {\n $this->productEntityLinkField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getLinkField();\n }\n return $this->productEntityLinkField;\n }", "protected function getLinkedProductID () {\n $productFilter = Search::getInstance($this->data['attrs']['source_id'])->getFilter('product');\n\n return $productFilter ? $productFilter['value'] : null;\n }", "public function getLinkPl() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(6, $this->_result)) return (string) $this->_result[6];\n\t\t\telse parent::throwGetColException('Not set ProjectsListingsModel::getLinkPl', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From ProjectsListingsModel::getLinkPl', __LINE__, __FILE__);\n\t}", "public function getColumnLink(): HrefElement;", "public function getLinkProperty()\n {\n $elements = Helper::findElements($this, ['thumbnailLink', 'name', 'detailsButton']);\n\n $links = [\n 'articleThumbnailLink' => $elements['thumbnailLink']->getAttribute('href'),\n 'articleNameLink' => $elements['name']->getAttribute('href'),\n 'articleDetailsButtonLink' => $elements['detailsButton']->getAttribute('href'),\n ];\n\n return Helper::getUnique($links);\n }", "public function Link()\n {\n if ($product = $this->Product()) {\n return $product->Link;\n }\n return '';\n }", "public function getDataLink()\n {\n return $this->dataLink;\n }", "public function getUrl()\n {\n if (array_key_exists('link', $this->data)) {\n return $this->data['link'];\n }\n\n if ($this->getType() == Reader\\Reader::TYPE_YML) {\n $link = $this->xpath->evaluate('string(/yml_catalog/shop/url)');\n }\n\n if (! $link) {\n $link = null;\n }\n\n $this->data['link'] = $link;\n\n return $this->data['link'];\n }", "public function getProductUrl()\n {\n return $this->product_url;\n }", "public function getLink() {\n\t\tif (array_key_exists('channels', $this->feedElements)) {\n\t\t\treturn $this->feedElements['channels']['link'];\n\t\t}\n\t\treturn null;\n\t}", "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public function getProductosUrl(){\n return $this->vectorUrlsProductos;\n }", "public function getLink()\n {\n return $this->get('Link');\n }", "public static function getLink()\n {\n return self::$link;\n }", "public function column_url($link)\n {\n }", "public function getLink() {\n return $this->link;\n }", "public function get_link()\n {\n\n return $this->link;\n }", "public function get_link() {\r\n return $this->link;\r\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLinkCountAttribute()\n {\n return $this->oppositeEnvironments->count();\n }", "public function getConncetion() {\n return $this->link;\n }", "public function getLink() {\n\t\treturn $this->link;\n\t}", "public function getAxisNumberSourceLinked()\n {\n return (string) $this->axisNumber['source_linked'];\n }", "public function getItemLinkUrl()\n {\n return $this->escapeXssInUrl($this->getEntity()->getData('list_item_url'));\n }", "public function link(): string {\n\t\treturn $this->page['link'] ?? '';\n\t}", "public function getLinkNamesAttribute()\n {\n $links = [];\n foreach ($this->oppositePivot as $key => $link) {\n if ($link->pivot->link_type == EnvironmentLink::AUTOMATIC) {\n $link_type = trans('environments.link_auto');\n } else {\n $link_type = trans('environments.link_manual');\n }\n $links[] = ($key+1) . '. ' . $link->name. ' - '. $link_type;\n }\n\n if (count($links)) {\n return implode(\"<br />\", $links);\n }\n\n return trans('app.none');\n }", "public function link(): string\n {\n return $this->link;\n }", "public function get_link()\n\t{\n\t\treturn $this->link;\n\t}", "public function getLink()\n\t{\n\t\treturn $this->link;\n\t}", "public function getLink()\n\t{\n\t\treturn $this->link;\n\t}", "function getLink() {\n\t\treturn $this->getElementText(DOMIT_RSS_ELEMENT_LINK);\n\t}", "function getLink() {\n\t\treturn $this->getElementText(DOMIT_RSS_ELEMENT_LINK);\n\t}", "function getLink() {\n\t\treturn $this->getElementText(DOMIT_RSS_ELEMENT_LINK);\n\t}", "function getLink() {\n\t\treturn $this->getElementText(DOMIT_RSS_ELEMENT_LINK);\n\t}", "function getURL() \n {\n return $this->getValueByFieldName( 'navbarlink_url' );\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getLinkingMode() {\n return CFG_OPT_PROD_CAT_LINK & Api::sci_cache_int_get(SCI_OPTS);\n }", "public function getLinkUrl(): string\n {\n return $this->linkUrl;\n }", "public function getProductUrls() {\n\t\t$urls = $this->crawler->filter( 'div.productInfo h3 a' )->each( function ( Crawler $node, $i ) {\n\t\t\treturn $node->attr( 'href' );\n\t\t} );\n\n\t\treturn $urls;\n\t}", "public function getLink(){\n return $this->link;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getLink(): ?string\n {\n return $this->link;\n }", "private function getDocLink(DOMElement $column) {\n\t\t\n\t\t$anchors = $column->getElementsByTagName('a');\t\n\t\t$anchor = $anchors->item(0);\t\t\n\t\t\t\t\t\t\n\t\t$url = \"https://www.landtag.nrw.de\".$anchor->getAttribute('href');\t\t\t\n\t\t\t\t\n\t\t$this->official_record_nr = $anchor->nodeValue; \n\t\t\n\t\treturn $url;\n\t}", "public function getLinks()\n {\n return $this->getProperty(\"Links\", new NotebookLinks());\n }", "public function getLink()\n {\n return Controller::join_links($this->Blog()->Link(), 'category', $this->URLSegment);\n }", "public function getLink();", "public function getLink();", "public function getValue()\n {\n //get value\n $value = $this->getValueFromRow($this->getData(), $this->dataIndex);\n\n if ($this->formater) {\n $value = call_user_func_array($this->formater, [$value, $this->getData(), $this->dataIndex]);\n }\n\n //render link\n if ($url = $this->getUrl()) {\n $href = is_array($url) ? $url['href'] : $url;\n $target = is_array($url) && !empty($url['target']) ? $url['target'] : '';\n\n $href = $href . (strpos($href, '?') === false ? '?' : '&') . 'return=' . urlencode($this->getGrid()->getUrl());\n //замена конструкций {{param}} на значение\n if (preg_match_all('#{{([\\d\\w_]+)}}#', $href, $m)) {\n foreach ($m[1] as $key) {\n $href = str_replace('{{' . $key . '}}', $this->getValueFromRow($this->getData(), $key), $href);\n }\n }\n $value = '<a ' . ($target ? 'target=\"' . $target . '\"' : '') . ' href=\"' . $href . '\">' . $value . '</a>';\n }\n\n return $value;\n }", "public function getLink():?string\n {\n return $this->link;\n }", "public function getPhotoLinkAttribute()\n {\n return $this->attributes['photo_link'] = ($this->photo)?Storage::disk('public')->url($this->photo):config('values.noPhoto');\n }", "public function getPopinLink() {\n\t\treturn $this->popinLink;\n\t}", "function getLink() {\r\n return $this->_link;\r\n }", "function getLink() {\r\n return $this->_link;\r\n }", "public function getLink(): string;", "public function getLink(): string;", "public function column_rel($link)\n {\n }", "public function getPreviewUrlProduct()\n {\n return $this->previewUrlProduct;\n }", "public function Link()\n {\n return $this->Url;\n }", "public function getLink() {}", "public function link_id()\n {\n return $this->Link_ID;\n }", "public function getLinkUrl()\n\t{\n\t\treturn $this->link_url;\n\t}", "function getHref()\n\t{\n\t\treturn $this->xl_href;\n\t}", "public function get_product_names()\n\t{\n\t\t$ret = array();\n\t\t$sum = 0;\n\t\tforeach($this->connections_from(array(\"type\" => \"RELTYPE_ROW\")) as $c)\n\t\t{\n\t\t\t$row = $c->to();\n\t\t\t$ret[] = $row->prod_name();\n\t\t}\n\t\treturn $ret;\n\t}", "public function getUrlN()\n {\n if (! isset($this->urlN)) {\n $this->urlN = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getUrlNQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->urlN;\n }", "public function getCurrHyperlink()\n {\n return $this->currHyperlink;\n }", "public function getLinkConfiguration()\r\n {\r\n return $this->linkConfiguration;\r\n }", "public function getUrl()\n {\n return $this->getProperty()->url;\n }", "public function getLinkImage()\n\t{\n\t\treturn $this->link_image;\n\t}", "protected function getConfigurableProductLinks()\n {\n if (!empty($this->fields['associated_product_ids'])) {\n return $this->fields['associated_product_ids'];\n }\n\n /** @var ConfigurableAttributesData $configurableAttributesData */\n $configurableAttributesData = $this->fixture->getDataFieldConfig('configurable_attributes_data')['source'];\n $associatedProductIds = [];\n\n $configurableAttributesData->generateProducts();\n foreach ($configurableAttributesData->getProducts() as $product) {\n $associatedProductIds[] = $product->getId();\n $this->fields['product']['attribute_set_id'] = $product->getDataFieldConfig('attribute_set_id')['source']\n ->getAttributeSet()->getAttributeSetId();\n }\n\n return $associatedProductIds;\n }", "public function getLinkId()\n {\n return $this->linkId;\n }", "public function get_packlink_price() {\n\t\treturn $this->packlink_price;\n\t}", "public function getDisplayLink()\n {\n return $this->displayLink;\n }", "function getLink(): string;", "public function getLinksList()\n {\n $sql = 'SELECT bwl.*, bwll.`title`, bwll.`url`\n FROM `'._DB_PREFIX_.'bwcatbanner_link` bwl\n LEFT JOIN `'._DB_PREFIX_.'bwcatbanner_link_lang` bwll\n ON (bwl.`id_item` = bwll.`id_item`)\n WHERE bwl.`id_shop` = '.(int)Context::getContext()->shop->id.'\n AND bwll.`id_lang` = '.(int)Context::getContext()->language->id;\n\n return Db::getInstance()->executeS($sql);\n }", "public function getStoreURL(){\r\n\t\t//$this->initDb();\r\n\t\t$this->store_url='';\r\n\t\tif($this->car_id !=0 && $this->getStoreId()!=''){\r\n\t\t\t$this->store_url = getValue(\"SELECT storeurl FROM tbl_store WHERE store_id=\".$this->getStoreId());\r\n\t\t}\r\n\t\treturn $this->store_url;\t\r\n\t}", "public function getLinkData()\n {\n return array(\n 'loungetag' => $this->lounge->getLoungetag()\n );\n }", "public function getItemLinkTarget()\n {\n return $this->getEntity()->getData('target_blank');\n }", "public function getFeedLink();", "function getUrl() {\n\t\treturn $this->getAttribute(DOMIT_RSS_ATTR_URL);\n\t}", "function getUrl() {\n\t\treturn $this->getAttribute(DOMIT_RSS_ATTR_URL);\n\t}", "public function getLink():string;", "public function getLinkkey($row, $column) \n {\n $linkkey = null;\n if (isset($column['linkkey'])) {\n if (isset($row[$column['linkkey']])) {\n $linkkey = $row[$column['linkkey']];\n }\n }\n return $linkkey;\n \n }", "private function getProductsSubLink() : string\n {\n return \"/models/\" . $this->getId() . \"/products\";\n }", "protected function getProductLoadId()\n {\n $product = $this->locator->getProduct();\n if (method_exists($product, 'getData')) {\n return $product->getData($this->getProductLinkField());\n }\n }" ]
[ "0.67851394", "0.6463802", "0.6350494", "0.61769235", "0.6084353", "0.5959329", "0.58454585", "0.57841164", "0.5718209", "0.56869537", "0.5650311", "0.56126696", "0.55887437", "0.55419314", "0.5527909", "0.54618555", "0.54607004", "0.54516107", "0.5442987", "0.5419095", "0.5406348", "0.5398868", "0.5398868", "0.5398868", "0.5398868", "0.5398868", "0.5398868", "0.5398868", "0.5398868", "0.5398868", "0.5398868", "0.5398868", "0.5398868", "0.5398868", "0.5398868", "0.5397623", "0.5364204", "0.53571177", "0.5356235", "0.5345011", "0.53418773", "0.5319259", "0.53149194", "0.5290352", "0.5286344", "0.5286344", "0.5282281", "0.5282281", "0.5282281", "0.5282281", "0.5276198", "0.52576864", "0.5252824", "0.5236534", "0.519366", "0.5193259", "0.51819104", "0.5175093", "0.51491785", "0.5146903", "0.51438206", "0.51377344", "0.51377344", "0.51341957", "0.5133982", "0.5114467", "0.51117885", "0.5101764", "0.5101764", "0.5100562", "0.5100562", "0.50956553", "0.507436", "0.5072189", "0.5071265", "0.5070968", "0.50650555", "0.5045031", "0.5042127", "0.5032702", "0.50126195", "0.5001699", "0.5000226", "0.5000044", "0.49892727", "0.4988739", "0.49870324", "0.49687845", "0.49658635", "0.49602312", "0.495864", "0.49455225", "0.4943969", "0.49415365", "0.49265182", "0.49265182", "0.49044043", "0.49022144", "0.4901561", "0.48925582" ]
0.7131735
0
Get the [prod_linkdescription] column value.
public function getProdLinkdescription() { return $this->prod_linkdescription; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProdDescription()\n {\n return $this->prod_description;\n }", "private function getProductLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "public function getProductDescription()\n\t{\n\t\treturn $this->getKeyValue('product_description'); \n\n\t}", "public function getProduct_desc () {\n\t$preValue = $this->preGetValue(\"product_desc\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_desc\")->preGetData($this);\n\treturn $data;\n}", "public function getProductDesc()\n {\n return isset($this->productDesc) ? $this->productDesc : null;\n }", "public function getDescription() {\n\t\t$field = $this->getDescriptionField();\n\t\treturn $field ? $field->getValue() : '';\n\t}", "function get_description() {\n return $this->get_mapped_property('description');\n }", "public function getDescriptionRef()\n {\n return $this->descriptionRef;\n }", "public function getProductEntityLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "public function getDescription()\n {\n if ($this->helper->getDescriptionType()) {\n return nl2br($this->getProduct()->getData('description'));\n } else {\n return nl2br($this->getProduct()->getData('short_description'));\n }\n }", "public function Description()\n {\n $description = $this->rssField($this->descriptionField);\n\n // HTML fields need links re-written\n if ($description instanceof DBHTMLText) {\n return $description->obj('AbsoluteLinks');\n }\n\n return $description;\n }", "public function getDescription() \n {\n return $this->_fields['Description']['FieldValue'];\n }", "private function getProductEntityLinkField()\n {\n if (!$this->productEntityLinkField) {\n $this->productEntityLinkField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getLinkField();\n }\n return $this->productEntityLinkField;\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "function getDescription() {\n\t\treturn $this->data_array['description'];\n\t}", "public function description()\n {\n if (@$this->data[\"description\"]) {\n return $this->data[\"description\"];\n }\n return null;\n }", "public function getLinkPl() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(6, $this->_result)) return (string) $this->_result[6];\n\t\t\telse parent::throwGetColException('Not set ProjectsListingsModel::getLinkPl', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From ProjectsListingsModel::getLinkPl', __LINE__, __FILE__);\n\t}", "public function getDescription()\n {\n return isset($this->description) ? $this->description : '';\n }", "public function getDescription()\n {\n return isset($this->description) ? $this->description : '';\n }", "public function getDescription()\n {\n return isset($this->description) ? $this->description : '';\n }", "public function getDescriptionId()\n {\n return $this->description_id;\n }", "public function getDescription() {\n return $this->attributes['description'];\n }", "public function getDescription()\n {\n return self::QUALITY_MAP[$this->qualityID]['description'];\n }", "private function get_description()\n\t{\n\t\treturn $this->m_description;\n\t}", "private function get_description()\n\t{\n\t\treturn $this->m_description;\n\t}", "public function fetchDescription( $link_id ) {\n\t\treturn false;\n\t}", "protected function getLinkedProductID () {\n $productFilter = Search::getInstance($this->data['attrs']['source_id'])->getFilter('product');\n\n return $productFilter ? $productFilter['value'] : null;\n }", "private function get_description_endpoint() : string {\n\t\tpreg_match( '/detailDesc=\\\"(.*?)\\\";/si', $this->request, $matches );\n\t\tif ( empty( $matches[1] ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn str_replace( '\"', '', $matches[1] );\n\t}", "public function getDescription()\r\n {\r\n $fields = $this->def->getFields();\r\n foreach ($fields as $field)\r\n {\r\n if ($field->type == 'text')\r\n {\r\n if ($field->name == \"description\"\r\n || $field->name == \"notes\"\r\n || $field->name == \"details\"\r\n || $field->name == \"comment\")\r\n {\r\n return $this->getValue($field->name);\r\n }\r\n }\r\n\r\n }\r\n\r\n return \"\";\r\n }", "public function get_description() {\n\t\treturn $this->description;\n\t}", "public function get_description() { \n\n\t\treturn $this->description; \n\t\n\t}", "public function get_description() {\r\n return $this->description;\r\n }", "public function getDescription(): string\n {\n $description = $this->meta[\"description\"] ?? \"\";\n return is_array($description) ? end($description) : $description;\n }", "public function get_description()\n\t{\n\t\treturn $this->description;\n\t}", "public function get_description()\n\t{\n\t\treturn $this->description;\n\t}", "public function get_description() {\n return $this->description;\n }", "function get_description()\n {\n return $this->get_default_property(self :: PROPERTY_DESCRIPTION);\n }", "function get_description()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_DESCRIPTION);\r\n }", "protected function getDescription() {\r\n\t\treturn $this->description;\r\n\t}", "public function getBuyableDescription()\n {\n foreach (['name', 'title', 'dsecription'] as $key) {\n if (property_exists($this, $prop)) {\n return $this->$prop;\n }\n }\n\n return null;\n }", "public static function getCategoryDescription() {\n global $lC_Database, $lC_Language, $current_category_id;\n \n $Qcategory = $lC_Database->query('select categories_description from :table_categories_description where categories_id = :categories_id and language_id = :language_id');\n $Qcategory->bindTable(':table_categories_description', TABLE_CATEGORIES_DESCRIPTION);\n $Qcategory->bindInt(':categories_id', $current_category_id);\n $Qcategory->bindInt(':language_id', $lC_Language->getID());\n $Qcategory->execute();\n \n $output = '';\n if ($Qcategory->value('categories_description') != '') {\n $output .= $Qcategory->value('categories_description');\n }\n \n return $output;\n }", "public function getDescription() {\n return $this->config['general']['description'];\n }", "public function getDescriptionUnwrapped()\n {\n return $this->readWrapperValue(\"description\");\n }", "function description($id)\n{\n\t$description=mysql_fetch_array(mysql_query(\"select small_description from manage_property where pid='$id'\"));\n\treturn $description['small_description'];\n\t}", "public function getDescription()\r\n {\r\n return $this->m_description;\r\n }", "public function get_description(){\n\t\treturn $this->description;\n\t}", "public function getLongDescription()\n {\n if (!is_null($this->long_description)) {\n return $this->long_description;\n }\n return false;\n }", "public function getDescription(): string\n {\n return (string)($this->config['description'] ?? '');\n }", "public function getDescription()\n {\n return $this['description'];\n }", "public function getDescription()\n {\n return $this->__get(self::FIELD_DESCRIPTION); \n }", "public function getItemDescription()\n {\n return $this->item_description;\n }", "function article_description() {\n return Registry::prop('article', 'description');\n}", "public function get_description()\n {\n return $this->get_default_property(self::PROPERTY_DESCRIPTION);\n }", "public function getDescription()\n {\n if (!is_null($this->description)) {\n return $this->description;\n }\n return 'No description for \"'.$this->name.'\"';\n }", "public function getDescription(): ?string\n {\n if (count($this->description) == 0) {\n return null;\n }\n return $this->description['value'];\n }", "public function getCategoryDescription() {\n //as part of a search in a gridview, that is why we are returning it\n //only if not empty\n if (!empty($this->idCategoria)) {\n return $this->idCategoria;\n }\n return $this->_categoryDescription;\n }", "function blogDescription(){\r\n\t\tglobal $conn;\r\n\t\t$result = $conn->query('SELECT description FROM blog LIMIT 1');\r\n\t\tif($result instanceof mysqli_result)\r\n\t\t\tif($result->num_rows > 0)\r\n\t\t\t\treturn $result->fetch_object()->description;\t\t\t\t\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "public function getDescription() {\n return $this->_get( 'description' );\n }", "public function getDescript(){\r\n\t\tif($res = $this->atributes->fetch_array()){\r\n\t\t\treturn $res['description'];\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function getDescription(): string\n {\n return 'TYPO3 includes native URL handling. Every product record has its own speaking URL path called \"slug\" which can be edited in TYPO3 Backend. However, it is necessary that all products have a URL pre-filled. This is done by evaluating the title.';\n }", "public function getDescription(): string\r\n {\r\n return $this->description;\r\n }", "function site_description() {\n\treturn site_meta('description');\n}", "public function getDescription() {\n return $this->desc;\n }", "public function get_description(){\n\t\treturn $this->_description;\n\t}", "public function getDescription(): string\n {\n return $this->description;\n }", "public function getDescription(): string\n {\n return $this->description;\n }", "public function getDescription(): string\n {\n return $this->description;\n }", "public function getDescription(): string\n {\n return $this->description;\n }", "public function getDescription(): string\n {\n return $this->description;\n }", "public function getDescription(): string\n {\n return $this->description;\n }", "public function getDescription(): string\n {\n return $this->description;\n }", "public function getDescription(): string\n {\n return $this->description;\n }", "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "public function getDescription(): string\n\t{\n\t\treturn $this->description;\n\t}", "public function getLongDescription() {\n return $this->longDesc;\n }", "public function getPageDescription()\n {\n $element = $this->query('meta[name=\"description\"]')->first();\n if ($element) {\n return $element->getAttribute('content');\n }\n\n return '';\n }", "public function getItemDescription() {\n\t\treturn($this->itemDescription);\n\t}", "public function setProdLinkdescription($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_linkdescription !== $v) {\n $this->prod_linkdescription = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_LINKDESCRIPTION] = true;\n }\n\n return $this;\n }", "public function getDescription() {\r\n return $this->description;\r\n }", "public function getDescription($node, $truncate = TRUE) {\n $description = '';\n if (isset($node->body->value) ||\n isset($node->field_copy->value) ||\n isset($node->field_description->value) ||\n isset($node->field_bio->value)) {\n if (isset($node->body->value)) {\n $description = $node->body->value;\n }\n elseif (isset($node->field_copy->value)) {\n $description = $node->field_copy->value;\n }\n elseif (isset($node->field_description->value)) {\n $description = $node->field_description->value;\n }\n else {\n $description = $node->field_bio->value;\n }\n }\n\n // Product description.\n if ($node->getType() == 'product' && !empty($node->get('field_product_information'))) {\n $productInformation = $node->get('field_product_information')->entity;\n $description = $productInformation->field_copy->value;\n }\n $strippedTags = str_replace(\"&nbsp;\", \"\", strip_tags($description));\n $replace_ampersand = str_replace(\"&amp;\", \"&\", $strippedTags);\n if ($truncate) {\n return Unicode::truncate($replace_ampersand, 240, TRUE, TRUE);\n }\n else {\n return $replace_ampersand;\n }\n }", "public function getDescription() {\r\n\t\treturn $this->description;\r\n\t}", "public function getDescription() {\r\n\t\treturn $this->description;\r\n\t}", "public function getDescription() {\r\n\t\treturn $this->description;\r\n\t}", "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "public function getDescription()\n {\n return $this->_Description;\n }", "function get_description() \t{\n \t\treturn $this->description;\n \t}", "public function getDescriptionNote() {\n $elements = $this->_getDetails();\n $display_version = variable_get('ting_search_openformat', 'bibliotekdkWorkDisplay');\n if ($display_version === 'bibliotekdkWorkDisplay') {\n $fields = array(\n 'descriptionNoteLink' => array(\n 'descriptionNoteLink' => 'descriptionNoteLinkElement'\n ),\n );\n } else {\n $fields = array('descriptionNote');\n }\n $result = TingOpenformatMethods::parseFields($elements, $fields);\n return (is_array($result)) ? reset($result) : $result;\n }" ]
[ "0.70448965", "0.67213416", "0.667102", "0.6542438", "0.64229894", "0.6326362", "0.6288594", "0.62489736", "0.62165356", "0.6150391", "0.61021763", "0.6057581", "0.6010874", "0.5968445", "0.5968445", "0.5968445", "0.5968445", "0.5968445", "0.5968445", "0.5968445", "0.5968445", "0.5968445", "0.5968445", "0.5968445", "0.5968445", "0.5968445", "0.5967386", "0.5924968", "0.5915518", "0.59078395", "0.59078395", "0.59078395", "0.5882119", "0.5871074", "0.58667994", "0.5858887", "0.5858887", "0.5846747", "0.5838966", "0.58380073", "0.5836715", "0.5831211", "0.58293533", "0.58280975", "0.5822282", "0.5818461", "0.5818461", "0.5816977", "0.58123374", "0.57985365", "0.5795068", "0.5790446", "0.5790065", "0.5782385", "0.5775507", "0.57747597", "0.57745737", "0.57694256", "0.5766548", "0.5765854", "0.57589316", "0.5752264", "0.5744718", "0.5742892", "0.57387567", "0.5735085", "0.57272303", "0.57250535", "0.5718072", "0.57171756", "0.5708302", "0.57056326", "0.5701167", "0.56951046", "0.5691232", "0.56866217", "0.56836855", "0.56836855", "0.56836855", "0.56836855", "0.56836855", "0.56836855", "0.56836855", "0.56836855", "0.5674474", "0.56716436", "0.5665844", "0.56638837", "0.5662765", "0.566248", "0.56605566", "0.5657426", "0.5654802", "0.5654802", "0.5654802", "0.56487983", "0.56487983", "0.56485504", "0.5647097", "0.5640702" ]
0.81548584
0
Get the [prod_front] column value.
public function getProdFront() { return $this->prod_front; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdFront($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_front !== $v) {\n $this->prod_front = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_FRONT] = true;\n }\n\n return $this;\n }", "public function getDisplayFront()\n {\n return $this->getData(self::DISPLAY_FRONT);\n }", "function Front() {\n if ($this->isEmpty()){\n return -1;\n }\n return $this->data[$this->front];\n }", "public function getProdEra()\n {\n return $this->prod_era;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getPreviewto() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(11, $this->_result)) return (string) $this->_result[11];\n\t\t\telse parent::throwGetColException('Not set CampaignDefinitionsModel::getPreviewto', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From CampaignDefinitionsModel::getPreviewto', __LINE__, __FILE__);\n\t}", "public function get_value() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"gtmetrix\";\n $return = $wpdb->get_results( \"SELECT * FROM $table_name ORDER BY id DESC LIMIT 1\" );\n return $return[0];\n }", "public function getPreviewfrom() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(10, $this->_result)) return (string) $this->_result[10];\n\t\t\telse parent::throwGetColException('Not set CampaignDefinitionsModel::getPreviewfrom', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From CampaignDefinitionsModel::getPreviewfrom', __LINE__, __FILE__);\n\t}", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "function Front() {\n if($this->isEmpty()){\n return -1;\n }\n\n return $this->queue[$this->front];\n\n }", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function getEtiqDeFront() {\n return $this->etiqDeFront;\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getproduct_feathered()\n\t\t{\n\t\t\t$query = \"SELECT * FROM tbl_product WHERE type = '0'\";\n\t\t\t$result = $this->db->select($query);\n\t\t\treturn $result;\n\t\t}", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function get_value() {\n\t\t$row = $this->get_row();\n\t\tif ($row) {\n\t\t\treturn current($row);\n\t\t}\n\t}", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getStdShipToCd()\n {\n return $this->std_ship_to_cd;\n }", "public function getPointProd1():?int\n {\n return $this->produit1 <= 0 ? 0 : $this->produit1 * 5;\n }", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function getProdTitle()\n {\n return $this->prod_title;\n }", "public function getShippedValue()\n {\n return defined('static::SHIPPED_VALUE') ? static::SHIPPED_VALUE : 'shipped';\n }", "public function getProduct_category () {\n\t$preValue = $this->preGetValue(\"product_category\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_category\")->preGetData($this);\n\treturn $data;\n}", "public function getShowInProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getStoreFrontName();", "public function getShow_on_market () {\n\t$preValue = $this->preGetValue(\"show_on_market\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->show_on_market;\n\treturn $data;\n}", "public function getProductDefaultValue() {\n //initialize dummy value.. no content header.pure html\n $sql = null;\n $productId = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n SELECT `productId`\n FROM `product`\n WHERE `isActive` = 1\n AND `companyId` = '\" . $this->getCompanyId() . \"'\n AND \t `isDefault` =\t 1\n LIMIT 1\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n SELECT TOP 1 [productId],\n FROM [product]\n WHERE [isActive] = 1\n AND [companyId] = '\" . $this->getCompanyId() . \"'\n AND \t [isDefault] = 1\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n SELECT PRODUCTID AS \\\"productId\\\",\n FROM PRODUCT\n WHERE ISACTIVE = 1\n AND COMPANYID = '\" . $this->getCompanyId() . \"'\n AND \t ISDEFAULT\t =\t 1\n AND \t\t ROWNUM\t =\t 1\";\n } else {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $this->t['databaseNotFoundMessageLabel']));\n exit();\n }\n }\n }\n try {\n $result = $this->q->fast($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n if ($result) {\n $row = $this->q->fetchArray($result);\n $productId = $row['productId'];\n }\n return $productId;\n }", "public function getFirstCol() : int\n {\n\n // Convert A1:D3 to A1.\n list($startRef,) = explode(':', $this->getTableNode()->getAttribute('ref'));\n\n // Convert A1 to 1.\n $startCol = preg_replace('/([0-9])/', '', $startRef);\n\n return XlsxTools::convRefToNumber($startCol);\n }", "public function getProductFnacId()\n {\n return $this->product_fnac_id;\n }", "public function getDisplayField()\n {\n if ($this->_displayField === null) {\n $primary = (array)$this->getPrimaryKey();\n $this->_displayField = array_shift($primary);\n\n $schema = $this->getSchema();\n if ($schema->getColumn('title')) {\n $this->_displayField = 'title';\n }\n if ($schema->getColumn('name')) {\n $this->_displayField = 'name';\n }\n }\n\n return $this->_displayField;\n }", "public function getProductPosition()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product_position', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function cheapestProduct()\n {\n return $this->productsSortedByCheapest()[0] ?? null;\n }", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function getPreviewUrlFront()\n {\n return $this->previewUrlFront;\n }", "function getRecordCol($index) {\n return $this->records[$index]->getCol();\n }", "public function getStoreFrontId();", "public function getProductPosition()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product_position');\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getProductData()\n {\n return $this->_coreRegistry->registry('current_product');\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "function get_first_column( $table, $db = null ) {\n\n\t\treturn reset( $this->get_columns( $table, $db ) );\n\n\t}", "public function getFaqActive () {\n\t$preValue = $this->preGetValue(\"faqActive\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->faqActive;\n\treturn $data;\n}", "public function fastestProduct()\n {\n return $this->productsSortedByFastest()[0] ?? null;\n }", "protected function get_column() {\n\n\t\t$column = $this->foreign_column ?: $this->foreign_table->get_primary_key();\n\t\t$columns = $this->foreign_table->get_columns();\n\n\t\treturn $columns[ $column ];\n\t}", "public function getFrontUrl()\n {\n if ($this->front !== null) {\n return $this->front;\n } else {\n return $this->server;\n }\n }", "public function firstValue()\n\t{\n\t\treturn $this->first()->value;\n\t}", "public function getPointProd4():?int\n { \n return $this->produit4 <= 0 ? 0 : $this->produit4 * 35;\n }", "public function getAPrix()\n {\n return $this->prix;\n }", "public function getValue(): string\n {\n return $this->fusionValue('value') ?? '';\n }", "public function getPreviewUrlProduct()\n {\n return $this->previewUrlProduct;\n }", "public function getColdNumber()\n {\n return $this->cold_number;\n }", "public function getFeaturedProduct(){\n\t\t$sql = \"SELECT * FROM tbl_product WHERE type = '1' ORDER BY pid DESC LIMIT 4\";\n\t\t$result = $this->db->select($sql);\n\t\treturn $result;\n\t}", "public function firstCol() {\n\t}", "public function getShowInProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product');\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "function wp_store_loop_columns() {\r\n\t\t\tif(get_theme_mod('wp_store_woocommerce_setting_product_rows') && get_theme_mod('wp_store_woocommerce_setting_product_rows')>0){\r\n\t\t\t\t$xr = get_theme_mod('wp_store_woocommerce_setting_product_rows');\r\n\t\t\t} else {\r\n\t\t\t\t$xr = 3;\r\n\t\t\t}\r\n\t\t\treturn intval($xr); \r\n\t\t}", "public function getFrontPageUrl()\n {\n return $this->_frontPageUrl;\n }", "public function item_primary_image()\n\t{\n\t\t$product_id = ee()->TMPL->fetch_param('product_id');\n\n\t\t$query = ee()->db\n\t\t\t->select('field_id_32')\n\t\t\t->where('channel_id', 1)\n\t\t\t->where('entry_id', $product_id)\n\t\t\t->get('channel_data');\n\n\t\treturn $query->row('field_id_32');\t\n\t}", "public function getPointProd3():?int\n {\n //Recuperation de la partie entière de la division du nombre\n //de produit3 par 2\n $paire = (int)($this->produit3 / 2);\n return $this->produit3 <= 0 ? 0 : $paire * 15;\n }", "private function get_last_display_column()\r\n\t\t{\r\n\t\t\t$last_display_col = 0;\r\n\t\t\t\r\n\t\t\tforeach($this->c_columns as $key_col => $val_col)\r\n\t\t\t{\r\n\t\t\t\tif($val_col['display']) $last_display_col = $key_col;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $last_display_col;\r\n\t\t}", "public function getProduct() {\n return $this->_registry->registry ( 'current_product' );\n }", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "public function getAreaFrontName()\n {\n $resolver = ObjectManager::getInstance()->get('Vnecoms\\Vendors\\App\\Area\\FrontNameResolver');\n return $resolver->getFrontName(true);\n }", "public function get_min_product_price()\n\t{\n\t\t$this->db->select('MIN(product_selling_price) AS price')->from('product')->where(\"product_status = 1\");\n\t\t$query = $this->db->get();\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result->price;\n\t}", "protected function value()\n {\n return $this->row($this->row);\n }", "public function fetchColumn() {\n if ($this->result === true) {\n return false;\n }\n\n // Are we running PHP >=8.1?\n if (PHP_VERSION_ID >= 80100) {\n $value = $this->result->fetch_column();\n return ($value === null || $value === false) ? $value : (string) $value;\n }\n\n // Fallback to traditional approach\n $row = $this->result->fetch_row();\n return $row ? $row[0] : false;\n }", "public function getProductPrice(Request $request){\n $data = $request->all();\n // echo '<pre>'; print_r($data); die;\n $prodArray = explode(\"-\", $data['idSize']);\n // echo $prodArray[0]; echo $prodArray[1]; die;\n $prodAttr = ProductsAttribute::where(['product_id' => $prodArray[0], 'size' => $prodArray[1]])->first();\n echo $prodAttr->price;\n echo \"#\";\n echo $prodAttr->stock;\n }", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getCssCustomProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/css_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getPartneredSmallParcelData()\n {\n return $this->_fields['PartneredSmallParcelData']['FieldValue'];\n }", "public function getProcProxFase(){\n return $this->_data['proc_prox_fase'];\n }", "public function getSp3disp()\n {\n return $this->sp3disp;\n }", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "public function getCurrentProduct()\n {\n return $this->_registry->registry('current_product');\n }", "public function getCurrentProduct()\n {\n return $this->_registry->registry('current_product');\n }", "public function getCurrentProduct()\n {\n return $this->_registry->registry('current_product');\n }", "public function getShowInCart()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_cart', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getValue()\n {\n return $this->value instanceof ProductDiscountValueDraftBuilder ? $this->value->build() : $this->value;\n }", "public function getProduct()\n {\n return isset($this->product) ? $this->product : null;\n }", "public function getProdName(){\n\t\treturn array_keys($this->_products);\n\t}", "protected function getPositionColumn()\n {\n return $this->positionColumn ?? 'position';\n }", "function getPrimaryColumn($table){\n\n\n\tglobal $dbh;\t\n\tglobal $dbname;\n\t\t\n\n\t$SqlTablePrimaryKeyCollumnName = \"\tSELECT k.column_name\n\t\t\t\t\t\t\t\t\t\t\tFROM information_schema.table_constraints t\n\t\t\t\t\t\t\t\t\t\t\tJOIN information_schema.key_column_usage k\n\t\t\t\t\t\t\t\t\t\t\tUSING(constraint_name,table_schema,table_name)\n\t\t\t\t\t\t\t\t\t\tWHERE t.constraint_type='PRIMARY KEY'\n\t\t\t\t\t\t\t\t\t \t\tAND t.table_schema='{$dbname}'\n\t\t\t\t\t\t\t\t\t \t\tAND t.table_name='{$table}';\n\t\t\t\t\t\t\t\t\t \";\n\n\t$ResultTablePrimaryKeyCollumnName=$dbh->query($SqlTablePrimaryKeyCollumnName);\n\n\t$row = $ResultTablePrimaryKeyCollumnName->fetch(PDO::FETCH_ASSOC);\n\n\treturn $row['column_name'];\n\n\t}", "function getFareCalcLine() {\n return $this->fareCalcLine;\n }", "public function getPreco()\n {\n return $this->preco;\n }", "public function getProductStock()\n {\n /** @var \\Magento\\CatalogInventory\\Model\\Stock\\ItemArray $stockItem */\n $stockItem = $this->stockRegistry->getStockItem(\n $this->getCurrentProduct()->getId(),\n $this->getCurrentProduct()->getStore()->getWebsiteId()\n );\n if ($stockItem->getManageStock() == 0) {\n return 1;\n }\n\n $qty = round($stockItem->getQty());\n if ($qty < 1) {\n if ($stockItem->getBackorders() == 1) {\n return 1;\n }\n\n if ($stockItem->getIsInStock()) {\n return '';\n }\n }\n return $qty;\n }", "public function product()\n {\n return $this->m_product;\n }", "public function getProdRelatedPa()\n {\n return $this->prod_related_pa;\n }", "public function getQuantite_stock()\r\n {\r\n return $this->quantite_stock;\r\n }", "public function setDisplayFront($display_front)\n {\n return $this->setData(self::DISPLAY_FRONT, $display_front);\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "function getDefault() {\n return $this->records[2];\n }", "public function toValue() {\r\n\t\treturn $this->PDOStatement->fetchColumn();\r\n\t}", "function prodname()\r\n {\r\n //left join oc_product as op on opd.product_id=op.product_id \");\r\n\r\n //return $query->rows; \r\n \r\n $query = $this->db->query(\"SELECT product_id,model,sku FROM `oc_product` WHERE `status`='1'\");\r\n \r\n return $query->rows;\r\n }", "function getFrontPage($table_id,$products_id)\n\t{\n\t\t$sql = \"select *\n\t\t\t\tfrom \".$this->table1.\"\n\t\t\t\twhere\n\t\t\t\ttable_id = '\".$table_id.\"'\n\t\t\t\tand\n\t\t\t\tproducts_id = '\".$products_id.\"'\n\t\t\t\torder by\n\t\t\t\torder_num\n\t\t\t\tasc\";\n\t\t//echo $sql;\n\t\t$this->db->execute($sql);\n\t\twhile($rs = $this->db->getNext())\n\t\t{\n\t\t\t$ary['data'][] = array(\n\t\t\t\t'product_id' \t\t=> \t\t$rs->product_id\n\t\t\t\t,'table_id' \t\t=> \t\t$rs->table_id\n\t\t\t\t,'products_id'\t\t=>\t\t$rs->products_id\n\t\t\t\t,'name' \t\t\t=> \t\t$rs->name\n\t\t\t\t,'dimension' \t\t=> \t\t$rs->dimension\n\t\t\t\t,'datasheet' \t\t=> \t\t$rs->datasheet\n\t\t\t\t,'ext' \t\t\t\t=> \t\t$rs->ext\n\t\t\t\t,'quantity_visible'\t=>\t\t$rs->quantity_visible\n\t\t\t\t,'color_options'\t=>\t\t$rs->color_options\n\t\t\t\t,'cri_options'\t\t=>\t\t$rs->cri_options\n\t\t\t\t,'content'\t\t\t=>\t\t$rs->content\n\t\t\t\t,'order_num' \t\t=> \t\t$rs->order_num\n\t\t\t);\n\t\t}\n\t\treturn $ary;\n\t\t\n\t}", "public function getCol()\n {\n return $this->col;\n }" ]
[ "0.64133525", "0.6372073", "0.5874847", "0.55258954", "0.5494779", "0.53923446", "0.5351454", "0.5240376", "0.5237982", "0.52220356", "0.52051556", "0.5170742", "0.5153934", "0.5147479", "0.51456606", "0.5111522", "0.5097187", "0.50857294", "0.5075551", "0.5074687", "0.5043602", "0.50115013", "0.5008497", "0.5006459", "0.49918556", "0.49594045", "0.4949392", "0.4949167", "0.49429312", "0.49410582", "0.49344218", "0.49108958", "0.49089637", "0.49073365", "0.49026045", "0.4885913", "0.4878448", "0.48766878", "0.4875333", "0.48697713", "0.48515177", "0.48490757", "0.4846797", "0.48182684", "0.4816555", "0.48108014", "0.47953138", "0.4788021", "0.4784838", "0.4769662", "0.4768809", "0.4766533", "0.47529277", "0.47458673", "0.4738694", "0.47250238", "0.47248977", "0.4720641", "0.47194135", "0.4714679", "0.47118548", "0.47006333", "0.46911293", "0.46764383", "0.46752527", "0.46732485", "0.46717152", "0.4669811", "0.46628657", "0.46603915", "0.4656333", "0.46545106", "0.46536556", "0.46511838", "0.46506783", "0.4650361", "0.4650323", "0.46461058", "0.46333295", "0.46333295", "0.46333295", "0.46298903", "0.4626813", "0.46231374", "0.4619", "0.46152318", "0.46080485", "0.4606841", "0.46045822", "0.46008584", "0.45980477", "0.45964772", "0.4596066", "0.45949563", "0.45917946", "0.45900825", "0.45883507", "0.45869732", "0.45835882", "0.4583538" ]
0.7472384
0
Get the [prod_keywords] column value.
public function getProdKeywords() { return $this->prod_keywords; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProdKeywordsWriteup()\n {\n return $this->prod_keywords_writeup;\n }", "public function getKeywords(): string\n {\n return $this->keywords;\n }", "public function setProdKeywords($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_keywords !== $v) {\n $this->prod_keywords = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS] = true;\n }\n\n return $this;\n }", "public function getKeyword($product_id) {\n\t\t$sql = \"SELECT `keyword` FROM \" . DB_PREFIX . \"url_alias WHERE query = 'product_id=\" . (int)$product_id . \"'\";\n\t\n\t\t$query = $this->db->query($sql);\n\t\treturn !empty($query->rows) ? $query->rows[0]['keyword'] : '';\n\t}", "public function getKeywords() : string\n {\n return $this->keywords;\n }", "public function getKeyword()\n {\n return $this->keyword;\n }", "public function getKeyword()\n {\n return $this->keyword;\n }", "public function keyword()\n {\n return $this->keyword;\n }", "public function keyword()\n {\n return $this->keyword;\n }", "public function get_keywords()\n\t{\n\t\treturn $this->keywords;\n\t}", "public function getKeyword()\n {\n return $this->readOneof(7);\n }", "public function getKeywordsDc() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(5, $this->_result)) return (string) $this->_result[5];\n\t\t\telse parent::throwGetColException('Not set DiscussCategoriesModel::getKeywordsDc', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From DiscussCategoriesModel::getKeywordsDc', __LINE__, __FILE__);\n\t}", "protected function getKeywords() {\r\n\t\treturn $this->keywords;\r\n\t}", "protected function getKeywordsString() {\r\n\t\treturn implode(', ', $this->keywords);\r\n\t}", "public function getKeywords(){\n return $this->keywords;\n }", "public function getKeywords() \n {\n return $this->keywords;\n }", "public function getKeywords()\n {\n return addslashes(trim(join($this->__keywordsDelimiter, $this->__keywords)));\n }", "public function meta_keywords()\n\t{\n\t\treturn $this->get_context_meta_value( __FUNCTION__ );\n\t}", "public function getKeywords()\n {\n return $this->keywords;\n }", "public function getKeywords()\n {\n return $this->keywords;\n }", "public function getKeywords()\n {\n return $this->keywords;\n }", "public function getKeywords() \r\n { \r\n return $this->_keywords; \r\n }", "function get_keywords()\n{\n global $KEYWORDS_TABLE;\n $q = \"select keyword, description from `$KEYWORDS_TABLE` order by keyword;\";\n $rows = dbSelect($q, 'get_keywords()');\n $keywords = array();\n foreach ($rows as $row) {\n $keywords[] = $row[0];\n }\n return $keywords;\n}", "public function getKeywords()\n\t{\n\t\treturn $this->keywords;\n\t}", "public function getKeywords()\n\t{\n\t\treturn $this->keywords;\n\t}", "public function keywords()\n\t{\n\t\treturn $this->keywords;\n\t}", "public function getKeywords() {\n return $this->_keywords;\n }", "public function _getTags(Product $product)\n {\n return $product->getData('meta_keyword');\n }", "protected function _getTags($productId)\n {\n return Mage::getResourceModel('catalog/product')->getAttributeRawValue($productId, 'meta_keyword', $this->_storeId);\n }", "public function meta_keywords()\n\t{\n\t\treturn $this->meta_keywords;\n\t}", "public function getKeywordsAttribute()\n {\n return collect($this->terms)->map(function ($taxonomy)\n {\n return collect($taxonomy)->values();\n\n })->collapse()->toArray();\n }", "public function getMetaKeywords(): string\n {\n return (string) $this->metaKeywords;\n }", "public function getMetaKeywords(): string\n {\n return (string) $this->metaKeywords;\n }", "public function getKeyword() : string\n {\n return $this->getMatchedText();\n }", "public function getQueryKeywords()\n {\n return $this->queryKeywords;\n }", "public function loadProductsKeywords(array $productIds) {\n\n $query = str_replace(':productIds', implode(',', $productIds), self::LOAD_PRODUCTS_KEYWORDS);\n\n $this->db->query($query);\n\n return $this->arraySetKey($this->db->fetchAll(), 'productId');\n }", "public function getKeyword()\n {\n return 'SEEN';\n }", "public function keywords($keywords = null)\n {\n return $this->data(self::KEYWORDS, $keywords);\n }", "public function getKeywords();", "public function get_keyword($key = 0)\n {\n }", "public function getSearchKeywords()\n {\n return $this->_keywords;\n }", "public function getProdName(){\n\t\treturn array_keys($this->_products);\n\t}", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getSeoKeywords();", "public function getKey()\n {\n return $this->getValue('nb_commerce_product_category_key');\n }", "static public function getKeywords() {\n\t\treturn self::$page_keywords;\n\t}", "public function keywords()\n {\n $keywords = explode(',', $this->DOM->filter(\"meta[name='keywords']\")->attr('content'));\n\n $keywords = array_map(function ($keyword) {\n return strtolower(trim($keyword));\n }, $keywords);\n\n return $keywords;\n }", "function get_keywords(){\n global $oDB;\n\t$query2 = \"SELECT words\n \tFROM collection_words\n WHERE words <> '' AND is_active = 1\";\n\n\t$result = $oDB->select($query2);\n\t\n\tif (mysqli_num_rows($result)==0) {\n // Exit if no collection words found\t\n print \"ERROR: No keywords found in collection_words table\";\n exit;\n } \n\telse if (mysqli_num_rows($result)>400) {\n // Exit if keyword count exceeds API limit of 400\n print \"ERROR: More than 400 keywords in collection_words table\";\n exit;\n }\n\n // Create a keyword list\n $keyword_array = array();\n\n while ($row=mysqli_fetch_assoc($result)) {\n array_push($keyword_array, $row['words']);\n }\t\t\n return $keyword_array;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getProductIdFieldName() {\n return 'products_id';\n }", "public function keywords_array()\n\t{\n\t\treturn array_map(\"trim\", explode(\",\", $this->meta_keywords));\n\t}", "public function getContextualKeywords()\n {\n return $this->contextual_keywords;\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function readByKeyQuery(): string\n {\n return 'SELECT * FROM products WHERE id = :id';\n }", "public function getKeywords()\n {\n return clone $this->keywords;\n }", "function dg_get_keywords( $field ) {\n\t\n\t$prefix = 'dg_keyword_';\n\t\n\t// GET FIELD\n\t$keywords = get_post_meta( get_the_ID(), $prefix . $field, true );\n\t\n\tprint $keywords;\n\t\n}", "public function getMetaKeywords();", "public function getPlatformKeywordList();", "public function getSeoKeywords(){ return $this->seo_keywords; }", "public function setProdKeywordsWriteup($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_keywords_writeup !== $v) {\n $this->prod_keywords_writeup = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP] = true;\n }\n\n return $this;\n }", "function dp_meta_keywords() {\n\t$keywords = '';\n\n\tif ( is_singular() && !is_preview() ) {\n\t\t$post = get_queried_object();\n\t\t$taxonomies = get_object_taxonomies( $post->post_type );\n\t\tif ( is_array( $taxonomies ) ) {\n\t\t\tforeach ( $taxonomies as $tax ) {\n\t\t\t\tif ( $terms = get_the_term_list( get_queried_object_id(), $tax, '', ', ', '' ) )\n\t\t\t\t\t$keywords[] = $terms;\n\t\t\t}\n\t\t\tif ( !empty( $keywords ) )\n\t\t\t\t$keywords = join( ', ', $keywords );\n\t\t}\n\t}\n\n\tif(!empty($keywords))\n\t\t$keywords = '<meta name=\"keywords\" content=\"' . esc_attr( strip_tags( $keywords ) ) . '\" />' . \"\\n\";\n\n\techo apply_filters( 'dp_meta_keywords', $keywords );\n}", "protected function get_kit_product_xref() {\n return $this->kit_product_xref;\n }", "private function retrieve_focuskw() {\n\t\t$replacement = null;\n\n\t\tif ( ! empty( $this->args->ID ) ) {\n\t\t\t$focus_kw = WPSEO_Meta::get_value( 'focuskw', $this->args->ID );\n\t\t\tif ( $focus_kw !== '' ) {\n\t\t\t\t$replacement = $focus_kw;\n\t\t\t}\n\t\t}\n\n\t\treturn $replacement;\n\t}", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getProductDescription()\n\t{\n\t\treturn $this->getKeyValue('product_description'); \n\n\t}", "public function getKeywords()\n {\n return array_map('urldecode', $this->keywords);\n }", "public function getAdminSearchKeywords()\n {\n return $this->adminSearchKeywords;\n }", "public function setKeywords($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->keywords = $arr;\n\n return $this;\n }", "private function getKeywordsArray()\n {\n return ['keyword 1', 'keyword 2', 'keyword 3', 'keyword 4', 'keyword 5'];\n }", "public function getKeywords(){\n\t\t$keywords = array();\n\t\t\n\t\tforeach ($this->config()->get('global_keywords') as $k => $v) {\n\t\t\t$keywords[] = '<strong>'.$k.'</strong>';\n\t\t}\n\t\t\n\t\tif ($this->NotifyOnClass) {\n\t\t\t$dummy = singleton($this->NotifyOnClass);\n\t\t\tif ($dummy instanceof NotifiedOn || method_exists($dummy, 'getAvailableKeywords')) {\n\t\t\t\tif(is_array($dummy->getAvailableKeywords())){\n\t\t\t\t\tforeach ($dummy->getAvailableKeywords() as $keyword => $desc) {\n\t\t\t\t\t\t$keywords[] = '<strong>'.$keyword.'</strong> - '.$desc;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $keywords;\n\t}", "public function setKeywords($keywords)\n\t{\n\t\tif( ! is_array($keywords))\n\t\t{\n\t\t\t$keywords = explode(',', $keywords);\n\t\t}\n\n\t\t// Flatten the array into single column\n\t\t$keywords = array_flatten($keywords);\n\t\t// Trim & lowercase the array\n\t\t$keywords = array_map('trim', $keywords);\n\t\t$keywords = array_map('strtolower', $keywords);\n\n\t\t$this->keywords = $keywords;\n\n\t\treturn $keywords;\n\t}", "public function getMetaKeywords() {\n return (isset($this->metaKeywords)) ? $this->metaKeywords : Params::param('metainfo-metaKeywords');\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getEntityName()\n {\n return CacheKeys::PRODUCT_VARCHAR;\n }", "public function getKeywordArray()\n {\n $keywords = array();\n foreach ($this->keywords as $keyword) {\n /** @var $keyword TypeKeyword */\n $keywords[] = mb_strtolower($keyword->getKeyword(), 'utf-8');\n }\n\n return $keywords;\n }", "public function keywords()\n {\n return array(\n $this->bean->name\n );\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "protected function getPlatformKeywordList()\n {\n return $this->factory->getPlatformKeywordList();\n }", "protected function getKeywords($key = '')\n {\n return self::$langKeywords[$key];\n }", "public function getSearchTerm()\n {\n return $this->_catalogSearch->getEscapedQueryText();\n }", "public function getProductId(): string\n {\n return $this->productId;\n }", "public function purchasedKeyword()\n\t{\n\t\treturn $this->lang->words['taken'];\n\t}", "public function getProdTitle()\n {\n return $this->prod_title;\n }", "function prodname()\r\n {\r\n //left join oc_product as op on opd.product_id=op.product_id \");\r\n\r\n //return $query->rows; \r\n \r\n $query = $this->db->query(\"SELECT product_id,model,sku FROM `oc_product` WHERE `status`='1'\");\r\n \r\n return $query->rows;\r\n }", "public function getByKeyword()\n {\n return $this->by_keyword;\n }", "abstract function getKeywords();", "function tpc_get_url_keywords( $url ) {\n\tglobal $ydb;\n\t$table = YOURLS_DB_TABLE_URL;\n\t$url = yourls_sanitize_url($url);\n\t$rows = $ydb->fetchObjects(\"SELECT `keyword` FROM `$table` WHERE `url` = :url\", array(\"url\" => $url));\n\n\t$keywords = array_map(function($r) { return $r->keyword; }, $rows);\n\t\n\treturn $keywords;\n}", "public function searchitem($keyword){\n\t\t$this->db->like('ProductSearchKey', $keyword, 'BOTH');\n\t\t$this->db->or_like('ProductName', $keyword, 'BOTH');\n\t\t$this->db->select('Product_Id,ProductName,ProductAuther,ProductRetailPrice,ProductSellingPrice,ProductDiscount,ProductLanguage,ProductBinding,ProductThumbImage,CategoryName');\n\t\t$this->db->from('tbl_product_category');\n\t\t$this->db->join('tbl_products', 'tbl_product_category.Product_Id = tbl_products.ProductId', 'inner');\n\t\t$this->db->join('tbl_category', 'tbl_product_category.Category_Id = tbl_category.CategoryId', 'inner');\n\t\t$query = $this->db->get();\n\t\treturn $query->result();\n\t}", "public function generate_keywords(){\n\t\t// The first item in a row is the \"true keyword\" - this is what you want to display\n\t\t// The second and third items are \"alternate keywords\" - these are synonyms or alternate terms for the core keyword\n\n\t\t$keywords = array();\n\t\t$csv = fopen('/users/erik/asmbs_keywords.csv','r');\n\t\twhile (($data= fgetcsv($csv, 1000, ',')) !== FALSE){\n\t\t\t$keyword = array($data[0], $data[1], $data[2]);\n\t\t\tarray_push($keywords, $keyword);\n\t\t}\n\t\treturn $keywords;\n\t}", "public function setContextualKeywords($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->contextual_keywords = $arr;\n\n return $this;\n }", "public function getProdDescription()\n {\n return $this->prod_description;\n }", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "static function get_keywords($post_id, $title = null){\n\t\t\t$keywords = get_post_meta($post_id, 'affiliate_keywords', true);\t\t\t\n\t\t\treturn empty($keywords) ? '' : $keywords;\n\t\t}", "public function CargarKeywords()\n\t{\n\t\t$data_table = $this->data_source->ejecutarConsulta(\"SELECT * FROM keywords\");\n\t\treturn $data_table;\n\t}", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "private function getKeywordsValue(array $field_value) {\n $result = '';\n try {\n // Could be replaced by field->referencedEntities but needs refactoring\n // to get field instead of fieldValue from getFieldValues().\n if (!empty($field_value[0]['target_id'])) {\n $tids = [];\n foreach ($field_value as $value) {\n $tids[] = $value['target_id'];\n }\n $terms = $this->entityTypeManager->getStorage('taxonomy_term')\n ->loadMultiple($tids);\n $termNames = [];\n /** @var \\Drupal\\taxonomy\\Entity\\Term $term */\n foreach ($terms as $term) {\n // @todo get translation\n $termNames[] = $term->getName();\n }\n $result = implode(', ', $termNames);\n }\n }\n catch (InvalidPluginDefinitionException $exception) {\n $this->messenger->addError($exception->getMessage());\n }\n return $result;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "function listAll(){\n return(($this->_db)->query(\"SELECT * FROM keywords\")->fetchAll(PDO::FETCH_ASSOC));\n }", "function getClosetProductsValues($arrproductId)\n\t{\n\t\t$query = \"SELECT pd.* , cl.name AS client_name, cl.id AS client_id FROM `products` AS pd \n\t\tLEFT JOIN `client` AS cl ON cl.id = pd.client_id WHERE pd.pd_id IN (\".$arrproductId.\")\";\n\t\t$result = $this->selectQueryForAssoc($query);\n\t\treturn $result;\n\t}" ]
[ "0.66214246", "0.62831146", "0.6212205", "0.6202259", "0.619665", "0.6194092", "0.6194092", "0.6150816", "0.6150816", "0.61369926", "0.60610133", "0.59511876", "0.5928699", "0.5916661", "0.5900351", "0.5859274", "0.58412457", "0.5835565", "0.58313364", "0.58313364", "0.58313364", "0.58279663", "0.5777304", "0.57660925", "0.57660925", "0.5736157", "0.57128394", "0.57009095", "0.56998235", "0.5699554", "0.56373775", "0.5613348", "0.5613348", "0.5595694", "0.5595687", "0.5573951", "0.55426216", "0.5473296", "0.5440839", "0.54292405", "0.5378118", "0.5376864", "0.5357059", "0.5357059", "0.53389317", "0.53380656", "0.53180575", "0.53062963", "0.52889305", "0.5251707", "0.5238746", "0.5190649", "0.5177261", "0.5164513", "0.51471984", "0.5129049", "0.51272017", "0.51205564", "0.51144856", "0.5109071", "0.5107106", "0.5094557", "0.5091289", "0.5087588", "0.5084767", "0.5082385", "0.50684106", "0.505839", "0.50583714", "0.50449014", "0.50377834", "0.50287265", "0.50220364", "0.50199676", "0.50030404", "0.49920678", "0.49821386", "0.49808577", "0.49753967", "0.49748316", "0.49699256", "0.49695438", "0.49663952", "0.4956722", "0.49396092", "0.49310476", "0.49171785", "0.4914908", "0.49147224", "0.49069235", "0.4898812", "0.48734015", "0.48716432", "0.48667648", "0.48627323", "0.48622942", "0.48601142", "0.485221", "0.48492825", "0.48395565" ]
0.762905
0
Get the [prod_keywords_writeup] column value.
public function getProdKeywordsWriteup() { return $this->prod_keywords_writeup; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdKeywordsWriteup($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_keywords_writeup !== $v) {\n $this->prod_keywords_writeup = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP] = true;\n }\n\n return $this;\n }", "public function getProdWriteup()\n {\n return $this->prod_writeup;\n }", "public function getProdKeywords()\n {\n return $this->prod_keywords;\n }", "public function getKeyword()\n {\n return $this->readOneof(7);\n }", "public function setProdWriteup($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_writeup !== $v) {\n $this->prod_writeup = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_WRITEUP] = true;\n }\n\n return $this;\n }", "public function getKeywordsDc() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(5, $this->_result)) return (string) $this->_result[5];\n\t\t\telse parent::throwGetColException('Not set DiscussCategoriesModel::getKeywordsDc', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From DiscussCategoriesModel::getKeywordsDc', __LINE__, __FILE__);\n\t}", "public function getKeyword()\n {\n return $this->keyword;\n }", "public function getKeyword()\n {\n return $this->keyword;\n }", "public function keyword()\n {\n return $this->keyword;\n }", "public function keyword()\n {\n return $this->keyword;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function purchasedKeyword()\n\t{\n\t\treturn $this->lang->words['taken'];\n\t}", "public function getKeyword()\n {\n return 'SEEN';\n }", "public function getKeywords(): string\n {\n return $this->keywords;\n }", "protected function getKeywordsString() {\r\n\t\treturn implode(', ', $this->keywords);\r\n\t}", "public function getKeywords() : string\n {\n return $this->keywords;\n }", "public function getMetaKeywords(): string\n {\n return (string) $this->metaKeywords;\n }", "public function getMetaKeywords(): string\n {\n return (string) $this->metaKeywords;\n }", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "public function getKeywords()\n {\n return addslashes(trim(join($this->__keywordsDelimiter, $this->__keywords)));\n }", "public function getBuildProperty($key)\n {\n return $this->database ? $this->database->getBuildProperty($key) : '';\n }", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "public function getKeyword() : string\n {\n return $this->getMatchedText();\n }", "public function getPrimaryKey()\n {\n return $this->getProdId();\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function get_value() {\r\n\t\tif ( $this->key === 'job_title' ) {\r\n\t\t\treturn $this->listing->get_name();\r\n\t\t}\r\n\r\n\t\tif ( $this->key === 'job_description' ) {\r\n\t\t\treturn $this->listing->get_data('post_content');\r\n\t\t}\r\n\r\n\t\t// othewise, retrieve from wp_postmeta\r\n\t\treturn get_post_meta( $this->listing->get_id(), '_'.$this->key, true );\r\n\t}", "public function sqlValue()\n {\n return ($this->arrConfig['operator'] == 'like' ? ('%' . $this->arrConfig['value'] . '%') : $this->arrConfig['value']);\n }", "public static function getProductsListingSql() {\n $pArr = self::__getProductsListingData();\n \n return $pArr['Qlisting']; \n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function meta_keywords()\n\t{\n\t\treturn $this->get_context_meta_value( __FUNCTION__ );\n\t}", "public function getKeyword()\n {\n return 'UNFLAGGED';\n }", "public function get_keywords()\n\t{\n\t\treturn $this->keywords;\n\t}", "public function getKeyword($product_id) {\n\t\t$sql = \"SELECT `keyword` FROM \" . DB_PREFIX . \"url_alias WHERE query = 'product_id=\" . (int)$product_id . \"'\";\n\t\n\t\t$query = $this->db->query($sql);\n\t\treturn !empty($query->rows) ? $query->rows[0]['keyword'] : '';\n\t}", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getUniqueKey()\n\t{\n\t\t$product = $this->getCurrent();\n\t\t\n\t\tif (is_null($product)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$sku = $product->getSku();\n\t\tMage::log(\"Got SKU: $sku\");\n\t\t\n\t\treturn $sku;\n\t}", "public function setProdKeywords($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_keywords !== $v) {\n $this->prod_keywords = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS] = true;\n }\n\n return $this;\n }", "private function retrieve_focuskw() {\n\t\t$replacement = null;\n\n\t\tif ( ! empty( $this->args->ID ) ) {\n\t\t\t$focus_kw = WPSEO_Meta::get_value( 'focuskw', $this->args->ID );\n\t\t\tif ( $focus_kw !== '' ) {\n\t\t\t\t$replacement = $focus_kw;\n\t\t\t}\n\t\t}\n\n\t\treturn $replacement;\n\t}", "public function getCloudsql()\n {\n return $this->readOneof(102);\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "protected function getPrimaryKeyColumnName()\n {\n return ColumnKeys::SKU;\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getHotStringJpyVolume()\n {\n return $this->hot_string_jpy_volume;\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }", "protected function get_kit_product_xref() {\n return $this->kit_product_xref;\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function readByKeyQuery(): string\n {\n return 'SELECT * FROM products WHERE id = :id';\n }", "public function meta_keywords()\n\t{\n\t\treturn $this->meta_keywords;\n\t}", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getSqlCol()\n {\n return $this->sqlCol;\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function getColdStringJpyVolume()\n {\n return $this->cold_string_jpy_volume;\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function testSetAndGetKeyword()\n {\n $keyword = 'key';\n $value = 'this should be saved and retrieved';\n\n // Execute.\n $this->testObject->setKeyword($keyword, $value);\n\n // Get the keyword out.\n $result = $this->testObject->getKeyword($keyword);\n\n // Assert Result.\n $this->assertEquals($value, $result);\n $this->assertEquals($value, $_SESSION['behat']['GenesisSqlExtension']['keywords'][$keyword]);\n }", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "static public function getKeywords() {\n\t\treturn self::$page_keywords;\n\t}", "protected function getKeywords() {\r\n\t\treturn $this->keywords;\r\n\t}", "public function getWriteApiUsage() {\n return @$this->attributes['write_api_usage'];\n }", "function get_keywords()\n{\n global $KEYWORDS_TABLE;\n $q = \"select keyword, description from `$KEYWORDS_TABLE` order by keyword;\";\n $rows = dbSelect($q, 'get_keywords()');\n $keywords = array();\n foreach ($rows as $row) {\n $keywords[] = $row[0];\n }\n return $keywords;\n}", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getKeywords() \r\n { \r\n return $this->_keywords; \r\n }", "public function get_license_key() {\n\n\t\t$license = get_option( $this->product_slug . '-license-key' );\n\n\t\tif ( ! $license ) {\n\t\t\t// User hasn't saved the license to settings yet. No use making the call.\n\t\t\treturn false;\n\t\t}\n\n\t\treturn trim( $license );\n\t}", "function GetKeyWords() {\n\t\t$lTitle = str_replace(\",\", \" \", str_replace(\", \", \" \", $this->m_pubdata['storytitle']));\n\t\t$lSubTitle = str_replace(\",\", \" \", str_replace(\", \", \" \", $this->m_pubdata['storysubtitle']));\n\t\t$lSupTitle = str_replace(\",\", \" \", str_replace(\", \", \" \", $this->m_pubdata['storysuptitle']));\n\t\t//~ $lDesc = str_replace(\",\", \" \", str_replace(\", \", \" \", $this->m_pubdata['description']));\n\t\t$lTmpSTr = ($lTitle ? \", \" . $lTitle : \"\") . ($lSubTitle ? \", \" . $lSubTitle : \"\") . ($lSupTitle ? \", \" . $lSupTitle : \"\") . ($lDesc ? \", \" . $lDesc : \"\") . ($this->m_pubdata['keywordsnaked'] ? \", \" . $this->m_pubdata['keywordsnaked'] : \"\");\n\t\t$lArr = split(' ', $lTmpSTr);\n\t\tforeach($lArr as $k) {\n\t\t\t$k = trim($k);\n\t\t\t$lRetStr .= $k . ' ';\n\t\t}\n\t\treturn $lRetStr;\n\t}", "public function getOutputProperty(): ?string\n {\n return $this->output;\n }", "function dg_get_keywords( $field ) {\n\t\n\t$prefix = 'dg_keyword_';\n\t\n\t// GET FIELD\n\t$keywords = get_post_meta( get_the_ID(), $prefix . $field, true );\n\t\n\tprint $keywords;\n\t\n}", "public function getProdTitle()\n {\n return $this->prod_title;\n }", "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "public function getStringValue()\n {\n if ($this->defaultValue === $this->getValue()) {\n return '';\n }\n\n return $this->value . 'W';\n }", "public function getKeywords(){\n return $this->keywords;\n }", "function twispay_tw_get_staging_private_key() {\n // Wordpress database refference\n global $wpdb;\n $table_name = $wpdb->prefix . 'twispay_tw_configuration';\n\n $staging_key = $wpdb->get_results( \"SELECT staging_key FROM $table_name\" );\n\n if ( $staging_key ) {\n return $staging_key[0]->staging_key;\n }\n else {\n return '';\n }\n}", "public function getEntityName()\n {\n return CacheKeys::PRODUCT_VARCHAR;\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getSqlColString()\n {\n return $this->sqlColString;\n }", "public function getKey()\n {\n return isset($this->key) ? $this->key : '';\n }", "public function getKey()\n {\n return isset($this->key) ? $this->key : '';\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getWatchword(){\n\t\tforeach ($this->csv_parse as $line) {\n\t\t\t$dateText=\t $line[0];\n\t\t\t$watchwReference=$line[3];\n\t\t\t$watchwVerse=$line[4];\n\t\t\t$dateTextwW= preg_replace('/\\0/','',$dateText);\n\n\t\t\tif(strcmp(trim($dateTextwW),trim($this->date))==0){\n\t\t\t\t$encodedVerse=utf8_encode($watchwVerse);\n\t\t\t\t$encodedReference=utf8_encode($watchwReference);\n\t\t\t\t$this->watchword=$encodedReference . \" - \" . $encodedVerse;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\treturn $this->watchword;\n\t}", "protected function getKeyForSaveQuery(){\n\t\treturn $this->getKey();\n\t}", "protected function getSkuColumnName()\n {\n return $this->skuColumnName;\n }", "public function keywords()\n\t{\n\t\treturn $this->keywords;\n\t}", "public static function getSecretKey()\n {\n $key = \\QB::table(self::TABLE)->select('value')->where('name', '=', 'secret_key')->first();\n\n return $key->value;\n }", "public function getKeywords() \n {\n return $this->keywords;\n }", "public function getProdWingspan()\n {\n return $this->prod_wingspan;\n }", "public function getKtpSup()\n {\n $this->db->select(\"dm_director\");\n $this->db->from(\"ims_hris.department_main, ims_hris.training_fee_setup\");\n $this->db->where(\"dm_dept_code = tfs_dcr_approve\");\n $this->db->where(\"tfs_code = '001'\");\n $q = $this->db->get();\n \n return $q->row_case('UPPER');\n }", "public function getKey()\n {\n return $this->getValue('nb_commerce_product_category_key');\n }", "public function getProdName(){\n\t\treturn array_keys($this->_products);\n\t}", "public function value()\n {\n return implode(' ', $this->all());\n }", "public function getStoredValue()\n {\n return $this->_fields['StoredValue']['FieldValue'];\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "private final function sqlKey($key)\n {\n return SSql::escape(self::propertyToDbName($key), self::getSSqlName($this->setup_name));\n }", "public function getKeywords()\n\t{\n\t\treturn $this->keywords;\n\t}", "public function getKeywords()\n\t{\n\t\treturn $this->keywords;\n\t}", "public function getProdDescription()\n {\n return $this->prod_description;\n }", "public function getKeywords()\n {\n return $this->keywords;\n }", "public function getKeywords()\n {\n return $this->keywords;\n }", "public function getKeywords()\n {\n return $this->keywords;\n }", "public function getProductDescription()\n\t{\n\t\treturn $this->getKeyValue('product_description'); \n\n\t}", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "public function getProductId(): string\n {\n return $this->productId;\n }" ]
[ "0.65811", "0.63263136", "0.5767484", "0.5136061", "0.50741744", "0.500916", "0.5000207", "0.5000207", "0.49774393", "0.49774393", "0.49627987", "0.4952085", "0.48945317", "0.4880492", "0.4848219", "0.48303983", "0.4823714", "0.4823714", "0.47777602", "0.4702512", "0.4691676", "0.4681907", "0.46715066", "0.46357134", "0.4622102", "0.46166185", "0.45539814", "0.4533115", "0.45145062", "0.45052582", "0.44986305", "0.44885176", "0.44781023", "0.4465633", "0.4459921", "0.44483313", "0.44348922", "0.44313386", "0.44243398", "0.44080365", "0.44041094", "0.44041094", "0.43958232", "0.43896395", "0.43829313", "0.43804893", "0.4380029", "0.43560013", "0.43516353", "0.4346134", "0.4342733", "0.43388343", "0.43365195", "0.43364277", "0.43345383", "0.43314102", "0.43241096", "0.43054587", "0.43045995", "0.4302892", "0.43026042", "0.42827588", "0.42764446", "0.4269475", "0.4256904", "0.42441764", "0.4238327", "0.42356184", "0.42316896", "0.42282063", "0.42258206", "0.42233798", "0.42147526", "0.42033708", "0.42006385", "0.42006385", "0.4195551", "0.4189411", "0.41890872", "0.418714", "0.41792598", "0.41780078", "0.4174891", "0.41734132", "0.4163098", "0.41627577", "0.4159522", "0.41594163", "0.4156715", "0.41541544", "0.41384315", "0.41353562", "0.41353562", "0.4131702", "0.41265628", "0.41265628", "0.41265628", "0.4126549", "0.41214892", "0.41191253" ]
0.7703854
0
Get the [prod_title] column value.
public function getProdTitle() { return $this->prod_title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dispProductTitle()\n\t{\n\t\t$prodid=$_SESSION['prodid']; \n\t\t\n\t\t$sqltitle = \"SELECT title FROM products_table WHERE product_id ='\".$prodid.\"'\";\n\t\t\n\t\t$query = new Bin_Query();\n\t\t\n\t\tif($query->executeQuery($sqltitle))\n\t\t{\n\t\t\treturn Display_DManageProducts::dispProductTitle($query->records);\n\t\t}\n\t\t\n\t}", "public function getTitle() {\n\t\t$field = $this->getTitleField();\n\t\treturn $field ? $field->getValue() : '';\n\t}", "public function getTitle()\n {\n return $this->getValue();\n }", "public function getTitle()\n {\n return $this->getData(self::TITLE);\n }", "public function getTitle()\n {\n return $this->getValue('title');\n }", "protected function get_title()\n {\n return get_string(\"column_title\", 'local_questionbanktagfilter');\n }", "public function getTitle()\n {\n return $this->getData('title');\n }", "public function getTitle()\n {\n $title = Mage::getModel('eav/entity_attribute')->loadByCode(\n Mage::helper('lucene')->getProductEntityTypeId(), \n $this->_key\n )->getFrontendLabel();\n return $title ? $title : $this->_key;\n }", "public function getValueAsString()\n {\n $page = $this->getViewValue();\n\n return $page ? $page->Title : '';\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function getTitle()\n {\n return $this->getProduct()->getTitle();\n }", "function get_title() {\n\t\treturn $this->get_mapped_property('title');\n }", "public function get_title()\n {\n return $this->get_default_property(self::PROPERTY_TITLE);\n }", "public function getTitle()\n {\n return $this->getEntityValue('title', '');\n }", "public function getTitle()\n {\n return $this->formattedData['title'];\n }", "public function getTitle()\n\t\t{\n\t\t\tif(is_null($this->data))\n\t\t\t\treturn '';\n\t\t\t\n\t\t\tif(!array_key_exists('title', $this->data))\n\t\t\t\treturn '';\n\t\t\t\n\t\t\treturn $this->data['title'];\n\t\t}", "public function getTitle()\n {\n return $this['title'];\n }", "public function getTitle()\n {\n return $this->get(self::_TITLE);\n }", "public function getTitle()\n {\n return $this->get(self::_TITLE);\n }", "public function getTitle()\n {\n return $this->getField('Title');\n }", "public function getTitleField() {\n return $this->getFields()[$this->getTitleFieldName()];\n }", "public function getTitle(): string\n {\n return $this->title ?? $this->name;\n }", "public function getTitle()\n {\n return $this->table->title;\n }", "public function getTitle(): string {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\r\n\t\treturn $this->title;\r\n\t}", "public function getTitle()\n {\n if (array_key_exists(\"title\", $this->_propDict)) {\n return $this->_propDict[\"title\"];\n } else {\n return null;\n }\n }", "public function getTitle()\n {\n if (array_key_exists(\"title\", $this->_propDict)) {\n return $this->_propDict[\"title\"];\n } else {\n return null;\n }\n }", "public function getItemTitle()\n {\n return $this->item_title;\n }", "public function getTitle() {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n\t\treturn $this->title;\n\t}", "public function getTitle()\n {\n return $this->data['fields']['title'];\n }", "protected function getTitle() {\r\n\t\treturn $this->newsItem->getTitle();\r\n\t}", "public function getTitle(){\r\n\t\t\treturn $this->title;\r\n\t\t}", "public function getTitle(){\n\t\t\treturn $this->title;\n\t\t}", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getTitle() {\r\n\t\treturn $this->_title;\r\n\t}", "public function getTitle() {\n\t\treturn $this->title;\t\n\t}", "public function getTitleStatement()\n {\n return $this->getFirstFieldValue('245', ['c']);\n }", "public function getTitle(){\r\n\t\treturn $this->title;\r\n\t}", "public function getTitle() {\n\t\treturn $this->_title;\n\t}", "public function getTitle(){\n\t\treturn $this->ol[\"ISBN:\".$this->isbn][\"title\"];\t\n\t}", "public function getTitle() {\r\n return $this->_title;\r\n }", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n return $this->title;\n }", "public function getTitle() {\n return $this->title;\n }", "public function getTitle() {\n return $this->title;\n }", "public function getTitle() {\n return $this->title;\n }", "public function getTitle() {\n return $this->title;\n }", "public function getTitle() {\n return $this->title;\n }", "public function getTitle() {\n return $this->title;\n }", "public function getTitle() {\n return $this->title;\n }", "public function getTitle()\n {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n\t\t\treturn $this->title;\n\t\t}", "public function getTitle(): string\n {\n return $this->_title;\n }", "function getTitle() {\n\t\treturn $this->title;\n\t}", "public function get_title () {\r\n\t\treturn $this->get_info()['title'];\r\n\t}", "public function getTitle(): string\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\r\n {\r\n return $this->title;\r\n }", "public function getTitle() {\n\t\t\n\t\t\treturn $this->_title;\n\t\t\n\t\t}", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle()\n {\n if (!isset($this->data['fields']['title'])) {\n if ($this->isNew()) {\n $this->data['fields']['title'] = null;\n } elseif (!isset($this->data['fields']) || !array_key_exists('title', $this->data['fields'])) {\n $this->addFieldCache('title');\n $data = $this->getRepository()->getCollection()->findOne(array('_id' => $this->getId()), array('title' => 1));\n if (isset($data['title'])) {\n $this->data['fields']['title'] = (string) $data['title'];\n } else {\n $this->data['fields']['title'] = null;\n }\n }\n }\n\n return $this->data['fields']['title'];\n }", "public function getTitle(): string\n {\n if (!empty( $this->title )) {\n return $this->title;\n } elseif (!empty( $this->stock )) {\n return $this->stock->title;\n } else {\n return '';\n }\n }", "public function get_title()\n\t{\n\t\treturn $this->title;\n\t}", "public function _get_item_title() {\n\t\treturn $this->_item_title;\n\t}", "public function getTitle()\n {\n return isset($this->Title) ? $this->Title : null;\n }", "public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }" ]
[ "0.68553627", "0.68498135", "0.6784682", "0.6636052", "0.66342473", "0.65820044", "0.657589", "0.65646785", "0.65497863", "0.6536441", "0.6532097", "0.6489137", "0.6471736", "0.6444135", "0.6438259", "0.64323366", "0.6417218", "0.63861555", "0.63861555", "0.6385018", "0.6377454", "0.63645405", "0.6360468", "0.6357452", "0.63571006", "0.6350012", "0.6350012", "0.63478017", "0.6345958", "0.6345958", "0.6345958", "0.6345958", "0.6341904", "0.6338682", "0.6332003", "0.6330713", "0.6328108", "0.63247484", "0.63209623", "0.63197833", "0.63104403", "0.6303394", "0.6290635", "0.62869006", "0.6286721", "0.6286721", "0.6286721", "0.6286721", "0.6286721", "0.6286721", "0.6286721", "0.6286721", "0.6286721", "0.6286721", "0.6286721", "0.6286721", "0.62818927", "0.62818927", "0.62818927", "0.62818927", "0.62818927", "0.62818927", "0.62818927", "0.62818927", "0.6281256", "0.62811947", "0.6279921", "0.62752175", "0.62714946", "0.62628454", "0.62614083", "0.6260548", "0.6256716", "0.6256716", "0.6256716", "0.6256716", "0.6256716", "0.6256716", "0.6256716", "0.6252581", "0.62436557", "0.624307", "0.62413955", "0.62413687", "0.62413496", "0.6239899", "0.6239899", "0.6239899", "0.6239899", "0.6239899", "0.6239899", "0.6239899", "0.6239899", "0.6239899", "0.6239899", "0.6239899", "0.6239899", "0.6239899", "0.6239899", "0.6239899" ]
0.792739
0
Get the [prod_description] column value.
public function getProdDescription() { return $this->prod_description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProduct_desc () {\n\t$preValue = $this->preGetValue(\"product_desc\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_desc\")->preGetData($this);\n\treturn $data;\n}", "public function getProductDescription()\n\t{\n\t\treturn $this->getKeyValue('product_description'); \n\n\t}", "public function getProductDesc()\n {\n return isset($this->productDesc) ? $this->productDesc : null;\n }", "public function getDescription() {\n\t\t$field = $this->getDescriptionField();\n\t\treturn $field ? $field->getValue() : '';\n\t}", "public function getProdLinkdescription()\n {\n return $this->prod_linkdescription;\n }", "function get_description() {\n return $this->get_mapped_property('description');\n }", "public function getDescription() \n {\n return $this->_fields['Description']['FieldValue'];\n }", "public function getDescription()\n {\n if ($this->helper->getDescriptionType()) {\n return nl2br($this->getProduct()->getData('description'));\n } else {\n return nl2br($this->getProduct()->getData('short_description'));\n }\n }", "function getDescription() {\n\t\treturn $this->data_array['description'];\n\t}", "public function getDescription()\n {\n return self::QUALITY_MAP[$this->qualityID]['description'];\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function getDescription()\n {\n if (array_key_exists(\"description\", $this->_propDict)) {\n return $this->_propDict[\"description\"];\n } else {\n return null;\n }\n }", "public function description()\n {\n if (@$this->data[\"description\"]) {\n return $this->data[\"description\"];\n }\n return null;\n }", "public function getDescription()\r\n {\r\n $fields = $this->def->getFields();\r\n foreach ($fields as $field)\r\n {\r\n if ($field->type == 'text')\r\n {\r\n if ($field->name == \"description\"\r\n || $field->name == \"notes\"\r\n || $field->name == \"details\"\r\n || $field->name == \"comment\")\r\n {\r\n return $this->getValue($field->name);\r\n }\r\n }\r\n\r\n }\r\n\r\n return \"\";\r\n }", "public function getDescription()\n {\n return isset($this->description) ? $this->description : '';\n }", "public function getDescription()\n {\n return isset($this->description) ? $this->description : '';\n }", "public function getDescription()\n {\n return isset($this->description) ? $this->description : '';\n }", "protected function getDescription() {\r\n\t\treturn $this->description;\r\n\t}", "public function getDescription()\n {\n return $this->__get(self::FIELD_DESCRIPTION); \n }", "public function getDescription()\n {\n return $this['description'];\n }", "public function get_description() { \n\n\t\treturn $this->description; \n\t\n\t}", "public function setProdDescription($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_description !== $v) {\n $this->prod_description = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_DESCRIPTION] = true;\n }\n\n return $this;\n }", "public function getDescription() {\n return $this->attributes['description'];\n }", "public function get_description() {\n\t\treturn $this->description;\n\t}", "public function get_description() {\r\n return $this->description;\r\n }", "public function get_description()\n\t{\n\t\treturn $this->description;\n\t}", "public function get_description()\n\t{\n\t\treturn $this->description;\n\t}", "private function get_description()\n\t{\n\t\treturn $this->m_description;\n\t}", "private function get_description()\n\t{\n\t\treturn $this->m_description;\n\t}", "public function get_description() {\n return $this->description;\n }", "public function getDescription()\r\n {\r\n return $this->m_description;\r\n }", "public function get_description(){\n\t\treturn $this->description;\n\t}", "public function getDescription() {\n return $this->_get( 'description' );\n }", "function get_description()\n {\n return $this->get_default_property(self :: PROPERTY_DESCRIPTION);\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "function get_description()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_DESCRIPTION);\r\n }", "public function getDescription()\n {\n if (!is_null($this->description)) {\n return $this->description;\n }\n return 'No description for \"'.$this->name.'\"';\n }", "public function getDescription() {\n return $this->desc;\n }", "public function getItemDescription()\n {\n return $this->item_description;\n }", "public function getCategoryDescription() {\n //as part of a search in a gridview, that is why we are returning it\n //only if not empty\n if (!empty($this->idCategoria)) {\n return $this->idCategoria;\n }\n return $this->_categoryDescription;\n }", "public function get_description()\n {\n return $this->get_default_property(self::PROPERTY_DESCRIPTION);\n }", "public function getDescription() {\r\n\t\treturn $this->description;\r\n\t}", "public function getDescription() {\r\n\t\treturn $this->description;\r\n\t}", "public function getDescription() {\r\n\t\treturn $this->description;\r\n\t}", "function description($id)\n{\n\t$description=mysql_fetch_array(mysql_query(\"select small_description from manage_property where pid='$id'\"));\n\treturn $description['small_description'];\n\t}", "public function getDescription()\n {\n return $this->_Description;\n }", "public function getDescription(): string\n {\n return (string)($this->config['description'] ?? '');\n }", "public function get_description(){\n\t\treturn $this->_description;\n\t}", "public function getHasCartDescription(): ?string\n {\n if(property_exists($this, 'name')) return $this->name;\n if(property_exists($this, 'title')) return $this->title;\n if(property_exists($this, 'description')) return $this->description;\n\n return null;\n }", "public function GetDescription()\n {\n return $this->GetTextField('description', 600, true, $this->GetDescriptionVariables());\n }", "public function getItemDescription() {\n\t\treturn($this->itemDescription);\n\t}", "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "public function getRecordDescription()\n {\n return $this->record_description;\n }", "public function getDescription() {\r\n return $this->description;\r\n }", "public function getDescription() {\n\t\treturn $this->description;\n\t}", "public function getDescription() {\n\t\treturn $this->description;\n\t}", "public function getDescription() {\n\t\treturn $this->description;\n\t}", "public function getDescription() {\n\t\treturn $this->description;\n\t}", "public function getDescription() {\n\t\treturn $this->description;\n\t}", "public function getDescription() {\n\t\treturn $this->description;\n\t}", "public function getDescription() {\n return $this->config['general']['description'];\n }", "public function getDescriptionId()\n {\n return $this->description_id;\n }", "public function getDescriptionUnwrapped()\n {\n return $this->readWrapperValue(\"description\");\n }", "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "public function getDescription(): ?string\n {\n if (count($this->description) == 0) {\n return null;\n }\n return $this->description['value'];\n }", "public function getDescription()\n {\n return $this->Description;\n }", "public function getDescription()\n {\n return $this->Description;\n }", "public function getDescription()\n {\n return $this->Description;\n }", "function getDescription()\r\n\t\t{\r\n\t\t\treturn $this->description;\r\n\t\t\t\r\n\t\t}", "public function getDescription()\r\n {\r\n return $this->_description;\r\n }", "public function getDescription()\r\n {\r\n return $this->_description;\r\n }", "public function getDescription() {\n\t\treturn $this->_description;\n\t}", "public function getDescription() {\n return $this->description;\n }", "public function getDescription() {\n return $this->description;\n }", "public function getDescription() {\n return $this->description;\n }", "public function getDescription() {\n return $this->description;\n }", "public function getDescription() {\n return $this->description;\n }", "public function getDescription() {\n return $this->description;\n }", "public function getDescription() {\n return $this->description;\n }", "public function getDescription() {\n return $this->description;\n }", "function getDescription() {\n\t\treturn $this->_Description;\n\t}", "function getDescription() {\n\t\treturn $this->_Description;\n\t}", "public function getDescription() {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }" ]
[ "0.7461744", "0.7452807", "0.72895485", "0.6891244", "0.686145", "0.6734821", "0.6701732", "0.65901726", "0.65527546", "0.645832", "0.64294565", "0.64294565", "0.64294565", "0.64294565", "0.64294565", "0.64294565", "0.64294565", "0.64294565", "0.64294565", "0.64294565", "0.64294565", "0.64294565", "0.64294565", "0.64096093", "0.64034605", "0.6347757", "0.6347757", "0.6347757", "0.6341741", "0.6335336", "0.63327247", "0.63316804", "0.6330204", "0.6322779", "0.6318786", "0.6314023", "0.63081783", "0.63081783", "0.630764", "0.630764", "0.6296155", "0.62637156", "0.6258657", "0.62533486", "0.625117", "0.62495774", "0.623553", "0.62310463", "0.6228631", "0.62216", "0.62209445", "0.62168926", "0.62113196", "0.62113196", "0.62113196", "0.62055606", "0.6205062", "0.61947495", "0.61937284", "0.6193125", "0.6190777", "0.61849016", "0.6184289", "0.6179424", "0.6176282", "0.61735195", "0.61735195", "0.61735195", "0.61735195", "0.61735195", "0.61735195", "0.6164901", "0.6163818", "0.6161792", "0.61596346", "0.61596346", "0.61570674", "0.61544704", "0.61544704", "0.61544704", "0.61472493", "0.61470354", "0.61470354", "0.61440945", "0.61424583", "0.61424583", "0.61424583", "0.61424583", "0.61424583", "0.61424583", "0.61424583", "0.61424583", "0.61375487", "0.61375487", "0.61351967", "0.61299497", "0.61299497", "0.61299497", "0.61299497", "0.61299497" ]
0.8036535
0
Get the [prod_general] column value.
public function getProdGeneral() { return $this->prod_general; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdGeneral($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_general !== $v) {\n $this->prod_general = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_GENERAL] = true;\n }\n\n if ($this->aTblGeneral !== null && $this->aTblGeneral->getProdGeneral() !== $v) {\n $this->aTblGeneral = null;\n }\n\n return $this;\n }", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function GetGeneral(){\r\r\n\t\treturn self::$general;\r\r\n\t}", "public function getFieldFromGeneralViewConfiguration($field)\r\n {\r\n return $this->viewConfiguration['general'][$field];\r\n }", "public function getProdDescription()\n {\n return $this->prod_description;\n }", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function getProductDefaultValue() {\n //initialize dummy value.. no content header.pure html\n $sql = null;\n $productId = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n SELECT `productId`\n FROM `product`\n WHERE `isActive` = 1\n AND `companyId` = '\" . $this->getCompanyId() . \"'\n AND \t `isDefault` =\t 1\n LIMIT 1\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n SELECT TOP 1 [productId],\n FROM [product]\n WHERE [isActive] = 1\n AND [companyId] = '\" . $this->getCompanyId() . \"'\n AND \t [isDefault] = 1\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n SELECT PRODUCTID AS \\\"productId\\\",\n FROM PRODUCT\n WHERE ISACTIVE = 1\n AND COMPANYID = '\" . $this->getCompanyId() . \"'\n AND \t ISDEFAULT\t =\t 1\n AND \t\t ROWNUM\t =\t 1\";\n } else {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $this->t['databaseNotFoundMessageLabel']));\n exit();\n }\n }\n }\n try {\n $result = $this->q->fast($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n if ($result) {\n $row = $this->q->fetchArray($result);\n $productId = $row['productId'];\n }\n return $productId;\n }", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public function getCdProduto()\n {\n return $this->Cd_produto;\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function getIsglobal() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(5, $this->_result)) return (string) $this->_result[5];\n\t\t\telse parent::throwGetColException('Not set CampaignDefinitionsModel::getIsglobal', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From CampaignDefinitionsModel::getIsglobal', __LINE__, __FILE__);\n\t}", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "function getCostPersonalTagIndividual(){\n\treturn campo('config_system','id','1','cost_individual_personal_tag');\n}", "function getCostPersonalTagIndividual(){\n\treturn campo('config_system','id','1','cost_individual_personal_tag');\n}", "public function getProduct_category () {\n\t$preValue = $this->preGetValue(\"product_category\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_category\")->preGetData($this);\n\treturn $data;\n}", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getTblGeneral(ConnectionInterface $con = null)\n {\n if ($this->aTblGeneral === null && ($this->prod_general !== null)) {\n $this->aTblGeneral = ChildTblGeneralQuery::create()->findPk($this->prod_general, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aTblGeneral->addTblProdInfos($this);\n */\n }\n\n return $this->aTblGeneral;\n }", "public function getCdProduto()\n {\n return $this->cd_produto;\n }", "public function getMisccost()\n {\n return $this->misccost;\n }", "public function get_value() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"gtmetrix\";\n $return = $wpdb->get_results( \"SELECT * FROM $table_name ORDER BY id DESC LIMIT 1\" );\n return $return[0];\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function discountOrChargeValue()\n {\n return $this->discountOrChargeValueBoleta();\n }", "public function getProduct_desc () {\n\t$preValue = $this->preGetValue(\"product_desc\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_desc\")->preGetData($this);\n\treturn $data;\n}", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getProduct_type () {\n\t$preValue = $this->preGetValue(\"product_type\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_type;\n\treturn $data;\n}", "function get_gp_field($gid, $field) {\n global $db;\n $results = $db->select(tbl($this->gp_tbl), $field, \"group_id='$gid'\");\n\n if ($db->num_rows > 0) {\n return $results[0];\n } else {\n return false;\n }\n }", "public function get_variation_by_common_id($common_id)\n {\n $this->db->where('common_id', $common_id);\n $query = $this->db->get('product_variations');\n return $query->result();\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "function Show_Variable_Additional_Price($prod_arr,$price,$vardisp_type)\n\t{\n\t\tglobal $ecom_siteid,$db,$sitesel_curr,$default_crr,$PriceSettings_arr,$default_Currency_arr,$Settings_arr,$ecom_tax_total_arr;\n\t\tif ($PriceSettings_arr['price_variableprice_display']==1 and $prod_arr['product_variablecomboprice_allowed']=='N') // ** Check whether variable price is to be displayed\n\t\t{\n\t\t\tif($price>=0) // case if price is > 0\n\t\t\t{\n\t\t\t\tswitch($vardisp_type)// decide which prefix and suffix should be used with the variable price display\n\t\t\t\t{\n\t\t\t\t\tcase 'ADD':\n\t\t\t\t\t\t$get_discounted_price = 0;\n\t\t\t\t\t\t$prefix \t\t\t\t\t\t= $PriceSettings_arr['price_variablepriceadd_prefix'];\n\t\t\t\t\t\t$suffix \t\t\t\t\t\t= $PriceSettings_arr['price_variablepriceadd_suffix'];\n\t\t\t\t\t\t// Check whether price including tax is to be displayed\n\t\t\t\t\t\tif($prod_arr['product_applytax'] == 'Y')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($PriceSettings_arr['price_displaytype'] == 'show_price_inc_tax')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$pric_arr['tax_calc_req']=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'FULL':\n\t\t\t\t\t\t//$get_discounted_price \t\t\t= show_Price($prod_arr,array(),'other_3',false,2);\n\t\t\t\t\t\t$pric_arr \t\t\t\t\t= show_Price($prod_arr,array(),'other_3',false,6);\n\t\t\t\t\t\tif($pric_arr['discounted_price'])\n\t\t\t\t\t\t\t$get_discounted_price = $pric_arr['discounted_price'];\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$get_discounted_price = $pric_arr['base_price'];\n\t\t\t\t\t\tif($get_discounted_price=='')\n\t\t\t\t\t\t\t$get_discounted_price = 0;\n\t\t\t\t\t\t$prefix \t\t\t\t\t\t= $PriceSettings_arr['price_variablepricefull_prefix'];\n\t\t\t\t\t\t$suffix \t\t\t\t\t\t= $PriceSettings_arr['price_variablepricefull_suffix'];\n\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t}\n\t\t\telse if($price<0) // case if price is < 0 .. here what ever the vardisp_type .. the caption set for varprice less should be displayed\n\t\t\t{\n\t\t\t\tswitch($vardisp_type)// decide which prefix and suffix should be used with the variable price display\n\t\t\t\t{\n\t\t\t\t\tcase 'ADD':\n\t\t\t\t\t\t$get_discounted_price = 0;\n\t\t\t\t\t\t$prefix \t\t\t\t\t\t= $PriceSettings_arr['price_variablepriceless_prefix'];\n\t\t\t\t\t\t$suffix \t\t\t\t\t\t= $PriceSettings_arr['price_variablepriceless_suffix'];\n\t\t\t\t\t\t// Check whether price including tax is to be displayed\n\t\t\t\t\t\tif($prod_arr['product_applytax'] == 'Y')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($PriceSettings_arr['price_displaytype'] == 'show_price_inc_tax')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$pric_arr['tax_calc_req']=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'FULL':\n\t\t\t\t\t\t//$get_discounted_price \t\t\t= show_Price($prod_arr,array(),'other_3',false,2);\n\t\t\t\t\t\t$pric_arr \t\t\t\t\t= show_Price($prod_arr,array(),'other_3',false,6);\n\t\t\t\t\t\tif($pric_arr['discounted_price'])\n\t\t\t\t\t\t\t$get_discounted_price = $pric_arr['discounted_price'];\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$get_discounted_price = $pric_arr['base_price'];\n\t\t\t\t\t\tif($get_discounted_price=='')\n\t\t\t\t\t\t\t$get_discounted_price = 0;\n\t\t\t\t\t\t$prefix \t\t\t\t\t\t= $PriceSettings_arr['price_variablepricefull_prefix'];\n\t\t\t\t\t\t$suffix \t\t\t\t\t\t= $PriceSettings_arr['price_variablepricefull_suffix'];\n\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t}\n\t\t\t\t$price = $price + $get_discounted_price;\n\t\t\t\tif($pric_arr['tax_calc_req']==1) // Check whether tax is to be calculated here .. this is to handle the situations of price display including tax and also show both prices\n\t\t\t\t{\n\t\t\t\t\t$tax_arr \t\t= $ecom_tax_total_arr;\n\t\t\t\t\t$tax_val\t\t\t= $tax_arr['tax_val'];\n\t\t\t\t\t$price \t\t\t= $price + ($price * $tax_arr['tax_val']/100);\n\t\t\t\t}\n\t\t\t\t$vprice = print_price(abs($price)); // ** Get the price with required currency\n\t\t\tif ($vprice)\n\t\t\t\treturn ' '.$prefix.' '.$vprice.' '.$suffix;\n\t\t}\t\t\n\t}", "public function getProdCompany()\n {\n return $this->prod_company;\n }", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function setGeneral() // Attribuer une valeur générale à un attaquant\n {\n $this->_general = round($this->attaqueCalcul());\n }", "public function getProdutoCdProduto()\n {\n return $this->produto_cd_produto;\n }", "public function getCodeStatutPro() {\n return $this->codeStatutPro;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getSpecialEquipPref()\n {\n return $this->specialEquipPref;\n }", "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "public function getProdTitle()\n {\n return $this->prod_title;\n }", "public function getNbHGeneral() {\n return $this->nbHGeneral;\n }", "public function getMontantGeneral() {\n return $this->montantGeneral;\n }", "function getCostPersonalTagCompany(){\n\treturn campo('config_system','id','1','cost_company_personal_tag');\n}", "function getCostPersonalTagCompany(){\n\treturn campo('config_system','id','1','cost_company_personal_tag');\n}", "public function getProductPurchaseDetail($colname='',$whrValue='',$type=''){\r\n if($colname != ''){\r\n if($type == 'proddownload'){\r\n $this->CI->db->select('SUM('.$colname.') AS prodcnt');\r\n $this->CI->db->from('ts_purchaserecord');\r\n $this->CI->db->where($whrValue);\r\n $rs=$this->CI->db->get();\r\n $res = $rs->result_array();\r\n return (($res[0]['prodcnt']!='') ? $res[0]['prodcnt'] : '0') ;\r\n\t\t\t}\r\n\t\t\telse if($type == 'prodpurchase'){\r\n $res = $this->CI->DatabaseModel->access_database('ts_purchaserecord','select','',$whrValue);\r\n return (!empty($res) ? count($res) : '0') ;\r\n\t\t\t}\r\n }\r\n else {\r\n return '0';\r\n }\r\n die();\r\n\t}", "public function getVarComentario()\n {\n return $this->varComentario;\n }", "public function getProductAttributeVarchar($productId, $attributeCode) {\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_varchar where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getShippedValue()\n {\n return defined('static::SHIPPED_VALUE') ? static::SHIPPED_VALUE : 'shipped';\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function prod($prod);", "public function getProductionType() {\n\t\treturn $this->_oProdType;\n\t}", "function getPurchaseProductionInfo($id_purchase,$id_purchase_production) {\n $data = $this->db\n ->where('id_purchase',$id_purchase)\n ->where('id_purchase_production',$id_purchase_production)\n ->limit(1)\n ->get('purchase_production')\n ->row_array();\n \n return $data;\n }", "function custom_columns( $column, $post_id ) {\n\tswitch ( $column ) {\n\t\tcase 'type':\n\t\t\t$terms = get_post_meta( $post_id, 'freeproductid', true );\n\t\t\tif ( $terms != '' ) {\n\t\t\t\t$freeproducter = wc_get_product( $terms );\n\t\t\t\techo $freeproducter->get_formatted_name( );\n\t\t\t\techo '<br />';\n\t\t\t} else {\n\t\t\t\t_e( 'No free product', 'woocommerce-freeproduct' );\n\t\t\t\techo '<br />';\n\t\t\t}\n\t\t\tbreak;\n\t}\n}", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "function GetProductName ( $whichProduct )\n{\n\n\tmysql_select_db ( 'products' );\n\t$query = 'SELECT * FROM products where ID like '.$whichProduct;\n\n\t$result = mysql_query($query );\n\n\tif ( $result )\n\t{\n\t\t$num_results = mysql_num_rows ( $result );\n\t\tif ( $num_results == 1 )\n\t\t{\n\t\t\t$row = mysql_fetch_object ( $result );\n\t\t\t$productName = $row->name;\n\t\t}\n\t\telse\n\t\t\t$productName = 'General';\n\t}\n\n\treturn $productName;\n}", "function products_column_data( $column, $post_id ) {\r\n $output = '';\r\n\r\n switch( $column ) {\r\n case 'title':\r\n // Get the product Name\r\n $product_name = get_post_meta( $post_id, 'products_title', true );\r\n $output .= $product_name;\r\n break;\r\n case 'Background Color':\r\n // Get the product Background Color\r\n $bgcolor = get_post_meta( $post_id, 'background_color', true );\r\n $output .= $bgcolor;\r\n break;\r\n }\r\n\r\n // Echo the output\r\n echo $output;\r\n\r\n}", "public function getproductdetail($prod_id)\n {\n $product = $this->Dbmodel->getproductdata($prod_id); \n return $product;\n }", "public function getRecommendedProduct()\n {\n $this->db->connect();\n $sql = \"SELECT * FROM $this->table WHERE recommended = 'yes' LIMIT 4;\";\n $product = $this->db->executeFetchAll($sql);\n return $product;\n }", "private function rtPropID(string $proprietary){\n $this->checkNotConnected();\n $qr_all = $this->connection->query(\"SELECT cd_proprietary, COUNT(cd_proprietary) AS exists_prop FROM tb_proprietaries WHERE nm_proprietary = \\\"$proprietary\\\";\")->fetch_array();\n return $qr_all['exists_prop'] > 0 ? (int) $qr_all['cd_proprietary'] : null;\n }", "public function getMaxchar() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(3, $this->_result)) return (string) $this->_result[3];\n\t\t\telse parent::throwGetColException('Not set CampaignDefinitionsModel::getMaxchar', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From CampaignDefinitionsModel::getMaxchar', __LINE__, __FILE__);\n\t}", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "public function GetGeneralType() {\n\t\tif (in_array($this->GetType(),array(PROFILE_COMPANY,\n\t\t\t\t\t\t\t\t\t\t\tPROFILE_SUMMERCAMP, \n\t\t\t\t\t\t\t\t\t\t\tPROFILE_VOLUNTEER_PROJECT, \n\t\t\t\t\t\t\t\t\t\t\tPROFILE_SEASONALJOBS, \n\t\t\t\t\t\t\t\t\t\t\tPROFILE_TEACHING))) {\n\t\t\treturn PROFILE_COMPANY;\n\t\t}\n\t\tif (in_array($this->GetType(),array(PROFILE_PLACEMENT,\n\t\t\t\t\t\t\t\t\t\t\tPROFILE_VOLUNTEER,\n\t\t\t\t\t\t\t\t\t\t\tPROFILE_TOUR,\n\t\t\t\t\t\t\t\t\t\t\tPROFILE_JOB))) {\r\n\t\t\treturn PROFILE_PLACEMENT;\r\n\t\t}\r\n\t\t\n\t}", "public function getStatPro()\n\t{\n\t\treturn $this->statpro;\n\t}", "public static function getMasterValueByID($simbio, $arr_master_table, $mix_id) {\n if (in_array($arr_master_table['table'], self::$tables)) {\n $_value = '';\n $_q = $simbio->dbQuery('SELECT '.implode(',', $arr_master_table['value_fields']).' FROM {'.$arr_master_table['table'].'} WHERE '.$arr_master_table['primary_key'].'=%d', $mix_id);\n // echo sprintf('SELECT '.implode(',', $arr_master_table['value_fields']).' FROM {'.$arr_master_table['table'].'} WHERE '.$arr_master_table['primary_key'].'=%d', $mix_id);\n // fetch field info\n $_d = $_q->fetch_row(); $_q->close();\n if ($_d && count($_d) > 1) {\n $_value = implode(' - ', $_d);\n return $_value;\n }\n return $_d[0];\n }\n return null;\n }", "public function getProdEra()\n {\n return $this->prod_era;\n }", "public function getShopFullEdition()\n {\n $sEdition = $this->getShopEdition();\n $sFullEdition = \"Community Edition\";\n if ($sEdition == \"PE\") {\n $sFullEdition = \"Professional Edition\";\n }\n\n if ($sEdition == \"EE\") {\n $sFullEdition = \"Enterprise Edition\";\n }\n\n return $sFullEdition;\n }", "public function get_column_value($column, $old_value = false) {\n $field_exists = false;\n $nullable = false;\n $type = '';\n\n // Verifica se o campo existe, se aceita NULL e armazena o tipo do campo\n foreach($this->get_columns_information() as $c) {\n if($column == $c['column_name']) {\n $nullable = $c['is_nullable'];\n $field_exists = true;\n $type = array_shift(explode(' ', $c['data_type']));\n break;\n }\n }\n\n // Se o campo nao existir, nao retorna nada\n if(!$field_exists)\n return null;\n\n $quoted = in_array($type, Register::$quoted_fields);\n $value = ($old_value) ? ($this->{'_' . $column}) : $this->$column;\n\n // Formata corretamente o campo e retorna seu valor\n if($nullable)\n return (empty($value)) ? 'NULL' : ($quoted ? \"'{$value}'\" : $value);\n else\n return (empty($value)) ? ($quoted ? \"''\" : 0) : ($quoted ? \"'{$value}'\" : $value);\n \n }", "public function getValue($idx)\n {\n return (($dbname = $this->_getDbname($idx))!=null\n ? $this->columns[$dbname]->value\n : null);\n }", "public function getDescDc() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(4, $this->_result)) return (string) $this->_result[4];\n\t\t\telse parent::throwGetColException('Not set DiscussCategoriesModel::getDescDc', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From DiscussCategoriesModel::getDescDc', __LINE__, __FILE__);\n\t}", "public function getProdRelatedPa()\n {\n return $this->prod_related_pa;\n }", "public function getSingleRowValue($table, $column, $postID): string {\n global $wpdb;\n $table = $wpdb->prefix . $table;\n $data = $wpdb->get_var(\"SELECT {$column} FROM {$table} WHERE post_id = {$postID};\");\n if ($data) {\n return $data;\n }\n return '';\n }", "public function sqlValue()\n {\n return ($this->arrConfig['operator'] == 'like' ? ('%' . $this->arrConfig['value'] . '%') : $this->arrConfig['value']);\n }", "public function getGroupeQualifiant() {\n return $this->groupeQualifiant;\n }", "private function hndProprietaryId($proprietary){\n $this->checkNotConnected();\n if(is_int($proprietary) || is_numeric($proprietary)){\n // checks if the proprietary exists.\n $dp = $this->connection->query(\"SELECT COUNT(cd_proprietary) FROM tb_proprietaries WHERE cd_proprietary = $proprietary;\");\n if((int)$dp->fetch_array()[0] != 1) return null;\n else return (int)$proprietary;\n }\n else if(is_string($proprietary)){\n $dp = $this->connection->query(\"SELECT COUNT(cd_proprietary), cd_proprietary FROM tb_proprietaries WHERE nm_proprietary = \\\"$proprietary\\\";\")->fetch_array();\n if((int)$dp[0] != 1) return null;\n else return (int)$dp[1];\n }\n else return null;\n }", "public function get_custom_field( $product, $settings ) {\n\n\t\t\tif ( ! $product ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$field_key = ! empty( $settings['compare_table_custom_field'] ) ? $settings['compare_table_custom_field'] : false;\n\n\t\t\tif ( ! $field_key ) {\n\t\t\t\treturn '';\n\t\t\t}\n\n\t\t\t$field_value = get_post_meta( $product->get_id(), $field_key, true );\n\n\t\t\tif ( empty( $field_value ) ) {\n\t\t\t\t$field_value = ! empty( $settings['compare_table_custom_field_fallback'] ) ? $settings['compare_table_custom_field_fallback'] : $field_value;\n\t\t\t}\n\n\t\t\t$custom_field = apply_filters( 'jet-cw/template-functions/compare-custom-field/' . $field_key, $field_value );\n\n\t\t\treturn sprintf( '<span class=\"jet-cw-custom-field\">%s</span>', $custom_field );\n\n\t\t}", "public function getProfitCostAttribute()\n {\n if ( Configuration::get('MARGIN_PRICE') == 'STANDARD' )\n return $this->cost_price;\n\n if ( Configuration::get('MARGIN_PRICE') == 'AVERAGE' )\n return $this->cost_average;\n\n // Sensible default\n return $this->cost_price;\n }", "public function getProfitCostAttribute()\n {\n if ( Configuration::get('MARGIN_PRICE') == 'STANDARD' )\n return $this->cost_price;\n\n if ( Configuration::get('MARGIN_PRICE') == 'AVERAGE' )\n return $this->cost_average;\n\n // Sensible default\n return $this->cost_price;\n }", "public function setgeneralAction()\n {\n $productId = $this->_getParam('product_id'); \n\n $this->_model->setId($productId);\n $productModel = $this->_model; \n\n $form = new Core_Form_Product_SetGeneralProperties($productId);\n $form->setAction($this->view->url(array(\n 'module' => 'default',\n 'controller' => 'product',\n 'action' => 'setgeneral',\n 'product_id' => $productId,\n )\n ));\n\n if ($this->_request->isPost()) {\n\n if ($form->isValid($_POST)) {\n $productModel->setGeneralProperties($form->getValues());\n $this->_helper->FlashMessenger('Product item properties set successfully');\n $this->_redirect($this->view->url(array(\n 'module' => 'default',\n 'controller' => 'product',\n 'action' => 'viewdetails',\n 'product_id' => $productId,\n ), null, false));\n } else {\n $form->populate($_POST);\n $this->view->form = $form;\n }\n\n } else {\n $this->view->form = $form;\n }\n\n \n }", "protected function get_column() {\n\n\t\t$column = $this->foreign_column ?: $this->foreign_table->get_primary_key();\n\t\t$columns = $this->foreign_table->get_columns();\n\n\t\treturn $columns[ $column ];\n\t}", "public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }", "function getdef($col, $var,$def)\n {\n if(array_key_exists($var, $col))\n {\n $value = $col[$var];\n return $value;\n }\n else\n return $def;\n }", "public function getCellular()\n {\n return $this->getValue('nb_icontact_prospect_cellular');\n }", "public function getNom_cat()\n {\n return $this->nom_cat;\n }", "function getProdutoCol($col, $ref, $rel)\n{\n global $conn;\n /*\n *query da disciplina\n */\n $sql = \"SELECT pro_{$col} FROM \".TABLE_PREFIX.\"_produto WHERE pro_{$ref}=?\";\n if(!$qry = $conn->prepare($sql))\n echo divAlert($conn->error, 'error');\n\n else {\n\n if (!apenasNumeros($rel))\n $qry->bind_param('s', $rel);\n else\n $qry->bind_param('i', $rel);\n\n $qry->execute();\n $qry->bind_result($$col);\n $qry->fetch();\n $qry->close();\n\n return $$col;\n }\n\n}", "function getProductCode()\n {\n return $this->productCode;\n }", "function getProductInfo($prodId)\n {\n $this->db->select('*');\n $this->db->from('tbl_products');\n $this->db->where('id', $prodId);\n $query = $this->db->get();\n \n return $query->result();\n }", "public function getCoEquipo()\n\t{\n\t\treturn $this->co_equipo;\n\t}", "public function getValue()\n {\n return $this->value instanceof ProductDiscountValueDraftBuilder ? $this->value->build() : $this->value;\n }", "public function getValue($field, $default = null) {\n if (array_key_exists($field, $this->updates)) {\n return $this->updates[$field];\n } elseif (array_key_exists($field, $this->data)) {\n return $this->data[$field];\n } else {\n return $default;\n }\n }", "public function getId_produto()\n {\n return $this->id_produto;\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "function editGeneral()\n\t{ \n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t$sql='select * from products_table where product_id='.$id;\n\t\t\t\n\t\t\t$obj=new Bin_Query();\n\t\t\t\n\t\t\t$obj->executeQuery($sql);\n\t\t\t\n\t\t\t$output=$obj->records[0];\n\t\t\t\n\t\t\treturn $output;\n\t\t}\n\t}", "function getDefault() {\n return $this->records[2];\n }" ]
[ "0.64083344", "0.5757285", "0.56836575", "0.56682986", "0.56022656", "0.54463154", "0.5435061", "0.5416214", "0.540648", "0.53547364", "0.53053606", "0.5299206", "0.52659315", "0.52460337", "0.52223754", "0.5218671", "0.5204163", "0.5204163", "0.5169946", "0.51241773", "0.51088077", "0.5088878", "0.5081658", "0.5070434", "0.50399697", "0.50152665", "0.5003554", "0.49965006", "0.4970978", "0.495656", "0.49517962", "0.49487367", "0.49427423", "0.49418047", "0.49408665", "0.49327374", "0.4928513", "0.49251717", "0.49127057", "0.49068186", "0.4896988", "0.48885173", "0.4887155", "0.48735586", "0.48730394", "0.48697597", "0.48658872", "0.48658872", "0.48657024", "0.48652974", "0.48525292", "0.48432693", "0.48430234", "0.48421636", "0.48403352", "0.48369104", "0.4834325", "0.48292473", "0.48191836", "0.48187226", "0.47937092", "0.4778721", "0.477675", "0.47747213", "0.47645584", "0.47402048", "0.47351032", "0.4732108", "0.47315657", "0.47211072", "0.47203735", "0.47145206", "0.4709144", "0.4699969", "0.46966454", "0.46959782", "0.46900046", "0.46888664", "0.4687675", "0.46860346", "0.46852687", "0.4678836", "0.46787497", "0.46787497", "0.4675688", "0.46745846", "0.46660936", "0.46637994", "0.46637872", "0.4661011", "0.46536252", "0.46513978", "0.4644905", "0.46409217", "0.46362525", "0.46358895", "0.46350428", "0.46337783", "0.46305498", "0.46263078" ]
0.77391404
0
Get the [prod_era] column value.
public function getProdEra() { return $this->prod_era; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function setProdEra($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_era !== $v) {\n $this->prod_era = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ERA] = true;\n }\n\n if ($this->aTblEra !== null && $this->aTblEra->getEraId() !== $v) {\n $this->aTblEra = null;\n }\n\n return $this;\n }", "public function getProductEan(): ?string\n {\n return isset($this->ProductEan) ? $this->ProductEan : null;\n }", "public function getProductEan(): ?string\n {\n return isset($this->ProductEan) ? $this->ProductEan : null;\n }", "public function getProductEan(): ?string\n {\n return isset($this->ProductEan) ? $this->ProductEan : null;\n }", "public function getAno() {\n return $this->iAno;\n }", "public function getAno() {\n return $this->iAno;\n }", "public function getAPrix()\n {\n return $this->prix;\n }", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function getAPELLIDOPATERNOC()\r\n {\r\n return $this->APELLIDOPATERNOC;\r\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getAno()\n {\n return $this->ano;\n }", "public function getageEc()\n {\n return $this->age_ec;\n }", "public function getCdEtapa()\n {\n return $this->cd_etapa;\n }", "public function getValorAnulado() {\n return $this->nValorAnulado;\n }", "public function getAl()\n {\n return $this->al;\n }", "public function getArabigo(){\n\t\treturn $this->arabigo;\n\t}", "public function getEmenta()\n {\n return $this->ementa;\n }", "public function getEscalaValor( ){\n\t\t\treturn $this->escalaValor;\n\t\t}", "public function getAUMENTOPERDIDA()\r\n {\r\n return $this->AUMENTO_PERDIDA;\r\n }", "public function getProductAttributeDecimal($productId, $attributeCode){\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_decimal where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function getColumna() {\n return $this->columna;\n }", "public function getAnum()\r\n {\r\n return $this->anum;\r\n }", "public function getValorArrecadado() {\n return $this->nValorArrecadado;\n }", "public function getAno():int{\n\t\treturn $this->ano;\n\t}", "static public function getIvaTaxValue()\n {\n $tax = 1;\n $query = \"SELECT\n class.title,\n rate.`name`,\n round((rate.rate/100)+1,2) as value\n FROM\n oc_tax_class AS class\n INNER JOIN oc_tax_rule AS rule ON class.tax_class_id = rule.tax_class_id\n INNER JOIN oc_tax_rate AS rate ON rule.tax_rate_id = rate.tax_rate_id\";\n $results = DB::select(DB::raw($query));\n foreach ($results as $res){\n if(strtoupper($res->title)==\"IVA\"){\n $tax = $res->value;\n }\n }\n return $tax;\n }", "public function getProdRelatedPa()\n {\n return $this->prod_related_pa;\n }", "public function getageEu()\n {\n return $this->age_eu;\n }", "public function getEndbPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(8, $this->_result)) return (string) $this->_result[8];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getEndbPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getEndbPt', __LINE__, __FILE__);\n\t}", "public function getAbreviatura() {\n return $this->sAbreviatura;\n }", "public function getProductAttributeInt($productId, $attributeCode){\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_int where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "function getTVA() {\n return (sprintf(\"%.2f\", $this->TVA));\n }", "public function getProdAircraftreg()\n {\n return $this->prod_aircraftreg;\n }", "function cc_get_rif_vetrina($agenzia){\n\t\n\tglobal $wpdb; \n\t\n\t$tbl = $wpdb->prefix.'postmeta';\n\t\n\t// agenzia dev'essere un numero\n\t$agenzia = (int) $agenzia;\n\tif(empty($agenzia)) return false;\n\t\n\t$filter = str_pad($agenzia, 2, '0', STR_PAD_LEFT) . \"VE%\";\n\t$prepare_qry = $wpdb->prepare( \"SELECT meta_value FROM \".$tbl.\" \n\tWHERE meta_key = 'fave_property_id' AND meta_value LIKE '%s' \n\tAND post_id IN (SELECT post_id FROM \".$tbl.\" WHERE meta_key = 'fave_featured' AND meta_value = '1')\", $filter );\n\t\n\t$col = $wpdb->get_col( $prepare_qry, 0 ); \n\treturn $col[0];\n}", "function getEmperor(){\r\n\t\t$this->retriveDataRow();\r\n\r\n\t\tif(!is_null($this->data)){\r\n\t\t\treturn $this->data['czlonek_1'];\r\n\t\t}else{\r\n\t\t\treturn NULL;\r\n\t\t}\r\n\t}", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getPaiementEnEuro() {\n return $this->paiementEnEuro;\n }", "public function getE()\n {\n return $this->E;\n }", "public function getAltura() \r\n\t{\r\n\t\treturn $this->iAltura;\r\n\t}", "public function getProductAttributeVarchar($productId, $attributeCode) {\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_varchar where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function getAbreviatura($tabla){\t\t\n\t\t$abre = DB::table('WEB.tablaid')->where('tabla','=',$tabla)->first();\n\t\treturn $abre[1];\n\t}", "public function getPartitaIVAClinica() {\r\n return $this->_partitaIVA;\r\n }", "public function getPeriodeAu() {\n return $this->periodeAu;\n }", "public function getEnterprise()\n {\n return $this->getValue('nb_icontact_prospect_enterprise');\n }", "public function getEstudiante( ){\n\t\treturn $this->estudiante;\n\t}", "public function getLegArrivalAirportCode()\n {\n return $this->LegArrivalAirportCode;\n }", "function getEstanteria(){\r\n return $this->estanteria;\r\n }", "public function getKetersediaanAir()\n {\n return $this->ketersediaan_air;\n }", "public function getValueAttribute()\n\t{\n\t\treturn $this->attributes['valor_total'];\n\t}", "public function getTrA(): ?float {\n return $this->trA;\n }", "public function getCarHrAproveitada()\n {\n return $this->car_hr_aproveitada;\n }", "public function getAbreviatura()\n {\n return $this->abreviatura;\n }", "public function getA()\n {\n return $this->A;\n }", "public function getASabunAirMengalir()\n {\n return $this->a_sabun_air_mengalir;\n }", "protected function getGradeAproveitamento() {\n\n $_SESSION[\"DB_coddepto\"] = $this->oMatricula->getTurma()->getEscola()->getCodigo();\n db_inicio_transacao();\n $oGradeHorario = new GradeAproveitamentoAluno($this->oMatricula);\n $oGradeHorario->setUtfEncode(true);\n $oGradeRetorno = $oGradeHorario->getGradeAproveitamento();\n db_fim_transacao();\n return $oGradeRetorno;\n }", "private function getAlpha() {\n\t\treturn $this->alpha;\n\t}", "public function getAvecPrixVente() {\n return $this->avecPrixVente;\n }", "function get_army_value()\n\t{\n\t\t$result = pg_query(\"SELECT sum(point_cost) as point_total FROM warhammer.user_army\");\n\t\t$result_a = pg_fetch_array($result,0,PGSQL_ASSOC);\n\t\treturn $result_a[\"point_total\"];\n\t}", "function getAmbiente()\n {\n return $this->ambi;\n }", "public function getElasticaResult() {\n return $this->elastica_result;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getAlpha(): int\n {\n return $this->alpha;\n }", "public function getAnoPortaria() {\n return $this->iAnoPortaria;\n }", "function agama()\n {\n $query = $this->db->query(\"SELECT * FROM tbl_agama\");\n return $query->result();\n }", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "public function getP9AZ()\n {\n return $this->p9AZ;\n }", "function qualificationGest(): string\n{\n $FtPqr = getFtPqr();\n $FtPqrCalificacion = $FtPqr->getLastCalificacion();\n\n return $FtPqrCalificacion ? $FtPqrCalificacion->getFieldValue('experiencia_gestion') : '-';\n}", "public function getAcr()\n {\n return $this->acr;\n }", "function getE() {\n return $this->E;\n }", "public function getTipoAletaVen()\r\n\t{\r\n\t\tif($this->aletaVenA == 0){\r\n\t\t\treturn 'Aleta Aire Ref. 7';\r\n\t\t}else{\r\n\t\t\treturn 'Aleta Aire Ref. 10';\r\n\t\t}\r\n\t}", "public function getProducte()\n {\n return $this->producte;\n }", "public function getEnergyAttribute()\n {\n $energy = 0;\n\n if (! empty($this->attributes['energy'])) {\n $energy = $this->attributes['energy'];\n }\n\n $produced = round(\n $this->production_rate / 3600 * Carbon::now()->diffInSeconds($this->last_energy_changed)\n );\n\n return $energy + $produced;\n }", "public function getBarraLateral() {\n return $this->barra_lateral;\n }", "public function tipo_iva_cesta(){\r\n\t\t\tforeach ($this->listArticulos as $elArticulo)\r\n\t\t\t\treturn $elArticulo->iva;\r\n\t\t}", "public function getA()\n {\n return $this->a;\n }", "public function getA()\n {\n return $this->a;\n }", "public function getAverageRevenueConversion()\n {\n $resource = Mage::getModel('abandonment/orderflag')->getResource();\n $average = 0;\n\n $nbConvertedCarts = $resource->getSumNbConvertedCarts($this->_getFilterStartingPeriod(), $this->_getFilterEndingPeriod());\n if ($nbConvertedCarts > 0) {\n $sumAmout = $resource->getSumAmountConvertedCarts(\n $this->_getFilterStartingPeriod(), $this->_getFilterEndingPeriod()\n );\n $average = $sumAmout / $nbConvertedCarts;\n }\n\n return $average;\n }", "public function getESCOLARIDAD()\r\n {\r\n return $this->ESCOLARIDAD;\r\n }", "public function getLegArrivalAirportName()\n {\n return $this->LegArrivalAirportName;\n }", "public function getAFacturerSurEx(): ?int {\n return $this->aFacturerSurEx;\n }", "public function getLibelleEcr() {\n return $this->libelleEcr;\n }", "public function getDataFromColumn($col)\n {\n return $this->attributes[app()->getLocale() == 'ar' ? 'ar_'.$col : $col] ?? $this->attributes[$col];\n }", "public function getCodeEmploi() {\n return $this->codeEmploi;\n }", "public function getElasticaAggregations()\n {\n return $this->elasticaAggregations;\n }", "public function getLatestAcer(){\n\t\t$sql = \"SELECT * FROM tbl_product WHERE brandId='8' ORDER BY pid DESC LIMIT 1\";\n\t\t$result = $this->db->select($sql);\n\t\treturn $result;\n\t}", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function avg_grade() {\n $avg = $this->assessments()->get()->avg('sa_assesment');\n\n return number_format((float)$avg, 2, '.', '');\n }", "public function getCoeficiente($apa) {\n return $this->coeficientes[$apa];\n }", "public function calculAc() {\n\n return $this->va * (1 + ($this->nbta - $this->nbad) / $this->nbta);\n }", "public function eta()\n {\n $eta = '';\n if ($this->run_started\n && !$this->run_completed\n ) {\n $now = now();\n $startMs = $this->run_started->getPreciseTimestamp(3);\n $nowMs = $now->getPreciseTimestamp(3);\n $durMs = ($nowMs - $startMs) / max(.1, $this->progress()) * (100 - $this->progress());\n $eta = $now->addMillis(max(0, $durMs));\n $eta = $eta->format(DATE_ATOM);\n }\n\n return $eta;\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getBaseWeeeTaxAppliedRowAmnt() {\n return $this->item->getBaseWeeeTaxAppliedRowAmnt();\n }", "public function getCentroArmazenagemEntrada()\n {\n return $this->centro_armazenagem_entrada;\n }", "public function getCodeEtablissement() {\n return $this->codeEtablissement;\n }", "public function getCodeEtablissement() {\n return $this->codeEtablissement;\n }", "public function getEtblRaisonSociale() {\n return $this->etblRaisonSociale;\n }", "public function getEtblRaisonSociale() {\n return $this->etblRaisonSociale;\n }", "public function getAPELLIDOMATERNOC()\r\n {\r\n return $this->APELLIDOMATERNOC;\r\n }" ]
[ "0.5740236", "0.5581799", "0.5446066", "0.5446066", "0.5446066", "0.5366086", "0.5366086", "0.529994", "0.5252882", "0.52039737", "0.5183803", "0.51609564", "0.51285684", "0.5128119", "0.5110731", "0.50968665", "0.5089454", "0.5074302", "0.5060015", "0.5052776", "0.50447977", "0.49949372", "0.49892527", "0.49800995", "0.49665573", "0.49487564", "0.49408382", "0.49206352", "0.49203438", "0.49201313", "0.48873952", "0.48827177", "0.48761266", "0.48719507", "0.4854358", "0.48523137", "0.48424643", "0.48359385", "0.48333058", "0.48295385", "0.4821285", "0.48171633", "0.48167482", "0.48060358", "0.4800935", "0.47932893", "0.47930902", "0.47797498", "0.47792292", "0.47787532", "0.47682485", "0.47638097", "0.47614235", "0.4753106", "0.47527817", "0.47480175", "0.47412217", "0.47375447", "0.47170714", "0.47158653", "0.4715678", "0.47016448", "0.46967077", "0.46812338", "0.46762022", "0.46699217", "0.46671546", "0.465425", "0.46533588", "0.46522045", "0.4644028", "0.4643513", "0.46434265", "0.4638909", "0.4632071", "0.4630705", "0.46267086", "0.46267086", "0.46238294", "0.46212044", "0.46191406", "0.46132335", "0.46101704", "0.46101475", "0.46021932", "0.4591112", "0.45865798", "0.45857435", "0.45842424", "0.45841542", "0.45778665", "0.45734248", "0.4572736", "0.45650586", "0.45648155", "0.45647934", "0.45647934", "0.45558494", "0.45558494", "0.45417655" ]
0.7863487
0
Get the [prod_company] column value.
public function getProdCompany() { return $this->prod_company; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCompanyValue()\n {\n return $this->CompanyValue;\n }", "public function company(): string\n {\n return $this->getData('CompanyName');\n }", "public function getCompanyId()\n\t{\n\t\t$column = self::COL_COMPANY_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getCompany() : \\App\\Domain\\Model\\Company\n {\n return $this->getRef('from__company_id__to__table__companies__columns__id', 'products');\n }", "public function get_company() \n {\n return $this->company;\n }", "public function getCompany()\n {\n if (array_key_exists('company', $this->data)) {\n return $this->data['company'];\n }\n\n if ($this->getType() == Reader\\Reader::TYPE_YML) {\n $company = $this->xpath->evaluate('string(/yml_catalog/shop/company)');\n }\n\n if (! $company) {\n $company = null;\n }\n\n $this->data['company'] = $company;\n\n return $this->data['company'];\n }", "function getCompanyId() {\n return $this->getAdditionalProperty('company_id');\n }", "public function getCompany()\n {\n return isset($this->company) ? $this->company : null;\n }", "public function getCompany()\n {\n return $this->company;\n }", "public function getCompanyId()\n {\n return array_get($this->config, 'company_id');\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getCompany(): ?string\n {\n return $this->_company;\n }", "public function getYomiCompany()\n {\n return $this->getProperty(\"YomiCompany\");\n }", "public function getCompany()\n {\n return $this->getParameter('billingCompany');\n }", "public function getCompanyName()\n {\n return $this->getProperty(\"CompanyName\");\n }", "public function getCompanyCode(){\n\t\t/* return company code */\n\t\treturn $this->_intCompanyCode;\n\t}", "public function getCompanyId()\n {\n return $this->company_id;\n }", "public function getCompanyId()\n {\n return $this->company_id;\n }", "public function getOperatingCompany()\n {\n return $this->operatingCompany;\n }", "protected function getReactCompany()\n\t{\n\t\tif (isset($this->config_data->data['ecashapp'])\n\t\t\t|| (isset($_SESSION['react_target'])\n\t\t\t\t&& $_SESSION['react_target'] !== FALSE))\n\t\t{\n\t\t\t$single_company = (isset($this->config_data->data['ecashapp']))\n\t\t\t\t? $this->config_data->data['ecashapp']\n\t\t\t\t: $_SESSION['react_target'];\n\t\t\treturn $single_company;\n\t\t}\n\t\telseif ($this->mode == MODE_ECASH_REACT)\n\t\t{\n\t\t\treturn $this->config->property_short;\n\t\t}\n\t\treturn NULL;\n\t}", "public function getCompany()\n\t{\n\t\tif (!isset($this->_r_company)) {\n\t\t\t$filters = [];\n\t\t\tif(!is_null($v = $this->getCompanyId())){\n\t\t\t\t$filters['company_id'] = $v;\n\t\t\t}\n\t\t\tif (empty($filters)){\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t$m = new DYCompaniesControllerRealR();\n\t\t\t$this->_r_company = $m->getItem($filters);\n\t\t}\n\n\t\treturn $this->_r_company;\n\t}", "public function getCompanyName()\n {\n return $this->company_name;\n }", "public function getCompanyName() {\n\t\treturn $this->company_name; \n\t}", "public function getCompanyName() {\n\n return $this->company_name;\n\n }", "public function getCompany_name()\n {\n return $company_name;\n }", "public function getCompanyNameAttribute() {\n\t\treturn $this->company_name;\n\t}", "public function getCompanyName()\n {\n return $this->companyName;\n }", "public function getCompanyName()\n {\n return $this->companyName;\n }", "public function getCompanyName()\r\n {\r\n return $this->companyName;\r\n }", "public function getCompanyId()\n {\n if ($this->userContext->getUserId()\n && $this->userContext->getUserType() == UserContextInterface::USER_TYPE_CUSTOMER\n ) {\n try {\n $customer = $this->customerRepository->getById($this->userContext->getUserId());\n\n if ($customer->getExtensionAttributes()\n && $customer->getExtensionAttributes()->getCompanyAttributes()\n && $customer->getExtensionAttributes()->getCompanyAttributes()->getCompanyId()\n ) {\n return $customer->getExtensionAttributes()->getCompanyAttributes()->getCompanyId();\n }\n } catch (\\Magento\\Framework\\Exception\\NoSuchEntityException $e) {\n return null;\n }\n }\n return null;\n }", "public function getCompany() {\n return Companies::findById($this->company_id);\n }", "public function getCompanyFieldDefault ()\n {\n $companyDefault = $this->scopeConfig->getValue(\n 'customer/address/company_show',\n ScopeInterface::SCOPE_STORE\n );\n return $companyDefault;\n }", "public function getCompanyAlias() \n\t{\n\t return $this->companyAlias;\n\t}", "public function getUserCompany()\n {\n $user_company = \\App\\User::with(['company'])->where('id', Auth::user()->id)->first();\n return $user_company ? $user_company : null;\n }", "function getCostAccountCompany(){\n\treturn campo('config_system','id','1','cost_account_company');\n}", "function getCostAccountCompany(){\n\treturn campo('config_system','id','1','cost_account_company');\n}", "public function getBillingCompany()\n {\n return $this->getParameter('billingCompany');\n }", "public function getCompanyNameByCompanyCode()\n {\n $nombre = $this->db->select(\"t.empresa as value\")\n ->from(\"token t\") \n ->where(\"t.codigo\", $this->codigo)\n ->get()->row();\n\n // echo '<pre>' . var_dump($nombre) . '</pre>';\n return $nombre;\n }", "public function getCompanyName() \n\t{\n\t return $this->companyName;\n\t}", "public static function getCompanyByCustomerId()\n\t{\n\t\t$userId = Auth::getUser()->ID;\n\t\t$companyName = self::select('company')->where('ID', $userId)->first()->company;\n\t\treturn $companyName;\n\t}", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "function getCostPersonalTagCompany(){\n\treturn campo('config_system','id','1','cost_company_personal_tag');\n}", "function getCostPersonalTagCompany(){\n\treturn campo('config_system','id','1','cost_company_personal_tag');\n}", "public function getCompany();", "public function getCompany() {\n if(!$this->department || !$this->department->department || !$this->department->department->division || !$this->department->department->division->company)\n return false;\n\n return $this->department->department->division->company;\n }", "public function getCompany() {}", "function get_company_id()\n {\n $subdomain_arr = explode('.', $_SERVER['HTTP_HOST'], 2); //creates the various parts\n $subdomain_name = $subdomain_arr[0];\n\n $company = DB::table('admin')->where('username',$subdomain_name)->get();\n \n if(count($company) > 0){\n return $company[0]->company_id;\n }\n else\n {\n return 0;\n }\n }", "public function getCompanyCity() {\n\n return $this->company_city;\n\n }", "protected function companyCode(){\n return config('company.code');\n }", "public function company()\n {\n return ($this->entity_type == 'c') ? $this->belongsTo('App\\Models\\Company\\Company', 'entity_id') : null;\n }", "public function getShippingCompany()\n {\n return $this->getParameter('shippingCompany');\n }", "public function getEmployCompanyId() {\n\t\treturn ($this->employCompanyId);\n\t}", "private function getUserCompanyId(){\n $id = NULL;\n\n if(isset($this->user_id) && !empty($this->user_id)){\n $query = $this->companies->get_company_id($this->user_id);\n if(!is_null($query)){\n $id = $query->id;\n }\n }\n return $id;\n }", "public function retrieve_company()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('company_information');\n\t\t$this->db->limit('1');\n\t\t$query = $this->db->get();\n\t\tif ($query->num_rows() > 0) {\n\t\t\treturn $query->result_array();\t\n\t\t}\n\t\treturn false;\n\t}", "public function retrieve_company()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('company_information');\n\t\t$this->db->limit('1');\n\t\t$query = $this->db->get();\n\t\tif ($query->num_rows() > 0) {\n\t\t\treturn $query->result_array();\t\n\t\t}\n\t\treturn false;\n\t}", "public function retrieve_company()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('company_information');\n\t\t$this->db->limit('1');\n\t\t$query = $this->db->get();\n\t\tif ($query->num_rows() > 0) {\n\t\t\treturn $query->result_array();\t\n\t\t}\n\t\treturn false;\n\t}", "public function retrieve_company()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('company_information');\n\t\t$this->db->limit('1');\n\t\t$query = $this->db->get();\n\t\tif ($query->num_rows() > 0) {\n\t\t\treturn $query->result_array();\t\n\t\t}\n\t\treturn false;\n\t}", "public function getCompanyName() {\n return $this->getName();\n }", "public function getCompanyNameIdentifier()\n {\n return 'company_name';\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function get()\n {\n $this->db->select('*');\n $this->db->from('company AS C');\n $query = $this->db->get();\n\n return $query->result()[0];\n }", "function getCompanyName() {\n \t$company = $this->getCompany();\n \treturn instance_of($company, 'Company') ? $company->getName() : lang('-- Unknown --');\n }", "public function retrieve_company() {\n $this->db->select('*');\n $this->db->from('company_information');\n $this->db->limit('1');\n $query = $this->db->get();\n if ($query->num_rows() > 0) {\n return $query->result_array();\n }\n return false;\n }", "public function retrieve_company() {\n $this->db->select('*');\n $this->db->from('company_information');\n $this->db->limit('1');\n $query = $this->db->get();\n if ($query->num_rows() > 0) {\n return $query->result_array();\n }\n return false;\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getCompanyName(): ?string\n {\n return $this->CompanyName;\n }", "public function getCompanyCountry() {\n\n return $this->company_country;\n\n }", "public function getReadableCompanyNameAttribute()\n {\n if ($this->company_id){\n $company = Company::find($this->company_id);\n $companyName = $company->name;\n return $companyName;\n }else{\n return null;\n }\n\n }", "public function getProductCode()\n {\n if (array_key_exists(\"productCode\", $this->_propDict)) {\n return $this->_propDict[\"productCode\"];\n } else {\n return null;\n }\n }", "public function setProdCompany($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_company !== $v) {\n $this->prod_company = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_COMPANY] = true;\n }\n\n return $this;\n }", "public function getSpecificCompanyDetails($companyId)\n\t{\n\t\t$sql=$this->db->prepare(\"SELECT * FROM `compnay` WHERE `id`='\".$companyId.\"' \");\t\t\n\t\t$sql->execute();\n\t\treturn $sql->fetch(PDO::FETCH_ASSOC);\n\t}", "function getProductCode()\n {\n return $this->productCode;\n }", "public function getProductDefaultValue() {\n //initialize dummy value.. no content header.pure html\n $sql = null;\n $productId = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n SELECT `productId`\n FROM `product`\n WHERE `isActive` = 1\n AND `companyId` = '\" . $this->getCompanyId() . \"'\n AND \t `isDefault` =\t 1\n LIMIT 1\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n SELECT TOP 1 [productId],\n FROM [product]\n WHERE [isActive] = 1\n AND [companyId] = '\" . $this->getCompanyId() . \"'\n AND \t [isDefault] = 1\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n SELECT PRODUCTID AS \\\"productId\\\",\n FROM PRODUCT\n WHERE ISACTIVE = 1\n AND COMPANYID = '\" . $this->getCompanyId() . \"'\n AND \t ISDEFAULT\t =\t 1\n AND \t\t ROWNUM\t =\t 1\";\n } else {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $this->t['databaseNotFoundMessageLabel']));\n exit();\n }\n }\n }\n try {\n $result = $this->q->fast($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n if ($result) {\n $row = $this->q->fetchArray($result);\n $productId = $row['productId'];\n }\n return $productId;\n }", "public function getMarketingCompany()\n {\n return $this->marketingCompany;\n }", "public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }", "private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }", "public function getCdProduto()\n {\n return $this->Cd_produto;\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public static function getCompanyAuth()\n {\n $userData = User::where('TenantId', Auth::user()->TenantId)->where('IsAdmin', 1)->first();\n return $userData->id;\n }", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getCdProduto()\n {\n return $this->cd_produto;\n }", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function getCompany($companySlug){\n\t\n\t\t$companies=$this->getAllCompanies();\n\n\t\tforeach($companies as $company){\n\t\t\tif($company['slug'] == $companySlug){\n\t\t\treturn $this->returnCompanyData($company);\n\t\t\t}\n\t\t}\t\n\t\treturn 'Company Not Found.';\n\t}", "function infoCompany($companyid){\n\t\t$sql = \"\n\t\t\tSELECT DES_DECRYPT(c.`skeys`,'sonnk2504') AS skeys, c.count_warehouse,c.count_branch, c.id, c.mst\n\t\t\tFROM `hotel_company` c\n\t\t\tWHERE c.id = '$companyid'\n\t\t\";\n\t\t$query = $this->model->query($sql)->execute();\n\t\treturn $query[0];\n\t}", "public function company()\n {\n return $this->author()->company();\n }", "public function getValue($idx)\n {\n return (($dbname = $this->_getDbname($idx))!=null\n ? $this->columns[$dbname]->value\n : null);\n }", "function wac_vendor_company($user){\n\t$company = get_user_meta($user->ID,'_vendor_company',true);\n\tif(!empty($company)){\n\t\treturn $company;\n\t}\n\t\n\treturn wac_vendor_name($user);\n}", "public function getCompanyShortName()\n {\n return $this->companyShortName;\n }", "public function getProductCode(): ?string\n {\n return $this->productCode;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getCommodityCode()\n {\n return $this->commodityCode;\n }", "public function company()\n {\n return $this->business();\n }", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "public function getProduct_category () {\n\t$preValue = $this->preGetValue(\"product_category\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_category\")->preGetData($this);\n\treturn $data;\n}", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getValue()\n {\n return $this->value instanceof ProductDiscountValueDraftBuilder ? $this->value->build() : $this->value;\n }", "public function getCityName()\n {\n return $this->getValue('nb_icontact_prospect_city_name');\n }", "public function getProdTitle()\n {\n return $this->prod_title;\n }" ]
[ "0.69439805", "0.6641938", "0.64975184", "0.642026", "0.6382302", "0.6278197", "0.62756866", "0.6245016", "0.62391084", "0.6225223", "0.61779565", "0.6164254", "0.6149343", "0.61454195", "0.61253214", "0.6094947", "0.609472", "0.609472", "0.608427", "0.6049034", "0.59151477", "0.5900368", "0.5899937", "0.5852196", "0.5848084", "0.5831993", "0.58269817", "0.58269817", "0.5820614", "0.58094186", "0.5807695", "0.58059", "0.5798278", "0.5783202", "0.5779079", "0.5779079", "0.5767871", "0.57619935", "0.5728659", "0.5726586", "0.5715447", "0.5708838", "0.5708023", "0.5705519", "0.5705519", "0.567042", "0.56141126", "0.56008035", "0.5570936", "0.556659", "0.55650693", "0.5559942", "0.555551", "0.5547229", "0.554351", "0.55397666", "0.55397666", "0.55397666", "0.55397666", "0.55269426", "0.5506512", "0.54945874", "0.5493089", "0.54788256", "0.545115", "0.545115", "0.5443077", "0.5435779", "0.54346055", "0.54034007", "0.5379319", "0.5368239", "0.53528136", "0.5351824", "0.5320847", "0.5313969", "0.53088474", "0.5307293", "0.5301133", "0.5298774", "0.52721614", "0.5269439", "0.5266411", "0.5256703", "0.52355975", "0.5214231", "0.5209628", "0.51872826", "0.51819813", "0.5159757", "0.5156781", "0.5155088", "0.51507515", "0.51404405", "0.5126458", "0.5118968", "0.511462", "0.51142335", "0.51085067", "0.51057327" ]
0.76824564
0
Get the [prod_related] column value.
public function getProdRelated() { return $this->prod_related; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "public function getProdRelatedPa()\n {\n return $this->prod_related_pa;\n }", "public function setProdRelated($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related !== $v) {\n $this->prod_related = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED] = true;\n }\n\n return $this;\n }", "public function getRelated(): string\n {\n return $this->related;\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function get_related_products() {\n if('product' != get_post_type()) {\n\n // Get an array of the resource types\n\n // Query the relationship field on all 'products' associated with the current post type\n $return = get_posts(array(\n 'post_type' => 'product',\n 'suppress_filters' => 0,\n 'meta_query' => array(\n array(\n 'key' => get_post_type(), // name of custom field\n 'value' => '\"' . get_the_ID() . '\"', // matches exactly \"123\", not just 123. This prevents a match for \"1234\"\n 'compare' => 'LIKE'\n )\n )\n ));\n } else {\n $return = get_field('related_products');\n }\n return $return;\n }", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "public function getProdRelatedM3()\n {\n return $this->prod_related_m3;\n }", "public function get_relatedDocNo() {\n return $this->relatedDocNo;\n }", "protected function getLinkedProductID () {\n $productFilter = Search::getInstance($this->data['attrs']['source_id'])->getFilter('product');\n\n return $productFilter ? $productFilter['value'] : null;\n }", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "public function setProdRelated2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related2 !== $v) {\n $this->prod_related2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED2] = true;\n }\n\n return $this;\n }", "private function getProductLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "public function getProducts_prid() {\n\t\treturn $this->products_prid;\n\t}", "public function getProductEntityLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "function getRelatedProdsById($pId){\n\t\t$query = \"SELECT GROUP_CONCAT(DISTINCT relatedto_id ORDER BY relatedto_id ASC SEPARATOR ',') AS prodRelated, GROUP_CONCAT(DISTINCT relatedto_offerid ORDER BY relatedto_offerid ASC SEPARATOR ',') AS offerRelated FROM product_related WHERE `relatedfrom_id`=$pId\";\n\t\t//$data = mysql_query($query);\n\t\t//print_r($data);\n\t\t$result = $this->selectQueryForAssoc($query);\n\t\treturn $result;\t\n\t}", "private function getProductEntityLinkField()\n {\n if (!$this->productEntityLinkField) {\n $this->productEntityLinkField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getLinkField();\n }\n return $this->productEntityLinkField;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function GetIdProducto()\n\t{\n\t\treturn $this->idProd;\n\t}", "public function getProductId(): string\n {\n return $this->productId;\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function product()\n {\n return $this->m_product;\n }", "public function getProduct()\n {\n return isset($this->product) ? $this->product : null;\n }", "public function getPriceProduct()\n {\n return $this->priceProduct;\n }", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function getCdProduto()\n {\n return $this->Cd_produto;\n }", "public function getProductIdFieldName() {\n return 'products_id';\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getProdDescription()\n {\n return $this->prod_description;\n }", "function getId_Producto(){\r\n\t\treturn $this->nId_Producto;\r\n\t}", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getRecommendedProduct()\n {\n $this->db->connect();\n $sql = \"SELECT * FROM $this->table WHERE recommended = 'yes' LIMIT 4;\";\n $product = $this->db->executeFetchAll($sql);\n return $product;\n }", "public function getProduct()\r\n {\r\n return $this->product;\r\n }", "public function getProdCompany()\n {\n return $this->prod_company;\n }", "private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }", "public function getCodigoProducto()\n {\n return $this->codigoProducto;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getId_product()\n {\n return $this->id_product;\n }", "public function getCdProduto()\n {\n return $this->cd_produto;\n }", "public function getForeignKey()\n {\n return 'order_product_field_value_id';\n }", "public function getId_produto()\n {\n return $this->id_produto;\n }", "public function getProductId(): ?string\n {\n return isset($this->ProductId) ? $this->ProductId : null;\n }", "public function getProductId(): ?string\n {\n return isset($this->ProductId) ? $this->ProductId : null;\n }", "public function get_id_product()\n\t{\n\t\treturn $this->id_product;\n\t}", "public function getProductId() {\n\t\treturn($this->productId);\n\t}", "public function get_product()\n {\n return $this->_product;\n }", "public function getProduct_Id() {\n return $this->product_Id;\n }", "public function get_custom_field( $product, $settings ) {\n\n\t\t\tif ( ! $product ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$field_key = ! empty( $settings['compare_table_custom_field'] ) ? $settings['compare_table_custom_field'] : false;\n\n\t\t\tif ( ! $field_key ) {\n\t\t\t\treturn '';\n\t\t\t}\n\n\t\t\t$field_value = get_post_meta( $product->get_id(), $field_key, true );\n\n\t\t\tif ( empty( $field_value ) ) {\n\t\t\t\t$field_value = ! empty( $settings['compare_table_custom_field_fallback'] ) ? $settings['compare_table_custom_field_fallback'] : $field_value;\n\t\t\t}\n\n\t\t\t$custom_field = apply_filters( 'jet-cw/template-functions/compare-custom-field/' . $field_key, $field_value );\n\n\t\t\treturn sprintf( '<span class=\"jet-cw-custom-field\">%s</span>', $custom_field );\n\n\t\t}", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getRelatedParty()\n {\n return $this->relatedParty;\n }", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "public function getProduct() {\n return $this->_registry->registry ( 'current_product' );\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getProdutoCdProduto()\n {\n return $this->produto_cd_produto;\n }", "private function rtPropID(string $proprietary){\n $this->checkNotConnected();\n $qr_all = $this->connection->query(\"SELECT cd_proprietary, COUNT(cd_proprietary) AS exists_prop FROM tb_proprietaries WHERE nm_proprietary = \\\"$proprietary\\\";\")->fetch_array();\n return $qr_all['exists_prop'] > 0 ? (int) $qr_all['cd_proprietary'] : null;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductid() {\n\t\treturn $this->productid;\n\t}", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "function getNitProveedor()\n {\n return $this->NitProveedor;\n }", "public function get_product_id() {\n return $this->product_id;\n }", "function get_related( $limit = 5 ) {\n\t\tglobal $wpdb, $all_post_ids;\n\t\t// Related products are found from category and tag\n\t\t$tags_array = array(0);\n\t\t$cats_array = array(0);\n\t\t$tags = '';\n\t\t$cats = '';\n\t\t\n\t\t// Get tags\n\t\t$terms = wp_get_post_terms($this->id, 'product_tag');\n\t\tforeach ($terms as $term) {\n\t\t\t$tags_array[] = $term->term_id;\n\t\t}\n\t\t$tags = implode(',', $tags_array);\n\t\t\n\t\t$terms = wp_get_post_terms($this->id, 'product_cat');\n\t\tforeach ($terms as $term) {\n\t\t\t$cats_array[] = $term->term_id;\n\t\t}\n\t\t$cats = implode(',', $cats_array);\n\n\t\t$q = \"\n\t\t\tSELECT p.ID\n\t\t\tFROM $wpdb->term_taxonomy AS tt, $wpdb->term_relationships AS tr, $wpdb->posts AS p, $wpdb->postmeta AS pm\n\t\t\tWHERE \n\t\t\t\tp.ID != $this->id\n\t\t\t\tAND p.post_status = 'publish'\n\t\t\t\tAND p.post_date_gmt < NOW()\n\t\t\t\tAND p.post_type = 'product'\n\t\t\t\tAND pm.meta_key = 'visibility'\n\t\t\t\tAND pm.meta_value IN ('visible', 'catalog')\n\t\t\t\tAND pm.post_id = p.ID\n\t\t\t\tAND\n\t\t\t\t(\n\t\t\t\t\t(\n\t\t\t\t\t\ttt.taxonomy ='product_cat'\n\t\t\t\t\t\tAND tt.term_taxonomy_id = tr.term_taxonomy_id\n\t\t\t\t\t\tAND tr.object_id = p.ID\n\t\t\t\t\t\tAND tt.term_id IN ($cats)\n\t\t\t\t\t)\n\t\t\t\t\tOR \n\t\t\t\t\t(\n\t\t\t\t\t\ttt.taxonomy ='product_tag'\n\t\t\t\t\t\tAND tt.term_taxonomy_id = tr.term_taxonomy_id\n\t\t\t\t\t\tAND tr.object_id = p.ID\n\t\t\t\t\t\tAND tt.term_id IN ($tags)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\tGROUP BY tr.object_id\n\t\t\tORDER BY RAND()\n\t\t\tLIMIT $limit;\";\n \n\t\t$related = $wpdb->get_col($q);\n\t\t\n\t\treturn $related;\n\t}", "private function getProductByReference($prodRef) {\n $entityManager = $this->getDoctrine()->getManager();\n $product = null;\n $productList = $entityManager->getRepository('DppCustomersBundle:Product')->findBy(array('urlRef' => $prodRef));\n if (!$productList == null) {\n $product = $productList[0];\n }\n return $product;\n }", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "public function product()\n {\n return $this->belongsTo(config('inventory.models.product-variant'), 'product_variant_id');\n }", "public function getPromotion(){\n return $this->promotion;\n }", "public function getProductData()\n {\n return $this->_coreRegistry->registry('current_product');\n }", "public function getRelatedClass()\n\t{\n\t\treturn empty($this->related_class) ? ucfirst(Db_Inflector::singularize($this->getProperty())) : $this->related_class;\n\t}", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductReferenceID()\n {\n return $this->productReferenceID;\n }", "public function getProduct() {\r\n return $this->_product;\r\n }", "public function getproductdetail($prod_id)\n {\n $product = $this->Dbmodel->getproductdata($prod_id); \n return $product;\n }", "function getProductCode()\n {\n return $this->productCode;\n }", "public function getRelatedProducts()\n {\n if (!$this->hasRelatedProducts()) {\n $products = array();\n $collection = $this->getRelatedProductCollection();\n foreach ($collection as $product) {\n $products[] = $product;\n }\n $this->setRelatedProducts($products);\n }\n return $this->getData('related_products');\n }", "function getCodigoProducto()\n {\n return $this->CodigoProducto;\n }", "public function getProductId()\n {\n return $this->product_id;\n }", "public function getProductId()\n {\n return $this->product_id;\n }", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function getSimilarProducts()\n {\n return $this->similar_products;\n }", "public function getProductId(){\n return $this->product_id;\n }", "function prodname()\r\n {\r\n //left join oc_product as op on opd.product_id=op.product_id \");\r\n\r\n //return $query->rows; \r\n \r\n $query = $this->db->query(\"SELECT product_id,model,sku FROM `oc_product` WHERE `status`='1'\");\r\n \r\n return $query->rows;\r\n }", "function editRelated()\n\t{\n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t$sql = \"SELECT \t* FROM products_table \";\n\t\t\t$query = new Bin_Query();\n\t\t\t$query->executeQuery($sql);\n\t\t\t\n\t\t\t$sql='select cross_product_ids from cross_products_table where product_id='.$id;\n\t\t\t$obj=new Bin_Query();\n\t\t\t$obj->executeQuery($sql);\n\t\t\t$p_id=$obj->records[0];\n\t\t\t$value=explode(\",\",$p_id['cross_product_ids']);\n\t\t\treturn Display_DManageProducts::editRelated($query->records,$value);\n\t\t}\t\n\t\t\t//return '<div class=\"exc_msgbox\">No Products Found! Please Click Product Entry Link to Add Products!</div>';\n\n\n\t\n\t}", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function getProduct()\r\n {\r\n return $this->_params['product'];\r\n }", "public function get_variation_by_common_id($common_id)\n {\n $this->db->where('common_id', $common_id);\n $query = $this->db->get('product_variations');\n return $query->result();\n }" ]
[ "0.68726206", "0.64084405", "0.6190881", "0.5949044", "0.5945941", "0.5834201", "0.57762355", "0.5718912", "0.56880474", "0.5659954", "0.5657465", "0.5543816", "0.55207604", "0.5515525", "0.54667014", "0.5452311", "0.5321481", "0.5315701", "0.53066546", "0.527686", "0.52650476", "0.5255369", "0.5229786", "0.5216577", "0.5215796", "0.51942813", "0.517452", "0.5158245", "0.51404816", "0.5136856", "0.51342183", "0.51267415", "0.51062006", "0.50988543", "0.50910646", "0.5082205", "0.5082205", "0.5082205", "0.5082205", "0.5082205", "0.5082205", "0.50739074", "0.505949", "0.50550866", "0.5053808", "0.5053589", "0.50459164", "0.50459164", "0.50459164", "0.5043091", "0.50388324", "0.502521", "0.5018636", "0.50075155", "0.50075155", "0.50044084", "0.50031537", "0.49942848", "0.49870545", "0.4983387", "0.4979728", "0.49775827", "0.49766415", "0.496958", "0.49611503", "0.4960716", "0.49531433", "0.49453434", "0.49453434", "0.49453434", "0.49383956", "0.4924068", "0.4924068", "0.49160126", "0.49115038", "0.49068138", "0.490608", "0.49035504", "0.49006507", "0.4900637", "0.489846", "0.4892108", "0.48912808", "0.48912808", "0.48884508", "0.48863247", "0.48804048", "0.4876533", "0.48757872", "0.48703298", "0.48595685", "0.48595685", "0.48593432", "0.4856399", "0.4856379", "0.48525372", "0.4845098", "0.48430267", "0.48390648", "0.4826191" ]
0.7774425
0
Get the [prod_related_pa] column value.
public function getProdRelatedPa() { return $this->prod_related_pa; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public function setProdRelatedPa($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related_pa !== $v) {\n $this->prod_related_pa = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED_PA] = true;\n }\n\n return $this;\n }", "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "public function getProducts_prid() {\n\t\treturn $this->products_prid;\n\t}", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getPaidValue()\n {\n return defined('static::PAID_VALUE') ? static::PAID_VALUE : 'paid';\n }", "public function getProdRelatedM3()\n {\n return $this->prod_related_m3;\n }", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "private function rtPropID(string $proprietary){\n $this->checkNotConnected();\n $qr_all = $this->connection->query(\"SELECT cd_proprietary, COUNT(cd_proprietary) AS exists_prop FROM tb_proprietaries WHERE nm_proprietary = \\\"$proprietary\\\";\")->fetch_array();\n return $qr_all['exists_prop'] > 0 ? (int) $qr_all['cd_proprietary'] : null;\n }", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "protected function getLinkedProductID () {\n $productFilter = Search::getInstance($this->data['attrs']['source_id'])->getFilter('product');\n\n return $productFilter ? $productFilter['value'] : null;\n }", "public function getrep_problema()\r\n {\r\n return $this->rep_problema;\r\n }", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "function get_pr_for_appliance($appliance_id) {\n\t\t$db=htvcenter_get_db_connection();\n\t\t$cloudprofile_array = $db->Execute(\"select pr_id from \".$this->_db_table.\" where pr_appliance_id=$appliance_id\");\n\t\tforeach ($cloudprofile_array as $index => $cloudprofile) {\n\t\t\treturn $cloudprofile[\"pr_id\"];\n\t\t}\n\t}", "public function getFkPpaPpa()\n {\n return $this->fkPpaPpa;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function getPriceProduct()\n {\n return $this->priceProduct;\n }", "public function getPa()\n {\n return $this->pa;\n }", "public function getPa()\n {\n return $this->pa;\n }", "public function getPrecinctId()\n\t{\n\n\t\treturn $this->precinct_id;\n\t}", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "private function getProductLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "function getRelatedProdsById($pId){\n\t\t$query = \"SELECT GROUP_CONCAT(DISTINCT relatedto_id ORDER BY relatedto_id ASC SEPARATOR ',') AS prodRelated, GROUP_CONCAT(DISTINCT relatedto_offerid ORDER BY relatedto_offerid ASC SEPARATOR ',') AS offerRelated FROM product_related WHERE `relatedfrom_id`=$pId\";\n\t\t//$data = mysql_query($query);\n\t\t//print_r($data);\n\t\t$result = $this->selectQueryForAssoc($query);\n\t\treturn $result;\t\n\t}", "public function setProdRelated($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related !== $v) {\n $this->prod_related = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED] = true;\n }\n\n return $this;\n }", "public function getProcProxFase(){\n return $this->_data['proc_prox_fase'];\n }", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getProductAttributeDecimal($productId, $attributeCode){\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_decimal where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getShoppingProductAd()\n {\n return $this->readOneof(18);\n }", "public function getProdEra()\n {\n return $this->prod_era;\n }", "public function get_related_products() {\n if('product' != get_post_type()) {\n\n // Get an array of the resource types\n\n // Query the relationship field on all 'products' associated with the current post type\n $return = get_posts(array(\n 'post_type' => 'product',\n 'suppress_filters' => 0,\n 'meta_query' => array(\n array(\n 'key' => get_post_type(), // name of custom field\n 'value' => '\"' . get_the_ID() . '\"', // matches exactly \"123\", not just 123. This prevents a match for \"1234\"\n 'compare' => 'LIKE'\n )\n )\n ));\n } else {\n $return = get_field('related_products');\n }\n return $return;\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function getId_produto()\n {\n return $this->id_produto;\n }", "public function product()\n {\n return $this->m_product;\n }", "public function getItemaPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(4, $this->_result)) return (string) $this->_result[4];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getItemaPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getItemaPt', __LINE__, __FILE__);\n\t}", "public function getProductAttributeVarchar($productId, $attributeCode) {\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_varchar where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getCodProy() {\n return $this->codProy;\n }", "public function getAditionalPrice()\n {\n return @$this->attributes[\"preco_adicional\"];\n }", "public function getCodProy() {\n return $this->codProy;\n }", "public function getPromotioncode()\n {\n return $this->promotioncode;\n }", "public function getPoliceValide()\n {\n return $this->policeValide;\n }", "private function hndProprietaryId($proprietary){\n $this->checkNotConnected();\n if(is_int($proprietary) || is_numeric($proprietary)){\n // checks if the proprietary exists.\n $dp = $this->connection->query(\"SELECT COUNT(cd_proprietary) FROM tb_proprietaries WHERE cd_proprietary = $proprietary;\");\n if((int)$dp->fetch_array()[0] != 1) return null;\n else return (int)$proprietary;\n }\n else if(is_string($proprietary)){\n $dp = $this->connection->query(\"SELECT COUNT(cd_proprietary), cd_proprietary FROM tb_proprietaries WHERE nm_proprietary = \\\"$proprietary\\\";\")->fetch_array();\n if((int)$dp[0] != 1) return null;\n else return (int)$dp[1];\n }\n else return null;\n }", "public function get_pa(){ return $this->_pa;}", "public function getMpPerc()\n {\n return $this->get(self::_MP_PERC);\n }", "public function getPromotion(){\n return $this->promotion;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getCodigoProducto()\n {\n return $this->codigoProducto;\n }", "public function getProductPrice()\n {\n $currentProduct = Mage::registry('current_product');\n\n //seria melhor usar uma constante nativa, mas nao encontrei.\n if ('configurable' == $currentProduct->getTypeId()) {\n return $currentProduct->getFinalPrice();\n }\n\n if ('bundle' == $currentProduct->getTypeId()) {\n $_priceModel = $currentProduct->getPriceModel();\n list($_minimalPriceTax, $_maximalPriceTax) = $_priceModel->getTotalPrices($currentProduct, null, null, false);\n\n return $_minimalPriceTax;\n }\n\n if ('grouped' == $currentProduct->getTypeId()) {\n $regularPrice = 0;\n $usedProds = $currentProduct->getTypeInstance(true)->getAssociatedProducts($currentProduct); \n foreach ($usedProds as $child) {\n if ($child->getId() != $currentProduct->getId()) {\n $regularPrice += $child->getPrice();\n }\n }\n return $regularPrice;\n }\n\n return $currentProduct->getFinalPrice();\n }", "public function getProductPrice()\n {\n $currentProduct = $this->_registry->registry('current_product');\n\n //seria melhor usar uma constante nativa, mas nao encontrei.\n if ('configurable' == $currentProduct->getTypeId()) {\n return $currentProduct->getPriceInfo()->getPrice('regular_price')->getMinRegularAmount()->getValue();\n }\n\n if ('bundle' == $currentProduct->getTypeId()) {\n return $currentProduct->getPriceInfo()->getPrice('regular_price')->getMinimalPrice()->getValue();\n }\n\n if ('grouped' == $currentProduct->getTypeId()) {\n $regularPrice = 0;\n $usedProds = $currentProduct->getTypeInstance(true)->getAssociatedProducts($currentProduct); \n foreach ($usedProds as $child) {\n if ($child->getId() != $currentProduct->getId()) {\n $regularPrice += $child->getPrice();\n }\n }\n return $regularPrice;\n }\n\n return $currentProduct->getFinalPrice();\n }", "public function GetIdProducto()\n\t{\n\t\treturn $this->idProd;\n\t}", "public function getRelated(): string\n {\n return $this->related;\n }", "public function getCdProduto()\n {\n return $this->Cd_produto;\n }", "public function getProduct()\n {\n return isset($this->product) ? $this->product : null;\n }", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "public function getProductCode()\n {\n if (array_key_exists(\"productCode\", $this->_propDict)) {\n return $this->_propDict[\"productCode\"];\n } else {\n return null;\n }\n }", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function discountOrChargeValue()\n {\n return $this->discountOrChargeValueBoleta();\n }", "public function getProdCompany()\n {\n return $this->prod_company;\n }", "function getProductCode()\n {\n return $this->productCode;\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function getPrecioCompra()\n\t{\n\t\treturn $this->precio_compra;\n\t}", "public function getVariationValue()\n {\n return $this->variationValue;\n }", "public function get_product()\n {\n return $this->_product;\n }", "public function getPriceAttribute() {\n return BASE_PRICE\n + INGREDIENT_PRICES['salad'] * $this->salad\n + INGREDIENT_PRICES['cheese'] * $this->cheese\n + INGREDIENT_PRICES['meat'] * $this->meat\n + INGREDIENT_PRICES['bacon'] * $this->bacon;\n }", "public function getProductId(): string\n {\n return $this->productId;\n }", "public function getPothairship()\n {\n return $this->pothairship;\n }", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function getShowInProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getProductPrice()\n {\n $currentProduct = $this->_registry->registry('current_product');\n \n //qual preco retornar? o base ou o special???\n //o ideal seria usar constante nativa, mas nao encontrei.\n if ('configurable' == $currentProduct->getTypeId()) {\n return $currentProduct->getPriceInfo()->getPrice('regular_price')->getMinRegularAmount()->getValue();\n }\n\n if ('bundle' == $currentProduct->getTypeId()) {\n return $currentProduct->getPriceInfo()->getPrice('regular_price')->getMinimalPrice()->getValue();\n }\n\n if ('grouped' == $currentProduct->getTypeId()) {\n $regularPrice = 0;\n $usedProds = $currentProduct->getTypeInstance(true)->getAssociatedProducts($currentProduct); \n foreach ($usedProds as $child) {\n if ($child->getId() != $currentProduct->getId()) {\n $regularPrice += $child->getPrice();\n }\n }\n return $regularPrice;\n }\n\n return $currentProduct->getFinalPrice();\n }", "public function getPromId()\n {\n return $this->prom_id;\n }", "public function getIdPrato()\n {\n return $this->idPrato;\n }", "public function getPurchaseProdPrice() {\n return $this->purchaseProdPrice;\n }", "function get_army_value()\n\t{\n\t\t$result = pg_query(\"SELECT sum(point_cost) as point_total FROM warhammer.user_army\");\n\t\t$result_a = pg_fetch_array($result,0,PGSQL_ASSOC);\n\t\treturn $result_a[\"point_total\"];\n\t}", "protected function mapeoValorProp(){\n\t $strPrecio='';\n\t if($this->propiedad->getPublicaprecio()==1){\n\t\t\tif(trim($this->propiedad->getOperacion())=='Venta'){\n\t\t\t\t$mon=$this->CAR_MONVTA;\n\t\t\t\t$val=$this->CAR_VALVTA;\n\t\t\t}else{\n\t\t\t\t$mon=$this->CAR_MONALQ;\n\t\t\t\t$val=$this->CAR_VALALQ;\n\t\t\t}\n\t\t\t$valor=\tintval($this->arrayCaracteristicas[$this->arrayClavesCarac[$val]]['contenido']);\n\t\t\t$moneda=$this->arrayCaracteristicas[$this->arrayClavesCarac[$mon]]['contenido'];\n\t\t\tif($valor!=0 && $valor!=''){\n\t\t\t\tif($moneda=='U$S'){\n\t\t\t\t\t$moneda='USD';\n\t\t\t\t}else{\n\t\t\t\t\t$moneda='ARS';\n\t\t\t\t}\n\t\t\t\t$strPrecio=\"<precio>\".$valor.\"</precio><tipoMoneda>\".$moneda.\"</tipoMoneda>\";\n\t\t\t}else{\n\t\t\t\t$strPrecio=\"<tipoMoneda></tipoMoneda>\";\n\t\t\t}\n\n\t }else{\n\t\t\t$strPrecio=\"<tipoMoneda></tipoMoneda>\";\n\t }\n\t return $strPrecio;\n\t}", "public function getProductEntityLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function getCdProduto()\n {\n return $this->cd_produto;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function executePromotion(){\n if($this->isGotPromotion()){\n return $this->promotion->getPromotionPrice(); \n }\n }", "public function getProductId()\n {\n $productIdAttribute = $this->helper->getProductIdConfig();\n\n return $this->getAttribute($productIdAttribute);\n }", "public function getPromotionCode()\n {\n return $this->promotionCode;\n }", "public function getItembPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(7, $this->_result)) return (string) $this->_result[7];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getItembPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getItembPt', __LINE__, __FILE__);\n\t}" ]
[ "0.70613486", "0.6141458", "0.6135137", "0.582457", "0.5773666", "0.57014686", "0.5696823", "0.552517", "0.5504893", "0.5472273", "0.5452239", "0.5416829", "0.5397572", "0.5355227", "0.53499776", "0.53248036", "0.53041506", "0.5296495", "0.5285842", "0.5243668", "0.51948", "0.51712716", "0.51712716", "0.5163369", "0.5157205", "0.5157205", "0.5157205", "0.5157205", "0.5157205", "0.5155583", "0.5144641", "0.5136766", "0.51356125", "0.5122653", "0.51187634", "0.51187634", "0.51187634", "0.5118099", "0.51174074", "0.5108774", "0.5106996", "0.5097142", "0.5090564", "0.5054402", "0.50513977", "0.50507", "0.5047251", "0.50390613", "0.5036346", "0.503112", "0.50244516", "0.5020609", "0.50180024", "0.5000996", "0.5000017", "0.4980032", "0.4979443", "0.49777904", "0.497082", "0.49631003", "0.49500626", "0.49426126", "0.493832", "0.49324417", "0.4932328", "0.49193928", "0.49159688", "0.49158338", "0.491069", "0.49028593", "0.4901779", "0.49016115", "0.48984647", "0.48949763", "0.48819157", "0.48790738", "0.48746085", "0.48714867", "0.4865174", "0.4864878", "0.4857197", "0.4853953", "0.48526308", "0.4852027", "0.48514", "0.48485062", "0.48481664", "0.48477194", "0.48451912", "0.48446143", "0.4843513", "0.4843513", "0.4843513", "0.4843513", "0.4843513", "0.4843513", "0.4840511", "0.48404673", "0.48337126", "0.48318624" ]
0.7920244
0
Get the [prod_related_m3] column value.
public function getProdRelatedM3() { return $this->prod_related_m3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdRelatedM3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related_m3 !== $v) {\n $this->prod_related_m3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED_M3] = true;\n }\n\n return $this;\n }", "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "public function getM3()\n {\n return $this->m3;\n }", "public function getCategory3()\n {\n if (array_key_exists(\"category3\", $this->_propDict)) {\n return $this->_propDict[\"category3\"];\n } else {\n return null;\n }\n }", "public function getProdRelatedPa()\n {\n return $this->prod_related_pa;\n }", "public function getC3()\r\n {\r\n return $this->C3;\r\n }", "public function getThird()\n {\n return isset($this->third) ? $this->third : null;\n }", "public function getCmp3()\n {\n return $this->cmp3;\n }", "function getProductValue($ms3Oid, $featureName, $raw = false) {\n\t\t$this->dbgstart();\n\t\t$FeatureId = $this->calc->dbutils->getFeatureIdByName($featureName);\n\t\t$pid = $this->calc->getProdIdForMs3Oid($ms3Oid);\n\t\t$ret = $this->calc->dbutils->getProductValue($pid, $FeatureId, $raw);\n\t\t$this->dbgend();\n\t\treturn $ret;\n\t}", "public function getExpr3()\n {\n return $this->expr3;\n }", "public function getApplicantReferenceThree()\n {\n return $this->getProperty('applicant_reference_three');\n }", "public function getAttr3(){\r\n\t\treturn $this->attr3;\r\n\t}", "public function getVolPondasiM3()\n {\n return $this->vol_pondasi_m3;\n }", "public function getSp3disp()\n {\n return $this->sp3disp;\n }", "public function getCcmp3()\n {\n return $this->ccmp3;\n }", "public function getThird()\n\t{\t\treturn $this->third;\n\t}", "public function setM3($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->m3 !== $v) {\n $this->m3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_M3] = true;\n }\n\n return $this;\n }", "public function getPromotionAmount()\r\n\t{\r\n\t\treturn $this->root->getAttribute('mtpromo');\r\n\t}", "public function getOpcion3() {\n return $this->opcion3;\n }", "public function getReqOtherPhone3()\n\t{\n\t\treturn $this->req_other_phone3;\n\t}", "public function getPointProd3():?int\n {\n //Recuperation de la partie entière de la division du nombre\n //de produit3 par 2\n $paire = (int)($this->produit3 / 2);\n return $this->produit3 <= 0 ? 0 : $paire * 15;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getCodeRef3() {\n return $this->codeRef3;\n }", "public function get_related($limit = 3){\n\n\t\t// TODO: \tFigure out where to set limit\n\t\t// \t\t\tPerhaps plugin settings?\n\t\t// \t\t\tOr just stay as parameter?\n\t\t\n\t\t// We get random products that are in the same category as this product\n\t\treturn local_moodec_get_random_products($limit, $this->_categoryid, $this->_id);\n\t}", "public function _getLotNo3() {\n\t\treturn $this->_lotNo3;\n\t}", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function get_value() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"gtmetrix\";\n $return = $wpdb->get_results( \"SELECT * FROM $table_name ORDER BY id DESC LIMIT 1\" );\n return $return[0];\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getGcId3()\n {\n return $this->gc_id_3;\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getCodeArticle3() {\n return $this->codeArticle3;\n }", "public function getRelated(): string\n {\n return $this->related;\n }", "public function get_value(Entities\\Item_Metadata_Entity $item_metadata) {\n $unique = ! $item_metadata->is_multiple();\n \n $field_type = $item_metadata->get_field()->get_field_type_object();\n if ($field_type->core) {\n $item = $item_metadata->get_item();\n \n $get_method = 'get_' . $field_type->related_mapped_prop;\n return $item->$get_method();\n \n } else {\n return get_post_meta($item_metadata->item->get_id(), $item_metadata->field->get_id(), $unique);\n }\n \n }", "public function product()\n {\n return $this->m_product;\n }", "public function get_cat_three()\n {\n $select = $this->db->get('category_three');\n $cat_three = $select->result();\n return $cat_three;\n }", "public function getSp3()\n {\n return $this->sp3;\n }", "public function value()\r\n\t{\r\n\t\tif ($this->isFetched() && $this->isValid())\r\n\t\t{\r\n\t\t\treturn $this->normalizedValue;\r\n\t\t}\t\r\n\t\treturn null;\r\n\t}", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "public function getVolKudakudaM3()\n {\n return $this->vol_kudakuda_m3;\n }", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "public function getPromotioncode()\n {\n return $this->promotioncode;\n }", "public function getRevenueThirdConversion()\n {\n $sumAmount = Mage::getModel('abandonment/orderflag')->getResource()\n ->getSumAmountThirdReminderConvertedCarts($this->_getFilterStartingPeriod(), $this->_getFilterEndingPeriod());\n\n return $sumAmount;\n }", "public function setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getCodeRef3(): ?string {\n return $this->codeRef3;\n }", "public function getRecommendedProduct()\n {\n $this->db->connect();\n $sql = \"SELECT * FROM $this->table WHERE recommended = 'yes' LIMIT 4;\";\n $product = $this->db->executeFetchAll($sql);\n return $product;\n }", "public function getMpPerc()\n {\n return $this->get(self::_MP_PERC);\n }", "public function get_related_products() {\n if('product' != get_post_type()) {\n\n // Get an array of the resource types\n\n // Query the relationship field on all 'products' associated with the current post type\n $return = get_posts(array(\n 'post_type' => 'product',\n 'suppress_filters' => 0,\n 'meta_query' => array(\n array(\n 'key' => get_post_type(), // name of custom field\n 'value' => '\"' . get_the_ID() . '\"', // matches exactly \"123\", not just 123. This prevents a match for \"1234\"\n 'compare' => 'LIKE'\n )\n )\n ));\n } else {\n $return = get_field('related_products');\n }\n return $return;\n }", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "public function get_relatedDocNo() {\n return $this->relatedDocNo;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getThirdName()\n {\n return isset($this->thirdName) ? $this->thirdName : null;\n }", "public function getPromotion(){\n return $this->promotion;\n }", "protected function getLinkedProductID () {\n $productFilter = Search::getInstance($this->data['attrs']['source_id'])->getFilter('product');\n\n return $productFilter ? $productFilter['value'] : null;\n }", "public function toValue() {\r\n\t\treturn $this->PDOStatement->fetchColumn();\r\n\t}", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "public function getMultipleOrderQuantity()\n {\n return $this->multipleOrderQuantity;\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function getThirdVat()\n {\n return isset($this->thirdVat) ? $this->thirdVat : null;\n }", "public function getLine3()\n {\n return (string) $this->json()->line3;\n }", "public function getProducts_prid() {\n\t\treturn $this->products_prid;\n\t}", "public function getValue() {\n \n return $this->toScalar();\n }", "public function getJsCustomProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/js_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getProduct_category () {\n\t$preValue = $this->preGetValue(\"product_category\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_category\")->preGetData($this);\n\treturn $data;\n}", "public function getRfrOrderThird()\n {\n return isset($this->rfrOrderThird) ? $this->rfrOrderThird : null;\n }", "public function getVariationValue()\n {\n return $this->variationValue;\n }", "public function getMunicipalityIdAttribute()\n {\n return $this->belongsTo(HCCities::class, 'city_id', 'id')->getResults()->municipality_id;\n }", "public function getProductProjection()\n {\n if (is_null($this->productProjection)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_PRODUCT_PROJECTION);\n if (is_null($data)) {\n return null;\n }\n\n $this->productProjection = ProductProjectionModel::of($data);\n }\n\n return $this->productProjection;\n }", "private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }", "public function getEditorial3()\n\t{\n\n\t\treturn $this->editorial3;\n\t}", "private function getProductLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function getCategory4()\n {\n if (array_key_exists(\"category4\", $this->_propDict)) {\n return $this->_propDict[\"category4\"];\n } else {\n return null;\n }\n }", "public function getPromotionCode()\n {\n return $this->promotionCode;\n }", "public function getPosCur3()\n {\n return $this->pos_cur3;\n }", "public function magic3() { return $this->_m_magic3; }", "private function getProductEntityLinkField()\n {\n if (!$this->productEntityLinkField) {\n $this->productEntityLinkField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getLinkField();\n }\n return $this->productEntityLinkField;\n }", "public function get3PT() {\n\t\t\treturn \"<p>3PT Pct: \".$this->pt.\"</p>\";\n\t\t}", "protected static function iso3(): mixed\n\t{\n\t\treturn self::$query->iso3;\n\t}", "public function getProductEntityLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "public function getPromId()\n {\n return $this->prom_id;\n }", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "public function get_variation_by_common_id($common_id)\n {\n $this->db->where('common_id', $common_id);\n $query = $this->db->get('product_variations');\n return $query->result();\n }", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "public function getReqOtherComment3()\n\t{\n\t\treturn $this->req_other_comment3;\n\t}", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function executePromotion(){\n if($this->isGotPromotion()){\n return $this->promotion->getPromotionPrice(); \n }\n }", "public function discountOrChargeValue()\n {\n return $this->discountOrChargeValueBoleta();\n }", "function wv_commission_get_woo_orderitem_metavalue($order_itemid, $metakey) {\n global $wpdb;\n\n $sql_query = \"SELECT meta_value FROM `\" . $wpdb->prefix . \"woocommerce_order_itemmeta` WHERE `meta_key`='$metakey' AND `order_item_id`=$order_itemid\";\n $val = $wpdb->get_row($sql_query);\n\n return $val->meta_value;\n }", "public function getPromotionCode()\r\n\t{\r\n\t\treturn $this->root->getAttribute('codepromo');\r\n\t}", "private function rtPropID(string $proprietary){\n $this->checkNotConnected();\n $qr_all = $this->connection->query(\"SELECT cd_proprietary, COUNT(cd_proprietary) AS exists_prop FROM tb_proprietaries WHERE nm_proprietary = \\\"$proprietary\\\";\")->fetch_array();\n return $qr_all['exists_prop'] > 0 ? (int) $qr_all['cd_proprietary'] : null;\n }", "protected function getOurValue()\n {\n $ourModel = $this->getOurModel();\n\n if ($ourModel->loaded()) {\n return $this->our_field\n ? $ourModel->get($this->our_field)\n : $ourModel->getId();\n }\n\n // create expression based on existing conditions\n return $ourModel->action('field', [\n $this->getOurFieldName(),\n ]);\n }", "public function getValue()\n {\n return $this->value instanceof ProductDiscountValueDraftBuilder ? $this->value->build() : $this->value;\n }", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function getProduct()\n {\n return isset($this->product) ? $this->product : null;\n }", "public function get_product_id() {\n return $this->product_id;\n }" ]
[ "0.665403", "0.6173712", "0.599795", "0.59316546", "0.5800028", "0.5560859", "0.55192137", "0.53414327", "0.53336835", "0.5324943", "0.5291588", "0.52813375", "0.52590287", "0.5242515", "0.5226886", "0.5200016", "0.51214665", "0.5041952", "0.50236434", "0.50145686", "0.500629", "0.4975051", "0.49665567", "0.4960145", "0.49420044", "0.49122235", "0.49081075", "0.48838252", "0.48710635", "0.48563805", "0.48324123", "0.48302445", "0.48126566", "0.47864616", "0.47814152", "0.47753048", "0.4741114", "0.47380927", "0.4728036", "0.4719155", "0.47081688", "0.46946082", "0.46789673", "0.46777216", "0.46698472", "0.4669147", "0.46506917", "0.4647584", "0.4644231", "0.46391302", "0.4638124", "0.46251595", "0.4625115", "0.46226418", "0.4618921", "0.4615944", "0.46142647", "0.46135265", "0.46113724", "0.46061", "0.46011847", "0.45990017", "0.45805788", "0.45715714", "0.4568977", "0.4567386", "0.4565779", "0.45630088", "0.45596293", "0.45418194", "0.45378256", "0.45370084", "0.45308113", "0.4522036", "0.45215312", "0.4514508", "0.45052424", "0.45006043", "0.4493557", "0.44892853", "0.44879162", "0.4484189", "0.4482716", "0.44650465", "0.4461551", "0.44604167", "0.44596738", "0.44488785", "0.44446194", "0.44442028", "0.44400364", "0.4434636", "0.4434569", "0.44337553", "0.44323164", "0.44316483", "0.44312555", "0.4429195", "0.44237384", "0.4413077" ]
0.80634874
0
Get the [prod_related2] column value.
public function getProdRelated2() { return $this->prod_related2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public function setProdRelated2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related2 !== $v) {\n $this->prod_related2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED2] = true;\n }\n\n return $this;\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function getValue2(){\n return $this->_value2;\n }", "public function getP2() {\n return $this->p2;\n }", "public function getCategory2()\n {\n if (array_key_exists(\"category2\", $this->_propDict)) {\n return $this->_propDict[\"category2\"];\n } else {\n return null;\n }\n }", "public function getC2()\r\n {\r\n return $this->C2;\r\n }", "public function getAddress2()\n {\n return $this->getValue('nb_icontact_prospect_address_2');\n }", "public function getExpr2()\n {\n return $this->expr2;\n }", "public function getProdRelatedM3()\n {\n return $this->prod_related_m3;\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getProdRelatedPa()\n {\n return $this->prod_related_pa;\n }", "public function getAttr2(){\r\n\t\treturn $this->attr2;\r\n\t}", "public function getID2()\n\t{\n\t\treturn $this->id2;\n\t}", "public function get_relatedDocNo() {\n return $this->relatedDocNo;\n }", "public function getRef2() {\n return $this->_ref2;\n }", "public function getApplicantReferenceTwo()\n {\n return $this->getProperty('applicant_reference_two');\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getOpcion2() {\n return $this->opcion2;\n }", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "public function getRelation2()\n {\n return $this->getEmbeddedResource('relation2');\n }", "public function getId2()\n {\n return $this->id2;\n }", "public function getPointProd2():?int\n {\n //Verifier si au moins un produit 1 est vendu afin de dettminer \n //le nombre de point du produit 2\n\n return $this->produit1<=0 ? 0 : ($this->produit2<=0 ? 0 : $this->produit2 * 5);\n }", "public function setProdRelated($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related !== $v) {\n $this->prod_related = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED] = true;\n }\n\n return $this;\n }", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function getRelated(): string\n {\n return $this->related;\n }", "public function getType2()\n {\n return $this->type2;\n }", "protected function getLinkedProductID () {\n $productFilter = Search::getInstance($this->data['attrs']['source_id'])->getFilter('product');\n\n return $productFilter ? $productFilter['value'] : null;\n }", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "public function getCmp2()\n {\n return $this->cmp2;\n }", "function getBeneficiario2() {\r\n return $this->beneficiario2;\r\n }", "public function setProdAlt2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt2 !== $v) {\n $this->prod_alt2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true;\n }\n\n return $this;\n }", "public function getValue(){\n return $this->value2 ? $this->value2 : $this->value1;\n }", "public function _getLotNo2() {\n\t\treturn $this->_lotNo2;\n\t}", "public function getGcId2()\n {\n return $this->gc_id_2;\n }", "public function getBestBadge2()\n\t{\n\t\treturn $this->best_badge_2;\n\t}", "public function getProdDescription()\n {\n return $this->prod_description;\n }", "public function getShipaddress2()\n {\n return $this->shipaddress2;\n }", "public function getCodeRef2() {\n return $this->codeRef2;\n }", "public function getLine2()\n {\n return (string) $this->json()->line2;\n }", "public function getReqOtherPhone2()\n\t{\n\t\treturn $this->req_other_phone2;\n\t}", "public function getShipmentReference2()\n {\n return isset($this->shipmentReference2) ? $this->shipmentReference2 : null;\n }", "public function getNumUniq2(): ?string {\n return $this->numUniq2;\n }", "public function getAddress2()\n {\n return parent::getValue('address2');\n }", "public function getAddress2()\n {\n\n return $this->fv_address2;\n }", "public function getPriceProduct()\n {\n return $this->priceProduct;\n }", "public function getTown2Id()\n {\n return $this->town_2_id;\n }", "public function get_related_products() {\n if('product' != get_post_type()) {\n\n // Get an array of the resource types\n\n // Query the relationship field on all 'products' associated with the current post type\n $return = get_posts(array(\n 'post_type' => 'product',\n 'suppress_filters' => 0,\n 'meta_query' => array(\n array(\n 'key' => get_post_type(), // name of custom field\n 'value' => '\"' . get_the_ID() . '\"', // matches exactly \"123\", not just 123. This prevents a match for \"1234\"\n 'compare' => 'LIKE'\n )\n )\n ));\n } else {\n $return = get_field('related_products');\n }\n return $return;\n }", "public function getSp2()\n {\n return $this->sp2;\n }", "public function getProductId(): string\n {\n return $this->productId;\n }", "public function getPlate2()\n {\n return isset($this->plate2) ? $this->plate2 : null;\n }", "public function getSecondProfessionIconURL(){\r\n\t\treturn $this->buildProfessionIconURL($this->armoryAdapter->getWowArmoryUrl(),\r\n\t\t\t\t\t\t\t\t\t\t\tstrtolower($this->characterObject->getSecondProfession()));\r\n }", "public function GetIdProducto()\n\t{\n\t\treturn $this->idProd;\n\t}", "function getId_Producto(){\r\n\t\treturn $this->nId_Producto;\r\n\t}", "public function getEmpAdresse2() {\n return $this->empAdresse2;\n }", "public function getMsgRef2() : string\n {\n return $this->msgRef2;\n }", "public function getK2()\n {\n return $this->k2;\n }", "public function getFkSwCgm2()\n {\n return $this->fkSwCgm2;\n }", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "public function getNumber2():float{\n return $this->number2;\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function product()\n {\n return $this->m_product;\n }", "public function getTax2(): ?float\n {\n return $this->tax2;\n }", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function getSpCode2()\n {\n return $this->sp_code2;\n }", "public function getName2()\n\t{\n\t\treturn $this->name2;\n\t}", "public function getParam2()\n {\n return $this->get(self::_PARAM2);\n }", "public function getParam2()\n {\n return $this->get(self::_PARAM2);\n }", "public function getParam2()\n {\n return $this->get(self::_PARAM2);\n }", "public function getParam2()\n {\n return $this->get(self::_PARAM2);\n }", "public function getEditorial2()\n\t{\n\n\t\treturn $this->editorial2;\n\t}", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getCodeArticle2() {\n return $this->codeArticle2;\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getAddress2()\n {\n return $this->address2;\n }", "public function getAddress2()\n {\n return $this->address2;\n }", "public function getAddress2()\n {\n return $this->address2;\n }", "public function getProduct()\n {\n return isset($this->product) ? $this->product : null;\n }", "public function getForeignKey()\n {\n return 'order_product_field_value_id';\n }", "private function getProductLinkField()\n {\n return $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getSp2disp()\n {\n return $this->sp2disp;\n }", "public function getCodigoProducto()\n {\n return $this->codigoProducto;\n }", "public function getOperand2() {}", "public function getProductDesc()\n {\n return isset($this->productDesc) ? $this->productDesc : null;\n }", "public function getCdProduto()\n {\n return $this->Cd_produto;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getProductId(): ?string\n {\n return isset($this->ProductId) ? $this->ProductId : null;\n }", "public function getProductId(): ?string\n {\n return isset($this->ProductId) ? $this->ProductId : null;\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "function getRelatedProdsById($pId){\n\t\t$query = \"SELECT GROUP_CONCAT(DISTINCT relatedto_id ORDER BY relatedto_id ASC SEPARATOR ',') AS prodRelated, GROUP_CONCAT(DISTINCT relatedto_offerid ORDER BY relatedto_offerid ASC SEPARATOR ',') AS offerRelated FROM product_related WHERE `relatedfrom_id`=$pId\";\n\t\t//$data = mysql_query($query);\n\t\t//print_r($data);\n\t\t$result = $this->selectQueryForAssoc($query);\n\t\treturn $result;\t\n\t}", "public function getMtype2()\n {\n return $this->mtype2;\n }", "public function getDisplayText2(): ?string {\n return $this->displayText2;\n }", "public function getId_product()\n {\n return $this->id_product;\n }", "public function getPlate2CountryDesc()\n {\n return isset($this->plate2CountryDesc) ? $this->plate2CountryDesc : null;\n }", "public function getId_produto()\n {\n return $this->id_produto;\n }", "public function getCcmp2()\n {\n return $this->ccmp2;\n }", "public function toValue() {\r\n\t\treturn $this->PDOStatement->fetchColumn();\r\n\t}", "public function getProduct()\n {\n return $this->product;\n }" ]
[ "0.68929267", "0.6697329", "0.64396703", "0.6073547", "0.58474195", "0.5828501", "0.5799311", "0.5697055", "0.55656576", "0.5549174", "0.55155736", "0.5512123", "0.54855615", "0.5469979", "0.5427511", "0.5406815", "0.53962827", "0.53939426", "0.5386874", "0.53689206", "0.5364862", "0.53466713", "0.5342636", "0.53206414", "0.5311421", "0.5292369", "0.528087", "0.5242922", "0.5221631", "0.5209676", "0.5190934", "0.517462", "0.51717865", "0.51318234", "0.51072043", "0.5102008", "0.50988173", "0.5077028", "0.5058401", "0.5049506", "0.50423807", "0.5028429", "0.4993265", "0.49872762", "0.49746642", "0.49718982", "0.49689704", "0.49669167", "0.49608985", "0.49563676", "0.49235776", "0.49147573", "0.4912614", "0.49105924", "0.49077332", "0.49069467", "0.49013126", "0.4900931", "0.48997042", "0.48979947", "0.48802394", "0.48730898", "0.4856257", "0.48555472", "0.48549432", "0.48448044", "0.48370504", "0.48368162", "0.48368162", "0.48365983", "0.48365983", "0.48348", "0.48269933", "0.48124278", "0.48051447", "0.47887418", "0.47887418", "0.47887418", "0.47766876", "0.4767917", "0.4758546", "0.475729", "0.47511685", "0.47456026", "0.47383136", "0.47353375", "0.47347486", "0.47342545", "0.47302026", "0.47302026", "0.47209224", "0.47175157", "0.47174004", "0.4712388", "0.47107947", "0.47095427", "0.4708099", "0.4705771", "0.47021234", "0.47009432" ]
0.8154724
0
Get the [prod_saveas] column value.
public function getProdSaveas() { return $this->prod_saveas; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdSaveas($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_saveas !== $v) {\n $this->prod_saveas = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_SAVEAS] = true;\n }\n\n return $this;\n }", "public function getProdWriteup()\n {\n return $this->prod_writeup;\n }", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getSaveAsFlag()\n {\n return $this->getRequest()->getParam('_save_as_flag') ? '1' : '';\n }", "public function toValue(): string\n {\n return (string) $this->pdoStatement->fetchColumn();\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getSaveMode()\n {\n return $this->queryMaker->getSaveMode();\n }", "public function get_saved_value() {\n\t\treturn $this->saved_value;\n\t}", "public function getSaveToDatabase()\n {\n return $this->_saveToDatabase;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function toValue() {\r\n\t\treturn $this->PDOStatement->fetchColumn();\r\n\t}", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function sqlValue()\n {\n return ($this->arrConfig['operator'] == 'like' ? ('%' . $this->arrConfig['value'] . '%') : $this->arrConfig['value']);\n }", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "public function getShowInProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "protected function getKeyForSaveQuery(){\n\t\treturn $this->getKey();\n\t}", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getProductIdentifier()\n {\n $value = $this->_config->get('dataprocessing/products/identifier');\n\n if ($value === null) {\n $value = 'sku';\n }\n\n return $value;\n }", "public function getShippedValue()\n {\n return defined('static::SHIPPED_VALUE') ? static::SHIPPED_VALUE : 'shipped';\n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function getProduct_type () {\n\t$preValue = $this->preGetValue(\"product_type\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_type;\n\treturn $data;\n}", "public static function getStorageName()\n {\n return 'nb_icontact_prospect';\n }", "public function getProductionType() {\n\t\treturn $this->_oProdType;\n\t}", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }", "public function getProductId(): string\n {\n return $this->productId;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getStoredValue()\n {\n return $this->_fields['StoredValue']['FieldValue'];\n }", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getStatproKey()\n\t{\n\t\treturn $this->statpro_key;\n\t}", "public function getSavedJobProfileId(): string {\n\t\treturn ($this->savedJobProfileId);\n\t}", "public function getStatPro()\n\t{\n\t\treturn $this->statpro;\n\t}", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "public function getExportValue()\n {\n return $this->Value;\n }", "public function getShowInProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product');\n }", "public function getUniqueKey()\n\t{\n\t\t$product = $this->getCurrent();\n\t\t\n\t\tif (is_null($product)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$sku = $product->getSku();\n\t\tMage::log(\"Got SKU: $sku\");\n\t\t\n\t\treturn $sku;\n\t}", "public function getProductId(): string;", "public function getStoreValue()\n {\n $value = $this->_config->get('general_defaults/store');\n\n if ($value === null) {\n $value = '0';\n }\n\n $value = explode(',', $value);\n $value = array_map('trim', $value);\n $value = array_filter($value, function($value) {\n return $value || $value === '0';\n });\n\n return $value;\n }", "public function getValue() {\n \n return $this->toScalar();\n }", "public function getEnterprise()\n {\n return $this->getValue('nb_icontact_prospect_enterprise');\n }", "public function getProductId(): ?string\n {\n return isset($this->ProductId) ? $this->ProductId : null;\n }", "public function getProductId(): ?string\n {\n return isset($this->ProductId) ? $this->ProductId : null;\n }", "public function getJsCustomProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/js_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getPrimaryKey()\n {\n return $this->getProdId();\n }", "public function getProdEra()\n {\n return $this->prod_era;\n }", "public function getEntityName()\n {\n return CacheKeys::PRODUCT_VARCHAR;\n }", "public function getValue()\n {\n return $this->_db->prepareStringToOut($this->_value);\n }", "public function getStdShipToBrnchCd()\n {\n return $this->std_ship_to_brnch_cd;\n }", "public function getProdTitle()\n {\n return $this->prod_title;\n }", "public function getCodeStatutPro() {\n return $this->codeStatutPro;\n }", "public function getProductName(): ?string {\n $val = $this->getBackingStore()->get('productName');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'productName'\");\n }", "public function getProductId()\n {\n $productIdAttribute = $this->helper->getProductIdConfig();\n\n return $this->getAttribute($productIdAttribute);\n }", "public function save()\n {\n $lastInsertedId = $this->executeQuery(\"INSERT INTO eav_products \n (sku,name, price, type, custom_attributes) \n VALUES \n (?,?,?,?,?)\", array(\n $this->getSku(),\n $this->getName(),\n $this->getPrice(),\n $this->getType(),\n \"{\\\"size\\\":{$this->getSize()}}\"\n ));\n\n if ($lastInsertedId > 0) {\n $this->setId($lastInsertedId);\n return $lastInsertedId;\n }\n return null;\n }", "public function getSaldo()\n {\n return number_format(floatval($this->saldo),2);\n }", "public function getMode()\n {\n $value = $this->_config->get('dataprocessing/general/mode');\n\n if ($value === null) {\n $value = 'products';\n }\n\n return $value;\n }", "public function getId_produto()\n {\n return $this->id_produto;\n }", "public function getFormattedValue()\n {\n return $this->dbObject('Value');\n }", "public function lastsave() {\n return $this->returnCommand(['LASTSAVE']);\n }", "public function getProductStock()\n {\n /** @var \\Magento\\CatalogInventory\\Model\\Stock\\ItemArray $stockItem */\n $stockItem = $this->stockRegistry->getStockItem(\n $this->getCurrentProduct()->getId(),\n $this->getCurrentProduct()->getStore()->getWebsiteId()\n );\n if ($stockItem->getManageStock() == 0) {\n return 1;\n }\n\n $qty = round($stockItem->getQty());\n if ($qty < 1) {\n if ($stockItem->getBackorders() == 1) {\n return 1;\n }\n\n if ($stockItem->getIsInStock()) {\n return '';\n }\n }\n return $qty;\n }", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "protected function getSkuColumnName()\n {\n return $this->skuColumnName;\n }", "public function getSavedData()\n {\n return $this->getArchive()->getOrDefault('saved_data', null);\n }", "public function getSellerShipping() {\r\n return Mage::getResourceModel ( 'eav/entity_attribute' )->getIdByCode ( 'catalog_product', 'seller_shipping_option' );\r\n }", "public function saveProductos()\n {\n\n $resultado = false;\n // Insert into ala tabla productos\n $sql = \"INSERT INTO productos VALUES(NULL, '{$this->getCategoria_id()}', '{$this->getNombre()}', '{$this->getDescripcion()}', {$this->getPrecio()}, {$this->getStock()}, null, CURDATE() , '{$this->getImagen()}')\";\n $resultado = $this->conexion->query($sql);\n\n // Validar que el INSERT INTO fue exitoso y hacemos un return de un true\n if ($resultado == true) {\n $resultado = true;\n return $resultado;\n }\n\n return $resultado;\n }", "public function getIsSalable()\n {\n $productType = $this->getTypeInstance(true);\n if (method_exists($productType, 'getIsSalable')) {\n return $productType->getIsSalable($this);\n }\n if ($this->hasData('is_salable')) {\n return $this->getData('is_salable');\n }\n\n return $this->isSalable();\n }", "public function getStorageId(): string\n {\n return sprintf('$%s', $this->getData());\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getManageStock()\n {\n return (int) Mage::getStoreConfig(Mage_CatalogInventory_Model_Stock_Item::XML_PATH_MANAGE_STOCK);\n }", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "public function save() {\n\t return isset($this->product_id) ? $this->update() : $this->create();\n\t}", "public function getProductId()\n {\n $value = $this->get(self::product_id);\n return $value === null ? (integer)$value : $value;\n }", "public function getSellingStatus()\n {\n return $this->sellingStatus;\n }", "private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }", "public function get_license_key() {\n\n\t\t$license = get_option( $this->product_slug . '-license-key' );\n\n\t\tif ( ! $license ) {\n\t\t\t// User hasn't saved the license to settings yet. No use making the call.\n\t\t\treturn false;\n\t\t}\n\n\t\treturn trim( $license );\n\t}", "public function getStoreMode()\n {\n return $this->storeMode;\n }", "public function getSavedFileName()\n {\n return $this->savedFileName;\n }", "public function getActivite(): string\n {\n return (string) $this->activite;\n }", "public function getShopFullEdition()\n {\n $sEdition = $this->getShopEdition();\n $sFullEdition = \"Community Edition\";\n if ($sEdition == \"PE\") {\n $sFullEdition = \"Professional Edition\";\n }\n\n if ($sEdition == \"EE\") {\n $sFullEdition = \"Enterprise Edition\";\n }\n\n return $sFullEdition;\n }", "public function getProductDefaultValue() {\n //initialize dummy value.. no content header.pure html\n $sql = null;\n $productId = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n SELECT `productId`\n FROM `product`\n WHERE `isActive` = 1\n AND `companyId` = '\" . $this->getCompanyId() . \"'\n AND \t `isDefault` =\t 1\n LIMIT 1\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n SELECT TOP 1 [productId],\n FROM [product]\n WHERE [isActive] = 1\n AND [companyId] = '\" . $this->getCompanyId() . \"'\n AND \t [isDefault] = 1\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n SELECT PRODUCTID AS \\\"productId\\\",\n FROM PRODUCT\n WHERE ISACTIVE = 1\n AND COMPANYID = '\" . $this->getCompanyId() . \"'\n AND \t ISDEFAULT\t =\t 1\n AND \t\t ROWNUM\t =\t 1\";\n } else {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $this->t['databaseNotFoundMessageLabel']));\n exit();\n }\n }\n }\n try {\n $result = $this->q->fast($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n if ($result) {\n $row = $this->q->fetchArray($result);\n $productId = $row['productId'];\n }\n return $productId;\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getValue(): string\n {\n return gmp_strval($this->value);\n }", "public function getSKU()\n {\n return $this->getValue('nb_catalog_item_lang_sku');\n }", "public function getDataReleaseId(): string\n {\n return $this->dataReleaseId;\n }", "public function getDocumentProductTaxCod()\n {\n return (string) $this->document_product_tax_cod;\n }", "public function get_scoring_type()\n {\n return $this->scoring_type;\n }", "public function getSaveAlpha()\n {\n return $this->PNGIsSaveAlpha;\n }", "public function getSavePath(){\n\t\treturn $this->savePath;\n\t}", "protected function getPrimaryKeyColumnName()\n {\n return ColumnKeys::SKU;\n }", "function get_value_db()\n\t{\n\t\treturn $this->value;\n\t}", "public function saveRating(string $product, int $rating):string\n {\n $db = new Db();\n $db = $db->getConnection();\n\n $db->query(\"UPDATE rating SET `countOfAllVotes` = `countOfAllVotes`+1 WHERE `product`= '$product'\");\n\n $db->query(\"UPDATE rating\n SET `currentAverageRating` = (`currentAverageRating` * (`countOfAllVotes`-1) + $rating ) / `countOfAllVotes` \n WHERE `product`='$product'\");\n\n\n $avg= $db->query(\"SELECT `currentAverageRating` FROM `rating` WHERE `product`='$product'\");\n $avgRating = $avg->fetch_assoc();\n $db->close();\n return $avgRating['currentAverageRating'];\n }", "public function save()\r\n\t{\r\n\t\t$fields = array();\r\n\t\tforeach ($this->fields as $column => $field) {\r\n\t\t\tif (strpos($column, '%') === false)\r\n\t\t\t\t$column = $column . $this->getModificator($column);\r\n\r\n\t\t\tif ($field instanceof DbTable)\r\n\t\t\t\t$fields[$column] = $field->save();\r\n\t\t\telse\r\n\t\t\t\t$fields[$column] = $field;\r\n\t\t}\r\n\r\n\t\tif (empty($this->primaryKeyValue)) {\r\n\t\t\t$this->primaryKeyValue = Db::query('INSERT INTO %c %v', $this->table, $fields);\r\n\t\t} else {\r\n\t\t\t$mod = self::$structure->getModificator($this->table, $this->primaryKey);\r\n\t\t\tDb::query(\"UPDATE %c SET %a WHERE %c = $mod\", $this->table, $fields, $this->primaryKey, $this->primaryKeyValue);\r\n\t\t}\r\n\r\n\t\t$this->fields = array();\r\n\t\treturn $this->primaryKeyValue;\r\n\t}" ]
[ "0.60238826", "0.5549283", "0.54794115", "0.5462092", "0.5382857", "0.5367298", "0.5354463", "0.52927715", "0.52359426", "0.5222625", "0.5208846", "0.5136961", "0.5106385", "0.5102098", "0.508306", "0.5048688", "0.5014713", "0.4998552", "0.49984923", "0.4993149", "0.4976919", "0.49708033", "0.49507907", "0.49504334", "0.49488202", "0.49464226", "0.49450895", "0.49360612", "0.49278566", "0.4927559", "0.4897261", "0.4888393", "0.48746032", "0.48648074", "0.4857881", "0.4819037", "0.47969377", "0.47937715", "0.47893137", "0.47719207", "0.4763928", "0.4733754", "0.47150156", "0.47145367", "0.47136763", "0.47111326", "0.4707083", "0.47005296", "0.46970728", "0.46970326", "0.46970326", "0.46870047", "0.4676101", "0.4676088", "0.4675737", "0.46754834", "0.46671665", "0.46612003", "0.46593705", "0.46574998", "0.46404067", "0.46205598", "0.4617104", "0.46086833", "0.46081594", "0.4602736", "0.4602201", "0.4602154", "0.45995766", "0.45940584", "0.4592823", "0.45872414", "0.45744565", "0.45704553", "0.45669842", "0.45649263", "0.4564429", "0.45616603", "0.45600757", "0.45484722", "0.45466593", "0.45466325", "0.45457062", "0.45454565", "0.45426062", "0.45418817", "0.45326132", "0.45283425", "0.45237863", "0.45236275", "0.452321", "0.45153037", "0.44979972", "0.44979113", "0.44947082", "0.44927695", "0.44898364", "0.4485657", "0.44813737", "0.4478736" ]
0.6912204
0
Get the [prod_aircraftreg] column value.
public function getProdAircraftreg() { return $this->prod_aircraftreg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getProdEra()\n {\n return $this->prod_era;\n }", "public function getAirportCode()\n {\n return $this->airportCode;\n }", "function get_army_value()\n\t{\n\t\t$result = pg_query(\"SELECT sum(point_cost) as point_total FROM warhammer.user_army\");\n\t\t$result_a = pg_fetch_array($result,0,PGSQL_ASSOC);\n\t\treturn $result_a[\"point_total\"];\n\t}", "public function getKieGuruMinumAir()\n {\n return $this->kie_guru_minum_air;\n }", "public function setProdAircraftreg($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_aircraftreg !== $v) {\n $this->prod_aircraftreg = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_AIRCRAFTREG] = true;\n }\n\n return $this;\n }", "public function getEquipment()\n {\n $value = $this->get(self::EQUIPMENT);\n return $value === null ? (integer)$value : $value;\n }", "public function get_value() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"gtmetrix\";\n $return = $wpdb->get_results( \"SELECT * FROM $table_name ORDER BY id DESC LIMIT 1\" );\n return $return[0];\n }", "public function getCellular()\n {\n return $this->getValue('nb_icontact_prospect_cellular');\n }", "public function getEquipmentCode()\n {\n return isset($this->EquipmentCode) ? $this->EquipmentCode : null;\n }", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getAttributeCode(){\n\t\t$code = 'brand_name';\n\t\treturn $code;\n\t}", "public function getSumberAirMinumId()\n {\n return $this->sumber_air_minum_id;\n }", "public function getCellValue($row);", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "function getProductCode()\n {\n return $this->productCode;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getProductAttributeInt($productId, $attributeCode){\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_int where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getImpactCode() {\n $row = $this->getInnerRow();\n return (int)$row['impact_code'];\n }", "public function getKieKantinMinumAir()\n {\n return $this->kie_kantin_minum_air;\n }", "public function get_value() {\n\t\t$row = $this->get_row();\n\t\tif ($row) {\n\t\t\treturn current($row);\n\t\t}\n\t}", "public function getKieSelasarMinumAir()\n {\n return $this->kie_selasar_minum_air;\n }", "public function getASabunAirMengalir()\n {\n return $this->a_sabun_air_mengalir;\n }", "public function getCodeRegimeBaseObl() {\n return $this->codeRegimeBaseObl;\n }", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function getCarCode(){\r\n\t\t\t$this->car_code = getValue(\"SELECT car_code FROM tbl_car WHERE car_id=\".$this->car_id);\r\n\t\t\treturn $this->car_code;\r\n\t}", "public function getProductValueById()\n\t{\n\t\t$product_id = $this->input->post('product_id');\n\t\tif ($product_id) {\n\t\t\t$product_data = $this->model_products->getProductData($product_id);\n\t\t\techo json_encode($product_data);\n\t\t}\n\t}", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getSumberAirId()\n {\n return $this->sumber_air_id;\n }", "protected function value()\n {\n return $this->row($this->row);\n }", "function getProdId($product){\r\n require '../../model/dbconnect.php';\r\n $prod = $db->quote($product);\r\n $rows_prod = $db->query(\"SELECT id FROM product WHERE name = $prod\");\r\n if ($rows_prod) {\r\n foreach($rows_prod as $row)\r\n return $row['id'];\r\n }\r\n }", "public function getRegstateAttribute()\n\t{\n\t\tswitch (strtoupper($this->attributes['regstate'])) \n\t\t{\n\t\t\tcase \"VIC\":\n\t\t\t\techo \"Victoria\";\n\t\t\tbreak;\n\t\t\tcase \"NSW\":\n\t\t\t\techo \"New South Wales\";\n\t\t\tbreak;\n\t\t}\n\t}", "private function getRegistrationKey()\r\n\t\t{\t\r\n\t\t\t$request = \"SELECT * FROM `licensekey` WHERE registerkey='\".$this->logInfos['registrationKey'].\"'\";\r\n\t\t\t$request = mysql_query($request);\r\n\t\t\t$result = mysql_fetch_assoc($request);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn $result;\r\n\t\t}", "public function getEditCellValue($row);", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function getAirlineVendorID()\n {\n return $this->airlineVendorID;\n }", "public function getAPrix()\n {\n return $this->prix;\n }", "public function getProduct()\r\n {\r\n return $this->_params['product'];\r\n }", "public function product()\n {\n return $this->m_product;\n }", "public function getProduct()\n {\n return $this->coreRegistry->registry('product');\n }", "public function getLegArrivalAirportCode()\n {\n return $this->LegArrivalAirportCode;\n }", "public function getProduct() {\n return $this->_registry->registry ( 'current_product' );\n }", "public function getAirItineraryPricingInfo()\n {\n return $this->airItineraryPricingInfo;\n }", "public function getKieKelasMinumAir()\n {\n return $this->kie_kelas_minum_air;\n }", "public function getCellValue()\n {\n return $this->get('CellValue');\n }", "public function getCellValue()\n {\n return $this->get('CellValue');\n }", "public function findValueProd($id){\n return Product::where('id',$id)->first()->value;\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function getProduct_type () {\n\t$preValue = $this->preGetValue(\"product_type\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_type;\n\treturn $data;\n}", "public function getProductCode()\n {\n if (array_key_exists(\"productCode\", $this->_propDict)) {\n return $this->_propDict[\"productCode\"];\n } else {\n return null;\n }\n }", "public function getKieToiletMinumAir()\n {\n return $this->kie_toilet_minum_air;\n }", "public function getValueAttribute()\n\t{\n\t\treturn $this->attributes['valor_total'];\n\t}", "public function prod($prod);", "public function getProduct(){\r\n return Mage::registry('current_product');\r\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "protected function getProduct() {\n return $this->registry->registry('product');\n }", "public function toValue() {\r\n\t\treturn $this->PDOStatement->fetchColumn();\r\n\t}", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function getProduct()\n {\n return Mage::registry('current_product');\n }", "public function getBarcode()\n\t{\n\t\treturn $this->barcode;\n\t}", "public function getEnergyAttribute()\n {\n $energy = 0;\n\n if (! empty($this->attributes['energy'])) {\n $energy = $this->attributes['energy'];\n }\n\n $produced = round(\n $this->production_rate / 3600 * Carbon::now()->diffInSeconds($this->last_energy_changed)\n );\n\n return $energy + $produced;\n }", "public function getCarFuelType(){\r\n\t\t$this->car_fuel_type = getValue(\"SELECT fuel_type FROM tbl_car WHERE car_id=\".$this->car_id);\r\n\t\treturn $this->car_fuel_type;\r\n\t}", "public function getAirItinerary()\n {\n return $this->airItinerary;\n }", "public function getKecukupanAir()\n {\n return $this->kecukupan_air;\n }", "public function get_equipment_type();", "public function getAttributeCode()\r\n {\r\n return $this->getAttribute()->getAttributeCode();\r\n }", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }", "function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}", "private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }", "public function get_productRelease(): int\n {\n // $res is a int;\n if ($this->_cacheExpiration == 0) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::PRODUCTRELEASE_INVALID;\n }\n }\n $res = $this->_productRelease;\n return $res;\n }", "public function getId_product()\n {\n return $this->id_product;\n }", "public function getEcrRegistrationNumber()\n {\n return array_key_exists('ecr_registration_number', $this->data) ? $this->data['ecr_registration_number'] : null;\n }", "protected function LiveTableValue()\n {\n return $this->LiveRawTableValue();\n }", "protected static function getVal($char)\n {\n if (strstr('0123456789', $char)) {\n return (int) $char;\n }\n\n if (strstr('ABCDEFGHIJKLMNOPQRSTUVWXYZ', $char)) {\n return (ord($char) - 55);\n }\n\n return '';\n }", "protected function LiveRawTableValue()\n {\n // if (! isset(self::$temp_raw_table_value[$this->OrderID])) {\n $currentRate = $this->LiveCurrentRate();\n $currentCountry = $this->LiveCountry();\n $itemsTax = $this->workoutOrderItemsTax($currentRate, $currentCountry);\n $modifiersTax = $this->workoutModifiersTax($currentRate, $currentCountry);\n return $itemsTax + $modifiersTax;\n }", "public function getProductAttributeVarchar($productId, $attributeCode) {\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_varchar where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getValue() {\n \n return $this->toScalar();\n }", "public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }", "public function get_product()\n {\n return $this->_product;\n }", "public function getProductid() {\n\t\treturn $this->productid;\n\t}", "public function getProduct()\r\n {\r\n return $this->product;\r\n }", "function tep_get_cflag_by_product_id($product_id) {\n // ccdd\n $product_query = tep_db_query(\"select products_cflag from \" . TABLE_PRODUCTS . \" where products_id = '\" . (int)$product_id . \"'\");\n $product = tep_db_fetch_array($product_query);\n\n return $product['products_cflag'];\n}", "public function getProductCode(): ?string\n {\n return $this->productCode;\n }", "public function getProductFnacId()\n {\n return $this->product_fnac_id;\n }", "public function getProductData()\n {\n return $this->_coreRegistry->registry('current_product');\n }", "public function get_cellOperator(): string\n {\n // $res is a string;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::CELLOPERATOR_INVALID;\n }\n }\n $res = $this->_cellOperator;\n return $res;\n }", "function getProduction($production_code) {\n $data = $this->db\n ->where('LCASE(production_code)',strtolower($production_code))\n ->limit(1)\n ->get('production')\n ->row_array();\n \n return $data;\n }", "public function getLocalProductCode(): ?string\n {\n return $this->localProductCode;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getAbreviatura($tabla){\t\t\n\t\t$abre = DB::table('WEB.tablaid')->where('tabla','=',$tabla)->first();\n\t\treturn $abre[1];\n\t}", "public function getProdName()\n {\n return $this->prod_name;\n }" ]
[ "0.55193996", "0.54365224", "0.5284347", "0.5085287", "0.5083368", "0.5048481", "0.5035778", "0.5034762", "0.49865147", "0.49640322", "0.4954516", "0.49132788", "0.489967", "0.48987478", "0.4898491", "0.48643905", "0.48569196", "0.48234445", "0.48186368", "0.4804307", "0.48038647", "0.47959062", "0.4792585", "0.47822866", "0.4766752", "0.47569197", "0.47541866", "0.47476658", "0.47449785", "0.46988544", "0.46912298", "0.46786153", "0.4678481", "0.46754235", "0.46594515", "0.46559268", "0.46517318", "0.4643385", "0.4627821", "0.462485", "0.46220726", "0.4613735", "0.45931414", "0.45901054", "0.45792967", "0.45791104", "0.45708716", "0.45708716", "0.4568845", "0.45237407", "0.45206687", "0.45182306", "0.4517315", "0.450778", "0.4507389", "0.45057392", "0.4498521", "0.44940183", "0.448821", "0.44861358", "0.44761375", "0.44754115", "0.4456204", "0.44517425", "0.44506797", "0.44505715", "0.4450467", "0.4449554", "0.44485298", "0.44479996", "0.44445378", "0.44439167", "0.44351992", "0.44342044", "0.4433264", "0.44226184", "0.4418828", "0.4418328", "0.44124925", "0.44089714", "0.4407286", "0.44003367", "0.43997186", "0.43962336", "0.43928543", "0.43874204", "0.4386726", "0.4386096", "0.43852592", "0.43826687", "0.43718007", "0.43686113", "0.4367307", "0.4367307", "0.4367307", "0.4367307", "0.4367307", "0.4367307", "0.4366581", "0.43656948" ]
0.72287625
0
Get the [mb] column value.
public function getMb() { return $this->mb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRmb()\n {\n return $this->get(self::_RMB);\n }", "public function getRmb()\n {\n return $this->get(self::_RMB);\n }", "public function getRmb()\n {\n return $this->get(self::RMB);\n }", "public function getMaxchar() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(3, $this->_result)) return (string) $this->_result[3];\n\t\t\telse parent::throwGetColException('Not set CampaignDefinitionsModel::getMaxchar', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From CampaignDefinitionsModel::getMaxchar', __LINE__, __FILE__);\n\t}", "public function getWastedInMb()\n {\n return $this->wastedInMb;\n }", "public function setMb($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->mb !== $v) {\n $this->mb = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_MB] = true;\n }\n\n return $this;\n }", "public function getTaxaLMB() {\n return $this->getChaveValor('TAXA_SERVICO_LMB');\n }", "public static function mb_to_gb($mb){\n $mb = Strings::lower($mb);\n $mb = str_replace([' ', 'mb', 'mib'],'', $mb);\n\n return (float)$mb * (1/1024);\n }", "function mb_to_bytes($mb) {\n\treturn $mb*1048576;\n}", "public function modifierMbyte($num)\n {\n if (strtolower($this->getIsp()) == 'tnc') {\n $kNum = round(ceil($num/10000));\n $mNum = $kNum/100;\n }else{\n $mNum = round($num/pow(1024,2),2);\n }\n return $mNum.\"MB\";\n }", "public function memno()\n {\n return $this->memno;\n }", "public function fetchColumn() {\n if ($this->result === true) {\n return false;\n }\n\n // Are we running PHP >=8.1?\n if (PHP_VERSION_ID >= 80100) {\n $value = $this->result->fetch_column();\n return ($value === null || $value === false) ? $value : (string) $value;\n }\n\n // Fallback to traditional approach\n $row = $this->result->fetch_row();\n return $row ? $row[0] : false;\n }", "public function getColumn(): string\n {\n return $this->_column;\n }", "public function getBytesField()\n {\n $value = $this->get(self::BYTES_FIELD);\n return $value === null ? (string)$value : $value;\n }", "public function getMembre()\n {\n return $this->membre;\n }", "public function getMDB2DataValue()\n\t{\n\t\tif($this->mdb2DataValue != '')\n\t\t{\n\t\t\treturn $this->mdb2DataValue;\n\t\t}\n\t}", "public function getCellValue()\n {\n return $this->get('CellValue');\n }", "public function getCellValue()\n {\n return $this->get('CellValue');\n }", "private function get_sizeMib()\n\t{\n\t\treturn $this->m_sizeMib;\n\t}", "public function sqlValue()\n {\n return ($this->arrConfig['operator'] == 'like' ? ('%' . $this->arrConfig['value'] . '%') : $this->arrConfig['value']);\n }", "public function toValue() {\r\n\t\treturn $this->PDOStatement->fetchColumn();\r\n\t}", "public function getColumn(): string\n {\n return $this->column;\n }", "public function maximalVal( string $column = '' )\n {\n return $this->show()->max( $column );\n }", "function return_bytes($val)\n {\n $val = trim($val);\n $last = strtoupper($val[strlen($val)-1]);\n switch($last)\n {\n case 'G': $val *= 1024;\n case 'M': $val *= 1024;\n case 'K': $val *= 1024;\n }\n return $val;\n }", "function GetColVal($col_name) {\n\t\treturn $this->$col_name;\n\t}", "public function modelColumn();", "public function getBU()\n {\n $value = $this->get(self::BU);\n return $value === null ? (integer)$value : $value;\n }", "public function getPSBMAU()\n\t{\n\t\t$query = $this->db->query\n\t\t(\"\n\t\t\tSELECT COUNT(lembaga) as psbmau\n\t\t\tFROM psb_calonsiswa\n\t\t\tWHERE lembaga='MA Unggulan Amanatul Ummah' AND statusfinalisasi = 'y'\n\t\t\t\t\tAND tahunmasuk='$this->tahunmasuk'\n\n\t\t\");\n\t\tif ($query->num_rows()>0){\n\t\t\t\t\tforeach ($query->result() as $row)\n\t\t\t\t\t\t$data['psbmau'] = $row->psbmau;\n\t\t\t\t}\n\t\t\t\treturn $data['psbmau'];\n\t}", "public function getMysql()\n {\n return $this->readOneof(100);\n }", "public static function configSizeToMB($value){\n\t\t$value=trim($value);\n\t\t$lastchar = substr($value, -1);\n\t\t\n\t\tswitch($lastchar){\n\t\t\tcase 'M':\n\t\t\t\treturn substr($value,0,-1);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'G':\n\t\t\t\treturn substr($value,0,-1)*1024;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'K':\n\t\t\t\treturn substr($value,0,-1)/1024;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\t//assume bytes\n\t\t\t\treturn $value/1024/1024;\n\t\t\t\tbreak;\n\t\t}\n\t}", "function get_value_db()\n\t{\n\t\treturn $this->value;\n\t}", "public function toValue(): string\n {\n return (string) $this->pdoStatement->fetchColumn();\n }", "public function cm() {\n return $this->_cm;\n }", "public function value($column)\r\n {\r\n $rs = (array) $this->first();\r\n return $rs[$column];\r\n }", "public function column() : int\n {\n return $this->column;\n }", "public function get_value() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"gtmetrix\";\n $return = $wpdb->get_results( \"SELECT * FROM $table_name ORDER BY id DESC LIMIT 1\" );\n return $return[0];\n }", "public function getColumn() { return $this->column; }", "public function getColumn()\n {\n return $this->get('Column');\n }", "public function m() : int\n {\n return $this->m;\n }", "public function getIdMembre()\n {\n return $this->idMembre;\n }", "protected static function column_name(): mixed\n\t{\n\t\treturn self::$query->column_name;\n\t}", "public function getMinchar() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(2, $this->_result)) return (string) $this->_result[2];\n\t\t\telse parent::throwGetColException('Not set CampaignDefinitionsModel::getMinchar', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From CampaignDefinitionsModel::getMinchar', __LINE__, __FILE__);\n\t}", "public function getMcode()\n {\n return $this->mcode;\n }", "public function getColumn()\n {\n return $this->column;\n }", "public function getColumn()\n {\n return $this->column;\n }", "public function getValue()\n {\n return $this->_db->prepareStringToOut($this->_value);\n }", "public function getCol()\n {\n return $this->col;\n }", "public function getMtype()\n {\n return $this->mtype;\n }", "public function bandaToMB($banda) {\n\n $banda = round(floatval($banda / 1024 / 1024), 2);\n\n $resultado = \"{$banda} MB\";\n return $resultado;\n }", "public function getNomMembre()\n {\n return $this->nom_membre;\n }", "public function getData()\n\t{\n\t\t$column = self::COL_DATA;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getData()\n\t{\n\t\t$column = self::COL_DATA;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getValor_moeda()\n {\n return $this->valor_moeda;\n }", "public function getColumn(): string;", "public function getItembPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(7, $this->_result)) return (string) $this->_result[7];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getItembPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getItembPt', __LINE__, __FILE__);\n\t}", "public function getValue()\n {\n if ($this->value == null) {\n return '0';\n }\n\n return $this->value;\n }", "public function getValue()\n {\n if ($this->value == null) {\n return '0';\n }\n\n return $this->value;\n }", "protected function get_limit()\n {\n $bytes = ini_get('memory_limit');\n\n return $this->formatBytes($bytes);\n }", "public function getColumna() {\n return $this->columna;\n }", "public function getUsedInMb()\n {\n return $this->usedInMb;\n }", "public function getMediaFieldValue()\n {\n return $this->isBinary() ? base64_encode($this->{$this->getMediaField()}) : $this->{$this->getMediaField()};\n }", "public function value()\n\t{\n\t\treturn (string) $this->value;\n\t}", "public function getCapacidad()\r\n {\r\n return \"4.7GB\";\r\n }", "public function getDisplayedValue() {\n // Strip tags - for html content\n $value = strip_tags(parent::getDisplayedValue());\n // Text limit is used here because it must be limited after strip tags\n return $this->getMaxSize() ? Str::limit($value, $this->getMaxSize()) : $value;\n }", "public function getBelKe05()\n {\n return $this->bel_ke_05;\n }", "public function getSqlCol()\n {\n return $this->sqlCol;\n }", "public function setRmb($value)\n {\n return $this->set(self::_RMB, $value);\n }", "public function setRmb($value)\n {\n return $this->set(self::_RMB, $value);\n }", "function getSystemMoneyValue()\n\t\t{\n\t\t\t$system_value = $this->_BLL_obj->manage_content->getLastValue('system_money_info', '*', 1, 1, 'id');\n\t\t\treturn $system_value[0]['system_balance'];\n\t\t}", "public function getValue()\n\t{\n\t\tif( isset( $this->values[$this->prefix . 'value'] ) ) {\n\t\t\treturn (string) $this->values[$this->prefix . 'value'];\n\t\t}\n\n\t\treturn '';\n\t}", "public function get_value() {\n\t\t$row = $this->get_row();\n\t\tif ($row) {\n\t\t\treturn current($row);\n\t\t}\n\t}", "function return_bytes($val) {\n\t$val = trim($val);\n\t$last = strtolower($val[strlen($val)-1]);\n\tswitch($last) {\n\t\t// The 'G' modifier is available since PHP 5.1.0\n\t\tcase 'g':\n\t\t\t$val *= 1024;\n\t\tcase 'm':\n\t\t\t$val *= 1024;\n\t\tcase 'k':\n\t\t\t$val *= 1024;\n\t}\n\n\treturn $val;\n}", "public function setRmb($value)\n {\n return $this->set(self::RMB, $value);\n }", "protected function get_column() {\n\n\t\t$column = $this->foreign_column ?: $this->foreign_table->get_primary_key();\n\t\t$columns = $this->foreign_table->get_columns();\n\n\t\treturn $columns[ $column ];\n\t}", "public function toColumn() {\r\n\t\treturn $this->PDOStatement->fetchAll(PDO::FETCH_COLUMN,0);\r\n\t}", "function getMaxValue( $colValueName, $tblName) { // selected column name, table name\n\t\n\tglobal $dbf;\n $sql_get = \"SELECT MAX($colValueName) as $colValueName FROM $tblName\";\n\t\n\t$getValue = $dbf;\n\t$getValue->query($sql_get);\n\t$getValue->next_record();\n\n\t$rowValue = $getValue->rowdata();\n\t$theValue = $rowValue[$colValueName];\n\n\treturn $theValue;\n\n}", "function CharMax()\n\t{\n\t\treturn 1000000000; // should be 1 Gb?\n\t}", "public function getBelKe01()\n {\n return $this->bel_ke_01;\n }", "public function getBunit()\n {\n return $this->bunit;\n }", "public function getBreadCrump() {\n\t\tzc_log( \"WILL PRINT '\". $this->current_breadcrump. \"'\" );\n\t\treturn $this->current_breadcrump;\n\t}", "public function getValue(): string\n {\n return gmp_strval($this->value);\n }", "public function getModelValue()\n {\n if (! is_callable($callback = $this->getCallback())) {\n throw new Exception('Invalid custom column callback');\n }\n\n return call_user_func($callback, $this->getModel());\n }", "protected function getColumn()\n {\n return DB::select(\n 'SELECT\n\t\t\t\t\t\t\t c.COLUMN_NAME\n\t\t\t\t\t\t\t,c.COLUMN_DEFAULT\n\t\t\t\t\t\t\t,c.IS_NULLABLE\n\t\t\t\t\t\t\t,c.DATA_TYPE\n\t\t\t\t\t\t\t,c.CHARACTER_MAXIMUM_LENGTH\n\t\t\t\t\t\t\t,pk.CONSTRAINT_TYPE AS EXTRA\n\t\t\t\t\t\t\tFROM INFORMATION_SCHEMA.COLUMNS AS c\n\t\t\t\t\t\t\tLEFT JOIN (\n\t\t\t\t\t\t\t SELECT ku.TABLE_CATALOG,ku.TABLE_SCHEMA,ku.TABLE_NAME,ku.COLUMN_NAME, tc.CONSTRAINT_TYPE\n\t\t\t\t\t\t\t FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS AS tc\n\t\t\t\t\t\t\t INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE AS ku ON tc.CONSTRAINT_NAME = ku.CONSTRAINT_NAME\n\t\t\t\t\t\t\t) AS pk ON c.TABLE_CATALOG = pk.TABLE_CATALOG\n\t\t\t\t\t\t\t AND c.TABLE_SCHEMA = pk.TABLE_SCHEMA\n\t\t\t\t\t\t\t AND c.TABLE_NAME = pk.TABLE_NAME\n\t\t\t\t\t\t\t AND c.COLUMN_NAME = pk.COLUMN_NAME\n\t\t\t\t\t\t\tWHERE c.TABLE_NAME = ? AND c.TABLE_CATALOG = ? ',\n [$this->tableName, $this->databaseName]\n );\n }", "public function getDataColumn()\n {\n return $this->dataColumn;\n }", "private function value()\n {\n $this->white();\n switch ($this->currentByte) {\n case '{':\n return $this->obj();\n case '[':\n return $this->arr();\n case '\"':\n case \"'\":\n return $this->string();\n case '-':\n case '+':\n case '.':\n return $this->number();\n default:\n return \\is_numeric($this->currentByte) ? $this->number() : $this->word();\n }\n }", "public function value($column)\n {\n $result = (array) $this->first([$column => 1]);\n\n return count($result) > 0 ? $result[$column] : null;\n }", "public function value(): string\n {\n return $this->get('value');\n }", "public function getNbreHMaxiMardi(): ?float {\n return $this->nbreHMaxiMardi;\n }", "public function getValue()\n {\n return isset($this->value) ? $this->value : '';\n }", "public function getValue()\n {\n return isset($this->value) ? $this->value : '';\n }", "public function getUM()\n {\n $UnitOfMeasure = UnitOfMeasure::find($this->um_id); \n \n return $UnitOfMeasure->description;\n }", "public function getValue(): string\n {\n return $this->fusionValue('value') ?? '';\n }", "function getNota_max()\n {\n if (!isset($this->inota_max) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_max;\n }", "function getNota_max()\n {\n if (!isset($this->inota_max) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_max;\n }", "public function get_value()\n\t{\n\t\treturn $this->value;\n\t}", "public function value()\n {\n return $this->getValue();\n }", "public function getValue( $key ) {\n\t\treturn $this->columnSchema[ $key ];\n\t}", "public function getStoredValue()\n {\n return $this->_fields['StoredValue']['FieldValue'];\n }", "public function getFormattedValue()\n {\n return $this->dbObject('Value');\n }", "public function get_bodymass() {\n return \"Gewicht = \" . $this->bodymass . \"kg\";\n }" ]
[ "0.6330123", "0.6330123", "0.6317458", "0.60013413", "0.58947235", "0.5823811", "0.5755394", "0.57236534", "0.5718326", "0.56497175", "0.5642225", "0.5624337", "0.56006444", "0.55937636", "0.55825603", "0.55716205", "0.5570821", "0.5570821", "0.5561704", "0.55581874", "0.5557684", "0.5509865", "0.5501959", "0.54944587", "0.54713756", "0.5462551", "0.54440033", "0.5443108", "0.5427773", "0.54201233", "0.5407913", "0.5399367", "0.5397337", "0.53819877", "0.538095", "0.53760844", "0.5372376", "0.5363862", "0.53590894", "0.5354375", "0.53460586", "0.53370166", "0.5333467", "0.53233933", "0.53233933", "0.53151166", "0.5295872", "0.5294943", "0.5279629", "0.5259355", "0.52588814", "0.52588814", "0.5242152", "0.5230755", "0.5226496", "0.52021104", "0.52021104", "0.5184472", "0.5182585", "0.51643986", "0.5158781", "0.51550466", "0.5153681", "0.5150097", "0.5135851", "0.51256573", "0.51216584", "0.51216584", "0.5119264", "0.51152325", "0.51134926", "0.5090237", "0.5090065", "0.50863975", "0.5085329", "0.5083373", "0.508083", "0.5073624", "0.5069785", "0.50668025", "0.50649434", "0.5064628", "0.505751", "0.5055815", "0.5053547", "0.50460654", "0.5019251", "0.5009762", "0.5005655", "0.5005655", "0.50015366", "0.5000429", "0.49943987", "0.49943987", "0.49882716", "0.49864706", "0.49816096", "0.49772716", "0.49767676", "0.49761337" ]
0.6870478
0
Get the [pa] column value.
public function getPa() { return $this->pa; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_pa(){ return $this->_pa;}", "public function getItemaPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(4, $this->_result)) return (string) $this->_result[4];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getItemaPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getItemaPt', __LINE__, __FILE__);\n\t}", "public function getItembPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(7, $this->_result)) return (string) $this->_result[7];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getItembPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getItembPt', __LINE__, __FILE__);\n\t}", "public function value($column)\r\n {\r\n $rs = (array) $this->first();\r\n return $rs[$column];\r\n }", "public function toValue() {\r\n\t\treturn $this->PDOStatement->fetchColumn();\r\n\t}", "public function getColumna() {\n return $this->columna;\n }", "function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}", "public function getProdRelatedPa()\n {\n return $this->prod_related_pa;\n }", "function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }", "public function sqlValue()\n {\n return ($this->arrConfig['operator'] == 'like' ? ('%' . $this->arrConfig['value'] . '%') : $this->arrConfig['value']);\n }", "public function get_value() {\n\t\t$row = $this->get_row();\n\t\tif ($row) {\n\t\t\treturn current($row);\n\t\t}\n\t}", "public function value($column)\n {\n $result = (array) $this->first([$column => 1]);\n\n return count($result) > 0 ? $result[$column] : null;\n }", "public function toValue(): string\n {\n return (string) $this->pdoStatement->fetchColumn();\n }", "public function getDataFromColumn($col)\n {\n return $this->attributes[app()->getLocale() == 'ar' ? 'ar_'.$col : $col] ?? $this->attributes[$col];\n }", "public function getFkPpaPpa()\n {\n return $this->fkPpaPpa;\n }", "public function getPaidValue()\n {\n return defined('static::PAID_VALUE') ? static::PAID_VALUE : 'paid';\n }", "protected function value()\n {\n return $this->row($this->row);\n }", "public function getIdPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(0, $this->_result)) return (string) $this->_result[0];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getIdPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getIdPt', __LINE__, __FILE__);\n\t}", "function sequence_value() {\n\t\treturn $this->data[$this->sequence_field];\n\t}", "public function getItemPl() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(10, $this->_result)) return (string) $this->_result[10];\n\t\t\telse parent::throwGetColException('Not set ProjectsListingsModel::getItemPl', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From ProjectsListingsModel::getItemPl', __LINE__, __FILE__);\n\t}", "public function getPventa()\n {\n return $this->pventa;\n }", "public function protein()\n\t{\n\t\treturn $this->macronutrients()['protein'];\n\t}", "public function getPerpagePl() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(5, $this->_result)) return (int) $this->_result[5];\n\t\t\telse parent::throwGetColException('Not set ProjectsListingsModel::getPerpagePl', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From ProjectsListingsModel::getPerpagePl', __LINE__, __FILE__);\n\t}", "function get_army_value()\n\t{\n\t\t$result = pg_query(\"SELECT sum(point_cost) as point_total FROM warhammer.user_army\");\n\t\t$result_a = pg_fetch_array($result,0,PGSQL_ASSOC);\n\t\treturn $result_a[\"point_total\"];\n\t}", "public function getNamePt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(1, $this->_result)) return (string) $this->_result[1];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getNamePt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getNamePt', __LINE__, __FILE__);\n\t}", "public function getData()\n\t{\n\t\t$column = self::COL_DATA;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getData()\n\t{\n\t\t$column = self::COL_DATA;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function value() {\n if ($this->_m_value !== null)\n return $this->_m_value;\n $this->_m_value = $this->lookupTable()[($this->tag() - 213)];\n return $this->_m_value;\n }", "public function getValue()\n {\n return $this->_db->prepareStringToOut($this->_value);\n }", "function Get($col)\n {\n return $this->row ? $this->row[$col] : NULL;\n }", "public function getEndbPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(8, $this->_result)) return (string) $this->_result[8];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getEndbPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getEndbPt', __LINE__, __FILE__);\n\t}", "public function getBeginaPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(3, $this->_result)) return (string) $this->_result[3];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getBeginaPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getBeginaPt', __LINE__, __FILE__);\n\t}", "public function getValorParcela()\n {\n return $this->valorParcela;\n }", "public function getnPaper()\n {\n $query = $this->db->get('paper');\n\n return $query->result();\n }", "public function get_value() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"gtmetrix\";\n $return = $wpdb->get_results( \"SELECT * FROM $table_name ORDER BY id DESC LIMIT 1\" );\n return $return[0];\n }", "public function getPdfValue() {}", "public function getPdfValue() {}", "public function getPdfValue() {}", "function get_value_db()\n\t{\n\t\treturn $this->value;\n\t}", "public function getIdentifierPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(2, $this->_result)) return (string) $this->_result[2];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getIdentifierPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getIdentifierPt', __LINE__, __FILE__);\n\t}", "public function getPlaca() {\n return $this->oPlaca;\n }", "function GetColVal($col_name) {\n\t\treturn $this->$col_name;\n\t}", "public function getCellValue()\n {\n return $this->get('CellValue');\n }", "public function getCellValue()\n {\n return $this->get('CellValue');\n }", "public function toColumn() {\r\n\t\treturn $this->PDOStatement->fetchAll(PDO::FETCH_COLUMN,0);\r\n\t}", "public function getValue() {\n\t\t$db = Loader::db();\n\t\t$value = $db->GetOne('select value from atDefault where avID = ?', array($this->getAttributeValueID()));\n\t\t\n\t\t$jsonHelper = Loader::helper('json');\n\t\treturn $jsonHelper->decode($value);\n\t}", "public function getCellValue($row);", "public function getPais()\n {\n return $this->pais;\n }", "public function getPlaca(){ return $this->placa;}", "public function set_pa(Int $_pa){\n $this->_pa = $_pa;\n\n return $this;\n }", "public function getValue ()\n {\n if ($this->isNullValue())\n {\n return null;\n }\n\n if (!isset($this->column_value))\n {\n $this->column_value = new PulseUser($this->jsonResponse[\"value\"][\"id\"]);\n }\n\n return $this->column_value;\n }", "public function getViaTableAttributesValue();", "public function getSingleRowValue($table, $column, $postID): string {\n global $wpdb;\n $table = $wpdb->prefix . $table;\n $data = $wpdb->get_var(\"SELECT {$column} FROM {$table} WHERE post_id = {$postID};\");\n if ($data) {\n return $data;\n }\n return '';\n }", "public function getPSBMAU()\n\t{\n\t\t$query = $this->db->query\n\t\t(\"\n\t\t\tSELECT COUNT(lembaga) as psbmau\n\t\t\tFROM psb_calonsiswa\n\t\t\tWHERE lembaga='MA Unggulan Amanatul Ummah' AND statusfinalisasi = 'y'\n\t\t\t\t\tAND tahunmasuk='$this->tahunmasuk'\n\n\t\t\");\n\t\tif ($query->num_rows()>0){\n\t\t\t\t\tforeach ($query->result() as $row)\n\t\t\t\t\t\t$data['psbmau'] = $row->psbmau;\n\t\t\t\t}\n\t\t\t\treturn $data['psbmau'];\n\t}", "public function getValue($value, $column)\n {\n $val = '';\n if (isset($value[$column['name']])) {\n $val = $value[$column['name']];\n }\n return $val;\n }", "public function value()\n {\n return $this->getValue();\n }", "public function getAccess()\n\t{\n\t\t$column = self::COL_ACCESS;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getColumn() { return $this->column; }", "public function getBeginbPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(6, $this->_result)) return (string) $this->_result[6];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getBeginbPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getBeginbPt', __LINE__, __FILE__);\n\t}", "public function getValue() {\n \n return $this->toScalar();\n }", "function Get($col)\n {\n return isset($this->row) ? $this->row[$col] : null;\n }", "protected function get_column() {\n\n\t\t$column = $this->foreign_column ?: $this->foreign_table->get_primary_key();\n\t\t$columns = $this->foreign_table->get_columns();\n\n\t\treturn $columns[ $column ];\n\t}", "public function getValue()\n {\n return $this->segment->value;\n }", "protected function _getPrimaryKeyValue(){\n $primaryKey = $this->_getPrimaryKey();\n return $this->{$primaryKey};\n }", "public function getAPELLIDOPATERNOC()\r\n {\r\n return $this->APELLIDOPATERNOC;\r\n }", "public function getParcela()\n {\n return $this->parcela;\n }", "public function getAPrix()\n {\n return $this->prix;\n }", "function getPG()\n {\n $query = $this->db->query('SELECT `poin_gejala` FROM `tmp_hasil`\n `tb_gejala` as where `kd_gejala` = `kd_gejala`.`poin_gejala`= `0` ');\n return $query->result();\n }", "protected function armaColeccionMapeoTprop() {\n $dao = new PGDAO();\n $result = $this->leeDBArray($dao->execSql($this->COLECCIONMAPEOTPROP));\n return $result;\n }", "public function getPessoa(){\n return $this->pessoa;\n }", "public function getPessoa(){\n return $this->pessoa;\n }", "public function getPessoa(){\n return $this->pessoa;\n }", "public function getPostgresql()\n {\n return $this->readOneof(101);\n }", "public function getColumn(): string\n {\n return $this->_column;\n }", "public function getFormattedValue()\n {\n return $this->dbObject('Value');\n }", "public function getPkValue(){\n $pk = static::getPk();\n return (int) $this->$pk;\n }", "function getassyPoNum() {\n return $this->assyPoNum;\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getColumn(): string\n {\n return $this->column;\n }", "protected function getValue( $column ) {\n\t\tif( $this->isDirty() ) { $this->executeQuery(); }\n\n\t\tif( count( $this->_recordset ) == 0 )\n\t\t\tthrow new Exception( \"Attempting to access property \\\"{$column}\\\" in empty recordset.\" );\n\n\t\tif( ! array_key_exists( $this->_currentRow, $this->_recordset ) )\n\t\t\tthrow new Exception( \"Attempting to access property \\\"{$column}\\\" at unkown recordset offset \\\"{$this->_currentRow}\\\".\" );\n\n\t\t//If it's an actual boolean field, return the cooresponding php boolean value\n\t\tif( $this->getTable()->getColumn( $column )->getDataType() == DATA_TYPE_BOOL ) {\n\t\t\tif( $this->_recordset[ $this->_currentRow ][ $column ] == Kwerry::true() ) {\n\t\t\t\treturn true;\n\t\t\t} else if( $this->_recordset[ $this->_currentRow ][ $column ] == Kwerry::false() ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn( $this->_recordset[ $this->_currentRow ][ $column ] );\n\t}", "public function value($column)\n {\n return $this->callHook(__FUNCTION__, $this->packArgs(compact('column')));\n }", "public function getValue(): mixed\n {\n return $this->field?->getValue();\n }", "public function getValue()\n {\n return 1;\n }", "public function getPcIdPl() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(1, $this->_result)) return (int) $this->_result[1];\n\t\t\telse parent::throwGetColException('Not set ProjectsListingsModel::getPcIdPl', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From ProjectsListingsModel::getPcIdPl', __LINE__, __FILE__);\n\t}", "public function getValue()\n\t{\n\t\treturn $this->data['value'];\n\t}", "public function get() {\n\t\treturn $this->rows[$this->rowIndex];\n\t}", "public function getValue() {\n\t\treturn $this -> value;\n\t}", "public function getAPELLIDOPATERNO()\r\n {\r\n return $this->APELLIDO_PATERNO;\r\n }", "private function Value()\n\t{\n\t\t$peek = $this->lexer->glimpse();\n\n\t\tif ( DocLexer::T_EQUALS === $peek['type'] )\n\t\t\treturn $this->FieldAssignment();\n\n\t\treturn $this->PlainValue();\n\t}", "public function getValue(){\n return $this->getData();\n }", "public function column() : int\n {\n return $this->column;\n }", "public function GetPt($field,$id)\r\n {\r\n $query = mysql_query(\"SELECT * FROM petugas WHERE nik = '$id' \");\r\n $row = mysql_fetch_array($query);\r\n if($field)\r\n return $row[$field];\r\n }", "public function getValues()\n {\n\n\t\t$record = ProductAttributeValues::whereIn('avid',[1,6])->get();\n\t\t$rec = $record->pluck('pro_att_value');\n\t\treturn $rec;\n }", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getPrecio()\n {\n return $this->precio;\n }" ]
[ "0.65248847", "0.6429114", "0.62256396", "0.6214711", "0.59470123", "0.5908936", "0.5878738", "0.5849751", "0.58424395", "0.57630295", "0.5742067", "0.5729768", "0.5717165", "0.56972927", "0.5682865", "0.5642016", "0.55278367", "0.551758", "0.5470435", "0.5462668", "0.54625446", "0.54420507", "0.54321", "0.5411246", "0.5391", "0.5383039", "0.5383039", "0.5370022", "0.5365214", "0.53410023", "0.533949", "0.5338577", "0.5324534", "0.5320805", "0.53044236", "0.5301384", "0.5301384", "0.52995366", "0.5297429", "0.52973723", "0.5279524", "0.5279085", "0.52703905", "0.52703905", "0.52529806", "0.5229069", "0.5216534", "0.5205592", "0.52003247", "0.5200074", "0.5199305", "0.5194534", "0.5194168", "0.5190474", "0.5187762", "0.5183941", "0.5183682", "0.51827717", "0.5168232", "0.5165181", "0.5160007", "0.5158071", "0.5156938", "0.5156017", "0.5150647", "0.5150101", "0.5146182", "0.5138965", "0.51346743", "0.51254356", "0.51254356", "0.51254356", "0.5117655", "0.51060957", "0.51016074", "0.5096422", "0.5088307", "0.50880224", "0.50798714", "0.50776565", "0.5077328", "0.507468", "0.5073226", "0.5068445", "0.50544775", "0.5051985", "0.5047075", "0.5044707", "0.5039289", "0.5032332", "0.5023605", "0.50226986", "0.50192285", "0.5017297", "0.50147504", "0.50147504", "0.50147504", "0.50147504", "0.50147504" ]
0.6731205
1
Get the [m3] column value.
public function getM3() { return $this->m3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttr3(){\r\n\t\treturn $this->attr3;\r\n\t}", "public function getThird()\n {\n return isset($this->third) ? $this->third : null;\n }", "public function getC3()\r\n {\r\n return $this->C3;\r\n }", "public function getVolPondasiM3()\n {\n return $this->vol_pondasi_m3;\n }", "public function getThird()\n\t{\t\treturn $this->third;\n\t}", "public function getExpr3()\n {\n return $this->expr3;\n }", "public function getVolKudakudaM3()\n {\n return $this->vol_kudakuda_m3;\n }", "public function get_value() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"gtmetrix\";\n $return = $wpdb->get_results( \"SELECT * FROM $table_name ORDER BY id DESC LIMIT 1\" );\n return $return[0];\n }", "public function value($column)\r\n {\r\n $rs = (array) $this->first();\r\n return $rs[$column];\r\n }", "public function getLine3()\n {\n return (string) $this->json()->line3;\n }", "public function getThirdVat()\n {\n return isset($this->thirdVat) ? $this->thirdVat : null;\n }", "public function getCcmp3()\n {\n return $this->ccmp3;\n }", "public function getCmp3()\n {\n return $this->cmp3;\n }", "public function getBmdate3()\n {\n return $this->bmdate3;\n }", "public function getCbmdate3()\n {\n return $this->cbmdate3;\n }", "public function getProdRelatedM3()\n {\n return $this->prod_related_m3;\n }", "public function value($column)\n {\n $result = (array) $this->first([$column => 1]);\n\n return count($result) > 0 ? $result[$column] : null;\n }", "public function getCategory3()\n {\n if (array_key_exists(\"category3\", $this->_propDict)) {\n return $this->_propDict[\"category3\"];\n } else {\n return null;\n }\n }", "public function toValue() {\r\n\t\treturn $this->PDOStatement->fetchColumn();\r\n\t}", "public function getCodeRef3() {\n return $this->codeRef3;\n }", "protected static function iso3(): mixed\n\t{\n\t\treturn self::$query->iso3;\n\t}", "public function getData()\n\t{\n\t\t$column = self::COL_DATA;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getData()\n\t{\n\t\t$column = self::COL_DATA;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getPosCur3()\n {\n return $this->pos_cur3;\n }", "public function magic3() { return $this->_m_magic3; }", "public function getCellValue()\n {\n return $this->get('CellValue');\n }", "public function getCellValue()\n {\n return $this->get('CellValue');\n }", "public function get_value() {\n\t\t$row = $this->get_row();\n\t\tif ($row) {\n\t\t\treturn current($row);\n\t\t}\n\t}", "public function getColumn(): string\n {\n return $this->_column;\n }", "public function get_game_three_content () {\n\t\treturn get_field('field_5b4770a12c38c', $this->get_id());\n\t}", "public function getThirdName()\n {\n return isset($this->thirdName) ? $this->thirdName : null;\n }", "public function getColumn() { return $this->column; }", "public function getCodeArticle3() {\n return $this->codeArticle3;\n }", "public function getColumn(): string\n {\n return $this->column;\n }", "protected function value()\n {\n return $this->row($this->row);\n }", "public function getColumn()\n {\n return $this->get('Column');\n }", "public function getColumn(): string;", "public function get_cat_three()\n {\n $select = $this->db->get('category_three');\n $cat_three = $select->result();\n return $cat_three;\n }", "public function setM3($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->m3 !== $v) {\n $this->m3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_M3] = true;\n }\n\n return $this;\n }", "public function getColumn()\n {\n return $this->column;\n }", "public function getColumn()\n {\n return $this->column;\n }", "public function getSp3()\n {\n return $this->sp3;\n }", "public function getMontantAnnuel3(): ?float {\n return $this->montantAnnuel3;\n }", "function get_value_db()\n\t{\n\t\treturn $this->value;\n\t}", "public function getValue($value, $column)\n {\n $val = '';\n if (isset($value[$column['name']])) {\n $val = $value[$column['name']];\n }\n return $val;\n }", "public function value() {\n if ($this->_m_value !== null)\n return $this->_m_value;\n $this->_m_value = $this->lookupTable()[($this->tag() - 213)];\n return $this->_m_value;\n }", "public function getDataColumn()\n {\n return $this->dataColumn;\n }", "private function get($row, $column) {\n return $this->invalid($row, $column) ? self::VALUE_NOT_SET : $this->matrix[$row][$column];\n }", "public function column() : int\n {\n return $this->column;\n }", "public function getModelValue()\n {\n if (! is_callable($callback = $this->getCallback())) {\n throw new Exception('Invalid custom column callback');\n }\n\n return call_user_func($callback, $this->getModel());\n }", "public function getColumna() {\n return $this->columna;\n }", "public function getValue()\n {\n if ($this->value == null) {\n return '0';\n }\n\n return $this->value;\n }", "public function getValue()\n {\n if ($this->value == null) {\n return '0';\n }\n\n return $this->value;\n }", "public function getCol()\n {\n return $this->col;\n }", "public function getValue() {\n \n return $this->toScalar();\n }", "public function getLastCol() : int\n {\n\n // Convert A1:D3 to D3.\n list(,$endRef) = explode(':', $this->getTableNode()->getAttribute('ref'));\n\n // Convert D3 to 4.\n $endCol = preg_replace('/([0-9])/', '', $endRef);\n\n return XlsxTools::convRefToNumber($endCol);\n }", "function getRecordCol($index) {\n return $this->records[$index]->getCol();\n }", "protected function get_column() {\n\n\t\t$column = $this->foreign_column ?: $this->foreign_table->get_primary_key();\n\t\t$columns = $this->foreign_table->get_columns();\n\n\t\treturn $columns[ $column ];\n\t}", "public function getCodeRef3(): ?string {\n return $this->codeRef3;\n }", "function Get($col)\n {\n return $this->row ? $this->row[$col] : NULL;\n }", "public function getOpcion3() {\n return $this->opcion3;\n }", "function GetColVal($col_name) {\n\t\treturn $this->$col_name;\n\t}", "public function value()\r\n\t{\r\n\t\tif ($this->isFetched() && $this->isValid())\r\n\t\t{\r\n\t\t\treturn $this->normalizedValue;\r\n\t\t}\t\r\n\t\treturn null;\r\n\t}", "public function getValue()\n {\n return $this->_db->prepareStringToOut($this->_value);\n }", "public function getValue() {\n\t\treturn $this->data[\"value\"];\n\t}", "public function fetchColumn() {\n if ($this->result === true) {\n return false;\n }\n\n // Are we running PHP >=8.1?\n if (PHP_VERSION_ID >= 80100) {\n $value = $this->result->fetch_column();\n return ($value === null || $value === false) ? $value : (string) $value;\n }\n\n // Fallback to traditional approach\n $row = $this->result->fetch_row();\n return $row ? $row[0] : false;\n }", "function getCol($sql){\n\t\t$res_array = $this->query($sql);\n\t\tif (array_key_exists(0, $res_array) AND array_key_exists(0, $res_array[0])){\n\t\t\treturn $res_array[0][0];\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function toValue(): string\n {\n return (string) $this->pdoStatement->fetchColumn();\n }", "public function getCellValue($row);", "function get_col( $query = null , $x = 0 ) {\n\t\tif ( $query )\n\t\t\t$this->dbcr_query( $query );\n\n\t\t$new_array = array();\n\t\t// Extract the column values\n\t\tfor ( $i = 0, $j = count( $this->dbcr_wpdb->last_result ); $i < $j; $i++ ) {\n\t\t\t$new_array[$i] = $this->get_var( null, $x, $i );\n\t\t}\n\t\treturn $new_array;\n\t}", "public function getValueByColumnName($column){\n foreach (self::$excelLabelList as $attribute=>$labels) {\n\n if (in_array($column,$labels,false)){\n return $this->$attribute;\n }\n }\n\n return null;\n }", "public function getVolSloopKolomBalokM3()\n {\n return $this->vol_sloop_kolom_balok_m3;\n }", "public function getValue()\n\t{\n\t\treturn $this->data['value'];\n\t}", "public function get(array $data, $column)\n {\n if (!$this->has($data, $column)) {\n return null;\n }\n if (strpos($column, '.')) {\n list($model, $column) = explode('.', $column);\n if (isset($data[$model][$column])) {\n return $data[$model][$column];\n }\n return $data[\"{$model}.{$column}\"];\n }\n if (isset($data[$this->model->alias][$column])) {\n return $data[$this->model->alias][$column];\n }\n if (isset($data[\"{$this->model->alias}.{$column}\"])) {\n return $data[\"{$this->model->alias}.{$column}\"];\n }\n return $data[$column];\n }", "public function getMDB2DataValue()\n\t{\n\t\tif($this->mdb2DataValue != '')\n\t\t{\n\t\t\treturn $this->mdb2DataValue;\n\t\t}\n\t}", "public function getGcId3()\n {\n return $this->gc_id_3;\n }", "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "function Get($col)\n {\n return isset($this->row) ? $this->row[$col] : null;\n }", "function getProductValue($ms3Oid, $featureName, $raw = false) {\n\t\t$this->dbgstart();\n\t\t$FeatureId = $this->calc->dbutils->getFeatureIdByName($featureName);\n\t\t$pid = $this->calc->getProdIdForMs3Oid($ms3Oid);\n\t\t$ret = $this->calc->dbutils->getProductValue($pid, $FeatureId, $raw);\n\t\t$this->dbgend();\n\t\treturn $ret;\n\t}", "public function getValue()\n {\n return $this->get(self::_VALUE);\n }", "public function getValue()\n {\n return $this->get(self::_VALUE);\n }", "public function getData ($column) {\n\t\t$game_setting = GameSetting::where('name', $column)->firstOrFail();\n\n\t\treturn $game_setting->data;\n }", "public function getValue()\n\t{\n\t\tif( isset( $this->values[$this->prefix . 'value'] ) ) {\n\t\t\treturn (string) $this->values[$this->prefix . 'value'];\n\t\t}\n\n\t\treturn '';\n\t}", "public function getValue()\n {\n return $this->get(self::VALUE);\n }", "public function getValue()\n {\n return $this->get(self::VALUE);\n }", "public function getValue(){\n return $this->getData();\n }", "function get_col($query=null,$x=0) {\n\n\t\t\t// If there is a query then perform it if not then use cached results..\n\t\t\tif ( $query ) {\n\t\t\t\t$this->query($query);\n\t\t\t}\n\n\t\t\t// Extract the column values\n\t\t\tfor ( $i=0; $i < count($this->last_result); $i++ ) {\n\t\t\t\t$new_array[$i] = $this->get_var(null,$x,$i);\n\t\t\t}\n\n\t\t\treturn $new_array;\n\t\t}", "public function value()\n {\n return $this->getValue();\n }", "public function getValue() {\n\t\treturn $this -> value;\n\t}", "public function getValue()\n {\n\t\treturn $this->value;\n\t}", "public function getValue()\n {\n\treturn $this->value;\n }", "public function sqlValue()\n {\n return ($this->arrConfig['operator'] == 'like' ? ('%' . $this->arrConfig['value'] . '%') : $this->arrConfig['value']);\n }", "public function getValue()\n {\n return $this->getOriginData('value');\n }", "function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}", "public function getValue( $key ) {\n\t\treturn $this->columnSchema[ $key ];\n\t}", "public function get_game_three_image () {\n\t\treturn get_field('field_5b4770892c38a', $this->get_id());\n\t}", "public function result_cell($column)\n {\n if (is_bool($this->result))\n {\n return NULL;\n }\n\n $line = $this->result->fetch_assoc();\n\n $this->free_result();\n\n return isset($line[$column]) ? $line[$column] : NULL;\n }", "public function getValue()\r\n\t{\r\n\t\treturn $this->value;\r\n\t}", "public function getValue(): mixed\n {\n return $this->field?->getValue();\n }", "public function getValue(){\n return $this->value2 ? $this->value2 : $this->value1;\n }" ]
[ "0.6373233", "0.63342357", "0.63031006", "0.6284794", "0.62509793", "0.6193938", "0.60760117", "0.6063072", "0.5980403", "0.59717166", "0.59104234", "0.5855225", "0.5824797", "0.57830477", "0.57789826", "0.5734393", "0.5727807", "0.57263476", "0.57253385", "0.57196", "0.56810313", "0.56522924", "0.56522924", "0.5627962", "0.56123936", "0.55891013", "0.55891013", "0.5559315", "0.55583507", "0.5556832", "0.55501837", "0.5549008", "0.5538076", "0.5531962", "0.5528328", "0.55133843", "0.54935974", "0.5490455", "0.54730445", "0.5454393", "0.5454393", "0.5432497", "0.5407754", "0.5399338", "0.5372348", "0.5360802", "0.5351747", "0.53341454", "0.5331491", "0.53289825", "0.53287643", "0.53163326", "0.53163326", "0.53038013", "0.53006345", "0.5299658", "0.5295556", "0.529533", "0.5292262", "0.52856934", "0.5257875", "0.525702", "0.5252813", "0.5233992", "0.52318704", "0.52224475", "0.5215987", "0.5213094", "0.52099645", "0.52072936", "0.5205948", "0.5198175", "0.5197157", "0.51857156", "0.5183958", "0.5178418", "0.5171312", "0.5163461", "0.51538914", "0.5150215", "0.5150215", "0.5144151", "0.51400673", "0.5133927", "0.5133927", "0.5126781", "0.51216173", "0.5109609", "0.5097297", "0.5089554", "0.50841606", "0.5080579", "0.50785184", "0.50647986", "0.5064112", "0.50634724", "0.5057554", "0.5056996", "0.50531346", "0.5051656" ]
0.7438391
0
Set the value of [prod_id] column.
public function setProdId($v) { if ($v !== null) { $v = (int) $v; } if ($this->prod_id !== $v) { $this->prod_id = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ID] = true; } if ($this->aTblProdPhotos !== null && $this->aTblProdPhotos->getProdId() !== $v) { $this->aTblProdPhotos = null; } if ($this->aTblProdPrices !== null && $this->aTblProdPrices->getProdId() !== $v) { $this->aTblProdPrices = null; } if ($this->aTblProdSmaller !== null && $this->aTblProdSmaller->getProdId() !== $v) { $this->aTblProdSmaller = null; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function setProductId($id);", "public function getProdId()\n {\n return $this->prod_id;\n }", "function product_id($product_id=null)\n {\n if (isset($product_id)) $this->product_id = $product_id;\n return $this->product_id;\n }", "public function setProductIdAttribute($input)\n {\n $this->attributes['product_id'] = $input ? $input : null;\n }", "public function setProdId($prodid = '')\n {\n $this->prodid = $prodid;\n\n return $this;\n }", "public function setProductid( $productid ) {\n\t\t$this->productid = $productid;\n\t}", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "function setDevId($value)\n {\n $this->_props['DevId'] = $value;\n }", "public function setPrimaryKey($key)\n {\n $this->setProdId($key);\n }", "function set_product_sequence($voucher_id, $prod_id, $seq)\n\t{\n\t\t$this->db->where(array('voucher_id'=>$voucher_id, 'product_id'=>$prod_id));\n\t\t$this->db->update('vouchers_products', array('sequence'=>$seq));\n\t}", "public function setProductId($var)\n {\n GPBUtil::checkString($var, True);\n $this->product_id = $var;\n }", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "public function setId_product($id_product)\n {\n $this->id_product = $id_product;\n\n return $this;\n }", "function setIdkitprodutos($idkitprodutos) {\n $this->idkitprodutos = $idkitprodutos;\n }", "public function setProductId($image_id, $product_id){\r\n $this->ID = (int)$image_id;\r\n $this->product_id = $product_id;\r\n \r\n return $this->update();\r\n }", "public function setIdProduct($idProduct)\n {\n $this->idProduct = $idProduct;\n\n return $this;\n }", "public function setProductId($newProductId) {\n\t\t$newProductId = filter_var($newProductId, FILTER_VALIDATE_INT);\n\t\t//if filter_var rejects the variable, throw an exception\n\t\tif($newProductId === false) {\n\t\t\tthrow(new InvalidArgumentException(\"Product Id is not a proper int\"));\n\t\t}\n\t\t//If $newProductId is not positive, throw an exception.\n\t\tif($newProductId <= 0) {\n\t\t\tthrow(new RangeException(\"Product ID must be positive\"));\n\t\t}\n\t\t$this->productId = intval($newProductId);\n\t}", "public function setProductId($value)\n {\n return $this->set(self::product_id, $value);\n }", "public function getProductIdFieldName() {\n return 'products_id';\n }", "public function setIdProduct($idProduct): self\n {\n $this->idProduct = $idProduct;\n\n return $this;\n }", "public function setId(string $id) : void\n {\n $this->set('id', $id, 'products');\n }", "public function set_id_product($id_product) \n\t{\n\t\t$this->id_product = $id_product;\n\t\treturn $this;\n\t}", "public function setProductNum($value)\n {\n return $this->set(self::product_num, $value);\n }", "function setProductuuid($product_uuid)\n {\n $this->product_uuid = $product_uuid;\n }", "function setProductId($productId) {\n\t\t$this->productId = $productId;\n\t\treturn $this;\n\t}", "private function setProductObjectId(object $object): void\n {\n //====================================================================//\n // Identify Product Id\n if ($object instanceof Product) {\n $this->objectId = (string) $object->id;\n } elseif ($object instanceof MouvementStock) {\n $this->objectId = (string) $object->product_id;\n }\n }", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "function getProdId($product){\r\n require '../../model/dbconnect.php';\r\n $prod = $db->quote($product);\r\n $rows_prod = $db->query(\"SELECT id FROM product WHERE name = $prod\");\r\n if ($rows_prod) {\r\n foreach($rows_prod as $row)\r\n return $row['id'];\r\n }\r\n }", "public function setId_produto($id_produto)\n {\n $this->id_produto = $id_produto;\n\n return $this;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function setId ($v)\n {\n // Since the native PHP type for this column is integer,\n // we will cast the input value to an int (if it is not).\n if ( $v !== null && !is_int ($v) && is_numeric ($v) )\n {\n $v = (int) $v;\n }\n if ( $this->id !== $v || $v === 0 )\n {\n $this->id = $v;\n }\n }", "function setId($value) {\n $this->_id = intval($value);\n }", "public function update_products($prod_id){\n\t\t$where = array('prod_id' => $prod_id );\n \t\t$data['prod_details'] =$this->Product_model->view_prod($where);\n\t\t$data['category'] = $this->get_category();\n\t\tview_loader($data,'seller/update_products');\n\t}", "public function getProductid() {\n\t\treturn $this->productid;\n\t}", "function SetId($value) { $this->id=$value; }", "public function GetIdProducto()\n\t{\n\t\treturn $this->idProd;\n\t}", "public function get_id_product()\n\t{\n\t\treturn $this->id_product;\n\t}", "public function getId_product()\n {\n return $this->id_product;\n }", "public function getProduct_Id() {\n return $this->product_Id;\n }", "public function setPrecinctId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->precinct_id !== $v) {\n\t\t\t$this->precinct_id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::PRECINCT_ID;\n\t\t}\n\n\t\tif ($this->aPrecinct !== null && $this->aPrecinct->getId() !== $v) {\n\t\t\t$this->aPrecinct = null;\n\t\t}\n\n\t}", "function getID(){ return (int)$this->productInfo['products_id']; }", "public function sold_prod($prod_id){\n $table_name = \"product\";\n $where = array('prod_id' => $prod_id );\n $data['status'] = $this->Product_model->sold_prod($where);\n\t\t$where = array('seller_id' => $_SESSION['user_id']);\n $data['prod_details'] = $this->Product_model->view_seller_prod($where);\n view_loader($data,'seller/home');\n }", "public function testSetProductIdGetProductId()\n {\n $oTestObject = oxNew('oxArticleException', $this->_sMsg);\n $this->assertNull($oTestObject->getProductId());\n\n $this->_oTestObject->setProductId('xxx');\n $this->assertEquals('xxx', $this->_oTestObject->getProductId());\n }", "public function getProductsId()\n {\n return $this->productsId;\n }", "public function setId($id)\n {\n $this->setIdSale($id);\n }", "public function setProduct(Product $product);", "public function setIdProducto($idProducto)\n {\n $this->idProducto = $idProducto;\n\n return $this;\n }", "public function setIdProducto($idProducto)\n {\n return $this->idProducto=$idProducto;\n }", "protected function set_product_ids() {\n\n\t\t// get the products selected for the report\n\t\t$this->product_ids = isset( $_GET['product_ids'] ) ? array_filter( array_map( 'absint', (array) $_GET['product_ids'] ) ) : array();\n\t}", "public function setID($value) {\r\n //if (!is_numeric($value)) die(\"setID() only accepts a numerical ID value\");\r\n $this->id = $value;\r\n }", "function setid_exp($val)\n { $this->id_exp=$val;}", "public function setProduct(Product $product)\n {\n $this->product_id = $product->id;\n $this->_calculateTotal();\n }", "public function setSeriesIdAttribute($value)\n {\n $this->attributes['series_id'] = $value ? $value : null;\n }", "public function setProductId(?string $productId = null): self\n {\n // validation for constraint: string\n if (!is_null($productId) && !is_string($productId)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productId, true), gettype($productId)), __LINE__);\n }\n if (is_null($productId) || (is_array($productId) && empty($productId))) {\n unset($this->ProductId);\n } else {\n $this->ProductId = $productId;\n }\n \n return $this;\n }", "public function setProductId(?string $productId = null): self\n {\n // validation for constraint: string\n if (!is_null($productId) && !is_string($productId)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productId, true), gettype($productId)), __LINE__);\n }\n if (is_null($productId) || (is_array($productId) && empty($productId))) {\n unset($this->ProductId);\n } else {\n $this->ProductId = $productId;\n }\n \n return $this;\n }", "public function addProduct($prod) {\n\t\t\t$this->products[$this->pid] = $prod;\n\t\t\t$this->pid ++;\n\t\t}", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function set_idnumber($value) {\r\n $this->idnumber = $value;\r\n data::add(\"idnumber\", $this->idnumber == \"\" ? NODATA : input::santize($this->idnumber), $this->table_fields);\r\n }", "public function getId()\n {\n return $this->idProduct;\n }", "public function setId($id){\n $this->_sub_cat_id = $id;\n }", "public function setId($var){\n\t\t$this->id=$var;\n\t}", "function setid_exp($val)\n { $this->id_exp=$val;}", "function setid_exp($val)\n { $this->id_exp=$val;}", "public function setQty($prod_id, $newQty)\n {\n // if the item already exists\n if (array_key_exists($prod_id, $this->items)) {\n $this->items[$prod_id] = $newQty;\n } else {\n $this->items = $this->items + array($prod_id => $newQty);\n }\n\n if ($this->items[$prod_id] <= 0) {\n unset($this->items[$prod_id]);\n }\n $this->calcTotal();\n }", "public function setShoeID($value) {\n\t\t$this->_shoe_id = $value;\n\t}", "public function getProductId(){\n return $this->product_id;\n }", "function setCertId($value)\n {\n $this->_props['CertId'] = $value;\n }", "public function setProdPriceId($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_price_id !== $v) {\n $this->prod_price_id = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_PRICE_ID] = true;\n }\n\n if ($this->aTblProdPricing !== null && $this->aTblProdPricing->getProdPriceId() !== $v) {\n $this->aTblProdPricing = null;\n }\n\n return $this;\n }", "public function setId($id)\r\n {\r\n $this->data['itemid'] = (int) $id;\r\n }", "public function updateProductNumber( $id ) {\n $collection = new OrderHasSpecCollection;\n $attributes = array(\n 'product_number' => $this->params(\"number\"),\n 'status' => 1,\n 'delivery_datetime' => date(\"Y-m-d H:i:s\")\n );\n $count = $collection->getById($id)->update($attributes);\n if($count != 1) {\n throw new DbOperationException(\"update returned record to DB fail.\");\n }\n return $attributes;\n }", "public function getPrefixedIdAttribute()\n {\n return 'product-' . $this->id;\n }", "function setProductCode($productCode)\n {\n $this->productCode = $productCode;\n }", "public function setId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->id !== $v) {\n\t\t\t$this->id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::ID;\n\t\t}\n\n\t}", "public function get_product_id() {\n return $this->product_id;\n }", "function getId_Producto(){\r\n\t\treturn $this->nId_Producto;\r\n\t}", "public function setIdProducto($id_producto)\n {\n $this->id_producto = $id_producto;\n\n return $this;\n }", "public function setIdProducto($id_producto)\n {\n $this->id_producto = $id_producto;\n\n return $this;\n }", "function setSiteId($value)\n {\n $this->_props['SiteId'] = $value;\n }", "public function getProductId() : int\n {\n return (int)$this->getProduct()->getId();\n }", "public function setIdAttribute($value)\n {\n $this->attributes['id'] = $value;\n }", "public function updateStockId();", "public function set($new_id);", "public function setId($id) {\n $this->vendorData[\"ID_VENDOR\"] = (int)$id;\n }", "public function setProductId($product_id)\n {\n $this->product_id = $product_id;\n\n return $this;\n }", "public function getPrimaryKey()\n {\n return $this->getProdId();\n }", "public function setSerialId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->serial_id !== $v) {\n\t\t\t$this->serial_id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::SERIAL_ID;\n\t\t}\n\n\t\tif ($this->aSerial !== null && $this->aSerial->getId() !== $v) {\n\t\t\t$this->aSerial = null;\n\t\t}\n\n\t}", "public function setId($value)\n {\n $this->setDataField('id', $value);\n }", "public function setPostId($value)\n {\n $this->postId=$value;\n }", "function setId($id) {\n\t\t$this->setData('id', $id);\n\t}", "public function setId($id)\n {\n $this->_id = (int) $id;\n }", "public function setId($id)\n {\n $this->_id = (int) $id;\n }", "public function setIdproducto($idproducto)\n {\n $this->idproducto = $this->db->real_escape_string($idproducto);\n\n return $this;\n }" ]
[ "0.7569165", "0.72317934", "0.7001409", "0.68405324", "0.6829177", "0.65451694", "0.6510461", "0.6482601", "0.64758235", "0.64569247", "0.61906654", "0.61810833", "0.61436164", "0.6133147", "0.6088208", "0.6070972", "0.60688543", "0.6051681", "0.60214746", "0.5972507", "0.5964864", "0.59441763", "0.5921342", "0.58800215", "0.5854611", "0.58538777", "0.5818512", "0.58129436", "0.5785027", "0.5727237", "0.56992495", "0.569646", "0.5667601", "0.5667528", "0.5667528", "0.5667528", "0.56587404", "0.5656463", "0.5654827", "0.5652451", "0.56410027", "0.56162035", "0.56048137", "0.5599485", "0.55900407", "0.5587182", "0.55774665", "0.55750597", "0.557304", "0.5552271", "0.55478656", "0.55411595", "0.55326664", "0.55263215", "0.5521733", "0.55210114", "0.5510896", "0.55100274", "0.550628", "0.5501169", "0.5501169", "0.5501122", "0.5468351", "0.5468351", "0.5468351", "0.54668444", "0.54490477", "0.5448037", "0.5444767", "0.5427114", "0.5427114", "0.5414922", "0.5385765", "0.53779685", "0.53751886", "0.5374738", "0.5369579", "0.5360817", "0.5352261", "0.5347416", "0.53470594", "0.5334088", "0.533127", "0.53261745", "0.53261745", "0.5320376", "0.53197485", "0.53175354", "0.5298609", "0.5295371", "0.5293467", "0.5281285", "0.52788925", "0.5278253", "0.5256252", "0.5240763", "0.5238435", "0.52363205", "0.5225908", "0.52193755" ]
0.7027277
2
setProdId() Set the value of [prod_price_id] column.
public function setProdPriceId($v) { if ($v !== null) { $v = (int) $v; } if ($this->prod_price_id !== $v) { $this->prod_price_id = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_PRICE_ID] = true; } if ($this->aTblProdPricing !== null && $this->aTblProdPricing->getProdPriceId() !== $v) { $this->aTblProdPricing = null; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdId($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_id !== $v) {\n $this->prod_id = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ID] = true;\n }\n\n if ($this->aTblProdPhotos !== null && $this->aTblProdPhotos->getProdId() !== $v) {\n $this->aTblProdPhotos = null;\n }\n\n if ($this->aTblProdPrices !== null && $this->aTblProdPrices->getProdId() !== $v) {\n $this->aTblProdPrices = null;\n }\n\n if ($this->aTblProdSmaller !== null && $this->aTblProdSmaller->getProdId() !== $v) {\n $this->aTblProdSmaller = null;\n }\n\n return $this;\n }", "public function setProductId($id);", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "public function setProductid( $productid ) {\n\t\t$this->productid = $productid;\n\t}", "public function getProdId()\n {\n return $this->prod_id;\n }", "function setIdkitprodutos($idkitprodutos) {\n $this->idkitprodutos = $idkitprodutos;\n }", "public function setProductId($image_id, $product_id){\r\n $this->ID = (int)$image_id;\r\n $this->product_id = $product_id;\r\n \r\n return $this->update();\r\n }", "public function setProductId($var)\n {\n GPBUtil::checkString($var, True);\n $this->product_id = $var;\n }", "public function setProductPrice($product_price){\n $this->product_price = $product_price;\n }", "public function setIdProduct($idProduct)\n {\n $this->idProduct = $idProduct;\n\n return $this;\n }", "public function setPrimaryKey($key)\n {\n $this->setProdId($key);\n }", "public function setProdId($prodid = '')\n {\n $this->prodid = $prodid;\n\n return $this;\n }", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "public function setProductId($value)\n {\n return $this->set(self::product_id, $value);\n }", "public function setId(string $id) : void\n {\n $this->set('id', $id, 'products');\n }", "function product_id($product_id=null)\n {\n if (isset($product_id)) $this->product_id = $product_id;\n return $this->product_id;\n }", "public function setIdProduct($idProduct): self\n {\n $this->idProduct = $idProduct;\n\n return $this;\n }", "public function setProductIdAttribute($input)\n {\n $this->attributes['product_id'] = $input ? $input : null;\n }", "public function setId_product($id_product)\n {\n $this->id_product = $id_product;\n\n return $this;\n }", "public function setProductId($newProductId) {\n\t\t$newProductId = filter_var($newProductId, FILTER_VALIDATE_INT);\n\t\t//if filter_var rejects the variable, throw an exception\n\t\tif($newProductId === false) {\n\t\t\tthrow(new InvalidArgumentException(\"Product Id is not a proper int\"));\n\t\t}\n\t\t//If $newProductId is not positive, throw an exception.\n\t\tif($newProductId <= 0) {\n\t\t\tthrow(new RangeException(\"Product ID must be positive\"));\n\t\t}\n\t\t$this->productId = intval($newProductId);\n\t}", "function setProductId($productId) {\n\t\t$this->productId = $productId;\n\t\treturn $this;\n\t}", "public function setId_produto($id_produto)\n {\n $this->id_produto = $id_produto;\n\n return $this;\n }", "protected function setPrice($productID, $price)\r\n {\r\n \r\n // SQL query\r\n $sql = \"UPDATE tbl_products SET price= '\" . $price . \"'WHERE id_products= '\" . $productID . \"'\";\r\n \r\n // Connect to database and run query\r\n $result = $this->connect->query($sql);\r\n \r\n // Check to see if query passed and registered\r\n if ($result) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "function setPrice($classId, $price) {\r\n $data['classPrice'] = $price;\r\n $this->db->where('id', $classId);\r\n $this->db->update('class', $data);\r\n }", "public function setIdProducto($idProducto)\n {\n return $this->idProducto=$idProducto;\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function set_id_product($id_product) \n\t{\n\t\t$this->id_product = $id_product;\n\t\treturn $this;\n\t}", "public function testSetProductIdGetProductId()\n {\n $oTestObject = oxNew('oxArticleException', $this->_sMsg);\n $this->assertNull($oTestObject->getProductId());\n\n $this->_oTestObject->setProductId('xxx');\n $this->assertEquals('xxx', $this->_oTestObject->getProductId());\n }", "function set_product_sequence($voucher_id, $prod_id, $seq)\n\t{\n\t\t$this->db->where(array('voucher_id'=>$voucher_id, 'product_id'=>$prod_id));\n\t\t$this->db->update('vouchers_products', array('sequence'=>$seq));\n\t}", "public function setIdProducto($idProducto)\n {\n $this->idProducto = $idProducto;\n\n return $this;\n }", "public function setId($id)\n {\n $this->setIdSale($id);\n }", "public function getProductsId()\n {\n return $this->productsId;\n }", "public function setProductNum($value)\n {\n return $this->set(self::product_num, $value);\n }", "public function getProductIdFieldName() {\n return 'products_id';\n }", "public function testSetPriceProduct()\n {\n $product = new Product();\n $value = 10.99;\n $product->setPrice($value);\n $this->assertEquals($value, $product->getPrice());\n }", "public function setId($pId) {\n\t\t$this->Id = $pId;\n\t}", "public function setProduct(Product $product);", "public function setProductId($product_id)\n {\n $this->product_id = $product_id;\n\n return $this;\n }", "public function setProducts_options_id( $products_options_id ) {\n\t\t$this->products_options_id = $products_options_id;\n\t}", "public function GetIdProducto()\n\t{\n\t\treturn $this->idProd;\n\t}", "public function setTblProdPrices(ChildTblProdPrices $v = null)\n {\n if ($v === null) {\n $this->setProdId(NULL);\n } else {\n $this->setProdId($v->getProdId());\n }\n\n $this->aTblProdPrices = $v;\n\n // Add binding for other direction of this 1:1 relationship.\n if ($v !== null) {\n $v->setTblProdInfo($this);\n }\n\n\n return $this;\n }", "function SetId($value) { $this->id=$value; }", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "public function setProduct(Product $product)\n {\n $this->product_id = $product->id;\n $this->_calculateTotal();\n }", "public function setIdProducto($id_producto)\n {\n $this->id_producto = $id_producto;\n\n return $this;\n }", "public function setIdProducto($id_producto)\n {\n $this->id_producto = $id_producto;\n\n return $this;\n }", "function setProductCode($productCode)\n {\n $this->productCode = $productCode;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function setProductId(?string $productId = null): self\n {\n // validation for constraint: string\n if (!is_null($productId) && !is_string($productId)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productId, true), gettype($productId)), __LINE__);\n }\n if (is_null($productId) || (is_array($productId) && empty($productId))) {\n unset($this->ProductId);\n } else {\n $this->ProductId = $productId;\n }\n \n return $this;\n }", "public function setProductId(?string $productId = null): self\n {\n // validation for constraint: string\n if (!is_null($productId) && !is_string($productId)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productId, true), gettype($productId)), __LINE__);\n }\n if (is_null($productId) || (is_array($productId) && empty($productId))) {\n unset($this->ProductId);\n } else {\n $this->ProductId = $productId;\n }\n \n return $this;\n }", "public function update_products($prod_id){\n\t\t$where = array('prod_id' => $prod_id );\n \t\t$data['prod_details'] =$this->Product_model->view_prod($where);\n\t\t$data['category'] = $this->get_category();\n\t\tview_loader($data,'seller/update_products');\n\t}", "private function setProductObjectId(object $object): void\n {\n //====================================================================//\n // Identify Product Id\n if ($object instanceof Product) {\n $this->objectId = (string) $object->id;\n } elseif ($object instanceof MouvementStock) {\n $this->objectId = (string) $object->product_id;\n }\n }", "protected function set_product_ids() {\n\n\t\t// get the products selected for the report\n\t\t$this->product_ids = isset( $_GET['product_ids'] ) ? array_filter( array_map( 'absint', (array) $_GET['product_ids'] ) ) : array();\n\t}", "public function setId_producto($id_producto)\n {\n $this->id_producto = $id_producto;\n\n return $this;\n }", "public function getProduct_Id() {\n return $this->product_Id;\n }", "public function getProductid() {\n\t\treturn $this->productid;\n\t}", "function setPrice($price)\n {\n $this->price = $price;\n }", "public function setDefaultAttributes($id, $price);", "public function setId($id){\n $this->_sub_cat_id = $id;\n }", "public function setTblProdPricing(ChildTblProdPricing $v = null)\n {\n if ($v === null) {\n $this->setProdPriceId(NULL);\n } else {\n $this->setProdPriceId($v->getProdPriceId());\n }\n\n $this->aTblProdPricing = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the ChildTblProdPricing object, it will not be re-added.\n if ($v !== null) {\n $v->addTblProdInfo($this);\n }\n\n\n return $this;\n }", "public function getId_product()\n {\n return $this->id_product;\n }", "function setDevId($value)\n {\n $this->_props['DevId'] = $value;\n }", "public function setProductKey($val)\n {\n $this->_propDict[\"productKey\"] = $val;\n return $this;\n }", "public function setProductKey($val)\n {\n $this->_propDict[\"productKey\"] = $val;\n return $this;\n }", "public function get_id_product()\n\t{\n\t\treturn $this->id_product;\n\t}", "function setCertId($value)\n {\n $this->_props['CertId'] = $value;\n }", "public function setProduct(LineItemProduct $product)\n\t{\n\t\t$this->addKeyValue('product', $product); \n\n\t}", "public function setProductIDs($productIDs)\n {\n $parameters = $this->request->getParameters();\n $parameters['id'] = $productIDs;\n $this->recommendationsUpToDate = false;\n }", "function setPrice($new_price)\n {\n $this->price = $new_price;\n }", "public function SetId($pId)\n {\n return $this->AddAttribute(self::ATTR_ID, $pId);\n }", "public function setPriceAttribute($value)\n {\n $this->attributes['price'] = Utils::numbersOnly($value);\n }", "public function setProductCode($_productCode)\n\t{\n\t\t$this->productCode = $_productCode;\n\t}", "public function setProductCode($_productCode)\n\t{\n\t\t$this->productCode = $_productCode;\n\t}", "public function updateStockId();", "public function setPrice($price)\n {\n $this->price = $price;\n }", "public function getProductId(){\n return $this->product_id;\n }", "public function setPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we){\n\t\t\n\t\tif ($this->isPricing($id_ressource, $id_pricing)){\n\t\t\t$this->editPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we);\n\t\t}\n\t\telse{\n\t\t\t$this->addPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we);\n\t\t}\n\t}", "public function getProductId() : int\n {\n return (int)$this->getProduct()->getId();\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "public function getProductID()\n {\n return $this->productID;\n }", "protected function doActionSetSalePrice()\n {\n $form = new \\XLite\\Module\\CDev\\Sale\\View\\Form\\SaleSelectedDialog();\n $form->getRequestData();\n\n if ($form->getValidationMessage()) {\n \\XLite\\Core\\TopMessage::addError($form->getValidationMessage());\n } elseif (!$this->getSelected() && $ids = $this->getActionProductsIds()) {\n $qb = \\XLite\\Core\\Database::getRepo('XLite\\Model\\Product')->createQueryBuilder();\n $alias = $qb->getMainAlias();\n $qb->update('\\XLite\\Model\\Product', $alias)\n ->andWhere($qb->expr()->in(\"{$alias}.product_id\", $ids));\n\n foreach ($this->getUpdateInfoElement() as $key => $value) {\n $qb->set(\"{$alias}.{$key}\", \":{$key}\")\n ->setParameter($key, $value);\n }\n\n $qb->execute();\n\n \\XLite\\Core\\TopMessage::addInfo('Products information has been successfully updated');\n } else {\n \\XLite\\Core\\Database::getRepo('\\XLite\\Model\\Product')->updateInBatchById($this->getUpdateInfo());\n \\XLite\\Core\\TopMessage::addInfo('Products information has been successfully updated');\n }\n\n $this->setReturnURL($this->buildURL('product_list', '', ['mode' => 'search']));\n }", "public function setPrecinctId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->precinct_id !== $v) {\n\t\t\t$this->precinct_id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::PRECINCT_ID;\n\t\t}\n\n\t\tif ($this->aPrecinct !== null && $this->aPrecinct->getId() !== $v) {\n\t\t\t$this->aPrecinct = null;\n\t\t}\n\n\t}", "public function getProductId()\n {\n return $this->product_id;\n }", "public function getProductId()\n {\n return $this->product_id;\n }", "public function sold_prod($prod_id){\n $table_name = \"product\";\n $where = array('prod_id' => $prod_id );\n $data['status'] = $this->Product_model->sold_prod($where);\n\t\t$where = array('seller_id' => $_SESSION['user_id']);\n $data['prod_details'] = $this->Product_model->view_seller_prod($where);\n view_loader($data,'seller/home');\n }", "function getID(){ return (int)$this->productInfo['products_id']; }", "public function setId($id) {\n $this->vendorData[\"ID_VENDOR\"] = (int)$id;\n }", "public function setIdproducto($idproducto)\n {\n $this->idproducto = $this->db->real_escape_string($idproducto);\n\n return $this;\n }", "function getId_Producto(){\r\n\t\treturn $this->nId_Producto;\r\n\t}", "public function setId($id) {\n $this->datosprop->setId_prop_carac($id);\n }", "public function setId($id)\n\t{\n\t\tif (isset($this->id)) {\n\t\t\tthrow new \\RuntimeException('ID is already set, you cannot change it once it is set!');\n\t\t}\n\t\t$this->id = $id;\n\t}", "public function updatePriceID($data)\n {\n $i_data = array_merge(['price_id' => Price::uniqueId()], $data);\n Price::where('sellable_id', '=', $data['sellable_id'])\n ->where('sellable_type', '=', $data['sellable_type'])\n ->update($i_data, ['upsert' => true]);\n }", "public function setPriceAttribute($value)\n {\n $this->attributes['price'] = $value * 100;\n }" ]
[ "0.7277352", "0.7216837", "0.711046", "0.7090819", "0.69628006", "0.6776268", "0.64826095", "0.63982207", "0.63752425", "0.6373306", "0.63708484", "0.62972486", "0.6225229", "0.6206175", "0.61924654", "0.61902213", "0.6182599", "0.61587185", "0.6140599", "0.61168116", "0.6069942", "0.60686064", "0.603673", "0.5961041", "0.5910849", "0.5892528", "0.58834773", "0.58822155", "0.58692366", "0.5865017", "0.5854027", "0.58398855", "0.57709", "0.576745", "0.5755784", "0.571019", "0.5697644", "0.56944656", "0.5693975", "0.56259775", "0.56148535", "0.5612754", "0.560866", "0.5603292", "0.55887926", "0.55701464", "0.55596584", "0.5538339", "0.5538339", "0.5535299", "0.54847616", "0.54847616", "0.54847616", "0.5472665", "0.5463652", "0.5463652", "0.5462249", "0.5452345", "0.5431391", "0.5372244", "0.5370121", "0.5369804", "0.53666085", "0.534689", "0.534493", "0.533545", "0.5333443", "0.5332414", "0.5327321", "0.5327321", "0.5320502", "0.530689", "0.5305572", "0.52899075", "0.52756023", "0.52687943", "0.5267378", "0.52662987", "0.52662987", "0.526096", "0.52493846", "0.52467006", "0.5245416", "0.52446586", "0.5243279", "0.5243279", "0.5243279", "0.5233343", "0.5222532", "0.5221048", "0.5221048", "0.5219602", "0.52063173", "0.5198537", "0.5193759", "0.5180296", "0.51782364", "0.51733524", "0.5171299", "0.5171167" ]
0.69560516
5
setProdPriceId() Set the value of [prod_name] column.
public function setProdName($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_name !== $v) { $this->prod_name = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_NAME] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProductId($id);", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function setProductName($product_name){\n $this->product_name = $product_name;\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function getProdPriceId()\n {\n return $this->prod_price_id;\n }", "public function setProductName(string $productName): void\n {\n $this->productName = $productName;\n }", "public function setProductName(?string $value): void {\n $this->getBackingStore()->set('productName', $value);\n }", "public function setNameId($name_id)\n {\n $this->name_id = $name_id;\n }", "public function setId(string $id) : void\n {\n $this->set('id', $id, 'products');\n }", "public function setProdId($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_id !== $v) {\n $this->prod_id = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ID] = true;\n }\n\n if ($this->aTblProdPhotos !== null && $this->aTblProdPhotos->getProdId() !== $v) {\n $this->aTblProdPhotos = null;\n }\n\n if ($this->aTblProdPrices !== null && $this->aTblProdPrices->getProdId() !== $v) {\n $this->aTblProdPrices = null;\n }\n\n if ($this->aTblProdSmaller !== null && $this->aTblProdSmaller->getProdId() !== $v) {\n $this->aTblProdSmaller = null;\n }\n\n return $this;\n }", "public function setProductid( $productid ) {\n\t\t$this->productid = $productid;\n\t}", "protected function setProductName($productID, $productName)\r\n {\r\n \r\n // SQL query\r\n $sql = \"UPDATE tbl_products SET product_name= '\" . $productName . \"'WHERE id_products= '\" . $productID . \"'\";\r\n \r\n // Connect to database and run query\r\n $result = $this->connect->query($sql);\r\n \r\n // Check to see if query passed and registered\r\n if ($result) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public function setProductId($var)\n {\n GPBUtil::checkString($var, True);\n $this->product_id = $var;\n }", "public function setProdPriceId($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_price_id !== $v) {\n $this->prod_price_id = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_PRICE_ID] = true;\n }\n\n if ($this->aTblProdPricing !== null && $this->aTblProdPricing->getProdPriceId() !== $v) {\n $this->aTblProdPricing = null;\n }\n\n return $this;\n }", "public function setProductIdAttribute($input)\n {\n $this->attributes['product_id'] = $input ? $input : null;\n }", "public function setProductPrice($product_price){\n $this->product_price = $product_price;\n }", "function setIdkitprodutos($idkitprodutos) {\n $this->idkitprodutos = $idkitprodutos;\n }", "public function setName(string $name) : void\n {\n $this->set('name', $name, 'products');\n }", "public function getProductIdFieldName() {\n return 'products_id';\n }", "public function setItemName()\n {\n if ($product = $this->product) {\n $name = $product->productPrint->name;\n $name = $product->mailingOption->name . ' ' . $name;\n $name = $name . ' ' . $product->stockOption->name;\n $this->name = $name;\n $this->save();\n }\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME)\n {\n $pos = TblProdInfoTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);\n\n return $this->setByPosition($pos, $value);\n }", "public function setProductId($image_id, $product_id){\r\n $this->ID = (int)$image_id;\r\n $this->product_id = $product_id;\r\n \r\n return $this->update();\r\n }", "function product_id($product_id=null)\n {\n if (isset($product_id)) $this->product_id = $product_id;\n return $this->product_id;\n }", "public function setNameId($nameId)\n {\n assert('is_array($nameId) || is_null($nameId)');\n\n $this->nameId = $nameId;\n }", "public function setName_product($name_product)\n {\n $this->name_product = $name_product;\n\n return $this;\n }", "public function setProdId($prodid = '')\n {\n $this->prodid = $prodid;\n\n return $this;\n }", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "function setPrice($classId, $price) {\r\n $data['classPrice'] = $price;\r\n $this->db->where('id', $classId);\r\n $this->db->update('class', $data);\r\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function setIdProduct($idProduct)\n {\n $this->idProduct = $idProduct;\n\n return $this;\n }", "public function setDefaultAttributes($id, $price);", "public function setProductId($value)\n {\n return $this->set(self::product_id, $value);\n }", "public function setId($id)\n {\n $this->setIdSale($id);\n }", "function setSyncProdName()\n {\n }", "public function setProductName(?string $productName): self\n {\n $this->initialized['productName'] = true;\n $this->productName = $productName;\n\n return $this;\n }", "function updateProduct($id, $productName, $price, $imageName, $shortDesc, $longDesc, $category, $inventory)\r\n {\r\n $sql = \"UPDATE tbl_ecommerce SET id_products='\" . $id . \"', product_name='\" . $productName . \"', price='\" . $price . \"', image_name='\" . $imageName . \"', short_description='\" . $shortDesc . \"', long_description='\" . $longDesc . \"', category='\" . $category . \"', inventory='\" . $inventory . \"'WHERE id_products='\" . $id . \"'\";\r\n $stmt = $this->connect()->query($sql);\r\n if (!$stmt) {\r\n echo \"Something wrong in the binding process. sql error?\";\r\n exit();\r\n } else {\r\n echo \"Update Successful\";\r\n }\r\n }", "function setProductId($productId) {\n\t\t$this->productId = $productId;\n\t\treturn $this;\n\t}", "public function setId_product($id_product)\n {\n $this->id_product = $id_product;\n\n return $this;\n }", "public function setPrimaryKey($key)\n {\n $this->setProdId($key);\n }", "public function setIdProduct($idProduct): self\n {\n $this->idProduct = $idProduct;\n\n return $this;\n }", "function setPrimaryKey($pkey_name){\n\n\t\t$this->pkey = $pkey_name;\n\n\t}", "public function setProductId($newProductId) {\n\t\t$newProductId = filter_var($newProductId, FILTER_VALIDATE_INT);\n\t\t//if filter_var rejects the variable, throw an exception\n\t\tif($newProductId === false) {\n\t\t\tthrow(new InvalidArgumentException(\"Product Id is not a proper int\"));\n\t\t}\n\t\t//If $newProductId is not positive, throw an exception.\n\t\tif($newProductId <= 0) {\n\t\t\tthrow(new RangeException(\"Product ID must be positive\"));\n\t\t}\n\t\t$this->productId = intval($newProductId);\n\t}", "protected function setPrice($productID, $price)\r\n {\r\n \r\n // SQL query\r\n $sql = \"UPDATE tbl_products SET price= '\" . $price . \"'WHERE id_products= '\" . $productID . \"'\";\r\n \r\n // Connect to database and run query\r\n $result = $this->connect->query($sql);\r\n \r\n // Check to see if query passed and registered\r\n if ($result) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "function update_Product($id, $name, $category_id, $description, $large_description, $price, $stock){\n\t\t$conn \t= connectDB();\n\t\t$sth \t= $conn \t-> prepare('UPDATE `product`\n\t\t\t\t\t\t\t\t\t\tSET `name` = ?, `category_id` = ?, `description` = ?, `large_description` = ?, `price` = ?, `stock` = ?\n\t\t\t\t\t\t\t\t\t\tWHERE `id` = ?');\n\t\t$sth \t-> execute(array($name, $category_id, $description, $large_description, $price, $stock, $id));\n\t}", "public function setProductName($product_name)\n {\n $this->product_name = $product_name;\n\n return $this;\n }", "public function getPrefixedIdAttribute()\n {\n return 'product-' . $this->id;\n }", "function set_product_sequence($voucher_id, $prod_id, $seq)\n\t{\n\t\t$this->db->where(array('voucher_id'=>$voucher_id, 'product_id'=>$prod_id));\n\t\t$this->db->update('vouchers_products', array('sequence'=>$seq));\n\t}", "public function setProductKey($val)\n {\n $this->_propDict[\"productKey\"] = $val;\n return $this;\n }", "public function setProductKey($val)\n {\n $this->_propDict[\"productKey\"] = $val;\n return $this;\n }", "public function setProduct_name ($product_name) {\n\t$this->product_name = $product_name;\n\treturn $this;\n}", "function updateProduct($product_id, $name, $price, $available, $society_id) {\r\n\t\t\tif ($product_id == null) {\r\n\t\t\t\t$sql = \"INSERT IGNORE INTO `products` (product_name, price, available, society_id) VALUES('%s', '%s', '%s', '%s')\";\r\n\t\t\t\treturn $this->query($sql, $name, $price, $available, $society_id);\r\n\t\t\t} else {\r\n\t\t\t\t$sql = \"UPDATE `products` SET product_name='%s', price='%s', available='%s', society_id='%s' WHERE product_id='%s'\";\r\n\t\t\t\treturn $this->query($sql, $name, $price, $available, $society_id, $product_id);\r\n\t\t\t}\r\n\t\t}", "public function setName($val) {\n $this->name = $val;\n }", "public function setName ($name){\n\t\tif($name){\n\t\t\t$this->Item['name'] = substr($name, 0,100);\n\t\t}\n\t}", "protected function defineNameId(){\n list($name,$id)=$this->resolveNameID();\n $this->_id=$this->htmlOptions['id']=$id;\n\t\t$this->_name=$this->htmlOptions['name']=$name;\n }", "public function setId($pId) {\n\t\t$this->Id = $pId;\n\t}", "public function setId($id){\n $this->_sub_cat_id = $id;\n }", "function setPrice($price)\n {\n $this->price = $price;\n }", "public function setProductId(?string $productId = null): self\n {\n // validation for constraint: string\n if (!is_null($productId) && !is_string($productId)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productId, true), gettype($productId)), __LINE__);\n }\n if (is_null($productId) || (is_array($productId) && empty($productId))) {\n unset($this->ProductId);\n } else {\n $this->ProductId = $productId;\n }\n \n return $this;\n }", "public function setProductId(?string $productId = null): self\n {\n // validation for constraint: string\n if (!is_null($productId) && !is_string($productId)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productId, true), gettype($productId)), __LINE__);\n }\n if (is_null($productId) || (is_array($productId) && empty($productId))) {\n unset($this->ProductId);\n } else {\n $this->ProductId = $productId;\n }\n \n return $this;\n }", "public function setName($val)\n {\n $this->name = $val;\n }", "public function updateStockId();", "public function setId_produto($id_produto)\n {\n $this->id_produto = $id_produto;\n\n return $this;\n }", "public function sold_prod($prod_id){\n $table_name = \"product\";\n $where = array('prod_id' => $prod_id );\n $data['status'] = $this->Product_model->sold_prod($where);\n\t\t$where = array('seller_id' => $_SESSION['user_id']);\n $data['prod_details'] = $this->Product_model->view_seller_prod($where);\n view_loader($data,'seller/home');\n }", "public function getProductsId()\n {\n return $this->productsId;\n }", "function SetId($value) { $this->id=$value; }", "function setProductCode($productCode)\n {\n $this->productCode = $productCode;\n }", "function setPrice($new_price)\n {\n $this->price = $new_price;\n }", "public function set_id_product($id_product) \n\t{\n\t\t$this->id_product = $id_product;\n\t\treturn $this;\n\t}", "public function setPrice($price)\n {\n $this->price = $price;\n }", "function getProdId($product){\r\n require '../../model/dbconnect.php';\r\n $prod = $db->quote($product);\r\n $rows_prod = $db->query(\"SELECT id FROM product WHERE name = $prod\");\r\n if ($rows_prod) {\r\n foreach($rows_prod as $row)\r\n return $row['id'];\r\n }\r\n }", "public function productdata($prod_id)\n {\n $prodname = $this->Dbmodel->getproduct($prod_id); \n return $prodname;\n }", "function setDevId($value)\n {\n $this->_props['DevId'] = $value;\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "function setCertId($value)\n {\n $this->_props['CertId'] = $value;\n }", "public function setProduct(Product $product);", "public function updateProductPrice($id, $title) {\n $stmt = $this->db->prepare(\"update product set price = :title where id = :id;\");\n $stmt->bindValue(\"title\", $title, PDO::PARAM_STR);\n $stmt->bindValue(\"id\", $id, PDO::PARAM_INT);\n $stmt->execute();\n }", "public function setNameAttribute($name)\n\t{\n\t\t$this->attributes['name'] = $name;\n\t\t$this->attributes['slug'] = $this->generateSlug($name);\n\t}", "public function testSetPriceProduct()\n {\n $product = new Product();\n $value = 10.99;\n $product->setPrice($value);\n $this->assertEquals($value, $product->getPrice());\n }", "public function setName( $name )\n\t{\n\t\t$this->setAttribute( \"name\", $name );\n\t}", "public function setName( $name )\n\t{\n\t\t$this->setAttribute( \"name\", $name );\n\t}", "public function setProductNum($value)\n {\n return $this->set(self::product_num, $value);\n }", "public function setPrice ($price){\n\t\tif(!is_numeric($price)){\n\t\t\treturn;\n\t\t}\n\t\t$this->Item['price'] = $price;\n\t}", "public function setId($id) {\n $this->vendorData[\"ID_VENDOR\"] = (int)$id;\n }", "public function updatePriceID($data)\n {\n $i_data = array_merge(['price_id' => Price::uniqueId()], $data);\n Price::where('sellable_id', '=', $data['sellable_id'])\n ->where('sellable_type', '=', $data['sellable_type'])\n ->update($i_data, ['upsert' => true]);\n }", "public function setTblProdPrices(ChildTblProdPrices $v = null)\n {\n if ($v === null) {\n $this->setProdId(NULL);\n } else {\n $this->setProdId($v->getProdId());\n }\n\n $this->aTblProdPrices = $v;\n\n // Add binding for other direction of this 1:1 relationship.\n if ($v !== null) {\n $v->setTblProdInfo($this);\n }\n\n\n return $this;\n }", "function setItem_price($price){\n $this->item_price = $price;\n }", "public function setProducts_options_id( $products_options_id ) {\n\t\t$this->products_options_id = $products_options_id;\n\t}", "public function setReplacementId($name, $replacement);", "public function update_products($prod_id){\n\t\t$where = array('prod_id' => $prod_id );\n \t\t$data['prod_details'] =$this->Product_model->view_prod($where);\n\t\t$data['category'] = $this->get_category();\n\t\tview_loader($data,'seller/update_products');\n\t}", "public function setIdFieldName($name)\n {\n $this->_idFieldName = $name;\n return $this;\n }", "public function setPriceAttribute($value)\n {\n $this->attributes['price'] = Utils::numbersOnly($value);\n }", "public function testSetProductIdGetProductId()\n {\n $oTestObject = oxNew('oxArticleException', $this->_sMsg);\n $this->assertNull($oTestObject->getProductId());\n\n $this->_oTestObject->setProductId('xxx');\n $this->assertEquals('xxx', $this->_oTestObject->getProductId());\n }", "public function setName($name){\n $this->__set('name',$name);\n }", "function setIdentifier($val) {\n $this->identifier = $this->updateDB('identifier', $val);\n }", "private function setProductObjectId(object $object): void\n {\n //====================================================================//\n // Identify Product Id\n if ($object instanceof Product) {\n $this->objectId = (string) $object->id;\n } elseif ($object instanceof MouvementStock) {\n $this->objectId = (string) $object->product_id;\n }\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }" ]
[ "0.65381175", "0.64423", "0.63692296", "0.6230679", "0.61326724", "0.6053755", "0.6038796", "0.6010867", "0.59863204", "0.5892571", "0.58909667", "0.58813864", "0.5855449", "0.58344686", "0.5832435", "0.5789224", "0.5787257", "0.5776619", "0.5775174", "0.5747184", "0.5736278", "0.5605906", "0.5562056", "0.55579275", "0.55225265", "0.5498199", "0.548341", "0.5455647", "0.54481333", "0.5422378", "0.54178995", "0.5378822", "0.5341451", "0.53261054", "0.5320258", "0.5281509", "0.5258053", "0.525241", "0.52427965", "0.52265877", "0.5219428", "0.52175415", "0.5216183", "0.5211775", "0.52008504", "0.51943177", "0.5193747", "0.5177599", "0.5169074", "0.5163424", "0.5163424", "0.5161251", "0.51522595", "0.5144972", "0.51258564", "0.51194304", "0.511203", "0.5109201", "0.50815", "0.5064402", "0.5064402", "0.50625336", "0.5045868", "0.50288343", "0.50242275", "0.50169146", "0.5016551", "0.5016422", "0.5010675", "0.5002906", "0.49875793", "0.4976771", "0.49698278", "0.49692696", "0.49579194", "0.49521756", "0.49518952", "0.49472663", "0.49326792", "0.49171993", "0.491591", "0.491591", "0.49082118", "0.49078557", "0.4907577", "0.49011362", "0.49009606", "0.48964837", "0.48938382", "0.48913217", "0.4890019", "0.48892388", "0.4887562", "0.4872945", "0.48699817", "0.48676294", "0.48673615", "0.48662972", "0.48662972", "0.48662972" ]
0.55484515
24
setProdName() Set the value of [prod_alt1] column.
public function setProdAlt1($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_alt1 !== $v) { $this->prod_alt1 = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT1] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProductName($product_name){\n $this->product_name = $product_name;\n }", "public function setProductName(?string $value): void {\n $this->getBackingStore()->set('productName', $value);\n }", "public function setItemName()\n {\n if ($product = $this->product) {\n $name = $product->productPrint->name;\n $name = $product->mailingOption->name . ' ' . $name;\n $name = $name . ' ' . $product->stockOption->name;\n $this->name = $name;\n $this->save();\n }\n }", "function setSyncProdName()\n {\n }", "public function setProductName(string $productName): void\n {\n $this->productName = $productName;\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function setProdName($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_name !== $v) {\n $this->prod_name = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_NAME] = true;\n }\n\n return $this;\n }", "public function setName_product($name_product)\n {\n $this->name_product = $name_product;\n\n return $this;\n }", "public function setName(string $name) : void\n {\n $this->set('name', $name, 'products');\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function getProdName()\n {\n return $this->prod_name;\n }", "protected function setProductName($productID, $productName)\r\n {\r\n \r\n // SQL query\r\n $sql = \"UPDATE tbl_products SET product_name= '\" . $productName . \"'WHERE id_products= '\" . $productID . \"'\";\r\n \r\n // Connect to database and run query\r\n $result = $this->connect->query($sql);\r\n \r\n // Check to see if query passed and registered\r\n if ($result) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public function setProdAlt2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt2 !== $v) {\n $this->prod_alt2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true;\n }\n\n return $this;\n }", "public function setProduct_name ($product_name) {\n\t$this->product_name = $product_name;\n\treturn $this;\n}", "public function setProductName($product_name)\n {\n $this->product_name = $product_name;\n\n return $this;\n }", "public function useAlternativeName(): void\n {\n $this->useAlternateName = true;\n }", "public function setProductName(?string $productName): self\n {\n $this->initialized['productName'] = true;\n $this->productName = $productName;\n\n return $this;\n }", "public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME)\n {\n $pos = TblProdInfoTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);\n\n return $this->setByPosition($pos, $value);\n }", "public function setName ($name){\n\t\tif($name){\n\t\t\t$this->Item['name'] = substr($name, 0,100);\n\t\t}\n\t}", "public function SetName ($name = \\MvcCore\\IEnvironment::PRODUCTION) {\n\t\t$this->name = $name;\n\t\tforeach (static::GetAllNames() as $envName)\n\t\t\t$this->values[$envName] = FALSE;\n\t\t$this->values[$this->name] = TRUE;\n\t\treturn $name;\n\t}", "public function setName($name){\n $this->__set('name',$name);\n }", "public function getProductName()\n {\n return $this->product_name;\n }", "public function getProductName(){\n return $this->product_name;\n }", "public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }", "public function getName_product()\n {\n return $this->name_product;\n }", "private function _setProcessName(string $proName)\n {\n if( PHP_OS=='Darwin')\n {\n return ;\n }\n\n $proName = self::$appName.'_'.$proName;\n if(function_exists('cli_set_process_title'))\n {\n @cli_set_process_title($proName);\n }\n if(extension_loaded('proctitle') && function_exists('setproctitle'))\n {\n @setproctitle($proName);\n }\n }", "public function getProductName()\n {\n return $this->product_name;\n }", "public function setProdAlt4($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt4 !== $v) {\n $this->prod_alt4 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT4] = true;\n }\n\n return $this;\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function setName($_name)\n {\n if (is_string($_name)) {\n \t$this->_name = $_name;\n }\n }", "public function setNameNewItem($name = NULL){\n\t\t$this->nameNewItem = $name ? $name : $this->nameAddNew;\n\t}", "public function setAlt($alt)\n {\n $this->alt = $alt;\n $this->setAttributes(\"Alt\");\n }", "public function setName($name, $value)\t{\n\n\t\t\t$this->{$name} = $value;\n\t\t\t\t\n\t\t\t//if (ctype_alnum($name) == true)\n\t\t\t\n\t\t\t//(die('The name of the store should only contain letters');\n\t\t\t\n\t\t\t//$this->name = $name;\n\t\t}", "function setItem_name($name){\n $this->item_name = $name;\n }", "public function set_name( $new_name )\r\n\t\t{\r\n\t\t\t$this->errno = DB_OK;\r\n\r\n\t\t\tif ( $this->cat_id == -1 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tSuch category hasn't been created\r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_ID;\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif( !$this->con->query( \"UPDATE category SET cat_name=\\\"$new_name\\\" WHERE cat_id=$this->cat_id;\" ) )\t\t\t\r\n\t\t\t{\r\n\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\r\n\t\t\t\treturn ;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to query\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t$this->cat_name = $new_name;\t\t\t\r\n\t\t\t\r\n\t\t}", "public function setNameAttribute($name)\n\t{\n\t\t$this->attributes['name'] = $name;\n\t\t$this->attributes['slug'] = $this->generateSlug($name);\n\t}", "public function _setTestKitName1($testKitName1) {\n\t\t$this->_testKitName1 = $testKitName1;\n\t}", "public function getProdName() {\n return $this->ProductName;\n}", "public function setProductName(string $productName): self\n {\n $this->productName = $productName;\n\n return $this;\n }", "public function setName($val) {\n $this->name = $val;\n }", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "public function setAltText($alt)\n {\n $this->_alt = $alt;\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function setAlternativeNames($val)\n {\n $this->_propDict[\"alternativeNames\"] = $val;\n return $this;\n }", "private function SetProductImages()\n\t{\n\n\t\t$GLOBALS['ProductThumbWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\t\t$GLOBALS['ProductThumbHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\n\t\t$GLOBALS['ProductMaxTinyWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\t\t$GLOBALS['ProductMaxTinyHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\n\t\t$GLOBALS['ProductTinyBoxWidth'] = $GLOBALS['ProductMaxTinyWidth']+4;\n\t\t$GLOBALS['ProductTinyBoxHeight'] = $GLOBALS['ProductMaxTinyHeight']+4;\n\n\n\t\t$GLOBALS['ProductMaxZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductMaxZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\t\t$GLOBALS['ProductZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\n\t\t$productImages = ISC_PRODUCT_IMAGE::getProductImagesFromDatabase($GLOBALS['ProductId'], null, false, true);\n\t\t$GLOBALS['NumProdImages'] = count($productImages);\n\n\t\t$GLOBALS['CurrentProdThumbImage'] = 0;\n\t\t$thumb = '';\n\t\t$curZoomImage = '';\n\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] = '';\n\t\t$GLOBALS['HideImageCarousel'] = 'display:none;';\n\t\t$GLOBALS['HideMorePicturesLink'] = 'display:none;';\n\t\t$thumbImageDescription = '';\n\t\t$i = 0;\n\n\t\t$GLOBALS['ProdImageJavascript'] = '';\n\t\t$GLOBALS['ProdImageZoomJavascript'] = '';\n\t\t$GLOBALS['LightBoxImageList'] = '';\n\t\t$GLOBALS['ZoomImageMaxWidth'] = 0;\n\t\t$GLOBALS['ZoomImageMaxHeight'] = 0;\n\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = 0;\n\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = 'display: none';\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t//Show image carousel\n\n\t\t\tif ($GLOBALS['NumProdImages'] == 2) {\n\t\t\t\t$var = \"MorePictures1\";\n\t\t\t} else if ($GLOBALS['NumProdImages'] == 1) {\n\t\t\t\t$var = \"SeeLargerImage\";\n\t\t\t} else {\n\t\t\t\t$var = \"MorePictures2\";\n\t\t\t}\n\n\t\t\t$GLOBALS['SeeMorePictures'] = sprintf(GetLang($var), count($productImages) - 1);\n\t\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = '';\n\n\t\t\tif (GetConfig('ProductImagesTinyThumbnailsEnabled')) {\n\t\t\t\t$GLOBALS['HideImageCarousel'] = '';\n\t\t\t} else {\n\t\t\t\t$GLOBALS['HideMorePicturesLink'] = '';\n\t\t\t}\n\n\t\t\t$continue=false;\n\n\t\t\tforeach ($productImages as $productImage) {\n\n\t\t\t\t$thumbURL = '';\n\t\t\t\t$zoomImageURL = '';\n\n\t\t\t\ttry{\n\t\t\t\t\t$thumbURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_STANDARD, true);\n\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\ttry{\n\t\t\t\t\t$zoomImageURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_ZOOM, true);\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\tif($thumbURL == '' && $zoomImageURL == '') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$resizedZoomDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t\t\t$resizedTinyDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\t\t\t\t//calculate the max zoom image width and height\n\t\t\t\tif ($GLOBALS['ZoomImageMaxWidth'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]) {\n\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t//the height of the image has got the max width needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\tif ($GLOBALS['ZoomImageMaxHeight'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]) {\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t//the width of the image has got the max height needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeightWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['ImageDescription'] = isc_html_escape($productImage->getDescription());\n\t\t\t\tif($GLOBALS['ImageDescription'] == '') {\n\t\t\t\t\t$GLOBALS['ImageDescription'] = GetLang(\"Image\") . \" \" . ($i + 1);\n\t\t\t\t}\n\n\t\t\t\t//show image carousel\n\t\t\t\tif(GetConfig('ProductImagesTinyThumbnailsEnabled')==1) {\n\n\t\t\t\t\t$GLOBALS['ProdImageJavascript'] .= \"\n\t\t\t\t\t\tThumbURLs[\".$i.\"] = \" . isc_json_encode($thumbURL) . \";\n\t\t\t\t\t\tProductImageDescriptions[\".$i.\"] = \" . isc_json_encode($GLOBALS['ImageDescription']) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$GLOBALS['TinyImageOverJavascript'] = \"showProductThumbImage(\".$i.\")\";\n\t\t\t\t\t//$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\n\t\t\t\t\ttry{\n\t\t\t\t\t\t$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\t\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ProductThumbIndex'] = $i;\n\t\t\t\t\tif(GetConfig('ProductImageMode') == 'lightbox') {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImageLightBox(\".$i.\"); return false;\";\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImage('\".GetConfig('ShopPath').\"/productimage.php', \".$GLOBALS['ProductId'].\", \".$i.\");\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['TinyImageWidth'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t$GLOBALS['TinyImageHeight'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t$GLOBALS['TinyImageTopPadding'] = floor(($GLOBALS['ProductMaxTinyHeight'] - $GLOBALS['TinyImageHeight']) / 2);\n\t\t\t\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductTinyImage\");\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\tif(GetConfig('ProductImagesImageZoomEnabled') == 1) {\n\t\t\t\t\t//check if zoom image is large enough for image zoomer\n\t\t\t\t\tif($resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]<ISC_PRODUCT_IMAGE_MIN_ZOOM_WIDTH && $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]<ISC_PRODUCT_IMAGE_MIN_ZOOM_HEIGHT) {\n\t\t\t\t\t\t$zoomImageURL = '';\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['ProdImageZoomJavascript'] .= \"\n\t\t\t\t\t\tZoomImageURLs[\".$i.\"] = \" . isc_json_encode($zoomImageURL) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\t//\t$GLOBALS['ProductZoomImageURL'] = $zoomImageURL;\n\n\t\t\t\t//this image is the product page thumbnail\n\t\t\t\tif($i==0) {\n\t\t\t\t\t//get the thumb image for product page\n\t\t\t\t\t$thumb = $thumbURL;\n\t\t\t\t\t$curZoomImage = $zoomImageURL;\n\t\t\t\t\t$thumbImageDescription = $GLOBALS['ImageDescription'];\n\t\t\t\t\t//if there is no need to loop through images anymore, get out from the loop.\n\t\t\t\t\tif($continue === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['VisibleImageTotal'] = $i+1;\n\n\t\t$GLOBALS['ShowImageZoomer'] = GetConfig('ProductImagesImageZoomEnabled');\n\t\tif ($GLOBALS['ShowImageZoomer']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductImageZoomer'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductImageZoomer\");\n\t\t}\n\t\t$GLOBALS['ZoomImageURL'] = $curZoomImage;\n\n\t\t//if no product thumb images\n\t\tif($thumb == '') {\n\t\t\tif(GetConfig('DefaultProductImage') == 'template') {\n\t\t\t\t$thumb = $GLOBALS['IMG_PATH'].'/ProductDefault.gif';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$thumb = GetConfig('ShopPath').'/'.GetConfig('DefaultProductImage');\n\t\t\t}\n\t\t}\n\n\t\t// need to check for variation images\n\t\t$GLOBALS['ImageDescription'] = $thumbImageDescription;\n\t\t$GLOBALS['ThumbImageURL'] = $thumb;\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('FastProductThumbImage');\n\t\t} else {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ProductThumbImagePlaceholder');\n\t\t}\n\t}", "public function setName( $name )\n\t{\n\t\t$this->setAttribute( \"name\", $name );\n\t}", "public function setName( $name )\n\t{\n\t\t$this->setAttribute( \"name\", $name );\n\t}", "public function setLongName($longName) {\n\t\t$this->longName = $longName;\n\t\t\n\t\t$sql = \"UPDATE currency\n\t\t\tSET long_name = '\" . $this->badgerDb->escapeSimple($longName) . \"'\n\t\t\tWHERE currency_id = \" . $this->id;\n\t\n\t\t$dbResult =& $this->badgerDb->query($sql);\n\t\t\n\t\tif (PEAR::isError($dbResult)) {\n\t\t\t//echo \"SQL Error: \" . $dbResult->getMessage();\n\t\t\tthrow new BadgerException('Currency', 'SQLError', $dbResult->getMessage());\n\t\t}\n\t}", "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "public function setProdTitle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_title !== $v) {\n $this->prod_title = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_TITLE] = true;\n }\n\n return $this;\n }", "function setName( $value )\n {\n $this->Name = $value;\n }", "public function setName($val)\n {\n $this->name = $val;\n }", "public function setName($name) {\n\t\t$this->_name = $name;\n\t}", "public function setName($name){\n $this->_name = $name;\n }", "function set_name($name)\r\n {\r\n $this->set_default_property(self :: PROPERTY_NAME, $name);\r\n }", "function setName($value) {\n $this->name = $value;\n }", "function setDisplayName($name){\n\t\t$this->display_name =$name;\n\t}", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "function set_name($name)\n {\n $this->set_default_property(self :: PROPERTY_NAME, $name);\n }", "function setName( &$value )\r\n {\r\n $this->Name = $value;\r\n }", "function setName( &$value )\r\n {\r\n $this->Name = $value;\r\n }", "function setSyncProdDesc()\n {\n }", "public function setProduct_V1(Product_V1 $produit_V1)\n {\n $this->produit_V1 = $produit_V1;\n }", "public function set_name( $name ) {\n\t\t$this->label = $name;\n\t\t$this->slug = sanitize_title_with_dashes( $name );\n\t}", "public function setName($name)\n {\n if (substr($name, -2) == '[]') {\n $this->setIsMultiple(true);\n $name = substr($name, 0, -2);\n }\n\n $this->_name = $name;\n }", "public function set_name( $name ) {\n\t\t$this->set_prop( 'name', $name );\n\t}", "function setName($value) {\n $this->name = $value;\n }", "public function setName($name) \n {\n $this->_name = $name; \n }", "protected function setName($value)\n\t{\n\t\t$this->name = $value;\n\t}", "protected function setName($value)\n\t{\n\t\t$this->name = $value;\n\t}", "public function updateProduct(Product $oProd,Product $nProd){\r\n\t\t\r\n\t\t$oldQuery = \"SELECT * FROM products WHERE name='\" . $$oProd->getName(). \r\n\t\t\"' AND stock=\".$oProd->getStock().\r\n\t\t\" AND price=\".$oProd->getPrice().\r\n\t\t\" AND fk_catalogID=\".$oProd->getCatalogID(). \r\n\t\t\" AND productID=\".$oProd->getProdID();\r\n\t\t\r\n\t\t$newQuery = \"UPDATE products SET name='\".$$nProd->getName().\"', \". \r\n\t\t\t\t \"', stock=\".$nProd->getStock().\r\n\t\t\t\t \" , price=\".$nProd->getPrice().\r\n\t\t\t\t \" , fk_catalogID=\".$nProd->getCatalogID().\r\n\t\t\t\t \" Where productID=\".$nProd->getProdID();\r\n\t\t\r\n\t\treturn $GLOBALS['dbObj']->dbUpdate($oldQuery,$newQuery);\r\n\t}", "public function addProduct($productName)\n {\n $item = urlencode($productName);\n $this->produkty[] = $item;\n }", "public function setNameEdit($name = NULL ){\n\t\t$this->nameEdit = $name ? $name : \"Editar \".$this->name;\n\t}", "public function getProdTitle()\n {\n return $this->prod_title;\n }", "function set_admin_name($name) {\n $this->admin_name = $name;\n }", "public function setProducts(array $products = []): void\n {\n $xml = '';\n\n foreach ($products as $id) {\n $xml .= '<product-set-product product-id=\"' . Xml::escape($id) . '\" />' . PHP_EOL;\n }\n\n $this->elements['product-set-products'] = $xml;\n }", "function setName( &$value )\n {\n $this->Name = $value;\n }", "public function setName($name)\n\t{\n\t\t$this->_name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->_name = $name;\n\t}", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name) {\r\n\t\t$this->name = $name;\r\n\t}", "private function update_name($new_name) { \n\n\t\tif ($this->_update_item('name',$new_name,'50')) { \n\t\t\t$this->name = $new_name;\n\t\t}\n\n\t}", "function setName($newName){\n $this->name = \"Glittery \" . $newName;\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name) {\n\t\t$this->_name = (string)$name;\n\t}", "function setName($name){\n\t\t$this->name=$name;\n\t}", "public function SetName ($name);", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}" ]
[ "0.6593856", "0.6285217", "0.62269306", "0.6096228", "0.60695195", "0.606547", "0.5979651", "0.5859483", "0.582439", "0.5737067", "0.5679284", "0.56781083", "0.56542873", "0.55866635", "0.5538256", "0.54139674", "0.53877753", "0.5353698", "0.53095037", "0.5265667", "0.5261859", "0.51827234", "0.51398957", "0.51156974", "0.51147985", "0.50922406", "0.5062693", "0.5057743", "0.5050312", "0.5036973", "0.50250363", "0.50243604", "0.5005186", "0.4998976", "0.49954408", "0.4983442", "0.49694955", "0.49595118", "0.49394467", "0.49302846", "0.49275854", "0.4915253", "0.49048948", "0.4901068", "0.4895286", "0.48944324", "0.48918018", "0.48918018", "0.4888682", "0.4878446", "0.4878446", "0.4878446", "0.4878446", "0.4878446", "0.48537478", "0.484927", "0.48465413", "0.48455387", "0.48366946", "0.4818858", "0.4814225", "0.48141336", "0.4812604", "0.4812604", "0.48101982", "0.48049396", "0.48049396", "0.47980958", "0.4793014", "0.47927776", "0.4790781", "0.47879398", "0.4778114", "0.47753167", "0.4774112", "0.4774112", "0.47734487", "0.4773383", "0.47717434", "0.47651234", "0.4758878", "0.47559357", "0.47492513", "0.4741526", "0.4741526", "0.47351614", "0.47349977", "0.47349977", "0.47349977", "0.47349977", "0.47346443", "0.47345656", "0.47332567", "0.4729896", "0.47284758", "0.47229832", "0.4720874", "0.47145", "0.47145", "0.47145" ]
0.67809516
0
setProdAlt1() Set the value of [prod_alt2] column.
public function setProdAlt2($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_alt2 !== $v) { $this->prod_alt2 = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdAlt1($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt1 !== $v) {\n $this->prod_alt1 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT1] = true;\n }\n\n return $this;\n }", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function setAlt($alt)\n {\n $this->alt = $alt;\n $this->setAttributes(\"Alt\");\n }", "public function setAltText($alt)\n {\n $this->_alt = $alt;\n }", "public function setRowAlt($rowAlt)\n {\n $this->rowAlt = $this->checkRowAltRange($rowAlt);\n $this->childNodes = [];\n $this->append($this->makeTableRows());\n }", "public function setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function setProdAlt4($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt4 !== $v) {\n $this->prod_alt4 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT4] = true;\n }\n\n return $this;\n }", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function setPromotion($first,$second)\n {\n $this->promotion->setPromotion($first,$second);\n //product Id for identify products\n $this->promotion->setProductId($this->id);\n }", "public function setProduct_V1(Product_V1 $produit_V1)\n {\n $this->produit_V1 = $produit_V1;\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "private function SetProductImages()\n\t{\n\n\t\t$GLOBALS['ProductThumbWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\t\t$GLOBALS['ProductThumbHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\n\t\t$GLOBALS['ProductMaxTinyWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\t\t$GLOBALS['ProductMaxTinyHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\n\t\t$GLOBALS['ProductTinyBoxWidth'] = $GLOBALS['ProductMaxTinyWidth']+4;\n\t\t$GLOBALS['ProductTinyBoxHeight'] = $GLOBALS['ProductMaxTinyHeight']+4;\n\n\n\t\t$GLOBALS['ProductMaxZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductMaxZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\t\t$GLOBALS['ProductZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\n\t\t$productImages = ISC_PRODUCT_IMAGE::getProductImagesFromDatabase($GLOBALS['ProductId'], null, false, true);\n\t\t$GLOBALS['NumProdImages'] = count($productImages);\n\n\t\t$GLOBALS['CurrentProdThumbImage'] = 0;\n\t\t$thumb = '';\n\t\t$curZoomImage = '';\n\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] = '';\n\t\t$GLOBALS['HideImageCarousel'] = 'display:none;';\n\t\t$GLOBALS['HideMorePicturesLink'] = 'display:none;';\n\t\t$thumbImageDescription = '';\n\t\t$i = 0;\n\n\t\t$GLOBALS['ProdImageJavascript'] = '';\n\t\t$GLOBALS['ProdImageZoomJavascript'] = '';\n\t\t$GLOBALS['LightBoxImageList'] = '';\n\t\t$GLOBALS['ZoomImageMaxWidth'] = 0;\n\t\t$GLOBALS['ZoomImageMaxHeight'] = 0;\n\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = 0;\n\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = 'display: none';\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t//Show image carousel\n\n\t\t\tif ($GLOBALS['NumProdImages'] == 2) {\n\t\t\t\t$var = \"MorePictures1\";\n\t\t\t} else if ($GLOBALS['NumProdImages'] == 1) {\n\t\t\t\t$var = \"SeeLargerImage\";\n\t\t\t} else {\n\t\t\t\t$var = \"MorePictures2\";\n\t\t\t}\n\n\t\t\t$GLOBALS['SeeMorePictures'] = sprintf(GetLang($var), count($productImages) - 1);\n\t\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = '';\n\n\t\t\tif (GetConfig('ProductImagesTinyThumbnailsEnabled')) {\n\t\t\t\t$GLOBALS['HideImageCarousel'] = '';\n\t\t\t} else {\n\t\t\t\t$GLOBALS['HideMorePicturesLink'] = '';\n\t\t\t}\n\n\t\t\t$continue=false;\n\n\t\t\tforeach ($productImages as $productImage) {\n\n\t\t\t\t$thumbURL = '';\n\t\t\t\t$zoomImageURL = '';\n\n\t\t\t\ttry{\n\t\t\t\t\t$thumbURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_STANDARD, true);\n\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\ttry{\n\t\t\t\t\t$zoomImageURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_ZOOM, true);\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\tif($thumbURL == '' && $zoomImageURL == '') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$resizedZoomDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t\t\t$resizedTinyDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\t\t\t\t//calculate the max zoom image width and height\n\t\t\t\tif ($GLOBALS['ZoomImageMaxWidth'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]) {\n\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t//the height of the image has got the max width needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\tif ($GLOBALS['ZoomImageMaxHeight'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]) {\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t//the width of the image has got the max height needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeightWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['ImageDescription'] = isc_html_escape($productImage->getDescription());\n\t\t\t\tif($GLOBALS['ImageDescription'] == '') {\n\t\t\t\t\t$GLOBALS['ImageDescription'] = GetLang(\"Image\") . \" \" . ($i + 1);\n\t\t\t\t}\n\n\t\t\t\t//show image carousel\n\t\t\t\tif(GetConfig('ProductImagesTinyThumbnailsEnabled')==1) {\n\n\t\t\t\t\t$GLOBALS['ProdImageJavascript'] .= \"\n\t\t\t\t\t\tThumbURLs[\".$i.\"] = \" . isc_json_encode($thumbURL) . \";\n\t\t\t\t\t\tProductImageDescriptions[\".$i.\"] = \" . isc_json_encode($GLOBALS['ImageDescription']) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$GLOBALS['TinyImageOverJavascript'] = \"showProductThumbImage(\".$i.\")\";\n\t\t\t\t\t//$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\n\t\t\t\t\ttry{\n\t\t\t\t\t\t$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\t\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ProductThumbIndex'] = $i;\n\t\t\t\t\tif(GetConfig('ProductImageMode') == 'lightbox') {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImageLightBox(\".$i.\"); return false;\";\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImage('\".GetConfig('ShopPath').\"/productimage.php', \".$GLOBALS['ProductId'].\", \".$i.\");\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['TinyImageWidth'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t$GLOBALS['TinyImageHeight'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t$GLOBALS['TinyImageTopPadding'] = floor(($GLOBALS['ProductMaxTinyHeight'] - $GLOBALS['TinyImageHeight']) / 2);\n\t\t\t\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductTinyImage\");\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\tif(GetConfig('ProductImagesImageZoomEnabled') == 1) {\n\t\t\t\t\t//check if zoom image is large enough for image zoomer\n\t\t\t\t\tif($resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]<ISC_PRODUCT_IMAGE_MIN_ZOOM_WIDTH && $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]<ISC_PRODUCT_IMAGE_MIN_ZOOM_HEIGHT) {\n\t\t\t\t\t\t$zoomImageURL = '';\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['ProdImageZoomJavascript'] .= \"\n\t\t\t\t\t\tZoomImageURLs[\".$i.\"] = \" . isc_json_encode($zoomImageURL) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\t//\t$GLOBALS['ProductZoomImageURL'] = $zoomImageURL;\n\n\t\t\t\t//this image is the product page thumbnail\n\t\t\t\tif($i==0) {\n\t\t\t\t\t//get the thumb image for product page\n\t\t\t\t\t$thumb = $thumbURL;\n\t\t\t\t\t$curZoomImage = $zoomImageURL;\n\t\t\t\t\t$thumbImageDescription = $GLOBALS['ImageDescription'];\n\t\t\t\t\t//if there is no need to loop through images anymore, get out from the loop.\n\t\t\t\t\tif($continue === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['VisibleImageTotal'] = $i+1;\n\n\t\t$GLOBALS['ShowImageZoomer'] = GetConfig('ProductImagesImageZoomEnabled');\n\t\tif ($GLOBALS['ShowImageZoomer']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductImageZoomer'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductImageZoomer\");\n\t\t}\n\t\t$GLOBALS['ZoomImageURL'] = $curZoomImage;\n\n\t\t//if no product thumb images\n\t\tif($thumb == '') {\n\t\t\tif(GetConfig('DefaultProductImage') == 'template') {\n\t\t\t\t$thumb = $GLOBALS['IMG_PATH'].'/ProductDefault.gif';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$thumb = GetConfig('ShopPath').'/'.GetConfig('DefaultProductImage');\n\t\t\t}\n\t\t}\n\n\t\t// need to check for variation images\n\t\t$GLOBALS['ImageDescription'] = $thumbImageDescription;\n\t\t$GLOBALS['ThumbImageURL'] = $thumb;\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('FastProductThumbImage');\n\t\t} else {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ProductThumbImagePlaceholder');\n\t\t}\n\t}", "public function setAltura($iAltura, $sUnidade = \"px\") \r\n\t{\r\n\t\t$this->iAltura = $iAltura;\r\n\t\t$this->sUnidadeAltura = $sUnidade;\r\n\t}", "public function getAlt()\n {\n return $this->alt;\n }", "public function edit_2Action(Produits_1 $produit1)\n {\n $user = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n \n $produits = $em->getRepository('KountacBundle:Produits_2')->getProduct_2($produit1);\n \n return $this->render('produits/edit_2.html.twig', array(\n 'produit1' => $produit1,\n 'produits' => $produits,\n 'user' => $user,\n ));\n }", "public function setAltura($iAltura) {\n $this->iAltura = $iAltura;\n }", "public function set_alt_rows() { $this->alt_rows = true; }", "public function setSearchArgumentAlt($value)\n {\n $this->searchArgumentAlt = $value;\n }", "public function setValue2($value){\n $this->_value2 = $value;\n }", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "public function prod($prod);", "public function setNewCurrentMeals($mealName1, $mealName2) {\r\n $this->querySimpleExecute(\r\n \"UPDATE t_meal SET meaIsCurrentMeal = 0 WHERE meaIsCurrentMeal = 1\"\r\n );\r\n // Set true to the new current meals\r\n $this->queryPrepareExecute(\r\n \"UPDATE t_meal SET meaIsCurrentMeal = 1 WHERE meaName = :varMeaName\",\r\n array(\r\n array(\r\n \"marker\" => \"varMeaName\",\r\n \"var\" => $mealName1,\r\n \"type\" => PDO::PARAM_STR\r\n )\r\n )\r\n );\r\n $this->queryPrepareExecute(\r\n \"UPDATE t_meal SET meaIsCurrentMeal = 1 WHERE meaName = :varMeaName\",\r\n array(\r\n array(\r\n \"marker\" => \"varMeaName\",\r\n \"var\" => $mealName2,\r\n \"type\" => PDO::PARAM_STR)\r\n )\r\n );\r\n }", "public function updateExperience($id, $PE1, $PE2=0){\n\t\t\t$query = new Query();\n\n\t\t\t$query->tables = array('pgdb');\n\t\t\t$query->fields = array('PE', 'PE2');\n\t\t\t$query->values = array($PE1, $PE2);\n\t\t\t$query->filters = \"id=\".$id;\n\n\t\t\t$query->DoUpdate();\n\t\t}", "public function _setLotNo1($lotNo1) {\n\t\t$this->_lotNo1 = $lotNo1;\n\t}", "public function alt(){\n\t\tif( $this->alt ) {\n\t\t\treturn $this->alt;\n\t\t}//end if\n\n\t\t$this->alt = @file_get_contents( $this->base_dir.'/'.$this->dir . $this->filename . '.alt');\n\n\t\treturn $this->alt;\n\t}", "public function setMagia2Attribute($value) {\n $this->attributes['magia2'] = $this->verificaAtributo($value, true);\n }", "public function extraChoice1 ($extra1, $extra1Price){\n $this->extra1=$extra1;\n $this->extra1Price=$extra1Price;\n }", "public function getPointProd2():?int\n {\n //Verifier si au moins un produit 1 est vendu afin de dettminer \n //le nombre de point du produit 2\n\n return $this->produit1<=0 ? 0 : ($this->produit2<=0 ? 0 : $this->produit2 * 5);\n }", "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "public function setRef1($ref1) {\n $this->_ref1 = $ref1;\n }", "public function setEtblAdresse1($etblAdresse1) {\n $this->etblAdresse1 = $etblAdresse1;\n return $this;\n }", "public function setEtblAdresse1($etblAdresse1) {\n $this->etblAdresse1 = $etblAdresse1;\n return $this;\n }", "public function getPointProd1():?int\n {\n return $this->produit1 <= 0 ? 0 : $this->produit1 * 5;\n }", "public function setCategory1($val)\n {\n $this->_propDict[\"category1\"] = $val;\n return $this;\n }", "function setBeneficiario1($beneficiario1) {\r\n $this->beneficiario1 = $beneficiario1;\r\n }", "public function _setLotNo2($lotNo2) {\n\t\t$this->_lotNo2 = $lotNo2;\n\t}", "public function setPrecio1($precio1)\n {\n $this->precio1 = $precio1;\n\n return $this;\n }", "public function alt(string $altText): self\n {\n if (strlen($altText) > 2000) {\n throw new InvalidArgumentException('Maximum length for the alt text field is 2000 characters.');\n }\n\n $this->altText = $altText;\n\n return $this;\n }", "public function setMagia1Attribute($value) {\n $this->attributes['magia1'] = $this->verificaAtributo($value, true);\n }", "function set_product_sequence($voucher_id, $prod_id, $seq)\n\t{\n\t\t$this->db->where(array('voucher_id'=>$voucher_id, 'product_id'=>$prod_id));\n\t\t$this->db->update('vouchers_products', array('sequence'=>$seq));\n\t}", "public function setEditorial2($v)\n\t{\n\n\t\tif ($this->editorial2 !== $v || $v === false) {\n\t\t\t$this->editorial2 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL2;\n\t\t}\n\n\t}", "public function plugLetters(string $letter1, string $letter2): void\n {\n $this->plugboard->plugLetters($this->alphabet->toEnigma($letter1), $this->alphabet->toEnigma($letter2));\n }", "function _sp_custom_box_alternate_product_image( $post ) {\n\twp_nonce_field( '_sp_alternate_product_image', '_sp_alternate_product_image_nonce' );\n\n\t// get saved settings\n\t$image_id = absint( get_post_meta( $post->ID, '_sp_alternate_product_image_id', true ) );\n\t$hover_status = get_post_meta( $post->ID, '_sp_alternate_product_image_on_hover_status', true );\n\n\t// set a default\n\tif ( ! isset( $hover_status ) || empty( $hover_status ) )\n\t\t$hover_status = 'off';\n\n\tif ( isset( $image_id ) && ! empty( $image_id ) ) {\n\t\t$image = wp_get_attachment_image_src( $image_id, array( 175, 175 ) );\n\t}\n\n\t$output = '';\n\t$output .= '<p class=\"howto\">' . __( 'This sets an alternate image for your product when mouse is hovered. Works in category view only.', 'sp-theme' ) . '</p>' . PHP_EOL;\n\n\t$output .= '<p><label><strong>' . __( 'Enable Image Swap on Mouse Hover:', 'sp-theme' ) . '</strong></label></p>' . PHP_EOL;\n\t$output .= '<p><label>' . __( 'Enable', 'sp-theme' ) . ' <input type=\"radio\" name=\"alternate_image_hover_status\" value=\"on\" ' . checked( $hover_status, 'on', false ) . ' /></label> <label>' . __( 'Disable', 'sp-theme' ) . ' <input type=\"radio\" name=\"alternate_image_hover_status\" value=\"off\" ' . checked( $hover_status, 'off', false ) . ' /></label></p>' . PHP_EOL;\n\n\tif ( isset( $image ) && ! empty( $image ) ) {\n\t\t$output .= '<p class=\"hide-if-no-js\"><a href=\"#\" class=\"alternate-product-image-media-upload\" data-post-id=\"' . esc_attr( $post->ID ) . '\"><img src=\"' . esc_attr( $image[0] ) . '\" width=\"' . esc_attr( $image[1] ) . '\" height=\"' . esc_attr( $image[2] ) . '\" /></a></p>' . PHP_EOL;\n\t\t$output .= '<p class=\"hide-if-no-js\"><a href=\"#\" class=\"remove-alternate-product-image\">' . __( 'Remove Alternate Product Image', 'sp-theme' ) . '</a></p>' . PHP_EOL;\n\t} else {\n\t\t$output .= '<p class=\"hide-if-no-js\"><a href=\"#\" class=\"alternate-product-image-media-upload\" data-post-id=\"' . esc_attr( $post->ID ) . '\">' . __( 'Set Alternate Product Image', 'sp-theme' ) . '</a></p>' . PHP_EOL;\n\t}\n\n\t$output .= '<input type=\"hidden\" id=\"alternate-product-image\" value=\"' . esc_attr( $image_id ) . '\" name=\"alternate_product_image\" />' . PHP_EOL;\n\n\techo $output;\n}", "public function setCategory2($val)\n {\n $this->_propDict[\"category2\"] = $val;\n return $this;\n }", "public function setPlate1($plate1 = null)\n {\n // validation for constraint: string\n if (!is_null($plate1) && !is_string($plate1)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($plate1, true), gettype($plate1)), __LINE__);\n }\n if (is_null($plate1) || (is_array($plate1) && empty($plate1))) {\n unset($this->plate1);\n } else {\n $this->plate1 = $plate1;\n }\n return $this;\n }", "public function setAlternativeService(object $alternative): void;", "public function setProducts(array $products = []): void\n {\n $xml = '';\n\n foreach ($products as $id) {\n $xml .= '<product-set-product product-id=\"' . Xml::escape($id) . '\" />' . PHP_EOL;\n }\n\n $this->elements['product-set-products'] = $xml;\n }", "public static function getAltAttribute(int $id = 0){\n // vars\n $output = '';\n $lang = prefix_core_BaseFunctions::getCurrentLang();\n // check if active lang is default or not\n if($lang == SELF::$WPimgAttr_Alt_languages[0]):\n // default language\n $output .= get_post_meta($id, '_wp_attachment_image_alt', TRUE);\n else:\n // alternative text\n $name = SELF::$WPimgAttr_Alt_prefix . $lang;\n $output .= get_post_meta($id, $name, true);\n endif;\n // output\n return $output;\n }", "public function setRef2($ref2) {\n $this->_ref2 = $ref2;\n }", "public function setPlate2($plate2 = null)\n {\n // validation for constraint: string\n if (!is_null($plate2) && !is_string($plate2)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($plate2, true), gettype($plate2)), __LINE__);\n }\n if (is_null($plate2) || (is_array($plate2) && empty($plate2))) {\n unset($this->plate2);\n } else {\n $this->plate2 = $plate2;\n }\n return $this;\n }", "public function setPlate1CountryDesc($plate1CountryDesc = null)\n {\n // validation for constraint: string\n if (!is_null($plate1CountryDesc) && !is_string($plate1CountryDesc)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($plate1CountryDesc, true), gettype($plate1CountryDesc)), __LINE__);\n }\n if (is_null($plate1CountryDesc) || (is_array($plate1CountryDesc) && empty($plate1CountryDesc))) {\n unset($this->plate1CountryDesc);\n } else {\n $this->plate1CountryDesc = $plate1CountryDesc;\n }\n return $this;\n }", "public function getPrecio1()\n {\n return $this->precio1;\n }", "private function actPrecioLotes($etapa, $costom2){\n $lotes = Lote::join('modelos','lotes.modelo_id','=','modelos.id')\n ->select('lotes.id')->where('lotes.etapa_id','=',$etapa)\n ->where('lotes.contrato','=',0)\n ->where('modelos.nombre','=','Terreno')->get();\n\n if(sizeof($lotes)){\n foreach ($lotes as $index => $lot) {\n $l= Lote::findOrFail($lot->id);\n $l->precio_base = $costom2 * $l->terreno;\n $l->save();\n }\n }\n }", "function setIdkitprodutos($idkitprodutos) {\n $this->idkitprodutos = $idkitprodutos;\n }", "public function setEditorial1($v)\n\t{\n\n\t\tif ($this->editorial1 !== $v || $v === false) {\n\t\t\t$this->editorial1 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL1;\n\t\t}\n\n\t}", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public static function product($product)\n {\n static::$product = $product;\n }", "public function setDefaultProduct($product) {\n $this->values->put('DefaultProduct', $product);\n }", "public function WPimgAttr_Alt_saveAltAttributes(int $id = 0){\n // save field for each language\n foreach (SELF::$WPimgAttr_Alt_languages as $key => $lang) {\n if($key > 0):\n // get field name\n $var_name = SELF::$WPimgAttr_Alt_prefix . $lang;\n // save value\n if ( isset( $_REQUEST['attachments'][ $id ][$var_name] ) ):\n $new_value = $_REQUEST['attachments'][ $id ][$var_name];\n update_post_meta( $id, $var_name, $new_value );\n endif;\n endif;\n }\n }", "public function setProduct(LineItemProduct $product)\n\t{\n\t\t$this->addKeyValue('product', $product); \n\n\t}", "function setAlturaDuplaLinha($lAlturaDupla) {\n\n if ($lAlturaDupla) {\n $sComando = chr(100) . \"1\";\n } else {\n $sComando = chr(100) . \"0\";\n }\n parent::addComando($sComando);\n }", "function changeProduct($cart_table_id,$true_or_false)\n {\n $this->pdelivery[$cart_table_id]=$true_or_false; //change product group delivery\n }", "public function set_alt_responses(array $alt_responses)\n {\n $this->alt_responses = $alt_responses;\n }", "function setSyncProdDesc()\n {\n }", "public function alejarCamaraAlumnos2() {\n\n self::$alumnos2->alejarZoom();\n\n }", "function setSyncItemsCodeProduct()\n {\n }", "public function setProdRelated2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related2 !== $v) {\n $this->prod_related2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED2] = true;\n }\n\n return $this;\n }", "public function setProd_niche ($prod_niche) {\n\t$this->prod_niche = $this->getClass()->getFieldDefinition(\"prod_niche\")->preSetData($this, $prod_niche);\n\treturn $this;\n}", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "public function alejarCamaraAlumnos1() {\n\n self::$alumnos1->alejarZoom();\n\n }", "public function setProductQuantities(array $variations = []): void\n {\n $xml = '';\n\n foreach ($variations as $id => $quantity) {\n $xml .= '<bundled-product product-id=\"' . Xml::escape($id) . '\">';\n $xml .= '<quantity>' . Xml::escape($quantity) . '</quantity>';\n $xml .= '</bundled-product>' . PHP_EOL;\n }\n\n $this->elements['bundled-products'] = $xml;\n }", "public function setPlafond1RuammTr2(?float $plafond1RuammTr2): DeclarationCafat {\n $this->plafond1RuammTr2 = $plafond1RuammTr2;\n return $this;\n }", "public function setAltVideo($altVideo)\n {\n $this->altVideo = $altVideo;\n\n return $this;\n }", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function setProduct_img ($product_img) {\n\t$this->product_img = $product_img;\n\treturn $this;\n}", "public function setCertificateSubjectAlternativeNameFormatString(?string $value): void {\n $this->getBackingStore()->set('certificateSubjectAlternativeNameFormatString', $value);\n }", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "public function set_product($_product)\n {\n $this->_product = $_product;\n\n return $this;\n }", "public function setProduct(Product $product);", "public function useAlternativeName(): void\n {\n $this->useAlternateName = true;\n }", "public function update_lp_palettes_v2( $palettes_v2 ) {\n\t\tupdate_post_meta( $this->lp_id, static::LP_PALETTES, $palettes_v2 );\n\n\t\t$this->skin_palettes = $palettes_v2;\n\t}", "public function setNumero1($num1) {\n\t\t$this->numero1 = $num1;\n\t}", "public function setAltNick( $nick )\r\n {\r\n $this->_altNick = $nick;\r\n }", "private function checkRowAltRange($rowAlt)\n {\n return ($rowAlt > 0) ? $rowAlt : $this->rowAlt;\n }", "public function edit_3Action(Produits_2 $produit2)\n {\n $user = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n \n $produits = $em->getRepository('KountacBundle:Produits_3')->getProduct_3($produit2);\n \n return $this->render('produits/edit_3.html.twig', array(\n 'produit2' => $produit2,\n 'produits' => $produits,\n 'user' => $user,\n ));\n }", "public function setNumero1($numero1) {\n\t\t$this->numero1 = $numero1;\n\t}", "public function getAlt(): string\n {\n return htmlspecialchars($this->getDescription(), ENT_QUOTES);\n }", "function setDefault($col, $precedence){\n $this->setRecord(2, $col, $precedence);\n }", "function column_alt_text( $item ) {\r\n\t\tif ( isset( $item->mla_wp_attachment_image_alt ) ) {\r\n\t\t\tif ( is_array( $item->mla_wp_attachment_image_alt ) ) {\r\n\t\t\t\t$alt_text = $item->mla_wp_attachment_image_alt[0];\r\n\t\t\t} else {\r\n\t\t\t\t$alt_text = $item->mla_wp_attachment_image_alt;\r\n\t\t\t}\r\n\r\n\t\t\treturn sprintf( '<a href=\"%1$s\" title=\"' . __( 'Filter by', 'media-library-assistant' ) . ' &#8220;%2$s&#8221;\">%3$s</a>', esc_url( add_query_arg( array_merge( array(\r\n\t\t\t\t'page' => MLACore::ADMIN_PAGE_SLUG,\r\n\t\t\t\t'mla-metakey' => '_wp_attachment_image_alt',\r\n\t\t\t\t'mla-metavalue' => urlencode( $alt_text ),\r\n\t\t\t\t'heading_suffix' => urlencode( __( 'ALT Text', 'media-library-assistant' ) . ': ' . $alt_text ) \r\n\t\t\t), self::mla_submenu_arguments( false ) ), 'upload.php' ) ), esc_html( $alt_text ), esc_html( $alt_text ) );\r\n\t\t}\r\n\r\n\t\treturn '';\r\n\t}", "public function setCertificateSubjectAlternativeNameFormat(?SubjectAlternativeNameType $value): void {\n $this->getBackingStore()->set('certificateSubjectAlternativeNameFormat', $value);\n }", "public function setNoMultiShipping(){\n $emptyCache = false;\n $db = JFactory::getDBO();\n if (JeproshopSettingModelSetting::getValue('allow_multi_shipping')){\n // Upgrading quantities\n $query = \"SELECT sum(\" . $db->quoteName('quantity') . \") AS quantity, product_id, product_attribute_id, count(*) as count FROM \";\n $query .= $db->quoteName('#__jeproshop_cart_product') . \" WHERE \" . $db->quoteName('cart_id') . \" = \" . (int)$this->cart_id . \" AND \" ;\n $query .= $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id . \" GROUP BY product_id, product_attribute_id HAVING count > 1\";\n\n $db->setQuery($query);\n $products = $db->loadObjectList();\n\n foreach ($products as $product){\n $query = \"UPDATE \" . $db->quoteName('#__jeproshop_cart_product') . \" SET \" . $db->quoteName('quantity') . \" = \" . $product->quantity;\n $query .= \"\tWHERE \" . $db->quoteName('cart_id') . \" = \".(int)$this->cart_id . \" AND \" . $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id ;\n $query .= \" AND product_id = \" . $product->product_id . \" AND product_attribute_id = \" . $product->product_attribute_id;\n $db->setQuery($query);\n if ($db->query())\n $emptyCache = true;\n }\n\n // Merging multiple lines\n $query = \"DELETE cart_product_1 FROM \" . $db->quoteName('#__jeproshop_cart_product') . \" AS cart_product_1 INNER JOIN \";\n $query .= $db->quoteName('#__jeproshop_cart_product') . \" AS cart_product_2 ON ((cart_product_1.cart_id = cart_product_2.\";\n $query .= \"cart_id) AND (cart_product_1.product_id = cart_product_2.product_id) AND (cart_product_1.product_attribute_id = \";\n $query .= \"cart_product_2.product_attribute_id) AND (cart_product_1.address_delivery_id <> cart_product_2.address_delivery_id) \";\n $query .= \" AND (cart_product_1.date_add > cart_product_2.date_add) )\";\n $db->setQuery($query);\n $db->query();\n }\n\n // Update delivery address for each product line\n $query = \"UPDATE \" . $db->quoteName('#__jeproshop_cart_product') . \" SET \" . $db->quoteName('address_delivery_id') . \" = ( SELECT \";\n $query .= $db->quoteName('address_delivery_id') . \" FROM \" . $db->quoteName('#__jeproshop_cart') . \" WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . \" AND \" . $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id . \") WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . (JeproshopSettingModelSetting::getValue('allow_multi_shipping') ? \" AND \" . $db->quoteName('shop_id') . \" = \" .(int)$this->shop_id : \"\");\n\n $db->setQuery($query);\n\n $cache_id = 'jeproshop_cart_set_no_multi_shipping'.(int)$this->cart_id.'_'.(int)$this->shop_id .((isset($this->address_delivery_id) && $this->address_delivery_id) ? '-'.(int)$this->address_delivery_id : '');\n if (!JeproshopCache::isStored($cache_id)){\n $db->setQuery($query);\n if ($result = (bool)$db->query())\n $emptyCache = true;\n JeproshopCache::store($cache_id, $result);\n }\n\n if (JeproshopCustomization::isFeaturePublished()){\n //Db::getInstance()->execute(\n\t\t\t$query = \" UPDATE \" . $db->quoteName('#__jeproshop_customization') . \" SET \" . $db->quoteName('address_delivery_id') . \" = ( SELECT \";\n $query .= $db->quoteName('address_delivery_id') . \" FROM \" . $db->quoteName('#__jeproshop_cart') . \" WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . \" ) WHERE \" . $db->quoteName('cart_id') . \" = \" .(int)$this->cart_id;\n\n $db->setQuery($query);\n $db->query();\n }\n if ($emptyCache){\n $this->_products = null;\n }\n }", "function setAdditionalProductTag($key, $value)\n {\n $this->_tag_value_cache = array();\n $this->_fAdditionalTagList[$key] = $value;\n }", "public function getAltura() \r\n\t{\r\n\t\treturn $this->iAltura;\r\n\t}", "public function setLine2($line2)\n {\n $this->json()->line2 = $line2;\n }", "public function setProductName($product_name){\n $this->product_name = $product_name;\n }", "public function setReqAltEmail($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->req_alt_email !== $v) {\n\t\t\t$this->req_alt_email = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::REQ_ALT_EMAIL;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function product_update_post()\n\t\t\t\t{\n\t\t\t\t}" ]
[ "0.7776202", "0.7136761", "0.66220325", "0.6023549", "0.56174666", "0.55277437", "0.5434818", "0.53381836", "0.52828383", "0.52592254", "0.5098499", "0.5059096", "0.50057876", "0.49232057", "0.48664072", "0.4824234", "0.47598723", "0.4753642", "0.4729912", "0.46856177", "0.4637249", "0.45942315", "0.45626798", "0.45529437", "0.4529309", "0.44883448", "0.4481445", "0.44625384", "0.44480982", "0.4446649", "0.44414586", "0.44401973", "0.44298166", "0.44220343", "0.44220343", "0.44184008", "0.44065312", "0.43844283", "0.43645224", "0.43459308", "0.43304378", "0.43199253", "0.43157393", "0.4310149", "0.43089947", "0.43071225", "0.43023482", "0.42948997", "0.42918032", "0.4280651", "0.4266334", "0.42610228", "0.42543313", "0.42478618", "0.4245926", "0.4243497", "0.423972", "0.42216942", "0.42200375", "0.4210555", "0.42097738", "0.4203285", "0.41958722", "0.41892454", "0.4187218", "0.4186985", "0.41748354", "0.41712642", "0.41652837", "0.41638765", "0.41564554", "0.41486454", "0.41484305", "0.4140918", "0.41298413", "0.41286245", "0.41240892", "0.4123905", "0.41172233", "0.4113398", "0.4109259", "0.4109153", "0.41001073", "0.4099377", "0.40887886", "0.40870672", "0.40854084", "0.4083921", "0.40756565", "0.4075463", "0.407008", "0.40693212", "0.40677148", "0.40643743", "0.40623802", "0.40591547", "0.40560365", "0.40552488", "0.40535972", "0.40499607" ]
0.7140115
1
setProdAlt2() Set the value of [prod_alt3] column.
public function setProdAlt3($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_alt3 !== $v) { $this->prod_alt3 = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdAlt2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt2 !== $v) {\n $this->prod_alt2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true;\n }\n\n return $this;\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "public function setProdAlt1($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt1 !== $v) {\n $this->prod_alt1 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT1] = true;\n }\n\n return $this;\n }", "public function setAlt($alt)\n {\n $this->alt = $alt;\n $this->setAttributes(\"Alt\");\n }", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function setAltText($alt)\n {\n $this->_alt = $alt;\n }", "public function setRowAlt($rowAlt)\n {\n $this->rowAlt = $this->checkRowAltRange($rowAlt);\n $this->childNodes = [];\n $this->append($this->makeTableRows());\n }", "public function setProdAlt4($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt4 !== $v) {\n $this->prod_alt4 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT4] = true;\n }\n\n return $this;\n }", "public function setAltura($iAltura, $sUnidade = \"px\") \r\n\t{\r\n\t\t$this->iAltura = $iAltura;\r\n\t\t$this->sUnidadeAltura = $sUnidade;\r\n\t}", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function edit_3Action(Produits_2 $produit2)\n {\n $user = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n \n $produits = $em->getRepository('KountacBundle:Produits_3')->getProduct_3($produit2);\n \n return $this->render('produits/edit_3.html.twig', array(\n 'produit2' => $produit2,\n 'produits' => $produits,\n 'user' => $user,\n ));\n }", "public function setAltura($iAltura) {\n $this->iAltura = $iAltura;\n }", "public function setCategory2($val)\n {\n $this->_propDict[\"category2\"] = $val;\n return $this;\n }", "public function setEditorial2($v)\n\t{\n\n\t\tif ($this->editorial2 !== $v || $v === false) {\n\t\t\t$this->editorial2 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL2;\n\t\t}\n\n\t}", "public function setValue2($value){\n $this->_value2 = $value;\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function update_lp_palettes_v2( $palettes_v2 ) {\n\t\tupdate_post_meta( $this->lp_id, static::LP_PALETTES, $palettes_v2 );\n\n\t\t$this->skin_palettes = $palettes_v2;\n\t}", "public function setMagia2Attribute($value) {\n $this->attributes['magia2'] = $this->verificaAtributo($value, true);\n }", "public function setEditorial3($v)\n\t{\n\n\t\tif ($this->editorial3 !== $v || $v === false) {\n\t\t\t$this->editorial3 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL3;\n\t\t}\n\n\t}", "private function SetProductImages()\n\t{\n\n\t\t$GLOBALS['ProductThumbWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\t\t$GLOBALS['ProductThumbHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\n\t\t$GLOBALS['ProductMaxTinyWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\t\t$GLOBALS['ProductMaxTinyHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\n\t\t$GLOBALS['ProductTinyBoxWidth'] = $GLOBALS['ProductMaxTinyWidth']+4;\n\t\t$GLOBALS['ProductTinyBoxHeight'] = $GLOBALS['ProductMaxTinyHeight']+4;\n\n\n\t\t$GLOBALS['ProductMaxZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductMaxZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\t\t$GLOBALS['ProductZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\n\t\t$productImages = ISC_PRODUCT_IMAGE::getProductImagesFromDatabase($GLOBALS['ProductId'], null, false, true);\n\t\t$GLOBALS['NumProdImages'] = count($productImages);\n\n\t\t$GLOBALS['CurrentProdThumbImage'] = 0;\n\t\t$thumb = '';\n\t\t$curZoomImage = '';\n\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] = '';\n\t\t$GLOBALS['HideImageCarousel'] = 'display:none;';\n\t\t$GLOBALS['HideMorePicturesLink'] = 'display:none;';\n\t\t$thumbImageDescription = '';\n\t\t$i = 0;\n\n\t\t$GLOBALS['ProdImageJavascript'] = '';\n\t\t$GLOBALS['ProdImageZoomJavascript'] = '';\n\t\t$GLOBALS['LightBoxImageList'] = '';\n\t\t$GLOBALS['ZoomImageMaxWidth'] = 0;\n\t\t$GLOBALS['ZoomImageMaxHeight'] = 0;\n\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = 0;\n\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = 'display: none';\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t//Show image carousel\n\n\t\t\tif ($GLOBALS['NumProdImages'] == 2) {\n\t\t\t\t$var = \"MorePictures1\";\n\t\t\t} else if ($GLOBALS['NumProdImages'] == 1) {\n\t\t\t\t$var = \"SeeLargerImage\";\n\t\t\t} else {\n\t\t\t\t$var = \"MorePictures2\";\n\t\t\t}\n\n\t\t\t$GLOBALS['SeeMorePictures'] = sprintf(GetLang($var), count($productImages) - 1);\n\t\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = '';\n\n\t\t\tif (GetConfig('ProductImagesTinyThumbnailsEnabled')) {\n\t\t\t\t$GLOBALS['HideImageCarousel'] = '';\n\t\t\t} else {\n\t\t\t\t$GLOBALS['HideMorePicturesLink'] = '';\n\t\t\t}\n\n\t\t\t$continue=false;\n\n\t\t\tforeach ($productImages as $productImage) {\n\n\t\t\t\t$thumbURL = '';\n\t\t\t\t$zoomImageURL = '';\n\n\t\t\t\ttry{\n\t\t\t\t\t$thumbURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_STANDARD, true);\n\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\ttry{\n\t\t\t\t\t$zoomImageURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_ZOOM, true);\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\tif($thumbURL == '' && $zoomImageURL == '') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$resizedZoomDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t\t\t$resizedTinyDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\t\t\t\t//calculate the max zoom image width and height\n\t\t\t\tif ($GLOBALS['ZoomImageMaxWidth'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]) {\n\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t//the height of the image has got the max width needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\tif ($GLOBALS['ZoomImageMaxHeight'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]) {\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t//the width of the image has got the max height needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeightWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['ImageDescription'] = isc_html_escape($productImage->getDescription());\n\t\t\t\tif($GLOBALS['ImageDescription'] == '') {\n\t\t\t\t\t$GLOBALS['ImageDescription'] = GetLang(\"Image\") . \" \" . ($i + 1);\n\t\t\t\t}\n\n\t\t\t\t//show image carousel\n\t\t\t\tif(GetConfig('ProductImagesTinyThumbnailsEnabled')==1) {\n\n\t\t\t\t\t$GLOBALS['ProdImageJavascript'] .= \"\n\t\t\t\t\t\tThumbURLs[\".$i.\"] = \" . isc_json_encode($thumbURL) . \";\n\t\t\t\t\t\tProductImageDescriptions[\".$i.\"] = \" . isc_json_encode($GLOBALS['ImageDescription']) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$GLOBALS['TinyImageOverJavascript'] = \"showProductThumbImage(\".$i.\")\";\n\t\t\t\t\t//$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\n\t\t\t\t\ttry{\n\t\t\t\t\t\t$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\t\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ProductThumbIndex'] = $i;\n\t\t\t\t\tif(GetConfig('ProductImageMode') == 'lightbox') {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImageLightBox(\".$i.\"); return false;\";\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImage('\".GetConfig('ShopPath').\"/productimage.php', \".$GLOBALS['ProductId'].\", \".$i.\");\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['TinyImageWidth'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t$GLOBALS['TinyImageHeight'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t$GLOBALS['TinyImageTopPadding'] = floor(($GLOBALS['ProductMaxTinyHeight'] - $GLOBALS['TinyImageHeight']) / 2);\n\t\t\t\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductTinyImage\");\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\tif(GetConfig('ProductImagesImageZoomEnabled') == 1) {\n\t\t\t\t\t//check if zoom image is large enough for image zoomer\n\t\t\t\t\tif($resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]<ISC_PRODUCT_IMAGE_MIN_ZOOM_WIDTH && $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]<ISC_PRODUCT_IMAGE_MIN_ZOOM_HEIGHT) {\n\t\t\t\t\t\t$zoomImageURL = '';\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['ProdImageZoomJavascript'] .= \"\n\t\t\t\t\t\tZoomImageURLs[\".$i.\"] = \" . isc_json_encode($zoomImageURL) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\t//\t$GLOBALS['ProductZoomImageURL'] = $zoomImageURL;\n\n\t\t\t\t//this image is the product page thumbnail\n\t\t\t\tif($i==0) {\n\t\t\t\t\t//get the thumb image for product page\n\t\t\t\t\t$thumb = $thumbURL;\n\t\t\t\t\t$curZoomImage = $zoomImageURL;\n\t\t\t\t\t$thumbImageDescription = $GLOBALS['ImageDescription'];\n\t\t\t\t\t//if there is no need to loop through images anymore, get out from the loop.\n\t\t\t\t\tif($continue === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['VisibleImageTotal'] = $i+1;\n\n\t\t$GLOBALS['ShowImageZoomer'] = GetConfig('ProductImagesImageZoomEnabled');\n\t\tif ($GLOBALS['ShowImageZoomer']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductImageZoomer'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductImageZoomer\");\n\t\t}\n\t\t$GLOBALS['ZoomImageURL'] = $curZoomImage;\n\n\t\t//if no product thumb images\n\t\tif($thumb == '') {\n\t\t\tif(GetConfig('DefaultProductImage') == 'template') {\n\t\t\t\t$thumb = $GLOBALS['IMG_PATH'].'/ProductDefault.gif';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$thumb = GetConfig('ShopPath').'/'.GetConfig('DefaultProductImage');\n\t\t\t}\n\t\t}\n\n\t\t// need to check for variation images\n\t\t$GLOBALS['ImageDescription'] = $thumbImageDescription;\n\t\t$GLOBALS['ThumbImageURL'] = $thumb;\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('FastProductThumbImage');\n\t\t} else {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ProductThumbImagePlaceholder');\n\t\t}\n\t}", "public function update_lp_palettes_config_v2( $palettes_config_v2 ) {\n\t\tupdate_post_meta( $this->lp_id, static::LP_PALETTES_CONFIG, $palettes_config_v2 );\n\n\t\t$this->skin_palettes_config = $palettes_config_v2;\n\t}", "public function setRef2($ref2) {\n $this->_ref2 = $ref2;\n }", "public function setSearchArgumentAlt($value)\n {\n $this->searchArgumentAlt = $value;\n }", "public function getAlt()\n {\n return $this->alt;\n }", "public function WPimgAttr_Alt_saveAltAttributes(int $id = 0){\n // save field for each language\n foreach (SELF::$WPimgAttr_Alt_languages as $key => $lang) {\n if($key > 0):\n // get field name\n $var_name = SELF::$WPimgAttr_Alt_prefix . $lang;\n // save value\n if ( isset( $_REQUEST['attachments'][ $id ][$var_name] ) ):\n $new_value = $_REQUEST['attachments'][ $id ][$var_name];\n update_post_meta( $id, $var_name, $new_value );\n endif;\n endif;\n }\n }", "public function setMagia3Attribute($value) {\n $this->attributes['magia3'] = $this->verificaAtributo($value, true);\n }", "function product_variable_attributes_countries_prices_wc2_2( $loop, $variation_data, $variation ) {\r\n\r\n\t\t\tif ( count( TFLS()->get_regions() ) ) {\r\n\r\n\t\t\t\t?>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td colspan=\"2\"><strong>Price Based on Country<strong></td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<?php\r\n\r\n\t\t\t\tforeach ( TFLS()->get_regions() as $key => $value ) {\r\n\r\n\t\t\t\t\t$placeholder = ( $value['empty_price_method'] == 'exchange_rate' ? __( 'Apply a exchange rate' ) : '' );\r\n\t\t\t\t\t?>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td colspan=\"2\"><?php echo __( 'Price for', 'woocommerce-tfls' ) . ' ' . $value['name']; ?></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<?php\r\n\r\n\t\t\t\t\t\t\t$id = '_' . $key . '_variable_price';\r\n\r\n\t\t\t\t\t\t\t$price = wc_format_localized_price( isset( $variation_data[ $id ] ) ? esc_attr( $variation_data[ $id ][0] ) : '' );\r\n\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t<label><?php echo __( 'Regular Price', 'woocommerce' ) . ' (' . get_woocommerce_currency_symbol( $value['currency'] ) . ')'; ?></label>\r\n\t\t\t\t\t\t\t<input type=\"text\" name=\"<?php echo $id . '[' . $loop . ']'; ?>\"\r\n\t\t\t\t\t\t\t value=\"<?php echo $price; ?>\" class=\"wc_input_price\"\r\n\t\t\t\t\t\t\t placeholder=\"<?php echo $placeholder; ?>\"/>\r\n\t\t\t\t\t\t</td>\r\n\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<?php\r\n\r\n\t\t\t\t\t\t\t$id = '_' . $key . '_variable_sale_price';\r\n\r\n\t\t\t\t\t\t\t$price = wc_format_localized_price( isset( $variation_data[ $id ] ) ? esc_attr( $variation_data[ $id ][0] ) : '' );\r\n\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t<label><?php echo __( 'Sale Price', 'woocommerce' ) . ' (' . get_woocommerce_currency_symbol( $value['currency'] ) . ')'; ?></label>\r\n\t\t\t\t\t\t\t<input type=\"text\" name=\"<?php echo $id . '[' . $loop . ']'; ?>\"\r\n\t\t\t\t\t\t\t value=\"<?php echo $price; ?>\" class=\"wc_input_price\"/>\r\n\t\t\t\t\t\t</td>\r\n\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<?php\r\n\r\n\t\t\t\t\t\t\t$id = '_' . $key . '_variable_wholesale_price';\r\n\r\n\t\t\t\t\t\t\t$price = wc_format_localized_price( usset( $variation_data[$id] ) ? esc_attr( $variation_data[$id][0] ) : '' );\r\n\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t<label><?php echo __( 'Wholesale Price', 'woocommerce' ) . ' )' . get_woocommerce_currency_symbol( $value['currency'] ) . ')'; ?></label>\r\n\t\t\t\t\t\t\t<input type=\"text\" name=\"<?php echo $id . '[' . $loop .']'; ?>\" value=\"<?php echo $price; ?>\" class=\"wc_input_price\" />\r\n\t\t\t\t\t\t</td>\r\n\r\n\t\t\t\t\t</tr>\r\n\r\n\t\t\t\t<?php\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}", "public function _setLotNo2($lotNo2) {\n\t\t$this->_lotNo2 = $lotNo2;\n\t}", "public function setCategory3($val)\n {\n $this->_propDict[\"category3\"] = $val;\n return $this;\n }", "function setBeneficiario2($beneficiario2) {\r\n $this->beneficiario2 = $beneficiario2;\r\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "public function setId2($var)\n {\n GPBUtil::checkString($var, True);\n $this->id2 = $var;\n\n return $this;\n }", "function _sp_custom_box_alternate_product_image( $post ) {\n\twp_nonce_field( '_sp_alternate_product_image', '_sp_alternate_product_image_nonce' );\n\n\t// get saved settings\n\t$image_id = absint( get_post_meta( $post->ID, '_sp_alternate_product_image_id', true ) );\n\t$hover_status = get_post_meta( $post->ID, '_sp_alternate_product_image_on_hover_status', true );\n\n\t// set a default\n\tif ( ! isset( $hover_status ) || empty( $hover_status ) )\n\t\t$hover_status = 'off';\n\n\tif ( isset( $image_id ) && ! empty( $image_id ) ) {\n\t\t$image = wp_get_attachment_image_src( $image_id, array( 175, 175 ) );\n\t}\n\n\t$output = '';\n\t$output .= '<p class=\"howto\">' . __( 'This sets an alternate image for your product when mouse is hovered. Works in category view only.', 'sp-theme' ) . '</p>' . PHP_EOL;\n\n\t$output .= '<p><label><strong>' . __( 'Enable Image Swap on Mouse Hover:', 'sp-theme' ) . '</strong></label></p>' . PHP_EOL;\n\t$output .= '<p><label>' . __( 'Enable', 'sp-theme' ) . ' <input type=\"radio\" name=\"alternate_image_hover_status\" value=\"on\" ' . checked( $hover_status, 'on', false ) . ' /></label> <label>' . __( 'Disable', 'sp-theme' ) . ' <input type=\"radio\" name=\"alternate_image_hover_status\" value=\"off\" ' . checked( $hover_status, 'off', false ) . ' /></label></p>' . PHP_EOL;\n\n\tif ( isset( $image ) && ! empty( $image ) ) {\n\t\t$output .= '<p class=\"hide-if-no-js\"><a href=\"#\" class=\"alternate-product-image-media-upload\" data-post-id=\"' . esc_attr( $post->ID ) . '\"><img src=\"' . esc_attr( $image[0] ) . '\" width=\"' . esc_attr( $image[1] ) . '\" height=\"' . esc_attr( $image[2] ) . '\" /></a></p>' . PHP_EOL;\n\t\t$output .= '<p class=\"hide-if-no-js\"><a href=\"#\" class=\"remove-alternate-product-image\">' . __( 'Remove Alternate Product Image', 'sp-theme' ) . '</a></p>' . PHP_EOL;\n\t} else {\n\t\t$output .= '<p class=\"hide-if-no-js\"><a href=\"#\" class=\"alternate-product-image-media-upload\" data-post-id=\"' . esc_attr( $post->ID ) . '\">' . __( 'Set Alternate Product Image', 'sp-theme' ) . '</a></p>' . PHP_EOL;\n\t}\n\n\t$output .= '<input type=\"hidden\" id=\"alternate-product-image\" value=\"' . esc_attr( $image_id ) . '\" name=\"alternate_product_image\" />' . PHP_EOL;\n\n\techo $output;\n}", "public function setEtblAdresse2($etblAdresse2) {\n $this->etblAdresse2 = $etblAdresse2;\n return $this;\n }", "public function setEtblAdresse2($etblAdresse2) {\n $this->etblAdresse2 = $etblAdresse2;\n return $this;\n }", "public function setOpcion2($opt) {\n $this->opcion2 = Funciones::gCodificar($opt);\n }", "public function setAltVideo($altVideo)\n {\n $this->altVideo = $altVideo;\n\n return $this;\n }", "public function setPlate2($plate2 = null)\n {\n // validation for constraint: string\n if (!is_null($plate2) && !is_string($plate2)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($plate2, true), gettype($plate2)), __LINE__);\n }\n if (is_null($plate2) || (is_array($plate2) && empty($plate2))) {\n unset($this->plate2);\n } else {\n $this->plate2 = $plate2;\n }\n return $this;\n }", "public function set_alt_rows() { $this->alt_rows = true; }", "public function _setLotNo3($lotNo3) {\n\t\t$this->_lotNo3 = $lotNo3;\n\t}", "public function setLine2($line2)\n {\n $this->json()->line2 = $line2;\n }", "public function getPointProd2():?int\n {\n //Verifier si au moins un produit 1 est vendu afin de dettminer \n //le nombre de point du produit 2\n\n return $this->produit1<=0 ? 0 : ($this->produit2<=0 ? 0 : $this->produit2 * 5);\n }", "public function setPromotion($first,$second)\n {\n $this->promotion->setPromotion($first,$second);\n //product Id for identify products\n $this->promotion->setProductId($this->id);\n }", "public function setProdRelated2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related2 !== $v) {\n $this->prod_related2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED2] = true;\n }\n\n return $this;\n }", "public function setAltNick( $nick )\r\n {\r\n $this->_altNick = $nick;\r\n }", "public function testSetPv2() {\n\n $obj = new CollabTache();\n\n $obj->setPv2(10.092018);\n $this->assertEquals(10.092018, $obj->getPv2());\n }", "public function setUserPurposeV2(?MailboxRecipientType $value): void {\n $this->getBackingStore()->set('userPurposeV2', $value);\n }", "public function setM3($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->m3 !== $v) {\n $this->m3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_M3] = true;\n }\n\n return $this;\n }", "public function setBestBadge2($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->best_badge_2 !== $v) {\n\t\t\t$this->best_badge_2 = $v;\n\t\t\t$this->modifiedColumns[] = PostPeer::BEST_BADGE_2;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function alt(){\n\t\tif( $this->alt ) {\n\t\t\treturn $this->alt;\n\t\t}//end if\n\n\t\t$this->alt = @file_get_contents( $this->base_dir.'/'.$this->dir . $this->filename . '.alt');\n\n\t\treturn $this->alt;\n\t}", "public function setK2($var)\n {\n GPBUtil::checkUint32($var);\n $this->k2 = $var;\n\n return $this;\n }", "public function useAdminLte3()\n {\n $this->presets = Presets::ADMIN_LTE_3;\n\n return $this;\n }", "public static function getAltAttribute(int $id = 0){\n // vars\n $output = '';\n $lang = prefix_core_BaseFunctions::getCurrentLang();\n // check if active lang is default or not\n if($lang == SELF::$WPimgAttr_Alt_languages[0]):\n // default language\n $output .= get_post_meta($id, '_wp_attachment_image_alt', TRUE);\n else:\n // alternative text\n $name = SELF::$WPimgAttr_Alt_prefix . $lang;\n $output .= get_post_meta($id, $name, true);\n endif;\n // output\n return $output;\n }", "public function setArtist2($value)\n {\n return $this->set('Artist2', $value);\n }", "private function actPrecioLotes($etapa, $costom2){\n $lotes = Lote::join('modelos','lotes.modelo_id','=','modelos.id')\n ->select('lotes.id')->where('lotes.etapa_id','=',$etapa)\n ->where('lotes.contrato','=',0)\n ->where('modelos.nombre','=','Terreno')->get();\n\n if(sizeof($lotes)){\n foreach ($lotes as $index => $lot) {\n $l= Lote::findOrFail($lot->id);\n $l->precio_base = $costom2 * $l->terreno;\n $l->save();\n }\n }\n }", "public function alt(string $altText): self\n {\n if (strlen($altText) > 2000) {\n throw new InvalidArgumentException('Maximum length for the alt text field is 2000 characters.');\n }\n\n $this->altText = $altText;\n\n return $this;\n }", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "public function updateExperience($id, $PE1, $PE2=0){\n\t\t\t$query = new Query();\n\n\t\t\t$query->tables = array('pgdb');\n\t\t\t$query->fields = array('PE', 'PE2');\n\t\t\t$query->values = array($PE1, $PE2);\n\t\t\t$query->filters = \"id=\".$id;\n\n\t\t\t$query->DoUpdate();\n\t\t}", "public function setOpcion3($opt) {\n $this->opcion3 = Funciones::gCodificar($opt);\n }", "public function set_address_2( $address ) {\n\t\t$this->set_prop( 'address_2', $address );\n\t}", "private function upgrade_0_2_to_0_3()\n {\n $sql = \"ALTER TABLE {$this->config->dbTablePrefix}keyword\n ADD `lang` char(2) NOT NULL default 'en' AFTER `status`,\n ADD `lang_dir` char(3) NOT NULL default 'ltr' AFTER `modifydate`,\n ADD `format` varchar(20) NOT NULL default 'html' AFTER `description`,\n ADD KEY `lang` (`lang`)\";\n\n $this->model->dba->query($sql);\n\n $this->model->action('common','setConfigVar',\n array('data' => array('use_format' => 0,\n 'use_lang' => 0,\n 'default_format' => 'html',\n 'default_lang' => 'en'),\n 'module' => 'keyword') );\n }", "public function setLuasTutupAtapM2($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->luas_tutup_atap_m2 !== $v) {\n $this->luas_tutup_atap_m2 = $v;\n $this->modifiedColumns[] = BangunanPeer::LUAS_TUTUP_ATAP_M2;\n }\n\n\n return $this;\n }", "public function setAddress2($address2)\r\n {\r\n $this->_address2 = $address2;\r\n }", "public function testSetGrilleAnc2() {\n\n $obj = new Employes();\n\n $obj->setGrilleAnc2(\"grilleAnc2\");\n $this->assertEquals(\"grilleAnc2\", $obj->getGrilleAnc2());\n }", "public function setNumber2(float $number2){\n $this->number2 = $number2;\n }", "public function setTax2(?float $tax2): self\n {\n $this->initialized['tax2'] = true;\n $this->tax2 = $tax2;\n\n return $this;\n }", "public function setTargetedVariations($val)\n {\n $this->_propDict[\"targetedVariations\"] = $val;\n return $this;\n }", "public function getAltura() \r\n\t{\r\n\t\treturn $this->iAltura;\r\n\t}", "public function _setTestResult2($testResult2) {\n\t\t$this->_testResult2 = $testResult2;\n\t}", "public static function product($product)\n {\n static::$product = $product;\n }", "public function setLine2(?string $line2): self\n {\n $this->initialized['line2'] = true;\n $this->line2 = $line2;\n\n return $this;\n }", "public function setEtblAdresse3($etblAdresse3) {\n $this->etblAdresse3 = $etblAdresse3;\n return $this;\n }", "public function setTransportNota2($transportNota2)\n {\n $this::validateLength(self::TRANSPORT_NOTA_2, $transportNota2, 50);\n\n $this->transportNota2 = $transportNota2;\n\n return $this;\n }", "public function alejarCamaraAlumnos2() {\n\n self::$alumnos2->alejarZoom();\n\n }", "public function prod($prod);", "public function hook2promotion_set($promotion_id, $tag_id, $tag_cat, $data_arr=array(), $id='') {\n\t\tif(empty($promotion_id) || empty($tag_id) || empty($tag_cat))\n\t\t\treturn false;\n\t\tD2(\"PromotionIndex\")->hook2promotion_set($promotion_id, $tag_id, $tag_cat, $data_arr, $id);\n\t}", "public function setAddress2(string $address_2 = null) : CNabuDataObject\n {\n $this->setValue('nb_icontact_prospect_address_2', $address_2);\n \n return $this;\n }", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "public function setAddress2($address2)\n {\n $this->address2 = $address2;\n }", "public function setV2Id(?string $v2Id): void\n {\n $this->v2Id = $v2Id;\n }", "public function setV2Id(?string $v2Id): void\n {\n $this->v2Id = $v2Id;\n }", "public function setAlertsV2($val)\n {\n $this->_propDict[\"alertsV2\"] = $val;\n return $this;\n }", "public function setNoMultiShipping(){\n $emptyCache = false;\n $db = JFactory::getDBO();\n if (JeproshopSettingModelSetting::getValue('allow_multi_shipping')){\n // Upgrading quantities\n $query = \"SELECT sum(\" . $db->quoteName('quantity') . \") AS quantity, product_id, product_attribute_id, count(*) as count FROM \";\n $query .= $db->quoteName('#__jeproshop_cart_product') . \" WHERE \" . $db->quoteName('cart_id') . \" = \" . (int)$this->cart_id . \" AND \" ;\n $query .= $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id . \" GROUP BY product_id, product_attribute_id HAVING count > 1\";\n\n $db->setQuery($query);\n $products = $db->loadObjectList();\n\n foreach ($products as $product){\n $query = \"UPDATE \" . $db->quoteName('#__jeproshop_cart_product') . \" SET \" . $db->quoteName('quantity') . \" = \" . $product->quantity;\n $query .= \"\tWHERE \" . $db->quoteName('cart_id') . \" = \".(int)$this->cart_id . \" AND \" . $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id ;\n $query .= \" AND product_id = \" . $product->product_id . \" AND product_attribute_id = \" . $product->product_attribute_id;\n $db->setQuery($query);\n if ($db->query())\n $emptyCache = true;\n }\n\n // Merging multiple lines\n $query = \"DELETE cart_product_1 FROM \" . $db->quoteName('#__jeproshop_cart_product') . \" AS cart_product_1 INNER JOIN \";\n $query .= $db->quoteName('#__jeproshop_cart_product') . \" AS cart_product_2 ON ((cart_product_1.cart_id = cart_product_2.\";\n $query .= \"cart_id) AND (cart_product_1.product_id = cart_product_2.product_id) AND (cart_product_1.product_attribute_id = \";\n $query .= \"cart_product_2.product_attribute_id) AND (cart_product_1.address_delivery_id <> cart_product_2.address_delivery_id) \";\n $query .= \" AND (cart_product_1.date_add > cart_product_2.date_add) )\";\n $db->setQuery($query);\n $db->query();\n }\n\n // Update delivery address for each product line\n $query = \"UPDATE \" . $db->quoteName('#__jeproshop_cart_product') . \" SET \" . $db->quoteName('address_delivery_id') . \" = ( SELECT \";\n $query .= $db->quoteName('address_delivery_id') . \" FROM \" . $db->quoteName('#__jeproshop_cart') . \" WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . \" AND \" . $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id . \") WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . (JeproshopSettingModelSetting::getValue('allow_multi_shipping') ? \" AND \" . $db->quoteName('shop_id') . \" = \" .(int)$this->shop_id : \"\");\n\n $db->setQuery($query);\n\n $cache_id = 'jeproshop_cart_set_no_multi_shipping'.(int)$this->cart_id.'_'.(int)$this->shop_id .((isset($this->address_delivery_id) && $this->address_delivery_id) ? '-'.(int)$this->address_delivery_id : '');\n if (!JeproshopCache::isStored($cache_id)){\n $db->setQuery($query);\n if ($result = (bool)$db->query())\n $emptyCache = true;\n JeproshopCache::store($cache_id, $result);\n }\n\n if (JeproshopCustomization::isFeaturePublished()){\n //Db::getInstance()->execute(\n\t\t\t$query = \" UPDATE \" . $db->quoteName('#__jeproshop_customization') . \" SET \" . $db->quoteName('address_delivery_id') . \" = ( SELECT \";\n $query .= $db->quoteName('address_delivery_id') . \" FROM \" . $db->quoteName('#__jeproshop_cart') . \" WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . \" ) WHERE \" . $db->quoteName('cart_id') . \" = \" .(int)$this->cart_id;\n\n $db->setQuery($query);\n $db->query();\n }\n if ($emptyCache){\n $this->_products = null;\n }\n }", "public function setPlate2CountryDesc($plate2CountryDesc = null)\n {\n // validation for constraint: string\n if (!is_null($plate2CountryDesc) && !is_string($plate2CountryDesc)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($plate2CountryDesc, true), gettype($plate2CountryDesc)), __LINE__);\n }\n if (is_null($plate2CountryDesc) || (is_array($plate2CountryDesc) && empty($plate2CountryDesc))) {\n unset($this->plate2CountryDesc);\n } else {\n $this->plate2CountryDesc = $plate2CountryDesc;\n }\n return $this;\n }", "public function _setTestKitName2($testKitName2) {\n\t\t$this->_testKitName2 = $testKitName2;\n\t}", "function column_alt_text( $item ) {\r\n\t\tif ( isset( $item->mla_wp_attachment_image_alt ) ) {\r\n\t\t\tif ( is_array( $item->mla_wp_attachment_image_alt ) ) {\r\n\t\t\t\t$alt_text = $item->mla_wp_attachment_image_alt[0];\r\n\t\t\t} else {\r\n\t\t\t\t$alt_text = $item->mla_wp_attachment_image_alt;\r\n\t\t\t}\r\n\r\n\t\t\treturn sprintf( '<a href=\"%1$s\" title=\"' . __( 'Filter by', 'media-library-assistant' ) . ' &#8220;%2$s&#8221;\">%3$s</a>', esc_url( add_query_arg( array_merge( array(\r\n\t\t\t\t'page' => MLACore::ADMIN_PAGE_SLUG,\r\n\t\t\t\t'mla-metakey' => '_wp_attachment_image_alt',\r\n\t\t\t\t'mla-metavalue' => urlencode( $alt_text ),\r\n\t\t\t\t'heading_suffix' => urlencode( __( 'ALT Text', 'media-library-assistant' ) . ': ' . $alt_text ) \r\n\t\t\t), self::mla_submenu_arguments( false ) ), 'upload.php' ) ), esc_html( $alt_text ), esc_html( $alt_text ) );\r\n\t\t}\r\n\r\n\t\treturn '';\r\n\t}", "public static function es_upgrade_database_for_3_2() {\n\n\t\t$sync_subscribers = get_option( 'ig_es_sync_wp_users' );\n\n\t\t$es_unserialized_data = maybe_unserialize($sync_subscribers);\n\t\tunset($es_unserialized_data['es_commented']);\n\t\tunset($es_unserialized_data['es_commented_group']);\n\n\t\t$es_serialized_data = serialize($es_unserialized_data);\n\t\tupdate_option( 'ig_es_sync_wp_users', $es_serialized_data );\n\n\t\tupdate_option( 'current_sa_email_subscribers_db_version', '3.2' );\n\t}", "public function getCategory2()\n {\n if (array_key_exists(\"category2\", $this->_propDict)) {\n return $this->_propDict[\"category2\"];\n } else {\n return null;\n }\n }", "public function setStreet2(string $street2): void\n {\n $this->_street2 = $street2;\n }", "function alterar($id_n3, $id_tema, $id_n2, $publicado, $n3_perfil, $ordem, $dbhw) {\n\tglobal $esquemaadmin;\n\t$dataCol = array(\n\t\t\t\"publicado\" => $publicado,\n\t\t\t\"id_tema\" => $id_tema,\n\t\t\t\"ordem\" => $ordem,\n\t\t\t\"n3_perfil\" => $n3_perfil\n\t);\n\t$resultado = i3GeoAdminUpdate($dbhw,\"i3geoadmin_n3\",$dataCol,\"WHERE id_n3 = $id_n3\");\n\tif ($resultado === false) {\n\t\treturn false;\n\t}\n\treturn $id_n3;\n}", "public function getAttr2(){\r\n\t\treturn $this->attr2;\r\n\t}", "function set_caption($alt, $title, $iptc_caption, $filename)\n {\n $values = array($this->_params->get('caption_type_iptc') => $iptc_caption,\n $this->_params->get('caption_type_filename') => $filename,\n $this->_params->get('caption_type_title') => $title,\n $this->_params->get('caption_type_alt') => $alt);\n\n ksort($values);\n $caption = '';\n foreach ($values as $key => $val) {\n if ($key and $val) {\n $caption = $val;\n break;\n }\n }\n\n\n return $caption;\n }", "function upgradeDefaultOptions_2_2 ()\n\t{\n\t\t// Keep hardcoded name, in case we change the name at a later stage\n\t\t$oldvalues = get_option( 'avhamazon' );\n\t\t$newvalues = array ('general' => array (), 'widget_wishlist' => array () );\n\n\t\tforeach ( $oldvalues as $name => $value ) {\n\t\t\tif ( array_key_exists( $name, $this->default_options['general'] ) ) {\n\t\t\t\t$newvalues['general'][$name] = $value;\n\t\t\t}\n\t\t\tif ( array_key_exists( $name, $this->default_options['widget_wishlist'] ) ) {\n\t\t\t\t$newvalues['widget_wishlist'][$name] = $value;\n\t\t\t}\n\t\t}\n\t\tdelete_option( 'avhamazon' );\n\t\tadd_option( $this->db_options_name_core, $newvalues );\n\t}", "function setStreet2( &$value )\n {\n $this->Street2 = $value;\n }", "public function setAddress2($fv_address2)\n {\n \tif(!empty($fv_address2))\n \t{\n \treturn $this->fv_address2 = $fv_address2;\n \t}\n \t$this->fv_error_message = $this->fv_error_message .'<br> - Direccion 2 '.ERROR_NULL;\n return $this->fv_address2=null;\n }", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function setC2($C2)\r\n {\r\n $this->C2 = $C2;\r\n\r\n return $this;\r\n }", "public function _setExpDate2($expDate2) {\n\t\t$this->_expDate2 = $expDate2;\n\t}" ]
[ "0.75924057", "0.68237805", "0.6456513", "0.6325634", "0.5845677", "0.57959306", "0.5472798", "0.5328683", "0.5271459", "0.5163879", "0.5098532", "0.5085216", "0.50206274", "0.4955039", "0.4924999", "0.48574647", "0.48318753", "0.48195463", "0.46643573", "0.46482506", "0.4640233", "0.4622647", "0.45867538", "0.45559126", "0.45549557", "0.45490298", "0.45292103", "0.4525578", "0.45200074", "0.45036116", "0.4497846", "0.44914815", "0.4472428", "0.4444627", "0.443835", "0.443536", "0.443536", "0.4433914", "0.44336298", "0.44147053", "0.44114816", "0.44051182", "0.43972027", "0.43746915", "0.4373008", "0.43715048", "0.43551648", "0.4343325", "0.43415558", "0.43379763", "0.43359226", "0.43159154", "0.43015867", "0.4301485", "0.42938456", "0.429123", "0.42875347", "0.4287218", "0.42677668", "0.42601493", "0.42558673", "0.42555627", "0.42307436", "0.4229967", "0.4224442", "0.42045492", "0.42018223", "0.4189308", "0.41750643", "0.4173895", "0.41717935", "0.4163353", "0.4157481", "0.4139357", "0.41383463", "0.41322634", "0.41316321", "0.41258124", "0.41172493", "0.41156274", "0.41155437", "0.41128913", "0.41128913", "0.41088754", "0.41034842", "0.40983197", "0.40937024", "0.40900564", "0.4087149", "0.40855226", "0.408513", "0.40632027", "0.4055159", "0.40534037", "0.40502322", "0.4047073", "0.40378988", "0.40348873", "0.40328145", "0.40278268" ]
0.6930826
1
setProdAlt3() Set the value of [prod_alt4] column.
public function setProdAlt4($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_alt4 !== $v) { $this->prod_alt4 = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT4] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function setProdAlt1($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt1 !== $v) {\n $this->prod_alt1 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT1] = true;\n }\n\n return $this;\n }", "public function setRowAlt($rowAlt)\n {\n $this->rowAlt = $this->checkRowAltRange($rowAlt);\n $this->childNodes = [];\n $this->append($this->makeTableRows());\n }", "public function setAlt($alt)\n {\n $this->alt = $alt;\n $this->setAttributes(\"Alt\");\n }", "public function setM3($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->m3 !== $v) {\n $this->m3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_M3] = true;\n }\n\n return $this;\n }", "public function setProdAlt2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt2 !== $v) {\n $this->prod_alt2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true;\n }\n\n return $this;\n }", "public function setEditorial3($v)\n\t{\n\n\t\tif ($this->editorial3 !== $v || $v === false) {\n\t\t\t$this->editorial3 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL3;\n\t\t}\n\n\t}", "public function setMagia3Attribute($value) {\n $this->attributes['magia3'] = $this->verificaAtributo($value, true);\n }", "public function setCategory3($val)\n {\n $this->_propDict[\"category3\"] = $val;\n return $this;\n }", "public function _setLotNo3($lotNo3) {\n\t\t$this->_lotNo3 = $lotNo3;\n\t}", "public function setAltText($alt)\n {\n $this->_alt = $alt;\n }", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function setProdRelatedM3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related_m3 !== $v) {\n $this->prod_related_m3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED_M3] = true;\n }\n\n return $this;\n }", "public function setEtblAdresse3($etblAdresse3) {\n $this->etblAdresse3 = $etblAdresse3;\n return $this;\n }", "public function setCategory4($val)\n {\n $this->_propDict[\"category4\"] = $val;\n return $this;\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function setAltura($iAltura, $sUnidade = \"px\") \r\n\t{\r\n\t\t$this->iAltura = $iAltura;\r\n\t\t$this->sUnidadeAltura = $sUnidade;\r\n\t}", "public function setLine3($line3)\n {\n $this->json()->line3 = $line3;\n }", "public function useAdminLte3()\n {\n $this->presets = Presets::ADMIN_LTE_3;\n\n return $this;\n }", "public function setOpcion3($opt) {\n $this->opcion3 = Funciones::gCodificar($opt);\n }", "public function setAltura($iAltura) {\n $this->iAltura = $iAltura;\n }", "public function setT3Hashes() {}", "public function _setExpDate3($expDate3) {\n\t\t$this->_expDate3 = $expDate3;\n\t}", "public function testSetPv3() {\n\n $obj = new CollabTache();\n\n $obj->setPv3(10.092018);\n $this->assertEquals(10.092018, $obj->getPv3());\n }", "public function _setTestResult3($testResult3) {\n\t\t$this->_testResult3 = $testResult3;\n\t}", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function getProdRelatedM3()\n {\n return $this->prod_related_m3;\n }", "public function setEmail3($value)\n {\n return $this->set('Email3', $value);\n }", "private function SetProductImages()\n\t{\n\n\t\t$GLOBALS['ProductThumbWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\t\t$GLOBALS['ProductThumbHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\n\t\t$GLOBALS['ProductMaxTinyWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\t\t$GLOBALS['ProductMaxTinyHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\n\t\t$GLOBALS['ProductTinyBoxWidth'] = $GLOBALS['ProductMaxTinyWidth']+4;\n\t\t$GLOBALS['ProductTinyBoxHeight'] = $GLOBALS['ProductMaxTinyHeight']+4;\n\n\n\t\t$GLOBALS['ProductMaxZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductMaxZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\t\t$GLOBALS['ProductZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\n\t\t$productImages = ISC_PRODUCT_IMAGE::getProductImagesFromDatabase($GLOBALS['ProductId'], null, false, true);\n\t\t$GLOBALS['NumProdImages'] = count($productImages);\n\n\t\t$GLOBALS['CurrentProdThumbImage'] = 0;\n\t\t$thumb = '';\n\t\t$curZoomImage = '';\n\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] = '';\n\t\t$GLOBALS['HideImageCarousel'] = 'display:none;';\n\t\t$GLOBALS['HideMorePicturesLink'] = 'display:none;';\n\t\t$thumbImageDescription = '';\n\t\t$i = 0;\n\n\t\t$GLOBALS['ProdImageJavascript'] = '';\n\t\t$GLOBALS['ProdImageZoomJavascript'] = '';\n\t\t$GLOBALS['LightBoxImageList'] = '';\n\t\t$GLOBALS['ZoomImageMaxWidth'] = 0;\n\t\t$GLOBALS['ZoomImageMaxHeight'] = 0;\n\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = 0;\n\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = 'display: none';\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t//Show image carousel\n\n\t\t\tif ($GLOBALS['NumProdImages'] == 2) {\n\t\t\t\t$var = \"MorePictures1\";\n\t\t\t} else if ($GLOBALS['NumProdImages'] == 1) {\n\t\t\t\t$var = \"SeeLargerImage\";\n\t\t\t} else {\n\t\t\t\t$var = \"MorePictures2\";\n\t\t\t}\n\n\t\t\t$GLOBALS['SeeMorePictures'] = sprintf(GetLang($var), count($productImages) - 1);\n\t\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = '';\n\n\t\t\tif (GetConfig('ProductImagesTinyThumbnailsEnabled')) {\n\t\t\t\t$GLOBALS['HideImageCarousel'] = '';\n\t\t\t} else {\n\t\t\t\t$GLOBALS['HideMorePicturesLink'] = '';\n\t\t\t}\n\n\t\t\t$continue=false;\n\n\t\t\tforeach ($productImages as $productImage) {\n\n\t\t\t\t$thumbURL = '';\n\t\t\t\t$zoomImageURL = '';\n\n\t\t\t\ttry{\n\t\t\t\t\t$thumbURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_STANDARD, true);\n\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\ttry{\n\t\t\t\t\t$zoomImageURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_ZOOM, true);\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\tif($thumbURL == '' && $zoomImageURL == '') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$resizedZoomDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t\t\t$resizedTinyDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\t\t\t\t//calculate the max zoom image width and height\n\t\t\t\tif ($GLOBALS['ZoomImageMaxWidth'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]) {\n\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t//the height of the image has got the max width needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\tif ($GLOBALS['ZoomImageMaxHeight'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]) {\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t//the width of the image has got the max height needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeightWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['ImageDescription'] = isc_html_escape($productImage->getDescription());\n\t\t\t\tif($GLOBALS['ImageDescription'] == '') {\n\t\t\t\t\t$GLOBALS['ImageDescription'] = GetLang(\"Image\") . \" \" . ($i + 1);\n\t\t\t\t}\n\n\t\t\t\t//show image carousel\n\t\t\t\tif(GetConfig('ProductImagesTinyThumbnailsEnabled')==1) {\n\n\t\t\t\t\t$GLOBALS['ProdImageJavascript'] .= \"\n\t\t\t\t\t\tThumbURLs[\".$i.\"] = \" . isc_json_encode($thumbURL) . \";\n\t\t\t\t\t\tProductImageDescriptions[\".$i.\"] = \" . isc_json_encode($GLOBALS['ImageDescription']) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$GLOBALS['TinyImageOverJavascript'] = \"showProductThumbImage(\".$i.\")\";\n\t\t\t\t\t//$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\n\t\t\t\t\ttry{\n\t\t\t\t\t\t$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\t\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ProductThumbIndex'] = $i;\n\t\t\t\t\tif(GetConfig('ProductImageMode') == 'lightbox') {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImageLightBox(\".$i.\"); return false;\";\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImage('\".GetConfig('ShopPath').\"/productimage.php', \".$GLOBALS['ProductId'].\", \".$i.\");\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['TinyImageWidth'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t$GLOBALS['TinyImageHeight'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t$GLOBALS['TinyImageTopPadding'] = floor(($GLOBALS['ProductMaxTinyHeight'] - $GLOBALS['TinyImageHeight']) / 2);\n\t\t\t\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductTinyImage\");\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\tif(GetConfig('ProductImagesImageZoomEnabled') == 1) {\n\t\t\t\t\t//check if zoom image is large enough for image zoomer\n\t\t\t\t\tif($resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]<ISC_PRODUCT_IMAGE_MIN_ZOOM_WIDTH && $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]<ISC_PRODUCT_IMAGE_MIN_ZOOM_HEIGHT) {\n\t\t\t\t\t\t$zoomImageURL = '';\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['ProdImageZoomJavascript'] .= \"\n\t\t\t\t\t\tZoomImageURLs[\".$i.\"] = \" . isc_json_encode($zoomImageURL) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\t//\t$GLOBALS['ProductZoomImageURL'] = $zoomImageURL;\n\n\t\t\t\t//this image is the product page thumbnail\n\t\t\t\tif($i==0) {\n\t\t\t\t\t//get the thumb image for product page\n\t\t\t\t\t$thumb = $thumbURL;\n\t\t\t\t\t$curZoomImage = $zoomImageURL;\n\t\t\t\t\t$thumbImageDescription = $GLOBALS['ImageDescription'];\n\t\t\t\t\t//if there is no need to loop through images anymore, get out from the loop.\n\t\t\t\t\tif($continue === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['VisibleImageTotal'] = $i+1;\n\n\t\t$GLOBALS['ShowImageZoomer'] = GetConfig('ProductImagesImageZoomEnabled');\n\t\tif ($GLOBALS['ShowImageZoomer']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductImageZoomer'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductImageZoomer\");\n\t\t}\n\t\t$GLOBALS['ZoomImageURL'] = $curZoomImage;\n\n\t\t//if no product thumb images\n\t\tif($thumb == '') {\n\t\t\tif(GetConfig('DefaultProductImage') == 'template') {\n\t\t\t\t$thumb = $GLOBALS['IMG_PATH'].'/ProductDefault.gif';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$thumb = GetConfig('ShopPath').'/'.GetConfig('DefaultProductImage');\n\t\t\t}\n\t\t}\n\n\t\t// need to check for variation images\n\t\t$GLOBALS['ImageDescription'] = $thumbImageDescription;\n\t\t$GLOBALS['ThumbImageURL'] = $thumb;\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('FastProductThumbImage');\n\t\t} else {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ProductThumbImagePlaceholder');\n\t\t}\n\t}", "public function getAttr3(){\r\n\t\treturn $this->attr3;\r\n\t}", "public function getExpr3()\n {\n return $this->expr3;\n }", "public function WPimgAttr_Alt_saveAltAttributes(int $id = 0){\n // save field for each language\n foreach (SELF::$WPimgAttr_Alt_languages as $key => $lang) {\n if($key > 0):\n // get field name\n $var_name = SELF::$WPimgAttr_Alt_prefix . $lang;\n // save value\n if ( isset( $_REQUEST['attachments'][ $id ][$var_name] ) ):\n $new_value = $_REQUEST['attachments'][ $id ][$var_name];\n update_post_meta( $id, $var_name, $new_value );\n endif;\n endif;\n }\n }", "public function set_alt_rows() { $this->alt_rows = true; }", "public function setSp3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->sp3 !== $v) {\n $this->sp3 = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_SP3] = true;\n }\n\n return $this;\n }", "public function getEtblAdresse3() {\n return $this->etblAdresse3;\n }", "public function testSetGrilleAnc3() {\n\n $obj = new Employes();\n\n $obj->setGrilleAnc3(\"grilleAnc3\");\n $this->assertEquals(\"grilleAnc3\", $obj->getGrilleAnc3());\n }", "protected function installStep3()\n {\n $this->upgrade2005010Step2();\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function getEditorial3()\n\t{\n\n\t\treturn $this->editorial3;\n\t}", "private function step3()\n {\n if ($this->RV == null) {\n return;\n }\n\n if ($this->suffix($this->RV, \"i\") && $this->suffixPreceded($this->RV, \"i\", \"c\")) {\n $this->CT = $this->removeSuffix($this->CT, \"i\");\n }\n }", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "public function setGcId3($gc_id_3)\n {\n $this->gc_id_3 = $gc_id_3;\n\n return $this;\n }", "public function _setTestKitName3($testKitName3) {\n\t\t$this->_testKitName3 = $testKitName3;\n\t}", "public function setID3D($id3d)\n {\n $this->id3d = $id3d;\n }", "public function get3PT() {\n\t\t\treturn \"<p>3PT Pct: \".$this->pt.\"</p>\";\n\t\t}", "public function setVolPondasiM3($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->vol_pondasi_m3 !== $v) {\n $this->vol_pondasi_m3 = $v;\n $this->modifiedColumns[] = BangunanPeer::VOL_PONDASI_M3;\n }\n\n\n return $this;\n }", "public function setThirdVat($thirdVat = null)\n {\n // validation for constraint: string\n if (!is_null($thirdVat) && !is_string($thirdVat)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($thirdVat, true), gettype($thirdVat)), __LINE__);\n }\n if (is_null($thirdVat) || (is_array($thirdVat) && empty($thirdVat))) {\n unset($this->thirdVat);\n } else {\n $this->thirdVat = $thirdVat;\n }\n return $this;\n }", "public function setLine4($line4)\n {\n $this->json()->line4 = $line4;\n }", "public function getPointProd3():?int\n {\n //Recuperation de la partie entière de la division du nombre\n //de produit3 par 2\n $paire = (int)($this->produit3 / 2);\n return $this->produit3 <= 0 ? 0 : $paire * 15;\n }", "public function getAlt()\n {\n return $this->alt;\n }", "public function _getLotNo3() {\n\t\treturn $this->_lotNo3;\n\t}", "protected function update_single_to_1_3_0() {\n\n\t\t$this->update_points_type_settings_to_1_3_0();\n\t}", "public function setProductQuantities(array $variations = []): void\n {\n $xml = '';\n\n foreach ($variations as $id => $quantity) {\n $xml .= '<bundled-product product-id=\"' . Xml::escape($id) . '\">';\n $xml .= '<quantity>' . Xml::escape($quantity) . '</quantity>';\n $xml .= '</bundled-product>' . PHP_EOL;\n }\n\n $this->elements['bundled-products'] = $xml;\n }", "public static function getAltAttribute(int $id = 0){\n // vars\n $output = '';\n $lang = prefix_core_BaseFunctions::getCurrentLang();\n // check if active lang is default or not\n if($lang == SELF::$WPimgAttr_Alt_languages[0]):\n // default language\n $output .= get_post_meta($id, '_wp_attachment_image_alt', TRUE);\n else:\n // alternative text\n $name = SELF::$WPimgAttr_Alt_prefix . $lang;\n $output .= get_post_meta($id, $name, true);\n endif;\n // output\n return $output;\n }", "function set_product_sequence($voucher_id, $prod_id, $seq)\n\t{\n\t\t$this->db->where(array('voucher_id'=>$voucher_id, 'product_id'=>$prod_id));\n\t\t$this->db->update('vouchers_products', array('sequence'=>$seq));\n\t}", "public function getCodeRef3() {\n return $this->codeRef3;\n }", "public function setISO3($ISO3)\n {\n $this->values['ISO3'] = $ISO3;\n return $this;\n }", "public function getCodeArticle3() {\n return $this->codeArticle3;\n }", "public function getC3()\r\n {\r\n return $this->C3;\r\n }", "public function setCmp3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->cmp3 !== $v) {\n $this->cmp3 = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_CMP3] = true;\n }\n\n return $this;\n }", "public function setCodeArticle3($codeArticle3) {\n $this->codeArticle3 = $codeArticle3;\n return $this;\n }", "public function customData3(string $customData3)\n {\n $this->customData3 = $customData3;\n\n return $this;\n }", "public function getAlpha3TCode()\n {\n return $this->alpha3TCode;\n }", "public static function product($product)\n {\n static::$product = $product;\n }", "public function multiplyBy3($value)\n {\n return $value * 3;\n }", "public function useCoreUi3()\n {\n $this->presets = Presets::CORE_UI_3;\n\n return $this;\n }", "public function getCategory3()\n {\n if (array_key_exists(\"category3\", $this->_propDict)) {\n return $this->_propDict[\"category3\"];\n } else {\n return null;\n }\n }", "public function alt(string $altText): self\n {\n if (strlen($altText) > 2000) {\n throw new InvalidArgumentException('Maximum length for the alt text field is 2000 characters.');\n }\n\n $this->altText = $altText;\n\n return $this;\n }", "protected function setP3P() {\n\t\tglobal $wgCentralNoticeHideBannersP3P;\n\n\t\tif ( !$wgCentralNoticeHideBannersP3P ) {\n\t\t\t$url = SpecialPage::getTitleFor(\n\t\t\t\t'HideBanners', self::P3P_SUBPAGE )\n\t\t\t\t->getCanonicalURL();\n\n\t\t\t$p3p = \"CP=\\\"This is not a P3P policy! See $url for more info.\\\"\";\n\n\t\t} else {\n\t\t\t$p3p = $wgCentralNoticeHideBannersP3P;\n\t\t}\n\n\t\theader( \"P3P: $p3p\", true );\n\t}", "function store_set_product_matrix_properties($args, $post){\n\n\t\t// init output\n\t\t$output;\n\n\t\t$output['id'] = $post->ID;\n\n\t\t// if title arg is set...\n\t\tif ( $args['title'] ) {\n\t\n\t\t\t// add title to variant\n\t\t\t$output['title'] = get_the_title($post);\n\t\n\t\t}\n\t\n\t\t// if price arg is set...\n\t\tif ( $args['price'] ) {\n\t\n\t\t\t// add price to variant\n\t\t\t$output['price'] = store_get_product_price($post);\n\t\n\t\t}\n\t\n\t\t// if content arg is set...\n\t\tif ( $args['content'] ) {\n\t\n\t\t\t// clean content\n\t\t\t$content = $post->post_content;\n\t\t\t$content = apply_filters( 'the_content', $content );\n\t\t\t$content = str_replace( ']]>', ']]&gt;', $content );\n\t\n\t\t\t// add content to variant\n\t\t\t$output['content'] = $content;\n\t\n\t\t}\n\t\n\t\t// if excerpt arg is set...\n\t\tif ( $args['excerpt'] ) {\n\t\n\t\t\t// clean the excerpt\n\t\t\t$excerpt = $post->post_excerpt;\n\t\t\t$excerpt = apply_filters( 'get_the_excerpt', $excerpt );\n\t\t\t$excerpt = apply_filters( 'the_excerpt', $excerpt );\n\t\n\t\t\t// add excerpt to variant\n\t\t\t$output['excerpt'] = $excerpt;\n\t\n\t\t}\n\t\n\t\t// if images arg is set...\n\t\tif ( $args['images'] ) {\n\n\t\t\t// Identify this variant's featured image\n\t\t\t$featured_id = get_post_thumbnail_id( $post->ID );\n\n\t\t\t// set default for images prop\n\t\t\t$output['images'] = false;\n\n\t\t\t// init sizes\n\t\t\t$sizes = false;\n\n\t\t\t// if arg is a string, treat it as a size and get the featured image in that size\n\t\t\tif ( is_string($args['images']) ) $sizes = array($args['images']);\n\n\t\t\t// if arg is set to all or true, do all sizes\n\t\t\tif ( $args['images'] === true || $args['images'] === 'all' ) $sizes = get_intermediate_image_sizes();\n\n\t\t\t// if attachemnts were requested, query them BEFORE we loop through sizes\n\t\t\tif ( $args['attached'] ) {\n\n\t\t\t\t// query all attachments\n\t\t\t\t$attached_args = array(\n\t\t\t\t\t'posts_per_page'\t=> -1,\n\t\t\t\t\t'orderby'\t\t\t=> 'menu_order',\n\t\t\t\t\t'exclude'\t\t\t=> $featured_id,\n\t\t\t\t\t'order'\t\t\t\t=> 'ASC',\n\t\t\t\t\t'post_type'\t\t\t=> 'attachment',\n\t\t\t\t\t'post_mime_type'\t=> 'image',\n\t\t\t\t\t'post_parent'\t\t=> $post->ID,\n\t\t\t\t\t'fields'\t\t\t=> 'ids'\n\t\t\t\t);\n\t\t\t\t$attachments = get_posts($attached_args);\n\t\t\t}\n\n\t\t\t$output['images']['attached'] = array();\n\t\t\t$output['images']['featured'] = array();\n\n\t\t\t// if sizes are set...\n\t\t\tif ( $sizes ) {\n\t\t\t\tforeach ( $sizes as $size ) {\n\n\t\t\t\t\t// if featured image requested\n\t\t\t\t\tif ( $args['featured'] ) {\n\n\t\t\t\t\t\t// Get image src atts\n\t\t\t\t\t\t$featured_url = wp_get_attachment_image_src( $featured_id, $size );\n\t\n\t\t\t\t\t\t// if src atts...\n\t\t\t\t\t\tif ( $featured_url ) {\n\n\t\t\t\t\t\t\t// Set url into array\n\t\t\t\t\t\t\t$output['images']['featured'][$featured_id][$size] = $featured_url[0];\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// if attached images requested\n\t\t\t\t\tif ( $args['attached'] ) {\n\n\t\t\t\t\t\t// Loop through attachments\n\t\t\t\t\t\tif ( $attachments ) {\n\t\t\t\t\t\t\tforeach ( $attachments as $i => $attached ) {\n\n\t\t\t\t\t\t\t\t// Get src URL\n\t\t\t\t\t\t\t\t$image_url = wp_get_attachment_image_src( $attached, $size );\n\n\t\t\t\t\t\t\t\t// add url to output\n\t\t\t\t\t\t\t\t$output['images']['attached'][$attached][$size] = $image_url[0];\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// if sku arg is set...\n\t\tif ( $args['sku'] ) {\n\t\n\t\t\t// set sku for this variant\n\t\t\t$output['sku'] = store_get_sku($post);\n\t\t}\n\n\t\t// if slug args is set...\n\t\tif ( $args['slug'] ) {\n\t\n\t\t\t// set slug for this variant\n\t\t\t$output['slug'] = $post->post_name;\n\t\t}\n\n\t\treturn $output;\n\t}", "public function testSetHs3() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHs3(10.092018);\n $this->assertEquals(10.092018, $obj->getHs3());\n }", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function setCodeRef3($codeRef3) {\n $this->codeRef3 = $codeRef3;\n return $this;\n }", "public function setTargetedVariations($val)\n {\n $this->_propDict[\"targetedVariations\"] = $val;\n return $this;\n }", "protected function setProductivity()\n {\n $this->productivity = random_int(8, 12);\n }", "public function testSetPrixVente3() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente3());\n }", "function alterar($id_n3, $id_tema, $id_n2, $publicado, $n3_perfil, $ordem, $dbhw) {\n\tglobal $esquemaadmin;\n\t$dataCol = array(\n\t\t\t\"publicado\" => $publicado,\n\t\t\t\"id_tema\" => $id_tema,\n\t\t\t\"ordem\" => $ordem,\n\t\t\t\"n3_perfil\" => $n3_perfil\n\t);\n\t$resultado = i3GeoAdminUpdate($dbhw,\"i3geoadmin_n3\",$dataCol,\"WHERE id_n3 = $id_n3\");\n\tif ($resultado === false) {\n\t\treturn false;\n\t}\n\treturn $id_n3;\n}", "protected static function iso3(): mixed\n\t{\n\t\treturn self::$query->iso3;\n\t}", "public function setC3($C3)\r\n {\r\n $this->C3 = $C3;\r\n\r\n return $this;\r\n }", "public function getGcId3()\n {\n return $this->gc_id_3;\n }", "public function testSetTaux3() {\n\n $obj = new Employes();\n\n $obj->setTaux3(10.092018);\n $this->assertEquals(10.092018, $obj->getTaux3());\n }", "public function setVolKudakudaM3($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->vol_kudakuda_m3 !== $v) {\n $this->vol_kudakuda_m3 = $v;\n $this->modifiedColumns[] = BangunanPeer::VOL_KUDAKUDA_M3;\n }\n\n\n return $this;\n }", "public function update_photo_3($image_3,$image_3_md5,$id,$image_3_temp_name){\n\n\t\t$sql = $this->query(\"UPDATE `products` SET `image_3` = '$image_3_md5' WHERE `id` = '$id'\");\n\n\t\t\t $destination = '../'.$image_3_md5;\n\n\t\tmove_uploaded_file($image_3_temp_name,$destination);\n\n\t\t$this->redirect_to('edit_products.php?pro_id='.$id);\n\n\t}", "public function set_alt_responses(array $alt_responses)\n {\n $this->alt_responses = $alt_responses;\n }", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "public function getAltura() \r\n\t{\r\n\t\treturn $this->iAltura;\r\n\t}", "public function getCmp3()\n {\n return $this->cmp3;\n }", "function set_variation_attributes(array $data) {\n\t\tif ( ! empty( $this->variation_data ) && is_array( $this->variation_data ) ) foreach ($this->variation_data as $attribute=>$value) {\n\t\t\tif(isset($data[$attribute])) {\n\t\t\t\t$this->variation_data[$attribute] = $data[$attribute];\n\t\t\t}\n\t\t}\n\t}", "public function setOpcion4($opt) {\n $this->opcion4 = Funciones::gCodificar($opt);\n }", "public function setLotNo3($lotNo3) {\n\t\t$this->_setLotNo3($lotNo3);\n\t\treturn $this;\n\t}", "public function testSetPrime3() {\n\n $obj = new PointBonTrav();\n\n $obj->setPrime3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime3());\n }", "public static function VAT3(): VatRate\n {\n return self::fromCode('3');\n }", "public function testSetPrime3() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime3());\n }", "private function schema3()\n {\n $sql = \"ALTER TABLE experiments_revisions CHANGE exp_id item_id INT(10) UNSIGNED NOT NULL\";\n if (!$this->pdo->q($sql)) {\n throw new Exception('Problem updating!');\n }\n }", "public function alt(){\n\t\tif( $this->alt ) {\n\t\t\treturn $this->alt;\n\t\t}//end if\n\n\t\t$this->alt = @file_get_contents( $this->base_dir.'/'.$this->dir . $this->filename . '.alt');\n\n\t\treturn $this->alt;\n\t}", "public function getAlpha3BCode()\n {\n return $this->alpha3BCode;\n }", "public function magic3() { return $this->_m_magic3; }", "public function setCategory6($val)\n {\n $this->_propDict[\"category6\"] = $val;\n return $this;\n }" ]
[ "0.79325974", "0.70218503", "0.61950254", "0.58118105", "0.56908715", "0.5525888", "0.5513468", "0.5497924", "0.544339", "0.5223357", "0.5186889", "0.5185635", "0.5178831", "0.5130976", "0.51208067", "0.5049119", "0.4942342", "0.493637", "0.49107203", "0.49094722", "0.49048132", "0.48820785", "0.48394608", "0.47707298", "0.47305393", "0.47115508", "0.47073892", "0.46544433", "0.4638424", "0.46362513", "0.4617675", "0.46040308", "0.454917", "0.4543118", "0.45363373", "0.45304778", "0.45193225", "0.4479923", "0.44398215", "0.44189686", "0.44155404", "0.44113138", "0.43867663", "0.43745795", "0.43667114", "0.43435773", "0.43398967", "0.43316895", "0.43277186", "0.43133587", "0.4292944", "0.42636502", "0.42614105", "0.4261193", "0.42607975", "0.42597473", "0.42558372", "0.4244983", "0.4233509", "0.4231533", "0.42252877", "0.42234445", "0.4221001", "0.42113304", "0.42087463", "0.42041123", "0.41972962", "0.41878974", "0.41856384", "0.4178983", "0.41748652", "0.41656536", "0.4162899", "0.4158431", "0.4158277", "0.41425097", "0.4141174", "0.41389227", "0.41370246", "0.4129732", "0.41293952", "0.41289327", "0.41101247", "0.41033316", "0.4100607", "0.40933764", "0.40881255", "0.40865526", "0.4086259", "0.40860945", "0.40823543", "0.40811554", "0.4080991", "0.4078336", "0.4074077", "0.40737873", "0.40677595", "0.40660602", "0.4064006", "0.40460142" ]
0.6975978
2
setProdAlt4() Set the value of [prod_code] column.
public function setProdCode($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_code !== $v) { $this->prod_code = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_CODE] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdAlt4($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt4 !== $v) {\n $this->prod_alt4 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT4] = true;\n }\n\n return $this;\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function setProductCode($val)\n {\n $this->_propDict[\"productCode\"] = $val;\n return $this;\n }", "function setProductCode($productCode)\n {\n $this->productCode = $productCode;\n }", "public function setProductCode($_productCode)\n\t{\n\t\t$this->productCode = $_productCode;\n\t}", "public function setProductCode($_productCode)\n\t{\n\t\t$this->productCode = $_productCode;\n\t}", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "function setSyncItemsCodeProduct()\n {\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function setCodeRef4($codeRef4) {\n $this->codeRef4 = $codeRef4;\n return $this;\n }", "public function setLine4($line4)\n {\n $this->json()->line4 = $line4;\n }", "public function setProdAlt1($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt1 !== $v) {\n $this->prod_alt1 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT1] = true;\n }\n\n return $this;\n }", "public function setCategory4($val)\n {\n $this->_propDict[\"category4\"] = $val;\n return $this;\n }", "public function setProductCode(string $productCode): bool\n {\n try {\n $this->productCode = static::valTextMandMaxCar(\n $productCode, 60, __METHOD__\n );\n $return = true;\n } catch (AuditFileException $e) {\n $this->productCode = $productCode;\n \\Logger::getLogger(\\get_class($this))\n ->error(\\sprintf(__METHOD__.\" '%s'\", $e->getMessage()));\n $this->getErrorRegistor()->addOnSetValue(\"ProductCode_not_valid\");\n $return = false;\n }\n \\Logger::getLogger(\\get_class($this))\n ->debug(\\sprintf(__METHOD__.\" set to '%s'\", $this->productCode));\n return $return;\n }", "public function setCodeArticle4($codeArticle4) {\n $this->codeArticle4 = $codeArticle4;\n return $this;\n }", "public function setProductByCode($code)\n\t{\n\t\tif (empty($this->brand)) {\n\t\t\tthrow new \\Exception('Must Set Brafore before Product');\n\t\t}\n\t\t$criteria = Criteria::create()\n\t\t->where(Criteria::expr()->eq(\"code\", $code));\n\t\n\t\t$this->product = $this->brand->getProducts()->matching($criteria)->first();\n\t\n\t\tif (empty($this->producct)) {\n\t\t\tthrow new \\Exception(sprtintf(\"Product '%s' not found\",$code));\n\t\t}\n\t\n\t\t$this->logger->debug(sprintf(\"Code: '%s' Product: '%s'\", $code, $this->product));\n\t}", "public function setProductCode(?string $productCode): self\n {\n $this->initialized['productCode'] = true;\n $this->productCode = $productCode;\n\n return $this;\n }", "public function setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "private function setPremiumCode(){\n for($i = 0; $i < 7; $i++) {\n $this->premiumCode .= rand(1,9);\n };\n $this->discount = 10;\n }", "public function addProductCode($code)\n {\n //$pieces = preg_split(\"/-/\", $code);\n //$programId = preg_replace(\"/\\D/\", \"\", $pieces[0]);\n }", "public function setMagia4Attribute($value) {\n $this->attributes['magia4'] = $this->verificaAtributo($value, true);\n }", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "function productCode($prod)\n\t{\n\t\t$product = $this->Product->findByCode($prod);\n\t\t$parent = !empty($product['Product']['parent_product_type_id']) ? $this->Product->read(null, $product['Product']['parent_product_type_id']) : null;\n\t\t$parentProd = !empty($parent) ? $parent['Product']['code'] : null;\n\n\t\tif(!empty($parentProd) && !file_exists(APP.\"/webroot/images/designs/products/$prod.svg\") && file_exists(APP.\"/webroot/images/designs/products/$parentProd.svg\"))\n\t\t{\n\t\t\t$prod = $parentProd;\n\t\t}\n\t\treturn $prod;\n\t}", "public function setProductNum($value)\n {\n return $this->set(self::product_num, $value);\n }", "public function setProdAlt2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt2 !== $v) {\n $this->prod_alt2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true;\n }\n\n return $this;\n }", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "public function getCodeRef4() {\n return $this->codeRef4;\n }", "private function SetProductImages()\n\t{\n\n\t\t$GLOBALS['ProductThumbWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\t\t$GLOBALS['ProductThumbHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\n\t\t$GLOBALS['ProductMaxTinyWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\t\t$GLOBALS['ProductMaxTinyHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\n\t\t$GLOBALS['ProductTinyBoxWidth'] = $GLOBALS['ProductMaxTinyWidth']+4;\n\t\t$GLOBALS['ProductTinyBoxHeight'] = $GLOBALS['ProductMaxTinyHeight']+4;\n\n\n\t\t$GLOBALS['ProductMaxZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductMaxZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\t\t$GLOBALS['ProductZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\n\t\t$productImages = ISC_PRODUCT_IMAGE::getProductImagesFromDatabase($GLOBALS['ProductId'], null, false, true);\n\t\t$GLOBALS['NumProdImages'] = count($productImages);\n\n\t\t$GLOBALS['CurrentProdThumbImage'] = 0;\n\t\t$thumb = '';\n\t\t$curZoomImage = '';\n\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] = '';\n\t\t$GLOBALS['HideImageCarousel'] = 'display:none;';\n\t\t$GLOBALS['HideMorePicturesLink'] = 'display:none;';\n\t\t$thumbImageDescription = '';\n\t\t$i = 0;\n\n\t\t$GLOBALS['ProdImageJavascript'] = '';\n\t\t$GLOBALS['ProdImageZoomJavascript'] = '';\n\t\t$GLOBALS['LightBoxImageList'] = '';\n\t\t$GLOBALS['ZoomImageMaxWidth'] = 0;\n\t\t$GLOBALS['ZoomImageMaxHeight'] = 0;\n\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = 0;\n\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = 'display: none';\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t//Show image carousel\n\n\t\t\tif ($GLOBALS['NumProdImages'] == 2) {\n\t\t\t\t$var = \"MorePictures1\";\n\t\t\t} else if ($GLOBALS['NumProdImages'] == 1) {\n\t\t\t\t$var = \"SeeLargerImage\";\n\t\t\t} else {\n\t\t\t\t$var = \"MorePictures2\";\n\t\t\t}\n\n\t\t\t$GLOBALS['SeeMorePictures'] = sprintf(GetLang($var), count($productImages) - 1);\n\t\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = '';\n\n\t\t\tif (GetConfig('ProductImagesTinyThumbnailsEnabled')) {\n\t\t\t\t$GLOBALS['HideImageCarousel'] = '';\n\t\t\t} else {\n\t\t\t\t$GLOBALS['HideMorePicturesLink'] = '';\n\t\t\t}\n\n\t\t\t$continue=false;\n\n\t\t\tforeach ($productImages as $productImage) {\n\n\t\t\t\t$thumbURL = '';\n\t\t\t\t$zoomImageURL = '';\n\n\t\t\t\ttry{\n\t\t\t\t\t$thumbURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_STANDARD, true);\n\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\ttry{\n\t\t\t\t\t$zoomImageURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_ZOOM, true);\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\tif($thumbURL == '' && $zoomImageURL == '') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$resizedZoomDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t\t\t$resizedTinyDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\t\t\t\t//calculate the max zoom image width and height\n\t\t\t\tif ($GLOBALS['ZoomImageMaxWidth'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]) {\n\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t//the height of the image has got the max width needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\tif ($GLOBALS['ZoomImageMaxHeight'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]) {\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t//the width of the image has got the max height needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeightWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['ImageDescription'] = isc_html_escape($productImage->getDescription());\n\t\t\t\tif($GLOBALS['ImageDescription'] == '') {\n\t\t\t\t\t$GLOBALS['ImageDescription'] = GetLang(\"Image\") . \" \" . ($i + 1);\n\t\t\t\t}\n\n\t\t\t\t//show image carousel\n\t\t\t\tif(GetConfig('ProductImagesTinyThumbnailsEnabled')==1) {\n\n\t\t\t\t\t$GLOBALS['ProdImageJavascript'] .= \"\n\t\t\t\t\t\tThumbURLs[\".$i.\"] = \" . isc_json_encode($thumbURL) . \";\n\t\t\t\t\t\tProductImageDescriptions[\".$i.\"] = \" . isc_json_encode($GLOBALS['ImageDescription']) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$GLOBALS['TinyImageOverJavascript'] = \"showProductThumbImage(\".$i.\")\";\n\t\t\t\t\t//$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\n\t\t\t\t\ttry{\n\t\t\t\t\t\t$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\t\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ProductThumbIndex'] = $i;\n\t\t\t\t\tif(GetConfig('ProductImageMode') == 'lightbox') {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImageLightBox(\".$i.\"); return false;\";\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImage('\".GetConfig('ShopPath').\"/productimage.php', \".$GLOBALS['ProductId'].\", \".$i.\");\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['TinyImageWidth'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t$GLOBALS['TinyImageHeight'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t$GLOBALS['TinyImageTopPadding'] = floor(($GLOBALS['ProductMaxTinyHeight'] - $GLOBALS['TinyImageHeight']) / 2);\n\t\t\t\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductTinyImage\");\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\tif(GetConfig('ProductImagesImageZoomEnabled') == 1) {\n\t\t\t\t\t//check if zoom image is large enough for image zoomer\n\t\t\t\t\tif($resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]<ISC_PRODUCT_IMAGE_MIN_ZOOM_WIDTH && $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]<ISC_PRODUCT_IMAGE_MIN_ZOOM_HEIGHT) {\n\t\t\t\t\t\t$zoomImageURL = '';\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['ProdImageZoomJavascript'] .= \"\n\t\t\t\t\t\tZoomImageURLs[\".$i.\"] = \" . isc_json_encode($zoomImageURL) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\t//\t$GLOBALS['ProductZoomImageURL'] = $zoomImageURL;\n\n\t\t\t\t//this image is the product page thumbnail\n\t\t\t\tif($i==0) {\n\t\t\t\t\t//get the thumb image for product page\n\t\t\t\t\t$thumb = $thumbURL;\n\t\t\t\t\t$curZoomImage = $zoomImageURL;\n\t\t\t\t\t$thumbImageDescription = $GLOBALS['ImageDescription'];\n\t\t\t\t\t//if there is no need to loop through images anymore, get out from the loop.\n\t\t\t\t\tif($continue === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['VisibleImageTotal'] = $i+1;\n\n\t\t$GLOBALS['ShowImageZoomer'] = GetConfig('ProductImagesImageZoomEnabled');\n\t\tif ($GLOBALS['ShowImageZoomer']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductImageZoomer'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductImageZoomer\");\n\t\t}\n\t\t$GLOBALS['ZoomImageURL'] = $curZoomImage;\n\n\t\t//if no product thumb images\n\t\tif($thumb == '') {\n\t\t\tif(GetConfig('DefaultProductImage') == 'template') {\n\t\t\t\t$thumb = $GLOBALS['IMG_PATH'].'/ProductDefault.gif';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$thumb = GetConfig('ShopPath').'/'.GetConfig('DefaultProductImage');\n\t\t\t}\n\t\t}\n\n\t\t// need to check for variation images\n\t\t$GLOBALS['ImageDescription'] = $thumbImageDescription;\n\t\t$GLOBALS['ThumbImageURL'] = $thumb;\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('FastProductThumbImage');\n\t\t} else {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ProductThumbImagePlaceholder');\n\t\t}\n\t}", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "function set_product_sequence($voucher_id, $prod_id, $seq)\n\t{\n\t\t$this->db->where(array('voucher_id'=>$voucher_id, 'product_id'=>$prod_id));\n\t\t$this->db->update('vouchers_products', array('sequence'=>$seq));\n\t}", "function getProductCode()\n {\n return $this->productCode;\n }", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function setCodeRef4(?string $codeRef4): CriteresClient {\n $this->codeRef4 = $codeRef4;\n return $this;\n }", "function setProductuuid($product_uuid)\n {\n $this->product_uuid = $product_uuid;\n }", "public function setProduct_code ($product_code) {\n\t$this->product_code = $product_code;\n\treturn $this;\n}", "public function setOpcion4($opt) {\n $this->opcion4 = Funciones::gCodificar($opt);\n }", "public function setRowAlt($rowAlt)\n {\n $this->rowAlt = $this->checkRowAltRange($rowAlt);\n $this->childNodes = [];\n $this->append($this->makeTableRows());\n }", "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "public function getCodeArticle4() {\n return $this->codeArticle4;\n }", "public function getProductCode()\n {\n if (array_key_exists(\"productCode\", $this->_propDict)) {\n return $this->_propDict[\"productCode\"];\n } else {\n return null;\n }\n }", "public function setProdId($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_id !== $v) {\n $this->prod_id = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ID] = true;\n }\n\n if ($this->aTblProdPhotos !== null && $this->aTblProdPhotos->getProdId() !== $v) {\n $this->aTblProdPhotos = null;\n }\n\n if ($this->aTblProdPrices !== null && $this->aTblProdPrices->getProdId() !== $v) {\n $this->aTblProdPrices = null;\n }\n\n if ($this->aTblProdSmaller !== null && $this->aTblProdSmaller->getProdId() !== $v) {\n $this->aTblProdSmaller = null;\n }\n\n return $this;\n }", "public function setCodeOriginal($value)\n {\n $this->codeOriginal = $value;\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function setProductid( $productid ) {\n\t\t$this->productid = $productid;\n\t}", "public function setC4($C4)\r\n {\r\n $this->C4 = $C4;\r\n\r\n return $this;\r\n }", "public function assignProductsToCategory(array $productSkus, $categoryCode);", "function setIdkitprodutos($idkitprodutos) {\n $this->idkitprodutos = $idkitprodutos;\n }", "public function setCode($code);", "public function setCode($code);", "public function setCode($code)\n\t{\n\t\t$this->code = (int) $code;\n\t}", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function setLocalProductCode(?string $localProductCode): self\n {\n $this->initialized['localProductCode'] = true;\n $this->localProductCode = $localProductCode;\n\n return $this;\n }", "public function setProductId($value)\n {\n return $this->set(self::product_id, $value);\n }", "public function setProdId($prodid = '')\n {\n $this->prodid = $prodid;\n\n return $this;\n }", "private function addBasketRow(string $product_code): void\r\n {\r\n if (array_key_exists($product_code, $this->basket)) {\r\n return;\r\n }\r\n\r\n $this->basket[$product_code] = 0;\r\n }", "public function getProductCode(): ?string\n {\n return $this->productCode;\n }", "public function setProduct(LineItemProduct $product)\n\t{\n\t\t$this->addKeyValue('product', $product); \n\n\t}", "public function setShippingCode($data)\n {\n parent::setShippingCode($data);\n }", "public function testSetCodeProduit() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeProduit(\"codeProduit\");\n $this->assertEquals(\"codeProduit\", $obj->getCodeProduit());\n }", "public function setIdProduct($idProduct): self\n {\n $this->idProduct = $idProduct;\n\n return $this;\n }", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "public function update_products($prod_id){\n\t\t$where = array('prod_id' => $prod_id );\n \t\t$data['prod_details'] =$this->Product_model->view_prod($where);\n\t\t$data['category'] = $this->get_category();\n\t\tview_loader($data,'seller/update_products');\n\t}", "public function setCode($code)\n {\n // set the code\n $this->_code = $code;\n \n // reset the strings\n $this->trans = array();\n }", "public function setProduct(Product $product);", "public function testSetCodePenibilite() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setCodePenibilite(\"codePenibilite\");\n $this->assertEquals(\"codePenibilite\", $obj->getCodePenibilite());\n }", "public function prod($prod);", "public function setId_product($id_product)\n {\n $this->id_product = $id_product;\n\n return $this;\n }", "public function setPostcode($value) {\n\t\tself::$_postCode = $value;\n\t}", "public function setProductVersion($val)\n {\n $this->_propDict[\"productVersion\"] = $val;\n return $this;\n }", "public function setIdProduct($idProduct)\n {\n $this->idProduct = $idProduct;\n\n return $this;\n }", "public function setCodProy($codProy) {\n $this->codProy = $codProy;\n }", "public function set_id_product($id_product) \n\t{\n\t\t$this->id_product = $id_product;\n\t\treturn $this;\n\t}", "function changeProduct($cart_table_id,$true_or_false)\n {\n $this->pdelivery[$cart_table_id]=$true_or_false; //change product group delivery\n }", "public function getPointProd4():?int\n { \n return $this->produit4 <= 0 ? 0 : $this->produit4 * 35;\n }", "public function setCode($code)\n {\n $this->code = $code;\n }", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "public function setCodePostal($valeur)\n {\n $this->codepostal = $valeur;\n }", "public function customData4(string $customData4)\n {\n $this->customData4 = $customData4;\n\n return $this;\n }", "public function setProductId($newProductId) {\n\t\t$newProductId = filter_var($newProductId, FILTER_VALIDATE_INT);\n\t\t//if filter_var rejects the variable, throw an exception\n\t\tif($newProductId === false) {\n\t\t\tthrow(new InvalidArgumentException(\"Product Id is not a proper int\"));\n\t\t}\n\t\t//If $newProductId is not positive, throw an exception.\n\t\tif($newProductId <= 0) {\n\t\t\tthrow(new RangeException(\"Product ID must be positive\"));\n\t\t}\n\t\t$this->productId = intval($newProductId);\n\t}", "private static function updateProduct(array $product, int $row): void\n {\n DB::table('products')\n ->where('id', $row)\n ->update(\n [\n 'product_id' => $product['product_id'],\n 'title' => $product['title'],\n 'description' => $product['description'],\n 'image' => $product['image'],\n 'vendor' => $product['vendor'],\n 'product_type' => $product['product_type'],\n 'handle' => $product['handle'],\n 'tags' => $product['tags'],\n 'shopify_data' => $product['shopify_data'],\n 'updated_at' => \\Carbon\\Carbon::now()\n ]\n );\n }", "public function setCodProy($codProy) {\n $this->codProy = $codProy;\n }", "public function getCodeRef4(): ?string {\n return $this->codeRef4;\n }", "function setAmocrmCode(string $code): void {\n\t}", "public function setProductApproval($productApproval, $product, $productData, $productId) {\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n $product = $objectManager->create ( 'Magento\\Catalog\\Model\\Product' )->load ( $productId );\n if ($productApproval == 1) {\n $product->setStatus ( 1 );\n $product->setProductApproval(1);\n \n } else {\n $product->setProductApproval ( 0 );\n $product->setStatus(2);\n }\n \n $product->save();\n }", "public function setProductState($product_state)\n {\n $this->product_state = $product_state;\n }", "public function setProductId($id);", "public function issetProductCode(): bool\n {\n return isset($this->productCode);\n }", "public function issetProductCode(): bool\n {\n return isset($this->productCode);\n }", "function setCode($code) {\n\t\tif (empty ($code)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ($this->code != $code) {\n\t\t\t$this->messages= null;\n\t\t\t/*\n\t\t\t\t\t\tif (isset ($this->Session)) {\n\t\t\t\t\t\t\t$this->Session->write('Lang.Code', $code);\n\t\t\t\t\t\t}\n\t\t\t*/\n\t\t\t$this->code= $code;\n\t\t\t$this->controller->set('Lang_Code', $code);\n\t\t\tif (function_exists('setlocale')) {\n\t\t\t\tsetlocale(LC_COLLATE | LC_CTYPE | LC_TIME, $this->getLanguageFromTld($code));\n\t\t\t}\n\t\t}\n\t}", "public function testSetPriceProduct()\n {\n $product = new Product();\n $value = 10.99;\n $product->setPrice($value);\n $this->assertEquals($value, $product->getPrice());\n }", "public function setCode($value)\n {\n $this->set(self::ENTRY_CODE, (string) $value);\n }", "public static function product($product)\n {\n static::$product = $product;\n }", "public function setProtectCode($code);", "public function setAlt($alt)\n {\n $this->alt = $alt;\n $this->setAttributes(\"Alt\");\n }", "public function setHtmlFinalCode($code)\n\t{\n\t\t$this->finalCode = $code;\n\t}", "public function testPdf417CodeChangeOption()\n {\n $this -> printer -> pdf417Code(\"1234\", 3, 3, 0, 0.1, Printer::PDF417_TRUNCATED);\n $this -> checkOutput(\"\\x1b@\\x1d(k\\x03\\x000F\\x01\\x1d(k\\x03\\x000A\\x00\\x1d(k\\x03\\x000C\\x03\\x1d(k\\x03\\x000D\\x03\\x1d(k\\x04\\x000E1\\x01\\x1d(k\\x07\\x000P01234\\x1d(k\\x03\\x000Q0\");\n }" ]
[ "0.7387614", "0.6523506", "0.6466088", "0.6300703", "0.5961627", "0.5841172", "0.5841172", "0.57662606", "0.5722778", "0.56118697", "0.5437195", "0.5435117", "0.54110444", "0.54088086", "0.53346646", "0.5309734", "0.5282448", "0.5262347", "0.52138793", "0.5210256", "0.51910824", "0.5129388", "0.5129315", "0.5083266", "0.5076221", "0.5069724", "0.50417554", "0.50366086", "0.50104624", "0.49952275", "0.49931312", "0.49899828", "0.49882504", "0.49833262", "0.49796334", "0.49034643", "0.48880768", "0.48815244", "0.486499", "0.48544696", "0.48497057", "0.48072404", "0.47993946", "0.47924295", "0.47829288", "0.4780382", "0.47803465", "0.47383928", "0.47299922", "0.47213674", "0.470877", "0.470877", "0.4703597", "0.4691498", "0.46911654", "0.46905562", "0.46820012", "0.46715102", "0.4670308", "0.46644965", "0.46638983", "0.465831", "0.4644067", "0.46233767", "0.46179977", "0.4615937", "0.460802", "0.46064496", "0.45984924", "0.45900762", "0.45772785", "0.45663565", "0.45374432", "0.45355314", "0.45246327", "0.45149878", "0.45081085", "0.45022342", "0.45000356", "0.4492917", "0.44855493", "0.44837493", "0.44823632", "0.44771606", "0.44736037", "0.44518608", "0.44510823", "0.44496286", "0.44488537", "0.44272307", "0.4426244", "0.4426244", "0.442467", "0.44198304", "0.43986306", "0.4396813", "0.43942124", "0.43939343", "0.4384096", "0.4383697" ]
0.6187664
4
setProdCode() Set the value of [prod_category] column.
public function setProdCategory($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_category !== $v) { $this->prod_category = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_CATEGORY] = true; } if ($this->aTblMenus !== null && $this->aTblMenus->getMenuAlias() !== $v) { $this->aTblMenus = null; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdCode($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_code !== $v) {\n $this->prod_code = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_CODE] = true;\n }\n\n return $this;\n }", "public function assignProductsToCategory(array $productSkus, $categoryCode);", "function setProductCode($productCode)\n {\n $this->productCode = $productCode;\n }", "public function setProductCode($_productCode)\n\t{\n\t\t$this->productCode = $_productCode;\n\t}", "public function setProductCode($_productCode)\n\t{\n\t\t$this->productCode = $_productCode;\n\t}", "public function setProductCode($val)\n {\n $this->_propDict[\"productCode\"] = $val;\n return $this;\n }", "public function setProductByCode($code)\n\t{\n\t\tif (empty($this->brand)) {\n\t\t\tthrow new \\Exception('Must Set Brafore before Product');\n\t\t}\n\t\t$criteria = Criteria::create()\n\t\t->where(Criteria::expr()->eq(\"code\", $code));\n\t\n\t\t$this->product = $this->brand->getProducts()->matching($criteria)->first();\n\t\n\t\tif (empty($this->producct)) {\n\t\t\tthrow new \\Exception(sprtintf(\"Product '%s' not found\",$code));\n\t\t}\n\t\n\t\t$this->logger->debug(sprintf(\"Code: '%s' Product: '%s'\", $code, $this->product));\n\t}", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function assignProductToCategories($productSku, array $categoryCodes);", "public function setProductCode(string $productCode): bool\n {\n try {\n $this->productCode = static::valTextMandMaxCar(\n $productCode, 60, __METHOD__\n );\n $return = true;\n } catch (AuditFileException $e) {\n $this->productCode = $productCode;\n \\Logger::getLogger(\\get_class($this))\n ->error(\\sprintf(__METHOD__.\" '%s'\", $e->getMessage()));\n $this->getErrorRegistor()->addOnSetValue(\"ProductCode_not_valid\");\n $return = false;\n }\n \\Logger::getLogger(\\get_class($this))\n ->debug(\\sprintf(__METHOD__.\" set to '%s'\", $this->productCode));\n return $return;\n }", "public function setProduct_code ($product_code) {\n\t$this->product_code = $product_code;\n\treturn $this;\n}", "public function setProductCode(?string $productCode): self\n {\n $this->initialized['productCode'] = true;\n $this->productCode = $productCode;\n\n return $this;\n }", "public function setProduct_category ($product_category) {\n\t$this->product_category = $this->getClass()->getFieldDefinition(\"product_category\")->preSetData($this, $product_category);\n\treturn $this;\n}", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function setCategoryCode(?string $categoryCode = null): self\n {\n // validation for constraint: string\n if (!is_null($categoryCode) && !is_string($categoryCode)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($categoryCode, true), gettype($categoryCode)), __LINE__);\n }\n if (is_null($categoryCode) || (is_array($categoryCode) && empty($categoryCode))) {\n unset($this->CategoryCode);\n } else {\n $this->CategoryCode = $categoryCode;\n }\n \n return $this;\n }", "public function setProductCategory(?ProductCategory $productCategory): void\n {\n $this->productCategory = $productCategory;\n }", "public function setCode($code);", "public function setCode($code);", "public function setCode($code)\n\t{\n\t\t$this->code = (int) $code;\n\t}", "public function setCategoryId($nCategory_id)\n {\n $this->category_id=$nCategory_id;\n }", "protected function setCategory($productID, $category)\r\n {\r\n \r\n // SQL query\r\n $sql = \"UPDATE tbl_products SET categories= '\" . $category . \"'WHERE id_products= '\" . $productID . \"'\";\r\n \r\n // Connect to database and run query\r\n $result = $this->connect->query($sql);\r\n \r\n // Check to see if query passed and registered\r\n if ($result) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public function testSetCodeProduit() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeProduit(\"codeProduit\");\n $this->assertEquals(\"codeProduit\", $obj->getCodeProduit());\n }", "function productCode($prod)\n\t{\n\t\t$product = $this->Product->findByCode($prod);\n\t\t$parent = !empty($product['Product']['parent_product_type_id']) ? $this->Product->read(null, $product['Product']['parent_product_type_id']) : null;\n\t\t$parentProd = !empty($parent) ? $parent['Product']['code'] : null;\n\n\t\tif(!empty($parentProd) && !file_exists(APP.\"/webroot/images/designs/products/$prod.svg\") && file_exists(APP.\"/webroot/images/designs/products/$parentProd.svg\"))\n\t\t{\n\t\t\t$prod = $parentProd;\n\t\t}\n\t\treturn $prod;\n\t}", "private function addBasketRow(string $product_code): void\r\n {\r\n if (array_key_exists($product_code, $this->basket)) {\r\n return;\r\n }\r\n\r\n $this->basket[$product_code] = 0;\r\n }", "public function addProductCode($code)\n {\n //$pieces = preg_split(\"/-/\", $code);\n //$programId = preg_replace(\"/\\D/\", \"\", $pieces[0]);\n }", "public function setCategory($value)\n {\n $this->setItemValue('category', ['id' => (int)$value]);\n }", "public function setCode($code)\n {\n $this->code = $code;\n }", "public function setCategoryIdAttribute($value)\n\t{\n\t\t$this->attributes['category_id'] = ($value) ? $value : null;\n\t}", "public function setCouponCode($code);", "public function setCategory($category)\n {\n if(strlen($category) <= 25 && strlen($category) > 0 && preg_match('#^[a-zA-Z- ]*$#', $category)) {\n $this->category = $category;\n }\n }", "public function setCategoryAttribute($value)\n {\n $this->attributes['category'] = strtoupper($value);\n }", "function setCode($code) {\n\t\tif (empty ($code)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ($this->code != $code) {\n\t\t\t$this->messages= null;\n\t\t\t/*\n\t\t\t\t\t\tif (isset ($this->Session)) {\n\t\t\t\t\t\t\t$this->Session->write('Lang.Code', $code);\n\t\t\t\t\t\t}\n\t\t\t*/\n\t\t\t$this->code= $code;\n\t\t\t$this->controller->set('Lang_Code', $code);\n\t\t\tif (function_exists('setlocale')) {\n\t\t\t\tsetlocale(LC_COLLATE | LC_CTYPE | LC_TIME, $this->getLanguageFromTld($code));\n\t\t\t}\n\t\t}\n\t}", "public function setCodeAttribute($value)\n {\n $this->attributes['code']=mb_strtoupper($value);\n }", "public function setCodeAttribute($value)\n {\n $this->attributes['code'] = str_slug(trim($value));\n\n if (empty($value)) {\n $this->attributes['code'] = str_slug(trim($this->attributes['name']));\n }\n }", "function setSyncItemsCodeProduct()\n {\n }", "public function setCodeProduit($codeProduit) {\n $this->codeProduit = $codeProduit;\n return $this;\n }", "public function setCode($code)\n {\n // set the code\n $this->_code = $code;\n \n // reset the strings\n $this->trans = array();\n }", "public function setLocalProductCode(?string $localProductCode): self\n {\n $this->initialized['localProductCode'] = true;\n $this->localProductCode = $localProductCode;\n\n return $this;\n }", "function setCouponCode($code)\n {\n $this->_coupon = $this->coupon_id = $this->coupon_code = null;\n $this->_couponCode = $code;\n }", "function setCategory($id, $category){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//category value of a question in the database\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Accepts 2 parameters, the question ID value, and the new value (int)\r\n\t\t$query= \"UPDATE `tbl_question` SET `category` = '$category' WHERE `tbl_question`.`question_id` =$id LIMIT 1 ;\";\r\n\t\t$result = $this->mdb2->query($query) or die('An unknown error occurred while updating the data');\r\n\t\tif(MDB2::isError($result)){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\t\r\n\t}", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "public function setCategory($category_slug)\n {\n if ( $this->category ) return;\n $this->category = get_category_by_slug( $category_slug );\n if ( empty($this->category) ) {\n ferror(-500150, \"Error: Category(slug) - $category_slug - does not exists.\");\n }\n $this->loadConfig();\n }", "public function setCode($code)\n {\n $this->code = (int) $code;\n\n return $this->mergeData([static::codeKey() => $this->code]);\n }", "public function setCode($value)\n {\n $this->set(self::ENTRY_CODE, (string) $value);\n }", "public function getProduct_category () {\n\t$preValue = $this->preGetValue(\"product_category\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_category\")->preGetData($this);\n\treturn $data;\n}", "public function testSetCodeCol() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setCodeCol(\"codeCol\");\n $this->assertEquals(\"codeCol\", $obj->getCodeCol());\n }", "function SetCategoryList(&$categoryList)\n\t{\n\t\t$map = new CategorySupplierMap();\n\t\t$map->RemoveMapping($this);\n\t\t$this->_categoryList = $categoryList;\n\t}", "public function setCodeStatutCateg($codeStatutCateg) {\n $this->codeStatutCateg = $codeStatutCateg;\n return $this;\n }", "public function setClassCode($classCode) {\n\t\t$this->processedClassCode = $this->originalClassCode = $classCode;\n\t\t$this->classNamespace = NULL;\n\t}", "public function setCode($Code)\n {\n $this->__set(\"code\", $Code);\n }", "public function setCode($code) { $this->code = (int)$code; return $this; }", "public function setCategory(?SubmissionCategory $value): void {\n $this->getBackingStore()->set('category', $value);\n }", "function setAmocrmCode(string $code): void {\n\t}", "function setCategory($value) \n {\n return $this->instance->setcategory($value);\n }", "public function getProductCode()\n {\n if (array_key_exists(\"productCode\", $this->_propDict)) {\n return $this->_propDict[\"productCode\"];\n } else {\n return null;\n }\n }", "public function setCode($code)\n {\n $this->data[1] = (string)$code;\n return $this->data[1];\n }", "public function run_change_cat($cat,$id){\n\n\t\t$sql = \"UPDATE `categories` SET `cat` = '$cat' WHERE `id` = $id\";\n\n\t\t\t$this->query($sql);\n\t}", "public function set($cartId, $couponCode);", "public function setCode($code)\n {\n $this->code = $this->getApiErrorCode($code);\n }", "public function setCodProy($codProy) {\n $this->codProy = $codProy;\n }", "public function setCode($code)\r\n {\r\n $this->code = (int) $code;\r\n return $this;\r\n }", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function setProductNum($value)\n {\n return $this->set(self::product_num, $value);\n }", "public function setClassification(string $value, string $catalogId): void\n {\n // hack to later set the `catalog-id=\"$catalogId\"` attribute within `createElement()`\n $this->catalog = $catalogId;\n\n $this->elements['classification-category'] = $value;\n }", "public function setParentCategoryId(?string $value): void {\n $this->getBackingStore()->set('parentCategoryId', $value);\n }", "public function setStoreCurrencyCode($code);", "function getProductCode()\n {\n return $this->productCode;\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setProdId($value);\n break;\n case 1:\n $this->setProdPriceId($value);\n break;\n case 2:\n $this->setProdName($value);\n break;\n case 3:\n $this->setProdAlt1($value);\n break;\n case 4:\n $this->setProdAlt2($value);\n break;\n case 5:\n $this->setProdAlt3($value);\n break;\n case 6:\n $this->setProdAlt4($value);\n break;\n case 7:\n $this->setProdCode($value);\n break;\n case 8:\n $this->setProdCategory($value);\n break;\n case 9:\n $this->setProdCategoryShipping($value);\n break;\n case 10:\n $this->setProdWriteup($value);\n break;\n case 11:\n $this->setProdLength($value);\n break;\n case 12:\n $this->setProdWingspan($value);\n break;\n case 13:\n $this->setProdHeight($value);\n break;\n case 14:\n $this->setProdScale($value);\n break;\n case 15:\n $this->setProdLinks($value);\n break;\n case 16:\n $this->setProdLinkdescription($value);\n break;\n case 17:\n $this->setProdFront($value);\n break;\n case 18:\n $this->setProdKeywords($value);\n break;\n case 19:\n $this->setProdKeywordsWriteup($value);\n break;\n case 20:\n $this->setProdTitle($value);\n break;\n case 21:\n $this->setProdDescription($value);\n break;\n case 22:\n $this->setProdGeneral($value);\n break;\n case 23:\n $this->setProdEra($value);\n break;\n case 24:\n $this->setProdCompany($value);\n break;\n case 25:\n $this->setProdRelated($value);\n break;\n case 26:\n $this->setProdRelatedPa($value);\n break;\n case 27:\n $this->setProdRelatedM3($value);\n break;\n case 28:\n $this->setProdRelated2($value);\n break;\n case 29:\n $this->setProdSaveas($value);\n break;\n case 30:\n $this->setProdAircraftreg($value);\n break;\n case 31:\n $this->setMb($value);\n break;\n case 32:\n $this->setPa($value);\n break;\n case 33:\n $this->setM3($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setCodProy($codProy) {\n $this->codProy = $codProy;\n }", "public function setCategory() {\n /**\n *\n * @todo make a separate config file for the default category ?!\n */\n $defaultCategory = 1;\n $category = Category::find()->all();\n $newCat = $this->strProcessing($this->category);\n $k = NULL;\n if (!empty($newCat)) {\n foreach ($category as $value) {\n $cat = explode(',', $value['synonyms']);\n $cat = array_map(array($this, 'strProcessing'), $cat);\n $k = array_search($newCat, $cat);\n if ($k !== NULL && $k !== FALSE) {\n $k = $value['id'];\n break;\n }\n }\n }\n if ($k) {\n $this->category = $k;\n } else {\n $this->category = $defaultCategory;\n }\n return TRUE;\n }", "public function setChannelCode($value)\n {\n if (!array_key_exists('channel_code', $this->fieldsModified)) {\n $this->fieldsModified['channel_code'] = $this->data['fields']['channel_code'];\n } elseif ($value === $this->fieldsModified['channel_code']) {\n unset($this->fieldsModified['channel_code']);\n }\n\n $this->data['fields']['channel_code'] = $value;\n }", "public function set_category_id($category)\n {\n parent::set_category(0);\n }", "protected function setSubCategory($productID, $subCategory)\r\n {\r\n \r\n // SQL query\r\n $sql = \"UPDATE tbl_products SET sub_categories= '\" . $subCategory . \"'WHERE id_products= '\" . $productID . \"'\";\r\n \r\n // Connect to database and run query\r\n $result = $this->connect->query($sql);\r\n \r\n // Check to see if query passed and registered\r\n if ($result) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public function setId($id){\n $this->_sub_cat_id = $id;\n }", "public function getCategoryCode(): ?string\n {\n return isset($this->CategoryCode) ? $this->CategoryCode : null;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function setPSCCategory($value)\n {\n return $this->set('PSCCategory', $value);\n }", "public function hook2promotion_set($promotion_id, $tag_id, $tag_cat, $data_arr=array(), $id='') {\n\t\tif(empty($promotion_id) || empty($tag_id) || empty($tag_cat))\n\t\t\treturn false;\n\t\tD2(\"PromotionIndex\")->hook2promotion_set($promotion_id, $tag_id, $tag_cat, $data_arr, $id);\n\t}", "public function save_products($data)\n {\n $this->db->insert('productos_categorias', $data);\n }", "public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }", "public function setCategory($category)\n {\n $this->category = $category;\n }", "public function setCategory($category)\n {\n $this->category = $category;\n }", "function category($slug = FALSE)\n\t {\n\t\t\tif ($this->input->post('price_range'))\n\t\t\t{\n\t\t\t\t$url = current_url().'?'.($this->input->get('price') ? preg_replace('/(^|&)price=[^&]*/', '&price='.$this->input->post('price'), $_SERVER['QUERY_STRING']) : $_SERVER['QUERY_STRING'].'&price='.$this->input->post('price'));\n\t\t\t\t// redirect to back here.\n\t\t\t\tredirect($url, 'refresh');\n\t\t\t}\n\n\t\t\t$this->data['category'] = $this->category_model->get_categories($slug);\n\n\t\t\tif (! $this->data['category'])\n\t\t\t{\n\n\t\t\t\t// Get any status message that may have been set.\n\t\t\t\t$this->data['message'] = $this->session->flashdata('message');\n\t\t\t\t$this->load->view('public/errors_view', $this->data);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$product_options = array(\n\t\t\t\t\t'attribute' => $this->input->get('ATB')\n\t\t\t\t);\n\t\t\t\tif ($slug) $product_options['category_id'] = $this->data['category']->id;\n\t\t\t\t\n\t\t\t\t// Get products.\n\t\t\t\t$products = $this->store->products($product_options);\n\t\t\t\t\n\t\t\t\t$this->data['products'] = $products['rows'];\t\n\t\t\t\t$this->data['total'] = $products['total'];\t\n\t\t\t\t$this->data['pagination'] = $products['pagination'];\n\n\t\t\t\t$this->data['min_price'] = $this->product_model->min_price($this->data['category']->id);\n\t\t\t\t$this->data['max_price'] = $this->product_model->max_price($this->data['category']->id);\n\t\t\t\t$this->data['price_range'] = ($this->input->get('price')) ? $this->input->get('price') : $this->data['max_price'];\n\n\t\t\t\t// Get any status message that may have been set.\n\t\t\t\t$this->data['message'] = $this->session->flashdata('message');\n\n\t\t\t\t$this->load->view('public/products/category_view', $this->data);\n\t\t\t}\n\t\t}", "public function setBrandByCode($code)\n\t{\n\t\tif (empty($this->company)) {\n\t\t\tthrow new \\Exception('Must Set Company before Brand');\n\t\t}\n\n\t\t$this->brand = $this->getBrandByCode($code);\n\t\t\n\t\tif (empty($this->brand)) {\n\t\t\tthrow new \\Exception(sprintf(\"Brand '%s' not found\",$code));\n\t\t}\n\t\t\n\t\t$this->logger->debug(sprintf(\"Code: '%s' Brand: '%s'\", $code, $this->brand));\n\t}", "public function setClassification(?WindowsQualityUpdateClassification $value): void {\n $this->getBackingStore()->set('classification', $value);\n }", "public function setPricing(string $product_code, float $price, int $quantity = 1): void\r\n {\r\n $this->product_price_calculator->addProductPrice($product_code, $price, $quantity);\r\n }", "private function addCategoryData(array &$productData): void\n {\n if (isset($productData['category_custom'])) {\n $path = $productData['category_custom'];\n } else {\n $categories = $productData['category'] ?? [];\n array_multisort(array_column($categories, 'level'), SORT_DESC, $categories);\n $category = reset($categories);\n $path = $category['path'] ?? null;\n }\n\n if (empty($path)) {\n return;\n }\n\n $pathExploded = explode(' > ', $path);\n $categoryData = [\n 'categoryPath' => $path,\n 'categories' => $pathExploded[0] ?? null,\n 'subcategories' => $pathExploded[1] ?? null,\n 'subsubcategories' => $pathExploded[2] ?? null,\n ];\n\n $productData += $categoryData;\n }", "public function testSetCodePenibilite() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setCodePenibilite(\"codePenibilite\");\n $this->assertEquals(\"codePenibilite\", $obj->getCodePenibilite());\n }", "public function setCategoryId($categoryId);", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "public function setCode(int $code)\n{\n self::$stored['codes'][] = $code;\n http_response_code($code);\n}", "public function setPricecode($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->pricecode !== $v) {\n $this->pricecode = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_PRICECODE] = true;\n }\n\n return $this;\n }", "public function setLanguage($code) {\n\t\tif(preg_match('/^[a-z]{2,3}\\_[A-Z]{2,3}$/',$code)){\n\t\t\t$this->languageCode = $code;\n\t\t} else {\n\t\t\t///TODO:APC: Why does this not throw an I18nException?\n\t\t\tthrow new \\nano\\core\\exception\\CoreException('Could not set language from code \\''.$code.'\\'');\n\t\t}\n\t}", "public function set($cat,$arr){\r\n\t\tif($cat==\"demographics\"){\r\n\t\t\treturn $this->set_demographics($arr);\r\n\t\t}\r\n \tif (isset($this->categories[$cat])){\r\n \t\t$fn=\"set_\".$cat;\r\n \t\t$v=$this->$fn($arr);\r\n \t\tif($v==false){\r\n \t\t\t$this->update($cat);\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\treturn $v;\r\n \t}\r\n \tthrow new Exception(\"Invalid category!\");\r\n\t}", "public function Category($category_arr = null) {\n if ($category_arr!=null) {\n self::checkConnection();\n $this->validateAndSetData($category_arr);\n $this->checkIfCurrent();\n }\n }", "private function setPremiumCode(){\n for($i = 0; $i < 7; $i++) {\n $this->premiumCode .= rand(1,9);\n };\n $this->discount = 10;\n }", "public function setCmsCategoryId($val){\n $this->CmsCategoryId=$val;\n }" ]
[ "0.68872285", "0.6668269", "0.65835994", "0.6556831", "0.6556831", "0.64904106", "0.6211891", "0.60206074", "0.59408706", "0.5703551", "0.5678945", "0.5676267", "0.5662469", "0.56093144", "0.55840325", "0.55368626", "0.55045605", "0.54975426", "0.54634476", "0.54634476", "0.54077744", "0.5405983", "0.5392045", "0.5329882", "0.53233147", "0.5291208", "0.5260999", "0.5252833", "0.52264005", "0.51937294", "0.5151373", "0.51508385", "0.513937", "0.51389945", "0.512746", "0.50991154", "0.5081922", "0.50527537", "0.5039118", "0.50183743", "0.50016016", "0.49991065", "0.4999088", "0.49781838", "0.49458888", "0.49339974", "0.49328163", "0.48830435", "0.4876872", "0.4865249", "0.4865148", "0.48496348", "0.48491764", "0.48456156", "0.48295403", "0.482671", "0.48246667", "0.48086813", "0.47935706", "0.47904852", "0.47701612", "0.47400588", "0.47093424", "0.47058675", "0.46986002", "0.4691933", "0.4680349", "0.46682587", "0.46622652", "0.46597835", "0.46449155", "0.46360338", "0.46295416", "0.4621958", "0.46205795", "0.46151328", "0.46073788", "0.4606694", "0.46062067", "0.45983148", "0.45981443", "0.4598133", "0.4594595", "0.45942438", "0.45942438", "0.45921624", "0.45884466", "0.45728207", "0.45655996", "0.45638347", "0.45619398", "0.45596862", "0.4551574", "0.4548875", "0.45413378", "0.4539695", "0.45350817", "0.4529651", "0.45239612", "0.4517267" ]
0.5218186
29
setProdCategory() Set the value of [prod_category_shipping] column.
public function setProdCategoryShipping($v) { if ($v !== null) { $v = (int) $v; } if ($this->prod_category_shipping !== $v) { $this->prod_category_shipping = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_CATEGORY_SHIPPING] = true; } if ($this->aTblShippingCategories !== null && $this->aTblShippingCategories->getProdShippingPriceId() !== $v) { $this->aTblShippingCategories = null; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProdCategoryShipping()\n {\n return $this->prod_category_shipping;\n }", "public function setShipping($shipping);", "public function setTblShippingCategories(ChildTblShippingCategories $v = null)\n {\n if ($v === null) {\n $this->setProdCategoryShipping(NULL);\n } else {\n $this->setProdCategoryShipping($v->getProdShippingPriceId());\n }\n\n $this->aTblShippingCategories = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the ChildTblShippingCategories object, it will not be re-added.\n if ($v !== null) {\n $v->addTblProdInfo($this);\n }\n\n\n return $this;\n }", "public function setProductCategory(?ProductCategory $productCategory): void\n {\n $this->productCategory = $productCategory;\n }", "public function setShippingCost($shippingCost);", "public function setShipping($shipping)\n {\n $this->shipping = $shipping;\n }", "public function setUpdateCategory(?UpdateCategory $value): void {\n $this->getBackingStore()->set('updateCategory', $value);\n }", "public function setProduct_category ($product_category) {\n\t$this->product_category = $this->getClass()->getFieldDefinition(\"product_category\")->preSetData($this, $product_category);\n\treturn $this;\n}", "public function setShippingCity($shippingCity = '') {\n $city = array(\n 'x_ship_to_city'=>$this->truncateChars($shippingCity, 40),\n );\n $this->NVP = array_merge($this->NVP, $city); \n }", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "public function setShippingPrice() {\n if ($this->price > 200) {\n $this->shippingPrice = 0;\n }\n }", "public function setCategory(?SubmissionCategory $value): void {\n $this->getBackingStore()->set('category', $value);\n }", "public function setShippingCountry($shippingCountry = '') {\n $country = array(\n 'x_ship_to_country'=>$this->truncateChars($shippingCountry, 60),\n );\n $this->NVP = array_merge($this->NVP, $country); \n }", "public function setShippingCity($value)\n {\n return $this->setParameter('shippingCity', $value);\n }", "protected function setCategory($productID, $category)\r\n {\r\n \r\n // SQL query\r\n $sql = \"UPDATE tbl_products SET categories= '\" . $category . \"'WHERE id_products= '\" . $productID . \"'\";\r\n \r\n // Connect to database and run query\r\n $result = $this->connect->query($sql);\r\n \r\n // Check to see if query passed and registered\r\n if ($result) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public function setShippingMethod(ShippingMethodInterface $shipping_method);", "public function setShippingCountry($value)\n {\n return $this->setParameter('shippingCountry', $value);\n }", "private function setShippingOptions() {\n // Reset the settings if this is a recrawl\n if ($this->getSaverData()->isRecrawl()) {\n // Set dimensions and weight\n $this->product->set_weight('');\n $this->product->set_length('');\n $this->product->set_width('');\n $this->product->set_height('');\n\n // Set shipping class\n $this->product->set_shipping_class_id(0);\n }\n\n // No shipping for virtual products.\n if ($this->wcData->isVirtual()) {\n $this->product->set_virtual(true);\n return;\n }\n\n // Not a virtual product.\n $this->product->set_virtual(false);\n\n // Set dimensions and weight\n $this->product->set_weight($this->wcData->getWeight());\n $this->product->set_length($this->wcData->getLength());\n $this->product->set_width($this->wcData->getWidth());\n $this->product->set_height($this->wcData->getHeight());\n\n // Set shipping class\n $this->product->set_shipping_class_id($this->wcData->getShippingClassId());\n }", "public function getShippingCategoryId();", "public function getProdCategory()\n {\n return $this->prod_category;\n }", "public function setShippingDescription($description);", "public function assignProductsToCategory(array $productSkus, $categoryCode);", "public function setAxis($category)\n {\n parent::setAttr(\"axis\", $category);\n }", "public function setCartShippingMethodID($shippingMethodId)\n {\n }", "function setShipping($ship_key)\n {\n return 4.50;\n }", "public function setShipping($shippingAddress)\n {\n $this->_shipping['Name'] = $shippingAddress['shipping_firstname'].' '.$shippingAddress['shipping_lastname'];\n $this->_shipping['Address'] = array('AddressLine' => $shippingAddress['shipping_address1'].' '.$shippingAddress['shipping_address2'],\n 'City' => $shippingAddress['shipping_city'],\n 'StateProvinceCode' => $shippingAddress['shipping_state'],\n 'PostalCode' => $shippingAddress['shipping_zipcode'],\n 'CountryCode' => $shippingAddress['shipping_country'],\n );\n $this->_shipping['address_id'] = $shippingAddress['address_id'];\n $this->_shipping['contact_phone'] = $shippingAddress['contact_phone'];\n $this->_shipping['contact_email'] = $shippingAddress['contact_email'];\n $this->persist();\n }", "public function setCategoryAttribute($value)\n {\n $this->attributes['category'] = strtoupper($value);\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function setShippingValues(Order $order): void;", "public function setShippingService(ShippingService $service)\n {\n $this->shippingService = $service;\n }", "public function set_shipping_info( $values ) {\n\n\t\t// Update customer location to posted location so we can correctly check available shipping methods\n\t\tif ( ! empty( $values['country'] ) ) {\n\t\t\tWC()->customer->set_shipping_country( $values['country'] );\n\t\t}\n\t\tif ( ! empty( $values['state'] ) ) {\n\t\t\tWC()->customer->set_shipping_state( $values['state'] );\n\t\t}\n\t\tif ( ! empty( $values['postcode'] ) ) {\n\t\t\tWC()->customer->set_shipping_postcode( $values['postcode'] );\n\t\t}\n\t}", "public function setCategory($value)\n {\n $this->setItemValue('category', ['id' => (int)$value]);\n }", "public function setType(PagSeguroShippingType $type)\n {\n $this->type = $type;\n }", "public function setShippingCode($data)\n {\n parent::setShippingCode($data);\n }", "public function setShippingState($shippingState = '') {\n $state = array(\n 'x_ship_to_state'=>$this->truncateChars($shippingState, 40),\n );\n $this->NVP = array_merge($this->NVP, $state); \n }", "function changeProduct($cart_table_id,$true_or_false)\n {\n $this->pdelivery[$cart_table_id]=$true_or_false; //change product group delivery\n }", "public function setCategory($category)\n {\n $this->category = $category;\n }", "public function setCategory($category)\n {\n $this->category = $category;\n }", "public function setCategoryIdAttribute($value)\n\t{\n\t\t$this->attributes['category_id'] = ($value) ? $value : null;\n\t}", "public function setIpCategories(?array $value): void {\n $this->getBackingStore()->set('ipCategories', $value);\n }", "public function setProdCategory($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_category !== $v) {\n $this->prod_category = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_CATEGORY] = true;\n }\n\n if ($this->aTblMenus !== null && $this->aTblMenus->getMenuAlias() !== $v) {\n $this->aTblMenus = null;\n }\n\n return $this;\n }", "public function set_manual_shipping($shipping_data = FALSE)\r\n\t{\r\n\t\tif (is_array($shipping_data) && ! empty($shipping_data))\r\n\t\t{\r\n\t\t\t// Loop through data and set to cart session summary.\r\n\t\t\tforeach($shipping_data as $column => $column_value)\r\n\t\t\t{\r\n\t\t\t\tif ($column == 'value' && $this->non_negative($column_value))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->flexi->cart_contents['settings']['shipping']['value'] = $this->format_calculation($column_value, 2, TRUE);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add any existing shipping surcharge to the new value.\r\n\t\t\t\t\t$this->flexi->cart_contents['summary']['shipping_total'] = $this->format_calculation(\r\n\t\t\t\t\t\t$column_value + $this->flexi->cart_contents['settings']['shipping']['data']['surcharge'], 2, TRUE\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t\telse if ($column == 'tax_rate' && $this->non_negative($column_value))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->flexi->cart_contents['settings']['shipping']['tax_rate'] = $column_value;\r\n\t\t\t\t}\r\n\t\t\t\telse if (isset($this->flexi->cart_contents['settings']['shipping'][$column]))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->flexi->cart_contents['settings']['shipping'][$column] = $column_value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\t\t\r\n\t\treturn FALSE;\r\n\t}", "public function setShippingInvoiced($shippingInvoiced);", "public function setShippingAddressAction()\n {\n $data = $this->Request()->getParams();\n //we need to set this because of a bug in the shopware models\n if (!isset($data['stateId'])) {\n $data['stateId'] = 0;\n }\n\n /** @var Shopware\\Models\\Customer\\Customer $customerModel */\n $customerModel = Shopware()->Models()->find('Shopware\\Models\\Customer\\Customer', $data['userId']);\n\n if ($shippingAddressModel = $customerModel->getShipping()) {\n $shippingAddressModel->fromArray($data);\n\n Shopware()->Models()->persist($shippingAddressModel);\n Shopware()->Models()->flush();\n\n $this->view->assign(['shippingAddressId' => $shippingAddressModel->getId()]);\n }\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setProdId($value);\n break;\n case 1:\n $this->setProdPriceId($value);\n break;\n case 2:\n $this->setProdName($value);\n break;\n case 3:\n $this->setProdAlt1($value);\n break;\n case 4:\n $this->setProdAlt2($value);\n break;\n case 5:\n $this->setProdAlt3($value);\n break;\n case 6:\n $this->setProdAlt4($value);\n break;\n case 7:\n $this->setProdCode($value);\n break;\n case 8:\n $this->setProdCategory($value);\n break;\n case 9:\n $this->setProdCategoryShipping($value);\n break;\n case 10:\n $this->setProdWriteup($value);\n break;\n case 11:\n $this->setProdLength($value);\n break;\n case 12:\n $this->setProdWingspan($value);\n break;\n case 13:\n $this->setProdHeight($value);\n break;\n case 14:\n $this->setProdScale($value);\n break;\n case 15:\n $this->setProdLinks($value);\n break;\n case 16:\n $this->setProdLinkdescription($value);\n break;\n case 17:\n $this->setProdFront($value);\n break;\n case 18:\n $this->setProdKeywords($value);\n break;\n case 19:\n $this->setProdKeywordsWriteup($value);\n break;\n case 20:\n $this->setProdTitle($value);\n break;\n case 21:\n $this->setProdDescription($value);\n break;\n case 22:\n $this->setProdGeneral($value);\n break;\n case 23:\n $this->setProdEra($value);\n break;\n case 24:\n $this->setProdCompany($value);\n break;\n case 25:\n $this->setProdRelated($value);\n break;\n case 26:\n $this->setProdRelatedPa($value);\n break;\n case 27:\n $this->setProdRelatedM3($value);\n break;\n case 28:\n $this->setProdRelated2($value);\n break;\n case 29:\n $this->setProdSaveas($value);\n break;\n case 30:\n $this->setProdAircraftreg($value);\n break;\n case 31:\n $this->setMb($value);\n break;\n case 32:\n $this->setPa($value);\n break;\n case 33:\n $this->setM3($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setProduct(Product $product);", "public function setProductName(?string $value): void {\n $this->getBackingStore()->set('productName', $value);\n }", "public function setShippingAddress(?Address $shippingAddress): void\n {\n $this->shippingAddress = $shippingAddress;\n }", "public function getTblShippingCategories(ConnectionInterface $con = null)\n {\n if ($this->aTblShippingCategories === null && ($this->prod_category_shipping !== null)) {\n $this->aTblShippingCategories = ChildTblShippingCategoriesQuery::create()->findPk($this->prod_category_shipping, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aTblShippingCategories->addTblProdInfos($this);\n */\n }\n\n return $this->aTblShippingCategories;\n }", "public function setUpdateCategory($val)\n {\n $this->_propDict[\"updateCategory\"] = $val;\n return $this;\n }", "public function setShippingAmount($amount);", "public function setCategory6($val)\n {\n $this->_propDict[\"category6\"] = $val;\n return $this;\n }", "public function update(ProductCategory $productCategory):void \n {\n $productCategoryDAO = new ProductCategoryDAO();\n $productCategoryDAO->update($productCategory);\n }", "public function setCashOnDelivery($value): void\n {\n $this->cash_on_delivery = $value;\n }", "protected function setShipment(array $value)\n {\n $this->shipment = $value;\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "protected function setSubCategory($productID, $subCategory)\r\n {\r\n \r\n // SQL query\r\n $sql = \"UPDATE tbl_products SET sub_categories= '\" . $subCategory . \"'WHERE id_products= '\" . $productID . \"'\";\r\n \r\n // Connect to database and run query\r\n $result = $this->connect->query($sql);\r\n \r\n // Check to see if query passed and registered\r\n if ($result) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public function setShippingOptionId($id){\n $this->shippingOptionId = $id;\n }", "public function filterByProdShippingDescription($prodShippingDescription = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($prodShippingDescription)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $prodShippingDescription)) {\n $prodShippingDescription = str_replace('*', '%', $prodShippingDescription);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(TblProdShippingTableMap::COL_PROD_SHIPPING_DESCRIPTION, $prodShippingDescription, $comparison);\n }", "public function update(ProductCategory $productCategory):void \n {\n // Generate the query\n $sql = \"UPDATE product_categories\n SET name = :name,\n status = :status\n WHERE id = :id\";\n \n // Open the connection\n $pdo = DbConfig::getPdo();\n \n // Execute the query\n $stmt = $pdo->prepare($sql);\n $stmt->execute([\n ':name' => $productCategory->getName(),\n ':status' => $productCategory->getStatus(),\n ':id' => $productCategory->getId()\n ]);\n \n // Close the connection\n $pdo = null; \n }", "public function setShippingDiscountAmount($amount);", "public function setShippingPostcode($value)\n {\n return $this->setParameter('shippingPostcode', $value);\n }", "private function set_shipping_data($shipping_data = FALSE, $reset_data_only = FALSE)\r\n\t{\r\n\t\t// If all data must be set, rather than just the shippings internal 'data' array.\r\n\t\tif (! $reset_data_only)\r\n\t\t{\r\n\t\t\t// Set default shipping data if no data is submitted.\r\n\t\t\tif (! $shipping_data)\r\n\t\t\t{\r\n\t\t\t\t$set_default_data = TRUE;\r\n\t\t\t\t$shipping_data = (empty($shipping_data)) ? \r\n\t\t\t\t\tarray('id' => 0, 'name' => FALSE, 'description' => FALSE, 'value' => 0, 'tax_rate' => FALSE) : $shipping_data;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tforeach($shipping_data as $column => $data)\r\n\t\t\t{\r\n\t\t\t\t// If data was submitted, update cart shipping array.\r\n\t\t\t\tif (! isset($set_default_data))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->flexi->cart_contents['settings']['shipping'][$column] = $data;\r\n\t\t\t\t}\r\n\t\t\t\t// Else, default values need to be set.\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$value = (! empty($this->flexi->cart_defaults['shipping'][$column]) || $this->non_negative($this->flexi->cart_defaults['shipping'][$column])) ? \r\n\t\t\t\t\t\t$this->flexi->cart_defaults['shipping'][$column] : $data;\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this->flexi->cart_contents['settings']['shipping'][$column] = $value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Set location placeholder if not set.\r\n\t\t\tif (! isset($this->flexi->cart_contents['settings']['shipping']['location']))\r\n\t\t\t{\r\n\t\t\t\t$this->flexi->cart_contents['settings']['shipping']['location'] = array();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Set shipping 'data' array.\r\n\t\tif (isset($set_default_data) || $reset_data_only)\r\n\t\t{\r\n\t\t\t$default_columns = array(\r\n\t\t\t\t'surcharge' => 0, 'separate_shipping_value' => 0, \r\n\t\t\t\t'separate_items' => 0, 'separate_value' => 0, 'separate_weight' => 0, \r\n\t\t\t\t'free_items' => 0, 'free_value' => 0, 'free_weight' => 0, \r\n\t\t\t\t'banned_shipping_items' => array(), 'separate_shipping_items' => array(), 'item_shipping_rates' => array()\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\tforeach($default_columns as $column => $default_value)\r\n\t\t\t{\r\n\t\t\t\t$this->flexi->cart_contents['settings']['shipping']['data'][$column] = $default_value;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn TRUE;\r\n\t}", "public function setShippingCanceled($shippingCanceled);", "public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }", "public function setShipping($shipping)\r\n {\r\n $this->shipping = $shipping;\r\n\r\n return $this;\r\n }", "public function setSameAsBillingShippingAddress()\n {\n $this->_rootElement->find($this->sameAsBilling, Locator::SELECTOR_CSS, 'checkbox')->hover();\n $this->browser->find($this->accountInformationBlock)->hover();\n $this->_rootElement->find($this->sameAsBilling, Locator::SELECTOR_CSS, 'checkbox')->setValue('Yes');\n }", "public function setCartAttribute($value)\n {\n $value['instance'] = 'order';\n $this->attributes['cart'] = serialize($value);\n }", "public function setShippingPhone($value)\n {\n return $this->setParameter('shippingPhone', $value);\n }", "public function setShippingServiceName($name){\n $this->shippingServiceName = (string) $name;\n }", "public function setSalePriceAttribute($value)\n {\n $this->attributes['sale_price'] = Utils::numbersOnly($value);\n }", "public function setCategory($category)\n {\n if(strlen($category) <= 25 && strlen($category) > 0 && preg_match('#^[a-zA-Z- ]*$#', $category)) {\n $this->category = $category;\n }\n }", "public function SetDefaultCfop()\n {\n //mark all other user cfopls as not default\n $queryRemoveDefault = \"UPDATE user_cfop SET default_cfop=\".UserCfop::NON_DEFAULT_CFOP.\" WHERE user_id=:user_id\";\n $removeDefault = $this->sqlDataBase->prepare($queryRemoveDefault);\n $removeDefault->execute(array(':user_id'=>$this->userId));\n\n //mark current cfop as default\n $querySetDefault = \"UPDATE user_cfop SET default_cfop=\".UserCfop::DEFAULT_CFOP.\" WHERE id=:user_cfop_id\";\n $setDefault = $this->sqlDataBase->prepare($querySetDefault);\n $setDefault->execute(array(':user_cfop_id'=>$this->userCfopId));\n }", "public function setProduct_attribute_is_free( $product_attribute_is_free ) {\n\t\t$this->product_attribute_is_free = $product_attribute_is_free;\n\t}", "public function setShippingCompany($value)\n {\n return $this->setParameter('shippingCompany', $value);\n }", "public function setShippingCost($shipping_cost)\r\n {\r\n $this->shipping_cost = $shipping_cost;\r\n\r\n return $this;\r\n }", "public function assignProductToCategories($productSku, array $categoryCodes);", "function dbAddCategoriesProduct( $iCategory, $iProduct, $bErase = true ){\n global $oFF;\n if( isset( $bErase ) )\n $oFF->deleteInFile( DB_PRODUCTS_CATEGORIES, $iProduct, 1 );\n $oFF->setRow( Array( $iCategory, $iProduct ) );\n $oFF->addToFile( DB_PRODUCTS_CATEGORIES );\n }", "public function setShippingDate($data)\n {\n if ($data == '0000-00-00 00:00:00') {\n $data = null;\n }\n if ($data === 'CURRENT_TIMESTAMP' || is_null($data)) {\n $data = \\Zend_Date::now()->setTimezone('UTC');\n }\n\n if ($data instanceof \\Zend_Date) {\n\n $data = new \\DateTime($data->toString('yyyy-MM-dd HH:mm:ss'), new \\DateTimeZone($data->getTimezone()));\n\n } elseif (!is_null($data) && !$data instanceof \\DateTime) {\n\n $data = new \\DateTime($data, new \\DateTimeZone('UTC'));\n }\n if ($data instanceof \\DateTime && $data->getTimezone()->getName() != 'UTC') {\n\n $data->setTimezone(new \\DateTimeZone('UTC'));\n }\n\n if ($this->_shippingDate != $data) {\n $this->_logChange('shippingDate');\n }\n\n $this->_shippingDate = $data;\n return $this;\n }", "public function set_category_id($category)\n {\n parent::set_category(0);\n }", "public function setProduct(Product $product)\n {\n $this->product_id = $product->id;\n $this->_calculateTotal();\n }", "public function set_shipping_method($id = null) {\n\t\tif ($id) {\n\t\t\ttry {\n\t\t\t\tif ($this->{$this->modelClass}->setShippingMethod($id)) {\n\t\t\t\t\t$this->notice(__d('shop', 'Shipping method has been changed'), array(\n\t\t\t\t\t\t'redirect' => true\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t\tvar_dump($this->{$this->modelClass}->validationErrors);\n\t\t\t\texit;\n\t\t\t} catch (Exception $e) {\n\t\t\t\t$this->notice($e);\n\t\t\t}\n\t\t}\n\n\t\t$this->notice(__d('shop', 'No shipping method selected'), array(\n\t\t\t'redirect' => true,\n\t\t\t'level' => 'warning'\n\t\t));\n\t}", "public function setCategory( $category, $domain = false ) {\n\t\t$this->category = [ 'categorie' => $category,\n\t\t\t\t\t\t\t\t'domain' => $domain ];\n\t}", "public function filterByProdShippingName($prodShippingName = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($prodShippingName)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $prodShippingName)) {\n $prodShippingName = str_replace('*', '%', $prodShippingName);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(TblProdShippingTableMap::COL_PROD_SHIPPING_NAME, $prodShippingName, $comparison);\n }", "public function setProduction($production) {\n $this->configuration['production'] = $production;\n }", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "function setCategory($value) \n {\n return $this->instance->setcategory($value);\n }", "public function setParentCategoryId(?string $value): void {\n $this->getBackingStore()->set('parentCategoryId', $value);\n }", "public function setdeliverytype()\n {\n $this->extend(\"onBeforeSetDeliveryType\");\n\n $type = $this->request->param(\"ID\");\n \n if ($type && in_array($type, array(\"deliver\", \"collect\"))) {\n Session::set(\"Checkout.Delivery\", $type);\n Session::clear(\"Checkout.PostageID\");\n }\n \n $this->extend(\"onAfterSetDeliveryType\");\n \n $this->redirectBack();\n }", "public function setProduto($produto)\r\n {\r\n $this->produto = $produto;\r\n }", "protected function setCurrentCategory($category)\n {\n $this->current_category = $category;\n }", "public function setNoMultiShipping(){\n $emptyCache = false;\n $db = JFactory::getDBO();\n if (JeproshopSettingModelSetting::getValue('allow_multi_shipping')){\n // Upgrading quantities\n $query = \"SELECT sum(\" . $db->quoteName('quantity') . \") AS quantity, product_id, product_attribute_id, count(*) as count FROM \";\n $query .= $db->quoteName('#__jeproshop_cart_product') . \" WHERE \" . $db->quoteName('cart_id') . \" = \" . (int)$this->cart_id . \" AND \" ;\n $query .= $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id . \" GROUP BY product_id, product_attribute_id HAVING count > 1\";\n\n $db->setQuery($query);\n $products = $db->loadObjectList();\n\n foreach ($products as $product){\n $query = \"UPDATE \" . $db->quoteName('#__jeproshop_cart_product') . \" SET \" . $db->quoteName('quantity') . \" = \" . $product->quantity;\n $query .= \"\tWHERE \" . $db->quoteName('cart_id') . \" = \".(int)$this->cart_id . \" AND \" . $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id ;\n $query .= \" AND product_id = \" . $product->product_id . \" AND product_attribute_id = \" . $product->product_attribute_id;\n $db->setQuery($query);\n if ($db->query())\n $emptyCache = true;\n }\n\n // Merging multiple lines\n $query = \"DELETE cart_product_1 FROM \" . $db->quoteName('#__jeproshop_cart_product') . \" AS cart_product_1 INNER JOIN \";\n $query .= $db->quoteName('#__jeproshop_cart_product') . \" AS cart_product_2 ON ((cart_product_1.cart_id = cart_product_2.\";\n $query .= \"cart_id) AND (cart_product_1.product_id = cart_product_2.product_id) AND (cart_product_1.product_attribute_id = \";\n $query .= \"cart_product_2.product_attribute_id) AND (cart_product_1.address_delivery_id <> cart_product_2.address_delivery_id) \";\n $query .= \" AND (cart_product_1.date_add > cart_product_2.date_add) )\";\n $db->setQuery($query);\n $db->query();\n }\n\n // Update delivery address for each product line\n $query = \"UPDATE \" . $db->quoteName('#__jeproshop_cart_product') . \" SET \" . $db->quoteName('address_delivery_id') . \" = ( SELECT \";\n $query .= $db->quoteName('address_delivery_id') . \" FROM \" . $db->quoteName('#__jeproshop_cart') . \" WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . \" AND \" . $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id . \") WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . (JeproshopSettingModelSetting::getValue('allow_multi_shipping') ? \" AND \" . $db->quoteName('shop_id') . \" = \" .(int)$this->shop_id : \"\");\n\n $db->setQuery($query);\n\n $cache_id = 'jeproshop_cart_set_no_multi_shipping'.(int)$this->cart_id.'_'.(int)$this->shop_id .((isset($this->address_delivery_id) && $this->address_delivery_id) ? '-'.(int)$this->address_delivery_id : '');\n if (!JeproshopCache::isStored($cache_id)){\n $db->setQuery($query);\n if ($result = (bool)$db->query())\n $emptyCache = true;\n JeproshopCache::store($cache_id, $result);\n }\n\n if (JeproshopCustomization::isFeaturePublished()){\n //Db::getInstance()->execute(\n\t\t\t$query = \" UPDATE \" . $db->quoteName('#__jeproshop_customization') . \" SET \" . $db->quoteName('address_delivery_id') . \" = ( SELECT \";\n $query .= $db->quoteName('address_delivery_id') . \" FROM \" . $db->quoteName('#__jeproshop_cart') . \" WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . \" ) WHERE \" . $db->quoteName('cart_id') . \" = \" .(int)$this->cart_id;\n\n $db->setQuery($query);\n $db->query();\n }\n if ($emptyCache){\n $this->_products = null;\n }\n }", "public function setShippingState($value)\n {\n return $this->setParameter('shippingState', $value);\n }", "public function setCategory($value)\n {\n return $this->set('Category', $value);\n }", "public function add_product_shipping($product_id)\n\t{\n\t\t$data = array(\n\t\t\t\t'product_shipping'=>1,\n\t\t\t\t'product_width'=>$this->input->post('product_width'),\n\t\t\t\t'product_height'=>$this->input->post('product_height'),\n\t\t\t\t'product_length'=>$this->input->post('product_length'),\n\t\t\t\t'product_weight'=>$this->input->post('product_weight')\n\t\t\t);\n\t\t\t\n\t\t$this->db->where('product_id', $product_id);\n\t\tif($this->db->update('product', $data))\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\telse{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "function SetCategoryList(&$categoryList)\n\t{\n\t\t$map = new CategorySupplierMap();\n\t\t$map->RemoveMapping($this);\n\t\t$this->_categoryList = $categoryList;\n\t}", "public function setProduct(LineItemProduct $product)\n\t{\n\t\t$this->addKeyValue('product', $product); \n\n\t}", "public function setCategory($category_slug)\n {\n if ( $this->category ) return;\n $this->category = get_category_by_slug( $category_slug );\n if ( empty($this->category) ) {\n ferror(-500150, \"Error: Category(slug) - $category_slug - does not exists.\");\n }\n $this->loadConfig();\n }", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "public function setShippingAddress($shippingAddress){\n return $this->setData(self::SHIPPING_ADDRESS, $shippingAddress);\n }" ]
[ "0.6141061", "0.59430236", "0.5873597", "0.57895935", "0.57112473", "0.55874574", "0.5430686", "0.53130174", "0.52411", "0.5189779", "0.5141314", "0.50951695", "0.50834197", "0.5068371", "0.50339675", "0.50216115", "0.5000084", "0.49748537", "0.4946954", "0.4944385", "0.49200687", "0.4912106", "0.4888119", "0.48795158", "0.48740843", "0.4873063", "0.4869108", "0.48635015", "0.4849957", "0.4843056", "0.48087043", "0.47972602", "0.47861582", "0.47755855", "0.4763601", "0.47624883", "0.4754272", "0.4754272", "0.4741937", "0.47279912", "0.46930093", "0.46883795", "0.4686869", "0.46832687", "0.4672317", "0.46575677", "0.46476376", "0.46254534", "0.4624902", "0.46158284", "0.46121612", "0.46059284", "0.46023965", "0.45994082", "0.4599326", "0.45988688", "0.45521942", "0.4548171", "0.45417368", "0.45408306", "0.4520163", "0.4518492", "0.45153204", "0.4508196", "0.44997865", "0.4498368", "0.44977707", "0.44846922", "0.44844395", "0.4481203", "0.44655642", "0.44596618", "0.44397685", "0.4436077", "0.44278765", "0.44242898", "0.44153738", "0.4413955", "0.44087964", "0.4407051", "0.44047314", "0.4401367", "0.43994257", "0.4394041", "0.43927845", "0.43910906", "0.43904266", "0.43885282", "0.4382416", "0.4378898", "0.43776166", "0.43775716", "0.43674558", "0.4367407", "0.4353409", "0.43534037", "0.4348537", "0.43345347", "0.43325156", "0.4332466" ]
0.69374114
0
setProdCategoryShipping() Set the value of [prod_writeup] column.
public function setProdWriteup($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_writeup !== $v) { $this->prod_writeup = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_WRITEUP] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setShipping($shipping);", "public function setProdCategoryShipping($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_category_shipping !== $v) {\n $this->prod_category_shipping = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_CATEGORY_SHIPPING] = true;\n }\n\n if ($this->aTblShippingCategories !== null && $this->aTblShippingCategories->getProdShippingPriceId() !== $v) {\n $this->aTblShippingCategories = null;\n }\n\n return $this;\n }", "public function setShipping($shipping)\n {\n $this->shipping = $shipping;\n }", "public function getProdCategoryShipping()\n {\n return $this->prod_category_shipping;\n }", "public function setShippingCost($shippingCost);", "public function set_manual_shipping($shipping_data = FALSE)\r\n\t{\r\n\t\tif (is_array($shipping_data) && ! empty($shipping_data))\r\n\t\t{\r\n\t\t\t// Loop through data and set to cart session summary.\r\n\t\t\tforeach($shipping_data as $column => $column_value)\r\n\t\t\t{\r\n\t\t\t\tif ($column == 'value' && $this->non_negative($column_value))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->flexi->cart_contents['settings']['shipping']['value'] = $this->format_calculation($column_value, 2, TRUE);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add any existing shipping surcharge to the new value.\r\n\t\t\t\t\t$this->flexi->cart_contents['summary']['shipping_total'] = $this->format_calculation(\r\n\t\t\t\t\t\t$column_value + $this->flexi->cart_contents['settings']['shipping']['data']['surcharge'], 2, TRUE\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t\telse if ($column == 'tax_rate' && $this->non_negative($column_value))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->flexi->cart_contents['settings']['shipping']['tax_rate'] = $column_value;\r\n\t\t\t\t}\r\n\t\t\t\telse if (isset($this->flexi->cart_contents['settings']['shipping'][$column]))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->flexi->cart_contents['settings']['shipping'][$column] = $column_value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\t\t\r\n\t\treturn FALSE;\r\n\t}", "public function setShippingDescription($description);", "private function setShippingOptions() {\n // Reset the settings if this is a recrawl\n if ($this->getSaverData()->isRecrawl()) {\n // Set dimensions and weight\n $this->product->set_weight('');\n $this->product->set_length('');\n $this->product->set_width('');\n $this->product->set_height('');\n\n // Set shipping class\n $this->product->set_shipping_class_id(0);\n }\n\n // No shipping for virtual products.\n if ($this->wcData->isVirtual()) {\n $this->product->set_virtual(true);\n return;\n }\n\n // Not a virtual product.\n $this->product->set_virtual(false);\n\n // Set dimensions and weight\n $this->product->set_weight($this->wcData->getWeight());\n $this->product->set_length($this->wcData->getLength());\n $this->product->set_width($this->wcData->getWidth());\n $this->product->set_height($this->wcData->getHeight());\n\n // Set shipping class\n $this->product->set_shipping_class_id($this->wcData->getShippingClassId());\n }", "public function setShippingCountry($shippingCountry = '') {\n $country = array(\n 'x_ship_to_country'=>$this->truncateChars($shippingCountry, 60),\n );\n $this->NVP = array_merge($this->NVP, $country); \n }", "public function save_shipping($post) {\n\t\t$user = $this->session->userdata('user');\n\t\t// Grab only the data that belongs in the shipping table\n\t\t$data['first_name'] = $post['first_name'];\n\t\t$data['last_name'] = $post['last_name'];\n\t\t$data['address'] = $post['address'];\n\t\t$data['address_2'] = $post['address_2'];\n\t\t$data['state'] = $post['state'];\n\t\t$data['city'] = $post['city'];\n\t\t$data['country'] = $post['country'];\n\t\t$data['zip_code'] = $post['zip_code'];\n\n\t\t// If a record already exists, update it\n\t\tif ($userMailing = $this->fetch(array('user_id'=>$user['id']))) {\n\t\t\t$this->db->where(array('user_id',$user['id']));\n\t\t\t$this->db->update(self::TABLE, $data);\n\t\t} else {\n\t\t\t$data['user_id'] = $user['id'];\n\t\t\t$this->db->insert(self::TABLE, $data);\n\t\t}\n\n\t}", "public function setShippingPrice() {\n if ($this->price > 200) {\n $this->shippingPrice = 0;\n }\n }", "private function set_shipping_data($shipping_data = FALSE, $reset_data_only = FALSE)\r\n\t{\r\n\t\t// If all data must be set, rather than just the shippings internal 'data' array.\r\n\t\tif (! $reset_data_only)\r\n\t\t{\r\n\t\t\t// Set default shipping data if no data is submitted.\r\n\t\t\tif (! $shipping_data)\r\n\t\t\t{\r\n\t\t\t\t$set_default_data = TRUE;\r\n\t\t\t\t$shipping_data = (empty($shipping_data)) ? \r\n\t\t\t\t\tarray('id' => 0, 'name' => FALSE, 'description' => FALSE, 'value' => 0, 'tax_rate' => FALSE) : $shipping_data;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tforeach($shipping_data as $column => $data)\r\n\t\t\t{\r\n\t\t\t\t// If data was submitted, update cart shipping array.\r\n\t\t\t\tif (! isset($set_default_data))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->flexi->cart_contents['settings']['shipping'][$column] = $data;\r\n\t\t\t\t}\r\n\t\t\t\t// Else, default values need to be set.\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$value = (! empty($this->flexi->cart_defaults['shipping'][$column]) || $this->non_negative($this->flexi->cart_defaults['shipping'][$column])) ? \r\n\t\t\t\t\t\t$this->flexi->cart_defaults['shipping'][$column] : $data;\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this->flexi->cart_contents['settings']['shipping'][$column] = $value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Set location placeholder if not set.\r\n\t\t\tif (! isset($this->flexi->cart_contents['settings']['shipping']['location']))\r\n\t\t\t{\r\n\t\t\t\t$this->flexi->cart_contents['settings']['shipping']['location'] = array();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Set shipping 'data' array.\r\n\t\tif (isset($set_default_data) || $reset_data_only)\r\n\t\t{\r\n\t\t\t$default_columns = array(\r\n\t\t\t\t'surcharge' => 0, 'separate_shipping_value' => 0, \r\n\t\t\t\t'separate_items' => 0, 'separate_value' => 0, 'separate_weight' => 0, \r\n\t\t\t\t'free_items' => 0, 'free_value' => 0, 'free_weight' => 0, \r\n\t\t\t\t'banned_shipping_items' => array(), 'separate_shipping_items' => array(), 'item_shipping_rates' => array()\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\tforeach($default_columns as $column => $default_value)\r\n\t\t\t{\r\n\t\t\t\t$this->flexi->cart_contents['settings']['shipping']['data'][$column] = $default_value;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn TRUE;\r\n\t}", "public function setShippingCity($shippingCity = '') {\n $city = array(\n 'x_ship_to_city'=>$this->truncateChars($shippingCity, 40),\n );\n $this->NVP = array_merge($this->NVP, $city); \n }", "function setShipping($ship_key)\n {\n return 4.50;\n }", "public function save_shippingAction() {\r\n\t\t$shipping_method = $this->getRequest()->getPost('shipping_method', '');\r\n\t\t$payment_method = $this->getRequest()->getPost('payment_method', false);\r\n\t\t$old_shipping_method = $this->getOnepage()->getQuote()->getShippingAddress()->getShippingMethod();\r\n\t\t$billing_data = $this->getRequest()->getPost('billing', false);\r\n\t\tif($billing_data['country_id']){\r\n\t\t\tMage::getModel('checkout/session')->getQuote()->getBillingAddress()->setData('country_id',$billing_data['country_id'])->save();\r\n\t\t}\r\n\t\t// if ($shipping_method && $shipping_method != '' && $shipping_method != $old_shipping_method) {\r\n\t\t\tMage::helper('onestepcheckout')->saveShippingMethod($shipping_method);\r\n\t\t\t$this->getOnepage()->saveShippingMethod($shipping_method);\r\n\t\t// }\r\n\t\t\r\n\t\t// if ($payment_method != '') {\r\n\t\t\ttry{\r\n\t\t\t\t$payment = $this->getRequest()->getPost('payment', array());\r\n\t\t\t\t$payment['method'] = $payment_method;\r\n\t\t\t\t$this->getOnepage()->savePayment($payment);\r\n\t\t\t\tMage::helper('onestepcheckout')->savePaymentMethod($payment);\r\n\t\t\t}\r\n\t\t\tcatch(Exception $e) {\r\n\t\t\t\t//\r\n\t\t\t}\r\n\t\t// }\r\n\t\t\r\n\t\t// $paymentHtml = $this->_getPaymentMethodsHtml();\r\n\t\t// $reviewHtml = $this->_getReviewTotalHtml();\r\n\t\t// $result = array('payment' => $paymentHtml, \r\n\t\t\t\t\t\t\t\t\t\t// 'review' => $reviewHtml);\r\n\t\t// $this->getResponse()->setBody(Zend_Json::encode($result));\r\n\t\t$this->loadLayout(false);\r\n\t\t$this->renderLayout();\r\n\t}", "public function setShippingInvoiced($shippingInvoiced);", "private function SaveShippingProvider()\n\t{\n\t\tif(isset($_SESSION['CHECKOUT']['CHECKOUT_TYPE']) && $_SESSION['CHECKOUT']['CHECKOUT_TYPE'] == 'express') {\n\t\t\t$redirectOnError = getConfig('ShopPath').'/checkout.php?action=express';\n\t\t}\n\t\telse {\n\t\t\t$redirectOnError = getConfig('ShopPath').'/checkout.php?action=checkout';\n\t\t}\n\n\t\t// If guest checkout is not enabled and the customer isn't signed in then send the customer\n\t\t// back to the beginning of the checkout process.\n\t\tif(!GetConfig('GuestCheckoutEnabled') && !CustomerIsSignedIn()) {\n\t\t\tredirect($redirectOnError);\n\t\t}\n\n\t\t// ensure products are in stock\n\t\t$this->CheckStockLevels();\n\n\t\t// For each shipping address in the order, the shipping provider now needs to be saved\n\t\t$shippingAddresses = $this->getQuote()->getShippingAddresses();\n\t\tforeach($shippingAddresses as $shippingAddress) {\n\t\t\t$shippingAddressId = $shippingAddress->getId();\n\t\t\tif(!isset($_POST['shipping_provider'][$shippingAddressId])) {\n\t\t\t\tredirect($redirectOnError);\n\t\t\t}\n\n\t\t\t$id = $_POST['shipping_provider'][$shippingAddressId];\n\t\t\t$cachedShippingMethod = $shippingAddress->getCachedShippingMethod($id);\n\t\t\t$shippingAddress->removeCachedShippingMethods();\n\t\t\tif(empty($cachedShippingMethod)) {\n\t\t\t\tredirect($redirectOnError);\n\t\t\t}\n\n\t\t\t$shippingAddress->setShippingMethod(\n\t\t\t\t$cachedShippingMethod['price'],\n\t\t\t\t$cachedShippingMethod['description'],\n\t\t\t\t$cachedShippingMethod['module']\n\t\t\t);\n\t\t\t$shippingAddress->setHandlingCost($cachedShippingMethod['handling']);\n\t\t}\n\n\t\t// We've saved the shipping provider - to the next step we go!\n\t\t@ob_end_clean();\n\t\theader(sprintf(\"location: %s/checkout.php?action=confirm_order\", $GLOBALS['ShopPath']));\n\t\tdie();\n\t}", "public function setShipping($shippingAddress)\n {\n $this->_shipping['Name'] = $shippingAddress['shipping_firstname'].' '.$shippingAddress['shipping_lastname'];\n $this->_shipping['Address'] = array('AddressLine' => $shippingAddress['shipping_address1'].' '.$shippingAddress['shipping_address2'],\n 'City' => $shippingAddress['shipping_city'],\n 'StateProvinceCode' => $shippingAddress['shipping_state'],\n 'PostalCode' => $shippingAddress['shipping_zipcode'],\n 'CountryCode' => $shippingAddress['shipping_country'],\n );\n $this->_shipping['address_id'] = $shippingAddress['address_id'];\n $this->_shipping['contact_phone'] = $shippingAddress['contact_phone'];\n $this->_shipping['contact_email'] = $shippingAddress['contact_email'];\n $this->persist();\n }", "public function updateShippingAddress() {\n Log::debug(\"Entering updateShipping\");\n DB::transaction(function () {\n $order = $this->getOrderData();\n if (isset($order)) {\n // If set shipping addres same as billing\n if (isset($_POST['useBillingAddress'])) {\n $useBilling = $_POST['useBillingAddress'];\n if ($useBilling == \"1\") {\n $order->shipping_address = $order->billing_address;\n }\n // Not using billing address\n } else {\n // update the existing billing adress or create a new one\n $address = $order->shippingAddress;\n // if no existing address or changing from billing address\n if (!isset($address) || $order->billing_address == $order->shipping_address)\n $address = new Address();\n\n $address = $this->fillOrderAddress($address);\n $address->save();\n $order->shipping_address = $address->id;\n }\n $order->save();\n }\n });\n }", "public function setShipping($shipping)\r\n {\r\n $this->shipping = $shipping;\r\n\r\n return $this;\r\n }", "public function setShippingValues(Order $order): void;", "public function setShippingMethod(ShippingMethodInterface $shipping_method);", "public function set_shipping_info( $values ) {\n\n\t\t// Update customer location to posted location so we can correctly check available shipping methods\n\t\tif ( ! empty( $values['country'] ) ) {\n\t\t\tWC()->customer->set_shipping_country( $values['country'] );\n\t\t}\n\t\tif ( ! empty( $values['state'] ) ) {\n\t\t\tWC()->customer->set_shipping_state( $values['state'] );\n\t\t}\n\t\tif ( ! empty( $values['postcode'] ) ) {\n\t\t\tWC()->customer->set_shipping_postcode( $values['postcode'] );\n\t\t}\n\t}", "public function setTblShippingCategories(ChildTblShippingCategories $v = null)\n {\n if ($v === null) {\n $this->setProdCategoryShipping(NULL);\n } else {\n $this->setProdCategoryShipping($v->getProdShippingPriceId());\n }\n\n $this->aTblShippingCategories = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the ChildTblShippingCategories object, it will not be re-added.\n if ($v !== null) {\n $v->addTblProdInfo($this);\n }\n\n\n return $this;\n }", "public function getProdWriteup()\n {\n return $this->prod_writeup;\n }", "public function updateShipping($data)\n {\n $this->validateAddress($data);\n $customer = new Customer();\n $customer->setValue(\"shipping_first_name\",trim($data['fName']));\n Session::set('shipping_first_name',trim($data['fName']));\n $customer->setValue(\"shipping_last_name\",trim($data['lName']));\n Session::set('shipping_last_name',trim($data['lName']));\n $address = array(\n \"address1\"=>trim($data['addr1']),\n \"address2\"=>trim($data['addr2']),\n \"city\"=>trim($data['city']),\n \"state_province\"=>trim($data['state']),\n \"postal_code\"=>trim($data['postal']),\n \"country\"=>trim($data['count']),\n );\n $customer->setValue(\"shipping_address\",$address);\n Session::set('shipping_address',$address);\n }", "public function setShippingState($shippingState = '') {\n $state = array(\n 'x_ship_to_state'=>$this->truncateChars($shippingState, 40),\n );\n $this->NVP = array_merge($this->NVP, $state); \n }", "public function setSameAsBillingShippingAddress()\n {\n $this->_rootElement->find($this->sameAsBilling, Locator::SELECTOR_CSS, 'checkbox')->hover();\n $this->browser->find($this->accountInformationBlock)->hover();\n $this->_rootElement->find($this->sameAsBilling, Locator::SELECTOR_CSS, 'checkbox')->setValue('Yes');\n }", "public function setNoMultiShipping(){\n $emptyCache = false;\n $db = JFactory::getDBO();\n if (JeproshopSettingModelSetting::getValue('allow_multi_shipping')){\n // Upgrading quantities\n $query = \"SELECT sum(\" . $db->quoteName('quantity') . \") AS quantity, product_id, product_attribute_id, count(*) as count FROM \";\n $query .= $db->quoteName('#__jeproshop_cart_product') . \" WHERE \" . $db->quoteName('cart_id') . \" = \" . (int)$this->cart_id . \" AND \" ;\n $query .= $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id . \" GROUP BY product_id, product_attribute_id HAVING count > 1\";\n\n $db->setQuery($query);\n $products = $db->loadObjectList();\n\n foreach ($products as $product){\n $query = \"UPDATE \" . $db->quoteName('#__jeproshop_cart_product') . \" SET \" . $db->quoteName('quantity') . \" = \" . $product->quantity;\n $query .= \"\tWHERE \" . $db->quoteName('cart_id') . \" = \".(int)$this->cart_id . \" AND \" . $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id ;\n $query .= \" AND product_id = \" . $product->product_id . \" AND product_attribute_id = \" . $product->product_attribute_id;\n $db->setQuery($query);\n if ($db->query())\n $emptyCache = true;\n }\n\n // Merging multiple lines\n $query = \"DELETE cart_product_1 FROM \" . $db->quoteName('#__jeproshop_cart_product') . \" AS cart_product_1 INNER JOIN \";\n $query .= $db->quoteName('#__jeproshop_cart_product') . \" AS cart_product_2 ON ((cart_product_1.cart_id = cart_product_2.\";\n $query .= \"cart_id) AND (cart_product_1.product_id = cart_product_2.product_id) AND (cart_product_1.product_attribute_id = \";\n $query .= \"cart_product_2.product_attribute_id) AND (cart_product_1.address_delivery_id <> cart_product_2.address_delivery_id) \";\n $query .= \" AND (cart_product_1.date_add > cart_product_2.date_add) )\";\n $db->setQuery($query);\n $db->query();\n }\n\n // Update delivery address for each product line\n $query = \"UPDATE \" . $db->quoteName('#__jeproshop_cart_product') . \" SET \" . $db->quoteName('address_delivery_id') . \" = ( SELECT \";\n $query .= $db->quoteName('address_delivery_id') . \" FROM \" . $db->quoteName('#__jeproshop_cart') . \" WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . \" AND \" . $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id . \") WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . (JeproshopSettingModelSetting::getValue('allow_multi_shipping') ? \" AND \" . $db->quoteName('shop_id') . \" = \" .(int)$this->shop_id : \"\");\n\n $db->setQuery($query);\n\n $cache_id = 'jeproshop_cart_set_no_multi_shipping'.(int)$this->cart_id.'_'.(int)$this->shop_id .((isset($this->address_delivery_id) && $this->address_delivery_id) ? '-'.(int)$this->address_delivery_id : '');\n if (!JeproshopCache::isStored($cache_id)){\n $db->setQuery($query);\n if ($result = (bool)$db->query())\n $emptyCache = true;\n JeproshopCache::store($cache_id, $result);\n }\n\n if (JeproshopCustomization::isFeaturePublished()){\n //Db::getInstance()->execute(\n\t\t\t$query = \" UPDATE \" . $db->quoteName('#__jeproshop_customization') . \" SET \" . $db->quoteName('address_delivery_id') . \" = ( SELECT \";\n $query .= $db->quoteName('address_delivery_id') . \" FROM \" . $db->quoteName('#__jeproshop_cart') . \" WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . \" ) WHERE \" . $db->quoteName('cart_id') . \" = \" .(int)$this->cart_id;\n\n $db->setQuery($query);\n $db->query();\n }\n if ($emptyCache){\n $this->_products = null;\n }\n }", "function changeProduct($cart_table_id,$true_or_false)\n {\n $this->pdelivery[$cart_table_id]=$true_or_false; //change product group delivery\n }", "public function saveShippingAction()\n {\n if (!$this->_isActive()) {\n parent::saveShippingAction();\n return;\n }\n\n if ($this->_expireAjax()) {\n return;\n }\n if ($this->getRequest()->isPost()) {\n $data = $this->getRequest()->getPost('shipping', array());\n $customerAddressId = $this->getRequest()->getPost('shipping_address_id', false);\n $result = $this->getOnepage()->saveShipping($data, $customerAddressId);\n\n $this->_addHashInfo($result);\n $this->getResponse()->setBody(\n Mage::helper('core')->jsonEncode($result)\n );\n }\n }", "public function setShipping($shipping)\n {\n $this->shipping = $shipping;\n\n return $this;\n }", "public function setShippingAmount($amount);", "public function setShippingDiscountAmount($amount);", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function handle_shipping() {\n if ( ! is_user_logged_in() ) {\n return;\n }\n\n if ( ! dokan_is_user_seller( get_current_user_id() ) ) {\n return;\n }\n\n if ( isset( $_POST['dokan_update_shipping_options'] ) && wp_verify_nonce( $_POST['dokan_shipping_form_field_nonce'], 'dokan_shipping_form_field' ) ) {\n if ( ! current_user_can( 'dokan_view_store_shipping_menu' ) ) {\n wp_die( __( 'You have no access to save this shipping options', 'dokan' ) );\n }\n\n $user_id = dokan_get_current_user_id();\n $s_rates = array();\n $rates = array();\n\n // Additional extra code\n\n if ( isset( $_POST['dps_enable_shipping'] ) ) {\n update_user_meta( $user_id, '_dps_shipping_enable', $_POST['dps_enable_shipping'] );\n }\n\n if ( isset( $_POST['dokan_shipping_type'] ) ) {\n update_user_meta( $user_id, '_dokan_shipping_type', $_POST['dokan_shipping_type'] );\n }\n\n if ( isset( $_POST['dps_shipping_type_price'] ) ) {\n update_user_meta( $user_id, '_dps_shipping_type_price', $_POST['dps_shipping_type_price'] );\n }\n\n if ( isset( $_POST['dps_additional_product'] ) ) {\n update_user_meta( $user_id, '_dps_additional_product', $_POST['dps_additional_product'] );\n }\n\n if ( isset( $_POST['dps_additional_qty'] ) ) {\n update_user_meta( $user_id, '_dps_additional_qty', $_POST['dps_additional_qty'] );\n }\n\n if ( isset( $_POST['dps_pt'] ) ) {\n update_user_meta( $user_id, '_dps_pt', $_POST['dps_pt'] );\n }\n\n if ( isset( $_POST['dps_ship_policy'] ) ) {\n update_user_meta( $user_id, '_dps_ship_policy', $_POST['dps_ship_policy'] );\n }\n\n if ( isset( $_POST['dps_refund_policy'] ) ) {\n update_user_meta( $user_id, '_dps_refund_policy', $_POST['dps_refund_policy'] );\n }\n\n if ( isset( $_POST['dps_form_location'] ) ) {\n update_user_meta( $user_id, '_dps_form_location', $_POST['dps_form_location'] );\n }\n\n if ( isset( $_POST['dps_country_to'] ) ) {\n foreach ( $_POST['dps_country_to'] as $key => $value ) {\n $country = $value;\n $c_price = wc_format_decimal( $_POST['dps_country_to_price'][ $key ] );\n\n if ( ! $c_price && empty( $c_price ) ) {\n $c_price = 0;\n }\n\n if ( ! empty( $value ) ) {\n $rates[ $country ] = $c_price;\n }\n }\n }\n\n update_user_meta( $user_id, '_dps_country_rates', $rates );\n\n if ( isset( $_POST['dps_state_to'] ) ) {\n foreach ( $_POST['dps_state_to'] as $country_code => $states ) {\n foreach ( $states as $key_val => $name ) {\n $country_c = $country_code;\n $state_code = $name;\n $s_price = wc_format_decimal( $_POST['dps_state_to_price'][ $country_c ][ $key_val ] );\n\n if ( ! $s_price || empty( $s_price ) ) {\n $s_price = 0;\n }\n\n if ( ! empty( $name ) ) {\n $s_rates[ $country_c ][ $state_code ] = $s_price;\n }\n }\n }\n }\n\n update_user_meta( $user_id, '_dps_state_rates', $s_rates );\n\n do_action( 'dokan_after_shipping_options_updated', $rates, $s_rates );\n\n $shipping_url = dokan_get_navigation_url( 'settings/regular-shipping' );\n wp_redirect( add_query_arg( array( 'message' => 'shipping_saved' ), $shipping_url ) );\n exit();\n }\n }", "public function setShippingCode($data)\n {\n parent::setShippingCode($data);\n }", "function save_custom_field( $post_id ) {\r\n $user = wp_get_current_user();\r\n $_warehouse_flag = isset( $_POST['_warehouse_flag'] ) ? $_POST['_warehouse_flag'] : '';\r\n $product = wc_get_product( $post_id );\r\n \r\n if($_warehouse_flag==1){\r\n\t $product->update_meta_data( '_warehouse_flag', 'A' );\r\n }\r\n if($_warehouse_flag==2){\r\n\t $product->update_meta_data( '_warehouse_flag', 'V' );\r\n }\r\n $_enable_warehouse = isset( $_POST['_enable_warehouse'] ) ? $_POST['_enable_warehouse'] : '0';\r\n \r\n \r\n $product->update_meta_data( '_enable_warehouse', $_enable_warehouse );\r\n if($_enable_warehouse==1){\r\n\t $categories = [ 'Warehouse Product'];\r\n\t wp_set_object_terms( $post_id, $categories, 'warehouses' );\r\n }\r\n else{\r\n\t $categories = [ 'Warehouse Product'];\r\n\t wp_set_object_terms( $post_id, null, 'warehouses' );\r\n }\r\n \r\n $product->save();\r\n \r\n \r\n}", "public function getShippingCategoryId();", "public function setShippingCountry($value)\n {\n return $this->setParameter('shippingCountry', $value);\n }", "public function setShippingInformation(): Documents\r\n {\r\n if (defined('SHIPPING_INFO')) {\r\n $this->useShipping = (int)SHIPPING_INFO;\r\n } else {\r\n $this->useShipping = 0;\r\n }\r\n\r\n return $this;\r\n }", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "public function setUpdateCategory(?UpdateCategory $value): void {\n $this->getBackingStore()->set('updateCategory', $value);\n }", "public function setShippingAddressAction()\n {\n $data = $this->Request()->getParams();\n //we need to set this because of a bug in the shopware models\n if (!isset($data['stateId'])) {\n $data['stateId'] = 0;\n }\n\n /** @var Shopware\\Models\\Customer\\Customer $customerModel */\n $customerModel = Shopware()->Models()->find('Shopware\\Models\\Customer\\Customer', $data['userId']);\n\n if ($shippingAddressModel = $customerModel->getShipping()) {\n $shippingAddressModel->fromArray($data);\n\n Shopware()->Models()->persist($shippingAddressModel);\n Shopware()->Models()->flush();\n\n $this->view->assign(['shippingAddressId' => $shippingAddressModel->getId()]);\n }\n }", "function sundaysea_update_shipping()\n {\n if (is_null(WC()->cart)) {\n return;\n }\n\n // Constants\n if (!defined('WOOCOMMERCE_CART')) {\n define('WOOCOMMERCE_CART', true);\n }\n\n // Update Shipping\n if (!empty($_POST['calc_shipping'])) {\n\n try {\n WC()->shipping->reset_shipping();\n\n $country = wc_clean($_POST['calc_shipping_country']);\n $state = isset($_POST['calc_shipping_state']) ? wc_clean($_POST['calc_shipping_state']) : '';\n $postcode = apply_filters('woocommerce_shipping_calculator_enable_postcode', true) ? wc_clean($_POST['calc_shipping_postcode']) : '';\n $city = apply_filters('woocommerce_shipping_calculator_enable_city', false) ? wc_clean($_POST['calc_shipping_city']) : '';\n\n if ($postcode && !WC_Validation::is_postcode($postcode, $country)) {\n throw new Exception(__('Please enter a valid postcode/ZIP.', 'woocommerce'));\n } elseif ($postcode) {\n $postcode = wc_format_postcode($postcode, $country);\n }\n\n if ($country) {\n WC()->customer->set_location($country, $state, $postcode, $city);\n WC()->customer->set_shipping_location($country, $state, $postcode, $city);\n } else {\n WC()->customer->set_to_base();\n WC()->customer->set_shipping_to_base();\n }\n\n WC()->customer->calculated_shipping(true);\n\n wc_add_notice(__('Shipping costs updated.', 'woocommerce'), 'notice');\n\n do_action('woocommerce_calculated_shipping');\n\n } catch (Exception $e) {\n\n if (!empty($e))\n wc_add_notice($e->getMessage(), 'error');\n }\n }\n\n // Check cart items are valid\n do_action('woocommerce_check_cart_items');\n\n // Calc totals\n WC()->cart->calculate_totals();\n }", "function jigoshop_upgrade_146() {\n\t\n\tJigoshop_Base::get_options()->add_option( 'jigoshop_show_checkout_shipping_fields', 'yes' );\n\t\n}", "public function setBaseShippingInvoiced($baseShippingInvoiced);", "public function setShippingCanceled($shippingCanceled);", "public function setShippingCity($value)\n {\n return $this->setParameter('shippingCity', $value);\n }", "public function setType(PagSeguroShippingType $type)\n {\n $this->type = $type;\n }", "public function setShippingZip($shippingZip = '') {\n $zip = array(\n 'x_ship_to_zip'=>$this->truncateChars($shippingZip, 20),\n );\n $this->NVP = array_merge($this->NVP, $zip); \n }", "public function setdeliverytype()\n {\n $this->extend(\"onBeforeSetDeliveryType\");\n\n $type = $this->request->param(\"ID\");\n \n if ($type && in_array($type, array(\"deliver\", \"collect\"))) {\n Session::set(\"Checkout.Delivery\", $type);\n Session::clear(\"Checkout.PostageID\");\n }\n \n $this->extend(\"onAfterSetDeliveryType\");\n \n $this->redirectBack();\n }", "public function setProdKeywordsWriteup($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_keywords_writeup !== $v) {\n $this->prod_keywords_writeup = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP] = true;\n }\n\n return $this;\n }", "public function add_product_shipping($product_id)\n\t{\n\t\t$data = array(\n\t\t\t\t'product_shipping'=>1,\n\t\t\t\t'product_width'=>$this->input->post('product_width'),\n\t\t\t\t'product_height'=>$this->input->post('product_height'),\n\t\t\t\t'product_length'=>$this->input->post('product_length'),\n\t\t\t\t'product_weight'=>$this->input->post('product_weight')\n\t\t\t);\n\t\t\t\n\t\t$this->db->where('product_id', $product_id);\n\t\tif($this->db->update('product', $data))\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\telse{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "public function filterByProdShippingUsa($prodShippingUsa = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($prodShippingUsa)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $prodShippingUsa)) {\n $prodShippingUsa = str_replace('*', '%', $prodShippingUsa);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(TblProdShippingTableMap::COL_PROD_SHIPPING_USA, $prodShippingUsa, $comparison);\n }", "protected function shouldAddShippingInformation(): bool\r\n {\r\n if (DocumentTypes::requiresDelivery($this->documentType)) {\r\n return true;\r\n }\r\n\r\n return $this->useShipping === Boolean::YES;\r\n }", "public function setShippingDate($data)\n {\n if ($data == '0000-00-00 00:00:00') {\n $data = null;\n }\n if ($data === 'CURRENT_TIMESTAMP' || is_null($data)) {\n $data = \\Zend_Date::now()->setTimezone('UTC');\n }\n\n if ($data instanceof \\Zend_Date) {\n\n $data = new \\DateTime($data->toString('yyyy-MM-dd HH:mm:ss'), new \\DateTimeZone($data->getTimezone()));\n\n } elseif (!is_null($data) && !$data instanceof \\DateTime) {\n\n $data = new \\DateTime($data, new \\DateTimeZone('UTC'));\n }\n if ($data instanceof \\DateTime && $data->getTimezone()->getName() != 'UTC') {\n\n $data->setTimezone(new \\DateTimeZone('UTC'));\n }\n\n if ($this->_shippingDate != $data) {\n $this->_logChange('shippingDate');\n }\n\n $this->_shippingDate = $data;\n return $this;\n }", "public function shipping_tab() {\n global $wpdb, $post;\n\n $vendor_id = $post->post_author;\n\n $shipping_zone = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT locations.zone_id, locations.seller_id, locations.location_type as vendor_location_type, locations.location_code as vendor_location_code, wc_zones.location_code, wc_zones.location_type FROM {$wpdb->prefix}dokan_shipping_zone_locations as locations INNER JOIN {$wpdb->prefix}woocommerce_shipping_zone_locations as wc_zones ON locations.zone_id = wc_zones.zone_id INNER JOIN {$wpdb->prefix}dokan_shipping_zone_methods as dokan_methods ON dokan_methods.zone_id = locations.zone_id AND dokan_methods.seller_id = locations.seller_id WHERE locations.seller_id =%d AND locations.location_type != 'postcode' ORDER BY wc_zones.zone_id ASC\", $vendor_id\n ), ARRAY_A\n );\n\n $_overwrite_shipping = get_post_meta( $post->ID, '_overwrite_shipping', true );\n $dps_processing = get_user_meta( $vendor_id, '_dps_pt', true );\n $from = get_user_meta( $vendor_id, '_dps_form_location', true );\n $dps_country_rates = get_user_meta( $vendor_id, '_dps_country_rates', true );\n $shipping_policy = get_user_meta( $vendor_id, '_dps_ship_policy', true );\n $refund_policy = get_user_meta( $vendor_id, '_dps_refund_policy', true );\n $product_processing_time = get_post_meta( $post->ID, '_dps_processing_time', true );\n $processing_time = $dps_processing;\n\n if ( 'yes' === $_overwrite_shipping ) {\n $processing_time = ( $product_processing_time ) ? $product_processing_time : $dps_processing;\n }\n\n $country_obj = new WC_Countries();\n $countries = $country_obj->countries;\n $states = $country_obj->states;\n\n $shipping_countries = '';\n $shipping_states = '';\n $location_code = '';\n $check_countries = array();\n $check_states = array();\n\n if ( $shipping_zone ) {\n foreach ( $shipping_zone as $zone ) {\n $location_code = $zone['vendor_location_code'];\n\n if ( $zone['vendor_location_type'] === 'state' ) {\n $location_codes = explode( ':', $location_code );\n $country_code = isset( $location_codes[0] ) ? $location_codes[0] : '';\n $state_code = isset( $location_codes[1] ) ? $location_codes[1] : '';\n\n if ( isset( $states[ $country_code ][ $state_code ] ) && isset( $countries[ $country_code ] ) && ! in_array( $states[ $country_code ][ $state_code ], $check_states, true ) ) {\n $get_state_name = $states[ $country_code ][ $state_code ];\n\n $check_states[ $get_state_name ] = $get_state_name;\n $shipping_states .= $get_state_name . ' (' . $countries[ $country_code ] . '), ';\n }\n }\n\n if ( $zone['vendor_location_type'] === 'country' && $countries[ $location_code ] && ! in_array( $countries[ $location_code ], $check_countries, true ) ) {\n $location_code = $countries[ $location_code ];\n $check_countries[ $location_code ] = $location_code;\n $shipping_countries .= $location_code . ', ';\n }\n }\n }\n ?>\n\n <?php if ( $shipping_countries ) { ?>\n <p>\n <?php esc_html_e( 'Shipping Countries', 'dokan' ); ?>:\n <strong><?php echo rtrim( $shipping_countries, ', ' ); ?></strong>\n </p>\n <hr>\n <?php } ?>\n\n <?php if ( $shipping_states ) { ?>\n <p>\n <?php esc_html_e( 'Shipping States', 'dokan' ); ?>:\n <strong><?php echo rtrim( $shipping_states, ', ' ); ?></strong>\n </p>\n <hr>\n <?php } ?>\n\n <?php if ( $processing_time ) { ?>\n <p>\n <strong>\n <?php esc_html_e( 'Ready to ship in', 'dokan' ); ?> <?php echo dokan_get_processing_time_value( $processing_time ); ?>\n\n <?php\n if ( $from ) {\n echo __( 'from', 'dokan' ) . ' ' . $countries[ $from ];\n }\n ?>\n </strong>\n </p>\n <hr>\n <?php } ?>\n\n <?php if ( $shipping_policy ) { ?>\n <p>&nbsp;</p>\n <strong><?php esc_html_e( 'Shipping Policy', 'dokan' ); ?></strong>\n <hr>\n <?php echo wpautop( $shipping_policy ); ?>\n <?php } ?>\n\n <?php if ( $refund_policy ) { ?>\n <hr>\n <p>&nbsp;</p>\n <strong><?php esc_html_e( 'Refund Policy', 'dokan' ); ?></strong>\n <hr>\n <?php echo wpautop( $refund_policy ); ?>\n <?php } ?>\n <?php\n }", "private function _saveSettingsProducts()\r\n\t{\r\n\t\tif (!isset($_POST['paypal_usa_products']) && !isset($_POST['paypal_usa_express_checkout']))\r\n\t\t\t$this->_error[] = $this->l('You must choose at least one PayPal product to enable.');\r\n\t\telse\r\n\t\t{\r\n\t\t\tforeach (array(1 => 'PAYPAL_USA_PAYMENT_STANDARD', 2 => 'PAYPAL_USA_PAYMENT_ADVANCED', 3 => 'PAYPAL_USA_PAYFLOW_LINK') as $paypal_usa_product_id => $paypal_usa_product)\r\n\t\t\t\tConfiguration::updateValue($paypal_usa_product, (isset($_POST['paypal_usa_products']) && $_POST['paypal_usa_products'] == $paypal_usa_product_id) ? 1 : null);\r\n\r\n\t\t\tConfiguration::updateValue('PAYPAL_USA_EXPRESS_CHECKOUT', isset($_POST['paypal_usa_express_checkout']));\r\n\r\n\t\t\tif (Configuration::get('PAYPAL_USA_EXPRESS_CHECKOUT') && !Configuration::get('PAYPAL_USA_EXP_CHK_PRODUCT') && !Configuration::get('PAYPAL_USA_EXP_CHK_SHOPPING_CART'))\r\n\t\t\t\tConfiguration::updateValue('PAYPAL_USA_EXP_CHK_PRODUCT', 1);\r\n\r\n\t\t\t$this->_validation[] = $this->l('Congratulations, your configuration was updated successfully');\r\n\t\t}\r\n\t}", "public function setShippingPostcode($value)\n {\n return $this->setParameter('shippingPostcode', $value);\n }", "public function getShippingType()\n {\n return $this->shippingType;\n }", "public function SetDefaultCfop()\n {\n //mark all other user cfopls as not default\n $queryRemoveDefault = \"UPDATE user_cfop SET default_cfop=\".UserCfop::NON_DEFAULT_CFOP.\" WHERE user_id=:user_id\";\n $removeDefault = $this->sqlDataBase->prepare($queryRemoveDefault);\n $removeDefault->execute(array(':user_id'=>$this->userId));\n\n //mark current cfop as default\n $querySetDefault = \"UPDATE user_cfop SET default_cfop=\".UserCfop::DEFAULT_CFOP.\" WHERE id=:user_cfop_id\";\n $setDefault = $this->sqlDataBase->prepare($querySetDefault);\n $setDefault->execute(array(':user_cfop_id'=>$this->userCfopId));\n }", "public function setSshop(Down_StarShop $value)\n {\n return $this->set(self::_SSHOP, $value);\n }", "public function setSshop(Down_StarShop $value)\n {\n return $this->set(self::_SSHOP, $value);\n }", "public function setSshop(Down_StarShop $value)\n {\n return $this->set(self::_SSHOP, $value);\n }", "public function setShippingRefunded($shippingRefunded);", "public function saveShippingAction() {\n\t\tif ($this->getRequest ()->isPost ()) {\n\t\t\t$preAddr = Mage::getSingleton ( 'customer/session' )->getPreaddress ();\n\t\t\t\n\t\t\tif ($preAddr) {\n\t\t\t\t$data = array ();\n\t\t\t\tif (! empty ( $preAddr ['ShippingAddress'] [0] )) {\n\t\t\t\t\t$preData = $preAddr ['ShippingAddress'];\n\t\t\t\t} else {\n\t\t\t\t\t$preData = $preAddr;\n\t\t\t\t}\n\t\t\t\t$dataId = $this->getRequest ()->getPost ( 'addressid' );\n\t\t\t\t\n\t\t\t\t$mpData = Mage::getModel ( 'masterpass/masterpass' );\n\t\t\t\tforeach ( $preData as $value ) {\n\t\t\t\t\tif ($dataId == $value ['AddressId']) {\n\t\t\t\t\t\t$reecipientName = $value ['RecipientName'];\n\t\t\t\t\t\t$name = Mage::helper ( 'masterpass' )->getRecipienName ( $reecipientName );\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (! is_array ( $value ['Line2'] )) {\n\t\t\t\t\t\t\t$lin2 = $value ['Line2'];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$lin2 = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (! is_array ( $value ['Line3'] )) {\n\t\t\t\t\t\t\t$lin3 = $value ['Line3'];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$lin3 = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$regionIdS = Mage::helper ( 'masterpass' )->checkMasterpassData ( $mpData->statesMapping ( $value ['CountrySubdivision'] ) );\n\t\t\t\t\t\t$regionS = Mage::helper ( 'masterpass' )->checkMasterpassData ( $mpData->getMasterpassRegion ( $value ['CountrySubdivision'] ) );\n\t\t\t\t\t\t$shippingPhone = $mpData->getRemoveDash ( Mage::helper ( 'masterpass' )->checkMasterpassData ( $value ['RecipientPhoneNumber'] ) );\n\t\t\t\t\t\t$data = array (\n\t\t\t\t\t\t\t\t'firstname' => $name [0],\n\t\t\t\t\t\t\t\t'lastname' => $name [1],\n\t\t\t\t\t\t\t\t'street' => array (\n\t\t\t\t\t\t\t\t\t\t0 => $value ['Line1'],\n\t\t\t\t\t\t\t\t\t\t1 => $lin2,\n\t\t\t\t\t\t\t\t\t\t2 => $lin3 \n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t'city' => $value ['City'],\n\t\t\t\t\t\t\t\t'region_id' => $regionIdS,\n\t\t\t\t\t\t\t\t'region' => $regionS,\n\t\t\t\t\t\t\t\t'postcode' => $value ['PostalCode'],\n\t\t\t\t\t\t\t\t'country_id' => $value ['Country'],\n\t\t\t\t\t\t\t\t'telephone' => $shippingPhone \n\t\t\t\t\t\t);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$customerAddressId = $this->getRequest ()->getPost ( 'shipping_address_id', false );\n\t\t\t\t$this->getOnepage ()->saveShipping ( $data, $customerAddressId );\n\t\t\t}\n\t\t}\n\t\t$this->loadLayout ( false );\n\t\t$this->renderLayout ();\n\t}", "public function setCashOnDelivery($value): void\n {\n $this->cash_on_delivery = $value;\n }", "public function setShippingAddress($shippingAddress = '') {\n $address = array(\n 'x_ship_to_address'=>$this->truncateChars($shippingAddress, 60),\n );\n $this->NVP = array_merge($this->NVP, $address); \n }", "public function isShipping()\n {\n return $this->product->isShipping();\n }", "public function shippingCost($shipping_cost) {\n $this->data['attachment']['payload']['summary']['shipping_cost'] = $shipping_cost;\n\n return $this;\n }", "public function setShipped($id){\n $this->upd(\"orders\", array(\"shipped\" => \"yes\"), array(\"order_id\" => $id));\n }", "public function update_shipping($shipping_id = FALSE, $location = FALSE, $discount_applied = FALSE)\r\n\t{\r\n\t\t// Check the shipping tables exist in the config file and are enabled.\r\n\t\tif ($this->get_enabled_status('shipping'))\r\n\t\t{\r\n\t\t\t$shipping_data = $this->get_database_shipping_data($shipping_id, $location, FALSE, FALSE, $discount_applied);\t\t\t\r\n\t\t\t\r\n\t\t\t// If a shipping discount is active, only return shipping options that can be discounted.\r\n\t\t\tif ($discount_applied && empty($shipping_data))\r\n\t\t\t{\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Set shipping data to cart array.\r\n\t\t\t$this->set_shipping_data($shipping_data);\r\n\t\t}\r\n\t\t\r\n\t\t###+++++++++++++++++++++++++++++++++###\r\n\t\t\r\n\t\t// If any items in the cart are configured to be shipped separately, calculate the additional rate to be added to the shipping rate.\r\n\t\tif (! empty($this->flexi->cart_contents['settings']['shipping']['data']['separate_shipping_items']))\r\n\t\t{\r\n\t\t\t$this->flexi->cart_contents['settings']['shipping']['data']['separate_shipping_value'] = $this->calculate_separate_shipping_items();\r\n\t\t}\r\n\t\t\r\n\t\t###+++++++++++++++++++++++++++++++++###\r\n\r\n\t\t### Calculate Shipping Rate\r\n\t\r\n\t\t// Set aliases of shipping charge values.\r\n\t\t$shipping_value = $this->flexi->cart_contents['settings']['shipping']['value'];\r\n\t\t$shipping_tax_rate = $this->flexi->cart_contents['settings']['shipping']['tax_rate'];\r\n\t\t$shipping_surcharge = $this->flexi->cart_contents['settings']['shipping']['data']['surcharge'];\r\n\t\t$separate_shipping_value = $this->flexi->cart_contents['settings']['shipping']['data']['separate_shipping_value'];\r\n\r\n\t\t// Get total number of cart items, free shipping items and items being shipped separately.\r\n\t\t$total_cart_items = $this->flexi->cart_contents['summary']['total_items'];\r\n\t\t$total_free_items = $this->flexi->cart_contents['settings']['shipping']['data']['free_items'];\r\n\t\t$total_separate_items = $this->flexi->cart_contents['settings']['shipping']['data']['separate_items'];\r\n\t\t\r\n\t\t// Add together relevant shipping charges.\r\n\t\tif ($total_cart_items == $total_free_items)\r\n\t\t{\r\n\t\t\t$shipping_total = 0;\r\n\t\t}\r\n\t\telse if ($total_cart_items == $total_separate_items || $total_cart_items == ($total_separate_items + $total_free_items))\r\n\t\t{\r\n\t\t\t$shipping_total = $separate_shipping_value;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$shipping_total = ($shipping_value + $separate_shipping_value);\r\n\t\t}\r\n\t\t\r\n\t\t$shipping_total += $shipping_surcharge;\r\n\r\n\t\t// Calculate shipping rate tax data to obtain the shipping rate excluding tax.\r\n\t\t$shipping_tax_data = $this->calculate_tax($shipping_total, $shipping_tax_rate);\r\n\t\t\r\n\t\t// Set the total shipping rate including any set shipping surcharge.\r\n\t\t$this->flexi->cart_contents['summary']['shipping_total'] = $this->format_calculation($shipping_tax_data['value_ex_tax']);\r\n\t\t\r\n\t\treturn TRUE;\r\n\t}", "public function setShippingType($shippingType)\n {\n $this->shippingType = $shippingType;\n return $this;\n }", "public function apply()\n {\n /** @var EavSetup $eavSetup */\n $eavSetup = $this->eavSetupFactory->create(['setup' => $this->moduleDataSetup]);\n\n if (!$eavSetup->getAttribute(Product::ENTITY, 'am_shipping_type')) {\n $eavSetup->addAttribute(\n Product::ENTITY,\n 'am_shipping_type',\n [\n 'type' => 'varchar',\n 'backend' => '',\n 'frontend' => '',\n 'label' => 'Shipping Type',\n 'input' => 'select',\n 'class' => '',\n 'source' => '',\n 'global' => ScopedAttributeInterface::SCOPE_STORE,\n 'visible' => true,\n 'required' => false,\n 'user_defined' => false,\n 'default' => 0,\n 'searchable' => false,\n 'filterable' => false,\n 'comparable' => false,\n 'visible_on_front' => false,\n 'used_in_product_listing' => true,\n 'unique' => false,\n 'apply_to' => ''\n ]\n );\n }\n }", "public function setShippingCost($shipping_cost)\r\n {\r\n $this->shipping_cost = $shipping_cost;\r\n\r\n return $this;\r\n }", "protected function setPricing($display) {\r\n\t\t\tswitch($display) {\r\n\t\t\t\tcase 0 : $this->_pricing = 'emptyStore';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1 : $this->_pricing = 'newStore';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2 : $this->_pricing = 'greenStore';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3 : $this->_pricing = 'completeStore';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault: $this->_pricing = 'emptyStore';\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}", "function useMemberShippingAddress($data, $form, $request) {\n\t\t$order = ShoppingCart::curr();\n\t\t$order->SeparateBillingAddress = false;\n\t\t$order->write();\n\t\t$this->saveDataToSession($data);\n\t\tController::curr()->redirectBack();\n\t}", "private function insert_into_shipping_prices($shipping_price_rule) {\n\n global $wpdb;\n //Name of the database\n $table_name = $wpdb->prefix . self::SHIPPING_RULES_TABLE_NAME;\n\n if($this->validate_object_for_database($shipping_price_rule)){\n if($shipping_price_rule['id']== 0){\n $wpdb->insert(\n $table_name,\n array(\n 'countryId' => $shipping_price_rule['countryId'],\n 'minPostCode' => dhl_parcel_postcode_normalizer($shipping_price_rule['countryId'],$shipping_price_rule['minPostCode'] ),\n 'maxPostCode' => dhl_parcel_postcode_normalizer($shipping_price_rule['countryId'],$shipping_price_rule['maxPostCode'] ),\n 'min' => doubleval($shipping_price_rule['min']),\n 'max' => doubleval($shipping_price_rule['max']),\n 'ruleCriteria' => $shipping_price_rule['ruleCriteria'],\n 'cost' => $shipping_price_rule['cost'],\n 'shippingMethod' => $shipping_price_rule['shippingMethod'],\n 'shippingZoneId' => $shipping_price_rule['shippingZoneId'],\n )\n );\n return $wpdb->insert_id;\n } else {\n $wpdb->replace(\n $table_name,\n array(\n 'id' => $shipping_price_rule['id'],\n 'countryId' => $shipping_price_rule['countryId'],\n 'minPostCode' => dhl_parcel_postcode_normalizer($shipping_price_rule['countryId'],$shipping_price_rule['minPostCode'] ),\n 'maxPostCode' => dhl_parcel_postcode_normalizer($shipping_price_rule['countryId'],$shipping_price_rule['maxPostCode'] ),\n 'min' => doubleval($shipping_price_rule['min']),\n 'max' => doubleval($shipping_price_rule['max']),\n 'ruleCriteria' => $shipping_price_rule['ruleCriteria'],\n 'cost' => $shipping_price_rule['cost'],\n 'shippingMethod' => $shipping_price_rule['shippingMethod'],\n 'shippingZoneId' => $shipping_price_rule['shippingZoneId'],\n )\n );\n return $shipping_price_rule['id'];\n }\n }\n }", "public function setShippingAddress(?Address $shippingAddress): void\n {\n $this->shippingAddress = $shippingAddress;\n }", "public function setProduction($production) {\n $this->configuration['production'] = $production;\n }", "public function setAttributeByDefault() {\n $userinfo = UserProfile::model()->findByPk(Yii::app()->user->id);\n // in this case when user has set bit that\n // user want to use orignial address to 1\n \n /**\n * in this case when user has its own \n * billing address then it will be same address as shipping\n */\n if(!empty($_REQUEST['billing'])){\n $billing = UserOrderBilling::model()->findByPk($_REQUEST['billing']);\n \n $this->shipping_first_name = $billing->billing_first_name;\n $this->shipping_last_name = $billing->billing_last_name;\n $this->shipping_address1 = $billing->billing_address1;\n $this->shipping_address2 = $billing->billing_address2;\n $this->shipping_country = $billing->billing_country;\n $this->shipping_state = $billing->billing_state;\n $this->shipping_city = $billing->billing_city;\n $this->shipping_zip = $billing->billing_zip;\n $this->shipping_phone = $billing->billing_phone;\n $this->shipping_mobile = $billing->billing_mobile;\n }\n else if (isset($userinfo->is_shipping_address) && $userinfo->is_shipping_address == 1) {\n $this->shipping_first_name = $userinfo->first_name;\n $this->shipping_last_name = $userinfo->last_name;\n $this->shipping_address1 = $userinfo->address;\n $this->shipping_country = $userinfo->country;\n $this->shipping_state = $userinfo->state_province;\n $this->shipping_city = $userinfo->city;\n $this->shipping_zip = $userinfo->zip_code;\n $this->shipping_phone = $userinfo->contact_number;\n \n } else {\n $criteria = new CDbCriteria();\n $criteria->addCondition(\"user_id = \" . Yii::app()->user->id);\n $criteria->order = \"id DESC\";\n\n $user_order_shipping = UserOrderShipping::model()->find($criteria);\n\n if (!empty($user_order_shipping)) {\n $this->shipping_first_name = $user_order_shipping->shipping_first_name;\n $this->shipping_last_name = $user_order_shipping->shipping_last_name;\n $this->shipping_address1 = $user_order_shipping->shipping_address1;\n $this->shipping_address2 = $user_order_shipping->shipping_address2;\n $this->shipping_country = $user_order_shipping->shipping_country;\n $this->shipping_state = $user_order_shipping->shipping_state;\n $this->shipping_city = $user_order_shipping->shipping_city;\n $this->shipping_zip = $user_order_shipping->shipping_zip;\n $this->shipping_phone = $user_order_shipping->shipping_phone;\n $this->shipping_mobile = $user_order_shipping->shipping_mobile;\n }\n }\n $this->_states = $this->getStates();\n }", "function change_total_price_cdek()\n{\n $price = $_POST['price'];\n $name = $_POST['name'];\n $shipping_cost = $price;\n setcookie('shipping_city_cost', $shipping_cost, time() + (86400 * 30), '/');\n setcookie('shipping_name', $name, time() + (86400 * 30), '/');\n echo 'Shipping cost updated : ' . $shipping_cost;\n wp_die();\n}", "public function saveProductShipping(object $request): int\n {\n $productShipping = ProductShipping::firstOrNew(['product_id' => request('id')]);\n $productShipping->product_id = request('id');\n $productShipping->weight = $request->input('weight') ?? null;\n $productShipping->width = $request->input('width') ?? null;\n $productShipping->height = $request->input('height') ?? null;\n $productShipping->length = $request->input('length') ?? null;\n $productShipping->save();\n\n return $productShipping->id;\n }", "public function update(Request $request, Shipping $shipping)\n {\n //\n }", "public function setShippingService(ShippingService $service)\n {\n $this->shippingService = $service;\n }", "public function setCartShippingMethodID($shippingMethodId)\n {\n }", "public function setJustification(?string $value): void {\n $this->getBackingStore()->set('justification', $value);\n }", "public function setShippingFaxNo($shippingFaxNo)\r\n {\r\n $this->_shippingFaxNo = $shippingFaxNo;\r\n }", "public function setShippingMethod() {\n\t\t$json = array();\n\t\t$json['status'] = false;\n\t\t\n\t\tif (isset($this->request->post['code'])) {\n\t\t\t$code=$this->request->post['code'];\n\t\t\t$shipping_method=$this->session->data['shipping_methods'][$code]; \n\t\t\tif ($shipping_method) {\n\t\t\t\tunset($this->session->data['shipping_method']);\n\t\t\t\t$this->session->data['shipping_method'] = $shipping_method;\n\t\t\t\t\n\t\t\t\t$json['status'] = true;\n\t\t\t\t$json['delivery'] = $shipping_method['delivery'];\n\n\t\t\t} else {\n\t\t\t\t$json['error'] = 'Неизвестный способ доставки';\n\t\t\t}\n\t\t} else {\n\t\t\t$json['error'] = 'Не указан тип доставки';\n\t\t}\n\t\t$this->response->addHeader('Content-Type: application/json');\n\t\t$this->response->setOutput(json_encode($json));\n\t}", "public function setShop(Down_UserShop $value)\n {\n return $this->set(self::_SHOP, $value);\n }", "public function setShop(Down_UserShop $value)\n {\n return $this->set(self::_SHOP, $value);\n }", "public function setShop(Down_UserShop $value)\n {\n return $this->set(self::_SHOP, $value);\n }", "public function setDelivery($value)\n {\n return $this->set(self::delivery, $value);\n }", "public function setShippingAddress($shippingAddress){\n return $this->setData(self::SHIPPING_ADDRESS, $shippingAddress);\n }", "public function setUpdateCategory($val)\n {\n $this->_propDict[\"updateCategory\"] = $val;\n return $this;\n }", "public function save()\n {\n parent::save();\n\n $myConfig = $this->getConfig();\n $soxId = $this->getEditObjectId();\n\n $aParams = oxRegistry::getConfig()->getRequestParameter(\"editval\");\n\n\n // #918 S\n // checkbox handling\n $aParams['oxshops__oxactive'] = (isset($aParams['oxshops__oxactive']) && $aParams['oxshops__oxactive'] == true) ? 1 : 0;\n $aParams['oxshops__oxproductive'] = (isset($aParams['oxshops__oxproductive']) && $aParams['oxshops__oxproductive'] == true) ? 1 : 0;\n\n $isubjlang = oxRegistry::getConfig()->getRequestParameter(\"subjlang\");\n $iLang = ($isubjlang && $isubjlang > 0) ? $isubjlang : 0;\n\n /** @var oxShop $oShop */\n $oShop = oxNew(\"oxshop\");\n if ($soxId != \"-1\") {\n $oShop->loadInLang($iLang, $soxId);\n } else {\n $aParams['oxshops__oxid'] = null;\n }\n\n if ($aParams['oxshops__oxsmtp']) {\n $aParams['oxshops__oxsmtp'] = trim($aParams['oxshops__oxsmtp']);\n }\n\n $oShop->setLanguage(0);\n $oShop->assign($aParams);\n $oShop->setLanguage($iLang);\n\n if (($sNewSMPTPass = oxRegistry::getConfig()->getRequestParameter(\"oxsmtppwd\"))) {\n $oShop->oxshops__oxsmtppwd->setValue($sNewSMPTPass == '-' ? \"\" : $sNewSMPTPass);\n }\n\n\n try {\n $oShop->save();\n } catch (oxException $e) {\n\n return;\n }\n\n $this->_aViewData[\"updatelist\"] = \"1\";\n\n\n oxRegistry::getSession()->setVariable(\"actshop\", $soxId);\n }", "public function setQuantityShippedAttribute($input)\n {\n $this->attributes['quantity_shipped'] = $input ? $input : null;\n }", "public function testRuleWithFreeShippingAndFlatRate(\n \\Magento\\Catalog\\Test\\Fixture\\CatalogProductAttribute $productAttribute,\n array $shipping,\n string $configData,\n int $freeShipping\n ) {\n $productAttribute->persist();\n $this->testStepFactory->create(\n \\Magento\\Catalog\\Test\\TestStep\\AddAttributeToAttributeSetStep::class,\n ['attribute' => $productAttribute]\n )->run();\n\n $this->testStepFactory->create(\n \\Magento\\Config\\Test\\TestStep\\SetupConfigurationStep::class,\n ['configData' => $configData]\n )->run();\n\n $cond = '{Product attribute combination|FOUND|ALL|:[[' . $productAttribute->getAttributeCode() . '|is|Yes]]}';\n $salesRule = $this->fixtureFactory->createByCode(\n 'salesRule',\n [\n 'dataset' => 'rule_with_freeshipping',\n 'data' => [\n 'conditions_serialized' => $cond\n ]\n ]\n );\n $this->testStepFactory->create(\n \\Magento\\SalesRule\\Test\\TestStep\\CreateSalesRuleThroughAdminStep::class,\n ['salesRule' => $salesRule]\n )->run();\n\n $customAttribute = ['value' => $freeShipping, 'attribute' => $productAttribute];\n $product = $this->fixtureFactory->createByCode(\n 'catalogProductSimple',\n [\n 'dataset' => 'default',\n 'data' => [\n 'custom_attribute' => $customAttribute\n ],\n ]\n );\n $product->persist();\n\n // Set values for deletion\n $this->salesRuleName = $salesRule->getName();\n $this->configData = $configData;\n $this->attribute = $productAttribute;\n\n $this->testStepFactory->create(\n \\Magento\\Checkout\\Test\\TestStep\\AddProductsToTheCartStep::class,\n ['products' => [$product]]\n )->run();\n\n $this->testStepFactory->create(\n \\Magento\\Checkout\\Test\\TestStep\\FillShippingMethodOnEstimateStep::class,\n ['shipping' => $shipping]\n )->run();\n }", "public function ChooseShippingProvider()\n\t{\n\t\tif(isset($_SESSION['CHECKOUT']['CHECKOUT_TYPE']) && $_SESSION['CHECKOUT']['CHECKOUT_TYPE'] == 'express') {\n\t\t\t$redirectOnError = getConfig('ShopPath').'/checkout.php?action=express';\n\t\t}\n\t\telse {\n\t\t\t$redirectOnError = getConfig('ShopPath').'/checkout.php?action=checkout';\n\t\t}\n\n\t\t// If guest checkout is not enabled and the customer isn't signed in then send the customer\n\t\t// back to the beginning of the checkout process.\n\t\tif(!GetConfig('GuestCheckoutEnabled') && !CustomerIsSignedIn()) {\n\t\t\tredirect($redirectOnError);\n\t\t}\n\n\t\t// ensure products are in stock\n\t\t$this->CheckStockLevels();\n\n\t\t// Setup the default shipping error message\n\t\t$GLOBALS['ShippingError'] = GetLang(\"NoShippingProvidersError\");\n\n\t\t$addressDetails = 0;\n\n\t\tif($_SERVER['REQUEST_METHOD'] == 'POST') {\n\t\t\t// If the customer isn't signed in then they've just entered an address that we need to validate\n\t\t\tif(!CustomerIsSignedIn()) {\n\t\t\t\t$errors = array();\n\t\t\t\t// An invalid address was entered, show the form again\n\t\t\t\t$addressDetails = $this->ValidateGuestCheckoutAddress('shipping', $errors);\n\t\t\t\tif(!$addressDetails) {\n\t\t\t\t\t$this->ChooseShippingAddress($errors);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// We've just selected an address\n\t\tif(isset($_GET['address_id'])) {\n\t\t\t$addressDetails = (int)$_GET['address_id'];\n\t\t}\n\n\t\tif($addressDetails !== 0 && !$this->SetOrderShippingAddress($addressDetails)) {\n\t\t\tredirect($redirectOnError);\n\t\t}\n\n\t\t// Are we split shipping?\n\t\t$splitShipping = $this->getQuote()->getIsSplitShipping();\n\n\t\t// At this stage, the quote should have a complete shipping address. Make sure there's\n\t\t// nothing missing.\n\t\t$shippingAddresses = $this->getQuote()->getShippingAddresses();\n\t\tforeach($shippingAddresses as $shippingAddress) {\n\t\t\tif(!$shippingAddress->hasCompleteAddress()) {\n\t\t\t\tredirect($redirectOnError);\n\t\t\t}\n\t\t}\n\n\t\t// Now, for each shipping address, fetch available shipping quotes\n\t\t$GLOBALS['HideNoShippingProviders'] = 'none';\n\t\t$GLOBALS['ShippingQuotes'] = '';\n\n\t\t$hideItemList = true;\n\t\tif(count($shippingAddresses) > 1) {\n\t\t\t$hideItemList = false;\n\t\t}\n\t\telse {\n\t\t\t$splitShipping = false;\n\t\t}\n\t\t$hasTransit = false;\n\t\t$numLoopedAddresses = 0;\n\t\t$totalAddresses = count($shippingAddresses);\n\t\tforeach($shippingAddresses as $i => $shippingAddress) {\n\t\t\t++$numLoopedAddresses;\n\n\t\t\tif(!$splitShipping) {\n\t\t\t\t$GLOBALS['HideAddressLine'] = 'display: none';\n\t\t\t\t$GLOBALS['HideItemList'] = 'display: none';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$GLOBALS['HideAddressLine'] = '';\n\t\t\t\t$GLOBALS['HideItemList'] = '';\n\t\t\t}\n\n\t\t\t$GLOBALS['HideHorizontalRule'] = 'display: none';\n\t\t\tif($numLoopedAddresses != $totalAddresses) {\n\t\t\t\t$GLOBALS['HideHorizontalRule'] = '';\n\t\t\t}\n\n\t\t\t$GLOBALS['AddressId'] = $shippingAddress->getId();\n\n\t\t\t// If no methods are available, this order can't progress so show an error\n\t\t\t$shippingQuotes = $shippingAddress->getAvailableShippingMethods();\n\t\t\tif(empty($shippingQuotes)) {\n\t\t\t\t$GLOBALS['HideNoShippingProviders'] = '';\n\t\t\t\t$GLOBALS['HideShippingProviderList'] = 'none';\n\t\t\t\t$hideItemList = false;\n\t\t\t}\n\n\t\t\t$GLOBALS['ItemList'] = '';\n\t\t\tif(!$hideItemList) {\n\t\t\t\t$items = $shippingAddress->getItems();\n\t\t\t\tforeach($items as $item) {\n\t\t\t\t\t// Only show physical products\n\t\t\t\t\tif($item->isDigital() == true) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ProductQuantity'] = $item->getQuantity();\n\t\t\t\t\t$GLOBALS['ProductName'] = isc_html_escape($item->getName());\n\n\t\t\t\t\t$GLOBALS['HideGiftWrapping'] = 'display: none';\n\t\t\t\t\t$GLOBALS['HideGiftMessagePreview'] = 'display: none';\n\t\t\t\t\t$GLOBALS['GiftWrappingName'] = '';\n\t\t\t\t\t$GLOBALS['GiftMessagePreview'] = '';\n\t\t\t\t\t$giftWrapping = $item->getGiftWrapping();\n\t\t\t\t\tif($giftWrapping !== false) {\n\t\t\t\t\t\t$GLOBALS['HideGiftWrapping'] = '';\n\t\t\t\t\t\t$GLOBALS['GiftWrappingName'] = isc_html_escape($giftWrapping['wrapname']);\n\t\t\t\t\t\tif($giftWrapping['wrapmessage']) {\n\t\t\t\t\t\t\tif(isc_strlen($giftWrapping['wrapmessage']) > 30) {\n\t\t\t\t\t\t\t\t$giftWrapping = substr($giftWrapping['wrapmessage'], 0, 27).'...';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$GLOBALS['GiftMessagePreview'] = isc_html_escape($giftWrapping['wrapmessage']);\n\t\t\t\t\t\t\t$GLOBALS['HideGiftMessagePreview'] = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['ItemList'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ShippingQuoteProduct');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If no methods are available, this order can't progress so show an error\n\t\t\tif(empty($shippingQuotes)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(!$GLOBALS['HideAddressLine']) {\n\t\t\t\t$addressLine = array(\n\t\t\t\t\t$shippingAddress->getFirstName().' '.$shippingAddress->getLastName(),\n\t\t\t\t\t$shippingAddress->getCompany(),\n\t\t\t\t\t$shippingAddress->getAddress1(),\n\t\t\t\t\t$shippingAddress->getAddress2(),\n\t\t\t\t\t$shippingAddress->getCity(),\n\t\t\t\t\t$shippingAddress->getStateName(),\n\t\t\t\t\t$shippingAddress->getZip(),\n\t\t\t\t\t$shippingAddress->getCountryName()\n\t\t\t\t);\n\n\t\t\t\t// Please see self::GenerateShippingSelect below.\n\t\t\t\t$addressLine = array_filter($addressLine, array($this, 'FilterAddressFields'));\n\t\t\t\t$GLOBALS['AddressLine'] = isc_html_escape(implode(', ', $addressLine));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$GLOBALS['AddressLine'] = '';\n\t\t\t}\n\n\t\t\t// Now build a list of the actual available quotes\n\t\t\t$GLOBALS['ShippingProviders'] = '';\n\t\t\tforeach($shippingQuotes as $quoteId => $method) {\n\t\t\t\t$price = getClass('ISC_TAX')->getPrice(\n\t\t\t\t\t$method['price'],\n\t\t\t\t\tgetConfig('taxShippingTaxClass'),\n\t\t\t\t\tgetConfig('taxDefaultTaxDisplayCart'),\n\t\t\t\t\t$shippingAddress->getApplicableTaxZone()\n\t\t\t\t);\n\t\t\t\t$GLOBALS['ShippingProvider'] = isc_html_escape($method['description']);\n\t\t\t\t$GLOBALS['ShippingPrice'] = CurrencyConvertFormatPrice($price);\n\t\t\t\t$GLOBALS['ShipperId'] = $quoteId;\n\t\t\t\t$GLOBALS['ShippingData'] = $GLOBALS['ShipperId'];\n\n\t\t\t\tif(isset($method['transit'])) {\n\t\t\t\t\t\t$hasTransit = true;\n\n\t\t\t\t\t$days = $method['transit'];\n\n\t\t\t\t\tif ($days == 0) {\n\t\t\t\t\t\t$transit = GetLang(\"SameDay\");\n\t\t\t\t\t}\n\t\t\t\t\telse if ($days == 1) {\n\t\t\t\t\t\t$transit = GetLang('NextDay');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$transit = sprintf(GetLang('Days'), $days);\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['TransitTime'] = $transit;\n\t\t\t\t\t$GLOBALS['TransitTime'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('CartShippingTransitTime');\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$GLOBALS['TransitTime'] = \"\";\n\t\t\t\t}\n\t\t\t\t$GLOBALS['ShippingProviders'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ShippingProviderItem\");\n\t\t\t}\n\n\t\t\t// Add it to the list\n\t\t\t$GLOBALS['ShippingQuotes'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ShippingQuote');\n\t\t}\n\n\t\tif ($hasTransit) {\n\t\t\t$GLOBALS['DeliveryDisclaimer'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('CartShippingDeliveryDisclaimer');\n\t\t}\n\n\t\t// Show the list of available shipping providers\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle(GetConfig('StoreName') . \" - \" . GetLang('ChooseShippingProvider'));\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate(\"checkout_shipper\");\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();\n\t}" ]
[ "0.6296458", "0.58002234", "0.5752545", "0.56613356", "0.548663", "0.5387261", "0.5224223", "0.52092415", "0.5142027", "0.5118163", "0.51052153", "0.508806", "0.50223356", "0.50169307", "0.50058377", "0.4992537", "0.49459288", "0.48945388", "0.4890651", "0.48807544", "0.4867547", "0.48422197", "0.4835429", "0.48281008", "0.47745848", "0.4771958", "0.47521687", "0.4742451", "0.47407606", "0.47061038", "0.47019172", "0.46970552", "0.46832293", "0.46762145", "0.46676818", "0.46547875", "0.4616276", "0.46123233", "0.4600406", "0.45992598", "0.45986286", "0.4595966", "0.45639116", "0.45625407", "0.45420957", "0.45267078", "0.4490612", "0.4489414", "0.44291672", "0.44211936", "0.4407076", "0.44040552", "0.43791953", "0.43788597", "0.4365235", "0.43639952", "0.43524802", "0.4351331", "0.4346765", "0.43412724", "0.4338978", "0.43347612", "0.4330479", "0.43287355", "0.43287355", "0.43281767", "0.43244427", "0.4315712", "0.43136844", "0.43070164", "0.4291801", "0.4290174", "0.42723355", "0.42718872", "0.42675415", "0.4264332", "0.42633072", "0.42612454", "0.42546672", "0.42421645", "0.42355165", "0.4229015", "0.42211464", "0.42197204", "0.42122874", "0.42120814", "0.42064223", "0.42050764", "0.42008358", "0.41989428", "0.41954863", "0.41939336", "0.41939336", "0.41925704", "0.4175999", "0.41758972", "0.41439298", "0.41391543", "0.41387224", "0.41363594" ]
0.5446937
5
setProdWriteup() Set the value of [prod_length] column.
public function setProdLength($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_length !== $v) { $this->prod_length = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_LENGTH] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdWriteup($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_writeup !== $v) {\n $this->prod_writeup = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_WRITEUP] = true;\n }\n\n return $this;\n }", "public function getProdLength()\n {\n return $this->prod_length;\n }", "public function testSetWidthProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setWidth($value);\n $this->assertEquals($value, $product->getWidth());\n }", "function set_length($length) {\n $this->length = $length;\n }", "public function setLength($length);", "public function setLength() { \n $this->_rectLength = $_POST[\"Length\"]; // Gets the length from the HTML program and stores in \"_rectLength\"\n echo(\"The length of the rectangle is: \".$this->_rectLength); // Outputs the length to the console\n echo(\"<br>\");\n }", "public static function setLength ($length){\n\t\tself::$_length = $length;\n\t}", "public function getProdWriteup()\n {\n return $this->prod_writeup;\n }", "function updateSize(){\n $this->cols = exec(\"tput cols\");\n }", "public function setProdKeywordsWriteup($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_keywords_writeup !== $v) {\n $this->prod_keywords_writeup = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP] = true;\n }\n\n return $this;\n }", "function setSyncProdWeight()\n {\n }", "public function setLength($length)\n {\n $this->length = $length;\n }", "public function setLength($length)\n {\n $this->length = $length;\n }", "public function setLength($length) {\r\n $this->length = $length;\r\n }", "private function countLength() {\n\n $this->_length = strlen($this->_value);\n }", "function set_field_length($len) \n {\n $this->attribs['maxlength'] = $len;\n }", "function setSubLength($classId, $length) {\r\n $data['classSubLength'] = $length;\r\n $this->db->where('id', $classId);\r\n $this->db->update('class', $data);\r\n }", "public function setLen($value)\n {\n return $this->set(self::LEN, $value);\n }", "public static function update()\n {\n if (self::checkIfSpecifiedTimePassed()) {\n DB::table('apimo_properties')->truncate();\n self::addOrEditPropertiesToDB(self::getAllRealEstate('properties'));\n }\n }", "public function testSetHeightProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setHeight($value);\n $this->assertEquals($value, $product->getHeight());\n }", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "public function setWidth($value)\n {\n $this->_width = $value;\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function setJustification(?string $value): void {\n $this->getBackingStore()->set('justification', $value);\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function setCertificateKeyLength(?int $value): void {\n $this->getBackingStore()->set('certificateKeyLength', $value);\n }", "public static function setPasswordMinLength($length){\n Configuration::where('id', 1)\n ->update(['password_min_length' => $length]);\n }", "function setSize($size)\n\t{\n\t\t$this->size = 0+$size;\n\t}", "public function setMaxLength($length);", "public function setFieldLength($fieldLength)\n {\n try {\n if ($this->validateFieldLength($fieldLength) === true) {\n $this->FieldLength = $fieldLength;\n }\n } catch (\\Exception $ex) {\n throw new \\Bridge\\Components\\Exporter\\ExporterException($ex->getMessage());\n }\n }", "public function updateQuality() {\n\n if ($this->sellIn <= 0) {\n //Quality drops to 0 after the concert\n $this->quality = 0;\n }\n elseif ($this->sellIn <= 5) {\n //Quality increases by 3 when there are 5 days or less left\n $this->quality += 3;\n }\n elseif ($this->sellIn <= 10) {\n //Quality increases by 2 when there are 10 days or less left\n $this->quality += 2;\n } else {\n //Quality increases by 1 when there more than 10 days left\n $this->quality += 1;\n }\n\n //Limit quality to 50\n if ($this->quality > 50) {\n $this->quality = 50;\n }\n }", "public function testSetWeightProduct()\n {\n $product = new Product();\n $value = 100;\n $product->setWeight($value);\n $this->assertEquals($value, $product->getWeight());\n }", "public function initialWidth()\n {\n return $this->setRightOperand(PVar::INITIAL_WIDTH);\n }", "protected function create_space($start, $size = 2)\n {\n $sql = \"UPDATE $this->_table_name\n SET\n $this->left_column = ($this->left_column + $size)\n WHERE\n $this->left_column >= $start\n AND $this->scope_column = $this->scope\n \";\n $this->_db->exec($sql);\n\n $sql = \"UPDATE $this->_table_name\n SET\n $this->right_column = ($this->right_column + $size)\n WHERE\n $this->right_column >= $start\n AND $this->scope_column = $this->scope\n \";\n $this->_db->exec($sql);\n }", "abstract public function increaseLength($length = 100);", "public function setWidthAttribute($width = null)\n\t{\n\t\t$this->attributes['width'] = intval($width);\n\t}", "function updateTextWidth($p_id, $p_width) {\n\t$con = open_connection();\n\tmysqli_query($con,\"UPDATE text SET width = '\". $p_width .\"'\");\n\tmysqli_close($con);\n}", "public function setLength($var)\n {\n GPBUtil::checkInt64($var);\n $this->length = $var;\n\n return $this;\n }", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "public function saveDefinedDiskSizesToDB()\n\t{\n\t\t$this->definedDiskSizes = $this->getCurrentDiskSizesForDefinedDiskSizes(true);\n\t}", "public function length($size=null) {\r\n if(is_int($size)) {\r\n if($size < 0 || $size > sizeof($this->result) || $size > $this->maxCapacity) throw new ArgumentOutOfRangeException(\"The value specified for a set operation is less than zero or greater than System.Text.StringBuilder.MaxCapacity.\");\r\n array_splice($this->result, $size);\r\n }\r\n return sizeof($this->result);\r\n }", "public function setTruncate(int $truncate): void\n {\n $this->truncate = $truncate;\n }", "public function save() {\n\t\tif (!is_null($this->getId())) {\n\t\t\t$sql = 'update cart_orders_products_attributes set ';\n\t\t} else {\n\t\t\t$sql = 'insert into cart_orders_products_attributes set ';\n\t\t}\n\t\tif (!is_null($this->getOrderid())) {\n\t\t\t$sql .= '`orders_id`=\"' . e($this->getOrderid()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProductid())) {\n\t\t\t$sql .= '`orders_products_id`=\"' . e($this->getProductid()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options())) {\n\t\t\t$sql .= '`products_options`=\"' . e($this->getProducts_options()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options_values())) {\n\t\t\t$sql .= '`products_options_values`=\"' . e($this->getProducts_options_values()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getOptions_values_price())) {\n\t\t\t$sql .= '`options_values_price`=\"' . e($this->getOptions_values_price()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getPrice_prefix())) {\n\t\t\t$sql .= '`price_prefix`=\"' . e($this->getPrice_prefix()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProduct_attribute_is_free())) {\n\t\t\t$sql .= '`product_attribute_is_free`=\"' . e($this->getProduct_attribute_is_free()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_attributes_weight())) {\n\t\t\t$sql .= '`products_attributes_weight`=\"' . e($this->getProducts_attributes_weight()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_attributes_weight_prefix())) {\n\t\t\t$sql .= '`products_attributes_weight_prefix`=\"' . e($this->getProducts_attributes_weight_prefix()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_discounted())) {\n\t\t\t$sql .= '`attributes_discounted`=\"' . e($this->getAttributes_discounted()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_base_included())) {\n\t\t\t$sql .= '`attributes_price_base_included`=\"' . e($this->getAttributes_price_base_included()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_onetime())) {\n\t\t\t$sql .= '`attributes_price_onetime`=\"' . e($this->getAttributes_price_onetime()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor())) {\n\t\t\t$sql .= '`attributes_price_factor`=\"' . e($this->getAttributes_price_factor()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor_offset())) {\n\t\t\t$sql .= '`attributes_price_factor_offset`=\"' . e($this->getAttributes_price_factor_offset()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor_onetime())) {\n\t\t\t$sql .= '`attributes_price_factor_onetime`=\"' . e($this->getAttributes_price_factor_onetime()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor_onetime_offset())) {\n\t\t\t$sql .= '`attributes_price_factor_onetime_offset`=\"' . e($this->getAttributes_price_factor_onetime_offset()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_qty_prices())) {\n\t\t\t$sql .= '`attributes_qty_prices`=\"' . e($this->getAttributes_qty_prices()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_qty_prices_onetime())) {\n\t\t\t$sql .= '`attributes_qty_prices_onetime`=\"' . e($this->getAttributes_qty_prices_onetime()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_words())) {\n\t\t\t$sql .= '`attributes_price_words`=\"' . e($this->getAttributes_price_words()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_words_free())) {\n\t\t\t$sql .= '`attributes_price_words_free`=\"' . e($this->getAttributes_price_words_free()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_letters())) {\n\t\t\t$sql .= '`attributes_price_letters`=\"' . e($this->getAttributes_price_letters()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_letters_free())) {\n\t\t\t$sql .= '`attributes_price_letters_free`=\"' . e($this->getAttributes_price_letters_free()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options_id())) {\n\t\t\t$sql .= '`products_options_id`=\"' . e($this->getProducts_options_id()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options_values_id())) {\n\t\t\t$sql .= '`products_options_values_id`=\"' . e($this->getProducts_options_values_id()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_prid())) {\n\t\t\t$sql .= '`products_prid`=\"' . e($this->getProducts_prid()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getId())) {\n\t\t\t$sql .= 'orders_products_attributes_id=\"' . e($this->getId()) . '\" where orders_products_attributes_id=\"' . e($this->getId()) . '\"';\n\t\t} else {\n\t\t\t$sql = trim($sql, ', ');\n\t\t}\n\t\tDatabase::singleton()->query($sql);\n\t\tif (is_null($this->getId())) {\n\t\t\t$this->setId(Database::singleton()->lastInsertedID());\n\t\t\tself::__construct($this->getId());\n\t\t}\n\t}", "public function setWidth($width) {}", "public function setWidth($width) {}", "public function setWidth($width) {}", "public function setWidth($value)\n {\n return $this->setProperty(\"Width\", $value, true);\n }", "function be_excerpt_length( $length ) { \n\t\n\t$length = '40'; \n\t\n\treturn $length;\n\t \n\t}", "public function setProductQuantities(array $variations = []): void\n {\n $xml = '';\n\n foreach ($variations as $id => $quantity) {\n $xml .= '<bundled-product product-id=\"' . Xml::escape($id) . '\">';\n $xml .= '<quantity>' . Xml::escape($quantity) . '</quantity>';\n $xml .= '</bundled-product>' . PHP_EOL;\n }\n\n $this->elements['bundled-products'] = $xml;\n }", "public function length($value)\n {\n return 'LEN(' . $value . ')';\n }", "public function onAfterWrite() {\n parent::onAfterWrite();\n $item = $this->Item();\n $variation = $this->Object();\n\t if ($variation && $variation->exists() && $variation instanceof Variation) {\n\t $item->updateStockLevels();\n\t }\n\t}", "public function setPageWidth($value)\n {\n $this->fields['options']['width'] = $value;\n }", "function updateSlotSize($slotSize){\n $DB = connect();\n $query = \"UPDATE slotSize SET slotLength='\".$slotSize.\"';\";\n mysqli_query($DB, $query);\n}", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public function setPros($pros)\r\n {\r\n $this->_pros = $pros;\r\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setProdId($value);\n break;\n case 1:\n $this->setProdPriceId($value);\n break;\n case 2:\n $this->setProdName($value);\n break;\n case 3:\n $this->setProdAlt1($value);\n break;\n case 4:\n $this->setProdAlt2($value);\n break;\n case 5:\n $this->setProdAlt3($value);\n break;\n case 6:\n $this->setProdAlt4($value);\n break;\n case 7:\n $this->setProdCode($value);\n break;\n case 8:\n $this->setProdCategory($value);\n break;\n case 9:\n $this->setProdCategoryShipping($value);\n break;\n case 10:\n $this->setProdWriteup($value);\n break;\n case 11:\n $this->setProdLength($value);\n break;\n case 12:\n $this->setProdWingspan($value);\n break;\n case 13:\n $this->setProdHeight($value);\n break;\n case 14:\n $this->setProdScale($value);\n break;\n case 15:\n $this->setProdLinks($value);\n break;\n case 16:\n $this->setProdLinkdescription($value);\n break;\n case 17:\n $this->setProdFront($value);\n break;\n case 18:\n $this->setProdKeywords($value);\n break;\n case 19:\n $this->setProdKeywordsWriteup($value);\n break;\n case 20:\n $this->setProdTitle($value);\n break;\n case 21:\n $this->setProdDescription($value);\n break;\n case 22:\n $this->setProdGeneral($value);\n break;\n case 23:\n $this->setProdEra($value);\n break;\n case 24:\n $this->setProdCompany($value);\n break;\n case 25:\n $this->setProdRelated($value);\n break;\n case 26:\n $this->setProdRelatedPa($value);\n break;\n case 27:\n $this->setProdRelatedM3($value);\n break;\n case 28:\n $this->setProdRelated2($value);\n break;\n case 29:\n $this->setProdSaveas($value);\n break;\n case 30:\n $this->setProdAircraftreg($value);\n break;\n case 31:\n $this->setMb($value);\n break;\n case 32:\n $this->setPa($value);\n break;\n case 33:\n $this->setM3($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setWidthProportionLg(?string $widthProportionLg): FieldsetInterface;", "public function setWidth($width) {\r\n $this->width = max(1,$width);\r\n }", "public function add_size($data) {\n\t\t$this->db->insert('tbl_size', $data);\n\t}", "public function write($data, $length){ }", "function set_width($width) {\n $this->width = $width;\n }", "public function saveProperties(){\n\n\t\t$props = $_POST['properties'];\n\t\t$props = $this->sanitizeProperties( $props );\n\t\t$props = apply_filters( 'chef_sections_save_column_properties', $props, $this );\n\n\t\tdo_action( 'chef_sections_before_column_save', $this );\n\n\t\t$saved = update_post_meta(\n\t\t\t$this->post_id,\n\t\t\t'_column_props_'.$this->fullId,\n\t\t\t$props\n\t\t);\n\n\t\tdo_action( 'chef_sections_after_column_save', $this );\n\n\t\t//set the new properties in this class\n\t\t$this->properties = $props;\n\t\treturn $saved;\n\t}", "function set_product_sequence($voucher_id, $prod_id, $seq)\n\t{\n\t\t$this->db->where(array('voucher_id'=>$voucher_id, 'product_id'=>$prod_id));\n\t\t$this->db->update('vouchers_products', array('sequence'=>$seq));\n\t}", "public function testSetPrintWidthDefault()\n {\n $this -> printer -> setPrintWidth();\n $this -> checkOutput(\"\\x1b@\\x1dW\\x00\\x02\");\n }", "public function testSetLength() {\n\n $obj = new DataTablesRequest();\n\n $obj->setLength(10);\n $this->assertEquals(10, $obj->getLength());\n }", "public function testLengthCanBeChanged()\n {\n $this->assertEquals(15, (new StringField('some_string'))->length(15)->getLength());\n }", "static public function change_excerpt_length($length)\n\t{\n\t\treturn 12;\n\t}", "public function width()\n {\n return $this->setRightOperand(PVar::WIDTH);\n }", "public function safeUp()\n {\n $this->addColumn('apartment', 'price', 'DECIMAL(20,2) DEFAULT 0');\n $this->addColumn('apartment', 'room_number', 'int UNSIGNED DEFAULT 0');\n $this->addColumn('apartment', 'square', 'int UNSIGNED DEFAULT 0');\n }", "protected function setProductivity()\n {\n $this->productivity = random_int(8, 12);\n }", "public function setProdHeight($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_height !== $v) {\n $this->prod_height = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_HEIGHT] = true;\n }\n\n return $this;\n }", "public function setQty($qty);", "function hometown_woocommerce_product_available_sizes_save($post_id)\n{\n $woocommerce_custom_product_text_field = $_POST['_xs_available_sizes'];\n update_post_meta($post_id, '_xs_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_s_available_sizes'];\n update_post_meta($post_id, '_s_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_m_available_sizes'];\n update_post_meta($post_id, '_m_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_l_available_sizes'];\n update_post_meta($post_id, '_l_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_xl_available_sizes'];\n update_post_meta($post_id, '_xl_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_xxl_available_sizes'];\n update_post_meta($post_id, '_xxl_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_3xl_available_sizes'];\n update_post_meta($post_id, '_3xl_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_4xl_available_sizes'];\n update_post_meta($post_id, '_4xl_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n}", "public function setBatteryCapacityPoor(?int $value): void {\n $this->getBackingStore()->set('batteryCapacityPoor', $value);\n }", "function setSize($size)\n {\n $this->size = $size;\n }", "public function getProdHeight()\n {\n return $this->prod_height;\n }", "public function setWidth($val)\n {\n $this->_propDict[\"width\"] = floatval($val);\n return $this;\n }", "public function getNbProd()\n {\n return $this->CollProduit->taille();\n }", "function setSize($size) {\n\t\t$this->size = $size;\n\t}", "public function setOutputLength($byteLength);", "public function setWidth($width);", "public function setWidth($width);", "function wpex_new_excerpt_length($length) {\n\n\treturn 50;\n\n}", "public function setSizeAttribute($value)\n {\n $size = self::getSizeLetter($value);\n\n if ($size) {\n $this->attributes['size'] = $size;\n }\n }", "public function onBeforeWrite() {\n parent::onBeforeWrite();\n\n // See if this order was just marked paid, if so reduce quantities for\n // items.\n if($this->isChanged(\"Status\") && $this->Status == \"paid\") {\n foreach($this->Items() as $item) {\n $product = $item->MatchProduct;\n\n if($product->ID && $product->Quantity) {\n $new_qty = $product->Quantity - $item->Quantity;\n $product->Quantity = ($new_qty > 0) ? $new_qty : 0;\n $product->write();\n }\n }\n }\n }", "public function setMaxLength($length) {\n $this->maxlength = $length;\n }", "public function setProductItemCounts($val)\n {\n $this->_propDict[\"productItemCounts\"] = $val;\n return $this;\n }", "function medigroup_mikado_excerpt_length($length) {\n\n if(medigroup_mikado_options()->getOptionValue('number_of_chars') !== '') {\n return esc_attr(medigroup_mikado_options()->getOptionValue('number_of_chars'));\n } else {\n return 45;\n }\n }", "public function setPasswordMinimumLength(?int $value): void {\n $this->getBackingStore()->set('passwordMinimumLength', $value);\n }", "public function setAlterColumnFormat()\n {\n $this->format = '{type}{length}{notnull}{append}';\n }", "public function setLengthMax($length)\n {\n if (!$length) {\n $length = self::LENGTH_MAX_MAX;\n }\n \n $this->lengthMax = \\RandData\\Checker::int(\n $length,\n self::LENGTH_MAX_MIN,\n self::LENGTH_MAX_MAX,\n \"lengthMax\"\n );\n }", "function voyage_mikado_excerpt_length($length) {\n\n if(voyage_mikado_options()->getOptionValue('number_of_chars') !== '') {\n return esc_attr(voyage_mikado_options()->getOptionValue('number_of_chars'));\n } else {\n return 45;\n }\n }", "public function prod($prod);", "protected function process_field_lengths($data, $table)\n {\n }", "public function setSize($size) {\n $this->_size = $size;\n }", "public function sizeField($value) {\n return $this->setProperty('sizeField', $value);\n }", "public function setPrintWidth(int $width = 512)\n {\n self::validateInteger($width, 1, 65535, __FUNCTION__);\n $this -> connector -> write(Printer::GS . 'W' . self::intLowHigh($width, 2));\n }", "public function incorrectSkuLengthInVirtual()\n {\n //Data\n $productData = $this->loadData('virtual_product_required',\n array('general_sku' => $this->generate('string', 65, ':alnum:')));\n //Steps\n $this->productHelper()->createProduct($productData, 'virtual');\n //Verifying\n $this->assertMessagePresent('validation', 'incorrect_sku_length');\n $this->assertTrue($this->verifyMessagesCount(), $this->getParsedMessages());\n }", "public function setQueryStringLengthValue($var)\n {\n $this->writeWrapperValue(\"query_string_length\", $var);\n return $this;}", "public function getProdKeywordsWriteup()\n {\n return $this->prod_keywords_writeup;\n }" ]
[ "0.5849533", "0.5845091", "0.54983926", "0.52451783", "0.5227475", "0.5193568", "0.517603", "0.5154529", "0.5015874", "0.49748063", "0.492936", "0.49030176", "0.49030176", "0.48893374", "0.48866785", "0.48366562", "0.4830328", "0.48200265", "0.47911918", "0.47856182", "0.4678454", "0.4678172", "0.46774098", "0.46666297", "0.46467885", "0.46351805", "0.4634647", "0.45904708", "0.4555062", "0.45450664", "0.4525323", "0.4524804", "0.44812834", "0.44754192", "0.44472578", "0.443456", "0.44316554", "0.4415148", "0.44059545", "0.4405208", "0.44038564", "0.44022527", "0.4400276", "0.43938965", "0.43938965", "0.43935603", "0.43931758", "0.43921036", "0.4389735", "0.4374271", "0.43624532", "0.43608356", "0.4359479", "0.4355991", "0.4353834", "0.43537256", "0.43518215", "0.43466783", "0.43423167", "0.4340303", "0.43374783", "0.43335468", "0.43247533", "0.43218797", "0.4312915", "0.4312029", "0.43050396", "0.42930904", "0.42854884", "0.42736772", "0.42731994", "0.42694297", "0.42654693", "0.4263798", "0.42613316", "0.42606977", "0.42551103", "0.4254286", "0.4250607", "0.42439705", "0.4240714", "0.4240714", "0.42390624", "0.42360672", "0.4233429", "0.4226296", "0.42249018", "0.4224417", "0.4222847", "0.4215333", "0.4214382", "0.42134312", "0.42065328", "0.42033997", "0.4200338", "0.41978982", "0.41949096", "0.41869387", "0.41802165", "0.41758746" ]
0.62863356
0
setProdLength() Set the value of [prod_wingspan] column.
public function setProdWingspan($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_wingspan !== $v) { $this->prod_wingspan = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_WINGSPAN] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdLength($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_length !== $v) {\n $this->prod_length = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_LENGTH] = true;\n }\n\n return $this;\n }", "public function setWidth($value)\n {\n $this->_width = $value;\n }", "public function setWidth($val)\n {\n $this->_propDict[\"width\"] = floatval($val);\n return $this;\n }", "public function getProdLength()\n {\n return $this->prod_length;\n }", "public function setWidthProportionLg(?string $widthProportionLg): FieldsetInterface;", "public function setLength($length);", "public function getProdWingspan()\n {\n return $this->prod_wingspan;\n }", "public function testSetWidthProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setWidth($value);\n $this->assertEquals($value, $product->getWidth());\n }", "function set_length($length) {\n $this->length = $length;\n }", "function SetWidths($w) {\n\t$this->widths=$w;\n}", "function SetWidths($w)\n{\n\t$this->widths=$w;\n}", "function SetWidths($w)\n{\n\t$this->widths=$w;\n}", "function SetWidths($w)\n{\n\t$this->widths=$w;\n}", "function SetWidths($w)\r\n{\r\n\t$this->widths=$w;\r\n}", "function SetWidths($w)\r\n{\r\n\t$this->widths=$w;\r\n}", "public function setLength() { \n $this->_rectLength = $_POST[\"Length\"]; // Gets the length from the HTML program and stores in \"_rectLength\"\n echo(\"The length of the rectangle is: \".$this->_rectLength); // Outputs the length to the console\n echo(\"<br>\");\n }", "function SetWidths($w)\r\n{\r\n $this->widths=$w;\r\n}", "public static function setLength ($length){\n\t\tself::$_length = $length;\n\t}", "function SetWidths($w){\r\n \t//Set the array of column widths\r\n \t$this->widths=$w;\r\n }", "function SetWidths($w)\n{\n $this->widths=$w;\n}", "function SetWidths($w)\n{\n $this->widths=$w;\n}", "function SetWidths($w)\n{\n $this->widths=$w;\n}", "public function SetWidths($w)\n {\n $this->widths=$w;\n\n }", "public function setLength($length)\n {\n $this->length = $length;\n }", "public function setLength($length)\n {\n $this->length = $length;\n }", "function SetWidths($w)\n {\n $this->widths=$w;\n }", "function SetWidths($w)\n {\n $this->widths=$w;\n }", "function SetWidths($w)\n {\n $this->widths=$w;\n }", "function SetWidths($w)\n {\n $this->widths=$w;\n }", "public function setWidth($width = 40)\n {\n $this->width = $width;\n $this->setAttributes(\"Width\");\n }", "function SetWidths($w){\n\t $this->widths=$w;\n\t}", "function SetWidths($w){\n\t\t\t$this->widths=$w;\n\t\t}", "public function setWidth($width) {}", "public function setWidth($width) {}", "public function setWidth($width) {}", "public function setLength($length) {\r\n $this->length = $length;\r\n }", "function SetWidths($w)\n\t{\n\t\t$this->widths=$w;\n\t}", "function SetWidths($w)\n\t{\n\t\t$this->widths=$w;\n\t}", "function SetWidths($w)\n\t{\n\t\t$this->widths=$w;\n\t}", "function SetWidths($w) {\n\t\t\t$this->widths=$w;\n\t\t}", "function SetWidths($w)\n {\n $this->widths = $w;\n }", "function SetWidths($w)\n {\n $this->widths = $w;\n }", "public function setWidth($width);", "public function setWidth($width);", "function SetWidths($w) {\n $this->widths = $w;\n }", "function SetWidths($w) {\n $this->widths = $w;\n }", "function SetWidths($w) {\n $this->widths = $w;\n }", "function SetWidths($w)\n\t{\n\t $this->widths=$w;\n\t}", "function SetWidths($w)\n\t{\n\t $this->widths=$w;\n\t}", "public function set_width($width,$wpp) {\n if (is_numeric($width) && ($width > 0)) {\n $wpp = strtolower($wpp);\n if (($wpp == 'px') || ($wpp == '%')) {\n $this->_width = $width;\n $this->_wpp = $wpp;\n }\n }\n }", "public function setWidth($width) {\r\n $this->width = max(1,$width);\r\n }", "public function setWidth($value)\n {\n return $this->setProperty(\"Width\", $value, true);\n }", "public function setWidth($width) {\n $this->w = $width;\n }", "public function setWidthAttribute($width = null)\n\t{\n\t\t$this->attributes['width'] = intval($width);\n\t}", "function set_width($width) {\n $this->width = $width;\n }", "function set_field_length($len) \n {\n $this->attribs['maxlength'] = $len;\n }", "public function setWidthProportionSm(?string $widthProportionSm): FieldsetInterface;", "function setSyncProdWeight()\n {\n }", "public function setPrintWidth(int $width = 512)\n {\n self::validateInteger($width, 1, 65535, __FUNCTION__);\n $this -> connector -> write(Printer::GS . 'W' . self::intLowHigh($width, 2));\n }", "function setLegendWidth($width = 40)\n {\n $width *= 1.0;\n if ($width < 0) {\n $width = 0;\n }\n if ($width > 100) {\n $width = 100;\n }\n $this->legend_width = $width;\n }", "function setLegendWidth($width = 40)\n {\n $width *= 1.0;\n if ($width < 0) {\n $width = 0;\n }\n if ($width > 100) {\n $width = 100;\n }\n $this->legend_width = $width;\n }", "function setSubLength($classId, $length) {\r\n $data['classSubLength'] = $length;\r\n $this->db->where('id', $classId);\r\n $this->db->update('class', $data);\r\n }", "public function setPageWidth($value)\n {\n $this->fields['options']['width'] = $value;\n }", "public function setProdHeight($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_height !== $v) {\n $this->prod_height = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_HEIGHT] = true;\n }\n\n return $this;\n }", "public function setWidth($width)\n {\n $this->width = (int) $width;\n }", "public function setMaxLength($length);", "public function setSizeAttribute($value)\n {\n $size = self::getSizeLetter($value);\n\n if ($size) {\n $this->attributes['size'] = $size;\n }\n }", "public function setLen($value)\n {\n return $this->set(self::LEN, $value);\n }", "public function setWidth($width)\n {\n if (is_numeric($width)) {\n $this->width = \"{$width}px\";\n } else {\n $this->width = $width;\n }\n $this->setAttributes(\"Width\");\n }", "public function setWidth($width)\r\n {\r\n if (is_numeric($width))\r\n {\r\n $this->width = (int)$width;\r\n }\r\n }", "public final function setWidth($width)\n {\n $this->googleVisualization->setWidth($width);\n }", "public function setMaxLength($length) {\n $this->maxlength = $length;\n }", "public function setWidth($width) {\n\t\t$this->_width=$width;\n\t\t$this->_autoWidth=$width;\n\t}", "public function setScaling($scaling = 100) {}", "public function setW($dw) {}", "public function setWidth($width) {\n\t\t$width = (int) $width;\n\t\t$this->width = (($width > 0) && ($width <= self::MAX_WIDTH)) ? $width : self::DEFAULT_WIDTH;\n\t}", "public function set_max_font_size($val) \n {\n $this->max_font_size = $val;\n }", "public function setAdvanceWidthMax($value) {}", "public function set_min_font_size($val) \n {\n $this->min_font_size = $val;\n }", "public function setPlotWidth($plotWidth = 700) {\n\t\t$this->plotWidth = $plotWidth;\n\t}", "public function r_width($value = null)\n {\n $this->r_width = $value;\n }", "public function width($value) {\n return $this->setProperty('width', $value);\n }", "public function width($value) {\n return $this->setProperty('width', $value);\n }", "public function width($value) {\n return $this->setProperty('width', $value);\n }", "public function width($value) {\n return $this->setProperty('width', $value);\n }", "public function width($value) {\n return $this->setProperty('width', $value);\n }", "public function width($value) {\n return $this->setProperty('width', $value);\n }", "public function setLineWidth($series, $width) {\n\t\t$this->Data[$series]['lines']['lineWidth'] = $width;\n\t}", "public function setWordSpacing($wordSpacing) {}", "public function setWordSpacing($wordSpacing) {}", "public function setLength($var)\n {\n GPBUtil::checkInt64($var);\n $this->length = $var;\n\n return $this;\n }", "function setSize($size)\n {\n $this->size = $size;\n }", "public function setColWidth($column_start, $column_end, $width, $hidden = false, $format = null) {\n\t}", "function setSize($size) {\n\t\t$this->size = $size;\n\t}", "public function setSize($size) {\n $this->_size = $size;\n }", "public function setFontSize($val)\n {\n $this->_propDict[\"fontSize\"] = $val;\n return $this;\n }", "function setMaxWidth($width) {\n $this->field['max_width'] = $width;\n\n return $this;\n }", "public function setSize($size)\n {\n $this->size = $size;\n }", "public function setWidth($value)\n {\n $this->width = (int) $value;\n\n if ($this->width < 1) {\n throw new \\RuntimeException('Width must be greater than 0: ' . $this->width);\n }\n }", "public function setFieldLength($fieldLength)\n {\n try {\n if ($this->validateFieldLength($fieldLength) === true) {\n $this->FieldLength = $fieldLength;\n }\n } catch (\\Exception $ex) {\n throw new \\Bridge\\Components\\Exporter\\ExporterException($ex->getMessage());\n }\n }" ]
[ "0.63263345", "0.5552692", "0.54678917", "0.5453686", "0.5408111", "0.53934956", "0.538516", "0.5351815", "0.5284943", "0.52590734", "0.5251854", "0.5251854", "0.5251854", "0.5240267", "0.5240267", "0.52246445", "0.5220869", "0.52199066", "0.5212671", "0.5199404", "0.5199404", "0.5199404", "0.5199311", "0.51901954", "0.51901954", "0.5181107", "0.5181107", "0.5181107", "0.5181107", "0.51622635", "0.515867", "0.5152651", "0.5140667", "0.5140667", "0.51397574", "0.51322144", "0.51248187", "0.51248187", "0.51248187", "0.5114612", "0.51130676", "0.51130676", "0.5110542", "0.5110542", "0.5094718", "0.5094718", "0.5094718", "0.50928724", "0.50928724", "0.5077362", "0.5067525", "0.5061361", "0.50490797", "0.5017856", "0.5017148", "0.49643677", "0.4924158", "0.49079987", "0.49077883", "0.48836136", "0.48836136", "0.48801783", "0.485168", "0.4818256", "0.47940332", "0.47694418", "0.47503424", "0.47464374", "0.47446233", "0.47424924", "0.4693512", "0.4690087", "0.46570316", "0.46256515", "0.46185446", "0.461153", "0.46008292", "0.4594344", "0.45941746", "0.45926833", "0.45918185", "0.4583772", "0.4583772", "0.4583772", "0.4583772", "0.4583772", "0.4583772", "0.45794863", "0.45769224", "0.45769224", "0.45678383", "0.45472878", "0.45472047", "0.45330143", "0.4522011", "0.45177373", "0.4516433", "0.4502855", "0.4502436", "0.4501944" ]
0.61031413
1
setProdWingspan() Set the value of [prod_height] column.
public function setProdHeight($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_height !== $v) { $this->prod_height = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_HEIGHT] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdWingspan($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_wingspan !== $v) {\n $this->prod_wingspan = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_WINGSPAN] = true;\n }\n\n return $this;\n }", "public function getProdWingspan()\n {\n return $this->prod_wingspan;\n }", "public function setHeight($val)\n {\n $this->_propDict[\"height\"] = floatval($val);\n return $this;\n }", "public function testSetHeightProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setHeight($value);\n $this->assertEquals($value, $product->getHeight());\n }", "public function setHeight($height) {}", "function set_rowspan($rowspan=0) {\n\n if (is_numeric($rowspan) && $rowspan > 1) {\n $this->_rowspan = $rowspan;\n }\n }", "function set_height($height) {\n $this->height = $height;\n }", "public function getProdHeight()\n {\n return $this->prod_height;\n }", "public function setHeight($height);", "public function setHeight($height);", "public function setRowspan($num)\n {\n parent::setAttr(\"rowspan\", $num);\n }", "public function setSpan( $span )\n\t{\n\t\t$this->setAttribute( \"span\", $span );\n\t}", "public function setHeightStyle($val = '\"content\"')\n {\n $this->addParams('heightStyle', $val);\n\n return $this;\n }", "public function setHeight($value)\n {\n return $this->setProperty(\"Height\", $value, true);\n }", "public function setColspan($num)\n {\n parent::setAttr(\"colspan\", $num);\n }", "public function r_height($value = null)\n {\n $this->r_height = $value;\n }", "public function setHeightAttribute($height = null)\n\t{\n\t\t$this->attributes['height'] = intval($height);\n\t}", "public function setHeight($height)\r\n {\r\n if (is_numeric($height))\r\n {\r\n $this->height = (int)$height;\r\n }\r\n }", "public function setHeight($height)\n {\n $this->height = (int) $height;\n }", "public function height($manipulation_name = '')\n\t{\n\t\treturn $this->row_field('height');\n\t}", "public function setSpan(int $value) {\n if ($value >= 2) {\n return $this->setAttribute('span', $value);\n } else {\n return $this->removeAttribute('span');\n }\n }", "public function height($value) {\n return $this->setProperty('height', $value);\n }", "public function height($value) {\n return $this->setProperty('height', $value);\n }", "public function height($value) {\n return $this->setProperty('height', $value);\n }", "public function height($value) {\n return $this->setProperty('height', $value);\n }", "public function setHeight($height)\n {\n $this->height = $height;\n }", "public function setHeight($height)\n {\n $this->height = $height;\n }", "public function max_size( $span ) {\n\t\t$breakpoint_value = end( $this->breakpoints );\n\t\t// Breakpoint name.\n\t\t$breakpoint = key( $this->breakpoints );\n\n\t\t$margin_size = $this->margins[ $breakpoint ];\n\t\t$gutter_size = $this->gutters[ $breakpoint ];\n\t\t$cols = $this->columns[ $breakpoint ];\n\n\t\t$max_container_width = $this->max_width();\n\t\t$max_container_width_in_ems = $this->px_to_em( $max_container_width );\n\t\t$calc = $this->calc( $span, $cols, $max_container_width_in_ems, $margin_size, $gutter_size );\n\t\t$max_size = '(min-width: ' . $max_container_width_in_ems . ') ' . $calc;\n\n\t\treturn $max_size;\n\t}", "#[@fromDia(xpath= 'dia:attribute[@name=\"height\"]/dia:real/@val', value= 'real')]\n public function setHeight($height) {\n $this->setReal('height', $height);\n }", "public function setHeight($height = 40)\n {\n $this->height = $height;\n $this->setAttributes(\"Height\");\n }", "public function setHeight($height) {\n\t\t$height = (int) $height;\n\t\t$this->height = (($height > 0) && ($height <= self::MAX_HEIGHT)) ? $height : self::DEFAULT_HEIGHT;\n\t}", "function setPaperHeight($paperHeight) {\t \r\n\t $this->paperHeight = $paperHeight;\r\n\t}", "public function setHeight($value)\n {\n $this->height = (int) $value;\n\n if ($this->height < 1) {\n throw new \\RuntimeException('Height must be greater than 0: ' . $this->height);\n }\n }", "public function setHeight($height) {\n $this->h = $height;\n }", "function SetRowColumnSpan()\n\t{\n\t\tif ((!func_num_args()) || (!isset($this->_intCurrentRow)))\n\t\t{\n\t\t\t// no parameters were passed or there is no current row\n\t\t\treturn NULL;\n\t\t}\n\t\t\n\t\t// retrieve the width values\n\t\t$arrColSpans = func_get_args();\n\t\t\n\t\t$this->_arrRows[$this->_intCurrentRow]['ColSpans'] = $arrColSpans;\n\n\t\treturn $this->_intCurrentRow;\n\t}", "public function setImageHeight($value)\n\t{\n\t\t$this->setViewSTate('ImageHeight',$value,'');\n\t}", "function SetWidths($w)\n{\n\t$this->widths=$w;\n}", "function SetWidths($w)\n{\n\t$this->widths=$w;\n}", "function SetWidths($w)\n{\n\t$this->widths=$w;\n}", "function SetWidths($w) {\n\t$this->widths=$w;\n}", "function SetWidths($w)\r\n{\r\n\t$this->widths=$w;\r\n}", "function SetWidths($w)\r\n{\r\n\t$this->widths=$w;\r\n}", "public function setPixelHeightUnwrapped($var)\n {\n $this->writeWrapperValue(\"pixel_height\", $var);\n return $this;}", "public final function setHeight($height)\n {\n $this->googleVisualization->setHeight($height);\n }", "public function setHeight($value) {\n $this->settings['height'] = $value;\n // Return for chaining\n return $this;\n }", "public function setW($dw) {}", "function SetWidths($w)\r\n{\r\n $this->widths=$w;\r\n}", "public function setHeight($height)\n\t{\n\t\tif (preg_match ( '/^\\d+$/', $height ))\n\t\t{\n\t\t\tif ($height > 0)\n\t\t\t{\n\t\t\t\t$this->_height = $height;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tthrow new Lumia_Placeholder_Exception(__METHOD__ . '() Height must be greater than zero.');\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tthrow new Lumia_Placeholder_Exception(__METHOD__ . '() Height must be an integer.');\n\t\t}\n\t}", "public function getLineHeightFactor() {}", "function ks_acf_wysiwyg_field_height_setting($field) {\n\tacf_render_field_setting($field, array(\n\t\t'label'\t=> 'Height',\n\t\t'name' => 'editor_height',\n\t\t'type' => 'number',\n 'placeholder' => '300',\n 'append' => 'px'\n\t));\n}", "public function set_height($height, $hpp) {\n if (is_numeric($height) && $height > 0) {\n $hpp = strtolower($hpp);\n if ($hpp == 'px' || $hpp == '%') {\n $this->_height = abs($height);\n $this->_hpp = $hpp;\n }\n }\n }", "public function setPageHeight($value)\n {\n $this->fields['options']['height'] = $value;\n }", "public function setPlotHeight($plotHeight = 500) {\n\t\t$this->plotHeight = $plotHeight;\n\t}", "function SetWidths($w)\n{\n $this->widths=$w;\n}", "function SetWidths($w)\n{\n $this->widths=$w;\n}", "function SetWidths($w)\n{\n $this->widths=$w;\n}", "function SetWidths($w)\n {\n $this->widths=$w;\n }", "function SetWidths($w)\n {\n $this->widths=$w;\n }", "function SetWidths($w)\n {\n $this->widths=$w;\n }", "function SetWidths($w)\n {\n $this->widths=$w;\n }", "function setSyncProdWeight()\n {\n }", "public function SetWidths($w)\n {\n $this->widths=$w;\n\n }", "public function setScaling($scaling = 100) {}", "function SetWidths($w)\n\t{\n\t\t$this->widths=$w;\n\t}", "function SetWidths($w)\n\t{\n\t\t$this->widths=$w;\n\t}", "function SetWidths($w)\n\t{\n\t\t$this->widths=$w;\n\t}", "function SetWidths($w){\n\t\t\t$this->widths=$w;\n\t\t}", "function SetWidths($w)\n {\n $this->widths = $w;\n }", "function SetWidths($w)\n {\n $this->widths = $w;\n }", "public function colSpan($value) {\n return $this->setProperty('colSpan', $value);\n }", "function SetWidths($w) {\n\t\t\t$this->widths=$w;\n\t\t}", "function setGutter($gutter) {\t \r\n\t $this->gutter = $gutter;\r\n\t}", "function SetWidths($w){\n\t $this->widths=$w;\n\t}", "public function setWidth($val)\n {\n $this->_propDict[\"width\"] = floatval($val);\n return $this;\n }", "public function setNumberOfHMetrics($value) {}", "public function setSizeGB($value)\n {\n return $this->set('SizeGB', $value);\n }", "function SetWidths($w){\r\n \t//Set the array of column widths\r\n \t$this->widths=$w;\r\n }", "public function setRowHeight($value)\n {\n $this->rowHeight = $value;\n return $this;\n }", "function getHeight() {\n\t\t}", "public function setWordSpacing($wordSpacing) {}", "public function setWordSpacing($wordSpacing) {}", "public function set_spacing_sizes()\n {\n }", "function SetWidths($w) {\n $this->widths = $w;\n }", "function SetWidths($w) {\n $this->widths = $w;\n }", "function SetWidths($w) {\n $this->widths = $w;\n }", "function SetWidths($w)\n\t{\n\t $this->widths=$w;\n\t}", "function SetWidths($w)\n\t{\n\t $this->widths=$w;\n\t}", "private function largestSeriesProduct($span): int\n {\n $products = [];\n for ($start = 0; $start <= $this->sequenceLength - $span; $start++) {\n $products[] = $this->multiplyStringSection(substr($this->digitSequence, $start, $span));\n }\n return max($products);\n }", "public function setPreviewPixelHeightUnwrapped($var)\n {\n $this->writeWrapperValue(\"preview_pixel_height\", $var);\n return $this;}", "public function set_width($width,$wpp) {\n if (is_numeric($width) && ($width > 0)) {\n $wpp = strtolower($wpp);\n if (($wpp == 'px') || ($wpp == '%')) {\n $this->_width = $width;\n $this->_wpp = $wpp;\n }\n }\n }", "public function largestProduct($span): int\n {\n if (0 == $span) {\n return 1;\n }\n\n $this->validateSpan($span);\n\n return $this->largestSeriesProduct($span);\n }", "public function setRowHeight($row, $height, $format = null, $hidden = false) {\n\t}", "public function setHeight($height) {\n\t\t$this->_height=$height;\n\t\t$this->_autoHeight=$height;\n\t}", "public function setHeight($height)\n\t{\n\t\tif (is_numeric($height))\n\t\t{\n\t\t\t$height = $height . 'px';\n\t\t}\n\t\t$this->setContainerStyle('height', $height);\n\t}", "public function setScaling($scaleing) {}", "function setBox($height, $width){\n\t\t//Takes the height and width passed and\n\t\t//saves them to the 'ScaleTool' object.\n\n\t\t$this->box_height = $height;\n\t\t$this->box_width = $width;\n\t}", "public function height()\n {\n return $this->setRightOperand(PVar::HEIGHT);\n }", "public function setHeight($height)\n {\n if(is_numeric($height) && $height > 0)\n {\n $this->height = (int)$height;\n \n return true;\n }\n \n return false;\n }", "public function getSpan(){\n return $this->_colspan;\n }", "public function testSetWidthProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setWidth($value);\n $this->assertEquals($value, $product->getWidth());\n }" ]
[ "0.6281454", "0.57447827", "0.56941557", "0.5417464", "0.5362587", "0.53486466", "0.52647144", "0.52207506", "0.5218132", "0.5218132", "0.51957536", "0.5160573", "0.51359445", "0.50391763", "0.50091803", "0.49210945", "0.49064335", "0.48985052", "0.48844203", "0.48312396", "0.47820854", "0.47796226", "0.47796226", "0.47796226", "0.47796226", "0.47506467", "0.47506467", "0.4735877", "0.47244775", "0.47093737", "0.46652004", "0.46548116", "0.46519646", "0.4651497", "0.46404868", "0.460007", "0.45942965", "0.45942965", "0.45942965", "0.45936316", "0.45920652", "0.45920652", "0.45661876", "0.45650646", "0.45581213", "0.45574504", "0.45570666", "0.454699", "0.45434025", "0.45154122", "0.45084438", "0.4501683", "0.44991308", "0.44875115", "0.44875115", "0.44875115", "0.44823584", "0.44823584", "0.44823584", "0.44823584", "0.447628", "0.44584048", "0.44531307", "0.4448136", "0.4448136", "0.4448136", "0.44457814", "0.44392005", "0.44392005", "0.44351065", "0.44340596", "0.44336542", "0.44303104", "0.44276246", "0.44240087", "0.4415349", "0.44150278", "0.4414714", "0.4409045", "0.4403554", "0.4403554", "0.44011524", "0.44005293", "0.44005293", "0.44005293", "0.4398933", "0.4398933", "0.43874383", "0.43861005", "0.43846655", "0.43792585", "0.4373805", "0.4370226", "0.4361625", "0.4360083", "0.43561095", "0.43441513", "0.43186083", "0.42946094", "0.42821124" ]
0.60052425
1
setProdHeight() Set the value of [prod_scale] column.
public function setProdScale($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_scale !== $v) { $this->prod_scale = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_SCALE] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdHeight($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_height !== $v) {\n $this->prod_height = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_HEIGHT] = true;\n }\n\n return $this;\n }", "public function getProdScale()\n {\n return $this->prod_scale;\n }", "public function testSetHeightProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setHeight($value);\n $this->assertEquals($value, $product->getHeight());\n }", "public function getProdHeight()\n {\n return $this->prod_height;\n }", "public function scale($scaleX, $scaleY) {}", "public function scale($scaleX, $scaleY) {}", "public function scale($scaleX, $scaleY) {}", "public function setImageHeight($value)\n\t{\n\t\t$this->setViewSTate('ImageHeight',$value,'');\n\t}", "public function setScaling($scaling = 100) {}", "public function setHeight($height) {}", "function scale($scale) {\r\n\t\t$width = $this->getWidth() * $scale/100;\r\n\t\t$height = $this->getheight() * $scale/100;\r\n\t\t$this->resize($width,$height);\r\n\t}", "private function scaleY() : void \n\t{\n\t\t$this->range = abs($this->rangeYLow) + abs($this->rangeYHigh);\n\n\t\t$this->scaleY = ((float)$this->sizeY / $this->range);\n\t\t$this->originY = $this->sizeY >> 1;\n\t}", "public function setScaling($scaleing) {}", "public function scale() { }", "public function setHeight($val)\n {\n $this->_propDict[\"height\"] = floatval($val);\n return $this;\n }", "public function setProdLength($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_length !== $v) {\n $this->prod_length = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_LENGTH] = true;\n }\n\n return $this;\n }", "public function setScale($newScale)\n {\n $this->domain->setScale($newScale);\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "public function setHeight($value)\n {\n return $this->setProperty(\"Height\", $value, true);\n }", "public function setHeight($height);", "public function setHeight($height);", "public function setScale($var)\n {\n GPBUtil::checkDouble($var);\n $this->scale = $var;\n\n return $this;\n }", "function setPaperHeight($paperHeight) {\t \r\n\t $this->paperHeight = $paperHeight;\r\n\t}", "public function testSetWidthProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setWidth($value);\n $this->assertEquals($value, $product->getWidth());\n }", "function set_height($height) {\n $this->height = $height;\n }", "public function setScale($var)\n {\n GPBUtil::checkInt32($var);\n $this->scale = $var;\n\n return $this;\n }", "private function SetProductImages()\n\t{\n\n\t\t$GLOBALS['ProductThumbWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\t\t$GLOBALS['ProductThumbHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\n\t\t$GLOBALS['ProductMaxTinyWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\t\t$GLOBALS['ProductMaxTinyHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\n\t\t$GLOBALS['ProductTinyBoxWidth'] = $GLOBALS['ProductMaxTinyWidth']+4;\n\t\t$GLOBALS['ProductTinyBoxHeight'] = $GLOBALS['ProductMaxTinyHeight']+4;\n\n\n\t\t$GLOBALS['ProductMaxZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductMaxZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\t\t$GLOBALS['ProductZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\n\t\t$productImages = ISC_PRODUCT_IMAGE::getProductImagesFromDatabase($GLOBALS['ProductId'], null, false, true);\n\t\t$GLOBALS['NumProdImages'] = count($productImages);\n\n\t\t$GLOBALS['CurrentProdThumbImage'] = 0;\n\t\t$thumb = '';\n\t\t$curZoomImage = '';\n\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] = '';\n\t\t$GLOBALS['HideImageCarousel'] = 'display:none;';\n\t\t$GLOBALS['HideMorePicturesLink'] = 'display:none;';\n\t\t$thumbImageDescription = '';\n\t\t$i = 0;\n\n\t\t$GLOBALS['ProdImageJavascript'] = '';\n\t\t$GLOBALS['ProdImageZoomJavascript'] = '';\n\t\t$GLOBALS['LightBoxImageList'] = '';\n\t\t$GLOBALS['ZoomImageMaxWidth'] = 0;\n\t\t$GLOBALS['ZoomImageMaxHeight'] = 0;\n\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = 0;\n\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = 'display: none';\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t//Show image carousel\n\n\t\t\tif ($GLOBALS['NumProdImages'] == 2) {\n\t\t\t\t$var = \"MorePictures1\";\n\t\t\t} else if ($GLOBALS['NumProdImages'] == 1) {\n\t\t\t\t$var = \"SeeLargerImage\";\n\t\t\t} else {\n\t\t\t\t$var = \"MorePictures2\";\n\t\t\t}\n\n\t\t\t$GLOBALS['SeeMorePictures'] = sprintf(GetLang($var), count($productImages) - 1);\n\t\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = '';\n\n\t\t\tif (GetConfig('ProductImagesTinyThumbnailsEnabled')) {\n\t\t\t\t$GLOBALS['HideImageCarousel'] = '';\n\t\t\t} else {\n\t\t\t\t$GLOBALS['HideMorePicturesLink'] = '';\n\t\t\t}\n\n\t\t\t$continue=false;\n\n\t\t\tforeach ($productImages as $productImage) {\n\n\t\t\t\t$thumbURL = '';\n\t\t\t\t$zoomImageURL = '';\n\n\t\t\t\ttry{\n\t\t\t\t\t$thumbURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_STANDARD, true);\n\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\ttry{\n\t\t\t\t\t$zoomImageURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_ZOOM, true);\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\tif($thumbURL == '' && $zoomImageURL == '') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$resizedZoomDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t\t\t$resizedTinyDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\t\t\t\t//calculate the max zoom image width and height\n\t\t\t\tif ($GLOBALS['ZoomImageMaxWidth'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]) {\n\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t//the height of the image has got the max width needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\tif ($GLOBALS['ZoomImageMaxHeight'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]) {\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t//the width of the image has got the max height needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeightWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['ImageDescription'] = isc_html_escape($productImage->getDescription());\n\t\t\t\tif($GLOBALS['ImageDescription'] == '') {\n\t\t\t\t\t$GLOBALS['ImageDescription'] = GetLang(\"Image\") . \" \" . ($i + 1);\n\t\t\t\t}\n\n\t\t\t\t//show image carousel\n\t\t\t\tif(GetConfig('ProductImagesTinyThumbnailsEnabled')==1) {\n\n\t\t\t\t\t$GLOBALS['ProdImageJavascript'] .= \"\n\t\t\t\t\t\tThumbURLs[\".$i.\"] = \" . isc_json_encode($thumbURL) . \";\n\t\t\t\t\t\tProductImageDescriptions[\".$i.\"] = \" . isc_json_encode($GLOBALS['ImageDescription']) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$GLOBALS['TinyImageOverJavascript'] = \"showProductThumbImage(\".$i.\")\";\n\t\t\t\t\t//$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\n\t\t\t\t\ttry{\n\t\t\t\t\t\t$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\t\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ProductThumbIndex'] = $i;\n\t\t\t\t\tif(GetConfig('ProductImageMode') == 'lightbox') {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImageLightBox(\".$i.\"); return false;\";\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImage('\".GetConfig('ShopPath').\"/productimage.php', \".$GLOBALS['ProductId'].\", \".$i.\");\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['TinyImageWidth'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t$GLOBALS['TinyImageHeight'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t$GLOBALS['TinyImageTopPadding'] = floor(($GLOBALS['ProductMaxTinyHeight'] - $GLOBALS['TinyImageHeight']) / 2);\n\t\t\t\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductTinyImage\");\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\tif(GetConfig('ProductImagesImageZoomEnabled') == 1) {\n\t\t\t\t\t//check if zoom image is large enough for image zoomer\n\t\t\t\t\tif($resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]<ISC_PRODUCT_IMAGE_MIN_ZOOM_WIDTH && $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]<ISC_PRODUCT_IMAGE_MIN_ZOOM_HEIGHT) {\n\t\t\t\t\t\t$zoomImageURL = '';\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['ProdImageZoomJavascript'] .= \"\n\t\t\t\t\t\tZoomImageURLs[\".$i.\"] = \" . isc_json_encode($zoomImageURL) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\t//\t$GLOBALS['ProductZoomImageURL'] = $zoomImageURL;\n\n\t\t\t\t//this image is the product page thumbnail\n\t\t\t\tif($i==0) {\n\t\t\t\t\t//get the thumb image for product page\n\t\t\t\t\t$thumb = $thumbURL;\n\t\t\t\t\t$curZoomImage = $zoomImageURL;\n\t\t\t\t\t$thumbImageDescription = $GLOBALS['ImageDescription'];\n\t\t\t\t\t//if there is no need to loop through images anymore, get out from the loop.\n\t\t\t\t\tif($continue === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['VisibleImageTotal'] = $i+1;\n\n\t\t$GLOBALS['ShowImageZoomer'] = GetConfig('ProductImagesImageZoomEnabled');\n\t\tif ($GLOBALS['ShowImageZoomer']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductImageZoomer'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductImageZoomer\");\n\t\t}\n\t\t$GLOBALS['ZoomImageURL'] = $curZoomImage;\n\n\t\t//if no product thumb images\n\t\tif($thumb == '') {\n\t\t\tif(GetConfig('DefaultProductImage') == 'template') {\n\t\t\t\t$thumb = $GLOBALS['IMG_PATH'].'/ProductDefault.gif';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$thumb = GetConfig('ShopPath').'/'.GetConfig('DefaultProductImage');\n\t\t\t}\n\t\t}\n\n\t\t// need to check for variation images\n\t\t$GLOBALS['ImageDescription'] = $thumbImageDescription;\n\t\t$GLOBALS['ThumbImageURL'] = $thumb;\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('FastProductThumbImage');\n\t\t} else {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ProductThumbImagePlaceholder');\n\t\t}\n\t}", "public function scalePrices($product)\n {\n \n // Get the configurable Id\n $configurableId = $this->getConfigurableId($product);\n \n // Check we actually have a configurable product\n if ($configurableId > 0)\n {\n // Get the configurable product and associated base price\n // Please note the price will not be the actual configurable, price but the cheapest price from all the simple products\n $configurableProduct = Mage::getSingleton(\"catalog/Product\")->load($configurableId);\n $configurablePrice = $configurableProduct->getPrice();\n \n // Get current attribute data\n $configurableAttributesData = $configurableProduct->getTypeInstance()->getConfigurableAttributesAsArray();\n $configurableProductsData = array();\n \n // We need to identify the attribute name and Id\n $prodAttrName = $this->getAttributeName($configurableProduct);\n $prodAttrId = $this->getAttributeId($prodAttrName);\n \n // Get associates simple products\n $associatedProducts = $configurableProduct->getTypeInstance()->getUsedProducts();\n foreach ($associatedProducts as $prodList)\n {\n // For each associated simple product gather the data and calculate the extra fixed price\n $prodId = $prodList->getId();\n $prodAttrLabel = $prodList->getAttributeText($prodAttrName);\n $prodAttrValueIndex = $prodList[$prodAttrName];\n $prodScalePrice = $prodList['price'] - $configurablePrice;\n \n $productData = array(\n 'label' => $prodAttrLabel,\n 'attribute_id' => $prodAttrId,\n 'value_index' => $prodAttrValueIndex,\n 'pricing_value' => $prodScalePrice,\n 'is_percent' => '0'\n );\n $configurableProductsData[$prodId] = $productData;\n $configurableAttributesData[0]['values'][] = $productData;\n }\n \n $configurableProduct->setConfigurableProductsData($configurableProductsData);\n $configurableProduct->setConfigurableAttributesData($configurableAttributesData);\n $configurableProduct->setCanSaveConfigurableAttributes(true);\n Mage::log($configurableProductsData, null, 'configurableProductsData.log', true);\n Mage::log($configurableAttributesData, null, 'configurableAttributesData.log', true);\n \n try\n {\n $configurableProduct->save(); \n }\n catch (Exception $e)\n {\n $this->_debug($e->getMessage());\n }\n \n } \n }", "public function setDimensions($width, $height) {}", "public function getProdLength()\n {\n return $this->prod_length;\n }", "public function setHeightAttribute($height = null)\n\t{\n\t\t$this->attributes['height'] = intval($height);\n\t}", "public function setScaledSize(Size $size)\n {\n $this->options['scaledSize'] = $size;\n }", "public function setPlotHeight($plotHeight = 500) {\n\t\t$this->plotHeight = $plotHeight;\n\t}", "private function _scale()\n\t{\n\t\t//scale down the image by 55%\n\t\t$weaponImageSize = $this->weapon->getImageGeometry();\n\t\t$this->weaponScale['w'] = $weaponImageSize['width'] * 0.55;\n\t\t$this->weaponScale['h'] = $weaponImageSize['height'] * 0.55;\n\n\t\t$this->weapon->scaleImage($this->weaponScale['w'], $this->weaponScale['h']);\n\n\t\t//scale down the image by 30%\n\t\t$emblemImageSize = $this->emblem->getImageGeometry();\n\t\t$this->emblemScale['w'] = $emblemImageSize['width'] * 0.30;\n\t\t$this->emblemScale['h'] = $emblemImageSize['height'] * 0.30;\n\n\t\t$this->emblem->scaleImage($this->emblemScale['w'], $this->emblemScale['h']);\n\n\t\t//scale down the image by 70%\n\t\t$profileImageSize = $this->profile->getImageGeometry();\n\t\t$this->profileScale['w'] = $profileImageSize['width'] * 0.70;\n\t\t$this->profileScale['h'] = $profileImageSize['height'] * 0.70;\n\n\t\t$this->profile->scaleImage($this->profileScale['w'], $this->profileScale['h']);\n\t}", "public function setBarScale($barScale = 'a', $spaceBetweenBars = '4',$spaceBetweenGroups = '8') {\n\t\t$this -> setProperty('chbh', $this->encodeData(array($barScale, $spaceBetweenBars,$spaceBetweenGroups), ','));\n\t}", "function resize_scale($scale){\n\n $width = $this->get_width() * $scale / 100;\n $height = $this->get_height() * $scale / 100;\n $this->resize($width, $height);\n\n return true;\n }", "function setImageHeight($height)\n {\n $this->imageHeight = $height;\n }", "public function setHeight($value)\n {\n $this->height = (int) $value;\n\n if ($this->height < 1) {\n throw new \\RuntimeException('Height must be greater than 0: ' . $this->height);\n }\n }", "public function setProductQuantities(array $variations = []): void\n {\n $xml = '';\n\n foreach ($variations as $id => $quantity) {\n $xml .= '<bundled-product product-id=\"' . Xml::escape($id) . '\">';\n $xml .= '<quantity>' . Xml::escape($quantity) . '</quantity>';\n $xml .= '</bundled-product>' . PHP_EOL;\n }\n\n $this->elements['bundled-products'] = $xml;\n }", "public function setPageHeight($value)\n {\n $this->fields['options']['height'] = $value;\n }", "public function setHeight($height)\n {\n $this->height = (int) $height;\n }", "public function setHeight($height)\r\n {\r\n if (is_numeric($height))\r\n {\r\n $this->height = (int)$height;\r\n }\r\n }", "public function setScale($scale)\n {\n $this->scale = $scale;\n return $this;\n }", "public function r_height($value = null)\n {\n $this->r_height = $value;\n }", "#[@fromDia(xpath= 'dia:attribute[@name=\"height\"]/dia:real/@val', value= 'real')]\n public function setHeight($height) {\n $this->setReal('height', $height);\n }", "public function set_max_font_size($val) \n {\n $this->max_font_size = $val;\n }", "public function setHeight($height)\n {\n $this->height = $height;\n }", "public function setHeight($height)\n {\n $this->height = $height;\n }", "protected function setSizesAttribute(DOMElement $node, SourceSet $sourceSet)\n {\n // Don't overwrite existing attributes\n if ($node->getAttribute('sizes') !== '') {\n return;\n }\n\n $node->setAttribute('sizes', $sourceSet->getSizesAttribute($node->getAttribute('width')));\n }", "public function getScale()\n {\n return $this->scale;\n }", "public function getScale()\n {\n return $this->scale;\n }", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function setThumbnailHeightAlbumItemImageEdit($thumbnailHeightAlbumItemImageEdit)\n {\n if (intval($this->thumbnailHeightAlbumItemImageEdit) !== intval($thumbnailHeightAlbumItemImageEdit)) {\n $this->thumbnailHeightAlbumItemImageEdit = intval($thumbnailHeightAlbumItemImageEdit);\n }\n }", "public function testSetWeightProduct()\n {\n $product = new Product();\n $value = 100;\n $product->setWeight($value);\n $this->assertEquals($value, $product->getWeight());\n }", "public function addPictureScaled($row, $column, $picture_id, $scale) {\n\t}", "public function setThumbsize($value)\n {\n if ($value !== null) {\n $this->_params['thumbsize'] = $value;\n } else {\n unset($this->_params['thumbsize']);\n }\n }", "public function setImageHeight($value)\n\t{\n\t\t$this->imageHeight = $value;\n\t\treturn $this;\n\t}", "public static function setMinSize(int $width, int $height) {}", "public function setHeight($height) {\n $this->h = $height;\n }", "public function setProductNum($value)\n {\n return $this->set(self::product_num, $value);\n }", "public function setSizeAttribute($value)\n {\n $size = self::getSizeLetter($value);\n\n if ($size) {\n $this->attributes['size'] = $size;\n }\n }", "public function height($value) {\n return $this->setProperty('height', $value);\n }", "public function height($value) {\n return $this->setProperty('height', $value);\n }", "public function height($value) {\n return $this->setProperty('height', $value);\n }", "public function height($value) {\n return $this->setProperty('height', $value);\n }", "public function getScale()\n\t{\n\t\treturn $this->scale;\n\t}", "function setBox($height, $width){\n\t\t//Takes the height and width passed and\n\t\t//saves them to the 'ScaleTool' object.\n\n\t\t$this->box_height = $height;\n\t\t$this->box_width = $width;\n\t}", "public function setHeight($height = 40)\n {\n $this->height = $height;\n $this->setAttributes(\"Height\");\n }", "public function setThumbnailHeightAlbumItemImageDisplay($thumbnailHeightAlbumItemImageDisplay)\n {\n if (intval($this->thumbnailHeightAlbumItemImageDisplay) !== intval($thumbnailHeightAlbumItemImageDisplay)) {\n $this->thumbnailHeightAlbumItemImageDisplay = intval($thumbnailHeightAlbumItemImageDisplay);\n }\n }", "public function setSize($size){\n $this->game->setGridSize($size);\n }", "function _set_img_y($size)\r\n {\r\n $this->img_y = $size;\r\n }", "public function setImageHeight(int $iHeight) : void\n {\n $this->iImageHeight = $iHeight;\n }", "function _set_new_y($size)\r\n {\r\n $this->new_y = $size;\r\n }", "function setScaleFactor($scale_factor) {\n if (!(intval($scale_factor) >= 10 && intval($scale_factor) <= 500))\n throw new Error(create_invalid_value_message($scale_factor, \"scale_factor\", \"html-to-pdf\", \"The value must be in a range 10-500.\", \"set_scale_factor\"), 470);\n \n $this->fields['scale_factor'] = $scale_factor;\n return $this;\n }", "public function setCertificateValidityPeriodScale($val)\n {\n $this->_propDict[\"certificateValidityPeriodScale\"] = $val;\n return $this;\n }", "public function setSize($width,$height) \n {\n $this->width = $width;\n $this->height = $height;\n }", "function scaleByFactor($size)\r\n {\r\n $new_x = round($size * $this->img_x, 0);\r\n $new_y = round($size * $this->img_y, 0);\r\n return $this->_resize($new_x, $new_y);\r\n }", "public function setQuality($value) {\n\t\t$this->_quality = $value;\n\t}", "public function setHeight($height) {\n\t\t$height = (int) $height;\n\t\t$this->height = (($height > 0) && ($height <= self::MAX_HEIGHT)) ? $height : self::DEFAULT_HEIGHT;\n\t}", "function setSyncProdWeight()\n {\n }", "public function setDimensions($width, $height) {\n $this->width = $width;\n $this->height = $height;\n }", "public function setOptimalImageWidthHeight() {\n \n $checkError = $this->isError();\n if (!$checkError) {\n \n if (empty($this->__requestedHeight) || empty($this->__requestedWidth)) {\n $this->setError(__d('cloggy','Empty requested width and height.'));\n } else {\n\n /*\n * get optimal size width and height\n */\n switch ($this->__option) {\n\n case 'exact':\n $this->__optimalWidth = $this->__requestedWidth;\n $this->__optimalHeight = $this->__requestedHeight;\n break;\n\n case 'portrait':\n $this->__setOptimalSizeByPortrait();\n break;\n\n case 'landscape':\n $this->__setOptimalSizeByLandscape();\n break;\n\n case 'crop':\n $this->__setOptimalSizeByCrop();\n break;\n\n default:\n $this->__setOptimalSizeByAuto();\n break;\n }\n }\n \n }\n \n }", "public function scale($by) {}", "public function getScaling() {}", "public function setScale(int $scale)\n\t{\n\t\t$this->scale = $scale;\n\t\t\n\t\treturn $this;\n\t}", "public function testSetPriceProduct()\n {\n $product = new Product();\n $value = 10.99;\n $product->setPrice($value);\n $this->assertEquals($value, $product->getPrice());\n }", "public function setCertificateValidityPeriodScale(?CertificateValidityPeriodScale $value): void {\n $this->getBackingStore()->set('certificateValidityPeriodScale', $value);\n }", "private function setChartScale(Dataset $dataset): void\n {\n $this->start = 0;\n $this->unit = 1;\n $boundaries = $dataset->boundaries();\n if (null !== $boundaries) {\n $this->start = $boundaries->getStartDate()->getTimestamp();\n $this->unit = $this->config->width() / $boundaries->getTimestampInterval();\n }\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function setColumnSizes(array $sizes)\n {\n $this->config->setColumnSizes($sizes);\n }", "public function setMag($mag_)\n\t{\n\t\t$s = $mag_ / $this->mag();\n\t\t$this->scale($s);\n\t}", "public function setProductPrice($product_price){\n $this->product_price = $product_price;\n }", "public function setMaxHeight($value)\n {\n $value = (int) round((float) $value);\n $this->maxHeight = $value > 0 ? $value : null;\n\n return $this;\n }", "public function prod($prod);", "public function getScaling()\n {\n return $this->scaling;\n }", "public function getScaling()\n {\n return $this->scaling;\n }", "function setMaxHeight($height) {\n $this->field['max_height'] = (int) $height;\n\n return $this;\n }", "public function setSize($width, $height) {\n $this->width = $width;\n $this->height = $height;\n }", "function setSize($size) {\n\t\t$this->size = $size;\n\t}" ]
[ "0.6962666", "0.6269491", "0.6264537", "0.60659677", "0.55760163", "0.55745816", "0.55745816", "0.53915673", "0.5371651", "0.52839875", "0.52442", "0.523724", "0.5208939", "0.5200681", "0.5200087", "0.5194056", "0.5186911", "0.51770025", "0.5171742", "0.5137935", "0.51199424", "0.51199424", "0.51165545", "0.50888455", "0.50689256", "0.5058892", "0.5057787", "0.5053329", "0.5041763", "0.5039592", "0.5029848", "0.50208193", "0.4970058", "0.49561188", "0.49477884", "0.4945404", "0.48384586", "0.4827146", "0.48242882", "0.48164585", "0.4815728", "0.4806028", "0.47971013", "0.47940543", "0.47901407", "0.4788877", "0.4787878", "0.4781799", "0.4781799", "0.47759396", "0.47710073", "0.47710073", "0.47411475", "0.47397104", "0.4737128", "0.4732033", "0.47296366", "0.47242567", "0.47122565", "0.4700753", "0.46947363", "0.46925384", "0.46865073", "0.46865073", "0.46865073", "0.46865073", "0.46864772", "0.46785188", "0.46690518", "0.4661768", "0.46586716", "0.4653402", "0.46459812", "0.463963", "0.46355286", "0.46098918", "0.46083698", "0.46066007", "0.45889324", "0.4581902", "0.4572989", "0.4571632", "0.45710832", "0.4559225", "0.455799", "0.45561114", "0.45500895", "0.45466176", "0.45453155", "0.45410398", "0.45352265", "0.45284486", "0.45252845", "0.45228428", "0.4522722", "0.4510778", "0.4510778", "0.45087767", "0.4506593", "0.44917443" ]
0.62440705
3
setProdScale() Set the value of [prod_links] column.
public function setProdLinks($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_links !== $v) { $this->prod_links = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_LINKS] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdScale($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_scale !== $v) {\n $this->prod_scale = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_SCALE] = true;\n }\n\n return $this;\n }", "public function setScale($newScale)\n {\n $this->domain->setScale($newScale);\n }", "public function setScaling($scaling = 100) {}", "public function getProdScale()\n {\n return $this->prod_scale;\n }", "public function scalePrices($product)\n {\n \n // Get the configurable Id\n $configurableId = $this->getConfigurableId($product);\n \n // Check we actually have a configurable product\n if ($configurableId > 0)\n {\n // Get the configurable product and associated base price\n // Please note the price will not be the actual configurable, price but the cheapest price from all the simple products\n $configurableProduct = Mage::getSingleton(\"catalog/Product\")->load($configurableId);\n $configurablePrice = $configurableProduct->getPrice();\n \n // Get current attribute data\n $configurableAttributesData = $configurableProduct->getTypeInstance()->getConfigurableAttributesAsArray();\n $configurableProductsData = array();\n \n // We need to identify the attribute name and Id\n $prodAttrName = $this->getAttributeName($configurableProduct);\n $prodAttrId = $this->getAttributeId($prodAttrName);\n \n // Get associates simple products\n $associatedProducts = $configurableProduct->getTypeInstance()->getUsedProducts();\n foreach ($associatedProducts as $prodList)\n {\n // For each associated simple product gather the data and calculate the extra fixed price\n $prodId = $prodList->getId();\n $prodAttrLabel = $prodList->getAttributeText($prodAttrName);\n $prodAttrValueIndex = $prodList[$prodAttrName];\n $prodScalePrice = $prodList['price'] - $configurablePrice;\n \n $productData = array(\n 'label' => $prodAttrLabel,\n 'attribute_id' => $prodAttrId,\n 'value_index' => $prodAttrValueIndex,\n 'pricing_value' => $prodScalePrice,\n 'is_percent' => '0'\n );\n $configurableProductsData[$prodId] = $productData;\n $configurableAttributesData[0]['values'][] = $productData;\n }\n \n $configurableProduct->setConfigurableProductsData($configurableProductsData);\n $configurableProduct->setConfigurableAttributesData($configurableAttributesData);\n $configurableProduct->setCanSaveConfigurableAttributes(true);\n Mage::log($configurableProductsData, null, 'configurableProductsData.log', true);\n Mage::log($configurableAttributesData, null, 'configurableAttributesData.log', true);\n \n try\n {\n $configurableProduct->save(); \n }\n catch (Exception $e)\n {\n $this->_debug($e->getMessage());\n }\n \n } \n }", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "public function setCertificateValidityPeriodScale(?CertificateValidityPeriodScale $value): void {\n $this->getBackingStore()->set('certificateValidityPeriodScale', $value);\n }", "public function setScale($var)\n {\n GPBUtil::checkDouble($var);\n $this->scale = $var;\n\n return $this;\n }", "public function setScale($var)\n {\n GPBUtil::checkInt32($var);\n $this->scale = $var;\n\n return $this;\n }", "public function setScaling($scaleing) {}", "public function setScale($scale)\n {\n $this->scale = $scale;\n return $this;\n }", "public function set_packlink_price( $packlink_price ) {\n\t\t$this->packlink_price = $packlink_price;\n\t}", "private function SetProductImages()\n\t{\n\n\t\t$GLOBALS['ProductThumbWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\t\t$GLOBALS['ProductThumbHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\n\t\t$GLOBALS['ProductMaxTinyWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\t\t$GLOBALS['ProductMaxTinyHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\n\t\t$GLOBALS['ProductTinyBoxWidth'] = $GLOBALS['ProductMaxTinyWidth']+4;\n\t\t$GLOBALS['ProductTinyBoxHeight'] = $GLOBALS['ProductMaxTinyHeight']+4;\n\n\n\t\t$GLOBALS['ProductMaxZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductMaxZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\t\t$GLOBALS['ProductZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\n\t\t$productImages = ISC_PRODUCT_IMAGE::getProductImagesFromDatabase($GLOBALS['ProductId'], null, false, true);\n\t\t$GLOBALS['NumProdImages'] = count($productImages);\n\n\t\t$GLOBALS['CurrentProdThumbImage'] = 0;\n\t\t$thumb = '';\n\t\t$curZoomImage = '';\n\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] = '';\n\t\t$GLOBALS['HideImageCarousel'] = 'display:none;';\n\t\t$GLOBALS['HideMorePicturesLink'] = 'display:none;';\n\t\t$thumbImageDescription = '';\n\t\t$i = 0;\n\n\t\t$GLOBALS['ProdImageJavascript'] = '';\n\t\t$GLOBALS['ProdImageZoomJavascript'] = '';\n\t\t$GLOBALS['LightBoxImageList'] = '';\n\t\t$GLOBALS['ZoomImageMaxWidth'] = 0;\n\t\t$GLOBALS['ZoomImageMaxHeight'] = 0;\n\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = 0;\n\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = 'display: none';\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t//Show image carousel\n\n\t\t\tif ($GLOBALS['NumProdImages'] == 2) {\n\t\t\t\t$var = \"MorePictures1\";\n\t\t\t} else if ($GLOBALS['NumProdImages'] == 1) {\n\t\t\t\t$var = \"SeeLargerImage\";\n\t\t\t} else {\n\t\t\t\t$var = \"MorePictures2\";\n\t\t\t}\n\n\t\t\t$GLOBALS['SeeMorePictures'] = sprintf(GetLang($var), count($productImages) - 1);\n\t\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = '';\n\n\t\t\tif (GetConfig('ProductImagesTinyThumbnailsEnabled')) {\n\t\t\t\t$GLOBALS['HideImageCarousel'] = '';\n\t\t\t} else {\n\t\t\t\t$GLOBALS['HideMorePicturesLink'] = '';\n\t\t\t}\n\n\t\t\t$continue=false;\n\n\t\t\tforeach ($productImages as $productImage) {\n\n\t\t\t\t$thumbURL = '';\n\t\t\t\t$zoomImageURL = '';\n\n\t\t\t\ttry{\n\t\t\t\t\t$thumbURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_STANDARD, true);\n\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\ttry{\n\t\t\t\t\t$zoomImageURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_ZOOM, true);\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\tif($thumbURL == '' && $zoomImageURL == '') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$resizedZoomDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t\t\t$resizedTinyDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\t\t\t\t//calculate the max zoom image width and height\n\t\t\t\tif ($GLOBALS['ZoomImageMaxWidth'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]) {\n\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t//the height of the image has got the max width needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\tif ($GLOBALS['ZoomImageMaxHeight'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]) {\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t//the width of the image has got the max height needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeightWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['ImageDescription'] = isc_html_escape($productImage->getDescription());\n\t\t\t\tif($GLOBALS['ImageDescription'] == '') {\n\t\t\t\t\t$GLOBALS['ImageDescription'] = GetLang(\"Image\") . \" \" . ($i + 1);\n\t\t\t\t}\n\n\t\t\t\t//show image carousel\n\t\t\t\tif(GetConfig('ProductImagesTinyThumbnailsEnabled')==1) {\n\n\t\t\t\t\t$GLOBALS['ProdImageJavascript'] .= \"\n\t\t\t\t\t\tThumbURLs[\".$i.\"] = \" . isc_json_encode($thumbURL) . \";\n\t\t\t\t\t\tProductImageDescriptions[\".$i.\"] = \" . isc_json_encode($GLOBALS['ImageDescription']) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$GLOBALS['TinyImageOverJavascript'] = \"showProductThumbImage(\".$i.\")\";\n\t\t\t\t\t//$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\n\t\t\t\t\ttry{\n\t\t\t\t\t\t$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\t\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ProductThumbIndex'] = $i;\n\t\t\t\t\tif(GetConfig('ProductImageMode') == 'lightbox') {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImageLightBox(\".$i.\"); return false;\";\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImage('\".GetConfig('ShopPath').\"/productimage.php', \".$GLOBALS['ProductId'].\", \".$i.\");\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['TinyImageWidth'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t$GLOBALS['TinyImageHeight'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t$GLOBALS['TinyImageTopPadding'] = floor(($GLOBALS['ProductMaxTinyHeight'] - $GLOBALS['TinyImageHeight']) / 2);\n\t\t\t\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductTinyImage\");\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\tif(GetConfig('ProductImagesImageZoomEnabled') == 1) {\n\t\t\t\t\t//check if zoom image is large enough for image zoomer\n\t\t\t\t\tif($resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]<ISC_PRODUCT_IMAGE_MIN_ZOOM_WIDTH && $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]<ISC_PRODUCT_IMAGE_MIN_ZOOM_HEIGHT) {\n\t\t\t\t\t\t$zoomImageURL = '';\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['ProdImageZoomJavascript'] .= \"\n\t\t\t\t\t\tZoomImageURLs[\".$i.\"] = \" . isc_json_encode($zoomImageURL) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\t//\t$GLOBALS['ProductZoomImageURL'] = $zoomImageURL;\n\n\t\t\t\t//this image is the product page thumbnail\n\t\t\t\tif($i==0) {\n\t\t\t\t\t//get the thumb image for product page\n\t\t\t\t\t$thumb = $thumbURL;\n\t\t\t\t\t$curZoomImage = $zoomImageURL;\n\t\t\t\t\t$thumbImageDescription = $GLOBALS['ImageDescription'];\n\t\t\t\t\t//if there is no need to loop through images anymore, get out from the loop.\n\t\t\t\t\tif($continue === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['VisibleImageTotal'] = $i+1;\n\n\t\t$GLOBALS['ShowImageZoomer'] = GetConfig('ProductImagesImageZoomEnabled');\n\t\tif ($GLOBALS['ShowImageZoomer']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductImageZoomer'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductImageZoomer\");\n\t\t}\n\t\t$GLOBALS['ZoomImageURL'] = $curZoomImage;\n\n\t\t//if no product thumb images\n\t\tif($thumb == '') {\n\t\t\tif(GetConfig('DefaultProductImage') == 'template') {\n\t\t\t\t$thumb = $GLOBALS['IMG_PATH'].'/ProductDefault.gif';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$thumb = GetConfig('ShopPath').'/'.GetConfig('DefaultProductImage');\n\t\t\t}\n\t\t}\n\n\t\t// need to check for variation images\n\t\t$GLOBALS['ImageDescription'] = $thumbImageDescription;\n\t\t$GLOBALS['ThumbImageURL'] = $thumb;\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('FastProductThumbImage');\n\t\t} else {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ProductThumbImagePlaceholder');\n\t\t}\n\t}", "public function scale() { }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function setScale(int $scale)\n\t{\n\t\t$this->scale = $scale;\n\t\t\n\t\treturn $this;\n\t}", "public function setPageScaleFactor(ContextInterface $ctx, SetPageScaleFactorRequest $request): void;", "function setSyncProdWeight()\n {\n }", "public function setPriceAttribute($value)\n {\n $this->attributes['price'] = $value * 100;\n }", "function scale($scale) {\r\n\t\t$width = $this->getWidth() * $scale/100;\r\n\t\t$height = $this->getheight() * $scale/100;\r\n\t\t$this->resize($width,$height);\r\n\t}", "public function setProductPrice($product_price){\n $this->product_price = $product_price;\n }", "public function SetScale($aAxisType, $aYMin = 1, $aYMax = 1, $aXMin = 1, $aXMax = 1)\n\t{\n\t\tUtil\\JpGraphError::RaiseL(6005);\n\t\t//(\"SetScale() is not meaningfull with Gantt charts.\");\n\t}", "public function setPriceAttribute($value)\n {\n $this->attributes['price'] = $value*100;\n }", "public function setBarScale($barScale = 'a', $spaceBetweenBars = '4',$spaceBetweenGroups = '8') {\n\t\t$this -> setProperty('chbh', $this->encodeData(array($barScale, $spaceBetweenBars,$spaceBetweenGroups), ','));\n\t}", "public function scale($scale)\n {\n $this->attachmentId = $this->attachmentId.'_'.$scale;\n\n return $this;\n }", "public function setPriceAttribute($value) {\n\t\t$this->attributes['price'] = round(floatval($value), 2);\n\t}", "public function setSalePriceAttribute($value)\n {\n $this->attributes['sale_price'] = Utils::numbersOnly($value);\n }", "function setScaleFactor($scale_factor) {\n if (!(intval($scale_factor) >= 10 && intval($scale_factor) <= 500))\n throw new Error(create_invalid_value_message($scale_factor, \"scale_factor\", \"html-to-pdf\", \"The value must be in a range 10-500.\", \"set_scale_factor\"), 470);\n \n $this->fields['scale_factor'] = $scale_factor;\n return $this;\n }", "private function migrateLinksPerIndex() {\n\t\tif ( ! empty( $this->oldOptions['modules']['aiosp_sitemap_options']['aiosp_sitemap_max_posts'] ) ) {\n\t\t\t$value = intval( $this->oldOptions['modules']['aiosp_sitemap_options']['aiosp_sitemap_max_posts'] );\n\t\t\tif ( ! $value ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$value = $value > 50000 ? 50000 : $value;\n\t\t\taioseo()->options->sitemap->general->linksPerIndex = $value;\n\t\t}\n\t}", "public function setPriceAttribute($value)\n {\n $this->attributes['price'] = Utils::numbersOnly($value);\n }", "public function scale($scaleX, $scaleY) {}", "public function scale($scaleX, $scaleY) {}", "public function scale($scaleX, $scaleY) {}", "public function setProductNum($value)\n {\n return $this->set(self::product_num, $value);\n }", "public function setProducts_options( $products_options ) {\n\t\t$this->products_options = $products_options;\n\t}", "function resize_scale($scale){\n\n $width = $this->get_width() * $scale / 100;\n $height = $this->get_height() * $scale / 100;\n $this->resize($width, $height);\n\n return true;\n }", "public function setCertificateValidityPeriodScale($val)\n {\n $this->_propDict[\"certificateValidityPeriodScale\"] = $val;\n return $this;\n }", "public function setSlugAttribute($value)\n\t{\n\t\t$this->attributes['slug'] = str_slug($value);\n\t}", "public function setSlugAttribute($value) {\n $this->attributes['slug'] = Str::slug($this->titre);\n }", "private function setChartScale(Dataset $dataset): void\n {\n $this->start = 0;\n $this->unit = 1;\n $boundaries = $dataset->boundaries();\n if (null !== $boundaries) {\n $this->start = $boundaries->getStartDate()->getTimestamp();\n $this->unit = $this->config->width() / $boundaries->getTimestampInterval();\n }\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = str_slug($value);\n }", "public function getProdLinks()\n {\n return $this->prod_links;\n }", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = Str::slug($value, '-');\n }", "function setLinks($link) \n {\n $this->links = $link;\n }", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = Str::slug($value); \n }", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = Str::slug($value); \n }", "public function setProduct(Product $product);", "function setHref($a_href)\n\t{\n\t\t$this->xl_href = $a_href;\n\t}", "public function setPrice(float $price) : void\n {\n $this->set('price', $price, 'products');\n }", "public function addPictureScaled($row, $column, $picture_id, $scale) {\n\t}", "public function SetNumPages()\n\t\t{\n\t\t\t$this->_pricenumpages = ceil($this->GetNumProducts() / GetConfig('CategoryProductsPerPage'));\n\t\t}", "public function setPrintScaling($name) {}", "public function setMag($mag_)\n\t{\n\t\t$s = $mag_ / $this->mag();\n\t\t$this->scale($s);\n\t}", "public function scale($scale = 1) {\n\t\tif(stristr($scale, '%') !== false) {\n\t\t\t$scale = (float) preg_replace('/[^0-9\\.]/', '', $scale);\n\t\t\t$scale = $scale/100;\n\t\t}\n\t\t$scale = (float) $scale;\n\t\t$new_width = ceil($this->width * $scale);\n\t\t$new_height = ceil($this->height * $scale);\n\n\t\t$working_image = imagecreatetruecolor($new_width, $new_height);\n\n\t\tif(imagecopyresampled($working_image, $this->image, 0, 0, 0, 0, $new_width, $new_height, $this->width, $this->height)) {\n\t\t\t$this->image = $working_image;\n\t\t\t$this->width = $new_width;\n\t\t\t$this->height = $new_height;\n\t\t\treturn true;\n\t\t} else {\n\t\t\ttrigger_error('Resize failed.', E_USER_WARNING);\n\t\t\treturn false;\n\t\t}\n\t}", "public function setModularScale(string $id, string $scale, float $modifier = null)\n {\n $scale = (float) $scale;\n $steps = array(6, 5, 4, 3, 2, 1, 0);\n for ($i = 1; $i <= 6; $i++) {\n $value = self::modularScale($steps[$i], 16, $scale, true);\n $value = $modifier != null ? $value * $modifier : $value;\n $this->transport->setStyle($id, '{font-size:' . $value . 'em;}', 'h' . $i);\n }\n }", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function testSetPriceProduct()\n {\n $product = new Product();\n $value = 10.99;\n $product->setPrice($value);\n $this->assertEquals($value, $product->getPrice());\n }", "public function setSafeUri(){\n \t$sql=\"SELECT * FROM `topic` WHERE `type_topic` = 'm' limit 10000\";\n\t $res=$this->config_Class->query($sql,array());\n\t foreach($res as $key=>$value){\n\t\t if(is_int($key)){\n\t\t\t \t$sql=\"update topic set url_topic=:url where id_topic=:id\";\n\t\t\t $url=$this->config_Class->safeUri($value[\"name_topic\"]);\n\t\t\t $this->config_Class->query($sql,array(\":id\"=>$value[\"id_topic\"],\":url\"=>$url));\n\t\t }\n\t }\n\t \n }", "public function setColumnLink($link){\n $this->addVar('COL_LINK', $link);\n }", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function setScaling($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\AIPlatform\\V1\\Featurestore\\OnlineServingConfig\\Scaling::class);\n $this->scaling = $var;\n\n return $this;\n }", "public function setThumbnailsAttribute($value)\n {\n $this->attributes['thumbnails'] = ( $value ) ? json_encode($value) : null;\n }", "public function setDefaultPermalinks()\n {\n $permalinks = get_option('woocommerce_permalinks');\n\n $permalinks['category_base'] = $permalinks['category_base'] ? : self::PRODUCT_CATEGORY_BASE;\n $permalinks['tag_base'] = $permalinks['tag_base'] ? : self::PRODUCT_TAG_BASE;\n $permalinks['product_base'] = $permalinks['product_base'] ? : self::PRODUCT_BASE;\n\n update_option('woocommerce_permalinks', $permalinks);\n }", "private function setCustomProductLinks(ProductInterface $product, array $productData): void\n {\n $productLinks = [];\n foreach ($productData as $linkType => $links) {\n foreach ($links as $data) {\n /** @var ProductLinkInterface|Link $productLink */\n $productLink = $this->productLinkInterfaceFactory->create();\n $productLink->setSku('simple');\n $productLink->setLinkedProductSku($data['sku']);\n if (isset($data['position'])) {\n $productLink->setPosition($data['position']);\n }\n $productLink->setLinkType($linkType);\n $productLinks[] = $productLink;\n }\n }\n $product->setProductLinks($productLinks);\n }", "protected function setSizesAttribute(DOMElement $node, SourceSet $sourceSet)\n {\n // Don't overwrite existing attributes\n if ($node->getAttribute('sizes') !== '') {\n return;\n }\n\n $node->setAttribute('sizes', $sourceSet->getSizesAttribute($node->getAttribute('width')));\n }", "public function setUrlAttribute($value)\n {\n \tif ( empty($value) ) {\n \t\t$this->attributes['url'] = NULL;\n \t} else {\n \t$this->attributes['url'] = $value;\n \t}\n }", "public function getScales() {\n return $this->scales;\n }", "public function setThumbnailSize($thumbnailSize) {\n\t\t$this->setQueryParam ( self::THUMB_SIZE_PARAM, $thumbnailSize );\n\t}", "protected function _saveProducts()\n {\n $priceIsGlobal = $this->_catalogData->isPriceGlobal();\n $productLimit = null;\n $productsQty = null;\n $entityLinkField = $this->getProductEntityLinkField();\n\n while ($bunch = $this->_dataSourceModel->getNextBunch()) {\n $entityRowsIn = [];\n $entityRowsUp = [];\n $attributes = [];\n $this->websitesCache = [];\n $this->categoriesCache = [];\n $tierPrices = [];\n $mediaGallery = [];\n $labelsForUpdate = [];\n $imagesForChangeVisibility = [];\n $uploadedImages = [];\n $previousType = null;\n $prevAttributeSet = null;\n $existingImages = $this->getExistingImages($bunch);\n\n foreach ($bunch as $rowNum => $rowData) {\n // reset category processor's failed categories array\n $this->categoryProcessor->clearFailedCategories();\n\n if (!$this->validateRow($rowData, $rowNum)) {\n continue;\n }\n if ($this->getErrorAggregator()->hasToBeTerminated()) {\n $this->getErrorAggregator()->addRowToSkip($rowNum);\n continue;\n }\n $rowScope = $this->getRowScope($rowData);\n\n $rowData[self::URL_KEY] = $this->getUrlKey($rowData);\n\n $rowSku = $rowData[self::COL_SKU];\n\n if (null === $rowSku) {\n $this->getErrorAggregator()->addRowToSkip($rowNum);\n continue;\n } elseif (self::SCOPE_STORE == $rowScope) {\n // set necessary data from SCOPE_DEFAULT row\n $rowData[self::COL_TYPE] = $this->skuProcessor->getNewSku($rowSku)['type_id'];\n $rowData['attribute_set_id'] = $this->skuProcessor->getNewSku($rowSku)['attr_set_id'];\n $rowData[self::COL_ATTR_SET] = $this->skuProcessor->getNewSku($rowSku)['attr_set_code'];\n }\n\n // 1. Entity phase\n if ($this->isSkuExist($rowSku)) {\n // existing row\n if (isset($rowData['attribute_set_code'])) {\n $attributeSetId = $this->catalogConfig->getAttributeSetId(\n $this->getEntityTypeId(),\n $rowData['attribute_set_code']\n );\n\n // wrong attribute_set_code was received\n if (!$attributeSetId) {\n throw new LocalizedException(\n __(\n 'Wrong attribute set code \"%1\", please correct it and try again.',\n $rowData['attribute_set_code']\n )\n );\n }\n } else {\n $attributeSetId = $this->skuProcessor->getNewSku($rowSku)['attr_set_id'];\n }\n\n $entityRowsUp[] = [\n 'updated_at' => (new \\DateTime())->format(DateTime::DATETIME_PHP_FORMAT),\n 'attribute_set_id' => $attributeSetId,\n $entityLinkField => $this->getExistingSku($rowSku)[$entityLinkField]\n ];\n } else {\n if (!$productLimit || $productsQty < $productLimit) {\n $entityRowsIn[strtolower($rowSku)] = [\n 'attribute_set_id' => $this->skuProcessor->getNewSku($rowSku)['attr_set_id'],\n 'type_id' => $this->skuProcessor->getNewSku($rowSku)['type_id'],\n 'sku' => $rowSku,\n 'has_options' => isset($rowData['has_options']) ? $rowData['has_options'] : 0,\n 'created_at' => (new \\DateTime())->format(DateTime::DATETIME_PHP_FORMAT),\n 'updated_at' => (new \\DateTime())->format(DateTime::DATETIME_PHP_FORMAT),\n ];\n $productsQty++;\n } else {\n $rowSku = null;\n // sign for child rows to be skipped\n $this->getErrorAggregator()->addRowToSkip($rowNum);\n continue;\n }\n }\n\n if (!array_key_exists($rowSku, $this->websitesCache)) {\n $this->websitesCache[$rowSku] = [];\n }\n // 2. Product-to-Website phase\n if (!empty($rowData[self::COL_PRODUCT_WEBSITES])) {\n $websiteCodes = explode($this->getMultipleValueSeparator(), $rowData[self::COL_PRODUCT_WEBSITES]);\n foreach ($websiteCodes as $websiteCode) {\n $websiteId = $this->storeResolver->getWebsiteCodeToId($websiteCode);\n $this->websitesCache[$rowSku][$websiteId] = true;\n }\n }\n\n // 3. Categories phase\n if (!array_key_exists($rowSku, $this->categoriesCache)) {\n $this->categoriesCache[$rowSku] = [];\n }\n $rowData['rowNum'] = $rowNum;\n $categoryIds = $this->processRowCategories($rowData);\n foreach ($categoryIds as $id) {\n $this->categoriesCache[$rowSku][$id] = true;\n }\n unset($rowData['rowNum']);\n\n // 4.1. Tier prices phase\n if (!empty($rowData['_tier_price_website'])) {\n $tierPrices[$rowSku][] = [\n 'all_groups' => $rowData['_tier_price_customer_group'] == self::VALUE_ALL,\n 'customer_group_id' => $rowData['_tier_price_customer_group'] ==\n self::VALUE_ALL ? 0 : $rowData['_tier_price_customer_group'],\n 'qty' => $rowData['_tier_price_qty'],\n 'value' => $rowData['_tier_price_price'],\n 'website_id' => self::VALUE_ALL == $rowData['_tier_price_website'] ||\n $priceIsGlobal ? 0 : $this->storeResolver->getWebsiteCodeToId($rowData['_tier_price_website']),\n ];\n }\n\n if (!$this->validateRow($rowData, $rowNum)) {\n continue;\n }\n\n // 5. Media gallery phase\n list($rowImages, $rowLabels) = $this->getImagesFromRow($rowData);\n $storeId = !empty($rowData[self::COL_STORE])\n ? $this->getStoreIdByCode($rowData[self::COL_STORE])\n : Store::DEFAULT_STORE_ID;\n $imageHiddenStates = $this->getImagesHiddenStates($rowData);\n foreach (array_keys($imageHiddenStates) as $image) {\n if (array_key_exists($rowSku, $existingImages)\n && array_key_exists($image, $existingImages[$rowSku])\n ) {\n $rowImages[self::COL_MEDIA_IMAGE][] = $image;\n $uploadedImages[$image] = $image;\n }\n\n if (empty($rowImages)) {\n $rowImages[self::COL_MEDIA_IMAGE][] = $image;\n }\n }\n\n $rowData[self::COL_MEDIA_IMAGE] = [];\n\n /*\n * Note: to avoid problems with undefined sorting, the value of media gallery items positions\n * must be unique in scope of one product.\n */\n $position = 0;\n foreach ($rowImages as $column => $columnImages) {\n foreach ($columnImages as $columnImageKey => $columnImage) {\n if (!isset($uploadedImages[$columnImage])) {\n $uploadedFile = $this->uploadMediaFiles($columnImage);\n $uploadedFile = $uploadedFile ?: $this->getSystemFile($columnImage);\n if ($uploadedFile) {\n $uploadedImages[$columnImage] = $uploadedFile;\n } else {\n $this->addRowError(\n ValidatorInterface::ERROR_MEDIA_URL_NOT_ACCESSIBLE,\n $rowNum,\n null,\n null,\n ProcessingError::ERROR_LEVEL_NOT_CRITICAL\n );\n }\n } else {\n $uploadedFile = $uploadedImages[$columnImage];\n }\n\n if ($uploadedFile && $column !== self::COL_MEDIA_IMAGE) {\n $rowData[$column] = $uploadedFile;\n }\n\n if ($uploadedFile && !isset($mediaGallery[$storeId][$rowSku][$uploadedFile])) {\n if (isset($existingImages[$rowSku][$uploadedFile])) {\n $currentFileData = $existingImages[$rowSku][$uploadedFile];\n if (isset($rowLabels[$column][$columnImageKey])\n && $rowLabels[$column][$columnImageKey] !=\n $currentFileData['label']\n ) {\n $labelsForUpdate[] = [\n 'label' => $rowLabels[$column][$columnImageKey],\n 'imageData' => $currentFileData\n ];\n }\n\n if (array_key_exists($uploadedFile, $imageHiddenStates)\n && $currentFileData['disabled'] != $imageHiddenStates[$uploadedFile]\n ) {\n $imagesForChangeVisibility[] = [\n 'disabled' => $imageHiddenStates[$uploadedFile],\n 'imageData' => $currentFileData\n ];\n }\n } else {\n if ($column == self::COL_MEDIA_IMAGE) {\n $rowData[$column][] = $uploadedFile;\n }\n $mediaGallery[$storeId][$rowSku][$uploadedFile] = [\n 'attribute_id' => $this->getMediaGalleryAttributeId(),\n 'label' => isset($rowLabels[$column][$columnImageKey])\n ? $rowLabels[$column][$columnImageKey]\n : '',\n 'position' => ++$position,\n 'disabled' => isset($imageHiddenStates[$columnImage])\n ? $imageHiddenStates[$columnImage] : '0',\n 'value' => $uploadedFile,\n ];\n }\n }\n }\n }\n\n // 6. Attributes phase\n $rowStore = (self::SCOPE_STORE == $rowScope)\n ? $this->storeResolver->getStoreCodeToId($rowData[self::COL_STORE])\n : 0;\n $productType = isset($rowData[self::COL_TYPE]) ? $rowData[self::COL_TYPE] : null;\n if ($productType !== null) {\n $previousType = $productType;\n }\n if (isset($rowData[self::COL_ATTR_SET])) {\n $prevAttributeSet = $rowData[self::COL_ATTR_SET];\n }\n if (self::SCOPE_NULL == $rowScope) {\n // for multiselect attributes only\n if ($prevAttributeSet !== null) {\n $rowData[self::COL_ATTR_SET] = $prevAttributeSet;\n }\n if ($productType === null && $previousType !== null) {\n $productType = $previousType;\n }\n if ($productType === null) {\n continue;\n }\n }\n\n $productTypeModel = $this->_productTypeModels[$productType];\n if (!empty($rowData['tax_class_name'])) {\n $rowData['tax_class_id'] =\n $this->taxClassProcessor->upsertTaxClass($rowData['tax_class_name'], $productTypeModel);\n }\n\n if ($this->getBehavior() == Import::BEHAVIOR_APPEND ||\n empty($rowData[self::COL_SKU])\n ) {\n $rowData = $productTypeModel->clearEmptyData($rowData);\n }\n\n $rowData = $productTypeModel->prepareAttributesWithDefaultValueForSave(\n $rowData,\n !$this->isSkuExist($rowSku)\n );\n $product = $this->_proxyProdFactory->create(['data' => $rowData]);\n\n foreach ($rowData as $attrCode => $attrValue) {\n $attribute = $this->retrieveAttributeByCode($attrCode);\n\n if ('multiselect' != $attribute->getFrontendInput() && self::SCOPE_NULL == $rowScope) {\n // skip attribute processing for SCOPE_NULL rows\n continue;\n }\n $attrId = $attribute->getId();\n $backModel = $attribute->getBackendModel();\n $attrTable = $attribute->getBackend()->getTable();\n $storeIds = [0];\n\n if ('datetime' == $attribute->getBackendType()\n && (\n in_array($attribute->getAttributeCode(), $this->dateAttrCodes)\n || $attribute->getIsUserDefined()\n )\n ) {\n $attrValue = $this->dateTime->formatDate($attrValue, false);\n } elseif ('datetime' == $attribute->getBackendType() && strtotime($attrValue)) {\n $attrValue = gmdate(\n 'Y-m-d H:i:s',\n $this->_localeDate->date($attrValue)->getTimestamp()\n );\n } elseif ($backModel) {\n $attribute->getBackend()->beforeSave($product);\n $attrValue = $product->getData($attribute->getAttributeCode());\n }\n if (self::SCOPE_STORE == $rowScope) {\n if (self::SCOPE_WEBSITE == $attribute->getIsGlobal()) {\n // check website defaults already set\n if (!isset($attributes[$attrTable][$rowSku][$attrId][$rowStore])) {\n $storeIds = $this->storeResolver->getStoreIdToWebsiteStoreIds($rowStore);\n }\n } elseif (self::SCOPE_STORE == $attribute->getIsGlobal()) {\n $storeIds = [$rowStore];\n }\n if (!$this->isSkuExist($rowSku)) {\n $storeIds[] = 0;\n }\n }\n foreach ($storeIds as $storeId) {\n if (!isset($attributes[$attrTable][$rowSku][$attrId][$storeId])) {\n $attributes[$attrTable][$rowSku][$attrId][$storeId] = $attrValue;\n }\n }\n // restore 'backend_model' to avoid 'default' setting\n $attribute->setBackendModel($backModel);\n }\n }\n\n foreach ($bunch as $rowNum => $rowData) {\n if ($this->getErrorAggregator()->isRowInvalid($rowNum)) {\n unset($bunch[$rowNum]);\n }\n }\n\n $this->saveProductEntity(\n $entityRowsIn,\n $entityRowsUp\n )->_saveProductWebsites(\n $this->websitesCache\n )->_saveProductCategories(\n $this->categoriesCache\n )->_saveProductTierPrices(\n $tierPrices\n )->_saveMediaGallery(\n $mediaGallery\n )->_saveProductAttributes(\n $attributes\n )->updateMediaGalleryVisibility(\n $imagesForChangeVisibility\n )->updateMediaGalleryLabels(\n $labelsForUpdate\n );\n\n $this->_eventManager->dispatch(\n 'catalog_product_import_bunch_save_after',\n ['adapter' => $this, 'bunch' => $bunch]\n );\n }\n\n return $this;\n }", "public function testSetWidthProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setWidth($value);\n $this->assertEquals($value, $product->getWidth());\n }", "public function setUrlAttribute($value)\n\t{\n\t\t$this->attributes['url'] = strtolower($value);\n\t\tif ($value != '' && substr($value, 0, 4) != 'http') {\n\t\t\t$this->attributes['url'] = 'http://'.$value;\n\t\t}\n\t}", "public function setPoolRelease($release)\n\t{\n\t\t$this->setProperty('release', $release);\n\t}", "public function setScaledSize(Size $size)\n {\n $this->options['scaledSize'] = $size;\n }", "public function scale()\n {\n return $this->belongsTo(Scale::class);\n }", "public function setZoom($value) {\n\t}", "function load_scale() {\n if (!empty($this->scaleid)) {\n $this->scale = grade_scale::fetch('id', $this->scaleid);\n $this->scale->load_items();\n }\n return $this->scale;\n }", "public function setZoomPrint($value) {\n\t}", "function setSlugAttribute($slug)\n {\n $this->attributes['slug'] = $this->makeSlugUnique($slug);\n }", "public function setProdLength($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_length !== $v) {\n $this->prod_length = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_LENGTH] = true;\n }\n\n return $this;\n }", "public function setCertificateValidityPeriodUnits(?CertificateValidityPeriodScale $value): void {\n $this->getBackingStore()->set('certificateValidityPeriodUnits', $value);\n }", "public function getScale()\n {\n return $this->scale;\n }", "public function getScale()\n {\n return $this->scale;\n }", "public function setSize($newSize)\n {\n $this->domain->setSize($newSize);\n }", "public function SetPortLink(SetPortLink $parameters)\n {\n return $this->__soapCall('SetPortLink', array($parameters));\n }", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = trim($value, '/');\n }", "public function setConnection($link)\n {\n // TODO: Implement setConnection() method.\n }", "public function getScale()\n\t{\n\t\treturn $this->scale;\n\t}", "public function setSlugAttribute($value)\n {\n $slug = str_slug($value);\n //$original = $slug;\n\n if (static::whereSlug($slug)->exists()) {\n $slug = \"{$slug}-\".$this->id;\n }\n\n $this->attributes['slug'] = $slug;\n }", "function setPrice($new_price)\n {\n $this->price = $new_price;\n }", "public function setProducts(array $products = []): void\n {\n $xml = '';\n\n foreach ($products as $id) {\n $xml .= '<product-set-product product-id=\"' . Xml::escape($id) . '\" />' . PHP_EOL;\n }\n\n $this->elements['product-set-products'] = $xml;\n }", "public function setLogarithmicBase($value) {\r\n $this->logarithmicBase = $this->setDoubleProperty($this->logarithmicBase, $value);\r\n }", "public function setUrls(?array $value): void {\n $this->getBackingStore()->set('urls', $value);\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setProdId($value);\n break;\n case 1:\n $this->setProdPriceId($value);\n break;\n case 2:\n $this->setProdName($value);\n break;\n case 3:\n $this->setProdAlt1($value);\n break;\n case 4:\n $this->setProdAlt2($value);\n break;\n case 5:\n $this->setProdAlt3($value);\n break;\n case 6:\n $this->setProdAlt4($value);\n break;\n case 7:\n $this->setProdCode($value);\n break;\n case 8:\n $this->setProdCategory($value);\n break;\n case 9:\n $this->setProdCategoryShipping($value);\n break;\n case 10:\n $this->setProdWriteup($value);\n break;\n case 11:\n $this->setProdLength($value);\n break;\n case 12:\n $this->setProdWingspan($value);\n break;\n case 13:\n $this->setProdHeight($value);\n break;\n case 14:\n $this->setProdScale($value);\n break;\n case 15:\n $this->setProdLinks($value);\n break;\n case 16:\n $this->setProdLinkdescription($value);\n break;\n case 17:\n $this->setProdFront($value);\n break;\n case 18:\n $this->setProdKeywords($value);\n break;\n case 19:\n $this->setProdKeywordsWriteup($value);\n break;\n case 20:\n $this->setProdTitle($value);\n break;\n case 21:\n $this->setProdDescription($value);\n break;\n case 22:\n $this->setProdGeneral($value);\n break;\n case 23:\n $this->setProdEra($value);\n break;\n case 24:\n $this->setProdCompany($value);\n break;\n case 25:\n $this->setProdRelated($value);\n break;\n case 26:\n $this->setProdRelatedPa($value);\n break;\n case 27:\n $this->setProdRelatedM3($value);\n break;\n case 28:\n $this->setProdRelated2($value);\n break;\n case 29:\n $this->setProdSaveas($value);\n break;\n case 30:\n $this->setProdAircraftreg($value);\n break;\n case 31:\n $this->setMb($value);\n break;\n case 32:\n $this->setPa($value);\n break;\n case 33:\n $this->setM3($value);\n break;\n } // switch()\n\n return $this;\n }", "public function addScalebar()\n {\n $this->map_obj->scalebar->set(\"style\", 0);\n $this->map_obj->scalebar->set(\"intervals\", 3);\n $this->map_obj->scalebar->set(\"height\", ($this->_isResize() && $this->_download_factor > 1) ? $this->_download_factor*4 : 8);\n $this->map_obj->scalebar->set(\"width\", ($this->_isResize() && $this->_download_factor > 1) ? $this->_download_factor*100 : 200);\n $this->map_obj->scalebar->color->setRGB(30, 30, 30);\n $this->map_obj->scalebar->outlinecolor->setRGB(0, 0, 0);\n $this->map_obj->scalebar->set(\"units\", 4); // 1 feet, 2 miles, 3 meter, 4 km\n $this->map_obj->scalebar->label->set(\"font\", \"arial\");\n $this->map_obj->scalebar->label->set(\"encoding\", \"UTF-8\");\n $this->map_obj->scalebar->label->set(\"size\", ($this->_isResize() && $this->_download_factor > 1) ? $this->_download_factor*5 : 8);\n $this->map_obj->scalebar->label->color->setRGB(0, 0, 0);\n\n //svg format cannot do scalebar in MapServer\n if ($this->download && $this->options['scalebar'] && $this->output != 'svg') {\n $this->map_obj->scalebar->set(\"status\", MS_EMBED);\n $this->map_obj->scalebar->set(\"position\", MS_LR);\n $this->map_obj->drawScalebar();\n }\n if (!$this->download) {\n $this->map_obj->scalebar->set(\"status\", MS_DEFAULT);\n $this->scale = $this->map_obj->drawScalebar();\n $this->scalebar_url = $this->scale->saveWebImage();\n }\n }", "public function setSlugAttribute(Slug $slug)\n {\n $this->attributes[$this->slugField()] = (string) $slug;\n }", "function updatePriceLevel($siteDb)\n{\n global $db, $conf;\n\n if (!empty($conf->global->PRODUIT_MULTIPRICES) && $siteDb->price_level > 0 && $siteDb->price_level <= intval($conf->global->PRODUIT_MULTIPRICES_LIMIT)) {\n $sql = 'SELECT p.rowid';\n $sql.= ' FROM ' . MAIN_DB_PREFIX . 'product as p';\n $sql.= ' LEFT JOIN ' . MAIN_DB_PREFIX . \"categorie_product as cp ON p.rowid = cp.fk_product\";\n $sql.= ' WHERE p.entity IN (' . getEntity('product', 1) . ')';\n $sql.= ' AND cp.fk_categorie = ' . $siteDb->fk_cat_product;\n $sql.= ' GROUP BY p.rowid';\n\n $db->begin();\n\n dol_syslog(\"updatePriceLevel sql=\" . $sql);\n $resql = $db->query($sql);\n if ($resql) {\n $product = new Product($db);\n $eCommerceProduct = new eCommerceProduct($db);\n\n while ($obj = $db->fetch_object($resql)) {\n $product->fetch($obj->rowid);\n $eCommerceProduct->fetchByProductId($obj->rowid, $siteDb->id);\n\n if ($eCommerceProduct->remote_id > 0) {\n $eCommerceSynchro = new eCommerceSynchro($db, $siteDb);\n $eCommerceSynchro->connect();\n if (count($eCommerceSynchro->errors)) {\n dol_syslog(\"updatePriceLevel eCommerceSynchro->connect() \".$eCommerceSynchro->error, LOG_ERR);\n setEventMessages($eCommerceSynchro->error, $eCommerceSynchro->errors, 'errors');\n\n $db->rollback();\n return -1;\n }\n\n $product->price = $product->multiprices[$siteDb->price_level];\n\n $result = $eCommerceSynchro->eCommerceRemoteAccess->updateRemoteProduct($eCommerceProduct->remote_id, $product);\n if (!$result) {\n dol_syslog(\"updatePriceLevel eCommerceSynchro->eCommerceRemoteAccess->updateRemoteProduct() \".$eCommerceSynchro->eCommerceRemoteAccess->error, LOG_ERR);\n setEventMessages($eCommerceSynchro->eCommerceRemoteAccess->error, $eCommerceSynchro->eCommerceRemoteAccess->errors, 'errors');\n\n $db->rollback();\n return -2;\n }\n } else {\n dol_syslog(\"updatePriceLevel Product with id \" . $product->id . \" is not linked to an ecommerce record but has category flag to push on eCommerce. So we push it\");\n // TODO\n //$result = $eCommerceSynchro->eCommerceRemoteAccess->updateRemoteProduct($eCommerceProduct->remote_id);\n }\n }\n }\n\n $db->commit();\n }\n\n return 1;\n}", "public function setScaleControl()\n {\n $args = func_get_args();\n\n if (isset($args[0]) && ($args[0] instanceof ScaleControl)) {\n $this->scaleControl = $args[0];\n $this->mapOptions['scaleControl'] = true;\n } elseif ((isset($args[0]) && is_string($args[0])) && (isset($args[1]) && is_string($args[1]))) {\n if ($this->scaleControl === null) {\n $this->scaleControl = new ScaleControl();\n }\n\n $this->scaleControl->setControlPosition($args[0]);\n $this->scaleControl->setScaleControlStyle($args[1]);\n\n $this->mapOptions['scaleControl'] = true;\n } elseif (!isset($args[0])) {\n $this->scaleControl = null;\n\n if (isset($this->mapOptions['scaleControl'])) {\n unset($this->mapOptions['scaleControl']);\n }\n } else {\n throw MapException::invalidScaleControl();\n }\n }", "public function setThumbsize($value)\n {\n if ($value !== null) {\n $this->_params['thumbsize'] = $value;\n } else {\n unset($this->_params['thumbsize']);\n }\n }", "function setPrice( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->Price = $value;\n setType( $this->Price, \"double\" );\n }" ]
[ "0.6117854", "0.60125566", "0.57888234", "0.546975", "0.5367545", "0.53636223", "0.53146744", "0.5253842", "0.5125149", "0.5040184", "0.50385356", "0.50321984", "0.501383", "0.49447826", "0.4933387", "0.48462254", "0.481659", "0.4809027", "0.4796593", "0.47688678", "0.47674158", "0.4757205", "0.47504184", "0.47335047", "0.4730198", "0.47283217", "0.47023764", "0.4700216", "0.4699553", "0.46482047", "0.4639269", "0.46371835", "0.46371835", "0.46288514", "0.46133468", "0.46082088", "0.46042198", "0.4592222", "0.45915636", "0.45866278", "0.45699406", "0.4561342", "0.45459113", "0.4544786", "0.45354062", "0.45287067", "0.45287067", "0.45188475", "0.44924945", "0.4491515", "0.44796678", "0.44763452", "0.44762996", "0.44709483", "0.44643125", "0.44634175", "0.44472992", "0.4444243", "0.44429612", "0.4438339", "0.4437806", "0.4430282", "0.44286427", "0.44244128", "0.4409575", "0.43924624", "0.4382613", "0.4378556", "0.43705264", "0.43697438", "0.43646148", "0.43582144", "0.4341124", "0.43400374", "0.43183923", "0.43101266", "0.43063354", "0.43019748", "0.42950583", "0.4294278", "0.42924812", "0.42921874", "0.42921874", "0.42917255", "0.42887083", "0.42865193", "0.42823613", "0.4281826", "0.42741904", "0.42633694", "0.42574778", "0.4248239", "0.42478013", "0.42400202", "0.4238645", "0.42362288", "0.42345148", "0.4233029", "0.42276153", "0.4227321" ]
0.5049149
9
setProdLinks() Set the value of [prod_linkdescription] column.
public function setProdLinkdescription($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_linkdescription !== $v) { $this->prod_linkdescription = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_LINKDESCRIPTION] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdLinks($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_links !== $v) {\n $this->prod_links = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_LINKS] = true;\n }\n\n return $this;\n }", "public function getProdLinkdescription()\n {\n return $this->prod_linkdescription;\n }", "function setLinks($link) \n {\n $this->links = $link;\n }", "public function getProdLinks()\n {\n return $this->prod_links;\n }", "public function setProductDescription(string $productDescription)\n\t{\n\t\t$this->addKeyValue('product_description', $productDescription); \n\n\t}", "public function setProdDescription($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_description !== $v) {\n $this->prod_description = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_DESCRIPTION] = true;\n }\n\n return $this;\n }", "function setUrlLink(){\n if( $this->id == 0 ) return;\n $url = $this->aFields[\"url\"]->toString();\n if( $url == \"\" ) return;\n $url = strip_tags( preg_replace( \"/[\\\"']/\", \"\", $url ) );\n if( !$this->aFields[\"url\"]->editable ) $this->aFields[\"url\"]->display = false;\n $this->aFields[\"url_link\"]->display = true;\n $this->aFields[\"url_link\"]->value = \"<a href=\\\"\".$url.\"\\\">\".$url.\"</a>\";\n }", "function setLink($url)\n\t{\n\t\t$this->link = $url;\n\t}", "private function setCustomProductLinks(ProductInterface $product, array $productData): void\n {\n $productLinks = [];\n foreach ($productData as $linkType => $links) {\n foreach ($links as $data) {\n /** @var ProductLinkInterface|Link $productLink */\n $productLink = $this->productLinkInterfaceFactory->create();\n $productLink->setSku('simple');\n $productLink->setLinkedProductSku($data['sku']);\n if (isset($data['position'])) {\n $productLink->setPosition($data['position']);\n }\n $productLink->setLinkType($linkType);\n $productLinks[] = $productLink;\n }\n }\n $product->setProductLinks($productLinks);\n }", "public function setDescriptionRef($descriptionRef)\n {\n $this->descriptionRef = $descriptionRef;\n }", "function setLinks($links) \r\n {\r\n\r\n $this->activity_list->setLinks($links); \r\n \t\t \r\n// \t\t echo print_r($this->linkValues,true);\t \r\n \t parent::setLinks($links);\r\n \r\n }", "function setLink($link) {\r\n $this->_link = $link;\r\n }", "function setLink($link) {\r\n $this->_link = $link;\r\n }", "public function setLinks($value)\n {\n return $this->setProperty(\"Links\", $value, true);\n }", "function setSyncProdDesc()\n {\n }", "public function setLink($link);", "public function setLink($link){\n\t\t$this->link = $link;\n\t}", "public function setColumnLink($link){\n $this->addVar('COL_LINK', $link);\n }", "function setLink(&$link)\n {\n $this->_link = $link;\n }", "public function setLink(string $link): void\n {\n $this->link = $link;\n }", "public function setProduct_desc ($product_desc) {\n\t$this->product_desc = $product_desc;\n\treturn $this;\n}", "public function set_link($link){\n\t\t$this->set_channel_element('link', $link);\n\t}", "public function adminLinks($table, array $row)\n {\n if ($table !== 'tx_commerce_products') {\n return parent::adminLinks($table, $row);\n } else {\n $language = $this->getLanguageService();\n\n // Edit link:\n $adminLink = '<a href=\"#\" onclick=\"' .\n htmlspecialchars(\n BackendUtility::editOnClick('&edit[' . $table . '][' . $row['uid'] . ']=edit', $this->getBackPath())\n ) .\n '\">' .\n IconUtility::getSpriteIcon(\n 'actions-document-open',\n array('title' => $language->sL('LLL:EXT:lang/locallang_core.xml:cm.edit', true))\n ) . '</a>';\n\n // Delete link:\n $adminLink .= '<a href=\"' .\n htmlspecialchars($this->doc->issueCommand('&cmd[' . $table . '][' . $row['uid'] . '][delete]=1')) .\n '\">' .\n IconUtility::getSpriteIcon(\n 'actions-edit-delete',\n array('title' => $language->sL('LLL:EXT:lang/locallang_core.php:cm.delete', true))\n ) . '</a>';\n\n if ($row['pid'] == -1) {\n // get page TSconfig\n $pagesTyposcriptConfig = BackendUtility::getPagesTSconfig(GeneralUtility::_POST('popViewId'));\n if ($pagesTyposcriptConfig['tx_commerce.']['singlePid']) {\n $previewPageId = $pagesTyposcriptConfig['tx_commerce.']['singlePid'];\n } else {\n $previewPageId = SettingsFactory::getInstance()->getExtConf('previewPageID');\n }\n\n $sysLanguageUid = (int) $row['sys_language_uid'];\n\n /**\n * Product.\n *\n * @var \\CommerceTeam\\Commerce\\Domain\\Model\\Product $product\n */\n $product = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\n 'CommerceTeam\\\\Commerce\\\\Domain\\\\Model\\\\Product',\n $row['t3ver_oid'],\n $sysLanguageUid\n );\n $product->loadData();\n\n $getVars = ($sysLanguageUid > 0 ? '&L=' . $sysLanguageUid : '') .\n '&ADMCMD_vPrev[' . rawurlencode($table . ':' . $row['t3ver_oid']) . ']=' . $row['uid'] .\n '&no_cache=1&tx_commerce_pi1[showUid]=' . $product->getUid() .\n '&tx_commerce_pi1[catUid]=' . current($product->getMasterparentCategory());\n\n $adminLink .= '<a href=\"#\" onclick=\"' .\n htmlspecialchars(\n BackendUtility::viewOnClick(\n $previewPageId,\n $this->getBackPath(),\n BackendUtility::BEgetRootLine($row['_REAL_PID']),\n '',\n '',\n $getVars\n )\n ) .\n '\">' . IconUtility::getSpriteIcon('actions-document-view') . '</a>';\n }\n\n return $adminLink;\n }\n }", "function setItem_description($description){\n $this->item_description = $description;\n }", "function set_description($description)\r\n {\r\n $this->set_default_property(self :: PROPERTY_DESCRIPTION, $description);\r\n }", "public function setLink($value)\n {\n return $this->set('Link', $value);\n }", "public function setLink($value)\n {\n return $this->set('Link', $value);\n }", "public function setLink($value)\n {\n return $this->set('Link', $value);\n }", "public function setLink($value)\n {\n return $this->set('Link', $value);\n }", "public function setLink($value)\n {\n return $this->set('Link', $value);\n }", "function set_description($description)\n {\n $this->set_default_property(self :: PROPERTY_DESCRIPTION, $description);\n }", "public function setLink($link)\n {\n $this->setChannelElement('link', $link);\n }", "public function setLink($link) {\n\t\t$this->addChannelTag('link', $link);\n\t}", "public function set_description ($description) {\n $this->description = $description;\n }", "public function setSetDescription($description) {\r\n\t\t$this -> setdescription = $description;\r\n\t}", "public function setDescription($description)\n\t{\n\t\t$this->description = $description;\n\n\t\tif($this->pageInitialized)\n\t\t\t$this->setMetaTag('description', $this->description);\n\t}", "function setFieldLinks2($fieldLinks2) {\n if ($fieldLinks2 !== ($oldFieldLinks2 = $this->fieldLinks2)) {\n if ($this->immutable) throw self::immutableException();\n if (is_array($fieldLinks2)) {\n if (!$fieldLinks2) throw new Ac_E_InvalidCall(\"\\$fieldLinks2 must not be empty\");\n $this->fieldLinksRev2 = array_flip($fieldLinks2);\n } elseif ($fieldLinks2 === false) {\n $this->fieldLinksRev2 = false;\n } else {\n throw Ac_E_InvalidCall::wrongType('fieldLinks2', $fieldLinks2, array('array', 'false'));\n }\n $this->destNNIdsRelation = false;\n $this->fieldLinks2 = $fieldLinks2;\n }\n }", "protected function _processProduct($oProduct)\n {\n $oProduct->setLinkType($this->getLinkType());\n if ($sAddParams = $this->_getAddUrlParams()) {\n $oProduct->appendLink($sAddParams);\n }\n }", "public function setRelatedLink($value)\n {\n $this->relatedLink = $value;\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function setDescriptionAttribute($value)\n {\n $this->attributes['description'] = htmlentities($value, ENT_COMPAT, 'UTF-8');\n }", "public function setConnection($link)\n {\n // TODO: Implement setConnection() method.\n }", "public function set_link($link) \n\t{\n\t\tif($this->version == RSS2 || $this->version == RSS1)\n\t\t{\n\t\t\t$this->add_element('link', $link);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->add_element('link','',array('href'=>$link));\n\t\t\t$this->add_element('id', zajlib_feed::uuid($link,'urn:uuid:'));\n\t\t} \n\t\t\n\t}", "function SetLink($link,$y=0,$page=-1)\n\t\t{\n\t\t\tif($y==-1) $y=$this->y;\n\t\t\tif($page==-1)\t$page=$this->page;\n\t\t\t$this->links[$link]=array($page,$y);\n\t\t}", "public function set_description($description)\n {\n $this->set_default_property(self::PROPERTY_DESCRIPTION, $description);\n }", "public function SetPanelSettings()\n\t{\n\t\t$GLOBALS['ISC_CLASS_PRODUCT'] = GetClass('ISC_PRODUCT');\n\t\t$id = $GLOBALS['ISC_CLASS_PRODUCT']->GetProductId();\n\t\t// How many tags do we have?\n\t\t$query = \"\n\t\t\tSELECT p.* , pi.imagefilethumb\n\t\t\tFROM isc_products p\n\t\t\tINNER JOIN isc_product_associations pa ON ( \n\t\t\t\tpa.assocbaseid = \" . $id . \" AND pa.assocprodid = p.productid\n\t\t\t) \n\t\t\tINNER JOIN isc_product_images pi ON ( \n\t\t\t\tpi.imageprodid = pa.assocprodid AND pi.imageisthumb = 1\n\t\t\t) \n\t\t\";\n\t\t$result = $GLOBALS['ISC_CLASS_DB']->Query($query);\n\t\t\n\t\t$GLOBALS['SNIPPETS']['ProductMadeByList'] = '';\n\t\twhile($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {\n\t\t\t$GLOBALS['ComponentImg'] = GetConfig('ShopPath') . '/' . GetConfig('ImageDirectory') . '/' . $row['imagefilethumb'];\n\t\t\t$GLOBALS['ComponentName'] = $row['prodname'];\n\t\t\t$GLOBALS['ComponentLink'] = ProdLink($row['prodname']);\n\t\t\t$GLOBALS['SNIPPETS']['ProductMadeByList'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ProductMadeByItem');\n\t\t}\n\t\t\n\t\tif($GLOBALS['SNIPPETS']['ProductMadeByList'] == '') {\n\t\t\t$this->DontDisplay = true;\n\t\t}\n\t}", "private function setCollectionLinks($links)\n {\n if (is_array($links)) {\n for ($i = 0, $l = count($links); $i < $l; $i++) {\n $this->startElement('link');\n $this->writeAttributes(array(\n 'rel' => $links[$i]['rel']\n ));\n if ($links[$i]['type'] === 'application/opensearchdescription+xml') {\n $this->writeAttributes(array(\n 'type' => $links[$i]['type'],\n 'href' => $links[$i]['href']\n ));\n } else {\n $this->writeAttributes(array(\n 'type' => RestoUtil::$contentTypes['atom'],\n 'href' => RestoUtil::updateUrlFormat($links[$i]['href'], 'atom')\n ));\n }\n $this->endElement(); // link\n }\n }\n }", "function setLinksource($linksource)\r\n\t{\r\n\t\t$this->linksource = $linksource;\r\n\t}", "public function setDescription($description) {\n $this->_description = $description;\n }", "public function setDataLink( \\lib\\interfaces\\DataLinkInterface $link )\n {\n $this->dataLink = $link;\n }", "public function setUrl(LinkDescriptor $UrlDescriptor)\n {\n $this->LinkDescriptor = $UrlDescriptor;\n\n if (!$this->LinkPartsDescriptor) {\n\n $this->LinkPartsDescriptor = new LinkPartsDescriptor();\n\n }\n\n $this->LinkPartsDescriptor->init($this->LinkDescriptor->url_rebuild);\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "protected function setDescription($description) {\r\n $this->description = $description;\r\n }", "public function setPoolDescription($description)\n\t{\n\t\t$this->setProperty('description', $description);\n\t}", "protected function assignDescription()\n {\n $this->description = '';\n }", "public function setDescription($description){\n\t\t$this->description = $description;\n\t}", "protected function setToolbarNavigationLinks($Links) {\n\t\t$this->LinkList = $Links;\n\t}", "protected function setLongDesc($productID, $longDesc)\r\n {\r\n \r\n // SQL query\r\n $sql = \"UPDATE tbl_products SET long_description= '\" . $longDesc . \"'WHERE id_products= '\" . $productID . \"'\";\r\n \r\n // Connect to database and run query\r\n $result = $this->connect->query($sql);\r\n \r\n // Check to see if query passed and registered\r\n if ($result) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public function setProducts_options( $products_options ) {\n\t\t$this->products_options = $products_options;\n\t}", "public function setDescription($description)\n {\n $this->_description = $description;\n }", "private function SetProductImages()\n\t{\n\n\t\t$GLOBALS['ProductThumbWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\t\t$GLOBALS['ProductThumbHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\n\t\t$GLOBALS['ProductMaxTinyWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\t\t$GLOBALS['ProductMaxTinyHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\n\t\t$GLOBALS['ProductTinyBoxWidth'] = $GLOBALS['ProductMaxTinyWidth']+4;\n\t\t$GLOBALS['ProductTinyBoxHeight'] = $GLOBALS['ProductMaxTinyHeight']+4;\n\n\n\t\t$GLOBALS['ProductMaxZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductMaxZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\t\t$GLOBALS['ProductZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\n\t\t$productImages = ISC_PRODUCT_IMAGE::getProductImagesFromDatabase($GLOBALS['ProductId'], null, false, true);\n\t\t$GLOBALS['NumProdImages'] = count($productImages);\n\n\t\t$GLOBALS['CurrentProdThumbImage'] = 0;\n\t\t$thumb = '';\n\t\t$curZoomImage = '';\n\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] = '';\n\t\t$GLOBALS['HideImageCarousel'] = 'display:none;';\n\t\t$GLOBALS['HideMorePicturesLink'] = 'display:none;';\n\t\t$thumbImageDescription = '';\n\t\t$i = 0;\n\n\t\t$GLOBALS['ProdImageJavascript'] = '';\n\t\t$GLOBALS['ProdImageZoomJavascript'] = '';\n\t\t$GLOBALS['LightBoxImageList'] = '';\n\t\t$GLOBALS['ZoomImageMaxWidth'] = 0;\n\t\t$GLOBALS['ZoomImageMaxHeight'] = 0;\n\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = 0;\n\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = 'display: none';\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t//Show image carousel\n\n\t\t\tif ($GLOBALS['NumProdImages'] == 2) {\n\t\t\t\t$var = \"MorePictures1\";\n\t\t\t} else if ($GLOBALS['NumProdImages'] == 1) {\n\t\t\t\t$var = \"SeeLargerImage\";\n\t\t\t} else {\n\t\t\t\t$var = \"MorePictures2\";\n\t\t\t}\n\n\t\t\t$GLOBALS['SeeMorePictures'] = sprintf(GetLang($var), count($productImages) - 1);\n\t\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = '';\n\n\t\t\tif (GetConfig('ProductImagesTinyThumbnailsEnabled')) {\n\t\t\t\t$GLOBALS['HideImageCarousel'] = '';\n\t\t\t} else {\n\t\t\t\t$GLOBALS['HideMorePicturesLink'] = '';\n\t\t\t}\n\n\t\t\t$continue=false;\n\n\t\t\tforeach ($productImages as $productImage) {\n\n\t\t\t\t$thumbURL = '';\n\t\t\t\t$zoomImageURL = '';\n\n\t\t\t\ttry{\n\t\t\t\t\t$thumbURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_STANDARD, true);\n\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\ttry{\n\t\t\t\t\t$zoomImageURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_ZOOM, true);\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\tif($thumbURL == '' && $zoomImageURL == '') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$resizedZoomDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t\t\t$resizedTinyDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\t\t\t\t//calculate the max zoom image width and height\n\t\t\t\tif ($GLOBALS['ZoomImageMaxWidth'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]) {\n\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t//the height of the image has got the max width needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\tif ($GLOBALS['ZoomImageMaxHeight'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]) {\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t//the width of the image has got the max height needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeightWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['ImageDescription'] = isc_html_escape($productImage->getDescription());\n\t\t\t\tif($GLOBALS['ImageDescription'] == '') {\n\t\t\t\t\t$GLOBALS['ImageDescription'] = GetLang(\"Image\") . \" \" . ($i + 1);\n\t\t\t\t}\n\n\t\t\t\t//show image carousel\n\t\t\t\tif(GetConfig('ProductImagesTinyThumbnailsEnabled')==1) {\n\n\t\t\t\t\t$GLOBALS['ProdImageJavascript'] .= \"\n\t\t\t\t\t\tThumbURLs[\".$i.\"] = \" . isc_json_encode($thumbURL) . \";\n\t\t\t\t\t\tProductImageDescriptions[\".$i.\"] = \" . isc_json_encode($GLOBALS['ImageDescription']) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$GLOBALS['TinyImageOverJavascript'] = \"showProductThumbImage(\".$i.\")\";\n\t\t\t\t\t//$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\n\t\t\t\t\ttry{\n\t\t\t\t\t\t$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\t\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ProductThumbIndex'] = $i;\n\t\t\t\t\tif(GetConfig('ProductImageMode') == 'lightbox') {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImageLightBox(\".$i.\"); return false;\";\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImage('\".GetConfig('ShopPath').\"/productimage.php', \".$GLOBALS['ProductId'].\", \".$i.\");\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['TinyImageWidth'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t$GLOBALS['TinyImageHeight'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t$GLOBALS['TinyImageTopPadding'] = floor(($GLOBALS['ProductMaxTinyHeight'] - $GLOBALS['TinyImageHeight']) / 2);\n\t\t\t\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductTinyImage\");\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\tif(GetConfig('ProductImagesImageZoomEnabled') == 1) {\n\t\t\t\t\t//check if zoom image is large enough for image zoomer\n\t\t\t\t\tif($resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]<ISC_PRODUCT_IMAGE_MIN_ZOOM_WIDTH && $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]<ISC_PRODUCT_IMAGE_MIN_ZOOM_HEIGHT) {\n\t\t\t\t\t\t$zoomImageURL = '';\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['ProdImageZoomJavascript'] .= \"\n\t\t\t\t\t\tZoomImageURLs[\".$i.\"] = \" . isc_json_encode($zoomImageURL) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\t//\t$GLOBALS['ProductZoomImageURL'] = $zoomImageURL;\n\n\t\t\t\t//this image is the product page thumbnail\n\t\t\t\tif($i==0) {\n\t\t\t\t\t//get the thumb image for product page\n\t\t\t\t\t$thumb = $thumbURL;\n\t\t\t\t\t$curZoomImage = $zoomImageURL;\n\t\t\t\t\t$thumbImageDescription = $GLOBALS['ImageDescription'];\n\t\t\t\t\t//if there is no need to loop through images anymore, get out from the loop.\n\t\t\t\t\tif($continue === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['VisibleImageTotal'] = $i+1;\n\n\t\t$GLOBALS['ShowImageZoomer'] = GetConfig('ProductImagesImageZoomEnabled');\n\t\tif ($GLOBALS['ShowImageZoomer']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductImageZoomer'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductImageZoomer\");\n\t\t}\n\t\t$GLOBALS['ZoomImageURL'] = $curZoomImage;\n\n\t\t//if no product thumb images\n\t\tif($thumb == '') {\n\t\t\tif(GetConfig('DefaultProductImage') == 'template') {\n\t\t\t\t$thumb = $GLOBALS['IMG_PATH'].'/ProductDefault.gif';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$thumb = GetConfig('ShopPath').'/'.GetConfig('DefaultProductImage');\n\t\t\t}\n\t\t}\n\n\t\t// need to check for variation images\n\t\t$GLOBALS['ImageDescription'] = $thumbImageDescription;\n\t\t$GLOBALS['ThumbImageURL'] = $thumb;\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('FastProductThumbImage');\n\t\t} else {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ProductThumbImagePlaceholder');\n\t\t}\n\t}", "function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "public function setDescription($description) {\n\t\tTemplate::setSiteMetaDescription($description);\n\t}", "public function setProductDesc($productDesc = null)\n {\n // validation for constraint: string\n if (!is_null($productDesc) && !is_string($productDesc)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productDesc, true), gettype($productDesc)), __LINE__);\n }\n if (is_null($productDesc) || (is_array($productDesc) && empty($productDesc))) {\n unset($this->productDesc);\n } else {\n $this->productDesc = $productDesc;\n }\n return $this;\n }", "public function setDescription($description)\r\n {\r\n $this->description = $description;\r\n }", "public function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "public function setDescription($description) {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->_description = $description;\n }", "public function setDescription($description)\n\t{\n\t\t$this->_description = $description;\n\t}", "public function setProducts(array $products = []): void\n {\n $xml = '';\n\n foreach ($products as $id) {\n $xml .= '<product-set-product product-id=\"' . Xml::escape($id) . '\" />' . PHP_EOL;\n }\n\n $this->elements['product-set-products'] = $xml;\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "private function setExternalProductDetails() {\n /** @var ExternalProductAdapter $product */\n $product = $this->product;\n\n $product->set_button_text($this->wcData->getButtonText());\n $product->set_product_url($this->wcData->getProductUrl());\n }", "function setURL( $url ) \n {\n $this->setValueByFieldName( 'navbarlink_url', $url );\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "protected function setupBulkSetLinkDefaults()\n {\n $this->crud->allowAccess('bulkSetLink');\n\n $this->crud->operation('list', function () {\n $this->crud->enableBulkActions();\n $this->crud->addButton('top', 'bulkSetLink', 'view', 'crud::buttons.bulk_set_link');\n });\n }", "public function setProductDescription(string $productDescription): bool\n {\n try {\n if (\\strlen($productDescription) < 2) {\n $msg = \"Product description must have at leats 2 chars\";\n \\Logger::getLogger(\\get_class($this))\n ->error(\\sprintf(__METHOD__.\" '%s'\", $msg));\n throw new AuditFileException($msg);\n }\n $this->productDescription = static::valTextMandMaxCar(\n $productDescription, 200, __METHOD__\n );\n $return = true;\n } catch (AuditFileException $e) {\n $this->productDescription = $productDescription;\n \\Logger::getLogger(\\get_class($this))\n ->error(\\sprintf(__METHOD__.\" '%s'\", $e->getMessage()));\n $this->getErrorRegistor()->addOnSetValue(\"ProductDescription_not_valid\");\n $return = false;\n }\n \\Logger::getLogger(\\get_class($this))\n ->debug(\n \\sprintf(\n __METHOD__.\" set to '%s'\",\n $this->productDescription\n )\n );\n return $return;\n }", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "public function saveProductRelations($product)\n {\n parent::saveProductRelations($product);\n\n $data = $product->getCustomOneLinkData();\n if (!is_null($data)) {\n $this->_getResource()->saveProductLinks($product, $data, self::LINK_TYPE_CUSTOMONE);\n }\n\n $data = $product->getCustomTwoLinkData();\n if (!is_null($data)) {\n $this->_getResource()->saveProductLinks($product, $data, self::LINK_TYPE_CUSTOMTWO);\n }\n }" ]
[ "0.64033", "0.604494", "0.57057804", "0.56472003", "0.56418395", "0.55622405", "0.5550153", "0.5524947", "0.5508063", "0.54721165", "0.5402973", "0.538458", "0.538458", "0.5348114", "0.5340541", "0.5314391", "0.5231209", "0.5230729", "0.5209203", "0.51936924", "0.5107778", "0.50906885", "0.50800186", "0.5079358", "0.50686383", "0.506123", "0.5059969", "0.5058766", "0.50587016", "0.50587016", "0.50342077", "0.5015589", "0.5013857", "0.5005942", "0.5002319", "0.49982455", "0.49821177", "0.49658138", "0.49524266", "0.4949135", "0.49452633", "0.4928108", "0.4926138", "0.49228442", "0.49181297", "0.49064472", "0.48944768", "0.48924878", "0.4890036", "0.48886657", "0.48876312", "0.48815006", "0.48815006", "0.48815006", "0.48815006", "0.48815006", "0.48815006", "0.48815006", "0.48815006", "0.48815006", "0.48815006", "0.48815006", "0.4878828", "0.4878526", "0.48674333", "0.48649946", "0.48601353", "0.48285413", "0.48185277", "0.48062992", "0.48061743", "0.48040733", "0.47973257", "0.479706", "0.479613", "0.47932512", "0.4783682", "0.47814798", "0.47770575", "0.47677273", "0.47592974", "0.4754544", "0.47539246", "0.4750178", "0.4750178", "0.4750178", "0.4750178", "0.4750178", "0.4750178", "0.4750178", "0.4750178", "0.4750178", "0.4750178", "0.4750178", "0.4750178", "0.4750178", "0.4747245", "0.47471112", "0.47465318", "0.47402295" ]
0.612149
1
setProdLinkdescription() Set the value of [prod_front] column.
public function setProdFront($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_front !== $v) { $this->prod_front = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_FRONT] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProdLinkdescription()\n {\n return $this->prod_linkdescription;\n }", "public function setProduct_desc ($product_desc) {\n\t$this->product_desc = $product_desc;\n\treturn $this;\n}", "public function SetHeadDescription ($description) {\r\n\t\t$this->head->SetDescription($description);\r\n\t}", "function setHeadDescription($var)\n\t{\n\t\t$this -> head_description = $var;\n\t}", "function set_description($description)\r\n {\r\n $this->set_default_property(self :: PROPERTY_DESCRIPTION, $description);\r\n }", "public function setProductDescription(string $productDescription)\n\t{\n\t\t$this->addKeyValue('product_description', $productDescription); \n\n\t}", "function set_description($description)\n {\n $this->set_default_property(self :: PROPERTY_DESCRIPTION, $description);\n }", "function setItem_description($description){\n $this->item_description = $description;\n }", "protected function assignDescription()\n {\n $this->description = '';\n }", "public function set_description ($description) {\n $this->description = $description;\n }", "public static function update_front_page_meta_description( $value ) {\n\t\t$front_page_description = sanitize_text_field( $value );\n\n\t\t/**\n\t\t * Can be used to limit the lenght of front page meta description.\n\t\t *\n\t\t * @module seo-tools\n\t\t *\n\t\t * @since 4.4.0\n\t\t *\n\t\t * @param int Maximum length of front page meta description. Defaults to 300.\n\t\t */\n\t\t$description_max_length = apply_filters( 'jetpack_seo_front_page_description_max_length', 300 );\n\n\t\tif ( function_exists( 'mb_substr' ) ) {\n\t\t\t$front_page_description = mb_substr( $front_page_description, 0, $description_max_length );\n\t\t} else {\n\t\t\t$front_page_description = substr( $front_page_description, 0, $description_max_length );\n\t\t}\n\n\t\t$can_set_meta = self::is_enabled_jetpack_seo();\n\t\t$grandfathered_meta_option = get_option( self::GRANDFATHERED_META_OPTION );\n\t\t$has_old_meta = ! empty( $grandfathered_meta_option );\n\t\t$option_name = self::has_grandfathered_front_page_meta() ? self::GRANDFATHERED_META_OPTION : self::FRONT_PAGE_META_OPTION;\n\n\t\t$did_update = update_option( $option_name, $front_page_description );\n\n\t\tif ( $did_update && $has_old_meta && $can_set_meta ) {\n\t\t\t// Delete grandfathered option if user has switched to Business plan and updated meta description.\n\t\t\tdelete_option( 'seo_meta_description' );\n\t\t}\n\n\t\tif ( $did_update ) {\n\t\t\treturn $front_page_description;\n\t\t}\n\n\t\treturn '';\n\t}", "public function set_description($description)\n {\n $this->set_default_property(self::PROPERTY_DESCRIPTION, $description);\n }", "private function setExternalProductDetails() {\n /** @var ExternalProductAdapter $product */\n $product = $this->product;\n\n $product->set_button_text($this->wcData->getButtonText());\n $product->set_product_url($this->wcData->getProductUrl());\n }", "function setSyncProdDesc()\n {\n }", "public function setDescription($desc) {\n\t\t$this->description = $desc;\n\t}", "function setDescriptionA($descriptionA) {\r\r\n\t\t$this->descriptionA = $descriptionA;\r\r\n\t}", "public function setFrontUrl(string $front)\n {\n $this->front = $front;\n return $this;\n }", "protected function setDescription() {\r\n\t\t$descriptionCrop = intval($this->settings['news']['semantic']['general']['description']['crop']);\r\n\t\t$descriptionAction = $this->settings['news']['semantic']['general']['description']['action'];\r\n\t\t$descriptionText = $this->newsItem->getTeaser();\r\n\t\tif (empty($descriptionText)) {\r\n\t\t\t$descriptionText = $this->newsItem->getBodytext();\r\n\t\t}\r\n\t\tif (!empty($descriptionText) && !empty($descriptionAction)) {\r\n\t\t\tif (!empty($GLOBALS['TSFE']->page['description'])) {\r\n\t\t\t\tswitch ($descriptionAction) {\r\n\t\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t\t$descriptionText .= ': ' . $GLOBALS['TSFE']->page['description'];\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'append':\r\n\t\t\t\t\t\t$descriptionText = $GLOBALS['TSFE']->page['description'] . ': ' . $descriptionText;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$this->description = $this->contentObject->crop($descriptionText, $descriptionCrop . '|...|' . TRUE);\r\n\t\t}\r\n\t}", "public function setDescription($description){\n\t\t$this->description = $description;\n\t}", "function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "public function setDescriptionRef($descriptionRef)\n {\n $this->descriptionRef = $descriptionRef;\n }", "public function setDescription($description)\n\t{\n\t\t$this->description = $description;\n\n\t\tif($this->pageInitialized)\n\t\t\t$this->setMetaTag('description', $this->description);\n\t}", "protected function setDescription($description) {\r\n $this->description = $description;\r\n }", "public function swc_homepage_featured_products_description() {\n\t\t$description = get_theme_mod( 'swc_homepage_featured_products_description', '' );\n\n\t\tif ( '' !== $description ) {\n\t\t\techo '<div class=\"swc-section-description\">' . wpautop( wptexturize( $description ) ) . '</div>';\n\t\t}\n\t}", "public function setDisplayFront($display_front)\n {\n return $this->setData(self::DISPLAY_FRONT, $display_front);\n }", "public function setProdDescription($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_description !== $v) {\n $this->prod_description = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_DESCRIPTION] = true;\n }\n\n return $this;\n }", "public function setDescription($desc)\n {\n $this->description = $desc;\n }", "public function setDescription($description) {\n\t\tTemplate::setSiteMetaDescription($description);\n\t}", "public function setDescription($description)\n {\n $this->_description = $description;\n }", "public function setDesciption($description);", "public function setDescription($description) {\n $this->_description = $description;\n }", "public function setSetDescription($description) {\r\n\t\t$this -> setdescription = $description;\r\n\t}", "public function setDescription($description) \n\t{\n \n $this->description = empty($description) ? \"\" : $description;\t\n\t}", "public function set_description($desciption){\n\t\t$this->set_channel_element('description', $desciption);\n\t}", "public function setDescription($description)\n\t{\n\t\t$this->_description = $description;\n\t}", "public function setDescription($description)\n {\n $this->_description = $description;\n }", "public function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "public function setDescription($description)\r\n {\r\n $this->description = $description;\r\n }", "function setDescriptionB($descriptionB) {\r\r\n\t\t$this->descriptionB = $descriptionB;\r\r\n\t}", "function setDescription( $value )\r\n {\r\n $this->Description = $value;\r\n }", "function setDescription( $value )\r\n {\r\n $this->Description = $value;\r\n }", "public function setDesc($val){ return $this->setField('desc',$val); }", "public function setDescription($description) {\n $this->description = $description;\n }", "public function swc_homepage_on_sale_products_description() {\n\t\t$description = get_theme_mod( 'swc_homepage_on_sale_products_description', '' );\n\n\t\tif ( '' !== $description ) {\n\t\t\techo '<div class=\"swc-section-description\">' . wpautop( wptexturize( $description ) ) . '</div>';\n\t\t}\n\t}", "public function setDescription( $description )\r\n\t{\r\n\t\t$this->description = $description;\r\n\t}", "protected function assignDescription()\n {\n $this->description = 'This is a test for a Template Variable migration class';\n }", "public function setDescription($description)\n {\n $this->feedbackFields['description'] = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "function setUrlLink(){\n if( $this->id == 0 ) return;\n $url = $this->aFields[\"url\"]->toString();\n if( $url == \"\" ) return;\n $url = strip_tags( preg_replace( \"/[\\\"']/\", \"\", $url ) );\n if( !$this->aFields[\"url\"]->editable ) $this->aFields[\"url\"]->display = false;\n $this->aFields[\"url_link\"]->display = true;\n $this->aFields[\"url_link\"]->value = \"<a href=\\\"\".$url.\"\\\">\".$url.\"</a>\";\n }", "public function getProdFront()\n {\n return $this->prod_front;\n }", "public function setDescription($description) {\n\t\t$this->addChannelTag('description', $description);\n\t}", "public function set_description($description) \n\t{\n\t\t$tag = ($this->version == ATOM)? 'summary' : 'description'; \n\t\t$this->add_element($tag, $description);\n\t}", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setCategoryDescription(?string $value): void {\n $this->getBackingStore()->set('categoryDescription', $value);\n }", "public function swc_homepage_recent_products_description() {\n\t\t$description = get_theme_mod( 'swc_homepage_recent_products_description', '' );\n\n\t\tif ( '' !== $description ) {\n\t\t\techo '<div class=\"swc-section-description\">' . wpautop( wptexturize( $description ) ) . '</div>';\n\t\t}\n\t}", "public function set_item_description($item_description) {\n\t\t$this->_item_description = $item_description;\n\t}", "public function setDescriptionAttribute($value)\n {\n $this->attributes['description'] = htmlentities($value, ENT_COMPAT, 'UTF-8');\n }", "public function setProdLinkdescription($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_linkdescription !== $v) {\n $this->prod_linkdescription = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_LINKDESCRIPTION] = true;\n }\n\n return $this;\n }", "function setHeadLink($var)\n\t{\n\t\t$this -> head_link = $var;\n\t}", "function set_headless_preview_link($link) {\n\n global $headless_wp_config_options;\n\n return $headless_wp_config_options['front_end'].'/'.get_post_field('post_name', get_the_ID()).'/';\n}", "public function setShowDescriptionAttribute($show_description)\n {\n $this->attributes['show_description'] = $show_description == 1 || $show_description === 'true' || $show_description === true ? true : false;\n }", "public function setProductDesc($productDesc = null)\n {\n // validation for constraint: string\n if (!is_null($productDesc) && !is_string($productDesc)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productDesc, true), gettype($productDesc)), __LINE__);\n }\n if (is_null($productDesc) || (is_array($productDesc) && empty($productDesc))) {\n unset($this->productDesc);\n } else {\n $this->productDesc = $productDesc;\n }\n return $this;\n }", "public function setDescrizione($descrizione)\n\t\t{\n\t\t$this->descrizione = $descrizione;\n\t\t}", "public function setDescription(string $description)\n {\n $this->description = $description;\n }", "public function swc_loop_product_description() {\n\t\tglobal $product;\n\n\t\t$short_description = apply_filters( 'woocommerce_short_description', $product->post->post_excerpt );\n\n\t\tif ( '' !== $short_description ) {\n\t\t\techo '<div itemprop=\"description\">' . $short_description . '</div>';\n\t\t}\n\t}", "public function swc_homepage_popular_products_description() {\n\t\t$description = get_theme_mod( 'swc_homepage_top_rated_products_description', '' );\n\n\t\tif ( '' !== $description ) {\n\t\t\techo '<div class=\"swc-section-description\">' . wpautop( wptexturize( $description ) ) . '</div>';\n\t\t}\n\t}", "public function setDescription($value)\n {\n $this->setItemValue('description', (string)$value);\n }", "public function setShippingDescription($description);", "public function setDescription($newDescription)\n {\n $this->description = $newDescription;\n }", "protected function setShortDesc($productID, $shortDesc)\r\n {\r\n \r\n // SQL query\r\n $sql = \"UPDATE tbl_products SET short_description= '\" . $shortDesc . \"'WHERE id_products= '\" . $productID . \"'\";\r\n \r\n // Connect to database and run query\r\n $result = $this->connect->query($sql);\r\n \r\n // Check to see if query passed and registered\r\n if ($result) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($value) {\n\t\tif($value == \"\") { $value = \"None\"; }\n\t\tself::$_description = $value;\n\t}", "static public function setDescription($new_description) {\n\t\tself::$page_description = (string)$new_description;\n\t}", "protected function set_meta_desc()\r\r\n {\r\r\n define('_KEYWORDS',_BUY_ONLINE);\r\r\n define('_DESCRIPTION',_BUY_ONLINE);\r\r\n define('_TITLE_PAGE',_BUY_ONLINE);\r\r\n }", "public function setBlankDesc($value)\n {\n $this->internalEmptyDescription = $value;\n }", "public function getProdDescription()\n {\n return $this->prod_description;\n }" ]
[ "0.60098225", "0.58726335", "0.5851088", "0.5848206", "0.57029873", "0.56836706", "0.5661169", "0.5646697", "0.5539896", "0.5532644", "0.5496742", "0.5471544", "0.54542303", "0.5436323", "0.54194427", "0.5414915", "0.5409879", "0.54051936", "0.53807336", "0.5362209", "0.53576225", "0.53542924", "0.5353489", "0.5346339", "0.5345291", "0.5341101", "0.5337808", "0.5331802", "0.5330729", "0.5324989", "0.5324772", "0.5323147", "0.53148043", "0.53009945", "0.52864426", "0.5269353", "0.52682495", "0.5237739", "0.5224541", "0.5222545", "0.5222545", "0.5214831", "0.5198702", "0.51978445", "0.5192578", "0.517794", "0.51712215", "0.5170083", "0.5170083", "0.5170083", "0.5170083", "0.5170083", "0.5170083", "0.5170083", "0.5170083", "0.5170083", "0.5170083", "0.5170083", "0.5170083", "0.5170083", "0.51699626", "0.51550764", "0.5152806", "0.51268506", "0.51002204", "0.51002204", "0.51002204", "0.51002204", "0.51002204", "0.51002204", "0.51002204", "0.51002204", "0.5037727", "0.5030769", "0.5030001", "0.502663", "0.50201595", "0.50142646", "0.50051683", "0.5002893", "0.5002832", "0.4994474", "0.4987562", "0.49581856", "0.49466267", "0.49455476", "0.49449", "0.49416035", "0.49339637", "0.49318588", "0.49318588", "0.49318588", "0.49318588", "0.49318588", "0.49318588", "0.49290377", "0.49289018", "0.49285328", "0.49255645", "0.48960602" ]
0.5780863
4
setProdFront() Set the value of [prod_keywords] column.
public function setProdKeywords($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_keywords !== $v) { $this->prod_keywords = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdFront($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_front !== $v) {\n $this->prod_front = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_FRONT] = true;\n }\n\n return $this;\n }", "protected function setKeywords() {\r\n\t\t$keywords = $this->newsItem->getKeywords();\r\n\t\t$keywordsAction = $this->settings['news']['semantic']['general']['keywords']['action'];\r\n\t\t$pageKeywords = $GLOBALS['TSFE']->page['keywords'];\r\n\t\tif (!empty($keywordsAction) && !empty($pageKeywords)) {\r\n\t\t\tswitch ($keywordsAction) {\r\n\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t$keywords = (empty($keywords)) ? $pageKeywords : $keywords . ', ' . $pageKeywords;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'append':\r\n\t\t\t\t\t$keywords = (empty($keywords)) ? $pageKeywords : $pageKeywords . ',' . $keywords;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t}\r\n\t\t}\r\n\t\t$keywordsArray = t3lib_div::trimExplode(',', $keywords);\r\n\t\t$keywordsLimit = intval($this->settings['news']['semantic']['general']['keywords']['limit']);\r\n\t\t$this->keywords = (empty($keywordsLimit)) ? array_unique($keywordsArray) : $this->keywords = array_slice(array_unique($keywordsArray), 0, $keywordsLimit);\r\n\t}", "protected function setKeyword($value)\n\t{\n\t\t$this->keyword = $value;\n\t}", "public function setKeywords($keywords)\n {\n $this->keywords = (array)$keywords;\n }", "public function getProdKeywords()\n {\n return $this->prod_keywords;\n }", "public function getProdFront()\n {\n return $this->prod_front;\n }", "public function setProdKeywordsWriteup($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_keywords_writeup !== $v) {\n $this->prod_keywords_writeup = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP] = true;\n }\n\n return $this;\n }", "public function setKeywords($keywords)\n\t{\n\t\t$this->keywords = $keywords;\n\n\t\tif($this->pageInitialized)\n\t\t\t$this->setMetaTag('keywords', $this->keywords);\n\t}", "public function setKeywords(string $keywords)\n {\n $this->keywords = $keywords;\n }", "public function setKeyWord($key){\n $this->keyword = $key;\n }", "public function setKeywords($val)\n {\n $this->_propDict[\"keywords\"] = $val;\n return $this;\n }", "public function setKeywords($keywords)\n\t{\n\t\tif( ! is_array($keywords))\n\t\t{\n\t\t\t$keywords = explode(',', $keywords);\n\t\t}\n\n\t\t// Flatten the array into single column\n\t\t$keywords = array_flatten($keywords);\n\t\t// Trim & lowercase the array\n\t\t$keywords = array_map('trim', $keywords);\n\t\t$keywords = array_map('strtolower', $keywords);\n\n\t\t$this->keywords = $keywords;\n\n\t\treturn $keywords;\n\t}", "public function setKeywords($keywords, $encoding = 'UTF-8') {}", "public function setFrontUrl(string $front)\n {\n $this->front = $front;\n return $this;\n }", "public function setDisplayFront($display_front)\n {\n return $this->setData(self::DISPLAY_FRONT, $display_front);\n }", "public function setKeyword($keyword){\r\n $this->keyword = $keyword;\r\n }", "public function SetStart()\n\t\t{\n\t\t\t$start = 0;\n\n\t\t\tswitch ($this->_pricepage) {\n\t\t\t\tcase 1: {\n\t\t\t\t\t$start = 0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// Page 2 or more\n\t\t\t\tdefault: {\n\t\t\t\t\t$start = ($this->GetPage() * GetConfig('CategoryProductsPerPage')) - GetConfig('CategoryProductsPerPage');\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->_pricestart = $start;\n\t\t}", "protected function cleanupFeedMetaKeywords(Product $product)\n\t{\n\t\t$keywords = $product->getMetaKeywords();\n\n\t\t// Trim size\n\t\t$keywords = substr($keywords, 0, 254);\n\n\t\t$product->setMetaKeywords($keywords);\n\t}", "function setKeywords($keywords) {\n $this->fields['keywords'] = $keywords;\n return $this;\n }", "public function add_keywords ( $new_keywords )\r\n\t\t{\r\n\t\t\r\n\t\t\t$this->errno = DB_OK;\r\n\r\n\t\t\tif ( $this->cat_id == -1 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tSuch category hasn't been created\r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_ID;\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( ! ( $result = $this->con->query( \"SELECT cat_keywords FROM category WHERE cat_id=$this->cat_id\" ) ) )\r\n\t\t\t{\r\n\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( $result->num_rows == 1 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tas the id is unique one row should have been returned\r\n\t\t\t{\r\n\t\t\t\t$row = $result->fetch_row();\r\n\t\t\t\t$kw = $row[0];\r\n\t\t\t}\t\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->errno = MYSQL_ERROR;\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t/* gathering all keywords into one variable with # as delimiter to insert it to the database */\r\n\t\t\t$kw_length = 0; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tinitialize with 0 in case the keywords array hasn't been set\r\n\t\r\n\t\t\tif ( isset ( $new_keywords ) )\r\n\t\t\t\t$kw_length = count( $new_keywords );\r\n\r\n\t\t\tif ( $kw_length == 0 )\r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_INPUT;\r\n\t\t\t\treturn ;\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor ( $i = 0; $i < $kw_length; $i++ )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tgenerating the keyword string which will enter to the database\r\n\t\t\t\t$kw = $kw.\"#\".$new_keywords[$i];\t\t\t\r\n\t\t\t\r\n\t\t\tif( !$this->con->query( \"UPDATE category SET cat_keywords=\\\"$kw\\\" WHERE cat_id=$this->cat_id;\" ) )\t\t\t\r\n\t\t\t{\r\n\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\r\n\t\t\t\treturn ;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to query\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t$this->cat_keywords = NULL;\r\n\t\t\t\r\n\t\t\t$tok = strtok( $kw, \"#\" );\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tturning the keywords string into an array\r\n\t\t\t\r\n\t\t\twhile ( $tok !== false ) \r\n\t\t\t{\r\n\t\t\t\t$this->cat_keywords [] = $tok;\r\n\t\t\t\t$tok = strtok( \"#\" );\r\n\t\t\t}\t\t\t\r\n\t\r\n\t\t}", "public function front( bool $front = true ): self {\n\t\t$this->front = $front;\n\t\treturn $this;\n\t}", "static public function setKeywords($new_keywords) {\n\t\tif (is_string($new_keywords)) {\n\t\t\t$new_keywords = explode(',', $new_keywords);\n\t\t\tforeach($new_keywords as &$keyword) {\n\t\t\t\t$keyword = trim($keyword);\n\t\t\t}\n\t\t}\n\t\tself::$page_keywords = (array)$new_keywords;\n\t}", "public function setKeyword($value)\n {\n return $this->set('Keyword', $value);\n }", "public function setKeyword($value)\n {\n return $this->set('Keyword', $value);\n }", "public function getProdKeywordsWriteup()\n {\n return $this->prod_keywords_writeup;\n }", "public function testSetAndGetKeyword()\n {\n $keyword = 'key';\n $value = 'this should be saved and retrieved';\n\n // Execute.\n $this->testObject->setKeyword($keyword, $value);\n\n // Get the keyword out.\n $result = $this->testObject->getKeyword($keyword);\n\n // Assert Result.\n $this->assertEquals($value, $result);\n $this->assertEquals($value, $_SESSION['behat']['GenesisSqlExtension']['keywords'][$keyword]);\n }", "public function front( bool $is_front = true ): self {\n\t\t$this->is_front = $is_front;\n\t\treturn $this;\n\t}", "public function AddHeadKeywords($keywords){\r\n\t\t$this->head->AddKeywords($keywords);\r\n\t}", "function _set_search_keywords ($referer = \"\") {\n\t\n\t\tif (empty($referer)) {\n\t\t\t$referer = $_SERVER[\"HTTP_REFERER\"];\n\t\t\t$batch_mode = true;\n\t\t}\n\t\t// Return error message if no referer\n\t\tif (!strlen($referer)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// process parsing referer field\n\t\t$parsed_url\t= @parse_url($referer);\n\t\t$host\t\t= $parsed_url[\"host\"];\n\t\t$query\t\t= $parsed_url[\"query\"].\"\\r\\n\";\n\t\t\n\t\t// Check if search engine is known by system\n\t\tif (!isset($this->_search_engines[$host])) {\n\t\t\treturn false;\n\t\t}\n\t\t$cur_se\t\t\t= $this->_search_engines[$host];\n\t\t// Process keywords\n\t\t$parsed_url[\"query\"] = str_replace([\"./?\",\"./\"], \"\", $parsed_url[\"query\"]);\n\t\tparse_str($parsed_url[\"query\"], $parsed_query);\n\t\t$q_s_charset\t= $parsed_query[$cur_se[\"q_s_charset\"]];\n\t\t$q_s_word\t\t= $parsed_query[$cur_se[\"q_s_word\"]];\n\t\t$charset\t\t= isset($q_s_charset) ? $q_s_charset : $cur_se[\"def_charset\"];\n\t\t$search_query\t= isset($q_s_word) ? $q_s_word : $parsed_query[$cur_se[\"q_s_word2\"]];\n\t\t$search_query\t= trim(stripslashes(strlen($charset) ? iconv($charset, conf('charset'), $search_query) : $search_query));\n\t\t// Check for search query\n\t\tif (empty($search_query)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Set referral cookie\n\t\t$COOKIE_VAR_NAME = \"ref_code\";\n\t\tif (!$batch_mode && empty($_COOKIE[$COOKIE_VAR_NAME])) {\n\t\t\t$code = $cur_se[\"name\"];\n\t\t\tsetcookie($COOKIE_VAR_NAME, $code, time() + 86400 * 30, \"/\");\n\t\t}\n\t\t// Limit number of keywords\n\t\tif (!empty($this->MAX_TOTAL_KEYWORDS)) {\n\t\t\tlist($current_keywords_num) = db()->query_fetch(\"SELECT COUNT(*) AS `0` FROM \".db('search_keywords').\"\");\n\t\t}\n\t\tif (!empty($this->MAX_TOTAL_KEYWORDS) && $current_keywords_num >= $this->MAX_TOTAL_KEYWORDS) {\n\t\t\tdb()->_add_shutdown_query(\n\t\t\t\t\"UPDATE \".db('search_keywords').\" \n\t\t\t\tSET hits = hits + 1, \n\t\t\t\t\tlast_update = \".time().\"\n\t\t\t\tWHERE text='\"._es($search_query).\"'\"\n\t\t\t);\n\t\t} else {\n\t\t\t// Check if such record already exists\n\t\t\t$sql = \"INSERT INTO \".db('search_keywords').\" (\n\t\t\t\t\tengine,\n\t\t\t\t\ttext,\n\t\t\t\t\tref_url,\n\t\t\t\t\tsite_url,\n\t\t\t\t\tlast_update,\n\t\t\t\t\thits\n\t\t\t\t) VALUES (\n\t\t\t\t\t\".intval($this->_search_engines[$host][\"id\"]).\",\n\t\t\t\t\t'\"._es($search_query).\"',\n\t\t\t\t\t'\"._es($referer).\"',\n\t\t\t\t\t'\"._es(\"http://\".$_SERVER[\"HTTP_HOST\"].$_SERVER[\"REQUEST_URI\"]).\"',\n\t\t\t\t\t\".time().\",\n\t\t\t\t\thits + 1 \n\t\t\t\t) ON DUPLICATE KEY UPDATE hits = hits + 1\\r\\n\";\n\t\t\tdb()->_add_shutdown_query($sql);\n\t\t}\n\t\t// Check if we need to update most popular right now\n\t\tif ($this->UPDATE_POPULAR_RAND > 1) {\n\t\t\tif (rand(1, $this->UPDATE_POPULAR_RAND) != 1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t// Update system cache\n\t\tif (!$batch_mode && main()->USE_SYSTEM_CACHE) {\n\t\t\tmain()->_add_shutdown_code('cache()->refresh(\"search_keywords_most_popular\");');\n\t\t}\n\t}", "public function setKeywords($value)\n {\n return $this->set('Keywords', $value);\n }", "protected function _setSearchKeywords()\n {\n try {\n\n if (is_null($this->_keywords)) {\n if ($this->getSearchKeyword()) {\n $this->_keywords['searchKeyword'] = $this->getSearchKeyword();\n }\n $searchCriterias = $this->getSearchCriterias();\n if (isset($searchCriterias['q'])) {\n unset($searchCriterias['q']);\n }\n if (!empty($searchCriterias)) {\n foreach ($searchCriterias as $key => $criteria) {\n if ($key == 'price') {\n\n if (isset($criteria['from'])) {\n $this->_keywords['minPrice'] = $criteria['from'];\n }\n if (isset($criteria['to'])) {\n $this->_keywords['maxPrice'] = $criteria['to'];\n }\n\n } else {\n if (is_array($criteria)) {\n $this->_keywords[$key] = $this->escapeHtml(strtolower(implode(',', $criteria)));\n } else {\n $this->_keywords[$key] = $this->escapeHtml(strtolower($criteria));\n }\n\n }\n\n }\n }\n\n }\n\n return $this->_keywords;\n\n } catch (Mage_Core_Exception $e) {\n $this->getGravityHelper()->getLogger($e->getMessage());\n } catch (Exception $e) {\n $this->getGravityHelper()->getLogger(\n $e->getMessage(),\n $this->getGravityHelper()->__('An error occurred while setting search keywords.')\n );\n }\n }", "static function metabox_to_deal_keywords($post){\t\t \t\n\t\t\tinclude self::get_script_location('metabox-for-product.php', 'admin');\t\t \t\n\t\t }", "public function setKeywords(?AnswerKeyword $value): void {\n $this->getBackingStore()->set('keywords', $value);\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function setKeywords($keywords) {\n $this->properties['keywords'] = $keywords;\n\n return $this;\n }", "public function testAssignKeywords()\n {\n $this->markTestIncomplete(\n 'This test has not been implemented yet.'\n );\n }", "public function productsAction()\n {\n $this->_initCoursedoc();\n $this->loadLayout();\n $this->getLayout()->getBlock('coursedoc.edit.tab.product')\n ->setCoursedocProducts($this->getRequest()->getPost('coursedoc_products', null));\n $this->renderLayout();\n }", "public function setKeywords($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->keywords = $arr;\n\n return $this;\n }", "public function setProducts(array $products = []): void\n {\n $xml = '';\n\n foreach ($products as $id) {\n $xml .= '<product-set-product product-id=\"' . Xml::escape($id) . '\" />' . PHP_EOL;\n }\n\n $this->elements['product-set-products'] = $xml;\n }", "public function setKeywords($keywords, int $maxLength = null);", "public function set_keywords($keywords)\n\t{\n\t\tif (is_null($keywords)) {\n\t\t\tthrow new InvalidArgumentException(\"Project Keywords Invalid!\");\n\t\t}\n\t\t$this->keywords = $keywords;\n\t}", "public function setExcerpt($excerpt)\r\n\t\t{\r\n\t\t\t$this->setExcerpt = $excerpt;\r\n\t\t}", "public function setKeywords(string $keywords) : self\n {\n $this->keywords = $keywords;\n return $this;\n }", "public function setPrimaryKey($key)\n {\n $this->setProdId($key);\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "private function setStockOptions() {\n // Reset the settings if this is a recrawl\n if ($this->getSaverData()->isRecrawl()) {\n // Set the stock quantity\n $this->product->set_stock_quantity(null);\n\n // Set backorders\n $this->product->set_backorders('no');\n\n // Set the low stock amount if it exists\n $this->product->set_low_stock_amount('');\n }\n\n // If the stock is not managed, set the stock status and stop.\n if (!$this->wcData->isManageStock()) {\n $this->product->set_manage_stock(false);\n $this->product->set_stock_status($this->wcData->getStockStatus());\n return;\n }\n\n // Stock is managed\n $this->product->set_manage_stock(true);\n\n // Set the stock quantity\n $this->product->set_stock_quantity($this->wcData->getStockQuantity());\n\n // Set backorders\n $this->product->set_backorders($this->wcData->getBackorders());\n\n // Set the low stock amount if it exists\n $this->product->set_low_stock_amount($this->wcData->getLowStockAmount());\n }", "public function actionIndex()\n\t{\n\t\t#推荐产品\n\t\t$bestproduct = Faq::model()->findAll('csc_cate_id=:cid AND csc_best=1 order by csc_sort DESC limit 4',array('cid'=>'2'));\n\t\t$this->keywords = Yii::app()->params['site']['keyword'];\n//\t\tdump($bestproduct);die;\n\t\t$this->render('index',array(\n\t\t\t 'bestproduct'=>$bestproduct,\n\t\t ));\n\t}", "function set_keywords_from_search_query()\n\t{\n\t\t$santizied_search_query = $this->get_sanitized_search_query($this->search_query);\n\t\n\t\t$keywords_to_search_for = explode(' ',$santizied_search_query);\n\t\t$unique_keywords = array_unique($keywords_to_search_for);\n\t\t\n\t\t$this->keywords_to_search_for = $this->remove_ignored_keywords_from_array($unique_keywords);\n\t}", "function dp_meta_keywords() {\n\t$keywords = '';\n\n\tif ( is_singular() && !is_preview() ) {\n\t\t$post = get_queried_object();\n\t\t$taxonomies = get_object_taxonomies( $post->post_type );\n\t\tif ( is_array( $taxonomies ) ) {\n\t\t\tforeach ( $taxonomies as $tax ) {\n\t\t\t\tif ( $terms = get_the_term_list( get_queried_object_id(), $tax, '', ', ', '' ) )\n\t\t\t\t\t$keywords[] = $terms;\n\t\t\t}\n\t\t\tif ( !empty( $keywords ) )\n\t\t\t\t$keywords = join( ', ', $keywords );\n\t\t}\n\t}\n\n\tif(!empty($keywords))\n\t\t$keywords = '<meta name=\"keywords\" content=\"' . esc_attr( strip_tags( $keywords ) ) . '\" />' . \"\\n\";\n\n\techo apply_filters( 'dp_meta_keywords', $keywords );\n}", "public function post_excerpt( $key ) {\n\t\t$this->data['post_excerpt'] = $key;\n\t}", "private function prepareExternalProduct() {\n if ($this->getSaverData()->isFirstPage()) {\n $this->setPrice();\n $this->setSKU();\n $this->setEnableReviews();\n $this->setMenuOrder();\n $this->setExternalProductDetails();\n }\n\n $this->setTags();\n $this->setAttributes();\n }", "private function default_keywords() {\n\t\t// Default keywords.\n\t\techo WPSEO_News_Wrappers::textinput( 'default_keywords', __( 'Default Keywords', 'wordpress-seo-news' ) );\n\t\techo '<p class=\"desc label\">' . sprintf(\n\t\t\t/* translators: %1$s opening tag of the link to the Google suggested keywords page, %2$s closing tag for the link. */\n\t\t\t__( 'It might be wise to add some of the %1$sGoogle\\'s suggested keywords%2$s to all of your posts. Add them as a comma separated list.', 'wordpress-seo-news' ),\n\t\t\t'<a target=\"_blank\" href=\"http://www.google.com/support/news_pub/bin/answer.py?answer=116037\">',\n\t\t\t'</a>'\n\t\t) . '</p>';\n\n\t\techo WPSEO_News_Wrappers::checkbox( 'restrict_sitemap_featured_img', __( 'Only use the featured image for your News Sitemap, ignore images in post.', 'wordpress-seo-news' ), false );\n\t\techo '<br>';\n\t}", "public function setSeoKeywords($v)\n { $this->getCurrentTranslation()->setSeoKeywords($v);\n\n return $this;\n }", "public function setFocus($focus) {\n $this->focus = $focus;\n }", "static function save_keywords($post_id, $keywords){\n\t\t\tupdate_post_meta($post_id, 'affiliate_keywords', $keywords);\n\t\t}", "public function productsgridAction()\n {\n $this->_initCoursedoc();\n $this->loadLayout();\n $this->getLayout()->getBlock('coursedoc.edit.tab.product')\n ->setCoursedocProducts($this->getRequest()->getPost('coursedoc_products', null));\n $this->renderLayout();\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setProdId($value);\n break;\n case 1:\n $this->setProdPriceId($value);\n break;\n case 2:\n $this->setProdName($value);\n break;\n case 3:\n $this->setProdAlt1($value);\n break;\n case 4:\n $this->setProdAlt2($value);\n break;\n case 5:\n $this->setProdAlt3($value);\n break;\n case 6:\n $this->setProdAlt4($value);\n break;\n case 7:\n $this->setProdCode($value);\n break;\n case 8:\n $this->setProdCategory($value);\n break;\n case 9:\n $this->setProdCategoryShipping($value);\n break;\n case 10:\n $this->setProdWriteup($value);\n break;\n case 11:\n $this->setProdLength($value);\n break;\n case 12:\n $this->setProdWingspan($value);\n break;\n case 13:\n $this->setProdHeight($value);\n break;\n case 14:\n $this->setProdScale($value);\n break;\n case 15:\n $this->setProdLinks($value);\n break;\n case 16:\n $this->setProdLinkdescription($value);\n break;\n case 17:\n $this->setProdFront($value);\n break;\n case 18:\n $this->setProdKeywords($value);\n break;\n case 19:\n $this->setProdKeywordsWriteup($value);\n break;\n case 20:\n $this->setProdTitle($value);\n break;\n case 21:\n $this->setProdDescription($value);\n break;\n case 22:\n $this->setProdGeneral($value);\n break;\n case 23:\n $this->setProdEra($value);\n break;\n case 24:\n $this->setProdCompany($value);\n break;\n case 25:\n $this->setProdRelated($value);\n break;\n case 26:\n $this->setProdRelatedPa($value);\n break;\n case 27:\n $this->setProdRelatedM3($value);\n break;\n case 28:\n $this->setProdRelated2($value);\n break;\n case 29:\n $this->setProdSaveas($value);\n break;\n case 30:\n $this->setProdAircraftreg($value);\n break;\n case 31:\n $this->setMb($value);\n break;\n case 32:\n $this->setPa($value);\n break;\n case 33:\n $this->setM3($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setExcerpt(string $excerpt): void\n {\n $this->_excerpt = $excerpt;\n }", "public function setSearchTerms($search_terms)\n {\n # Set the variable.\n $this->search_terms = $search_terms;\n }", "public function setProductKey($val)\n {\n $this->_propDict[\"productKey\"] = $val;\n return $this;\n }", "public function setProductKey($val)\n {\n $this->_propDict[\"productKey\"] = $val;\n return $this;\n }", "function setIdkitprodutos($idkitprodutos) {\n $this->idkitprodutos = $idkitprodutos;\n }", "function set_product_sequence($voucher_id, $prod_id, $seq)\n\t{\n\t\t$this->db->where(array('voucher_id'=>$voucher_id, 'product_id'=>$prod_id));\n\t\t$this->db->update('vouchers_products', array('sequence'=>$seq));\n\t}", "public function setKeywords($keywords)\n {\n $this->keywords = $keywords;\n\n return $this;\n }", "public function setProductName(?string $value): void {\n $this->getBackingStore()->set('productName', $value);\n }", "public function setTopic($topic, $updateFirstPost = true) {\n\t\tif ($topic == $this->topic) return;\n\t\t\n\t\t$this->topic = $topic;\n\t\t$sql = \"UPDATE \twbb\".WBB_N.\"_thread\n\t\t\tSET\ttopic = '\".escapeString($topic).\"'\n\t\t\tWHERE \tthreadID = \".$this->threadID;\n\t\tWCF::getDB()->registerShutdownUpdate($sql);\n\t\t\n\t\t// update the subject of the first post in this thread\n\t\tif ($updateFirstPost && $this->firstPostID) {\n\t\t\t$sql = \"UPDATE \twbb\".WBB_N.\"_post\n\t\t\t\tSET\tsubject = '\".escapeString($topic).\"'\n\t\t\t\tWHERE \tpostID = \".$this->firstPostID;\n\t\t\tWCF::getDB()->registerShutdownUpdate($sql);\n\t\t}\n\t}", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "public function set_content() {\n\n\t\t$this->content = get_the_term_list( $this->data, $this->taxonomy, $this->prepend, $this->delimiter, $this->append );\n\t}", "public function setHaystack(array $haystack) {\n $this->haystack = $haystack;\n }", "public function setEtiqDeFront($etiqDeFront) {\n $this->etiqDeFront = $etiqDeFront;\n return $this;\n }", "public function setTopic($topic)\n {\n $this->_topic = $topic;\n }", "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "function Show_favproducts($cust_id)\n\t\t{\n\t\t\tglobal $ecom_siteid,$db,$ecom_hostname,$Settings_arr,$ecom_themeid,$default_layout,$Captions_arr,$inlineSiteComponents;\n\t\t\t$customer_id \t\t\t\t\t= get_session_var(\"ecom_login_customer\");\n if($customer_id)\n\t\t\t{\n\t\t\t$sql_last_login = \"SELECT customer_last_login_date FROM customers WHERE sites_site_id=$ecom_siteid AND customer_id=$customer_id\";\n\t\t\t$ret_last_login = $db->query($sql_last_login);\n\t\t\tlist($row_last_login) = $db->fetch_array($ret_last_login);\n\t\t\t}\n\t\t $Captions_arr['LOGIN_HOME'] = getCaptions('LOGIN_HOME'); // to get values for the captions from the general settings site captions\n\t\t\t$prodcur_arr =array();\n\t\t\t\t$prodperpage\t\t\t= ($Settings_arr['product_maxcnt_fav_category']>0)?$Settings_arr['product_maxcnt_fav_category']:10;//Hardcoded at the moment. Need to change to a variable that can be set in the console.\n\t\t\t\t//$limit = $Settings_arr['product_maxcnt_fav_category'];\n\t\t\t\t$favsort_by\t\t\t\t= $Settings_arr['product_orderby_favorite'];\n\t\t\t\t$prodsort_order\t\t\t= $Settings_arr['product_orderfield_favorite'];\n\t\t\t\tswitch ($prodsort_order)\n\t\t\t\t{\n\t\t\t\t\tcase 'product_name': // case of order by product name\n\t\t\t\t\t$prodsort_order\t\t= 'product_name';\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'price': // case of order by price\n\t\t\t\t\t$prodsort_order\t\t= 'product_webprice';\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'product_id': // case of order by price\n\t\t\t\t\t$prodsort_order\t\t= 'product_id';\n\t\t\t\t\tbreak;\t\n\t\t\t\t};\n\t\t\t\tif ($_REQUEST['req']!='')// LIMIT for Favorites is applied only if not displayed in home page\n\t\t\t\t{\n\t\t\t\t\t$start_varprod \t\t= prepare_paging($_REQUEST[$pg_variableprod],$prodperpage,$tot_cntprod);\n\t\t\t\t\t$Limitprod\t\t\t= \" LIMIT \".$start_varprod['startrec'].\", \".$prodperpage;\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t\t$Limitprod = '';\n\t\t\t\t$pg_variableprod\t\t= 'prod_pg';\n\t\t \t $sql_fav_products = \"SELECT id,a.product_id,a.product_name,a.product_variablestock_allowed,a.product_show_cartlink,\n\t\t\t\t\t\t\t\ta.product_preorder_allowed,a.product_show_enquirelink,a.product_webstock,a.product_webprice,\n\t\t\t\t\t\t\t\ta.product_discount,a.product_discount_enteredasval,a.product_bulkdiscount_allowed,\n\t\t\t\t\t\t\t\tproduct_total_preorder_allowed,a.product_applytax,a.product_shortdesc,a.product_bonuspoints,\n\t\t\t\t\t\t\t\ta.product_stock_notification_required,a.product_alloworder_notinstock,a.product_variables_exists,a.product_variablesaddonprice_exists,\n\t\t\t\t\t\t\t\ta.product_variablecomboprice_allowed,a.product_variablecombocommon_image_allowed,a.default_comb_id,\n\t\t\t\t\t\t\t\ta.price_normalprefix,a.price_normalsuffix, a.price_fromprefix, a.price_fromsuffix,a.price_specialofferprefix, a.price_specialoffersuffix, \n\t\t\t\t\t\t\t\ta.price_discountprefix, a.price_discountsuffix, a.price_yousaveprefix, a.price_yousavesuffix,a.price_noprice,\n\t\t\t\t\t\t\t\ta.product_averagerating,a.product_saleicon_show,a.product_saleicon_text,a.product_newicon_show,a.product_newicon_text,\n\t\t\t\t\t\t\t\ta.product_freedelivery \n\t\t\t\t\t\t\t\t\tFROM \n\t\t\t\t\t\t\t\t\t\tproducts a,customer_fav_products cfp\n\t\t\t\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\t\t\t\t a.product_id = cfp.products_product_id AND a.product_hide='N' AND\n\t\t\t\t\t\t\t\tcfp.sites_site_id = $ecom_siteid AND cfp.customer_customer_id = $cust_id\n\t\t\t\t\t\t\t\t\tORDER BY $prodsort_order $favsort_by $Limitprod\t\";\n\t\t\t\t\t$ret_fav_products = $db->query($sql_fav_products);\n\t\t\t\t\t$tot_cnt \t= $db->num_rows($ret_fav_products); \n\t\t\t$prod_compare_enabled = isProductCompareEnabled();\n\t\t\t?>\n\t\t\t<div class=\"treemenu\"><a href=\"<? url_link('');?>\"><?=$Captions_arr['COMMON']['TREE_MENU_HOME_LINK'];?></a> >> \n\t\t\t<?php\n\t\t\t\tif ($db->num_rows($ret_fav_products)==1)\n\t\t\t\t\techo stripslash_normal($Captions_arr['LOGIN_HOME']['LOGIN_HOME_FAV_PRODUCT_HEADER']);\n\t\t\t\telse\n\t\t\t\t\techo stripslash_normal($Captions_arr['LOGIN_HOME']['LOGIN_HOME_FAV_PRODUCTS_HEADER']);\n\t\t\t?>\n\t\t\t</div>\n\t\t\t\n\t\t\t<?php\t\n\t\t\t$displaytype = $Settings_arr['favorite_prodlisting'];\n\t\t\t$pass_type = get_default_imagetype('midshelf');\n\t\t\t$comp_active = isProductCompareEnabled();\n\t\t\tswitch($displaytype)\n\t\t\t{ \n\t\t\t\tcase '1row':\n\t\t\t\t?>\n\t\t\t\t\t<div class=\"shelf_main_con\" >\n\t\t\t\t\t<div class=\"shelf_top\"><?=stripslash_normal($Captions_arr['LOGIN_HOME']['LOGIN_HOME_FAV_PRODUCTS_HEADER'])?></div>\n\t\t\t\t\t<div class=\"shelf_mid\">\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t$cur = 1;\n\t\t\t\t\t\twhile($row_prod = $db->fetch_array($ret_fav_products))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($cur==$tot_cnt)\n\t\t\t\t\t\t\t\t$main_shelf = 'shlf_main_last';\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t$main_shelf = 'shlf_main';\n\t\t\t\t\t\t\t$cur++;\n\t\t\t\t\t\t\t\n\t\t\t\t\t?>\n\t\t\t\t\t\t\t<div class=\"<?php echo $main_shelf?>\">\n\t\t\t\t\t\t\t<div class=\"shlf_pdt_img_outr\">\n\t\t\t\t\t\t\t<div class=\"shlf_pdt_img\">\n\t\t\t\t\t\t\t\t<a href=\"<?php url_product($row_prod['product_id'],$row_prod['product_name'],-1)?>\" title=\"<?php echo stripslashes($row_prod['product_name'])?>\">\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t// Calling the function to get the image to be shown\n\t\t\t\t\t\t\t\t\t$img_arr = get_imagelist('prod',$row_prod['product_id'],$pass_type,0,0,1);\n\t\t\t\t\t\t\t\t\tif(count($img_arr))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tshow_image(url_root_image($img_arr[0][$pass_type],1),$row_prod['product_name'],$row_prod['product_name']);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t// calling the function to get the default image\n\t\t\t\t\t\t\t\t\t\t$no_img = get_noimage('prod',$pass_type); \n\t\t\t\t\t\t\t\t\t\tif ($no_img)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tshow_image($no_img,$row_prod['product_name'],$row_prod['product_name']);\n\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t$module_name = 'mod_product_reviews';\n\t\t\t\t\t\t\t\t\tif(in_array($module_name,$inlineSiteComponents))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif($row_prod['product_averagerating']>=0)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"shelfB_rate\">\n\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\tdisplay_rating($row_prod['product_averagerating']);\n\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t?>\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"shlf_pdt_compare\" >\n\t\t\t\t\t\t\t<?php if($comp_active) {\n\t\t\t\t\t\t\t\t\t\tdislplayCompareButton($row_prod['product_id']);\n\t\t\t\t\t\t\t\t\t}?>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"shlf_pdt_txt\">\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\tif($row_prod['product_freedelivery']==1)\n\t\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t<div class=\"free_delivery\"></div>\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif($row_prod['product_bulkdiscount_allowed']=='Y')\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t<div class=\"bulk_discount\"></div>\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<ul class=\"shlf_pdt_ul\">\n\t\t\t\t\t\t\t<li class=\"shlf_pdt_name\" ><h3><a href=\"<?php url_product($row_prod['product_id'],$row_prod['product_name'],-1)?>\" title=\"<?php echo stripslashes($row_prod['product_name'])?>\"><?php echo stripslashes($row_prod['product_name'])?></a></h3></li>\n\t\t\t\t\t\t\t<li class=\"shlf_pdt_des\"><h6>\t<?php echo stripslashes($row_prod['product_shortdesc'])?></h6></li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t$price_class_arr['ul_class'] \t\t= 'shelf_price_ul';\n\t\t\t\t\t\t\t\t$price_class_arr['normal_class'] \t= 'shelfAnormalprice';\n\t\t\t\t\t\t\t\t$price_class_arr['strike_class'] \t= 'shelfAstrikeprice';\n\t\t\t\t\t\t\t\t$price_class_arr['yousave_class'] \t= 'shelfAyousaveprice';\n\t\t\t\t\t\t\t\t$price_class_arr['discount_class'] \t= 'shelfAdiscountprice';\n\t\t\t\t\t\t\t\techo show_Price($row_prod,$price_class_arr,'shelfcenter_1');\n\t\t\t\t\t\t\t\tshow_excluding_vat_msg($row_prod,'vat_div');// show excluding VAT msg\n\t\t\t\t\t\t\t\tshow_bonus_points_msg($row_prod,'bonus_point'); // Show bonus points\n\t\t\t\t\t\t\t\t$frm_name = uniqid('favprod_');\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<form method=\"post\" action=\"<?php url_link('manage_products.html')?>\" name='<?php echo $frm_name?>' id=\"<?php echo $frm_name?>\" class=\"frm_cls\" onsubmit=\"return product_enterkey(this,<?php echo $row_prod['product_id']?>)\">\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"fpurpose\" value=\"\" />\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"fproduct_id\" value=\"\" />\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"pass_url\" value=\"<?php echo $_SERVER['REQUEST_URI']?>\" />\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"fproduct_url\" value=\"<?php url_product($row_prod['product_id'],$row_prod['product_name'])?>\" />\n\t\t\t\t\t\t\t<div class=\"infodiv\">\n\t\t\t\t\t\t\t<div class=\"infodivleft\"><?php show_moreinfo($row_prod,'infolink')?></div>\n\t\t\t\t\t\t\t<div class=\"infodivright\">\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t$class_arr \t\t\t\t\t\t\t= array();\n\t\t\t\t\t\t\t\t\t$class_arr['ADD_TO_CART']\t= 'quantity_infolink';\n\t\t\t\t\t\t\t\t\t$class_arr['PREORDER']\t\t\t= 'quantity_infolink';\n\t\t\t\t\t\t\t\t\t$class_arr['ENQUIRE']\t\t\t= 'quantity_infolink';\n\t\t\t\t\t\t\t\t\tshow_addtocart($row_prod,$class_arr,$frm_name)\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tif($row_prod['product_saleicon_show']==1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$desc = stripslash_normal(trim($row_prod['product_saleicon_text']));\n\t\t\t\t\t\t\t\t\tif($desc!='')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t<div class=\"mid_shlf_pdt_sale\"><?php echo $desc?></div>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\tif($row_prod['product_newicon_show']==1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$desc = stripslash_normal(trim($row_prod['product_newicon_text']));\n\t\t\t\t\t\t\t\t\tif($desc!='')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t<div class=\"mid_shlf_pdt_new\"><?php echo $desc?></div>\t\t\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t<?php\n\t\t\t\t\t\t}\n\t\t\t\t\t?>\n\t\t\t\t\t</div>\n\t\t\t\t <div class=\"shelf_bottom\"></div>\n\t\t\t </div>\n\t\t\t\t<?\n\t\t\t\tbreak;\n\t\t\t\tcase '3row':\n\t\t\t?>\t\t\t\t\t\n\t\t\t\t<div class=\"shelfA_main_con\" > \n\t\t\t\t<div class=\"shelfA_top\"><?=stripslash_normal($Captions_arr['LOGIN_HOME']['LOGIN_HOME_FAV_PRODUCTS_HEADER'])?></div>\n\t\t\t\t<div class=\"shelfA_mid\">\n\t\t\t\t<?php\n\t\t\t\t\t$max_col = 3;\n\t\t\t\t\t$cur_col = 0;\n\t\t\t\t\t$prodcur_arr = array();\n\t\t\t\t\t$cur_tot_cnt = $db->num_rows($ret_fav_products);\n\t\t\t\t\t$cur = 1;\n\t\t\t\t\twhile($row_prod = $db->fetch_array($ret_fav_products))\n\t\t\t\t\t{\n\t\t\t\t\t\t$prodcur_arr[] = $row_prod;\n\t\t\t\t\t\tif($cur>($cur_tot_cnt-$max_col))\n\t\t\t\t\t\t\t$main_shelf = 'shlfA_main_last';\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$main_shelf = 'shlfA_main';\n\t\t\t\t\t\t$cur++;\n\t\t\t\t\t\t//##############################################################\n\t\t\t\t\t\t// Showing the title, description and image part for the product\n\t\t\t\t\t\t//##############################################################\n\t\t\t\t\t\tif($cur_col==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$main_inner_shelf = 'shlfA_inner_main_lst';\n\t\t\t\t?>\n\t\t\t\t\t\t\t <div class=\"<?php echo $main_shelf?>\">\n\t\t\t\t<?php\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$main_inner_shelf = 'shlfA_inner_main';\n\t\t\t\t?>\n\t\t\t\t\t\n\t\t\t\t\t\t<div class=\"<?php echo $main_inner_shelf?>\">\n\t\t\t\t\t\t\t<div class=\"shlfA_pdt_img\">\n\t\t\t\t\t\t\t<a href=\"<?php url_product($row_prod['product_id'],$row_prod['product_name'],-1)?>\" title=\"<?php echo stripslashes($row_prod['product_name'])?>\">\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t// Calling the function to get the type of image to shown for current \n\t\t\t\t\t\t\t\t// Calling the function to get the image to be shown\n\t\t\t\t\t\t\t\t$img_arr = get_imagelist('prod',$row_prod['product_id'],$pass_type,0,0,1);\n\t\t\t\t\t\t\t\tif(count($img_arr))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tshow_image(url_root_image($img_arr[0][$pass_type],1),$row_prod['product_name'],$row_prod['product_name']);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t// calling the function to get the default image\n\t\t\t\t\t\t\t\t\t$no_img = get_noimage('prod',$pass_type); \n\t\t\t\t\t\t\t\t\tif ($no_img)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tshow_image($no_img,$row_prod['product_name'],$row_prod['product_name']);\n\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t </div>\t\n\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t <div class=\"shlfA_pdt_txt\">\n\t\t\t\t\t\t\t\t\t\t\t <ul class=\"shlfA_pdt_ul\">\n\t\t\t\t\t\t\t\t\t<li class=\"shlfA_pdt_name\" ><h3><a href=\"<?php url_product($row_prod['product_id'],$row_prod['product_name'],-1)?>\" title=\"<?php url_product($row_prod['product_id'],$row_prod['product_name'],-1)?>\"><?php echo stripslashes($row_prod['product_name'])?></a></h3></li>\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t$module_name = 'mod_product_reviews';\n\t\t\t\t\t\t\t\t\t\t\t\tif(in_array($module_name,$inlineSiteComponents))\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($row_prod['product_averagerating']>=0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><div class=\"shelf_rate\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisplay_rating($row_prod['product_averagerating']);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div></li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t<li class=\"shlfA_pdt_des\" ><h6><?php echo stripslashes($row_prod['product_shortdesc'])?></h6></li>\n\t\t\t\t\t\t\t\t<li class='shlfA_pdt_bonus'><h6><?php show_bonus_points_msg($row_prod,'bonus_point'); // Show bonus points?></h6></li>\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\tif($row_prod['product_saleicon_show']==1)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$desc = stripslash_normal(trim($row_prod['product_saleicon_text']));\n\t\t\t\t\t\t\t\t\t\t\tif($desc!='')\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t<li><div class=\"mid_shlf_pdt_salea\"><?php echo $desc?></div></li>\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t\tif($row_prod['product_newicon_show']==1)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$desc = stripslash_normal(trim($row_prod['product_newicon_text']));\n\t\t\t\t\t\t\t\t\t\t\tif($desc!='')\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t<li><div class=\"mid_shlf_pdt_newa\"><?php echo $desc?></div></li>\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t$price_class_arr['ul_class'] \t\t= 'shelfA_price_ul';\n\t\t\t\t\t\t\t\t\t\t\t\t$price_class_arr['normal_class'] \t= 'shelfBnormalprice';\n\t\t\t\t\t\t\t\t\t\t\t\t$price_class_arr['strike_class'] \t= 'shelfBstrikeprice';\n\t\t\t\t\t\t\t\t\t\t\t\t$price_class_arr['yousave_class'] \t= 'shelfByousaveprice';\n\t\t\t\t\t\t\t\t\t\t\t\t$price_class_arr['discount_class'] \t= 'shelfBdiscountprice';\n\t\t\t\t\t\t\t\t\t\t\t\techo show_Price($row_prod,$price_class_arr,'shelfcenter_3');\n\t\t\t\t\t\t\t\t\t\t\t\tshow_excluding_vat_msg($row_prod,'vat_div');// show excluding VAT msg\n\t\t\t\t\t\t\t\t\t\t\t?>\t\n\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t<div class=\"bulk_discount_con\">\n\t\t\t\t\t\t\t\t <?php\n\t\t\t\t\t\t\t\t\tif($row_prod['product_freedelivery']==1)\n\t\t\t\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"free_deliverya\"></div>\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif($row_prod['product_bulkdiscount_allowed']=='Y')\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bulk_discounta\"></div>\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t <?php \n\t\t\t\t\t\t if($comp_active) \n\t\t\t\t\t\t {\n\t\t\t\t\t\t ?>\n\t\t\t\t\t\t\t<div class=\"shlfA_pdt_compare\" >\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\tdislplayCompareButton($row_prod['product_id']);\n\t\t\t\t\t\t?>\t\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t}?>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t$frm_name = uniqid('best_');\n\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t<form method=\"post\" action=\"<?php url_link('manage_products.html')?>\" name='<?php echo $frm_name?>' id=\"<?php echo $frm_name?>\" class=\"frm_cls\" onsubmit=\"return product_enterkey(this,<?php echo $row_prod['product_id']?>)\">\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"fpurpose\" value=\"\" />\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"fproduct_id\" value=\"\" />\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"pass_url\" value=\"<?php echo $_SERVER['REQUEST_URI']?>\" />\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"fproduct_url\" value=\"<?php url_product($row_prod['product_id'],$row_prod['product_name'])?>\" />\n\t\t\t\t\t\t\t\t\t<div class=\"infodivB\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"infodivleftB\"><?php show_moreinfo($row_prod,'infolinkB')?></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"infodivrightB\">\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t$class_arr \t\t\t\t\t\t\t= array();\n\t\t\t\t\t\t\t\t\t\t\t\t$class_arr['ADD_TO_CART']\t= 'quantity_infolinkB';\n\t\t\t\t\t\t\t\t\t\t\t\t$class_arr['PREORDER']\t\t\t= 'quantity_infolinkB';\n\t\t\t\t\t\t\t\t\t\t\t\t$class_arr['ENQUIRE']\t\t\t= 'quantity_infolinkB';\n\t\t\t\t\t\t\t\t\t\t\t\tshow_addtocart($row_prod,$class_arr,$frm_name)\n\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t </div>\n\t\t\t\t\t\t </div>\n\t\t\t\t\t<?php\n\t\t\t\t\t\t$cur_col++;\n\t\t\t\t\t\tif ($cur_col>=$max_col)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t $cur_col = 0;\n\t\t\t\t\t\t}\t \n\t\t\t\t\t}\n\t\t\t\t\tif ($cur_col<$max_col and $cur_col>0)\n\t\t\t\t\t{\n\t\t\t\t\t\techo '</div>';\n\t\t\t\t\t}\n\t\t\t\t\t?>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"shelfA_bottom\"></div>\n\t\t\t\t</div>\n\t\t\t\t<? \n\t\t\t\tbreak;\n\t\t\t\t}//end of switchcase\n\t\t}", "public function setProduct(LineItemProduct $product)\n\t{\n\t\t$this->addKeyValue('product', $product); \n\n\t}", "public static function at()\n\t{\n\t\t\n\t\t$alter_info = array(\n\t\t\t// deleted columns, simple 1d array\n\t\t\t//'drop' => array('ii'),\n\t\t\t\n\t\t\t// old name => new name and definition\n\t\t\t//'change' => array(\n\t\t\t//\t'thing' => 'trong INT( 11 ) NOT NULL'\n\t\t\t//),\n\t\t\t\n\t\t\t// new column definitions\n\t\t\t'add' => array(\n\t\t\t\t'mpc_convs smallint unsigned not null default 0',\n\t\t\t\t'vt_convs smallint unsigned not null default 0'\n\t\t\t)\n\t\t);\n\t\t$ta = new table_alterer('g_data', 'keywords_11', $alter_info);\n\t\t$ta->go();\n\t}", "public function setKeyword($var)\n {\n GPBUtil::checkString($var, True);\n $this->keyword = $var;\n\n return $this;\n }", "public function setProductName($product_name){\n $this->product_name = $product_name;\n }", "public function autoProduce( O_Form_Row_AutoProducer $producer )\r\n\t{\r\n\t\t$this->title = $producer->getTitle();\r\n\t\t$this->params = $producer->getParams();\r\n\t\t$this->value = $producer->getValue();\r\n\t}", "public function testSetEtiqDeFront() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setEtiqDeFront(10);\n $this->assertEquals(10, $obj->getEtiqDeFront());\n }", "public function getKeyword()\n {\n return 'SEEN';\n }", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "protected function _setCollection(){\n $storeId = Mage::app()->getStore()->getId();\n $products = Mage::getResourceModel('reports/product_collection')\n ->addOrderedQty()\n ->addAttributeToSelect(array('name', 'price', 'small_image', 'short_description', 'description'))\n ->setStoreId($storeId)\n ->addStoreFilter($storeId)\n ->setPageSize($this->getProductsCount())\n ->setOrder('ordered_qty', 'desc');\n\n Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($products);\n Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($products);\n\n $this->_topsellerCollection = $products;\n }", "function hb_set_vorpit_entire_front_then_go($vorpit_entire_front_then_go)\r\n\t{\t\r\n\t\t$_SESSION['vorpit_entire_front_then_go'] = $vorpit_entire_front_then_go; \r\n\t}", "function posts_on_front() {\n\n\t// Add setting section\n\tadd_settings_section(\n\t\t'custom_setting_section', // $id\n\t\t'Custome Setting Section', // $title\n\t\t'custom_setting_section_callback', // $callback\n\t\t'reading' // $page\n\t);\n\n\t// Add setting field\n\tadd_settings_field(\n\t\t'posts_on_front', // $id\n\t\t'Number of Posts to show on Front Page', // $title\n\t\t'posts_on_front_callback', // $callback\n\t\t'reading', // $page\n\t\t'custom_setting_section', // $section, or use 'default'\n\t\t[] //$args\n\t);\n\n\t// Register fields\n\tregister_setting('reading', 'posts_on_front');\n}", "function inspiry_search_form_keyword_customizer( WP_Customize_Manager $wp_customize ) {\n\n\t\t// Search Form Keyword Section\n\t\t$wp_customize->add_section(\n\t\t\t'inspiry_properties_search_form_keyword', array(\n\t\t\t\t'title' => esc_html__( 'Search Form Keyword', 'framework' ),\n\t\t\t\t'panel' => 'inspiry_properties_search_panel',\n\t\t\t)\n\t\t);\n\n\t\t// Keyword Label\n\t\t$wp_customize->add_setting(\n\t\t\t'inspiry_keyword_label', array(\n\t\t\t'type' => 'option',\n\t\t\t'transport' => 'postMessage',\n\t\t\t'default' => esc_html__( 'Keyword', 'framework' ),\n\t\t\t'sanitize_callback' => 'sanitize_text_field',\n\t\t) );\n\t\t$wp_customize->add_control(\n\t\t\t'inspiry_keyword_label', array(\n\t\t\t'label' => esc_html__( 'Label for Keyword Search', 'framework' ),\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'inspiry_properties_search_form_keyword',\n\t\t) );\n\n\t\t// Keyword Placeholder Text\n\t\t$wp_customize->add_setting(\n\t\t\t'inspiry_keyword_placeholder_text', array(\n\t\t\t'type' => 'option',\n\t\t\t'transport' => 'postMessage',\n\t\t\t'default' => esc_html__( 'Any', 'framework' ),\n\t\t\t'sanitize_callback' => 'sanitize_text_field',\n\t\t) );\n\t\t$wp_customize->add_control(\n\t\t\t'inspiry_keyword_placeholder_text', array(\n\t\t\t'label' => esc_html__( 'Placeholder Text for Keyword Search', 'framework' ),\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'inspiry_properties_search_form_keyword',\n\t\t) );\n\t}", "public function setProducts(array $products): self\n {\n $this->setParam(self::PRODUCTS, $products);\n return $this;\n }", "public function SetPanelSettings()\n\t{\n\t\t$this->productClass = GetClass('ISC_PRODUCT');\n\t\t$this->db = $GLOBALS['ISC_CLASS_DB'];\n\n\t\tif(!empty($_SESSION['ProductErrorMessage'])) {\n\t\t\tFlashMessage($_SESSION['ProductErrorMessage'], 'error');\n\t\t}\n\t\t$GLOBALS['ProductDetailFlashMessages'] = GetFlashMessageBoxes();\n\n\t\t$GLOBALS['ProductName'] = isc_html_escape($this->productClass->GetProductName());\n\t\t$GLOBALS['ProductNamedBy'] = $this->productClass->GetProductNamedBy();\n\t\t$GLOBALS['ProductId'] = $this->productClass->GetProductId();\n\t\t$GLOBALS['ProductPrice'] = '';\n\t\t\n\t\t$funnyDesc = $this->productClass->GetFunnyDesc();\n\t\tif(!empty($funnyDesc)) {\n\t\t\t$GLOBALS['FunnyDescription'] = $funnyDesc;\n\t\t} else {\n\t\t\t$GLOBALS['ShowFunnyDescription'] = \"display:none;\";\n\t\t}\n\n\t\tif(isset($_SESSION['ProductErrorMessage']) && $_SESSION['ProductErrorMessage']!='') {\n\t\t\t$GLOBALS['HideProductErrorMessage']='';\n\t\t\t$GLOBALS['ProductErrorMessage']=$_SESSION['ProductErrorMessage'];\n\t\t\tunset($_SESSION['ProductErrorMessage']);\n\t\t}\n\n\t\t$product = $this->productClass->getProduct();\n\t\t\n\t\t// We've got a lot to do on this page, so to make it easier to follow,\n\t\t// everything is broken down in to smaller functions.\n\t\t$this->SetProductImages();\n\t\t$this->SetPricingDetails();\n\n\t\tif (GetConfig('ShowAddThisLink')) {\n\t\t\t$GLOBALS['AddThisLink'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('AddThisLink');\n\t\t}\n\t}", "public function setClientKey($aCid, $aClientKey = '') {\n $lCid = intval($aCid);\n //update content\n if(!empty($aClientKey)) {\n $lSql = 'SELECT count(*) FROM `al_cms_ref_product` WHERE `content_id`='.esc($lCid).' AND `client_key`='.esc($aClientKey);\n $lCount = CCor_Qry::getInt($lSql);\n if($lCount < 1) { // insert reference\n $lSql = 'INSERT INTO `al_cms_ref_product` (`mand`, `content_id`, `client_key`) VALUES ('.intval(MID).', '.esc($lCid).', '.esc($aClientKey).')';\n CCor_Qry::exec($lSql);\n }\n }\n }", "public function set_primary_term( $new_primary_term ) {\n\t\tupdate_post_meta( $this->post_ID, WPSEO_Meta::$meta_prefix . 'primary_' . $this->taxonomy_name, $new_primary_term );\n\t}", "public function getSeoKeywords(){ return $this->seo_keywords; }", "function add_product_to_search_index($product_id)\n\t{\n\t\t$product =& model::create('product');\n\t\t\t\t\n\t\tif(!$product->find($product_id))\n\t\t\treturn false;\n\t\t\n\t\tforeach($this->_indexed_fields['product'] as $field)\n\t\t{\n\t\t\t$string_to_index \t= $product->$field;\n\t\t\t$string_weight \t\t= $this->_search_weights['product'][$field];\n\t\t\t\n\t\t\t//Sanitize input\n\t\t\t$sanitized_string \t= $this->get_sanitized_search_query($string_to_index);\t\n\t\t\n\t\t\t//Split string into keywords\n\t\t\t$keywords \t\t\t= explode(\" \",$sanitized_string);\n\t\t\t\n\t\t\t//Remove unneccessary keywords\n\t\t\t$clean_keywords \t= $this->remove_ignored_keywords_from_array($keywords);\n\t\t\t\n\t\t\t//Group keywords and count frequency of occurance\n\t\t\t$keywords_with_frequencies = array_count_values($clean_keywords);\n\t\t\t\n\t\t\tforeach($keywords_with_frequencies as $keyword => $frequency)\n\t\t\t\t$this->_index_keyword($keyword, $product->id, $frequency * $string_weight);\n\t\t}\n\t}", "private function setRecord($index, $col, $precedence) {\n $this->records[$index]->setCol($col);\n $this->records[$index]->setPrecedence($precedence);\n }", "public function setFrontController(Zend_Controller_Front $controller)\n {\n $this->_frontController = $controller;\n return $this;\n }", "function _index_keyword($keyword, $product_id, $frequency)\n\t{\n\t\t$model_keyword \t\t=& model::create('keyword');\n\t\t$product_keyword \t=& model::create('product_keyword');\n\t\t\n\t\t//Insert unique keyword\n\t\tif(!$model_keyword->find_by_field('keyword',$keyword))\n\t\t{\n\t\t\t$model_keyword->keyword = $keyword;\n\t\t\t$model_keyword->save();\n\t\t}\n\t\t\n\t\t//Add keyword into product frequency table\n\t\tif($product_keyword->find_by_field_array(array('keyword_id' => $model_keyword->id,'product_id' => $product_id)))\n\t\t\t$product_keyword->frequency += $frequency;\t//If keyword was found in say title and description\t\t\n\t\telse\n\t\t{\n\t\t\t$product_keyword->keyword_id \t= $model_keyword->id;\n\t\t\t$product_keyword->product_id \t= $product_id;\n\t\t\t$product_keyword->frequency \t= $frequency;\t\t\t\n\t\t}\n\t\t\n\t\treturn $product_keyword->save();\t\t\n\t}", "protected function _syncKeywords() {}", "public function AddHeadKeyword($keyword){\r\n\t\t$this->head->AddKeyword($keyword);\r\n\t}", "public function setContextualKeywords($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->contextual_keywords = $arr;\n\n return $this;\n }", "public function setProdTitle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_title !== $v) {\n $this->prod_title = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_TITLE] = true;\n }\n\n return $this;\n }", "function set_front_page() {\n $about = get_page_by_title( 'Home' );\n update_option( 'page_on_front', $about->ID );\n update_option( 'show_on_front', 'page' );\n }", "function Show_Preorder($display_id)\n\t\t{\n\t\t\tglobal $ecom_siteid,$db,$ecom_hostname,$Settings_arr,$ecom_themeid,$default_layout,$Captions_arr,$inlineSiteComponents;\n\n\t\t\t$Captions_arr['PREORDER'] = getCaptions('PREORDER');\n\t\t\t// query for display \ttitle\n\t\t\t$query_disp\t= \"SELECT \n\t\t\t\t\t\t\t display_title \n\t\t\t\t\t\tFROM \n\t\t\t\t\t\t\tdisplay_settings \n\t\t\t\t\t\tWHERE \n\t\t\t\t\t\t\tsites_site_id='$ecom_siteid' \n\t\t\t\t\t\t\tAND display_id ='$display_id'\n\t\t\t\t\t\t\tAND layout_code='$default_layout' \";\n\t\t\t$result_disp = $db->query($query_disp);\n\t\t\tlist($cur_title) = $db->fetch_array($result_disp);\n\t\t\t// ##############################################################################################################\n\t\t\t// Building the query for bestseller\n\t\t\t// ##############################################################################################################\n\t\t\t// Getting the settings for best sellers form the settings table\n\t\t\t$prodperpage\t\t\t= $Settings_arr['product_maxcntperpage_preorder'];\n\t\t\t// Deciding the sort by field\n\t\t\t$bestsort_by\t\t\t= $Settings_arr['product_orderfield_preorder'];\n\t\t\tswitch ($bestsort_by)\n\t\t\t{\n\t\t\t\tcase 'custom':\n\t\t\t\t\t$bestsort_by\t= 'a.product_preorder_custom_order';\n\t\t\t\tbreak;\n\t\t\t\tcase 'product_name':\n\t\t\t\t\t$bestsort_by\t= 'a.product_name';\n\t\t\t\tbreak;\n\t\t\t\tcase 'price':\n\t\t\t\t\t$bestsort_by\t= 'a.product_webprice';\n\t\t\t\tbreak;\n\t\t\t\tcase 'product_id': // case of order by price\n\t\t\t\t\t$bestsort_by\t= 'a.product_id';\n\t\t\t\tbreak;\t\n\t\t\t};\n\t\t\t$sql_preorder_all\t=\t\"SELECT count(a.product_id) \n\t\t\t\t\t\t\t\t\t\tFROM \n\t\t\t\t\t\t\t\t\t\t\tproducts a \n\t\t\t\t\t\t\t\t\t\tWHERE \n\t\t\t\t\t\t\t\t\t\t\ta.sites_site_id = $ecom_siteid \n\t\t\t\t\t\t\t\t\t\t\tAND a.product_preorder_allowed = 'Y' \n\t\t\t\t\t\t\t\t\t\t\tAND a.product_hide ='N' \n\t\t\t\t\t\t\t\t\t\t\tAND a.product_alloworder_notinstock ='N' \";\n\t\t\t$ret_preorder_all \t= $db->query($sql_preorder_all);\n\t\t\tlist($tot_cnt)\t\t= \t$db->fetch_array($ret_preorder_all);\t\t\n\t\t\t$bestsort_order\t\t= $Settings_arr['product_orderby_preorder'];\n\t\t\t// Building the sql \n\t\t\t$sql_best\t\t\t= '';\n\t\t\t// Call the function which prepares variables to implement paging\n\t\t\t$ret_arr \t\t= array();\n\t\t\t$pg_variable\t= 'bestsell_pg';\n\t\t\tif ($_REQUEST['req']!='')// LIMIT for products is applied only if not displayed in home page\n\t\t\t{\n\t\t\t\t$start_var \t\t= prepare_paging($_REQUEST[$pg_variable],$prodperpage,$tot_cnt);\n\t\t\t\t$Limit\t\t\t= \" LIMIT \".$start_var['startrec'].\", \".$prodperpage;\n\t\t\t}\t\n\t\t\telse\n\t\t\t\t$Limit = '';\n\t\t\t\n\t\t\t$sql_best = \"SELECT a.product_id,a.product_name,a.product_variablestock_allowed,a.product_show_cartlink,\n\t\t\t\t\t\t\t\t\t\ta.product_preorder_allowed,a.product_show_enquirelink,a.product_webstock,a.product_webprice,\n\t\t\t\t\t\t\t\t\t\ta.product_discount,a.product_discount_enteredasval,a.product_bulkdiscount_allowed,\n\t\t\t\t\t\t\t\t\t\tproduct_total_preorder_allowed,a.product_applytax,a.product_shortdesc,a.product_bonuspoints,\n\t\t\t\t\t\t\t\t\t\ta.product_stock_notification_required,a.product_alloworder_notinstock,product_variables_exists,product_variablesaddonprice_exists,\n\t\t\t\t\t\t\t\t\t\ta.product_variablecomboprice_allowed,a.product_variablecombocommon_image_allowed,a.default_comb_id,\n\t\t\t\t\t\t\t\t\t\ta.price_normalprefix,a.price_normalsuffix, a.price_fromprefix, a.price_fromsuffix,a.price_specialofferprefix, a.price_specialoffersuffix, \n\t\t\t\t\t\t\t\t\t\ta.price_discountprefix, a.price_discountsuffix, a.price_yousaveprefix, a.price_yousavesuffix,a.price_noprice,\n\t\t\t\t\t\t\t\t\t\ta.product_averagerating,a.product_saleicon_show,a.product_saleicon_text,a.product_newicon_show,a.product_newicon_text,\n\t\t\t\t\t\t\t\t\t\ta.product_freedelivery \n\t\t\t\t\t\t\tFROM \n\t\t\t\t\t\t\t\tproducts a\n\t\t\t\t\t\t\tWHERE \n\t\t\t\t\t\t\t\ta.sites_site_id = $ecom_siteid \n\t\t\t\t\t\t\t\tAND a.product_preorder_allowed = 'Y' \n\t\t\t\t\t\t\t\tAND a.product_hide ='N' \n\t\t\t\t\t\t\t\tAND a.product_alloworder_notinstock ='N' \n\t\t\t\t\t\t\tORDER BY \n\t\t\t\t\t\t\t\t$bestsort_by $bestsort_order \n\t\t\t\t\t\t\t$Limit \";\n\t\t\t$ret_prod = $db->query($sql_best);\n\t\t\tif ($db->num_rows($ret_prod))\n\t\t\t{\n\t\t\t\t// Number of result to display on the page, will be in the LIMIT of the sql query also\n\t\t\t\t$querystring = \"\"; // if any additional query string required specify it over here\n\t\t\t\t// Calling the function to get the type of image to shown for current \n\t\t\t\t$pass_type = get_default_imagetype('midshelf');\n\t\t\t\t$prod_compare_enabled = isProductCompareEnabled();\n\t\t\t\t\t\t\t\t\t$HTML_comptitle = $HTML_maindesc = $HTML_paging = $HTML_showall = '';\n\t\t\t\t\t\t\t\t\t\tif ($tot_cnt>0 and ($_REQUEST['req']!='') and $tot_cnt>$prodperpage)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$paging \t\t= paging_footer_advanced($path,$query_string,$tot_cnt,$start_var['pg'],$start_var['pages'],'',$pg_variable,'Products',$pageclass_arr);\n\t\t\t\t\t\t\t\t\t\t\t$HTML_paging .= \t'<div class=\"subcat_nav_content\" >';\n\t\t\t\t\t\t\t\t\t\t\t$HTML_paging \t.='<div class=\"subcat_nav_pdt_no\"><span>'.$paging['total_cnt'].'</span></div>';\n\t\t\t\t\t\t\t\t\t\t\t$HTML_paging \t.='</div>';\n\t\t\t\t\t\t\t\t\t\t\t$HTML_paging\t.= '\t<div class=\"page_nav_con\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"page_nav_top\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"page_nav_mid\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"page_nav_content\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t\t\t\t\t'.$paging['navigation']['start_nav'].$paging['navigation']['page_no'].$paging['navigation']['end_nav'].'\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"page_nav_bottom\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif($_REQUEST['req']=='' and $tot_cnt>0) // case of show all link\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t $HTML_showall = \"<div class='normal_midA_showall'><a href='\".url_shelf_all($shelfData['shelf_id'],$shelfData['shelf_name'],1).\"' title=''>\".$Captions_arr['COMMON']['SHOW_ALL'].\"</a></div>\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t$HTML_treemenu .=\n\t\t\t\t\t\t\t\t\t\t'<ul class=\"tree_menu_details\">\n\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"'.url_link('',1).'\">'.stripslash_normal($Captions_arr['COMMON']['TREE_MENU_HOME_LINK']).'</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li>'.stripslash_normal($Captions_arr['PREORDER']['PREORDER_CAPT']).'</li>\n\t\t\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t \techo $HTML_treemenu;\t\t\n\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t<div class=\"normal_shlfA_mid_con\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"normal_shlfA_mid_top\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"normal_shlfA_mid_mid\">\n\t\t\t\t\t\t\t\t\t\t<? \n\t\t\t\t\t\t\t\t\t\techo $HTML_maindesc;\n\t\t\t\t\t\t\t\t\t\techo $HTML_paging;\n \t\t\t\t\t\t\t\t\t\t$max_col = 2;\n\t\t\t\t\t\t\t\t\t\t$cur_col = 0;\n\t\t\t\t\t\t\t\t\t\t$prodcur_arr = array();\n\t\t\t\t\t\t\t\t\t\twhile($row_prod = $db->fetch_array($ret_prod))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t $HTML_image = '';\n\t\t\t\t\t\t\t\t\t\t\t\t// Calling the function to get the image to be shown\n\t\t\t\t\t\t\t\t\t\t\t\t$img_arr = get_imagelist('prod',$row_prod['product_id'],$pass_type,0,0,1);\n\t\t\t\t\t\t\t\t\t\t\t\tif(count($img_arr))\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$HTML_image .= url_root_image($img_arr[0][$pass_type],1);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t// calling the function to get the default image\n\t\t\t\t\t\t\t\t\t\t\t\t\t$no_img = get_noimage('prod',$pass_type); \n\t\t\t\t\t\t\t\t\t\t\t\t\tif ($no_img)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$HTML_image .= $no_img;\n\t\t\t\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"products_inner\"><a href=\"<?php url_product($row_prod['product_id'],$row_prod['product_name'])?>\" title=\"<?php echo stripslash_normal($row_prod['product_name'])?>\"><img src=\"<?php echo $HTML_image?>\" onmouseover=\"tooltip.show('<?php echo stripslash_normal($row_prod['product_name'])?>');\" onmouseout=\"tooltip.hide();\" /></a></div>\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\techo $HTML_paging;\n\t\t\t\t\t\t\t\t\t\techo $HTML_showall;\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t<div class=\"normal_shlfA_mid_bottom\"></div> \n\t\t\t\t\t\t\t\t\t\t</div> \n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t<?php\t\t\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}" ]
[ "0.62230873", "0.5660296", "0.528664", "0.52622104", "0.52593166", "0.520222", "0.5185681", "0.514636", "0.5017951", "0.4985818", "0.49574465", "0.49111634", "0.4826392", "0.4802036", "0.479346", "0.47746015", "0.4754732", "0.47427076", "0.47252396", "0.47087258", "0.46881655", "0.46804896", "0.46390367", "0.46390367", "0.46260834", "0.4612819", "0.46069697", "0.45949706", "0.45804146", "0.4575977", "0.45560107", "0.45558357", "0.45433384", "0.45431134", "0.45213747", "0.44960895", "0.4488931", "0.44843927", "0.44773936", "0.4473591", "0.44433844", "0.44325906", "0.44262624", "0.4398898", "0.43963456", "0.43854925", "0.4381948", "0.4369519", "0.43605164", "0.43410712", "0.43401223", "0.43276277", "0.43268478", "0.43161166", "0.42933732", "0.42813176", "0.42618686", "0.4256756", "0.42539638", "0.42450255", "0.42450255", "0.42448348", "0.42415014", "0.42257404", "0.42237076", "0.4214224", "0.4211528", "0.42025873", "0.41970876", "0.41927376", "0.4182272", "0.41716167", "0.41532817", "0.41527414", "0.4140703", "0.4138324", "0.41380012", "0.41304663", "0.41208655", "0.41192177", "0.41161135", "0.41136098", "0.41115957", "0.41101134", "0.41029656", "0.4101577", "0.4096701", "0.40934303", "0.40856993", "0.4078076", "0.40777633", "0.40673503", "0.40671474", "0.40625912", "0.4061807", "0.40611127", "0.40580046", "0.40547642", "0.4053421", "0.4048239" ]
0.5975671
1
setProdKeywords() Set the value of [prod_keywords_writeup] column.
public function setProdKeywordsWriteup($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_keywords_writeup !== $v) { $this->prod_keywords_writeup = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdKeywords($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_keywords !== $v) {\n $this->prod_keywords = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS] = true;\n }\n\n return $this;\n }", "public function getProdKeywordsWriteup()\n {\n return $this->prod_keywords_writeup;\n }", "protected function setKeywords() {\r\n\t\t$keywords = $this->newsItem->getKeywords();\r\n\t\t$keywordsAction = $this->settings['news']['semantic']['general']['keywords']['action'];\r\n\t\t$pageKeywords = $GLOBALS['TSFE']->page['keywords'];\r\n\t\tif (!empty($keywordsAction) && !empty($pageKeywords)) {\r\n\t\t\tswitch ($keywordsAction) {\r\n\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t$keywords = (empty($keywords)) ? $pageKeywords : $keywords . ', ' . $pageKeywords;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'append':\r\n\t\t\t\t\t$keywords = (empty($keywords)) ? $pageKeywords : $pageKeywords . ',' . $keywords;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t}\r\n\t\t}\r\n\t\t$keywordsArray = t3lib_div::trimExplode(',', $keywords);\r\n\t\t$keywordsLimit = intval($this->settings['news']['semantic']['general']['keywords']['limit']);\r\n\t\t$this->keywords = (empty($keywordsLimit)) ? array_unique($keywordsArray) : $this->keywords = array_slice(array_unique($keywordsArray), 0, $keywordsLimit);\r\n\t}", "public function setKeywords($keywords)\n {\n $this->keywords = (array)$keywords;\n }", "public function setKeywords($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->keywords = $arr;\n\n return $this;\n }", "static function save_keywords($post_id, $keywords){\n\t\t\tupdate_post_meta($post_id, 'affiliate_keywords', $keywords);\n\t\t}", "public function testAssignKeywords()\n {\n $this->markTestIncomplete(\n 'This test has not been implemented yet.'\n );\n }", "public function setKeywords($keywords)\n\t{\n\t\t$this->keywords = $keywords;\n\n\t\tif($this->pageInitialized)\n\t\t\t$this->setMetaTag('keywords', $this->keywords);\n\t}", "public function setKeywords(string $keywords)\n {\n $this->keywords = $keywords;\n }", "public function setKeywords($keywords, $encoding = 'UTF-8') {}", "public function setKeywords($val)\n {\n $this->_propDict[\"keywords\"] = $val;\n return $this;\n }", "public function setKeywords(?AnswerKeyword $value): void {\n $this->getBackingStore()->set('keywords', $value);\n }", "public function getProdKeywords()\n {\n return $this->prod_keywords;\n }", "public function setKeywords($keywords, int $maxLength = null);", "public function setKeywords($value)\n {\n return $this->set('Keywords', $value);\n }", "static public function setKeywords($new_keywords) {\n\t\tif (is_string($new_keywords)) {\n\t\t\t$new_keywords = explode(',', $new_keywords);\n\t\t\tforeach($new_keywords as &$keyword) {\n\t\t\t\t$keyword = trim($keyword);\n\t\t\t}\n\t\t}\n\t\tself::$page_keywords = (array)$new_keywords;\n\t}", "protected function setKeyword($value)\n\t{\n\t\t$this->keyword = $value;\n\t}", "public function setKeywords($keywords)\n\t{\n\t\tif( ! is_array($keywords))\n\t\t{\n\t\t\t$keywords = explode(',', $keywords);\n\t\t}\n\n\t\t// Flatten the array into single column\n\t\t$keywords = array_flatten($keywords);\n\t\t// Trim & lowercase the array\n\t\t$keywords = array_map('trim', $keywords);\n\t\t$keywords = array_map('strtolower', $keywords);\n\n\t\t$this->keywords = $keywords;\n\n\t\treturn $keywords;\n\t}", "public function add_keywords ( $new_keywords )\r\n\t\t{\r\n\t\t\r\n\t\t\t$this->errno = DB_OK;\r\n\r\n\t\t\tif ( $this->cat_id == -1 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tSuch category hasn't been created\r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_ID;\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( ! ( $result = $this->con->query( \"SELECT cat_keywords FROM category WHERE cat_id=$this->cat_id\" ) ) )\r\n\t\t\t{\r\n\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( $result->num_rows == 1 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tas the id is unique one row should have been returned\r\n\t\t\t{\r\n\t\t\t\t$row = $result->fetch_row();\r\n\t\t\t\t$kw = $row[0];\r\n\t\t\t}\t\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->errno = MYSQL_ERROR;\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t/* gathering all keywords into one variable with # as delimiter to insert it to the database */\r\n\t\t\t$kw_length = 0; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tinitialize with 0 in case the keywords array hasn't been set\r\n\t\r\n\t\t\tif ( isset ( $new_keywords ) )\r\n\t\t\t\t$kw_length = count( $new_keywords );\r\n\r\n\t\t\tif ( $kw_length == 0 )\r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_INPUT;\r\n\t\t\t\treturn ;\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor ( $i = 0; $i < $kw_length; $i++ )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tgenerating the keyword string which will enter to the database\r\n\t\t\t\t$kw = $kw.\"#\".$new_keywords[$i];\t\t\t\r\n\t\t\t\r\n\t\t\tif( !$this->con->query( \"UPDATE category SET cat_keywords=\\\"$kw\\\" WHERE cat_id=$this->cat_id;\" ) )\t\t\t\r\n\t\t\t{\r\n\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\r\n\t\t\t\treturn ;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to query\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t$this->cat_keywords = NULL;\r\n\t\t\t\r\n\t\t\t$tok = strtok( $kw, \"#\" );\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tturning the keywords string into an array\r\n\t\t\t\r\n\t\t\twhile ( $tok !== false ) \r\n\t\t\t{\r\n\t\t\t\t$this->cat_keywords [] = $tok;\r\n\t\t\t\t$tok = strtok( \"#\" );\r\n\t\t\t}\t\t\t\r\n\t\r\n\t\t}", "public function testSetAndGetKeyword()\n {\n $keyword = 'key';\n $value = 'this should be saved and retrieved';\n\n // Execute.\n $this->testObject->setKeyword($keyword, $value);\n\n // Get the keyword out.\n $result = $this->testObject->getKeyword($keyword);\n\n // Assert Result.\n $this->assertEquals($value, $result);\n $this->assertEquals($value, $_SESSION['behat']['GenesisSqlExtension']['keywords'][$keyword]);\n }", "public function setKeyWord($key){\n $this->keyword = $key;\n }", "public function set_keywords($keywords)\n\t{\n\t\tif (is_null($keywords)) {\n\t\t\tthrow new InvalidArgumentException(\"Project Keywords Invalid!\");\n\t\t}\n\t\t$this->keywords = $keywords;\n\t}", "protected function _syncKeywords() {}", "function setKeywords($keywords) {\n $this->fields['keywords'] = $keywords;\n return $this;\n }", "public function setProdWriteup($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_writeup !== $v) {\n $this->prod_writeup = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_WRITEUP] = true;\n }\n\n return $this;\n }", "public function setSeoKeywords($v)\n { $this->getCurrentTranslation()->setSeoKeywords($v);\n\n return $this;\n }", "public function setKeywords($keywords) {\n $this->properties['keywords'] = $keywords;\n\n return $this;\n }", "public function setOffensiveWords($offensiveWords)\n {\n $this->offensiveWords = $offensiveWords;\n }", "public function setKeywords(string $keywords) : self\n {\n $this->keywords = $keywords;\n return $this;\n }", "protected function _setSearchKeywords()\n {\n try {\n\n if (is_null($this->_keywords)) {\n if ($this->getSearchKeyword()) {\n $this->_keywords['searchKeyword'] = $this->getSearchKeyword();\n }\n $searchCriterias = $this->getSearchCriterias();\n if (isset($searchCriterias['q'])) {\n unset($searchCriterias['q']);\n }\n if (!empty($searchCriterias)) {\n foreach ($searchCriterias as $key => $criteria) {\n if ($key == 'price') {\n\n if (isset($criteria['from'])) {\n $this->_keywords['minPrice'] = $criteria['from'];\n }\n if (isset($criteria['to'])) {\n $this->_keywords['maxPrice'] = $criteria['to'];\n }\n\n } else {\n if (is_array($criteria)) {\n $this->_keywords[$key] = $this->escapeHtml(strtolower(implode(',', $criteria)));\n } else {\n $this->_keywords[$key] = $this->escapeHtml(strtolower($criteria));\n }\n\n }\n\n }\n }\n\n }\n\n return $this->_keywords;\n\n } catch (Mage_Core_Exception $e) {\n $this->getGravityHelper()->getLogger($e->getMessage());\n } catch (Exception $e) {\n $this->getGravityHelper()->getLogger(\n $e->getMessage(),\n $this->getGravityHelper()->__('An error occurred while setting search keywords.')\n );\n }\n }", "public function setKeywordsByString($keywords, $delimiter = ',')\n {\n $keywords = explode($delimiter, $keywords);\n\n if ($keywords === false || empty($keywords)) {\n return false;\n }\n\n // check all values\n foreach ($keywords as $key => $value) {\n $keywords[$key] = trim($value);\n\n if (!$keywords[$key]) {\n unset($keywords[$key]);\n }\n }\n\n $this->setKeywordsByArray($keywords);\n }", "public function setOptOutKeywords(array $optOutKeywords): self\n {\n $this->options['optOutKeywords'] = $optOutKeywords;\n return $this;\n }", "public function setKeyword($value)\n {\n return $this->set('Keyword', $value);\n }", "public function setKeyword($value)\n {\n return $this->set('Keyword', $value);\n }", "function set_keywords_from_search_query()\n\t{\n\t\t$santizied_search_query = $this->get_sanitized_search_query($this->search_query);\n\t\n\t\t$keywords_to_search_for = explode(' ',$santizied_search_query);\n\t\t$unique_keywords = array_unique($keywords_to_search_for);\n\t\t\n\t\t$this->keywords_to_search_for = $this->remove_ignored_keywords_from_array($unique_keywords);\n\t}", "public function setContextualKeywords($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->contextual_keywords = $arr;\n\n return $this;\n }", "static public function setTopicKeywords($keywords, $topicid, $userid, $glue=null) {\n\t\tif (!isset(self::$_topics [$topicid][$userid])) {\n\t\t\tself::loadTopics(array($topicid), $userid);\n\t\t}\n\t\t$oldkeywords = isset(self::$_topics [$topicid][$userid]) ? self::$_topics [$topicid][$userid] : array();\n\n\t\t// Load new keywords missing from the topic\n\t\t$keywords = self::cleanKeywords($keywords, $glue);\n\t\tself::loadKeywords($keywords);\n\n\t\t$keywords = array_flip($keywords);\n\t\t$dellist = array_diff_key ( $oldkeywords, $keywords );\n\t\t$addlist = array_diff_key ( $keywords, $oldkeywords );\n\t\tforeach ($dellist as $keyword=>$i) {\n\t\t\t$instance = self::$_instances [$keyword];\n\t\t\t$instance->delTopic($topicid, $userid);\n\t\t}\n\t\tforeach ($addlist as $keyword=>$i) {\n\t\t\t$instance = self::$_instances [$keyword];\n\t\t\t$instance->addTopic($topicid, $userid);\n\t\t}\n\t\treturn $keywords;\n\t}", "public function setKeyword($keyword){\r\n $this->keyword = $keyword;\r\n }", "public function setKeywords($keywords)\n {\n $this->keywords = $keywords;\n\n return $this;\n }", "public function setOptInKeywords(array $optInKeywords): self\n {\n $this->options['optInKeywords'] = $optInKeywords;\n return $this;\n }", "public function setSearchTerms($search_terms)\n {\n # Set the variable.\n $this->search_terms = $search_terms;\n }", "protected function cleanupFeedMetaKeywords(Product $product)\n\t{\n\t\t$keywords = $product->getMetaKeywords();\n\n\t\t// Trim size\n\t\t$keywords = substr($keywords, 0, 254);\n\n\t\t$product->setMetaKeywords($keywords);\n\t}", "function setKeyWords( &$value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->KeyWords = ( $value );\n }", "public function setAdminSearchKeywords($searchKeywords)\n {\n $this->adminSearchKeywords = $this->property('adminSearchKeywords')->parseVal($searchKeywords);\n\n return $this;\n }", "static public function addKeyword($new_keyword) {\n\t\tself::$page_keywords[] = (string)trim($new_keyword);\n\t}", "public function keyword($keywords) {\n\t\tforeach ((array) $keywords as $val) {\n\t\t\t$this->keywords[] = $val;\n\t\t}\n\n\t\treturn $this;\n\t}", "function gwAddNewKeywords($id_dict, $id_term, $arKeywords, $termIdOld, $isClean, $date_created)\r\n{\r\n\tglobal $arFields, $intFields, $arStop, $sys;\r\n\tglobal $oDb, $oSqlQ;\r\n#\t@header(\"content-type: text/html; charset=utf-8\");\r\n\r\n\t// Adding search keywords\r\n\t$arKeywordsJoin = array();\r\n\tfor (reset($arKeywords); list($k, $v) = each($arKeywords);)\r\n\t{\r\n\t\t$arKeywordsJoin = array_merge($arKeywordsJoin, $v); // common array with all keywords\r\n\t}\r\n\t// unique keywords only, have to run second time\r\n\t$arKeywordsJoin = array_flip($arKeywordsJoin);\r\n\r\n\t$arQuery = array();\r\n\t$arSql = array();\r\n\tif (!empty($arKeywordsJoin))\r\n\t{\r\n\t\t$word_text_sql = \"'\" . implode(\"', '\", array_keys($arKeywordsJoin)) . \"'\";\r\n\t\t/* Get the list of already known keywords and their IDs */\r\n\t\t$arSql = $oDb->sqlExec($oSqlQ->getQ('get-word', TBL_WORDLIST, $word_text_sql));\r\n\t}\r\n# prn_r($arSql);\r\n\t$q2 = $q1 = array();\r\n\tif (!empty($arSql)) // some keywords are exist already\r\n\t{\r\n\t\t$cnt = 0;\r\n\t\t// for each founded keyword\r\n\t\tfor (; list($arK, $arV) = each($arSql);)\r\n\t\t{\r\n\t\t\tif ($isClean) // overwrite mode\r\n\t\t\t{\r\n\t\t\t\t$arQuery[0] = $oSqlQ->getQ('del-wordmap-by-term-dict', $termIdOld, $id_dict);\r\n\t\t\t}\r\n\t\t\t$q2['word_id'] = $arV['word_id'];\r\n\t\t\t$q2['term_id'] = $id_term;\r\n\t\t\t$q2['dict_id'] = $id_dict;\r\n\t\t\t$q2['date_created'] = $date_created;\r\n\t\t\t// Set Field ID\r\n\t\t\tfor (reset($arFields); list($id_field, $fV) = each($arFields);)\r\n\t\t\t{\r\n\t\t\t\tif (isset($arKeywords[$id_field]) && in_array($arV['word_text'], $arKeywords[$id_field]))\r\n\t\t\t\t{\r\n\t\t\t\t\t$q2['term_match'] = $id_field;\r\n\t\t\t\t\t$arQueryMapExist[] = gw_sql_insert($q2, TBL_WORDMAP, 1, $cnt);\r\n\t\t\t\t\tunset($arKeywordsJoin[$arV['word_text']]); // remove existent keyword\r\n\t\t\t\t\t$cnt++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t//\r\n\t// Add new kewords\r\n# prn_r($arKeywordsJoin);\r\n# prn_r($arKeywords);\r\n\t//\r\n\t$q2 = $q1 = array();\r\n\t$q1['word_id'] = $q2['word_id'] = ($oDb->MaxId(TBL_WORDLIST, 'word_id') - 1);\r\n\t$cnt = $cntMap = 0;\r\n\t// for each new keyword\r\n\tfor (reset($arKeywordsJoin); list($newkeyword, $v2) = each($arKeywordsJoin);)\r\n\t{\r\n\t\t$q2['word_id']++;\r\n\t\t$q2['dict_id'] = $id_dict;\r\n\t\t$q2['term_id'] = $id_term;\r\n\t\t$q2['date_created'] = $date_created;\r\n\t\t$q1['word_id']++;\r\n\t\t$q1['word_text'] = '';\r\n\t\t//\r\n\t\t// Set index ID per field\r\n\t\tfor (reset($arFields); list($id_field, $fV) = each($arFields);)\r\n\t\t{\r\n\t\t\tif (isset($arKeywords[$id_field]) && in_array($newkeyword, $arKeywords[$id_field]))\r\n\t\t\t{\r\n\t\t\t\t$q2['term_match'] = $id_field;\r\n\t\t\t\t$q1['word_text'] = $newkeyword;\r\n\t\t\t\t// add keyword into map\r\n\t\t\t\t$arQueryMap[] = gw_sql_insert($q2, TBL_WORDMAP, 1, $cntMap);\r\n\t\t\t\tunset($arKeywordsJoin[$newkeyword]); // remove new keyword\r\n\t\t\t\t$cntMap++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// add new word into wordlist\r\n\t\tif ($q1['word_text'] != '')\r\n\t\t{\r\n\t\t\t$arQueryWord[] = gw_sql_insert($q1, TBL_WORDLIST, 1, $cnt);\r\n\t\t\t$cnt++;\r\n\t\t}\r\n\t}\r\n\t/* Queries for existent keywords */\r\n\tif (isset($arQueryMapExist)) { $arQuery[] = implode('', $arQueryMapExist); }\r\n\t/* Queries for new keywords */\r\n\tif (isset($arQueryWord)) { $arQuery[] = implode('', $arQueryWord); }\r\n\t/* Queries for new keywords map */\r\n\tif (isset($arQueryMap)) { $arQuery[] = implode('', $arQueryMap); }\r\n\t/* Displays queries */\r\n\tif ($sys['isDebugQ'])\r\n\t{\r\n\t\t$arQuery = gw_highlight_sql($arQuery);\r\n\t\tprint '<ul class=\"gwsql\"><li>'.implode(';</li><li>', $arQuery).';</li></ul>';\r\n\t}\r\n\telse\r\n\t{\r\n\t\tfor (; list($kq, $vq) = each($arQuery);)\r\n\t\t{\r\n\t\t\tif (!$oDb->sqlExec($vq))\r\n\t\t\t{\r\n\t\t\t\tprint '<li class=\"xt\">Error: cannot exec query: '.$arQuery[$i].';</li>';\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}", "static function metabox_to_deal_keywords($post){\t\t \t\n\t\t\tinclude self::get_script_location('metabox-for-product.php', 'admin');\t\t \t\n\t\t }", "public function testPropertyKeywords($value)\n {\n $object = new Metadata();\n $object->setKeywords($value);\n\n $this->assertEquals($value, $object->getKeywords());\n }", "function webnotik_register_keywords_settings() {\n\tregister_setting( 'webnotik-keywords-group', 'webnotik_keywords_main' );\n\tregister_setting( 'webnotik-keywords-group', 'webnotik_keywords_main_id' );\n\tregister_setting( 'webnotik-keywords-group', 'webnotik_keywords_subpages' );\n\tregister_setting( 'webnotik-keywords-group', 'webnotik_keywords_subpages_ids' );\n\tregister_setting( 'webnotik-keywords-group', 'webnotik_other_cities' );\n\n}", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "protected function setSeoTags()\n {\n global $APPLICATION;\n\n if ($this->arParams['SET_SEO_TAGS'] !== 'Y')\n {\n return false;\n }\n\n if ($this->arResult['SEO_TAGS']['TITLE'])\n {\n $APPLICATION->SetPageProperty('title', $this->arResult['SEO_TAGS']['TITLE']);\n }\n\n if ($this->arResult['SEO_TAGS']['DESCRIPTION'])\n {\n $APPLICATION->SetPageProperty('description', $this->arResult['SEO_TAGS']['DESCRIPTION']);\n }\n\n if ($this->arResult['SEO_TAGS']['KEYWORDS'])\n {\n $APPLICATION->SetPageProperty('keywords', $this->arResult['SEO_TAGS']['KEYWORDS']);\n }\n }", "function dp_meta_keywords() {\n\t$keywords = '';\n\n\tif ( is_singular() && !is_preview() ) {\n\t\t$post = get_queried_object();\n\t\t$taxonomies = get_object_taxonomies( $post->post_type );\n\t\tif ( is_array( $taxonomies ) ) {\n\t\t\tforeach ( $taxonomies as $tax ) {\n\t\t\t\tif ( $terms = get_the_term_list( get_queried_object_id(), $tax, '', ', ', '' ) )\n\t\t\t\t\t$keywords[] = $terms;\n\t\t\t}\n\t\t\tif ( !empty( $keywords ) )\n\t\t\t\t$keywords = join( ', ', $keywords );\n\t\t}\n\t}\n\n\tif(!empty($keywords))\n\t\t$keywords = '<meta name=\"keywords\" content=\"' . esc_attr( strip_tags( $keywords ) ) . '\" />' . \"\\n\";\n\n\techo apply_filters( 'dp_meta_keywords', $keywords );\n}", "public function loadProductsKeywords(array $productIds) {\n\n $query = str_replace(':productIds', implode(',', $productIds), self::LOAD_PRODUCTS_KEYWORDS);\n\n $this->db->query($query);\n\n return $this->arraySetKey($this->db->fetchAll(), 'productId');\n }", "public function testFilterKeywords()\n {\n $this->visit('/properties')\n ->type('the', '#keywords')\n ->press('Update results')\n ->see('Shack in the desert')\n ->see('Victorian townhouse');\n $this->notSee('Five bedroom mill conversion');\n }", "public function setKeywords($keywords,$path, $recursive=false)\n\t{\n\t\t\n\t\t// It could be that the path is part encoded, therefore i am decode it all, and encode it right after.\n//\t\t$path = urldecode($path);\n//\t\t$assetInfo = $this->getDirectories($path);\n\t\t\n//\t\t$url = \"http://{$this->wnServer}/webnative/portalDI?action=submitkywd{$keywords}&path={$path}\";\n//\t\t$result = json_decode($this->curlObj->fetch_url($url),true);\n\n\t\t$url = \"http://{$this->wnServer}/webnative/portalDI\";\n\t\t$keywords[\"action\"] = \"submitkywd\";\n\t\t$keywords[\"path\"] = $path;\n\t\t$result = json_decode($this->curlObj->send_post_data($url, $keywords),true);\n\n//\t\tprint $url.\"<br />\";\n\t\t\n//\t\treturn $result[\"KEYWORDS_INFO\"];\n\t}", "function _set_search_keywords ($referer = \"\") {\n\t\n\t\tif (empty($referer)) {\n\t\t\t$referer = $_SERVER[\"HTTP_REFERER\"];\n\t\t\t$batch_mode = true;\n\t\t}\n\t\t// Return error message if no referer\n\t\tif (!strlen($referer)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// process parsing referer field\n\t\t$parsed_url\t= @parse_url($referer);\n\t\t$host\t\t= $parsed_url[\"host\"];\n\t\t$query\t\t= $parsed_url[\"query\"].\"\\r\\n\";\n\t\t\n\t\t// Check if search engine is known by system\n\t\tif (!isset($this->_search_engines[$host])) {\n\t\t\treturn false;\n\t\t}\n\t\t$cur_se\t\t\t= $this->_search_engines[$host];\n\t\t// Process keywords\n\t\t$parsed_url[\"query\"] = str_replace([\"./?\",\"./\"], \"\", $parsed_url[\"query\"]);\n\t\tparse_str($parsed_url[\"query\"], $parsed_query);\n\t\t$q_s_charset\t= $parsed_query[$cur_se[\"q_s_charset\"]];\n\t\t$q_s_word\t\t= $parsed_query[$cur_se[\"q_s_word\"]];\n\t\t$charset\t\t= isset($q_s_charset) ? $q_s_charset : $cur_se[\"def_charset\"];\n\t\t$search_query\t= isset($q_s_word) ? $q_s_word : $parsed_query[$cur_se[\"q_s_word2\"]];\n\t\t$search_query\t= trim(stripslashes(strlen($charset) ? iconv($charset, conf('charset'), $search_query) : $search_query));\n\t\t// Check for search query\n\t\tif (empty($search_query)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Set referral cookie\n\t\t$COOKIE_VAR_NAME = \"ref_code\";\n\t\tif (!$batch_mode && empty($_COOKIE[$COOKIE_VAR_NAME])) {\n\t\t\t$code = $cur_se[\"name\"];\n\t\t\tsetcookie($COOKIE_VAR_NAME, $code, time() + 86400 * 30, \"/\");\n\t\t}\n\t\t// Limit number of keywords\n\t\tif (!empty($this->MAX_TOTAL_KEYWORDS)) {\n\t\t\tlist($current_keywords_num) = db()->query_fetch(\"SELECT COUNT(*) AS `0` FROM \".db('search_keywords').\"\");\n\t\t}\n\t\tif (!empty($this->MAX_TOTAL_KEYWORDS) && $current_keywords_num >= $this->MAX_TOTAL_KEYWORDS) {\n\t\t\tdb()->_add_shutdown_query(\n\t\t\t\t\"UPDATE \".db('search_keywords').\" \n\t\t\t\tSET hits = hits + 1, \n\t\t\t\t\tlast_update = \".time().\"\n\t\t\t\tWHERE text='\"._es($search_query).\"'\"\n\t\t\t);\n\t\t} else {\n\t\t\t// Check if such record already exists\n\t\t\t$sql = \"INSERT INTO \".db('search_keywords').\" (\n\t\t\t\t\tengine,\n\t\t\t\t\ttext,\n\t\t\t\t\tref_url,\n\t\t\t\t\tsite_url,\n\t\t\t\t\tlast_update,\n\t\t\t\t\thits\n\t\t\t\t) VALUES (\n\t\t\t\t\t\".intval($this->_search_engines[$host][\"id\"]).\",\n\t\t\t\t\t'\"._es($search_query).\"',\n\t\t\t\t\t'\"._es($referer).\"',\n\t\t\t\t\t'\"._es(\"http://\".$_SERVER[\"HTTP_HOST\"].$_SERVER[\"REQUEST_URI\"]).\"',\n\t\t\t\t\t\".time().\",\n\t\t\t\t\thits + 1 \n\t\t\t\t) ON DUPLICATE KEY UPDATE hits = hits + 1\\r\\n\";\n\t\t\tdb()->_add_shutdown_query($sql);\n\t\t}\n\t\t// Check if we need to update most popular right now\n\t\tif ($this->UPDATE_POPULAR_RAND > 1) {\n\t\t\tif (rand(1, $this->UPDATE_POPULAR_RAND) != 1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t// Update system cache\n\t\tif (!$batch_mode && main()->USE_SYSTEM_CACHE) {\n\t\t\tmain()->_add_shutdown_code('cache()->refresh(\"search_keywords_most_popular\");');\n\t\t}\n\t}", "public function getKeywords()\n {\n return addslashes(trim(join($this->__keywordsDelimiter, $this->__keywords)));\n }", "public function getKeywords()\n {\n return clone $this->keywords;\n }", "public function setTechPhrase( $name, $value )\r\n\t{\r\n\t\t$q = O_Db_Query::get( $this->tableName )->field( \"tech_phrase\", $value )->test( \"name\", \r\n\t\t\t\t$name );\r\n\t\tif ($this->lang)\r\n\t\t\t$q->test( \"lang\", $this->lang );\r\n\t\tif (!$q->update())\r\n\t\t\t$q->insert();\r\n\t\t$this->techPhrases[ $name ] = $value;\r\n\t}", "public static function set_vals($keyval){\n return DatabaseEngine::insert($keyval, 'example_usage');\n }", "function setAdditionalProductTag($key, $value)\n {\n $this->_tag_value_cache = array();\n $this->_fAdditionalTagList[$key] = $value;\n }", "function keywords_and_description($submit_keywords, $keywords, $seo_desc){\n\t\tif( isset($_POST[$submit_keywords]) ){\n\t\t\t$key_words = $_POST[$keywords];\n\t\t\t$short_desc = $_POST[$seo_desc]; \n\t\t\tuser::update_key_words($key_words, $short_desc);\n\n\t\t\t\theader(\"location: ../../basic_info.php\");\n\t\t}\n\t}", "public function setQueryKeywords($queryKeywords)\n {\n $this->queryKeywords = $queryKeywords;\n return $this;\n }", "public function keywords($keywords = null)\n {\n return $this->data(self::KEYWORDS, $keywords);\n }", "public function setKeyWords()\n {\n if (empty($this->sqlKeywords)) {\n $this->sqlKeywords = [\"abort\",\"absolute\",\"access\",\"action\",\"add\",\"admin\",\"after\",\"aggregate\",\"all\",\"also\",\"alter\",\"always\",\"analyse\",\"analyze\",\"and\",\"any\",\"array\",\"as\",\"asc\",\"assertion\",\"assignment\",\"asymmetric\",\"at\",\"attribute\",\"authorization\",\"backward\",\"before\",\"begin\",\"between\",\"bigint\",\"binary\",\"bit\",\"boolean\",\"both\",\"by\",\"cache\",\"called\",\"cascade\",\"cascaded\",\"case\",\"cast\",\"catalog\",\"chain\",\"char\",\"character\",\"characteristics\",\"check\",\"checkpoint\",\"class\",\"close\",\"cluster\",\"coalesce\",\"collate\",\"collation\",\"column\",\"comment\",\"comments\",\"commit\",\"committed\",\"concurrently\",\"configuration\",\"conflict\",\"connection\",\"constraint\",\"constraints\",\"content\",\"continue\",\"conversion\",\"copy\",\"cost\",\"create\",\"cross\",\"csv\",\"cube\",\"current\",\"current_catalog\",\"current_date\",\"current_role\",\"current_schema\",\"current_time\",\"current_timestamp\",\"current_user\",\"cursor\",\"cycle\",\"data\",\"database\",\"day\",\"deallocate\",\"dec\",\"decimal\",\"declare\",\"default\",\"defaults\",\"deferrable\",\"deferred\",\"definer\",\"delete\",\"delimiter\",\"delimiters\",\"depends\",\"desc\",\"dictionary\",\"disable\",\"discard\",\"distinct\",\"do\",\"document\",\"domain\",\"double\",\"drop\",\"each\",\"else\",\"enable\",\"encoding\",\"encrypted\",\"end\",\"enum\",\"escape\",\"event\",\"except\",\"exclude\",\"excluding\",\"exclusive\",\"execute\",\"exists\",\"explain\",\"extension\",\"external\",\"extract\",\"false\",\"family\",\"fetch\",\"filter\",\"first\",\"float\",\"following\",\"for\",\"force\",\"foreign\",\"forward\",\"freeze\",\"from\",\"full\",\"function\",\"functions\",\"global\",\"grant\",\"granted\",\"greatest\",\"group\",\"grouping\",\"handler\",\"having\",\"header\",\"hold\",\"hour\",\"identity\",\"if\",\"ilike\",\"immediate\",\"immutable\",\"implicit\",\"import\",\"in\",\"including\",\"increment\",\"index\",\"indexes\",\"inherit\",\"inherits\",\"initially\",\"inline\",\"inner\",\"inout\",\"input\",\"insensitive\",\"insert\",\"instead\",\"int\",\"integer\",\"intersect\",\"interval\",\"into\",\"invoker\",\"is\",\"isnull\",\"isolation\",\"join\",\"key\",\"label\",\"language\",\"large\",\"last\",\"lateral\",\"leading\",\"leakproof\",\"least\",\"left\",\"level\",\"like\",\"limit\",\"listen\",\"load\",\"local\",\"localtime\",\"localtimestamp\",\"location\",\"lock\",\"locked\",\"logged\",\"mapping\",\"match\",\"materialized\",\"maxvalue\",\"method\",\"minute\",\"minvalue\",\"mode\",\"month\",\"move\",\"name\",\"names\",\"national\",\"natural\",\"nchar\",\"next\",\"no\",\"none\",\"not\",\"nothing\",\"notify\",\"notnull\",\"nowait\",\"null\",\"nullif\",\"nulls\",\"numeric\",\"object\",\"of\",\"off\",\"offset\",\"oids\",\"on\",\"only\",\"operator\",\"option\",\"options\",\"or\",\"order\",\"ordinality\",\"out\",\"outer\",\"over\",\"overlaps\",\"overlay\",\"owned\",\"owner\",\"parallel\",\"parser\",\"partial\",\"partition\",\"passing\",\"password\",\"placing\",\"plans\",\"policy\",\"position\",\"preceding\",\"precision\",\"prepare\",\"prepared\",\"preserve\",\"primary\",\"prior\",\"privileges\",\"procedural\",\"procedure\",\"program\",\"quote\",\"range\",\"read\",\"real\",\"reassign\",\"recheck\",\"recursive\",\"ref\",\"references\",\"refresh\",\"reindex\",\"relative\",\"release\",\"rename\",\"repeatable\",\"replace\",\"replica\",\"reset\",\"restart\",\"restrict\",\"returning\",\"returns\",\"revoke\",\"right\",\"role\",\"rollback\",\"rollup\",\"row\",\"rows\",\"rule\",\"savepoint\",\"schema\",\"scroll\",\"search\",\"second\",\"security\",\"select\",\"sequence\",\"sequences\",\"serializable\",\"server\",\"session\",\"session_user\",\"set\",\"setof\",\"sets\",\"share\",\"show\",\"similar\",\"simple\",\"skip\",\"smallint\",\"snapshot\",\"some\",\"sql\",\"stable\",\"standalone\",\"start\",\"statement\",\"statistics\",\"stdin\",\"stdout\",\"storage\",\"strict\",\"strip\",\"substring\",\"symmetric\",\"sysid\",\"system\",\"table\",\"tables\",\"tablesample\",\"tablespace\",\"temp\",\"template\",\"temporary\",\"text\",\"then\",\"time\",\"timestamp\",\"to\",\"trailing\",\"transaction\",\"transform\",\"treat\",\"trigger\",\"trim\",\"true\",\"truncate\",\"trusted\",\"type\",\"types\",\"unbounded\",\"uncommitted\",\"unencrypted\",\"union\",\"unique\",\"unknown\",\"unlisten\",\"unlogged\",\"until\",\"update\",\"user\",\"using\",\"vacuum\",\"valid\",\"validate\",\"validator\",\"value\",\"values\",\"varchar\",\"variadic\",\"varying\",\"verbose\",\"version\",\"view\",\"views\",\"volatile\",\"when\",\"where\",\"whitespace\",\"window\",\"with\",\"within\",\"without\",\"work\",\"wrapper\",\"write\",\"xml\",\"xmlattributes\",\"xmlconcat\",\"xmlelement\",\"xmlexists\",\"xmlforest\",\"xmlparse\",\"xmlpi\",\"xmlroot\",\"xmlserialize\",\"year\",\"yes\",\"zone\"];\n }\n }", "public function filterByKeywords($keywords = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($keywords)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $keywords)) {\n $keywords = str_replace('*', '%', $keywords);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(ArticleTableMap::COL_KEYWORDS, $keywords, $comparison);\n }", "private function default_keywords() {\n\t\t// Default keywords.\n\t\techo WPSEO_News_Wrappers::textinput( 'default_keywords', __( 'Default Keywords', 'wordpress-seo-news' ) );\n\t\techo '<p class=\"desc label\">' . sprintf(\n\t\t\t/* translators: %1$s opening tag of the link to the Google suggested keywords page, %2$s closing tag for the link. */\n\t\t\t__( 'It might be wise to add some of the %1$sGoogle\\'s suggested keywords%2$s to all of your posts. Add them as a comma separated list.', 'wordpress-seo-news' ),\n\t\t\t'<a target=\"_blank\" href=\"http://www.google.com/support/news_pub/bin/answer.py?answer=116037\">',\n\t\t\t'</a>'\n\t\t) . '</p>';\n\n\t\techo WPSEO_News_Wrappers::checkbox( 'restrict_sitemap_featured_img', __( 'Only use the featured image for your News Sitemap, ignore images in post.', 'wordpress-seo-news' ), false );\n\t\techo '<br>';\n\t}", "public function setKeyword($var)\n {\n GPBUtil::checkString($var, True);\n $this->keyword = $var;\n\n return $this;\n }", "public function set(string $a_key, string $a_val) : void\n {\n $ilDB = $this->db;\n\n $ilDB->replace(\n \"crn_sts_mtr_settings\",\n array(\n \"keyword\" => array(\"text\", $a_key)),\n array(\n \"value\" => array(\"clob\", $a_val))\n );\n\n $this->setting[$a_key] = $a_val;\n }", "public function setProductKey($val)\n {\n $this->_propDict[\"productKey\"] = $val;\n return $this;\n }", "public function setProductKey($val)\n {\n $this->_propDict[\"productKey\"] = $val;\n return $this;\n }", "function set_keyw ($string, $db, $primary, $lang, $art, $navid, $stid=\"\") {\t$string = trim($string);\n\t$sql\t= \"SELECT kid FROM `morp_suche_keyw` WHERE keyw = '$string'\";\n\t$res\t= safe_query($sql);\n\t$x\t\t= mysqli_num_rows($res);\n\n\tif ($x > 0) {\n\t\t# wenn ja, sprache und art kennzeichnen\n\t\t$row = mysqli_fetch_object($res);\n\t\t$kid = $row->kid;\n\t\t$que = \"update `morp_suche_keyw` set $lang=1 WHERE kid=$kid\";\n\t\tsafe_query($que);\n\t}\n\telse {\n\t\t# wenn nein, sprache und art kennzeichnen und keyword einsetzen\n\t\t$que = \"insert `morp_suche_keyw` set `keyw`='$string', $lang='1'\";\n\t\tsafe_query($que);\n\t\t$kid = mysqli_insert_id($mylink);\n\t}\n\n\t# ist dieses keyword im zusammenhang mit der navID schon vorhanden? wenn ja, zaehler hochsetzen => erhoehung der gewichtung\n\t$anz\t= \"anz\".$lang;\n\t$sql\t= \"SELECT \".$anz.\", sid FROM `morp_suche_count` WHERE kid='$kid' AND navid='$navid' AND art=\".$art.\"\";\n\t$res\t= safe_query($sql);\n\t$x\t\t= mysqli_num_rows($res);\n\n\tif ($stid) $set = \", stid=\".$stid;\n\tif ($x > 0) {\n\t\t# wenn ja, zaehler erhoehen\n\t\t$row = mysqli_fetch_object($res);\n\t\t$id = $row->sid;\n\t\t$an = $row->$anz;\n\t\t$an++;\n\t\t$que = \"update `morp_suche_count` set \".$anz.\"=\".$an.$set.\" WHERE sid=\".$id;\n\t\tsafe_query($que);\n\t}\n\telse\t{\n\t\t$que = \"insert `morp_suche_count` set \".$anz.\"=1, navid='$navid', kid='$kid', art=$art\".$set;\n\t\tsafe_query($que);\n\t}\n\n}", "private function normalize_keywords()\r\n {\r\n /*\r\n 'ident_keywords' => array(\r\n 'type'=>'complex',\r\n 'is_repeated'=>true,\r\n 'xpath'=>'//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords/gmd:MD_Keywords',\r\n 'items'=>array(\r\n 'keyword'=> array(\r\n 'type'=>'array',\r\n 'xpath'=>'gmd:keyword',\r\n 'is_repeated'=>true,\r\n ),\r\n 'type'=> array(\r\n 'type'=>'text',\r\n 'xpath'=>'gmd:type',\r\n 'is_repeated'=>false\r\n ),\r\n 'thesaurus'=> array(\r\n 'type'=>'text',\r\n 'xpath'=>'gmd:thesaurusName/gmd:CI_Citation/gmd:title',\r\n 'is_repeated'=>false\r\n )\r\n )\r\n ),\r\n */\r\n \r\n $keywords=$this->xpath_map['ident_keywords']['data'];\r\n \r\n $output=array();\r\n foreach($keywords as $row)\r\n {\r\n foreach($row['keyword'] as $keyword)\r\n { \r\n $output[]=array(\r\n 'keyword' => $keyword,\r\n 'type' => @$row['type'],\r\n 'thesaurus' => @$row['thesaurus'] \r\n ); \r\n }\r\n }\r\n $this->xpath_map['ident_keywords']['data']=$output;\r\n }", "public function setProductName(?string $value): void {\n $this->getBackingStore()->set('productName', $value);\n }", "public function setSearchKanyoAttribute($value) {\n \t$this->attributes['search_kanyo'] = implode(',', $value);\n }", "function we_tag_keywords(array $attribs, $content){\n\t$htmlspecialchars = weTag_getAttribute('htmlspecialchars', $attribs, false, we_base_request::BOOL);\n\t$attribs = removeAttribs($attribs, array(\n\t\t'htmlspecialchars'\n\t));\n\n\t$keys = !empty($GLOBALS['KEYWORDS']) ? $GLOBALS['KEYWORDS'] : '';\n\tif(!$keys && $content){\n\t\tob_start();\n\t\t//FIXME:eval\n\t\teval('?>' . $content);\n\t\t$keys = ob_get_clean();\n\t}\n\tif(!empty($GLOBALS['we_editmode'])){\n\t\t//set meta data & exit\n\t\t$GLOBALS['meta']['Keywords']['default'] = $keys;\n\t\treturn;\n\t}\n\t$attribs['name'] = 'keywords';\n\t$attribs['content'] = str_replace('\"', '\\'', ($htmlspecialchars ? oldHtmlspecialchars(strip_tags($keys)) : strip_tags($keys)));\n\treturn getHtmlTag(\"meta\", $attribs) . \"\\n\";\n}", "function add_keywords($keywords) {\n\n $operations = array();\n\n for ($i = 0; $i < count($keywords); $i++) {\n\n $k = $keywords[$i];\n\n if (!isset($k['match_type']))\n $k['match_type'] = AW_MATCH_TYPE_BROAD;\n\n $keyword = '<criterion xsi:type=\"Keyword\">\n <text>'.$this->__xml($k['text']).'</text>\n <matchType>'.\n $this->__xml($k['match_type'])\n .'</matchType>\n </criterion>';\n\n $operations[] =\n $this->__make_criterion_operation('ADD',\n $k['ad_group_id'],\n $keyword,\n $k['user_status'],\n $k['destination_url']);\n\n }\n\n return $this->__do_mutate('AdGroupCriterionService', $operations);\n\n}", "protected function saveUpdateProducts()\r\n\t{\r\n\t\tif (count($this->newProducts) > 0) {\r\n\t\t\t// inserir as novas\r\n\t\t\tforeach ($this->newProducts as $product) {\r\n\t\t\t\t$result = $this->client->catalogProductUpdate($this->sessionid, $product->sku, $product);\r\n\t\t\t\t$this->log->addInfo('updated', array(\"sku\" => $product->sku, \"result\" => $result));\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->newProducts = array();\r\n\t}", "public function run()\n\t{\n\t\t\\DB::table('keywords')->truncate();\n \n\t\t\\DB::table('keywords')->insert(array (\n\t\t\t0 => \n\t\t\tarray (\n\t\t\t\t'id' => 1,\n\t\t\t\t'pin_id' => 1,\n 'occurrences' => 2,\n\t\t\t\t'keywords' => 'Let\\'s go crazy',\n\t\t\t),\n\t\t\t1 => \n\t\t\tarray (\n\t\t\t\t'id' => 2,\n\t\t\t\t'pin_id' => 3,\n 'occurrences' => 2,\n 'keywords' => 'Testing keywords',\n\t\t\t),\n\t\t));\n\t}", "public function setHelpKeywords(array $helpKeywords): self\n {\n $this->options['helpKeywords'] = $helpKeywords;\n return $this;\n }", "public function getSeoKeywords(){ return $this->seo_keywords; }", "function save_custom_field( $post_id ) {\r\n $user = wp_get_current_user();\r\n $_warehouse_flag = isset( $_POST['_warehouse_flag'] ) ? $_POST['_warehouse_flag'] : '';\r\n $product = wc_get_product( $post_id );\r\n \r\n if($_warehouse_flag==1){\r\n\t $product->update_meta_data( '_warehouse_flag', 'A' );\r\n }\r\n if($_warehouse_flag==2){\r\n\t $product->update_meta_data( '_warehouse_flag', 'V' );\r\n }\r\n $_enable_warehouse = isset( $_POST['_enable_warehouse'] ) ? $_POST['_enable_warehouse'] : '0';\r\n \r\n \r\n $product->update_meta_data( '_enable_warehouse', $_enable_warehouse );\r\n if($_enable_warehouse==1){\r\n\t $categories = [ 'Warehouse Product'];\r\n\t wp_set_object_terms( $post_id, $categories, 'warehouses' );\r\n }\r\n else{\r\n\t $categories = [ 'Warehouse Product'];\r\n\t wp_set_object_terms( $post_id, null, 'warehouses' );\r\n }\r\n \r\n $product->save();\r\n \r\n \r\n}", "public static function addKeywords($params)\n {\n $data = new ExcludedKeyword();\n $data->keyword = BackEnd_Helper_viewHelper::stripSlashesFromString( $params['keyword']);\n $data->action = BackEnd_Helper_viewHelper::stripSlashesFromString($params['actionType']);\n $data->url = BackEnd_Helper_viewHelper::stripSlashesFromString($params['redirectTo']);\n $data->save();\n\n if($params['actionType'] == 1){\n\n //split value by comman (,)\n $splitedVal = explode(',',$params['selectedShopForSearchbar']) ;\n //get hidden value from posted form\n\n foreach ($splitedVal as $sp) {\n //find shop by name from shop table\n $relKeyWords = new RefExcludedkeywordShop();\n //add value in array by index\n $relKeyWords->keywordid = $data->id;//get last inserted keyword id\n $relKeyWords->shopid = $sp;\n $relKeyWords->keywordname = BackEnd_Helper_viewHelper::stripSlashesFromString($params['keyword']);\n $relKeyWords->save();\n\n }\n }\n //call cache function\n FrontEnd_Helper_viewHelper::clearCacheByKeyOrAll('all_excludedkeyword_list');\n //die('out');\n\n }", "function setIdkitprodutos($idkitprodutos) {\n $this->idkitprodutos = $idkitprodutos;\n }", "protected function getKeywordsString() {\r\n\t\treturn implode(', ', $this->keywords);\r\n\t}", "public function getSeoKeywords();", "public function setProducts(array $products = []): void\n {\n $xml = '';\n\n foreach ($products as $id) {\n $xml .= '<product-set-product product-id=\"' . Xml::escape($id) . '\" />' . PHP_EOL;\n }\n\n $this->elements['product-set-products'] = $xml;\n }", "public function setAttributes_price_words( $attributes_price_words ) {\n\t\t$this->attributes_price_words = $attributes_price_words;\n\t}", "public function insertKeyword($page_id, $word) {\n $page_id = $this->connection->escape_string($page_id);\n $word = $this->connection->escape_string($word);\n \n $this->query(\"INSERT INTO Keywords (page_id, word)\"\n . \" VALUES ('$page_id', '$word')\");\n }", "public function add_keyword(){\n $this->autoRender = false;\n if( $this->request->is('post')){\n if( !empty( $this->request->data ) ){\n\n //pr( $this->request->data ); die;\n //$this->loadModel('ProductKeyword');\n if( $this->ProductKeyword->save($this->request->data)){\n $this->Session->setFlash('Keyword has been successfully saved!', 'default', array('class' => 'alert alert-success'));\n }\n }else{\n $this->Session->setFlash('Please enter valid information!', 'default', array('class' => 'alert alert-danger'));\n }\n $this->redirect( array('controller' =>'productranks', 'action' => 'ranking_tracker') );\n\n }\n\n }", "public function setMetaKeywords($metaKeywords): self\n {\n $this->metaKeywords = $metaKeywords;\n\n return $this;\n }", "public function setMetaKeywords($metaKeywords): self\n {\n $this->metaKeywords = $metaKeywords;\n\n return $this;\n }", "public function setPrimaryKey($key)\n {\n $this->setProdId($key);\n }", "private function _saveSettingsProducts()\r\n\t{\r\n\t\tif (!isset($_POST['paypal_usa_products']) && !isset($_POST['paypal_usa_express_checkout']))\r\n\t\t\t$this->_error[] = $this->l('You must choose at least one PayPal product to enable.');\r\n\t\telse\r\n\t\t{\r\n\t\t\tforeach (array(1 => 'PAYPAL_USA_PAYMENT_STANDARD', 2 => 'PAYPAL_USA_PAYMENT_ADVANCED', 3 => 'PAYPAL_USA_PAYFLOW_LINK') as $paypal_usa_product_id => $paypal_usa_product)\r\n\t\t\t\tConfiguration::updateValue($paypal_usa_product, (isset($_POST['paypal_usa_products']) && $_POST['paypal_usa_products'] == $paypal_usa_product_id) ? 1 : null);\r\n\r\n\t\t\tConfiguration::updateValue('PAYPAL_USA_EXPRESS_CHECKOUT', isset($_POST['paypal_usa_express_checkout']));\r\n\r\n\t\t\tif (Configuration::get('PAYPAL_USA_EXPRESS_CHECKOUT') && !Configuration::get('PAYPAL_USA_EXP_CHK_PRODUCT') && !Configuration::get('PAYPAL_USA_EXP_CHK_SHOPPING_CART'))\r\n\t\t\t\tConfiguration::updateValue('PAYPAL_USA_EXP_CHK_PRODUCT', 1);\r\n\r\n\t\t\t$this->_validation[] = $this->l('Congratulations, your configuration was updated successfully');\r\n\t\t}\r\n\t}", "public function assignProductToCategories($productSku, array $categoryCodes);", "public function removeEmptyKeywords()\n {\n foreach ($this->keywords as $key => $typeKeyword) {\n /** @var $typeKeyword TypeKeyword */\n if (trim($typeKeyword->getKeyword()) === '') {\n $this->keywords->remove($key);\n }\n }\n }", "public function getKeywords(): string\n {\n return $this->keywords;\n }", "public function getKeywords() \n {\n return $this->keywords;\n }", "public function registerKeywords(array $keywords) {\r\n\t\tforeach ($keywords as $nextKeyword) {\r\n\t\t\t$this->registerKeyword($nextKeyword);\r\n\t\t}\r\n\t}" ]
[ "0.70644057", "0.64567083", "0.6108269", "0.602328", "0.5781163", "0.5770702", "0.5770089", "0.5766622", "0.5761055", "0.5748266", "0.57237107", "0.5694472", "0.56857413", "0.56722146", "0.56080747", "0.559631", "0.55493444", "0.5544019", "0.5402991", "0.52204406", "0.52123386", "0.521093", "0.52055377", "0.51985663", "0.51877624", "0.5141273", "0.51089185", "0.49706793", "0.49345335", "0.4926358", "0.49244615", "0.4880296", "0.48609304", "0.48609304", "0.48608074", "0.48537496", "0.4837338", "0.48284364", "0.47930396", "0.47908145", "0.47652715", "0.47551936", "0.47361568", "0.47014904", "0.4624494", "0.45964116", "0.45721754", "0.45594624", "0.45434985", "0.45388487", "0.4505289", "0.44911987", "0.44719875", "0.4469499", "0.4458208", "0.44465992", "0.44040382", "0.4371613", "0.4366361", "0.43611535", "0.43607086", "0.4359959", "0.43479642", "0.43307918", "0.43259197", "0.43175623", "0.42964056", "0.4290083", "0.42791712", "0.42785403", "0.4265948", "0.4265948", "0.4263779", "0.42624924", "0.42619908", "0.42571172", "0.42506653", "0.42421263", "0.42202148", "0.42138162", "0.42099512", "0.42047247", "0.41978395", "0.419051", "0.41777056", "0.416988", "0.41694236", "0.41672912", "0.41606554", "0.41602463", "0.41387454", "0.41381776", "0.41381776", "0.41377354", "0.41335037", "0.41332856", "0.4130862", "0.41256312", "0.41211826", "0.41167206" ]
0.8035094
0
setProdKeywordsWriteup() Set the value of [prod_title] column.
public function setProdTitle($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_title !== $v) { $this->prod_title = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_TITLE] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdKeywordsWriteup($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_keywords_writeup !== $v) {\n $this->prod_keywords_writeup = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP] = true;\n }\n\n return $this;\n }", "public function getProdKeywordsWriteup()\n {\n return $this->prod_keywords_writeup;\n }", "public function setProdKeywords($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_keywords !== $v) {\n $this->prod_keywords = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_KEYWORDS] = true;\n }\n\n return $this;\n }", "protected function setKeywords() {\r\n\t\t$keywords = $this->newsItem->getKeywords();\r\n\t\t$keywordsAction = $this->settings['news']['semantic']['general']['keywords']['action'];\r\n\t\t$pageKeywords = $GLOBALS['TSFE']->page['keywords'];\r\n\t\tif (!empty($keywordsAction) && !empty($pageKeywords)) {\r\n\t\t\tswitch ($keywordsAction) {\r\n\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t$keywords = (empty($keywords)) ? $pageKeywords : $keywords . ', ' . $pageKeywords;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'append':\r\n\t\t\t\t\t$keywords = (empty($keywords)) ? $pageKeywords : $pageKeywords . ',' . $keywords;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t}\r\n\t\t}\r\n\t\t$keywordsArray = t3lib_div::trimExplode(',', $keywords);\r\n\t\t$keywordsLimit = intval($this->settings['news']['semantic']['general']['keywords']['limit']);\r\n\t\t$this->keywords = (empty($keywordsLimit)) ? array_unique($keywordsArray) : $this->keywords = array_slice(array_unique($keywordsArray), 0, $keywordsLimit);\r\n\t}", "public function onBeforeWrite() {\n\t\tparent::onBeforeWrite();\n\t\t$this->Title = $this->Value;\n\t}", "public function onBeforeWrite()\n {\n /** @var SiteConfig $siteconfig */\n $siteconfig = SiteConfig::current_site_config();\n if (!$siteconfig->Title) {\n $siteconfig->Title = $this->Title;\n $siteconfig->Tagline = $this->Tagline;\n $siteconfig->write();\n }\n\n parent::onBeforeWrite();\n }", "public function testAssignKeywords()\n {\n $this->markTestIncomplete(\n 'This test has not been implemented yet.'\n );\n }", "function set_the_title($title) {\n\n md_set_the_title($title);\n \n }", "public function getProdKeywords()\n {\n return $this->prod_keywords;\n }", "static function save_keywords($post_id, $keywords){\n\t\t\tupdate_post_meta($post_id, 'affiliate_keywords', $keywords);\n\t\t}", "public function setTitleAttribute($val)\n {\n $this->attributes['title'] = trim($val);\n }", "protected function setPageTitle() {\r\n\t\t$pageTitleText = (empty($this->settings['news']['semantic']['general']['pageTitle']['useAlternate'])) ? $this->newsItem->getTitle() : $this->newsItem->getAlternativeTitle();\r\n\t\t$pageTitleAction = $this->settings['news']['semantic']['general']['pageTitle']['action'];\r\n\r\n\t\tif (!empty($pageTitleAction)) {\r\n\t\t\tswitch ($pageTitleAction) {\r\n\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t$pageTitleText .= ': ' . $GLOBALS['TSFE']->page['title'];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'append':\r\n\t\t\t\t\t$pageTitleText = $GLOBALS['TSFE']->page['title'] . ': ' . $pageTitleText;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t}\r\n\t\t\t$this->pageTitle = html_entity_decode($pageTitleText, ENT_QUOTES, \"UTF-8\");\r\n\t\t\t$GLOBALS['TSFE']->page['title'] = $this->pageTitle;\r\n\t\t\t$GLOBALS['TSFE']->indexedDocTitle = $this->pageTitle;\r\n\t\t}\r\n\t}", "protected function setSeoTags()\n {\n global $APPLICATION;\n\n if ($this->arParams['SET_SEO_TAGS'] !== 'Y')\n {\n return false;\n }\n\n if ($this->arResult['SEO_TAGS']['TITLE'])\n {\n $APPLICATION->SetPageProperty('title', $this->arResult['SEO_TAGS']['TITLE']);\n }\n\n if ($this->arResult['SEO_TAGS']['DESCRIPTION'])\n {\n $APPLICATION->SetPageProperty('description', $this->arResult['SEO_TAGS']['DESCRIPTION']);\n }\n\n if ($this->arResult['SEO_TAGS']['KEYWORDS'])\n {\n $APPLICATION->SetPageProperty('keywords', $this->arResult['SEO_TAGS']['KEYWORDS']);\n }\n }", "protected function setKeyword($value)\n\t{\n\t\t$this->keyword = $value;\n\t}", "function product_single_title_update( $title = '', $args = array(), $escape = true ) {\n if( is_product() ) {\n $title = get_the_title();\n $sku = get_post_meta(get_the_ID(), '_sku', true);\n if( $sku === '' ) {\n return $title;\n } else {\n return '[' . $sku . '] ' . $title;\n }\n }\n}", "protected function setMeta($title = '', $desc = '', $keywords = '')\n {\n $this->meta['title'] = $title;\n $this->meta['desc'] = $desc;\n $this->meta['keywords'] = $keywords;\n }", "public function testSetAndGetKeyword()\n {\n $keyword = 'key';\n $value = 'this should be saved and retrieved';\n\n // Execute.\n $this->testObject->setKeyword($keyword, $value);\n\n // Get the keyword out.\n $result = $this->testObject->getKeyword($keyword);\n\n // Assert Result.\n $this->assertEquals($value, $result);\n $this->assertEquals($value, $_SESSION['behat']['GenesisSqlExtension']['keywords'][$keyword]);\n }", "public function setProdWriteup($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_writeup !== $v) {\n $this->prod_writeup = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_WRITEUP] = true;\n }\n\n return $this;\n }", "public function setKeywords($keywords)\n\t{\n\t\t$this->keywords = $keywords;\n\n\t\tif($this->pageInitialized)\n\t\t\t$this->setMetaTag('keywords', $this->keywords);\n\t}", "public function setKeywords($val)\n {\n $this->_propDict[\"keywords\"] = $val;\n return $this;\n }", "function set_jobtitle($jobtitle) {\n\t\t$this->jobtitle = $jobtitle;\n\t}", "public function setTitlePostfix($val){ return $this->setField('title_postfix', $val); }", "protected function onBeforeWrite()\n {\n if (!$this->Title) {\n // Strip the extension\n $this->Title = preg_replace('#\\.[[:alnum:]]*$#', '', $this->Name);\n // Replace all punctuation with space\n $this->Title = preg_replace('#[[:punct:]]#', ' ', $this->Title);\n // Remove unecessary spaces\n $this->Title = preg_replace('#[[:blank:]]+#', ' ', $this->Title);\n }\n\n parent::onBeforeWrite();\n }", "public function onBeforeWrite()\n {\n if (empty($this->Name)) {\n $str = preg_replace('/[^a-z0-9]+/i', ' ', $this->Title);\n $str = trim($str);\n $str = ucwords($str);\n $this->Name = str_replace(\" \", \"\", $str);\n }\n\n parent::onBeforeWrite();\n }", "function od_set_page_title($orig_title) {\n\t\treturn \"Map | \"; // set the page title (could be improved, eg based on filters. Might be something the user wants to set\n\t}", "public function setTitleAttribute($value) {\n\t\t$this->attributes['title'] = ucfirst($value);\n\n\t\tif(!$this->slug)\n\t\t\t$this->attributes['slug'] = News::createUniqueSlug($value);\n\t}", "public function onBeforeWrite()\n {\n $this->Title = $this->getName();\n\n // Generate the ticket code\n if ($this->exists() && empty($this->TicketCode)) {\n $this->TicketCode = $this->generateTicketCode();\n }\n\n parent::onBeforeWrite();\n }", "public function setTitle($value)\n {\n $this->_title = $value;\n }", "function set_title($title){\r\n\t\t$this->_title = $title;\r\n\t}", "public function set_pagetitle($title)\n {\n $this->pagetitle = $title;\n }", "function setTitle( $title )\n {\n $title = trim( $title );\n $this->properties['TITLE'] = $title;\n }", "public function setTitle($val){ return $this->setField('title',$val); }", "public function setTitleTag($title)\n {\n $this->_title_tag = $title;\n }", "public function setKeywords($value)\n {\n return $this->set('Keywords', $value);\n }", "protected function _syncKeywords() {}", "public function setTitle($newTitle) { $this->Title = $newTitle; }", "public function setupStoreTitles() {\r\n Mage::getSingleton('marketplace/sellerprofile')->setSellerStoreTitles();\r\n }", "public static function setProcessTitle($title)\n\t{\n\t\t/** @noinspection PhpUndefinedFunctionInspection */\n\t\tfunction_exists('setproctitle') && setproctitle($title);\n\t}", "public function setKeywords($keywords, $encoding = 'UTF-8') {}", "public function setTitle($title){\n $this->p_title = $title;\n }", "public function setTitle($title) {\n\t\t$title = str_replace(\"\\r\\n\", \"|\", $title);\n\t\t$title = str_replace(\" \", \"+\", $title);\n\t\t$this -> setProperty('chtt', $title);\n\t}", "public function setTitleAttribute($value) {\n $this->attributes['title'] = $value;\n $this->attributes['slug'] = str_slug($value);\n }", "public function setTitle($value)\n {\n $this->title = $value;\n }", "protected function setKeyAndTitle() {\n\t\t$this->key = 'config_tab_dataset';\n\t\t$this->title = __('Dataset');\n\t}", "public function getProdTitle()\n {\n return $this->prod_title;\n }", "public function setKeywords($keywords, int $maxLength = null);", "public function setDocumentTitle($newTitle) {\n $this->document['title'] = $newTitle;\n }", "public function setKeywords($keywords)\n {\n $this->keywords = (array)$keywords;\n }", "protected function cleanupFeedMetaKeywords(Product $product)\n\t{\n\t\t$keywords = $product->getMetaKeywords();\n\n\t\t// Trim size\n\t\t$keywords = substr($keywords, 0, 254);\n\n\t\t$product->setMetaKeywords($keywords);\n\t}", "protected function set_meta_desc()\r\r\n {\r\r\n define('_KEYWORDS',_BUY_ONLINE);\r\r\n define('_DESCRIPTION',_BUY_ONLINE);\r\r\n define('_TITLE_PAGE',_BUY_ONLINE);\r\r\n }", "public function setTitle($title) {\n $this->_title = $title;\n }", "public function setTitle($title) {\r\n $this->_title = $title;\r\n }", "protected function setTitleAttribute(string $title): void\n {\n $this->attributes['title'] = $title;\n $this->slug = Str::slug(\n $title,\n '-',\n resolve(SettingsRepositoryInterface::class)->get('default_locale', 'en')\n );\n }", "public function setMetaTitleAttribute($value)\n {\n $this->attributes['meta_title'] = $value;\n\n if (empty($value)) {\n $this->attributes['meta_title'] = $this->attributes['name'];\n }\n }", "public function set_pub_title( $post ){\n\t\t\n\t\t$this->pub_title = $post->post_title;\n\t\t\n\t}", "function setTitle($title)\n\t{\n\t\t$this->table->title = $title;\n\t\t$this->record->title = $title;\n\t}", "public function setTitlePrefix($val){ return $this->setField('title_prefix', $val); }", "public function setPageTitle($title);", "function setSyncProdDesc()\n {\n }", "protected function setMetaTitle() {\r\n\t\t$partStg = trim($this->settings['news']['semantic']['general']['metaTitle']);\r\n\t\tif (is_int(strpos($partStg, '+'))) {\r\n\t\t\t$parts = t3lib_div::trimExplode('+', $partStg);\r\n\t\t\tforeach ($parts as $part) {\r\n\t\t\t\t$action = 'get' . ucfirst($part);\r\n\t\t\t\t$value = $this->newsItem->$action();\r\n\t\t\t\tif ($value !== '') {\r\n\t\t\t\t\t$data[] = $value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$this->metaTitle = implode(': ', $data);\r\n\t\t} elseif (is_int(strpos($partStg, '//'))) {\r\n\t\t\t$parts = t3lib_div::trimExplode('//', $partStg);\r\n\t\t\tforeach ($parts as $part) {\r\n\t\t\t\t$action = 'get' . ucfirst($part);\r\n\t\t\t\t$data = $this->newsItem->$action();\r\n\t\t\t\tif ($data !== '') {\r\n\t\t\t\t\t$this->metaTitle = $data;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$action = 'get' . ucfirst($partStg);\r\n\t\t\t$this->metaTitle = $this->newsItem->$action();\r\n\t\t}\r\n\t}", "public function set_name($title)\n {\n if (!empty($title)) {\n $this->title = Database::escape_string($title);\n }\n }", "public function setKeyWord($key){\n $this->keyword = $key;\n }", "public function set_title($title)\n {\n $this->set_default_property(self::PROPERTY_TITLE, $title);\n }", "public function setTitle($title) {\n\t\t\n\t\t\t$this->_title = $title;\n\t\t\n\t\t}", "public function setTitle( $newTitle )\n {\n\t\t$this->title = $newTitle;\n\t}", "public function set_title($title)\n {\n $this->title = $title;\n }", "static function metabox_to_deal_keywords($post){\t\t \t\n\t\t\tinclude self::get_script_location('metabox-for-product.php', 'admin');\t\t \t\n\t\t }", "public function setTitle($newTitle) {\n\t\t$this->title = $newTitle;\n\t}", "public function setTitle(?string $value): void {\n $this->getBackingStore()->set('title', $value);\n }", "public function post_title( $key ) {\n\t\t$this->data['post_title'] = $key;\n\t}", "public function setTitleAttribute($value)\n {\n $this->attributes['title'] = ucfirst($value);\n }", "public function setTitle($val)\n {\n $this->_propDict[\"title\"] = $val;\n return $this;\n }", "public function setTitle($val)\n {\n $this->_propDict[\"title\"] = $val;\n return $this;\n }", "public function setTitle($val)\n {\n $this->_propDict[\"title\"] = $val;\n return $this;\n }", "public function setKeywords(?AnswerKeyword $value): void {\n $this->getBackingStore()->set('keywords', $value);\n }", "public function setTitle($title) {\n $sql = \"UPDATE \tsls\" . SLS_N . \"_chapter SET\n\t\t\t\ttitle = '\" . escapeString($title) . \"'\n\t\t\tWHERE \tchapterID = \" . $this->chapterID;\n WCF::getDB()->registerShutdownUpdate($sql);\n }", "public function setSeoKeywords($v)\n { $this->getCurrentTranslation()->setSeoKeywords($v);\n\n return $this;\n }", "function setTitlePosition($xpos = 0, $ypos = 0)\n {\n $this->title_xpos = $xpos;\n $this->title_ypos = $ypos;\n }", "public function add_keywords ( $new_keywords )\r\n\t\t{\r\n\t\t\r\n\t\t\t$this->errno = DB_OK;\r\n\r\n\t\t\tif ( $this->cat_id == -1 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tSuch category hasn't been created\r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_ID;\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( ! ( $result = $this->con->query( \"SELECT cat_keywords FROM category WHERE cat_id=$this->cat_id\" ) ) )\r\n\t\t\t{\r\n\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( $result->num_rows == 1 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tas the id is unique one row should have been returned\r\n\t\t\t{\r\n\t\t\t\t$row = $result->fetch_row();\r\n\t\t\t\t$kw = $row[0];\r\n\t\t\t}\t\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->errno = MYSQL_ERROR;\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t/* gathering all keywords into one variable with # as delimiter to insert it to the database */\r\n\t\t\t$kw_length = 0; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tinitialize with 0 in case the keywords array hasn't been set\r\n\t\r\n\t\t\tif ( isset ( $new_keywords ) )\r\n\t\t\t\t$kw_length = count( $new_keywords );\r\n\r\n\t\t\tif ( $kw_length == 0 )\r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_INPUT;\r\n\t\t\t\treturn ;\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor ( $i = 0; $i < $kw_length; $i++ )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tgenerating the keyword string which will enter to the database\r\n\t\t\t\t$kw = $kw.\"#\".$new_keywords[$i];\t\t\t\r\n\t\t\t\r\n\t\t\tif( !$this->con->query( \"UPDATE category SET cat_keywords=\\\"$kw\\\" WHERE cat_id=$this->cat_id;\" ) )\t\t\t\r\n\t\t\t{\r\n\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\r\n\t\t\t\treturn ;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to query\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t$this->cat_keywords = NULL;\r\n\t\t\t\r\n\t\t\t$tok = strtok( $kw, \"#\" );\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tturning the keywords string into an array\r\n\t\t\t\r\n\t\t\twhile ( $tok !== false ) \r\n\t\t\t{\r\n\t\t\t\t$this->cat_keywords [] = $tok;\r\n\t\t\t\t$tok = strtok( \"#\" );\r\n\t\t\t}\t\t\t\r\n\t\r\n\t\t}", "public function set_page_title($p_page_title)\n\t{\n\t\t$this->c_page_title = $p_page_title;\n\t}", "public function setTitle($title) {\n $this->_title = $title;\n }", "protected function setTitle()\n\t{\n\t\tglobal $APPLICATION;\n\n\t\tif ($this->arParams[\"SET_TITLE\"] == 'Y')\n\t\t\t$APPLICATION->SetTitle(Localization\\Loc::getMessage(\"SPOL_DEFAULT_TITLE\"));\n\t}", "function setTitle($title) {\r\n $this->_title = $title;\r\n }", "function setTitle($title) {\r\n $this->_title = $title;\r\n }", "public function setKeywords(string $keywords)\n {\n $this->keywords = $keywords;\n }", "public function setTitle($title){\n \t$this->title = $title;\n }", "function keywords_and_description($submit_keywords, $keywords, $seo_desc){\n\t\tif( isset($_POST[$submit_keywords]) ){\n\t\t\t$key_words = $_POST[$keywords];\n\t\t\t$short_desc = $_POST[$seo_desc]; \n\t\t\tuser::update_key_words($key_words, $short_desc);\n\n\t\t\t\theader(\"location: ../../basic_info.php\");\n\t\t}\n\t}", "public function setTitle($title) {\n $this->title = $title ;\n }", "function ld_install_title_field()\r\n{\r\n\tglobal $bbdb, $bb_table_prefix;\r\n\r\n\t$installed = false;\r\n\r\n\t// Get fieldnames from posts table\r\n\t$fields = $bbdb->get_results(\"SHOW COLUMNS FROM \".$bb_table_prefix.\"posts\");\r\n\r\n\t// Check that 'post_title' doesn't already exist\r\n\tforeach ($fields as $field) {\r\n\t\tif ($field->Field == \"post_title\") {\r\n\t\t\t$installed = true;\r\n\t\t}\r\n\t}\r\n\r\n\t// If 'post_title' does not exist, add it to the table\r\n\tif (!$installed) {\r\n\t\t$bbdb->query(\"ALTER TABLE `\".$bb_table_prefix.\"posts` ADD `post_title` VARCHAR(100) NOT NULL\");\r\n\t}\r\n\r\n\t$bbdb->show_errors();\r\n}", "public function setProductName(?string $value): void {\n $this->getBackingStore()->set('productName', $value);\n }", "public function setTitle($title){\n $this->title = $title;\n }", "static public function setKeywords($new_keywords) {\n\t\tif (is_string($new_keywords)) {\n\t\t\t$new_keywords = explode(',', $new_keywords);\n\t\t\tforeach($new_keywords as &$keyword) {\n\t\t\t\t$keyword = trim($keyword);\n\t\t\t}\n\t\t}\n\t\tself::$page_keywords = (array)$new_keywords;\n\t}", "function setTitle($title) {\n\t\t$this->_title = $title;\n\t}", "public function set_title($text){\n $this->title=$text;\n }", "public function setTitle($var)\n {\n $this->_title = $var;\n }", "public function setTitle($title){\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->_title = $title;\n }", "public function setTitle($title)\n {\n $this->_title = $title;\n }", "public function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "public function setTitle($title) {\n\t\t$this->title = $title;\n\t}" ]
[ "0.69538426", "0.5939345", "0.5731083", "0.5477991", "0.54024297", "0.5314378", "0.5285515", "0.5176923", "0.5047247", "0.50246245", "0.5022888", "0.50204957", "0.4987374", "0.4963068", "0.49517187", "0.49196514", "0.49158478", "0.48664215", "0.4862366", "0.48614797", "0.48467392", "0.48401392", "0.48338625", "0.48310617", "0.48309454", "0.4820358", "0.4806909", "0.48001146", "0.47804672", "0.47784305", "0.4777639", "0.47703838", "0.47693554", "0.47506636", "0.47487822", "0.47466862", "0.47449353", "0.47331524", "0.4730081", "0.46933582", "0.4685037", "0.46781787", "0.46772325", "0.4672334", "0.4659208", "0.46479928", "0.4635115", "0.4633423", "0.46157923", "0.4599641", "0.45855078", "0.458265", "0.45818472", "0.4580118", "0.45775226", "0.45768824", "0.45761698", "0.45722562", "0.45719448", "0.45716166", "0.45657003", "0.45639923", "0.45593452", "0.455861", "0.45585072", "0.45531356", "0.45463505", "0.45451725", "0.4544521", "0.45429084", "0.45390487", "0.45356706", "0.45356706", "0.45356706", "0.4533467", "0.4533348", "0.4530833", "0.4530174", "0.4529445", "0.45286295", "0.45252913", "0.45247626", "0.45208135", "0.45208135", "0.45182952", "0.4518012", "0.4517487", "0.4516892", "0.45164776", "0.4515037", "0.45124856", "0.4509002", "0.45081466", "0.4506786", "0.45063496", "0.44992596", "0.4498062", "0.4498062", "0.44937247", "0.44937247" ]
0.5186112
7
setProdTitle() Set the value of [prod_description] column.
public function setProdDescription($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_description !== $v) { $this->prod_description = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_DESCRIPTION] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdTitle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_title !== $v) {\n $this->prod_title = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_TITLE] = true;\n }\n\n return $this;\n }", "public function setProductDescription(string $productDescription)\n\t{\n\t\t$this->addKeyValue('product_description', $productDescription); \n\n\t}", "public function setTitle($newTitle) { $this->Title = $newTitle; }", "public function set_title($title)\n {\n $this->set_default_property(self::PROPERTY_TITLE, $title);\n }", "public function updateProductDescription($id, $title) {\n $stmt = $this->db->prepare(\"update product set description = :title where id = :id;\");\n $stmt->bindValue(\"title\", $title, PDO::PARAM_STR);\n $stmt->bindValue(\"id\", $id, PDO::PARAM_INT);\n $stmt->execute();\n }", "public function setTitle($title){\n $this->p_title = $title;\n }", "function set_title($title){\r\n\t\t$this->_title = $title;\r\n\t}", "function setTitle( $title )\n {\n $title = trim( $title );\n $this->properties['TITLE'] = $title;\n }", "public function set_title($title)\n {\n $this->title = $title;\n }", "public function getProdTitle()\n {\n return $this->prod_title;\n }", "public function setProduct_desc ($product_desc) {\n\t$this->product_desc = $product_desc;\n\treturn $this;\n}", "public function setTitle( $newTitle )\n {\n\t\t$this->title = $newTitle;\n\t}", "public function setTitle($title) {\r\n $this->_title = $title;\r\n }", "function setHeadDescription($var)\n\t{\n\t\t$this -> head_description = $var;\n\t}", "public function setTitle($newTitle) {\n\t\t$this->title = $newTitle;\n\t}", "public function setTitle($title) {\n $this->_title = $title;\n }", "public function setTitle($title)\r\n\t\t{\r\n\t\t\t$this->_title = $title;\r\n\t\t}", "public function set_pagetitle($title)\n {\n $this->pagetitle = $title;\n }", "public function setTitle($title) {\n $this->_title = $title;\n }", "public function setTitle($title)\n {\n $this->_title = $title;\n }", "public function setTitle($title)\n {\n $this->_title = $title;\n }", "function setTitle($title)\n\t{\n\t\t$this->table->title = $title;\n\t\t$this->record->title = $title;\n\t}", "public function set_title($title){\n\t\t$this->set_channel_element('title', $title);\n\t}", "public function setTitle($title) {\n\t\t\n\t\t\t$this->_title = $title;\n\t\t\n\t\t}", "public function setTitle($title) {\r\n $this->title = $title;\r\n }", "public function setTitle($title) {\n $this->title = $title ;\n }", "public function setTitle($title){\n $this->title = $title;\n }", "public function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "public function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "public function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "public function setTitle($title){\n $this->title = $title;\n }", "function setTitle($title) {\r\n $this->_title = $title;\r\n }", "function setTitle($title) {\r\n $this->_title = $title;\r\n }", "function setTitle($title) {\n\t\t$this->_title = $title;\n\t}", "public function setTitle($title)\n\t{\n\t\t$this->title = $title;\n\t}", "public function setTitle($title)\n\t{\n\t\t$this->title = $title;\n\t}", "public function setTitle($title)\r\n {\r\n $this->title = $title;\r\n }", "public function updateProductTitle($id, $title) {\n $stmt = $this->db->prepare(\"update product set title = :title where id = :id;\");\n $stmt->bindValue(\"title\", $title, PDO::PARAM_STR);\n $stmt->bindValue(\"id\", $id, PDO::PARAM_INT);\n $stmt->execute();\n }", "public function setTitle($title) {\n $this->title = $title;\n }", "public function setTitle($title) {\n $this->title = $title;\n }", "public function setTitle($title = '')\n {\n $this->title = $title;\n }", "function setItem_description($description){\n $this->item_description = $description;\n }", "public function setTitle($title)\n {\n $this->setValue('title', $title);\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitleAttribute($val)\n {\n $this->attributes['title'] = trim($val);\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function set_title($text){\n $this->title=$text;\n }", "public function set_name($title)\n {\n if (!empty($title)) {\n $this->title = Database::escape_string($title);\n }\n }", "function setTitle($title)\r\n {\r\n $this->title = $title;\r\n }", "public function setTitle($title = ''){\n $this->setVar('TITLE', $title);\n }", "function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "protected function setDescription($description) {\r\n $this->description = $description;\r\n }", "public function setTitle($title){\n \t$this->title = $title;\n }", "function setTitle($title)\r\n\t{\r\n\t\t$this->title = $title;\r\n\t}", "function set_description($description)\r\n {\r\n $this->set_default_property(self :: PROPERTY_DESCRIPTION, $description);\r\n }", "function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "function setTitle($title)\n {\n $this->m_title = $title;\n }", "protected function assignDescription()\n {\n $this->description = '';\n }", "public function setDescription($description){\n\t\t$this->description = $description;\n\t}", "public function setTitle($value)\n {\n $this->_title = $value;\n }", "public function setDescription($desc) {\n\t\t$this->description = $desc;\n\t}", "function setTitle($title)\n {\n $this->title = $title;\n }", "function setTitle($title)\n {\n $this->title = $title;\n }", "function setTitle($title)\n {\n $this->title = $title;\n }", "function setPageTitle($pageTitle)\n\t{\n\t\t$this->pageTitle = $pageTitle;\n\t}", "public function setTitleTag($title)\n {\n $this->_title_tag = $title;\n }", "function set_description($description)\n {\n $this->set_default_property(self :: PROPERTY_DESCRIPTION, $description);\n }", "function setSyncProdDesc()\n {\n }", "protected function setPageTitle() {\r\n\t\t$pageTitleText = (empty($this->settings['news']['semantic']['general']['pageTitle']['useAlternate'])) ? $this->newsItem->getTitle() : $this->newsItem->getAlternativeTitle();\r\n\t\t$pageTitleAction = $this->settings['news']['semantic']['general']['pageTitle']['action'];\r\n\r\n\t\tif (!empty($pageTitleAction)) {\r\n\t\t\tswitch ($pageTitleAction) {\r\n\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t$pageTitleText .= ': ' . $GLOBALS['TSFE']->page['title'];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'append':\r\n\t\t\t\t\t$pageTitleText = $GLOBALS['TSFE']->page['title'] . ': ' . $pageTitleText;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t}\r\n\t\t\t$this->pageTitle = html_entity_decode($pageTitleText, ENT_QUOTES, \"UTF-8\");\r\n\t\t\t$GLOBALS['TSFE']->page['title'] = $this->pageTitle;\r\n\t\t\t$GLOBALS['TSFE']->indexedDocTitle = $this->pageTitle;\r\n\t\t}\r\n\t}", "function setDescription( $value )\r\n {\r\n $this->Description = $value;\r\n }", "function setDescription( $value )\r\n {\r\n $this->Description = $value;\r\n }", "public function setDescription($description) {\n $this->_description = $description;\n }", "public function setTitle($var)\n {\n $this->_title = $var;\n }", "function dispProductTitle()\n\t{\n\t\t$prodid=$_SESSION['prodid']; \n\t\t\n\t\t$sqltitle = \"SELECT title FROM products_table WHERE product_id ='\".$prodid.\"'\";\n\t\t\n\t\t$query = new Bin_Query();\n\t\t\n\t\tif($query->executeQuery($sqltitle))\n\t\t{\n\t\t\treturn Display_DManageProducts::dispProductTitle($query->records);\n\t\t}\n\t\t\n\t}", "public function setDescription($description)\n {\n $this->_description = $description;\n }", "public function setTitle(string $title): void\n {\n $this->_title = $title;\n }", "function set_jobtitle($jobtitle) {\n\t\t$this->jobtitle = $jobtitle;\n\t}", "public function setTitle($title)\n\t{\n\t\tif (!empty($title)) {\n\t\t\t$this->title = $title;\n\t\t}\n\t}", "protected function assignDescription()\n {\n $this->description = 'This is a test for a Template Variable migration class';\n }", "public function setTitle($title)\n {\n $this->title = (string) $title;\n }", "public static function setProcessTitle($title)\n\t{\n\t\t/** @noinspection PhpUndefinedFunctionInspection */\n\t\tfunction_exists('setproctitle') && setproctitle($title);\n\t}", "public function setDescription($description) {\n\t\tTemplate::setSiteMetaDescription($description);\n\t}", "function setBrowserTitle( $pTitle ) {\n\t\tglobal $gBitSmarty, $gPageTitle;\n\t\t$gPageTitle = $pTitle;\n\t\t$gBitSmarty->assign( 'browserTitle', $pTitle );\n\t\t$gBitSmarty->assign( 'gPageTitle', $pTitle );\n\t}", "public function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "public function setDescription($description)\n\t{\n\t\t$this->_description = $description;\n\t}", "public function setTitle(string $title) {\n\t\t$this->title = $title;\n\t}", "public function setDescription($desc)\n {\n $this->description = $desc;\n }", "public function setDescription($description)\n {\n $this->_description = $description;\n }", "public function setPageTitle($title);", "public function setDescription( $description )\r\n\t{\r\n\t\t$this->description = $description;\r\n\t}", "public function setTitle($val){ return $this->setField('title',$val); }", "public function setDescription($description)\r\n {\r\n $this->description = $description;\r\n }", "public function set_description ($description) {\n $this->description = $description;\n }", "public function setTitle($title) {\n\t\t$title = str_replace(\"\\r\\n\", \"|\", $title);\n\t\t$title = str_replace(\" \", \"+\", $title);\n\t\t$this -> setProperty('chtt', $title);\n\t}", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}" ]
[ "0.710813", "0.6432859", "0.6368765", "0.63454175", "0.6312776", "0.62509435", "0.62299687", "0.62254834", "0.62254095", "0.6214527", "0.6205783", "0.61151105", "0.6107808", "0.6102494", "0.60928434", "0.6082649", "0.60810155", "0.607582", "0.6074099", "0.60538924", "0.60538924", "0.60465723", "0.6043923", "0.6038591", "0.60362715", "0.603178", "0.6025827", "0.6021222", "0.6021222", "0.6021222", "0.60106546", "0.60089386", "0.60089386", "0.6001918", "0.6001754", "0.6001754", "0.5999905", "0.5994954", "0.5994597", "0.5994597", "0.5983596", "0.5982402", "0.5977488", "0.59748095", "0.59748095", "0.59748095", "0.59748095", "0.59748095", "0.59748095", "0.5967389", "0.59632534", "0.5962967", "0.596214", "0.5926783", "0.5925843", "0.5925321", "0.5919351", "0.5917625", "0.5904849", "0.5896361", "0.58893514", "0.5888214", "0.58868545", "0.5881975", "0.5875414", "0.58740664", "0.586187", "0.586187", "0.586187", "0.5854134", "0.58444965", "0.58427083", "0.5842399", "0.58411527", "0.58374405", "0.58374405", "0.58355314", "0.5827917", "0.58257586", "0.5818191", "0.58167464", "0.58135384", "0.5807352", "0.58058983", "0.57997", "0.57917047", "0.5791222", "0.5790887", "0.578844", "0.57867247", "0.5783617", "0.5777252", "0.57752067", "0.57710147", "0.5769793", "0.57625526", "0.57550275", "0.57537884", "0.5748783", "0.5748062" ]
0.61964756
11
setProdDescription() Set the value of [prod_general] column.
public function setProdGeneral($v) { if ($v !== null) { $v = (int) $v; } if ($this->prod_general !== $v) { $this->prod_general = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_GENERAL] = true; } if ($this->aTblGeneral !== null && $this->aTblGeneral->getProdGeneral() !== $v) { $this->aTblGeneral = null; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdDescription($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_description !== $v) {\n $this->prod_description = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_DESCRIPTION] = true;\n }\n\n return $this;\n }", "public function setProductDescription(string $productDescription)\n\t{\n\t\t$this->addKeyValue('product_description', $productDescription); \n\n\t}", "public function setProduct_desc ($product_desc) {\n\t$this->product_desc = $product_desc;\n\treturn $this;\n}", "function setSyncProdDesc()\n {\n }", "function set_description($description)\r\n {\r\n $this->set_default_property(self :: PROPERTY_DESCRIPTION, $description);\r\n }", "function set_description($description)\n {\n $this->set_default_property(self :: PROPERTY_DESCRIPTION, $description);\n }", "public function set_description ($description) {\n $this->description = $description;\n }", "function setItem_description($description){\n $this->item_description = $description;\n }", "public function setDesciption($description);", "public function getProdDescription()\n {\n return $this->prod_description;\n }", "public function set_description($description)\n {\n $this->set_default_property(self::PROPERTY_DESCRIPTION, $description);\n }", "protected function assignDescription()\n {\n $this->description = '';\n }", "public function setDescription($description) {\n $this->_description = $description;\n }", "public function setPoolDescription($description)\n\t{\n\t\t$this->setProperty('description', $description);\n\t}", "protected function setDescription($description) {\r\n $this->description = $description;\r\n }", "public function setSetDescription($description) {\r\n\t\t$this -> setdescription = $description;\r\n\t}", "public function setDescription($description){\n\t\t$this->description = $description;\n\t}", "public function setDescription($newDescription)\n {\n $this->description = $newDescription;\n }", "public function setDescription($description)\n {\n $this->feedbackFields['description'] = $description;\n }", "public function setDescription($description)\n {\n $this->_description = $description;\n }", "public function setDescription($desc) {\n\t\t$this->description = $desc;\n\t}", "public function setgeneralAction()\n {\n $productId = $this->_getParam('product_id'); \n\n $this->_model->setId($productId);\n $productModel = $this->_model; \n\n $form = new Core_Form_Product_SetGeneralProperties($productId);\n $form->setAction($this->view->url(array(\n 'module' => 'default',\n 'controller' => 'product',\n 'action' => 'setgeneral',\n 'product_id' => $productId,\n )\n ));\n\n if ($this->_request->isPost()) {\n\n if ($form->isValid($_POST)) {\n $productModel->setGeneralProperties($form->getValues());\n $this->_helper->FlashMessenger('Product item properties set successfully');\n $this->_redirect($this->view->url(array(\n 'module' => 'default',\n 'controller' => 'product',\n 'action' => 'viewdetails',\n 'product_id' => $productId,\n ), null, false));\n } else {\n $form->populate($_POST);\n $this->view->form = $form;\n }\n\n } else {\n $this->view->form = $form;\n }\n\n \n }", "public function setDescription($description)\n\t{\n\t\t$this->_description = $description;\n\t}", "public function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "public function setDescription($description)\n {\n $this->_description = $description;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n }", "public function setDescription($description)\r\n {\r\n $this->description = $description;\r\n }", "public function set_description($desciption){\n\t\t$this->set_channel_element('description', $desciption);\n\t}", "public function setDescription($description) {\n $this->description = $description;\n }", "public function setDescription($description) {\n\t\tTemplate::setSiteMetaDescription($description);\n\t}", "public function setDescription($description) \n\t{\n \n $this->description = empty($description) ? \"\" : $description;\t\n\t}", "public function setDescription($desc)\n {\n $this->description = $desc;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription( $description )\r\n\t{\r\n\t\t$this->description = $description;\r\n\t}", "public function setDescription($description) {\n\t\t$this->addChannelTag('description', $description);\n\t}", "static public function setDescription($new_description) {\n\t\tself::$page_description = (string)$new_description;\n\t}", "protected function assignDescription()\n {\n $this->description = 'This is a test for a Template Variable migration class';\n }", "public function setDescription($description)\n\t{\n\t\t$this->description = $description;\n\n\t\tif($this->pageInitialized)\n\t\t\t$this->setMetaTag('description', $this->description);\n\t}", "public function setProductDesc($productDesc = null)\n {\n // validation for constraint: string\n if (!is_null($productDesc) && !is_string($productDesc)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productDesc, true), gettype($productDesc)), __LINE__);\n }\n if (is_null($productDesc) || (is_array($productDesc) && empty($productDesc))) {\n unset($this->productDesc);\n } else {\n $this->productDesc = $productDesc;\n }\n return $this;\n }", "public function setDescrizione($descrizione)\n\t\t{\n\t\t$this->descrizione = $descrizione;\n\t\t}", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "function setDescription( $value )\r\n {\r\n $this->Description = $value;\r\n }", "function setDescription( $value )\r\n {\r\n $this->Description = $value;\r\n }", "protected function setDescription() {\r\n\t\t$descriptionCrop = intval($this->settings['news']['semantic']['general']['description']['crop']);\r\n\t\t$descriptionAction = $this->settings['news']['semantic']['general']['description']['action'];\r\n\t\t$descriptionText = $this->newsItem->getTeaser();\r\n\t\tif (empty($descriptionText)) {\r\n\t\t\t$descriptionText = $this->newsItem->getBodytext();\r\n\t\t}\r\n\t\tif (!empty($descriptionText) && !empty($descriptionAction)) {\r\n\t\t\tif (!empty($GLOBALS['TSFE']->page['description'])) {\r\n\t\t\t\tswitch ($descriptionAction) {\r\n\t\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t\t$descriptionText .= ': ' . $GLOBALS['TSFE']->page['description'];\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'append':\r\n\t\t\t\t\t\t$descriptionText = $GLOBALS['TSFE']->page['description'] . ': ' . $descriptionText;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$this->description = $this->contentObject->crop($descriptionText, $descriptionCrop . '|...|' . TRUE);\r\n\t\t}\r\n\t}", "public function setDescription(string $description)\n {\n $this->description = $description;\n }", "public function setDiscountDescription($description);", "protected function setShortDesc($productID, $shortDesc)\r\n {\r\n \r\n // SQL query\r\n $sql = \"UPDATE tbl_products SET short_description= '\" . $shortDesc . \"'WHERE id_products= '\" . $productID . \"'\";\r\n \r\n // Connect to database and run query\r\n $result = $this->connect->query($sql);\r\n \r\n // Check to see if query passed and registered\r\n if ($result) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "function setDescription($locale, $description) {\n\t\t$this->localeData[$locale]['description'] = $description;\n\t}", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setOsDescription($val)\n {\n $this->_propDict[\"osDescription\"] = $val;\n return $this;\n }", "public function setDesc($val){ return $this->setField('desc',$val); }", "public function setDescription($value)\n {\n $this->setItemValue('description', (string)$value);\n }", "public function setDescription($val)\n {\n $this->_propDict[\"description\"] = $val;\n return $this;\n }", "public function setDescription($val)\n {\n $this->_propDict[\"description\"] = $val;\n return $this;\n }", "public function setDescription($val)\n {\n $this->_propDict[\"description\"] = $val;\n return $this;\n }", "public function setDescription($val)\n {\n $this->_propDict[\"description\"] = $val;\n return $this;\n }", "public function setDescription($val)\n {\n $this->_propDict[\"description\"] = $val;\n return $this;\n }", "public function setDescription($val)\n {\n $this->_propDict[\"description\"] = $val;\n return $this;\n }" ]
[ "0.6945915", "0.6531788", "0.6394194", "0.6244398", "0.6212825", "0.6149135", "0.607071", "0.6066318", "0.60331315", "0.60239506", "0.60218346", "0.60199416", "0.60153496", "0.5996005", "0.5982738", "0.59817797", "0.5977011", "0.5969299", "0.59688604", "0.59655917", "0.59591377", "0.59454614", "0.59433573", "0.5936063", "0.59287965", "0.59251153", "0.5924097", "0.59106797", "0.59063137", "0.5893149", "0.58795196", "0.58784676", "0.5869701", "0.58577836", "0.5827464", "0.5827464", "0.5827464", "0.5827464", "0.5827464", "0.5827464", "0.5827464", "0.5827464", "0.5827464", "0.5827464", "0.5827464", "0.5827464", "0.5827464", "0.58186847", "0.5786087", "0.5761993", "0.57540625", "0.57535493", "0.57383", "0.5725878", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5718483", "0.5703622", "0.5703622", "0.5702565", "0.5625311", "0.56021875", "0.55918777", "0.55889827", "0.55621684", "0.55621684", "0.55621684", "0.55621684", "0.55621684", "0.55621684", "0.5559766", "0.55493736", "0.55440253", "0.5536066", "0.5536066", "0.5536066", "0.5536066", "0.5536066", "0.5536066" ]
0.6455899
2
setProdGeneral() Set the value of [prod_era] column.
public function setProdEra($v) { if ($v !== null) { $v = (int) $v; } if ($this->prod_era !== $v) { $this->prod_era = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ERA] = true; } if ($this->aTblEra !== null && $this->aTblEra->getEraId() !== $v) { $this->aTblEra = null; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setGeneral() // Attribuer une valeur générale à un attaquant\n {\n $this->_general = round($this->attaqueCalcul());\n }", "public function getProdEra()\n {\n return $this->prod_era;\n }", "public function setProdGeneral($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_general !== $v) {\n $this->prod_general = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_GENERAL] = true;\n }\n\n if ($this->aTblGeneral !== null && $this->aTblGeneral->getProdGeneral() !== $v) {\n $this->aTblGeneral = null;\n }\n\n return $this;\n }", "protected function setEcommerceValues()\n {\n $this->setTxnType('01'); // Purchase\n $this->setTransactionCurrencyCode(826); // Pound sterling\n $this->setTerminalCountryCode(826); // United Kingdom\n\n // CNP/ECommerce (if flagged for payer authorisation with acquirer; no\n // CNP transactions are allowed with the exception of refunds)\n $this->setApacsTerminalCapabilities(4298);\n\n $this->setCaptureMethod(12); // Keyed Cardholder Not Present E-Commerce Order\n $this->setProcessingIdentifier(1); // Auth and Charge\n }", "public function setEgoera($data)\n {\n\n if ($this->_egoera != $data) {\n $this->_logChange('egoera');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_egoera = $data;\n\n } else if (!is_null($data)) {\n $this->_egoera = (int) $data;\n\n } else {\n $this->_egoera = $data;\n }\n return $this;\n }", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "public function setgeneralAction()\n {\n $productId = $this->_getParam('product_id'); \n\n $this->_model->setId($productId);\n $productModel = $this->_model; \n\n $form = new Core_Form_Product_SetGeneralProperties($productId);\n $form->setAction($this->view->url(array(\n 'module' => 'default',\n 'controller' => 'product',\n 'action' => 'setgeneral',\n 'product_id' => $productId,\n )\n ));\n\n if ($this->_request->isPost()) {\n\n if ($form->isValid($_POST)) {\n $productModel->setGeneralProperties($form->getValues());\n $this->_helper->FlashMessenger('Product item properties set successfully');\n $this->_redirect($this->view->url(array(\n 'module' => 'default',\n 'controller' => 'product',\n 'action' => 'viewdetails',\n 'product_id' => $productId,\n ), null, false));\n } else {\n $form->populate($_POST);\n $this->view->form = $form;\n }\n\n } else {\n $this->view->form = $form;\n }\n\n \n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function setProd_niche ($prod_niche) {\n\t$this->prod_niche = $this->getClass()->getFieldDefinition(\"prod_niche\")->preSetData($this, $prod_niche);\n\treturn $this;\n}", "function extenderPGAE()\n {\n $this->objFunc = $this->create('MODObligacionPago');\n $this->res = $this->objFunc->extenderPGAE($this->objParam);\n $this->res->imprimirRespuesta($this->res->generarJson());\n }", "public function setProdAlt1($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt1 !== $v) {\n $this->prod_alt1 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT1] = true;\n }\n\n return $this;\n }", "public function setEnterprise(string $enterprise = null) : CNabuDataObject\n {\n $this->setValue('nb_icontact_prospect_enterprise', $enterprise);\n \n return $this;\n }", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "public function setProducto($pro){ $this->producto = $pro;}", "public function setFormaProBase(?float $formaProBase): DadsuEtablissementsRectif {\n $this->formaProBase = $formaProBase;\n return $this;\n }", "public function set_dataGraf(){\n\n }", "private function setExercicio(){\n\t\t$this->Enunciado = $this->Data['enunciado'];\n\t\t$this->A = $this->Data['opA'];\n\t\t$this->B = $this->Data['opB'];\n\t\t$this->C = $this->Data['opC'];\n\t\t$this->D = $this->Data['opD'];\n\t\t$this->E = $this->Data['opE'];\n\t\t$this->Correta = $this->Data['correta'];\n\n\t\t$this->Query = ['c_enumexer' => $this->Enunciado,\n\t\t\t\t\t\t'c_altaexer' => $this->A,\n\t\t\t\t\t\t'c_altbexer' => $this->B,\n\t\t\t\t\t\t'c_altcexer' => $this->C,\n\t\t\t\t\t\t'c_altdexer' => $this->D,\n\t\t\t\t\t\t'c_alteexer' => $this->E,\n\t\t\t\t\t\t'c_correxer' => $this->Correta];\n\n\t}", "public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\n }", "public function setEAN ($ean){\n\t\tif($ean) {\n\t\t\t$this->Item['ean'] = substr($ean, 0,100);\n\t\t}\n\t}", "public function setArticulo($articulo)\n {\n $this->articulo = $articulo;\n }", "function _set_treated_expedition_extrafield($idexpe, $shipmentEntity) {\n\tglobal $db, $user, $conf;\n\n\t$sql = \"select entity from \".MAIN_DB_PREFIX.\"expedition where rowid =\".$idexpe;\n\t$re = $db->query($sql);\n $obj = $db->fetch_object($re);\n\n // var_dump($obj->entity);\n\n // var_dump($conf->entity,$shipmentEntity);\n\t$backEntity = $conf->entity;\n\n\t$conf->entity = $obj->entity;\n\n\n\t$currentExp = new Expedition($db);\n\t$res = $currentExp->fetch(intval($idexpe));\n\n\n\n // var_dump($conf->entity, $res, $idexpe);exit();\n\n\t$extra = new ExtraFields($db);\n\t$resultExtra = $extra->fetch_name_optionals_label($currentExp->table_element);\n\t//var_dump($resultExtra);exit();\n\tif($resultExtra) {\n\t\t$currentExp->array_options['options_customer_treated_shipment'] = 1;\n\t\t$currentExp->updateExtraField('customer_treated_shipment');\n\t}else {\n\t\tdol_syslog(__METHOD__.' $resultExtra='.var_export($resultExtra,true), LOG_ERR);\n\t}\n\n\t$conf->entity = $backEntity;\n //var_dump($conf->entity);exit();\n}", "function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }", "public function setProdAlt4($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt4 !== $v) {\n $this->prod_alt4 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT4] = true;\n }\n\n return $this;\n }", "public function prod($prod);", "public function testSetAllegParticulier() {\n\n $obj = new Employes();\n\n $obj->setAllegParticulier(true);\n $this->assertEquals(true, $obj->getAllegParticulier());\n }", "public function Set_especialidad($array = array()){\n\t\t\t$array['inp_codigo']; // codigo de la especialidad\n\t\t\t$array['inp_especializa']; // nombre de la especialidad\n\t\t}", "public function setAno($iAno) {\n $this->iAno = $iAno;\n }", "public function setAno($iAno) {\n $this->iAno = $iAno;\n }", "public function setPros($pros)\r\n {\r\n $this->_pros = $pros;\r\n }", "public function setCarrera($carrera) {\n $this->carrera = $carrera;\n }", "public function setAlpha($alpha = 40) {\n\t\t$this->alpha = $alpha;\n\t}", "function setAdmin() {\n\t\t$this->_extension_high = \"\";\n\t\t$this->_extension_low = \"\";\n\t\t$this->_deptname = \"\";\n\t\t$this->_sections = array(\"*\");\n\t}", "public function setAditionalPrice($price)\n {\n $aditionalPrice = $this->calculateAditionalPrice($price);\n\n $this->attributes[\"preco_adicional\"] = $aditionalPrice;\n }", "protected function setOfferNature ()\n {\n $this->offerNature = $this->offer->rate_nature->value;\n }", "public function testSetAutreAlleg() {\n\n $obj = new Employes();\n\n $obj->setAutreAlleg(true);\n $this->assertEquals(true, $obj->getAutreAlleg());\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function setObjEducacion($educacion)\n {\n $this->_objEducacion = $educacion;\n }", "public function setProdAlt2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt2 !== $v) {\n $this->prod_alt2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true;\n }\n\n return $this;\n }", "public function testSetEtblFax() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblFax(\"etblFax\");\n $this->assertEquals(\"etblFax\", $obj->getEtblFax());\n }", "public function synchronizePrestashopToGestimum(){\n\t\t$products = $this->getProductsFromPrestashop();\n\t\t\n\t\t// stored procedure fields.\n\t\t$idProduct = 'NULL';\n\t\t$idSupplier = 'NULL';\n\t\t$idManufacturer = 'NULL';\n\t\t$idManufacturer = 'NULL';\n\t\t$idCategoryDefault = '0';\n\t\t$idShopDefault = 'NULL';\n\t\t$idTaxRulesGroup = 'NULL';\n\t\t$onSale = 'NULL';\n\t\t$onlineOnly = 'NULL';\n\t\t$ean13 = 'NULL';\n\t\t$upc = 'NULL';\n\t\t$ecotax = 'NULL';\n\t\t$quantity = 'NULL';\n\t\t$minimalQuantit = '0';\n\t\t$price = 'NULL';\n\t\t$wholesalePrice = 'NULL';\n\t\t$unity = 'NULL';\n\t\t$unitPriceRatio = 'NULL';\n\t\t$additionalShippingCost = 'NULL';\n\t\t$reference;\n\t\t$supplierReference = 'NULL';\n\t\t$location = 'NULL';\n\t\t$width = '0';\n\t\t$height = '0';\n\t\t$depth = 'NULL';\n\t\t$weight = '0';\n\t\t$outOfStock = 'NULL';\n\t\t$quantityDiscount = 'NULL';\n\t\t$customizable = 'NULL';\n\t\t$uploadableFiles = 'NULL';\n\t\t$textFields = 'NULL';\n\t\t$active = 'NULL';\n\t\t$availableForOrder = 'NULL';\n\t\t$availableDate = 'NULL';\n\t\t$condition = 'NULL';\n\t\t$showPrice = 'NULL';\n\t\t$indexed = 'NULL';\n\t\t$visibility = 'NULL';\n\t\t$cacheIsPack = 'NULL';\n\t\t$cacheHasAttachments = 'NULL';\n\t\t$isVirtual = 'NULL';\n\t\t$cacheDefaultAttribute = 'NULL';\n\t\t$dateAdd = 'NULL';\n\t\t$dateUpd = NULL;\n\t\t$advancedStockManagement = 'NULL';\n\t\t$productOptionValues = array();\n\t\t$categories = 'NULL';\n\n\t\tforeach ($products as $idProduct => $productArray) {\n\t\t\tforeach ($productArray as $attribute => $value) {\n\t\t\t\tswitch ($attribute) {\n\t\t\t\t\tcase 'id':\n\t\t\t\t\t\t$idProduct = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'id_supplier':\n\t\t\t\t\t\tif($value) $idSupplier = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'id_manufacturer':\n\t\t\t\t\t\tif ($value) $idManufacturer = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'id_category_default':\n\t\t\t\t\t\tif( $value) $idCategoryDefault = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'id_shop_default':\n\t\t\t\t\t\t$idShopDefault = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'id_tax_rules_group':\n\t\t\t\t\t\t$idTaxRulesGroup = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'on_sale':\n\t\t\t\t\t\t$onSale = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'online_only':\n\t\t\t\t\t\t$onlineOnly = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'ean13':\n\t\t\t\t\t\tif($value) $ean13 = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'upc':\n\t\t\t\t\t\tif($value) $upc = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'ecotax':\n\t\t\t\t\t\t$ecotax = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'quantity':\n\t\t\t\t\t\t$quantity = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'minimal_quantity':\n\t\t\t\t\t\t$minimalQuantity = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'price':\n\t\t\t\t\t\t$price = (int)$value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'wholesale_price':\n\t\t\t\t\t\t$wholesalePrice = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'unity':\n\t\t\t\t\t\tif($value) $unity= (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'unit_price_ratio':\n\t\t\t\t\t\t$unitPriceRatio = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'additional_shipping_cost':\n\t\t\t\t\t\tif($value) $additionalShippingCost = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'reference':\n\t\t\t\t\t\t$reference = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'supplier_reference':\n\t\t\t\t\t\tif($value) $supplierReference = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'location':\n\t\t\t\t\t\tif($value) $location = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'width':\n\t\t\t\t\t\t$width = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'height':\n\t\t\t\t\t\t$height = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'depth':\n\t\t\t\t\t\t$depth = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'weight':\n\t\t\t\t\t\t$weight = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'out_of_stock':\n\t\t\t\t\t\t$outOfStock = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'quantity_discount':\n\t\t\t\t\t\t$quantityDiscount = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'customizable':\n\t\t\t\t\t\t$customizable = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'uploadable_files':\n\t\t\t\t\t\t$uploadableFiles = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'text_fields':\n\t\t\t\t\t\t$textFields = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'active':\n\t\t\t\t\t\t$active = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'available_for_order':\n\t\t\t\t\t\t$availableForOrder = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'available_date':\n\t\t\t\t\t\t$availableDate = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'condition':\n\t\t\t\t\t\t$condition = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'show_price':\n\t\t\t\t\t\t$showPrice = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'indexed':\n\t\t\t\t\t\t$indexed = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'visibility':\n\t\t\t\t\t\t$visibility = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'cache_is_pack':\n\t\t\t\t\t\t$cacheIsPack = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'cache_has_attachments':\n\t\t\t\t\t\t$cacheHasAttachments = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'is_virtual':\n\t\t\t\t\t\t$isVirtual = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'cache_default_attribute':\n\t\t\t\t\t\tif($value) $cacheDefaultAttribute = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'date_add':\n\t\t\t\t\t\t$dateAdd = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'date_upd':\n\t\t\t\t\t\t$dateUpd = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'advanced_stock_management':\n\t\t\t\t\t\t$advancedStockManagement = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'product_option_values':\n\t\t\t\t\t\t$productOptionValues = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'categories':\n\t\t\t\t\t\t$categories = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($reference == '') {\n\t\t\t\tthrow new ProductWithoutReferenceException(\"Merci de donner une référence valide à votre produit\", 1);\n\t\t\t}\n\n\t\t\tif(sizeof($productOptionValues) == 0){\n\t\t\t\t// The product has no declension (option value)\n\t\t\t\t$productOptionValues[] = '';\n\t\t\t}\n\t\t\t$originInt = (int) $this->origin;\n\t\t\t\n\t\t\t$dateUpd = new DateTime($dateUpd);\n\t\t\t$dateUpd = $dateUpd->format('Y-m-d H:i:s');\n\n\t\t\tforeach ($productOptionValues as $key => $declension) {\n\n\t\t\t\t$IdDeclinaison = substr(strtoupper(str_replace(' ','',$key)),-5);\n\t\t\t\t$CodeArticle = $reference . $IdDeclinaison;\n\n\t\t\t\tif (Constants::existsInDB(\n\t\t\t\t\tProductsConstants::getSelectARTCODEString($this->origin, $idProduct, $IdDeclinaison),\n\t\t\t\t\t$this->sqlServerConnection\n\t\t\t\t\t)){\n\t\t\t\t\t$updateProductSqlQuery = ProductsConstants::getProductUpdatingString(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$productArray['name'],\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$declension,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$minimalQuantit,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$weight,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$width,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$height,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$dateUpd,\n\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$IdDeclinaison,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$CodeArticle,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$this->origin,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$idProduct,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$categories);\n\t\t\t\t\todbc_exec($this->sqlServerConnection, $updateProductSqlQuery) or die (\"<p>\" . odbc_errormsg() . \"</p>\");\t\n\t\t\t\t}\n\t\t\t\telseif (Constants::existsInDB(\n\t\t\t\t\tProductsConstants::getSelectArticleByPrestashopReference($reference),\n\t\t\t\t\t$this->sqlServerConnection\n\t\t\t\t\t)) {\n\t\t\t\t\t$updateProductSqlQuery = ProductsConstants::getProductUpdatingByReferenceString($productArray['name'],\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$declension,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$minimalQuantit,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$weight,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$width,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$height,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$dateUpd,\n\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$IdDeclinaison,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$CodeArticle,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$this->origin,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$idProduct,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$categories,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$reference);\n\t\t\t\todbc_exec($this->sqlServerConnection, $updateProductSqlQuery) or die (\"<p>\" . odbc_errormsg() . \"</p>\");\n\t\t\t\t}else{\n\t\t\t\t\t$insertProductQuery = ProductsConstants::getProductInsertingString(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$CodeArticle,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$productArray['name'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$declension,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$reference,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$minimalQuantit,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$weight,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$width,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$height,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$dateUpd,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$idCategoryDefault,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$idProduct,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$IdDeclinaison,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->origin,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$categories);\n\t\t\t\t\todbc_exec($this->sqlServerConnection, $insertProductQuery) or die (\"<p>\" . odbc_errormsg() . \"</p>\");\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t}", "public function temporalizacion_prod($prod_id,$gestion){\n $prod=$this->model_producto->get_producto_id($prod_id); /// Producto Id\n $programado=$this->model_producto->producto_programado($prod_id,$gestion); /// Producto Programado\n $tp='';\n if($prod[0]['indi_id']==2){$tp='%';};\n $m[0]='g_id';\n $m[1]='enero';\n $m[2]='febrero';\n $m[3]='marzo';\n $m[4]='abril';\n $m[5]='mayo';\n $m[6]='junio';\n $m[7]='julio';\n $m[8]='agosto';\n $m[9]='septiembre';\n $m[10]='octubre';\n $m[11]='noviembre';\n $m[12]='diciembre';\n\n for ($i=1; $i <=12 ; $i++) { \n $prog[1][$i]=0;\n $prog[2][$i]=0;\n $prog[3][$i]=0;\n }\n\n $pa=0;\n if(count($programado)!=0){\n for ($i=1; $i <=12 ; $i++) { \n $prog[1][$i]=$programado[0][$m[$i]];\n/* $pa=$pa+$prog[1][$i];\n $prog[2][$i]=$pa+$prod[0]['prod_linea_base'];\n\n if($prod[0]['prod_meta']!=0){\n $prog[3][$i]=round(((($pa+$prod[0]['prod_linea_base'])/$prod[0]['prod_meta'])*100),1);\n } */ \n } \n }\n $tr_return = '';\n for($i = 1 ;$i<=12 ;$i++){\n $tr_return .= '<td bgcolor=\"#d2f5d2\" style=\"width: 3%; text-align: right\" title=\"'.$m[$i].'\"><b>'.$prog[1][$i].''.$tp.'</b></td>';\n }\n \n return $tr_return;\n }", "public function scopeForProfessional($professional)\n {\n // Ensure that the professionals attribute is a ProfessionalCollection\n $this->professionals = ! is_a($professional, EmployeeCollection::class)\n ? $professional->newCollection([$professional])\n : $professional;\n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "public function setEstudiante( $estudiante ){\n\t\t\t$this->estudiante = $estudiante;\n\t\t}", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\n }", "public function testSetMtBaseAcompte() {\n\n $obj = new Employes();\n\n $obj->setMtBaseAcompte(10.092018);\n $this->assertEquals(10.092018, $obj->getMtBaseAcompte());\n }", "public function setProducte($producte)\n {\n $this->producte = $producte;\n\n return $this;\n }", "function alta_entrada(){\n $e = new Entrada();\n\t\t$precio=$_POST['costo_unitario'];\n\t\t$producto_id=$_POST['cproductos_id'];\n $e->usuario_id = $GLOBALS['usuarioid'];\n $e->empresas_id = $GLOBALS['empresaid'];\n $related = $e->from_array($_POST);\n //if($e->costo_unitario=='undefined') $e->costo_unitario=0;\n $f = new Pr_factura();\n $f->get_by_id($e->pr_facturas_id);\n $e->espacios_fisicos_id = $f->espacios_fisicos_id;\n $e->lote_id = $f->lote_id;\n $e->costo_total = ($e->cantidad * $e->costo_unitario);\n\t\t$e->existencia = $e->cantidad;\n $e->cproveedores_id = $f->cproveedores_id;\n $e->fecha = date(\"Y-m-d H:i:s\");\n if ($e->id == 0)\n unset($e->id);\n if ($e->save($related)) {\n echo $e->id;\n\t\t\t$this->db->query(\"update cproductos set precio_compra='$precio' where id=$producto_id\");\n } else\n echo 0;\n }", "public function setAnalitics($cad) { $this->analitics = $cad; }", "public function process($product_id, $css_select,$css_option,$id_select)\n\t{\n\t\t$css_select = $css_select . ' eav_oi_select';\n\t\t$css_option = $css_option . '';\n\t\t$id_select = $id_select . '';\n\n\n\t\t//\n\t\t// Get a list of variances that are disabled\n\t\t//\n\t\t$disabled = $this->_get_disable_variances($product_id);\n\n\n\n\n\t\t//\n\t\t// Get the template values\n\t\t//\n\t\t$options = $this->_get_template_values($product_id);\n\n\n\n\n\n\t\t//var_dump($options);die;\n\n\t\tforeach($options as $key =>$option)\n\t\t{\n\t\t\t\n\n\t\t\t$option = (array) $option;\t\n\n\n\t\t\t$options[$key] = \n\t\t\t[ \n\t\t\t\t'attribute'\t\t=> strtolower($option['e_label']),\n\t\t\t\t'label'\t\t\t=> $option['e_label'],\n\t\t\t\t'value'\t\t\t=> '',\n\t\t\t\t'values'\t\t=> [],\n\t\t\t\t'select_start' \t=> \"<select class='{$css_select}' data-option-id='{$option['id']}' id='{$id_select}' name='form_eav_{$option['id']}'>\",\n\t\t\t\t'select_end' \t=> \"</select>\",\n\t\t\t\t'count'\t\t\t=> 0,\n\t\t\t\t'hidden'\t\t=> '',\n\t\t\t\t'is_hidden'\t\t=> false,\n\t\t\t\t'disabled'\t\t=> '',\n\t\t\t];\n\n\n\t\t\t$this->db\n\t\t\t\t\t->select('e_value,e_label')\n\t\t\t\t\t->distinct()\n\t\t\t\t\t->where('e_product',$product_id)\n\t\t\t\t\t->where('e_variance !=', 'NULL')\n\t\t\t\t\t->where('e_label',$option['e_label']);\n\n\t\t\tif(count($disabled)>0)\n\t\t\t{\n\t\t\t\t$this->db->where_not_in('e_variance', $disabled);\n\t\t\t}\n\n\n\t\t\t$theoptions = $this->db->get('nct_e_attributes')->result();\n\n\n\t\t\t//var_dump($theoptions);die;\n\n\t\t\t//note the number of options\n\t\t\t$options[$key]['count'] = count($theoptions);\t\t\t\t\n\n\t\t\tforeach($theoptions as $somekey => $aoption)\n\t\t\t{\n\t\t\t\t$aoption = (array) $aoption;\n\n\t\t\t\t//if we see a blank value lets skip as if it doesnt exist!\n\t\t\t\t/*\n\t\t\t\tif(trim($aoption['e_value']) =='')\n\t\t\t\t{\n\t\t\t\t\tunset($theoptions[$somekey]);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t*/\n\n\t\t\t\t$a = []; \n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif($options[$key]['count'] == 1)\n\t\t\t\t{\n\t\t\t\t\t$options[$key]['hidden'] = \"<input type='hidden' name='form_eav_{$option['id']}' value='{$aoption['e_value']}'>\";\n\t\t\t\t\t$options[$key]['value'] = $aoption['e_value'];\n\t\t\t\t\t$options[$key]['select_start'] = '';\n\t\t\t\t\t$options[$key]['select_end'] = '';\n\t\t\t\t\t$options[$key]['label'] = '';\n\t\t\t\t\t$options[$key]['disabled'] = '';\n\t\t\t\t\t$options[$key]['is_hidden'] = true;\n\t\t\t\t\t$a['option'] = '';\n\t\t\t\t}\n\n\t\t\t\tif($options[$key]['count'] > 1)\n\t\t\t\t{\n\t\t\t\t\t$a['option'] = \"<option class='{$css_option}' value='{$aoption['e_value']}' {$options[$key]['disabled']} >{$aoption['e_value']}</option>\";\n\t\t\t\t}\n\n\t\t\t\t$options[$key]['values'][] = $a;\n\t\t\t}\n\t\t}\n\n\t\treturn $options;\n\t}", "public function setAlt($alt)\n {\n $this->alt = $alt;\n $this->setAttributes(\"Alt\");\n }", "public function aprova()\n {\n $this -> estadoAtual -> aprova($this);\n }", "public function getProdAlt1()\n {\n return $this->prod_alt1;\n }", "public function setResaca($resaca){\n $this->resaca=$resaca;\n }", "function setBaseCalculo($nValorBaseCalculo) {\n $this->nValorBaseCalculo = $nValorBaseCalculo;\n }", "function estudiantegeneral($idestudiantegeneral) {\n global $db;\n $query_estudiantegeneral = \"SELECT idestudiantegeneral, idtrato, idestadocivil, tipodocumento,\n\t\t\t\tnumerodocumento, expedidodocumento, numerolibretamilitar, numerodistritolibretamilitar, \n\t\t\t\texpedidalibretamilitar, nombrecortoestudiantegeneral, nombresestudiantegeneral, \n\t\t\t\tapellidosestudiantegeneral, fechanacimientoestudiantegeneral, idciudadnacimiento, codigogenero, \n\t\t\t\tdireccionresidenciaestudiantegeneral, direccioncortaresidenciaestudiantegeneral, \n\t\t\t\tciudadresidenciaestudiantegeneral, telefonoresidenciaestudiantegeneral, telefono2estudiantegeneral, \n\t\t\t\tcelularestudiantegeneral, direccioncorrespondenciaestudiantegeneral, \n\t\t\t\tdireccioncortacorrespondenciaestudiantegeneral, ciudadcorrespondenciaestudiantegeneral, \n\t\t\t\ttelefonocorrespondenciaestudiantegeneral, emailestudiantegeneral, email2estudiantegeneral, \n\t\t\t\tfechacreacionestudiantegeneral, fechaactualizaciondatosestudiantegeneral, codigotipocliente, \n\t\t\t\tcasoemergenciallamarestudiantegeneral, telefono1casoemergenciallamarestudiantegeneral, \n\t\t\t\ttelefono2casoemergenciallamarestudiantegeneral, idtipoestudiantefamilia \n\t\t\t FROM estudiantegeneral\n\t\t\t\twhere idestudiantegeneral = '$idestudiantegeneral'\";\n $estudiantegeneral = $db->Execute($query_estudiantegeneral);\n $totalRows_estudiantegeneral = $estudiantegeneral->RecordCount();\n $row_estudiantegeneral = $estudiantegeneral->FetchRow();\n\n $this->setIdestudiantegeneral($idestudiantegeneral);\n $this->setIdtrato($row_estudiantegeneral['idtrato']);\n $this->setIdestadocivil($row_estudiantegeneral['idestadocivil']);\n $this->setTipodocumento($row_estudiantegeneral['tipodocumento']);\n $this->setNumerodocumento($row_estudiantegeneral['numerodocumento']);\n $this->setExpedidodocumento($row_estudiantegeneral['expedidodocumento']);\n $this->setNumerolibretamilitar($row_estudiantegeneral['numerolibretamilitar']);\n $this->setNumerodistritolibretamilitar($row_estudiantegeneral['numerodistritolibretamilitar']);\n $this->setExpedidalibretamilitar($row_estudiantegeneral['expedidalibretamilitar']);\n $this->setNombrecortoestudiantegeneral($row_estudiantegeneral['nombrecortoestudiantegeneral']);\n $this->setNombresestudiantegeneral($row_estudiantegeneral['nombresestudiantegeneral']);\n $this->setApellidosestudiantegeneral($row_estudiantegeneral['apellidosestudiantegeneral']);\n $this->setFechanacimientoestudiantegeneral($row_estudiantegeneral['fechanacimientoestudiantegeneral']);\n $this->setIdciudadnacimiento($row_estudiantegeneral['idciudadnacimiento']);\n $this->setCodigogenero($row_estudiantegeneral['codigogenero']);\n $this->setDireccionresidenciaestudiantegeneral($row_estudiantegeneral['direccionresidenciaestudiantegeneral']);\n $this->setDireccioncortaresidenciaestudiantegeneral($row_estudiantegeneral['direccioncortaresidenciaestudiantegeneral']);\n $this->setCiudadresidenciaestudiantegeneral($row_estudiantegeneral['ciudadresidenciaestudiantegeneral']);\n $this->setTelefonoresidenciaestudiantegeneral($row_estudiantegeneral['telefonoresidenciaestudiantegeneral']);\n $this->setTelefono2estudiantegeneral($row_estudiantegeneral['telefono2estudiantegeneral']);\n $this->setCelularestudiantegeneral($row_estudiantegeneral['celularestudiantegeneral']);\n $this->setDireccioncorrespondenciaestudiantegeneral($row_estudiantegeneral['direccioncorrespondenciaestudiantegeneral']);\n $this->setDireccioncortacorrespondenciaestudiantegeneral($row_estudiantegeneral['direccioncortacorrespondenciaestudiantegeneral']);\n $this->setCiudadcorrespondenciaestudiantegeneral($row_estudiantegeneral['ciudadcorrespondenciaestudiantegeneral']);\n $this->setTelefonocorrespondenciaestudiantegeneral($row_estudiantegeneral['telefonocorrespondenciaestudiantegeneral']);\n $this->setEmailestudiantegeneral($row_estudiantegeneral['emailestudiantegeneral']);\n $this->setEmail2estudiantegeneral($row_estudiantegeneral['email2estudiantegeneral']);\n $this->setFechacreacionestudiantegeneral($row_estudiantegeneral['fechacreacionestudiantegeneral']);\n $this->setFechaactualizaciondatosestudiantegeneral($row_estudiantegeneral['fechaactualizaciondatosestudiantegeneral']);\n $this->setCodigotipocliente($row_estudiantegeneral['codigotipocliente']);\n $this->setCasoemergenciallamarestudiantegeneral($row_estudiantegeneral['casoemergenciallamarestudiantegeneral']);\n $this->setTelefono1casoemergenciallamarestudiantegeneral($row_estudiantegeneral['telefono1casoemergenciallamarestudiantegeneral']);\n $this->setTelefono2casoemergenciallamarestudiantegeneral($row_estudiantegeneral['telefono2casoemergenciallamarestudiantegeneral']);\n $this->setIdtipoestudiantefamilia($row_estudiantegeneral['idtipoestudiantefamilia']);\n }", "public function setALERGIAS($ALERGIAS)\r\n {\r\n $this->ALERGIAS = $ALERGIAS;\r\n\r\n return $this;\r\n }", "public function setExcerpt($excerpt)\r\n\t\t{\r\n\t\t\t$this->setExcerpt = $excerpt;\r\n\t\t}", "public function apply()\n {\n /** @var EavSetup $eavSetup */\n $eavSetup = $this->eavSetupFactory->create(['setup' => $this->moduleDataSetup]);\n\n if (!$eavSetup->getAttribute(Product::ENTITY, 'am_shipping_type')) {\n $eavSetup->addAttribute(\n Product::ENTITY,\n 'am_shipping_type',\n [\n 'type' => 'varchar',\n 'backend' => '',\n 'frontend' => '',\n 'label' => 'Shipping Type',\n 'input' => 'select',\n 'class' => '',\n 'source' => '',\n 'global' => ScopedAttributeInterface::SCOPE_STORE,\n 'visible' => true,\n 'required' => false,\n 'user_defined' => false,\n 'default' => 0,\n 'searchable' => false,\n 'filterable' => false,\n 'comparable' => false,\n 'visible_on_front' => false,\n 'used_in_product_listing' => true,\n 'unique' => false,\n 'apply_to' => ''\n ]\n );\n }\n }", "public function setProductEan(?string $productEan = null): self\n {\n // validation for constraint: string\n if (!is_null($productEan) && !is_string($productEan)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productEan, true), gettype($productEan)), __LINE__);\n }\n if (is_null($productEan) || (is_array($productEan) && empty($productEan))) {\n unset($this->ProductEan);\n } else {\n $this->ProductEan = $productEan;\n }\n \n return $this;\n }", "public function setProductEan(?string $productEan = null): self\n {\n // validation for constraint: string\n if (!is_null($productEan) && !is_string($productEan)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productEan, true), gettype($productEan)), __LINE__);\n }\n if (is_null($productEan) || (is_array($productEan) && empty($productEan))) {\n unset($this->ProductEan);\n } else {\n $this->ProductEan = $productEan;\n }\n \n return $this;\n }", "public function setProductEan(?string $productEan = null): self\n {\n // validation for constraint: string\n if (!is_null($productEan) && !is_string($productEan)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productEan, true), gettype($productEan)), __LINE__);\n }\n if (is_null($productEan) || (is_array($productEan) && empty($productEan))) {\n unset($this->ProductEan);\n } else {\n $this->ProductEan = $productEan;\n }\n \n return $this;\n }", "public function testSetEtblEffectif() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblEffectif(10);\n $this->assertEquals(10, $obj->getEtblEffectif());\n }", "function setDefault($col, $precedence){\n $this->setRecord(2, $col, $precedence);\n }", "public function setAl($al)\n {\n $this->al = $al;\n\n return $this;\n }", "public function setProduto($produto)\r\n {\r\n $this->produto = $produto;\r\n }", "public function setFunctional($functional)\n {\n $this->functional = $functional;\n }", "public function setEdad($valor){\n\t\t\t$this->edad = $valor;\n\t\t}", "protected function set_quality($quality) {\n\t\t\n\t\t$default\t= $this->get_quality_default();\n\t\t$ar_valid \t= $this->get_ar_quality();\n\t\t\n\t\tif(empty($quality)) {\n\t\t\t$this->quality = $default;\n\t\t\treturn $this->quality;\n\t\t}\n\t\t#dump($quality,\"QUALITY HERE\");\n\t\t#$quality \t= strtolower($quality);\t\t\t\n\t\t\n\t\tif(!is_array($ar_valid)) {\n\t\t\tthrow new Exception(\"config ar_valid is not defined!\", 1);\n\t\t}\n\t\t\n\t\tif(!in_array($quality,$ar_valid)) {\n\t\t\t$quality = $default ;\t\t#dump($ar_valid,\"$quality NO IS IN ARRAY !!!!!\");\n\t\t}\n\n\t\t$this->quality = $quality;\n\t\t\n\t\treturn $this->quality;\n\t}", "public function setAltura($iAltura) {\n $this->iAltura = $iAltura;\n }", "function LLena_GridGeneral()\n { /*Instruccion de sql que manda los datos al dbgEstimacion*/\n global $sContrato;\n $sql= \"select\n iNumeroEstimacion as Estimacion,\n sNumeroOrden as No_Orden,\n iSemana as Sem,\n sNumeroGenerador as Gen,\n lStatus as Status,\n dFinancieroGenerador as Porcent,\n date_format(dFechaInicio,'%d/%m/%Y') as F_Inicio,\n date_format(dFechaFinal,'%d/%m/%Y') as F_Final,\n format(dMontoMN,2) as Monto_MN,\n format(dMontoDLL,2) as Monto_DLL,\n sFaseObra as Fase_Obra\n from\n estimaciones\n where\n sContrato='$sContrato'\";\n $this->qryGeneral->Active=false;\n $this->qryGeneral->setSQL($sql);\n $this->qryGeneral->Active=true;\n }", "public function setEstudiante( $estudiante ){\n\t\t$this->estudiante = $estudiante;\n\t}", "public function setColumna($col){\n if($col>3 ){\n $this->columna = 3;\n }\n elseif ($col<0) {\n $this->columna = 0;\n }\n else{\n $this->columna = $col;\n }\n }", "public function setProyecto( $proyecto ){\n\t\t\t$this->proyecto= $proyecto;\n\t\t}", "function setF_acta($df_acta = '', $convert = true)\n {\n if ($convert === true && !empty($df_acta)) {\n $oConverter = new core\\ConverterDate('date', $df_acta);\n $this->df_acta = $oConverter->toPg();\n } else {\n $this->df_acta = $df_acta;\n }\n }", "function setAllergens(){\r\n global $allr_array;\r\n if (strtoupper($_POST[milkfree]) == \"ON\"){\r\n $allr_array[] = \"milk\";\r\n }\r\n if (strtoupper($_POST[peanutfree]) == \"ON\"){\r\n $allr_array[] = \"peanut\";\r\n }\r\n if (strtoupper($_POST[eggfree]) == \"ON\"){\r\n $allr_array[] = \"egg\";\r\n }\r\n if (strtoupper($_POST[soyfree]) == \"ON\"){\r\n $allr_array[] = \"soy\";\r\n }\r\n if (strtoupper($_POST[nutfree]) == \"ON\"){\r\n $allr_array[] = \"treenut\";\r\n }\r\n if (strtoupper($_POST[cornfree]) == \"ON\"){\r\n $allr_array[] = \"corn\";\r\n }\r\n if (strtoupper($_POST[glutenfree]) == \"ON\"){\r\n $allr_array[] = \"gluten\";\r\n }\r\n if (strtoupper($_POST[wheatfree]) == \"ON\"){\r\n $allr_array[] = \"wheat\";\r\n }\r\n if (strtoupper($_POST[fishfree]) == \"ON\"){\r\n $allr_array[] = \"fish\";\r\n }\r\n if (strtoupper($_POST[shellfishfree]) == \"ON\"){\r\n $allr_array[] = \"shellfish\";\r\n }\r\n if (strtoupper($_POST[sesamefree]) == \"ON\"){\r\n $allr_array[] = \"sesame\";\r\n }\r\n if (strtoupper($_POST[other]) == \"ON\"){\r\n $allr_array[] = \"other\";\r\n }\r\n}", "public function setEditorial($editorial)\n {\n $this->editorial = $editorial;\n }", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function getProdAlt4()\n {\n return $this->prod_alt4;\n }", "public function setAltura($iAltura, $sUnidade = \"px\") \r\n\t{\r\n\t\t$this->iAltura = $iAltura;\r\n\t\t$this->sUnidadeAltura = $sUnidade;\r\n\t}", "private function setEnableReviews() {\n $this->product->set_reviews_allowed($this->wcData->isEnableReviews());\n }", "public function alto($alto){\r\n\t\tif ($alto>0) {\r\n\t\t\t$this->alto=$alto;\r\n\t\t}\r\n\t}", "public function setDeliveryOption($delivery_option = null){\n if (empty($delivery_option) || count($delivery_option) == 0){\n $this->delivery_option = '';\n $this->carrier_id = 0;\n return;\n }\n JeproshopCache::clean('getContextualValue_*');\n $delivery_option_list = $this->getDeliveryOptionList(null, true);\n\n foreach ($delivery_option_list as $address_id => $options){\n if (!isset($delivery_option[$address_id])){\n foreach ($options as $key => $option){\n if ($option['is_best_price']){\n $delivery_option[$address_id] = $key;\n break;\n }\n }\n }\n }\n\n if (count($delivery_option) == 1)\n $this->carrier_id = $this->getIdCarrierFromDeliveryOption($delivery_option);\n\n $this->delivery_option = serialize($delivery_option);\n }", "public function getProdAircraftreg()\n {\n return $this->prod_aircraftreg;\n }", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "public function setAltText($alt)\n {\n $this->_alt = $alt;\n }", "public function setAno($ano)\n {\n $this->ano = $ano;\n }", "public function testSetTauxAncien() {\n\n $obj = new Employes();\n\n $obj->setTauxAncien(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxAncien());\n }", "public function setEscalaValor( $escalaValor ){\n\t\t\t$this->escalaValor = $escalaValor ;\n\t\t}", "private static function _addScaExemptionOptions()\n {\n global $db;\n\n $scaExemptionOptions = EMerchantPayCommon::buildSettingsDropDownOptions(\n [\n ScaExemptions::EXEMPTION_LOW_RISK => 'Low risk',\n ScaExemptions::EXEMPTION_LOW_VALUE => 'Low value',\n ]\n );\n\n $db->Execute(\n 'insert into ' . TABLE_CONFIGURATION . \"\n (configuration_title, configuration_key, configuration_value,\n configuration_description, configuration_group_id, sort_order,\n set_function, date_added)\n values\n ('SCA Exemption',\n '\" . EmpCheckoutSettings::getCompleteSettingKey(\n 'SCA_EXEMPTION'\n ) . \"', '\" . ScaExemptions::EXEMPTION_LOW_RISK . \"', \n 'Exemption for the Strong Customer Authentication.',\n '6', '5', 'emp_zfg_select_drop_down_single({$scaExemptionOptions},',\n now())\"\n );\n $db->Execute(\n 'insert into ' . TABLE_CONFIGURATION . \"\n (configuration_title, configuration_key, configuration_value,\n configuration_description, configuration_group_id, sort_order,\n set_function, date_added)\n values\n ('Exemption Amount',\n '\" . EmpCheckoutSettings::getCompleteSettingKey(\n 'SCA_EXEMPTION_AMOUNT'\n ) . \"',\n '100', 'Exemption Amount determinate if the SCA Exemption should\n be included in the request to the Gateway.',\n '6', '6', 'emp_zfg_draw_input(null, ', now())\"\n );\n }", "function setMargemEsquerda($iNumCol = 4) {\n\n $sComando = chr(27) . chr(108) . \" $iNumCol\";\n parent::addComando($sComando);\n }", "public function setFormaProBaseCdd(?float $formaProBaseCdd): DadsuEtablissementsRectif {\n $this->formaProBaseCdd = $formaProBaseCdd;\n return $this;\n }", "public function extendProduct($product, $extender) \n\t{\n\t\t$this->load->model('catalog/product');\n\t\t$this->load->model('catalog/category');\n\t\t\n\t\t$languageId = $this->config->get('config_language_id');\t\t\n\t\t$productId = $product['product_id'];\n\t\t\n\t\t// Move description fields in sub array\t\n\t\t$descriptionFields = $this->getTableFields('product_description');\n\t\tunset($descriptionFields['product_id']);\t\t\n\t\t\n\t\t$product['product_description'] = array(\n\t\t\t$languageId => array(),\n\t\t);\n\t\tforeach ($descriptionFields as $key => $value) {\n\t\t\tif (array_key_exists($key, $product)) {\n\t\t\t\t$product['product_description'][$languageId][$key] = $product[$key];\n\t\t\t\tunset($product[$key]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Update manufacturer\n\t\tif (array_key_exists('manufacturer_id', $extender)) {\n\t\t\t$product['manufacturer_id'] = $this->addManufacturer($extender['manufacturer_id']);\n\t\t}\n\t\t\n\t\t// Update SEO url\n\t\tif (array_key_exists('keyword', $extender)) {\n\t\t\t$product['keyword'] = $extender['keyword'];\n\t\t}\n\t\t\n\t\t// Update image\n\t\tif (array_key_exists('image', $extender)) {\n\t\t\t$product['image'] = $this->addImage($extender['image']);\n\t\t} elseif (!empty($this->imageFileTpl)) {\n\t\t\t$values = array_values($product);\n\t\t\t$image = str_replace($this->imageTplPlaceholders, $values, $this->imageFileTpl);\n\t\t\t\n\t\t\t$product['image'] = $this->addImage($image);\n\t\t}\n\t\t\n\t\t// Status\n\t\t$product['status'] = array_key_exists('status', $extender) \n\t\t\t? $extender['status']\n\t\t\t: $this->productStatus;\n\t\t\n\t\t// Category processing\n\t\tif (array_key_exists('store_id', $extender)) {\n\t\t\t$product['product_store'] = array($extender['store_id']);\n\t\t} else {\n\t\t\t$product['product_store'] = array(0);\n\t\t}\n\t\t\n\t\t// Set store\n\t\tif (array_key_exists('category_id', $extender)) {\n\t\t\t$product['product_category'] = $this->addCategory($extender['category_id']);\n\t\t}\n\t\t\n\t\t//$product = array_merge($product, array('product_category' => $this->model_catalog_product->getProductCategories($productId)));\t\t\n\t\t//$product = array_merge($product, array('product_image' => $this->model_catalog_product->getProductImages($productId)));\n\t\t\n\t\t//$product = array_merge($product, array('product_attribute' => $this->model_catalog_product->getProductAttributes($productId)));\n\t\t//$product = array_merge($product, array('product_discount' => $this->model_catalog_product->getProductDiscounts($productId)));\n\t\t//$product = array_merge($product, array('product_filter' => $this->model_catalog_product->getProductFilters($productId)));\n\t\t//$product = array_merge($product, array('product_option' => $this->model_catalog_product->getProductOptions($productId)));\n\t\t//$product = array_merge($product, array('product_related' => $this->model_catalog_product->getProductRelated($productId)));\n\t\t//$product = array_merge($product, array('product_reward' => $this->model_catalog_product->getProductRewards($productId)));\n\t\t//$product = array_merge($product, array('product_special' => $this->model_catalog_product->getProductSpecials($productId)));\n\t\t//$product = array_merge($product, array('product_download' => $this->model_catalog_product->getProductDownloads($productId)));\n\t\t//$product = array_merge($product, array('product_layout' => $this->model_catalog_product->getProductLayouts($productId)));\n\t\t//$product = array_merge($product, array('product_store' => $this->model_catalog_product->getProductStores($productId)));\n\t\n\t\treturn $product;\n\t}", "public function setEditais($editais)\n {\n if (!is_null($editais))\n $this->editais = $editais;\n }", "public function setDefaultProduct($product) {\n $this->values->put('DefaultProduct', $product);\n }", "public function updateProductStyleOptionPricingAll(){\n\t\t$all_products = $this->getAll();\n\t\t$this->load->model('catalog/product');\n\t\t$this->load->model('tshirtgang/pricing');\n\t\t$this->load->model('catalog/option');\n\t\t$tshirt_option_names = array('Tshirt Color', 'Tshirt Style', 'Tshirt Size');\n\t\t$tshirt_colored = array(\n\t\t\t\"Black\",\n\t\t\t\"Charcoal Grey\",\n\t\t\t\"Daisy\",\n\t\t\t\"Dark Chocolate\",\n\t\t\t\"Forest Green\",\n\t\t\t\"Gold\",\n\t\t\t\"Irish Green\",\n\t\t\t\"Light Blue\",\n\t\t\t\"Light Pink\",\n\t\t\t\"Military Green\",\n\t\t\t\"Navy\",\n\t\t\t\"Orange\",\n\t\t\t\"Purple\",\n\t\t\t\"Red\",\n\t\t\t\"Royal Blue\",\n\t\t\t\"Sport Grey\",\n\t\t\t\"Tan\",\n\t\t\t\"Burgundy\"\n\t\t);\n\t\t$tshirt_ringer = array(\n\t\t\t\"Navy Ringer\",\n\t\t\t\"Black Ringer\",\n\t\t\t\"Red Ringer\"\n\t\t);\n\t\t$tshirt_options = array();\n\t\t$tshirt_options_price = array();\n\t\t$options = $this->model_catalog_option->getOptions();\n\t\t$temp_price = 0.0;\n\t\tforeach($options as $option){\n\t\t\t//if($option['name'] == 'Tshirt Color'){\n\t\t\t//\t$tshirtcolor_option_id = $option['option_id'];\n\t\t\t//}\n\t\t\t//if($option['name'] == 'Tshirt Style'){\n\t\t\t//\t$tshirtstyle_option_id = $option['option_id'];\n\t\t\t//}\n\t\t\t//if($option['name'] == 'Tshirt Size'){\n\t\t\t//\t$tshirtsize_option_id = $option['option_id'];\n\t\t\t//}\n\t\t\tif(in_array($option['name'], $tshirt_option_names)){\n\t\t\t\t$tshirt_options[$option['name']] = array();\n\t\t\t\t$tshirt_options[$option['name']]['option_id'] = $option['option_id'];\n\t\t\t\t$tshirt_options[$option['name']]['prices'] = array();\n\t\t\t}\n\t\t}\n\t\tforeach($tshirt_option_names as $tshirt_option_name){\n\t\t\t$option_value_descriptions = $this->model_catalog_option->getOptionValueDescriptions($tshirt_options[$tshirt_option_name]['option_id']);\n\t\t\tforeach($option_value_descriptions as $opv){\n\t\t\t\t$temp_price = 0.0;\n\t\t\t\tif($tshirt_option_name=='Tshirt Color'){\n\t\t\t\t\tif( in_array($opv['option_value_description'][1]['name'], $tshirt_colored )){\n\t\t\t\t\t\t$temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'ColorShirt' ));\n\t\t\t\t\t} elseif( in_array($opv['option_value_description'][1]['name'], $tshirt_ringer )){\n\t\t\t\t\t\t$temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'RingerShirt' ));\n\t\t\t\t\t} else { // white\n\t\t\t\t\t\t$temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'WhiteShirt' ));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif($tshirt_option_name=='Tshirt Style'){\n\t\t\t\t\tif($opv['option_value_description'][1]['name'] == \"Mens Fitted\" ) $temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'MensFittedIncremental' ));\n\t\t\t\t\tif($opv['option_value_description'][1]['name'] == \"Ladies\" ) $temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'LadiesIncremental' ));\n\t\t\t\t\tif($opv['option_value_description'][1]['name'] == \"Hooded Pullover\" ) $temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'HoodieIncremental' ));\n\t\t\t\t\tif($opv['option_value_description'][1]['name'] == \"Apron\" ) $temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'ApronIncremental' ));\n\t\t\t\t\tif($opv['option_value_description'][1]['name'] == \"Vneck\" ) $temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'VneckIncremental' ));\n\t\t\t\t\tif($opv['option_value_description'][1]['name'] == \"Tanktop\" ) $temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'TanktopIncremental' ));\n\t\t\t\t\tif($opv['option_value_description'][1]['name'] == \"Baby One Piece\" ) $temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'BabyOnePieceIncremental' ));\n\t\t\t\t}\n\t\t\t\tif($tshirt_option_name=='Tshirt Size'){\n\t\t\t\t\tif($opv['option_value_description'][1]['name'] == \"2 X-Large\" ) $temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'Shirt_2XL_Incremental' ));\n\t\t\t\t\tif($opv['option_value_description'][1]['name'] == \"3 X-Large\" ) $temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'Shirt_3XL6XL_Incremental' ));\n\t\t\t\t\tif($opv['option_value_description'][1]['name'] == \"4 X-Large\" ) $temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'Shirt_3XL6XL_Incremental' ));\n\t\t\t\t\tif($opv['option_value_description'][1]['name'] == \"5 X-Large\" ) $temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'Shirt_3XL6XL_Incremental' ));\n\t\t\t\t\tif($opv['option_value_description'][1]['name'] == \"6 X-Large\" ) $temp_price = $this->model_tshirtgang_pricing->get(array( 'code' => 'Shirt_3XL6XL_Incremental' ));\n\t\t\t\t}\n\t\t\t\tif($temp_price != 0.0){\n\t\t\t\t\t$tshirt_options_price = array(\n\t\t\t\t\t\t'option_value_id' => $opv['option_value_id'],\n\t\t\t\t\t\t'name' => $opv['option_value_description'][1]['name'],\n\t\t\t\t\t\t'price' => $temp_price\n\t\t\t\t\t);\n\t\t\t\t\t$tshirt_options[$tshirt_option_name]['prices'][] = $tshirt_options_price;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tforeach($tshirt_options as $tso1){\n\t\t\tforeach($tso1['prices'] as $tso2){\n\t\t\t\t$sql = \"UPDATE \" . DB_PREFIX . \"product_option_value ocpov \";\n\t\t\t\t$sql .= \"LEFT JOIN \" . DB_PREFIX . \"product ocp \";\n\t\t\t\t$sql .= \" ON ocp.product_id = ocpov.product_id \";\n\t\t\t\t$sql .= \"LEFT JOIN \" . DB_PREFIX . \"tshirtgang_products tsgp \";\n\t\t\t\t$sql .= \" ON tsgp.product_id = ocp.product_id \";\n\t\t\t\t$sql .= \"SET ocpov.price=\". (float)$tso2['price'] . \" \";\n\t\t\t\t$sql .= \"WHERE \";\n\t\t\t\t$sql .= \" ocpov.option_value_id = \" . (int)$tso2['option_value_id'] . \" \";\n\t\t\t\t//$sql .= \" AND \";\n\t\t\t\t//$sql .= \" tsgp.id IS NOT NULL \";\n\t\t\t\t$this->db->query($sql);\n\t\t\t}\n\t\t}\n\t}", "function jigoshop_upgrade_99() {\n\tglobal $wpdb;\n\n\t$q = $wpdb->get_results(\"SELECT *\n\t\tFROM $wpdb->term_taxonomy\n\t\tWHERE taxonomy LIKE 'product_attribute_%'\n\t\");\n\n\tforeach($q as $item) {\n\t\t$taxonomy = str_replace('product_attribute_', 'pa_', $item->taxonomy);\n\n\t\t$wpdb->update(\n\t\t\t$wpdb->term_taxonomy,\n\t\t\tarray('taxonomy' => $taxonomy),\n\t\t\tarray('term_taxonomy_id' => $item->term_taxonomy_id)\n\t\t);\n\t}\n}", "public function setOperador($operador)\r\n {\r\n // $this->_myParameters = $myParameters;\r\n $this->_OPERADOR = $operador;\r\n \t//$this->_OPERADOR='1';\r\n \t//Zend_Registry::get('logger')->log(\"testeddd\", Zend_Log::INFO);\r\n \t$projeto= new Application_Model_DbTable_Projeto();\r\n \t//$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t$this->_PROJETOS=$projeto->getProjetosOperadorPermissao($operador);\r\n \t\r\n }", "public function setProyectorActivo( $proyector ) {\n $this->proyector_activo=$proyector;\n $proyecActual=new Properties();\n $proyecActual->load(file_get_contents(\"./pantallaActiva.properties\"));\n if(strcmp($proyector, \"\")==0)\n $this->proyector_activo=$proyecActual->getProperty(\"Proyector.activo\");\n $proyecActual->setProperty(\"Proyector.activo\",$this->proyector_activo);\n file_put_contents('./pantallaActiva.properties', $proyecActual->toString(true));\n }", "protected function update_overall_grades($quiz) {\n quiz_update_all_attempt_sumgrades($quiz);\n quiz_update_all_final_grades($quiz);\n quiz_update_grades($quiz);\n }" ]
[ "0.6047497", "0.5933805", "0.5564652", "0.5256335", "0.4957775", "0.49163714", "0.48508793", "0.4834009", "0.4639352", "0.45765793", "0.45544335", "0.45205042", "0.44947693", "0.44479328", "0.44316754", "0.4412388", "0.4399919", "0.4377867", "0.4371502", "0.43435496", "0.4311147", "0.42984787", "0.42542073", "0.42496443", "0.4236724", "0.4227711", "0.42271334", "0.42271334", "0.42226714", "0.42186642", "0.42097363", "0.41808516", "0.4177102", "0.41705525", "0.41700664", "0.4159615", "0.41471627", "0.41424298", "0.41382053", "0.41376135", "0.41375184", "0.4134285", "0.41151583", "0.41098487", "0.41095048", "0.41048175", "0.4100825", "0.41001654", "0.40977338", "0.40936166", "0.4090506", "0.4085415", "0.40838555", "0.40733173", "0.40730456", "0.40623397", "0.40607277", "0.40381232", "0.40366605", "0.4033912", "0.4033912", "0.4033912", "0.40323886", "0.40321463", "0.40314943", "0.40250596", "0.40249965", "0.40137073", "0.40079686", "0.39996207", "0.3992352", "0.3991967", "0.39806", "0.39773107", "0.39707056", "0.39506975", "0.3947411", "0.39460036", "0.39433545", "0.39384717", "0.39373642", "0.39365438", "0.39237937", "0.39211372", "0.39121965", "0.38993186", "0.38975102", "0.38845208", "0.38802335", "0.3877132", "0.3876087", "0.3873687", "0.38683495", "0.38668787", "0.3864846", "0.3863333", "0.38607043", "0.38604546", "0.38544983", "0.38486257" ]
0.5654359
2
setProdEra() Set the value of [prod_company] column.
public function setProdCompany($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_company !== $v) { $this->prod_company = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_COMPANY] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdEra($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_era !== $v) {\n $this->prod_era = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ERA] = true;\n }\n\n if ($this->aTblEra !== null && $this->aTblEra->getEraId() !== $v) {\n $this->aTblEra = null;\n }\n\n return $this;\n }", "public function getProdEra()\n {\n return $this->prod_era;\n }", "public function setEnterprise(string $enterprise = null) : CNabuDataObject\n {\n $this->setValue('nb_icontact_prospect_enterprise', $enterprise);\n \n return $this;\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function setResaca($resaca){\n $this->resaca=$resaca;\n }", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public function setCompany($company_nid);", "public function setEgoera($data)\n {\n\n if ($this->_egoera != $data) {\n $this->_logChange('egoera');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_egoera = $data;\n\n } else if (!is_null($data)) {\n $this->_egoera = (int) $data;\n\n } else {\n $this->_egoera = $data;\n }\n return $this;\n }", "public function setCompany($company)\n {\n $this->company = $company;\n }", "public function setCompany(string $company): void\n {\n $this->_company = $company;\n }", "public function setNit_empresa($nit_empresa){\n $this->nit_empresa = $nit_empresa;\n }", "public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\n }", "public function setProducto($pro){ $this->producto = $pro;}", "public function setEscalaValor( $escalaValor ){\n\t\t\t$this->escalaValor = $escalaValor ;\n\t\t}", "public function setProductByCode($code)\n\t{\n\t\tif (empty($this->brand)) {\n\t\t\tthrow new \\Exception('Must Set Brafore before Product');\n\t\t}\n\t\t$criteria = Criteria::create()\n\t\t->where(Criteria::expr()->eq(\"code\", $code));\n\t\n\t\t$this->product = $this->brand->getProducts()->matching($criteria)->first();\n\t\n\t\tif (empty($this->producct)) {\n\t\t\tthrow new \\Exception(sprtintf(\"Product '%s' not found\",$code));\n\t\t}\n\t\n\t\t$this->logger->debug(sprintf(\"Code: '%s' Product: '%s'\", $code, $this->product));\n\t}", "public function testSetCodeEmploye() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "function set_employee($emp)\n\t\t{\n\t\t\t$this->employee = $emp;\n\t\t}", "public function setDireccion_empresa($direccion_empresa){\n $this->direccion_empresa = $direccion_empresa;\n }", "public function setCep( $cep )\n\t{\t\n\t\t/**\n\t\t * Armazena Cep do cliente\n\t\t * @name $cep\n\t\t */\n\t\t$this->cep = $cep;\n\t}", "function setEmpresa($empresa, $puesto, $depto = \"\", $idempleado = \"\", $nss = 0, $ExtTelefonica = 0 ){\n\t\t$this->mClaveEmpresa\t= $empresa;\n\t\t$this->mPuesto\t\t\t= $puesto;\n\t\t$this->mDepto\t\t\t= $depto;\n\t\t$this->mIDEmpleado\t\t= $idempleado;\n\t\t$this->mNSS\t\t\t\t= $nss;\n\t\t$this->mExtTelefonica\t= $ExtTelefonica;\n\t\t//iniciar domicilio?\n\t\t$xEmp\t\t\t\t\t= new cEmpresas($this->mCodigoPostal);\n\t\tif($xEmp->init() == true){\n\t\t\t$this->mNombreEmpresa\t= $xEmp->getNombreCorto();\n\t\t\t$this->mDomicilio\t\t= $xEmp->getDomicilio();\n\t\t\t$OPers\t\t\t\t\t= $xEmp->getOPersona();\n\t\t\tif($OPers != null){\n\t\t\t\t$xViv\t\t\t\t= $OPers->getODomicilio();\n\t\t\t\tif($xViv != null){\n\t\t\t\t\t$this->mClaveDeEstado\t\t= $xViv->getClaveDeEstado();\n\t\t\t\t\t$this->mClaveDeMunicipio\t= $xViv->getClaveDeMunicipio();\n\t\t\t\t\t$this->mClaveDeLocalidad\t= $xViv->getClaveDeLocalidad();\n\t\t\t\t\t\n\t\t\t\t\t$this->mNombreDeLocalidad\t= $xViv->getLocalidad();\n\t\t\t\t\t$this->mNombreDeMunicipio\t= $xViv->getMunicipio();\n\t\t\t\t\t$this->mNombreDeEstado\t\t= $xViv->getEstado();\n\t\t\t\t\t$this->mCodigoPostal\t\t= $xViv->getCodigoPostal();\n\t\t\t\t\t$this->mIDDomicilio\t\t\t= $xViv->getClaveUnica();\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function setProduto($produto)\r\n {\r\n $this->produto = $produto;\r\n }", "public function setConexaoOrigem($rsConexaoOrigem) {\n $this->rsConexaoOrigem = $rsConexaoOrigem;\n }", "public function testSetCodeEmploye() {\n\n $obj = new PointBonTrav();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "public function setCarrera($carrera) {\n $this->carrera = $carrera;\n }", "public function setProductEan(?string $productEan = null): self\n {\n // validation for constraint: string\n if (!is_null($productEan) && !is_string($productEan)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productEan, true), gettype($productEan)), __LINE__);\n }\n if (is_null($productEan) || (is_array($productEan) && empty($productEan))) {\n unset($this->ProductEan);\n } else {\n $this->ProductEan = $productEan;\n }\n \n return $this;\n }", "public function setProductEan(?string $productEan = null): self\n {\n // validation for constraint: string\n if (!is_null($productEan) && !is_string($productEan)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productEan, true), gettype($productEan)), __LINE__);\n }\n if (is_null($productEan) || (is_array($productEan) && empty($productEan))) {\n unset($this->ProductEan);\n } else {\n $this->ProductEan = $productEan;\n }\n \n return $this;\n }", "public function setProductEan(?string $productEan = null): self\n {\n // validation for constraint: string\n if (!is_null($productEan) && !is_string($productEan)) {\n throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($productEan, true), gettype($productEan)), __LINE__);\n }\n if (is_null($productEan) || (is_array($productEan) && empty($productEan))) {\n unset($this->ProductEan);\n } else {\n $this->ProductEan = $productEan;\n }\n \n return $this;\n }", "function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }", "public function setCustomerCompany($companyName = '') {\n $company = array(\n 'x_company'=>$this->truncateChars($companyName, 50),\n );\n $this->NVP = array_merge($this->NVP, $company); \n }", "public function productionCompany($value)\n {\n $this->setProperty('productionCompany', $value);\n return $this;\n }", "public function setProducte($producte)\n {\n $this->producte = $producte;\n\n return $this;\n }", "public function setPrecioCompra ($precio_compra)\n\t{\n\t\tif (is_numeric($precio_compra))\n\t\t{\n\t\t\t$this->precio_compra = $precio_compra;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public function setProduct(LineItemProduct $product)\n\t{\n\t\t$this->addKeyValue('product', $product); \n\n\t}", "public function setNombre_empresa($nombre_empresa){\n $this->nombre_empresa = $nombre_empresa;\n }", "public function getProdCompany()\n {\n return $this->prod_company;\n }", "public function testSetTelPersAPrevenir() {\n\n $obj = new Employes();\n\n $obj->setTelPersAPrevenir(\"telPersAPrevenir\");\n $this->assertEquals(\"telPersAPrevenir\", $obj->getTelPersAPrevenir());\n }", "public function setEmpresa($value = false) {\n $this->_empresa = $value;\n return $this;\n }", "public function setEmpresa($value = false) {\n $this->_empresa = $value;\n return $this;\n }", "function Proveeedor($cedulaProveedor, $nombre, $telefono, $productos) {\n $this->cedulaProveedor = $cedulaProveedor;\n $this->nombre = $nombre;\n $this->telefono = $telefono;\n $this->productos = $productos;\n }", "protected function setEcommerceValues()\n {\n $this->setTxnType('01'); // Purchase\n $this->setTransactionCurrencyCode(826); // Pound sterling\n $this->setTerminalCountryCode(826); // United Kingdom\n\n // CNP/ECommerce (if flagged for payer authorisation with acquirer; no\n // CNP transactions are allowed with the exception of refunds)\n $this->setApacsTerminalCapabilities(4298);\n\n $this->setCaptureMethod(12); // Keyed Cardholder Not Present E-Commerce Order\n $this->setProcessingIdentifier(1); // Auth and Charge\n }", "public function SetExe($exe);", "public function setLibelleEcr($libelleEcr) {\n $this->libelleEcr = $libelleEcr;\n return $this;\n }", "public function setProcessoCompra(ProcessoCompras $oProcessoCompra) {\n \n $this->oProcessoCompra = $oProcessoCompra;\n $this->iCodigoProcessoCompras = $oProcessoCompra->getCodigo();\n }", "public function testSetNumeroEmploye() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroEmploye(\"numeroEmploye\");\n $this->assertEquals(\"numeroEmploye\", $obj->getNumeroEmploye());\n }", "public function testSetCptAccompte() {\n\n $obj = new Employes();\n\n $obj->setCptAccompte(10);\n $this->assertEquals(10, $obj->getCptAccompte());\n }", "public function testSetAllegParticulier() {\n\n $obj = new Employes();\n\n $obj->setAllegParticulier(true);\n $this->assertEquals(true, $obj->getAllegParticulier());\n }", "public function testSetCodeCollaborateurRedir() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurRedir(\"codeCollaborateurRedir\");\n $this->assertEquals(\"codeCollaborateurRedir\", $obj->getCodeCollaborateurRedir());\n }", "function setProductCode($productCode)\n {\n $this->productCode = $productCode;\n }", "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "public function testSetNivConfEmpPropreteRestreint() {\n\n $obj = new Collaborateurs();\n\n $obj->setNivConfEmpPropreteRestreint(true);\n $this->assertEquals(true, $obj->getNivConfEmpPropreteRestreint());\n }", "public function setEAN ($ean){\n\t\tif($ean) {\n\t\t\t$this->Item['ean'] = substr($ean, 0,100);\n\t\t}\n\t}", "public function testSetCumBrutAl() {\n\n $obj = new Employes();\n\n $obj->setCumBrutAl(10.092018);\n $this->assertEquals(10.092018, $obj->getCumBrutAl());\n }", "public function setProduct(Product $product);", "function actualizarEmpresa($data_empresa,$data_contacto,$data_usuario){\n\t\t\t$where = \"usuario.usuario_id=\". $data_usuario[\"usuario_id\"];\n\t\t\t$query = $this->db->update_string(\"usuario\",$data_usuario,$where);\n\t\t\t$this->db->query($query);\n\n\t\t\t#actualizar tabla de contacto\n\t\t\t$where = \"contacto.contacto_id=\". $data_contacto[\"contacto_id\"];\n\t\t\t$query = $this->db->update_string(\"contacto\",$data_contacto,$where);\n\t\t\t\n\t\t\t$this->db->query($query);\n\n\t\t\t#actualizar tabla de empresa\n\t\t\t$where = \"empresa_id=\". $data_empresa[\"empresa_id\"];\n\t\t\t$query = $this->db->update_string(\"empresa\",$data_empresa,$where);\n\t\t\t#echo $query;\n\t\t\t$this->db->query($query);\n\n\t\t}", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\n }", "public function _setEntregable($data)\n {\n try {\n $id = (int)$data['entregableid'];\n if ($id == 0) {\n $sql = $this->_db->query(\"select codigo_prop_proy from proyecto where\n proyectoid = '\".$data['proyectoid'].\"'\");\n $codigo = $sql->fetch();\n $ent = $this->createRow();\n $ent->codigo_prop_proy = $codigo['codigo_prop_proy'];\n $ent->proyectoid = $data['proyectoid'];\n $ent->revision_entregable = 'A';\n $ent->edt = '000';\n $ent->tipo_documento = $data['tipo_documento'];\n $ent->disciplina = $data['disciplina'];\n $ent->codigo_anddes = $data['codigo_anddes'];\n $ent->codigo_cliente = $data['codigo_cliente'];\n $ent->descripcion_entregable = $data['descripcion'];\n $ent->estado = 'Ultimo';\n $ent->clase = $data['clase'];\n $ent->revision_documento = $data['revision'];\n $ent->estado_entregable = 9;\n $ent->save();\n $resp['resultado'] = 'guardado';\n return $resp;\n } else {\n $ent = $this->fetchRow('cod_le = '.$id);\n $ent->tipo_documento = $data['tipo_documento'];\n $ent->disciplina = $data['disciplina'];\n $ent->codigo_anddes = $data['codigo_anddes'];\n $ent->codigo_cliente = $data['codigo_cliente'];\n $ent->descripcion_entregable = $data['descripcion'];\n $ent->save();\n $resp['resultado'] = 'guardado';\n return $resp;\n }\n return $id;\n } catch (Exception $e) {\n print $e->getMessage();\n }\n }", "public function setPostalCodeOrigin($cep)\n {\n $this->attributes[\"cep_origem\"] = (string)$cep;\n }", "public function setEncendidoPizarra( $encendido ) {\n $this->pizarra_on=$encendido;\n $this->enviarComandoEstado();\n //$this->activarPantalla();\n }", "private function setRecord($index, $col, $precedence) {\n $this->records[$index]->setCol($col);\n $this->records[$index]->setPrecedence($precedence);\n }", "public function testSetNumeroCarteTravail() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteTravail(\"numeroCarteTravail\");\n $this->assertEquals(\"numeroCarteTravail\", $obj->getNumeroCarteTravail());\n }", "public function setCentrosEmergencia(\\Atezate\\Model\\Raw\\CentrosEmergencia $data)\n {\n $this->_CentrosEmergencia = $data;\n\n $primaryKey = $data->getPrimaryKey();\n if (is_array($primaryKey)) {\n $primaryKey = $primaryKey['id'];\n }\n\n if (!is_null($primaryKey)) {\n $this->setCentrosEmergenciaId($primaryKey);\n }\n\n $this->_setLoaded('CubosIbfk6');\n return $this;\n }", "public function edit(Compra $compra)\n {\n //\n }", "public function edit(Compra $compra)\n {\n //\n }", "public function testSetPrixVente() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente());\n }", "public function setCompany(\\App\\Domain\\Model\\Company $object) : void\n {\n $this->setRef('from__company_id__to__table__companies__columns__id', $object, 'products');\n }", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function testSetHeuresRcAcquises() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHeuresRcAcquises(10.092018);\n $this->assertEquals(10.092018, $obj->getHeuresRcAcquises());\n }", "public function setTblEra(ChildTblEra $v = null)\n {\n if ($v === null) {\n $this->setProdEra(NULL);\n } else {\n $this->setProdEra($v->getEraId());\n }\n\n $this->aTblEra = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the ChildTblEra object, it will not be re-added.\n if ($v !== null) {\n $v->addTblProdInfo($this);\n }\n\n\n return $this;\n }", "public function testSetEtblFax() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblFax(\"etblFax\");\n $this->assertEquals(\"etblFax\", $obj->getEtblFax());\n }", "public function setProyecto( $proyecto ){\n\t\t\t$this->proyecto= $proyecto;\n\t\t}", "public function testSetCodeCollaborateurEntrant() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurEntrant(\"codeCollaborateurEntrant\");\n $this->assertEquals(\"codeCollaborateurEntrant\", $obj->getCodeCollaborateurEntrant());\n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Employes();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testSetCumCpPris() {\n\n $obj = new Employes();\n\n $obj->setCumCpPris(10.092018);\n $this->assertEquals(10.092018, $obj->getCumCpPris());\n }", "public function testSetEtblSiret() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblSiret(\"etblSiret\");\n $this->assertEquals(\"etblSiret\", $obj->getEtblSiret());\n }", "public function updateCompraBeta($ref){\n if($ref!=\"\"){\n $compra= $this->BD->ConsultaLibre(\"id_producto, piezas, talla\", \"ventas\", \"ventas.referencia=?\",array($ref));\n $numCarrito=count($compra);\n \t\t\t\t\tfor ($i=0; $i<=$numCarrito; $i++) {\n\t\t\t\t\t\t\t $idProducto=$compra[$i][\"id_producto\"];\n \t\t\t\t $numPiezas=$compra[$i][\"piezas\"];\n\t\t\t\t\t\t\t $tallaSeleccionada=$compra[$i][\"talla\"];\n $talla=$this->quitarStock($idProducto,$tallaSeleccionada,$numPiezas);\n $this->actualizarStockProd($idProducto,$talla);\t\n\t\t\t\t\t\t }\n }\n \n }", "public function testSetParcCodeRemorque() {\n\n $obj = new Collaborateurs();\n\n $obj->setParcCodeRemorque(\"parcCodeRemorque\");\n $this->assertEquals(\"parcCodeRemorque\", $obj->getParcCodeRemorque());\n }", "public function _setCodigoCliente($entregableid, $codigo_cliente)\n {\n $id = (int)$entregableid;\n $row = $this->fetchRow('cod_le = ' . $id);\n if (!$row) {\n throw new Exception(\"No hay resultados para ese transmittal\");\n }\n $row->codigo_cliente = $codigo_cliente;\n $row->save();\n if ($row->codigo_anddes != null && $row->codigo_anddes != '' &&\n $row->codigo_cliente != null && $row->codigo_cliente != '' &&\n $row->estado_entregable != 7) {\n $row->estado_entregable = 7;\n }\n $row->save();\n }", "public function _setFirma($Firma)\n {\n $this->Firma = $Firma;\n\n }", "private function setExercicio(){\n\t\t$this->Enunciado = $this->Data['enunciado'];\n\t\t$this->A = $this->Data['opA'];\n\t\t$this->B = $this->Data['opB'];\n\t\t$this->C = $this->Data['opC'];\n\t\t$this->D = $this->Data['opD'];\n\t\t$this->E = $this->Data['opE'];\n\t\t$this->Correta = $this->Data['correta'];\n\n\t\t$this->Query = ['c_enumexer' => $this->Enunciado,\n\t\t\t\t\t\t'c_altaexer' => $this->A,\n\t\t\t\t\t\t'c_altbexer' => $this->B,\n\t\t\t\t\t\t'c_altcexer' => $this->C,\n\t\t\t\t\t\t'c_altdexer' => $this->D,\n\t\t\t\t\t\t'c_alteexer' => $this->E,\n\t\t\t\t\t\t'c_correxer' => $this->Correta];\n\n\t}", "function editar_pr_factura_inventario(){\n\n\t\t $u = new entrada();\n $u->usuario_id = $GLOBALS['usuarioid'];\n $u->empresas_id = $GLOBALS['empresaid'];\n\t$precio=$_POST['costo_unitario'];\n\t$producto_id=$_POST['cproductos_id'];\n $u->fecha = date(\"Y-m-d H:i:s\");\n $related = $u->from_array($_POST);\n\t $f = new Pr_factura();\n $f->get_by_id($u->pr_facturas_id);\n $u->espacios_fisicos_id = $f->espacios_fisicos_id;\n $u->lote_id = $f->lote_id;\n $u->costo_total = ($u->cantidad * $u->costo_unitario);\n\t$u->existencia = $u->cantidad;\n $u->cproveedores_id = $f->cproveedores_id;\n $u->fecha = date(\"Y-m-d H:i:s\");\n if ($u->id == 0)\n unset($u->id);\n if ($u->save($related)) {\n$this->db->query(\"update cproductos set precio_compra='$precio' where id=$producto_id\");\n echo $u->id;\n } else\n echo 0; \n \n\t}", "public function setEstudiante( $estudiante ){\n\t\t\t$this->estudiante = $estudiante;\n\t\t}", "public function testSetCumBaseTrA() {\n\n $obj = new Employes();\n\n $obj->setCumBaseTrA(10.092018);\n $this->assertEquals(10.092018, $obj->getCumBaseTrA());\n }", "public function testSetCodeCentreUrssaf() {\n\n $obj = new Employes();\n\n $obj->setCodeCentreUrssaf(\"codeCentreUrssaf\");\n $this->assertEquals(\"codeCentreUrssaf\", $obj->getCodeCentreUrssaf());\n }", "function alta_entrada(){\n $e = new Entrada();\n\t\t$precio=$_POST['costo_unitario'];\n\t\t$producto_id=$_POST['cproductos_id'];\n $e->usuario_id = $GLOBALS['usuarioid'];\n $e->empresas_id = $GLOBALS['empresaid'];\n $related = $e->from_array($_POST);\n //if($e->costo_unitario=='undefined') $e->costo_unitario=0;\n $f = new Pr_factura();\n $f->get_by_id($e->pr_facturas_id);\n $e->espacios_fisicos_id = $f->espacios_fisicos_id;\n $e->lote_id = $f->lote_id;\n $e->costo_total = ($e->cantidad * $e->costo_unitario);\n\t\t$e->existencia = $e->cantidad;\n $e->cproveedores_id = $f->cproveedores_id;\n $e->fecha = date(\"Y-m-d H:i:s\");\n if ($e->id == 0)\n unset($e->id);\n if ($e->save($related)) {\n echo $e->id;\n\t\t\t$this->db->query(\"update cproductos set precio_compra='$precio' where id=$producto_id\");\n } else\n echo 0;\n }", "public function setEcart($ecart)\n {\n $this->ecart = $ecart;\n\n return $this;\n }", "protected function setOfferValue ()\n {\n $this->request->coupon_benefits[ $this->offerNature ] = $this->offer->rate;\n }", "public function setEditais($editais)\n {\n if (!is_null($editais))\n $this->editais = $editais;\n }", "public function testSetPersonneAPrevenir() {\n\n $obj = new Employes();\n\n $obj->setPersonneAPrevenir(\"personneAPrevenir\");\n $this->assertEquals(\"personneAPrevenir\", $obj->getPersonneAPrevenir());\n }", "public function setMailRecep($mailRecep){\r\n\t\t$this->mailRecep = $mailRecep;\r\n\t}", "function setBaseCalculo($nValorBaseCalculo) {\n $this->nValorBaseCalculo = $nValorBaseCalculo;\n }", "public function setCoUsuarioElabora($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->co_usuario_elabora !== $v) {\n\t\t\t$this->co_usuario_elabora = $v;\n\t\t\t$this->modifiedColumns[] = J019tParticipantesPeer::CO_USUARIO_ELABORA;\n\t\t}\n\n\t\tif ($this->aJ002tUsuario !== null && $this->aJ002tUsuario->getCoUsuario() !== $v) {\n\t\t\t$this->aJ002tUsuario = null;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function testSetCumProvCp() {\n\n $obj = new Employes();\n\n $obj->setCumProvCp(10.092018);\n $this->assertEquals(10.092018, $obj->getCumProvCp());\n }", "public function setCodeCollaborateur(?string $codeCollaborateur): PointEmpHeuresAbsComplRempl {\n $this->codeCollaborateur = $codeCollaborateur;\n return $this;\n }", "public function set_clientes(objeto_cliente $cliente){\n\t$consulta_insertar = new Conectar();\n\t$consulta_insertar = $consulta_insertar->conexion();\n\t$query=\"insert into clientes (cliente_id, nombre, celular, pais, correo) values (:cl_id, :nom, :cel, :pais, :corr)\";\n\n\t$resultado=$consulta_insertar->prepare($query);\n\n\t$resultado->execute(array(\":cl_id\"=>$cliente->get_cliente_id(),\":nom\"=>$cliente->get_nombre(),\":cel\"=>$cliente->get_celular(),\":pais\"=>$cliente->get_pais(),\":corr\"=>$cliente->get_correo()));\n\n\n\t}", "public function testSetOrphelin() {\n\n $obj = new Employes();\n\n $obj->setOrphelin(true);\n $this->assertEquals(true, $obj->getOrphelin());\n }", "public function setShippingCompany($companyName = '') {\n $company = array(\n 'x_ship_to_company'=>$this->truncateChars($companyName, 50),\n );\n $this->NVP = array_merge($this->NVP, $company); \n }", "function setEol($eol)\n\t{\n\t\t$this->eol = $eol;\n\t}", "public function hacerSuperiorDe( $empresa ){\n if( $empresa instanceof empresa ){ $empresa = $empresa->getUID(); }\n return $this->crearRelacion( $this->tabla.\"_relacion\", \"uid_empresa_inferior\", $empresa, \"uid_empresa_superior\", $this->uid );\n }" ]
[ "0.64666843", "0.5501693", "0.54218227", "0.52104664", "0.5189158", "0.5144248", "0.51064706", "0.5062305", "0.501407", "0.49867362", "0.49848732", "0.49677575", "0.4964167", "0.49510404", "0.49455997", "0.49128708", "0.48877782", "0.48828247", "0.4881663", "0.48702675", "0.4857826", "0.48418564", "0.4830778", "0.48262092", "0.48240176", "0.47689843", "0.47689843", "0.47689843", "0.4767785", "0.4763451", "0.47613105", "0.47522599", "0.47480872", "0.47294492", "0.47234318", "0.47198185", "0.47172153", "0.4704306", "0.4704306", "0.47022513", "0.46939957", "0.4687315", "0.46658948", "0.4663516", "0.46629718", "0.46534353", "0.4651241", "0.46360394", "0.4635419", "0.46329778", "0.46322954", "0.4619204", "0.4612662", "0.46113765", "0.46103007", "0.4602623", "0.4598423", "0.45962933", "0.45941943", "0.45933965", "0.45906895", "0.4584277", "0.45815077", "0.45815077", "0.4577554", "0.45639452", "0.45517388", "0.455153", "0.4548599", "0.45463586", "0.45453623", "0.45452648", "0.45359775", "0.453156", "0.45210052", "0.45145893", "0.4513933", "0.45069626", "0.45059896", "0.44864175", "0.44818118", "0.44784963", "0.4475085", "0.44746497", "0.44727102", "0.44697008", "0.44640616", "0.445748", "0.44572765", "0.44536784", "0.4445809", "0.44409105", "0.44317162", "0.4430281", "0.4424987", "0.44194272", "0.44169977", "0.44143152", "0.44118488", "0.44062057" ]
0.44638032
87
setProdCompany() Set the value of [prod_related] column.
public function setProdRelated($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_related !== $v) { $this->prod_related = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCompany(\\App\\Domain\\Model\\Company $object) : void\n {\n $this->setRef('from__company_id__to__table__companies__columns__id', $object, 'products');\n }", "public function setProdCompany($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_company !== $v) {\n $this->prod_company = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_COMPANY] = true;\n }\n\n return $this;\n }", "public function setCompany($company_nid);", "public function setProdRelated2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related2 !== $v) {\n $this->prod_related2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED2] = true;\n }\n\n return $this;\n }", "public function setCompany(string $company): void\n {\n $this->_company = $company;\n }", "public function getProdCompany()\n {\n return $this->prod_company;\n }", "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public function setCompany($company)\n {\n $this->company = $company;\n }", "public function set_relatedDocNo($relatedDocNo) {\n $this->relatedDocNo = (string) $relatedDocNo;\n }", "public function setCustomerCompany($companyName = '') {\n $company = array(\n 'x_company'=>$this->truncateChars($companyName, 50),\n );\n $this->NVP = array_merge($this->NVP, $company); \n }", "public function setYomiCompany($value)\n {\n $this->setProperty(\"YomiCompany\", $value, true);\n }", "public function setShippingCompany($companyName = '') {\n $company = array(\n 'x_ship_to_company'=>$this->truncateChars($companyName, 50),\n );\n $this->NVP = array_merge($this->NVP, $company); \n }", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public function setCompany($quote, $company)\n {\n $quote->getBillingAddress()->setCompany($company)->save();\n $quote->getShippingAddress()->setCompany($company)->save();\n $customerAddressId = $quote->getBillingAddress()->getCustomerAddressId();\n if ($customerAddressId) {\n $customerAddress = Mage::getModel('customer/address')->load($customerAddressId);\n $customerAddress->setCompany($company)->save();\n }\n }", "public function setCompany($quote, $company)\n {\n $quote->getBillingAddress()->setCompany($company)->save();\n $quote->getShippingAddress()->setCompany($company)->save();\n $customerAddressId = $quote->getBillingAddress()->getCustomerAddressId();\n if ($customerAddressId) {\n $customerAddress = Mage::getModel('customer/address')->load($customerAddressId);\n $customerAddress->setCompany($company)->save();\n }\n }", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function setRelatedBundlesForSimpleProducts($bundleProduct)\n {\n $selectionCollection = $bundleProduct->getTypeInstance(true)->getSelectionsCollection(\n $bundleProduct->getTypeInstance(true)->getOptionsIds($bundleProduct), $bundleProduct\n );\n foreach($selectionCollection as $option) {\n try {\n $_product = Mage::getModel('catalog/product')->load($option->getEntityId());\n if($_product->getId()) {\n $customLinkData = array();\n foreach($_product->getRelatedBundleCollection() as $customLink) {\n $customLinkData[$customLink->getLinkedProductId()]['position'] = $customLink->getPosition();\n }\n $customLinkData[$bundleProduct->getId()] = array('position' => 0);\n $_product->setRelatedBundleData($customLinkData)->save();\n Mage::getSingleton('adminhtml/session')->addSuccess('Added ' . $bundleProduct->getSku() . ' as a Related Bundle to product ' . $_product->getSku());\n }\n } catch(Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError('Could not set bundled product as Related Bundle for product ' . $option->getSku() . '; ' . $e->getMessage());\n }\n }\n\n }", "public function salesQuoteItemSetProduct($observer)\n\t{\n\t\t$quoteItem = $observer->getQuoteItem();\n\t\t$product = $observer->getProduct();\n\n\t\tif ($product->isConfigurable() && $quoteItem->getHasChildren())\n\t\t{\n\t\t\tforeach ($quoteItem->getChildren() as $child)\n\t\t\t{\n\t\t\t\tforeach ($child->getProduct()->getProductOptionsCollection() as $option)\n\t\t\t\t{\n\t\t\t\t\t$option->setProduct($product);\n\t\t\t\t\t$product->addOption($option);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function setTblProdPricing(ChildTblProdPricing $v = null)\n {\n if ($v === null) {\n $this->setProdPriceId(NULL);\n } else {\n $this->setProdPriceId($v->getProdPriceId());\n }\n\n $this->aTblProdPricing = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the ChildTblProdPricing object, it will not be re-added.\n if ($v !== null) {\n $v->addTblProdInfo($this);\n }\n\n\n return $this;\n }", "public function setProduct(Product $product);", "public function setPromotion($first,$second)\n {\n $this->promotion->setPromotion($first,$second);\n //product Id for identify products\n $this->promotion->setProductId($this->id);\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function setEntityRelatedPk($pk) {\n\t\t$this->_entityRelatedPk = $pk;\n\t}", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function setRelated ($related)\n {\n $this->_related = (string) $related;\n return $this;\n }", "public function setPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we){\n\t\t\n\t\tif ($this->isPricing($id_ressource, $id_pricing)){\n\t\t\t$this->editPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we);\n\t\t}\n\t\telse{\n\t\t\t$this->addPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we);\n\t\t}\n\t}", "public function setCompanyShort($company)\n\t\t{\n\t\t\t$this->company = $company;\n\t\t}", "protected function setRelatedEntity(array $url): void\n {\n $this->url = new URL($url);\n }", "static function updateCompanyPolicy($companyno, $newpolicyno) {\n\t\t$sql = \"\";\n\t\t$sql=\"UPDATE Client SET Policy_No='$newpolicyno'\";\n\t\t$sql = $sql.\" WHERE Company='$companyno'\";\n\t\tmysql_query($sql) or die(mysql_error());\n\t\treturn true;//return true\n\t}", "public function setProyecto( $proyecto ){\n\t\t\t$this->proyecto= $proyecto;\n\t\t}", "public function setProducto($pro){ $this->producto = $pro;}", "public function setCompanyId($company_id)\n\t\t{\n\t\t\t$this->company_id = $company_id;\n\t\t}", "public function setProductPrice($product_price){\n $this->product_price = $product_price;\n }", "public function setProdRelatedPa($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related_pa !== $v) {\n $this->prod_related_pa = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED_PA] = true;\n }\n\n return $this;\n }", "function setSyncItemsCodeProduct()\n {\n }", "function editRelated()\n\t{\n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t$sql = \"SELECT \t* FROM products_table \";\n\t\t\t$query = new Bin_Query();\n\t\t\t$query->executeQuery($sql);\n\t\t\t\n\t\t\t$sql='select cross_product_ids from cross_products_table where product_id='.$id;\n\t\t\t$obj=new Bin_Query();\n\t\t\t$obj->executeQuery($sql);\n\t\t\t$p_id=$obj->records[0];\n\t\t\t$value=explode(\",\",$p_id['cross_product_ids']);\n\t\t\treturn Display_DManageProducts::editRelated($query->records,$value);\n\t\t}\t\n\t\t\t//return '<div class=\"exc_msgbox\">No Products Found! Please Click Product Entry Link to Add Products!</div>';\n\n\n\t\n\t}", "public function productionCompany($value)\n {\n $this->setProperty('productionCompany', $value);\n return $this;\n }", "public function setCompanyNameAttribute($value) {\n\t\t$this->company_name = $value;\n\t}", "public function setProdId($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_id !== $v) {\n $this->prod_id = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ID] = true;\n }\n\n if ($this->aTblProdPhotos !== null && $this->aTblProdPhotos->getProdId() !== $v) {\n $this->aTblProdPhotos = null;\n }\n\n if ($this->aTblProdPrices !== null && $this->aTblProdPrices->getProdId() !== $v) {\n $this->aTblProdPrices = null;\n }\n\n if ($this->aTblProdSmaller !== null && $this->aTblProdSmaller->getProdId() !== $v) {\n $this->aTblProdSmaller = null;\n }\n\n return $this;\n }", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "protected function _setCompanyCode($storeId=null) {\n\t\t$config = Mage::getSingleton('avatax/config');\n\t\t$this->_request->setCompanyCode($config->getCompanyCode($storeId));\n\t}", "public function setProduct(LineItemProduct $product)\n\t{\n\t\t$this->addKeyValue('product', $product); \n\n\t}", "public function setTblProdPrices(ChildTblProdPrices $v = null)\n {\n if ($v === null) {\n $this->setProdId(NULL);\n } else {\n $this->setProdId($v->getProdId());\n }\n\n $this->aTblProdPrices = $v;\n\n // Add binding for other direction of this 1:1 relationship.\n if ($v !== null) {\n $v->setTblProdInfo($this);\n }\n\n\n return $this;\n }", "public function setPricecomparisonProductView(Varien_Event_Observer $observer)\n\t{\n\t\t$helper = Mage::helper('pricecomparison');\n\t\t$product = $observer->getEvent()->getProduct();\n\t\t$productId = $product->getId();\n\t\t$cookieKey = $helper->getCookieKey();\n\t\t\n\t\t$pcsCookie = Mage::getModel('core/cookie')->get($cookieKey);\n\t\t$pcsId = Mage::app()->getRequest()->getParam('pcs', false);\n\t\t\n\t\tif ($pcsId) {\n\t\t\t$helper->captureReferral($pcsId, $productId, $cookieKey);\n\t\t\t\n\t\t\tif ($pcsPrice = $product->getData($pcsId)) {\n\t\t\t\t$product->setFinalPrice($pcsPrice);\n\t\t\t}\n\t\t}\n\t\telse if ($pcsCookie) {\n\t\t\t$cookieData = explode('|', $pcsCookie);\n\t\t\t$pcsId = $cookieData[0];\n\t\t\t$pcsProductId = $cookieData[1];\n\t\t\t\n\t\t\tif ($pcsProductId !== $productId) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif ($pcsPrice = $product->getData($pcsId)) {\n\t\t\t\t$product->setFinalPrice($pcsPrice);\n\t\t\t}\n\t\t}\n\t}", "public static function setSetting($key, $setting, $company_id): void\n {\n $old = self::whereOption($key)->findByCompany($company_id)->first();\n\n if ($old) {\n $old->value = $setting;\n $old->save();\n return;\n }\n\n $set = new CompanySetting();\n $set->option = $key;\n $set->value = $setting;\n $set->company_id = $company_id;\n $set->save();\n }", "function setSyncProdDesc()\n {\n }", "function set($idModelo, $idPedido=NULL, $idProduccion=NULL, $belongsTo=NULL, $idVenta=NULL){\r\n\t\t\r\n\t\ttry{\r\n\t\t\t$prod = array('modelos_id'=>$idModelo);\r\n\t\t\tif($idPedido != NULL)$prod['pedidos_id']= $idPedido;\r\n\t\t\tif($idProduccion != NULL)$prod['producciones_id']= $idProduccion;\r\n\t\t\tif($idVenta != NULL)$prod['ventas_id']= $idVenta;\r\n\t\t\tif($belongsTo != NULL)$prod['belongsTo']= $belongsTo;\r\n\t\t\t\r\n\t\t\tif(!$this->create($prod))\r\n\t\t\t\tthrow new BadRequestException('Hubo un error al agregar el producto a la cola de impresión.');\r\n\r\n\t\t\t//Agrego los modelos\r\n\t\t\t$idImp = $this->con->lastInsertID('colaimpresion', 'id');\r\n\t\t\t$prod['id']=$idImp;\r\n\t\t\t\t\t\t\t\r\n\t\t\treturn array('success'=>true, 'ColaImpresion'=>$prod);\r\n\t\t\t\r\n\t\t} catch (Exception $e) {\r\n\t\t\t\r\n\t\t\treturn array('success'=>false, 'msg'=>$e->getMsg());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public function setPrintedStatus($relatedDocNo) {\n \n $gsaTransactionAccessorObj = tx_ptgsaaccounting__gsaTransactionAccessor::getInstance();\n \n // get complete transaction document data and related customer object\n $relatedDocFieldsArr = $gsaTransactionAccessorObj->selectTransactionDocumentData($relatedDocNo);\n $customerObj = new tx_ptgsauserreg_customer($relatedDocFieldsArr['ADRINR']);\n \n // update existing continued document record: FSCHRIFT.GEDRUCKT\n $relatedDocUpdateFieldsArr['GEDRUCKT'] = 1;\n $gsaTransactionAccessorObj->updateTransactionDocument($relatedDocNo, $relatedDocUpdateFieldsArr);\n \n // update the related customer's contact data (ADRESSE.LKONTAKT)\n $customerObj->registerLastContact();\n \n }", "function setSyncProdName()\n {\n }", "public function update_data_company($data, $id)\n {\n $this->db->update('social_media_empresa', $data, array('socialEmpresaId'=>$id));\n }", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function testSetPriceProduct()\n {\n $product = new Product();\n $value = 10.99;\n $product->setPrice($value);\n $this->assertEquals($value, $product->getPrice());\n }", "private function saveFieldPostfixAdminCompany( array $submittedData, tx_scheduler_Task $task )\n {\n $task->postfix_postfixAdminCompany = $submittedData['postfix_postfixAdminCompany'];\n }", "public function setCodProy($codProy) {\n $this->codProy = $codProy;\n }", "function setProductCode($productCode)\n {\n $this->productCode = $productCode;\n }", "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "public function hook2promotion_set($promotion_id, $tag_id, $tag_cat, $data_arr=array(), $id='') {\n\t\tif(empty($promotion_id) || empty($tag_id) || empty($tag_cat))\n\t\t\treturn false;\n\t\tD2(\"PromotionIndex\")->hook2promotion_set($promotion_id, $tag_id, $tag_cat, $data_arr, $id);\n\t}", "protected function _preSaveRelatedRecords(AdapterInterface $connection, $related) {}", "private function _setCompanyConfig(){\n\t\t/* Loading the company configuration file */\n\t\t$this->config->load('company'.DIRECTORY_SEPARATOR.$this->getCompanyCode().DIRECTORY_SEPARATOR.'config');\n\t}", "public function setProduto($produto)\r\n {\r\n $this->produto = $produto;\r\n }", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "public function setProduct(Product $product)\n {\n $this->product_id = $product->id;\n $this->_calculateTotal();\n }", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "public function updateProductSeller($partner_id, $product) {\n\t\t$product_ids = array ();\n\t\t\n\t\tif ($product and is_array ( $product )) {\n\t\t\tforeach ( $product as $individual_product ) {\n\t\t\t\t$product_ids [] = $individual_product ['selected'];\n\t\t\t}\n\t\t} else\n\t\t\t$product_ids [] = $product;\n\t\t\n\t\tforeach ( $product_ids as $product_id ) {\n\t\t\t\n\t\t\t$status = $this->chkProduct ( $product_id, $partner_id );\n\t\t\t\n\t\t\tif ($status == 1) {\n\t\t\t\t$this->db->query ( \"INSERT INTO \" . DB_PREFIX . \"customerpartner_to_product SET product_id = '\" . ( int ) $product_id . \"', customer_id = '\" . ( int ) $partner_id . \"'\" );\n\t\t\t} else {\n\t\t\t\t$this->db->query ( \"UPDATE \" . DB_PREFIX . \"customerpartner_to_product SET customer_id = '\" . ( int ) $partner_id . \"' WHERE product_id = '\" . ( int ) $product_id . \"' ORDER BY id ASC LIMIT 1 \" );\n\t\t\t}\n\t\t}\n\t}", "public function update($conn, ApplicantsCompany $obj)\n {\n }", "public function setCodProy($codProy) {\n $this->codProy = $codProy;\n }", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function setProducts_options_id( $products_options_id ) {\n\t\t$this->products_options_id = $products_options_id;\n\t}", "public static function set_costo_promedio($id_bodega,$id_producto,$costo_prom)\n {\n $item = InvProducto::find( $id_producto );\n $item->set_costo_promedio( $id_bodega, $costo_prom );\n }", "public function setIdProducto($idProducto)\n {\n $this->idProducto = $idProducto;\n\n return $this;\n }", "public function callCatalogProductLinkAssign(string $type, $productIdOrSku, $linkedProductIdOrSku, array $data)\n\t{\n\t\treturn $this->soapClient->catalogProductLinkAssign($this->soapSessionId, $type, $productIdOrSku, $linkedProductIdOrSku, $data);\n\t}", "function updatePricingCompanyId($params) {\n $sql = __query_update_pricing_company_id($params);\n execute_sql($sql);\n}", "public function setRelatedLink($value)\n {\n $this->relatedLink = $value;\n }", "public function setPromotion(Promotion $promotion)\n {\n $result = DB::select('SELECT fn_invoice_item_promo_eligible(?,?) AS eligible', [$this->id,\n $promotion->id]);\n\n if (!empty($result) && $result[0]->eligible != null) {\n $this->promotion_id = null;\n } else {\n $this->promotion_id = $promotion->id;\n $this->load('promotion');\n }\n $this->save();\n $this->_calculateTotal();\n }", "public function setProducts_options( $products_options ) {\n\t\t$this->products_options = $products_options;\n\t}", "public function setCompanyCity(string $company_city) {\n\n $this->company_city = $company_city;\n\n }", "public function afterSave() {\n if(!$this->ccucUserCompanies){\n $ccuc = new CcucUserCompany;\n $ccuc->ccuc_person_id = $this->pprs_id;\n $ccuc->ccuc_ccmp_id = Yii::app()->sysCompany->getActiveCompany();\n $ccuc->ccuc_status = CcucUserCompany::CCUC_STATUS_SYS;\n $ccuc->save();\n\n //person company\n if(!empty($this->pprs_ccmp_id)){\n $ccuc = new CcucUserCompany;\n $ccuc->ccuc_person_id = $this->pprs_id;\n $ccuc->ccuc_ccmp_id = $this->pprs_ccmp_id;\n $ccuc->ccuc_status = CcucUserCompany::CCUC_STATUS_PERSON;\n $ccuc->save();\n }\n }\n parent::afterSave();\n }", "function related_products_metaboxes() {\n add_meta_box(\n 'related_products',\n 'Choose Related Products',\n 'related_products_list_html',\n 'rfib_products',\n 'normal',\n 'default'\n );\n}", "public function setCorpID($corpID)\n {\n $this->corpID = $corpID;\n }", "public function setProductApproval($productApproval, $product, $productData, $productId) {\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n $product = $objectManager->create ( 'Magento\\Catalog\\Model\\Product' )->load ( $productId );\n if ($productApproval == 1) {\n $product->setStatus ( 1 );\n $product->setProductApproval(1);\n \n } else {\n $product->setProductApproval ( 0 );\n $product->setStatus(2);\n }\n \n $product->save();\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function getCompany() : \\App\\Domain\\Model\\Company\n {\n return $this->getRef('from__company_id__to__table__companies__columns__id', 'products');\n }", "public function setProductid( $productid ) {\n\t\t$this->productid = $productid;\n\t}", "public function setPartnerssRelatedByAgentId(Collection $partnerssRelatedByAgentId, ConnectionInterface $con = null)\n {\n /** @var ChildPartners[] $partnerssRelatedByAgentIdToDelete */\n $partnerssRelatedByAgentIdToDelete = $this->getPartnerssRelatedByAgentId(new Criteria(), $con)->diff($partnerssRelatedByAgentId);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->partnerssRelatedByAgentIdScheduledForDeletion = clone $partnerssRelatedByAgentIdToDelete;\n\n foreach ($partnerssRelatedByAgentIdToDelete as $partnersRelatedByAgentIdRemoved) {\n $partnersRelatedByAgentIdRemoved->setAgent(null);\n }\n\n $this->collPartnerssRelatedByAgentId = null;\n foreach ($partnerssRelatedByAgentId as $partnersRelatedByAgentId) {\n $this->addPartnersRelatedByAgentId($partnersRelatedByAgentId);\n }\n\n $this->collPartnerssRelatedByAgentId = $partnerssRelatedByAgentId;\n $this->collPartnerssRelatedByAgentIdPartial = false;\n\n return $this;\n }", "public function setProductCode($_productCode)\n\t{\n\t\t$this->productCode = $_productCode;\n\t}", "public function setProductCode($_productCode)\n\t{\n\t\t$this->productCode = $_productCode;\n\t}", "public function getOperatingCompany()\n {\n return $this->operatingCompany;\n }", "public static function update_commerce_enabled_for_product( \\WC_Product $product, $is_enabled ) {\n\n\t\t$product->update_meta_data( self::COMMERCE_ENABLED_META_KEY, wc_bool_to_string( $is_enabled ) );\n\t\t$product->save_meta_data();\n\t}", "public function setCompanyName($companyName)\r\n {\r\n $this->companyName = strip_tags($companyName);\r\n }", "public function saveProductRelations($product)\n {\n parent::saveProductRelations($product);\n\n $data = $product->getCustomOneLinkData();\n if (!is_null($data)) {\n $this->_getResource()->saveProductLinks($product, $data, self::LINK_TYPE_CUSTOMONE);\n }\n\n $data = $product->getCustomTwoLinkData();\n if (!is_null($data)) {\n $this->_getResource()->saveProductLinks($product, $data, self::LINK_TYPE_CUSTOMTWO);\n }\n }" ]
[ "0.5744732", "0.5615619", "0.5607032", "0.5473374", "0.5396891", "0.5380241", "0.52787215", "0.52650183", "0.52082616", "0.5201005", "0.51487803", "0.51316184", "0.51280874", "0.50925136", "0.50925136", "0.50497395", "0.5036039", "0.5009995", "0.49305117", "0.49057612", "0.4869979", "0.4849696", "0.48268914", "0.47977543", "0.47968146", "0.47906786", "0.478672", "0.47859788", "0.47834614", "0.477092", "0.47289714", "0.46941343", "0.46921983", "0.46642554", "0.46534562", "0.46432048", "0.46101964", "0.4603448", "0.45833367", "0.45777625", "0.45724005", "0.45702904", "0.45692974", "0.4563084", "0.45545405", "0.45477363", "0.45446393", "0.4538199", "0.45374033", "0.4528838", "0.45027682", "0.45021734", "0.4494865", "0.4493506", "0.4477807", "0.44730672", "0.44725344", "0.4467452", "0.4464643", "0.44584352", "0.44568416", "0.44522935", "0.44490108", "0.44365296", "0.44361672", "0.4422067", "0.44002277", "0.4397114", "0.4396553", "0.43955472", "0.43920046", "0.4386234", "0.43849617", "0.4376597", "0.43630004", "0.4353749", "0.43524718", "0.43434224", "0.43422613", "0.43386322", "0.43328905", "0.43328905", "0.43328905", "0.43328905", "0.43328905", "0.43328905", "0.43328905", "0.43328905", "0.43328905", "0.43328905", "0.43328905", "0.43319416", "0.4331205", "0.43309438", "0.4329269", "0.4329269", "0.43200865", "0.43160674", "0.43106163", "0.4308128" ]
0.655294
0
setProdRelated() Set the value of [prod_related_pa] column.
public function setProdRelatedPa($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_related_pa !== $v) { $this->prod_related_pa = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED_PA] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdRelated($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related !== $v) {\n $this->prod_related = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED] = true;\n }\n\n return $this;\n }", "public function getProdRelatedPa()\n {\n return $this->prod_related_pa;\n }", "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function setProduct(Product $product);", "public function setProdRelated2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related2 !== $v) {\n $this->prod_related2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED2] = true;\n }\n\n return $this;\n }", "public function setProducto($pro){ $this->producto = $pro;}", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function setPromotion($first,$second)\n {\n $this->promotion->setPromotion($first,$second);\n //product Id for identify products\n $this->promotion->setProductId($this->id);\n }", "public function setEntityRelatedPk($pk) {\n\t\t$this->_entityRelatedPk = $pk;\n\t}", "public function setRelatedBundlesForSimpleProducts($bundleProduct)\n {\n $selectionCollection = $bundleProduct->getTypeInstance(true)->getSelectionsCollection(\n $bundleProduct->getTypeInstance(true)->getOptionsIds($bundleProduct), $bundleProduct\n );\n foreach($selectionCollection as $option) {\n try {\n $_product = Mage::getModel('catalog/product')->load($option->getEntityId());\n if($_product->getId()) {\n $customLinkData = array();\n foreach($_product->getRelatedBundleCollection() as $customLink) {\n $customLinkData[$customLink->getLinkedProductId()]['position'] = $customLink->getPosition();\n }\n $customLinkData[$bundleProduct->getId()] = array('position' => 0);\n $_product->setRelatedBundleData($customLinkData)->save();\n Mage::getSingleton('adminhtml/session')->addSuccess('Added ' . $bundleProduct->getSku() . ' as a Related Bundle to product ' . $_product->getSku());\n }\n } catch(Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError('Could not set bundled product as Related Bundle for product ' . $option->getSku() . '; ' . $e->getMessage());\n }\n }\n\n }", "public function setRelated ($related)\n {\n $this->_related = (string) $related;\n return $this;\n }", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "public function setRelatedLink($value)\n {\n $this->relatedLink = $value;\n }", "public function setPaid()\n {\n $this->update([\n 'status' => self::STATUS_PAID,\n 'paid_date' => Carbon::now(),\n ]);\n }", "public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\n }", "function custom_numberpro_related_products_args( $args ) {\n\tglobal $sh_option;\n\t$args['posts_per_page'] = $sh_option['number-product-related']; // number related products\n\t// $args['columns'] \t= 2; // arranged in number columns\n\treturn $args;\n}", "public function setTblProdPricing(ChildTblProdPricing $v = null)\n {\n if ($v === null) {\n $this->setProdPriceId(NULL);\n } else {\n $this->setProdPriceId($v->getProdPriceId());\n }\n\n $this->aTblProdPricing = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the ChildTblProdPricing object, it will not be re-added.\n if ($v !== null) {\n $v->addTblProdInfo($this);\n }\n\n\n return $this;\n }", "function editRelated()\n\t{\n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t$sql = \"SELECT \t* FROM products_table \";\n\t\t\t$query = new Bin_Query();\n\t\t\t$query->executeQuery($sql);\n\t\t\t\n\t\t\t$sql='select cross_product_ids from cross_products_table where product_id='.$id;\n\t\t\t$obj=new Bin_Query();\n\t\t\t$obj->executeQuery($sql);\n\t\t\t$p_id=$obj->records[0];\n\t\t\t$value=explode(\",\",$p_id['cross_product_ids']);\n\t\t\treturn Display_DManageProducts::editRelated($query->records,$value);\n\t\t}\t\n\t\t\t//return '<div class=\"exc_msgbox\">No Products Found! Please Click Product Entry Link to Add Products!</div>';\n\n\n\t\n\t}", "public function setProductApproval($productApproval, $product, $productData, $productId) {\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n $product = $objectManager->create ( 'Magento\\Catalog\\Model\\Product' )->load ( $productId );\n if ($productApproval == 1) {\n $product->setStatus ( 1 );\n $product->setProductApproval(1);\n \n } else {\n $product->setProductApproval ( 0 );\n $product->setStatus(2);\n }\n \n $product->save();\n }", "public function setProduct(LineItemProduct $product)\n\t{\n\t\t$this->addKeyValue('product', $product); \n\n\t}", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "public function setProduct(Product $product)\n {\n $this->product_id = $product->id;\n $this->_calculateTotal();\n }", "function jk_related_products_args( $args ) {\n$args['posts_per_page'] = 8; // 4 related products\nreturn $args;\n}", "public function testSetPriceProduct()\n {\n $product = new Product();\n $value = 10.99;\n $product->setPrice($value);\n $this->assertEquals($value, $product->getPrice());\n }", "public function set_relatedDocNo($relatedDocNo) {\n $this->relatedDocNo = (string) $relatedDocNo;\n }", "public function setProductPrice($product_price){\n $this->product_price = $product_price;\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function setPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we){\n\t\t\n\t\tif ($this->isPricing($id_ressource, $id_pricing)){\n\t\t\t$this->editPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we);\n\t\t}\n\t\telse{\n\t\t\t$this->addPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we);\n\t\t}\n\t}", "function set_product_sequence($voucher_id, $prod_id, $seq)\n\t{\n\t\t$this->db->where(array('voucher_id'=>$voucher_id, 'product_id'=>$prod_id));\n\t\t$this->db->update('vouchers_products', array('sequence'=>$seq));\n\t}", "public function callCatalogProductLinkAssign(string $type, $productIdOrSku, $linkedProductIdOrSku, array $data)\n\t{\n\t\treturn $this->soapClient->catalogProductLinkAssign($this->soapSessionId, $type, $productIdOrSku, $linkedProductIdOrSku, $data);\n\t}", "public function setProdId($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_id !== $v) {\n $this->prod_id = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ID] = true;\n }\n\n if ($this->aTblProdPhotos !== null && $this->aTblProdPhotos->getProdId() !== $v) {\n $this->aTblProdPhotos = null;\n }\n\n if ($this->aTblProdPrices !== null && $this->aTblProdPrices->getProdId() !== $v) {\n $this->aTblProdPrices = null;\n }\n\n if ($this->aTblProdSmaller !== null && $this->aTblProdSmaller->getProdId() !== $v) {\n $this->aTblProdSmaller = null;\n }\n\n return $this;\n }", "public function setPR($r) {}", "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "public function saveProductRelations($product)\n {\n parent::saveProductRelations($product);\n\n $data = $product->getCustomOneLinkData();\n if (!is_null($data)) {\n $this->_getResource()->saveProductLinks($product, $data, self::LINK_TYPE_CUSTOMONE);\n }\n\n $data = $product->getCustomTwoLinkData();\n if (!is_null($data)) {\n $this->_getResource()->saveProductLinks($product, $data, self::LINK_TYPE_CUSTOMTWO);\n }\n }", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "public function setProcedimento ($oProcedimento) {\n $this->oProcedimento = $oProcedimento;\n }", "function kvell_edge_woocommerce_related_products_args( $args ) {\n\t\t$related = kvell_edge_options()->getOptionValue( 'edgtf_woo_related_products_columns' );\n\t\t\n\t\tif ( ! empty( $related ) ) {\n\t\t\tswitch ( $related ) {\n\t\t\t\tcase 'edgtf-woocommerce-columns-4':\n\t\t\t\t\t$args['posts_per_page'] = 4;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'edgtf-woocommerce-columns-3':\n\t\t\t\t\t$args['posts_per_page'] = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$args['posts_per_page'] = 3;\n\t\t\t}\n\t\t} else {\n\t\t\t$args['posts_per_page'] = 4;\n\t\t}\n\t\t\n\t\treturn $args;\n\t}", "function changeProduct($cart_table_id,$true_or_false)\n {\n $this->pdelivery[$cart_table_id]=$true_or_false; //change product group delivery\n }", "protected function _preSaveRelatedRecords(AdapterInterface $connection, $related) {}", "public function setPros($pros)\r\n {\r\n $this->_pros = $pros;\r\n }", "public function setProyecto( $proyecto ){\n\t\t\t$this->proyecto= $proyecto;\n\t\t}", "function setProductCode($productCode)\n {\n $this->productCode = $productCode;\n }", "function setSyncItemsCodeProduct()\n {\n }", "public function setPromotion(Promotion $promotion)\n {\n $result = DB::select('SELECT fn_invoice_item_promo_eligible(?,?) AS eligible', [$this->id,\n $promotion->id]);\n\n if (!empty($result) && $result[0]->eligible != null) {\n $this->promotion_id = null;\n } else {\n $this->promotion_id = $promotion->id;\n $this->load('promotion');\n }\n $this->save();\n $this->_calculateTotal();\n }", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function setProduto($produto)\r\n {\r\n $this->produto = $produto;\r\n }", "function set($idModelo, $idPedido=NULL, $idProduccion=NULL, $belongsTo=NULL, $idVenta=NULL){\r\n\t\t\r\n\t\ttry{\r\n\t\t\t$prod = array('modelos_id'=>$idModelo);\r\n\t\t\tif($idPedido != NULL)$prod['pedidos_id']= $idPedido;\r\n\t\t\tif($idProduccion != NULL)$prod['producciones_id']= $idProduccion;\r\n\t\t\tif($idVenta != NULL)$prod['ventas_id']= $idVenta;\r\n\t\t\tif($belongsTo != NULL)$prod['belongsTo']= $belongsTo;\r\n\t\t\t\r\n\t\t\tif(!$this->create($prod))\r\n\t\t\t\tthrow new BadRequestException('Hubo un error al agregar el producto a la cola de impresión.');\r\n\r\n\t\t\t//Agrego los modelos\r\n\t\t\t$idImp = $this->con->lastInsertID('colaimpresion', 'id');\r\n\t\t\t$prod['id']=$idImp;\r\n\t\t\t\t\t\t\t\r\n\t\t\treturn array('success'=>true, 'ColaImpresion'=>$prod);\r\n\t\t\t\r\n\t\t} catch (Exception $e) {\r\n\t\t\t\r\n\t\t\treturn array('success'=>false, 'msg'=>$e->getMsg());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public function setPrintedStatus($relatedDocNo) {\n \n $gsaTransactionAccessorObj = tx_ptgsaaccounting__gsaTransactionAccessor::getInstance();\n \n // get complete transaction document data and related customer object\n $relatedDocFieldsArr = $gsaTransactionAccessorObj->selectTransactionDocumentData($relatedDocNo);\n $customerObj = new tx_ptgsauserreg_customer($relatedDocFieldsArr['ADRINR']);\n \n // update existing continued document record: FSCHRIFT.GEDRUCKT\n $relatedDocUpdateFieldsArr['GEDRUCKT'] = 1;\n $gsaTransactionAccessorObj->updateTransactionDocument($relatedDocNo, $relatedDocUpdateFieldsArr);\n \n // update the related customer's contact data (ADRESSE.LKONTAKT)\n $customerObj->registerLastContact();\n \n }", "public function setPrecinct($v)\n\t{\n\n\n\t\tif ($v === null) {\n\t\t\t$this->setPrecinctId(NULL);\n\t\t} else {\n\t\t\t$this->setPrecinctId($v->getId());\n\t\t}\n\n\n\t\t$this->aPrecinct = $v;\n\t}", "public static function set_costo_promedio($id_bodega,$id_producto,$costo_prom)\n {\n $item = InvProducto::find( $id_producto );\n $item->set_costo_promedio( $id_bodega, $costo_prom );\n }", "function related_products_metaboxes() {\n add_meta_box(\n 'related_products',\n 'Choose Related Products',\n 'related_products_list_html',\n 'rfib_products',\n 'normal',\n 'default'\n );\n}", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setRelatedLinks($relLinks)\n {\n $this->_relLinks = $relLinks;\n }", "public function setProductCode($_productCode)\n\t{\n\t\t$this->productCode = $_productCode;\n\t}", "public function setProductCode($_productCode)\n\t{\n\t\t$this->productCode = $_productCode;\n\t}", "public function setProductReference($product_reference)\n {\n $this->product_reference = $product_reference;\n }", "public function hook2promotion_set($promotion_id, $tag_id, $tag_cat, $data_arr=array(), $id='') {\n\t\tif(empty($promotion_id) || empty($tag_id) || empty($tag_cat))\n\t\t\treturn false;\n\t\tD2(\"PromotionIndex\")->hook2promotion_set($promotion_id, $tag_id, $tag_cat, $data_arr, $id);\n\t}", "public function saveProductRelation($product, $data)\n {\n if (!is_array($data)) {\n $data = array();\n }\n $deleteCondition = $this->_getWriteAdapter()->quoteInto('product_id=?', $product->getId());\n $this->_getWriteAdapter()->delete($this->getMainTable(), $deleteCondition);\n\n foreach ($data as $traineeId => $info) {\n $this->_getWriteAdapter()->insert(\n $this->getMainTable(),\n array(\n 'trainee_id' => $traineeId,\n 'product_id' => $product->getId(),\n 'position' => @$info['position']\n )\n );\n }\n return $this;\n }", "public function salesQuoteItemSetProduct($observer)\n\t{\n\t\t$quoteItem = $observer->getQuoteItem();\n\t\t$product = $observer->getProduct();\n\n\t\tif ($product->isConfigurable() && $quoteItem->getHasChildren())\n\t\t{\n\t\t\tforeach ($quoteItem->getChildren() as $child)\n\t\t\t{\n\t\t\t\tforeach ($child->getProduct()->getProductOptionsCollection() as $option)\n\t\t\t\t{\n\t\t\t\t\t$option->setProduct($product);\n\t\t\t\t\t$product->addOption($option);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function paid()\n {\n $this->paidAmount = $this->price;\n }", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public static function set_vendor_product_commission_paid( $vendor_id, $product_id, $order_id )\n\t{\n\t\tglobal $wpdb;\n\n\t\t$table_name = $wpdb->prefix . \"pv_commission\";\n\n\t\t$query = \"UPDATE `{$table_name}` SET `status` = 'paid' WHERE vendor_id = $vendor_id AND order_id = $order_id AND product_id = $product_id\";\n\t\t$result = $wpdb->query( $query );\n\n\t\treturn $result;\n\t}", "function ajouteProdToRub() { \r\n\t\tglobal $R0;\r\n\t\tlist($table,$tableRel,$tableProd,$relRubId_rubId,$relProdId_prodId,$catTitre,$prodTitre) = explode(':',$R0['childRel']);\r\n\t\tlist($relRubId,$rubId) = explode('=',$relRubId_rubId);\r\n\t\tlist($relProdId,$prodId) = explode('=',$relProdId_prodId);\r\n\r\n\t\t$C = new SQL($tableRel);\r\n\t\t$champs = array(array($relRubId,$relProdId,'ordre'),array($this->rub_id,intval($_POST[$prodId]),'999')); // Array champsName // Array champsVal\r\n\t\t$C->insertSql($champs,1);\r\n\t\t$this->info = 'ajout';\r\n\t}", "public function setPromotion(?PromotionInterface $promotion): void\n {\n }", "public function setIdPROVEEDORES($idPROVEEDORES){\n $this->idPROVEEDORES = $idPROVEEDORES;\n }", "public function setProductActive($id, $value) {\n $stmt = $this->db->prepare(\"update product set is_active = :is_active where id = :id;\");\n $stmt->bindValue(\"is_active\", $value, PDO::PARAM_BOOL);\n $stmt->bindValue(\"id\", $id, PDO::PARAM_INT);\n $stmt->execute();\n }", "function qode_woo_related_products_args( $args ) {\n global $qode_options_proya;\n\n\t\t$args['posts_per_page'] = 4;\n\n if(isset($qode_options_proya['woo_products_list_number']) && $qode_options_proya['woo_products_list_number'] != ''){\n switch($qode_options_proya['woo_products_list_number']){\n case('columns-3') :\n $args['posts_per_page'] = 3;\n break;\n case('columns-4') :\n $args['posts_per_page'] = 4;\n break;\n default :\n $args['posts_per_page'] = 4;\n break;\n }\n }\n\n\t\treturn $args;\n\t}", "public static function product($product)\n {\n static::$product = $product;\n }", "private static function set_sync_for_products( array $products, $enabled ) {\n\n\t\tself::$products_sync_enabled = array();\n\n\t\t$enabled = wc_bool_to_string( $enabled );\n\n\t\tforeach ( $products as $product ) {\n\n\t\t\tif ( $product instanceof \\WC_Product ) {\n\n\t\t\t\tif ( $product->is_type( 'variable' ) ) {\n\n\t\t\t\t\tforeach ( $product->get_children() as $variation ) {\n\n\t\t\t\t\t\t$product_variation = wc_get_product( $variation );\n\n\t\t\t\t\t\tif ( $product_variation instanceof \\WC_Product ) {\n\n\t\t\t\t\t\t\t$product_variation->update_meta_data( self::SYNC_ENABLED_META_KEY, $enabled );\n\t\t\t\t\t\t\t$product_variation->save_meta_data();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\t$product->update_meta_data( self::SYNC_ENABLED_META_KEY, $enabled );\n\t\t\t\t\t$product->save_meta_data();\n\t\t\t\t}\n\t\t\t}//end if\n\t\t}//end foreach\n\t}", "public function setRelatedOptions(array $aenRelatedOptions) {\n $this->aenRelatedOptions = $aenRelatedOptions;\n\n return $this;\n }", "public function setRelationForTodo(MyTodo $todo): void\n {\n $entityId = $todo->getRelatedEntityId();\n $module = $todo->getModule();\n\n if( empty($module) ){\n $this->app->logger->info(\"Not setting relation to myTodo as no related module was selected\");\n return;\n }\n\n $moduleName = $module->getName();\n $entityNamespace = ModulesController::getEntityNamespaceForModuleName($moduleName);\n\n if( empty($entityId) ){\n $this->app->logger->info(\"Not setting relation to myTodo as no entity was give to relate with\");\n return;\n }\n\n if( is_null($entityNamespace) ){\n $this->app->logger->warning(\"Cannot set relation to MyTodo as no entity was found for module name\", [\n Logger::KEY_MODULE_NAME => $moduleName,\n Logger::KEY_ID => $entityId,\n ]);\n return;\n }\n\n $entity = $this->getDoctrine()->getManager()->find($entityNamespace, $entityId);\n\n if( !$entity instanceof RelatesToMyTodoInterface ){\n $this->app->logger->warning(\"Cannot set relation to MyTodo as this entity does not implements relation interface\", [\n Logger::KEY_MODULE_NAME => $moduleName,\n Logger::KEY_ID => $entityId,\n ]);\n return;\n }\n\n $entity->setTodo($todo);\n\n if( is_null($entity) ){\n $this->app->logger->warning(\"Cannot set relation to MyTodo as no entity namespace mapping is defined for given module name\", [\n Logger::KEY_MODULE_NAME => $moduleName,\n Logger::KEY_ID => $entityId,\n ]);\n return;\n }\n }", "protected function setRelatedEntity(array $url): void\n {\n $this->url = new URL($url);\n }", "protected function addProcessedRelation($key, $value, $type = RelationTypes::PRODUCT_RELATION)\n {\n $this->getSubject()->addProcessedRelation($key, $value, $type);\n }", "public function set_product($_product)\n {\n $this->_product = $_product;\n\n return $this;\n }", "public function setTblProdSmaller(ChildTblProdSmaller $v = null)\n {\n if ($v === null) {\n $this->setProdId(NULL);\n } else {\n $this->setProdId($v->getProdId());\n }\n\n $this->aTblProdSmaller = $v;\n\n // Add binding for other direction of this 1:1 relationship.\n if ($v !== null) {\n $v->setTblProdInfo($this);\n }\n\n\n return $this;\n }", "public function setCodProy($codProy) {\n $this->codProy = $codProy;\n }", "public function setProductByCode($code)\n\t{\n\t\tif (empty($this->brand)) {\n\t\t\tthrow new \\Exception('Must Set Brafore before Product');\n\t\t}\n\t\t$criteria = Criteria::create()\n\t\t->where(Criteria::expr()->eq(\"code\", $code));\n\t\n\t\t$this->product = $this->brand->getProducts()->matching($criteria)->first();\n\t\n\t\tif (empty($this->producct)) {\n\t\t\tthrow new \\Exception(sprtintf(\"Product '%s' not found\",$code));\n\t\t}\n\t\n\t\t$this->logger->debug(sprintf(\"Code: '%s' Product: '%s'\", $code, $this->product));\n\t}", "protected function setRelationship($key, $value)\n {\n if (true === $this->isHasOne($key)) {\n return $this->setHasOne($key, $value);\n }\n if (true === $this->isHasMany($key)) {\n throw new \\RuntimeException('You cannot set a hasMany relationship directly. Please access using push(), clear(), and/or remove()');\n }\n return $this;\n }", "public function setPromoted($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->promoted !== $v) {\n $this->promoted = $v;\n $this->modifiedColumns[BiblioTableMap::COL_PROMOTED] = true;\n }\n\n return $this;\n }", "private function setProductMinimumAdvertisedPrice(string $sku, ?float $msrp): void\n {\n $product = $this->getProduct($sku);\n $product->setMsrp($msrp);\n $this->productRepository->save($product);\n }", "public function setIdProducto($idProducto)\n {\n $this->idProducto = $idProducto;\n\n return $this;\n }", "public function setPaid()\n {\n return $this->setMarkedAs($this->getPaidValue());\n }", "public function setProductId($id);", "function es_save_custom_quickedit_product( $product ) {\n\tif ( isset( $_REQUEST['member_price'] ) AND ! empty( $_REQUEST['member_price'] ) ) {\n\t\tupdate_post_meta( $product->id, 'member_price', wc_clean( $_REQUEST['member_price'] ) );\n\t}\n\telse \n\t\tdelete_post_meta( $product->id, 'member_price' );\n}", "public function updateProductSeller($partner_id, $product) {\n\t\t$product_ids = array ();\n\t\t\n\t\tif ($product and is_array ( $product )) {\n\t\t\tforeach ( $product as $individual_product ) {\n\t\t\t\t$product_ids [] = $individual_product ['selected'];\n\t\t\t}\n\t\t} else\n\t\t\t$product_ids [] = $product;\n\t\t\n\t\tforeach ( $product_ids as $product_id ) {\n\t\t\t\n\t\t\t$status = $this->chkProduct ( $product_id, $partner_id );\n\t\t\t\n\t\t\tif ($status == 1) {\n\t\t\t\t$this->db->query ( \"INSERT INTO \" . DB_PREFIX . \"customerpartner_to_product SET product_id = '\" . ( int ) $product_id . \"', customer_id = '\" . ( int ) $partner_id . \"'\" );\n\t\t\t} else {\n\t\t\t\t$this->db->query ( \"UPDATE \" . DB_PREFIX . \"customerpartner_to_product SET customer_id = '\" . ( int ) $partner_id . \"' WHERE product_id = '\" . ( int ) $product_id . \"' ORDER BY id ASC LIMIT 1 \" );\n\t\t\t}\n\t\t}\n\t}", "public function scopeForProfessional($professional)\n {\n // Ensure that the professionals attribute is a ProfessionalCollection\n $this->professionals = ! is_a($professional, EmployeeCollection::class)\n ? $professional->newCollection([$professional])\n : $professional;\n }", "public function product()\n {\n \t// belongsTo(RelatedModel, foreignKey = p_id, keyOnRelatedModel = id)\n \treturn $this->belongsTo('App\\Product','p_id','p_id');\n }", "function dmc_woo_related_products_limit() {\n\tglobal $product;\n\t$args['posts_per_page'] = 6;\n\treturn $args;\n}", "public function setCodProy($codProy) {\n $this->codProy = $codProy;\n }" ]
[ "0.66406214", "0.60493654", "0.5804168", "0.5312828", "0.5242306", "0.5207813", "0.5200956", "0.5172608", "0.5162874", "0.51125324", "0.5039864", "0.5013742", "0.49739423", "0.4956736", "0.49339598", "0.4877813", "0.4867028", "0.48509744", "0.47976115", "0.4788886", "0.4770211", "0.47644097", "0.47560832", "0.47524586", "0.4745058", "0.47436106", "0.46719128", "0.46514854", "0.46370843", "0.46349517", "0.4632834", "0.4628806", "0.46266714", "0.46261692", "0.46181232", "0.46179006", "0.4617286", "0.4614003", "0.46071178", "0.45974752", "0.45912325", "0.45809695", "0.4579909", "0.45713466", "0.45675203", "0.45672217", "0.4545929", "0.4543438", "0.4522991", "0.4520805", "0.4511823", "0.45091698", "0.45044422", "0.44963464", "0.44963464", "0.44963464", "0.44963464", "0.44963464", "0.44963464", "0.44963464", "0.44963464", "0.44963464", "0.44963464", "0.44963464", "0.44916457", "0.44916457", "0.44898376", "0.44773057", "0.44765696", "0.44613817", "0.4460387", "0.4450231", "0.44464216", "0.4444834", "0.4441376", "0.44381887", "0.44286135", "0.44259748", "0.4421618", "0.44197094", "0.44142786", "0.4412063", "0.4410442", "0.44060245", "0.44059598", "0.43875325", "0.43870065", "0.43833226", "0.43820593", "0.43811795", "0.4374042", "0.4373694", "0.4373122", "0.43703157", "0.43641657", "0.4351379", "0.43478218", "0.43468383", "0.4345507", "0.43395317" ]
0.6730233
0
setProdRelatedPa() Set the value of [prod_related_m3] column.
public function setProdRelatedM3($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_related_m3 !== $v) { $this->prod_related_m3 = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED_M3] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProdRelatedM3()\n {\n return $this->prod_related_m3;\n }", "public function setProdRelatedPa($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related_pa !== $v) {\n $this->prod_related_pa = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED_PA] = true;\n }\n\n return $this;\n }", "public function getProdRelatedPa()\n {\n return $this->prod_related_pa;\n }", "public function setM3($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->m3 !== $v) {\n $this->m3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_M3] = true;\n }\n\n return $this;\n }", "public function setProdRelated($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related !== $v) {\n $this->prod_related = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED] = true;\n }\n\n return $this;\n }", "public function setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public function setEntityRelatedPk($pk) {\n\t\t$this->_entityRelatedPk = $pk;\n\t}", "public function setPa($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->pa !== $v) {\n $this->pa = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PA] = true;\n }\n\n return $this;\n }", "function jk_related_products_args( $args ) {\n$args['posts_per_page'] = 8; // 4 related products\nreturn $args;\n}", "function sydney_related_products_args( $args ) {\n $args['posts_per_page'] = 3;\n $args['columns'] = 3;\n return $args;\n}", "function dmc_woo_related_products_limit() {\n\tglobal $product;\n\t$args['posts_per_page'] = 6;\n\treturn $args;\n}", "function custom_numberpro_related_products_args( $args ) {\n\tglobal $sh_option;\n\t$args['posts_per_page'] = $sh_option['number-product-related']; // number related products\n\t// $args['columns'] \t= 2; // arranged in number columns\n\treturn $args;\n}", "public function setPromotion($first,$second)\n {\n $this->promotion->setPromotion($first,$second);\n //product Id for identify products\n $this->promotion->setProductId($this->id);\n }", "public function setPrecinct($v)\n\t{\n\n\n\t\tif ($v === null) {\n\t\t\t$this->setPrecinctId(NULL);\n\t\t} else {\n\t\t\t$this->setPrecinctId($v->getId());\n\t\t}\n\n\n\t\t$this->aPrecinct = $v;\n\t}", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function setPR($r) {}", "public function testSetPrime3() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime3());\n }", "public function setVolPondasiM3($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->vol_pondasi_m3 !== $v) {\n $this->vol_pondasi_m3 = $v;\n $this->modifiedColumns[] = BangunanPeer::VOL_PONDASI_M3;\n }\n\n\n return $this;\n }", "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "function woo_related_products_limit()\n{\n global $product;\n\n $args['posts_per_page'] = 4;\n return $args;\n}", "public function setPrecinctId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->precinct_id !== $v) {\n\t\t\t$this->precinct_id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::PRECINCT_ID;\n\t\t}\n\n\t\tif ($this->aPrecinct !== null && $this->aPrecinct->getId() !== $v) {\n\t\t\t$this->aPrecinct = null;\n\t\t}\n\n\t}", "function qode_woo_related_products_args( $args ) {\n global $qode_options_proya;\n\n\t\t$args['posts_per_page'] = 4;\n\n if(isset($qode_options_proya['woo_products_list_number']) && $qode_options_proya['woo_products_list_number'] != ''){\n switch($qode_options_proya['woo_products_list_number']){\n case('columns-3') :\n $args['posts_per_page'] = 3;\n break;\n case('columns-4') :\n $args['posts_per_page'] = 4;\n break;\n default :\n $args['posts_per_page'] = 4;\n break;\n }\n }\n\n\t\treturn $args;\n\t}", "public function setProduct(Product $product);", "public function setReqOtherPhone3($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->req_other_phone3 !== $v) {\n\t\t\t$this->req_other_phone3 = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::REQ_OTHER_PHONE3;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setCirculante_P(){\n\t\t$this->Circulante_P = $this->getFornecedores() \n\t\t+ $this->getEmprestimos_Bancarios() \n\t\t+ $this->getObrigacoes_Sociais_e_Impostos_a_Recolher() \n\t\t+ $this->getContas_a_Pagar_C() \n\t\t+ $this->getLucros_a_Distribuir() \n\t\t+ $this->getProvisoes();\n\t}", "public function testSetPrime3() {\n\n $obj = new PointBonTrav();\n\n $obj->setPrime3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime3());\n }", "public function _setLotNo3($lotNo3) {\n\t\t$this->_lotNo3 = $lotNo3;\n\t}", "public function setJadwalPaudRelatedByJadwalPmtas(JadwalPaud $v = null)\n {\n if ($v === null) {\n $this->setJadwalPmtas(NULL);\n } else {\n $this->setJadwalPmtas($v->getJadwalId());\n }\n\n $this->aJadwalPaudRelatedByJadwalPmtas = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the JadwalPaud object, it will not be re-added.\n if ($v !== null) {\n $v->addSekolahPaudRelatedByJadwalPmtas($this);\n }\n\n\n return $this;\n }", "public function setProdRelated2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related2 !== $v) {\n $this->prod_related2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED2] = true;\n }\n\n return $this;\n }", "function woo_related_products_limit() {\n\tglobal $product;\n\t$args['posts_per_page'] = 6;\n\treturn $args;\n}", "function woo_related_products_limit() {\r\n\tglobal $product;\r\n\t$args['posts_per_page'] = 6;\r\n\treturn $args;\r\n}", "public function setEditorial3($v)\n\t{\n\n\t\tif ($this->editorial3 !== $v || $v === false) {\n\t\t\t$this->editorial3 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL3;\n\t\t}\n\n\t}", "function kvell_edge_woocommerce_related_products_args( $args ) {\n\t\t$related = kvell_edge_options()->getOptionValue( 'edgtf_woo_related_products_columns' );\n\t\t\n\t\tif ( ! empty( $related ) ) {\n\t\t\tswitch ( $related ) {\n\t\t\t\tcase 'edgtf-woocommerce-columns-4':\n\t\t\t\t\t$args['posts_per_page'] = 4;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'edgtf-woocommerce-columns-3':\n\t\t\t\t\t$args['posts_per_page'] = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$args['posts_per_page'] = 3;\n\t\t\t}\n\t\t} else {\n\t\t\t$args['posts_per_page'] = 4;\n\t\t}\n\t\t\n\t\treturn $args;\n\t}", "public static function set_vendor_product_commission_paid( $vendor_id, $product_id, $order_id )\n\t{\n\t\tglobal $wpdb;\n\n\t\t$table_name = $wpdb->prefix . \"pv_commission\";\n\n\t\t$query = \"UPDATE `{$table_name}` SET `status` = 'paid' WHERE vendor_id = $vendor_id AND order_id = $order_id AND product_id = $product_id\";\n\t\t$result = $wpdb->query( $query );\n\n\t\treturn $result;\n\t}", "public function setProducto($pro){ $this->producto = $pro;}", "public static function product($product)\n {\n static::$product = $product;\n }", "public function setCategory3($val)\n {\n $this->_propDict[\"category3\"] = $val;\n return $this;\n }", "public function setOperationPrimeProductPricePourcentage($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_product_price_pourcentage !== $v) {\n $this->operation_prime_product_price_pourcentage = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE;\n }\n\n\n return $this;\n }", "function es_save_custom_quickedit_product( $product ) {\n\tif ( isset( $_REQUEST['member_price'] ) AND ! empty( $_REQUEST['member_price'] ) ) {\n\t\tupdate_post_meta( $product->id, 'member_price', wc_clean( $_REQUEST['member_price'] ) );\n\t}\n\telse \n\t\tdelete_post_meta( $product->id, 'member_price' );\n}", "function woo_related_products_limit() {\n global $product;\n \n $args = array(\n 'post_type' => 'product',\n 'no_found_rows' => 1,\n 'posts_per_page' => 3,\n 'ignore_sticky_posts' => 1,\n 'orderby' => $orderby,\n 'post__in' => $related,\n 'post__not_in' => array($product->id)\n );\n return $args;\n}", "public function setLine3($line3)\n {\n $this->json()->line3 = $line3;\n }", "public function set_product($_product)\n {\n $this->_product = $_product;\n\n return $this;\n }", "public function setProductPrice($product_price){\n $this->product_price = $product_price;\n }", "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "public function variation()\n {\n return $this->belongsTo(ProductVariation::class);\n }", "public function setCmp3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->cmp3 !== $v) {\n $this->cmp3 = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_CMP3] = true;\n }\n\n return $this;\n }", "public function setProduct(Product $product)\n {\n $this->product_id = $product->id;\n $this->_calculateTotal();\n }", "public function paid()\n {\n $this->paidAmount = $this->price;\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "function woocommerce_product_custom_fields_save($post_id) {\n $woocommerce_custom_product_number_field = $_POST['sharethewarmth_selling_goal'];\n if (!empty($woocommerce_custom_product_number_field)) {\n update_post_meta($post_id, 'sharethewarmth_selling_goal', esc_attr($woocommerce_custom_product_number_field));\n }\n}", "public function setPaid()\n {\n $this->update([\n 'status' => self::STATUS_PAID,\n 'paid_date' => Carbon::now(),\n ]);\n }", "public function testSetPriceProduct()\n {\n $product = new Product();\n $value = 10.99;\n $product->setPrice($value);\n $this->assertEquals($value, $product->getPrice());\n }", "public function setRelated ($related)\n {\n $this->_related = (string) $related;\n return $this;\n }", "public function hook2promotion_set($promotion_id, $tag_id, $tag_cat, $data_arr=array(), $id='') {\n\t\tif(empty($promotion_id) || empty($tag_id) || empty($tag_cat))\n\t\t\treturn false;\n\t\tD2(\"PromotionIndex\")->hook2promotion_set($promotion_id, $tag_id, $tag_cat, $data_arr, $id);\n\t}", "public function applyPromotion()\n {\n $this->promotion->setOrder($this);\n }", "public function setPromoted($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->promoted !== $v) {\n $this->promoted = $v;\n $this->modifiedColumns[BiblioTableMap::COL_PROMOTED] = true;\n }\n\n return $this;\n }", "public function testSetMtPrime3Chantier() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMtPrime3Chantier(10.092018);\n $this->assertEquals(10.092018, $obj->getMtPrime3Chantier());\n }", "static public function setAlternativeBlogPid($pid) {\n\t\t$GLOBALS['alternativeBlogPid'] = $pid;\n\t}", "public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\n }", "function _update_product_mrp($prods)\r\n\t{\r\n\t\t$user = $this->erpm->auth();\r\n\t\t$c=0;\r\n\t\tforeach($prods as $i=>$pdet_arr)\r\n\t\t{\r\n\t\t\t\t$pid = $pdet_arr['product_id']; \r\n\t\t\t\t$mrp= $pdet_arr['mrp']; \r\n\t\t\t\tif(empty($mrp))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t$c++;\r\n\t\t\t\t$pc_prod=$this->db->query(\"select * from m_product_info where product_id=? and mrp!=?\",array($pid,$mrp))->row_array();\r\n\t\t\t\tif(!empty($pc_prod))\r\n\t\t\t\t{\r\n\t\t\t\t\t$inp=array(\"product_id\"=>$pid,\"new_mrp\"=>$mrp,\"old_mrp\"=>$pc_prod['mrp'],\"reference_grn\"=>0,\"created_by\"=>$user['userid'],\"created_on\"=>time());\r\n\t\t\t\t\t$this->db->insert(\"product_price_changelog\",$inp);\r\n\t\t\t\t\t$this->db->query(\"update m_product_info set mrp=? where product_id=? limit 1\",array($mrp,$pid));\r\n\t\t\t\t\tforeach($this->db->query(\"select product_id from products_group_pids where group_id in (select group_id from products_group_pids where product_id=$pid) and product_id!=$pid\")->result_array() as $pg)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$inp=array(\"product_id\"=>$pg['product_id'],\"new_mrp\"=>$mrp,\"old_mrp\"=>$this->db->query(\"select mrp from m_product_info where product_id=?\",$pg['product_id'])->row()->mrp,\"reference_grn\"=>0,\"created_by\"=>$user['userid'],\"created_on\"=>time());\r\n\t\t\t\t\t\t$this->db->insert(\"product_price_changelog\",$inp);\r\n\t\t\t\t\t\t$this->db->query(\"update m_product_info set mrp=? where product_id=? limit 1\",array($mrp,$pg['product_id']));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$r_itemids=$this->db->query(\"select itemid from m_product_deal_link where product_id=?\",$pid)->result_array();\r\n\t\t\t\t\t$r_itemids2=$this->db->query(\"select l.itemid from products_group_pids p join m_product_group_deal_link l on l.group_id=p.group_id where p.product_id=?\",$pid)->result_array();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t$r_itemids_arr = array();\r\n\t\t\t\t\t\tif($r_itemids)\r\n\t\t\t\t\t\t\tforeach($r_itemids as $r_item_det)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(!isset($r_itemids_arr[$r_item_det['itemid']]))\r\n\t\t\t\t\t\t\t\t\t$r_itemids_arr[$r_item_det['itemid']] = array();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$r_itemids_arr[$r_item_det['itemid']] = $r_item_det; \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif($r_itemids2)\r\n\t\t\t\t\t\t\tforeach($r_itemids2 as $r_item_det)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(!isset($r_itemids_arr[$r_item_det['itemid']]))\r\n\t\t\t\t\t\t\t\t\t$r_itemids_arr[$r_item_det['itemid']] = array();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$r_itemids_arr[$r_item_det['itemid']] = $r_item_det; \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//$r_itemids=array_unique(array_merge($r_itemids,$r_itemids2));\r\n\t\t\t\t\t\t$r_itemids = array_values($r_itemids_arr);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tforeach($r_itemids as $d)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$itemid=$d['itemid'];\r\n\t\t\t\t\t\t$item=$this->db->query(\"select orgprice,price from king_dealitems where id=?\",$itemid)->row_array();\r\n\t\t\t\t\t\t$o_price=$item['price'];$o_mrp=$item['orgprice'];\r\n\t\t\t\t\t\t$n_mrp=$this->db->query(\"select ifnull(sum(p.mrp*l.qty),0) as mrp from m_product_deal_link l join m_product_info p on p.product_id=l.product_id where l.itemid=?\",$itemid)->row()->mrp+$this->db->query(\"select ifnull(sum((select avg(mrp) from m_product_group_deal_link l join products_group_pids pg on pg.group_id=l.group_id join m_product_info p on p.product_id=pg.product_id where l.itemid=$itemid)*(select qty from m_product_group_deal_link where itemid=$itemid)),0) as mrp\")->row()->mrp;\r\n\t\t\t\t\t\t$n_price=$item['price']/$o_mrp*$n_mrp;\r\n\t\t\t\t\t\t$inp=array(\"itemid\"=>$itemid,\"old_mrp\"=>$o_mrp,\"new_mrp\"=>$n_mrp,\"old_price\"=>$o_price,\"new_price\"=>$n_price,\"created_by\"=>$user['userid'],\"created_on\"=>time(),\"reference_grn\"=>0);\r\n\t\t\t\t\t\t$r=$this->db->insert(\"deal_price_changelog\",$inp);\r\n\t\t\t\t\t\t$this->db->query(\"update king_dealitems set orgprice=?,price=? where id=? limit 1\",array($n_mrp,$n_price,$itemid));\r\n\t\t\t\t\t\tif($this->db->query(\"select is_pnh as b from king_dealitems where id=?\",$itemid)->row()->b)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$o_s_price=$this->db->query(\"select store_price from king_dealitems where id=?\",$itemid)->row()->store_price;\r\n\t\t\t\t\t\t\t$n_s_price=$o_s_price/$o_mrp*$n_mrp;\r\n\t\t\t\t\t\t\t$this->db->query(\"update king_dealitems set store_price=? where id=? limit 1\",array($n_s_price,$itemid));\r\n\t\t\t\t\t\t\t$o_n_price=$this->db->query(\"select nyp_price as p from king_dealitems where id=?\",$itemid)->row()->p;\r\n\t\t\t\t\t\t\t$n_n_price=$o_n_price/$o_mrp*$n_mrp;\r\n\t\t\t\t\t\t\t$this->db->query(\"update king_dealitems set nyp_price=? where id=? limit 1\",array($n_n_price,$itemid));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tforeach($this->db->query(\"select * from partner_deal_prices where itemid=?\",$itemid)->result_array() as $r)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$o_c_price=$r['customer_price'];\r\n\t\t\t\t\t\t\t$n_c_price=$o_c_price/$o_mrp*$n_mrp;\r\n\t\t\t\t\t\t\t$o_p_price=$r['partner_price'];\r\n\t\t\t\t\t\t\t$n_p_price=$o_p_price/$o_mrp*$n_mrp;\r\n\t\t\t\t\t\t\t$this->db->query(\"update partner_deal_prices set customer_price=?,partner_price=? where itemid=? and partner_id=?\",array($n_c_price,$n_p_price,$itemid,$r['partner_id']));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn $c;\r\n\t}", "public function setProductApproval($productApproval, $product, $productData, $productId) {\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n $product = $objectManager->create ( 'Magento\\Catalog\\Model\\Product' )->load ( $productId );\n if ($productApproval == 1) {\n $product->setStatus ( 1 );\n $product->setProductApproval(1);\n \n } else {\n $product->setProductApproval ( 0 );\n $product->setStatus(2);\n }\n \n $product->save();\n }", "public function setPreferred(PurchasingData $pd)\n {\n $qb = $this->_em->createQueryBuilder();\n $qb->update(PurchasingData::class, 'pd')\n ->set('pd.preferred', 'if(pd.id = :id, 1, 0)')\n ->setParameter('id', $pd->getId())\n ->where('pd.stockItem = :item')\n ->setParameter('item', $pd->getSku());\n $query = $qb->getQuery();\n $query->execute();\n $this->_em->clear(PurchasingData::class);\n }", "public function setVolKudakudaM3($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->vol_kudakuda_m3 !== $v) {\n $this->vol_kudakuda_m3 = $v;\n $this->modifiedColumns[] = BangunanPeer::VOL_KUDAKUDA_M3;\n }\n\n\n return $this;\n }", "public function get3PT() {\n\t\t\treturn \"<p>3PT Pct: \".$this->pt.\"</p>\";\n\t\t}", "public function setRelatedLink($value)\n {\n $this->relatedLink = $value;\n }", "public function setProyectorActivo( $proyector ) {\n $this->proyector_activo=$proyector;\n $proyecActual=new Properties();\n $proyecActual->load(file_get_contents(\"./pantallaActiva.properties\"));\n if(strcmp($proyector, \"\")==0)\n $this->proyector_activo=$proyecActual->getProperty(\"Proyector.activo\");\n $proyecActual->setProperty(\"Proyector.activo\",$this->proyector_activo);\n file_put_contents('./pantallaActiva.properties', $proyecActual->toString(true));\n }", "public function setPaid()\n {\n return $this->setMarkedAs($this->getPaidValue());\n }", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "public function setMpPerc($value)\n {\n return $this->set(self::_MP_PERC, $value);\n }", "public function setPrecio($precio)\n {\n $this->precio = $precio;\n\n return $this;\n }", "public function product()\n {\n \t// belongsTo(RelatedModel, foreignKey = p_id, keyOnRelatedModel = id)\n \treturn $this->belongsTo('App\\Product','p_id','p_id');\n }", "private function ml_load_prev()\n\t{\n\t\tif ($this->prod_nums)\n\t\t{\n\t\t\t$prods = array();\n\t\t\tfor ($new_prod_num = 0, $prod_count = count($this->prod_nums); $new_prod_num < $prod_count; ++$new_prod_num)\n\t\t\t{\n\t\t\t\t$old_prod_num = $this->prod_nums[$new_prod_num];\n\t\t\t\t$account = product::create_from_post($old_prod_num);\n\t\t\t\t$prods[] = $account;\n\t\t\t}\n\t\t\tcgi::add_js_var('prods', $prods);\n\t\t}\n\t}", "protected function setRelatedEntity(array $place): void\n {\n $this->place = new Place($place);\n }", "function related_products_metaboxes() {\n add_meta_box(\n 'related_products',\n 'Choose Related Products',\n 'related_products_list_html',\n 'rfib_products',\n 'normal',\n 'default'\n );\n}", "public function setPrecio($precio)\n {\n $this->precio = $this->db->real_escape_string($precio);\n\n return $this;\n }", "public function useMataPelajaranRelatedByMp3IdQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n return $this\n ->joinMataPelajaranRelatedByMp3Id($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'MataPelajaranRelatedByMp3Id', '\\DataDikdas\\Model\\MataPelajaranQuery');\n }", "function superfood_elated_woocommerce_related_products_args($args) {\n\n\t\tif (superfood_elated_options()->getOptionValue('eltdf_woo_product_list_columns')) {\n\n\t\t\t$related = superfood_elated_options()->getOptionValue('eltdf_woo_product_list_columns');\n\t\t\tswitch ($related) {\n\t\t\t\tcase 'eltdf-woocommerce-columns-4':\n\t\t\t\t\t$args['posts_per_page'] = 4;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'eltdf-woocommerce-columns-3':\n\t\t\t\t\t$args['posts_per_page'] = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$args['posts_per_page'] = 3;\n\t\t\t}\n\n\t\t} else {\n\t\t\t$args['posts_per_page'] = 3;\n\t\t}\n\n\t\treturn $args;\n\t}", "public function saveProductRelation($product, $data)\n {\n if (!is_array($data)) {\n $data = array();\n }\n $deleteCondition = $this->_getWriteAdapter()->quoteInto('product_id=?', $product->getId());\n $this->_getWriteAdapter()->delete($this->getMainTable(), $deleteCondition);\n\n foreach ($data as $traineeId => $info) {\n $this->_getWriteAdapter()->insert(\n $this->getMainTable(),\n array(\n 'trainee_id' => $traineeId,\n 'product_id' => $product->getId(),\n 'position' => @$info['position']\n )\n );\n }\n return $this;\n }", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "function setSyncProdWeight()\n {\n }", "public function getPointProd3():?int\n {\n //Recuperation de la partie entière de la division du nombre\n //de produit3 par 2\n $paire = (int)($this->produit3 / 2);\n return $this->produit3 <= 0 ? 0 : $paire * 15;\n }", "public function testSetVrpMulticarte() {\n\n $obj = new Employes();\n\n $obj->setVrpMulticarte(true);\n $this->assertEquals(true, $obj->getVrpMulticarte());\n }", "public function setPa($pa)\n {\n $this->pa = $pa;\n\n return $this;\n }", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "public function variable_product_sync( $product_id = '' ) {\n\t\twcs_deprecated_function( __METHOD__, '2.2,0', 'WC_Subscriptions_Product::variable_subscription_product_sync( $this )' );\n\n\t\tif ( empty( $product_id ) ) {\n\t\t\t$product_id = $this->get_id();\n\t\t}\n\n\t\t// Sync prices with children\n\t\tself::sync( $product_id );\n\t}", "protected function setP3P() {\n\t\tglobal $wgCentralNoticeHideBannersP3P;\n\n\t\tif ( !$wgCentralNoticeHideBannersP3P ) {\n\t\t\t$url = SpecialPage::getTitleFor(\n\t\t\t\t'HideBanners', self::P3P_SUBPAGE )\n\t\t\t\t->getCanonicalURL();\n\n\t\t\t$p3p = \"CP=\\\"This is not a P3P policy! See $url for more info.\\\"\";\n\n\t\t} else {\n\t\t\t$p3p = $wgCentralNoticeHideBannersP3P;\n\t\t}\n\n\t\theader( \"P3P: $p3p\", true );\n\t}", "public function testSetPv3() {\n\n $obj = new CollabTache();\n\n $obj->setPv3(10.092018);\n $this->assertEquals(10.092018, $obj->getPv3());\n }", "public function getM3()\n {\n return $this->m3;\n }", "function set_woo_product_meta( $product_id = 0 ) {\n\n\t// Bail without our pieces.\n\tif ( empty( $product_id ) ) {\n\t\treturn false;\n\t}\n\n\t// Get my SKU and price.\n\t$product_sku = get_post_field( 'post_name', $product_id, 'raw' );\n\t$product_price = rand( 4, 199 ) . '.' . rand( 11, 99 );\n\n\t// Set the default args.\n\t$default_args = array(\n\t\t'total_sales' => '0',\n\t\t'_visibility' => 'visible',\n\t\t'_stock_status' => 'instock',\n\t\t'_tax_status' => 'taxable',\n\t\t'_tax_class' => '',\n\t\t'_downloadable' => 'no',\n\t\t'_download_limit' => '-1',\n\t\t'_download_expiry' => '-1',\n\t\t'_virtual' => 'no',\n\t\t'_purchase_note' => '',\n\t\t'_featured' => 'no',\n\t\t'_weight' => '',\n\t\t'_length' => '',\n\t\t'_width' => '',\n\t\t'_height' => '',\n\t\t'_sku' => sanitize_text_field( $product_sku ),\n\t\t'_product_attributes' => array(),\n\t\t'_price' => floatval( $product_price ),\n\t\t'_regular_price' => floatval( $product_price ),\n\t\t'_sale_price' => '',\n\t\t'_sale_price_dates_from' => '',\n\t\t'_sale_price_dates_to' => '',\n\t\t'_sold_individually' => '',\n\t\t'_manage_stock' => 'no',\n\t\t'_backorders' => 'no',\n\t\t'_stock' => '',\n\t);\n\n\t// Filter the available meta args we pass.\n\t$filtered_args = apply_filters( Core\\HOOK_PREFIX . 'generate_product_meta_args', array(), $product_id );\n\n\t// Set my product args.\n\t$product_args = wp_parse_args( $filtered_args, $default_args );\n\n\t// Update our keys.\n\tforeach ( $product_args as $meta_key => $meta_value ) {\n\t\tupdate_post_meta( $product_id, $meta_key, $meta_value );\n\t}\n\n\t// And that's it.\n\tdo_action( Core\\HOOK_PREFIX . 'after_product_meta_generated', $product_id, $product_args );\n}", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public function setPostRelatedByReplicaPostId(Post $v = null)\n\t{\n\t\tif ($v === null) {\n\t\t\t$this->setReplicaPostId(NULL);\n\t\t} else {\n\t\t\t$this->setReplicaPostId($v->getId());\n\t\t}\n\n\t\t$this->aPostRelatedByReplicaPostId = $v;\n\n\t\t// Add binding for other direction of this n:n relationship.\n\t\t// If this object has already been added to the Post object, it will not be re-added.\n\t\tif ($v !== null) {\n\t\t\t$v->addPostRelatedByReplicaPostId($this);\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setMataPelajaran($mata_pelajaran);", "public function setProcedimento ($oProcedimento) {\n $this->oProcedimento = $oProcedimento;\n }", "private function fillProductPromoText(ProductDto $product, ImportStorage $import_storage, array $product_data, $lang_code = null)\n {\n if (!$product->properties->has('promo_text')) {\n return $product_data;\n }\n\n $promo_text_property = $product->properties->get('promo_text');\n\n if ($promo_text_property->value === null || !$promo_text_property->value instanceof TranslatableValueDto) {\n return $product_data;\n }\n\n if ($lang_code) {\n $product_promo_text = $promo_text_property->value->hasTraslate($lang_code)\n ? $promo_text_property->value->getTranslate($lang_code)\n : null;\n } else {\n $product_promo_text = $promo_text_property->value->default_value;\n }\n\n if ($product_promo_text === null) {\n return $product_data;\n }\n\n if ($product->is_new || $import_storage->getSetting('catalog_importer.allow_update_product_promotext', false)) {\n $product_data['promo_text'] = $product_promo_text;\n }\n\n return $product_data;\n }", "public function setJadwalPmtas($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->jadwal_pmtas !== $v) {\n $this->jadwal_pmtas = $v;\n $this->modifiedColumns[] = SekolahPaudPeer::JADWAL_PMTAS;\n }\n\n if ($this->aJadwalPaudRelatedByJadwalPmtas !== null && $this->aJadwalPaudRelatedByJadwalPmtas->getJadwalId() !== $v) {\n $this->aJadwalPaudRelatedByJadwalPmtas = null;\n }\n\n\n return $this;\n }", "public function setSp3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->sp3 !== $v) {\n $this->sp3 = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_SP3] = true;\n }\n\n return $this;\n }", "public function Prodotto()\n {\n return $this->belongsToMany('App\\models\\Prodotto',\n 'App\\models\\Lista','id_cliente',\n 'codice_prodotto','id','codice')\n ->withPivot('quantita_prodotto');\n }", "protected function setRelatedEntity(array $url): void\n {\n $this->url = new URL($url);\n }", "public function setPrecio($precio)\n {\n $this->precio = $precio;\n\n return $this;\n }" ]
[ "0.6565166", "0.64982957", "0.5982139", "0.53901494", "0.52000916", "0.5100894", "0.48719493", "0.47665218", "0.47338653", "0.4715882", "0.4633002", "0.45733258", "0.45598158", "0.45519248", "0.45097595", "0.45083198", "0.4500966", "0.44987512", "0.44761905", "0.44567454", "0.44164553", "0.44163892", "0.43829274", "0.4367606", "0.43558115", "0.43523392", "0.4332241", "0.4331892", "0.43300518", "0.4323725", "0.43219125", "0.42964953", "0.42950505", "0.42757753", "0.4274516", "0.42742574", "0.4268296", "0.4265601", "0.42530972", "0.42481437", "0.42427403", "0.42335284", "0.4218193", "0.42144772", "0.42134178", "0.4210268", "0.42088604", "0.4206113", "0.4183822", "0.41832098", "0.41543937", "0.41429502", "0.41361582", "0.41350207", "0.4128891", "0.4125181", "0.41247097", "0.41193965", "0.4117634", "0.41133532", "0.41049075", "0.40949675", "0.40896338", "0.40862513", "0.40810728", "0.40797982", "0.40748072", "0.40664902", "0.4061237", "0.40607023", "0.40544465", "0.40537474", "0.4043149", "0.40279168", "0.4026241", "0.4014017", "0.40133795", "0.40117618", "0.40071848", "0.4003557", "0.40004942", "0.399955", "0.3998491", "0.39954266", "0.39916432", "0.39915475", "0.39825305", "0.39811504", "0.3979609", "0.3974403", "0.3972595", "0.3971258", "0.3970482", "0.3970421", "0.39581904", "0.39559996", "0.3955965", "0.3953105", "0.39507198", "0.39467648" ]
0.70077443
0
setProdRelatedM3() Set the value of [prod_related2] column.
public function setProdRelated2($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_related2 !== $v) { $this->prod_related2 = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED2] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdRelatedM3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related_m3 !== $v) {\n $this->prod_related_m3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED_M3] = true;\n }\n\n return $this;\n }", "public function getProdRelatedM3()\n {\n return $this->prod_related_m3;\n }", "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "public function setM3($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->m3 !== $v) {\n $this->m3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_M3] = true;\n }\n\n return $this;\n }", "public function setPromotion($first,$second)\n {\n $this->promotion->setPromotion($first,$second);\n //product Id for identify products\n $this->promotion->setProductId($this->id);\n }", "public function setProdRelated($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related !== $v) {\n $this->prod_related = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED] = true;\n }\n\n return $this;\n }", "public function _setLotNo3($lotNo3) {\n\t\t$this->_lotNo3 = $lotNo3;\n\t}", "public function hook2promotion_set($promotion_id, $tag_id, $tag_cat, $data_arr=array(), $id='') {\n\t\tif(empty($promotion_id) || empty($tag_id) || empty($tag_cat))\n\t\t\treturn false;\n\t\tD2(\"PromotionIndex\")->hook2promotion_set($promotion_id, $tag_id, $tag_cat, $data_arr, $id);\n\t}", "public function setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "public function _setLotNo2($lotNo2) {\n\t\t$this->_lotNo2 = $lotNo2;\n\t}", "public function edit_3Action(Produits_2 $produit2)\n {\n $user = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n \n $produits = $em->getRepository('KountacBundle:Produits_3')->getProduct_3($produit2);\n \n return $this->render('produits/edit_3.html.twig', array(\n 'produit2' => $produit2,\n 'produits' => $produits,\n 'user' => $user,\n ));\n }", "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public function setReqOtherPhone3($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->req_other_phone3 !== $v) {\n\t\t\t$this->req_other_phone3 = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::REQ_OTHER_PHONE3;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function testUpdateRecordWithManyToManyRelation()\n {\n $this->expectQueries(\n [\n [\n 'SELECT many_many.pk, many_many.fk, relation.primaryKey as relation_primaryKey FROM many_many ' .\n 'LEFT JOIN joinTable ON many_many.fk=joinTable.many_many_fk ' .\n 'LEFT JOIN related relation ON joinTable.related_primaryKey=relation.primaryKey ' .\n 'WHERE many_many.pk=?',\n [2],\n [\n [\n 'pk' => 1,\n 'fk' => 1,\n 'relation_primaryKey' => 1\n ],\n [\n 'pk' => 1,\n 'fk' => 1,\n 'relation_primaryKey' => 2\n ]\n ]\n ],\n ['INSERT INTO related () VALUES ()'],\n ['DELETE FROM joinTable WHERE (many_many_fk=? AND related_primaryKey=?)', [1, 1]],\n ['INSERT INTO joinTable (many_many_fk, related_primaryKey) VALUES (?, ?)', [1, 3]],\n [\n 'INSERT INTO joinTable (many_many_fk, related_primaryKey) VALUES (?, ?)',\n [1, null]\n ]\n ]\n );\n\n $entity = $this->entityManager->get('ManyManyRelationEntity');\n $object = $entity->find()->with('relation')->get(2);\n\n unset($object->relation[1]);\n\n $object->relation[] = 3;\n $object->relation[] = new RelatedEntity;\n\n $entity->save($object);\n\n $this->entityManager->commit();\n }", "public function setEditorial3($v)\n\t{\n\n\t\tif ($this->editorial3 !== $v || $v === false) {\n\t\t\t$this->editorial3 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL3;\n\t\t}\n\n\t}", "public function setRef2($ref2) {\n $this->_ref2 = $ref2;\n }", "public function setLine3($line3)\n {\n $this->json()->line3 = $line3;\n }", "public function setProdAlt2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt2 !== $v) {\n $this->prod_alt2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true;\n }\n\n return $this;\n }", "function related_products_metaboxes() {\n add_meta_box(\n 'related_products',\n 'Choose Related Products',\n 'related_products_list_html',\n 'rfib_products',\n 'normal',\n 'default'\n );\n}", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public function set_relatedDocNo($relatedDocNo) {\n $this->relatedDocNo = (string) $relatedDocNo;\n }", "public function setReqOtherComment3($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->req_other_comment3 !== $v) {\n\t\t\t$this->req_other_comment3 = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::REQ_OTHER_COMMENT3;\n\t\t}\n\n\t\treturn $this;\n\t}", "function dmc_woo_related_products_limit() {\n\tglobal $product;\n\t$args['posts_per_page'] = 6;\n\treturn $args;\n}", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "function setSyncProdWeight()\n {\n }", "function setSyncItemsCodeProduct()\n {\n }", "public function setLine2($line2)\n {\n $this->json()->line2 = $line2;\n }", "function woocommerce_product_custom_fields_save($post_id) {\n $woocommerce_custom_product_number_field = $_POST['sharethewarmth_selling_goal'];\n if (!empty($woocommerce_custom_product_number_field)) {\n update_post_meta($post_id, 'sharethewarmth_selling_goal', esc_attr($woocommerce_custom_product_number_field));\n }\n}", "function save_softsdev_mc_product_cat_custom_meta($term_id) {\n if (isset($_POST['softsdev_mc_group'])) {\n $t_id = $term_id;\n $softsdev_wc_mc_setting = get_softsdev_wc_mc_setting();\n $softsdev_mc_terms_groups = get_option('softsdev_mc_term_group');\n $softsdev_mc_terms_groups['term' . $softsdev_wc_mc_setting['list_mgroup_id'] . '_' . $t_id] = $_POST['softsdev_mc_group'];\n // Save the option array.\n update_option(softsdev_mc_term_group, $softsdev_mc_terms_groups);\n }\n }", "public function setValue2($value){\n $this->_value2 = $value;\n }", "public function setRelated ($related)\n {\n $this->_related = (string) $related;\n return $this;\n }", "function custom_numberpro_related_products_args( $args ) {\n\tglobal $sh_option;\n\t$args['posts_per_page'] = $sh_option['number-product-related']; // number related products\n\t// $args['columns'] \t= 2; // arranged in number columns\n\treturn $args;\n}", "public function setAddress2(string $address_2 = null) : CNabuDataObject\n {\n $this->setValue('nb_icontact_prospect_address_2', $address_2);\n \n return $this;\n }", "public function setCategory3($val)\n {\n $this->_propDict[\"category3\"] = $val;\n return $this;\n }", "function jk_related_products_args( $args ) {\n$args['posts_per_page'] = 8; // 4 related products\nreturn $args;\n}", "public function setEditorial2($v)\n\t{\n\n\t\tif ($this->editorial2 !== $v || $v === false) {\n\t\t\t$this->editorial2 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL2;\n\t\t}\n\n\t}", "public function setMagia3Attribute($value) {\n $this->attributes['magia3'] = $this->verificaAtributo($value, true);\n }", "public function setCmp3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->cmp3 !== $v) {\n $this->cmp3 = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_CMP3] = true;\n }\n\n return $this;\n }", "public function setReqOtherPhone2($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->req_other_phone2 !== $v) {\n\t\t\t$this->req_other_phone2 = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::REQ_OTHER_PHONE2;\n\t\t}\n\n\t\treturn $this;\n\t}", "function sydney_related_products_args( $args ) {\n $args['posts_per_page'] = 3;\n $args['columns'] = 3;\n return $args;\n}", "function pmprowoo_process_product_meta_for_gift_levels() {\r\n\tglobal $post_id, $pmprowoo_gift_codes;\r\n\t// Save gift membership discount\r\n $code = $_POST['_gift_membership_code'];\r\n\r\n // update array of gift codes\r\n if(!empty($code))\r\n\t\t$pmprowoo_gift_codes[$post_id] = $code;\r\n\telseif(isset($pmprowoo_gift_codes[$post_id]))\r\n\t\tunset($pmprowoo_gift_codes[$post_id]);\r\n\r\n if( isset( $code ) ) {\r\n update_post_meta( $post_id, '_gift_membership_code', esc_attr( $code ));\r\n update_option('_pmprowoo_gift_codes', $pmprowoo_gift_codes);\r\n }\r\n\r\n // Save gift membership email option\r\n $email_opt = $_POST['_gift_membership_email_option'];\r\n\r\n if( isset( $email_opt ) ) {\r\n update_post_meta( $post_id, '_gift_membership_email_option', esc_attr( $email_opt ));\r\n }\r\n}", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "function setBeneficiario2($beneficiario2) {\r\n $this->beneficiario2 = $beneficiario2;\r\n }", "public function setCategory2($val)\n {\n $this->_propDict[\"category2\"] = $val;\n return $this;\n }", "public function applyPromotion()\n {\n $this->promotion->setOrder($this);\n }", "function woo_related_products_limit()\n{\n global $product;\n\n $args['posts_per_page'] = 4;\n return $args;\n}", "function woo_related_products_limit() {\n\tglobal $product;\n\t$args['posts_per_page'] = 6;\n\treturn $args;\n}", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "function woo_related_products_limit() {\r\n\tglobal $product;\r\n\t$args['posts_per_page'] = 6;\r\n\treturn $args;\r\n}", "function es_save_custom_quickedit_product( $product ) {\n\tif ( isset( $_REQUEST['member_price'] ) AND ! empty( $_REQUEST['member_price'] ) ) {\n\t\tupdate_post_meta( $product->id, 'member_price', wc_clean( $_REQUEST['member_price'] ) );\n\t}\n\telse \n\t\tdelete_post_meta( $product->id, 'member_price' );\n}", "function nb_update_post_related_artist_id( $value, $object, $field_name ) {\n if ( ! $value || ! is_numeric( $value ) ) {\n echo (\"nb_update_post_related_artist_id failed\");\n return;\n }\n\n return update_post_meta( $object->ID, $field_name, (int) $value );\n}", "function editRelated()\n\t{\n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t$sql = \"SELECT \t* FROM products_table \";\n\t\t\t$query = new Bin_Query();\n\t\t\t$query->executeQuery($sql);\n\t\t\t\n\t\t\t$sql='select cross_product_ids from cross_products_table where product_id='.$id;\n\t\t\t$obj=new Bin_Query();\n\t\t\t$obj->executeQuery($sql);\n\t\t\t$p_id=$obj->records[0];\n\t\t\t$value=explode(\",\",$p_id['cross_product_ids']);\n\t\t\treturn Display_DManageProducts::editRelated($query->records,$value);\n\t\t}\t\n\t\t\t//return '<div class=\"exc_msgbox\">No Products Found! Please Click Product Entry Link to Add Products!</div>';\n\n\n\t\n\t}", "function setProdSetID($con) {\n $result = mysqli_query($con,\"SELECT stpr_set_3, set_id, set_nome FROM settori_prodotti JOIN settori ON settori.set_nome = settori_prodotti.stpr_set_3 WHERE stpr_set_3_id = 0\");\n while($row= mysqli_fetch_array($result)) {\n if($row['stpr_set_3'] !== NULL) {\n $set_id = $row['set_id'];\n $set_nome = $row['set_nome'];\n $sql=\"UPDATE settori_prodotti SET stpr_set_3_id = '$set_id' WHERE stpr_set_3 = '$set_nome'\";\n mysqli_query($con,$sql);\n } else {\n $sql=\"UPDATE settori_prodotti SET stpr_set_3_id = 0\";\n mysqli_query($con,$sql);\n }\n }\n}", "public function getProdAlt3()\n {\n return $this->prod_alt3;\n }", "function woo_related_products_limit() {\n global $product;\n \n $args = array(\n 'post_type' => 'product',\n 'no_found_rows' => 1,\n 'posts_per_page' => 3,\n 'ignore_sticky_posts' => 1,\n 'orderby' => $orderby,\n 'post__in' => $related,\n 'post__not_in' => array($product->id)\n );\n return $args;\n}", "public function setOpcion3($opt) {\n $this->opcion3 = Funciones::gCodificar($opt);\n }", "public function add_layer2_assignment($p_layer2_id, $p_obj_id)\n {\n $l_insert = 'INSERT INTO isys_cats_layer2_net_2_layer3 (isys_cats_layer2_net_list__id, isys_obj__id) VALUES';\n\n if (is_numeric($p_layer2_id))\n {\n $l_insert .= ' (' . $this->convert_sql_id($p_layer2_id) . ', ' . $this->convert_sql_id($p_obj_id) . ')';\n }\n elseif (is_array($p_layer2_id) && count($p_layer2_id) > 0)\n {\n foreach ($p_layer2_id AS $l_id)\n {\n $l_insert .= ' (' . $this->convert_sql_id($l_id) . ', ' . $this->convert_sql_id($p_obj_id) . '), ';\n }\n $l_insert = rtrim($l_insert, ', ');\n } // if\n return ($this->update($l_insert) && $this->apply_update());\n }", "public function customData3(string $customData3)\n {\n $this->customData3 = $customData3;\n\n return $this;\n }", "public function setCcmp3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->ccmp3 !== $v) {\n $this->ccmp3 = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_CCMP3] = true;\n }\n\n return $this;\n }", "public function getProdAlt2()\n {\n return $this->prod_alt2;\n }", "function update_carton_term_meta( $term_id, $meta_key, $meta_value, $prev_value = '' ) {\n\treturn update_metadata( 'carton_term', $term_id, $meta_key, $meta_value, $prev_value );\n}", "function softsdev_mc_product_cat_edit_meta_field($term) {\n $softsdev_wc_mc_setting = get_softsdev_wc_mc_setting();\n if (!@$softsdev_wc_mc_setting['api'])\n return '';\n $groups = softsdev_get_mc_groups();\n // put the term ID into a variable\n $t_id = $term->term_id;\n // retrieve the existing value(s) for this meta field. This returns an array\n $softsdev_mc_terms_groups = get_option('softsdev_mc_term_group');\n ?>\n <tr class=\"form-field\">\n <th scope=\"row\" valign=\"top\"><label for=\"softsdev_mc_group\"><?php _e('Mailchimp Group', 'softsdev'); ?></label></th>\n <td>\n <?php\n echo @woocommerce_wp_select(\n array(\n 'value' => @$softsdev_mc_terms_groups['term' . $softsdev_wc_mc_setting['list_mgroup_id'] . '_' . $t_id],\n 'id' => 'softsdev_mc_group',\n 'options' => array('' => 'Select Group') + softsdev_mc_list_data($groups, 'name', 'name')\n )\n );\n ?>\n <p class=\"description\"><?php _e('Select mailchimp group.', 'softsdev'); ?></p>\n </td>\n </tr>\n <?php\n }", "public function setAddress2($fv_address2)\n {\n \tif(!empty($fv_address2))\n \t{\n \treturn $this->fv_address2 = $fv_address2;\n \t}\n \t$this->fv_error_message = $this->fv_error_message .'<br> - Direccion 2 '.ERROR_NULL;\n return $this->fv_address2=null;\n }", "public function setReqOtherComment2($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->req_other_comment2 !== $v) {\n\t\t\t$this->req_other_comment2 = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::REQ_OTHER_COMMENT2;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setTax2(?float $tax2): self\n {\n $this->initialized['tax2'] = true;\n $this->tax2 = $tax2;\n\n return $this;\n }", "function qode_woo_related_products_args( $args ) {\n global $qode_options_proya;\n\n\t\t$args['posts_per_page'] = 4;\n\n if(isset($qode_options_proya['woo_products_list_number']) && $qode_options_proya['woo_products_list_number'] != ''){\n switch($qode_options_proya['woo_products_list_number']){\n case('columns-3') :\n $args['posts_per_page'] = 3;\n break;\n case('columns-4') :\n $args['posts_per_page'] = 4;\n break;\n default :\n $args['posts_per_page'] = 4;\n break;\n }\n }\n\n\t\treturn $args;\n\t}", "public function setMagia2Attribute($value) {\n $this->attributes['magia2'] = $this->verificaAtributo($value, true);\n }", "function get_related( $limit = 5 ) {\n\t\tglobal $wpdb, $all_post_ids;\n\t\t// Related products are found from category and tag\n\t\t$tags_array = array(0);\n\t\t$cats_array = array(0);\n\t\t$tags = '';\n\t\t$cats = '';\n\t\t\n\t\t// Get tags\n\t\t$terms = wp_get_post_terms($this->id, 'product_tag');\n\t\tforeach ($terms as $term) {\n\t\t\t$tags_array[] = $term->term_id;\n\t\t}\n\t\t$tags = implode(',', $tags_array);\n\t\t\n\t\t$terms = wp_get_post_terms($this->id, 'product_cat');\n\t\tforeach ($terms as $term) {\n\t\t\t$cats_array[] = $term->term_id;\n\t\t}\n\t\t$cats = implode(',', $cats_array);\n\n\t\t$q = \"\n\t\t\tSELECT p.ID\n\t\t\tFROM $wpdb->term_taxonomy AS tt, $wpdb->term_relationships AS tr, $wpdb->posts AS p, $wpdb->postmeta AS pm\n\t\t\tWHERE \n\t\t\t\tp.ID != $this->id\n\t\t\t\tAND p.post_status = 'publish'\n\t\t\t\tAND p.post_date_gmt < NOW()\n\t\t\t\tAND p.post_type = 'product'\n\t\t\t\tAND pm.meta_key = 'visibility'\n\t\t\t\tAND pm.meta_value IN ('visible', 'catalog')\n\t\t\t\tAND pm.post_id = p.ID\n\t\t\t\tAND\n\t\t\t\t(\n\t\t\t\t\t(\n\t\t\t\t\t\ttt.taxonomy ='product_cat'\n\t\t\t\t\t\tAND tt.term_taxonomy_id = tr.term_taxonomy_id\n\t\t\t\t\t\tAND tr.object_id = p.ID\n\t\t\t\t\t\tAND tt.term_id IN ($cats)\n\t\t\t\t\t)\n\t\t\t\t\tOR \n\t\t\t\t\t(\n\t\t\t\t\t\ttt.taxonomy ='product_tag'\n\t\t\t\t\t\tAND tt.term_taxonomy_id = tr.term_taxonomy_id\n\t\t\t\t\t\tAND tr.object_id = p.ID\n\t\t\t\t\t\tAND tt.term_id IN ($tags)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\tGROUP BY tr.object_id\n\t\t\tORDER BY RAND()\n\t\t\tLIMIT $limit;\";\n \n\t\t$related = $wpdb->get_col($q);\n\t\t\n\t\treturn $related;\n\t}", "public function setProductApproval($productApproval, $product, $productData, $productId) {\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n $product = $objectManager->create ( 'Magento\\Catalog\\Model\\Product' )->load ( $productId );\n if ($productApproval == 1) {\n $product->setStatus ( 1 );\n $product->setProductApproval(1);\n \n } else {\n $product->setProductApproval ( 0 );\n $product->setStatus(2);\n }\n \n $product->save();\n }", "public function setNumber2(float $number2){\n $this->number2 = $number2;\n }", "public function setPropelCacheObject($object2ClassName, $object2Pk, $object = false)\n {\n $pk = $object2Pk;\n if ($pk === null && $object) {\n $pk = $object->getPrimaryKey();\n }\n\n if (is_array($pk)) {\n $npk = '';\n foreach ($pk as $k) {\n $npk .= urlencode($k) . '_';\n }\n } else {\n $pk = urlencode($pk);\n }\n\n $cacheKey = 'core/object-caching.' . strtolower(preg_replace('/[^\\w]/', '.', $object2ClassName)) . '/' . $pk;\n\n $clazz = $object2ClassName . 'Query';\n $object2 = $object;\n if (!$object2) {\n $object2 = $clazz::create()->findPk($object2Pk);\n }\n\n if (!$object2) {\n return false;\n }\n\n $this->getKrynCore()->setDistributedCache($cacheKey, serialize($object2));\n\n return $object2;\n\n }", "public function setEntityRelatedPk($pk) {\n\t\t$this->_entityRelatedPk = $pk;\n\t}", "function setSyncProdDesc()\n {\n }", "private function actPrecioLotes($etapa, $costom2){\n $lotes = Lote::join('modelos','lotes.modelo_id','=','modelos.id')\n ->select('lotes.id')->where('lotes.etapa_id','=',$etapa)\n ->where('lotes.contrato','=',0)\n ->where('modelos.nombre','=','Terreno')->get();\n\n if(sizeof($lotes)){\n foreach ($lotes as $index => $lot) {\n $l= Lote::findOrFail($lot->id);\n $l->precio_base = $costom2 * $l->terreno;\n $l->save();\n }\n }\n }", "private function setProductObjectId(object $object): void\n {\n //====================================================================//\n // Identify Product Id\n if ($object instanceof Product) {\n $this->objectId = (string) $object->id;\n } elseif ($object instanceof MouvementStock) {\n $this->objectId = (string) $object->product_id;\n }\n }", "public function setC2($C2)\r\n {\r\n $this->C2 = $C2;\r\n\r\n return $this;\r\n }", "function update_most_popular_item_3($p_setting_value){\n global $db;\n $query = \"UPDATE settings\n SET setting_value = '$p_setting_value'\n WHERE setting_name = 'most_popular_item_3'\n \";\n \n mysqli_query($db, $query);\n mysqli_commit($db);\n return TRUE;\n }", "public function getM3()\n {\n return $this->m3;\n }", "public function setLine2(?string $line2): self\n {\n $this->initialized['line2'] = true;\n $this->line2 = $line2;\n\n return $this;\n }", "protected function setRelatedEntity(array $url): void\n {\n $this->url = new URL($url);\n }", "public function setManyManyAttributes($relationName,$relatedObject,$attributes)\n\t{\n\t\t$objHash=spl_object_hash($relatedObject);\n\t\tif(!isset($this->relationAttributes[$relationName][$objHash]))\n\t\t\t$this->initManyManyAttributes($relationName,$relatedObject);\n\n\t\t$merged=array_merge($this->relationAttributes[$relationName][$objHash],$attributes);\n\t\t$this->relationAttributes[$relationName][$objHash]=$merged;\n\t}", "private function schema3()\n {\n $sql = \"ALTER TABLE experiments_revisions CHANGE exp_id item_id INT(10) UNSIGNED NOT NULL\";\n if (!$this->pdo->q($sql)) {\n throw new Exception('Problem updating!');\n }\n }", "public function setCcmp2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->ccmp2 !== $v) {\n $this->ccmp2 = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_CCMP2] = true;\n }\n\n return $this;\n }", "function kvell_edge_woocommerce_related_products_args( $args ) {\n\t\t$related = kvell_edge_options()->getOptionValue( 'edgtf_woo_related_products_columns' );\n\t\t\n\t\tif ( ! empty( $related ) ) {\n\t\t\tswitch ( $related ) {\n\t\t\t\tcase 'edgtf-woocommerce-columns-4':\n\t\t\t\t\t$args['posts_per_page'] = 4;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'edgtf-woocommerce-columns-3':\n\t\t\t\t\t$args['posts_per_page'] = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$args['posts_per_page'] = 3;\n\t\t\t}\n\t\t} else {\n\t\t\t$args['posts_per_page'] = 4;\n\t\t}\n\t\t\n\t\treturn $args;\n\t}", "public function beforeUpdate()\n {\n $product = self::find($this->id);\n self::$product_group = $product->group_id;\n }", "public function setVolPondasiM3($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->vol_pondasi_m3 !== $v) {\n $this->vol_pondasi_m3 = $v;\n $this->modifiedColumns[] = BangunanPeer::VOL_PONDASI_M3;\n }\n\n\n return $this;\n }", "function update_most_popular_item_2($p_setting_value){\n global $db;\n $query = \"UPDATE settings\n SET setting_value = '$p_setting_value'\n WHERE setting_name = 'most_popular_item_2'\n \";\n \n mysqli_query($db, $query);\n mysqli_commit($db);\n return TRUE;\n }", "public function setAddress2($address2)\r\n {\r\n $this->_address2 = $address2;\r\n }", "function hometown_woocommerce_product_custom_fields_save($post_id)\n{\n $woocommerce_custom_product_text_field = $_POST['_custom_product'];\n update_post_meta($post_id, '_custom_product', esc_attr($woocommerce_custom_product_text_field));\n}", "public function setId2($var)\n {\n GPBUtil::checkString($var, True);\n $this->id2 = $var;\n\n return $this;\n }", "function woocommerce_product_custom_fields_save($post_id)\n{\n $woocommerce_custom_product_text_field = $_POST['_custom_product_upc'];\n if (!empty($woocommerce_custom_product_text_field))\n update_post_meta($post_id, '_custom_product_upc', esc_attr($woocommerce_custom_product_text_field));\n\n}", "function _update_product_mrp($prods)\r\n\t{\r\n\t\t$user = $this->erpm->auth();\r\n\t\t$c=0;\r\n\t\tforeach($prods as $i=>$pdet_arr)\r\n\t\t{\r\n\t\t\t\t$pid = $pdet_arr['product_id']; \r\n\t\t\t\t$mrp= $pdet_arr['mrp']; \r\n\t\t\t\tif(empty($mrp))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t$c++;\r\n\t\t\t\t$pc_prod=$this->db->query(\"select * from m_product_info where product_id=? and mrp!=?\",array($pid,$mrp))->row_array();\r\n\t\t\t\tif(!empty($pc_prod))\r\n\t\t\t\t{\r\n\t\t\t\t\t$inp=array(\"product_id\"=>$pid,\"new_mrp\"=>$mrp,\"old_mrp\"=>$pc_prod['mrp'],\"reference_grn\"=>0,\"created_by\"=>$user['userid'],\"created_on\"=>time());\r\n\t\t\t\t\t$this->db->insert(\"product_price_changelog\",$inp);\r\n\t\t\t\t\t$this->db->query(\"update m_product_info set mrp=? where product_id=? limit 1\",array($mrp,$pid));\r\n\t\t\t\t\tforeach($this->db->query(\"select product_id from products_group_pids where group_id in (select group_id from products_group_pids where product_id=$pid) and product_id!=$pid\")->result_array() as $pg)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$inp=array(\"product_id\"=>$pg['product_id'],\"new_mrp\"=>$mrp,\"old_mrp\"=>$this->db->query(\"select mrp from m_product_info where product_id=?\",$pg['product_id'])->row()->mrp,\"reference_grn\"=>0,\"created_by\"=>$user['userid'],\"created_on\"=>time());\r\n\t\t\t\t\t\t$this->db->insert(\"product_price_changelog\",$inp);\r\n\t\t\t\t\t\t$this->db->query(\"update m_product_info set mrp=? where product_id=? limit 1\",array($mrp,$pg['product_id']));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$r_itemids=$this->db->query(\"select itemid from m_product_deal_link where product_id=?\",$pid)->result_array();\r\n\t\t\t\t\t$r_itemids2=$this->db->query(\"select l.itemid from products_group_pids p join m_product_group_deal_link l on l.group_id=p.group_id where p.product_id=?\",$pid)->result_array();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t$r_itemids_arr = array();\r\n\t\t\t\t\t\tif($r_itemids)\r\n\t\t\t\t\t\t\tforeach($r_itemids as $r_item_det)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(!isset($r_itemids_arr[$r_item_det['itemid']]))\r\n\t\t\t\t\t\t\t\t\t$r_itemids_arr[$r_item_det['itemid']] = array();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$r_itemids_arr[$r_item_det['itemid']] = $r_item_det; \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif($r_itemids2)\r\n\t\t\t\t\t\t\tforeach($r_itemids2 as $r_item_det)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(!isset($r_itemids_arr[$r_item_det['itemid']]))\r\n\t\t\t\t\t\t\t\t\t$r_itemids_arr[$r_item_det['itemid']] = array();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$r_itemids_arr[$r_item_det['itemid']] = $r_item_det; \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//$r_itemids=array_unique(array_merge($r_itemids,$r_itemids2));\r\n\t\t\t\t\t\t$r_itemids = array_values($r_itemids_arr);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tforeach($r_itemids as $d)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$itemid=$d['itemid'];\r\n\t\t\t\t\t\t$item=$this->db->query(\"select orgprice,price from king_dealitems where id=?\",$itemid)->row_array();\r\n\t\t\t\t\t\t$o_price=$item['price'];$o_mrp=$item['orgprice'];\r\n\t\t\t\t\t\t$n_mrp=$this->db->query(\"select ifnull(sum(p.mrp*l.qty),0) as mrp from m_product_deal_link l join m_product_info p on p.product_id=l.product_id where l.itemid=?\",$itemid)->row()->mrp+$this->db->query(\"select ifnull(sum((select avg(mrp) from m_product_group_deal_link l join products_group_pids pg on pg.group_id=l.group_id join m_product_info p on p.product_id=pg.product_id where l.itemid=$itemid)*(select qty from m_product_group_deal_link where itemid=$itemid)),0) as mrp\")->row()->mrp;\r\n\t\t\t\t\t\t$n_price=$item['price']/$o_mrp*$n_mrp;\r\n\t\t\t\t\t\t$inp=array(\"itemid\"=>$itemid,\"old_mrp\"=>$o_mrp,\"new_mrp\"=>$n_mrp,\"old_price\"=>$o_price,\"new_price\"=>$n_price,\"created_by\"=>$user['userid'],\"created_on\"=>time(),\"reference_grn\"=>0);\r\n\t\t\t\t\t\t$r=$this->db->insert(\"deal_price_changelog\",$inp);\r\n\t\t\t\t\t\t$this->db->query(\"update king_dealitems set orgprice=?,price=? where id=? limit 1\",array($n_mrp,$n_price,$itemid));\r\n\t\t\t\t\t\tif($this->db->query(\"select is_pnh as b from king_dealitems where id=?\",$itemid)->row()->b)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$o_s_price=$this->db->query(\"select store_price from king_dealitems where id=?\",$itemid)->row()->store_price;\r\n\t\t\t\t\t\t\t$n_s_price=$o_s_price/$o_mrp*$n_mrp;\r\n\t\t\t\t\t\t\t$this->db->query(\"update king_dealitems set store_price=? where id=? limit 1\",array($n_s_price,$itemid));\r\n\t\t\t\t\t\t\t$o_n_price=$this->db->query(\"select nyp_price as p from king_dealitems where id=?\",$itemid)->row()->p;\r\n\t\t\t\t\t\t\t$n_n_price=$o_n_price/$o_mrp*$n_mrp;\r\n\t\t\t\t\t\t\t$this->db->query(\"update king_dealitems set nyp_price=? where id=? limit 1\",array($n_n_price,$itemid));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tforeach($this->db->query(\"select * from partner_deal_prices where itemid=?\",$itemid)->result_array() as $r)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$o_c_price=$r['customer_price'];\r\n\t\t\t\t\t\t\t$n_c_price=$o_c_price/$o_mrp*$n_mrp;\r\n\t\t\t\t\t\t\t$o_p_price=$r['partner_price'];\r\n\t\t\t\t\t\t\t$n_p_price=$o_p_price/$o_mrp*$n_mrp;\r\n\t\t\t\t\t\t\t$this->db->query(\"update partner_deal_prices set customer_price=?,partner_price=? where itemid=? and partner_id=?\",array($n_c_price,$n_p_price,$itemid,$r['partner_id']));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn $c;\r\n\t}", "function twentynineteen_child_wc_qty_save_product_field( $post_id ) {\n $val_min = trim( get_post_meta( $post_id, '_wc_min_qty_product', true ) );\n $new_min = sanitize_text_field( $_POST['_wc_min_qty_product'] );\n\n if ( $val_min != $new_min ) {\n update_post_meta( $post_id, '_wc_min_qty_product', $new_min );\n }\n }", "public function setSp3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->sp3 !== $v) {\n $this->sp3 = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_SP3] = true;\n }\n\n return $this;\n }", "public function setPromotion(Promotion $promotion)\n {\n $result = DB::select('SELECT fn_invoice_item_promo_eligible(?,?) AS eligible', [$this->id,\n $promotion->id]);\n\n if (!empty($result) && $result[0]->eligible != null) {\n $this->promotion_id = null;\n } else {\n $this->promotion_id = $promotion->id;\n $this->load('promotion');\n }\n $this->save();\n $this->_calculateTotal();\n }", "public function setLotNo3($lotNo3) {\n\t\t$this->_setLotNo3($lotNo3);\n\t\treturn $this;\n\t}", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "function set_woo_product_meta( $product_id = 0 ) {\n\n\t// Bail without our pieces.\n\tif ( empty( $product_id ) ) {\n\t\treturn false;\n\t}\n\n\t// Get my SKU and price.\n\t$product_sku = get_post_field( 'post_name', $product_id, 'raw' );\n\t$product_price = rand( 4, 199 ) . '.' . rand( 11, 99 );\n\n\t// Set the default args.\n\t$default_args = array(\n\t\t'total_sales' => '0',\n\t\t'_visibility' => 'visible',\n\t\t'_stock_status' => 'instock',\n\t\t'_tax_status' => 'taxable',\n\t\t'_tax_class' => '',\n\t\t'_downloadable' => 'no',\n\t\t'_download_limit' => '-1',\n\t\t'_download_expiry' => '-1',\n\t\t'_virtual' => 'no',\n\t\t'_purchase_note' => '',\n\t\t'_featured' => 'no',\n\t\t'_weight' => '',\n\t\t'_length' => '',\n\t\t'_width' => '',\n\t\t'_height' => '',\n\t\t'_sku' => sanitize_text_field( $product_sku ),\n\t\t'_product_attributes' => array(),\n\t\t'_price' => floatval( $product_price ),\n\t\t'_regular_price' => floatval( $product_price ),\n\t\t'_sale_price' => '',\n\t\t'_sale_price_dates_from' => '',\n\t\t'_sale_price_dates_to' => '',\n\t\t'_sold_individually' => '',\n\t\t'_manage_stock' => 'no',\n\t\t'_backorders' => 'no',\n\t\t'_stock' => '',\n\t);\n\n\t// Filter the available meta args we pass.\n\t$filtered_args = apply_filters( Core\\HOOK_PREFIX . 'generate_product_meta_args', array(), $product_id );\n\n\t// Set my product args.\n\t$product_args = wp_parse_args( $filtered_args, $default_args );\n\n\t// Update our keys.\n\tforeach ( $product_args as $meta_key => $meta_value ) {\n\t\tupdate_post_meta( $product_id, $meta_key, $meta_value );\n\t}\n\n\t// And that's it.\n\tdo_action( Core\\HOOK_PREFIX . 'after_product_meta_generated', $product_id, $product_args );\n}", "function update_refs($m1)\n {\n $this->reset();\n $this->where('M1', $m1['_id']);\n $this->Update(array('a' => $m1['a']));\n }", "public function saveProductRelations($product)\n {\n parent::saveProductRelations($product);\n\n $data = $product->getCustomOneLinkData();\n if (!is_null($data)) {\n $this->_getResource()->saveProductLinks($product, $data, self::LINK_TYPE_CUSTOMONE);\n }\n\n $data = $product->getCustomTwoLinkData();\n if (!is_null($data)) {\n $this->_getResource()->saveProductLinks($product, $data, self::LINK_TYPE_CUSTOMTWO);\n }\n }" ]
[ "0.70252234", "0.6469666", "0.5765087", "0.5450993", "0.52150345", "0.5193262", "0.48543662", "0.47928792", "0.47436592", "0.4726393", "0.46781075", "0.46581873", "0.4627926", "0.46244776", "0.45543486", "0.45359963", "0.45220807", "0.45003453", "0.44834942", "0.4471885", "0.44659144", "0.44560146", "0.44523153", "0.4436906", "0.4429749", "0.44276556", "0.4418481", "0.44007748", "0.4393638", "0.4382169", "0.4373376", "0.43679428", "0.43519932", "0.43470478", "0.4346251", "0.43323046", "0.43066198", "0.4303964", "0.43026966", "0.4295248", "0.42640153", "0.42559665", "0.4250978", "0.42360204", "0.42210045", "0.4213026", "0.41884765", "0.41776764", "0.41733018", "0.4137364", "0.41290048", "0.4124481", "0.41244638", "0.41091007", "0.41006356", "0.40880552", "0.40832323", "0.40729287", "0.40558088", "0.40525264", "0.40518042", "0.40500376", "0.40499118", "0.40419716", "0.40410554", "0.40404654", "0.40280384", "0.40268412", "0.40209508", "0.40164337", "0.40162894", "0.40076336", "0.39938903", "0.39915192", "0.39870563", "0.3986423", "0.39846036", "0.3983539", "0.39802825", "0.39796922", "0.39645433", "0.39550996", "0.3949964", "0.39458334", "0.39450648", "0.39409795", "0.39393976", "0.39313897", "0.39307627", "0.39288747", "0.39270085", "0.39248228", "0.3922187", "0.39204237", "0.3919923", "0.39173004", "0.39084855", "0.3907546", "0.3904401", "0.39039907" ]
0.60625577
2
setProdRelated2() Set the value of [prod_saveas] column.
public function setProdSaveas($v) { if ($v !== null) { $v = (int) $v; } if ($this->prod_saveas !== $v) { $this->prod_saveas = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_SAVEAS] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save_v2() {\n parent::save();\n }", "public function setProdRelated2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related2 !== $v) {\n $this->prod_related2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED2] = true;\n }\n\n return $this;\n }", "public function setPromotion($first,$second)\n {\n $this->promotion->setPromotion($first,$second);\n //product Id for identify products\n $this->promotion->setProductId($this->id);\n }", "public function getProdRelated2()\n {\n return $this->prod_related2;\n }", "protected function _afterSave()\n {\n $this->getLinkInstance()->saveProductRelations($this);\n $this->getTypeInstance(true)->save($this);\n\n /**\n * Product Options\n */\n $this->getOptionInstance()->setProduct($this)\n ->saveOptions();\n\n return parent::_afterSave();\n }", "public function save()\r\n {\r\n parent::save();\r\n $this->fcSavePromotionDetails($this->oModel, 'oxcategories__fcpromotionplanneractivepromotion');\r\n }", "public function save() {\n\t\tif (!is_null($this->getId())) {\n\t\t\t$sql = 'update cart_orders_products_attributes set ';\n\t\t} else {\n\t\t\t$sql = 'insert into cart_orders_products_attributes set ';\n\t\t}\n\t\tif (!is_null($this->getOrderid())) {\n\t\t\t$sql .= '`orders_id`=\"' . e($this->getOrderid()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProductid())) {\n\t\t\t$sql .= '`orders_products_id`=\"' . e($this->getProductid()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options())) {\n\t\t\t$sql .= '`products_options`=\"' . e($this->getProducts_options()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options_values())) {\n\t\t\t$sql .= '`products_options_values`=\"' . e($this->getProducts_options_values()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getOptions_values_price())) {\n\t\t\t$sql .= '`options_values_price`=\"' . e($this->getOptions_values_price()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getPrice_prefix())) {\n\t\t\t$sql .= '`price_prefix`=\"' . e($this->getPrice_prefix()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProduct_attribute_is_free())) {\n\t\t\t$sql .= '`product_attribute_is_free`=\"' . e($this->getProduct_attribute_is_free()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_attributes_weight())) {\n\t\t\t$sql .= '`products_attributes_weight`=\"' . e($this->getProducts_attributes_weight()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_attributes_weight_prefix())) {\n\t\t\t$sql .= '`products_attributes_weight_prefix`=\"' . e($this->getProducts_attributes_weight_prefix()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_discounted())) {\n\t\t\t$sql .= '`attributes_discounted`=\"' . e($this->getAttributes_discounted()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_base_included())) {\n\t\t\t$sql .= '`attributes_price_base_included`=\"' . e($this->getAttributes_price_base_included()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_onetime())) {\n\t\t\t$sql .= '`attributes_price_onetime`=\"' . e($this->getAttributes_price_onetime()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor())) {\n\t\t\t$sql .= '`attributes_price_factor`=\"' . e($this->getAttributes_price_factor()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor_offset())) {\n\t\t\t$sql .= '`attributes_price_factor_offset`=\"' . e($this->getAttributes_price_factor_offset()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor_onetime())) {\n\t\t\t$sql .= '`attributes_price_factor_onetime`=\"' . e($this->getAttributes_price_factor_onetime()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor_onetime_offset())) {\n\t\t\t$sql .= '`attributes_price_factor_onetime_offset`=\"' . e($this->getAttributes_price_factor_onetime_offset()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_qty_prices())) {\n\t\t\t$sql .= '`attributes_qty_prices`=\"' . e($this->getAttributes_qty_prices()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_qty_prices_onetime())) {\n\t\t\t$sql .= '`attributes_qty_prices_onetime`=\"' . e($this->getAttributes_qty_prices_onetime()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_words())) {\n\t\t\t$sql .= '`attributes_price_words`=\"' . e($this->getAttributes_price_words()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_words_free())) {\n\t\t\t$sql .= '`attributes_price_words_free`=\"' . e($this->getAttributes_price_words_free()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_letters())) {\n\t\t\t$sql .= '`attributes_price_letters`=\"' . e($this->getAttributes_price_letters()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_letters_free())) {\n\t\t\t$sql .= '`attributes_price_letters_free`=\"' . e($this->getAttributes_price_letters_free()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options_id())) {\n\t\t\t$sql .= '`products_options_id`=\"' . e($this->getProducts_options_id()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options_values_id())) {\n\t\t\t$sql .= '`products_options_values_id`=\"' . e($this->getProducts_options_values_id()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_prid())) {\n\t\t\t$sql .= '`products_prid`=\"' . e($this->getProducts_prid()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getId())) {\n\t\t\t$sql .= 'orders_products_attributes_id=\"' . e($this->getId()) . '\" where orders_products_attributes_id=\"' . e($this->getId()) . '\"';\n\t\t} else {\n\t\t\t$sql = trim($sql, ', ');\n\t\t}\n\t\tDatabase::singleton()->query($sql);\n\t\tif (is_null($this->getId())) {\n\t\t\t$this->setId(Database::singleton()->lastInsertedID());\n\t\t\tself::__construct($this->getId());\n\t\t}\n\t}", "public function saveProductRelations($product)\n {\n parent::saveProductRelations($product);\n\n $data = $product->getCustomOneLinkData();\n if (!is_null($data)) {\n $this->_getResource()->saveProductLinks($product, $data, self::LINK_TYPE_CUSTOMONE);\n }\n\n $data = $product->getCustomTwoLinkData();\n if (!is_null($data)) {\n $this->_getResource()->saveProductLinks($product, $data, self::LINK_TYPE_CUSTOMTWO);\n }\n }", "public function _setLotNo2($lotNo2) {\n\t\t$this->_lotNo2 = $lotNo2;\n\t}", "function cd_meta_box_garoe_prom_product_save( $post_id )\n{\n if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;\n \n // if our nonce isn't there, or we can't verify it, bail\n if( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'my_meta_box_nonce' ) ) return;\n \n // if our current user can't edit this post, bail\n if( !current_user_can( 'edit_post' ) ) return;\n \n // Make sure your data is set before trying to save it\n\t$chk = isset( $_POST['mb_garoe_prom_product'] ) && $_POST['mb_garoe_prom_product'] ? 'on' : 'off';\n update_post_meta( $post_id, 'mb_garoe_prom_product', $chk );\n}", "public function setValue2($value){\n $this->_value2 = $value;\n }", "protected function installStep2()\n {\n $provider = $this->app->em()->create('XF:ConnectedAccountProvider');\n $provider->bulkSet($this->getProviderDetails());\n $provider->save();\n }", "public function actualizar($var2, $condiciones) {\n\t\t//print_r($registro);\n\t\t$var_3 = array_intersect_key($var2, $this->columArt);\n\t\t//print_r($var_3);\n\n\t\t$oper2 = $this->pdo->_update('c004t_proceso', $var_3, $condiciones);\n\t\t//print_r($var_3);\n\t//echo 'hola1';\n\t\tif($oper2){\n\t\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn \"Ha ocurrido un error al intentar actualizar los datos del Documento.\"; //$oper1.$oper2;\n\t\t}\n }", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function setProdAlt2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt2 !== $v) {\n $this->prod_alt2 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT2] = true;\n }\n\n return $this;\n }", "public function catalogProductSaveBefore($productType,$product){\n /**\n * Check $productType has been set to 'property'\n */\n if ($productType == 'property') {\n /**\n * Getting Product's user Id\n */\n $customerId = $product->getUserid ();\n /**\n * Loading customer Details\n */\n $customer = Mage::getModel ( 'customer/customer' )->load ( $customerId );\n /**\n * checking empty or not\n */\n if ($customer->getId () == '') {\n $product->setCanSaveCustomOptions ( true );\n Mage::throwException ( Mage::helper ( 'adminhtml' )->__ ( 'User id was invalid' ) );\n }\n }\n }", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "function setBeneficiario2($beneficiario2) {\r\n $this->beneficiario2 = $beneficiario2;\r\n }", "public function afterSave()\n {\n // from the product. Otherwise we will end up with duplicated values.\n if ($this->getOriginal('inventory_management_method') === 'single' && $this->inventory_management_method === 'variant') {\n $this->forceReindex = true;\n $properties = $this->categories->flatMap->properties->filter(function ($q) {\n return $q->pivot->use_for_variants;\n })->pluck('id');\n\n PropertyValue\n ::where('product_id', $this->id)\n ->whereNull('variant_id')\n ->whereIn('property_id', $properties)\n ->delete();\n }\n\n if ($this->forceReindex) {\n $this->forceReindex = false;\n (new ProductObserver(app(Index::class)))->updated($this);\n }\n }", "protected function _afterSave()\n {\n $this->getCategoryInstance()->saveSalesrepRelation($this);\n\t\t$this->getRegionInstance()->saveSalesrepRelation($this);\n return parent::_afterSave();\n }", "public function save($save_related = TRUE)\n\t{\n\t\t$meta = $this->meta();\n\t\t\n\t\tif ($meta->validate_on_save)\n\t\t{\n\t\t\t$this->validate();\n\t\t}\n\t\t\n\t\t// Stuff that will be inserted\n\t\t$values = array();\n\t\t\n\t\t// These will be processed later\n\t\t$relations = array();\n\t\t\n\t\t// Run through the main table data\n\t\tforeach($meta->fields as $column => $field)\n\t\t{\t\t\t\n\t\t\t// Only add actual columns\n\t\t\tif ($field->in_db)\n\t\t\t{\t\n\t\t\t\tif (array_key_exists($column, $this->_changed))\n\t\t\t\t{\n\t\t\t\t\t$this->_original[$column] = $values[$field->column] = $field->save($this, $this->_changed[$column]);\n\t\t\t\t}\n\t\t\t\t// Set default data. Careful not to override unchanged data!\n\t\t\t\telse if ($this->_original[$column] == $meta->defaults[$column] && !$field->primary)\n\t\t\t\t{\n\t\t\t\t\t$this->_original[$column] = $values[$field->column] = $field->save($this, $field->default);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ($field instanceof Jelly_Behavior_Field_Saveable)\n\t\t\t{\n\t\t\t\t$relations[$column] = $field;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Remove the primary key if it's empty, SQLite accepts it but \n\t\t// most other databases won't if it's going to auto-increment\n\t\t// It is often inadvertently set by validate() when inserting\n\t\tif (empty($values[$meta->primary_key]))\n\t\t{\n\t\t\tunset($values[$meta->primary_key]);\n\t\t\tunset($this->_changed[$meta->primary_key]);\t\n\t\t}\n\t\t\n\t\t// Set this just in case it doesn't change with the insert/update\n\t\t$id = $this->id();\n\t\t\n\t\t// Check if we have a loaded object, in which case it's an update\n\t\tif ($this->_loaded)\n\t\t{\n\t\t\t// Do we even have to update anything in the main table?\n\t\t\tif ($values)\n\t\t\t{\n\t\t\t\tDB::update($meta->table)\n\t\t\t\t\t->set($values)\n\t\t\t\t\t->where($this->alias($meta->primary_key), '=', $this->id())\n\t\t\t\t\t->execute($meta->db);\n\n\t\t\t\t// Has id changed? \n\t\t\t\tif (isset($values[$meta->primary_key]))\n\t\t\t\t{\n\t\t\t\t\t$id = $values[$meta->primary_key];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlist($id) = DB::insert($meta->table)\n\t\t\t\t\t\t->columns(array_keys($values))\n\t\t\t\t\t\t->values($values)\n\t\t\t\t\t\t->execute($meta->db);\n\t\t}\n\t\t\n\t\t// Update the primary key\n\t\t$this->_original[$meta->primary_key] = $id;\n\t\t\n\t\tif ($save_related)\n\t\t{\n\t\t\t// Load the relations\n\t\t\tforeach($relations as $column => $field)\n\t\t\t{\t\t\t\t\n\t\t\t\tif (array_key_exists($column, $this->_changed))\n\t\t\t\t{\n\t\t\t\t\t$this->_original[$column] = $field->save($this, $this->_changed[$column]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// We're good!\n\t\t$this->_loaded = $this->_saved = TRUE;\n\t\t$this->_changed = array();\n\t\t\n\t\t// Delete the last queries\n\t\t$this->end();\n\t\t\n\t\treturn $this;\n\t}", "public function setRef2($ref2) {\n $this->_ref2 = $ref2;\n }", "public function setShipaddress2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->shipaddress2 !== $v) {\n $this->shipaddress2 = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_SHIPADDRESS2] = true;\n }\n\n return $this;\n }", "function save ()\n {\n parent::_save ( $this->relationships, $this->basepath ) ;\n }", "public function setRelatedBundlesForSimpleProducts($bundleProduct)\n {\n $selectionCollection = $bundleProduct->getTypeInstance(true)->getSelectionsCollection(\n $bundleProduct->getTypeInstance(true)->getOptionsIds($bundleProduct), $bundleProduct\n );\n foreach($selectionCollection as $option) {\n try {\n $_product = Mage::getModel('catalog/product')->load($option->getEntityId());\n if($_product->getId()) {\n $customLinkData = array();\n foreach($_product->getRelatedBundleCollection() as $customLink) {\n $customLinkData[$customLink->getLinkedProductId()]['position'] = $customLink->getPosition();\n }\n $customLinkData[$bundleProduct->getId()] = array('position' => 0);\n $_product->setRelatedBundleData($customLinkData)->save();\n Mage::getSingleton('adminhtml/session')->addSuccess('Added ' . $bundleProduct->getSku() . ' as a Related Bundle to product ' . $_product->getSku());\n }\n } catch(Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError('Could not set bundled product as Related Bundle for product ' . $option->getSku() . '; ' . $e->getMessage());\n }\n }\n\n }", "protected function _beforeSave()\r\n {\r\n \t// invoke the parent method\r\n \tparent::_beforeSave();\r\n // check the product type (has to be a package product)\r\n $typeInstance = $this->getTypeInstance(true);\r\n // check if a ID is available, if not the package is new\r\n if ($this->getId() == 0 &&\r\n $typeInstance instanceof Faett_Package_Model_Product_Type) {\r\n $this->_isNew = true;\r\n $this->setHasOptions(1);\r\n }\r\n }", "public function save()\n {\n // Quantity is reset to 1 if it's not specified, so make sure it's included\n if (count($this->updatedFields) AND !in_array('Quantity', $this->updatedFields)) {\n $this->updatedFields[] = 'Quantity';\n }\n\n // Need to save custom fields first\n $this->saveCustom();\n parent::save();\n }", "function save_custom_field( $post_id ) {\r\n $user = wp_get_current_user();\r\n $_warehouse_flag = isset( $_POST['_warehouse_flag'] ) ? $_POST['_warehouse_flag'] : '';\r\n $product = wc_get_product( $post_id );\r\n \r\n if($_warehouse_flag==1){\r\n\t $product->update_meta_data( '_warehouse_flag', 'A' );\r\n }\r\n if($_warehouse_flag==2){\r\n\t $product->update_meta_data( '_warehouse_flag', 'V' );\r\n }\r\n $_enable_warehouse = isset( $_POST['_enable_warehouse'] ) ? $_POST['_enable_warehouse'] : '0';\r\n \r\n \r\n $product->update_meta_data( '_enable_warehouse', $_enable_warehouse );\r\n if($_enable_warehouse==1){\r\n\t $categories = [ 'Warehouse Product'];\r\n\t wp_set_object_terms( $post_id, $categories, 'warehouses' );\r\n }\r\n else{\r\n\t $categories = [ 'Warehouse Product'];\r\n\t wp_set_object_terms( $post_id, null, 'warehouses' );\r\n }\r\n \r\n $product->save();\r\n \r\n \r\n}", "public function setProducto($pro){ $this->producto = $pro;}", "public function save() {\n\t return isset($this->product_id) ? $this->update() : $this->create();\n\t}", "function cd_meta_box_garoe_banner_prom_product_save( $post_id )\n{\n if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;\n \n // if our nonce isn't there, or we can't verify it, bail\n if( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'my_meta_box_nonce' ) ) return;\n \n // if our current user can't edit this post, bail\n if( !current_user_can( 'edit_post' ) ) return;\n \n // Make sure your data is set before trying to save it\n if( isset( $_POST['mb_garoe_banner_prom_product'] ) )\n update_post_meta( $post_id, 'mb_garoe_banner_prom_product', esc_attr( $_POST['mb_garoe_banner_prom_product'] ) );\n}", "public function setSp2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->sp2 !== $v) {\n $this->sp2 = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_SP2] = true;\n }\n\n return $this;\n }", "public function saveProductProfile($product_id,$metas){\n foreach($metas as $key=>$meta){\n foreach($meta as $v){\n if(isset($v['value'])){\n $model = new self;\n $model->product_id = $product_id;\n $model->profile_id = $key;\n $model->profile_value = $v['value'];\n if(isset($v['profile_image'])){\n $model->profile_image = $v['profile_image'];\n }else{\n $model->profile_image == \"\";\n }\n $model->save(false);\n }\n }\n }\n //save default product stock\n $colors = Product::model()->getAllcolorsById($product_id);\n $sizes = Product::model()->getAllsizesById($product_id);\n $arr = array();\n foreach($colors as $key => $color){\n foreach ($sizes as $size) {\n $arr[$key][$size->profile_value][] = $color->profile_value;\n }\n }\n foreach($arr as $value){\n foreach($value as $k=>$v){\n $model = new ProductStock;\n $model->product_id = $product_id;\n $model->color = $v[0];\n $model->size = $k;\n $model->save(false);\n }\n }\n return true;\n }", "public function setAddress2(string $address_2 = null) : CNabuDataObject\n {\n $this->setValue('nb_icontact_prospect_address_2', $address_2);\n \n return $this;\n }", "public function setLine2($line2)\n {\n $this->json()->line2 = $line2;\n }", "protected function afterSave() {\n Users::updateUserVendorPurchaser($this);\n return parent::afterSave();\n }", "public function updateAssociatedRecords()\n\t{\n\t\t$fkObject = $this->getContext()->getPropertyValue();\n\t\t$source = $this->getSourceRecord();\n\t\t$fkeys = $this->findForeignKeys($fkObject, $source);\n\t\tforeach($fkeys as $fKey => $srcKey)\n\t\t\t$fkObject->setColumnValue($fKey, $source->getColumnValue($srcKey));\n\t\treturn $fkObject->save();\n\t}", "public function setProductApproval($productApproval, $product, $productData, $productId) {\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n $product = $objectManager->create ( 'Magento\\Catalog\\Model\\Product' )->load ( $productId );\n if ($productApproval == 1) {\n $product->setStatus ( 1 );\n $product->setProductApproval(1);\n \n } else {\n $product->setProductApproval ( 0 );\n $product->setStatus(2);\n }\n \n $product->save();\n }", "public function beforeSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::MANY_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY\n ) {\n foreach ($this->owner->$rel['name'] as $m) {\n $m->save();\n }\n } elseif ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE) {\n $this->owner->{$rel['name']}->save();\n } elseif ($this->_settings[$rel['name']][0] === CActiveRecord::BELONGS_TO) {\n if ($this->owner->$rel['name'] === null) {\n // Set link ID attribute of owner model as null.\n $this->owner->setAttribute($this->_settings[$rel['name']][2], null);\n } else {\n // Save related model.\n $this->owner->{$rel['name']}->save();\n // Set link ID attribute of owner model as new relation ID.\n $this->owner->setAttribute($this->_settings[$rel['name']][2], $this->owner->{$rel['name']}->id);\n }\n }\n }\n }", "public function catalogProductSaveAfterEvent($observer) {\n if (Mage::registry('INVENTORY_SUPPLIER_CREATE_PRODUCT'))\n return;\n Mage::register('INVENTORY_SUPPLIER_CREATE_PRODUCT', true);\n\n $product = $observer->getProduct();\n $productId = $product->getId();\n\n if (in_array($product->getTypeId(), array('configurable', 'bundle', 'grouped')))\n return;\n if (Mage::getModel('admin/session')->getData('inventory_catalog_product_duplicate')) {\n $currentProductId = Mage::getModel('admin/session')->getData('inventory_catalog_product_duplicate');\n $supplierProducts = Mage::getModel('inventorypurchasing/supplier_product')->getCollection()\n ->addFieldToFilter('product_id', $currentProductId);\n foreach ($supplierProducts as $supplierProduct) {\n\n $newSupplierProduct = Mage::getModel('inventorypurchasing/supplier_product');\n $newSupplierProduct->setData('product_id', $productId)\n ->setData('supplier_id', $supplierProduct->getSupplierId())\n ->setData('cost', $supplierProduct->getCost())\n ->setData('discount', $supplierProduct->getDiscount())\n ->setData('tax', $supplierProduct->getTax())\n ->setData('supplier_sku', $supplierProduct->getSupplierSku())\n ->save();\n }\n Mage::getModel('admin/session')->setData('inventory_catalog_product_duplicate', false);\n }\n\n $post = Mage::app()->getRequest()->getPost();\n $isInStock = 0;\n\n if (isset($post['product']['stock_data']['is_in_stock']))\n $isInStock = $post['product']['stock_data']['is_in_stock'];\n if (isset($post['simple_product']))\n if (isset($post['simple_product']['stock_data']['is_in_stock']))\n $isInStock = $post['simple_product']['stock_data']['is_in_stock'];\n if (isset($post['inventory_select_supplier'])) {\n $suppliers = $post['inventory_select_supplier'];\n try {\n foreach ($suppliers as $supplier) {\n $warehouseProductModel = Mage::getModel('inventorypurchasing/supplier_product');\n $warehouseProductModel->setSupplierId($supplier['supplier_id'])\n ->setProductId($productId)\n ->setCost($supplier['cost'])\n ->setDiscount($supplier['discount'])\n ->setTax($supplier['tax'])\n ->setSupplierSku($supplier['supplier_sku'])\n ->save();\n }\n } catch (Exception $e) {\n Mage::log($e->getMessage(), null, 'inventory_management.log');\n }\n }\n }", "public function setId2($var)\n {\n GPBUtil::checkString($var, True);\n $this->id2 = $var;\n\n return $this;\n }", "public function catalog_product_save_after($observer)\n {\n $_product = $observer->getProduct();\n $specialPrice = null;\n\n if($_product->getTypeId() == 'grouped') {\n $arrayPrices = array();\n\n $associatedProducts = $_product->getTypeInstance(true)->getAssociatedProducts($_product);\n foreach($associatedProducts as $associatedProduct) {\n $arrayPrices[] = round($associatedProduct->getPrice(), 2);\n }\n asort($arrayPrices);\n $price = array_shift($arrayPrices);\n } else {\n if($_product->getTypeId() == 'bundle') {\n //Zend_Debug::dump($_product->getData());exit;\n $selectionCollection = $_product->getTypeInstance(true)->getSelectionsCollection(\n $_product->getTypeInstance(true)->getOptionsIds($_product), $_product\n );\n\n foreach($selectionCollection as $option) {\n $bundled_prices[]=$option->getPrice();\n }\n\n sort($bundled_prices);\n\n $min_price=$bundled_prices[0];\n $price = $min_price;\n } else {\n $price = $_product->getData('price');\n $specialPrice = $_product->getData('special_price');\n }\n\n }\n\n\n if ($specialPrice != null) {\n $santanderPriceMonth = Mage::helper('santander')->getPricePerMonth($specialPrice);\n } else {\n $santanderPriceMonth = Mage::helper('santander')->getPricePerMonth($price);\n }\n Mage::getSingleton('catalog/product_action')->updateAttributes(array($_product->getEntityId()), array('santanderpricemonth' => \"$santanderPriceMonth\"), 1);\n }", "function onSave()\r\n\t{\r\n\t\t$params\t= JRequest::getVar( 'params', array(), 'post', 'array' );\r\n\t\t$details\t= JRequest::getVar( 'details', array(), 'post', 'array' );\r\n\t\t$element =& $this->getElement();\r\n\t\t//load join based on this element id\r\n\t\t$join =& JTable::getInstance( 'Join', 'Table' );\r\n\t\t$origKey = $join->_tbl_key;\r\n\t\t$join->_tbl_key = \"element_id\";\r\n\t\t$join->load( $this->_id );\r\n\t\t$join->_tbl_key = $origKey;\r\n\t\t$join->table_join = '#__users';\r\n\t\t$join->join_type = 'left';\r\n\t\t$join->group_id = $details['group_id'];\r\n\t\t$join->table_key = str_replace('`', '', $element->name);\r\n\t\t$join->table_join_key = 'id';\r\n\t\t$join->join_from_table = '';\r\n\t\t$join->attribs = \"join-label=\" . $params['my_table_data'] . \"\\n\";\r\n\t\t$join->store();\r\n\t}", "public function setEditorial2($v)\n\t{\n\n\t\tif ($this->editorial2 !== $v || $v === false) {\n\t\t\t$this->editorial2 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL2;\n\t\t}\n\n\t}", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "protected function _postSaveRelatedRecords(AdapterInterface $connection, $related) {}", "function woocommerce_product_custom_fields_save($post_id) {\n $woocommerce_custom_product_number_field = $_POST['sharethewarmth_selling_goal'];\n if (!empty($woocommerce_custom_product_number_field)) {\n update_post_meta($post_id, 'sharethewarmth_selling_goal', esc_attr($woocommerce_custom_product_number_field));\n }\n}", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "function setSyncItemsCodeProduct()\n {\n }", "function setSyncProdDesc()\n {\n }", "public function beforeSave()\n {\n $value = $this->getValue();\n if (is_array($value)) {\n $value = $this->_helper->makeStorableArrayFieldValue($value);\n }\n \n $this->setValue($value);\n }", "public function save()\n {\n $this->_validateModifiable();\n\n if($this->isNew())\n {\n $this->_getDataSource()->create($this);\n }\n else\n {\n $this->_getDataSource()->update($this);\n }\n\n $this->_saveRelations();\n $this->_setNew(false);\n }", "public function setProdRelated($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related !== $v) {\n $this->prod_related = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED] = true;\n }\n\n return $this;\n }", "protected function _beforeSave()\n {\n $value = $this->getValue();\n $value = Mage::helper('mail/connectfields')->makeStorableArrayFieldValue($value);\n $this->setValue($value);\n }", "public function saveTrustee($user, $id_1, $id_2) {\n\t\t# Assume User is Logged in, $user -> User Object\n\t\t$this->_sql->raw_query('INSERT INTO epi_trustees VALUES (NULL, '. $user->_id .', '. $id_1 .', '. $id_2 .') ON DUPLICATE KEY UPDATE primary = '. $id_1 .', secondary = '. $id_2 .';');\n\t}", "protected function hook_afterSave(){}", "protected function _preSaveRelatedRecords(AdapterInterface $connection, $related) {}", "public function beforeSave($object)\n {\n \n \t$write = Mage::getSingleton('core/resource')->getConnection('core_write');\n \t$product_id = $object->getData('entity_id');\n \t\n \t$code = $object->getData($this->getAttribute()->getAttributeCode());\n \t$table = Mage::getSingleton('core/resource')->getTableName('aw_fps');\n if($code == 0) {\n $object->unsData($this->getAttribute()->getAttributeCode());\n //remove product ID\n $write->query(\"DELETE FROM $table WHERE product_id='$product_id'\");\n }\n else{\n \t//add project ID to the rotation\n \t$r = $write->fetchRow(\"SELECT * FROM $table WHERE product_id='$product_id'\");\n \tif(!$r)\n \t\t\t$write->query(\"INSERT INTO $table (product_id) VALUE ($product_id)\");\n }\n }", "public function setShntkey2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->shntkey2 !== $v) {\n $this->shntkey2 = $v;\n $this->modifiedColumns[SalesHistoryNotesTableMap::COL_SHNTKEY2] = true;\n }\n\n return $this;\n }", "public function save($data)\n {\n /* Prices */\n $data['price_low'] = preg_replace(\"/[^0-9\\.]/\", \"\", $data['price_low']);\n $data['special_price_low'] = preg_replace(\"/[^0-9\\.]/\", \"\", $data['special_price_low']);\n\n /* Attributes */\n $attributes = array();\n foreach ($data['attributes']['title'] as $key => $title) {\n $attributes[] = array(\n 'title' => str_replace('\"', '\\\"', $title),\n 'value' => str_replace('\"', '\\\"', $data['attributes']['value'][$key]),\n 'is_variation' => ($data['attributes']['is_variation'][$key] === 'on')\n );\n }\n\n $data['attributes'] = $attributes;\n\n /* Variations */\n if (!empty($data['variations'])) {\n $variations = array();\n foreach ($data['variations']['name'] as $key => $name) {\n $variations[] = array(\n 'name' => str_replace('\"', '\\\"', $name),\n 'available_quantity' => $data['variations']['available_quantity'][$key],\n 'price' => $data['variations']['price'][$key],\n 'special_price' => $data['variations']['special_price'][$key],\n 'advertised' => $data['variations']['advertised'][$key],\n 'final_price' => $data['variations']['final_price'][$key],\n 'image' => $data['variations']['image'][$key]\n );\n }\n\n $data['variations'] = $variations;\n }\n \n $data['short_description'] = str_replace('\"', '\\\"', $data['short_description']);\n $data['description'] = str_replace('\"', '\\\"', $data['description']);\n $data['short_description'] = str_replace(PHP_EOL, '<br />', $data['short_description']);\n $data['description'] = str_replace(PHP_EOL, '<br />', $data['description']);\n \n $productId = $data['product_id'];\n $dataJson = str_replace(\"'\", \"\\'\", json_encode($data));\n \n $query = \"UPDATE products SET processed_data = '{$dataJson}', last_status_change = NOW() WHERE id = {$productId}\";\n $this->query($query);\n\n $errors = $this->getLastError();\n if ($errors) {\n die($errors);\n }\n \n return $this;\n }", "function dbSaveProduct( $aForm, $bExist = null ){\n global $oFF;\n extract( $aForm );\n $oFF->setRow( Array( $iProduct, $sName, $fPrice, $sDescriptionShort, $iStatus, $iPosition ) );\n $oFF->setData( Array( 5, 1, 0, 2, 3, 4 ) );\n if( isset( $bExist ) )\n $oFF->changeInFile( DB_PRODUCTS, $iProduct, 0, 'sort' );\n else\n $oFF->addToFile( DB_PRODUCTS, 'sort' );\n }", "public function setProduct(Product $product);", "public function saveProductRelation($product, $data)\n {\n if (!is_array($data)) {\n $data = array();\n }\n $deleteCondition = $this->_getWriteAdapter()->quoteInto('product_id=?', $product->getId());\n $this->_getWriteAdapter()->delete($this->getMainTable(), $deleteCondition);\n\n foreach ($data as $traineeId => $info) {\n $this->_getWriteAdapter()->insert(\n $this->getMainTable(),\n array(\n 'trainee_id' => $traineeId,\n 'product_id' => $product->getId(),\n 'position' => @$info['position']\n )\n );\n }\n return $this;\n }", "public function setAddress2($address2)\r\n {\r\n $this->_address2 = $address2;\r\n }", "protected function _afterSave() {\r\n $enabled = $this->getData('groups/ordersgrid/fields/enabled/value');\r\n $value = $enabled ? 0 : 1;\r\n try {\r\n Mage::getModel('core/config_data')\r\n ->load(self::ENABLED_MENU_ORDERS, 'path')\r\n ->setValue($value)\r\n ->setPath(self::ENABLED_MENU_ORDERS)\r\n ->save();\r\n \r\n // check db setup\r\n $resource = Mage::getSingleton('core/resource');\r\n $connection = $resource->getConnection('core_write');\r\n if (!$connection->tableColumnExists($resource->getTableName('sales/order'), 'order_group_id')) {\r\n $connection->delete($resource->getTableName('core/resource'), \"code = 'mageworx_ordersgrid_setup'\");\r\n }\r\n } catch (Exception $e) {\r\n Mage::logException($e);\r\n }\r\n }", "public function save()\n {\n $lastInsertedId = $this->executeQuery(\"INSERT INTO eav_products \n (sku,name, price, type, custom_attributes) \n VALUES \n (?,?,?,?,?)\", array(\n $this->getSku(),\n $this->getName(),\n $this->getPrice(),\n $this->getType(),\n \"{\\\"size\\\":{$this->getSize()}}\"\n ));\n\n if ($lastInsertedId > 0) {\n $this->setId($lastInsertedId);\n return $lastInsertedId;\n }\n return null;\n }", "function save() \n\t{\n\t\t$conn = new Conexion();\n\t\tif ($this->id<>0) \n\t\t\t{ \n\n\t\t$sql = $conn->prepare(\"update productos set idMoneda = '$this->idMoneda', idCategoria = '$this->idCategoria', idSubCategoria = '$this->idSubCategoria', descripcion = '$this->descripcion', fechaCarga = '$this->fechaCarga', idUsuario = '$this->idUsuario', activo = '$this->activo', aviso_stock = '$this->aviso_stock', precio = '$this->precio', desc1 = '$this->desc1', desc2 = '$this->desc2', desc3 = '$this->desc3', utilidad = '$this->utilidad', iva = '$this->iva' where id='$this->id'\");\n\t\t$sql->execute();\n\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t$sql = $conn->prepare(\"insert into productos values (null, '$this->idMoneda', '$this->idCategoria','$this->idSubCategoria', '$this->descripcion', '$this->fechaCarga', '$this->idUsuario', '$this->activo', '$this->aviso_stock', '$this->precio', '$this->desc1', '$this->desc2', '$this->desc3', '$this->utilidad', '$this->iva')\");\n\t\t\t$sql->execute();\n\t\t\t$this->id = $conn->lastInsertId();\n\n\t\t\t} \n\t\t$sql=null;\n\t\t$conn=null;\t\n\t}", "public function save()\n {\n parent::save();\n\n $myConfig = $this->getConfig();\n $soxId = $this->getEditObjectId();\n\n $aParams = oxRegistry::getConfig()->getRequestParameter(\"editval\");\n\n\n // #918 S\n // checkbox handling\n $aParams['oxshops__oxactive'] = (isset($aParams['oxshops__oxactive']) && $aParams['oxshops__oxactive'] == true) ? 1 : 0;\n $aParams['oxshops__oxproductive'] = (isset($aParams['oxshops__oxproductive']) && $aParams['oxshops__oxproductive'] == true) ? 1 : 0;\n\n $isubjlang = oxRegistry::getConfig()->getRequestParameter(\"subjlang\");\n $iLang = ($isubjlang && $isubjlang > 0) ? $isubjlang : 0;\n\n /** @var oxShop $oShop */\n $oShop = oxNew(\"oxshop\");\n if ($soxId != \"-1\") {\n $oShop->loadInLang($iLang, $soxId);\n } else {\n $aParams['oxshops__oxid'] = null;\n }\n\n if ($aParams['oxshops__oxsmtp']) {\n $aParams['oxshops__oxsmtp'] = trim($aParams['oxshops__oxsmtp']);\n }\n\n $oShop->setLanguage(0);\n $oShop->assign($aParams);\n $oShop->setLanguage($iLang);\n\n if (($sNewSMPTPass = oxRegistry::getConfig()->getRequestParameter(\"oxsmtppwd\"))) {\n $oShop->oxshops__oxsmtppwd->setValue($sNewSMPTPass == '-' ? \"\" : $sNewSMPTPass);\n }\n\n\n try {\n $oShop->save();\n } catch (oxException $e) {\n\n return;\n }\n\n $this->_aViewData[\"updatelist\"] = \"1\";\n\n\n oxRegistry::getSession()->setVariable(\"actshop\", $soxId);\n }", "public function setStreet2(string $street2): void\n {\n $this->_street2 = $street2;\n }", "public function saveAction()\n {\n if ($data = $this->getRequest()->getPost('handovertwo')) {\n try {\n $handovertwo = $this->_initHandovertwo();\n $handovertwo->addData($data);\n $handovertwo->save();\n $add = '';\n if($this->getRequest()->getParam('popup')){\n $add = '<script>window.close()</script>';\n }\n Mage::getSingleton('adminhtml/session')->addSuccess(\n Mage::helper('bs_handover')->__('Minutes of Handover V2 was successfully saved. %s', $add)\n );\n Mage::getSingleton('adminhtml/session')->setFormData(false);\n if ($this->getRequest()->getParam('back')) {\n $this->_redirect('*/*/edit', array('id' => $handovertwo->getId()));\n return;\n }\n $this->_redirect('*/*/');\n return;\n } catch (Mage_Core_Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n Mage::getSingleton('adminhtml/session')->setHandovertwoData($data);\n $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));\n return;\n } catch (Exception $e) {\n Mage::logException($e);\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_handover')->__('There was a problem saving the minutes of handover v2.')\n );\n Mage::getSingleton('adminhtml/session')->setHandovertwoData($data);\n $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));\n return;\n }\n }\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_handover')->__('Unable to find minutes of handover v2 to save.')\n );\n $this->_redirect('*/*/');\n }", "public function hookActionProductSave($params)\n {\n $id_product = $params['id_product'];\n if (!Db::getInstance()->update('product', array('is_eticket'=> pSQL(Tools::getValue('is_eticket'))), 'id_product = ' .$id_product)) {\n $this->context->controller->_errors[] = Tools::displayError('Error: ').mysql_error();\n }\n }", "function set_product_sequence($voucher_id, $prod_id, $seq)\n\t{\n\t\t$this->db->where(array('voucher_id'=>$voucher_id, 'product_id'=>$prod_id));\n\t\t$this->db->update('vouchers_products', array('sequence'=>$seq));\n\t}", "function ajouteProdToRub() { \r\n\t\tglobal $R0;\r\n\t\tlist($table,$tableRel,$tableProd,$relRubId_rubId,$relProdId_prodId,$catTitre,$prodTitre) = explode(':',$R0['childRel']);\r\n\t\tlist($relRubId,$rubId) = explode('=',$relRubId_rubId);\r\n\t\tlist($relProdId,$prodId) = explode('=',$relProdId_prodId);\r\n\r\n\t\t$C = new SQL($tableRel);\r\n\t\t$champs = array(array($relRubId,$relProdId,'ordre'),array($this->rub_id,intval($_POST[$prodId]),'999')); // Array champsName // Array champsVal\r\n\t\t$C->insertSql($champs,1);\r\n\t\t$this->info = 'ajout';\r\n\t}", "protected function saveUpdateProducts()\r\n\t{\r\n\t\tif (count($this->newProducts) > 0) {\r\n\t\t\t// inserir as novas\r\n\t\t\tforeach ($this->newProducts as $product) {\r\n\t\t\t\t$result = $this->client->catalogProductUpdate($this->sessionid, $product->sku, $product);\r\n\t\t\t\t$this->log->addInfo('updated', array(\"sku\" => $product->sku, \"result\" => $result));\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->newProducts = array();\r\n\t}", "public function edit_3Action(Produits_2 $produit2)\n {\n $user = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n \n $produits = $em->getRepository('KountacBundle:Produits_3')->getProduct_3($produit2);\n \n return $this->render('produits/edit_3.html.twig', array(\n 'produit2' => $produit2,\n 'produits' => $produits,\n 'user' => $user,\n ));\n }", "public function save()\n {\n $oConfig = $this->_oFcpoHelper->fcpoGetConfig();\n $blPresaveOrder = (bool) $oConfig->getConfigParam('blFCPOPresaveOrder');\n if ($blPresaveOrder === false || $this->isPayOnePaymentType() === false) {\n return parent::save();\n }\n\n if ($this->oxorder__oxshopid->value === false) {\n $oShop = $oConfig->getActiveShop();\n $this->oxorder__oxshopid = new oxField($oShop->getId());\n }\n\n if (( $blSave = oxBase::save())) {\n // saving order articles\n $oOrderArticles = $this->getOrderArticles();\n if ($oOrderArticles && count($oOrderArticles) > 0) {\n foreach ($oOrderArticles as $oOrderArticle) {\n $oOrderArticle->fcpoSetFinishingSave($this->_blFinishingSave);\n $oOrderArticle->save();\n }\n }\n }\n\n return $blSave;\n }", "function setSyncProdName()\n {\n }", "public function salvarAtributo($valor){\n if($this->obterIdOpcao($valor)){\n return false; \n }\n $attribute_code = Mage::getStoreConfig('cores/config/codigo_cor'); \n $attribute_model = Mage::getModel('eav/entity_attribute');\n //$attribute_options_model= Mage::getModel('eav/entity_attribute_source_table') ;\n $attribute_code = $attribute_model->getIdByCode('catalog_product', $attribute_code);\n $attribute = $attribute_model->load($attribute_code);\n //$attribute_table = $attribute_options_model->setAttribute($attribute);\n //$options = $attribute_options_model->getAllOptions(false);\n $value['option'] = array($valor,$valor);\n $result = array('value' => $value);\n $attribute->setData('option',$result);\n return $attribute->save();\n }", "public function setAddress2($fv_address2)\n {\n \tif(!empty($fv_address2))\n \t{\n \treturn $this->fv_address2 = $fv_address2;\n \t}\n \t$this->fv_error_message = $this->fv_error_message .'<br> - Direccion 2 '.ERROR_NULL;\n return $this->fv_address2=null;\n }", "public function setMagia2Attribute($value) {\n $this->attributes['magia2'] = $this->verificaAtributo($value, true);\n }", "function save_product_variation( $variation_id, $i ){\n\n\tif ( isset( $_POST['variation_split_shipping_payments'][$i] ) ) {\n\t\t// _charge_shipping_on_first\n\t\t// sanitize data in way that makes sense for your data type\n\t\t$split_shipping_payments = ( trim( $_POST['variation_split_shipping_payments'][$i] ) === '' ) ? '' : sanitize_title( $_POST['variation_split_shipping_payments'][$i] );\n\t\tupdate_post_meta( $variation_id, '_split_shipping_payments', $split_shipping_payments );\n\t}\n\n\n // change description for variable product\n\tif ( isset( $_POST['variation_custom_description'][$i] ) ) {\n\t\t// sanitize data in way that makes sense for your data type\n\t\t$custom_data = $_POST['variation_custom_description'][$i];\n\t\tupdate_post_meta( $variation_id, '_custom_description', $custom_data );\n\t}\n\n}", "private function schema2()\n {\n $sql = \"ALTER TABLE teams CHANGE deletable_xp deletable_xp TINYINT(1) NOT NULL DEFAULT '1'\";\n if (!$this->pdo->q($sql)) {\n throw new Exception('Problem updating!');\n }\n }", "public function setV2Id(?string $v2Id): void\n {\n $this->v2Id = $v2Id;\n }", "public function setV2Id(?string $v2Id): void\n {\n $this->v2Id = $v2Id;\n }", "public function getProdSaveas()\n {\n return $this->prod_saveas;\n }", "public\tfunction\tsave()\n\t\t{\n\t\t\tif(!$this->_related)\t$this->setRelations();\n\t\t\t\n\t\t\tif(!$this->_saved) {\n\t\t\t\t$access\t=\t$this->_database->getAccess();\n\t\t\t\t$access->query($this->getQuery('save'), array_values($this->_values));\n\t\t\t\t\n\t\t\t\tif($access->errorCode() == '00000') {\n\t\t\t\t\tif($this->getValue($this->_primary) === NULL) {\n\t\t\t\t\t\t$this->setValue($this->_primary, $access->lastInsertId());\n\t\t\t\t\t}\n\t\t\t\t\t$this->_saved\t=\ttrue;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$loop\t=\tfalse;\n\t\t\tif($this->_saved) {\t\t\t\n\t\t\t\t//\tSave relations\n\t\t\t\tforeach($this->_relations as $offset => $relation) {\n\t\t\t\t\tif($relation['local'] == $this->_primary) {\n\t\t\t\t\t\t$relation['record']->setValue($relation['foreign'], $this->getValue($relation['local']));\n\t\t\t\t\t}\n\t\t\t\t\tif(!$relation['record']->_saved) {\n\t\t\t\t\t\tif($relation['record']->save()) {\n\t\t\t\t\t\t\tif($relation['record']->getValue($relation['foreign']) != $this->getValue($relation['local'])) {\n\t\t\t\t\t\t\t\t$this->setValue($relation['local'], $relation['record']->getValue($relation['foreign']));\n\t\t\t\t\t\t\t\t$loop\t=\ttrue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn\t$loop ? $this->save() : true;\n\t\t}", "public function setAddress2($address2)\n {\n $this->address2 = $address2;\n }", "public function save($entity, $data = array()) {\n // if association hold id not actual object, \n // then find that object to set the corresponding property with it\n $classMetadata = $this->entityManager->getClassMetadata($this->entityName);\n $associationNames = $classMetadata->getAssociationNames();\n foreach ($associationNames as $associationName) {\n if (isset($data[$associationName])) {\n $currentValue = $data[$associationName];\n } else {\n $currentValue = $entity->$associationName;\n }\n if (!is_object($currentValue) && is_numeric($currentValue)) {\n $targetClass = $classMetadata->getAssociationTargetClass($associationName);\n $currentValue = $this->find($targetClass, $currentValue);\n if (isset($data[$associationName])) {\n $data[$associationName] = $currentValue;\n } else {\n $entity->$associationName = $currentValue;\n }\n }\n }\n\n if (!empty($data) && method_exists($entity, 'exchangeArray')) {\n $entity->exchangeArray($data);\n }\n $this->entityManager->persist($entity);\n $this->entityManager->flush($entity);\n }", "public function product_update_post()\n\t\t\t\t{\n\t\t\t\t}", "function setSyncProdWeight()\n {\n }", "protected function _postSave()\r\n\t{\r\n\t}", "public function save($oneOrManyEntities): void;", "function save(){\n\t\tglobal $sql;\n\t\tsettype($newsid,'int');\n\t\tsettype($linkid,'int');\n\t\tsettype($productid,'int');\t\t\n\t\tif($this->type=='news'){\n\t\t\t$sql = 'INSERT INTO `'.DB_TABLE_PREFIX.'newslink`(`newsid`,`linkid`,`ctrl`) VALUES('.$this->newsid.','.$this->linkid.','.$this->ctrl.')';\t\t\t\n\t\t}else{\n\t\t\t$sql = 'INSERT INTO `'.DB_TABLE_PREFIX.'productnewslink`(`productid`,`newsid`,`ctrl`,`from`) VALUES('.$this->productid.','.$this->newsid.','.$this->ctrl.','.$this->from.')';\n\t\t}\t\t\n\t\t_trace($sql);\t\t\t\n\t\tmysql_query($sql);\n\t}", "function changeProduct($cart_table_id,$true_or_false)\n {\n $this->pdelivery[$cart_table_id]=$true_or_false; //change product group delivery\n }", "protected function onSave() {\n // Assign the detail data to an instance variable for ease of use.\n $this->wcData = $this->getDetailData();\n\n if (!$this->wcData || !$this->getSaverData()->getPostId() ||\n $this->getSaverData()->getWpPostData()['post_type'] !== 'product') {\n return;\n }\n\n // Make sure everything is valid before saving them.\n $this->wcData->validateData();\n\n try {\n // Create the product\n $this->product = $this->createProduct();\n\n } catch (StopSavingException $e) {\n // Stop saving if there was an error creating the product.\n Informer::addError(_wpcc('Product could not be saved.') . ' ' . $e->getMessage())\n ->setException($e)\n ->addAsLog();\n\n return;\n }\n\n // Prepare the product below.\n // NOTE: Save all the data existing in $this->wcData. Handle things considering if this is a recrawl and/or\n // first page.\n\n // Set the product gallery\n $this->setProductGallery();\n\n // Do the things that should be done just in the first page\n $productClass = get_class($this->product->getProduct());\n switch ($productClass) {\n case WC_Product_Simple::class:\n $this->prepareSimpleProduct();\n break;\n\n case WC_Product_External::class:\n $this->prepareExternalProduct();\n break;\n\n default:\n // Stop saving otherwise.\n throw new StopSavingException(sprintf('%1$s cannot be saved', $productClass));\n }\n\n // Save the product\n $this->product->save();\n }", "public function storeBepadoAttributes($productId, $shopId, $sourceId)\n {\n $sql = 'INSERT INTO shop_bepado_attributes (p_id, sba_bepado_shop_id, sba_bepado_source_id)\n VALUES (?, ?, ?)\n ON DUPLICATE KEY UPDATE sba_bepado_shop_id = VALUES(sba_bepado_shop_id),\n sba_bepado_source_id = VALUES(sba_bepado_source_id)';\n $this->conn->executeUpdate($sql, array($productId, $shopId, $sourceId));\n }", "public function updateProductProfile($product_id,$metas){\n self::model()->deleteAllByAttributes(array('product_id'=>$product_id));\n $this->saveProductProfile($product_id,$metas);\n }", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'event_type_id' => $this->event_type_id,\n 'user_1_id' => $this->user_1_id,\n 'user_2_id' => $this->user_2_id,\n 'user_1_name' => $this->user_1_name,\n 'user_2_name' => $this->user_2_name,\n 'product_1_name' => $this->product_1_name,\n 'product_2_name' => $this->product_2_name,\n 'data_1' => $this->data_1,\n 'data_2' => $this->data_2\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "function setFieldLinks2($fieldLinks2) {\n if ($fieldLinks2 !== ($oldFieldLinks2 = $this->fieldLinks2)) {\n if ($this->immutable) throw self::immutableException();\n if (is_array($fieldLinks2)) {\n if (!$fieldLinks2) throw new Ac_E_InvalidCall(\"\\$fieldLinks2 must not be empty\");\n $this->fieldLinksRev2 = array_flip($fieldLinks2);\n } elseif ($fieldLinks2 === false) {\n $this->fieldLinksRev2 = false;\n } else {\n throw Ac_E_InvalidCall::wrongType('fieldLinks2', $fieldLinks2, array('array', 'false'));\n }\n $this->destNNIdsRelation = false;\n $this->fieldLinks2 = $fieldLinks2;\n }\n }" ]
[ "0.6140576", "0.6007264", "0.5767776", "0.56198347", "0.54226947", "0.51909983", "0.5118963", "0.5090532", "0.5086997", "0.50826144", "0.5028246", "0.4980704", "0.49501082", "0.49391654", "0.49317", "0.49031517", "0.48863786", "0.48782113", "0.48678294", "0.48426658", "0.4835693", "0.4832822", "0.47879055", "0.4778736", "0.47735023", "0.47621557", "0.475665", "0.47524852", "0.47253808", "0.47237572", "0.4717435", "0.47122312", "0.4708863", "0.47027245", "0.47010216", "0.46984813", "0.46866247", "0.46828333", "0.46731415", "0.46710974", "0.4654327", "0.4639256", "0.46262866", "0.462511", "0.46235982", "0.46143752", "0.46018538", "0.46009022", "0.4594361", "0.45815834", "0.45785463", "0.45671514", "0.45621723", "0.4555094", "0.4547613", "0.45414087", "0.45339453", "0.4518788", "0.45158583", "0.45157945", "0.45117605", "0.45090175", "0.4506682", "0.44959712", "0.44816586", "0.44811413", "0.44763985", "0.44708437", "0.44585252", "0.44576555", "0.44574785", "0.44552746", "0.44480026", "0.4446761", "0.44339934", "0.44263107", "0.4425683", "0.4421296", "0.44173875", "0.44153675", "0.44130135", "0.44123185", "0.44094336", "0.4407618", "0.4407618", "0.44035357", "0.44004837", "0.43971083", "0.4392866", "0.43823856", "0.43822584", "0.43769234", "0.43747103", "0.43742156", "0.43731928", "0.43678138", "0.4362119", "0.4355857", "0.4352657", "0.43495455" ]
0.523017
5
setProdSaveas() Set the value of [prod_aircraftreg] column.
public function setProdAircraftreg($v) { if ($v !== null) { $v = (string) $v; } if ($this->prod_aircraftreg !== $v) { $this->prod_aircraftreg = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_AIRCRAFTREG] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdSaveas($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_saveas !== $v) {\n $this->prod_saveas = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_SAVEAS] = true;\n }\n\n return $this;\n }", "public function getProdSaveas()\n {\n return $this->prod_saveas;\n }", "private function _saveSettingsProducts()\r\n\t{\r\n\t\tif (!isset($_POST['paypal_usa_products']) && !isset($_POST['paypal_usa_express_checkout']))\r\n\t\t\t$this->_error[] = $this->l('You must choose at least one PayPal product to enable.');\r\n\t\telse\r\n\t\t{\r\n\t\t\tforeach (array(1 => 'PAYPAL_USA_PAYMENT_STANDARD', 2 => 'PAYPAL_USA_PAYMENT_ADVANCED', 3 => 'PAYPAL_USA_PAYFLOW_LINK') as $paypal_usa_product_id => $paypal_usa_product)\r\n\t\t\t\tConfiguration::updateValue($paypal_usa_product, (isset($_POST['paypal_usa_products']) && $_POST['paypal_usa_products'] == $paypal_usa_product_id) ? 1 : null);\r\n\r\n\t\t\tConfiguration::updateValue('PAYPAL_USA_EXPRESS_CHECKOUT', isset($_POST['paypal_usa_express_checkout']));\r\n\r\n\t\t\tif (Configuration::get('PAYPAL_USA_EXPRESS_CHECKOUT') && !Configuration::get('PAYPAL_USA_EXP_CHK_PRODUCT') && !Configuration::get('PAYPAL_USA_EXP_CHK_SHOPPING_CART'))\r\n\t\t\t\tConfiguration::updateValue('PAYPAL_USA_EXP_CHK_PRODUCT', 1);\r\n\r\n\t\t\t$this->_validation[] = $this->l('Congratulations, your configuration was updated successfully');\r\n\t\t}\r\n\t}", "public function save() \n {\n $oMapping = $this->fcpoGetInstance('fcpoerrormapping');\n $aGeneralMappings = $this->_oFcpoHelper->fcpoGetRequestParameter(\"editval\");\n if (is_array($aGeneralMappings) && count($aGeneralMappings) > 0) {\n $oMapping->fcpoUpdateMappings($aGeneralMappings, 'general');\n }\n }", "public function setResaca($resaca){\n $this->resaca=$resaca;\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "function salva()\n\t{\n\t\trestauraConObj($this->mapa,$this->postgis_mapa);\n\t\t$this->mapa->save($this->arquivo);\n\t}", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function salvarAtributo($valor){\n if($this->obterIdOpcao($valor)){\n return false; \n }\n $attribute_code = Mage::getStoreConfig('cores/config/codigo_cor'); \n $attribute_model = Mage::getModel('eav/entity_attribute');\n //$attribute_options_model= Mage::getModel('eav/entity_attribute_source_table') ;\n $attribute_code = $attribute_model->getIdByCode('catalog_product', $attribute_code);\n $attribute = $attribute_model->load($attribute_code);\n //$attribute_table = $attribute_options_model->setAttribute($attribute);\n //$options = $attribute_options_model->getAllOptions(false);\n $value['option'] = array($valor,$valor);\n $result = array('value' => $value);\n $attribute->setData('option',$result);\n return $attribute->save();\n }", "public function getProdAircraftreg()\n {\n return $this->prod_aircraftreg;\n }", "public function salvar()\r\n {\r\n $fabCtrl = new FabricanteController();\r\n $catCtrl = new CategoriaController();\r\n \r\n $fabObj = $fabCtrl->buscarNome($_POST['fabricante']);\r\n $catObj = $catCtrl->buscarNome($_POST['categoria']);\r\n \r\n $produto = new Produto;\r\n\r\n $produto->setNome($_POST['nomeProduto']);\r\n $produto->setDescricao($_POST['descricaoProduto']);\r\n $produto->setEstoque($_POST['estoque']);\r\n $produto->setPrecoCusto($_POST['precoCusto']);\r\n $produto->setPrecoVenda($_POST['precoVenda']);\r\n $produto->setImg($_POST['imgProduto']);\r\n $produto->setFabricante($fabObj);\r\n $produto->setCategoria($catObj);\r\n \r\n Produto::startConexao();\r\n $produto->salvar();\r\n \r\n Sessao::gravaIdObjeto($produto,'Produto');\r\n\r\n $this->redirect('/App/Views/caracteristica_view.php');\r\n }", "public function saveOrden( $datos_orden , $productos){\n date_default_timezone_set('America/El_Salvador');\n\n // obtener la secuencia de la secursal\n $date = date(\"Y-m-d\");\n $fecha_secuencia;\n $valor_secuencia;\n\n $this->db->select('*');\n $this->db->from(self::sys_secuencia.' AS s');\n $this->db->where('s.id_sucursal', $datos_orden['sucursalActiva'] );\n $query = $this->db->get();\n\n if($query->num_rows() > 0 )\n {\n $info = $query->result();\n foreach ($info as $value) {\n $fecha_secuencia = strtotime($value->fecha_secuencia,time());\n $fecha_actual = strtotime($date,time());\n $numero = $value->valor_secuencia;\n $numero++;\n if($fecha_secuencia==$fecha_actual){\n $valor_secuencia = str_pad($numero,4,\"0\",STR_PAD_LEFT) ;\n $this->UpdateSecuencia( $datos_orden['sucursalActiva'] ,$valor_secuencia);\n }\n else\n {\n $valor_secuencia = \"0001\";\n $this->UpdateSecuencia( $datos_orden['sucursalActiva'] ,$valor_secuencia);\n }\n }\n }\n\n //session_start();\n $date = date(\"Y-m-d H:i:s\");\n $fecha_entrega = $datos_orden['fecha_entrega'];\n $entrega_en_espera = 0;\n $estado_pedido = 7;\n if( date(\"Y-m-d\") == $fecha_entrega ){\n $entrega_en_espera = 1;\n $estado_pedido = 1;\n }\n $data = array(\n 'secuencia_orden' => $valor_secuencia,\n 'id_sucursal' => $datos_orden['sucursalActiva'], \n 'id_usuario' => $_SESSION['idUser'],\n 'id_mesero' => $datos_orden['tipo'], \n 'numero_mesa' => $datos_orden['costo_envio'], \n 'elaborado' => 0,\n 'flag_cancelado' => $datos_orden['pagado'],\n 'fechahora_pedido' => $date,\n 'fechahora_elaborado'=>$datos_orden['fecha_elaboracion'],\n 'flag_elaborado' => 1,\n 'flag_despachado' => 0,\n 'flag_pausa' => 0,\n 'prioridad' => $entrega_en_espera,\n 'estado' => 1,\n 'cliente' => $datos_orden['cliente'],\n 'email' => $datos_orden['email'],\n 'telefono' => $datos_orden['telefono'],\n 'celular' => $datos_orden['celular'],\n 'de' => $datos_orden['de'],\n 'para' => $datos_orden['para'],\n 'direccion' => $datos_orden['direccion'],\n 'dedicatoria' => $datos_orden['texto'],\n 'fecha_sugerida_entrega'=>$datos_orden['fecha_entrega'],\n 'tarjeta' => $datos_orden['tarjeta'],\n 'cvs' => $datos_orden['cvs'],\n 'nota_interna' => $datos_orden['nota_interna'],\n );\n $this->db->insert(self::sys_pedido,$data);\n\n //Insertando pedido Detalle\n $id_orden = $this->db->insert_id();\n $this->InsertPedidoDetalle( $id_orden , $datos_orden['sucursalActiva'] , $productos, $datos_orden['nota_interna'], $estado_pedido );\n\n return $id_orden;\n }", "public function setAtributos($atributos)\n {\n $this->atributos = collect($atributos)->map(function ($item) {\n return [\"atributo_id\" => $item];\n });\n }", "function salva()\n {\n if (isset($this->layer)) {\n $this->recalculaSLD();\n }\n restauraConObj($this->mapa, $this->postgis_mapa);\n $this->mapa->save($this->arquivo);\n }", "public function save() {\n\t\tif (!is_null($this->getId())) {\n\t\t\t$sql = 'update cart_orders_products_attributes set ';\n\t\t} else {\n\t\t\t$sql = 'insert into cart_orders_products_attributes set ';\n\t\t}\n\t\tif (!is_null($this->getOrderid())) {\n\t\t\t$sql .= '`orders_id`=\"' . e($this->getOrderid()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProductid())) {\n\t\t\t$sql .= '`orders_products_id`=\"' . e($this->getProductid()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options())) {\n\t\t\t$sql .= '`products_options`=\"' . e($this->getProducts_options()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options_values())) {\n\t\t\t$sql .= '`products_options_values`=\"' . e($this->getProducts_options_values()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getOptions_values_price())) {\n\t\t\t$sql .= '`options_values_price`=\"' . e($this->getOptions_values_price()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getPrice_prefix())) {\n\t\t\t$sql .= '`price_prefix`=\"' . e($this->getPrice_prefix()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProduct_attribute_is_free())) {\n\t\t\t$sql .= '`product_attribute_is_free`=\"' . e($this->getProduct_attribute_is_free()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_attributes_weight())) {\n\t\t\t$sql .= '`products_attributes_weight`=\"' . e($this->getProducts_attributes_weight()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_attributes_weight_prefix())) {\n\t\t\t$sql .= '`products_attributes_weight_prefix`=\"' . e($this->getProducts_attributes_weight_prefix()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_discounted())) {\n\t\t\t$sql .= '`attributes_discounted`=\"' . e($this->getAttributes_discounted()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_base_included())) {\n\t\t\t$sql .= '`attributes_price_base_included`=\"' . e($this->getAttributes_price_base_included()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_onetime())) {\n\t\t\t$sql .= '`attributes_price_onetime`=\"' . e($this->getAttributes_price_onetime()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor())) {\n\t\t\t$sql .= '`attributes_price_factor`=\"' . e($this->getAttributes_price_factor()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor_offset())) {\n\t\t\t$sql .= '`attributes_price_factor_offset`=\"' . e($this->getAttributes_price_factor_offset()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor_onetime())) {\n\t\t\t$sql .= '`attributes_price_factor_onetime`=\"' . e($this->getAttributes_price_factor_onetime()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor_onetime_offset())) {\n\t\t\t$sql .= '`attributes_price_factor_onetime_offset`=\"' . e($this->getAttributes_price_factor_onetime_offset()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_qty_prices())) {\n\t\t\t$sql .= '`attributes_qty_prices`=\"' . e($this->getAttributes_qty_prices()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_qty_prices_onetime())) {\n\t\t\t$sql .= '`attributes_qty_prices_onetime`=\"' . e($this->getAttributes_qty_prices_onetime()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_words())) {\n\t\t\t$sql .= '`attributes_price_words`=\"' . e($this->getAttributes_price_words()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_words_free())) {\n\t\t\t$sql .= '`attributes_price_words_free`=\"' . e($this->getAttributes_price_words_free()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_letters())) {\n\t\t\t$sql .= '`attributes_price_letters`=\"' . e($this->getAttributes_price_letters()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_letters_free())) {\n\t\t\t$sql .= '`attributes_price_letters_free`=\"' . e($this->getAttributes_price_letters_free()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options_id())) {\n\t\t\t$sql .= '`products_options_id`=\"' . e($this->getProducts_options_id()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options_values_id())) {\n\t\t\t$sql .= '`products_options_values_id`=\"' . e($this->getProducts_options_values_id()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_prid())) {\n\t\t\t$sql .= '`products_prid`=\"' . e($this->getProducts_prid()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getId())) {\n\t\t\t$sql .= 'orders_products_attributes_id=\"' . e($this->getId()) . '\" where orders_products_attributes_id=\"' . e($this->getId()) . '\"';\n\t\t} else {\n\t\t\t$sql = trim($sql, ', ');\n\t\t}\n\t\tDatabase::singleton()->query($sql);\n\t\tif (is_null($this->getId())) {\n\t\t\t$this->setId(Database::singleton()->lastInsertedID());\n\t\t\tself::__construct($this->getId());\n\t\t}\n\t}", "public function save()\r\n {\r\n parent::save();\r\n $this->fcSavePromotionDetails($this->oModel, 'oxcategories__fcpromotionplanneractivepromotion');\r\n }", "public function set_atletas_sexo($atletas_sexo) {\n if ($atletas_sexo != 'M' && $atletas_sexo != 'm') {\n $this->atletas_sexo = 'F';\n } else {\n $this->atletas_sexo = 'M';\n }\n }", "public function hookActionProductSave($params)\n {\n $id_product = $params['id_product'];\n if (!Db::getInstance()->update('product', array('is_eticket'=> pSQL(Tools::getValue('is_eticket'))), 'id_product = ' .$id_product)) {\n $this->context->controller->_errors[] = Tools::displayError('Error: ').mysql_error();\n }\n }", "protected function _afterSave()\n\t{\n\t\t//$enabled = $this->getData('groups/export_settings/fields/cron_enabled/value');\n\t\t$cron_expr = $this->getData('groups/export_settings/fields/cron_expr/value');\n\t\ttry {\n\t\t\t\tMage::getModel('core/config_data')\n\t\t\t\t->load(self::CRON_STRING_PATH, 'path')\n\t\t\t\t->setValue($cron_expr)\n\t\t\t\t->setPath(self::CRON_STRING_PATH)\n\t\t\t\t->save();\n\n\t\t\t\tMage::getModel('core/config_data')\n\t\t\t\t->load(self::CRON_MODEL_PATH, 'path')\n\t\t\t\t->setValue((string) Mage::getConfig()->getNode(self::CRON_MODEL_PATH))\n\t\t\t\t->setPath(self::CRON_MODEL_PATH)\n\t\t\t\t->save();\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\tMage::throwException(Mage::helper('adminhtml')->__($e.' - Unable to save Cron expression'));\n\t\t}\n\t\t\n\t}", "public function setEditais($editais)\n {\n if (!is_null($editais))\n $this->editais = $editais;\n }", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function setProducto($pro){ $this->producto = $pro;}", "function setActualizarPlaneacion($fecha, $persona, $credito){\n\t\t$xF\t\t\t\t\t\t= new cFecha();\n\t\t$fecha_esperar_hasta \t= $xF->setRestarDias( DIAS_ESPERA_CREDITO, $fecha );\n\t\t$grupo\t\t\t\t\t= $this->getCodigo();\n\t\t$sqlURec \t\t\t\t= \"UPDATE operaciones_recibos set docto_afectado=$credito WHERE numero_socio=$persona AND tipo_docto=14\t\tAND fecha_operacion>='$fecha_esperar_hasta' \";\n\t\t$sqlUMvto \t\t\t\t= \"UPDATE operaciones_mvtos set docto_afectado=$credito WHERE grupo_asociado=$grupo AND tipo_operacion=112 AND fecha_operacion>='$fecha_esperar_hasta'\";\n\t\tmy_query($sqlURec);\n\t\tmy_query($sqlUMvto);\n\t}", "public function save()\n {\n parent::save();\n\n $myConfig = $this->getConfig();\n $soxId = $this->getEditObjectId();\n\n $aParams = oxRegistry::getConfig()->getRequestParameter(\"editval\");\n\n\n // #918 S\n // checkbox handling\n $aParams['oxshops__oxactive'] = (isset($aParams['oxshops__oxactive']) && $aParams['oxshops__oxactive'] == true) ? 1 : 0;\n $aParams['oxshops__oxproductive'] = (isset($aParams['oxshops__oxproductive']) && $aParams['oxshops__oxproductive'] == true) ? 1 : 0;\n\n $isubjlang = oxRegistry::getConfig()->getRequestParameter(\"subjlang\");\n $iLang = ($isubjlang && $isubjlang > 0) ? $isubjlang : 0;\n\n /** @var oxShop $oShop */\n $oShop = oxNew(\"oxshop\");\n if ($soxId != \"-1\") {\n $oShop->loadInLang($iLang, $soxId);\n } else {\n $aParams['oxshops__oxid'] = null;\n }\n\n if ($aParams['oxshops__oxsmtp']) {\n $aParams['oxshops__oxsmtp'] = trim($aParams['oxshops__oxsmtp']);\n }\n\n $oShop->setLanguage(0);\n $oShop->assign($aParams);\n $oShop->setLanguage($iLang);\n\n if (($sNewSMPTPass = oxRegistry::getConfig()->getRequestParameter(\"oxsmtppwd\"))) {\n $oShop->oxshops__oxsmtppwd->setValue($sNewSMPTPass == '-' ? \"\" : $sNewSMPTPass);\n }\n\n\n try {\n $oShop->save();\n } catch (oxException $e) {\n\n return;\n }\n\n $this->_aViewData[\"updatelist\"] = \"1\";\n\n\n oxRegistry::getSession()->setVariable(\"actshop\", $soxId);\n }", "public function setEncendidoPizarra( $encendido ) {\n $this->pizarra_on=$encendido;\n $this->enviarComandoEstado();\n //$this->activarPantalla();\n }", "public function setSavedData($data)\n {\n $this->getArchive()->set('saved_data', $data);\n }", "public function saveAction()\n {\n $field = '';\n $this->_initOrder();\n if (Mage::registry('current_order')->getCustomerId() != Mage::getSingleton('customer/session')->getCustomerId()) {\n $this->getResponse()->setBody('Error');\n exit;\n }\n\n /*\n * decide what form submitted: product field || order field\n * product fields have field names like: \"amProduct_%orderItemID%_%fieldID%\"\n */\n $productSubmit = strpos($this->getRequest()->getPost('field'), 'amProduct_') !== FALSE ? 1 : 0;\n // process product fields\n if ($productSubmit) {\n // extract all data from POST (stored value like \"xyz_orderItemID_FieldCode\"\n $itemData = explode('_', $this->getRequest()->getPost('field'), 3);\n $itemId = $itemData[1];\n $code = $itemData[2];\n\n // load product item data\n $fieldModel = Mage::getModel('amorderattach/field')->load($code, 'code');\n $field = Mage::getModel('amorderattach/order_products')->load($itemId, 'order_item_id');\n\n if ($fieldModel->getId()) {\n // triggering on save new row if OrderItemId is not set\n if (!$field->getOrderItemId()) {\n $field->setOrderItemId($itemId);\n }\n\n $this->itemCode = $fieldModel->getItemCode($itemId);\n } else {\n die('Error on filed load: no such field found');\n }\n } else {\n $fieldModel = Mage::getModel('amorderattach/field')->load($this->getRequest()->getPost('field'), 'code');\n if ($fieldModel->getId()) {\n // load order item data\n $field = Mage::getModel('amorderattach/order_field')->load(Mage::registry('current_order')->getId(), 'order_id');\n $code = $this->getRequest()->getPost('field');\n $this->itemCode = $code;\n\n // triggering on save new row if OrderItemId is not set\n if (!$field->getOrderId()) {\n $field->setOrderId(Mage::registry('current_order')->getId());\n }\n } else {\n die('Error on filed load: no such field found');\n }\n }\n\n if ('date' == $code) {\n if ($this->getRequest()->getPost('value')) {\n $data = $this->getRequest()->getPost();\n $valueToFilter = $this->_filterDates($data, array('value'));\n $itemValue = date('Y-m-d', strtotime($valueToFilter['value']));\n } else {\n $itemValue = null;\n }\n } else {\n $itemValue = $this->getRequest()->getPost('value');\n }\n // set data\n $this->itemValue = $itemValue;\n $field->setData($code, $itemValue);\n\n // save if customer can edit\n if ('edit' == $fieldModel->getCustomerVisibility()) {\n $field->save();\n } else {\n die('Error on field save: no privileges for action');\n }\n\n\n Mage::register('current_attachment_order_field', $field); // required for renderer\n $this->_sendResponse($fieldModel);\n }", "function setSyncItemsCodeProduct()\n {\n }", "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->etiqueta=$_POST['etiqueta'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t\t$this->claves=$_POST['claves'];\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->icono=$_POST['icono'];\n\t}", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public function _setEntregable($data)\n {\n try {\n $id = (int)$data['entregableid'];\n if ($id == 0) {\n $sql = $this->_db->query(\"select codigo_prop_proy from proyecto where\n proyectoid = '\".$data['proyectoid'].\"'\");\n $codigo = $sql->fetch();\n $ent = $this->createRow();\n $ent->codigo_prop_proy = $codigo['codigo_prop_proy'];\n $ent->proyectoid = $data['proyectoid'];\n $ent->revision_entregable = 'A';\n $ent->edt = '000';\n $ent->tipo_documento = $data['tipo_documento'];\n $ent->disciplina = $data['disciplina'];\n $ent->codigo_anddes = $data['codigo_anddes'];\n $ent->codigo_cliente = $data['codigo_cliente'];\n $ent->descripcion_entregable = $data['descripcion'];\n $ent->estado = 'Ultimo';\n $ent->clase = $data['clase'];\n $ent->revision_documento = $data['revision'];\n $ent->estado_entregable = 9;\n $ent->save();\n $resp['resultado'] = 'guardado';\n return $resp;\n } else {\n $ent = $this->fetchRow('cod_le = '.$id);\n $ent->tipo_documento = $data['tipo_documento'];\n $ent->disciplina = $data['disciplina'];\n $ent->codigo_anddes = $data['codigo_anddes'];\n $ent->codigo_cliente = $data['codigo_cliente'];\n $ent->descripcion_entregable = $data['descripcion'];\n $ent->save();\n $resp['resultado'] = 'guardado';\n return $resp;\n }\n return $id;\n } catch (Exception $e) {\n print $e->getMessage();\n }\n }", "public static function save_product_settings( $booking_settings, $product_id ) {\n \n $booking_settings[ '_bkap_resource' ] = '';\n\n \n if ( isset( $_POST[ '_bkap_resource' ] ) && \"on\" == $_POST[ '_bkap_resource' ] ) {\n $booking_settings[ '_bkap_resource' ] = \"on\";\n update_post_meta( $product_id, '_bkap_resource', $_POST['_bkap_resource'] );\n }else{\n \tupdate_post_meta( $product_id, '_bkap_resource', '' );\n }\n \n if ( isset( $_POST['bkap_product_resource_lable'] ) ) {\n \tupdate_post_meta( $product_id, '_bkap_product_resource_lable', $_POST['bkap_product_resource_lable'] );\t\n }\n\n if ( isset( $_POST['bkap_product_resource_selection'] ) ) {\n\t\t\tupdate_post_meta( $product_id, '_bkap_product_resource_selection', $_POST['bkap_product_resource_selection'] );\n }\n \n $resource_id = array();\n \n if ( isset( $_POST['resource_id'] ) ) {\n\n \t$resource_id = $_POST['resource_id'];\n\n \tupdate_post_meta( $product_id, '_bkap_product_resources', $resource_id );\n\n }\n \n $resource_cost = array();\n \n if ( isset( $_POST['resource_cost'] ) ) {\n \t\n \tforeach ( $resource_id as $key => $value ) {\n \t\t$resource_cost[$value] = $_POST['resource_cost'][$key];\n \t}\n\n \tupdate_post_meta( $product_id, '_bkap_resource_base_costs', $resource_cost );\n }\n\n return $booking_settings;\n }", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "protected function save()\n\t{\n\t\t\\XF::app()->session()->set('xenforoUpgradeService', [\n\t\t\t'cookieJar' => $this->getCookies(),\n\t\t\t'email' => $this->email,\n\t\t\t'password' => $this->password,\n\t\t\t'availableProducts' => $this->availableProducts,\n\t\t\t'availableVersions' => $this->availableVersions,\n\t\t\t'selectedLicense' => $this->selectedLicense,\n\t\t\t'selectedProduct' => $this->selectedProduct,\n\t\t\t'selectedVersion' => $this->selectedVersion\n\t\t]);\n\t}", "public function set_reservas(objeto_reserva $reserva){\n\n\t$consulta_insertar= new conectar();\n $consulta_insertar = $consulta_insertar->conexion();\n\t$query=\t\"insert into reservas (cliente_id, habitacion_id, fecha_ingreso, fecha_salida, valor, estado, observacion) values(:cl_id, :ha_id, :fe_in, :fe_sa, :va, :es, :ob)\";\n\n\t$resultado=$consulta_insertar->prepare($query);\n $resultado->execute(array(\":cl_id\"=>$reserva->get_cliente_id(),\":ha_id\"=>$reserva->get_habitacion_id(), \":fe_in\"=>$reserva->get_fecha_ingreso(), \":fe_sa\"=>$reserva->get_fecha_salida(),\":va\"=>$reserva->get_valor(),\":es\"=>$reserva->get_estado(),\":ob\"=>$reserva->get_observacion()));\n\n\t$id = $consulta_insertar->lastInsertId();\n\n\treturn $id;\n\t}", "public function save()\n {\n if (empty($this->id))\n {\n $sql =\n \"INSERT INTO rozvrhova_akcia (zaciatok, koniec, id_semester)\n\t\t\t\t VALUES (\".\n DateConvert::SKDateTime2DBTimestamp(\"$1\").\", \".\n DateConvert::SKDateTime2DBTimestamp(\"$2\").\",\n\t\t\t\t$3)\";\n $params = array($this->zaciatok, $this->koniec, $this->id_semester);\n }else\n {\n // save after edit\n $sql =\n \"UPDATE rozvrhova_akcia SET\n\t\t\t\t zaciatok=\".DateConvert::SKDateTime2DBTimestamp(\"$1\").\",\n\t\t\t\t koniec=\".DateConvert::SKDateTime2DBTimestamp(\"$2\").\",\n\t\t\t\t id_semester=$3\n\t\t\t\t WHERE id=$4\";\n $params = array($this->zaciatok, $this->koniec, $this->id_semester, $this->id);\n }\n $this->dbh->query($sql, $params);\n }", "public function presupuestoModificado(){\n $this->iPresupuestoModificado = $this->iPresupuestoInicial;\n $this->save();\n }", "function _savesettings()\r\n {\r\n\t\t$settings = JRequest::getVar('settings');\r\n\r\n\t\tjimport('joomla.registry.registry');\r\n\t\t$reg = new JRegistry();\r\n\t\t$reg->loadArray($settings);\r\n\t\t\t\t\r\n\t\tif(JFusionConnect::isJoomlaVersion('1.6')) {\r\n\t\t\t$component =& JTable::getInstance('extension');\r\n\t\t\t$componentid = $component->find(array('type' => 'component','element' => 'com_jfusionconnect'));\r\n\t\t\t$component->load($componentid);\r\n\t\t\t\r\n\t\t\t$plugin =& JTable::getInstance('extension');\r\n\t\t\t$pluginid = $plugin->find(array('type' => 'plugin','element' => 'jfusionconnect'));\r\n\t\t\t$plugin->load($pluginid);\r\n\t\t\t$key='enabled';\r\n\t\t} else {\r\n\t\t\t$component =& JTable::getInstance('component');\r\n\t\t\t$component->loadByOption('com_jfusionconnect');\r\n\t\t\t\r\n\t\t\t$plugin =& JTable::getInstance('plugin');\r\n\t\t\t$plugin->_tbl_key = 'element';\r\n\t\t\t$plugin->load('jfusionconnect');\r\n\t\t\t$key='published';\r\n\t\t}\r\n\t\t$component->params = $reg->toString();\r\n\t\t$component->store();\r\n \tif ($settings['enabled']) {\r\n\t\t\t$plugin->$key = 1;\r\n\t\t} else {\r\n\t\t\t$plugin->$key = 0;\r\n\t\t}\r\n\t\t$plugin->store();\r\n }", "private static function saveProduct($product, $fields) {\n $product->price = $fields['price'];\n $product->original_price = $fields['original_price'];\n $product->quantity = $fields['quantity'];\n $product->save();\n return $product;\n }", "private function saveFieldPostfixAdminCompany( array $submittedData, tx_scheduler_Task $task )\n {\n $task->postfix_postfixAdminCompany = $submittedData['postfix_postfixAdminCompany'];\n }", "public function setProyecto( $proyecto ){\n\t\t\t$this->proyecto= $proyecto;\n\t\t}", "function set($ARBITRO_data=array()) {\n\t\tif(array_key_exists('identificacion', $ARBITRO_data)) {\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t$this->get($ARBITRO_data);\n\t\t\t\tif($ARBITRO_data['identificacion'] != $this->getIdentificacion()) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setIdentificacion($ARBITRO_data['identificacion']);\n\t\t\t\t\t\t\t$id = $this->getIdentificacion();\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setNombre($ARBITRO_data['nombre']);\n\t\t\t\t\t\t\t$nombre =$this->getNombre();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setApellido($ARBITRO_data['apellido']);\n\t\t\t\t\t\t\t$apellido =$this->getApellido();\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setEmail($ARBITRO_data['email']);\t\t\n\t\t\t\t\t\t\t$email =$this->getEmail();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setTelefono($ARBITRO_data['telefono']);\t\t\n\t\t\t\t\t\t\t$telefono =$this->getTelefono();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setDireccion($ARBITRO_data['direccion']);\t\t\n\t\t\t\t\t\t\t$direccion =$this->getDireccion();\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setTipoArbitro($ARBITRO_data['tipo']);\t\t\n\t\t\t\t\t\t\t$tipo =$this->getTipoArbitro();\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$Disponibilidad = 'Si';\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t$this->query = \"\n\t\t\t\t\t\t\t\t\t\tINSERT INTO arbitros\n\t\t\t\t\t\t\t\t\t\t(Identificacion, Nombre, Apellido, Email,TipoArbitro,Direccion,Telefono,Disponible)\n\t\t\t\t\t\t\t\t\t\tVALUES\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t('$id','$nombre', '$apellido', '$email','$tipo','$direccion','$telefono','$Disponibilidad')\n\t\t\t\t\t\t\t\t\t\t\";\t\t\t\t\t\t\n\t\t\t\t\t\t$this->execute_single_query();\t\t\t\t\t\t\n\t\t\t\t\t\t$this->mensaje = 'arbitro agregado exitosamente';\n\t\t\t\t\t\t\n\t\t\t } else \n\t\t\t\t\t\t$this->mensaje = 'El arbitro ya existe';\n\t\t\t\t\t \n\t\t} else \n\t\t\t\t$this->mensaje = 'Error al Agregar arbitro';\t\t\t\t\n\t}", "public function store(AtletasRequets $request)\n {\n if (count($request->id_producto)==0) {\n flash('<i class=\"icon-circle-check\"></i> Debe seleccionar al menos un producto!')->warning()->important();\n return redirect()->back();\n } else {\n $atleta= new Atletas();\n $atleta->nombres=$request->nombres;\n $atleta->apellidos=$request->apellidos;\n $atleta->nacionalidad=$request->nacionalidad;\n $atleta->cedula=$request->cedula; \n $atleta->save();\n //Registrando productos. DEBERIA VER SI QUITAR LA OPCIÓN DE PRODUCTOS O NO. \n for ($i=0; $i <count($request->id_producto) ; $i++) { \n for ($j=date('m'); $j <= 12; $j++) { \n \\DB::table('atletas_has_productos')->insert([\n 'id_atleta' => $atleta->id,\n 'id_producto' => $request->id_producto[$i],\n 'mes' => $j,\n 'status' => 'Pendiente'\n ]);\n }\n }\n //---------------registrando en bitacora------------\n $bitacora=new Bitacora();\n $bitacora->id_usuario=\\Auth::getUser()->id;\n $bitacora->operacion=\"Registrando atleta con id =\".$atleta->id;\n $bitacora->save();\n //---------fin de registro en bitacora---------------\n flash('<i class=\"icon-circle-check\"></i> Atleta registrado exitosamente!')->success()->important();\n return redirect()->to('atletas');\n \n }\n \n\n\n }", "public function actualizaEstado(){\n $this->estado = 'Completo';\n // $this->cotiza = $this->generarCustomID();\n $this->save();\n }", "function setActa($sacta = '')\n {\n $this->sacta = $sacta;\n }", "function setActa($sacta = '')\n {\n $this->sacta = $sacta;\n }", "protected function _afterSave()\n {\n $this->getLinkInstance()->saveProductRelations($this);\n $this->getTypeInstance(true)->save($this);\n\n /**\n * Product Options\n */\n $this->getOptionInstance()->setProduct($this)\n ->saveOptions();\n\n return parent::_afterSave();\n }", "function seminars_save($seminars) {\n return entity_get_controller('seminars')->save($seminars);\n}", "public function geraPauta()\n {\n $turmaId = $this->args[0];\n $pautaXls = $this->Turma->geraPautaExcel($turmaId);\n\n $objWriter = PHPExcel_IOFactory::createWriter($pautaXls, 'Excel2007');\n $objWriter->save(Configure::read('OpenSGA.save_path') . DS . $turmaId . '.xlsx');\n $this->Turma->id = $turmaId;\n $this->Turma->set('pauta_path', Configure::read('OpenSGA.save_path') . DS . $turmaId . '.xlsx');\n $this->Turma->save();\n\n }", "public function activar()\n {\n $this->estatus = 1;\n $this->save();\n }", "function saveArribo($encomiendas, $usuario, $sucursal, $manifiesto) {\n $db = $this->getAdapter();\n $db->beginTransaction();\n $log = Zend_Registry::get(\"log\");\n $movimientoModel = new App_Model_MovimientoEncomienda();\n $manifiestoModel = new App_Model_ManifiestoModel();\n\n try {\n\n $fecha = date(\"Y-m-d\");\n $hora = date(\"H:i:s\");\n// $cabecera = array(\n// \"titleEmp\" => App_Util_Statics::$nombreEmpresa,\n// \"nombreEmp\" => App_Util_Statics::$nombreEmpresa2,\n// \"nitEmp\" => App_Util_Statics::$nitEmpresa,\n// \"numeroSuc\" => $suc->numero,\n// \"nombSuc\" => $suc->nombre,\n// \"telefono\" => $suc->telefono,\n// \"dir1\" => $suc->direccion,\n// \"dir2\" => $suc->direccion2,\n// \"ciudad\" => App_Util_Statics::$SISTEM_DEFAULTS[\"Ciudad_Sistema\"],\n// \"user\" => $user->nombres,\n// \"autoimpresor\" => \"\"\n// );\n foreach ($encomiendas as $idEncomienda) {\n $idEncomienda = base64_decode($idEncomienda);\n $selectE = $db->select();\n $selectE->from(array(\"e\" => \"encomienda\"), \"sucursal_de\");\n $selectE->where(\"id_encomienda=?\", $idEncomienda);\n $sucDestino = $db->fetchOne($selectE);\n// $log->info(\"SQL: \".$selectE->__toString().\"comparando traspaso sucDestino:\".$sucDestino.\" sucursal:\".$sucursal);\n $estado = \"TRASPASO\";\n $obs = \"Arribo a destino despues de un traspaso\";\n if ($sucDestino != false && $sucDestino == $sucursal) {\n $obs = \"Arribo a destino sin problemas\";\n $estado = \"ARRIBO\";\n }\n $dataEncomienda = array(\n \"estado\" => $estado\n );\n $where[] = \"id_encomienda='\" . $idEncomienda . \"'\";\n if ($this->update($dataEncomienda, $where) == 0) {\n throw new Zend_Db_Exception(\"No se ha podido actualizar el estado una de las encomiendas \", 125);\n }\n $where = null;\n\n $movimiento = array(\n \"id_movimiento\" => \"nuevo\",\n \"fecha\" => $hoy,\n \"hora\" => $hora,\n \"movimiento\" => $estado,\n \"usuario\" => $usuario,\n \"encomienda\" => $idEncomienda,\n \"sucursal\" => $sucursal,\n// \"bus\"=>\"\",\n \"observacion\" => $obs,\n// \"manifiesto\"=>\"\",\n );\n\n $movimientoModel->insert($movimiento);\n }\n $select = $db->select();\n $select->from(array(\"e\" => \"encomienda\"), \"COUNT(*)\");\n $select->where(\"manifiesto=?\", $manifiesto);\n $select->where(\"estado=?\", \"ENVIADO\");\n if ($db->fetchOne($select) == 0) {\n $updateMan[\"estado\"] = \"ENTREGADO\";\n $manWhere[] = \"id_manifiesto='$manifiesto'\";\n if ($manifiestoModel->update($updateMan, $manWhere) == 0) {\n throw new Zend_Db_Exception(\"No se ha podido actualizar el estado del manifiesto\", 125);\n }\n }\n $db->commit();\n $resp = array(\"mensaje\" => \"ok\");\n return $resp;\n } catch (Zend_Db_Exception $zdbe) {\n $db->rollBack();\n\n $log->info($zdbe);\n throw new Zend_Db_Exception($zdbe->getMessage(), 125);\n }\n }", "public function saveEntidad(){\n\t\t$conexion = new Database();\n if ($this->codigo){\n $query = sprintf('UPDATE agenda_entidades SET entidad = \"%s\" WHERE entidad_id = %d',\n $this->entidad,\n $this->codigo);\n $rows = $conexion->exec( $query );\n }\n else{\n $query = sprintf('INSERT INTO agenda_entidades(entidad) VALUES (\"%s\")',\n $this->usuario);\n\t\t\t$rows = $conexion->exec( $query );\n $this->codigo = $conexion->lastInsertId();\n }\n }", "public function actualizarEquipo($codigo,$Nombre,$Procedencia,$Altura,$Peso,$Posicion,$Nombre_equipo){\n if($this->error==false)\n {\n $insert_sql=\"UPDATE jugadores SET Nombre='\".$Nombre.\"',Procedencia='\".$Procedencia.\"',Altura='\".$Altura.\"',Peso=\".$Peso.\",Posicion='\".$Posicion.\"',Nombre_equipo='\".$Nombre_equipo.\"' WHERE Codigo='\".$codigo.\"'\";\n\n //$insert_sql=\"UPDATE jugadores SET codigo='\".$codigo.\"',Nombre=' \".$Nombre.\" ',Procedencia=' \".$Procedencia.\" ',Altura=' \".$Altura.\" ',Peso=' \".$Peso.\" ',Posicion=' \".$Posicion.\",Nombre_equipo=' \".$Nombre_equipo.\" ' WHERE codigo=\" .$codigo.\"\";\n \n if (!$this->conexion->query($insert_sql)) {\n\n echo \"Falló la insercion de la tabla: (\" . $this->conexion->errno . \") \" . $this->conexion->error;\n return false;\n }\n return true;\n }else{\n return false;\n }\n }", "function asignar_valores(){\n\t\t$this->codigo=$_POST['codigo'];\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->marca=$_POST['marca'];\n\t\t$this->fecha=$_POST['fecha'];\n\t\t$this->categoria=$_POST['categoria'];\n\t\t$this->hotel=$_POST['hoteles'];\n\t\t$this->cantidad=$_POST['cantidad'];\n\t\t$this->lugar=$_POST['lugar'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->detal=$_POST['detal'];\n\t\t$this->mayor=$_POST['mayor'];\n\t\t$this->limite=$_POST['limite'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t\t$this->claves=$_POST['claves'];\n\t\t$this->segmento=$_POST['segmento'];\n\t\t$this->principal=$_POST['principal'];\n\t\t\n\t\t\n\t}", "function editar_pr_factura_inventario(){\n\n\t\t $u = new entrada();\n $u->usuario_id = $GLOBALS['usuarioid'];\n $u->empresas_id = $GLOBALS['empresaid'];\n\t$precio=$_POST['costo_unitario'];\n\t$producto_id=$_POST['cproductos_id'];\n $u->fecha = date(\"Y-m-d H:i:s\");\n $related = $u->from_array($_POST);\n\t $f = new Pr_factura();\n $f->get_by_id($u->pr_facturas_id);\n $u->espacios_fisicos_id = $f->espacios_fisicos_id;\n $u->lote_id = $f->lote_id;\n $u->costo_total = ($u->cantidad * $u->costo_unitario);\n\t$u->existencia = $u->cantidad;\n $u->cproveedores_id = $f->cproveedores_id;\n $u->fecha = date(\"Y-m-d H:i:s\");\n if ($u->id == 0)\n unset($u->id);\n if ($u->save($related)) {\n$this->db->query(\"update cproductos set precio_compra='$precio' where id=$producto_id\");\n echo $u->id;\n } else\n echo 0; \n \n\t}", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function setPros($pros)\r\n {\r\n $this->_pros = $pros;\r\n }", "public function saveSettings(){\n\n $vars = $this->getAllSubmittedVariablesByName();\n\n $vars['email'] = $this->email;\n $vars['firstname'] = $this->firstname;\n $vars['lastname'] = $this->lastname;\n $vars['real_name'] = $this->firstname .' ' .$this->lastname;\n $vars['phone'] = $this->phone;\n\n $vars['name'] = $this->firstname;\n $vars['surname'] = $this->lastname;\n $vars['screen_name'] = $this->firstname;\n\n\n $vars['about_my_artwork'] = $this->getSubmittedVariableByName('about_my_artwork');\n $vars['what_i_like_to_do'] = $this->getSubmittedVariableByName('what_i_like_to_do');\n $vars['experience'] = $this->getSubmittedVariableByName('experience');\n $vars['instructions'] = $this->getSubmittedVariableByName('instructions');\n $vars['aftercare'] = $this->getSubmittedVariableByName('aftercare');\n $vars['apprenticeship'] = $this->getSubmittedVariableByName('apprenticeship');\n\n $this->saveNamedVariables($vars);\n }", "function modificarProcesoCompra(){\n\t\t$this->procedimiento='adq.f_proceso_compra_ime';\n\t\t$this->transaccion='ADQ_PROC_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_proceso_compra','id_proceso_compra','int4');\n\t\t$this->setParametro('id_depto','id_depto','int4');\n\t\t$this->setParametro('num_convocatoria','num_convocatoria','varchar');\n\t\t$this->setParametro('id_solicitud','id_solicitud','int4');\n\t\t$this->setParametro('id_estado_wf','id_estado_wf','int4');\n\t\t$this->setParametro('fecha_ini_proc','fecha_ini_proc','date');\n\t\t$this->setParametro('obs_proceso','obs_proceso','varchar');\n\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\t\t$this->setParametro('num_tramite','num_tramite','varchar');\n\t\t$this->setParametro('codigo_proceso','codigo_proceso','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('estado','estado','varchar');\n\t\t$this->setParametro('num_cotizacion','num_cotizacion','varchar');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "public function setProduct(Product $product);", "function asignar_valores(){\n $this->nombre=$_POST['nombre'];\n $this->prioridad=$_POST['prioridad'];\n $this->etiqueta=$_POST['etiqueta'];\n $this->descripcion=$_POST['descripcion'];\n $this->claves=$_POST['claves'];\n $this->tipo=$_POST['tipo'];\n }", "public function processSave() {\n\t\t\t//set == 0 for edit existing product\n\t\t\t//when produc has been added then by deafult its not active\n\t\t\tglobal $currentIndex;\n\t\t\t$currentindex = $currentIndex;\n\t\t\t\n\t\t\t$is_proceess = Tools::getValue('set');\n\t\t\t\n\t\t\t$product_name = Tools::getValue('product_name');\n\t\t\t$product_price = Tools::getValue('product_price');\n\t\t\t$product_quantity = Tools::getValue('product_quantity');\n\t\t\t$product_description = Tools::getValue('product_description');\n\t\t\t$product_category = Tools::getValue('product_category');\n\t\t\t$short_description = Tools::getValue('short_description');\n\t\t\t\n\t\t\tif($product_name=='') {\n\t\t\t\t$this->errors[] = Tools::displayError('Product name is requried field.');\n\t\t\t} else {\n\t\t\t\t$is_valid_name = Validate::isGenericName($product_name);\n\t\t\t\tif(!$is_valid_name) {\n\t\t\t\t\t$this->errors[] = Tools::displayError($this->l('Product name must not have Invalid characters <>;=#{}'));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($product_price=='') {\n\t\t\t\t$this->errors[] = Tools::displayError('Product price is requried field.');\n\t\t\t} else {\n\t\t\t\tif(!is_numeric($product_price)) {\n\t\t\t\t\t$this->errors[] = Tools::displayError('Product price is should be numeric.');\n\t\t\t\t} else if($product_price<=0) {\n\t\t\t\t\t$this->errors[] = Tools::displayError('Product price is should be greater than 0.');\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\tif($product_quantity=='') {\n\t\t\t\t$this->errors[] = Tools::displayError('Product quantity requried field.');\n\t\t\t} else {\n\t\t\t\t$product_quantity = (int)$product_quantity;\n\t\t\t\tif(!is_int($product_quantity)) {\n\t\t\t\t\t$this->errors[] = Tools::displayError('Product quantity should be integer.'.$product_quantity);\n\t\t\t\t} else if($product_quantity<=0) {\n\t\t\t\t\t$this->errors[] = Tools::displayError('Product quantity should be greater than 0.');\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif($product_category == false){\n\t\t\t\t$this->errors[] = Tools::displayError('Please select atleast one category.');\n\t\t\t}\n\t\t\t\n\t\t\tif($is_proceess==1) {\n\t\t\t\tif (empty($this->errors)) {\n\t\t\t\t\t$customer_id = Tools::getValue('shop_customer');\n\t\t\t\t\t$obj_seller_product = new SellerProductDetail();\n\t\t\t\t\t$obj_mp_shop = new MarketplaceShop();\n\t\t\t\t\t$marketplace_shop = $obj_mp_shop->getMarketPlaceShopInfoByCustomerId($customer_id);\n\t\t\t\t\t\n\t\t\t\t\t$id_shop = $marketplace_shop['id'];\n\t\t\t\t\t$id_seller = MarketplaceShop::findMpSellerIdByShopId($id_shop);\n\t\t\t\t\t\n\t\t\t\t\t$obj_seller_product->id_seller = $id_seller;\n\t\t\t\t\t$obj_seller_product->price = $product_price;\n\t\t\t\t\t$obj_seller_product->quantity = $product_quantity;\n\t\t\t\t\t$obj_seller_product->product_name = $product_name;\n\t\t\t\t\t$obj_seller_product->description = $product_description;\n\t\t\t\t\t$obj_seller_product->short_description = $short_description;\n\t\t\t\t\t$obj_seller_product->id_category = $product_category[0];\n\t\t\t\t\t$obj_seller_product->ps_id_shop = $this->context->shop->id;\n\t\t\t\t\t$obj_seller_product->id_shop = $id_shop;\n\t\t\t\t\t$obj_seller_product->save();\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t$seller_product_id = $obj_seller_product->id;\n\t\t\t\t\t\n\t\t\t\t\t//Add into category table\n\t\t\t\t\t$obj_seller_product_category = new SellerProductCategory();\n\t\t\t\t\t$obj_seller_product_category->id_seller_product = $seller_product_id;\n\t\t\t\t\t$obj_seller_product_category->is_default = 1;\n\t\t\t\t\t$i=0;\n\t\t\t\t\tforeach($product_category as $p_category){\n\t\t\t\t\t\t$obj_seller_product_category->id_category = $p_category;\n\t\t\t\t\t\tif($i != 0)\n\t\t\t\t\t\t\t$obj_seller_product_category->is_default = 0;\n\t\t\t\t\t\t$obj_seller_product_category->add();\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t}\n\t\t\t\t\t//Close\n\t\t\t\t\t\n\t\t\t\t\t$address = \"../modules/marketplace/img/product_img/\";\n\t\t\t\t\t\n\t\t\t\t\tif(isset($_FILES['product_image'])) {\n\t\t\t\t\t\t$length = 6;\n\t\t\t\t\t\t$characters= \"0123456789abcdefghijklmnopqrstuvwxyz\";\n\t\t\t\t\t\t$u_id= \"\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor ($p=0;$p<$length;$p++) {\n\t\t\t\t\t\t\t$u_id= $u_id.$characters[mt_rand(0, strlen($characters))];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($_FILES['product_image']['size']>0) {\n\t\t\t\t\t\t\t$result1 = Db::getInstance()->insert(\n\t\t\t\t\t\t\t\t\t\t\t\t'marketplace_product_image', array(\n\t\t\t\t\t\t\t\t\t\t\t\t'seller_product_id' => (int) $seller_product_id,\n\t\t\t\t\t\t\t\t\t\t\t\t'seller_product_image_id' => pSQL($u_id)\n\t\t\t\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t$image_name = $u_id . \".jpg\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tmove_uploaded_file($_FILES[\"product_image\"][\"tmp_name\"],$address.$image_name);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(isset($_FILES['images'])) {\n\t\t\t\t\t\t$other_images = $_FILES[\"images\"]['tmp_name'];\n\t\t\t\t\t\t$count = count($other_images);\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$count = 0;\n\t\t\t\t\t}\t\t\n\t\t\t\t\t\n\t\t\t\t\tfor ($i = 0; $i < $count; $i++) {\n\t\t\t\t\t\t$length = 6;\n\t\t\t\t\t\t$characters = \"0123456789abcdefghijklmnopqrstuvwxyz\";\n\t\t\t\t\t\t$u_other_id = \"\";\n\t\t\t\t\t\tfor ($p = 0; $p < $length; $p++) {\n\t\t\t\t\t\t\t$u_other_id .= $characters[mt_rand(0, strlen($characters))];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$result2 = Db::getInstance()->insert('marketplace_product_image', array(\n\t\t\t\t\t\t\t'seller_product_id' => (int) $seller_product_id,\n\t\t\t\t\t\t\t'seller_product_image_id' => pSQL($u_other_id)\n\t\t\t\t\t\t));\n\t\t\t\t\t\t$image_name = $u_other_id . \".jpg\";\n\t\t\t\t\t\t$address = \"../modules/marketplace/img/product_img/\";\n\t\t\t\t\t\tmove_uploaded_file($other_images[$i], $address . $image_name);\n\t\t\t\t\t}\n\t\t\t\t\tHook::exec('actionAddproductExtrafield', array('marketplace_product_id' => $seller_product_id));\n\t\t\t\t\tTools::redirectAdmin($currentIndex.'&conf=4&token='.$this->token);\n\t\t\t\t} else {\n\t\t\t\t\t$this->display = 'add';\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (empty($this->errors)) {\n\t\t\t\t\t$id = Tools::getValue('market_place_product_id');\n\t\t\t\t\t$obj_seller_product = new SellerProductDetail($id);\n\t\t\t\t\t\n\t\t\t\t\t$obj_seller_product->price = $product_price;\n\t\t\t\t\t$obj_seller_product->quantity = $product_quantity;\n\t\t\t\t\t$obj_seller_product->product_name = $product_name;\n\t\t\t\t\t$obj_seller_product->description = $product_description;\n\t\t\t\t\t$obj_seller_product->short_description = $short_description;\n\t\t\t\t\t$obj_seller_product->id_category = $product_category[0];\n\t\t\t\t\t//save category\n\t\t\t\t\t$obj_seller_product->save();\n\n\t\t\t\t\t//Update new categories\n\t\t\t\t\tDb::getInstance()->delete('marketplace_seller_product_category','id_seller_product = '.$id); //Delete previous\n\t\t\t\t\t//Add new category into table\n\t\t\t\t\t$obj_seller_product_category = new SellerProductCategory();\n\t\t\t\t\t$obj_seller_product_category->id_seller_product = $id;\n\t\t\t\t\t$obj_seller_product_category->is_default = 1;\n\t\t\t\t\t$i=0;\n\t\t\t\t\tforeach($product_category as $p_category){\n\t\t\t\t\t\t$obj_seller_product_category->id_category = $p_category;\n\t\t\t\t\t\tif($i != 0)\n\t\t\t\t\t\t\t$obj_seller_product_category->is_default = 0;\n\t\t\t\t\t\t$obj_seller_product_category->add();\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t}\n\t\t\t\t\t//Update Close\n\t\t\t\t\t\n\t\t\t\t\t$is_active = $obj_seller_product->active;\n\t\t\t\t\t\n\t\t\t\t\tif($is_active == 1){\n\t\t\t\t\t\t$obj_mpshop_pro = new MarketplaceShopProduct();\n\t\t\t\t\t\t$product_deatil = $obj_mpshop_pro->findMainProductIdByMppId($id);\n\t\t\t\t\t\t$main_product_id = $product_deatil['id_product'];\n\t\t\t\t\t\tif(isset($_FILES['product_image']) && $_FILES['product_image'][\"tmp_name\"]!='') {\n\t\t\t\t\t\t\t$seller_product_image=$_FILES['product_image'];\n\t\t\t\t\t\t\t$length = 6;\n\t\t\t\t\t\t\t$characters = \"0123456789abcdefghijklmnopqrstuvwxyz\";\n\t\t\t\t\t\t\t$u_id = \"\"; \n\t\t\t\t\t\t\tfor ($p =0;$p<$length;$p++) {\n\t\t\t\t\t\t\t\t$u_id .= $characters[mt_rand(0, strlen($characters))];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$image_name =$u_id.\".jpg\";\n\t\t\t\t\t\t\t$address = \"../modules/marketplace/img/product_img/\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (move_uploaded_file($_FILES[\"product_image\"][\"tmp_name\"], $address.$image_name)) {\n\t\t\t\t\t\t\t\t$insert = Db::getInstance()->insert('marketplace_product_image',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'seller_product_id' =>(int)$id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'seller_product_image_id' =>pSQL($u_id),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'active' =>0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\t\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$image_dir = '../modules/marketplace/img/product_img';\n\t\t\t\t\t\t\n\t\t\t\t\t\t$is_update = $obj_seller_product->updatePsProductByMarketplaceProduct($id, $image_dir,1,$main_product_id);\n\t\t\t\t\t}\n\t\t\t\t\telse if($is_active == 0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif(isset($_FILES['product_image']) && $_FILES['product_image'][\"tmp_name\"]!='') {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$seller_product_image=$_FILES['product_image'];\n\t\t\t\t\t\t\t$length = 6;\n\t\t\t\t\t\t\t$characters = \"0123456789abcdefghijklmnopqrstuvwxyz\";\n\t\t\t\t\t\t\t$u_id = \"\"; \n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\tfor ($p =0;$p<$length;$p++) {\n\t\t\t\t\t\t\t\t\t$u_id .= $characters[mt_rand(0, strlen($characters))];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$image_name =$u_id.\".jpg\";\n\t\t\t\t\t\t\t$address = \"../modules/marketplace/img/product_img/\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$result1=Db::getInstance()->insert('marketplace_product_image', array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'seller_product_id' =>(int)$id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'seller_product_image_id' =>pSQL($u_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tmove_uploaded_file($_FILES[\"product_image\"][\"tmp_name\"],$address.$image_name);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tHook::exec('actionUpdateproductExtrafield', array('marketplace_product_id' =>Tools::getValue('market_place_product_id')));\n\t\t\t\t\tTools::redirectAdmin($currentIndex.'&conf=4&token='.$this->token);\n\t\t\t\t} else {\n\t\t\t\t\t$this->display = 'edit';\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function saving(assignment $assignment)\n {\n //code...\n }", "function cd_meta_box_garoe_prom_product_save( $post_id )\n{\n if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;\n \n // if our nonce isn't there, or we can't verify it, bail\n if( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'my_meta_box_nonce' ) ) return;\n \n // if our current user can't edit this post, bail\n if( !current_user_can( 'edit_post' ) ) return;\n \n // Make sure your data is set before trying to save it\n\t$chk = isset( $_POST['mb_garoe_prom_product'] ) && $_POST['mb_garoe_prom_product'] ? 'on' : 'off';\n update_post_meta( $post_id, 'mb_garoe_prom_product', $chk );\n}", "function changeMissionProductAction()\n\t{\n\t\tif($this->_request->isPost() && $_SERVER['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest')\n\t\t{\n\t\t\t$missionParams = $this->_request->getParams();\n\t\t\t$mission_id=$missionParams['mission_id'];\n\n\t\t\tif($mission_id)\n\t\t\t{\n\t\t\t\t$product_type=$missionParams['product_type'];\n\n\t\t\t\t$update = array();\n\t\t\t\t$update['product_type'] = $product_type;\n\t\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t\t$quoteMission_obj->updateQuoteMission($update,$mission_id);\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public function save()\n {\n $this->save_meta_value('_sim_city_main_info', $this->city_main_info);\n\n $this->save_meta_value('_sim_city_shops', $this->city_shops);\n }", "function save($forceinstall=false) {\n\t\t$db = & JFactory::getDBO();\n\n\t\t$fields = array();\n\n\t\t$vars = get_object_vars( $this );\n\t\tforeach($vars as $name => $value) {\n\t\t\tif (is_array($value) || is_object($value)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ($name[0]!=='_' && ($name != 'id' || ($forceinstall && $value) ) ) {\n\t\t\t\t$fields[\"`{$name}`\"] = \"'{$value}'\";\n\t\t\t}\n\t\t}\n\n\t\tif ($this->id && !$forceinstall) {\n\t\t $sep = \"\";\n\t\t $values=\"\";\n\t\t foreach ($fields as $k => $value) {\n\t\t\tif ($k != 'id') {\n\t\t\t\t$values .= \"$sep$k=$value\";\n\t\t\t\t$sep = \",\";\n\t\t\t}\n\t\t }\n\t\t $query = \"UPDATE #__xmap_sitemap SET $values WHERE id=\" . intval($this->id);\n\t\t $isInsert = 0;\n\t\t} else {\n\t\t $query = \"INSERT INTO #__xmap_sitemap (\". implode(',',array_keys($fields)) .\") VALUES (\".implode(',',$fields).\")\";\n\t\t $isInsert = 1;\n\t\t}\n\t\t$db->setQuery( $query );\n\t\t# echo $db->getQuery( );\n\t\tif( $db->query() === FALSE ) {\n\t\t\techo stripslashes($db->getErrorMsg());\n\t\t\treturn false;\n\t \t}\n\t\tif ($isInsert) {\n\t\t\t$this->id = $db->insertid( );\n\t\t}\n\t\treturn true;\n\t}", "public function setExecUpdateOnSave()\n {\n Configuration::updateValue('DF_UPDATE_ON_SAVE_LAST_EXEC', date('Y-m-d H:i:s'));\n }", "public function SettingSeries($params)\n {\n $pjetId = $this->db->real_escape_string($params['pjetId']); // este es el valor pjtvr_id\n $prodId = $this->db->real_escape_string($params['prodId']);\n $dtinic = $this->db->real_escape_string($params['dtinic']);\n $dtfinl = $this->db->real_escape_string($params['dtfinl']);\n $detlId = $this->db->real_escape_string($params['detlId']);\n\n $qry = \"SELECT ser_id, ser_sku, (ser_reserve_count + 1) as ser_reserve_count \n FROM ctt_series WHERE prd_id = $prodId \n AND pjtdt_id = 0 LIMIT 1;\"; // solo trae un registro\n $result = $this->db->query($qry);\n \n $series = $result->fetch_object();\n if ($series != null){\n $serie = $series->ser_id; \n $sersku = $series->ser_sku;\n $ser_reserve_count = $series->ser_reserve_count; \n\n $qry2 = \"INSERT INTO ctt_projects_detail (\n pjtdt_belongs, pjtdt_prod_sku, ser_id, prd_id, pjtvr_id ) \n VALUES ('$detlId', '$sersku', '$serie', '$prodId', '$pjetId'\n ); \";\n $this->db->query($qry2);\n $pjtdtId = $this->db->insert_id;\n\n $qry1 = \"UPDATE ctt_series SET ser_situation = 'EA', ser_stage = 'R',\n ser_reserve_count = $ser_reserve_count,\n pjtdt_id = '$pjtdtId'\n WHERE ser_id = $serie;\";\n $this->db->query($qry1);\n\n } else {\n $serie = null; \n $sersku = 'Pendiente' ;\n \n $qry2 = \"INSERT INTO ctt_projects_detail (\n pjtdt_belongs, pjtdt_prod_sku, ser_id, prd_id, pjtvr_id ) \n VALUES ('$detlId', '$sersku', '$serie', '$prodId', '$pjetId'\n ); \";\n\n $this->db->query($qry2);\n $pjtdtId = $this->db->insert_id;\n }\n\n $qry4 = \"INSERT INTO ctt_projects_periods \n (pjtpd_day_start, pjtpd_day_end, pjtdt_id, pjtdt_belongs ) \n VALUES ('$dtinic', '$dtfinl', '$pjtdtId', '$detlId');\";\n $this->db->query($qry4);\n\n return $pjtdtId;\n }", "protected function _afterSave()\n {\n if ($this->getValue() == Iparcel_All_Model_System_Config_Source_Catalog_Mapping_Mode::CRON) {\n $params = Mage::app()->getRequest()->getParams();\n $params = $params[\"groups\"][\"config\"][\"fields\"];\n /* var $params array */\n\n $freq = $params['cron_frequency']['value'];\n $cron_expr = array();\n $cron_expr[2] = '*';\n $cron_expr[3] = '*';\n $cron_expr[4] = '*';\n switch ($freq) {\n case Mage_Adminhtml_Model_System_Config_Source_Cron_Frequency::CRON_MONTHLY:\n $cron_expr[2] = $params['cron_monthday']['value'];\n break;\n case Mage_Adminhtml_Model_System_Config_Source_Cron_Frequency::CRON_WEEKLY:\n $cron_expr[4] = $params['cron_weekday']['value'];\n break;\n }\n $cron_expr[0] = $params['cron_minute']['value'];\n $cron_expr[1] = $params['cron_hour']['value'];\n\n ksort($cron_expr, SORT_NUMERIC);\n $cron_expr = trim(implode(' ', $cron_expr));\n\n try {\n $this->_getCron()\n ->setValue($cron_expr)\n ->setPath(self::CRON_STRING_PATH)\n ->save();\n } catch (Exception $e) {\n throw new Exception(Mage::helper('cron')->__('Unable to save the cron expression'));\n }\n } else {\n try {\n $this->_getCron()\n ->delete();\n } catch (Exception $e) {\n throw new Exception(Mage::helper('cron')->__('Unable to remove the cron expression'));\n }\n }\n\n return parent::_afterSave();\n }", "public function save_toolset()\n\t{\n\t\tee()->rte_lib->save_toolset();\n\t}", "public function modify ($est){\r\n \r\n $sql = \"UPDATE ESTADO_USUARIO SET cod_estado = \".$est->getCod_estado().\", \r\n nom_estado = '\".$est->getNom_estado().\"' \r\n where cod_estado = \".$est->getCod_estado().\";\";\r\n pg_Exec($this->conexion,$sql);\r\n }", "function save() \n\t{\n\t\t$conn = new Conexion();\n\t\tif ($this->id<>0) \n\t\t\t{ \n\n\t\t$sql = $conn->prepare(\"update productos set idMoneda = '$this->idMoneda', idCategoria = '$this->idCategoria', idSubCategoria = '$this->idSubCategoria', descripcion = '$this->descripcion', fechaCarga = '$this->fechaCarga', idUsuario = '$this->idUsuario', activo = '$this->activo', aviso_stock = '$this->aviso_stock', precio = '$this->precio', desc1 = '$this->desc1', desc2 = '$this->desc2', desc3 = '$this->desc3', utilidad = '$this->utilidad', iva = '$this->iva' where id='$this->id'\");\n\t\t$sql->execute();\n\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t$sql = $conn->prepare(\"insert into productos values (null, '$this->idMoneda', '$this->idCategoria','$this->idSubCategoria', '$this->descripcion', '$this->fechaCarga', '$this->idUsuario', '$this->activo', '$this->aviso_stock', '$this->precio', '$this->desc1', '$this->desc2', '$this->desc3', '$this->utilidad', '$this->iva')\");\n\t\t\t$sql->execute();\n\t\t\t$this->id = $conn->lastInsertId();\n\n\t\t\t} \n\t\t$sql=null;\n\t\t$conn=null;\t\n\t}", "function asignar_valores2(){\n\t\t/* Metodo para recibir valores del exterior. */\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t\n\t\t$this->id=$_POST['id'];\n\t\t$this->desde=$_POST['desde'];\n\t\t$this->hasta=$_POST['hasta'];\n\t\t$this->titulo=$_POST['titulo'];\n\t\t$this->alternativo=$_POST['alternativo'];\n\t\t$this->paxadicional=$_POST['paxadicional'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->mostrar=$_POST['publica'];\n\t\t\n\t\t$this->desde_a=$_POST['desde_a'];\n\t\t$this->hasta_a=$_POST['hasta_a'];\n\t\t$this->precio_a=$_POST['precio_a'];\n\t\t$this->desde_b=$_POST['desde_b'];\n\t\t$this->hasta_b=$_POST['hasta_b'];\n\t\t$this->precio_b=$_POST['precio_b'];\n\t\t\n\t}", "public function save()\n {\n $this->_user->setAttribute(\n 'cart_items',\n $this->_items,\n timpanyCart::SESSION_NS\n );\n }", "private function _saveSeo() {\r\n\r\n // get plugins details\r\n $plugin = JPluginHelper::getPlugin( 'system', 'shmobile');\r\n $params = new JRegistry();\r\n $params->loadString( $plugin->params);\r\n\r\n // get current values\r\n $defaultEnabled = $params->get('mobile_switch_enabled');\r\n $defaultTemplate = $params->get('mobile_template');\r\n\r\n // save mobile template switcher params, stored in system plugin\r\n $mobile_switch_enabled = JRequest::getBool( 'mobile_switch_enabled', $defaultEnabled);\r\n $mobile_template = JRequest::getCmd( 'mobile_template', $defaultTemplate);\r\n\r\n // set params\r\n $params->set('mobile_switch_enabled', $mobile_switch_enabled);\r\n $params->set('mobile_template', $mobile_template);\r\n $textParams = (string) $params;\r\n\r\n try {\r\n ShlDbHelper::update( '#__extensions', array('params' => $textParams), array( 'element' => 'shmobile', 'folder' => 'system', 'type' => 'plugin'));\r\n } catch (Exception $e) {\r\n\r\n }\r\n\r\n }", "public function aprova()\n {\n $this -> estadoAtual -> aprova($this);\n }", "function save_store_logo($logo = array()){\n\t\tupdate_option('stores_logo', $logo);\t\t\n\t}", "public function saveProductos()\n {\n\n $resultado = false;\n // Insert into ala tabla productos\n $sql = \"INSERT INTO productos VALUES(NULL, '{$this->getCategoria_id()}', '{$this->getNombre()}', '{$this->getDescripcion()}', {$this->getPrecio()}, {$this->getStock()}, null, CURDATE() , '{$this->getImagen()}')\";\n $resultado = $this->conexion->query($sql);\n\n // Validar que el INSERT INTO fue exitoso y hacemos un return de un true\n if ($resultado == true) {\n $resultado = true;\n return $resultado;\n }\n\n return $resultado;\n }", "public function setProduto($produto)\r\n {\r\n $this->produto = $produto;\r\n }", "public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\n }", "public function setRecordInDB($id_utente_registrato, $nome, $cognome, $codice_fiscale, $data_nascita, $numero_telefono, $email, $password){\r\n include_once './db_functions.php';\r\n $db = new DB_Functions();\r\n //Escaping\r\n $nome = DB_Functions::esc($nome);\r\n $cognome = DB_Functions::esc($cognome);\r\n $codice_fiscale = DB_Functions::esc($codice_fiscale);\r\n $numero_telefono = DB_Functions::esc($numero_telefono);\r\n $data_nascita = DB_Functions::esc($data_nascita);\r\n $email = DB_Functions::esc($email);\r\n $password = DB_Functions::esc($password);\r\n\r\n $query = \"UPDATE UTENTE_REGISTRATO \r\n SET \tNOME = $nome,\r\n COGNOME = $cognome,\r\n CODICE_FISCALE = $codice_fiscale,\r\n NUMERO_TELEFONO = $numero_telefono,\r\n DATA_NASCITA = $data_nascita,\r\n EMAIL = $email,\r\n PASSWORD = SHA1($password)\r\n WHERE \t\r\n ID_UTENTE_REGISTRATO = $id_utente_registrato;\";\r\n $resQuery = $db->executeQuery($query);\r\n if ($resQuery[\"state\"]) {\r\n $this->nome = $nome;\r\n $this->cognome = $cognome;\r\n $this->codice_fiscale = $codice_fiscale;\r\n $this->data_nascita = $data_nascita;\r\n $this->numero_telefono = $numero_telefono;\r\n $this->email = $email;\r\n $this->password = $password;\r\n }\r\n return $resQuery;\r\n }", "public function saveNota(){\t\t \r\n\t\t$this->notas_model->saveNotas($_POST);\r\n\t}", "function actualizarConvenio(){\n \n $nombrePrograAca = $_POST['nombrePrograAca'];\n $fechaIni = $_POST['fechaIni'];\n $fechaFin = $_POST['fechaFin'];\n $codRecaudo = $_POST['codrecaudo'];\n $inversion = $_POST['inversion'];\n $id=$_POST[\"id\"];\n\n\t\t\t//Se consultan todos los convenios\n\t\t\t$conexion=Conexion::getInstance();\n\t\t\t$consulta=\"update programaacademico set `nomprogramaacademico`='$nombrePrograAca', \n `fechainicioprogaca`='$fechaIni', `fechafinprogaca`='$fechaFin', `codigorecaudo`='$codRecaudo', \n `inversion`='$inversion' where `idprogramaacademico`='$id'\";\n \n $res= $conexion->actualizar($consulta);\n if ($res==1){\n echo \"<h2><strong>Actualización exitosa!!!</strong></h2>\";\n }\n\t\t //fin de la funcion\n\t\t}", "function shoestrap_customize_save() {\n set_theme_mod( 'shoestrap_customizer_preSave', get_theme_mods() );\n}", "function carspotAPI_save_appProduct_ids( $post_id )\n\t{\n\t\tif( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;\n\t\t \n\t\t/*if our nonce isn't there, or we can't verify it, bail*/\n\t\tif( !isset( $_POST['meta_box_nonce_product'] ) || !wp_verify_nonce( $_POST['meta_box_nonce_product'], 'my_meta_box_nonce_product' ) ) return;\n\t\t \n\t\t/*if our current user can't edit this post, bail*/\n\t\tif( !current_user_can( 'edit_post' ) ) return;\n\t\t\n\t\t/*Make sure your data is set before trying to save it*/\n\t\tif( isset( $_POST['package_product_code_android'] ) ){\n\t\t\tupdate_post_meta( $post_id, 'package_product_code_android', $_POST['package_product_code_android'] );\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tupdate_post_meta( $post_id, 'package_product_code_android', '' );\n\t\t}\n\t\t/*For IOS */\n\t\tif( isset( $_POST['package_product_code_ios'] ) ){\n\t\t\tupdate_post_meta( $post_id, 'package_product_code_ios', $_POST['package_product_code_ios'] );\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tupdate_post_meta( $post_id, 'package_product_code_ios', '' );\n\t\t}\t\t\n\t}", "function saveSettings()\n {\n\t if ( wfReadOnly() ) {\n\t\treturn;\n\t }\n\t if ( 0 == $this->mCedarId ) {\n\t\treturn;\n\t }\n\t \n\t $dbw =& wfGetDB( DB_MASTER );\n\t $dbw->update( 'cedar_user_info',\n\t\t array( /* SET */\n\t\t\t 'user_id' => $this->mId,\n\t\t\t 'organization' => $this->mOrg,\n\t\t\t 'address1' => $this->mAddress1,\n\t\t\t 'address2' => $this->mAddress2,\n\t\t\t 'city' => $this->mCity,\n\t\t\t 'state' => $this->mState,\n\t\t\t 'country' => $this->mCountry,\n\t\t\t 'postal_code' => $this->mPostalCode,\n\t\t\t 'phone' => $this->mPhone,\n\t\t\t 'mobile_phone' => $this->mMobilePhone,\n\t\t\t 'fax' => $this->mFax,\n\t\t\t 'supervisor_name' => $this->mSupervisorName,\n\t\t\t 'supervisor_email' => $this->mSupervisorEmail\n\t\t ), array( /* WHERE */\n\t\t\t 'user_info_id' => $this->mCedarId\n\t\t ), __METHOD__\n\t );\n\t $this->clearSharedCache();\n }", "function asignar_valores2(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->apellido=$_POST['apellido'];\n\t\t$this->telefono=$_POST['telefono'];\n\t\t$this->email=$_POST['email'];\n\t\t\n\t\t$this->marca=$_POST['marca'];\n\t\t$this->modelo=$_POST['modelo'];\n\t\t$this->ano=$_POST['ano'];\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t}", "public function savePlanCaracteristica( $args = array() ){\r\t\t\r\t\t$db = JFactory::getDbo();\r\t\t$model = new stdClass();\r\t\t\r\t\t// Fetch the model attributes with the $model's var\r\t\tforeach ( $args as $key=>$valor ) {\r\t\t\t$model->$key = $valor;\r\t\t}\r\t\t\r\t\tif( !empty( $this->insertId ) ){\r\t\t\t\r\t\t\t$model->id_plan = $this->insertId;\r\t\t\t\r\t\t}elseif( !empty( $this->id_plan ) ){\r\t\t\t\r\t\t\t$model->id_plan = $this->id_plan;\r\t\t}\r\t\t\t\r\t\t/*\r\t\t* hago consulta, para saber si ya existe la categoria para el plan, y\r\t\t* si existe solo actualizo los valores\r\t\t*/\r\t\t\r\t\t$query = $db->getQuery( true );\r\t\t$query->select( 'id_caracteristica_plan' );\r\t\t$query->from( '#__caracteristicas_planes' );\r\t\t$query->where( array( 'id_plan = '.$model->id_plan , 'id_caracteristica = '.$model->id_caracteristica ) );\r\t\t$db->setQuery( $query );\r\t\t$id_caracteristica = $db->loadResult();\r\t\t\r\t\t//var_dump($id_caracteristica);\r\t\t\r\t\tif( $id_caracteristica )\r\t\t\t$model->id_caracteristica_plan = $id_caracteristica;\r\t\t\r\t\tif( $db->updateObject( '#__caracteristicas_planes' , $model , 'id_caracteristica_plan' , false ))\r\t\t{ \r\t\t\treturn true;\r\t\t}\r\t\telseif( $db->insertObject( '#__caracteristicas_planes', $model ) ){\r\t\t\t\r\t\t\treturn true;\r\t\t}\r\t\t\r\t\treturn false;\r\t}", "private static function set_sync_for_products( array $products, $enabled ) {\n\n\t\tself::$products_sync_enabled = array();\n\n\t\t$enabled = wc_bool_to_string( $enabled );\n\n\t\tforeach ( $products as $product ) {\n\n\t\t\tif ( $product instanceof \\WC_Product ) {\n\n\t\t\t\tif ( $product->is_type( 'variable' ) ) {\n\n\t\t\t\t\tforeach ( $product->get_children() as $variation ) {\n\n\t\t\t\t\t\t$product_variation = wc_get_product( $variation );\n\n\t\t\t\t\t\tif ( $product_variation instanceof \\WC_Product ) {\n\n\t\t\t\t\t\t\t$product_variation->update_meta_data( self::SYNC_ENABLED_META_KEY, $enabled );\n\t\t\t\t\t\t\t$product_variation->save_meta_data();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\t$product->update_meta_data( self::SYNC_ENABLED_META_KEY, $enabled );\n\t\t\t\t\t$product->save_meta_data();\n\t\t\t\t}\n\t\t\t}//end if\n\t\t}//end foreach\n\t}", "function editar_pr_factura(){\n\n\t\t $u = new entrada();\n $u->usuario_id = $GLOBALS['usuarioid'];\n $u->empresas_id = $GLOBALS['empresaid'];\n\t$precio=$_POST['costo_unitario'];\n\t$producto_id=$_POST['cproductos_id'];\n $u->fecha = date(\"Y-m-d H:i:s\");\n $related = $u->from_array($_POST);\n if ($u->id == 0)\n unset($u->id);\n if ($u->save($related)) {\n$this->db->query(\"update cproductos set precio_compra='$precio' where id=$producto_id\");\n echo $u->id;\n } else\n echo 0; \n \n\t}", "public function setArrayEditoras($arrayEditoras)\n\t\t{\n\t\t\t\t$this->arrayEditoras = $arrayEditoras;\n\n\t\t}", "public function RegistrarKardex($tabla, $idProductoTabla, $fecha, $Movimiento, $Detalle, $idDocumento, $Cantidad, $ValorUnitario, $ValorTotal, $idProducto)\r\n {\r\n\t//$sql=\"INSERT INTO `servitorno`.`clientes` ( `RazonSocial`, `NIT`, `Direccion`, `Telefono`, `Ciudad`, `Contacto` , `TelContacto`, `Email`) VALUES ('$_POST[TxtNombre]', '$_POST[TxtNIT]', '$_POST[TxtDireccion]', '$_POST[TxtTelefono]', '$_POST[TxtCiudad]', '$_POST[TxtContacto]', '$_POST[TxtCelConta]', '$_POST[TxtEmail]')\";\r\n\t\t \r\n\t$sql=\"INSERT INTO `$this->database`.`$tabla` ( `Fecha`, `Movimiento`, `Detalle`, `idDocumento`, `Cantidad`, `ValorUnitario` , `ValorTotal`, `$idProductoTabla`)\r\n\tVALUES ( '$fecha','$Movimiento','$Detalle','$idDocumento','$Cantidad','$ValorUnitario','$ValorTotal','$idProducto')\";\r\n\r\n\tmysql_query($sql, $this->con) or die('no se pudo registrar el movimiento en la tabla $tabla: ' . mysql_error());\t\r\n\t\r\n}", "function change_summer($betriebsart){\n\t\tconnectsql();\n\t\t// --- Write Data to DB ---\n\t\t$sql_query = \"UPDATE poolsettings SET `summer1`=$betriebsart\";\n\t\tmysql_query($sql_query) or syslog(LOG_WARNING,\"** kein Schreiben durch $job in DB! **\". mysql_error());\n\t\t//Close Connection to MySQL\n\t\tmysql_close();\n}", "public function setProductSequence($coupon_id, $prod_id, $seq)\n {\n CI::db()->where(array('coupon_id'=>$coupon_id, 'product_id'=>$prod_id));\n CI::db()->update('coupons_products', array('sequence'=>$seq));\n }", "private function saveFieldQuotaMode( array $submittedData, tx_scheduler_Task $task )\n {\n $task->postfix_quotaMode = $submittedData['postfix_quotaMode'];\n }", "public function asignarProyecto($id_equipamiento, $id_proyecto)\n {\n $gn_proyecto = new GnProyecto();\n if($gn_proyecto->asignarProyecto($id_equipamiento, $id_proyecto)){\n return true;\n }\n else{\n return false;\n }\n }", "function save_custom_field( $post_id ) {\r\n $user = wp_get_current_user();\r\n $_warehouse_flag = isset( $_POST['_warehouse_flag'] ) ? $_POST['_warehouse_flag'] : '';\r\n $product = wc_get_product( $post_id );\r\n \r\n if($_warehouse_flag==1){\r\n\t $product->update_meta_data( '_warehouse_flag', 'A' );\r\n }\r\n if($_warehouse_flag==2){\r\n\t $product->update_meta_data( '_warehouse_flag', 'V' );\r\n }\r\n $_enable_warehouse = isset( $_POST['_enable_warehouse'] ) ? $_POST['_enable_warehouse'] : '0';\r\n \r\n \r\n $product->update_meta_data( '_enable_warehouse', $_enable_warehouse );\r\n if($_enable_warehouse==1){\r\n\t $categories = [ 'Warehouse Product'];\r\n\t wp_set_object_terms( $post_id, $categories, 'warehouses' );\r\n }\r\n else{\r\n\t $categories = [ 'Warehouse Product'];\r\n\t wp_set_object_terms( $post_id, null, 'warehouses' );\r\n }\r\n \r\n $product->save();\r\n \r\n \r\n}", "protected function _beforeSave()\n {\n $value = $this->getValue();\n $value = Mage::helper('mail/connectfields')->makeStorableArrayFieldValue($value);\n $this->setValue($value);\n }", "public function setPermiteArrastar($bPermiteArrastar) {\n $this->bPermiteArrastar = $bPermiteArrastar;\n }" ]
[ "0.62544084", "0.52535325", "0.50332135", "0.49454668", "0.4906765", "0.4852797", "0.48102087", "0.47914103", "0.47779262", "0.46722963", "0.4655261", "0.45888653", "0.45865816", "0.45854178", "0.4575007", "0.45677438", "0.456129", "0.45601773", "0.4544832", "0.45376924", "0.45355353", "0.45297405", "0.45055783", "0.44966826", "0.4489669", "0.44877976", "0.44807497", "0.4470429", "0.44544733", "0.44456902", "0.444425", "0.4443542", "0.4442762", "0.44290662", "0.44267446", "0.44233638", "0.44230887", "0.44128597", "0.44084397", "0.4407759", "0.44051373", "0.4396498", "0.4390559", "0.43850407", "0.43798095", "0.43798095", "0.4378843", "0.4378545", "0.4372824", "0.43676934", "0.43660018", "0.4360884", "0.43601173", "0.435568", "0.435286", "0.43522906", "0.43489864", "0.43405545", "0.4338962", "0.43377417", "0.43258286", "0.43187344", "0.4318239", "0.43133214", "0.43114984", "0.4302117", "0.4296968", "0.42967683", "0.42912453", "0.42907357", "0.42777252", "0.42775637", "0.42711264", "0.42668778", "0.42634237", "0.42614785", "0.42597085", "0.42573383", "0.42553848", "0.42549294", "0.42417765", "0.42355296", "0.4233752", "0.4232029", "0.42290074", "0.42278758", "0.4222818", "0.4222208", "0.42215958", "0.4219916", "0.4219584", "0.42172816", "0.42161655", "0.42108065", "0.42031088", "0.42005026", "0.4200432", "0.4198227", "0.41937605", "0.4193568" ]
0.495876
3
setProdAircraftreg() Set the value of [mb] column.
public function setMb($v) { if ($v !== null) { $v = (int) $v; } if ($this->mb !== $v) { $this->mb = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_MB] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProdAircraftreg($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_aircraftreg !== $v) {\n $this->prod_aircraftreg = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_AIRCRAFTREG] = true;\n }\n\n return $this;\n }", "public function getProdAircraftreg()\n {\n return $this->prod_aircraftreg;\n }", "public function setRmb($value)\n {\n return $this->set(self::_RMB, $value);\n }", "public function setRmb($value)\n {\n return $this->set(self::_RMB, $value);\n }", "public function setRegnoAttribute($value)\n\t{\n\t\t$this->attributes['regno'] = strtoupper($value);\n\t}", "public function testSetMtSalaireBrut() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtSalaireBrut(10.092018);\n $this->assertEquals(10.092018, $obj->getMtSalaireBrut());\n }", "public function setMagia9Attribute($value) {\n $this->attributes['magia9'] = $this->verificaAtributo($value, true);\n }", "public function setRmb($value)\n {\n return $this->set(self::RMB, $value);\n }", "public function setTxMarcaHardware($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->tx_marca_hardware !== $v) {\n\t\t\t$this->tx_marca_hardware = $v;\n\t\t\t$this->modifiedColumns[] = C060InventarioPeer::TX_MARCA_HARDWARE;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setCurrentAmmo($currentAmmo) {\n $this->currentAmmo = $currentAmmo;\n }", "public function set_barbe($_barbe){\n $this->_barbe = $_barbe;\n\n return $this;\n }", "public function setMemprosesAir($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->memproses_air !== $v) {\n $this->memproses_air = $v;\n $this->modifiedColumns[] = SanitasiPeer::MEMPROSES_AIR;\n }\n\n\n return $this;\n }", "function setMbrid($value) {\n $this->_mbrid = trim($value);\n }", "public static function setMemoryLimit($mb){\n\t\t$max = \\GO\\Base\\Util\\Number::configSizeToMB(ini_get(\"memory_limit\"));\n\n\t\tif($max > 0 && $mb>$max){\n\t\t\treturn ini_set(\"memory_limit\", $mb.'M');\n\t\t}else\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "public function setFree($free)\n {\n $this->_setFree = (integer)$free;\n }", "public function setMinistryAttribute($value)\n {\n $this->attributes['ministry'] = $value ? $value : null;\n }", "public function testSetCumBrutAbatNonLim() {\n\n $obj = new Employes();\n\n $obj->setCumBrutAbatNonLim(10.092018);\n $this->assertEquals(10.092018, $obj->getCumBrutAbatNonLim());\n }", "function setChambrehospi($chambre){\n $this->chambre = $chambre;\n }", "public function setMembre($membre)\n {\n $this->membre = $membre;\n\n return $this;\n }", "public function setMarca($marca)\n {\n $this->marca = $marca;\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "function setMdb($mdb){\n $this->mdb = $mdb;\n $this->dbdotcoll = $this->mdb.'.'.$this->collection;\n }", "public function setCellular(string $cellular = null) : CNabuDataObject\n {\n $this->setValue('nb_icontact_prospect_cellular', $cellular);\n \n return $this;\n }", "public function setMarca($marca)\n {\n $this->marca = $marca;\n\n }", "public function setMiAttribute($value)\n {\n $this->attributes['mi'] = strtoupper(str_replace('.', '', trim($value)));\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "function setSyncProdWeight()\n {\n }", "public function setMarca($marca)\n {\n $this->marca = $marca;\n }", "protected function setMemoryLimit() {}", "function abbinamentiCambiaMarchio($con) {\n $sql=\"UPDATE abbinamenti SET abb_mark = 'Modulo', abb_mark_id = 49 WHERE abb_line_id = 60\";\n mysqli_query($con,$sql);\n}", "public function testSetTauxPensionMilitaire() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionMilitaire(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionMilitaire());\n }", "public function setPembuanganAirLimbah($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->pembuangan_air_limbah !== $v) {\n $this->pembuangan_air_limbah = $v;\n $this->modifiedColumns[] = SanitasiPeer::PEMBUANGAN_AIR_LIMBAH;\n }\n\n\n return $this;\n }", "public function setASabunAirMengalir($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->a_sabun_air_mengalir !== $v) {\n $this->a_sabun_air_mengalir = $v;\n $this->modifiedColumns[] = SanitasiPeer::A_SABUN_AIR_MENGALIR;\n }\n\n\n return $this;\n }", "function setMonth($m)\r\n {\r\n if($m < 1 || $m > 12) {\r\n $this->mes = 1;\r\n } else {\r\n $this->mes = $m;\r\n }\r\n }", "public function setMagia7Attribute($value) {\n $this->attributes['magia7'] = $this->verificaAtributo($value, true);\n }", "public function getPembuanganAirLimbah()\n {\n return $this->pembuangan_air_limbah;\n }", "public function &setMaand($maand) {\n\t\t$this->notifyChanged(self::FIELD_MAAND,$this->maand,$maand);\n\t\t$this->maand=$maand;\n\t\treturn $this;\n\t}", "public function setBandwidthCapacityInMbps($val)\n {\n $this->_propDict[\"bandwidthCapacityInMbps\"] = $val;\n return $this;\n }", "public function setRegstateAttribute($value)\n\t{\n\t\t$this->attributes['regstate'] = strtoupper($value);\n\t}", "function setMateria($materia){\n\t\t\n\t\t$this->materia = $materia;\n\t\t$this->cambios = true;\n\t}", "function setValue($m)\n\t{\n\t\t$this->value = $m;\n\t\treturn $this;\n\t}", "function change_summer($betriebsart){\n\t\tconnectsql();\n\t\t// --- Write Data to DB ---\n\t\t$sql_query = \"UPDATE poolsettings SET `summer1`=$betriebsart\";\n\t\tmysql_query($sql_query) or syslog(LOG_WARNING,\"** kein Schreiben durch $job in DB! **\". mysql_error());\n\t\t//Close Connection to MySQL\n\t\tmysql_close();\n}", "public function setMagia6Attribute($value) {\n $this->attributes['magia6'] = $this->verificaAtributo($value, true);\n }", "public function set_dataGraf(){\n\n }", "public function testSetCumBrutAl() {\n\n $obj = new Employes();\n\n $obj->setCumBrutAl(10.092018);\n $this->assertEquals(10.092018, $obj->getCumBrutAl());\n }", "public function testSetMois() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setMois(\"mois\");\n $this->assertEquals(\"mois\", $obj->getMois());\n }", "public function setBaseValue() {\n $sessionstaff = $this->Session->read('staff');\n if ($_POST['base_value'] == '') {\n $_POST['base_value'] = 0;\n }\n $this->AccessStaff->query('update access_staffs set base_value=' . $_POST['base_value'] . ' where clinic_id=' . $sessionstaff['clinic_id']);\n echo 1;\n\n die;\n }", "public function setMonth($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "function lineeGRChange($con) {\n $sql=\"UPDATE linee SET line_manager = '[2]' WHERE line_mark = 'Gierre'\";\n mysqli_query($con,$sql);\n}", "public function set ($data=array()){\n if (array_key_exists('banc_nombre',$data) ){\n\t\t\tforeach($data as $campo=>$valor){\n\t\t\t\t$$campo=$valor;\n\t\t\t}\n\t\t\t$this->parametros = array($banc_nombre,$_SESSION['usua_codigo']);\n\t\t\t$this->sp = \"str_consultaBanco_add\";\n\t\t\t$this->executeSPAccion();\n\t\t\tif($this->filasAfectadas>0){\n\t\t\t\t$this->mensaje=\"Banco agregado exitosamente\";\n\t\t\t}else{\n\t\t\t\t$this->mensaje=\"No se ha agregado el Banco\";\n }\n }else{\n $this->mensaje=\"No se ha agregado el Banco\";\n }\n }", "public function testSetMatricule() {\n\n $obj = new Employes();\n\n $obj->setMatricule(\"matricule\");\n $this->assertEquals(\"matricule\", $obj->getMatricule());\n }", "function setCharacter($character, $link = 0) {\n $this->link = $link ? $link : $this->link;\n $this->character = $character ? $character : $this->character;\n if ($this->link && $this->character)\n if (function_exists('mysql_set_charset')) {\n return mysql_set_charset($this->character, $this->link);\n } else {\n $this->query(\"SET NAMES '{$this->character}';\", $this->link);\n $this->query(\"SET CHARACTER SET '{$this->character}';\", $this->link);\n $this->query(\"SET character_set_results = '{$this->character}', character_set_client = '{$this->character}', character_set_connection = '{$this->character}', character_set_database = '{$this->character}', character_set_server = '{$this->character}';\", $this->link);\n return TRUE;\n }\n else return FALSE;\n }", "public function setTermChar($termChar)\n\t\t{\n\t\t//example if your asking enter amount, user can enter any input \n\t\t// 1 - n number exampe 1 or 20 2000 etc\n\t\t//then ask cutomer to enter amount followed by hash set termchar=# \n\t\t//set maxdigits=<maximum number to be allowed>\n\t\t\n\t\t\t$this->collect_dtmf->setAttribute(\"t\", $termChar);\n\t\t\t\n\t\t}", "public function setIsMdmSupported($val)\n {\n $this->_propDict[\"isMdmSupported\"] = boolval($val);\n return $this;\n }", "function\tsetCustomerRFQNo( $_myCustomerRFQNo) {\n\t\tFDbg::begin( 1, basename( __FILE__), __CLASS__, __METHOD__.\"( '$_myCustomerRFQNo')\") ;\n\t\t$this->CustomerRFQNo\t=\t$_myCustomerRFQNo ;\n\t\tif ( strlen( $_myCustomerRFQNo) > 0) {\n\t\t\t$this->reload() ;\n\t\t}\n\t\tFDbg::end() ;\n\t}", "public function testSetPrixKm() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixKm(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixKm());\n }", "public function setMateria($value){\n\t\tif($this->validateAlphanumeric($value,1,50)){\n\t\t\t$this->materia = $value;\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function setPower()\n {\n $this->_role->power = 200;\n }", "function setRegID($regID) \n {\n $this->setValueByFieldName('reg_id',$regID);\n }", "public function setAutresRemunBrut($autresRemunBrut) {\n $this->autresRemunBrut = $autresRemunBrut;\n return $this;\n }", "function setPredefinedValue($field,$column_number) {\n \n if ($field && \n\t($field->getDisplayType() == \"SB\" || $field->getDisplayType() == \"MB\")) {\n \n //special case for submitted by\n if ($field->getName() == \"submitted_by\") {\n\t// simply put nothing in predefined values for submitted_by\n\t// as we accept all logged users, even None for allow-anon trackers\n\t\n\t//for all other fields not submitted by\n } else {\n\t\n\t$predef_val = $field->getFieldPredefinedValues($this->ath->getID());\n\t$count = db_numrows($predef_val);\n\tfor ($i=0;$i<$count;$i++) {\n $values[SimpleSanitizer::unsanitize(db_result($predef_val,$i,1))] = db_result($predef_val,$i,0);\n\t}\n\t$this->predefined_values[$column_number] = $values;\n }\n }\n }", "public function setPower()\n {\n $this->_role->power = 100;\n }", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function setMagia8Attribute($value) {\n $this->attributes['magia8'] = $this->verificaAtributo($value, true);\n }", "public function setEmpMobile($val){\n\t\tif(trim($val) != ''){\n\t\t\t$this->employeeMobile = trim($val);\n\t\t}\t\t\n\t\treturn $this;\n\t}", "public function SetMaqOp($data){\n\t\t$data = (array)$data;\n\t\t\t\t\t$command = \\Yii::$app->db_mysql;\n\t\t\t$result = $command->createCommand()->insert('maquina_operador',[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'maquina' => $data['maquina'], \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'operador' => $data['operador']\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t])->execute();\n\t\t\n\t}", "public function setMag($mag_)\n\t{\n\t\t$s = $mag_ / $this->mag();\n\t\t$this->scale($s);\n\t}", "public function setMobile($mobile);", "function composizioniProdottiCambiaMarchio($con) {\n $sql=\"UPDATE composizioni_prodotti SET cmpr_mark = 'Modulo', cmpr_mark_id = 49, cmpr_mark_cmp = 'Modulo', cmpr_mark_cmp_id = 49 WHERE cmpr_line_id = 60 OR cmpr_line_id = 61 OR cmpr_line_id = 144 OR cmpr_line_id = 145\";\n mysqli_query($con,$sql);\n}", "function setMiles($new_miles)\n {\n $this->miles = $new_miles;\n }", "public function setMonth($month) {\n\t\t$this->month = $month;\n\t}", "public function setBatteryCapacityFair(?int $value): void {\n $this->getBackingStore()->set('batteryCapacityFair', $value);\n }", "public function set_bodymass($bodymass) {\n if ($bodymass < 3 || $bodymass > 600) {\n $this->bodymass = 0;\n echo \"Dit gewicht is niet geldig<br>\";\n } else {\n $this->bodymass = $bodymass;\n }\n return $this->bodymass;\n }", "function __set($name, $value) {\r\n if ($name == 'mr') {\r\n $this->max_rating = intval($value);\r\n } else if ($name == 'st') {\r\n $this->step = intval($value);\r\n } else if ($name == 'vis') {\r\n $this->visible = $value == '1';\r\n } else if ($name == 'seq') {\r\n $this->sequence = intval($value);\r\n } else if ($name == 'cr') {\r\n $this->created = DateTime::createFromFormat('Y-m-d H:i:s', $value);\r\n } else if ($name == 'upd') {\r\n $this->updated = DateTime::createFromFormat('Y-m-d H:i:s', $value);\r\n } else if ($name == 'num') {\r\n $this->num_ratings = intval($value);\r\n } else if ($name == 'total') {\r\n $this->tot_ratings = floatval($value);\r\n }\r\n\r\n }", "public function testSetCumBrutNonAbattu() {\n\n $obj = new Employes();\n\n $obj->setCumBrutNonAbattu(10.092018);\n $this->assertEquals(10.092018, $obj->getCumBrutNonAbattu());\n }", "public static function setNumberMaxBlocked($nb){\n Configuration::where('id', 1)\n ->update(['nb_max_times_bloked' => $nb]);\n }", "public function setClasseMatiere($classe,$matiere,$coefficient){//enregistrement des nouvelles classes\n $req = \"INSERT INTO `matiere-classe` (`idMatiere`,`idClasse`,`coefficient`) VALUES (:idMatiere,:idClasse,:coefficient)\";\n $params = array(\n \"idMatiere\" => htmlspecialchars($matiere),\n \"idClasse\" => htmlspecialchars($classe),\n \"coefficient\" => htmlspecialchars($coefficient),\n );\n return $this->insert($req,$params);\n }", "public static function setBenchmarck($benchmarck)\n {\n if(isset($benchmarck) && !empty($benchmarck)){\n self::$benchmarck = $benchmarck;\n }\n }", "public function setMagia1Attribute($value) {\n $this->attributes['magia1'] = $this->verificaAtributo($value, true);\n }", "public function setBuslineAttribute($value)\n {\n $this->attributes['busline'] = $value;\n }", "public function setValueBitColumns()\n {\n // Get BIT columns\n $columns = $this->Model->bitColumns;\n foreach ($columns as $column) {\n $this->Request[$column] = (isset($this->Request[$column])) ? 1 : 0;\n }\n }", "public function testSetEtblFax() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblFax(\"etblFax\");\n $this->assertEquals(\"etblFax\", $obj->getEtblFax());\n }", "function tabelleFinitureCambiaMarchio($con) {\n $sql=\"UPDATE tabelle_finiture SET tab_mark = 'Modulo', tab_mark_id = 49 WHERE tab_line_id = 60 OR tab_line_id = 61 OR tab_line_id = 144 OR tab_line_id = 145\";\n mysqli_query($con,$sql);\n}" ]
[ "0.53541887", "0.5190568", "0.4915646", "0.4915646", "0.49065912", "0.49050942", "0.48836616", "0.48359486", "0.48322132", "0.47462043", "0.47079426", "0.470247", "0.46806985", "0.46769604", "0.46723476", "0.46598464", "0.46386623", "0.46343005", "0.46147653", "0.46031472", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45867184", "0.45864958", "0.45813632", "0.45705944", "0.45658144", "0.45638245", "0.45638245", "0.45609194", "0.45423764", "0.45259818", "0.45218128", "0.45091084", "0.4502579", "0.44783852", "0.44643515", "0.44525704", "0.44419873", "0.443683", "0.4427518", "0.44227058", "0.44190097", "0.44056225", "0.43948704", "0.43787175", "0.4376672", "0.4373203", "0.4371439", "0.4370694", "0.4365057", "0.4348608", "0.43234664", "0.4311461", "0.43062225", "0.43046665", "0.43017685", "0.42951322", "0.42894325", "0.4289292", "0.42876393", "0.42870268", "0.42869502", "0.4285724", "0.42808878", "0.42789102", "0.42754138", "0.42692885", "0.4268206", "0.42666665", "0.4260361", "0.42546627", "0.42445284", "0.42436948", "0.4236298", "0.42311376", "0.42300108", "0.42299646", "0.42215505", "0.42196757", "0.4217812", "0.42174625", "0.4215815", "0.4214016", "0.4207727", "0.42052904" ]
0.5460624
0
setMb() Set the value of [pa] column.
public function setPa($v) { if ($v !== null) { $v = (int) $v; } if ($this->pa !== $v) { $this->pa = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_PA] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMb($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->mb !== $v) {\n $this->mb = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_MB] = true;\n }\n\n return $this;\n }", "public function set_pa(Int $_pa){\n $this->_pa = $_pa;\n\n return $this;\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "public function setMbID($value)\n {\n return $this->set('MbID', $value);\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "public static function setNumberMaxBlocked($nb){\n Configuration::where('id', 1)\n ->update(['nb_max_times_bloked' => $nb]);\n }", "public function setColumna($col){\n if($col>3 ){\n $this->columna = 3;\n }\n elseif ($col<0) {\n $this->columna = 0;\n }\n else{\n $this->columna = $col;\n }\n }", "private function _set_nb_qcm() {\n $sql = \"SELECT COUNT(id_qcm) FROM qcm WHERE qcm.id_test = $this->_id_test;\";\n $select = connect_db()->prepare($sql);\n $select->execute();\n $this->_nb_qcm = $select->fetch();\n $select->closeCursor();\n }", "public function setMiAttribute($value)\n {\n $this->attributes['mi'] = strtoupper(str_replace('.', '', trim($value)));\n }", "public function getMb()\n {\n return $this->mb;\n }", "public function set($column,$value);", "public function setPaisAttribute($value)\n\t{\n\t\t$this->attributes['pais'] = mb_strtoupper($value);\n\t}", "public function setMpPerc($value)\n {\n return $this->set(self::_MP_PERC, $value);\n }", "function set_pm_defecto($punto)\n\t{\n\t\t$db = $this->get_db();\n\t\t$id_punto = $db->quote($punto->get_id());\n\t\t$sql = \"UPDATE apex_proyecto\n\t\t\t\tSET pm_impresion = $id_punto,\n\t\t\t\t\tpm_sesion = $id_punto,\n\t\t\t\t\tpm_contexto = $id_punto,\n\t\t\t\t\tpm_usuario = $id_punto\n\t\t\t\tWHERE proyecto = \".$db->quote($this->identificador);\n\t\t$db->ejecutar($sql);\n\t}", "public static function setMemoryLimit($mb){\n\t\t$max = \\GO\\Base\\Util\\Number::configSizeToMB(ini_get(\"memory_limit\"));\n\n\t\tif($max > 0 && $mb>$max){\n\t\t\treturn ini_set(\"memory_limit\", $mb.'M');\n\t\t}else\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "public function setMataPelajaran($mata_pelajaran);", "public function getPSBMAU()\n\t{\n\t\t$query = $this->db->query\n\t\t(\"\n\t\t\tSELECT COUNT(lembaga) as psbmau\n\t\t\tFROM psb_calonsiswa\n\t\t\tWHERE lembaga='MA Unggulan Amanatul Ummah' AND statusfinalisasi = 'y'\n\t\t\t\t\tAND tahunmasuk='$this->tahunmasuk'\n\n\t\t\");\n\t\tif ($query->num_rows()>0){\n\t\t\t\t\tforeach ($query->result() as $row)\n\t\t\t\t\t\t$data['psbmau'] = $row->psbmau;\n\t\t\t\t}\n\t\t\t\treturn $data['psbmau'];\n\t}", "public function setBp($bp)\n {\n $this->bp = $bp;\n \n return $this;\n }", "public function setPa($pa)\n {\n $this->pa = $pa;\n\n return $this;\n }", "public function testSetPrime1Mai() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime1Mai(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime1Mai());\n }", "public function setBatteryCapacityPoor(?int $value): void {\n $this->getBackingStore()->set('batteryCapacityPoor', $value);\n }", "public function bandaToMB($banda) {\n\n $banda = round(floatval($banda / 1024 / 1024), 2);\n\n $resultado = \"{$banda} MB\";\n return $resultado;\n }", "function set_bundle_cnt($ordno,$mall,$type='p'){\n\t\t\n\t\tif($type=='p'){\n\t\t\t$default_val=0;\n\t\t\t$calu=\"+\";\n\t\t}else if($type=='m'){\n\t\t\t$default_val=2;\n\t\t\t$calu=\"-\";\n\t\t}\n\t\t\n\t\tif($mall){\n\t\t\t$add_where=\" and mall_no=:mall_no\";\n\t\t\t$param[':mall_no']=$mall;\n\t\t}\n\t\t$qry=\"update order_list set bundle=if(bundle='\".$default_val.\"',bundle\".$calu.\"2,bundle\".$calu.\"1) where bundle>0 and ordno=:ordno\".$add_where;\n\t\t$param[':ordno']=$ordno;\n\t\t$this->db->query($qry,$param);\n\t\t\n\t}", "public function initializeM($m, $nb = 25)\n {\n for($j=0; $j<$nb; $j++){\n\n $label = \"m+\".$j;\n\n if ($j == 0) {\n $label = \"m\";\n }\n\n $m[$label] = 0;\n }\n\n return $m;\n \n }", "public function setNbHBase(?float $nbHBase): ChargesPaie {\n $this->nbHBase = $nbHBase;\n return $this;\n }", "public function setProperty($name, $value)\n\t{\n\n\t\t$this->mpdf->{$name} = $value;\n\n\t}", "public function setPembuanganAirLimbah($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->pembuangan_air_limbah !== $v) {\n $this->pembuangan_air_limbah = $v;\n $this->modifiedColumns[] = SanitasiPeer::PEMBUANGAN_AIR_LIMBAH;\n }\n\n\n return $this;\n }", "function setValue($m)\n\t{\n\t\t$this->value = $m;\n\t\treturn $this;\n\t}", "public function __set ($psProperty, $pmValue)\n\t{\n\t\t$this->set($psProperty, $pmValue);\n\t}", "public function get_pa(){ return $this->_pa;}", "private function set_sizeMib($v)\n\t{\n\t\tUtil::validateArgCount(func_num_args(), 1);\n\t\tUtil::validateType($v, \"int\");\n\t\tif (!$this->isNew) {\n\t\t\tthrow new SaklientException(\"immutable_field\", \"Immutable fields cannot be modified after the resource creation: \" . \"Saklient\\\\Cloud\\\\Resources\\\\Disk#sizeMib\");\n\t\t}\n\t\t$this->m_sizeMib = $v;\n\t\t$this->n_sizeMib = true;\n\t\treturn $this->m_sizeMib;\n\t}", "public function testSetNumeroPermis() {\n\n $obj = new Employes();\n\n $obj->setNumeroPermis(\"numeroPermis\");\n $this->assertEquals(\"numeroPermis\", $obj->getNumeroPermis());\n }", "protected function setMemoryLimit() {}", "public function __set( $name, $value ) {\n\t\tif( $this->getTable()->hasColumn( $name ) ) {\n\t\t\t$this->_updateBuffer[ $name ] = $value;\n\t\t}\n\t}", "function setMbrid($value) {\n $this->_mbrid = trim($value);\n }", "function setMonth($m)\r\n {\r\n if($m < 1 || $m > 12) {\r\n $this->mes = 1;\r\n } else {\r\n $this->mes = $m;\r\n }\r\n }", "function setMdb($mdb){\n $this->mdb = $mdb;\n $this->dbdotcoll = $this->mdb.'.'.$this->collection;\n }", "public function setPanjKasoM($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->panj_kaso_m !== $v) {\n $this->panj_kaso_m = $v;\n $this->modifiedColumns[] = BangunanPeer::PANJ_KASO_M;\n }\n\n\n return $this;\n }", "public function createMPa($data) {\n $this->db->insert('m_pa',$data);\n }", "function setPredefinedValue($field,$column_number) {\n \n if ($field && \n\t($field->getDisplayType() == \"SB\" || $field->getDisplayType() == \"MB\")) {\n \n //special case for submitted by\n if ($field->getName() == \"submitted_by\") {\n\t// simply put nothing in predefined values for submitted_by\n\t// as we accept all logged users, even None for allow-anon trackers\n\t\n\t//for all other fields not submitted by\n } else {\n\t\n\t$predef_val = $field->getFieldPredefinedValues($this->ath->getID());\n\t$count = db_numrows($predef_val);\n\tfor ($i=0;$i<$count;$i++) {\n $values[SimpleSanitizer::unsanitize(db_result($predef_val,$i,1))] = db_result($predef_val,$i,0);\n\t}\n\t$this->predefined_values[$column_number] = $values;\n }\n }\n }", "public function modifierMbyte($num)\n {\n if (strtolower($this->getIsp()) == 'tnc') {\n $kNum = round(ceil($num/10000));\n $mNum = $kNum/100;\n }else{\n $mNum = round($num/pow(1024,2),2);\n }\n return $mNum.\"MB\";\n }", "static public function mdlEditarPrecioMembresia($tabla,$datos){\n\n\t\t$stmt = Conexion::conectar()->prepare(\"UPDATE $tabla SET id_tipo_membresia = :id_tipo_membresia,nombre_precio_membresia = :nombre_precio_membresia, precio = :precio, id_usuario = :id_usuario WHERE id_precio_membresia = :id\");\n\n\t\t$stmt->bindParam(\":id\", $datos[\"id\"], PDO::PARAM_INT);\n\t\t$stmt->bindParam(\":id_tipo_membresia\", $datos[\"id_tipo_membresia\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":nombre_precio_membresia\", $datos[\"nombre_precio_membresia\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":precio\", $datos[\"precio\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":id_usuario\", $datos[\"id_usuario\"], PDO::PARAM_STR);\n\n\t\tif($stmt->execute()){\n\n\t\t\treturn \"ok\";\n\n\t\t}else{\n\n\t\t\treturn \"error\";\n\t\t\n\t\t}\n\n\t\t$stmt->close();\n\t\t$stmt = null;\n\n }", "public function setNbPerPage($nbPerPage)\n {\n $this->nbPerPage = $nbPerPage;\n $this->calcNbPages();\n }", "function SetPersistence($bln) {\n $this->_blnPsnt = $bln;\n }", "public function setVariableValue($name, $value) {\n\t\tif ($this->rows) {\n\t\t\tforeach ($this->rows as $row) {\n\t\t\t\tif ($row->matchesVariableName($name)) {\n\t\t\t\t\tif ($name == 'upload_maxsize') {\n\t\t\t\t\t\treturn $row->setVariableValue($value*1000000);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn $row->setVariableValue($value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function setRmb($value)\n {\n return $this->set(self::RMB, $value);\n }", "public function setJmlJambanPG($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->jml_jamban_p_g !== $v) {\n $this->jml_jamban_p_g = $v;\n $this->modifiedColumns[] = SanitasiPeer::JML_JAMBAN_P_G;\n }\n\n\n return $this;\n }", "public function setAMemilikiTps($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->a_memiliki_tps !== $v) {\n $this->a_memiliki_tps = $v;\n $this->modifiedColumns[] = SanitasiPeer::A_MEMILIKI_TPS;\n }\n\n\n return $this;\n }", "public function setQuota($value) {\n $this->_quota = $value;\n }", "function setBytes($index, $value)\n\t{\n\t\tif( $value === NULL )\n\t\t\t$v = \"NULL\";\n\t\telse\n\t\t\t$v = \"'\" . addslashes($value) . \"'\";\n\t\t$this->setParameter($index, $v);\n\t}", "public function setBandwidthCapacityInMbps($val)\n {\n $this->_propDict[\"bandwidthCapacityInMbps\"] = $val;\n return $this;\n }", "function setPonum($ponum) {\n\t\tif ((strlen($ponum)>=1 and strlen($ponum)<=60) or !preg_match(\"/ /\", $ponum)) {\n\t\t\t$this->ponum = $ponum;\n\t\t} else {\n\t\t\t$this->error[] = \"Invalid Purchase Order Number\";\n\t\t}\n\t}", "function setPonum($ponum) {\n\t\tif ((strlen($ponum)>=1 and strlen($ponum)<=60) or !preg_match(\"/ /\", $ponum)) {\n\t\t\t$this->ponum = $ponum;\n\t\t} else {\n\t\t\t$this->error[] = \"Invalid Purchase Order Number\";\n\t\t}\n\t}", "private function setPage($page)\n {\n $this->page = (int)$page;\n $this->offset = ($page - 1) * $this->limit;\n }", "function setMargemEsquerda($iNumCol = 4) {\n\n $sComando = chr(27) . chr(108) . \" $iNumCol\";\n parent::addComando($sComando);\n }", "public function setPhoneAttribute($value)\n {\n if (!empty($value)) {\n $this->attributes['phone'] = $this->mayaEncrypt($value);\n }\n }", "public function setPage($page)\n {\n $this->page = intval($page);\n \n if ($this->page == 0) {\n $this->page = 1;\n }\n }", "public function setRmb($value)\n {\n return $this->set(self::_RMB, $value);\n }", "public function setRmb($value)\n {\n return $this->set(self::_RMB, $value);\n }", "public function size(int $mb): void\n {\n $this->_size = (pow(1024,2) * $mb);\n }", "function setPageSize($value)\n {\n $this->_props['PageSize'] = $value;\n }", "public function setPostcode($value) {\n\t\tself::$_postCode = $value;\n\t}", "function fann_set_quickprop_mu($ann, $quickprop_mu)\n{\n}", "public function setSizeInGB(?int $value): void {\n $this->getBackingStore()->set('sizeInGB', $value);\n }", "public function editMPa($data) {\n $this->db->where('id_pa',$data['id_pa']);\n $this->db->update('m_pa',$data);\n }", "public function SetMaqOp($data){\n\t\t$data = (array)$data;\n\t\t\t\t\t$command = \\Yii::$app->db_mysql;\n\t\t\t$result = $command->createCommand()->insert('maquina_operador',[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'maquina' => $data['maquina'], \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'operador' => $data['operador']\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t])->execute();\n\t\t\n\t}", "function __set($name, $value) {\r\n if ($name == 'mr') {\r\n $this->max_rating = intval($value);\r\n } else if ($name == 'st') {\r\n $this->step = intval($value);\r\n } else if ($name == 'vis') {\r\n $this->visible = $value == '1';\r\n } else if ($name == 'seq') {\r\n $this->sequence = intval($value);\r\n } else if ($name == 'cr') {\r\n $this->created = DateTime::createFromFormat('Y-m-d H:i:s', $value);\r\n } else if ($name == 'upd') {\r\n $this->updated = DateTime::createFromFormat('Y-m-d H:i:s', $value);\r\n } else if ($name == 'num') {\r\n $this->num_ratings = intval($value);\r\n } else if ($name == 'total') {\r\n $this->tot_ratings = floatval($value);\r\n }\r\n\r\n }", "public function getPembuanganAirLimbah()\n {\n return $this->pembuangan_air_limbah;\n }", "public function setPage($page)\n\t{\n\t\tif((int) $page == 0)\n\t\t{\n\t\t\t$page = 1;\n\t\t}\n\t\t$this->page = $page;\n\t\t// (re-)calculate start rec\n\t\t//$this->calculateStart();\n\t}", "function abbinamentiCambiaMarchio($con) {\n $sql=\"UPDATE abbinamenti SET abb_mark = 'Modulo', abb_mark_id = 49 WHERE abb_line_id = 60\";\n mysqli_query($con,$sql);\n}", "function setParam($name, $value)\n\t{\n\t\t$this->table->$name = $value;\n\t}", "private function updateMemoryLimit()\r\n {\r\n if (function_exists('ini_set')) {\r\n // phpcs:ignore Magento2.Functions.DiscouragedFunction\r\n $result = ini_set('display_errors', 1);\r\n if ($result === false) {\r\n $error = error_get_last();\r\n throw new InvalidArgumentException(__(\r\n 'Failed to set ini option display_errors to value 1. %1',\r\n $error['message']\r\n ));\r\n }\r\n $memoryLimit = trim(ini_get('memory_limit'));\r\n if ($memoryLimit != -1 && $this->getMemoryInBytes($memoryLimit) < 756 * 1024 * 1024) {\r\n // phpcs:ignore Magento2.Functions.DiscouragedFunction\r\n $result = ini_set('memory_limit', '756M');\r\n if ($result === false) {\r\n $error = error_get_last();\r\n throw new InvalidArgumentException(__(\r\n 'Failed to set ini option memory_limit to 756M. %1',\r\n $error['message']\r\n ));\r\n }\r\n }\r\n }\r\n }", "public function testSetMtPrimeForfait() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMtPrimeForfait(10.092018);\n $this->assertEquals(10.092018, $obj->getMtPrimeForfait());\n }", "public function setMemoryLimit($limit) {\n\t\tif (! in_array ( $limit, $this->getAllowedMemoryLimitValues () )) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$currentLimit = $this->getLimitFromIni ();\n\t\t\n\t\tif ($currentLimit < $limit) {\n\t\t\tini_set ( 'memory_limit', $limit . 'M' );\n\t\t}\n\t}", "public function __set($name, $value)\n\t{\n \t\tif ($this->column_data[$name] !== $value)\n\t\t{\n\t\t\t$this->column_data[$name] = $value;\n\t\t\t$this->altered_columns[$name] = $name;\n\t\t}\n\t}", "static public function mdlIngresarPrecioMembresia($tabla,$datos){\n\n\t\t$stmt = Conexion::conectar()->prepare(\"INSERT INTO $tabla(id_tipo_membresia,nombre_precio_membresia,precio,id_usuario) VALUES (:id_tipo_membresia,:nombre_precio_membresia,:precio,:id_usuario)\");\n\n $stmt->bindParam(\":id_tipo_membresia\", $datos[\"id_tipo_membresia\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":nombre_precio_membresia\", $datos[\"nombre_precio_membresia\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":precio\", $datos[\"precio\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":id_usuario\", $datos[\"id_usuario\"], PDO::PARAM_STR);\n\n\n\t\tif($stmt->execute()){\n\n\t\t\treturn \"ok\";\n\n\t\t}else{\n\n\t\t\treturn \"error\";\n\t\t\n\t\t}\n\n\t\t$stmt->close();\n\t\t$stmt = null;\n\n\t}", "public function setBaja($data)\n {\n\n if ($this->_baja != $data) {\n $this->_logChange('baja');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_baja = $data;\n } else if (!is_null($data)) {\n $this->_baja = (int) $data;\n } else {\n $this->_baja = $data;\n }\n return $this;\n }", "public function setJmlJambanPTg($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->jml_jamban_p_tg !== $v) {\n $this->jml_jamban_p_tg = $v;\n $this->modifiedColumns[] = SanitasiPeer::JML_JAMBAN_P_TG;\n }\n\n\n return $this;\n }", "public function offsetSet($columnName, $value)\n\t{\n\t\tif ($this->_cleanData !== null)\n\t\t\t$this->_cleanData[$columnName] = $value;\n\t\tparent::offsetSet($columnName,$value);\n\t}", "public function setOperationPrimeMaximumAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_string($v)){\n $v = str_replace(\n array(' ',','),\n array('','.'),\n $v\n );\n }\n \n if(is_numeric($v)) {\n $v = (float) $v;\n }\n }\n if ($this->operation_prime_maximum_amount !== $v) {\n $this->operation_prime_maximum_amount = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT;\n }\n\n\n return $this;\n }", "public function setASediaPembalut($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->a_sedia_pembalut !== $v) {\n $this->a_sedia_pembalut = $v;\n $this->modifiedColumns[] = SanitasiPeer::A_SEDIA_PEMBALUT;\n }\n\n\n return $this;\n }", "function setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }", "public function set_bodymass($bodymass) {\n if ($bodymass < 3 || $bodymass > 600) {\n $this->bodymass = 0;\n echo \"Dit gewicht is niet geldig<br>\";\n } else {\n $this->bodymass = $bodymass;\n }\n return $this->bodymass;\n }", "public function testSetPrimeHComplMaj() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHComplMaj(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHComplMaj());\n }" ]
[ "0.6461456", "0.547721", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5473873", "0.5273943", "0.5273943", "0.52278787", "0.5114419", "0.5111175", "0.5056013", "0.50478494", "0.5036418", "0.50343317", "0.5034244", "0.5027541", "0.5008341", "0.49952868", "0.4961112", "0.4944592", "0.48975214", "0.48914313", "0.488052", "0.4876297", "0.4827975", "0.48229298", "0.47598076", "0.47534537", "0.4751203", "0.47324327", "0.47310442", "0.47159275", "0.4708313", "0.47080535", "0.46919763", "0.468913", "0.46814513", "0.46798834", "0.4666635", "0.4658956", "0.4654641", "0.46534377", "0.46475828", "0.46394804", "0.4631962", "0.46311355", "0.46137977", "0.46056464", "0.45956248", "0.45825094", "0.45803386", "0.45732152", "0.45661056", "0.45606625", "0.45606625", "0.4557652", "0.45536748", "0.4553665", "0.45529115", "0.45475736", "0.45475736", "0.45452377", "0.4543135", "0.45374778", "0.45251495", "0.4523165", "0.4519434", "0.44837835", "0.44709936", "0.44703177", "0.44689575", "0.44651154", "0.44608447", "0.44596404", "0.44589704", "0.44585294", "0.44402876", "0.44353026", "0.44351152", "0.44302812", "0.44283605", "0.44274795", "0.44261625", "0.44212344", "0.44184136", "0.4416462" ]
0.44823828
82
setPa() Set the value of [m3] column.
public function setM3($v) { if ($v !== null) { $v = (int) $v; } if ($this->m3 !== $v) { $this->m3 = $v; $this->modifiedColumns[TblProdInfoTableMap::COL_M3] = true; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setVolPondasiM3($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->vol_pondasi_m3 !== $v) {\n $this->vol_pondasi_m3 = $v;\n $this->modifiedColumns[] = BangunanPeer::VOL_PONDASI_M3;\n }\n\n\n return $this;\n }", "public function setColumna($col){\n if($col>3 ){\n $this->columna = 3;\n }\n elseif ($col<0) {\n $this->columna = 0;\n }\n else{\n $this->columna = $col;\n }\n }", "public function setPa($pa)\n {\n $this->pa = $pa;\n\n return $this;\n }", "public function set($column,$value);", "public function testSetPrime3() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime3());\n }", "function setValue($m)\n\t{\n\t\t$this->value = $m;\n\t\treturn $this;\n\t}", "public function setMataPelajaran($mata_pelajaran);", "public function setPa($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->pa !== $v) {\n $this->pa = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PA] = true;\n }\n\n return $this;\n }", "public function testSetPv3() {\n\n $obj = new CollabTache();\n\n $obj->setPv3(10.092018);\n $this->assertEquals(10.092018, $obj->getPv3());\n }", "public function setVolKudakudaM3($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->vol_kudakuda_m3 !== $v) {\n $this->vol_kudakuda_m3 = $v;\n $this->modifiedColumns[] = BangunanPeer::VOL_KUDAKUDA_M3;\n }\n\n\n return $this;\n }", "function set_pm_defecto($punto)\n\t{\n\t\t$db = $this->get_db();\n\t\t$id_punto = $db->quote($punto->get_id());\n\t\t$sql = \"UPDATE apex_proyecto\n\t\t\t\tSET pm_impresion = $id_punto,\n\t\t\t\t\tpm_sesion = $id_punto,\n\t\t\t\t\tpm_contexto = $id_punto,\n\t\t\t\t\tpm_usuario = $id_punto\n\t\t\t\tWHERE proyecto = \".$db->quote($this->identificador);\n\t\t$db->ejecutar($sql);\n\t}", "public function setPaisAttribute($value)\n\t{\n\t\t$this->attributes['pais'] = mb_strtoupper($value);\n\t}", "public function setMagia3Attribute($value) {\n $this->attributes['magia3'] = $this->verificaAtributo($value, true);\n }", "function set_par($p,$v)\n {\n $this->__par[$p] = $v;\n }", "public function testSetPrime3() {\n\n $obj = new PointBonTrav();\n\n $obj->setPrime3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime3());\n }", "public function testSetMtPrime3Chantier() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMtPrime3Chantier(10.092018);\n $this->assertEquals(10.092018, $obj->getMtPrime3Chantier());\n }", "public function testSetHs3() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHs3(10.092018);\n $this->assertEquals(10.092018, $obj->getHs3());\n }", "public function set_pais(Pais $object)\n {\n $this->pais = $object;\n $this->pais_id = $object->id;\n }", "public function set_pa(Int $_pa){\n $this->_pa = $_pa;\n\n return $this;\n }", "public function getVolPondasiM3()\n {\n return $this->vol_pondasi_m3;\n }", "public function setLine3($line3)\n {\n $this->json()->line3 = $line3;\n }", "public function setPais(string $pais)\n {\n $this->pais = $pais;\n }", "public function setMpPerc($value)\n {\n return $this->set(self::_MP_PERC, $value);\n }", "public function setProperty($name, $value)\n\t{\n\n\t\t$this->mpdf->{$name} = $value;\n\n\t}", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "public function getM3()\n {\n return $this->m3;\n }", "public function __set ($psProperty, $pmValue)\n\t{\n\t\t$this->set($psProperty, $pmValue);\n\t}", "public function getPa()\n {\n return $this->pa;\n }", "public function getPa()\n {\n return $this->pa;\n }", "public function set($parameter, $value);", "public function testSetMontant3() {\n\n $obj = new Employes();\n\n $obj->setMontant3(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant3());\n }", "public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\n }", "public function get3PT() {\n\t\t\treturn \"<p>3PT Pct: \".$this->pt.\"</p>\";\n\t\t}", "function setValue( $value )\r\n {\r\n $newValue = number_format( $value, 4, \".\", \"\" );\r\n $value = (double) $newValue;\r\n $this->Value = $value;\r\n }", "public function set(string $column, $value): self {\n $this->record[$column] = $value;\n return $this;\n }", "abstract public function setMetas();", "public function __set($prop, $valor){\n\t\tif( !property_exists($this, $prop))\t{\n\t\t\tthrow new exception(\"la propiedad $prop no existe\"); \t\t\t\n\t\t}\t\t\n\t\t$this->$prop = $valor;\n\t\t//$this->(\"set\".ucfirst($prop))($valor);\n\t\t\n\t}", "public function __SET($att, $valor){\r\n $this->$att = $valor;\r\n}", "public function setByName($name, $value, $type = BasePeer::TYPE_FIELDNAME)\n {\n $pos = SekolahPaudPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }", "protected function setZpTprop($clave) {\n $this->zpTprop = $clave;\n }", "public function pi_setPiVarDefaults() {}", "public function getVolKudakudaM3()\n {\n return $this->vol_kudakuda_m3;\n }", "public function setThird($third = null)\n {\n // validation for constraint: string\n if (!is_null($third) && !is_string($third)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($third, true), gettype($third)), __LINE__);\n }\n if (is_null($third) || (is_array($third) && empty($third))) {\n unset($this->third);\n } else {\n $this->third = $third;\n }\n return $this;\n }", "public function setCategory3($val)\n {\n $this->_propDict[\"category3\"] = $val;\n return $this;\n }", "function setPID($pid) {\n\t\t$this->_pid = $pid;\n\t}", "public function setVolSloopKolomBalokM3($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->vol_sloop_kolom_balok_m3 !== $v) {\n $this->vol_sloop_kolom_balok_m3 = $v;\n $this->modifiedColumns[] = BangunanPeer::VOL_SLOOP_KOLOM_BALOK_M3;\n }\n\n\n return $this;\n }", "public function multiplyBy3($value)\n {\n return $value * 3;\n }", "public function testSetTransfertPaie() {\n\n $obj = new PointBonTrav();\n\n $obj->setTransfertPaie(\"transfertPaie\");\n $this->assertEquals(\"transfertPaie\", $obj->getTransfertPaie());\n }", "function SetCol($col)\r\n\t{\r\n\t $this->col=$col;\r\n\t $x=10+$col*100;\r\n\t $this->SetLeftMargin($x);\r\n\t $this->SetX($x);\r\n\t}", "public function __set($name, $value){\n switch ($name) {\n case '_patente':\n $this->_patente = $value;\n case '_marca':\n $this->_marca= $value;\n case '_color':\n $this->_color= $value;\n case '_precio':\n $this->_precio= $value;\n default:\n \"No se existe la varible\";\n break;\n }\n $this->$name = $value;\n }", "function setMonth($m)\r\n {\r\n if($m < 1 || $m > 12) {\r\n $this->mes = 1;\r\n } else {\r\n $this->mes = $m;\r\n }\r\n }", "function setModulePref($module,$var,$value,$userID=0)\n {\n $db = & JxSingleton::factory('db');\n\n if(!$userID)\n {\n $user = & JxSingleton::factory('user');\n $userID = $user->userID;\n }\n\n if(!DB::isError($db))\n {\n\n $sql = \"REPLACE INTO preferences\n SET userID='\".$userID.\"',\n module='$module',\n var='$var',\n value='$value'\";\n \n $result = $db->query($sql);\n \n return (!DB::isError($result));\n }\n }", "function SetCol($col)\n{\n $this->col=$col;\n $x=10+$col*65;\n $this->SetLeftMargin($x);\n $this->SetX($x);\n}", "public function setSp3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->sp3 !== $v) {\n $this->sp3 = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_SP3] = true;\n }\n\n return $this;\n }", "static public function mdlCalcularUtilidad3($tabla){\r\n\r\n\t\t\t$stmt = Conexion::conectar()->prepare(\"UPDATE $tabla set utilidad3 = ((precioUnitario3-precioCompra3)/precioUnitario3)*100 where idPedido = :idPedido and serie = :serie\");\r\n\r\n\t\t\t$stmt -> bindParam(\":idPedido\", $datos[\"idPedido\"], PDO::PARAM_INT);\r\n\t\t\t$stmt->bindParam(\":serie\", $datos[\"serie\"], PDO::PARAM_STR);\r\n\r\n\t\t\tif ($stmt -> execute()) {\r\n\r\n\t\t\t\treturn \"ok\";\r\n\r\n\t\t\t}else {\r\n\r\n\t\t\t\treturn \"error\";\r\n\r\n\t\t\t}\r\n\t\t\t$stmt -> close();\r\n\r\n\t\t\t$stmt = null;\r\n\r\n\r\n\t}", "public function setProyectorMuteado( $muteado ) {\n $this->proyector_muteatu=$muteado;\n \n\tif($muteado){\n\t $this->proyector_pizarra->mutear();\n\t}else{\n\t $this->proyector_pizarra->desmutear();\n\t}\n\t$this->enviarComandoMute();\n //$this->activarPantalla();\n }", "public function set($column, $value)\n {\n $this->initialize();\n if (array_key_exists($column, $this->columns)) {\n $mutator = '__set' . str_replace(' ', '', ucwords(str_replace(array('-', '_'), ' ', $column)));\n if (method_exists($this, $mutator)) {\n $this->{$mutator}($value);\n } else {\n $this->data[$column] = $value;\n }\n return;\n }\n throw new Exception\\InvalidArgumentException('Not a valid column in this row: ' . $column);\n }", "function volume_set($volume) {\n\n if ($this->XBMCCmd(\"SetVolume\",$volume)!=\"OK\") { return false; }\n return true;\n\n }", "public function setColumn($set, $val)\n\t{\n\t\t//ignore bogus data\n\t\tif (!array_key_exists($set, $this->row))\n\t\t\tthrow new InternalException(\"row $set doesn't exist\");\n\t\t$this->isChanged[$set] = true;\n\t\t$this->row[$set] = $val;\n\t}", "public function setProgress($p)\r\n {\r\n // 0.0 <= $p <= 1.0\r\n $this->progress = intval( $p * 100 );\r\n }", "function setNapetiKlima(int $napetiKlima):int {\n $this->napetiKlima = $napetiKlima;\n }", "function setPeriod($_period){\n\t\t$this->period=$_period;\n\t}", "public function set_column( $column ) {\n $this->column = $column;\n }", "public function setC($x) { $this->c = $x; }", "public function set()\n {\n // to reflect the current bar.\n\n // Why?\n\n // Otherwise the bar count gets repeated. And that people notice.\n\n $this->variables->setVariable(\"count\", $this->bar_count);\n $this->variables->setVariable(\"max_bar_count\", $this->max_bar_count);\n\n $this->variables->setVariable(\"refreshed_at\", $this->current_time);\n }", "function fann_set_quickprop_mu($ann, $quickprop_mu)\n{\n}", "public function setKanpaina($data)\n {\n\n if ($this->_kanpaina != $data) {\n $this->_logChange('kanpaina');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_kanpaina = $data;\n\n } else if (!is_null($data)) {\n $this->_kanpaina = (int) $data;\n\n } else {\n $this->_kanpaina = $data;\n }\n return $this;\n }", "function setValueStyle($font = false, $size = 8, $col = 0x000000, $pos = 1, $angle = 0)\n {\n $size = intval($size);\n if ($size < 0) {\n $size = 0;\n }\n $pos = intval($pos);\n $angle = intval($angle);\n if ($angle < -90) {\n $angle = -90;\n }\n if ($angle > 90) {\n $angle = 90;\n }\n\n $this->data[$this->series]['value_font'] = $font;\n $this->data[$this->series]['value_size'] = $size;\n $this->data[$this->series]['value_col'] = $this->hexcol($col);\n $this->data[$this->series]['value_pos'] = $pos;\n $this->data[$this->series]['value_angle'] = $angle;\n\n $this->value_font = $font;\n $this->value_size = $size;\n $this->value_col = $this->hexcol($col);\n $this->value_pos = $pos;\n $this->value_angle = $angle;\n }", "public function _setLotNo3($lotNo3) {\n\t\t$this->_lotNo3 = $lotNo3;\n\t}", "public function setNbHSup3(?float $nbHSup3): ChargesPaie {\n $this->nbHSup3 = $nbHSup3;\n return $this;\n }", "function SetCol($col)\n {\n $this->col=$col;\n $x=5+$col*55;\n $this->SetLeftMargin($x);\n $this->SetX($x);\n }", "public function setData ($column, $data)\n {\n\t $game_setting = GameSetting::where('name', $column)->firstOrFail();\n\t $game_setting->data = $data;\n\t $resultSave = $game_setting->save();\n\t return $resultSave;\n }", "public function testSetHabs3() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHabs3(10.092018);\n $this->assertEquals(10.092018, $obj->getHabs3());\n }", "function SetCol($col)\n {\n \n $this->col=$col;\n $x=10+$col*100;\n $this->SetLeftMargin($x);\n $this->SetX($x);\n }", "public function set($campo, $valor) {\n $this->$campo = $valor;\n }", "function setMaCauHoi($ma_cau_hoi){\r\n\t\t$this->ma_cau_hoi = $ma_cau_hoi;\r\n\t}", "function ods_cell_set_val($cell, $p, $val, $options = array()) {\n\n if (is_numeric($val)) {\n $string_val = (string) $val;\n $p->nodeValue = str_replace('.', ',', $string_val);\n $cell->setAttribute('office:value-type', 'float');\n $cell->setAttribute('calcext:value-type', 'float');\n $cell->setAttribute('office:value', $val);\n } else {\n $p->nodeValue = $val;\n }\n }", "function prodottiCambiaMarchio($con) {\n $sql=\"UPDATE prodotti SET prd_mark = 'Modulo', prd_mark_id = 49 WHERE prd_line_id = 60 OR prd_line_id = 61 OR prd_line_id = 144 OR prd_line_id = 145\";\n mysqli_query($con,$sql);\n}", "protected function setP3P() {\n\t\tglobal $wgCentralNoticeHideBannersP3P;\n\n\t\tif ( !$wgCentralNoticeHideBannersP3P ) {\n\t\t\t$url = SpecialPage::getTitleFor(\n\t\t\t\t'HideBanners', self::P3P_SUBPAGE )\n\t\t\t\t->getCanonicalURL();\n\n\t\t\t$p3p = \"CP=\\\"This is not a P3P policy! See $url for more info.\\\"\";\n\n\t\t} else {\n\t\t\t$p3p = $wgCentralNoticeHideBannersP3P;\n\t\t}\n\n\t\theader( \"P3P: $p3p\", true );\n\t}", "public function dset($property,$value){\n $this->$property = $value;\n $table = $this->table;\n $id = $this->id; \n LAIKA_Database::update($table, $property, $value, \"id = $id\");\n }", "function setParam($name, $value)\n\t{\n\t\t$this->table->$name = $value;\n\t}", "private function set($row, $column, $value) {\n if (!$this->invalid($row, $column)) {\n $this->matrix[$row][$column] = $value;\n }\n }", "public function setPaper($paper) {\n\t}", "public abstract function setParameter($parameter);", "public function setPizarraMuteado( $muteado ) {\n $this->pizarra_muteatu=$muteado;\n \n\tif($muteado){\n\t $this->proyector_pizarra->mutear();\n\t}else{\n\t $this->proyector_pizarra->desmutear();\n\t}\n\t$this->enviarComandoMute();\n\n //$this->activarPantalla();\n }", "function set_pref($pref, $pref_value='default', $itemid=null) {\n $fullprefname = 'grade_report_' . $pref;\n if ($pref_value == 'default') {\n return unset_user_preference($fullprefname.$itemid);\n } else {\n return set_user_preference($fullprefname.$itemid, $pref_value);\n }\n }", "public function setThirdVat($thirdVat = null)\n {\n // validation for constraint: string\n if (!is_null($thirdVat) && !is_string($thirdVat)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($thirdVat, true), gettype($thirdVat)), __LINE__);\n }\n if (is_null($thirdVat) || (is_array($thirdVat) && empty($thirdVat))) {\n unset($this->thirdVat);\n } else {\n $this->thirdVat = $thirdVat;\n }\n return $this;\n }", "function setDimensionStyle($column_number,$style) {\n \n \n return null;\n }", "public function set($where, $data) {\n if ($where) {\n $this->db->where($where);\n return $this->db->update($this->table, $data);\n }\n\t}", "public function setEditorial3($v)\n\t{\n\n\t\tif ($this->editorial3 !== $v || $v === false) {\n\t\t\t$this->editorial3 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL3;\n\t\t}\n\n\t}", "public function setEffect( $effect ) {\n $this->effect = $effect;\n }", "public function setProperty($dbName = '', $tableName = '')\n\t{\n\t\tif($dbName != '')\n\t\t$this -> databaseName = $dbName;\n\t\tif($tableName != '')\n\t\t$this -> tableName = $tableName;\n\t}", "function set_property(){\n }", "public function setPrecio($precio)\n {\n $this->precio = $precio;\n\n return $this;\n }", "public function set(array $cols) : void;", "public function setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "public function editMPa($data) {\n $this->db->where('id_pa',$data['id_pa']);\n $this->db->update('m_pa',$data);\n }", "function setPN($prev=\"Prev\",$next=\"Next\"){\n\t\t\t$this->prev = $prev;\n\t\t\t$this->next = $next;\n\t\t}", "public function setProdRelatedM3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related_m3 !== $v) {\n $this->prod_related_m3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED_M3] = true;\n }\n\n return $this;\n }", "function setProperty($name, $value) {\n include_once(PAPAYA_INCLUDE_PATH.'system/base_module_options.php');\n base_module_options::writeOption($this->moduleGuid, $name, $value);\n }" ]
[ "0.5301286", "0.5158746", "0.5145565", "0.5095278", "0.5074508", "0.4962503", "0.49347463", "0.48823524", "0.48543042", "0.4841946", "0.48369637", "0.4831748", "0.47708684", "0.4744158", "0.47396854", "0.47375438", "0.47370604", "0.47306383", "0.47064963", "0.46893445", "0.46727076", "0.46587527", "0.4630103", "0.4606767", "0.45859697", "0.4544624", "0.45423052", "0.4490528", "0.4490528", "0.4435343", "0.44188765", "0.44154423", "0.4414635", "0.44112945", "0.43893647", "0.43876925", "0.4385702", "0.43768322", "0.43694693", "0.43635705", "0.43497112", "0.43411008", "0.43407485", "0.4329651", "0.43267956", "0.43237266", "0.4320447", "0.4308455", "0.43075034", "0.43049455", "0.42898554", "0.42834893", "0.4275574", "0.426393", "0.42599925", "0.42576164", "0.42574227", "0.42531532", "0.42529583", "0.4245737", "0.42439282", "0.42437246", "0.42436764", "0.42413568", "0.4236074", "0.42283708", "0.42197925", "0.4218291", "0.4215567", "0.42134085", "0.42055005", "0.42049935", "0.41895393", "0.41880438", "0.41870144", "0.418577", "0.41778025", "0.4177104", "0.41750053", "0.4174171", "0.4173888", "0.41709286", "0.4167961", "0.4167533", "0.41643813", "0.41585454", "0.415429", "0.41537496", "0.41512576", "0.41463724", "0.41447085", "0.41444424", "0.4141273", "0.41407126", "0.41393963", "0.41387165", "0.41378218", "0.4135463", "0.41316307", "0.41256747" ]
0.54975516
0
setM3() Indicates whether the columns in this object are only set to default values. This method can be used in conjunction with isModified() to indicate whether an object is both modified _and_ has some values set which are nondefault.
public function hasOnlyDefaultValues() { // otherwise, everything was equal, so return TRUE return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setM3($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->m3 !== $v) {\n $this->m3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_M3] = true;\n }\n\n return $this;\n }", "public function setEditorial3($v)\n\t{\n\n\t\tif ($this->editorial3 !== $v || $v === false) {\n\t\t\t$this->editorial3 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL3;\n\t\t}\n\n\t}", "public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array())) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array())) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array())) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n {\n if ($this->deleted !== false) {\n return false;\n }\n\n if ($this->amount !== 1) {\n return false;\n }\n\n if ($this->amountevaluation !== 0) {\n return false;\n }\n\n if ($this->defaultstatus !== 0) {\n return false;\n }\n\n if ($this->defaultdirectiondate !== 0) {\n return false;\n }\n\n if ($this->defaultenddate !== 0) {\n return false;\n }\n\n if ($this->defaultpersoninevent !== 0) {\n return false;\n }\n\n if ($this->defaultpersonineditor !== 0) {\n return false;\n }\n\n if ($this->maxoccursinevent !== 0) {\n return false;\n }\n\n if ($this->showtime !== false) {\n return false;\n }\n\n if ($this->ispreferable !== true) {\n return false;\n }\n\n if ($this->isrequiredcoordination !== false) {\n return false;\n }\n\n if ($this->isrequiredtissue !== false) {\n return false;\n }\n\n if ($this->mnem !== '') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array(UserPeer::PLATFORM,UserPeer::EXPERIENCE_SCORE,UserPeer::UP_VOTES,UserPeer::DOWN_VOTES,UserPeer::IS_GUEST,UserPeer::IS_ADMIN,UserPeer::TODAY_VOTES,UserPeer::EMAIL_ON))) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->platform !== 'pc') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->experience_score !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->up_votes !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->down_votes !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_guest !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_admin !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->today_votes !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->email_on !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n {\n if ($this->montacargas_baja !== 0) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function hasOnlyDefaultValues()\n {\n if ($this->setregis !== 0) {\n return false;\n }\n\n // otherwise, everything was equal, so return TRUE\n return true;\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->ativo = true;\n\t\t$this->tipo_acesso = 'M';\n\t\t$this->estado_civil = 'O';\n\t\t$this->nivel_acesso = '1';\n\t\t$this->usuario_validado = false;\n\t}", "public function applyDefaultValues()\n {\n $this->is_not = false;\n $this->rank = 0;\n }", "public function hasOnlyDefaultValues()\n {\n if ($this->jml_lantai !== '1') {\n return false;\n }\n\n if ($this->asal_data !== '1') {\n return false;\n }\n\n if ($this->last_sync !== '1901-01-01 00:00:00') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function setModelDefaults() \n {\n if (!empty($this->model->defaultFieldValues())) {\n \n foreach($this->model->defaultFieldValues() as $field => $defaultValue) {\n\n $this->model->$field = $defaultValue;\n }\n } \n }", "public function applyDefaultValues()\n {\n $this->deleted = false;\n $this->amount = 1;\n $this->amountevaluation = 0;\n $this->defaultstatus = 0;\n $this->defaultdirectiondate = 0;\n $this->defaultenddate = 0;\n $this->defaultpersoninevent = 0;\n $this->defaultpersonineditor = 0;\n $this->maxoccursinevent = 0;\n $this->showtime = false;\n $this->ispreferable = true;\n $this->isrequiredcoordination = false;\n $this->isrequiredtissue = false;\n $this->mnem = '';\n }", "public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->ativo !== true) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->tipo_acesso !== 'M') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->estado_civil !== 'O') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->nivel_acesso !== '1') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->usuario_validado !== false) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n {\n if ($this->last_sync !== '1901-01-01 00:00:00') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function hasOnlyDefaultValues()\n {\n if ($this->is_not !== false) {\n return false;\n }\n\n if ($this->rank !== 0) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function applyDefaultValues()\n {\n $this->is_active = false;\n $this->is_closed = false;\n }", "public function setProdRelatedM3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_related_m3 !== $v) {\n $this->prod_related_m3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_RELATED_M3] = true;\n }\n\n return $this;\n }", "public function setVolPondasiM3($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->vol_pondasi_m3 !== $v) {\n $this->vol_pondasi_m3 = $v;\n $this->modifiedColumns[] = BangunanPeer::VOL_PONDASI_M3;\n }\n\n\n return $this;\n }", "public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return true\n return true;\n }", "public function hasOnlyDefaultValues()\n\t{\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function getM3()\n {\n return $this->m3;\n }", "public function hasOnlyDefaultValues()\n {\n if ($this->create_date !== '2020-04-16 09:40:03') {\n return false;\n }\n\n if ($this->last_update !== '2020-04-16 09:40:03') {\n return false;\n }\n\n if ($this->last_sync !== '1901-01-01 00:00:00') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function applyDefaultValues()\n {\n $this->jml_lantai = '1';\n $this->asal_data = '1';\n $this->last_sync = '1901-01-01 00:00:00';\n }", "public function hasOnlyDefaultValues()\n {\n if ($this->is_active !== false) {\n return false;\n }\n\n if ($this->is_closed !== false) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->closed !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->lastfmid !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->hasphotos !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "protected function beforeSave()\n {\n foreach ($this->getTableSchema()->columns as $column)\n {\n if ($column->allowNull == 1 && $this->getAttribute($column->name) == '')\n {\n $this->setAttribute($column->name, null);\n }\n }\n \n return parent::beforeSave();\n }", "public function set_to_default()\n\t{\n\t\t// SimpleDB requires a value for every attribue...\n\t\t$this->_name = NULL;\n\t\t$this->_contextid = NULL;\n\t\t$this->_userid = NULL;\n $this->_deleted = 0;\n\t\t$this->_lastmodified = 0;\t\n\t}", "public function beforeSave() {\r\n $data = $this->getData();\r\n\r\n if ($this->element) {\r\n $default = $this->element->getProperties();\r\n foreach ($data as $k => $prop) {\r\n if (array_key_exists($prop['name'],$default)) {\r\n if ($prop['value'] == $default[$prop['name']]) {\r\n unset($data[$k]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n $this->setProperty('data', $data);\r\n\r\n return parent::beforeSave();\r\n }", "public function test_is3M_isNot3M_returnFalse()\r\n\t{\r\n\t\t$this->service->source = \"aDummyNon3MEcontent\";\r\n\t\t$actual = $this->service->is3M();\r\n\t\t$this->assertFalse($actual);\r\n\t}", "public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array(UserPeer::POINTS,UserPeer::TYPE,UserPeer::HIDDEN,UserPeer::RELATIONSHIP_STATUS,UserPeer::SHOW_EMAIL,UserPeer::SHOW_GENDER,UserPeer::SHOW_HOMETOWN,UserPeer::SHOW_HOME_PHONE,UserPeer::SHOW_MOBILE_PHONE,UserPeer::SHOW_BIRTHDATE,UserPeer::SHOW_ADDRESS,UserPeer::SHOW_RELATIONSHIP_STATUS,UserPeer::CREDIT,UserPeer::LOGIN))) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->points !== '0') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->type !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->hidden !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->relationship_status !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_email !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_gender !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_hometown !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_home_phone !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_mobile_phone !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_birthdate !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_address !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_relationship_status !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->credit !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->login !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public static function getDefaultImmutability(): bool\n {\n return static::$defaultImmutable;\n }", "public function applyDefaultValues()\n {\n $this->montacargas_baja = 0;\n }", "public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->is_archived !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->google_analytics_enabled !== false) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n {\n if ($this->active !== false) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->type !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->total_index !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_published !== true) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_featured !== false) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->comments_count !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n {\n if ($this->create_date !== '2021-06-07 11:49:57') {\n return false;\n }\n\n if ($this->last_update !== '2021-06-07 11:49:57') {\n return false;\n }\n\n if ($this->last_sync !== '1901-01-01 00:00:00') {\n return false;\n }\n\n if ($this->jml_jamban_l_g !== '0') {\n return false;\n }\n\n if ($this->jml_jamban_l_tg !== '0') {\n return false;\n }\n\n if ($this->jml_jamban_p_g !== '0') {\n return false;\n }\n\n if ($this->jml_jamban_p_tg !== '0') {\n return false;\n }\n\n if ($this->jml_jamban_lp_g !== '0') {\n return false;\n }\n\n if ($this->jml_jamban_lp_tg !== '0') {\n return false;\n }\n\n if ($this->tipe_jamban !== '9') {\n return false;\n }\n\n if ($this->a_sedia_pembalut !== '0') {\n return false;\n }\n\n if ($this->a_tempat_sampah_kelas !== '0') {\n return false;\n }\n\n if ($this->a_tempat_sampah_tutup_p !== '0') {\n return false;\n }\n\n if ($this->a_cermin_jamban_p !== '0') {\n return false;\n }\n\n if ($this->a_memiliki_tps !== '0') {\n return false;\n }\n\n if ($this->a_tps_angkut_rutin !== '0') {\n return false;\n }\n\n if ($this->a_anggaran_sanitasi !== '0') {\n return false;\n }\n\n if ($this->a_melibatkan_sanitasi_siswa !== '0') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function setCbmdate3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->cbmdate3 !== $v) {\n $this->cbmdate3 = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_CBMDATE3] = true;\n }\n\n return $this;\n }", "public function applyDefaultValues()\n {\n $this->active = false;\n }", "public function applyDefaultValues()\n {\n $this->setregis = 0;\n }", "public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->st_usuario !== true) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "private function setDefaults()\n {\n $defaults = config('sevDeskApi.defaults.'.lcfirst($this->objectName));\n\n foreach($defaults as $attribute => $defaultValue)\n {\n if (!isset($this->$attribute))\n $this->$attribute = $defaultValue;\n }\n }", "public function setDefaultValue($data) {\n $defaultValue = $this->getDefaultValue();\n if (empty($defaultValue)) {\n return $data;\n }\n foreach ($defaultValue as $field => $value) {\n if (!isset($data[$field])) {\n $data[$field] = $value;\n }\n }\n foreach ($data as $field => $value) {\n if (($data[$field] == NULL || $data[$field] === '') && isset($defaultValue[$field])) {\n $data[$field] = $defaultValue[$field];\n }\n }\n return $data;\n }", "function set_defaults()\n {\n $mapper = $this->get_mapper();\n if ($mapper->has_method('set_defaults')) {\n $mapper->set_defaults($this);\n }\n }", "public function setUnaltered()\n {\n $this->alteredColumns = [];\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->points = '0';\n\t\t$this->type = 0;\n\t\t$this->hidden = 0;\n\t\t$this->relationship_status = 0;\n\t\t$this->show_email = 1;\n\t\t$this->show_gender = 1;\n\t\t$this->show_hometown = 1;\n\t\t$this->show_home_phone = 1;\n\t\t$this->show_mobile_phone = 1;\n\t\t$this->show_birthdate = 1;\n\t\t$this->show_address = 1;\n\t\t$this->show_relationship_status = 1;\n\t\t$this->credit = 0;\n\t\t$this->login = 0;\n\t}", "protected function _beforeSave(Mage_Core_Model_Abstract $object)\n\t{\n\t\tif (!$object->getCopiedFromOriginal()) {\n\t\t\t/*\n\t\t\t * For two attributes which represent datetime data in DB\n\t\t\t * we should make converting such as:\n\t\t\t * If they are empty we need to convert them into DB\n\t\t\t * type null so in DB they will be empty and not some default value.\n\t\t\t */\n\t\t\t$format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);\n\t\t\tforeach (array('custom_theme_from', 'custom_theme_to') as $dataKey) {\n\t\t\t\t$date = $object->getData($dataKey);\n\t\t\t\tif (!$date) {\n\t\t\t\t\t$object->setData($dataKey, new Zend_Db_Expr('null'));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn parent::_beforeSave($object);\n\t}", "public function setUnmodified()\n {\n\t$this->modified= false;\n }", "function _setDefaults() {}", "public function applyDefaultValues()\n\t{\n\t\t$this->is_archived = 0;\n\t\t$this->google_analytics_enabled = false;\n\t}", "public function fillupDefault()\n {\n\n foreach (static::$cols as $key => $col) {\n if ('' != $col[self::COL_DEFAULT]) {\n $this->data[$key] = $col[self::COL_DEFAULT];\n }\n }\n\n }", "public function setBmdate3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->bmdate3 !== $v) {\n $this->bmdate3 = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_BMDATE3] = true;\n }\n\n return $this;\n }", "function merchant_promos_metabox_defaults() {\n\t\treturn array(\n\t\t\t'amount' => 0,\n\t\t\t'type' => 'fixed',\n\t\t\t'max' => -1,\n\t\t\t'expiration' => '',\n\t\t\t'notify' => '',\n\t\t\t'count' => 0,\n\t\t\t'total' => 0,\n\t\t\t'valid_on' => array(),\n\t\t);\n\t}", "public function applyDefaultValues()\n {\n $this->last_sync = '1901-01-01 00:00:00';\n }", "public function usedDefault()\r\n {\r\n $attributeCode = $this->getAttribute()->getAttributeCode();\r\n $defaultValue = $this->getDataObject()->getAttributeDefaultValue($attributeCode);\r\n\r\n if (!$this->getDataObject()->getExistsStoreValueFlag($attributeCode)) {\r\n return true;\r\n } else if ($this->getElement()->getValue() == $defaultValue &&\r\n $this->getDataObject()->getStoreId() != $this->_getDefaultStoreId()\r\n ) {\r\n return false;\r\n }\r\n if ($defaultValue === false && !$this->getAttribute()->getIsRequired() && $this->getElement()->getValue()) {\r\n return false;\r\n }\r\n return $defaultValue === false;\r\n }", "protected function initial_set_default() {\n\t\tif ( isset( $this->field[ 'config' ][ 'default' ] ) ) {\n\t\t\t$this->default = $this->field[ 'config' ][ 'default' ];\n\t\t} else {\n\t\t\t$this->default = '';\n\t\t}\n\t}", "public function setDefaultValues()\n\t{\t\t\n\t\t\t \n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_item('');\n $this->setId_enc('');\n $this->setId_nom('');\n $this->setModo('');\n $this->setF_ini('');\n $this->setF_fin('');\n $this->setId_nom_new('');\n $this->setPrimary_key($aPK);\n }", "public function setDefaultValues()\r\n {\r\n foreach ($this->defaultValues as $property => $value) {\r\n if (is_null($this->$property)) {\r\n $this->$property = $value;\r\n }\r\n }\r\n }", "function reset_to_defaults () {\n\n global $CFG;\n include_once($CFG->dirroot .'/lib/defaults.php');\n\n $updatedata = array();\n\n $updatedata['editorbackgroundcolor'] = $defaults['editorbackgroundcolor'];\n $updatedata['editorfontfamily'] = $defaults['editorfontfamily'];\n $updatedata['editorfontsize'] = $defaults['editorfontsize'];\n $updatedata['editorkillword'] = $defaults['editorkillword'];\n $updatedata['editorspelling'] = $defaults['editorspelling'];\n $updatedata['editorfontlist'] = $defaults['editorfontlist'];\n $updatedata['editorhidebuttons'] = $defaults['editorhidebuttons'];\n $updatedata['editordictionary'] = '';\n\n foreach ($updatedata as $name => $value) {\n if (!(set_config($name, $value))) {\n return false;\n }\n }\n return true;\n}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_activ('');\n $this->setId_asignatura('');\n $this->setId_nom('');\n $this->setId_nivel('');\n $this->setId_situacion('');\n $this->setPreceptor('');\n $this->setId_preceptor('');\n $this->setNota_num('');\n $this->setNota_max('');\n $this->setActa('');\n $this->setPrimary_key($aPK);\n }", "protected function usedDefault($dataObject, $attributeModel)\n {\n \n $attributeCode = $attributeModel->getAttributeCode();\n $value = $dataObject->getData($attributeCode);\n \n $defaultValue = $dataObject->getAttributeDefaultValue($attributeCode);\n\n if (!$dataObject->getExistsStoreValueFlag($attributeCode)) {\n return true;\n } else if ($value == $defaultValue &&\n $dataObject->getStoreId() != Mage_Catalog_Model_Abstract::DEFAULT_STORE_ID\n ) {\n return false;\n }\n if ($defaultValue === false && !$attributeModel->getIsRequired() && $value) {\n return false;\n }\n return $defaultValue === false;\n }", "public function setNullAsDefault(bool $state) {\n\n $this->nullAsDefault = $state;\n\n return $this;\n }", "function setNotCreated() \n {\n $this->setValueByFieldName( 'statevar_isCreated', 0 );\n $this->updateDBTable();\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_nom('');\n $this->setId_nivel('');\n $this->setId_asignatura('');\n $this->setId_situacion('');\n // la fecha debe estar antes del acta por si hay que usar la funcion inventarActa.\n $this->setF_acta('');\n $this->setActa('');\n $this->setDetalle('');\n $this->setPreceptor('');\n $this->setId_preceptor('');\n $this->setEpoca('');\n $this->setId_activ('');\n $this->setNota_num('');\n $this->setNota_max('');\n $this->setTipo_acta('');\n $this->setPrimary_key($aPK);\n }", "private function setDefaults()\n {\n /** @var Property $property */\n foreach($this->properties as $name => $property)\n {\n $property->applyDefault();\n }\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_dl('');\n $this->setDl('');\n $this->setRegion('');\n $this->setNombre_dl('');\n $this->setGrupo_estudios('');\n $this->setRegion_stgr('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->platform = 'pc';\n\t\t$this->experience_score = 0;\n\t\t$this->up_votes = 0;\n\t\t$this->down_votes = 0;\n\t\t$this->is_guest = 0;\n\t\t$this->is_admin = 0;\n\t\t$this->today_votes = 0;\n\t\t$this->email_on = 1;\n\t}", "public function setVolKudakudaM3($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->vol_kudakuda_m3 !== $v) {\n $this->vol_kudakuda_m3 = $v;\n $this->modifiedColumns[] = BangunanPeer::VOL_KUDAKUDA_M3;\n }\n\n\n return $this;\n }", "public static function SetDefaults()\r\n {\r\n $defaults = self::GetAllDefaults();\r\n self::$Data = apply_filters('duplicator_defaults_settings', $defaults);\r\n return self::Save();\r\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setNivel_stgr('');\n $this->setDesc_nivel('');\n $this->setDesc_breve('');\n $this->setOrden('');\n $this->setPrimary_key($aPK);\n }", "public function applyDefaultValues()\n {\n $this->create_date = '2020-04-16 09:40:03';\n $this->last_update = '2020-04-16 09:40:03';\n $this->last_sync = '1901-01-01 00:00:00';\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_region('');\n $this->setRegion('');\n $this->setNombre_region('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "protected function default_additional_properties_to_false($schema)\n {\n }", "public function testSetMontant3() {\n\n $obj = new Employes();\n\n $obj->setMontant3(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant3());\n }", "final protected function nonNullIfHasDefault(AbstractAttribute $attribute): void\n {\n $type = $attribute->getTypeInstance();\n if ($type instanceof NonNull && $attribute->hasDefaultValue()) {\n $attribute->setTypeInstance($type->getWrappedType());\n }\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->st_usuario = true;\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_item('');\n $this->setId_ubi('');\n $this->setId_tarifa('');\n $this->setYear('');\n $this->setCantidad('');\n $this->setObserv('');\n $this->setId_serie('');\n $this->setPrimary_key($aPK);\n }", "public function setDefaultValues() {\n $this->effective_date = \"1970-1-1\";\n $this->end_date = \"9999-12-31\";\n $this->pu_percentage = 100;\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_item('');\n $this->setId_ubi('');\n $this->setF_gasto('');\n $this->setTipo('');\n $this->setCantidad('');\n $this->setPrimary_key($aPK);\n }", "abstract protected function getEntitySetWithDefaults();", "function beforeSave() {\r\n\t\t$fields = $this->getColumnTypes();\r\n\t\tforeach ($fields as $k => $v) {\r\n\t\t\tif (isset($this->data[$this->name][$k]) and ($v == 'integer' or $v == 'float')\r\n\t\t\t\t and $this->data[$this->name][$k] === '') {\r\n\t\t\t\t $this->data[$this->name][$k] = NULL; \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn parent::beforeSave(); \r\n\t}", "public function setThirdVat($thirdVat = null)\n {\n // validation for constraint: string\n if (!is_null($thirdVat) && !is_string($thirdVat)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($thirdVat, true), gettype($thirdVat)), __LINE__);\n }\n if (is_null($thirdVat) || (is_array($thirdVat) && empty($thirdVat))) {\n unset($this->thirdVat);\n } else {\n $this->thirdVat = $thirdVat;\n }\n return $this;\n }", "public function applyDefaultValues()\n {\n $this->create_date = '2021-06-07 11:49:57';\n $this->last_update = '2021-06-07 11:49:57';\n $this->last_sync = '1901-01-01 00:00:00';\n $this->jml_jamban_l_g = '0';\n $this->jml_jamban_l_tg = '0';\n $this->jml_jamban_p_g = '0';\n $this->jml_jamban_p_tg = '0';\n $this->jml_jamban_lp_g = '0';\n $this->jml_jamban_lp_tg = '0';\n $this->tipe_jamban = '9';\n $this->a_sedia_pembalut = '0';\n $this->a_tempat_sampah_kelas = '0';\n $this->a_tempat_sampah_tutup_p = '0';\n $this->a_cermin_jamban_p = '0';\n $this->a_memiliki_tps = '0';\n $this->a_tps_angkut_rutin = '0';\n $this->a_anggaran_sanitasi = '0';\n $this->a_melibatkan_sanitasi_siswa = '0';\n }", "public function hasDefaultValue(): bool;", "public function applyDefaultValues()\n\t{\n\t\t$this->closed = 0;\n\t\t$this->lastfmid = 0;\n\t\t$this->hasphotos = 0;\n\t}", "function setDefaultValues() {}", "public function setDefault()\n\t\t{\n\t\t\tif(!isset($this->id))\n\t\t\t\treturn FALSE;\n\t\t\t\n\t\t\tglobal $conn;\n\t\t\t\n\t\t\t$conn->beginTransaction();\n\t\t\t\n\t\t\t// Set all other workspace to not default\n\t\t\t$n = $conn->prepare(\"UPDATE ServiCenter_Workspace SET `default` = 0\");\n\t\t\t$n->execute();\n\t\t\t\n\t\t\t// Set this workspace to default\n\t\t\t$d = $conn->prepare(\"UPDATE ServiCenter_Workspace SET `default` = 1 WHERE id = ?\");\n\t\t\t$d->bindParam(1, $this->id);\n\t\t\t$d->execute();\n\t\t\t\n\t\t\tif($d->rowCount() == 1)\n\t\t\t{\n\t\t\t\t$conn->commit();\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t\t\n\t\t\t$conn->rollback();\n\t\t\treturn FALSE;\n\t\t}", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "function setDefaults()\n {\n }", "protected static function setNullables($model)\n\t{\n\t foreach($model->nullable as $field)\n\t {\n\t if(empty($model->{$field}))\n\t {\n\t $model->{$field} = null;\n\t }\n\t }\n\t}" ]
[ "0.6159506", "0.59809166", "0.57484204", "0.57484204", "0.57484204", "0.5350912", "0.5197547", "0.51463115", "0.5125456", "0.51253766", "0.5121303", "0.51212794", "0.5103043", "0.51003784", "0.50682974", "0.502702", "0.5017063", "0.50147325", "0.49365783", "0.49328876", "0.49235687", "0.49221352", "0.49177378", "0.49141526", "0.49054185", "0.4877359", "0.48763692", "0.48698625", "0.47931528", "0.4709151", "0.47061956", "0.47025976", "0.46941927", "0.4683008", "0.46604624", "0.4648554", "0.46307048", "0.4630641", "0.46281013", "0.4621819", "0.46129456", "0.46029732", "0.45944387", "0.4592425", "0.4582681", "0.45754355", "0.45660627", "0.4564719", "0.45518452", "0.45476893", "0.45390338", "0.45363015", "0.45349267", "0.45298034", "0.45281744", "0.45145443", "0.44959205", "0.44929528", "0.4490393", "0.44879475", "0.44683754", "0.4466884", "0.4463076", "0.44542024", "0.44536945", "0.4452149", "0.44479185", "0.44447896", "0.4440501", "0.44378832", "0.44282484", "0.4423854", "0.4423496", "0.44182864", "0.44182402", "0.44159374", "0.44037744", "0.43947718", "0.43854076", "0.4383406", "0.43777683", "0.43723422", "0.43695968", "0.43687811", "0.43625337", "0.43604085", "0.43592614", "0.4352316", "0.43399212", "0.43391037", "0.43391037", "0.43391037", "0.43326694", "0.43311158" ]
0.49277046
26
hasOnlyDefaultValues() Hydrates (populates) the object variables with values from the database resultset. An offset (0based "start column") is specified so that objects can be hydrated with a subset of the columns in the resultset rows. This is needed, for example, for results of JOIN queries where the resultset row includes columns from two or more tables.
public function hydrate($row, $startcol = 0, $rehydrate = false, $indexType = TableMap::TYPE_NUM) { try { $col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : TblProdInfoTableMap::translateFieldName('ProdId', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_id = (null !== $col) ? (int) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : TblProdInfoTableMap::translateFieldName('ProdPriceId', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_price_id = (null !== $col) ? (int) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : TblProdInfoTableMap::translateFieldName('ProdName', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_name = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : TblProdInfoTableMap::translateFieldName('ProdAlt1', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_alt1 = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : TblProdInfoTableMap::translateFieldName('ProdAlt2', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_alt2 = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : TblProdInfoTableMap::translateFieldName('ProdAlt3', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_alt3 = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 6 + $startcol : TblProdInfoTableMap::translateFieldName('ProdAlt4', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_alt4 = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 7 + $startcol : TblProdInfoTableMap::translateFieldName('ProdCode', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_code = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 8 + $startcol : TblProdInfoTableMap::translateFieldName('ProdCategory', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_category = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 9 + $startcol : TblProdInfoTableMap::translateFieldName('ProdCategoryShipping', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_category_shipping = (null !== $col) ? (int) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 10 + $startcol : TblProdInfoTableMap::translateFieldName('ProdWriteup', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_writeup = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 11 + $startcol : TblProdInfoTableMap::translateFieldName('ProdLength', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_length = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 12 + $startcol : TblProdInfoTableMap::translateFieldName('ProdWingspan', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_wingspan = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 13 + $startcol : TblProdInfoTableMap::translateFieldName('ProdHeight', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_height = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 14 + $startcol : TblProdInfoTableMap::translateFieldName('ProdScale', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_scale = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 15 + $startcol : TblProdInfoTableMap::translateFieldName('ProdLinks', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_links = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 16 + $startcol : TblProdInfoTableMap::translateFieldName('ProdLinkdescription', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_linkdescription = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 17 + $startcol : TblProdInfoTableMap::translateFieldName('ProdFront', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_front = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 18 + $startcol : TblProdInfoTableMap::translateFieldName('ProdKeywords', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_keywords = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 19 + $startcol : TblProdInfoTableMap::translateFieldName('ProdKeywordsWriteup', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_keywords_writeup = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 20 + $startcol : TblProdInfoTableMap::translateFieldName('ProdTitle', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_title = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 21 + $startcol : TblProdInfoTableMap::translateFieldName('ProdDescription', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_description = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 22 + $startcol : TblProdInfoTableMap::translateFieldName('ProdGeneral', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_general = (null !== $col) ? (int) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 23 + $startcol : TblProdInfoTableMap::translateFieldName('ProdEra', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_era = (null !== $col) ? (int) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 24 + $startcol : TblProdInfoTableMap::translateFieldName('ProdCompany', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_company = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 25 + $startcol : TblProdInfoTableMap::translateFieldName('ProdRelated', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_related = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 26 + $startcol : TblProdInfoTableMap::translateFieldName('ProdRelatedPa', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_related_pa = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 27 + $startcol : TblProdInfoTableMap::translateFieldName('ProdRelatedM3', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_related_m3 = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 28 + $startcol : TblProdInfoTableMap::translateFieldName('ProdRelated2', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_related2 = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 29 + $startcol : TblProdInfoTableMap::translateFieldName('ProdSaveas', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_saveas = (null !== $col) ? (int) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 30 + $startcol : TblProdInfoTableMap::translateFieldName('ProdAircraftreg', TableMap::TYPE_PHPNAME, $indexType)]; $this->prod_aircraftreg = (null !== $col) ? (string) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 31 + $startcol : TblProdInfoTableMap::translateFieldName('Mb', TableMap::TYPE_PHPNAME, $indexType)]; $this->mb = (null !== $col) ? (int) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 32 + $startcol : TblProdInfoTableMap::translateFieldName('Pa', TableMap::TYPE_PHPNAME, $indexType)]; $this->pa = (null !== $col) ? (int) $col : null; $col = $row[TableMap::TYPE_NUM == $indexType ? 33 + $startcol : TblProdInfoTableMap::translateFieldName('M3', TableMap::TYPE_PHPNAME, $indexType)]; $this->m3 = (null !== $col) ? (int) $col : null; $this->resetModified(); $this->setNew(false); if ($rehydrate) { $this->ensureConsistency(); } return $startcol + 34; // 34 = TblProdInfoTableMap::NUM_HYDRATE_COLUMNS. } catch (Exception $e) { throw new PropelException(sprintf('Error populating %s object', '\\TblProdInfo'), 0, $e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array())) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array())) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array())) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return true\n return true;\n }", "public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }", "public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }", "public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }", "public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }", "public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }", "public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }", "public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }", "protected function getDefaultRow()\n {\n $results = array();\n foreach ($this->getFields() as $name => $field) {\n $results[$name] = $field->getDefault();\n }\n return $results;\n }", "public function hasOnlyDefaultValues()\n\t{\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n {\n if ($this->is_not !== false) {\n return false;\n }\n\n if ($this->rank !== 0) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "protected function _addDefaultFields()\n {\n $select = $this->clause('select');\n $this->_hasFields = true;\n\n if (!count($select) || $this->_autoFields === true) {\n $this->_hasFields = false;\n $this->select($this->repository()->getSchema()->columns());\n $select = $this->clause('select');\n }\n\n $aliased = $this->aliasFields($select, $this->repository()->getAlias());\n $this->select($aliased, true);\n }", "public static function getOffsetWithDefault($cursor, $defaultOffset)\n {\n }", "public function hasOnlyDefaultValues()\n {\n if ($this->deleted !== false) {\n return false;\n }\n\n if ($this->amount !== 1) {\n return false;\n }\n\n if ($this->amountevaluation !== 0) {\n return false;\n }\n\n if ($this->defaultstatus !== 0) {\n return false;\n }\n\n if ($this->defaultdirectiondate !== 0) {\n return false;\n }\n\n if ($this->defaultenddate !== 0) {\n return false;\n }\n\n if ($this->defaultpersoninevent !== 0) {\n return false;\n }\n\n if ($this->defaultpersonineditor !== 0) {\n return false;\n }\n\n if ($this->maxoccursinevent !== 0) {\n return false;\n }\n\n if ($this->showtime !== false) {\n return false;\n }\n\n if ($this->ispreferable !== true) {\n return false;\n }\n\n if ($this->isrequiredcoordination !== false) {\n return false;\n }\n\n if ($this->isrequiredtissue !== false) {\n return false;\n }\n\n if ($this->mnem !== '') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function testHasKidsDefaultValue()\n {\n $this->assertEquals(0, $this->getObject(0)->getValue());\n }", "public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->type !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->total_index !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_published !== true) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_featured !== false) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->comments_count !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array(UserPeer::POINTS,UserPeer::TYPE,UserPeer::HIDDEN,UserPeer::RELATIONSHIP_STATUS,UserPeer::SHOW_EMAIL,UserPeer::SHOW_GENDER,UserPeer::SHOW_HOMETOWN,UserPeer::SHOW_HOME_PHONE,UserPeer::SHOW_MOBILE_PHONE,UserPeer::SHOW_BIRTHDATE,UserPeer::SHOW_ADDRESS,UserPeer::SHOW_RELATIONSHIP_STATUS,UserPeer::CREDIT,UserPeer::LOGIN))) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->points !== '0') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->type !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->hidden !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->relationship_status !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_email !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_gender !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_hometown !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_home_phone !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_mobile_phone !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_birthdate !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_address !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_relationship_status !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->credit !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->login !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "abstract public function getColDefaults();", "public function get($offset, $default = null);", "public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->st_usuario !== true) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function getValue($offset = null) {}", "public function hasOnlyDefaultValues()\n {\n if ($this->setregis !== 0) {\n return false;\n }\n\n // otherwise, everything was equal, so return TRUE\n return true;\n }", "public function fetchFieldsForPage($default = null);", "protected function defaultValues() : array\n {\n return [\n 'limit' => 20,\n 'offset' => 0,\n 'order_by_dir' => 'DESC',\n ];\n }", "public function hasOnlyDefaultValues()\n {\n if ($this->last_sync !== '1901-01-01 00:00:00') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function applyDefaultValues()\n {\n $this->is_not = false;\n $this->rank = 0;\n }", "public function hasOnlyDefaultValues()\n {\n if ($this->montacargas_baja !== 0) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function getColumnDefaultApiValues(string $fullTable, array $options = [])\n {\n $ret = [];\n\n $omitAutoIncrement = $options['omitAutoIncrement'] ?? false;\n\n $types = $this->getColumnDataTypes($fullTable, true);\n $nullables = $this->getColumnNullabilities($fullTable);\n $ai = $this->getAutoIncrementedField($fullTable);\n\n\n foreach ($types as $k => $v) {\n\n\n if ($ai === $k && true === $omitAutoIncrement) {\n continue;\n }\n\n\n if (\n ($ai === $k) ||\n (true === array_key_exists($k, $nullables) && true === $nullables[$k])\n ) {\n $ret[$k] = null;\n } else {\n\n\n $p = explode(\"(\", $v, 2);\n $shortType = array_shift($p);\n $insideParenthesis = \"\";\n if ($p) {\n $insideParenthesis = rtrim(array_shift($p), ')');\n }\n\n switch ($shortType) {\n case \"int\":\n case \"tinyint\":\n $defaultValue = \"0\";\n break;\n case \"float\":\n case \"decimal\":\n $defaultValue = \"0.0\";\n break;\n case \"enum\":\n\n /**\n * The default value of an enum column should be (if not null),\n * the first of the listed values.\n *\n * https://dev.mysql.com/doc/refman/8.0/en/enum.html\n * (section \"Empty or NULL Enumeration Values\")\n *\n */\n $values = PsvTool::explodeProtected($insideParenthesis);\n $defaultValue = array_shift($values);\n break;\n case \"char\":\n case \"varchar\":\n case \"text\":\n case \"mediumtext\":\n case \"longtext\":\n $defaultValue = \"\";\n break;\n case \"datetime\":\n $defaultValue = date(\"Y-m-d H:i:s\");\n break;\n case \"time\":\n $defaultValue = date(\"H:i:s\");\n break;\n case \"date\":\n $defaultValue = date(\"Y-m-d\");\n break;\n default:\n throw new SqlWizardException(\"Unrecognized mysql type: $shortType.\");\n }\n\n $ret[$k] = $defaultValue;\n }\n\n\n }\n\n return $ret;\n }", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array(UserPeer::PLATFORM,UserPeer::EXPERIENCE_SCORE,UserPeer::UP_VOTES,UserPeer::DOWN_VOTES,UserPeer::IS_GUEST,UserPeer::IS_ADMIN,UserPeer::TODAY_VOTES,UserPeer::EMAIL_ON))) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->platform !== 'pc') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->experience_score !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->up_votes !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->down_votes !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_guest !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_admin !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->today_votes !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->email_on !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function getValues($offset)\n {\n }", "public function hasOnlyDefaultValues()\n {\n if ($this->jml_lantai !== '1') {\n return false;\n }\n\n if ($this->asal_data !== '1') {\n return false;\n }\n\n if ($this->last_sync !== '1901-01-01 00:00:00') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->is_archived !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->google_analytics_enabled !== false) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n {\n if ($this->create_date !== '2020-04-16 09:40:03') {\n return false;\n }\n\n if ($this->last_update !== '2020-04-16 09:40:03') {\n return false;\n }\n\n if ($this->last_sync !== '1901-01-01 00:00:00') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function hasOnlyDefaultValues()\n {\n if ($this->is_active !== false) {\n return false;\n }\n\n if ($this->is_closed !== false) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function hasOnlyDefaultValues()\n {\n if ($this->active !== false) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }", "public function fillupDefault()\n {\n\n foreach (static::$cols as $key => $col) {\n if ('' != $col[self::COL_DEFAULT]) {\n $this->data[$key] = $col[self::COL_DEFAULT];\n }\n }\n\n }", "public function hasOnlyDefaultValues()\n {\n if ($this->phadtype !== '') {\n return false;\n }\n\n if ($this->phadid !== '') {\n return false;\n }\n\n if ($this->phadsubid !== '') {\n return false;\n }\n\n if ($this->phadsubidseq !== 0) {\n return false;\n }\n\n if ($this->phadcont !== '') {\n return false;\n }\n\n // otherwise, everything was equal, so return TRUE\n return true;\n }", "function getDefaultValues($table = null){\n // If cTable was not passed in, return empty array:\n if ($table==null ) \n return array();\n \n // Set up blank array:\n $returnValue = array();\n \n // Get the fields:\n $result = $this->query(\"DESCRIBE `{$table}`\");\n $nbRows = $this->numRows($result);\n if (count($nbRows)==0) \n return array();\n\n // Scan through each field and assign defaults:\n for($i=0; $i < $nbRows; $i++) {\n $val = $this->fetchAssoc($result);\n if ($val['Default'] AND $val['Default']=='CURRENT_TIMESTAMP') {\n $returnValue[$val['Field']] = date('Y-m-d H:i:s'); \n }\n if ($val['Extra'] AND $val['Extra']=='auto_increment') {\n $returnValue[$val['Field']] = 0; \n }\n if ($val['Default'] AND $val['Default']!='CURRENT_TIMESTAMP') {\n $returnValue[$val['Field']] = $val['Default'];\n } else {\n if ($val['Null']=='YES') {\n $returnValue[$val['Field']] = NULL;\n } else {\n $type = $val['Type'];\n if (strpos($type,'(')!==false)\n $type = substr($type,0,strpos($type,'('));\n if (in_array($type,array('varchar','text','char','tinytext','mediumtext','longtext','set',\n 'binary','varbinary','tinyblob','blob','mediumblob','longblob'))) {\n $returnValue[$val['Field']] = '';\n } elseif ($type=='datetime') {\n $returnValue[$val['Field']] = '0000-00-00 00:00:00';\n } elseif ($type=='date') {\n $returnValue[$val['Field']] = '0000-00-00';\n } elseif ($type=='time') {\n $returnValue[$val['Field']] = '00:00:00';\n } elseif ($type=='year') {\n $returnValue[$val['Field']] = '0000';\n } elseif ($type=='timestamp') {\n $returnValue[$val['Field']] = date('Y-m-d H:i:s');\n } elseif ($type=='enum') {\n $returnValue[$val['Field']] = 1;\n } else { // Numeric:\n $returnValue[$val['Field']] = 0;\n }\n } // end NOT NULL\n } // end default check\n } // end foreach loop \n return $returnValue; \n }", "function data_preprocessing(&$default_values){\n }", "public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->closed !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->lastfmid !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->hasphotos !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function hasOnlyDefaultValues()\n {\n if ($this->sessionid !== '') {\n return false;\n }\n\n if ($this->recno !== 0) {\n return false;\n }\n\n if ($this->type !== '') {\n return false;\n }\n\n if ($this->custid !== '') {\n return false;\n }\n\n if ($this->shiptoid !== '') {\n return false;\n }\n\n if ($this->custname !== '') {\n return false;\n }\n\n if ($this->orderno !== '') {\n return false;\n }\n\n if ($this->custpo !== '') {\n return false;\n }\n\n if ($this->custref !== '') {\n return false;\n }\n\n if ($this->status !== '') {\n return false;\n }\n\n if ($this->orderdate !== '') {\n return false;\n }\n\n if ($this->careof !== '') {\n return false;\n }\n\n if ($this->quotdate !== '') {\n return false;\n }\n\n if ($this->invdate !== '') {\n return false;\n }\n\n if ($this->shipdate !== '') {\n return false;\n }\n\n if ($this->revdate !== '') {\n return false;\n }\n\n if ($this->expdate !== '') {\n return false;\n }\n\n if ($this->hasdocuments !== '') {\n return false;\n }\n\n if ($this->hastracking !== '') {\n return false;\n }\n\n if ($this->subtotal !== '0.00') {\n return false;\n }\n\n if ($this->salestax !== '0.00') {\n return false;\n }\n\n if ($this->freight !== '0.00') {\n return false;\n }\n\n if ($this->misccost !== '0.00') {\n return false;\n }\n\n if ($this->ordertotal !== '0.00') {\n return false;\n }\n\n if ($this->hasnotes !== '') {\n return false;\n }\n\n if ($this->editord !== '') {\n return false;\n }\n\n if ($this->error !== '') {\n return false;\n }\n\n if ($this->errormsg !== '') {\n return false;\n }\n\n if ($this->sconame !== '') {\n return false;\n }\n\n if ($this->shipname !== '') {\n return false;\n }\n\n if ($this->shipaddress !== '') {\n return false;\n }\n\n if ($this->shipaddress2 !== '') {\n return false;\n }\n\n if ($this->shipcity !== '') {\n return false;\n }\n\n if ($this->shipstate !== '') {\n return false;\n }\n\n if ($this->shipzip !== '') {\n return false;\n }\n\n if ($this->shipcountry !== '') {\n return false;\n }\n\n if ($this->contact !== '') {\n return false;\n }\n\n if ($this->phintl !== '') {\n return false;\n }\n\n if ($this->phone !== '') {\n return false;\n }\n\n if ($this->extension !== '') {\n return false;\n }\n\n if ($this->faxnbr !== '') {\n return false;\n }\n\n if ($this->email !== '') {\n return false;\n }\n\n if ($this->releasenbr !== '') {\n return false;\n }\n\n if ($this->shipviacd !== '') {\n return false;\n }\n\n if ($this->shipviadesc !== '') {\n return false;\n }\n\n if ($this->pricecode !== '') {\n return false;\n }\n\n if ($this->pricecodedesc !== '') {\n return false;\n }\n\n if ($this->pricedisp !== '') {\n return false;\n }\n\n if ($this->taxcode !== '') {\n return false;\n }\n\n if ($this->taxcodedesc !== '') {\n return false;\n }\n\n if ($this->taxcodedisp !== '') {\n return false;\n }\n\n if ($this->termcode !== '') {\n return false;\n }\n\n if ($this->termtype !== '') {\n return false;\n }\n\n if ($this->termcodedesc !== '') {\n return false;\n }\n\n if ($this->rqstdate !== '') {\n return false;\n }\n\n if ($this->shipcom !== '') {\n return false;\n }\n\n if ($this->sp1 !== '') {\n return false;\n }\n\n if ($this->sp1name !== '') {\n return false;\n }\n\n if ($this->sp2 !== '') {\n return false;\n }\n\n if ($this->sp2name !== '') {\n return false;\n }\n\n if ($this->sp2disp !== '') {\n return false;\n }\n\n if ($this->sp3 !== '') {\n return false;\n }\n\n if ($this->sp3name !== '') {\n return false;\n }\n\n if ($this->sp3disp !== '') {\n return false;\n }\n\n if ($this->fob !== '') {\n return false;\n }\n\n if ($this->deliverydesc !== '') {\n return false;\n }\n\n if ($this->whse !== '') {\n return false;\n }\n\n if ($this->cardnumber !== '') {\n return false;\n }\n\n if ($this->cardexpire !== '') {\n return false;\n }\n\n if ($this->cardcode !== '') {\n return false;\n }\n\n if ($this->cardapproval !== '') {\n return false;\n }\n\n if ($this->totalcost !== '') {\n return false;\n }\n\n if ($this->totaldiscount !== '') {\n return false;\n }\n\n if ($this->paymenttype !== '') {\n return false;\n }\n\n if ($this->srcdatefrom !== '') {\n return false;\n }\n\n if ($this->srcdatethru !== '') {\n return false;\n }\n\n if ($this->billname !== '') {\n return false;\n }\n\n if ($this->billaddress !== '') {\n return false;\n }\n\n if ($this->billaddress2 !== '') {\n return false;\n }\n\n if ($this->billaddress3 !== '') {\n return false;\n }\n\n if ($this->billcountry !== '') {\n return false;\n }\n\n if ($this->billcity !== '') {\n return false;\n }\n\n if ($this->billstate !== '') {\n return false;\n }\n\n if ($this->billzip !== '') {\n return false;\n }\n\n if ($this->prntfmt !== '') {\n return false;\n }\n\n if ($this->prntfmtdisp !== '') {\n return false;\n }\n\n if ($this->dummy !== 'x') {\n return false;\n }\n\n // otherwise, everything was equal, so return TRUE\n return true;\n }", "public function fetchMapped();", "private function _setDefaults(): void {\n\t\t// default query options\n\t\t$options['limit'] = 50;\n\t\t$options['offset'] = false;\n\t\t$options['sort'] = false;\n\t\t$options['sortDirection'] = false;\n\t\t$this->setQueryOptions($options);\n\t}", "public function beforeSave()\n {\n if ($this->fixResultSets)\n {\n foreach ($this->fixResultSets as $property => $__)\n {\n if (isset($this->$property) && ($value = $this->$property) instanceof \\Phalcon\\Mvc\\Model\\ResultSetInterface)\n {\n unset($this->fixResultSets[$property]);\n $this->$property = $value->filter(function($r) {\n return $r;\n });\n }\n }\n }\n }", "public function isDefault()\n {\n return $this->column->name === 'id' && $this->column->type === 'id';\n }", "public function setDefaultValues()\r\n {\r\n foreach ($this->defaultValues as $property => $value) {\r\n if (is_null($this->$property)) {\r\n $this->$property = $value;\r\n }\r\n }\r\n }", "public function testUndefinedValuesQueryPart()\n {\n $method = $this->builder_reflection->getMethod('sql_values');\n $method->setAccessible(TRUE);\n\n $property = $this->builder_reflection->getProperty('values');\n $property->setAccessible(TRUE);\n\n $method->invokeArgs($this->builder, array(array()));\n\n $string = '';\n\n $this->assertEquals($string, $property->getValue($this->builder));\n }", "private static function get_default_properties()\r\n {\r\n $content_object_alias = RepositoryDataManager :: get_instance()->get_alias(ContentObject :: get_table_name());\r\n \r\n $properties = array();\r\n $properties[] = new GalleryObjectTableProperty(ContentObject :: PROPERTY_TITLE, $content_object_alias);\r\n $properties[] = new GalleryObjectTableProperty(ContentObject :: PROPERTY_DESCRIPTION, $content_object_alias);\r\n return $properties;\r\n }", "function defaults() {\n\t\t$ret = array();\n\t\tforeach($this->schema() as $key => $field) {\n\t\t\tif(!$field['primary'] && !is_null($field['default'])) {\n\t\t\t\t$ret[$key] = $field['default'];\n\t\t\t}\n\t\t}\n\n\t\treturn $ret;\n\t}", "public function prepopulateRowWhenEmpty()\n {\n return $this->withMeta(['prepopulateRowWhenEmpty' => true]);\n }", "public function testQueryFetchDefault() {\n $records = [];\n $result = $this->connection->query('SELECT [name] FROM {test} WHERE [age] = :age', [':age' => 25]);\n $this->assertInstanceOf(StatementInterface::class, $result);\n foreach ($result as $record) {\n $records[] = $record;\n $this->assertIsObject($record);\n $this->assertSame('John', $record->name);\n }\n\n $this->assertCount(1, $records, 'There is only one record.');\n }", "public function fetch($fetchMode = null, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0): mixed\n {\n if ($fetchMode === null) {\n $fetchMode = $this->fetchMode;\n }\n\n $toLowercase = ($this->connection->getAttribute(PDO::ATTR_CASE) === PDO::CASE_LOWER);\n $nullToString = ($this->connection->getAttribute(PDO::ATTR_ORACLE_NULLS) === PDO::NULL_TO_STRING);\n $nullEmptyString = ($this->connection->getAttribute(PDO::ATTR_ORACLE_NULLS) === PDO::NULL_EMPTY_STRING);\n\n switch ($fetchMode) {\n case PDO::FETCH_BOTH:\n case PDO::FETCH_ASSOC:\n $resultSet = @\\odbc_fetch_array($this->statement);\n\n if (\\odbc_error()) {\n $this->throwException();\n }\n\n if ($resultSet === false) {\n return false;\n }\n\n if ($toLowercase) {\n $resultSet = \\array_change_key_case($resultSet);\n }\n\n return $resultSet;\n\n case PDO::FETCH_OBJ:\n $resultSet = @\\odbc_fetch_array($this->statement);\n\n if (\\odbc_error()) {\n $this->throwException();\n }\n\n if ($resultSet === false) {\n return false;\n }\n\n if ($toLowercase) {\n $resultSet = \\array_change_key_case($resultSet);\n }\n\n $object = new stdClass();\n\n foreach ($resultSet as $field => $value) {\n if (\\is_null($value) && $nullToString) {\n $resultSet[$field] = '';\n }\n\n if (empty($resultSet[$field]) && $nullEmptyString) {\n $resultSet[$field] = null;\n }\n\n $object->{$field} = $value;\n }\n\n return $object;\n }\n\n return false;\n }", "abstract protected function loadTableDefaultValues(string $tableName): array;", "public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->ativo !== true) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->tipo_acesso !== 'M') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->estado_civil !== 'O') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->nivel_acesso !== '1') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->usuario_validado !== false) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}", "public function byPrimaryKeysWithoutTableAnnotation()\n {\n $mockResult = $this->getMock('stubDatabaseResult');\n $this->mockConnection->expects($this->any())->method('query')->will($this->returnValue($mockResult));\n $mockResult->expects($this->exactly(2))\n ->method('fetch')\n ->will($this->onConsecutiveCalls(false, array('id' => 'mock', 'bar' => 'Here is bar.', 'defaultValue' => 'And this is default.')));\n $this->assertNull($this->dbFinder->findByPrimaryKeys($this->mockConnection, new stubReflectionClass('MockNoTableAnnotationEntity'), array('id' => 'mock')));\n $entity = $this->dbFinder->findByPrimaryKeys($this->mockConnection, new stubReflectionClass('MockNoTableAnnotationEntity'), array('id' => 'mock'));\n $this->assertEquals('mock', $entity->getId());\n $this->assertEquals('Here is bar.', $entity->withAnnotation());\n $this->assertEquals('And this is default.', $entity->getDefaultValue());\n $this->assertEquals('MockNoTableAnnotationEntitys', $this->mockQueryBuilder->getSelect()->getBaseTableName());\n }", "public function getDefaultFields(){\n return $this->dbFields;\n }", "public function defaultData();", "public function load($_criteria=NULL,$_order=NULL,$_offset=0) {\n\t\tif (method_exists($this,'beforeLoad'))\n\t\t\t// Execute beforeLoad event\n\t\t\t$this->beforeLoad();\n\t\tif (!is_null($_offset) && $_offset>-1) {\n\t\t\t$_virtual='';\n\t\t\tforeach ($this->virtual as $_field=>$_value)\n\t\t\t\t$_virtual.=',('.$_value['expr'].') AS '.$_field;\n\t\t\t// Retrieve record\n\t\t\t$_result=$this->lookup(\n\t\t\t\t'*'.$_virtual,$_criteria,NULL,$_order,'1 OFFSET '.$_offset\n\t\t\t);\n\t\t\t$this->offset=NULL;\n\t\t\tif ($_result) {\n\t\t\t\t// Hydrate Axon\n\t\t\t\tforeach ($_result[0] as $_field=>$_value) {\n\t\t\t\t\tif (array_key_exists($_field,$this->fields)) {\n\t\t\t\t\t\t$this->fields[$_field]=$_value;\n\t\t\t\t\t\tif (array_key_exists($_field,$this->keys))\n\t\t\t\t\t\t\t$this->keys[$_field]=$_value;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$this->virtual[$_field]['value']=$_value;\n\t\t\t\t}\n\t\t\t\t$this->empty=FALSE;\n\t\t\t\t$this->criteria=$_criteria;\n\t\t\t\t$this->order=$_order;\n\t\t\t\t$this->offset=$_offset;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$this->reset();\n\t\t}\n\t\telse\n\t\t\t$this->reset();\n\t\tif (method_exists($this,'afterLoad'))\n\t\t\t// Execute afterLoad event\n\t\t\t$this->afterLoad();\n\t}", "public function testInitialValuesQueryPart()\n {\n $method = $this->builder_reflection->getMethod('sql_values');\n $method->setAccessible(TRUE);\n\n $property = $this->builder_reflection->getProperty('values');\n $property->setAccessible(TRUE);\n\n $method->invokeArgs($this->builder, array(array('value1', 'value2', 'value3')));\n\n $string = 'VALUES (value1, value2, value3)';\n\n $this->assertEquals($string, $property->getValue($this->builder));\n }", "public function getAddDefaultsExplicitlyOnInsert();", "abstract protected function getEntitySetWithDefaults();", "function &offsetGet($offset) {\n $property = defined('static::$DOMAIN_PROPERTY') ? static::$DOMAIN_PROPERTY : 'data';\n if(!isset($this->{$property})) {\n $this->{$property} = [];\n }\n\n if(is_array($this->{$property}) && isset($this->{$property}[$offset])) {\n return $this->{$property}[$offset];\n }\n\n $none = null;\n return $none;\n }", "function setDefaultValues() {}", "public function hasOnlyDefaultValues()\n {\n if ($this->shnttype !== '') {\n return false;\n }\n\n if ($this->shntseq !== 0) {\n return false;\n }\n\n if ($this->shntkey2 !== '') {\n return false;\n }\n\n if ($this->shntform !== '') {\n return false;\n }\n\n // otherwise, everything was equal, so return TRUE\n return true;\n }", "function sql_fetch_field($res,$offset = 0)\n {\n $results = array();\n $obj = NULL;\n $results = $res->getColumnMeta($offset);\n foreach($results as $key=>$value) {\n $obj->$key = $value;\n }\n return $obj;\n }", "public function hasDefaultValue(): bool;", "public function isHydrated() {\n\t\treturn !empty($this->originalData);\t\t\n\t}", "function data_preprocessing(&$default_values){\n parent::data_preprocessing($default_values);\n if (!empty($default_values['config'])) {\n $values = json_decode($default_values['config'], true);\n foreach ($values as $key => $value) {\n $default_values['config_' . $key] = $value;\n }\n unset($default_values['config']);\n }\n }", "public abstract function value($offset = 0);", "private function populateDummyTable() {}", "public function getDefaultRecord()\n {\n return array(\n 'address_id' => -1,\n 'contact_id' => -1,\n 'address_type' => 'OTHER',\n 'address_identifier' => '',\n 'address_description' => '',\n 'address_street' => '',\n 'address_appendix_1' => '',\n 'address_appendix_2' => '',\n 'address_zip' => '',\n 'address_city' => '',\n 'address_area' => '',\n 'address_state' => '',\n 'address_country_code' => '',\n 'address_status' => 'ACTIVE',\n 'address_timestamp' => '0000-00-00 00:00:00'\n );\n }", "public function getDefaultOrderByColumns();", "public function setDefaultValues() {\n return [];\n }", "public function testGetDataTableEmptyResult() {\r\n $records = [\r\n ['UUID' => 'uuid1tRMR1', 'bool' => false, 'int' => 10, 'string' => 'testReadMultipleRecords 1'],\r\n ['UUID' => 'uuid1tRMR2', 'bool' => true, 'int' => 20, 'string' => 'testReadMultipleRecords 2'],\r\n ['UUID' => 'uuid1tRMR3', 'bool' => false, 'int' => 30, 'string' => 'testReadMultipleRecords 3']\r\n ];\r\n // Write data to the database\r\n foreach ($records as $record) {\r\n $this->executeQuery('insert into POTEST (UUID, BOOLEAN_VALUE, INT_VALUE, STRING_VALUE) values (\\''.$record['UUID'].'\\','.($record['bool'] ? 1:0).','.$record['int'].', \\''.$record['string'].'\\')');\r\n }\r\n\t\t$query = 'select UUID, BOOLEAN_VALUE, INT_VALUE, STRING_VALUE from POTEST where UUID=\\'unknownuuid\\'';\r\n\t\t$datatable = $this->getPersistenceAdapter()->getDataTable($query);\r\n\t\t// Check header names\r\n\t\t$headernames = $datatable->getHeaders();\r\n\t\t$this->assertEquals(4, count($headernames), 'Datatable has unexpected header names count.');\r\n\t\t$this->assertEquals('UUID', $headernames[0], 'Header of column 0 is not as expected.');\r\n\t\t$this->assertEquals('BOOLEAN_VALUE', $headernames[1], 'Header of column 1 is not as expected.');\r\n\t\t$this->assertEquals('INT_VALUE', $headernames[2], 'Header of column 2 is not as expected.');\r\n\t\t$this->assertEquals('STRING_VALUE', $headernames[3], 'Header of column 3 is not as expected.');\r\n\t\t// Check row count\r\n\t\t$this->assertEquals(0, count($datatable->getDataMatrix()), 'Datatable has unexpected row count.');\r\n\t}", "public function applyDefaultValues()\n\t{\n\t\t$this->type = 1;\n\t\t$this->total_index = 0;\n\t\t$this->is_published = true;\n\t\t$this->is_featured = false;\n\t\t$this->comments_count = 0;\n\t}", "public function getDefaultValues()\n {\n return $this->defaultValues;\n }", "public function getDefaultValues()\n {\n return $this->defaultValues;\n }", "public function applyDefaultValues()\n {\n $this->deleted = false;\n $this->amount = 1;\n $this->amountevaluation = 0;\n $this->defaultstatus = 0;\n $this->defaultdirectiondate = 0;\n $this->defaultenddate = 0;\n $this->defaultpersoninevent = 0;\n $this->defaultpersonineditor = 0;\n $this->maxoccursinevent = 0;\n $this->showtime = false;\n $this->ispreferable = true;\n $this->isrequiredcoordination = false;\n $this->isrequiredtissue = false;\n $this->mnem = '';\n }", "public function testBasicPopulate() {\n\t\t$class = get_class($this->entity);\n\t\t$array = $this->entity->toArray(true);\n\t\t$filled = $this->fillArray($array);\n\n\t\t$entity = new $class($filled);\n\t\t$result = $entity->toArray();\n\t\t\n\t\t$this->assertEquals($filled, $result);\n\t}", "public function getValuesRows($includeEmptyFields=false){\n if (!$includeEmptyFields){\n return $this->valuesRows;\n }else{\n $result=[];\n if (!empty($this->valuesRows)){\n foreach ($this->valuesRows as $valuesRowId=>$valuesRow){\n $rowResult=[];\n if (!empty($this->dbFields)){\n foreach ($this->dbFields as $dbField){\n $rowResult[$dbField->id]=(!empty($valuesRow[$dbField->id])?$valuesRow[$dbField->id]:'');\n }\n }\n $result[$valuesRowId]=$rowResult;\n }\n }\n return $result;\n }\n }", "function data_preprocessing(&$default_values){\r\n\r\n\t\t// Set up the completion checkboxes which aren't part of standard data.\r\n\t\t// We also make the default value (if you turn on the checkbox) for those\r\n\t\t// numbers to be 1, this will not apply unless checkbox is ticked.\r\n\t\t$default_values['completionlayersenabled']=\r\n\t\t\t!empty($default_values['completionlayers']) ? 1 : 0;\r\n\t\tif(empty($default_values['completionlayers'])) {\r\n\t\t\t$default_values['completionlayers']=1;\r\n\t\t}\r\n\t}", "function populate($obj, $prop, $default = '') {\n return ($obj && isset($obj->$prop)) ? $obj->$prop : $default;\n}", "public function testOffset()\n {\n $obj_query = new \\Search\\Query();\n $this->assertEquals(0, $obj_query->getOffset());\n $obj_query->offset(121);\n $this->assertEquals(121, $obj_query->getOffset());\n $obj_query->offset(-10);\n $this->assertEquals(0, $obj_query->getOffset());\n $obj_query2 = $obj_query->offset(2001);\n $this->assertEquals(1000, $obj_query->getOffset());\n $this->assertSame($obj_query, $obj_query2);\n }", "public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}", "public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}", "public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}", "public function testSingleResultQueryMissingMetadata() {\r\n $uuid = 'abcdefg';\r\n $bool = true;\r\n $int = 1234567;\r\n $string = 'avorium';\r\n // Write data to the database\r\n $this->executeQuery('insert into POTEST (UUID, BOOLEAN_VALUE, INT_VALUE, STRING_VALUE) values (\\''.$uuid.'\\','.($bool ? 1:0).','.$int.', \\''.$string.'\\')');\r\n // Read data out and cast it to persistent object with incomplete metadata\r\n // Here should come up an exception. It should not be possible to match to an class without knowing from which table to extract the date\r\n $query = 'select * from POTEST where UUID = \\''.$uuid.'\\'';\r\n $po = $this->getPersistenceAdapter()->executeSingleResultQuery($query, 'test_persistence_AbstractPersistenceAdapterTestNoPersistentObject');\r\n // Should return a result because when casting to an object the missing class metadata is irrelevant\r\n $this->assertNotNull($po, 'The result is null.');\r\n }", "#[\\ReturnTypeWillChange]\n public function getDefaultValue()\n {\n return $this->getDeclaringClass()->getDefaultProperties()[$this->name];\n }", "function dataDefatult($data, $defaultD) {\r\n if ($data)\r\n return $data;\r\n return $defaultD;\r\n}", "protected function afterConstruct() {\n\t\tif(count($this->defaultColumns) == 0) {\n\t\t\t$this->defaultColumns[] = array(\n\t\t\t\t'header' => 'No',\n\t\t\t\t'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1'\n\t\t\t);\n\t\t\t$this->defaultColumns[] = 'id';\n\t\t\t$this->defaultColumns[] = 'complete_name';\n\t\t\t$this->defaultColumns[] = 'address';\n\t\t\t$this->defaultColumns[] = 'city_id';\n\t\t\t$this->defaultColumns[] = 'province_id';\n\t\t\t$this->defaultColumns[] = 'post_code';\n\t\t\t$this->defaultColumns[] = 'house_phone';\n\t\t\t$this->defaultColumns[] = 'mobile_phone';\n\t\t\t$this->defaultColumns[] = 'mobile_phone2';\n\t\t\t$this->defaultColumns[] = 'birth_place';\n\t\t\t$this->defaultColumns[] = 'birth_date';\n\t\t\t$this->defaultColumns[] = 'sex';\n\t\t\t$this->defaultColumns[] = 'religion';\n\t\t\t$this->defaultColumns[] = 'homepage';\n\t\t\t$this->defaultColumns[] = 'origin_status';\n\t\t\t$this->defaultColumns[] = 'origin_address';\n\t\t\t$this->defaultColumns[] = 'origin_city_id';\n\t\t\t$this->defaultColumns[] = 'origin_province_id';\n\t\t\t$this->defaultColumns[] = 'hobby';\n\t\t\t$this->defaultColumns[] = 'photo';\n\t\t\t$this->defaultColumns[] = 'status';\n\t\t\t$this->defaultColumns[] = 'child';\n\t\t\t$this->defaultColumns[] = 'is_data_changed';\n\t\t\t$this->defaultColumns[] = 'swt_users_id';\n\t\t}\n\t\tparent::afterConstruct();\n\t}", "public function getColumnDefaultValues($fullTable)\n {\n $defaults = [];\n $info = $this->query(\"SHOW COLUMNS FROM $fullTable\")->fetchAll(\\PDO::FETCH_ASSOC);\n foreach ($info as $_info) {\n $defaults[$_info['Field']] = $_info['Default'];\n }\n return $defaults;\n }", "protected function get_default_params() {\n\t\t$defaults = [];\n\t\t$schema = $this->get_public_item_schema();\n\t\tforeach ( $schema['properties'] as $arg => $options ) {\n\t\t\tif ( isset( $options['default'] ) ) {\n\t\t\t\t$defaults[ $arg ] = $options['default'];\n\t\t\t}\n\t\t}\n\t\treturn $defaults;\n\t}", "public function getDefaultValues() {\n\t\treturn $this->defaultValues;\n\t}", "public function offset($offset = null)\n {\n if(null === $offset)\n {\n return $this->property('offset');\n }\n return $this->property('offset', (int) $offset);\n }", "protected function doDefaultGetValueList() {\n return false;\n }" ]
[ "0.55138695", "0.55138695", "0.55138695", "0.54085904", "0.53933144", "0.53933144", "0.53933144", "0.53933144", "0.53933144", "0.53933144", "0.53933144", "0.5331264", "0.53155565", "0.5290895", "0.528821", "0.5272583", "0.5265467", "0.5219472", "0.52007836", "0.5185191", "0.5158775", "0.51203465", "0.5076631", "0.49788502", "0.4968445", "0.49670228", "0.4936264", "0.4926152", "0.4903506", "0.48855382", "0.4882383", "0.48806646", "0.48806646", "0.48806646", "0.4875545", "0.48751065", "0.48597804", "0.48484495", "0.4845035", "0.48397702", "0.48390394", "0.48357666", "0.48305267", "0.4829651", "0.4819008", "0.47887623", "0.4783978", "0.47713158", "0.47629932", "0.47484145", "0.4739403", "0.47249874", "0.4714585", "0.4701168", "0.46968278", "0.4674139", "0.46697372", "0.4658601", "0.46423405", "0.46317512", "0.46312252", "0.4611023", "0.46095338", "0.4606473", "0.46013144", "0.45996413", "0.45979226", "0.45965695", "0.45792618", "0.4571605", "0.45685014", "0.45621634", "0.45619342", "0.45490268", "0.4529129", "0.45289966", "0.45233667", "0.45230892", "0.45098874", "0.45097467", "0.4506459", "0.4502157", "0.4502157", "0.4498773", "0.44942418", "0.44895235", "0.44857663", "0.4481181", "0.44605812", "0.44481066", "0.44481066", "0.44481066", "0.4448075", "0.444664", "0.4442235", "0.4440467", "0.44365427", "0.44345436", "0.4433163", "0.4428924", "0.44274384" ]
0.0
-1
Checks and repairs the internal consistency of the object. This method is executed after an alreadyinstantiated object is rehydrated from the database. It exists to check any foreign keys to make sure that the objects related to the current object are correct based on foreign key. You can override this method in the stub class, but you should always invoke the base method from the overridden method (i.e. parent::ensureConsistency()), in case your model changes.
public function ensureConsistency() { if ($this->aTblProdPhotos !== null && $this->prod_id !== $this->aTblProdPhotos->getProdId()) { $this->aTblProdPhotos = null; } if ($this->aTblProdPrices !== null && $this->prod_id !== $this->aTblProdPrices->getProdId()) { $this->aTblProdPrices = null; } if ($this->aTblProdSmaller !== null && $this->prod_id !== $this->aTblProdSmaller->getProdId()) { $this->aTblProdSmaller = null; } if ($this->aTblProdPricing !== null && $this->prod_price_id !== $this->aTblProdPricing->getProdPriceId()) { $this->aTblProdPricing = null; } if ($this->aTblMenus !== null && $this->prod_category !== $this->aTblMenus->getMenuAlias()) { $this->aTblMenus = null; } if ($this->aTblShippingCategories !== null && $this->prod_category_shipping !== $this->aTblShippingCategories->getProdShippingPriceId()) { $this->aTblShippingCategories = null; } if ($this->aTblGeneral !== null && $this->prod_general !== $this->aTblGeneral->getProdGeneral()) { $this->aTblGeneral = null; } if ($this->aTblEra !== null && $this->prod_era !== $this->aTblEra->getEraId()) { $this->aTblEra = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ensureConsistency()\n {\n if ($this->aSociete !== null && $this->soc_id_fk !== $this->aSociete->getID()) {\n $this->aSociete = null;\n }\n if ($this->aMTransport !== null && $this->transport_fk !== $this->aMTransport->getMTransport()) {\n $this->aMTransport = null;\n }\n }", "public function ensureConsistency()\n {\n if ($this->aBooks !== null && $this->_forbook !== $this->aBooks->getId()) {\n $this->aBooks = null;\n }\n if ($this->auserSysRef !== null && $this->__user__ !== $this->auserSysRef->getId()) {\n $this->auserSysRef = null;\n }\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPartie !== null && $this->partie_id !== $this->aPartie->getId()) {\n\t\t\t$this->aPartie = null;\n\t\t}\n\t\tif ($this->aPostRelatedByReplicaPostId !== null && $this->replica_post_id !== $this->aPostRelatedByReplicaPostId->getId()) {\n\t\t\t$this->aPostRelatedByReplicaPostId = null;\n\t\t}\n\t}", "public function ensureConsistency()\n {\n\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aSemester !== null && $this->semester_id !== $this->aSemester->getSemesterId()) {\n $this->aSemester = null;\n }\n if ($this->aSumberAirRelatedBySumberAirId !== null && $this->sumber_air_id !== $this->aSumberAirRelatedBySumberAirId->getSumberAirId()) {\n $this->aSumberAirRelatedBySumberAirId = null;\n }\n if ($this->aSumberAirRelatedBySumberAirMinumId !== null && $this->sumber_air_minum_id !== $this->aSumberAirRelatedBySumberAirMinumId->getSumberAirId()) {\n $this->aSumberAirRelatedBySumberAirMinumId = null;\n }\n }", "public function ensureConsistency()\n {\n if ($this->aShape !== null && $this->shape_id !== $this->aShape->getShapeId()) {\n $this->aShape = null;\n }\n if ($this->aCakeType !== null && $this->cake_type_id !== $this->aCakeType->getCakeTypeId()) {\n $this->aCakeType = null;\n }\n }", "public function ensureConsistency()\n {\n\n if ($this->aActionPropertyTypeRelatedByid !== null && $this->id !== $this->aActionPropertyTypeRelatedByid->getactionTypeId()) {\n $this->aActionPropertyTypeRelatedByid = null;\n }\n }", "private function ensureDBConsistency(): void\n\t{\n\t\t$checkRelation = function (\n\t\t\tstring $modelName,\n\t\t\tstring $table,\n\t\t\tstring $column,\n\t\t\tstring $foreignModelName,\n\t\t\tstring $foreignTable,\n\t\t\tstring $fixMethod = '',\n\t\t): bool {\n\t\t\t$missing = DB::table($table)\n\t\t\t\t->whereNotIn($column, function (Builder $q) use ($foreignTable) {\n\t\t\t\t\t$q->from($foreignTable)->select('id');\n\t\t\t\t})\n\t\t\t\t->select('id', $column)\n\t\t\t\t->get();\n\n\t\t\tforeach ($missing as $m) {\n\t\t\t\t$msg = 'Found ' . $modelName .\n\t\t\t\t\t' with ID ' . $m->id .\n\t\t\t\t\t' which refers to non-existing ' . $foreignModelName .\n\t\t\t\t\t' with ID ' . $m->{$column};\n\t\t\t\tif (empty($fixMethod)) {\n\t\t\t\t\t$this->printError($msg);\n\t\t\t\t} else {\n\t\t\t\t\t$this->printWarning($msg);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($missing->isEmpty()) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t$fixQuery = DB::table($table)->whereIn('id', $missing->pluck('id'));\n\n\t\t\tswitch ($fixMethod) {\n\t\t\t\tcase 'nullify':\n\t\t\t\t\t$this->printInfo('Nullifying the affected relations from ' . $modelName . 's to ' . $foreignModelName . 's');\n\t\t\t\t\t$fixQuery->update([$column => null]);\n\n\t\t\t\t\treturn true;\n\t\t\t\tcase 'zeroize':\n\t\t\t\t\t$this->printInfo('Zeroizing the affected relations from ' . $modelName . 's to ' . $foreignModelName . 's');\n\t\t\t\t\t$fixQuery->update([$column => 0]);\n\n\t\t\t\t\treturn true;\n\t\t\t\tcase 'delete':\n\t\t\t\t\t$this->printInfo('Deleting the affected ' . $modelName . 's');\n\t\t\t\t\t$fixQuery->delete();\n\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->printInfo('Error is not automatically fixable');\n\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\t// If the owner of an album is missing, assign it to the admin user\n\t\t$isConsistent = $checkRelation('album', 'albums', 'owner_id', 'user', 'users', 'zeroize');\n\t\t// Move orphaned albums to the top-level\n\t\t$isConsistent &= $checkRelation('album', 'albums', 'parent_id', 'parent album', 'albums', 'nullify');\n\t\t// If the cover of an album is missing, unset the cover\n\t\t$isConsistent &= $checkRelation('album', 'albums', 'cover_id', 'cover photo', 'photos', 'nullify');\n\t\t// Delete orphaned shares\n\t\t$isConsistent &= $checkRelation('share', 'user_album', 'user_id', 'user', 'users', 'delete');\n\t\t$isConsistent &= $checkRelation('share', 'user_album', 'album_id', 'album', 'albums', 'delete');\n\t\t// If the owner of a photo is missing, assign it to the admin user\n\t\t$isConsistent &= $checkRelation('photo', 'photos', 'owner_id', 'user', 'users', 'zeroize');\n\t\t// If the album of a photo is missing, assign it to root (unsorted) album\n\t\t$isConsistent &= $checkRelation('photo', 'photos', 'album_id', 'album', 'albums', 'nullify');\n\t\t// Delete orphaned WebAuthn credentials\n\t\t$isConsistent &= $checkRelation('web authentication credential', 'web_authn_credentials', 'user_id', 'user', 'users', 'delete');\n\t\t// There is no obvious fix for orphaned page content\n\t\t$isConsistent &= $checkRelation('page content', 'page_contents', 'page_id', 'page', 'pages');\n\n\t\t// As we might have moved orphaned albums to the top,\n\t\t// we need to fix the tree.\n\t\t// Even if we did not move any album, fixing the tree before\n\t\t// the migration does not harm as users might have fiddled with their\n\t\t// DB without taking care of\n\t\t// `_lft` and `_rgt`\n\t\tRefactorAlbumModel_AlbumModel::query()->fixTree();\n\n\t\tif (!$isConsistent) {\n\t\t\t$this->printError('Your database is inconsistent and not fit for migration. Please fix your DB manually first.');\n\t\t\tthrow new \\RuntimeException('Inconsistent DB');\n\t\t}\n\t}", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPerfil !== null && $this->perfil_id !== $this->aPerfil->getId()) {\n\t\t\t$this->aPerfil = null;\n\t\t}\n\t\tif ($this->aEndereco !== null && $this->endereco_id !== $this->aEndereco->getId()) {\n\t\t\t$this->aEndereco = null;\n\t\t}\n\t\tif ($this->aCargo !== null && $this->cargo_id !== $this->aCargo->getId()) {\n\t\t\t$this->aCargo = null;\n\t\t}\n\t\tif ($this->aDepartamento !== null && $this->departamento_id !== $this->aDepartamento->getId()) {\n\t\t\t$this->aDepartamento = null;\n\t\t}\n\t}", "public function ensureConsistency()\n {\n\n if ($this->aSucursal !== null && $this->idsucursal !== $this->aSucursal->getIdsucursal()) {\n $this->aSucursal = null;\n }\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aUf !== null && $this->uf_id !== $this->aUf->getId()) {\n\t\t\t$this->aUf = null;\n\t\t}\n\t}", "public function ensureConsistency()\n {\n\n if ($this->aFeature !== null && $this->feature_id !== $this->aFeature->getFeatureId()) {\n $this->aFeature = null;\n }\n if ($this->aCvterm !== null && $this->cvterm_id !== $this->aCvterm->getCvtermId()) {\n $this->aCvterm = null;\n }\n if ($this->aPub !== null && $this->pub_id !== $this->aPub->getPubId()) {\n $this->aPub = null;\n }\n }", "public function ensureConsistency()\n {\n\n if ($this->aOperations !== null && $this->op_id !== $this->aOperations->getOpId()) {\n $this->aOperations = null;\n }\n if ($this->aRCurrencies !== null && $this->operation_prime_currency_id !== $this->aRCurrencies->getRCurrencyId()) {\n $this->aRCurrencies = null;\n }\n if ($this->aRRewardTypes !== null && $this->operation_prime_r_reward_type_id !== $this->aRRewardTypes->getRRewardTypeId()) {\n $this->aRRewardTypes = null;\n }\n if ($this->aRRewardExpeditionModes !== null && $this->operation_prime_r_reward_expedition_mode_id !== $this->aRRewardExpeditionModes->getRRewardExpeditionModeId()) {\n $this->aRRewardExpeditionModes = null;\n }\n if ($this->aRRewardTransporters !== null && $this->operation_prime_r_reward_transporter_id !== $this->aRRewardTransporters->getRRewardTransporterId()) {\n $this->aRRewardTransporters = null;\n }\n }", "public function ensureConsistency()\n {\n if ($this->aPurchaseOrder !== null && $this->pothnbr !== $this->aPurchaseOrder->getPohdnbr()) {\n $this->aPurchaseOrder = null;\n }\n if ($this->aWarehouse !== null && $this->intbwhse !== $this->aWarehouse->getIntbwhse()) {\n $this->aWarehouse = null;\n }\n }", "public function ensureConsistency()\n\t{\n\n\t}", "public function ensureConsistency()\n\t{\n\n\t}", "public function ensureConsistency()\n\t{\n\n\t}", "public function ensureConsistency()\n\t{\n\n\t}", "public function ensureConsistency()\n {\n if ($this->aPublisher !== null && $this->publisher_id !== $this->aPublisher->getPublisherId()) {\n $this->aPublisher = null;\n }\n if ($this->aLanguage !== null && $this->language_id !== $this->aLanguage->getLanguageId()) {\n $this->aLanguage = null;\n }\n if ($this->aPlace !== null && $this->publish_place_id !== $this->aPlace->getPlaceId()) {\n $this->aPlace = null;\n }\n if ($this->aFrequency !== null && $this->frequency_id !== $this->aFrequency->getFrequencyId()) {\n $this->aFrequency = null;\n }\n if ($this->aUser !== null && $this->uid !== $this->aUser->getUserId()) {\n $this->aUser = null;\n }\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPerfil !== null && $this->co_perfil !== $this->aPerfil->getCoPerfil()) {\n\t\t\t$this->aPerfil = null;\n\t\t}\n\t}", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aCampaignTemplate !== null && $this->template_id !== $this->aCampaignTemplate->getId()) {\n\t\t\t$this->aCampaignTemplate = null;\n\t\t}\n\t\tif ($this->asfGuardUserProfile !== null && $this->created_by !== $this->asfGuardUserProfile->getId()) {\n\t\t\t$this->asfGuardUserProfile = null;\n\t\t}\n\t}", "public function ensureConsistency()\n {\n\n if ($this->aJenisPrasarana !== null && $this->jenis_prasarana_id !== $this->aJenisPrasarana->getJenisPrasaranaId()) {\n $this->aJenisPrasarana = null;\n }\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aTanah !== null && $this->id_tanah !== $this->aTanah->getIdTanah()) {\n $this->aTanah = null;\n }\n if ($this->aPtk !== null && $this->ptk_id !== $this->aPtk->getPtkId()) {\n $this->aPtk = null;\n }\n if ($this->aJenisHapusBuku !== null && $this->id_hapus_buku !== $this->aJenisHapusBuku->getIdHapusBuku()) {\n $this->aJenisHapusBuku = null;\n }\n if ($this->aStatusKepemilikanSarpras !== null && $this->kepemilikan_sarpras_id !== $this->aStatusKepemilikanSarpras->getKepemilikanSarprasId()) {\n $this->aStatusKepemilikanSarpras = null;\n }\n }", "public function ensureConsistency()\n {\n\n }", "public function ensureConsistency()\n {\n\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aUser !== null && $this->submittedbyuser !== $this->aUser->getUserid()) {\n\t\t\t$this->aUser = null;\n\t\t}\n\t}", "public function ensureConsistency()\n {\n\n if ($this->aSekolahLongitudinal !== null && $this->sekolah_id !== $this->aSekolahLongitudinal->getSekolahId()) {\n $this->aSekolahLongitudinal = null;\n }\n if ($this->aSekolahLongitudinal !== null && $this->semester_id !== $this->aSekolahLongitudinal->getSemesterId()) {\n $this->aSekolahLongitudinal = null;\n }\n if ($this->aRuang !== null && $this->id_ruang !== $this->aRuang->getIdRuang()) {\n $this->aRuang = null;\n }\n if ($this->aPembelajaranRelatedByBelKe01 !== null && $this->bel_ke_01 !== $this->aPembelajaranRelatedByBelKe01->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe01 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe02 !== null && $this->bel_ke_02 !== $this->aPembelajaranRelatedByBelKe02->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe02 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe03 !== null && $this->bel_ke_03 !== $this->aPembelajaranRelatedByBelKe03->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe03 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe04 !== null && $this->bel_ke_04 !== $this->aPembelajaranRelatedByBelKe04->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe04 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe05 !== null && $this->bel_ke_05 !== $this->aPembelajaranRelatedByBelKe05->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe05 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe06 !== null && $this->bel_ke_06 !== $this->aPembelajaranRelatedByBelKe06->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe06 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe07 !== null && $this->bel_ke_07 !== $this->aPembelajaranRelatedByBelKe07->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe07 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe08 !== null && $this->bel_ke_08 !== $this->aPembelajaranRelatedByBelKe08->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe08 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe09 !== null && $this->bel_ke_09 !== $this->aPembelajaranRelatedByBelKe09->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe09 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe10 !== null && $this->bel_ke_10 !== $this->aPembelajaranRelatedByBelKe10->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe10 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe11 !== null && $this->bel_ke_11 !== $this->aPembelajaranRelatedByBelKe11->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe11 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe12 !== null && $this->bel_ke_12 !== $this->aPembelajaranRelatedByBelKe12->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe12 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe13 !== null && $this->bel_ke_13 !== $this->aPembelajaranRelatedByBelKe13->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe13 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe14 !== null && $this->bel_ke_14 !== $this->aPembelajaranRelatedByBelKe14->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe14 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe15 !== null && $this->bel_ke_15 !== $this->aPembelajaranRelatedByBelKe15->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe15 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe16 !== null && $this->bel_ke_16 !== $this->aPembelajaranRelatedByBelKe16->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe16 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe17 !== null && $this->bel_ke_17 !== $this->aPembelajaranRelatedByBelKe17->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe17 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe18 !== null && $this->bel_ke_18 !== $this->aPembelajaranRelatedByBelKe18->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe18 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe19 !== null && $this->bel_ke_19 !== $this->aPembelajaranRelatedByBelKe19->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe19 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe20 !== null && $this->bel_ke_20 !== $this->aPembelajaranRelatedByBelKe20->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe20 = null;\n }\n }", "public function ensureConsistency()\n {\n\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aKategoriTk !== null && $this->kategori_tk_id !== $this->aKategoriTk->getKategoriTkId()) {\n $this->aKategoriTk = null;\n }\n if ($this->aKlasifikasiLembaga !== null && $this->klasifikasi_lembaga_id !== $this->aKlasifikasiLembaga->getKlasifikasiLembagaId()) {\n $this->aKlasifikasiLembaga = null;\n }\n if ($this->aSumberDanaSekolah !== null && $this->sumber_dana_sekolah_id !== $this->aSumberDanaSekolah->getSumberDanaSekolahId()) {\n $this->aSumberDanaSekolah = null;\n }\n if ($this->aFasilitasLayanan !== null && $this->fasilitas_layanan_id !== $this->aFasilitasLayanan->getFasilitasLayananId()) {\n $this->aFasilitasLayanan = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalPmtas !== null && $this->jadwal_pmtas !== $this->aJadwalPaudRelatedByJadwalPmtas->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalPmtas = null;\n }\n if ($this->aLembagaPengangkat !== null && $this->lembaga_pengangkat_id !== $this->aLembagaPengangkat->getLembagaPengangkatId()) {\n $this->aLembagaPengangkat = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalDdtk !== null && $this->jadwal_ddtk !== $this->aJadwalPaudRelatedByJadwalDdtk->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalDdtk = null;\n }\n if ($this->aJadwalPaudRelatedByFreqParenting !== null && $this->freq_parenting !== $this->aJadwalPaudRelatedByFreqParenting->getJadwalId()) {\n $this->aJadwalPaudRelatedByFreqParenting = null;\n }\n if ($this->aBentukLembaga !== null && $this->bentuk_lembaga_id !== $this->aBentukLembaga->getBentukLembagaId()) {\n $this->aBentukLembaga = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalKesehatan !== null && $this->jadwal_kesehatan !== $this->aJadwalPaudRelatedByJadwalKesehatan->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalKesehatan = null;\n }\n }", "protected function _checkForeignKeysReverseCascade() {}", "private final function ensureObjectInDb()\n {\n # WORKING_ON\n $class_reflection = new ReflectionClass(get_class($this));\n do {\n # use reflection to SKIP abstract classes\n if (!$class_reflection->isInstantiable())\n continue;\n\n if (!$this->getLoadedFromDb($class_reflection->getName())) {\n $this->insert($class_reflection->getName());\n break;\n }\n\n } while (($class_reflection = $class_reflection->getParentClass()) && # get the parent\n $class_reflection->getName() != __CLASS__); # check that we're not hitting the top\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aJ002tUsuario !== null && $this->co_usuario_elabora !== $this->aJ002tUsuario->getCoUsuario()) {\n\t\t\t$this->aJ002tUsuario = null;\n\t\t}\n\t\tif ($this->aJ016tForense !== null && $this->co_forense !== $this->aJ016tForense->getCoForense()) {\n\t\t\t$this->aJ016tForense = null;\n\t\t}\n\t\tif ($this->aJ018tInformeForense !== null && $this->co_informe_forense !== $this->aJ018tInformeForense->getCoInformeForense()) {\n\t\t\t$this->aJ018tInformeForense = null;\n\t\t}\n\t}", "public function checkIntegrity();", "public function ensureConsistency()\n {\n if ($this->aUserAge !== null && $this->age !== $this->aUserAge->getAge()) {\n $this->aUserAge = null;\n }\n }", "function onCheckSchema()\n {\n // Not sure we need a new data class for ContextIO. We should be able\n // to do everything with the existing Foreign_link and Foreign_user\n // table. Maybe.\n\n return true;\n }", "protected function _checkForeignKeysRestrict() {}", "public function testFkChecksOnOff()\n {\n $this->assertTrue($this->connection->areForeignKeyChecksOn());\n $this->connection->turnOffForeignKeyChecks();\n $this->assertFalse($this->connection->areForeignKeyChecksOn());\n $this->connection->turnOnForeignKeyChecks();\n $this->assertTrue($this->connection->areForeignKeyChecksOn());\n }", "public function checkIsSaved()\n {\n if (isset($this->owner->primaryKey) == false) {\n throw new ModelIsUnsaved();\n }\n }", "protected function _checkForeignKeysReverseRestrict() {}", "public function validate()\n {\n $schema = $this->getTable()->getSchema();\n\n // validate existing reference to target table\n if (!$schema->hasTable($this->getReference()))\n {\n throw new SyncerException(\"Connection reference from table {$this->tableName} to {$this->reference} not found\");\n }\n\n // validate existing connecting table\n if (!$schema->hasTable($this->getConnecting()))\n {\n throw new SyncerException(\"Connecting table {$this->getConnecting()} defined in {$this->tableName} table not found\");\n }\n }", "public function check(IRepositoryContainer $model)\n\t{\n\t\tparent::check($model);\n\n\t\t$this->checkIntegrity($model, MetaData::OneToMany, true);\n\t}", "public function test_4_3()\n {\n $out = SetupTestData::hasmany_save_4();\n \n // get all items to avoid losing them when the clean() is executed over the collection\n $addresses = $out['person']->get_addresses()->all();\n \n $out['person']->clean_addresses(); // shouldn't turn on the is_dirty because there are no objects\n \n $out['person']->save(); // shouldn't update because is not dirty\n \n \n // tests\n $this->assert($out['person']->size_addresses() === 0, 'Has many has 0 objects');\n\n $this->assert(count($addresses) === 0, 'Has many has 0 objects');\n }", "public function beforeDelete(){\r\n //Ok he has the right to do that - remove all the ACL-objects associated with this object\r\n $class = Strategy::getClass('Aro');\r\n $aro = $class::model()->find('model = :model AND foreign_key = :key', array(':model' => get_class( $this), ':key' => $this->getPrimaryKey()));\r\n \r\n if(!$aro)\r\n throw new RuntimeException('No associated Aro-Collection!');\r\n \r\n $transaction = Yii::app()->db->beginTransaction();\r\n try{\r\n $suc =$aro->delete()&& parent::beforeDelete();\r\n $transaction->commit();\r\n return $suc;\r\n }\r\n catch(Exception $e){\r\n $transaction->rollback();\r\n throw $e;\r\n }\r\n }", "public function refresh()\r\n {\r\n /* @var $record BaseActiveRecord */\r\n $record = static::findOne($this->getPrimaryKey(false));\r\n if ($record === null) {\r\n return false;\r\n }\r\n foreach ($this->attributes() as $name) {\r\n $this->_attributes[$name] = $record->hasAttribute($name) ? $record->getAttribute($name) : null;\r\n }\r\n $this->setOldAttributes($record->getOldAttributes());\r\n\r\n\r\n foreach ($record->getRelatedRecords() as $relationName => $records) {\r\n $this->populateRelation($relationName, $records);\r\n }\r\n $this->afterRefresh();\r\n\r\n return true;\r\n }", "public function model_after_check(Jam_Model $model, Jam_Event_Data $data)\n\t{\n\t\tif ($model->loaded() AND $model->is_frozen() AND ! $model->is_just_frozen())\n\t\t{\n\t\t\tforeach ($this->_associations as $name)\n\t\t\t{\n\t\t\t\tif ($model->meta()->association($name) instanceof Jam_Association_Collection\n\t\t\t\t AND count($model->{$name}) !== count($model->{$name}->original()))\n\t\t\t\t{\n\t\t\t\t\t$model->errors()->add($name, 'frozen');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tforeach ($this->_fields as $name)\n\t\t\t{\n\t\t\t\tif ($model->changed($name))\n\t\t\t\t{\n\t\t\t\t\t$model->errors()->add($name, 'frozen');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private function warnForThroughRelations()\n {\n $this->warn(\"| Make sure that the \\\"{$this->parent}\\\" model has the foreign key \\\"\".Str::lower($this->farParent).\"_id\\\" and the \\\"{$this->throughChild}\\\" model has the foreign key \\\"\".Str::lower($this->parent).\"_id\\\"\\n\");\n }", "public function validate()\n {\n /* @var $model \\yii\\db\\ActiveRecord */\n $valid = true;\n\n foreach ($this->_relationsToSave as $model) {\n $model->{$this->relPrimaryKey} = ($this->owner->primaryKey) ? $this->owner->primaryKey : null;\n\n $attributes = array_diff($model->activeAttributes(), [$this->relPrimaryKey]);\n\n if (!$model->validate($attributes)) {\n $this->owner->addErrors($model->getErrors());\n\n $valid = false;\n }\n }\n\n return $valid;\n }", "public function onAfterDeleteCleaning() {\n\t\t$classHierarchyProbe = new DataObjectOnDeleteDecorator_ClassHierarchyProbe($this->owner);\n\t\t$relatedClasses = $classHierarchyProbe->getRelatedClasses();\n\t\t\n\t\t$this->cleanRelatedRelations($relatedClasses);\n\t\t$this->cleanRelatedTables($relatedClasses);\n\t}", "public function initialize()\n {\n \t$this->belongsTo('id_verificacion', 'CobVerificacion', 'id_verificacion', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_actadocumentacion', 'CobActadocumentacionDatos', 'id_actadocumentacion', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_usuario', 'IbcUsuario', 'id_usuario', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('estado', 'IbcReferencia', 'id_referencia', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->hasMany('id_actadocumentacion', 'CobActadocumentacionPersona', 'id_actadocumentacion', array(\n \t\t\t'foreignKey' => array(\n \t\t\t\t\t'message' => 'El acta no puede ser eliminada porque existen beneficiarios asociados a ésta'\n \t\t\t)\n \t));\n }", "protected function constrain()\n {\n $this->table->where($this->foreign_key(), '=', $this->base->get_key());\n }", "static function reset_foreignKeyChecks() {\r\n global $db;\r\n \r\n $query = \"SET FOREIGN_KEY_CHECKS=1\";\r\n\r\n $statement = $db->prepare($query);\r\n \r\n if ($statement == FALSE) {\r\n display_db_error($db->error);\r\n }\r\n \r\n $success = $statement->execute();\r\n\r\n if ($success) {\r\n $statement->close();\r\n } else {\r\n display_db_error($db->error);\r\n }\r\n }", "function checkIntegrityDb()\r\n\t{\r\n\t\treturn true;\r\n\t}", "public function onSetUp(): void\n {\n $this->getConnection()->executeStatement('SET foreign_key_checks = 0');\n\n parent::onSetUp();\n\n $this->getConnection()->executeStatement('SET foreign_key_checks = 1');\n }", "public function test_1_3()\n {\n $out = SetupTestData::hasmany_save_1();\n\n // get all items to avoid losing them when the clean() is executed over the collection\n $addresses = $out['person']->get_addresses()->all();\n\n $out['person']->clean_addresses();\n\n $out['person']->save();\n\n\n // tests\n $this->assert($out['person']->size_addresses() === 0, 'Has many has 0 objects');\n\n foreach ($addresses as $i => $address)\n {\n $this->assert($address->person_addresses_back === NULL, \"Backlink of item $i object is NULL\");\n }\n }", "function testFieldsDontRerequestChanges() {\r\n\t\t$db = DB::getConn();\r\n\t\tDB::quiet();\r\n\t\t\r\n\r\n\t\t// Table will have been initially created by the $extraDataObjects setting\r\n\t\t\r\n\t\t\r\n\t\t// Verify that it doesn't need to be recreated\r\n\t\t$db->beginSchemaUpdate();\r\n\t\t$obj = new DataObjectSchemaGenerationTest_DO();\r\n\t\t$obj->requireTable();\r\n\t\t$needsUpdating = $db->doesSchemaNeedUpdating();\r\n\t\t$db->cancelSchemaUpdate();\r\n\t\t\r\n\t\t$this->assertFalse($needsUpdating);\r\n\t}", "protected function doInitialize()\n {\n // Has NEW objects added through add(). Remember them.\n $newObjects = [];\n if ($this->isDirty) {\n $newObjects = $this->collection->toArray();\n }\n $this->collection->clear();\n $this->manager->getUnitOfWork()->loadCollection($this);\n $this->takeSnapshot();\n // Reattach NEW objects added through add(), if any.\n if ($newObjects) {\n foreach ($newObjects as $obj) {\n $this->collection->add($obj);\n }\n $this->isDirty = true;\n }\n }", "public function validate()\n {\n // query for validation information\n // set the validation flag\n // close database\n }", "public function test_2_3()\n {\n $out = SetupTestData::hasmany_save_2();\n\n // get all items to avoid losing them when the clean() is executed over the collection\n $addresses = $out['person']->get_addresses()->all();\n\n $out['person']->clean_addresses();\n\n $out['person']->save();\n\n\n // tests\n $this->assert($out['person']->size_addresses() === 0, 'Has many has 0 objects');\n\n foreach ($addresses as $i => $address)\n {\n $this->assert($address->person_addresses_back === NULL, \"Backlink of item $i object is NULL\");\n }\n }", "public function flush()\r\n {\r\n foreach ($this->_collections as $key => $coll) {\r\n $coll->takeSnapshot();\r\n }\r\n foreach ($this->_tables as $table) {\r\n $table->setAttribute(Doctrine::ATTR_LOAD_REFERENCES, true);\r\n }\r\n $this->_initializedRelations = null;\r\n $this->_collections = null;\r\n $this->_tables = null;\r\n }", "private function checkObjectsErrorsOrConfirmations()\n\t{\n\t\tif (!empty(self::$obj_ts_common->errors))\n\t\t\t$this->errors = array_merge($this->errors, self::$obj_ts_common->errors);\n\n\t\tif (!empty(self::$obj_ts_common->confirmations))\n\t\t\t$this->confirmations = array_merge($this->confirmations, self::$obj_ts_common->confirmations);\n\t}", "protected function validate() {\n $this->setObjects([new Guild()]);\n }", "public function flush()\n {\n $this->entityManager->flush();\n /*\n try {\n }\n catch (UniqueConstraintViolationException $e) {\n //Skipping duplicates\n }\n */\n }", "protected function doUpdateTests()\n {\n $this->objectRepository->setClassName(TestPolicy::class);\n $policy = $this->objectRepository->find(19071974);\n $policy->policyNo = 'TESTPOLICY UPDATED';\n $policy->contact->lastName = 'ChildUpdate';\n $recordsAffected = $this->objectRepository->saveEntity($policy);\n $recordsAffected = 2;\n if ($this->getCacheSuffix()) {\n $this->assertGreaterThanOrEqual(2, $recordsAffected);\n } else {\n $this->assertEquals(2, $recordsAffected);\n }\n\n //Verify update\n $policy2 = $this->objectRepository->find(19071974);\n $this->assertEquals('TESTPOLICY UPDATED', $policy2->policyNo);\n $this->assertEquals('ChildUpdate', $policy2->contact->lastName);\n\n //If we tell it not to update children, ensure foreign keys are ignored\n $policy = $this->objectRepository->find(19071974);\n $policy->vehicle->policy = null;\n $policy->contact = null;\n $this->objectRepository->saveEntity($policy, false);\n $this->objectRepository->clearCache();\n $refreshedPolicy = $this->objectRepository->find(19071974);\n $this->assertEquals(123, $refreshedPolicy->contact->id);\n $this->assertEquals(1, $refreshedPolicy->vehicle->id);\n $this->assertEquals(19071974, $refreshedPolicy->vehicle->policy->id);\n\n //And if we tell it to update children, they are not ignored\n //(known issue: if child owns relationship, the relationship won't be deleted unless you save the child\n //directly - hence we don't check for a null vehicle or vehicle->policy here, as it will not have removed the\n //relationship)\n $this->objectRepository->saveEntity($policy, true);\n $this->objectRepository->clearCache();\n $refreshedPolicy = $this->objectRepository->find(19071974);\n $this->assertNull($refreshedPolicy->contact);\n\n //Put the contact back, ready for the next test (quicker than running $this->setUp() again)\n $refreshedPolicy->contact = $this->objectRepository->getObjectReference(TestContact::class, ['id' => 123]);\n $this->objectRepository->saveEntity($refreshedPolicy);\n }", "protected function nullifyInvalidForeignKeys()\n {\n $this->output(t('Fixing records with invalid foreign keys...'));\n // Fix orphans of Packages\n $this->nullifyInvalidForeignKey('AttributeSets', 'pkgID', 'Packages', 'pkgID');\n // Fix orphans of Files\n $this->nullifyInvalidForeignKey('atFile', 'fID', 'Files', 'fID');\n // Fix orphans of Users\n $this->nullifyInvalidForeignKey('Files', 'uID', 'Users', 'uID');\n // Fix orphans of AttributeKeyCategories\n $this->nullifyInvalidForeignKey('AttributeSets', 'akCategoryID', 'AttributeKeyCategories', 'akCategoryID');\n // Fix orphans of FileStorageLocations\n $this->nullifyInvalidForeignKey('Files', 'fslID', 'FileStorageLocations', 'fslID');\n }", "private function initRestorableRelations() {\n\n\t\t$configs = $this->cascadable();\n\n\t\t$this->runCascadeRestore = $configs['restore']['enable'] ?? true;\n\n\t\t$this->relationships = Arr::wrap($configs['restore']['relations'] ?? $configs);\n\t}", "public function testGetAssociationNotDirtyBelongsTo(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $authors */\n $authors = $table->belongsTo('Authors')->getTarget();\n $authors->addBehavior('Translate', ['fields' => ['name']]);\n\n $authors->setLocale('eng');\n\n $entity = $table->get(1);\n $this->assertNotEmpty($entity);\n $entity = $table->loadInto($entity, ['Authors']);\n $this->assertFalse($entity->isDirty());\n $this->assertNotEmpty($entity->author);\n $this->assertFalse($entity->author->isDirty());\n\n $entity = $table->get(1, ...['contain' => ['Authors']]);\n $this->assertNotEmpty($entity);\n $this->assertFalse($entity->isDirty());\n $this->assertNotEmpty($entity->author);\n $this->assertFalse($entity->author->isDirty());\n }", "public function afterSave(){\r\n parent::afterSave();\r\n if($this->isNewRecord){\r\n $class = Strategy::getClass('Aro');\r\n $aro = new $class();\r\n $aro->model = get_class($this);\r\n $aro->foreign_key = $this->getPrimaryKey();\r\n if(!$aro->save())\r\n throw new RuntimeError(\"Unable to save Aro-Collection\");\r\n }\r\n }", "protected function will_change_to_db(){\n\t\t$pdo = DB::connection( $this->get_database_name() )->getPdo();\n\t\t$pdo->beginTransaction();\n\t\t//DB::beginTransaction();\n\t\t$status = false;\n\t\ttry {\n\t\t\t//! for saving\n\t\t\tforeach( $this->get_obj_save_db() as $obj){\n\t\t\t\tif($obj == null) {\n\t\t\t\t\tthrow new Exception(\"There are non object\");\n\t\t\t\t}\n\t\t\t\t$obj->save();\n\t\t\t}\n\t\t\tforeach( $this->get_obj_dele_db() as $obj){\n\t\t\t\tif($obj == null) {\n\t\t\t\t\tthrow new Exception(\"There are non object\");\n\t\t\t\t}\n\t\t\t\t$obj->delete();\n\t\t\t}\t\t \n\t\t //DB::commit();\n\t\t\t$pdo->commit();\n\t\t\t$status = true;\n\t\t // all good\n\t\t}\n\t\tcatch (\\Exception $e) {\n\t\t\t$this->set_pdo_exception($e);\n\t\t\t$this->set_error_message($e->getMessage()) ;\n\t\t //DB::rollback();\n\t\t\t$pdo->rollback();\n\t\t}\n\t\treturn $status;\n\t}", "public function beforeValidate()\n {\n // Find relations settings once.\n if (!isset($this->_settings)) {\n $this->_settings = $this->owner->relations();\n }\n\n foreach ($this->relations as $rel) {\n // Call owners tabular method.\n $method = $rel['name'] . 'Tabular';\n $tabular = $this->owner->$method();\n\n $this->owner->$rel['name'] = $tabular;\n\n // Check for validation errors.\n $valid = true;\n if (is_array($tabular)) {\n foreach ($tabular as $m) {\n $valid = $m->validate() && $valid;\n }\n } elseif(is_object($tabular)) {\n $valid = $tabular->validate() && $valid;\n }\n if (!$valid) {\n $this->owner->addError($rel['name'], 'Неверно задано поле ' . $this->owner->getAttributeLabel($rel['name']));\n }\n }\n }", "public function delete()\n {\n if (is_null($this->getKeyName())) {\n throw new Exception('No primary key defined on model.');\n }\n\n // If the model doesn't exist, there is nothing to delete so we'll just return\n // immediately and not do anything else. Otherwise, we will continue with a\n // deletion process on the model, firing the proper events, and so forth.\n if (!$this->exists) {\n return null;\n }\n\n if ($this->fireModelEvent('deleting') === false) {\n return false;\n }\n\n // Here, we'll touch the owning models, verifying these timestamps get updated\n // for the models. This will allow any caching to get broken on the parents\n // by the timestamp. Then we will go ahead and delete the model instance.\n $this->touchOwners();\n\n $this->performDeleteOnModel();\n\n // We'd like to remove all the versions associated with this model, but we need\n // to make sure the model wasn't soft deleted first.\n if (!$this->exists) {\n $this->versions()->delete();\n }\n\n // Once the model has been deleted, we will fire off the deleted event so that\n // the developers may hook into post-delete operations. We will then return\n // a boolean true as the delete is presumably successful on the database.\n $this->fireModelEvent('deleted', false);\n\n return true;\n }", "private function checkExistingReferences(object $needle, $constraints): void\n {\n $needle2 = $needle->getClassName();\n $entity_id = KeyFormatter::convertParentClassToForeignKey($needle2);\n $namespaces = $this->getNamespaces();\n foreach ($namespaces as $registered_class) {\n if (\n !str_contains($registered_class, \"Entity\") ||\n ($reflector = new ReflectionClass($registered_class))->isAbstract()\n ) {\n continue;\n }\n $checked_object = new $registered_class;\n if ($checked_object->hasKey($entity_id)) {\n $current_constraints = $constraints;\n try {\n $this->updateProtection(\n $checked_object,\n [$entity_id => $current_constraints['id']],\n KeyFormatter::getTableNameByObject($checked_object),\n KeyFormatter::getTableColumnsByObject($checked_object),\n self::EXISTS\n );\n } catch (RemovingResourceThatHasReferenceException $e) {\n throw new RemovingResourceThatHasReferenceException(\"Tried to delete: $needle2, existed constraint: \" . $checked_object->getClassName());\n }\n } else if ($reflector->hasProperty(KeyFormatter::processPascalToSnake($needle2) . 's')) {\n $current_constraints = $constraints;\n $current_constraints[KeyFormatter::convertParentClassToForeignKey($checked_object->getClassName()) . \"_NOTNULL\"] = null;\n $current_constraints[KeyFormatter::convertParentClassToForeignKey($checked_object->getClassName()) . \"_>=\"] = 1;\n try {\n $this->updateProtection($needle, $current_constraints, KeyFormatter::getTableNameByObject($checked_object), KeyFormatter::getTableColumnsByObject($checked_object), self::EXISTS);\n } catch (RemovingResourceThatHasReferenceException $e) {\n throw new RemovingResourceThatHasReferenceException(\"Tried to delete: $needle2, existed constraint: \" . $checked_object->getClassName());\n }\n }\n }\n }", "public function test_3_3()\n {\n $out = SetupTestData::hasmany_save_3();\n\n // get all items to avoid losing them when the clean() is executed over the collection\n $addresses = $out['person']->get_addresses()->all();\n\n $out['person']->clean_addresses();\n\n $out['person']->save();\n\n\n // tests\n $this->assert($out['person']->size_addresses() === 0, 'Has many has 0 objects');\n\n foreach ($addresses as $i => $address)\n {\n $this->assert($address->person_addresses_back === NULL, \"Backlink of item $i object is NULL\");\n }\n }", "protected function validate()\r\n\t{\r\n\t\tif (!$this->isFetched())\r\n\t\t{\r\n\t\t\treturn;\r\n }\r\n \r\n\t\tif ($this->validationInfo)\r\n\t\t{\r\n\t\t\t$this->validationInfo->validate($this->normalizedValue);\r\n\t\t}\r\n\t\t$this->isValid = true;\r\n\t}", "protected function setUpCheck()\n {\n $this->getOldTable()->createColumn('foo', Type::INTEGER);\n $this->getOldTable()->createColumn('bar', Type::INTEGER);\n $this->getOldTable()->createCheck('foo > 0', 'ck_foo');\n\n $this->createOldTable();\n }", "public function testIsValidSuccessWithoutHasDataChanges()\n {\n $this->_object->expects($this->once())->method('hasDataChanges')->will($this->returnValue(false));\n $validator = new \\Magento\\Framework\\Validator\\Entity\\Properties();\n $validator->setReadOnlyProperties(['attr1']);\n $this->assertTrue($validator->isValid($this->_object));\n }", "public function resetDirty()\n {\n $this->dirty = false;\n $this->dirtyOne = false;\n $this->dirtyMany = false;\n }", "public function Validate()\n\t{\n\t\t//\n\t\t// Traverse object.\n\t\t//\n\t\tforeach( $this as $condition => $statements )\n\t\t\t$this->_ValidateCondition( $condition, $statements, 0 );\n\t\n\t}", "public function afterSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE\n ) {\n // If set delete option.\n if (array_key_exists('delete', $rel) && $rel['delete'] === true) {\n // Find all related models with null ID link.\n $deleteModels = call_user_func($this->_settings[$rel['name']][1] . '::model')->findAllByAttributes(array($this->_settings[$rel['name']][2] => null));\n foreach ($deleteModels as $m) {\n $m->delete();\n }\n }\n }\n }\n }", "public function clear()\n {\n self::foreignChecks(false);\n $this->model->truncate();\n self::foreignChecks(true);\n }", "public function verifyNow(): void\n {\n if (!$this->validate()) {\n throw new ValidationException($this);\n }\n }", "protected function performDeleteOnModel()\n {\n $this->performCascadeDelete();\n parent::performDeleteOnModel();\n }", "public function clean()\n {\n\n $this->model = null;\n $this->value = null;\n $this->attribute = null;\n $this->data = [];\n\n $this->fkTable = null;\n\n $this->fkQuery = null;\n $this->fkAndQuery = null;\n $this->fkOrQuery = null;\n\n }", "protected function performDeleteOnModel()\n {\n $this->getApi()->{'delete'.ucfirst($this->getEntity())}(\n $this->{$this->primaryKey},\n array_merge(...array_values($this->getGlobalScopes()))\n );\n\n $this->exists = false;\n }", "public function ensure();", "private function _validateModifiable()\n {\n if(!($this->_getDataSource() instanceof wCrudAdapter))\n {\n throw new Exception('Object is read-only.');\n }\n }", "public function setForeignKeyChecks($state);", "public function testflush()\n {\n self::assertTrue($this->object->flush());\n }", "function update(){\n\n // Check the required fields to see if each required field exists.\n forEach($requiredFields as $field){\n if(!$this->bean->contains($field)){\n throw new Exception(\"Required field $field does not exists.\");\n }\n }\n\n // Check to see if there are any fields that are not specified as a possible field.\n forEach($this->bean as $key => $value){\n if(!$possibleFields->contains($key)){\n throw new Exception(\"Invalid field $key passed to model.\");\n }\n }\n \n // Validate bean. \n if(!validate($this->bean)){\n throw new Exception(\"Bean is not valid. For a more detailed message throw a custom exception in validation function.\");\n }\n }", "public function beforeSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::MANY_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY\n ) {\n foreach ($this->owner->$rel['name'] as $m) {\n $m->save();\n }\n } elseif ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE) {\n $this->owner->{$rel['name']}->save();\n } elseif ($this->_settings[$rel['name']][0] === CActiveRecord::BELONGS_TO) {\n if ($this->owner->$rel['name'] === null) {\n // Set link ID attribute of owner model as null.\n $this->owner->setAttribute($this->_settings[$rel['name']][2], null);\n } else {\n // Save related model.\n $this->owner->{$rel['name']}->save();\n // Set link ID attribute of owner model as new relation ID.\n $this->owner->setAttribute($this->_settings[$rel['name']][2], $this->owner->{$rel['name']}->id);\n }\n }\n }\n }", "protected function assertForeignKeyAlteration()\n {\n $tableDiff = $this->getComparator()->compare($this->getOldForeignKeyTable(), $this->getNewForeignKeyTable());\n $this->getSchemaManager()->alterTable($tableDiff);\n\n $this->assertEquals(\n $this->getNewForeignKeyTable(),\n $this->getSchemaManager()->getTable($this->getNewForeignKeyTable()->getName())\n );\n }", "public function ApplyChanges()\n {\n parent::ApplyChanges();\n\n // Update data\n $this->Update();\n }", "private function nuke()\n {\n \\lib\\Model\\ModelCache::clear($this);\n $this->__new=true;\n $this->__fields=array();\n $this->__isDirty=false;\n $this->__dirtyFields=array();\n }", "protected function _dirty()\n {\n $this->_results = null;\n $this->_resultsCount = null;\n parent::_dirty();\n }", "public function testGetAssociationNotDirtyHasOne(): void\n {\n $table = $this->getTableLocator()->get('Authors');\n $table->hasOne('Articles');\n $table->Articles->addBehavior('Translate', ['fields' => ['title']]);\n\n $entity = $table->get(1);\n $this->assertNotEmpty($entity);\n $entity = $table->loadInto($entity, ['Articles']);\n $this->assertFalse($entity->isDirty());\n $this->assertNotEmpty($entity->article);\n $this->assertFalse($entity->article->isDirty());\n\n $entity = $table->get(1, ...['contain' => 'Articles']);\n $this->assertNotEmpty($entity);\n $this->assertFalse($entity->isDirty());\n $this->assertNotEmpty($entity->article);\n $this->assertFalse($entity->article->isDirty());\n }", "public function postFlush(): void\n {\n try {\n foreach ($this->createdObjects as $object) {\n $this->publishUpdate($object, $this->createdObjects[$object], 'create');\n }\n\n foreach ($this->updatedObjects as $object) {\n $this->publishUpdate($object, $this->updatedObjects[$object], 'update');\n }\n\n foreach ($this->deletedObjects as $object) {\n $this->publishUpdate($object, $this->deletedObjects[$object], 'delete');\n }\n } finally {\n $this->reset();\n }\n }", "protected function persistObjects() {}", "public function clean()\n\t{\n\t\tforeach ($this->dirtyFields AS $field)\n\t\t\t$this->cleanField($field);\n\t}", "public function delete()\n\t{\n\t\tif ( !is_array( $this->_id ) )\n\t\t\tthrow new \\RuntimeException( 'item does not exist (anymore)' );\n\n\n\t\t/*\n\t\t * wrap deletion of item and its tight relations in a transaction\n\t\t */\n\n\t\t$item = $this;\n\t\t$set = static::set();\n\t\t$relations = static::$relations;\n\t\t$class = get_called_class();\n\n\t\tif ( !$this->_source->transaction()->wrap( function( connection $connection ) use ( $item, $set, $relations, $class )\n\t\t{\n\t\t\t// cache information on item to delete\n\t\t\t$idValues = array_values( $item->id() );\n\t\t\t$record = count( $relations ) ? $item->load() : array();\n\n\n\t\t\t/*\n\t\t\t * step 1) actually delete current item\n\t\t\t */\n\n\t\t\t$qSet = $connection->qualifyDatasetName( $set );\n\t\t\tif ( $connection->test( sprintf( 'DELETE FROM %s WHERE %s', $qSet, $item->filter() ), $idValues ) === false )\n\t\t\t\tthrow new datasource_exception( $connection, 'failed to delete requested model instance' );\n\n\n\t\t\t/*\n\t\t\t * step 2) update all related items\n\t\t\t */\n\n\t\t\t// on deleting item relations have to be updated\n\t\t\t// - always null references on current item to be deleted\n\t\t\tforeach ( $relations as $relationName => $relationSpec ) {\n\t\t\t\t// detect if relation is \"tight\"\n\t\t\t\t$isTightlyBound = in_array( 'tight', (array) @$relationSpec['options'] ) ||\n\t\t\t\t @$relationSpec['options']['tight'];\n\n\t\t\t\t// get first reference in relation\n\t\t\t\t/** @var model_relation $relation */\n\t\t\t\t$relation = call_user_func( array( $class, \"relation\" ), $relationName );\n\t\t\t\t$firstNode = $relation->nodeAtIndex( 0 );\n\t\t\t\t$secondNode = $relation->nodeAtIndex( 1 );\n\t\t\t\t$secondNodeSet = $secondNode->getName( true );\n\n\t\t\t\t// prepare collection of information on second node\n\t\t\t\t$onSecond = array(\n\t\t\t\t\t'null' => array(),\n\t\t\t\t 'filter' => array(\n\t\t\t\t\t 'properties' => array(),\n\t\t\t\t 'values' => array(),\n\t\t\t\t )\n\t\t\t\t);\n\n\t\t\t\t// extract reusable code to prepare filter for selecting record\n\t\t\t\t// of second node actually related to deleted item\n\t\t\t\t$getFilter = function() use ( &$onSecond, $connection, $firstNode, $secondNode, $record ) {\n\t\t\t\t\t// retrieve _qualified and quoted_ names of predecessor's properties\n\t\t\t\t\t$onSecond['filter']['properties'] = $secondNode->getPredecessorNames( $connection );\n\t\t\t\t\tforeach ( $firstNode->getSuccessorNames() as $property )\n\t\t\t\t\t\t$onSecond['filter']['values'][] = @$record[$property];\n\t\t\t\t};\n\n\t\t\t\t// inspect type of relationship between first and second node of\n\t\t\t\t// current relation\n\t\t\t\tif ( $secondNode->canBindOnPredecessor() ) {\n\t\t\t\t\t// second node in relation is referencing first one\n\t\t\t\t\t// -> there are items of second node's model referring to\n\t\t\t\t\t// item removed above\n\n\t\t\t\t\t// -> find records of all those items ...\n\t\t\t\t\t$getFilter();\n\n\t\t\t\t\t// ... at least for nulling their references on deleted item\n\t\t\t\t\t$onSecond['null'] = $onSecond['filter']['properties'];\n\t\t\t\t} else {\n\t\t\t\t\t// first node in relation is referencing second one\n\t\t\t\t\t// -> deleted item was referencing item of second node's model\n\t\t\t\t\t// -> there is basically no need to update any foreign\n\t\t\t\t\t// references on deleted item\n\n\t\t\t\t\tif ( $isTightlyBound )\n\t\t\t\t\t\t// relation is marked as \"tight\"\n\t\t\t\t\t\t// -> need to delete item referenced by deleted item\n\t\t\t\t\t\t$getFilter();\n\t\t\t\t}\n\n\n\t\t\t\t// convert filtering properties of second node into set of assignments\n\t\t\t\t$filter = array_map( function( $name ) { return \"$name=?\"; }, $onSecond['filter']['properties'] );\n\n\t\t\t\tif ( $isTightlyBound ) {\n\t\t\t\t\t// in tight relation immediately related elements are\n\t\t\t\t\t// deleted as well\n\n\t\t\t\t\t$secondModel = $secondNode->getModel();\n\n\t\t\t\t\tif ( $secondModel->isVirtual() ) {\n\t\t\t\t\t\t// second model is virtual, only\n\t\t\t\t\t\t// -> it's okay to simply delete matching records in datasource\n\t\t\t\t\t\t$qSet = $connection->qualifyDatasetName( $secondNodeSet );\n\t\t\t\t\t\t$term = implode( ' AND ', $filter );\n\n\t\t\t\t\t\tif ( !$connection->test( \"DELETE FROM $qSet WHERE $term\", $onSecond['filter']['values'] ) )\n\t\t\t\t\t\t\tthrow new datasource_exception( $connection, 'failed to delete instances of tightly related items in relation ' . $relationName );\n\n\t\t\t\t\t\t// TODO: add support for tightly bound relation in opposite reference of this virtual node\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// query data source for IDs of all tightly related items\n\t\t\t\t\t\t$query = $connection->createQuery( $secondNodeSet );\n\n\t\t\t\t\t\t// - select related items using properties involved in relation\n\t\t\t\t\t\tforeach ( $onSecond['filter']['properties'] as $index => $name )\n\t\t\t\t\t\t\t$query->addFilter( \"$name=?\", true, $onSecond['filter']['values'][$index] );\n\n\t\t\t\t\t\t// - fetch all properties used to identify items\n\t\t\t\t\t\t$ids = $secondModel->getIdProperties();\n\t\t\t\t\t\tforeach ( $ids as $index => $name )\n\t\t\t\t\t\t\t$query->addProperty( $connection->quoteName( $name ), \"i$index\" );\n\n\t\t\t\t\t\t// iterate over all matches for deleting every one\n\t\t\t\t\t\t$matches = $query->execute();\n\t\t\t\t\t\t$iCount = count( $ids );\n\n\t\t\t\t\t\twhile ( $match = $matches->row() ) {\n\t\t\t\t\t\t\t// extract properly sorted ID from matching record\n\t\t\t\t\t\t\t$id = array();\n\t\t\t\t\t\t\tfor ( $i = 0; $i < $iCount; $i++ )\n\t\t\t\t\t\t\t\t$id[$ids[$i]] = $match[\"i$i\"];\n\n\t\t\t\t\t\t\t// select item of model and delete it\n\t\t\t\t\t\t\t$secondModel\n\t\t\t\t\t\t\t\t->selectInstance( $connection, $id )\n\t\t\t\t\t\t\t\t->delete();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if ( count( $onSecond['null'] ) ) {\n\t\t\t\t\t// need to null foreign references on deleted item\n\t\t\t\t\t$values = array_merge(\n\t\t\t\t\t\t\t\t\tarray_pad( array(), count( $onSecond['filter']['values'] ), null ),\n\t\t\t\t\t\t\t\t\t$onSecond['filter']['values']\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t$qSet = $connection->qualifyDatasetName( $secondNodeSet );\n\t\t\t\t\t$matching = implode( ' AND ', $filter );\n\t\t\t\t\t$setting = implode( ',', $filter );\n\n\t\t\t\t\tif ( !$connection->test( \"UPDATE $qSet SET $setting WHERE $matching\", $values ) )\n\t\t\t\t\t\tthrow new datasource_exception( $connection, 'failed to null references on deleted item in relation ' . $relationName );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t} ) )\n\t\t\tthrow new datasource_exception( $this->_source, 'failed to completely delete item and its tightly bound relations' );\n\n\n\t\t// drop that item now ...\n\t\t$this->_id = null;\n\t}" ]
[ "0.7562266", "0.72740656", "0.7126028", "0.7062221", "0.7057121", "0.69957054", "0.69670165", "0.68805015", "0.68766123", "0.68353325", "0.6815566", "0.67560554", "0.6720092", "0.66991097", "0.66991097", "0.66991097", "0.66991097", "0.6693115", "0.66765517", "0.6670675", "0.6670675", "0.6670675", "0.6670675", "0.6670675", "0.6576685", "0.65757406", "0.65203476", "0.65203476", "0.6514317", "0.6466848", "0.64296436", "0.6418322", "0.6169136", "0.61666363", "0.6003191", "0.5940175", "0.59031266", "0.58466434", "0.5828132", "0.5817633", "0.57102257", "0.5675533", "0.5656073", "0.56472", "0.5630319", "0.5590974", "0.5534827", "0.549051", "0.5467372", "0.53828436", "0.53564036", "0.53457034", "0.5325538", "0.52924454", "0.5270937", "0.5230206", "0.5222827", "0.5216917", "0.52106386", "0.51857394", "0.5171774", "0.5166768", "0.5143545", "0.5119949", "0.511413", "0.51131344", "0.5093142", "0.5089022", "0.50728256", "0.5060285", "0.50540406", "0.50505227", "0.5048004", "0.504658", "0.50455517", "0.5038167", "0.50355476", "0.50283766", "0.50250167", "0.50230736", "0.5022132", "0.5013317", "0.5004472", "0.49868178", "0.49863353", "0.4985152", "0.49849594", "0.498195", "0.49799532", "0.49744216", "0.4973387", "0.49704283", "0.49692938", "0.49668676", "0.49631712", "0.49628687", "0.49560127", "0.49549314", "0.49542093", "0.49385205" ]
0.64209145
31
ensureConsistency Reloads this object from datastore based on primary key and (optionally) resets all associated objects. This will only work if the object has been saved and has a valid primary key set.
public function reload($deep = false, ConnectionInterface $con = null) { if ($this->isDeleted()) { throw new PropelException("Cannot reload a deleted object."); } if ($this->isNew()) { throw new PropelException("Cannot reload an unsaved object."); } if ($con === null) { $con = Propel::getServiceContainer()->getReadConnection(TblProdInfoTableMap::DATABASE_NAME); } // We don't need to alter the object instance pool; we're just modifying this instance // already in the pool. $dataFetcher = ChildTblProdInfoQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); $row = $dataFetcher->fetch(); $dataFetcher->close(); if (!$row) { throw new PropelException('Cannot find matching row in the database to reload object values.'); } $this->hydrate($row, 0, true, $dataFetcher->getIndexType()); // rehydrate if ($deep) { // also de-associate any related objects? $this->aTblEra = null; $this->aTblGeneral = null; $this->aTblMenus = null; $this->aTblProdPhotos = null; $this->aTblProdPrices = null; $this->aTblProdPricing = null; $this->aTblProdSmaller = null; $this->aTblShippingCategories = null; } // if (deep) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPartie !== null && $this->partie_id !== $this->aPartie->getId()) {\n\t\t\t$this->aPartie = null;\n\t\t}\n\t\tif ($this->aPostRelatedByReplicaPostId !== null && $this->replica_post_id !== $this->aPostRelatedByReplicaPostId->getId()) {\n\t\t\t$this->aPostRelatedByReplicaPostId = null;\n\t\t}\n\t}", "public function ensureConsistency()\n {\n if ($this->aBooks !== null && $this->_forbook !== $this->aBooks->getId()) {\n $this->aBooks = null;\n }\n if ($this->auserSysRef !== null && $this->__user__ !== $this->auserSysRef->getId()) {\n $this->auserSysRef = null;\n }\n }", "public function ensureConsistency()\n {\n if ($this->aSociete !== null && $this->soc_id_fk !== $this->aSociete->getID()) {\n $this->aSociete = null;\n }\n if ($this->aMTransport !== null && $this->transport_fk !== $this->aMTransport->getMTransport()) {\n $this->aMTransport = null;\n }\n }", "public function ensureConsistency()\n {\n\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aSemester !== null && $this->semester_id !== $this->aSemester->getSemesterId()) {\n $this->aSemester = null;\n }\n if ($this->aSumberAirRelatedBySumberAirId !== null && $this->sumber_air_id !== $this->aSumberAirRelatedBySumberAirId->getSumberAirId()) {\n $this->aSumberAirRelatedBySumberAirId = null;\n }\n if ($this->aSumberAirRelatedBySumberAirMinumId !== null && $this->sumber_air_minum_id !== $this->aSumberAirRelatedBySumberAirMinumId->getSumberAirId()) {\n $this->aSumberAirRelatedBySumberAirMinumId = null;\n }\n }", "public function ensureConsistency()\n {\n\n if ($this->aActionPropertyTypeRelatedByid !== null && $this->id !== $this->aActionPropertyTypeRelatedByid->getactionTypeId()) {\n $this->aActionPropertyTypeRelatedByid = null;\n }\n }", "public function ensureConsistency()\n {\n\n if ($this->aSucursal !== null && $this->idsucursal !== $this->aSucursal->getIdsucursal()) {\n $this->aSucursal = null;\n }\n }", "public function ensureConsistency()\n {\n if ($this->aShape !== null && $this->shape_id !== $this->aShape->getShapeId()) {\n $this->aShape = null;\n }\n if ($this->aCakeType !== null && $this->cake_type_id !== $this->aCakeType->getCakeTypeId()) {\n $this->aCakeType = null;\n }\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPerfil !== null && $this->perfil_id !== $this->aPerfil->getId()) {\n\t\t\t$this->aPerfil = null;\n\t\t}\n\t\tif ($this->aEndereco !== null && $this->endereco_id !== $this->aEndereco->getId()) {\n\t\t\t$this->aEndereco = null;\n\t\t}\n\t\tif ($this->aCargo !== null && $this->cargo_id !== $this->aCargo->getId()) {\n\t\t\t$this->aCargo = null;\n\t\t}\n\t\tif ($this->aDepartamento !== null && $this->departamento_id !== $this->aDepartamento->getId()) {\n\t\t\t$this->aDepartamento = null;\n\t\t}\n\t}", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPerfil !== null && $this->co_perfil !== $this->aPerfil->getCoPerfil()) {\n\t\t\t$this->aPerfil = null;\n\t\t}\n\t}", "public function ensureConsistency()\n {\n\n if ($this->aFeature !== null && $this->feature_id !== $this->aFeature->getFeatureId()) {\n $this->aFeature = null;\n }\n if ($this->aCvterm !== null && $this->cvterm_id !== $this->aCvterm->getCvtermId()) {\n $this->aCvterm = null;\n }\n if ($this->aPub !== null && $this->pub_id !== $this->aPub->getPubId()) {\n $this->aPub = null;\n }\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aUf !== null && $this->uf_id !== $this->aUf->getId()) {\n\t\t\t$this->aUf = null;\n\t\t}\n\t}", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aUser !== null && $this->submittedbyuser !== $this->aUser->getUserid()) {\n\t\t\t$this->aUser = null;\n\t\t}\n\t}", "public function ensureConsistency()\n {\n\n if ($this->aOperations !== null && $this->op_id !== $this->aOperations->getOpId()) {\n $this->aOperations = null;\n }\n if ($this->aRCurrencies !== null && $this->operation_prime_currency_id !== $this->aRCurrencies->getRCurrencyId()) {\n $this->aRCurrencies = null;\n }\n if ($this->aRRewardTypes !== null && $this->operation_prime_r_reward_type_id !== $this->aRRewardTypes->getRRewardTypeId()) {\n $this->aRRewardTypes = null;\n }\n if ($this->aRRewardExpeditionModes !== null && $this->operation_prime_r_reward_expedition_mode_id !== $this->aRRewardExpeditionModes->getRRewardExpeditionModeId()) {\n $this->aRRewardExpeditionModes = null;\n }\n if ($this->aRRewardTransporters !== null && $this->operation_prime_r_reward_transporter_id !== $this->aRRewardTransporters->getRRewardTransporterId()) {\n $this->aRRewardTransporters = null;\n }\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aCampaignTemplate !== null && $this->template_id !== $this->aCampaignTemplate->getId()) {\n\t\t\t$this->aCampaignTemplate = null;\n\t\t}\n\t\tif ($this->asfGuardUserProfile !== null && $this->created_by !== $this->asfGuardUserProfile->getId()) {\n\t\t\t$this->asfGuardUserProfile = null;\n\t\t}\n\t}", "protected function clearAllPersistentData()\r\n {\r\n }", "public function ensureConsistency()\n {\n if ($this->aPurchaseOrder !== null && $this->pothnbr !== $this->aPurchaseOrder->getPohdnbr()) {\n $this->aPurchaseOrder = null;\n }\n if ($this->aWarehouse !== null && $this->intbwhse !== $this->aWarehouse->getIntbwhse()) {\n $this->aWarehouse = null;\n }\n }", "public function Reload() {\n\t\t\t// Make sure we are actually Restored from the database\n\t\t\tif (!$this->__blnRestored)\n\t\t\t\tthrow new QCallerException('Cannot call Reload() on a new, unsaved PersonWithLock object.');\n\n\t\t\t$this->DeleteFromCache();\n\n\t\t\t// Reload the Object\n\t\t\t$objReloaded = PersonWithLock::Load($this->intId);\n\n\t\t\t// Update $this's local variables to match\n\t\t\t$this->strFirstName = $objReloaded->strFirstName;\n\t\t\t$this->strLastName = $objReloaded->strLastName;\n\t\t\t$this->strSysTimestamp = $objReloaded->strSysTimestamp;\n\t\t}", "public function reset()\n\t{\n\t\tparent::reset();\n\n\t\t// Reset the primary key\n\t\t$this->id = null;\n\t}", "public function reset()\n\t{\n\t\tparent::reset();\n\n\t\t// Reset the primary key\n\t\t$this->id = null;\n\t}", "public function ensureConsistency()\n {\n if ($this->aPublisher !== null && $this->publisher_id !== $this->aPublisher->getPublisherId()) {\n $this->aPublisher = null;\n }\n if ($this->aLanguage !== null && $this->language_id !== $this->aLanguage->getLanguageId()) {\n $this->aLanguage = null;\n }\n if ($this->aPlace !== null && $this->publish_place_id !== $this->aPlace->getPlaceId()) {\n $this->aPlace = null;\n }\n if ($this->aFrequency !== null && $this->frequency_id !== $this->aFrequency->getFrequencyId()) {\n $this->aFrequency = null;\n }\n if ($this->aUser !== null && $this->uid !== $this->aUser->getUserId()) {\n $this->aUser = null;\n }\n }", "public function beforeDelete(){\r\n //Ok he has the right to do that - remove all the ACL-objects associated with this object\r\n $class = Strategy::getClass('Aro');\r\n $aro = $class::model()->find('model = :model AND foreign_key = :key', array(':model' => get_class( $this), ':key' => $this->getPrimaryKey()));\r\n \r\n if(!$aro)\r\n throw new RuntimeException('No associated Aro-Collection!');\r\n \r\n $transaction = Yii::app()->db->beginTransaction();\r\n try{\r\n $suc =$aro->delete()&& parent::beforeDelete();\r\n $transaction->commit();\r\n return $suc;\r\n }\r\n catch(Exception $e){\r\n $transaction->rollback();\r\n throw $e;\r\n }\r\n }", "public function unload()\n {\n\n $this->synchronized = true;\n $this->id = null;\n $this->newId = null;\n $this->data = [];\n $this->savedData = [];\n $this->orm = null;\n\n $this->multiRef = [];\n $this->i18n = null;\n\n }", "public function ensureConsistency()\n {\n\n if ($this->aJenisPrasarana !== null && $this->jenis_prasarana_id !== $this->aJenisPrasarana->getJenisPrasaranaId()) {\n $this->aJenisPrasarana = null;\n }\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aTanah !== null && $this->id_tanah !== $this->aTanah->getIdTanah()) {\n $this->aTanah = null;\n }\n if ($this->aPtk !== null && $this->ptk_id !== $this->aPtk->getPtkId()) {\n $this->aPtk = null;\n }\n if ($this->aJenisHapusBuku !== null && $this->id_hapus_buku !== $this->aJenisHapusBuku->getIdHapusBuku()) {\n $this->aJenisHapusBuku = null;\n }\n if ($this->aStatusKepemilikanSarpras !== null && $this->kepemilikan_sarpras_id !== $this->aStatusKepemilikanSarpras->getKepemilikanSarprasId()) {\n $this->aStatusKepemilikanSarpras = null;\n }\n }", "public function setPrimaryKey()\n {\n\tif ( $this->isFrozen()) throw new FreezeException();\n\t$this->primaryKey= true;\n }", "public function ensureConsistency()\n\t{\n\n\t}", "public function ensureConsistency()\n\t{\n\n\t}", "public function ensureConsistency()\n\t{\n\n\t}", "public function ensureConsistency()\n\t{\n\n\t}", "private function nuke()\n {\n \\lib\\Model\\ModelCache::clear($this);\n $this->__new=true;\n $this->__fields=array();\n $this->__isDirty=false;\n $this->__dirtyFields=array();\n }", "public function reload( $obj_id )\r\n\t{\r\n\t\tif (isset( $this->relations[ $obj_id ] ))\r\n\t\t\tunset( $this->relations[ $obj_id ] );\r\n\t}", "public function restore()\n {\n $this->restoreEntrustUserTrait();\n $this->restoreSoftDeletes();\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function clear()\n {\n self::foreignChecks(false);\n $this->model->truncate();\n self::foreignChecks(true);\n }", "public function refresh()\r\n {\r\n /* @var $record BaseActiveRecord */\r\n $record = static::findOne($this->getPrimaryKey(false));\r\n if ($record === null) {\r\n return false;\r\n }\r\n foreach ($this->attributes() as $name) {\r\n $this->_attributes[$name] = $record->hasAttribute($name) ? $record->getAttribute($name) : null;\r\n }\r\n $this->setOldAttributes($record->getOldAttributes());\r\n\r\n\r\n foreach ($record->getRelatedRecords() as $relationName => $records) {\r\n $this->populateRelation($relationName, $records);\r\n }\r\n $this->afterRefresh();\r\n\r\n return true;\r\n }", "public function ensureConsistency()\n {\n if ($this->aUserAge !== null && $this->age !== $this->aUserAge->getAge()) {\n $this->aUserAge = null;\n }\n }", "public function byPrimaryKeysNonEntityClass()\n {\n $this->dbEraser->deleteByPrimaryKeys($this->mockConnection, new MockNoEntityAnnotationEntity());\n }", "public function ensureConsistency()\n {\n if ($this->aTblProdPhotos !== null && $this->prod_id !== $this->aTblProdPhotos->getProdId()) {\n $this->aTblProdPhotos = null;\n }\n if ($this->aTblProdPrices !== null && $this->prod_id !== $this->aTblProdPrices->getProdId()) {\n $this->aTblProdPrices = null;\n }\n if ($this->aTblProdSmaller !== null && $this->prod_id !== $this->aTblProdSmaller->getProdId()) {\n $this->aTblProdSmaller = null;\n }\n if ($this->aTblProdPricing !== null && $this->prod_price_id !== $this->aTblProdPricing->getProdPriceId()) {\n $this->aTblProdPricing = null;\n }\n if ($this->aTblMenus !== null && $this->prod_category !== $this->aTblMenus->getMenuAlias()) {\n $this->aTblMenus = null;\n }\n if ($this->aTblShippingCategories !== null && $this->prod_category_shipping !== $this->aTblShippingCategories->getProdShippingPriceId()) {\n $this->aTblShippingCategories = null;\n }\n if ($this->aTblGeneral !== null && $this->prod_general !== $this->aTblGeneral->getProdGeneral()) {\n $this->aTblGeneral = null;\n }\n if ($this->aTblEra !== null && $this->prod_era !== $this->aTblEra->getEraId()) {\n $this->aTblEra = null;\n }\n }", "public function ensureConsistency()\n {\n\n if ($this->aSekolahLongitudinal !== null && $this->sekolah_id !== $this->aSekolahLongitudinal->getSekolahId()) {\n $this->aSekolahLongitudinal = null;\n }\n if ($this->aSekolahLongitudinal !== null && $this->semester_id !== $this->aSekolahLongitudinal->getSemesterId()) {\n $this->aSekolahLongitudinal = null;\n }\n if ($this->aRuang !== null && $this->id_ruang !== $this->aRuang->getIdRuang()) {\n $this->aRuang = null;\n }\n if ($this->aPembelajaranRelatedByBelKe01 !== null && $this->bel_ke_01 !== $this->aPembelajaranRelatedByBelKe01->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe01 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe02 !== null && $this->bel_ke_02 !== $this->aPembelajaranRelatedByBelKe02->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe02 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe03 !== null && $this->bel_ke_03 !== $this->aPembelajaranRelatedByBelKe03->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe03 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe04 !== null && $this->bel_ke_04 !== $this->aPembelajaranRelatedByBelKe04->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe04 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe05 !== null && $this->bel_ke_05 !== $this->aPembelajaranRelatedByBelKe05->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe05 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe06 !== null && $this->bel_ke_06 !== $this->aPembelajaranRelatedByBelKe06->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe06 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe07 !== null && $this->bel_ke_07 !== $this->aPembelajaranRelatedByBelKe07->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe07 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe08 !== null && $this->bel_ke_08 !== $this->aPembelajaranRelatedByBelKe08->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe08 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe09 !== null && $this->bel_ke_09 !== $this->aPembelajaranRelatedByBelKe09->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe09 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe10 !== null && $this->bel_ke_10 !== $this->aPembelajaranRelatedByBelKe10->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe10 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe11 !== null && $this->bel_ke_11 !== $this->aPembelajaranRelatedByBelKe11->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe11 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe12 !== null && $this->bel_ke_12 !== $this->aPembelajaranRelatedByBelKe12->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe12 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe13 !== null && $this->bel_ke_13 !== $this->aPembelajaranRelatedByBelKe13->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe13 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe14 !== null && $this->bel_ke_14 !== $this->aPembelajaranRelatedByBelKe14->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe14 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe15 !== null && $this->bel_ke_15 !== $this->aPembelajaranRelatedByBelKe15->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe15 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe16 !== null && $this->bel_ke_16 !== $this->aPembelajaranRelatedByBelKe16->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe16 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe17 !== null && $this->bel_ke_17 !== $this->aPembelajaranRelatedByBelKe17->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe17 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe18 !== null && $this->bel_ke_18 !== $this->aPembelajaranRelatedByBelKe18->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe18 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe19 !== null && $this->bel_ke_19 !== $this->aPembelajaranRelatedByBelKe19->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe19 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe20 !== null && $this->bel_ke_20 !== $this->aPembelajaranRelatedByBelKe20->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe20 = null;\n }\n }", "public function flush()\r\n {\r\n foreach ($this->_collections as $key => $coll) {\r\n $coll->takeSnapshot();\r\n }\r\n foreach ($this->_tables as $table) {\r\n $table->setAttribute(Doctrine::ATTR_LOAD_REFERENCES, true);\r\n }\r\n $this->_initializedRelations = null;\r\n $this->_collections = null;\r\n $this->_tables = null;\r\n }", "public function Reload() {\n\t\t\t// Make sure we are actually Restored from the database\n\t\t\tif (!$this->__blnRestored)\n\t\t\t\tthrow new QCallerException('Cannot call Reload() on a new, unsaved Person object.');\n\n\t\t\t$this->DeleteFromCache();\n\n\t\t\t// Reload the Object\n\t\t\t$objReloaded = Person::Load($this->intId);\n\n\t\t\t// Update $this's local variables to match\n\t\t\t$this->strFirstName = $objReloaded->strFirstName;\n\t\t\t$this->strLastName = $objReloaded->strLastName;\n\t\t}", "public function deleteAllPersistentData()\n {\n foreach ($this->persistantMap as $key) {\n $this->store->delete($key);\n }\n }", "protected function clearPersistentData($key)\r\n {\r\n }", "public function Reload() {\n\t\t\t// Make sure we are actually Restored from the database\n\t\t\tif (!$this->__blnRestored)\n\t\t\t\tthrow new QCallerException('Cannot call Reload() on a new, unsaved StewardshipPledge object.');\n\n\t\t\t// Reload the Object\n\t\t\t$objReloaded = StewardshipPledge::Load($this->intId);\n\n\t\t\t// Update $this's local variables to match\n\t\t\t$this->PersonId = $objReloaded->PersonId;\n\t\t\t$this->StewardshipFundId = $objReloaded->StewardshipFundId;\n\t\t\t$this->dttDateStarted = $objReloaded->dttDateStarted;\n\t\t\t$this->dttDateEnded = $objReloaded->dttDateEnded;\n\t\t\t$this->fltPledgeAmount = $objReloaded->fltPledgeAmount;\n\t\t\t$this->fltContributedAmount = $objReloaded->fltContributedAmount;\n\t\t\t$this->fltRemainingAmount = $objReloaded->fltRemainingAmount;\n\t\t\t$this->blnFulfilledFlag = $objReloaded->blnFulfilledFlag;\n\t\t\t$this->blnActiveFlag = $objReloaded->blnActiveFlag;\n\t\t}", "private final function ensureObjectInDb()\n {\n # WORKING_ON\n $class_reflection = new ReflectionClass(get_class($this));\n do {\n # use reflection to SKIP abstract classes\n if (!$class_reflection->isInstantiable())\n continue;\n\n if (!$this->getLoadedFromDb($class_reflection->getName())) {\n $this->insert($class_reflection->getName());\n break;\n }\n\n } while (($class_reflection = $class_reflection->getParentClass()) && # get the parent\n $class_reflection->getName() != __CLASS__); # check that we're not hitting the top\n }", "public function ensureConsistency()\n {\n\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aKategoriTk !== null && $this->kategori_tk_id !== $this->aKategoriTk->getKategoriTkId()) {\n $this->aKategoriTk = null;\n }\n if ($this->aKlasifikasiLembaga !== null && $this->klasifikasi_lembaga_id !== $this->aKlasifikasiLembaga->getKlasifikasiLembagaId()) {\n $this->aKlasifikasiLembaga = null;\n }\n if ($this->aSumberDanaSekolah !== null && $this->sumber_dana_sekolah_id !== $this->aSumberDanaSekolah->getSumberDanaSekolahId()) {\n $this->aSumberDanaSekolah = null;\n }\n if ($this->aFasilitasLayanan !== null && $this->fasilitas_layanan_id !== $this->aFasilitasLayanan->getFasilitasLayananId()) {\n $this->aFasilitasLayanan = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalPmtas !== null && $this->jadwal_pmtas !== $this->aJadwalPaudRelatedByJadwalPmtas->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalPmtas = null;\n }\n if ($this->aLembagaPengangkat !== null && $this->lembaga_pengangkat_id !== $this->aLembagaPengangkat->getLembagaPengangkatId()) {\n $this->aLembagaPengangkat = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalDdtk !== null && $this->jadwal_ddtk !== $this->aJadwalPaudRelatedByJadwalDdtk->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalDdtk = null;\n }\n if ($this->aJadwalPaudRelatedByFreqParenting !== null && $this->freq_parenting !== $this->aJadwalPaudRelatedByFreqParenting->getJadwalId()) {\n $this->aJadwalPaudRelatedByFreqParenting = null;\n }\n if ($this->aBentukLembaga !== null && $this->bentuk_lembaga_id !== $this->aBentukLembaga->getBentukLembagaId()) {\n $this->aBentukLembaga = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalKesehatan !== null && $this->jadwal_kesehatan !== $this->aJadwalPaudRelatedByJadwalKesehatan->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalKesehatan = null;\n }\n }", "protected function _flushVars() {\n if (isset($this->LdapObject->id)) {\n $this->LdapObject->id = null;\n }\n if (isset($this->LdapObject->primaryKey)) {\n $this->LdapObject->primaryKey = 'uid';\n }\n \n $this->sforceData = array();\n $this->stagingData = array();\n $this->ldapData = array();\n $this->syncOperation = 'nothing';\n \n }", "public function Reload() {\n\t\t\t// Make sure we are actually Restored from the database\n\t\t\tif (!$this->__blnRestored)\n\t\t\t\tthrow new QCallerException('Cannot call Reload() on a new, unsaved ComandoRisco object.');\n\n\t\t\t// Reload the Object\n\t\t\t$objReloaded = ComandoRisco::Load($this->intId);\n\n\t\t\t// Update $this's local variables to match\n\t\t\t$this->ComandoItemId = $objReloaded->ComandoItemId;\n\t\t\t$this->ComandoId = $objReloaded->ComandoId;\n\t\t\t$this->strReferencia = $objReloaded->strReferencia;\n\t\t\t$this->MoldeId = $objReloaded->MoldeId;\n\t\t\t$this->TamanhoId = $objReloaded->TamanhoId;\n\t\t\t$this->intQuantidadeRisco = $objReloaded->intQuantidadeRisco;\n\t\t}", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function reset() {\r\n\t\tforeach ($this->_metadata->getNames() as $name){\r\n\t\t\tif($this->isPrimaryKey($name)){\r\n\t\t\t\t$this->_record[$name] = $this->getPrimaryKey() ;\r\n\t\t\t}else{\r\n\t\t\t\t$this->_record[$name] = $this->{$name} ;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this->_record ;\r\n\t}", "public function ensureConsistency()\n {\n\n }", "public function ensureConsistency()\n {\n\n }", "public function flush()\n {\n $this->saveKeys([]);\n return parent::flush();\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aJ002tUsuario !== null && $this->co_usuario_elabora !== $this->aJ002tUsuario->getCoUsuario()) {\n\t\t\t$this->aJ002tUsuario = null;\n\t\t}\n\t\tif ($this->aJ016tForense !== null && $this->co_forense !== $this->aJ016tForense->getCoForense()) {\n\t\t\t$this->aJ016tForense = null;\n\t\t}\n\t\tif ($this->aJ018tInformeForense !== null && $this->co_informe_forense !== $this->aJ018tInformeForense->getCoInformeForense()) {\n\t\t\t$this->aJ018tInformeForense = null;\n\t\t}\n\t}", "public function delete(){\n\t\t$kiwi_class = Model_Kiwi::get_classname( get_class($this) ); //returns User for Model_User\n\t\t$pcol = $this->kiwi_primary_key();\n\t\t$pk = $this->$pcol;\n\t\t$mc_key = static::kiwi_mc_key($kiwi_class, $pk);\n\t\tif (empty($pk))\n\t\tthrow new ActiveRecordException(\"Cannot delete, no primary key defined for: \" . $kiwi_class);\n\t\t//FIRST delete the key from memcache\n\t\tstatic::delete_from_memcache($mc_key, $kiwi_class);\n\t\t$return_status = false;\n\t\t//DO NOT DELETE - just soft delete\n\t\tif( Kohana::$config->load('gameconfig.mysql_hard_delete_disabled') &&\n\t\t\t\tin_array( Model_Kiwi::get_table_name($kiwi_class), ActiveRecord\\Model::$soft_delete_enabled_tables)\t){\n\t\t\tKohana::$log->add(Log::DEBUG, \"Mysql Deletes are disabled - using soft delete\");\n\t\t\t$return_status = $this->update_attribute(ActiveRecord\\Model::$soft_deleted_column, 1);\n\t\t}else{\n\t\t\t$return_status = static::table()->delete(array($pcol => $pk));\n\t\t}\n\t\treturn $return_status ;\n\t}", "protected function performDeleteOnModel()\n {\n $this->getApi()->{'delete'.ucfirst($this->getEntity())}(\n $this->{$this->primaryKey},\n array_merge(...array_values($this->getGlobalScopes()))\n );\n\n $this->exists = false;\n }", "public function refresh()\n {\n if ($this->_id === false) {\n return $this;\n }\n\n $values = self::$driver->loadModel($this);\n\n if (!is_array($values)) {\n return $this;\n }\n\n // clear any relations\n $this->_relationships = [];\n\n return $this->refreshWith($values);\n }", "private function ensureDBConsistency(): void\n\t{\n\t\t$checkRelation = function (\n\t\t\tstring $modelName,\n\t\t\tstring $table,\n\t\t\tstring $column,\n\t\t\tstring $foreignModelName,\n\t\t\tstring $foreignTable,\n\t\t\tstring $fixMethod = '',\n\t\t): bool {\n\t\t\t$missing = DB::table($table)\n\t\t\t\t->whereNotIn($column, function (Builder $q) use ($foreignTable) {\n\t\t\t\t\t$q->from($foreignTable)->select('id');\n\t\t\t\t})\n\t\t\t\t->select('id', $column)\n\t\t\t\t->get();\n\n\t\t\tforeach ($missing as $m) {\n\t\t\t\t$msg = 'Found ' . $modelName .\n\t\t\t\t\t' with ID ' . $m->id .\n\t\t\t\t\t' which refers to non-existing ' . $foreignModelName .\n\t\t\t\t\t' with ID ' . $m->{$column};\n\t\t\t\tif (empty($fixMethod)) {\n\t\t\t\t\t$this->printError($msg);\n\t\t\t\t} else {\n\t\t\t\t\t$this->printWarning($msg);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($missing->isEmpty()) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t$fixQuery = DB::table($table)->whereIn('id', $missing->pluck('id'));\n\n\t\t\tswitch ($fixMethod) {\n\t\t\t\tcase 'nullify':\n\t\t\t\t\t$this->printInfo('Nullifying the affected relations from ' . $modelName . 's to ' . $foreignModelName . 's');\n\t\t\t\t\t$fixQuery->update([$column => null]);\n\n\t\t\t\t\treturn true;\n\t\t\t\tcase 'zeroize':\n\t\t\t\t\t$this->printInfo('Zeroizing the affected relations from ' . $modelName . 's to ' . $foreignModelName . 's');\n\t\t\t\t\t$fixQuery->update([$column => 0]);\n\n\t\t\t\t\treturn true;\n\t\t\t\tcase 'delete':\n\t\t\t\t\t$this->printInfo('Deleting the affected ' . $modelName . 's');\n\t\t\t\t\t$fixQuery->delete();\n\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->printInfo('Error is not automatically fixable');\n\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\t// If the owner of an album is missing, assign it to the admin user\n\t\t$isConsistent = $checkRelation('album', 'albums', 'owner_id', 'user', 'users', 'zeroize');\n\t\t// Move orphaned albums to the top-level\n\t\t$isConsistent &= $checkRelation('album', 'albums', 'parent_id', 'parent album', 'albums', 'nullify');\n\t\t// If the cover of an album is missing, unset the cover\n\t\t$isConsistent &= $checkRelation('album', 'albums', 'cover_id', 'cover photo', 'photos', 'nullify');\n\t\t// Delete orphaned shares\n\t\t$isConsistent &= $checkRelation('share', 'user_album', 'user_id', 'user', 'users', 'delete');\n\t\t$isConsistent &= $checkRelation('share', 'user_album', 'album_id', 'album', 'albums', 'delete');\n\t\t// If the owner of a photo is missing, assign it to the admin user\n\t\t$isConsistent &= $checkRelation('photo', 'photos', 'owner_id', 'user', 'users', 'zeroize');\n\t\t// If the album of a photo is missing, assign it to root (unsorted) album\n\t\t$isConsistent &= $checkRelation('photo', 'photos', 'album_id', 'album', 'albums', 'nullify');\n\t\t// Delete orphaned WebAuthn credentials\n\t\t$isConsistent &= $checkRelation('web authentication credential', 'web_authn_credentials', 'user_id', 'user', 'users', 'delete');\n\t\t// There is no obvious fix for orphaned page content\n\t\t$isConsistent &= $checkRelation('page content', 'page_contents', 'page_id', 'page', 'pages');\n\n\t\t// As we might have moved orphaned albums to the top,\n\t\t// we need to fix the tree.\n\t\t// Even if we did not move any album, fixing the tree before\n\t\t// the migration does not harm as users might have fiddled with their\n\t\t// DB without taking care of\n\t\t// `_lft` and `_rgt`\n\t\tRefactorAlbumModel_AlbumModel::query()->fixTree();\n\n\t\tif (!$isConsistent) {\n\t\t\t$this->printError('Your database is inconsistent and not fit for migration. Please fix your DB manually first.');\n\t\t\tthrow new \\RuntimeException('Inconsistent DB');\n\t\t}\n\t}", "function reload($conditions = null) {\n\t\t\tif(is_null($conditions)) {\n\t\t\t\t$conditions = $this->get_primary_key_conditions();\n\t\t\t}\n\t\t\t$object = $this->find($conditions);\n\t\t\tif(is_object($object)) {\n\t\t\t\tforeach($object as $key => $value) {\n\t\t\t\t\t$this->$key = $value;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public function byPrimaryKeysClassWithoutIdAnnotation()\n {\n $this->dbEraser->deleteByPrimaryKeys($this->mockConnection, new MockNoPrimaryKeyEntity());\n }", "public function restore(){\n $this->update(['deleted_by', NULL]);\n return $this->baseRestore();\n }", "public function refresh()\n {\n $this->_totalCount = null;\n $this->_models = null;\n $this->_keys = null;\n }", "public function re()\n {\n $this->bean->deleted = false;\n try {\n R::store($this->bean);\n return true;\n } catch (Exception $e) {\n Cinnebar_Logger::instance()->log($e, 'exceptions');\n return false;\n }\n }", "protected function clearAllPersistentData()\n {\n foreach ($this->_sessionNamespace as $key => $value) {\n unset($this->_sessionNamespace->{$key});\n }\n }", "protected function load()\n\t{\n\t\t//---------------------\n\t\t// Your code goes here\n\t\t// --------------------\n\t\t// rebuild the keys table\n\t\t$this->reindex();\n\t}", "public function refresh()\n {\n $this->entityManager->refresh($this);\n }", "public function soft_delete(){\n\t\tif($this->data[$this->primary_key]){\n\t\t\t$this->data['deleted'] = 1;\n\t\t\treturn $this->save();\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function resetDirty()\n {\n $this->dirty = false;\n $this->dirtyOne = false;\n $this->dirtyMany = false;\n }", "public function update_simple_assocs()\n {\n Logger::getInstance()->po_log(\"PO:update_simple_assocs\");\n\n foreach( $this->hasOne as $attr => $type )\n {\n $obj = $this->attributeValues[ $attr ]; // Valor es un objeto (puede ser null!)\n\n // El objeto debe estar cargado para poder pedirle el id\n if ( $obj !== PersistentObject::NOT_LOADED_ASSOC )\n {\n $refAttrName = DatabaseNormalization::simpleAssoc( $attr );\n if ($obj)\n {\n // Si es MTI, el id de cualquier clase parcial será el mismo.\n $this->attributeValues[ $refAttrName ] = $obj->getId(); // seteo ref_id, ej. \"email_id\"\n }\n else\n {\n $this->attributeValues[ $refAttrName ] = NULL; // Si no hay objeto, la referencia es NULL.\n }\n }\n }\n }", "public function flushDataStore()\n {\n $this->database->flushAll(); \n }", "public function flush()\n {\n $this->table()->delete();\n }", "public function restoreAllTrashed()\n {\n return $this->model->withTrashed()->restore();\n }", "private function purgeKeyIds(GenericCrud $currentObject){\n\t\t$keys = get_class_methods($currentObject);\n\t\tif(count($keys) > 0){\n\t\t\tif(method_exists($currentObject, \"getKey_id\") && $currentObject->hasPrimaryKeyValue()){\n\t\t\t\t$currentObject->setKey_id(null);\n\t\t\t}\n\n\t\t\tforeach($keys as $method){\n\t\t\t\t//only call getters\n\t\t\t\tif(stristr($method,\"get\")){\n\t\t\t\t\tif(is_array($currentObject->$method())){\n\t\t\t\t\t\tforeach($currentObject->$method() as $sub){\n\t\t\t\t\t\t\t$this->purgeKeyIds($sub);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->purgeKeyIds($currentObject->$method());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public function reload(BaseObject $node)\n {\n return call_user_func(array($node->getPeer(), 'retrieveByPk'), $node->getPrimaryKey());\n }", "public function ensureAllPageObjects() {}", "public function flushAll() {\n\t\t$this->removeKeys();\n\t}", "public function clear()\n {\n\n $this->synchronized = true;\n $this->id = null;\n $this->newId = null;\n $this->data = [];\n $this->savedData = [];\n $this->multiRef = [];\n\n }", "function flushCache() {\n\t\t// monograph ID, flush both caches on update.\n\t\t$cache =& $this->_getCache();\n\t\t$cache->flush();\n\t\tunset($cache);\n\n\t\t//TODO: flush cache of publishedMonographDAO once created\n\t}", "public function reset() {\n foreach ($this->syncedProperties as $property) {\n unset($this->data[$property]);\n }\n\n if (session_id()) {\n unset($_SESSION[self::SESSION_KEY]);\n }\n }", "private function eraseObject() {\n $this->tripId = \"\";\n $this->journalId = \"\";\n $this->created = null;\n $this->updated = null;\n $this->latestUpdated = null;\n $this->userId = \"\";\n $this->journalDate = \"\";\n $this->journalTitle = \"\";\n $this->journalText = \"\";\n $this->deleted = \"N\";\n $this->hash = \"\";\n $this->latestHash = \"\";\n }", "protected function reindex()\n\t{\n\t\t// rebuild the ordered collection\n\t\t$results = array();\n\t\tforeach ($this->_data as $old => $record)\n\t\t{\n\t\t\t$key = $record->{$this->_keyfield};\n\t\t\t$results[$key] = $record;\n\t\t}\n\t\t// sort the collection\n\t\tksort($results);\n\t\t// remember the new collection\n\t\t$this->_data = $results;\n\t\t// reset the cursor\n\t\treset($this->_data);\n\t}", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_EXPIRE_TIME] = null;\n $this->values[self::_STAR_GOODS] = array();\n }", "public function flush_transients()\n {\n delete_transient('sm::is_connected_to_gs');\n }", "public function resetDataModel() {\r\n $this->arrModel = array();\r\n $intPackageId = NULL;\r\n }", "protected function resetOriginalReadPreference(){\n\n /** @var ReadPreference $dbReadPref */\n $dbReadPref = $this->db->__debugInfo()['readPreference'];\n if($this->originalDbReadPreference !== $dbReadPref->getMode())\n {\n $pref = (isset($this->originalDbReadPreference)\n ? $this->originalDbReadPreference\n : $this->readPreference\n );\n $dbTagsets = $dbReadPref->getTagsets();\n\n $this->db = $this->db->withOptions(array(\n 'readPreference' => new ReadPreference($pref, $dbTagsets)\n ));\n }\n\n // Reset collection object\n /** @var ReadPreference $collReadPref */\n $collReadPref = $this->getCollection()->__debugInfo()['readPreference'];\n if($this->originalCollectionReadPreference !== $collReadPref->getMode()){\n $pref = (isset($this->originalCollectionReadPreference)\n ? $this->originalCollectionReadPreference\n : $this->readPreference\n );\n $collTagsets = $collReadPref->getTagsets();\n $this->collection = $this->collection->withOptions(array(\n 'readPreference' => new ReadPreference($pref, $collTagsets)\n ));\n }\n }", "public function flush($model)\n {\n $class = \\is_object($model) ? \\get_class($model) : false;\n if ($class) {\n $query = $this->client->createUpdate();\n $query->addDeleteQuery(\"_class:{$class}\");\n $query->addCommit();\n $this->client->update($query);\n }\n }", "private function initRestorableRelations() {\n\n\t\t$configs = $this->cascadable();\n\n\t\t$this->runCascadeRestore = $configs['restore']['enable'] ?? true;\n\n\t\t$this->relationships = Arr::wrap($configs['restore']['relations'] ?? $configs);\n\t}", "public function flushChanges()\n {\n $this->om->flush();\n }", "protected function persistObjects() {}", "public function refresh() {\n $data = self::getWhere($this->_getPKValue(), TRUE, FALSE);\n if (!empty($data) && is_array($data)) {\n $this->_setData($data);\n return TRUE;\n }\n \n return FALSE;\n \n }", "public function clearRelationCache();", "public function initialize()\n {\n \t$this->belongsTo('id_verificacion', 'CobVerificacion', 'id_verificacion', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_actadocumentacion', 'CobActadocumentacionDatos', 'id_actadocumentacion', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_usuario', 'IbcUsuario', 'id_usuario', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('estado', 'IbcReferencia', 'id_referencia', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->hasMany('id_actadocumentacion', 'CobActadocumentacionPersona', 'id_actadocumentacion', array(\n \t\t\t'foreignKey' => array(\n \t\t\t\t\t'message' => 'El acta no puede ser eliminada porque existen beneficiarios asociados a ésta'\n \t\t\t)\n \t));\n }", "public function Reload() {\n\t\t\t// Make sure we are actually Restored from the database\n\t\t\tif (!$this->__blnRestored)\n\t\t\t\tthrow new QCallerException('Cannot call Reload() on a new, unsaved Organization object.');\n\n\t\t\t// Reload the Object\n\t\t\t$objReloaded = Organization::Load($this->intIdOrganization);\n\n\t\t\t// Update $this's local variables to match\n\t\t\t$this->strName = $objReloaded->strName;\n\t\t\t$this->strPhone = $objReloaded->strPhone;\n\t\t\t$this->strQrCode = $objReloaded->strQrCode;\n\t\t\t$this->strOrganizationImage = $objReloaded->strOrganizationImage;\n\t\t\t$this->strLatitude = $objReloaded->strLatitude;\n\t\t\t$this->strLongitude = $objReloaded->strLongitude;\n\t\t\t$this->strCountry = $objReloaded->strCountry;\n\t\t\t$this->strCity = $objReloaded->strCity;\n\t\t\t$this->strAddress = $objReloaded->strAddress;\n\t\t\t$this->IdOrganizationType = $objReloaded->IdOrganizationType;\n\t\t\t$this->IdOwner = $objReloaded->IdOwner;\n\t\t}", "public function delete() {\n\t\ttry {\n\t\t\tif($this->_state == self::STATE_UNCHANGED) {\n\t\t\t\t$sql = 'DELETE FROM ' . self::sanitize($this->_table->getProperty('name')) . ' WHERE ' . self::sanitize($this->_key_primary->name) . ' = ' . self::sanitize($this->_data[$this->_key_primary->name]);\n\t\t\t\t\\Bedrock\\Common\\Logger::info('Deleting record with query: ' . $sql); echo $sql;\n\t\t\t\t$this->_connection->exec($sql);\n\t\t\t}\n\t\t\telseif($this->_state == self::STATE_CHANGED) {\n\t\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('Unsaved changes found, cannot delete record.');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('Record not found in database.');\n\t\t\t}\n\t\t}\n\t\tcatch(\\PDOException $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('A database error was encountered, the record could not be deleted.');\n\t\t}\n\t\tcatch(\\Exception $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('The record could not be deleted.');\n\t\t}\n\t}", "public function flush()\n {\n $keys = $this->cache->queryKeys();\n foreach ( $keys as $key ) {\n $this->cache->delete($key);\n }\n }", "public function rm_whole() {\n\t\t$this->rm_controller();\n\t\t$this->rm_model();\n\t\t$this->rm_entity();\n\t}", "function testDeleteHard() \r\n\t{\r\n\t\t$dbh = $this->dbh;\r\n\r\n\t\t$obj = new CAntObject($dbh, \"customer\");\r\n\t\t$obj->setValue(\"name\", \"my test\");\r\n\t\t$cid = $obj->save(false);\r\n\t\t$obj->remove(); // Soft delete\r\n\t\tunset($obj);\r\n\t\t$obj = new CAntObject($dbh, \"customer\", $cid);\r\n\t\t$obj->remove(); // Hard delete\r\n\r\n\t\tif (!$dbh->GetNumberRows($dbh->Query(\"select id from customers where id='$cid'\")))\r\n\t\t\t$this->assertFalse(false);\r\n\t\telse\r\n\t\t\t$this->assertFalse(true);\r\n\t}", "public function preDelete(BaseObject $node)\n {\n $peer_name = get_class($node->getPeer());\n $node->reload(); // load the current node state\n\n $this->addPreDeleteStackEntries(self::shiftRLRange($peer_name,\n $node->getLeftValue(),\n $node->getRightValue(),\n -1,\n $node->getScopeIdValue()));\n\n $this->addPreDeleteStackEntries(self::shiftRLValues($peer_name,\n $node->getRightValue() + 1,\n -2,\n $node->getScopeIdValue()));\n\n // Take care of adjacency parameters\n if ($node->hasChildren())\n {\n $peer_name = get_class($node->getPeer());\n $node_class = get_class($node);\n $query = sprintf('UPDATE %s SET %s = %s WHERE %s = %s',\n constant(\"$peer_name::TABLE_NAME\"),\n self::getColumnConstant($node_class, 'parent', true),\n ($node->getParentIdValue() == Null)?'NULL':$node->getParentIdValue(),\n self::getColumnConstant($node_class, 'parent'),\n $node->getPrimaryKey());\n\n $con = Propel::getConnection();\n $statement = $con->prepareStatement($query);\n $statement->executeQuery();\n }\n\n $this->processPreDeleteStack();\n }" ]
[ "0.6330225", "0.6249899", "0.62372005", "0.6012892", "0.5944971", "0.59258485", "0.5910676", "0.59069115", "0.58702385", "0.58220196", "0.57221025", "0.5719306", "0.5691359", "0.56786144", "0.5675167", "0.56372964", "0.5634468", "0.556958", "0.556958", "0.5480265", "0.53523093", "0.53132707", "0.5307296", "0.5281458", "0.5253196", "0.5253196", "0.5253196", "0.5253196", "0.5209194", "0.5194598", "0.51804435", "0.5177227", "0.5177227", "0.5177227", "0.5177227", "0.5177227", "0.51747453", "0.5167579", "0.5161908", "0.5135381", "0.51211894", "0.51044905", "0.50978994", "0.5093107", "0.5076836", "0.5076463", "0.5075616", "0.5062133", "0.50472414", "0.5037764", "0.5022168", "0.50185645", "0.50123584", "0.5002482", "0.5002482", "0.49988803", "0.49904197", "0.49745965", "0.49687335", "0.4964476", "0.49510795", "0.49445763", "0.4925726", "0.49231592", "0.48927382", "0.48840332", "0.48649094", "0.48643968", "0.48613706", "0.4853644", "0.48339677", "0.48223504", "0.48191652", "0.4807488", "0.47982508", "0.47812098", "0.47803527", "0.47715342", "0.4764221", "0.47603947", "0.47499615", "0.4746807", "0.47333494", "0.4720914", "0.4719205", "0.47167492", "0.4710068", "0.470492", "0.47027567", "0.46878767", "0.4681577", "0.46815443", "0.46791518", "0.46770367", "0.46742976", "0.46691018", "0.46640977", "0.4663857", "0.46629575", "0.46528497", "0.4651115" ]
0.0
-1
Removes this object from datastore and sets delete attribute.
public function delete(ConnectionInterface $con = null) { if ($this->isDeleted()) { throw new PropelException("This object has already been deleted."); } if ($con === null) { $con = Propel::getServiceContainer()->getWriteConnection(TblProdInfoTableMap::DATABASE_NAME); } $con->transaction(function () use ($con) { $deleteQuery = ChildTblProdInfoQuery::create() ->filterByPrimaryKey($this->getPrimaryKey()); $ret = $this->preDelete($con); if ($ret) { $deleteQuery->delete($con); $this->postDelete($con); $this->setDeleted(true); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function delete() {\r\n\t\t$this->getMapper()->delete($this);\r\n\t}", "public function deleteObject(){\n $qry = new DeleteEntityQuery($this);\n $this->getContext()->addQuery($qry);\n //$this->removeFromParentCollection();\n }", "public function delete() {\n\t\t$this->getConnection()->delete( $this );\n\t\t$this->clear();\n\t}", "function delete() {\n $this->that->delete($this->id, $this->name);\n $this->put_id();\n }", "public function delete()\n {\n $this->repository->delete($this->id);\n }", "function delete() {\n\t\n\t\t$this->getMapper()->delete($this);\n\t\t\n\t}", "public function delete() {\n\t\t$this->deleted = true;\n\t}", "public function delete() \n {\n DomainWatcher::addDeletedObject($this);\n }", "public function delete($logical = false)\n {\n Logger::getInstance()->po_log(\"delete $logical\");\n \n // FIXME: devolver algo que indique si se pudo o no eliminar.\n // FIXME: si no esta salvado (no tiene id), no se puede hacer delete.\n\n PersistentManager::getInstance()->delete( $this, $this->getId(), $logical ); // FIXME: no necesita pasarle el id, el objeto ya lo tiene...\n \n // http://code.google.com/p/yupp/issues/detail?id=127\n if ($logical) $this->setDeleted(true);\n }", "public function delete()\n {\n Db::getInstance()->delete($this->getTableName(), ['id' => $this->getId()]);\n }", "public function remove()\n {\n database()->run('DELETE FROM ' . $this->table . ' WHERE ' . $this->primaryKey . ' = ?', [ $this->{$this->primaryKey} ]);\n $this->__destruct();\n }", "public function delete()\n {\n $this->execute(\n $this->syntax->deleteSyntax(get_object_vars($this))\n );\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "function delete()\n {\n // Create a fresh slate\n $this->object->_init();\n $this->object->_delete_clause = \"DELETE\";\n return $this->object;\n }", "public function delete() {\n global $DB;\n $DB->delete_records($this->get_table_name(), array('id' => $this->id));\n }", "public function delete()\n {\n $this->_validateModifiable();\n\n $this->_getDataSource()->delete($this);\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function delete()\n {\n $this->db->delete($this->table, $this->data['id'], $this->key);\n }", "protected function entityDelete(){\n // TODO: deal with errors\n // delete from api\n $deleted = $this->resourceService()->delete($this->getId());\n }", "public function delete()\n {\n $this->invalidateCache();\n parent::delete();\n }", "public function delete()\n {\n $this->invalidateCache();\n parent::delete();\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function delete()\n\t{\n\t\t$this->hard_delete();\n\t}", "public function delete()\n {\n $database = cbSQLConnect::adminConnect('object');\n if (isset($database))\n {\n return ($database->SQLDelete(self::$table_name, 'id', $this->id));\n }\n }", "public function delete()\n {\n self::deleteById( $this->db, $this->id, $this->prefix );\n\n if( $this->inTransaction )\n {\n //$this->db->commit();\n $this->inTransaction = false;\n }\n }", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n // need to delete from tag maps too\n // tbd\n }", "public function delete() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with primary key of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$sql = \"DELETE FROM $this->sqlTable \";\r\n\t\t\t$sql .= \" WHERE dsh_id = ?\";\r\n\r\n\t\t\t$ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql );\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "function destroy(){\n\t\tif(!$this->id)\n\t\t\tthrow new APortalException(\"Can't destroy object does not exist in database\",$this);\n\n\t\t$this->hook('destroy'); // can be used for access control or cache deletion\n\n\t\t// STEP1 - destroy relations\n\t\t$this->api->deleteRel($this,null);\n\t\t$this->api->deleteRel(null,$this);\n\n\t\t// STEP2 - destroy supplimentary table entry\n\t\t$this->api->db->dsql()\n\t\t\t->table($this->table_name)\n\t\t\t->where('id',$this->id)\n\t\t\t->do_delete();\n\n\t\t// STEP3 - delete obj table entry\n\t\t$this->api->db->dsql()\n\t\t\t->table('obj')\n\t\t\t->where('id',$this->id)\n\t\t\t->do_delete();\n\t}", "public function delete() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$sql = \"DELETE FROM $this->sqlTable \";\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\r\n\t\t\t$ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql );\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function delete(){\n\t if(!isset($this->attributes['id'])) \n\t\t\tthrow new Exception(\"Cannot delete new objects\");\n\t\t$this->do_callback(\"before_delete\");\n\t\treturn self::do_query(\"DELETE FROM \".self::table_for(get_class($this)).\n\t\t \" WHERE id=\".self::make_value($this->attributes['id']));\t\n\t}", "public final function delete() {\n }", "public function delete()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n $entity->delete();\n }\n }\n );\n }", "public function delete()\n\t{\n\t\tDatabase::query(\"\n\t\t\tDELETE FROM\n\t\t\t\t\". $this->tableName .\"\n\t\t\tWHERE\n\t\t\t\tid = '\". $this->id .\"'\n\t\t\");\n\t}", "public function remove() {\n\n // Updates DB (data & metadata)\n $this->attributes->removeAll($this->get(\"id\"));\n $this->db->delete(XCMS_Tables::TABLE_USERS, array(\n \"id\" => $this->get(\"id\")\n ));\n\n }", "public function delete() {\n $this->isdeleted = 1;\n $this->deleteduser = \\Yii::$app->user->getId();\n $this->deletedtime = date(\"Y-m-d H:i:s\");\n \n return parent::update(FALSE, ['isdeleted', 'deletedtime', 'deleteduser']);\n }", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n }", "function do_delete(){\n\t\t// remove from fieldset:\n\t\t$fieldset = jcf_fieldsets_get( $this->fieldset_id );\n\t\tif( isset($fieldset['fields'][$this->id]) )\n\t\t\tunset($fieldset['fields'][$this->id]);\n\t\tjcf_fieldsets_update( $this->fieldset_id, $fieldset );\n\t\t\n\t\t// remove from fields array\n\t\tjcf_field_settings_update($this->id, NULL);\n\t}", "function delete()\n {\n $this->object->select();\n $this->object->_query_args['is_select'] = FALSE;\n $this->object->_query_args['is_delete'] = TRUE;\n return $this->object;\n }", "public function delete() {\n // Fail due to double delete\n assert(!$this->hasBeenDeleted);\n\n // Initialize delete record cache, if nonextant\n if (!isset(self::$deleteRecordPreparedStatementCache)) {\n self::$deleteRecordPreparedStatementCache = array();\n }\n \n // Initiate implicit tx, if nonextant explicit tx \n $is_implicit_tx = false;\n if (self::$numTransactions == 0) {\n $is_implicit_tx = true; \n self::beginTx();\n }\n\n // Fail due to invalid database connection\n assert(isset(self::$databaseHandle));\n\n // Delete this record and all child records \n $table_name = static::getFullyQualifiedTableName();\n \n try {\n // Fetch prepared statement from cache, if present. Otherwise, create it.\n if (isset(self::$deleteRecordPreparedStatementCache[$table_name])) {\n // Fetch delete query from cache\n $delete_record_stmt = self::$deleteRecordPreparedStatementCache[$table_name];\n } else {\n $fully_qualified_table_name = static::getFullyQualifiedTableName();\n $delete_query = \"DELETE FROM {$fully_qualified_table_name} \"\n . $this->genPrimaryKeyWhereClause();\n\n $delete_record_stmt = self::$databaseHandle->prepare($delete_query);\n self::$deleteRecordPreparedStatementCache[$table_name] = $delete_record_stmt;\n }\n \n // Delete children, schedule assets for deletion\n $this->deleteChildren();\n self::$assetDeletors = array_merge(self::$assetDeletors, $this->getAssets());\n\n // Bind record's 'id' to delete-query\n $this->bindId($delete_record_stmt);\n\n // Remove record\n $delete_record_stmt->execute();\n } catch (PDOException $e) {\n self::$databaseHandle->rollback();\n die(\"\\nERROR: \" . $e->getMessage() . \"\\n\");\n }\n\n // Close implicit transaction\n if ($is_implicit_tx) {\n self::endTx();\n }\n\n // Indicate object's deletion\n $this->hasBeenDeleted = true;\n }", "public function destroy() {\n\t\t$sql = 'DELETE FROM ' . static::$table . ' WHERE id = ' . $this->get('id') . ';';\n\t\t$query = DBH()->prepare($sql);\n\t\t$query->execute();\n\t}", "public function delete(): void\n {\n unlink($this->path);\n }", "public function forceDelete()\n {\n $dao = $this->getEntityDao();\n\n $dao->delete();\n\n $this->resetDao();\n\n return $this;\n }", "public function delete () {\n reset($this->__fields);\n $pk = key($this->__fields);\n\n $this->__db->delete(\n $this->getTableName()\n , array($pk => $this->__get($pk))\n );\n\n return $this;\n }", "public function delete()\n {\n $this->_startTransaction();\n $error = false;\n\n try {\n foreach ($this->_objects as $object) {\n $object->delete();\n }\n } catch (Exception $e) {\n $error = $e;\n }\n\n if ($error === false) {\n try {\n $this->_runCallbacks();\n } catch (Exception $e) {\n $error = $e;\n }\n }\n\n if ($error) {\n $this->_rollbackTransaction();\n throw $error;\n } else {\n $this->_commitTransaction();\n }\n return $this;\n }", "public function delete()\n {\n // TODO: Implement delete() method.\n }", "function delete () {\n\t\t$stm = DB::$pdo->prepare(\"delete from `generated_object` where `id`=:id\");\n\t\t$stm->bindParam(':id', $this->id);\n\t\t$stm->execute();\n\t}", "public function delete() {}", "public function delete() {}", "public function delete() {}", "public function setDeleted(): void\n {\n $this->attributes['mode'] = 'delete';\n }", "public function delete() {}", "public function delete() {\n $this->_lastDelete = true;\n return $this;\n }", "public function delete()\n\t{\n\t\t//delete our cache.\n\t\tif ($this->useObjectCaching)\n\t\t\t$this->deleteCache();\n\t\t\n\t\treturn $this->deleteDb();\n\t}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "function delete() {\n \tglobal $mysql;\n \tif(empty($this->id)) return;\n \t$tablename = $this->class_name();\n \t$id = $this->id;\n \t$query = \"DELETE FROM $tablename WHERE id=$id\";\n \t$mysql->update($query);\n }", "public function forceDelete();", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete()\n {\n try {\n parent::delete(null, $this->data['id']);\n } catch (Exception $e) {\n die('ERROR');\n }\n }", "public function delete($object)\n {\n $this->setObjectState($object, self::OBJ_REMOVED);\n }", "public function delete(){\t\t\tif( is_null( $this->id ) ) trigger_error( \"User::delete(): Attempt to delete a user object that does not have its ID property set.\", E_USER_ERROR );\r\n\t\t\t\r\n\t\t\t//Delete the object\r\n\t\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\r\n\t\t\t$st = $conn->prepare ( \"DELETE FROM \".TABLENAME_GROUPS.\" WHERE id = :id LIMIT 1\" );\r\n\t\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t\t$st->execute();\r\n\t\t\t$conn = null;\t\t\r\n\t\t}", "public function delete(){\n $this->update(['deleted_by', Auth::user()->id]);\n return parent::delete();\n }", "public function delete() {\n if(!isset($this->id)) {\n $error = 'We need an id to delete an object with this method, if you don\\'t have any, use the static remove instead';\n $line = \"delete(\".$propname.\") => \" . $error;\n $this->writeErrorLog($line);\n throw new \\Exception($error);\n } else {\n foreach ($this->fillable as $key => $value) {\n $data[$key] = $this->$key;\n }\n $qb = $this::remove();\n $qb->where(['id' => $this->id])->make();\n return true;\n }\n }", "public function delete() {\n\t\tif ($this->checkDependencies() == true ) {\n\t\t\t$sql = \"DELETE FROM \".$this->tablename.\" where \".$this->idcol.\" = \".$this->page->ctrl['record'];\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}", "public function delete(): void\n {\n $this->instances->demo()->runHook($this->root(), 'delete:before', $this);\n\n Dir::remove($this->root());\n $this->instances->delete($this->id);\n\n $this->instances->demo()->runHook($this->root(), 'delete:after', $this);\n }", "public function delete()\n {\n if (!$this->id) {\n throw new \\RuntimeException('You cannot delete a device without id');\n }\n\n\t\tPersistentSession::getInstance()->delete($this);\n }", "public function delete() {\r\n\r\n\t\t// Does the Genre object have an ID?\r\n\t\tif ( is_null( $this->id ) ) trigger_error ( \"Genre::delete(): Attempt to delete an Genre object that does not have its ID property set.\", E_USER_ERROR );\r\n\r\n\t\t// Delete the Article\r\n\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\r\n\t\t$st = $conn->prepare ( \"DELETE FROM :table WHERE id = :id LIMIT 1\" );\r\n\t\t$st->bindValue( \":table\", DB_TBL_GENRE, PDO::PARAM_STR );\r\n\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t$st->execute();\r\n\t\t$conn = null;\r\n\t}", "function _delete($key){\n $this->_set($key, null);\n }", "public function delete()\n {\n // If deposit is existing, will get database ID removed.\n $this->dbID = $this->db->deleteDeposit($this);\n }", "function delete() {\n\t\treturn $this->destroy();\n\n\t}", "public abstract function delete();", "public function __unset($key)\n {\n if (isset($this->$key)) {\n unset($this->_store[$key]);\n if (isset($this->_engine)) {\n $this->_engine->save($this->_store);\n }\n }\n }", "public function delete($entity){ \n //TODO: Implement remove record.\n }", "public function delete()\n { if (is_null($this->id))\n trigger_error(\"User::delete(): Attempt to delete a User object that does not have its ID property set.\", E_USER_ERROR);\n\n // Delete the User\n $conn = new PDO(DB_DSN, DB_USER, DB_PASS);\n $st = $conn->prepare(\"DELETE FROM users WHERE id = :id LIMIT 1\");\n $st->bindValue(\":id\", $this->id, PDO::PARAM_INT); \n $st->execute();\n \n $conn = null;\n }", "protected function markAsDeleted()\n {\n $this->deleted = true;\n }", "function delete()\n\t{\n\t\tSQL::query(\"delete from {$this->_table} where id = {$this->_data['id']}\");\n\t}", "public function delete() {\n $this->remove_content();\n\n parent::delete();\n }", "public function delete(DataObject $entity){\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete()\n {\n global $_PM_;\n $api = 'handler_'.$this->handler.'_api';\n $this->api = new $api($_PM_, PHM_API_UID, $this->principalId);\n $this->api->remove_item($this->item['id']);\n }", "public function fulldelete() {\n if ($this->id && !$this->elements) {\n $this->elements = self::get_instances(array('setid' => $this->id));\n }\n\n foreach ($this->elements as $elm) {\n $elm->delete();\n }\n\n parent::delete();\n }", "public function undelete(EntityAccess $entity): void\n {\n $entityManager = $this->entityFactory->getEntityManager();\n \n $metadata = $entityManager->getClassMetaData(get_class($entity));\n $metadata->setIdGeneratorType(ClassMetadata::GENERATOR_TYPE_NONE);\n $metadata->setIdGenerator(new AssignedGenerator());\n \n $versionField = $metadata->versionField;\n $metadata->setVersioned(false);\n $metadata->setVersionField(null);\n \n $entityManager->persist($entity);\n $entityManager->flush();\n \n $metadata->setVersioned(true);\n $metadata->setVersionField($versionField);\n }", "public function delete($id) \r\n {\r\n $this->load(array('id=?',$id));\r\n $this->erase();\r\n }", "protected function performDeleteOnModel()\n {\n $this->getApi()->{'delete'.ucfirst($this->getEntity())}(\n $this->{$this->primaryKey},\n array_merge(...array_values($this->getGlobalScopes()))\n );\n\n $this->exists = false;\n }", "public function delete() {\r\n return $this->orm->delete();\r\n }", "public function delete(){\n if (isset($this->content[$this->idField])) {\n\n $sql = \"DELETE FROM {$this->table} WHERE {$this->idField} = {$this->content[$this->idField]};\";\n $delet = new \\AR\\BD\\Delete();\n $delet->ExeDelete($this->table, \"WHERE {$this->idField} = {$this->content[$this->idField]}\", \"\");\n \n }\n }" ]
[ "0.7421696", "0.7121954", "0.7028182", "0.69343674", "0.682837", "0.68191266", "0.67467564", "0.67236525", "0.6648866", "0.64793926", "0.64615566", "0.6452498", "0.6446481", "0.64312124", "0.6410985", "0.6363036", "0.6355807", "0.6351563", "0.6339578", "0.6328758", "0.63196707", "0.63196707", "0.6258927", "0.6257494", "0.6234536", "0.62143344", "0.6185674", "0.615961", "0.61402124", "0.613155", "0.60986143", "0.6094798", "0.60702723", "0.60685015", "0.6033006", "0.6012966", "0.5995734", "0.59734833", "0.5964392", "0.5960572", "0.59530175", "0.5947103", "0.5941675", "0.59363556", "0.59202796", "0.59166914", "0.5914897", "0.59125185", "0.5912015", "0.5912015", "0.59117967", "0.5911399", "0.59109694", "0.58986217", "0.588564", "0.587804", "0.587804", "0.587804", "0.587804", "0.587804", "0.587804", "0.587804", "0.587804", "0.587804", "0.587804", "0.587804", "0.587804", "0.587804", "0.587804", "0.587804", "0.5874565", "0.5870593", "0.5863139", "0.58522826", "0.5844983", "0.58442014", "0.58371705", "0.581401", "0.5805614", "0.58033735", "0.57986546", "0.5790211", "0.57827777", "0.5781767", "0.5781447", "0.57789236", "0.5738082", "0.57298136", "0.57273996", "0.57270277", "0.5721451", "0.5710002", "0.5708884", "0.57072043", "0.57048494", "0.56958604", "0.56944", "0.56897986", "0.5688166", "0.5682523", "0.56779647" ]
0.0
-1
Persists this object to the database. If the object is new, it inserts it; otherwise an update is performed. All modified related objects will also be persisted in the doSave() method. This method wraps all precipitate database operations in a single transaction.
public function save(ConnectionInterface $con = null) { if ($this->isDeleted()) { throw new PropelException("You cannot save an object that has been deleted."); } if ($con === null) { $con = Propel::getServiceContainer()->getWriteConnection(TblProdInfoTableMap::DATABASE_NAME); } return $con->transaction(function () use ($con) { $ret = $this->preSave($con); $isInsert = $this->isNew(); if ($isInsert) { $ret = $ret && $this->preInsert($con); } else { $ret = $ret && $this->preUpdate($con); } if ($ret) { $affectedRows = $this->doSave($con); if ($isInsert) { $this->postInsert($con); } else { $this->postUpdate($con); } $this->postSave($con); TblProdInfoTableMap::addInstanceToPool($this); } else { $affectedRows = 0; } return $affectedRows; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n {\n $entity->delete();\n } \n else if ($entity->getMarkedAsUpdated())\n {\n $entity->saveWithDetails();\n }\n }\n }\n );\n }", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }", "public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }", "public function save()\n {\n $this->persist($this->state);\n }", "public function save()\n {\n if ($this->id) {\n $this->update();\n } else {\n $this->id = $this->insert();\n }\n }", "public function commit(): void\n {\n $this->eventDispatcher->dispatchPreFlush();\n\n if (\n $this->objectsToPersist === [] &&\n $this->objectsToUpdate === [] &&\n $this->objectsToRemove === []\n ) {\n return; // Nothing to do.\n }\n\n $objects = array_merge(\n $this->objectsToPersist,\n $this->objectsToUpdate,\n $this->objectsToRemove,\n );\n $this->eventDispatcher->dispatchPreFlushLifecycleCallbacks($objects);\n\n $this->eventDispatcher->dispatchOnFlush();\n\n $this->persister->executePersists();\n $this->persister->executeUpdates();\n $this->persister->executeRemoves();\n\n $this->eventDispatcher->dispatchPostFlush();\n\n $this->objectsToPersist = [];\n $this->objectsToUpdate = [];\n $this->objectsToRemove = [];\n $this->objectChangeSets = new ChangeSets();\n }", "function save() {\n\n\t\t// calls generic ORM save (insert or update)\n\t\tparent::save();\n\n\t}", "public function save()\n {\n $this->_startTransaction();\n $error = false;\n\n try {\n foreach ($this->_objects as $object) {\n $object->save();\n }\n } catch (Exception $e) {\n $error = $e;\n }\n\n if ($error === false) {\n try {\n $this->_runCallbacks();\n } catch (Exception $e) {\n $error = $e;\n }\n }\n\n if ($error) {\n $this->_rollbackTransaction();\n throw $error;\n } else {\n $this->_commitTransaction();\n }\n\n return $this;\n }", "public function save()\n\t{\n\t\t$this->copyAttributesToValues() ;\n\t\tif( $this->factory )\n\t\t{\n\t\t\tswitch( $this->todo )\n\t\t\t{\n\t\t\t\tcase 1: // Insert\n\t\t\t\t\tif( $this->factory->insertObjectIntoDB( $this ) ) $this->state = \"inserted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 2: // update\n\t\t\t\t\tif( $this->factory->updateObjectIntoDB( $this ) ) $this->state = \"updated\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 3: // delete\n\t\t\t\t\tif( $this->factory->deleteObjectIntoDB( $this ) ) $this->state = \"deleted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t}", "public function save()\n {\n $this->_validateModifiable();\n\n if($this->isNew())\n {\n $this->_getDataSource()->create($this);\n }\n else\n {\n $this->_getDataSource()->update($this);\n }\n\n $this->_saveRelations();\n $this->_setNew(false);\n }", "public function persist()\n {\n persistableCollection::getInstance($this->resourceName)->persistObject($this);\n $this->loaded = true;\n $this->persisted = true;\n }", "public function persist() {\n $this->getObjectManager()->persist($this);\n return $this;\n }", "public function save(): void\n {\n $this->em->persist($this->model);\n $this->em->flush();\n }", "public function persist($object);", "public function persistEntity($obj)\n\t{\n\t\t$this->db->persistEntity($obj);\n\t}", "public function persist()\n {\n\n $this->persistor->persist(\n $this->event,\n $this->relatedEntities,\n $this->eventRequest->getApplication(),\n $this->eventRequest->getAccount(),\n $this->eventRequest->getProduct(),\n $this->eventRequest->appendCustomer\n );\n\n }", "public function persist();", "public function save($object)\n {\n $this->entityManager->persist($object);\n $this->entityManager->flush();\n }", "public function save(Mage_Core_Model_Abstract $object)\n {\n if ($object->isDeleted()) {\n return $this->delete($object);\n }\n\n $this->_serializeFields($object);\n $this->_beforeSave($object);\n $this->_checkUnique($object);\n if (!is_null($object->getId()) && (!$this->_useIsObjectNew || !$object->isObjectNew())) {\n $condition = $this->_getWriteAdapter()->quoteInto($this->getIdFieldName().'=?', $object->getId());\n /**\n * Not auto increment primary key support\n */\n if ($this->_isPkAutoIncrement) {\n $data = $this->_prepareDataForSave($object);\n unset($data[$this->getIdFieldName()]);\n $this->_getWriteAdapter()->update($this->_getTableByValue($object), $data, $condition);\n } else {\n $select = $this->_getWriteAdapter()->select()\n ->from($this->_getTableByValue($object, array($this->getIdFieldName())))\n ->where($condition);\n if ($this->_getWriteAdapter()->fetchOne($select) !== false) {\n $data = $this->_prepareDataForSave($object);\n unset($data[$this->getIdFieldName()]);\n if (!empty($data)) {\n $this->_getWriteAdapter()->update($this->_getTableByValue($object), $data, $condition);\n }\n } else {\n $this->_getWriteAdapter()->insert($this->_getTableByValue($object), $this->_prepareDataForSave($object));\n }\n }\n } else {\n $bind = $this->_prepareDataForSave($object);\n if ($this->_isPkAutoIncrement) {\n unset($bind[$this->getIdFieldName()]);\n }\n $this->_getWriteAdapter()->insert($this->_getTableByValue($object), $bind);\n\n $object->setId($this->_getWriteAdapter()->lastInsertId($this->_getTableByValue($object)));\n\n if ($this->_useIsObjectNew) {\n $object->isObjectNew(false);\n }\n }\n\n $this->unserializeFields($object);\n $this->_afterSave($object);\n\n return $this;\n }", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'author_id' => $this->author_id,\n 'clothingname' => $this->clothingname,\n 'clothingtype' => $this->clothingtype,\n 'tempmin' => $this->tempmin,\n 'tempmax' => $this->tempmax\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save() {\n $db = self::getDbConnection();\n $table = static::getTable();\n $data = get_object_vars($this);\n if ($table == 'posts') {\n $data['name'] = Service::get('session')->userEmail;\n }\n\n if (isset($data['id'])) {\n $query = $db->prepare($this->getUpdateString($data, $table));\n } else {\n $query = $db->prepare($this->getInsertString($data, $table));\n }\n\n if (!$query->execute()) {\n throw new DatabaseException('Cant save object');\n }\n }", "public function flush()\n {\n $this->unitOfWork->commit();\n }", "public function save()\n {\n\n // generate all column's sql query\n $column_names = '';\n $column_values = '';\n foreach ($this->columns as $field_name => $column_obj)\n {\n if ($column_obj->columnName === null) {\n $column_names .= $field_name.', ';\n } else {\n $column_names .= $column_obj->columnName.', ';\n }\n $column_values .= $column_obj->generateValueForSQL().', ';\n }\n $column_names = substr($column_names, 0, -1);\n $column_values = substr($column_values, 0, -1);\n $this_table_name = $this->table_name;\n $this_id = $this->id;\n\n if ($this->id === 0) {\n // This object is not saved yet.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values);';\n // Execute query\n } else {\n // This object is on the DB.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values) WHERE id=$this_id;';\n // Execute query\n }\n\n mysql_run_query($query);\n\n }", "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(ArticleTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n ArticleTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(AliMemberTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n AliMemberTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "public function persist($obj)\r\n {\r\n }", "public function save($object = null) {\n if ($object != null) {\n try {\n if ($object->getId() > 0) {\n //return $this->_update($object);\n $where = $this->getAdapter()->quoteInto('objid = ?', $object->getId());\n return $this->update($this->_preparePersistData($object), $where);\n } else {\n //return $this->_insert($object);\n return $this->insert($this->_preparePersistData($object));\n }\n } catch (Exception $e) {\n throw $e;\n }\n } else {\n throw new Agana_Exception('Cannont persist a null object');\n }\n }", "public function save()\n\t{\n\t\t$this->validate();\n\n\t\t$values = $this->_get_save_values();\n\n\t\t// Create\n\t\tif ( ! $this->loaded())\n\t\t{\n\t\t\t// Perform the data layer update.\n\t\t\t$id = DORM::create($this)\n\t\t\t\t->set($values)\n\t\t\t\t->execute();\n\n\t\t\t// @todo: _id is mongo-specific\n\t\t\t$this->set(array('_id' => $id));\n\t\t}\n\n\t\t// Update\n\t\telse\n\t\t{\n\t\t\tDORM::update($this)\n\t\t\t\t->where('_id', '=', $this->id())\n\t\t\t\t->set($values)\n\t\t\t\t->execute();\n\t\t}\n\n\t\t// Reset changed values since last save.\n\t\t$this->_changed = array();\n\t\t$this->_changes = array();\n\n\t\treturn $this;\n\t}", "public function persist() {}", "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(OrdrhedTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n OrdrhedTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "static protected function persist() {\n\t\t$objectManager = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Extbase\\Object\\ObjectManager::class);\n\t\t$persistanceManager = $objectManager->get(\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager::class);\n\t\t$persistanceManager->persistAll();\n\t}", "public function save() {\n // Fail due to attempting to save deleted record \n assert(!$this->hasBeenDeleted);\n \n // Fail if fields are invalid\n $this->validateOrThrow();\n\n // Initialize save record cache, if necessary\n if (!isset(self::$saveRecordPreparedStatementCache)) {\n self::$saveRecordPreparedStatementCache = array();\n }\n\n // Initiate implicit transaction, if needed\n $is_implicit_tx = false;\n if (self::$numTransactions == 0) {\n $is_implicit_tx = true; \n self::beginTx();\n }\n \n // Fail due to invalid database connection\n assert(isset(self::$databaseHandle));\n\n $table_name = static::getTableName();\n\n try {\n // Create save-record prepared statement if non-existant\n if (!isset(self::$saveRecordPreparedStatementCache[$table_name])) {\n $save_query_str = self::genSaveRecordQuery($this->childDbFieldTable);\n self::$saveRecordPreparedStatementCache[$table_name] = \n self::$databaseHandle->prepare($save_query_str);\n }\n\n $save_record_stmt = self::$saveRecordPreparedStatementCache[$table_name];\n\n // Bind record fields \n foreach ($this->childDbFieldTable as $field_name => $field) {\n $save_record_stmt->bindValue(\n self::transformForPreparedStatement($field_name),\n $field->getValue(),\n $field->getDataType()\n );\n }\n\n // Bind 'id' to save query\n $this->bindId($save_record_stmt);\n // Save record fields\n $save_record_stmt->execute();\n } catch (PDOException $e) {\n self::$databaseHandle->rollback();\n die(\"\\nERROR: \" . $e->getMessage() . \"\\n\");\n }\n\n // Close implicit tx\n if ($is_implicit_tx) {\n self::endTx();\n }\n }", "public function save() {\n if ($this->id) {\n return $this->update();\n } else {\n return $this->insert();\n }\n }", "public function save()\n {\n $DB = DB::singleton(dsn());\n\n if ( $this->update ) {\n $SQL = SQL::newUpdate('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addUpdate('entry_' . $column, $this->{$column});\n }\n $SQL->addWhereOpr('entry_id', $this->id);\n $SQL->addWhereOpr('entry_blog_id', $this->blog_id);\n $DB->query($SQL->get(dsn()), 'exec');\n } else {\n $SQL = SQL::newInsert('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addInsert('entry_' . $column, $this->{$column});\n }\n $DB->query($SQL->get(dsn()), 'exec');\n }\n\n EntryHelper::saveColumn($this->units, $this->id, $this->blog_id);\n Common::saveField('eid', $this->id, $this->fields);\n Common::saveFulltext('eid', $this->id, Common::loadEntryFulltext($this->id));\n }", "public function save()\n \t{\n \t $this->getMapper()->save($this);\n \t}", "public function save()\n {\n Logger::getInstance()->po_log(\"PO:save \" . get_class($this));\n\n if (!$this->validate(true)) return false;\n \n //Logger::getInstance()->po_log(\"PO:save post validate\");\n\n $this->executeBeforeSave();\n\n //Logger::getInstance()->on();\n try\n {\n //Logger::getInstance()->po_log(\"PO:save BEGIN\");\n $pm = PersistentManager::getInstance();\n $pm->withTransaction();\n $pm->save($this);\n $pm->commitTransaction();\n //Logger::getInstance()->po_log(\"PO:save COMMIT\");\n }\n catch(Exception $e)\n {\n // TODO: log de $e\n Logger::getInstance()->po_log(\"PO:save ROLLBACK \". $e->getMessage() .\" <pre>\". $e->getTraceAsString() .\"</pre>\");\n \n $pm->rollbackTransaction();\n return false;\n }\n //Logger::getInstance()->off();\n\n $this->executeAfterSave();\n \n // Validacion\n return true;\n }", "public final function persist($object) {\n\t\tif(!property_exists($object, 'id')) {\n\t\t\tthrow new LogicException('In order to persist an object, it must have a unique property called \"id\"');\n\t\t}\n\t\tif(empty($object->id)) {\n\t\t\t// if the id is empty, we want to insert\n\t\t\t$this->insert($object);\n\t\t} else {\n\t\t\t// otherwise, we want to update on that id\n\t\t\t$this->update($object);\n\t\t}\n\t}", "public function saveThis()\n {\n \t\tPersistentSession::getInstance()->saveOrUpdate($this);\n }", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'username' => $this->username,\n 'password_hash' => $this->password_hash,\n 'email' => $this->email,\n 'first_name' => $this->first_name,\n 'last_name' => $this->last_name,\n 'user_type' => $this->user_type,\n 'bio' => $this->bio,\n 'creation_date' => $this->creation_date,\n 'gender' => $this->gender,\n 'color' => $this->color\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save(Entity $entity): void\n {\n $this->db->save($entity);\n }", "public function save() {\n\t\t$args = func_get_args();\n\t\t\n\t\t// no argument, so save current object\n\t\tif (empty($args))\n\t\t\t$o = $this;\n\t\t// argument given, so save that object\n\t\telse\n\t\t\t$o = $args[0];\n\n\t\t// ID is set, so update existing object\n\t\tif (isset($o->id))\n\t\t\treturn $this->update($o->id, $o);\n\n\t\t// ID is not set, so create new object\n\t\treturn $this->add($o);\n\t}", "protected function save()\n\t{\n\t\t$this->saveItems();\n\t\t//$this->saveAssignments();\n\t\t//$this->saveRules();\n\t}", "public function save() \n {\n\t\t$this->setLastUpdateTime(date(MYSQL_DATETIME_FORMAT));\n\n\t\tif($this->getId() ) {\n\t\t\treturn $this->_update();\n\t\t} else {\n\t\t\treturn $this->_insert();\n\t\t}\n\t}", "public function commit()\n {\n if (self::$_transactionLevel == 1) {\n $this->getConnection()->commit();\n }\n \n if (self::$_transactionLevel > 0) {\n self::$_transactionLevel--;\n }\n }", "public function save()\n {\n if ($this->_checkRecordInstance())\n {\n $this->_entity->save();\n }\n return $this;\n }", "public function persist()\n {\n $this->checkPersister();\n\n $this->persister->beginTransaction();\n foreach ($this as $entity) {\n if (!empty($entity)){\n $this->persister->persist($entity);\n }\n }\n\n $this->persister->commitTransaction();\n\n return $this;\n }", "public function save() \r\n\t{\r\n\t\t$this->saveNewProducts();\r\n\t\t$this->saveUpdateProducts();\r\n\t\t$this->saveRemoveProducts();\t\t\t\r\n\t\t$this->destroyCache(); \r\n\t}", "public function save(array $options = array()){\n $colums = $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable());\n\t\tif(in_array('updated_at', $colums)){\n\t\t\t$this->updated_at = Tools::nowDateTime();\n\t\t}\n\t\tif(!$this->exists){\n\t\t\tif(in_array('created_at', $colums)){\n\t\t\t\t$this->created_at = Tools::nowDateTime();\n\t\t\t}\n\t\t\tif(self::withTrashed()->count() > 0){\n\t\t\t\t$largestIdItem = self::withTrashed()->orderBy('id', 'desc')->first();\n\t\t\t\t$this->id = $largestIdItem->id + 1;\n\t\t\t}else{\n\t\t\t\t$this->id = 1;\n\t\t\t}\n\t\t\tif(in_array('order', $colums)){\n\t\t\t\tif($this->order === 0){\n\t\t\t\t\t$largestOrderItem = self::orderBy('order', 'desc')->first();\n\t\t\t\t\tif($largestOrderItem){\n\t\t\t\t\t\t$this->order = $largestOrderItem->order + 1;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->order = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// before save code\n\t\tparent::save();\n\t\t// after save code\n\t}", "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(PhoneBookTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n PhoneBookTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "public function save() {\n\n return isset($this->id) ? $this->update() : $this->create();\n }", "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $isInsert = $this->isNew();\n $ret = $this->preSave($con);\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n // timestampable behavior\n\n if (!$this->isColumnModified(UserTableMap::COL_CREATED_AT)) {\n $this->setCreatedAt(time());\n }\n if (!$this->isColumnModified(UserTableMap::COL_UPDATED_AT)) {\n $this->setUpdatedAt(time());\n }\n } else {\n $ret = $ret && $this->preUpdate($con);\n // timestampable behavior\n if ($this->isModified() && !$this->isColumnModified(UserTableMap::COL_UPDATED_AT)) {\n $this->setUpdatedAt(time());\n }\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n UserTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "public function save() {\n if ($this->loaded) {\n return $this->update();\n }else{\n return $this->create();\n }\n }", "public function save(array $options = array()){\n $colums = $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable());\n if(in_array('updated_at', $colums)){\n $this->updated_at = Tools::nowDateTime();\n }\n if(!$this->exists){\n if(in_array('created_at', $colums)){\n $this->created_at = Tools::nowDateTime();\n }\n if(self::withTrashed()->count() > 0){\n $largestIdItem = self::withTrashed()->orderBy('id', 'desc')->first();\n $this->id = $largestIdItem->id + 1;\n }else{\n $this->id = 1;\n }\n if(in_array('order', $colums)){\n if($this->order === 0){\n $largestOrderItem = self::orderBy('order', 'desc')->first();\n if($largestOrderItem){\n $this->order = $largestOrderItem->order + 1;\n }else{\n $this->order = 1;\n }\n }\n }\n }\n // before save code\n parent::save();\n // after save code\n }", "public function save(PropelPDO $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($con === null) {\n $con = Propel::getConnection(JadwalPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);\n }\n\n $con->beginTransaction();\n $isInsert = $this->isNew();\n try {\n $ret = $this->preSave($con);\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n JadwalPeer::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n $con->commit();\n\n return $affectedRows;\n } catch (Exception $e) {\n $con->rollBack();\n throw $e;\n }\n }", "public function commit()\n {\n if ($this->transactionLevel === 0)\n {\n throw new DatabaseException('transaction-nothing-to-commit');\n }\n \n --$this->transactionLevel;\n \n if ($this->transactionLevel === 0)\n {\n if (!$this->pdo->commit())\n {\n throw new DatabaseException('transaction-commit');\n }\n }\n else\n {\n // Release savepoint, we no longer need it.\n $this->pdo->exec('RELEASE SAVEPOINT LEVEL' . $this->transactionLevel);\n }\n }", "public function save() {\r\n $conn = GFSalsaConnector::instance();\r\n if ($conn) {\r\n $conn->saveObject($this->object, $this);\r\n }\r\n }", "public function save()\n {\n $this->setData(array(\n 'modified' => time(),\n 'modifiedReadable' => Zend_Date::now()->get(Zend_Date::ISO_8601)\n ));\n \n $unmappedData = $this->getBean()->asDeepArray(true);\n if(key_exists('_id', $unmappedData)) {\n unset($unmappedData['_id']);\n }\n\n if (!($id = $this->_save($unmappedData, $this->getId()))) {\n return false;\n }\n\n $this->_setId($id);\n \n return true;\n }", "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(KluBillTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n KluBillTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "public function save()\n {\n // If deposit is new, will get assigned database ID.\n $this->dbID = $this->db->saveDeposit($this);\n }", "public static function save($em, $obj)\n {\n $em->persist($obj);\n $em->flush();\n }", "public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }", "public function persist(Rating $rating)\n {\n if ($rating->getId()) {\n $this->getObjectManager()->flush();\n } else {\n $this->getObjectManager()->persist($rating);\n $this->getObjectManager()->flush();\n }\n }", "public function markAsPersisted(): void;", "public function save()\n {\n if ( !$this->unsaved ) {\n // either nothing has been changed, or data has not been loaded, so\n // do nothing by returning early\n return;\n }\n\n $this->write();\n $this->unsaved = false;\n }", "public function commit()\n {\n $this->getActivePdo()->commit();\n }", "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(SalesHistoryNotesTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n SalesHistoryNotesTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "protected function saveEntity($entity)\n {\n $this->om->persist($entity);\n $this->om->flush($entity);\n }", "public function saveToDb()\n\t{\n\t\t$this->addDocument();\n\t\tparent::saveToDb();\n\t}", "private function saveTracker(): void {\n try {\n $this->getEntityManager()->persist($this->engagement);\n $this->getEntityManager()->flush($this->engagement);\n } catch (OptimisticLockException $e) {\n } catch (ORMException $e) {\n } catch (ForeignKeyConstraintViolationException $e){\n }\n }", "protected function persistObjects() {}", "public function save()\n {\n $this->hasTableName();\n $pk = $this->pk;\n $condition = \"\";\n if ($this->isNew) {\n $sql = \"INSERT INTO \" . $this->table_name . \" SET \";\n $update = '';\n } else {\n if (!isset($this->$pk))\n throw new Exception('Update em objeto sem chave definida', 403);\n\n $sql = \"UPDATE \" . $this->table_name . \" SET \";\n $update = \" WHERE `\" . $this->pk . \"` = '\" . $this->$pk . \"'\";\n }\n foreach ($this->rules() as $key => $validation) {\n if ($this->validateField($key, $validation) && isset($this->$key) && $this->$key != \"\") {\n $sql .= \" `\" . $key . \"` = '\" . $this->$key . \"',\";\n $condition .= \" `\" . $key . \"` = '\" . $this->$key . \"' AND\";\n }\n }\n if (!$this->getErrors()) {\n $sql = substr($sql, 0, -1) . $update;\n if (Database::dbactionf($sql)) {\n if ($this->isNew) {\n $this->$pk = Database::lastID();\n $this->persisted();\n }\n return true;\n }\n }\n return false;\n }", "public function save() {\n\t\tif( $this->isAddingNew() ) {\n\t\t\t//Insert record\n\t\t\t$key = $this->getConnection()->insert( $this->_updateBuffer, $this );\n\n\t\t\t//remove all state from this object (including isAddingNew)\n\t\t\t$this->clear();\n\n\t\t\t//Pull just this new record\n\t\t\t$method = \"where\" . $this->getTable()->getPrimaryKey();\n\t\t\t$this->$method( $key );\n\t\t} else {\n\t\t\t$updatedRecord = $this->getConnection()->update( $this->_updateBuffer, $this );\n\t\t\t$this->_recordset[ $this->_currentRow ] = $updatedRecord[0];\n\t\t}\n\n\t\t$this->_updateBuffer = array();\n\t\treturn $this;\n\t}", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'event_type_id' => $this->event_type_id,\n 'user_1_id' => $this->user_1_id,\n 'user_2_id' => $this->user_2_id,\n 'user_1_name' => $this->user_1_name,\n 'user_2_name' => $this->user_2_name,\n 'product_1_name' => $this->product_1_name,\n 'product_2_name' => $this->product_2_name,\n 'data_1' => $this->data_1,\n 'data_2' => $this->data_2\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "protected function persistAndFlush($entity)\n {\n $this->persist($entity);\n $this->flush();\n }", "public function save() {\n return $this->entity->save();\n }", "public function persist()\n {\n }", "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(BiblioTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n BiblioTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "public function commit()\n {\n if ($this->transactions == 1) {\n $this->getPdo()->commit();\n }\n\n $this->transactions--;\n }", "public function save()\n {\n if ($this->_id === false) {\n return $this->create();\n }\n\n return $this->set();\n }", "public function forsedSave(Mage_Core_Model_Abstract $object)\n {\n $this->_beforeSave($object);\n $bind = $this->_prepareDataForSave($object);\n $adapter = $this->_getWriteAdapter();\n // update\n if (!is_null($object->getId()) && $this->_isPkAutoIncrement) {\n unset($bind[$this->getIdFieldName()]);\n $condition = $adapter->quoteInto($this->getIdFieldName().'=?', $object->getId());\n $adapter->update($this->_getTableByValue($object), $bind, $condition);\n } else {\n $adapter->insertOnDuplicate($this->_getTableByValue($object), $bind, $this->_fieldsForUpdate);\n $object->setId($adapter->lastInsertId($this->_getTableByValue($object)));\n }\n\n $this->_afterSave($object);\n\n return $this;\n }", "public function persist()\n {\n $uid = $this->getIdentifier() == 0 ? 'NEW' . rand(100000, 999999) : $this->getIdentifier();\n $data = [\n trim(static::$storageTableName) => [\n $uid => $this->getPersistableDataArray()\n ]\n ];\n // New records always must have a pid\n if ($this->getIdentifier() == 0) {\n $data[trim(static::$storageTableName)][$uid]['pid'] = 0;\n }\n /** @var \\TYPO3\\CMS\\Core\\DataHandling\\DataHandler $tce */\n $tce = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\DataHandling\\DataHandler::class);\n $tce->start($data, []);\n $tce->process_datamap();\n }", "public function save($object);", "public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}", "public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}", "public function save($object, bool $flush = true);", "public function persist()\n {\n $this->eventManager->dispatchEvent(['persist_before'], [get_class($this)]);\n if (!empty($this->handlerInterface)) {\n $result = $this->handlerFactory->create($this->handlerInterface)->persist($this);\n if (!empty($result)) {\n foreach ($result as $key => $value) {\n $this->data[$key] = $value;\n }\n }\n }\n $this->eventManager->dispatchEvent(['persist_after'], [get_class($this)]);\n }", "protected function saveState(): void\n {\n $em = $this->getEntityManager();\n $em->flush();\n }", "public function save(){\r\n\t\tif ($this->new){\r\n\t\t\treturn $this->insert();\r\n\t\t} else {\r\n\t\t\treturn $this->update();\r\n\t\t}\r\n\t}", "public function save()\n {\n if ($this->_state == 0) {\n // Insert\n $result = static::getLink()->insert(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getColumns(true));\n\n // Primary Key\n $this->_id = static::getLink()->lastInsertId();\n\n /** @var Column $primaryKey */\n $primaryKey = Structure::getTablePrimaryKey($this);\n\n if ($primaryKey->autoIncrement) {\n $this->{$primaryKey->getPropertyField()} = $this->_id;\n }\n\n $this->_state = 1;\n } else {\n // Update\n $result = static::getLink()->update(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getPrimaryKey(),\n array_merge($this->getColumns(true), $this->getPrimaryKey(true)));\n }\n\n return $result;\n }", "protected function persist($entity)\n {\n if (!$this->em()->isOpen()) {\n $this->getDoctrine()->resetManager();\n }\n\n $this->em()->persist($entity);\n $this->em()->flush();\n\n }", "public function save()\n {\n // that is already in this database using the current IDs in this \"where\"\n // clause to only update this model. Otherwise, we'll just insert them.\n if ($this->exists) {\n $saved = $this->newBuilder()->where('_id', $this->convertToMongoId($this->attributes['_id']))->update($this->attributes);\n }\n // If the model is brand new, we'll insert it into our database and set the\n // ID attribute on the model to the value of the newly inserted row's ID\n // which is typically an auto-increment value managed by the database.\n else {\n $saved = $this->newBuilder()->insert($this->attributes);\n }\n\n // TODO: fill() attributes will new or updated values.\n\n return $saved;\n }", "public function single_save()\n {\n //Logger::getInstance()->po_log(\"PO:single_save \" . get_class($this));\n PersistentManager::getInstance()->save_object( $this, 0 );\n }", "public function persist(IEntity $entity): void\n\t{\n\t\t$this->beginTransaction();\n\t\t$data = $this->entityToArray($entity);\n\t\t$data = $this->getConventions()->convertEntityToStorage($data);\n\n\t\tif (!$entity->isPersisted()) {\n\t\t\t$this->processInsert($entity, $data);\n\n\t\t} else {\n\t\t\t$primary = [];\n\t\t\t$id = (array) $entity->getPersistedId();\n\t\t\tforeach ($entity->getMetadata()->getPrimaryKey() as $key) {\n\t\t\t\t$primary[$key] = array_shift($id);\n\t\t\t}\n\t\t\t$primary = $this->getConventions()->convertEntityToStorage($primary);\n\n\t\t\t$this->processUpdate($entity, $data, $primary);\n\t\t}\n\t}", "public function commit() {\n\t$idAvailable = \\is_numeric($this->getId());\n\t//We're checking if the id is available and it's marked for delete. If not, we need to check if the id is available.\n\t//Finally, we need to make sure it hasn't been marked for delete. if it has and there's no id, nothing needs to be\n\t//done.\n\tif ($idAvailable && $this->_markForDelete) {\n\t $this->delete();\n\t}\n\telse if ($idAvailable) {\n\t $this->update();\n\t}\n\telse if (!$this->_markForDelete) {\n\t $this->insert();\n\t}\n }", "public function save() {\n\n $data = array(\n 'name' => $this->getName(),\n 'description' => $this->getDescription(),\n 'metatitle' => $this->getMetatitle(),\n 'metakeywords' => $this->getMetakeywords(),\n 'metadescription' => $this->getMetadescription()\n );\n $data['parent_id'] = 0; // by default it is 0, becouse right now there is no use of parent id in this application\n if (null === ($id = $this->getId())) {\n unset($data['id']);\n $data['status'] = 1;\n return $this->getMapper()->getDbTable()->insert($data);\n } else {\n $data['status'] = $this->getStatus();\n return $this->getMapper()->getDbTable()->update($data, array('id = ?' => $id));\n }\n\n }", "public function persist()\n {\n //\n }", "public function save(PropelPDO $con = null)\n\t{\n if ($this->isNew() && !$this->isColumnModified(UserPeer::CREATED_AT))\n {\n $this->setCreatedAt(time());\n }\n\n\t\tif ($this->isDeleted()) {\n\t\t\tthrow new PropelException(\"You cannot save an object that has been deleted.\");\n\t\t}\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);\n\t\t}\n\t\t\n\t\t$con->beginTransaction();\n\t\ttry {\n\t\t\t$affectedRows = $this->doSave($con);\n\t\t\t$con->commit();\n\t\t\tUserPeer::addInstanceToPool($this);\n\t\t\treturn $affectedRows;\n\t\t} catch (PropelException $e) {\n\t\t\t$con->rollBack();\n\t\t\tthrow $e;\n\t\t}\n\t}", "public function save()\n {\n if (empty($this->newProperties)) {\n return $this->insert();\n }\n\n return $this->update();\n }", "public function persist(array $options = [])\n {\n return tap($this)->save($options);\n }" ]
[ "0.6980629", "0.6950161", "0.6940036", "0.681025", "0.6649549", "0.6628817", "0.65106785", "0.64271766", "0.6425692", "0.6403857", "0.6403092", "0.638929", "0.63706106", "0.6340176", "0.6322265", "0.626634", "0.6264877", "0.62304926", "0.6206293", "0.6080307", "0.60790145", "0.60783666", "0.6075782", "0.60486835", "0.60479695", "0.6047637", "0.60453314", "0.60435677", "0.60239", "0.598581", "0.5964144", "0.59581363", "0.59466726", "0.5930568", "0.5927923", "0.59218216", "0.59147316", "0.5912283", "0.58929294", "0.58877426", "0.5867738", "0.58671385", "0.586156", "0.58597016", "0.58554244", "0.5855205", "0.58422333", "0.5835675", "0.57942945", "0.57763636", "0.57691884", "0.57546365", "0.57515967", "0.57482195", "0.5743987", "0.57436544", "0.5735616", "0.57233346", "0.57210755", "0.57144463", "0.5709014", "0.5705584", "0.57050043", "0.5698627", "0.5694505", "0.56926906", "0.5687198", "0.5672202", "0.5661981", "0.5661283", "0.5660992", "0.5650957", "0.5641451", "0.5639581", "0.56287843", "0.56278646", "0.5626119", "0.5611985", "0.5611802", "0.56053996", "0.5590664", "0.5589074", "0.5584245", "0.5581641", "0.558034", "0.558034", "0.5577208", "0.5572133", "0.5569413", "0.5567021", "0.5565909", "0.5563061", "0.5561564", "0.5561381", "0.5555053", "0.5554587", "0.55441195", "0.55338717", "0.55259514", "0.5521733", "0.55194783" ]
0.0
-1
Performs the work of inserting or updating the row in the database. If the object is new, it inserts it; otherwise an update is performed. All related objects are also updated in this method.
protected function doSave(ConnectionInterface $con) { $affectedRows = 0; // initialize var to track total num of affected rows if (!$this->alreadyInSave) { $this->alreadyInSave = true; // We call the save method on the following object(s) if they // were passed to this object by their corresponding set // method. This object relates to these object(s) by a // foreign key reference. if ($this->aTblEra !== null) { if ($this->aTblEra->isModified() || $this->aTblEra->isNew()) { $affectedRows += $this->aTblEra->save($con); } $this->setTblEra($this->aTblEra); } if ($this->aTblGeneral !== null) { if ($this->aTblGeneral->isModified() || $this->aTblGeneral->isNew()) { $affectedRows += $this->aTblGeneral->save($con); } $this->setTblGeneral($this->aTblGeneral); } if ($this->aTblMenus !== null) { if ($this->aTblMenus->isModified() || $this->aTblMenus->isNew()) { $affectedRows += $this->aTblMenus->save($con); } $this->setTblMenus($this->aTblMenus); } if ($this->aTblProdPhotos !== null) { if ($this->aTblProdPhotos->isModified() || $this->aTblProdPhotos->isNew()) { $affectedRows += $this->aTblProdPhotos->save($con); } $this->setTblProdPhotos($this->aTblProdPhotos); } if ($this->aTblProdPrices !== null) { if ($this->aTblProdPrices->isModified() || $this->aTblProdPrices->isNew()) { $affectedRows += $this->aTblProdPrices->save($con); } $this->setTblProdPrices($this->aTblProdPrices); } if ($this->aTblProdPricing !== null) { if ($this->aTblProdPricing->isModified() || $this->aTblProdPricing->isNew()) { $affectedRows += $this->aTblProdPricing->save($con); } $this->setTblProdPricing($this->aTblProdPricing); } if ($this->aTblProdSmaller !== null) { if ($this->aTblProdSmaller->isModified() || $this->aTblProdSmaller->isNew()) { $affectedRows += $this->aTblProdSmaller->save($con); } $this->setTblProdSmaller($this->aTblProdSmaller); } if ($this->aTblShippingCategories !== null) { if ($this->aTblShippingCategories->isModified() || $this->aTblShippingCategories->isNew()) { $affectedRows += $this->aTblShippingCategories->save($con); } $this->setTblShippingCategories($this->aTblShippingCategories); } if ($this->isNew() || $this->isModified()) { // persist changes if ($this->isNew()) { $this->doInsert($con); $affectedRows += 1; } else { $affectedRows += $this->doUpdate($con); } $this->resetModified(); } $this->alreadyInSave = false; } return $affectedRows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function update() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\t\t\t\r\n\t\t\t$arrBindings = array ();\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"UPDATE $this->sqlTable SET \";\r\n\t\t\t\r\n\t\t\tif (isset ( $this->userid )) {\r\n\t\t\t\t$sql .= \"lp_userid = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->userid;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->random )) {\r\n\t\t\t\t$sql .= \"lp_random = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->random;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->deadline )) {\r\n\t\t\t\t$sql .= \"lp_deadline = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->deadline;\r\n\t\t\t}\r\n\r\n\t\t\t$sql = preg_replace ( '/, $/', '', $sql);\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\t\t\t$arrBindings[] = $this->id;\r\n\t\t\t\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\t\r\n\t\t\t$ks_db->commit ();\r\n\t\t\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }", "function addUpdate() {\n\t\tif ($this->id) $this->update();\n\t\telse $this->insert();\n\t}", "public function save() {\n $db = self::getDbConnection();\n $table = static::getTable();\n $data = get_object_vars($this);\n if ($table == 'posts') {\n $data['name'] = Service::get('session')->userEmail;\n }\n\n if (isset($data['id'])) {\n $query = $db->prepare($this->getUpdateString($data, $table));\n } else {\n $query = $db->prepare($this->getInsertString($data, $table));\n }\n\n if (!$query->execute()) {\n throw new DatabaseException('Cant save object');\n }\n }", "public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }", "function update( \\gb\\domain\\DomainObject $object ) {\n //$this->updateStmt->execute( $values );\n }", "public function save()\n {\n if ($this->id) {\n $this->update();\n } else {\n $this->id = $this->insert();\n }\n }", "public function save() {\n\t\tif( $this->isAddingNew() ) {\n\t\t\t//Insert record\n\t\t\t$key = $this->getConnection()->insert( $this->_updateBuffer, $this );\n\n\t\t\t//remove all state from this object (including isAddingNew)\n\t\t\t$this->clear();\n\n\t\t\t//Pull just this new record\n\t\t\t$method = \"where\" . $this->getTable()->getPrimaryKey();\n\t\t\t$this->$method( $key );\n\t\t} else {\n\t\t\t$updatedRecord = $this->getConnection()->update( $this->_updateBuffer, $this );\n\t\t\t$this->_recordset[ $this->_currentRow ] = $updatedRecord[0];\n\t\t}\n\n\t\t$this->_updateBuffer = array();\n\t\treturn $this;\n\t}", "protected function updateObject()\n {\n $gatewayData = $this->encodeDataToJson();\n\n $query = $this->db->getQuery(true);\n\n $query\n ->update($this->db->quoteName(\"#__crowdf_intentions\"))\n ->set($this->db->quoteName(\"user_id\") . \"=\" . $this->db->quote($this->user_id))\n ->set($this->db->quoteName(\"project_id\") . \"=\" . $this->db->quote($this->project_id))\n ->set($this->db->quoteName(\"reward_id\") . \"=\" . $this->db->quote($this->reward_id))\n ->set($this->db->quoteName(\"unique_key\") . \"=\" . $this->db->quote($this->unique_key))\n ->set($this->db->quoteName(\"gateway\") . \"=\" . $this->db->quote($this->gateway))\n ->set($this->db->quoteName(\"gateway_data\") . \"=\" . $this->db->quote($gatewayData))\n ->set($this->db->quoteName(\"auser_id\") . \"=\" . $this->db->quote($this->auser_id))\n ->set($this->db->quoteName(\"session_id\") . \"=\" . $this->db->quote($this->session_id))\n ->where($this->db->quoteName(\"id\") .\"=\". (int)$this->id);\n\n $this->db->setQuery($query);\n $this->db->execute();\n }", "public function update(){\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = implode(', ', array_map(fn($name) => $name . ' = :' . $name, $fields));\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\t$where = $primaryKey . ' = :' . $primaryKey;\n\t\t$statement = $this->db->prepare('UPDATE ' . $tableName . ' SET ' . $params . ' WHERE ' . $where);\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\t$statement->bindValue(':' . $primaryKey, $this->{$primaryKey});\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected function update() {\n if ($this->_isLoaded()) {\n $this->db->where('id', $this->id);\n $this->db->update($this->tableName, $this->mapToDatabase());\n } else {\n throw new Exception(\"Model is not loaded\");\n }\n }", "public function save()\n {\n\n // generate all column's sql query\n $column_names = '';\n $column_values = '';\n foreach ($this->columns as $field_name => $column_obj)\n {\n if ($column_obj->columnName === null) {\n $column_names .= $field_name.', ';\n } else {\n $column_names .= $column_obj->columnName.', ';\n }\n $column_values .= $column_obj->generateValueForSQL().', ';\n }\n $column_names = substr($column_names, 0, -1);\n $column_values = substr($column_values, 0, -1);\n $this_table_name = $this->table_name;\n $this_id = $this->id;\n\n if ($this->id === 0) {\n // This object is not saved yet.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values);';\n // Execute query\n } else {\n // This object is on the DB.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values) WHERE id=$this_id;';\n // Execute query\n }\n\n mysql_run_query($query);\n\n }", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }", "public function save(){\n\t\t// If primary key is set in model, run an update instead.\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\tif(isset($this->{$primaryKey})){\n\t\t\treturn $this->update();\n\t\t}\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = array_map(fn($name) => ':'.$name, $fields);\n\t\t// Populate statement by imploding the arrays.\n\t\t$statement = $this->db->prepare('INSERT INTO ' . $tableName . ' ( ' . implode(', ', $fields) . ') VALUES (' . implode(', ', $params) . ')');\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function save() {\n\n\t\t// calls generic ORM save (insert or update)\n\t\tparent::save();\n\n\t}", "public abstract function update($object);", "public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }", "public function update()\n\t{\n\t\t$this->getModel()->update($this);\n\t}", "public function save()\n {\n $DB = DB::singleton(dsn());\n\n if ( $this->update ) {\n $SQL = SQL::newUpdate('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addUpdate('entry_' . $column, $this->{$column});\n }\n $SQL->addWhereOpr('entry_id', $this->id);\n $SQL->addWhereOpr('entry_blog_id', $this->blog_id);\n $DB->query($SQL->get(dsn()), 'exec');\n } else {\n $SQL = SQL::newInsert('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addInsert('entry_' . $column, $this->{$column});\n }\n $DB->query($SQL->get(dsn()), 'exec');\n }\n\n EntryHelper::saveColumn($this->units, $this->id, $this->blog_id);\n Common::saveField('eid', $this->id, $this->fields);\n Common::saveFulltext('eid', $this->id, Common::loadEntryFulltext($this->id));\n }", "public function save()\n {\n $this->_validateModifiable();\n\n if($this->isNew())\n {\n $this->_getDataSource()->create($this);\n }\n else\n {\n $this->_getDataSource()->update($this);\n }\n\n $this->_saveRelations();\n $this->_setNew(false);\n }", "public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n {\n $entity->delete();\n } \n else if ($entity->getMarkedAsUpdated())\n {\n $entity->saveWithDetails();\n }\n }\n }\n );\n }", "protected function update()\n {\n $database = cbSQLConnect::connect('object');\n if (isset($database))\n {\n $fields = self::$db_fields;\n foreach($fields as $key)\n {\n $flag = $database->SQLUpdate(\"place\", $key, $this->{$key}, \"id\", $this->id);\n if ($flag == \"fail\")\n {\n break;\n }\n }\n if ($flag == \"fail\")\n {\n return false;\n }\n else\n return $this->id;\n }\n }", "public function update() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$arrBindings = array ();\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with primary key of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"UPDATE $this->sqlTable SET \";\r\n\r\n\t\t\tif (isset ( $this->title )) {\r\n\t\t\t\t$sql .= \"dsh_title = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->title;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->desc )) {\r\n\t\t\t\t$sql .= \"dsh_desc = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->desc;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->portlet )) {\r\n\t\t\t\t$sql .= \"dsh_portlet = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->portlet;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->hide )) {\r\n\t\t\t\t$sql .= \"dsh_hide = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->hide;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->createdBy )) {\r\n\t\t\t\t$sql .= \"dsh_created_by = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->createdBy;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->modifiedBy )) {\r\n\t\t\t\t$sql .= \"dsh_modified_by = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->modifiedBy;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->createdDate )) {\r\n\t\t\t\t$sql .= \"dsh_created_date = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->createdDate;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->modifiedDate )) {\r\n\t\t\t\t$sql .= \"dsh_modified_date = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->modifiedDate;\r\n\t\t\t}\r\n\r\n\t\t\t$sql = preg_replace ( '/, $/', '', $sql);\r\n\t\t\t$sql .= \" WHERE dsh_id = ?\";\r\n\t\t\t$arrBindings[] = $this->id;\r\n\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function save(){\r\n\t\tif ($this->new){\r\n\t\t\treturn $this->insert();\r\n\t\t} else {\r\n\t\t\treturn $this->update();\r\n\t\t}\r\n\t}", "public function save (&$obj) {\n\t\n\t\t// build the identifier\n\t\tif (!$idKey = $this->getIdentifier()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// get data from object\n\t\t$data = $obj->getAllData();\n\t\t\n\t\t// is it set already?\n\t\tif (!isset($data[$idKey])) {\n\t\t\n\t\t\t// build arrays to implode\n\t\t\t$keys = array();\n\t\t\t$plac = array();\n\t\t\t$vals = array();\n\t\t\t\n\t\t\tforeach ($data as $key => $val) {\n\t\t\t\t$keys[] = $key;\n\t\t\t\t$plac[] = \"?\";\n\t\t\t\t$vals[] = $val;\n\t\t\t}\n\t\t\t\n\t\t\t// this is an insert\n\t\t\t$sql = \"INSERT INTO \".DB_PREFIX.$this->tableName.\" (\".implode($keys, \",\").\") VALUES (\".implode($plac, \",\").\")\";\n\t\t\t$sth = $this->db->prepare($sql);\n\t\t\t$rv = $sth->execute($vals);\n\t\t\t\n\t\t\t// if successful, reload\n\t\t\tif ($rv) {\n\t\t\t\t$obj = $this->getById($this->db->lastInsertId());\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t\n\t\t\t// this is an update\n\t\t\t$identifier = $data[$idKey];\n\t\t\tunset($data[$idKey]);\n\t\t\t\n\t\t\t$sql = \"UPDATE \".DB_PREFIX.$this->tableName.\" SET \";\n\t\t\t$updateSql = \"\";\n\t\t\t$updateVars = array();\n\t\t\t\n\t\t\tforeach ($data as $key => $val) {\n\t\t\t\t$updateSql .= \"$key = ?, \";\n\t\t\t\t$updateVars[] = $val;\n\t\t\t}\n\t\t\t\n\t\t\t$sql .= substr($updateSql, 0, -2) . \" \";\n\t\t\t$sql .= \"WHERE $idKey = \" . $identifier;\n\t\t\t\n\t\t\t$sth = $this->db->prepare($sql);\n\t\t\t$rv = $sth->execute($updateVars);\n\t\t\n\t\t}\n\t\t\n\t\t// return result\n\t\treturn $rv;\n\t\n\t}", "public function save() \n\t{\n\t\tif (isset($this->id)) {\t\n\t\t\n\t\t\t// Return update when id exists\n\t\t\treturn $this->update();\n\t\t\t\n\t\t} else {\n\t\t\n\t\t\t// Return insert when id does not exists\n\t\t\treturn $this->insert();\n\t\t}\n\t}", "public function __doSave()\n {\n $_SESSION[\"logger\"]->info(get_class($this) . '->__doSave');\n $_SESSION[\"logger\"]->info($this->toDebugStr());\n\n if (!$this->__exists()) {\n $strSQL = $this->getInsertSql();\n } else {\n $strSQL = $this->getUpdateSql();\n }\n $result = $this->query($strSQL);\n\n return $result;\n }", "public function save()\n { \n return $this->checkForRows() ? $this->updateRow() : $this->insertRow();\n }", "public function save()\n\t{\n\t\t$this->copyAttributesToValues() ;\n\t\tif( $this->factory )\n\t\t{\n\t\t\tswitch( $this->todo )\n\t\t\t{\n\t\t\t\tcase 1: // Insert\n\t\t\t\t\tif( $this->factory->insertObjectIntoDB( $this ) ) $this->state = \"inserted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 2: // update\n\t\t\t\t\tif( $this->factory->updateObjectIntoDB( $this ) ) $this->state = \"updated\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 3: // delete\n\t\t\t\t\tif( $this->factory->deleteObjectIntoDB( $this ) ) $this->state = \"deleted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t}", "public function save()\n {\n if ($this->_state == 0) {\n // Insert\n $result = static::getLink()->insert(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getColumns(true));\n\n // Primary Key\n $this->_id = static::getLink()->lastInsertId();\n\n /** @var Column $primaryKey */\n $primaryKey = Structure::getTablePrimaryKey($this);\n\n if ($primaryKey->autoIncrement) {\n $this->{$primaryKey->getPropertyField()} = $this->_id;\n }\n\n $this->_state = 1;\n } else {\n // Update\n $result = static::getLink()->update(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getPrimaryKey(),\n array_merge($this->getColumns(true), $this->getPrimaryKey(true)));\n }\n\n return $result;\n }", "public function save() {\n if ($this->id) {\n return $this->update();\n } else {\n return $this->insert();\n }\n }", "function save() {\n\n\t\tif ( $this->exists ) {\n\t\t\t// update changed fields\n\t\t\t$changed_data = array_intersect_key( $this->data, array_flip( $this->changed_fields ) );\n\n\t\t\t// serialize\n\t\t\t$changed_data = array_map( 'maybe_serialize', $changed_data );\n\n\t\t\tif ( empty( $changed_data ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t$queue_id = $this->get_id();\n\n\t\t\t$updated = $this->update( $queue_id, $changed_data );\n\n\t\t\tif ( false === $updated ) {\n\t\t\t\t// Return here to prevent cache updates on error\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tdo_action( 'ig_es_object_update', $this ); // cleans object cache\n\t\t} else {\n\t\t\t$this->set_created_at( new DateTime() );\n\t\t\t$this->data = array_map( 'maybe_serialize', $this->data );\n\t\t\t\n\t\t\t// insert row\n\t\t\t$queue_id = $this->insert( $this->data );\n\n\t\t\tif ( $queue_id ) {\n\t\t\t\t$this->exists = true;\n\t\t\t\t$this->id = $queue_id;\n\t\t\t} else {\n\n\t\t\t\tES()->logger->error( sprintf( __( 'Could not insert into \\'%1$s\\' table. \\'%1$s\\' may not be present in the database.', 'email-subscribers' ), $this->table_name ), $this->logger_context );\n\n\t\t\t\t// Return here to prevent cache updates on error\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// reset changed data\n\t\t// important to reset after cache hooks\n\t\t$this->changed_fields = [];\n\t\t$this->original_data = $this->data;\n\n\t\treturn true;\n\t}", "private function add_record_or_update_record() {\n\t\t\t$this->before_custom_save();\n\t\t\t$this->before_save();\n\t\t\tif($this->new_record) {\n\t\t\t\t$this->before_create();\n\t\t\t\t$result = $this->add_record();\n\t\t\t\t$this->after_create();\n\t\t\t} else {\n\t\t\t\t$this->before_update();\n\t\t\t\t$result = $this->update_record();\n\t\t\t\t$this->after_update();\n\t\t\t}\n\t\t\t$this->after_save();\n\n\t\t\t// init user custom cache\n\t\t\tif (is_array($this->cache)) {\n\t\t\t\t$this->rebuild_cache();\n\t\t\t}\n\n\t\t\tif($this->blob_fields) {\n\t\t\t\t$this->update_blob_fields();\n\t\t\t}\n\t\t\treturn $result;\n\t\t}", "public function update() {\n // Get the values that are currently in the database\n $curr_vals = $this->read_single();\n\n // Set the values that will be added to the table\n foreach ($curr_vals as $key => $value) {\n // Convert key from the Database's capitalization to\n // this model's attribute capitalization style (all lowercase)\n $local_key = strtolower($key);\n // If user didn't specify property\n if (($this->attr[$local_key] === \"\") || ($this->attr[$local_key] === null)){\n // Then use the value that's already in the database\n $this->attr[$local_key] = $curr_vals[$key];\n }\n }\n\n // Create query\n $query = \"UPDATE \" . $this->table .\n \" SET = \" .\n \" WHERE MID = :mid AND Spot = :spot \";\n\n // Prepare statement\n $stmt = $this->conn->prepare($query);\n\n // Clean the data (reduce malicious SQL injection, etc.)\n foreach ($this->attr as $key => $value) {\n $this->attr[$key] = htmlspecialchars(strip_tags($value));\n }\n \n // Bind the data to a variable for an SQL attribute\n foreach ($this->attr as $key => $value) {\n $stmt->bindValue((\":\" . $key), $value);\n }\n\n // Execute the prepared statement and check for errors in running it\n return $this->runPrepStmtChkErr($stmt);\n }", "public function save(){\n\n if (!$this->preSave()) {\n return FALSE;\n }\n\n $reference = $this->_getReference();\n $pk = $this->_getPK();\n\n $data = get_object_vars($this);\n\n if (empty($pk) && $pk !== NULL) {\n throw new \\Exception('Model PK is empty!');\n }\n\n if (is_array($pk)) {\n $pkv = [];\n $_pkv = [];\n $insert = TRUE;\n foreach ($pk as $c) {\n if (!empty($data[$c])) {\n $pkv[] = $data[$c];\n $_pkv[$c] = $data[$c];\n // unset($data[$c]);\n $insert = FALSE;\n }\n }\n\n if (!$insert) {\n $insert = is_null(self::getWhere($_pkv));\n }\n\n\n } else {\n $pkv = !empty($data[$pk]) ? $data[$pk] : NULL;\n $_pkv = [$pk => $pkv];\n\n // Se for AUTO INCREMENT remove dos campos a serem INSERIDOS/ALTERADOS\n if (self::_isPkAi())\n unset($data[$pk]);\n\n $insert = empty($pkv);\n }\n\n unset($data['__error']);\n\n foreach ($data as $key => $value) {\n if (strpos($key, '_') === 0)\n unset($data[$key]);\n }\n\n if ($insert) {\n\n if (array_key_exists('created', $data))\n $data['created'] = Date('Y-m-d H:i:s');\n\n if (array_key_exists('updated', $data))\n unset($data['updated']);\n\n\n $res = self::$connection->insert($reference, $data)->execute();\n\n if ($res && $pk !== NULL && !is_array($pk))\n $this->{'set'.$pk}(self::$connection->lastInsertId());\n\n } else {\n\n if (array_key_exists('updated', $data))\n $data['updated'] = Date('Y-m-d H:i:s');\n\n if (array_key_exists('created', $data))\n unset($data['created']);\n\n $res = self::$connection->update($reference, $data, $_pkv)->execute();\n\n }\n\n if ($res)\n $this->refresh();\n\n $this->afterSave($res);\n\n return $res;\n\n }", "protected function doSave($con)\n\t{\n\t\t$affectedRows = 0; // initialize var to track total num of affected rows\n\t\tif (!$this->alreadyInSave) {\n\t\t\t$this->alreadyInSave = true;\n\n\n\t\t\t// We call the save method on the following object(s) if they\n\t\t\t// were passed to this object by their coresponding set\n\t\t\t// method. This object relates to these object(s) by a\n\t\t\t// foreign key reference.\n\n\t\t\tif ($this->aSerial !== null) {\n\t\t\t\tif ($this->aSerial->isModified() || $this->aSerial->getCurrentSerialI18n()->isModified()) {\n\t\t\t\t\t$affectedRows += $this->aSerial->save($con);\n\t\t\t\t}\n\t\t\t\t$this->setSerial($this->aSerial);\n\t\t\t}\n\n\t\t\tif ($this->aPrecinct !== null) {\n\t\t\t\tif ($this->aPrecinct->isModified() || $this->aPrecinct->getCurrentPrecinctI18n()->isModified()) {\n\t\t\t\t\t$affectedRows += $this->aPrecinct->save($con);\n\t\t\t\t}\n\t\t\t\t$this->setPrecinct($this->aPrecinct);\n\t\t\t}\n\n\t\t\tif ($this->aGenre !== null) {\n\t\t\t\tif ($this->aGenre->isModified() || $this->aGenre->getCurrentGenreI18n()->isModified()) {\n\t\t\t\t\t$affectedRows += $this->aGenre->save($con);\n\t\t\t\t}\n\t\t\t\t$this->setGenre($this->aGenre);\n\t\t\t}\n\n\t\t\tif ($this->aBroadcast !== null) {\n\t\t\t\tif ($this->aBroadcast->isModified() || $this->aBroadcast->getCurrentBroadcastI18n()->isModified()) {\n\t\t\t\t\t$affectedRows += $this->aBroadcast->save($con);\n\t\t\t\t}\n\t\t\t\t$this->setBroadcast($this->aBroadcast);\n\t\t\t}\n\n\n\t\t\t// If this object has been modified, then save it to the database.\n\t\t\tif ($this->isModified()) {\n\t\t\t\tif ($this->isNew()) {\n\t\t\t\t\t$pk = MmPeer::doInsert($this, $con);\n\t\t\t\t\t$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which\n\t\t\t\t\t\t\t\t\t\t // should always be true here (even though technically\n\t\t\t\t\t\t\t\t\t\t // BasePeer::doInsert() can insert multiple rows).\n\n\t\t\t\t\t$this->setId($pk); //[IMV] update autoincrement primary key\n\n\t\t\t\t\t$this->setNew(false);\n\t\t\t\t} else {\n\t\t\t\t\t$affectedRows += MmPeer::doUpdate($this, $con);\n\t\t\t\t}\n\t\t\t\t$this->resetModified(); // [HL] After being saved an object is no longer 'modified'\n\t\t\t}\n\n\t\t\tif ($this->collMmI18ns !== null) {\n\t\t\t\tforeach($this->collMmI18ns as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collFiles !== null) {\n\t\t\t\tforeach($this->collFiles as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collLinks !== null) {\n\t\t\t\tforeach($this->collLinks as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collMmPersons !== null) {\n\t\t\t\tforeach($this->collMmPersons as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPicMms !== null) {\n\t\t\t\tforeach($this->collPicMms as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collGroundMms !== null) {\n\t\t\t\tforeach($this->collGroundMms as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collMaterials !== null) {\n\t\t\t\tforeach($this->collMaterials as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collLogTranscodings !== null) {\n\t\t\t\tforeach($this->collLogTranscodings as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collTranscodings !== null) {\n\t\t\t\tforeach($this->collTranscodings as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPubChannelMms !== null) {\n\t\t\t\tforeach($this->collPubChannelMms as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collAnnounceChannelMms !== null) {\n\t\t\t\tforeach($this->collAnnounceChannelMms as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collMmMatterhorns !== null) {\n\t\t\t\tforeach($this->collMmMatterhorns as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collCategoryMms !== null) {\n\t\t\t\tforeach($this->collCategoryMms as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collCategoryMmTimeframes !== null) {\n\t\t\t\tforeach($this->collCategoryMmTimeframes as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->alreadyInSave = false;\n\t\t}\n\t\treturn $affectedRows;\n\t}", "public function update() {\n global $DB;\n $record = array(\n 'sortorder' => $this->sortorder,\n 'criterion' => $this->criterion,\n 'addinfo' => json_encode($this->addinfo)\n );\n if ($this->id) {\n $record['id'] = $this->id;\n $DB->update_record($this->get_table_name(), $record);\n } else {\n $record['instantquizid'] = $this->instantquiz->id;\n $this->id = $DB->insert_record($this->get_table_name(), $record);\n }\n }", "public function save(Mage_Core_Model_Abstract $object)\n {\n if ($object->isDeleted()) {\n return $this->delete($object);\n }\n\n $this->_serializeFields($object);\n $this->_beforeSave($object);\n $this->_checkUnique($object);\n if (!is_null($object->getId()) && (!$this->_useIsObjectNew || !$object->isObjectNew())) {\n $condition = $this->_getWriteAdapter()->quoteInto($this->getIdFieldName().'=?', $object->getId());\n /**\n * Not auto increment primary key support\n */\n if ($this->_isPkAutoIncrement) {\n $data = $this->_prepareDataForSave($object);\n unset($data[$this->getIdFieldName()]);\n $this->_getWriteAdapter()->update($this->_getTableByValue($object), $data, $condition);\n } else {\n $select = $this->_getWriteAdapter()->select()\n ->from($this->_getTableByValue($object, array($this->getIdFieldName())))\n ->where($condition);\n if ($this->_getWriteAdapter()->fetchOne($select) !== false) {\n $data = $this->_prepareDataForSave($object);\n unset($data[$this->getIdFieldName()]);\n if (!empty($data)) {\n $this->_getWriteAdapter()->update($this->_getTableByValue($object), $data, $condition);\n }\n } else {\n $this->_getWriteAdapter()->insert($this->_getTableByValue($object), $this->_prepareDataForSave($object));\n }\n }\n } else {\n $bind = $this->_prepareDataForSave($object);\n if ($this->_isPkAutoIncrement) {\n unset($bind[$this->getIdFieldName()]);\n }\n $this->_getWriteAdapter()->insert($this->_getTableByValue($object), $bind);\n\n $object->setId($this->_getWriteAdapter()->lastInsertId($this->_getTableByValue($object)));\n\n if ($this->_useIsObjectNew) {\n $object->isObjectNew(false);\n }\n }\n\n $this->unserializeFields($object);\n $this->_afterSave($object);\n\n return $this;\n }", "public function save()\n {\n $this->hasTableName();\n $pk = $this->pk;\n $condition = \"\";\n if ($this->isNew) {\n $sql = \"INSERT INTO \" . $this->table_name . \" SET \";\n $update = '';\n } else {\n if (!isset($this->$pk))\n throw new Exception('Update em objeto sem chave definida', 403);\n\n $sql = \"UPDATE \" . $this->table_name . \" SET \";\n $update = \" WHERE `\" . $this->pk . \"` = '\" . $this->$pk . \"'\";\n }\n foreach ($this->rules() as $key => $validation) {\n if ($this->validateField($key, $validation) && isset($this->$key) && $this->$key != \"\") {\n $sql .= \" `\" . $key . \"` = '\" . $this->$key . \"',\";\n $condition .= \" `\" . $key . \"` = '\" . $this->$key . \"' AND\";\n }\n }\n if (!$this->getErrors()) {\n $sql = substr($sql, 0, -1) . $update;\n if (Database::dbactionf($sql)) {\n if ($this->isNew) {\n $this->$pk = Database::lastID();\n $this->persisted();\n }\n return true;\n }\n }\n return false;\n }", "public function save() : bool {\n\t\t// Check if record is new\n\t\t$isNew = isset($this->{$this->primaryKey}) && $this->{$this->primaryKey} ? false : true;\n\n\t\tif ($isNew) {\n\t\t\t// Insert\n\t\t\t$this->database->query('INSERT INTO ' . $this->tableNamePrefixed, $this->getValuesForDatabase());\n\t\t\tif ($this->database->getInsertId()) {\n\t\t\t\t$this->{$this->primaryKey} = $this->database->getInsertId();\n\t\t\t}\n\t\t} else {\n\t\t\t// Update\n\t\t\t$this->database->query(\n\t\t\t\t'UPDATE ' . $this->tableNamePrefixed . ' SET',\n\t\t\t\t$this->getValuesForDatabase(),\n\t\t\t\t'WHERE ' . $this->primaryKey . ' = ?', $this->{$this->primaryKey}\n\t\t\t);\n\t\t}\n\n\t\treturn true;\n\t}", "public function save() \n {\n\t\t$this->setLastUpdateTime(date(MYSQL_DATETIME_FORMAT));\n\n\t\tif($this->getId() ) {\n\t\t\treturn $this->_update();\n\t\t} else {\n\t\t\treturn $this->_insert();\n\t\t}\n\t}", "public function save(){\n\t\t$v = get_object_vars($this);\n\t\tunset($v['TABLE']);\n\t\tunset($v['IS_UPDATING']);\n\t\t$key_s = \"\";\n\t\t$key_v = \"\";\n\t\tforeach($v as $key => $val){\n\t\t\t$key_s .= \"$key, \";\n\t\t\t$key_v .= \"'$val', \";\n\t\t}\n\t\t$key_s = substr_replace($key_s, '', strlen($key_s)-2);\n\t\t$key_v = substr_replace($key_v, '', strlen($key_v)-2);\n\t\tif($this->IS_UPDATING){\n\t\t\t$str = \"\";\n\t\t\tunset($v['id']);\n\t\t\tforeach($v as $key => $val){\n\t\t\t\t$str .= $key . \"='$val', \";\n\t\t\t}\n\t\t\t$str = substr_replace($str, '', strlen($str)-2);\n\t\t\t$query = \"UPDATE {$this->TABLE} SET $str WHERE id = {$this->id}\";\n\t\t} else {\n\t\t\t$query = \"INSERT INTO {$this->TABLE} ($key_s) VALUES ($key_v)\";\n\t\t}\n\t\t$q = parent::query($query);\n\t\treturn $q;\n\t}", "public function ApplyChanges()\n {\n parent::ApplyChanges();\n\n // Update data\n $this->Update();\n }", "public function save()\n {\n $rc = true;\n $ak = array_keys($this->_objData);\n if (isset($this->_objData[$ak[0]][$this->_objField]) && $this->_objData[$ak[0]][$this->_objField]) {\n $rc = $this->update();\n } else {\n $rc = $this->insert();\n }\n return $rc;\n }", "public function save()\r\n {\r\n if( empty($this->dirty) ) return true;\r\n \r\n $pkName = $this->pkName();\r\n //is it an update?\r\n if( isset($this->data[$pkName]) ){\r\n $this->table->update($this->dirty, \"{$pkName}=?\", array($this->data[$pkName]) );\r\n $merged_data[$pkName] = $this->data[$pkName];\r\n } else {\r\n //it's an insert\r\n $merged_data = array_merge(\r\n $this->array_diff_schema($this->dirty),\r\n $this->array_diff_schema($this->data)\r\n );\r\n $this->table->insert($merged_data);\r\n $pk = $this->pkName();\r\n if( !isset($merged_data[$pk]) )\r\n $merged_data[$pk] = $this->table->lastInsertId();\r\n }\r\n $this->reset($merged_data);\r\n return true;\r\n }", "public function Save()\r\n\t\t{\r\n\t\t\tif ($this->id == -1) {\r\n\t\t\t\tunset($this->columns[\"id\"]);\r\n\t\t\t\t$sqlCol = null;\r\n\t\t\t\t$sqlKey = null;\r\n\t\t\t\tforeach ($this->columns as $column => $value) {\r\n\t\t\t\t\t$data[$column] = $this->$column;\r\n\t\t\t\t\t$sqlCol .= \",\" . $column;\r\n\t\t\t\t\t$sqlKey .= \",:\" . $column;\r\n\t\t\t\t}\r\n\t\t\t\t$sqlCol = ltrim($sqlCol, \",\");\r\n\t\t\t\t$sqlKey = ltrim($sqlKey, \",\");\r\n\t\t\t\t$query = $this->db->prepare(\r\n\t\t\t\t\t\"INSERT INTO \" . $this->table . \" (\" . $sqlCol . \")\r\n\t\t\t\t\t\tVALUES (\" . $sqlKey . \") ;\"\r\n\t\t\t\t);\r\n\t\t\t\t$query->execute($data);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\t// Sinon faire un update dynamique\r\n\t\t\t\t$sqlSet = null;\r\n\t\t\t\tforeach ($this->columns as $column => $value) {\r\n\t\t\t\t\t$data[$column] = $this->$column;\r\n\t\t\t\t\t$sqlSet[] .= $column . \"=:\" . $column;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Suppression de la mise à jour de la date d'update \r\n\t\t\t\t// la mise à jour des dates est maintenant faites en BDD.\r\n\t\t\t\t$query = $this->db->prepare(\r\n\t\t\t\t\t\"UPDATE \" . $this->table . \" SET \r\n\t\t\t\t\t\t\" . implode(\",\", $sqlSet) . \"\r\n\t\t\t\t\t\tWHERE id=:id;\"\r\n\t\t\t\t);\r\n\r\n\t\t\t\t$query->execute($data);\r\n\t\t\t}\r\n\t\t}", "public function store()\n {\n $this->filtrarCampos();\n\n // verifica se tem ID ou se existe na base de dados\n if (empty($this->data['id']) or (!$this->load($this->id))) {\n // incrementa o ID\n $this->id = $this->getLast() + 1;\n // cria uma instruo de insert\n $sql = new TSqlInsert;\n $sql->setEntity($this->getEntity());\n // percorre os dados do objeto\n foreach ($this->data as $key => $value) {\n // passa os dados do objeto para o SQL\n $sql->setRowData($key, $this->$key);\n }\n } else {\n // instancia instruo de update\n $sql = new TSqlUpdate;\n $sql->setEntity($this->getEntity());\n // cria um critrio de seleo baseado no ID\n $criteria = new TCriteria;\n $criteria->add(new TFilter('id', '=', $this->id));\n $sql->setCriteria($criteria);\n // percorre os dados do objeto\n foreach ($this->data as $key => $value) {\n if ($key !== 'id') // o ID no precisa ir no UPDATE\n {\n // passa os dados do objeto para o SQL\n $sql->setRowData($key, $this->$key);\n }\n }\n }\n // inicia transao\n if ($conn = TTransaction::get()) {\n\n // faz o log e executa o SQL\n TTransaction::log($sql->getInstruction());\n $result = $conn->exec($sql->getInstruction());\n\n // retorna o resultado\n return $result;\n } else {\n // se no tiver transao, retorna uma exceo\n throw new \\Exception('No h transao ativa !!');\n }\n }", "public function update() {\r\n\t\t$this->getMapper()->update($this);\r\n\t}", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'author_id' => $this->author_id,\n 'clothingname' => $this->clothingname,\n 'clothingtype' => $this->clothingtype,\n 'tempmin' => $this->tempmin,\n 'tempmax' => $this->tempmax\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "private function _update() {\n\n $this->db->replace(XCMS_Tables::TABLE_USERS, $this->getArray());\n $this->attributes->save();\n\n }", "public function save()\n {\n $this->validate();\n if (!empty($this->_errors)) {\n return false;\n }\n\n if ($this->beforeSave() == false) {\n return false;\n }\n\n $schema = static::getSchema();\n $saveValues = array();\n foreach ($this as $col => $val) {\n if ($schema[$col]['type'] == 'datetime' && $this->$col !== null) {\n $val = $this->$col->setTimezone('UTC')->toDateTimeString();\n }\n\n if ($col == 'created' || $col == 'modified') {\n continue;\n }\n\n if (array_key_exists($col, $schema)) {\n $saveValues[$col] = $val;\n }\n }\n\n // If ID is not null, then UPDATE row in the database, else INSERT new row\n if ($this->{\"{$this->_idField}\"}) {\n // Update query\n if (array_key_exists('modified', static::getSchema())) {\n $this->modified = Carbon::now();\n $saveValues['modified'] = $this->modified->setTimezone('UTC')->toDateTimeString();\n }\n\n $success = static::queryBuilder()->update($saveValues)->where(array('id' => $this->{$this->_idField}))->execute();\n }\n else {\n // Insert query\n if (array_key_exists('created', static::getSchema())) {\n $this->created = Carbon::now();\n $saveValues['created'] = $this->created->setTimezone('UTC')->toDateTimeString();\n }\n\n $success = static::queryBuilder()->insert($saveValues)->execute();\n\n $this->{\"{$this->_idField}\"} = self::$_db->lastInsertId();\n }\n\n if ($this->afterSave() == false) {\n return false;\n }\n\n return $success;\n }", "function update($primary){\n $this->primary=$primary;\n //\n //create the update\n $update= new update($this, $primary);\n //\n //Execute the the insert\n $update->query($this->entity->get_parent());\n }", "public function insert() {\r\n\t\t$this->getMapper()->insert($this);\r\n\t}", "public function save(){\n\t\t$res = true;\n\t\t$changedData = $this->changedData();\n\t\tif(count($changedData)){\n\t\t\tif(!empty($this->orig)){\n\t\t\t\t$res = (dbHelper::updateQry($this->tableName,$changedData,array($this->primaryKey=>$this->data[$this->primaryKey]))?true:false);\n\t\t\t\t$this->orig = $this->data;\n\t\t\t} else {\n\t\t\t\t//if this row has been deleted but someone else saves data to it this will automatically restore the row from $data\n\t\t\t\t$res = (dbHelper::insertQry($this->tableName,$this->data)?true:false);\n\t\t\t\t$this->data[$this->primaryKey] = db::insertID();\n\t\t\t\tdbData::addRow($this->tableName,$this->primaryKey,$this->data);\n\t\t\t\t$this->orig =& dbData::rowRefrence($this->tableName,$this->primaryKey,$this->data[$this->primaryKey]);\n\t\t\t}\n\t\t}\n\t\treturn $res;\n\t}", "public function save(){\n\t\ttry {\n\t\t\t$params = array();\n\n\t\t\t//insert\n\t\t\tif( empty($this->_data['id']) ){\n\t\t\t\t$action = 'add';\n\n\t\t\t\t//build the insert starting from self::$fields\n\t\t\t\t$fields = array();\n\t\t\t\t$values = array();\n\n\t\t\t\tforeach( self::$_fields[$this->_table] as $key ){\n\t\t\t\t\tif( $key != 'id' ){\n\t\t\t\t\t\t$fields[] = $key;\n\n\t\t\t\t\t\tif( isset($this->_data[$key]) && !is_null($this->_data[$key]) ){\n\t\t\t\t\t\t\t$values[] = ':'.$key;\n\t\t\t\t\t\t\t$params[':'.$key] = $this->_data[$key];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$fields = implode(', ', $fields);\n\t\t\t\t$values = implode(', ', $values);\n\t\t\t\t$sql = \"INSERT INTO \".$this->_table.\" (\".$fields.\") VALUES (\".$values.\")\";\n\n\t\t\t//update\n\t\t\t} else {\n\t\t\t\t$action = 'update';\n\n\t\t\t\t//build the update starting from self::$fields\n\t\t\t\t$where = '';\n\t\t\t\t$field_value = '';\n\n\t\t\t\tforeach( self::$_fields[$this->_table] as $key ){\n\t\t\t\t\tif( $key == 'id' ){\n\t\t\t\t\t\t$where = ' '.$key.' = :id';\n\t\t\t\t\t\t$params[':id'] = $this->_data[$key];\n\n\t\t\t\t\t} elseif( isset($this->_data[$key]) and !is_null($this->_data[$key]) ){\n\t\t\t\t\t\t$field_value .= ' '.$key.' = :'.$key.',';\n\t\t\t\t\t\t$params[':'.$key] = $this->_data[$key];\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$field_value .= ' '.$key.' = NULL,';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$field_value = substr($field_value, 0, -1);\n\t\t\t\t$sql = \"UPDATE \".$this->_table.\" SET \".$field_value.\" WHERE \".$where;\n\t\t\t}\n\n\t\t\t$q = $this->_db->prepare($sql);\n\n\t\t\t$q->execute($params);\n\n\t\t\tif( empty($this->_data['id']) ){\n\t\t\t\t$this->_data['id'] = $this->_db->lastInsertId();\n\t\t\t}\n\n\t\t\treturn true;\n\n\t\t} catch ( PDOException $e ){\n\t\t\terreur_pdo( $e, get_class( $this ), __FUNCTION__ );\n\t\t}\n\t}", "public function save() {\r\n $dateNow = date('Y-m-d H:i:s', time());\r\n $this->id = (int) $this->id;\r\n \r\n if (!empty($this->id)) {\r\n //update case\r\n if ($this->_update()) {\r\n return true;\r\n }\r\n }\r\n else {\r\n //Insert case\r\n if ($this->_insert()) {\r\n return true;\r\n }\r\n }\r\n }", "public function save() {\n return $this->{static::$primaryKey} === null? $this->create() : $this->update();\n }", "public function save() {\n if($this->hasUid){\n //Create new uid, and varify that it hasn't been used.\n //This might take a bit of overhead, but useful for ensuring you don't have duplicate UID's in any table\n $uniqueID = new uniqueID();\n $UID = $uniqueID->shorten($uniqueID->generate()); //final shortened userId\n\n while (!checkUidIsUnique($UID)) {\n $uniqueID = new uniqueID();\n $UID = $uniqueID->shorten($uniqueID->generate()); //final shortened userId\n }\n\n $this->uid = $UID;\n }\n \n //Check if we are creating a new object\n if ($this->uid == \"\" && $this->id == \"\") {\n $newFields = array();\n foreach ($this as $key => $value) {\n //Skip disregarded fields\n foreach($this->disregard as $disregard){\n if($key == $disregard){\n continue 2;\n }\n }\n \n $ins[] = ':' . $key;\n array_push($newFields, $key);\n }\n $ins = implode(',', $ins);\n $fields = implode(',', $newFields);\n \n //Get the current database time\n $NetworkConnection = new NetworkConnection();\n $PDO = $NetworkConnection->getNewDbConnection();\n \n $stmt = $PDO->prepare(\"SELECT NOW() today\");\n $stmt->execute();\n $dateTime = $stmt->fetch();\n $this->created_at = $dateTime[0]->today;\n $NetworkConnection->closeConnection();\n \n\n try {\n $NetworkConnection = new NetworkConnection();\n $PDO = $NetworkConnection->getNewDbConnection();\n \n $stmt = $PDO->prepare(\"INSERT INTO \" . $this->tableName .\" ($fields) VALUES ($ins)\");\n foreach ($this as $key => $value) {\n //Skip disregarded fields\n foreach($this->disregard as $disregard){\n if($key == $disregard){\n continue 2;\n }\n }\n $stmt->bindValue(':' . $key, $value);\n \n }\n var_dump($stmt);exit();\n $result = $stmt->execute();\n \n $NetworkConnection->closeConnection();\n \n if ($result && $this->hasUid) {\n //Created new lead entry\n $newUID = new UID(array(\"uid\" => $UID, \"table_name\" => $this->tableName));\n $newUID->save();\n return $this;\n }else{\n return $this;\n }\n } catch (Exception $ex) {\n echo $ex->getMessage();\n }\n } else {\n \n $fields = array();\n $set = '';\n $x = 1;\n\n //TODO:: JMJ think this is reminent of old code, consider for removal\n //$this->created_at = date(\"Y-m-d H:i:s\");\n\n foreach ($this as $key => $value) {\n //Skip disregarded fields\n foreach($this->disregard as $disregard){\n if($key == $disregard){\n continue 2;\n }\n }\n array_push($fields, $key);\n }\n\n for ($x = 0; $x < count($fields); $x++) {\n $set .= \"{$fields[$x]} = ?\";\n if ($x < count($fields) - 1) {\n $set .= ', ';\n }\n }\n\n //Update existing entry\n $NetworkConnection = new NetworkConnection();\n $PDO = $NetworkConnection->getNewDbConnection();\n \n if(!$this->hasUid){\n $stmt = $PDO->prepare(\"UPDATE \" . $this->tableName .\" SET {$set} WHERE id=?\");\n }else{\n $stmt = $PDO->prepare(\"UPDATE \" . $this->tableName .\" SET {$set} WHERE uid=?\");\n }\n for ($i = 0; $i < count($fields); $i++) {\n\n $stmt->bindParam($i + 1, $this->{$fields[$i]});\n if ($i + 1 == count($fields)) {\n if(!$this->hasUid){\n $stmt->bindParam($i + 2, $this->id);\n }else{\n $stmt->bindParam($i + 2, $this->uid);\n }\n \n }\n }\n\n $result = $stmt->execute();\n \n $NetworkConnection->closeConnection();\n \n if ($result) {\n return $this;\n }\n }\n }", "protected function doSave(ConnectionInterface $con)\n {\n $affectedRows = 0; // initialize var to track total num of affected rows\n if (!$this->alreadyInSave) {\n $this->alreadyInSave = true;\n\n // We call the save method on the following object(s) if they\n // were passed to this object by their corresponding set\n // method. This object relates to these object(s) by a\n // foreign key reference.\n\n if ($this->aPublisher !== null) {\n if ($this->aPublisher->isModified() || $this->aPublisher->isNew()) {\n $affectedRows += $this->aPublisher->save($con);\n }\n $this->setPublisher($this->aPublisher);\n }\n\n if ($this->aLanguage !== null) {\n if ($this->aLanguage->isModified() || $this->aLanguage->isNew()) {\n $affectedRows += $this->aLanguage->save($con);\n }\n $this->setLanguage($this->aLanguage);\n }\n\n if ($this->aPlace !== null) {\n if ($this->aPlace->isModified() || $this->aPlace->isNew()) {\n $affectedRows += $this->aPlace->save($con);\n }\n $this->setPlace($this->aPlace);\n }\n\n if ($this->aFrequency !== null) {\n if ($this->aFrequency->isModified() || $this->aFrequency->isNew()) {\n $affectedRows += $this->aFrequency->save($con);\n }\n $this->setFrequency($this->aFrequency);\n }\n\n if ($this->aUser !== null) {\n if ($this->aUser->isModified() || $this->aUser->isNew()) {\n $affectedRows += $this->aUser->save($con);\n }\n $this->setUser($this->aUser);\n }\n\n if ($this->isNew() || $this->isModified()) {\n // persist changes\n if ($this->isNew()) {\n $this->doInsert($con);\n $affectedRows += 1;\n } else {\n $affectedRows += $this->doUpdate($con);\n }\n $this->resetModified();\n }\n\n if ($this->authorsScheduledForDeletion !== null) {\n if (!$this->authorsScheduledForDeletion->isEmpty()) {\n $pks = array();\n foreach ($this->authorsScheduledForDeletion as $entry) {\n $entryPk = [];\n\n $entryPk[0] = $this->getBiblioId();\n $entryPk[1] = $entry->getAuthorId();\n $pks[] = $entryPk;\n }\n\n \\Slims\\Models\\Masterfile\\BiblioAuthor\\BiblioAuthorQuery::create()\n ->filterByPrimaryKeys($pks)\n ->delete($con);\n\n $this->authorsScheduledForDeletion = null;\n }\n\n }\n\n if ($this->collAuthors) {\n foreach ($this->collAuthors as $author) {\n if (!$author->isDeleted() && ($author->isNew() || $author->isModified())) {\n $author->save($con);\n }\n }\n }\n\n\n if ($this->topicsScheduledForDeletion !== null) {\n if (!$this->topicsScheduledForDeletion->isEmpty()) {\n $pks = array();\n foreach ($this->topicsScheduledForDeletion as $entry) {\n $entryPk = [];\n\n $entryPk[0] = $this->getBiblioId();\n $entryPk[1] = $entry->getTopicId();\n $pks[] = $entryPk;\n }\n\n \\Slims\\Models\\Masterfile\\BiblioTopic\\BiblioTopicQuery::create()\n ->filterByPrimaryKeys($pks)\n ->delete($con);\n\n $this->topicsScheduledForDeletion = null;\n }\n\n }\n\n if ($this->collTopics) {\n foreach ($this->collTopics as $topic) {\n if (!$topic->isDeleted() && ($topic->isNew() || $topic->isModified())) {\n $topic->save($con);\n }\n }\n }\n\n\n if ($this->biblioAuthorsScheduledForDeletion !== null) {\n if (!$this->biblioAuthorsScheduledForDeletion->isEmpty()) {\n \\Slims\\Models\\Masterfile\\BiblioAuthor\\BiblioAuthorQuery::create()\n ->filterByPrimaryKeys($this->biblioAuthorsScheduledForDeletion->getPrimaryKeys(false))\n ->delete($con);\n $this->biblioAuthorsScheduledForDeletion = null;\n }\n }\n\n if ($this->collBiblioAuthors !== null) {\n foreach ($this->collBiblioAuthors as $referrerFK) {\n if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) {\n $affectedRows += $referrerFK->save($con);\n }\n }\n }\n\n if ($this->biblioTopicsScheduledForDeletion !== null) {\n if (!$this->biblioTopicsScheduledForDeletion->isEmpty()) {\n \\Slims\\Models\\Masterfile\\BiblioTopic\\BiblioTopicQuery::create()\n ->filterByPrimaryKeys($this->biblioTopicsScheduledForDeletion->getPrimaryKeys(false))\n ->delete($con);\n $this->biblioTopicsScheduledForDeletion = null;\n }\n }\n\n if ($this->collBiblioTopics !== null) {\n foreach ($this->collBiblioTopics as $referrerFK) {\n if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) {\n $affectedRows += $referrerFK->save($con);\n }\n }\n }\n\n if ($this->itemsScheduledForDeletion !== null) {\n if (!$this->itemsScheduledForDeletion->isEmpty()) {\n \\Slims\\Models\\Bibliography\\Item\\ItemQuery::create()\n ->filterByPrimaryKeys($this->itemsScheduledForDeletion->getPrimaryKeys(false))\n ->delete($con);\n $this->itemsScheduledForDeletion = null;\n }\n }\n\n if ($this->collItems !== null) {\n foreach ($this->collItems as $referrerFK) {\n if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) {\n $affectedRows += $referrerFK->save($con);\n }\n }\n }\n\n $this->alreadyInSave = false;\n\n }\n\n return $affectedRows;\n }", "protected function performInsert()\n {\n $attributes = $this->getAttributes();\n $updatedField = $this->getApi()->{'create'.ucfirst($this->getEntity())}($attributes);\n $this->fill($updatedField);\n $this->exists = true;\n $this->wasRecentlyCreated = true;\n\n return true;\n }", "public function save(){\r\n\t \t\treturn isset($this->id) ? $this->update() : $this->create();\r\n\t\t}", "protected function doSave(PropelPDO $con)\n\t{\n\t\t$affectedRows = 0; // initialize var to track total num of affected rows\n\t\tif (!$this->alreadyInSave) {\n\t\t\t$this->alreadyInSave = true;\n\n\t\t\t// We call the save method on the following object(s) if they\n\t\t\t// were passed to this object by their coresponding set\n\t\t\t// method. This object relates to these object(s) by a\n\t\t\t// foreign key reference.\n\n\t\t\tif ($this->aPartie !== null) {\n\t\t\t\tif ($this->aPartie->isModified() || $this->aPartie->isNew()) {\n\t\t\t\t\t$affectedRows += $this->aPartie->save($con);\n\t\t\t\t}\n\t\t\t\t$this->setPartie($this->aPartie);\n\t\t\t}\n\n\t\t\tif ($this->aPostRelatedByReplicaPostId !== null) {\n\t\t\t\tif ($this->aPostRelatedByReplicaPostId->isModified() || $this->aPostRelatedByReplicaPostId->isNew()) {\n\t\t\t\t\t$affectedRows += $this->aPostRelatedByReplicaPostId->save($con);\n\t\t\t\t}\n\t\t\t\t$this->setPostRelatedByReplicaPostId($this->aPostRelatedByReplicaPostId);\n\t\t\t}\n\n\t\t\tif ($this->isNew() ) {\n\t\t\t\t$this->modifiedColumns[] = PostPeer::ID;\n\t\t\t}\n\n\t\t\t// If this object has been modified, then save it to the database.\n\t\t\tif ($this->isModified()) {\n\t\t\t\tif ($this->isNew()) {\n\t\t\t\t\t$pk = PostPeer::doInsert($this, $con);\n\t\t\t\t\t$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which\n\t\t\t\t\t\t\t\t\t\t // should always be true here (even though technically\n\t\t\t\t\t\t\t\t\t\t // BasePeer::doInsert() can insert multiple rows).\n\n\t\t\t\t\t$this->setId($pk); //[IMV] update autoincrement primary key\n\n\t\t\t\t\t$this->setNew(false);\n\t\t\t\t} else {\n\t\t\t\t\t$affectedRows += PostPeer::doUpdate($this, $con);\n\t\t\t\t}\n\n\t\t\t\t$this->resetModified(); // [HL] After being saved an object is no longer 'modified'\n\t\t\t}\n\n\t\t\tif ($this->collPostBadges !== null) {\n\t\t\t\tforeach ($this->collPostBadges as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collInappropriates !== null) {\n\t\t\t\tforeach ($this->collInappropriates as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPostsRelatedByReplicaPostId !== null) {\n\t\t\t\tforeach ($this->collPostsRelatedByReplicaPostId as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPostPollAnswers !== null) {\n\t\t\t\tforeach ($this->collPostPollAnswers as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPostPollVotes !== null) {\n\t\t\t\tforeach ($this->collPostPollVotes as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPostVisitss !== null) {\n\t\t\t\tforeach ($this->collPostVisitss as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPostDailyStatss !== null) {\n\t\t\t\tforeach ($this->collPostDailyStatss as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPostIndexs !== null) {\n\t\t\t\tforeach ($this->collPostIndexs as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->alreadyInSave = false;\n\n\t\t}\n\t\treturn $affectedRows;\n\t}", "public function save() {\r\n if ($this->model->getId()) {\r\n return $this->model->update();\r\n }\r\n return $this->create();\r\n }", "public function update(){\r\n\t\tif (!$this->hasChanged) return self::RES_UNCHANGED;\r\n\t\t$table = $this->getTable();\r\n\t\tif ($this->new){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the record doesn't exist.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\tif (!$table->hasPrimaryKey()){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the table does not have a primary key.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$this->beforeCommit();\r\n\t\t\r\n\t\t$vals = array();\r\n\t\t$where = array();\r\n\t\t$changeCount = 0;\r\n\t\t$error = false;\r\n\t\tforeach ($this->values as $name=>$value){\r\n\t\t\tif ($value->isErroneous()){\r\n\t\t\t\tFramework::reportErrorField($name);\r\n\t\t\t\t$error = true;\r\n\t\t\t}\r\n\t\t\tif ($value->hasChanged()){\r\n\t\t\t\t$vals[] = \"`$name` = \".$value->getSQLValue();\r\n\t\t\t\t$changeCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($error){\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($table->getPrimaryKey()->getColumns() as $name){\r\n\t\t\t$where[] = \"`$name` = \".$this->values[$name]->getSQLValue();\r\n\t\t}\r\n\t\t$sql = 'UPDATE '.$this->getFullTableName().' SET '.implode(', ',$vals).' WHERE '.implode(' AND ',$where).' LIMIT 1';\r\n\t\tif (!SQL::query($sql)->success()){\r\n\t\t\tMessages::msg('Failed to update record in '.$this->getFullTableName().'.',Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t$this->hasChanged = false;\r\n\t\tforeach ($this->values as $value){\r\n\t\t\t$value->setHasChanged(false);\r\n\t\t}\r\n\t\t\r\n\t\t$this->afterCommit();\r\n\t\t\r\n\t\treturn self::RES_SUCCESS;\r\n\t}", "public function save() {\n\t\tif ( ! $this->dirty()) return true;\n\n\t\tif (static::$timestamps) {\n\t\t\t$this->timestamp();\n\t\t}\n\n\t\t$this->fire_event('saving');\n\n\t\t// If the model exists, we only need to update it in the database, and the update\n\t\t// will be considered successful if there is one affected row returned from the\n\t\t// fluent query instance. We'll set the where condition automatically.\n\t\tif ($this->exists) {\n\t\t\t$query = $this->query()->where(static::$key, '=', $this->get_key());\n\n\t\t\t$result = $query->update($this->get_dirty()) === 1;\n\n\t\t\tif ($result) $this->fire_event('updated');\n\t\t}\n\n\t\t// If the model does not exist, we will insert the record and retrieve the last\n\t\t// insert ID that is associated with the model. If the ID returned is numeric\n\t\t// then we can consider the insert successful.\n\t\telse {\n\t\t\t$id = $this->query()->insert_get_id($this->attributes, $this->key());\n\n\t\t\t$this->set_key($id);\n\n\t\t\t$this->exists = $result = is_numeric($this->get_key());\n\n\t\t\tif ($result) $this->fire_event('created');\n\t\t}\n\n\t\t// After the model has been \"saved\", we will set the original attributes to\n\t\t// match the current attributes so the model will not be viewed as being\n\t\t// dirty and subsequent calls won't hit the database.\n\t\t$this->original = $this->attributes;\n\n\t\tif ($result) {\n\t\t\t$this->fire_event('saved');\n\t\t}\n\n\t\treturn $result;\n\t}", "public function save() {\n\t\t$args = func_get_args();\n\t\t\n\t\t// no argument, so save current object\n\t\tif (empty($args))\n\t\t\t$o = $this;\n\t\t// argument given, so save that object\n\t\telse\n\t\t\t$o = $args[0];\n\n\t\t// ID is set, so update existing object\n\t\tif (isset($o->id))\n\t\t\treturn $this->update($o->id, $o);\n\n\t\t// ID is not set, so create new object\n\t\treturn $this->add($o);\n\t}", "public function MyUpdate() {\n //var_dump($rs);\n\n DB::beginTransaction();\n\n\n /*\n DB::transaction(function() {\n $article = Articles::create(array(\n ''\n ));\n });\n */\n }", "public function save()\n {\n $data = $this->getSaveData();\n $errorString = '<h5 class=\"alert-heading\">Can\\'t save ' . $this->entityName . ' because of the following problems:</h5>';\n\n $errors = $this->checkRequiredColumns( $data );\n if ( !empty( $errors ) ) {\n return $this->addError( $errorString . HTMLTags::getListGroup( $errors ) );\n }\n\n if ( defined( 'DEBUG' ) && DEBUG === true ) {\n $dataToSave = !empty( $data ) ? $this->getDataHTMLTable( $data ) : 'None';\n $this->messages->add(\n 'Entity - ' . $this->entityName\n . '<br>Changed - ' . print_r( $this->changed, true )\n . '<br>Data to save - ' . $dataToSave\n . '<br>All column properties - ' . $dataToSave,\n 'info'\n );\n }\n $errors = $this->healthCheck();\n if ( !empty( $errors ) ) {\n return $this->addError( $errorString . HTMLTags::getListGroup( $errors ) );\n }\n if ( $this->exists ) {\n return $this->updateDBRow( $data );\n }\n $addRow = $this->addDBRow( $data );\n if ( is_int( $addRow ) ) {\n $this->id = $addRow;\n $this->exists = true;\n }\n return $addRow;\n }", "public function forsedSave(Mage_Core_Model_Abstract $object)\n {\n $this->_beforeSave($object);\n $bind = $this->_prepareDataForSave($object);\n $adapter = $this->_getWriteAdapter();\n // update\n if (!is_null($object->getId()) && $this->_isPkAutoIncrement) {\n unset($bind[$this->getIdFieldName()]);\n $condition = $adapter->quoteInto($this->getIdFieldName().'=?', $object->getId());\n $adapter->update($this->_getTableByValue($object), $bind, $condition);\n } else {\n $adapter->insertOnDuplicate($this->_getTableByValue($object), $bind, $this->_fieldsForUpdate);\n $object->setId($adapter->lastInsertId($this->_getTableByValue($object)));\n }\n\n $this->_afterSave($object);\n\n return $this;\n }", "protected function performUpdate()\n {\n // Once we have run the update operation, we will fire the \"updated\" event for\n // this model instance. This will allow developers to hook into these after\n // models are updated, giving them a chance to do any special processing.\n $dirty = $this->getDirty();\n\n if (count($dirty) > 0) {\n $updatedField = $this->getApi()->{'update'.ucfirst($this->getEntity())}($this->{$this->primaryKey}, $dirty);\n $this->fill($updatedField);\n $this->syncChanges();\n }\n\n return true;\n }", "public function save()\n\t{\n\t\tif( $this->isExist )\n\t\t{\n\t\t\treturn $this->update();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->insert();\n\t\t}\n\t}", "public static function save()\n\t{\n//\t\t{\n//\t\t\techo static::$error;\n//\t\t\treturn false;\n//\t\t}\n\n\t\t$instance = static::$_instance[static::_getTable()];\n\t\t$columns = DB::getColumnListing(static::$_table);\n\n\t\tif (@$instance->id)\n\t\t{\n\t\t\tDB::where($instance->id);\n\n\t\t\tif (in_array('updated', $columns))\n\t\t\t\t$instance->updated = date('Y-m-d H:i:s');\n\n\t\t\tif (in_array('updater', $columns))\n\t\t\t\t$instance->updater = (int)Auth::identity()->id;\n\n\t\t\tDB::table(static::$_table)->update($instance);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (in_array('ordering', $columns))\n\t\t\t\t$instance->ordering = DB::table(static::$_table)->getNewOrdering();\n\n\t\t\tif (in_array('created', $columns))\n\t\t\t\t$instance->created = date('Y-m-d H:i:s');\n\n\t\t\tif (in_array('creator', $columns))\n\t\t\t\t$instance->creator = (int)Auth::identity()->id;\n\n\t\t\tDB::table(static::$_table)->insert($instance);\n\t\t\t$instance->id = DB::getLastInsertId();\n\t\t}\n\n\t\treturn true;\n\t}", "abstract protected function updateModel();", "public function save()\n {\n $obj = $this->get_save_array();\n\n foreach ($obj as $key => $value)\n {\n $this->db->set($key, $value);\n }\n\n if (!$this->id || $this->id === null)\n {\n // insert\n $result = $this->db->insert($this->table);\n $saved_object = !$result ? false : $this->getByID($this->getLastID());\n }\n else\n {\n // update\n $this->db->where(array('id' => (int)$this->id));\n $result = $this->db->update($this->table);\n $saved_object = !$result ? false : $this->getByID($this->id);\n }\n\n return $saved_object;\n\n }", "public function submit()\n\t{\n\t\t$identifier = $this->sql_id_field;\n\n\t\tif (!$this->$identifier)\n\t\t{\n\t\t\treturn $this->insert();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->update();\n\t\t}\n\t}", "function update(){\n\t\t$this->model->update();\n\t}", "public function update(){\n\n\t\t/* set method */\n\t\t$this->request_method = 'update';\n\t\t\t\t\n\t\t/* check for a model id */\n\t\tif( ! $this->id) {\n\t\t\t$this->set_error( 10, 'No model id in request, cant update' );\n\t\t\treturn;\t\t\t\n\t\t}\n\t\t\n\t\t/* read the data received from backbone */\n\t\t$this->parse_model_request();\n\n\t\tif($this->get_errors())\n\t\t\treturn;\n\t\t\t\t\t\n\t\t/* get the parsed post data from request */\n\t\t$item_data = $this->parsed_model_request;\n\t\t \t\t\t \t\n\t\t/* insert database */\n\t\tswitch( $this->properties->modelclass ) {\n\t\t\n\t\t\t/* posts */\n\t\t\tcase('post'):\n\t\t\tcase('attachment'):\n\t\t\t\t$post = $item_data['post'];\n\t\t\t\t\n\t\t\t\t/* privileg check */ //improve this for coded api calls, like when setting up bootstrap data (for reading it is no problem any way, because this check is only made for update and create and delete)\n\t\t\t\tif( $this->properties->access == \"loggedin\" && ! current_user_can('edit_post', $this->id)) { \n\t\t\t\t\t$this->set_error( 11, 'no user privileges to update the item on server' );\n\t\t\t\t\treturn;\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t$result = wp_update_post( $post );\n\t\t\t\t\n\t\t\t\t/* maybe an error while updating */\n\t\t\t\tif( ! $result) {\n\t\t\t\t\t$this->set_error( 12, 'updating the item failed on the server' );\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* geting the id means update was a success */\n\t\t\t\t$updated_id = $result;\n\t\t\t\t\n\t\t\t\t/* save custom data, this only method does all the magic, \n\t\t\t\tdetails must be specified in the custom package handlers */\n\t\t\t\t$this->_action_custom_package_data( $updated_id, $item_data);\t\n\t\t\t\t\n\t\t\t\t/* set a clean response */\n\t\t\t\t$this->parse_model_response($updated_id);\t\n\t\t\tbreak;\n\t\t\t\n\t\t\t/* comment */\n\t\t\tcase('comment'):\n\t\t\t\t$comment = $item_data['comment'];\n\t\t\t\t\n\t\t\t\t/* comment updateding is not supported */\n\t\t\t\t$this->set_error( 13, 'comments cant be updated!' );\n\t\t\t\t\treturn; \n\t\t\tbreak;\n\t\t\tcase('user'):\n\t\t\t//@TODO\n\t\t\tbreak;\n\t\t\tcase('idone'):\n\t\t\t\t$new_id = $this->id;\n\t\t\t\t$this->_action_custom_package_data( $new_id, $item_data);\t\t\t\t\t\n\t\t\t\t$this->parse_model_response($new_id);\t\t\n\t\t\tbreak;\n\t\t}\n do_action('bb-wp-api_after_update', $updated_id, $this->properties, $this );\n\t\n\t}", "protected function performUpdate() {}", "public function save(){\n\n\t\t$this->_connect();\n\t\t$exists = $this->_exists();\n\n\t\tif($exists==false){\n\t\t\t$this->_operationMade = self::OP_CREATE;\n\t\t} else {\n\t\t\t$this->_operationMade = self::OP_UPDATE;\n\t\t}\n\n\t\t// Run Validation Callbacks Before\n\t\t$this->_errorMessages = array();\n\t\tif(self::$_disableEvents==false){\n\t\t\tif($this->_callEvent('beforeValidation')===false){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(!$exists){\n\t\t\t\tif($this->_callEvent('beforeValidationOnCreate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif($this->_callEvent('beforeValidationOnUpdate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generadores\n\t\t$className = get_class($this);\n\t\t$generator = null;\n\t\tif(EntityManager::hasGenerator($className)){\n\t\t\t$generator = EntityManager::getEntityGenerator($className);\n\t\t\t$generator->setIdentifier($this);\n\t\t}\n\n\t\t//LLaves foráneas virtuales\n\t\tif(EntityManager::hasForeignKeys($className)){\n\t\t\t$foreignKeys = EntityManager::getForeignKeys($className);\n\t\t\t$error = false;\n\t\t\tforeach($foreignKeys as $indexKey => $keyDescription){\n\t\t\t\t$entity = EntityManager::getEntityInstance($indexKey, false);\n\t\t\t\t$field = $keyDescription['fi'];\n\t\t\t\tif($this->$field==''){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$conditions = $keyDescription['rf'].' = \\''.$this->$field.'\\'';\n\t\t\t\tif(isset($keyDescription['op']['conditions'])){\n\t\t\t\t\t$conditions.= ' AND '.$keyDescription['op']['conditions'];\n\t\t\t\t}\n\t\t\t\t$rowcount = $entity->count($conditions);\n\t\t\t\tif($rowcount==0){\n\t\t\t\t\tif(isset($keyDescription['op']['message'])){\n\t\t\t\t\t\t$userMessage = $keyDescription['op']['message'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$userMessage = 'El valor de \"'.$keyDescription['fi'].'\" no existe en la tabla referencia';\n\t\t\t\t\t}\n\t\t\t\t\t$message = new ActiveRecordMessage($userMessage, $keyDescription['fi'], 'ConstraintViolation');\n\t\t\t\t\t$this->appendMessage($message);\n\t\t\t\t\t$error = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($error==true){\n\t\t\t\t$this->_callEvent('onValidationFails');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t$notNull = $this->_getNotNullAttributes();\n\t\t$at = $this->_getDatesAtAttributes();\n\t\t$in = $this->_getDatesInAttributes();\n\t\tif(is_array($notNull)){\n\t\t\t$error = false;\n\t\t\t$numFields = count($notNull);\n\t\t\tfor($i=0;$i<$numFields;++$i){\n\t\t\t\t$field = $notNull[$i];\n\t\t\t\tif($this->$field===null||$this->$field===''){\n\t\t\t\t\tif(!$exists&&$field=='id'){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif(!$exists){\n\t\t\t\t\t\tif(isset($at[$field])){\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(isset($in[$field])){\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$field = str_replace('_id', '', $field);\n\t\t\t\t\t$message = new ActiveRecordMessage(\"El campo $field no puede ser nulo ''\", $field, 'PresenceOf');\n\t\t\t\t\t$this->appendMessage($message);\n\t\t\t\t\t$error = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($error==true){\n\t\t\t\t$this->_callEvent('onValidationFails');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Run Validation\n\t\tif($this->_callEvent('validation')===false){\n\t\t\t$this->_callEvent('onValidationFails');\n\t\t\treturn false;\n\t\t}\n\n\t\tif(self::$_disableEvents==false){\n\t\t\t// Run Validation Callbacks After\n\t\t\tif(!$exists){\n\t\t\t\tif($this->_callEvent('afterValidationOnCreate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif($this->_callEvent('afterValidationOnUpdate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($this->_callEvent('afterValidation')===false){\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Run Before Callbacks\n\t\t\tif($this->_callEvent('beforeSave')===false){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif($exists){\n\t\t\t\tif($this->_callEvent('beforeUpdate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif($this->_callEvent('beforeCreate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif($this->_schema){\n\t\t\t$table = $this->_schema.'.'.$this->_source;\n\t\t} else {\n\t\t\t$table = $this->_source;\n\t\t}\n\n\t\t$magicQuotesRuntime = get_magic_quotes_runtime();\n\t\t$dataType = $this->_getDataTypes();\n\t\t$primaryKeys = $this->_getPrimaryKeyAttributes();\n\t\t$dataTypeNumeric = $this->_getDataTypesNumeric();\n\t\tif($exists){\n\t\t\tif(self::$_dynamicUpdate==false){\n\t\t\t\t$fields = array();\n\t\t\t\t$values = array();\n\t\t\t\t$nonPrimary = $this->_getNonPrimaryKeyAttributes();\n\t\t\t\tforeach($nonPrimary as $np){\n\t\t\t\t\tif(isset($in[$np])){\n\t\t\t\t\t\t$this->$np = Date::now();\n\t\t\t\t\t}\n\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\tif(is_object($this->$np)&&($this->$np instanceof DbRawValue)){\n\t\t\t\t\t\t$values[] = $this->$np->getValue();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif($this->$np===''||$this->$np===null){\n\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(!isset($dataTypeNumeric[$np])){\n\t\t\t\t\t\t\t\tif($dataType[$np]=='date'){\n\t\t\t\t\t\t\t\t\t$values[] = $this->_db->getDateUsingFormat($this->$np);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$values[] = '\\''.addslashes($this->$np).'\\'';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$values[] = '\\''.addslashes($this->$np).'\\'';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$conditions = array();\n\t\t\t\tforeach($primaryKeys as $field){\n\t\t\t\t\t$conditions[] = $field.' = \\''.$this->field.'\\'';\n\t\t\t\t}\n\t\t\t\t$pkCondition = join(' AND ', $conditions);\n\t\t\t\t$existRecord = clone $this;\n\t\t\t\t$record = $existRecord->findFirst($pkCondition);\n\t\t\t\t$fields = array();\n\t\t\t\t$values = array();\n\t\t\t\t$nonPrimary = $this->_getNonPrimaryKeyAttributes();\n\t\t\t\tforeach($nonPrimary as $np){\n\t\t\t\t\tif(isset($in[$np])){\n\t\t\t\t\t\t$this->$np = $this->_db->getCurrentDate();\n\t\t\t\t\t}\n\t\t\t\t\tif(is_object($this->$np)){\n\t\t\t\t\t\tif($this->$np instanceof DbRawValue){\n\t\t\t\t\t\t\t$value = $this->$np->getValue();\n\t\t\t\t\t\t\tif($record->$np!=$value){\n\t\t\t\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\t\t\t\t$values[] = $values;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new ActiveRecordException('El objeto instancia de \"'.get_class($this->$field).'\" en el campo \"'.$field.'\" es muy complejo, debe realizarle un \"cast\" a un tipo de dato escalar antes de almacenarlo');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif($this->$np===''||$this->$np===null){\n\t\t\t\t\t\t\tif($record->$np!==''&&$record->$np!==null){\n\t\t\t\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(!isset($dataTypeNumeric[$np])){\n\t\t\t\t\t\t\t\tif($dataType[$np]=='date'){\n\t\t\t\t\t\t\t\t\t$value = $this->_db->getDateUsingFormat($this->$np);\n\t\t\t\t\t\t\t\t\tif($record->$np!=$value){\n\t\t\t\t\t\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\t\t\t\t\t\t$values[] = $value;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tif($record->$np!=$this->$np){\n\t\t\t\t\t\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\t\t\t\t\t\t$values[] = \"'\".addslashes($this->$np).\"'\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$success = $this->_db->update($table, $fields, $values, $this->_wherePk);\n\t\t} else {\n\t\t\t$fields = array();\n\t\t\t$values = array();\n\t\t\t$attributes = $this->getAttributes();\n\t\t\tforeach($attributes as $field){\n\t\t\t\tif($field!='id'){\n\t\t\t\t\tif(isset($at[$field])){\n\t\t\t\t\t\tif($this->$field==null||$this->$field===\"\"){\n\t\t\t\t\t\t\t$this->$field = $this->_db->getCurrentDate();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(isset($in[$field])){\n\t\t\t\t\t\t\t$this->$field = new DbRawValue('NULL');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$fields[] = $field;\n\t\t\t\t\tif(is_object($this->$field)){\n\t\t\t\t\t\tif($this->$field instanceof DbRawValue){\n\t\t\t\t\t\t\t$values[] = $this->$field->getValue();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new ActiveRecordException('El objeto instancia de \"'.get_class($this->$field).'\" en el campo \"'.$field.'\" es muy complejo, debe realizarle un \"cast\" a un tipo de dato escalar antes de almacenarlo');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(isset($dataTypeNumeric[$field])||$this->$field=='NULL'){\n\t\t\t\t\t\t\tif($this->$field===''||$this->$field===null){\n\t\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$values[] = addslashes($this->$field);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif($dataType[$field]=='date'){\n\t\t\t\t\t\t\t\tif($this->$field===null||$this->$field===''){\n\t\t\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$values[] = $this->_db->getDateUsingFormat(addslashes($this->$field));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif($this->$field===null||$this->$field===''){\n\t\t\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tif($magicQuotesRuntime==true){\n\t\t\t\t\t\t\t\t\t\t$values[] = \"'\".$this->$field.\"'\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$values[] = \"'\".addslashes($this->$field).\"'\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$sequenceName = '';\n\t\t\tif($generator===null){\n\t\t\t\tif(count($primaryKeys)==1){\n\t\t\t\t\t// Hay que buscar la columna identidad aqui!\n\t\t\t\t\tif(!isset($this->id)||!$this->id){\n\t\t\t\t\t\tif(method_exists($this, 'sequenceName')){\n\t\t\t\t\t\t\t$sequenceName = $this->sequenceName();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$identityValue = $this->_db->getRequiredSequence($this->_source, $primaryKeys[0], $sequenceName);\n\t\t\t\t\t\tif($identityValue!==false){\n\t\t\t\t\t\t\t$fields[] = 'id';\n\t\t\t\t\t\t\t$values[] = $identityValue;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(isset($this->id)){\n\t\t\t\t\t\t\t$fields[] = 'id';\n\t\t\t\t\t\t\t$values[] = $this->id;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$success = $this->_db->insert($table, $values, $fields);\n\t\t}\n\t\tif($this->_db->isUnderTransaction()==false){\n\t\t\tif($this->_db->getHaveAutoCommit()==true){\n\t\t\t\t$this->_db->commit();\n\t\t\t}\n\t\t}\n\t\tif($success){\n\t\t\tif($exists==true){\n\t\t\t\t$this->_callEvent('afterUpdate');\n\t\t\t} else {\n\t\t\t\tif($generator===null){\n\t\t\t\t\tif(count($primaryKeys)==1){\n\t\t\t\t\t\tif(isset($dataTypeNumeric[$primaryKeys[0]])){\n\t\t\t\t\t\t $lastId = $this->_db->lastInsertId($table, $primaryKeys[0], $sequenceName);\n\t\t\t\t\t\t if($lastId>0){\n\t\t\t\t\t\t\t $this->{$primaryKeys[0]} = $lastId;\n\t\t\t\t\t\t\t\t$this->findFirst($lastId);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//Actualiza el consecutivo para algunos generadores\n\t\t\t\t\t$generator->updateConsecutive($this);\n\t\t\t\t}\n\t\t\t\t$this->_callEvent('afterCreate');\n\t\t\t}\n\t\t\t$this->_callEvent('afterSave');\n\t\t\treturn $success;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function commitUpdate();", "public function save()\n {\n $db = DatabaseUtil::db_connect($this->database);\n $db->query('update ' . $this->table . 'set ' . $this->column . ' = ' . $this->value . ' where ID=' . $this->ID);\n $db->close();\n }", "public function save()\n {\n // that is already in this database using the current IDs in this \"where\"\n // clause to only update this model. Otherwise, we'll just insert them.\n if ($this->exists) {\n $saved = $this->newBuilder()->where('_id', $this->convertToMongoId($this->attributes['_id']))->update($this->attributes);\n }\n // If the model is brand new, we'll insert it into our database and set the\n // ID attribute on the model to the value of the newly inserted row's ID\n // which is typically an auto-increment value managed by the database.\n else {\n $saved = $this->newBuilder()->insert($this->attributes);\n }\n\n // TODO: fill() attributes will new or updated values.\n\n return $saved;\n }", "public function commit() {\n\t$idAvailable = \\is_numeric($this->getId());\n\t//We're checking if the id is available and it's marked for delete. If not, we need to check if the id is available.\n\t//Finally, we need to make sure it hasn't been marked for delete. if it has and there's no id, nothing needs to be\n\t//done.\n\tif ($idAvailable && $this->_markForDelete) {\n\t $this->delete();\n\t}\n\telse if ($idAvailable) {\n\t $this->update();\n\t}\n\telse if (!$this->_markForDelete) {\n\t $this->insert();\n\t}\n }", "public function save(){\n return isset($this->id) ? $this->update() : $this->create();\n \n }", "public function save() {\n\n return isset($this->id) ? $this->update() : $this->create();\n }", "public function save($obj)\r\n {\r\n $params = array(\r\n \"property1\" => $obj->getProperty1(),\r\n \"property2\" => $obj->getProperty2()\r\n );\r\n $pk = (int) $obj->getId();\r\n if($pk > 0){\r\n $this->getTable()->update($params, array(\"id\" => $pk));\r\n }else{\r\n $pk = $this->getTable()->insert($params);\r\n $obj->setId($pk);\r\n }\r\n }", "public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}", "public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}", "public function save(){\n global $wpdb;\n $table_name = $wpdb->prefix.static::$_table;\n \n $data = [];\n $pk = $this->getPk();\n foreach($this->_datas as $key => $value){\n if($key!=$pk && in_array($key, static::$_fields)){\n $data[$key] = $value.'';\n }\n }\n \n if( isset( $this->$pk ) ){\n // Update row\n $wpdb->update(\n $table_name,\n $data,\n [$pk=>$this->$pk]\n );\n }else{\n // Insert row\n $wpdb->insert(\n $table_name,\n $data\n );\n $this->$pk = $wpdb->insert_id;\n }\n \n return $this;\n }", "public function updateAssociatedRecords()\n\t{\n\t\t$fkObject = $this->getContext()->getPropertyValue();\n\t\t$source = $this->getSourceRecord();\n\t\t$fkeys = $this->findForeignKeys($fkObject, $source);\n\t\tforeach($fkeys as $fKey => $srcKey)\n\t\t\t$fkObject->setColumnValue($fKey, $source->getColumnValue($srcKey));\n\t\treturn $fkObject->save();\n\t}", "private function saveDb()\n\t{\n\t\t//format our sql statements w/ the valid fields\n\t\t$fields = array();\n\t\t\n\t\t//loop thru all our dirty fields.\n\t\tforeach ($this->dirtyFields AS $key => $foo)\n\t\t{\n\t\t\t//get our value.\n\t\t\tif (isset($this->data[$key]) && $key != 'id')\n\t\t\t{\n\t\t\t\t$val = $this->data[$key];\n\n\t\t\t\t//slashes replacement..\n\t\t\t\t$val = str_replace(\"\\\\\\\\\", \"\\\\\", $val);\n\t\t\t\t$val = str_replace(\"\\'\", \"'\", $val);\n\t\t\t\t$val = str_replace(\"\\\\\\\"\", \"\\\"\", $val);\n\n\t\t\t\t//add it if we have it...\n\t\t\t\t$fields[] = \"`$key` = '\" . addslashes($val) . \"'\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//update if we have an id....\n\t\tif (count($fields))\n\t\t{\n\t\t\t//now make our array\n\t\t\t$sqlFields = implode(\",\\n\", $fields) . \"\\n\";\n\t\t\t\n\t\t\t//update it?\n\t\t\tif ($this->id)\n\t\t\t{\n\t\t\t\t$sql = \"UPDATE $this->tableName SET\\n\";\n\t\t\t\t$sql .= $sqlFields;\n\t\t\t\t$sql .= \"WHERE id = '$this->id'\\n\";\n\t\t\t\t$sql .= \"LIMIT 1\";\n\n\t\t\t\tdb()->execute($sql);\n\t\t\t}\n\t\t\t//otherwise insert it...\n\t\t\telse\n\t\t\t{\n\t\t\t\t$sql = \"INSERT INTO $this->tableName SET\\n\";\n\t\t\t\t$sql .= $sqlFields;\n\n\t\t\t\t$this->id = db()->insert($sql);\n\t\t\t}\n\t\t}\n\t}", "public function save($object = null) {\n if ($object != null) {\n try {\n if ($object->getId() > 0) {\n //return $this->_update($object);\n $where = $this->getAdapter()->quoteInto('objid = ?', $object->getId());\n return $this->update($this->_preparePersistData($object), $where);\n } else {\n //return $this->_insert($object);\n return $this->insert($this->_preparePersistData($object));\n }\n } catch (Exception $e) {\n throw $e;\n }\n } else {\n throw new Agana_Exception('Cannont persist a null object');\n }\n }", "public function save($save_related = TRUE)\n\t{\n\t\t$meta = $this->meta();\n\t\t\n\t\tif ($meta->validate_on_save)\n\t\t{\n\t\t\t$this->validate();\n\t\t}\n\t\t\n\t\t// Stuff that will be inserted\n\t\t$values = array();\n\t\t\n\t\t// These will be processed later\n\t\t$relations = array();\n\t\t\n\t\t// Run through the main table data\n\t\tforeach($meta->fields as $column => $field)\n\t\t{\t\t\t\n\t\t\t// Only add actual columns\n\t\t\tif ($field->in_db)\n\t\t\t{\t\n\t\t\t\tif (array_key_exists($column, $this->_changed))\n\t\t\t\t{\n\t\t\t\t\t$this->_original[$column] = $values[$field->column] = $field->save($this, $this->_changed[$column]);\n\t\t\t\t}\n\t\t\t\t// Set default data. Careful not to override unchanged data!\n\t\t\t\telse if ($this->_original[$column] == $meta->defaults[$column] && !$field->primary)\n\t\t\t\t{\n\t\t\t\t\t$this->_original[$column] = $values[$field->column] = $field->save($this, $field->default);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ($field instanceof Jelly_Behavior_Field_Saveable)\n\t\t\t{\n\t\t\t\t$relations[$column] = $field;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Remove the primary key if it's empty, SQLite accepts it but \n\t\t// most other databases won't if it's going to auto-increment\n\t\t// It is often inadvertently set by validate() when inserting\n\t\tif (empty($values[$meta->primary_key]))\n\t\t{\n\t\t\tunset($values[$meta->primary_key]);\n\t\t\tunset($this->_changed[$meta->primary_key]);\t\n\t\t}\n\t\t\n\t\t// Set this just in case it doesn't change with the insert/update\n\t\t$id = $this->id();\n\t\t\n\t\t// Check if we have a loaded object, in which case it's an update\n\t\tif ($this->_loaded)\n\t\t{\n\t\t\t// Do we even have to update anything in the main table?\n\t\t\tif ($values)\n\t\t\t{\n\t\t\t\tDB::update($meta->table)\n\t\t\t\t\t->set($values)\n\t\t\t\t\t->where($this->alias($meta->primary_key), '=', $this->id())\n\t\t\t\t\t->execute($meta->db);\n\n\t\t\t\t// Has id changed? \n\t\t\t\tif (isset($values[$meta->primary_key]))\n\t\t\t\t{\n\t\t\t\t\t$id = $values[$meta->primary_key];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlist($id) = DB::insert($meta->table)\n\t\t\t\t\t\t->columns(array_keys($values))\n\t\t\t\t\t\t->values($values)\n\t\t\t\t\t\t->execute($meta->db);\n\t\t}\n\t\t\n\t\t// Update the primary key\n\t\t$this->_original[$meta->primary_key] = $id;\n\t\t\n\t\tif ($save_related)\n\t\t{\n\t\t\t// Load the relations\n\t\t\tforeach($relations as $column => $field)\n\t\t\t{\t\t\t\t\n\t\t\t\tif (array_key_exists($column, $this->_changed))\n\t\t\t\t{\n\t\t\t\t\t$this->_original[$column] = $field->save($this, $this->_changed[$column]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// We're good!\n\t\t$this->_loaded = $this->_saved = TRUE;\n\t\t$this->_changed = array();\n\t\t\n\t\t// Delete the last queries\n\t\t$this->end();\n\t\t\n\t\treturn $this;\n\t}", "public function save()\n {\n\t\t\tforeach($this->items as $index=>$data)\n\t\t\t{\n\t \t//if exists, update\n\t\t\t\tif($data[\"object\"])\n\t\t\t\t{\n\t\t\t\t\t$data[\"object\"]->update(array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'description'=>$data[\"description\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'producttype_id'=>$data[\"producttype\"]->getId(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category1'=>$data[\"category1\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category2'=>$data[\"category2\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category3'=>$data[\"category3\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category4'=>$data[\"category4\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category5'=>$data[\"category5\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category6'=>$data[\"category6\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category7'=>$data[\"category7\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category8'=>$data[\"category8\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category9'=>$data[\"category9\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category10'=>$data[\"category10\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t));\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data[\"object\"]=MyModel::create(\"Product\",array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'name'=>$data[\"name\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'description'=>$data[\"description\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'producttype_id'=>$this->main->producttypedata->items[$data[\"producttypename\"]][\"object\"]->getId(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category1'=>$data[\"category1\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category2'=>$data[\"category2\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category3'=>$data[\"category3\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category4'=>$data[\"category4\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category5'=>$data[\"category5\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category6'=>$data[\"category6\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category7'=>$data[\"category7\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category8'=>$data[\"category8\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category9'=>$data[\"category9\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category10'=>$data[\"category10\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t));\n\n\t\t\t\t}\n\n\t\t\t}\n }", "public function update(){\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $fieldsList = \" SET \";\n foreach ($this->attributes as $column => $value) {\n $fieldsList.=$column.\"=\".'\\''.$value.'\\''.\", \";\n }\n $fieldsList = str_last_replace(\", \", \"\", $fieldsList);\n $sqlQuery = \"UPDATE \".$this->table.$fieldsList.\" WHERE \".$this->idName.\"=\".$this->attributes[$this->idName];\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n }\n }", "public function update() {\n\t\tTournamentDBClient::update($this);\n\t}", "protected function doSave(PropelPDO $con)\n\t{\n\t\t$affectedRows = 0; // initialize var to track total num of affected rows\n\t\tif (!$this->alreadyInSave) {\n\t\t\t$this->alreadyInSave = true;\n\n\t\t\tif ($this->isNew() ) {\n\t\t\t\t$this->modifiedColumns[] = UserPeer::ID;\n\t\t\t}\n\n\t\t\t// If this object has been modified, then save it to the database.\n\t\t\tif ($this->isModified()) {\n\t\t\t\tif ($this->isNew()) {\n\t\t\t\t\t$pk = UserPeer::doInsert($this, $con);\n\t\t\t\t\t$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which\n\t\t\t\t\t\t\t\t\t\t // should always be true here (even though technically\n\t\t\t\t\t\t\t\t\t\t // BasePeer::doInsert() can insert multiple rows).\n\n\t\t\t\t\t$this->setId($pk); //[IMV] update autoincrement primary key\n\n\t\t\t\t\t$this->setNew(false);\n\t\t\t\t} else {\n\t\t\t\t\t$affectedRows += UserPeer::doUpdate($this, $con);\n\t\t\t\t}\n\n\t\t\t\t$this->resetModified(); // [HL] After being saved an object is no longer 'modified'\n\t\t\t}\n\n\t\t\tif ($this->collExperts !== null) {\n\t\t\t\tforeach ($this->collExperts as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collExpertCategorys !== null) {\n\t\t\t\tforeach ($this->collExpertCategorys as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collHistorys !== null) {\n\t\t\t\tforeach ($this->collHistorys as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collItemRatings !== null) {\n\t\t\t\tforeach ($this->collItemRatings as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collOfferVoucher1s !== null) {\n\t\t\t\tforeach ($this->collOfferVoucher1s as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPurchaseDetails !== null) {\n\t\t\t\tforeach ($this->collPurchaseDetails as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collShoppingCarts !== null) {\n\t\t\t\tforeach ($this->collShoppingCarts as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collShoutsRelatedByPosterId !== null) {\n\t\t\t\tforeach ($this->collShoutsRelatedByPosterId as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collShoutsRelatedByRecipientId !== null) {\n\t\t\t\tforeach ($this->collShoutsRelatedByRecipientId as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collUserAwardss !== null) {\n\t\t\t\tforeach ($this->collUserAwardss as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->singleUserGtalk !== null) {\n\t\t\t\tif (!$this->singleUserGtalk->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $this->singleUserGtalk->save($con);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->singleUserFb !== null) {\n\t\t\t\tif (!$this->singleUserFb->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $this->singleUserFb->save($con);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collUserRates !== null) {\n\t\t\t\tforeach ($this->collUserRates as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->singleUserTutor !== null) {\n\t\t\t\tif (!$this->singleUserTutor->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $this->singleUserTutor->save($con);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collUserQuestionTags !== null) {\n\t\t\t\tforeach ($this->collUserQuestionTags as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collStudentQuestionsRelatedByStudentId !== null) {\n\t\t\t\tforeach ($this->collStudentQuestionsRelatedByStudentId as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collStudentQuestionsRelatedByTutorId !== null) {\n\t\t\t\tforeach ($this->collStudentQuestionsRelatedByTutorId as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collWhiteboardSessions !== null) {\n\t\t\t\tforeach ($this->collWhiteboardSessions as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->alreadyInSave = false;\n\n\t\t}\n\t\treturn $affectedRows;\n\t}", "public function update() {\n if (!$this->id) {\n //echo \"No se tiene referencia al ID del objeto a actulizar.\";\n throw new Exception(\"No se tiene referencia al ID del objeto a actulizar.\");\n }\n\n $sql = \"UPDATE contratos SET numero_contrato=:numero_contrato, objeto_contrato=:objeto_contrato, presupuesto=:presupuesto, fecha_estimada_finalizacion=:fecha_estimada_finalizacion WHERE id=:id\";\n $args = array(\n \":id\" => $this->id,\n \":numero_contrato\" => $this->numeroContrato,\n \":objeto_contrato\" => $this->objetoContrato,\n \":presupuesto\" => $this->presupuesto,\n \":fecha_estimada_finalizacion\" => $this->fechaEstimadaFinalizacion,\n );\n $stmt = $this->executeQuery($sql, $args);\n\n return !$stmt ? false : true;\n }", "public function save() {\n return isset($this->id) ? $this->update() : $this->create();\n }", "public function save() {\n\t\tif (!empty($this->originalData)) {\n\t\t\t$query=\"UPDATE \";\t\n\t\t\tfor ($i=0; $i<count($this->originalData); $i++) {\n\t\t\t\tif (!isset($this->modifiedData)) {\n\t\t\t\t\t$this->modifiedData = $this->originalData;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$query=\"INSERT INTO \";\n\t\t}\n\t\t$query.=$this->table.' SET ';\n\t\tforeach ($this->modifiedData as $key=>$value) {\n\t\t\t$value = mysqli_real_escape_string($this->connection->connection,$value);\n\t\t\t$query.= '`'.$key .\"`='\".$value.'\\',';\n\t\t}\n\t\t$query = substr($query,0,-1);\n\t\tif (!empty($this->originalData)) {\n\t\t\t$query.=' WHERE '.self::$primaryKey[$this->table].'=\\''.$this->originalData[self::$primaryKey[$this->table]].\"'\";\n\t\t}\n\t\t$this->connection->query($query);\n\t\tif ($this->connection->getError()) {\n\t\t\treturn false;\n\t\t}\n\t\tif (empty($this->originalData)) {\n\t\t\t$this->originalData[self::$primaryKey[$this->table]] = $this->connection->getInsertID();\n\t\t}\n\t\t$this->originalData = array_merge($this->originalData,$this->modifiedData);\n\t\treturn true;\n\t}" ]
[ "0.7090886", "0.6778157", "0.6663471", "0.65799534", "0.65575486", "0.6496844", "0.6493933", "0.64512265", "0.6380317", "0.6355888", "0.632198", "0.63173145", "0.63127434", "0.62973404", "0.6269337", "0.6266956", "0.6262895", "0.62609285", "0.62466896", "0.62103236", "0.62086356", "0.62076885", "0.61965764", "0.6188487", "0.6177776", "0.6143779", "0.61367947", "0.61347085", "0.61241597", "0.6112214", "0.6104659", "0.60902613", "0.60743165", "0.6069492", "0.60520416", "0.60426575", "0.60235345", "0.60095334", "0.60011226", "0.5986316", "0.59642893", "0.5961938", "0.5958012", "0.59508854", "0.59366137", "0.5928771", "0.5921252", "0.58774054", "0.5876724", "0.58704877", "0.5865833", "0.58637655", "0.5858717", "0.58376706", "0.58335686", "0.5833128", "0.5802742", "0.5797742", "0.577002", "0.57662106", "0.57620776", "0.5758559", "0.5755005", "0.5747181", "0.57441", "0.57406867", "0.573804", "0.57270545", "0.5724743", "0.57202446", "0.57164115", "0.57123613", "0.5702144", "0.5701384", "0.5696737", "0.56936485", "0.56867594", "0.5684381", "0.5668357", "0.5661185", "0.5660733", "0.56584543", "0.56524193", "0.564492", "0.5643924", "0.5638254", "0.5637199", "0.5631678", "0.5631678", "0.5618657", "0.56186384", "0.5617034", "0.5614527", "0.5612439", "0.56115896", "0.56110024", "0.5605426", "0.5599334", "0.5597825", "0.55867547", "0.5581059" ]
0.0
-1
doSave() Insert the row in the database.
protected function doInsert(ConnectionInterface $con) { $modifiedColumns = array(); $index = 0; $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ID] = true; if (null !== $this->prod_id) { throw new PropelException('Cannot insert a value for auto-increment primary key (' . TblProdInfoTableMap::COL_PROD_ID . ')'); } // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ID)) { $modifiedColumns[':p' . $index++] = 'prod_id'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_PRICE_ID)) { $modifiedColumns[':p' . $index++] = 'prod_price_id'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_NAME)) { $modifiedColumns[':p' . $index++] = 'prod_name'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ALT1)) { $modifiedColumns[':p' . $index++] = 'prod_alt1'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ALT2)) { $modifiedColumns[':p' . $index++] = 'prod_alt2'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ALT3)) { $modifiedColumns[':p' . $index++] = 'prod_alt3'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ALT4)) { $modifiedColumns[':p' . $index++] = 'prod_alt4'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_CODE)) { $modifiedColumns[':p' . $index++] = 'prod_code'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_CATEGORY)) { $modifiedColumns[':p' . $index++] = 'prod_category'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_CATEGORY_SHIPPING)) { $modifiedColumns[':p' . $index++] = 'prod_category_shipping'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_WRITEUP)) { $modifiedColumns[':p' . $index++] = 'prod_writeup'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_LENGTH)) { $modifiedColumns[':p' . $index++] = 'prod_length'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_WINGSPAN)) { $modifiedColumns[':p' . $index++] = 'prod_wingspan'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_HEIGHT)) { $modifiedColumns[':p' . $index++] = 'prod_height'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_SCALE)) { $modifiedColumns[':p' . $index++] = 'prod_scale'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_LINKS)) { $modifiedColumns[':p' . $index++] = 'prod_links'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_LINKDESCRIPTION)) { $modifiedColumns[':p' . $index++] = 'prod_linkdescription'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_FRONT)) { $modifiedColumns[':p' . $index++] = 'prod_front'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_KEYWORDS)) { $modifiedColumns[':p' . $index++] = 'prod_keywords'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP)) { $modifiedColumns[':p' . $index++] = 'prod_keywords_writeup'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_TITLE)) { $modifiedColumns[':p' . $index++] = 'prod_title'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_DESCRIPTION)) { $modifiedColumns[':p' . $index++] = 'prod_description'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_GENERAL)) { $modifiedColumns[':p' . $index++] = 'prod_general'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ERA)) { $modifiedColumns[':p' . $index++] = 'prod_era'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_COMPANY)) { $modifiedColumns[':p' . $index++] = 'prod_company'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_RELATED)) { $modifiedColumns[':p' . $index++] = 'prod_related'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_RELATED_PA)) { $modifiedColumns[':p' . $index++] = 'prod_related_pa'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_RELATED_M3)) { $modifiedColumns[':p' . $index++] = 'prod_related_m3'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_RELATED2)) { $modifiedColumns[':p' . $index++] = 'prod_related2'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_SAVEAS)) { $modifiedColumns[':p' . $index++] = 'prod_saveas'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_AIRCRAFTREG)) { $modifiedColumns[':p' . $index++] = 'prod_aircraftreg'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_MB)) { $modifiedColumns[':p' . $index++] = 'mb'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_PA)) { $modifiedColumns[':p' . $index++] = 'pa'; } if ($this->isColumnModified(TblProdInfoTableMap::COL_M3)) { $modifiedColumns[':p' . $index++] = 'm3'; } $sql = sprintf( 'INSERT INTO tbl_prod_info (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); try { $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { case 'prod_id': $stmt->bindValue($identifier, $this->prod_id, PDO::PARAM_INT); break; case 'prod_price_id': $stmt->bindValue($identifier, $this->prod_price_id, PDO::PARAM_INT); break; case 'prod_name': $stmt->bindValue($identifier, $this->prod_name, PDO::PARAM_STR); break; case 'prod_alt1': $stmt->bindValue($identifier, $this->prod_alt1, PDO::PARAM_STR); break; case 'prod_alt2': $stmt->bindValue($identifier, $this->prod_alt2, PDO::PARAM_STR); break; case 'prod_alt3': $stmt->bindValue($identifier, $this->prod_alt3, PDO::PARAM_STR); break; case 'prod_alt4': $stmt->bindValue($identifier, $this->prod_alt4, PDO::PARAM_STR); break; case 'prod_code': $stmt->bindValue($identifier, $this->prod_code, PDO::PARAM_STR); break; case 'prod_category': $stmt->bindValue($identifier, $this->prod_category, PDO::PARAM_STR); break; case 'prod_category_shipping': $stmt->bindValue($identifier, $this->prod_category_shipping, PDO::PARAM_INT); break; case 'prod_writeup': $stmt->bindValue($identifier, $this->prod_writeup, PDO::PARAM_STR); break; case 'prod_length': $stmt->bindValue($identifier, $this->prod_length, PDO::PARAM_STR); break; case 'prod_wingspan': $stmt->bindValue($identifier, $this->prod_wingspan, PDO::PARAM_STR); break; case 'prod_height': $stmt->bindValue($identifier, $this->prod_height, PDO::PARAM_STR); break; case 'prod_scale': $stmt->bindValue($identifier, $this->prod_scale, PDO::PARAM_STR); break; case 'prod_links': $stmt->bindValue($identifier, $this->prod_links, PDO::PARAM_STR); break; case 'prod_linkdescription': $stmt->bindValue($identifier, $this->prod_linkdescription, PDO::PARAM_STR); break; case 'prod_front': $stmt->bindValue($identifier, $this->prod_front, PDO::PARAM_STR); break; case 'prod_keywords': $stmt->bindValue($identifier, $this->prod_keywords, PDO::PARAM_STR); break; case 'prod_keywords_writeup': $stmt->bindValue($identifier, $this->prod_keywords_writeup, PDO::PARAM_STR); break; case 'prod_title': $stmt->bindValue($identifier, $this->prod_title, PDO::PARAM_STR); break; case 'prod_description': $stmt->bindValue($identifier, $this->prod_description, PDO::PARAM_STR); break; case 'prod_general': $stmt->bindValue($identifier, $this->prod_general, PDO::PARAM_INT); break; case 'prod_era': $stmt->bindValue($identifier, $this->prod_era, PDO::PARAM_INT); break; case 'prod_company': $stmt->bindValue($identifier, $this->prod_company, PDO::PARAM_STR); break; case 'prod_related': $stmt->bindValue($identifier, $this->prod_related, PDO::PARAM_STR); break; case 'prod_related_pa': $stmt->bindValue($identifier, $this->prod_related_pa, PDO::PARAM_STR); break; case 'prod_related_m3': $stmt->bindValue($identifier, $this->prod_related_m3, PDO::PARAM_STR); break; case 'prod_related2': $stmt->bindValue($identifier, $this->prod_related2, PDO::PARAM_STR); break; case 'prod_saveas': $stmt->bindValue($identifier, $this->prod_saveas, PDO::PARAM_INT); break; case 'prod_aircraftreg': $stmt->bindValue($identifier, $this->prod_aircraftreg, PDO::PARAM_STR); break; case 'mb': $stmt->bindValue($identifier, $this->mb, PDO::PARAM_INT); break; case 'pa': $stmt->bindValue($identifier, $this->pa, PDO::PARAM_INT); break; case 'm3': $stmt->bindValue($identifier, $this->m3, PDO::PARAM_INT); break; } } $stmt->execute(); } catch (Exception $e) { Propel::log($e->getMessage(), Propel::LOG_ERR); throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), 0, $e); } try { $pk = $con->lastInsertId(); } catch (Exception $e) { throw new PropelException('Unable to get autoincrement id.', 0, $e); } $this->setProdId($pk); $this->setNew(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save()\n {\n if ($this->id) {\n $this->update();\n } else {\n $this->id = $this->insert();\n }\n }", "public function saveRow( $row );", "public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }", "protected function saveInsert()\n {\n }", "function save() {\n\n\t\t// calls generic ORM save (insert or update)\n\t\tparent::save();\n\n\t}", "public function save()\n {\n $DB = DB::singleton(dsn());\n\n if ( $this->update ) {\n $SQL = SQL::newUpdate('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addUpdate('entry_' . $column, $this->{$column});\n }\n $SQL->addWhereOpr('entry_id', $this->id);\n $SQL->addWhereOpr('entry_blog_id', $this->blog_id);\n $DB->query($SQL->get(dsn()), 'exec');\n } else {\n $SQL = SQL::newInsert('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addInsert('entry_' . $column, $this->{$column});\n }\n $DB->query($SQL->get(dsn()), 'exec');\n }\n\n EntryHelper::saveColumn($this->units, $this->id, $this->blog_id);\n Common::saveField('eid', $this->id, $this->fields);\n Common::saveFulltext('eid', $this->id, Common::loadEntryFulltext($this->id));\n }", "public function save()\n { \n return $this->checkForRows() ? $this->updateRow() : $this->insertRow();\n }", "function save(){\n\t\t// returns the item's id if successful\n\t\tif($this->beforesave()){\n\t\t\t$query = ($this->id?\"UPDATE \":\"INSERT INTO \").$this->tablename.\" SET \";\n\t\t\t$qvalues = \"\";\n\t\t\tforeach($this->dbvariables as $key){\n\t\t\t\t$qvalues .= ($qvalues == \"\"?\"\":\", \").$key.\"='\".trim(addslashes($this->$key)).\"'\";\n\t\t\t}\n\t\t\t$query .= $qvalues;\n\t\t\tif($this->id){\n\t\t\t\t$query .= \" WHERE id=\".$this->id;\n\t\t\t}else{\n\t\t\t\t$query .= \", item_order=\".get_neworder($this->tablename, $this->neworder_where());\n\t\t\t}\n\t\t\tmy_debug(\"Attempting query: \".$query,__FILE__,__LINE__,\"green\");\n\t\t\tif(mysql_query($query)){\t\t\t\t\n\t\t\t\tif(!$this->id && mysql_insert_id())\t$this->id = mysql_insert_id();\n\t\t\t\t$this->onsave();\n\t\t\t\treturn $this->id;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "public function save() {\r\n $dateNow = date('Y-m-d H:i:s', time());\r\n $this->id = (int) $this->id;\r\n \r\n if (!empty($this->id)) {\r\n //update case\r\n if ($this->_update()) {\r\n return true;\r\n }\r\n }\r\n else {\r\n //Insert case\r\n if ($this->_insert()) {\r\n return true;\r\n }\r\n }\r\n }", "public function save()\n {\n $pdo = $this->getDbConnection();\n $valuesRow = $this->prepareValuesRow();\n\n $pdo->exec(\"REPLACE INTO {$this->dbTable} (`key`, `value`) VALUES {$valuesRow}\");\n }", "public\tfunction\tsave()\n\t\t{\n\t\t}", "public function save(){\r\n\t\tif ($this->new){\r\n\t\t\treturn $this->insert();\r\n\t\t} else {\r\n\t\t\treturn $this->update();\r\n\t\t}\r\n\t}", "public function save() \n {\n\t\t$this->setLastUpdateTime(date(MYSQL_DATETIME_FORMAT));\n\n\t\tif($this->getId() ) {\n\t\t\treturn $this->_update();\n\t\t} else {\n\t\t\treturn $this->_insert();\n\t\t}\n\t}", "public function save() {\n if ($this->id) {\n return $this->update();\n } else {\n return $this->insert();\n }\n }", "public function save()\n\t{\n\t\t$this->copyAttributesToValues() ;\n\t\tif( $this->factory )\n\t\t{\n\t\t\tswitch( $this->todo )\n\t\t\t{\n\t\t\t\tcase 1: // Insert\n\t\t\t\t\tif( $this->factory->insertObjectIntoDB( $this ) ) $this->state = \"inserted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 2: // update\n\t\t\t\t\tif( $this->factory->updateObjectIntoDB( $this ) ) $this->state = \"updated\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 3: // delete\n\t\t\t\t\tif( $this->factory->deleteObjectIntoDB( $this ) ) $this->state = \"deleted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t}", "public function save(){\n\t\t// If primary key is set in model, run an update instead.\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\tif(isset($this->{$primaryKey})){\n\t\t\treturn $this->update();\n\t\t}\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = array_map(fn($name) => ':'.$name, $fields);\n\t\t// Populate statement by imploding the arrays.\n\t\t$statement = $this->db->prepare('INSERT INTO ' . $tableName . ' ( ' . implode(', ', $fields) . ') VALUES (' . implode(', ', $params) . ')');\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function save(){\n\t\t\n\t\tif(!isset($this->data[$this->primary_key])){\n\t\t\t$success = $this->db\n\t\t\t\t->set($this->data)\n\t\t\t\t->insert($this->table);\n\n\t\t\t$this->data[$this->primary_key] = $this->db->last_insert_id;\n\t\t}else{\n\t\t\t$success = $this->db\n\t\t\t\t->set($this->data)\n\t\t\t\t->where($this->primary_key, $this->data[$this->primary_key])\n\t\t\t\t->update($this->table);\n\t\t}\n\n\t\treturn $success;\n\t}", "public function __doSave()\n {\n $_SESSION[\"logger\"]->info(get_class($this) . '->__doSave');\n $_SESSION[\"logger\"]->info($this->toDebugStr());\n\n if (!$this->__exists()) {\n $strSQL = $this->getInsertSql();\n } else {\n $strSQL = $this->getUpdateSql();\n }\n $result = $this->query($strSQL);\n\n return $result;\n }", "public function save(){\n $tableName = $this->tableName();\n $attributes = $this->attributes();\n $params = array_map(fn($attr) => \":$attr\", $attributes);\n $statement = self::prepare(\"INSERT INTO $tableName (\".implode(',', $attributes).\") \n VALUES (\".implode(',', $params).\")\");\n \n foreach($attributes as $attribute){\n $statement->bindValue(\":$attribute\", $this->{$attribute});\n }\n \n $statement->execute();\n return true;\n }", "public function save() {\n $db = Db::instance();\n $db_properties = array(\n 'action' => $this->action,\n 'url_mod' => $this->url_mod,\n 'description' => $this->description,\n 'target_id' => $this->target_id,\n 'target_name' => $this->target_name,\n 'creator_id' => $this->creator_id,\n 'creator_username' => $this->creator_username\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "function save()\n {\n $this->form_validation->set_rules($this->_get_rules());\n\n if($this->form_validation->run()){\n $entity = $this->_from_form();\n $this->data['save'] = $this->model->insert_entry($entity);\n $this->data['action_performed'] = 'save';\n $this->success($entity);\n }\n else {\n $this->create();\n }\n }", "public function save() \n\t{\n\t\tif (isset($this->id)) {\t\n\t\t\n\t\t\t// Return update when id exists\n\t\t\treturn $this->update();\n\t\t\t\n\t\t} else {\n\t\t\n\t\t\t// Return insert when id does not exists\n\t\t\treturn $this->insert();\n\t\t}\n\t}", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'author_id' => $this->author_id,\n 'clothingname' => $this->clothingname,\n 'clothingtype' => $this->clothingtype,\n 'tempmin' => $this->tempmin,\n 'tempmax' => $this->tempmax\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n {\n $entity->delete();\n } \n else if ($entity->getMarkedAsUpdated())\n {\n $entity->saveWithDetails();\n }\n }\n }\n );\n }", "public function save()\n {\n $this->hasTableName();\n $pk = $this->pk;\n $condition = \"\";\n if ($this->isNew) {\n $sql = \"INSERT INTO \" . $this->table_name . \" SET \";\n $update = '';\n } else {\n if (!isset($this->$pk))\n throw new Exception('Update em objeto sem chave definida', 403);\n\n $sql = \"UPDATE \" . $this->table_name . \" SET \";\n $update = \" WHERE `\" . $this->pk . \"` = '\" . $this->$pk . \"'\";\n }\n foreach ($this->rules() as $key => $validation) {\n if ($this->validateField($key, $validation) && isset($this->$key) && $this->$key != \"\") {\n $sql .= \" `\" . $key . \"` = '\" . $this->$key . \"',\";\n $condition .= \" `\" . $key . \"` = '\" . $this->$key . \"' AND\";\n }\n }\n if (!$this->getErrors()) {\n $sql = substr($sql, 0, -1) . $update;\n if (Database::dbactionf($sql)) {\n if ($this->isNew) {\n $this->$pk = Database::lastID();\n $this->persisted();\n }\n return true;\n }\n }\n return false;\n }", "public function save(){\n $tableName = $this->tableName();\n $attributes = $this->attributes();\n $params = array_map(fn($attr)=> \":$attr\", $attributes);\n\n $st = self::prepare(\n \"INSERT INTO $tableName (\".implode(',', $attributes).\")\n VALUES(\".implode(',', $params).\")\"\n );\n\n foreach($attributes as $attribute){\n $st->bindValue(\":$attribute\", $this->{$attribute});\n }\n\n $st->execute();\n return true;\n }", "public function save()\n {\n $data = $this->getSaveData();\n $errorString = '<h5 class=\"alert-heading\">Can\\'t save ' . $this->entityName . ' because of the following problems:</h5>';\n\n $errors = $this->checkRequiredColumns( $data );\n if ( !empty( $errors ) ) {\n return $this->addError( $errorString . HTMLTags::getListGroup( $errors ) );\n }\n\n if ( defined( 'DEBUG' ) && DEBUG === true ) {\n $dataToSave = !empty( $data ) ? $this->getDataHTMLTable( $data ) : 'None';\n $this->messages->add(\n 'Entity - ' . $this->entityName\n . '<br>Changed - ' . print_r( $this->changed, true )\n . '<br>Data to save - ' . $dataToSave\n . '<br>All column properties - ' . $dataToSave,\n 'info'\n );\n }\n $errors = $this->healthCheck();\n if ( !empty( $errors ) ) {\n return $this->addError( $errorString . HTMLTags::getListGroup( $errors ) );\n }\n if ( $this->exists ) {\n return $this->updateDBRow( $data );\n }\n $addRow = $this->addDBRow( $data );\n if ( is_int( $addRow ) ) {\n $this->id = $addRow;\n $this->exists = true;\n }\n return $addRow;\n }", "public function save()\n {\n $db = DatabaseUtil::db_connect($this->database);\n $db->query('update ' . $this->table . 'set ' . $this->column . ' = ' . $this->value . ' where ID=' . $this->ID);\n $db->close();\n }", "public function save() : bool {\n\t\t// Check if record is new\n\t\t$isNew = isset($this->{$this->primaryKey}) && $this->{$this->primaryKey} ? false : true;\n\n\t\tif ($isNew) {\n\t\t\t// Insert\n\t\t\t$this->database->query('INSERT INTO ' . $this->tableNamePrefixed, $this->getValuesForDatabase());\n\t\t\tif ($this->database->getInsertId()) {\n\t\t\t\t$this->{$this->primaryKey} = $this->database->getInsertId();\n\t\t\t}\n\t\t} else {\n\t\t\t// Update\n\t\t\t$this->database->query(\n\t\t\t\t'UPDATE ' . $this->tableNamePrefixed . ' SET',\n\t\t\t\t$this->getValuesForDatabase(),\n\t\t\t\t'WHERE ' . $this->primaryKey . ' = ?', $this->{$this->primaryKey}\n\t\t\t);\n\t\t}\n\n\t\treturn true;\n\t}", "public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }", "public function save(PDO $dbh);", "public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }", "public function save()\r\n {\r\n if( empty($this->dirty) ) return true;\r\n \r\n $pkName = $this->pkName();\r\n //is it an update?\r\n if( isset($this->data[$pkName]) ){\r\n $this->table->update($this->dirty, \"{$pkName}=?\", array($this->data[$pkName]) );\r\n $merged_data[$pkName] = $this->data[$pkName];\r\n } else {\r\n //it's an insert\r\n $merged_data = array_merge(\r\n $this->array_diff_schema($this->dirty),\r\n $this->array_diff_schema($this->data)\r\n );\r\n $this->table->insert($merged_data);\r\n $pk = $this->pkName();\r\n if( !isset($merged_data[$pk]) )\r\n $merged_data[$pk] = $this->table->lastInsertId();\r\n }\r\n $this->reset($merged_data);\r\n return true;\r\n }", "public function save()\n {\n\n // generate all column's sql query\n $column_names = '';\n $column_values = '';\n foreach ($this->columns as $field_name => $column_obj)\n {\n if ($column_obj->columnName === null) {\n $column_names .= $field_name.', ';\n } else {\n $column_names .= $column_obj->columnName.', ';\n }\n $column_values .= $column_obj->generateValueForSQL().', ';\n }\n $column_names = substr($column_names, 0, -1);\n $column_values = substr($column_values, 0, -1);\n $this_table_name = $this->table_name;\n $this_id = $this->id;\n\n if ($this->id === 0) {\n // This object is not saved yet.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values);';\n // Execute query\n } else {\n // This object is on the DB.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values) WHERE id=$this_id;';\n // Execute query\n }\n\n mysql_run_query($query);\n\n }", "public function saveToDB()\n {\n }", "public function save()\n {\n if ($this->_state == 0) {\n // Insert\n $result = static::getLink()->insert(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getColumns(true));\n\n // Primary Key\n $this->_id = static::getLink()->lastInsertId();\n\n /** @var Column $primaryKey */\n $primaryKey = Structure::getTablePrimaryKey($this);\n\n if ($primaryKey->autoIncrement) {\n $this->{$primaryKey->getPropertyField()} = $this->_id;\n }\n\n $this->_state = 1;\n } else {\n // Update\n $result = static::getLink()->update(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getPrimaryKey(),\n array_merge($this->getColumns(true), $this->getPrimaryKey(true)));\n }\n\n return $result;\n }", "public function save() {\n $db = self::getDbConnection();\n $table = static::getTable();\n $data = get_object_vars($this);\n if ($table == 'posts') {\n $data['name'] = Service::get('session')->userEmail;\n }\n\n if (isset($data['id'])) {\n $query = $db->prepare($this->getUpdateString($data, $table));\n } else {\n $query = $db->prepare($this->getInsertString($data, $table));\n }\n\n if (!$query->execute()) {\n throw new DatabaseException('Cant save object');\n }\n }", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }", "public function save(){\n\t\t$db = static::getDatabaseConnection();\n\t\t//Find the columns from the model\n\t\t$columns = static::$columns;\n\n\t\t//because ID is AI we dont want to put a value in it\n\t\tunset($columns[array_search('id', $columns)]);\n\t\t//Same with timestamp\n\t\tunset($columns[array_search('timestamp', $columns)]);\n\n\t\t//Create an insert query which gets linked to the database\n\t\t$query = \"INSERT INTO \" . static::$tableName . \" (\". implode(\",\", $columns) . \") VALUES (\";\n\n\t\t//create a variable called insesrtcols. This is where we put the values\n\t\t$insertcols = [];\n\t\t//For each of the columns in the columns array, add that column into the insert cols array, and seperate it with a :\n\t\tforeach ($columns as $column) {\n\t\t\tarray_push($insertcols, \":\" . $column);\n\t\t}\n\t\t//turn the insertcols array into 1 string and put a , between each entry\n\t\t$query .= implode(\",\", $insertcols);\n\t\t//close the query\n\t\t$query .= \")\";\n\n\t\t//Prepare the query\n\t\t$statement = $db->prepare($query);\n\n\t\t//Foreach of the columns run this function\n\t\tforeach ($columns as $column) {\n\t\t\t//Attach the value to each of the columns\n\t\t\t//Hash the password\n\t\t\tif($column === 'password'){\n\t\t\t\t$this->$column = password_hash($this->$column, PASSWORD_DEFAULT);\n\t\t\t}\n\t\t\t$statement->bindValue(\":\" . $column , $this->$column);\n\t\t}\n\n\t\t//Run the query\n\t\t$statement->execute();\n\n\t\t//Get the id of the query which was just added\n\t\t$this->id = $db->lastInsertID();\n\t}", "public function insertRecord()\n\t{\n\t\tif($this->user->hasRight($this->getHandler()->getAddRight()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$record = $this->getHandler()->getRecord();\n\t\t\t\t$record->import($this->getRequest());\n\n\t\t\t\t// check captcha\n\t\t\t\t$this->handleCaptcha($record);\n\n\t\t\t\t// insert\n\t\t\t\t$this->getHandler()->create($record);\n\n\n\t\t\t\t$msg = new Message('You have successful create a ' . $record->getName(), true);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t\tcatch(\\Exception $e)\n\t\t\t{\n\t\t\t\t$msg = new Message($e->getMessage(), false);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = new Message('Access not allowed', false);\n\n\t\t\t$this->setResponse($msg, null, $this->user->isAnonymous() ? 401 : 403);\n\t\t}\n\t}", "public function save()\n {\n \treturn FactoryAbastract::dao(get_class($this))->save($this);\n }", "public function save()\n {\n // If deposit is new, will get assigned database ID.\n $this->dbID = $this->db->saveDeposit($this);\n }", "public function save()\n\t{\n\t\tif( $this->isExist )\n\t\t{\n\t\t\treturn $this->update();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->insert();\n\t\t}\n\t}", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save(){\r\n $db = new Database();\r\n $sql = \"\";\r\n $stm = null;\r\n if (empty($this->id)){\r\n $sql = \"insert into interests (name) values (:name)\";\r\n $stm = $db->pdo->prepare($sql);\r\n }\r\n else{\r\n $sql = \"update interests set name=:name where id=:id\";\r\n $stm = $db->pdo->prepare($sql);\r\n $stm->bindParam(':id', $this->id);\r\n }\r\n $stm->bindParam(':name', $this->name);\r\n $stm->execute();\r\n }", "public function save()\n \t{\n \t $this->getMapper()->save($this);\n \t}", "public function save()\n {\n if($this->id != -1)\n {\n $this->update_subject();\n }\n else\n {\n $this->insert_subject();\n }\n }", "public function onSave()\n {\n try\n {\n // open a transaction with database 'samples'\n TTransaction::open('samples');\n \n // get the form data into an active record Entry\n $object = $this->form->getData('AgendaEntry');\n \n $this->form->validate(); // form validation\n $object->store(); // stores the object\n $this->form->setData($object); // keep form data\n \n TTransaction::close(); // close the transaction\n $posAction = new TAction(array('AgendaView', 'reload'));\n // shows the success message\n new TMessage('info', TAdiantiCoreTranslator::translate('Record saved'), $posAction);\n }\n catch (Exception $e) // in case of exception\n {\n // shows the exception error message\n new TMessage('error', $e->getMessage());\n \n $this->form->setData( $this->form->getData() ); // keep form data\n \n // undo all pending operations\n TTransaction::rollback();\n }\n }", "public function save(){\n\t\t$res = true;\n\t\t$changedData = $this->changedData();\n\t\tif(count($changedData)){\n\t\t\tif(!empty($this->orig)){\n\t\t\t\t$res = (dbHelper::updateQry($this->tableName,$changedData,array($this->primaryKey=>$this->data[$this->primaryKey]))?true:false);\n\t\t\t\t$this->orig = $this->data;\n\t\t\t} else {\n\t\t\t\t//if this row has been deleted but someone else saves data to it this will automatically restore the row from $data\n\t\t\t\t$res = (dbHelper::insertQry($this->tableName,$this->data)?true:false);\n\t\t\t\t$this->data[$this->primaryKey] = db::insertID();\n\t\t\t\tdbData::addRow($this->tableName,$this->primaryKey,$this->data);\n\t\t\t\t$this->orig =& dbData::rowRefrence($this->tableName,$this->primaryKey,$this->data[$this->primaryKey]);\n\t\t\t}\n\t\t}\n\t\treturn $res;\n\t}", "final public function save() {\n\t\t$table_id = $this::TABLE_ID;\n\t\tif (strlen ( $this->$table_id ) != 0) {\n\t\t\treturn $this->update ();\n\t\t}\n\t\t\n\t\tif ($this::USR_CREATE_ID != 'undefined') {\n\t\t\t$usrid = PwConnexion::getInstance ()->getUserId ();\n\t\t\t$colUsrId = $this::USR_CREATE_ID;\n\t\t\t$this->$colUsrId = $usrid;\n\t\t}\n\t\t\n\t\tif ($this::USR_CREATE_DATE != 'undefined') {\n\t\t\t$objDateTime = new DateTime ( 'NOW' );\n\t\t\t$colUsrDat = $this::USR_CREATE_DATE;\n\t\t\t$usrid = PwConnexion::getInstance ()->getUserId ();\n\t\t\t$this->$colUsrDat = $objDateTime->format ( \"Y-m-d H:i:s\" );\n\t\t}\n\t\t\n\t\t$this->$table_id = \"\";\n\t\t\n\t\t$row = $this->getSqlRow ();\n\t\t$k = 0;\n\t\t$filds = \"\";\n\t\tforeach ( $row as $key => $value ) {\n\t\t\tif ($k == 0)\n\t\t\t\t$sep = \" \";\n\t\t\telse\n\t\t\t\t$sep = \",\";\n\t\t\t$filds = $filds . $sep . $key;\n\t\t\t$k = 1;\n\t\t}\n\t\t$k = 0;\n\t\t$values = \"\";\n\t\tforeach ( $row as $key => $value ) {\n\t\t\tif ($k == 0)\n\t\t\t\t$sep = \" \";\n\t\t\telse\n\t\t\t\t$sep = \",\";\n\t\t\t$values = $values . $sep . \"'\" . $value . \"'\";\n\t\t\t$k = 1;\n\t\t}\n\t\t$cmd = \"insert into \" . $this::TABLE_NAME . \"(\" . $filds . \")values(\" . $values . \");\";\n\t\t$rid = \"\";\n\t\ttry {\n\t\t\t$stmt = PwPDO::getInstance ( PwPDO::DB_0 )->prepare ( $cmd );\n\t\t\t$stmt->execute ();\n\t\t\t$rid = PwPDO::getInstance ( PwPDO::DB_0 )->lastInsertId ();\n\t\t} catch ( Exception $e ) {\n\t\t\tPwDebug::debug ( $e->getMessage (), $cmd );\n\t\t\tPwDebug::debugInLogFile ( $e->getMessage () . \" \" . $cmd );\n\t\t\treturn 0;\n\t\t}\n\t\treturn PwPDO::getInstance ( PwPDO::DB_0 )->lastInsertId ();\n\t}", "abstract public function save();", "abstract public function save();", "abstract public function save();", "abstract public function save();", "abstract public function save();", "function save()\r\n {\r\n $GLOBALS['DB']->exec(\"INSERT INTO inventory_items (name) VALUES ('{$this->getName()}')\");\r\n $this->id = $GLOBALS['DB']->lastInsertId();\r\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function save($data)\n\t{\n\t\t$dispatcher = JEventDispatcher::getInstance();\n\t\t$table = $this->getTable();\n\n\t\tif ((!empty($data['tags']) && $data['tags'][0] != ''))\n\t\t{\n\t\t\t$table->newTags = $data['tags'];\n\t\t}\n\n\t\t$key = $table->getKeyName();\n\t\t$pk = (!empty($data[$key])) ? $data[$key] : (int) $this->getState($this->getName() . '.id');\n\t\t$isNew = true;\n\n\t\t// Include the content plugins for the on save events.\n\t\tJPluginHelper::importPlugin('content');\n\n\t\t// Allow an exception to be thrown.\n\t\ttry\n\t\t{\n\t\t\t// Load the row if saving an existing record.\n\t\t\tif ($pk > 0)\n\t\t\t{\n\t\t\t\t$table->load($pk);\n\t\t\t\t$isNew = false;\n\t\t\t}\n\n\t\t\t// Bind the data.\n\t\t\tif (!$table->bind($data))\n\t\t\t{\n\t\t\t\t$this->setError($table->getError());\n\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Prepare the row for saving\n\t\t\t$this->prepareTable($table);\n\n\t\t\t// Check the data.\n\t\t\tif (!$table->check())\n\t\t\t{\n\t\t\t\t$this->setError($table->getError());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Trigger the onContentBeforeSave event.\n\t\t\t$result = $dispatcher->trigger($this->event_before_save, array($this->option . '.' . $this->name, $table, $isNew));\n\n\t\t\tif (in_array(false, $result, true))\n\t\t\t{\n\t\t\t\t$this->setError($table->getError());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Store the data.\n\t\t\tif (!$table->store())\n\t\t\t{\n\t\t\t\t$this->setError($table->getError());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Clean the cache.\n\t\t\t$this->cleanCache();\n\n\t\t\t// Trigger the onContentAfterSave event.\n\t\t\t$dispatcher->trigger($this->event_after_save, array($this->option . '.' . $this->name, $table, $isNew));\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$this->setError($e->getMessage());\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public function save(){\n\t\ttry {\n\t\t\t$params = array();\n\n\t\t\t//insert\n\t\t\tif( empty($this->_data['id']) ){\n\t\t\t\t$action = 'add';\n\n\t\t\t\t//build the insert starting from self::$fields\n\t\t\t\t$fields = array();\n\t\t\t\t$values = array();\n\n\t\t\t\tforeach( self::$_fields[$this->_table] as $key ){\n\t\t\t\t\tif( $key != 'id' ){\n\t\t\t\t\t\t$fields[] = $key;\n\n\t\t\t\t\t\tif( isset($this->_data[$key]) && !is_null($this->_data[$key]) ){\n\t\t\t\t\t\t\t$values[] = ':'.$key;\n\t\t\t\t\t\t\t$params[':'.$key] = $this->_data[$key];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$fields = implode(', ', $fields);\n\t\t\t\t$values = implode(', ', $values);\n\t\t\t\t$sql = \"INSERT INTO \".$this->_table.\" (\".$fields.\") VALUES (\".$values.\")\";\n\n\t\t\t//update\n\t\t\t} else {\n\t\t\t\t$action = 'update';\n\n\t\t\t\t//build the update starting from self::$fields\n\t\t\t\t$where = '';\n\t\t\t\t$field_value = '';\n\n\t\t\t\tforeach( self::$_fields[$this->_table] as $key ){\n\t\t\t\t\tif( $key == 'id' ){\n\t\t\t\t\t\t$where = ' '.$key.' = :id';\n\t\t\t\t\t\t$params[':id'] = $this->_data[$key];\n\n\t\t\t\t\t} elseif( isset($this->_data[$key]) and !is_null($this->_data[$key]) ){\n\t\t\t\t\t\t$field_value .= ' '.$key.' = :'.$key.',';\n\t\t\t\t\t\t$params[':'.$key] = $this->_data[$key];\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$field_value .= ' '.$key.' = NULL,';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$field_value = substr($field_value, 0, -1);\n\t\t\t\t$sql = \"UPDATE \".$this->_table.\" SET \".$field_value.\" WHERE \".$where;\n\t\t\t}\n\n\t\t\t$q = $this->_db->prepare($sql);\n\n\t\t\t$q->execute($params);\n\n\t\t\tif( empty($this->_data['id']) ){\n\t\t\t\t$this->_data['id'] = $this->_db->lastInsertId();\n\t\t\t}\n\n\t\t\treturn true;\n\n\t\t} catch ( PDOException $e ){\n\t\t\terreur_pdo( $e, get_class( $this ), __FUNCTION__ );\n\t\t}\n\t}", "public function save()\n {\n $this->_validateModifiable();\n\n if($this->isNew())\n {\n $this->_getDataSource()->create($this);\n }\n else\n {\n $this->_getDataSource()->update($this);\n }\n\n $this->_saveRelations();\n $this->_setNew(false);\n }", "private function saveDb()\n\t{\n\t\t//format our sql statements w/ the valid fields\n\t\t$fields = array();\n\t\t\n\t\t//loop thru all our dirty fields.\n\t\tforeach ($this->dirtyFields AS $key => $foo)\n\t\t{\n\t\t\t//get our value.\n\t\t\tif (isset($this->data[$key]) && $key != 'id')\n\t\t\t{\n\t\t\t\t$val = $this->data[$key];\n\n\t\t\t\t//slashes replacement..\n\t\t\t\t$val = str_replace(\"\\\\\\\\\", \"\\\\\", $val);\n\t\t\t\t$val = str_replace(\"\\'\", \"'\", $val);\n\t\t\t\t$val = str_replace(\"\\\\\\\"\", \"\\\"\", $val);\n\n\t\t\t\t//add it if we have it...\n\t\t\t\t$fields[] = \"`$key` = '\" . addslashes($val) . \"'\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//update if we have an id....\n\t\tif (count($fields))\n\t\t{\n\t\t\t//now make our array\n\t\t\t$sqlFields = implode(\",\\n\", $fields) . \"\\n\";\n\t\t\t\n\t\t\t//update it?\n\t\t\tif ($this->id)\n\t\t\t{\n\t\t\t\t$sql = \"UPDATE $this->tableName SET\\n\";\n\t\t\t\t$sql .= $sqlFields;\n\t\t\t\t$sql .= \"WHERE id = '$this->id'\\n\";\n\t\t\t\t$sql .= \"LIMIT 1\";\n\n\t\t\t\tdb()->execute($sql);\n\t\t\t}\n\t\t\t//otherwise insert it...\n\t\t\telse\n\t\t\t{\n\t\t\t\t$sql = \"INSERT INTO $this->tableName SET\\n\";\n\t\t\t\t$sql .= $sqlFields;\n\n\t\t\t\t$this->id = db()->insert($sql);\n\t\t\t}\n\t\t}\n\t}", "public function save()\n {\n if ($conn = $this->_getConnection()) {\n $data = $this->getData();\n unset($data['user']);\n if ($this->id) {\n $fields = array();\n foreach ($data as $_field => $_value) {\n $fields[] = \"`{$_field}`='{$_value}'\";\n }\n $sql = \"UPDATE `{$this->_dbTable}` SET \" . implode(\",\", $fields) . \" WHERE `id`={$this->id};\";\n } else {\n $sql = \"INSERT INTO `{$this->_dbTable}` (`\" . implode('`,`', array_keys($data)) . \"`)\n VALUES('\" . implode(\"','\", $data) . \"');\";\n }\n $result = $conn->query($sql);\n app::log(array($sql, $result, $conn->errno, $conn->error)); //!!!!\n if ($conn->errno) {\n app::log('Error saving model \"' . $this->_modelName . '\" into DB with ID=' . $this->id, app::LOG_LEVEL_ERROR . \"\\n{$conn->errno} - {$conn->error}\");\n }\n if (!$this->id) {\n $this->id = $conn->insert_id;\n }\n }\n app::log($this->_data); //!!!!\n return $this;\n }", "public function Save(){\r\n\t\t$this->db->save();\r\n\t}", "public abstract function save();", "public function save()\n {\n $queryBuilder = $this->db->createQueryBuilder();\n\n $queryBuilder->insert(self::TABLE_NAME);\n\n foreach (['delivery_id', 'status', 'topic', 'body', 'sent_at', 'direction', 'to', 'result'] as $field) {\n $value = isset($this->data[$field]) ? $this->data[$field] : null;\n $queryBuilder->setValue(\"`$field`\", $queryBuilder->expr()->literal($value));\n }\n\n $queryBuilder->execute();\n\n return $this->db->lastInsertId();\n }", "public function save() {\n return $this->{static::$primaryKey} === null? $this->create() : $this->update();\n }", "public function save()\n\t{\n\t\t$status = $this->validated ? TRUE : $this->valid();\n\n\t\tif ($status === TRUE)\n\t\t{\n\t\t\tif ($this->data['id']) // Do an update\n\t\t\t\treturn count($this->db->update($this->table_name, $this->data, array('id' => $this->data['id'])));\n\t\t\telse // Do an insert\n\t\t\t{\n\t\t\t\t$id = $this->db->insert($this->table_name, $this->data)->insert_id();\n\t\t\t\treturn ($this->data['id'] = $id);\n\t\t\t}\n\t\t}\n\n\t\tthrow new Kohana_User_Exception('auto_modeler.validation_error', $status);\n\t}", "function save() {\n $conn = \\DB\\getConnection();\n\n $query = sprintf(\"INSERT INTO Payments (uid, typeid, token, amount)\n VALUES (%u, %u, '%s', %f)\",\n $this->uid, $this->typeid, $conn->escape_string($this->token), $this->amount);\n\n \n\n $result = $conn->query($query);\n\n // If this is a newly created user, then update the id with the\n // newly created one\n if (!isset($this->id)) {\n $this->id = $result->insert_id;\n }\n }", "function Save(){\n // If id is set, update the current register in database\n if(isset($this->idAval)){\n // Makes the update in the database\n return $this->UpdateSQL([\"ID_AVAL = \".$this->idAval]) > 0;\n }else{\n // If id is not set, insert a new row in database\n $this->fecha = date_format(new \\DateTime('now', new \\DateTimeZone('America/Argentina/Buenos_Aires')), 'Y-m-d H:i:s');\n if($this->InsertSQL()>0){\n // Refresh get the inserted id and refresh the object values\n return $this->Refresh();\n }\n }\n return false;\n }", "public function insert() {\r\n\t\t$this->getMapper()->insert($this);\r\n\t}", "public function save(){\r\n\t \t\treturn isset($this->id) ? $this->update() : $this->create();\r\n\t\t}", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'event_type_id' => $this->event_type_id,\n 'user_1_id' => $this->user_1_id,\n 'user_2_id' => $this->user_2_id,\n 'user_1_name' => $this->user_1_name,\n 'user_2_name' => $this->user_2_name,\n 'product_1_name' => $this->product_1_name,\n 'product_2_name' => $this->product_2_name,\n 'data_1' => $this->data_1,\n 'data_2' => $this->data_2\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save(): bool\n {\n return $this->id > 0\n ? $this->actionHandler->update()\n : $this->actionHandler->insert();\n }", "function save()\n {\n $GLOBALS['DB']->exec(\"INSERT INTO stores (store_name) VALUES (\n '{$this->getStoreName()}'\n );\");\n\n $this->id = $GLOBALS['DB']->lastInsertId();\n }", "public function save(){\n global $wpdb;\n $table_name = $wpdb->prefix.static::$_table;\n \n $data = [];\n $pk = $this->getPk();\n foreach($this->_datas as $key => $value){\n if($key!=$pk && in_array($key, static::$_fields)){\n $data[$key] = $value.'';\n }\n }\n \n if( isset( $this->$pk ) ){\n // Update row\n $wpdb->update(\n $table_name,\n $data,\n [$pk=>$this->$pk]\n );\n }else{\n // Insert row\n $wpdb->insert(\n $table_name,\n $data\n );\n $this->$pk = $wpdb->insert_id;\n }\n \n return $this;\n }", "public function save()\n {\n array_push($this->table, $this->value);\n }", "public function save()\n\t{\n\t\t$data = ['criteria' => $this -> criteria,\n\t\t\t\t 'dbname' => $this -> dbname,\n\t\t\t\t 'tblname' => $this -> tblname];\n\n\t\t$result = $this -> connection -> setTable($this -> entity)\r\n\t\t\t\t\t\t\t\t\t -> saveRec($data);\n\t\tif ($result) {\n\t\t\t$this -> id = $result;\n\t\t\treturn $this;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function save() : bool {\n $this->getForm();\n $model = (array) $this;\n unset($model['id']);\n\n $colNames = implode(', ', array_keys($model));\n $colValues = ':' . str_replace(', ', ', :', $colNames);\n $arrBind = array_combine(explode(', ', $colValues), array_values($model));\n\n try {\n $db = new DbConnection();\n $db = $db->connect();\n $statement = $db->prepare(\"INSERT INTO \" . static::tableName() . \" (\" . $colNames . \")\n VALUES (\" . $colValues . \")\");\n\n foreach ($arrBind as $key => &$value) {\n $statement->bindParam($key, $value);\n }\n\n $result = $statement->execute();\n $db = null;\n } catch (PDOException $e) {\n $result = false;\n $e->getMessage(); // Only in dev mode\n }\n return $result;\n }", "public function save($data)\n\t{\n\t\t// Initialise variables.\n\t\t$table\t\t= $this->getTable();\n\t\t$pk\t\t\t= (!empty($data['id'])) ? $data['id'] : (int) $this->getState('plugin.id');\n\t\t$isNew\t\t= true;\n\n\t\t// Include the content plugins for the onSave events.\n\t\tJPluginHelper::importPlugin('content');\n\n\t\t// Load the row if saving an existing record.\n\t\tif ($pk > 0) {\n\t\t\t$table->load($pk);\n\t\t\t$isNew = false;\n\t\t}\n\n\t\t// Bind the data.\n\t\tif (!$table->bind($data)) {\n\t\t\t$this->setError($table->getError());\n\t\t\treturn false;\n\t\t}\n\n\t\t// Prepare the row for saving\n\t\t$this->prepareTable($table);\n\n\t\t// Check the data.\n\t\tif (!$table->check()) {\n\t\t\t$this->setError($table->getError());\n\t\t\treturn false;\n\t\t}\n\n\t\t// Store the data.\n\t\tif (!$table->store()) {\n\t\t\t$this->setError($table->getError());\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->setState('plugin.id', $table->extension_id);\n\n\t\treturn true;\n\t}", "public function save()\r\n {\r\n \r\n }", "public function save()\n {\n if (count($this->toSave) <= 0)\n return;\n \n $columns = [ ];\n $params = [ ];\n $to_save = [ ];\n array_walk($this->toSave, function($value, $key) use (&$columns, &$to_save, &$params) {\n if ($this->insert):\n $columns[] = $key;\n $to_save[] = \"?\";\n else:\n $to_save[] = \"{$key} = ?\";\n endif;\n\n $params[] = $value;\n });\n $to_save = implode(', ', $to_save);\n\n if ($this->insert):\n $columns = implode(', ', $columns);\n $primary_key = database()->run('INSERT INTO ' . $this->table . '(' . $columns . ') VALUES(' . $to_save . ')', $params);\n \n $this->{$this->primaryKey} = $primary_key;\n $this->insert = false;\n else:\n $params[] = $this->{$this->primaryKey};\n database()->run('UPDATE ' . $this->table . ' SET ' . $to_save . ' WHERE ' . $this->primaryKey . ' = ?', $params);\n endif;\n \n $this->toSave = [ ];\n return $this;\n }", "public function save()\n {\n if ( !$this->unsaved ) {\n // either nothing has been changed, or data has not been loaded, so\n // do nothing by returning early\n return;\n }\n\n $this->write();\n $this->unsaved = false;\n }", "public function save() {\n $db = Db::instance();\n // omit id \n $db_properties = array(\n 'firstName' => $this->firstName,\n 'lastName' => $this->lastName,\n 'description' => $this->description,\n 'user' => $this->user,\n 'password' => $this->password,\n 'image' => $this->image,\n 'gender' => $this->gender,\n 'topic_id' => $this->topic_id,\n 'topic_id1' => $this->topic_id1,\n 'role_id' => $this->role_id,\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save() {\n\t\t\t\n\t\t}" ]
[ "0.7240798", "0.7023102", "0.69909334", "0.6986246", "0.6864348", "0.67775875", "0.6773486", "0.6670846", "0.6631795", "0.6623352", "0.6598106", "0.6596057", "0.65875036", "0.65772986", "0.65697646", "0.6557262", "0.6543505", "0.65378445", "0.65330404", "0.6528446", "0.6517338", "0.65167165", "0.6511511", "0.64997786", "0.6493336", "0.64925885", "0.64829075", "0.64741", "0.6449836", "0.6446675", "0.64330816", "0.6423626", "0.64182174", "0.64077467", "0.6398789", "0.6393385", "0.63589483", "0.63557816", "0.63525873", "0.63455474", "0.63402957", "0.63280725", "0.63017774", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6300407", "0.6294297", "0.62854505", "0.62623876", "0.62538934", "0.6248983", "0.62313384", "0.6229543", "0.6229543", "0.6229543", "0.6229543", "0.6229543", "0.6228683", "0.6221572", "0.61989224", "0.6196938", "0.6191937", "0.61870074", "0.61757374", "0.61751586", "0.6173642", "0.6171999", "0.61565447", "0.61532116", "0.6152915", "0.6146486", "0.61462057", "0.6143693", "0.6126267", "0.6126026", "0.6122483", "0.6121222", "0.61209613", "0.612004", "0.61170685", "0.61075616", "0.61063576", "0.6103852", "0.6101748", "0.6096604", "0.6095879" ]
0.0
-1
Update the row in the database.
protected function doUpdate(ConnectionInterface $con) { $selectCriteria = $this->buildPkeyCriteria(); $valuesCriteria = $this->buildCriteria(); return $selectCriteria->doUpdate($valuesCriteria, $con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateRow($row);", "protected function update() {\n $this->db->updateRows($this->table_name, $this->update, $this->filter);\n storeDbMsg($this->db,ucwords($this->form_ID) . \" successfully updated!\");\n }", "public function update() {\n\t\tif (isset($this->params['updated'])) {\n\t\t\t$this->params['updated'] = null;\n\t\t} // 'updated' is an auto timestamp\n\n\t\t$columns = array();\n\t\tforeach (array_keys($this->params) as $key) {\n\t\t\tarray_push($columns, $key . ' = ?');\n\t\t}\n\t\t$bindings = implode(', ', $columns);\n\t\t$sql = 'UPDATE ' . static::$table . ' SET ' . $bindings . ' WHERE id = ' . $this->get('id') . ' ;';\n\t\t$query = DBH()->prepare($sql);\n\t\t$query->execute(array_values($this->params));\n\t}", "public function update(){\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = implode(', ', array_map(fn($name) => $name . ' = :' . $name, $fields));\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\t$where = $primaryKey . ' = :' . $primaryKey;\n\t\t$statement = $this->db->prepare('UPDATE ' . $tableName . ' SET ' . $params . ' WHERE ' . $where);\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\t$statement->bindValue(':' . $primaryKey, $this->{$primaryKey});\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function db_update() {}", "public function updateRecord() \n {\n $str = \"Id = :Id\";\n array_walk($this->arrayKeysValues(), function ($value, $key) use (&$str) {\n $str .= \", $key = :$key\";\n });\n $sql = sprintf(\"UPDATE Cubans SET %s WHERE Id = :Id\", $str);\n $statement = $this->connect->prepare($sql);\n $statement->execute(array_merge([\":Id\" => $this->id], $this->arrayKeysValues()));\n }", "protected function updateRow()\n { \n $tableName = $this->getTableName($this->className);\n $assignedValues = $this->getAssignedValues();\n $updateDetails = [];\n\n for ($i = 0; $i < count($assignedValues['columns']); $i++) { \n array_push($updateDetails, $assignedValues['columns'][$i] .' =\\''. $assignedValues['values'][$i].'\\'');\n }\n\n $connection = Connection::connect();\n\n $allUpdates = implode(', ' , $updateDetails);\n $update = $connection->prepare('update '.$tableName.' set '. $allUpdates.' where id='.$this->resultRows[0]['id']);\n \n if ($update->execute()) { \n return 'Row updated';\n } else { \n throw new Exception(\"Unable to update row\"); \n }\n }", "private function update()\n {\n $queryString = 'UPDATE ' . $this->table . ' SET ';\n foreach ($this->data as $column => $value) {\n if ($column != self::ID) {\n $queryString .= $column . ' =:' . $column . ',';\n }\n }\n $queryString .= ' updated_at = sysdate() WHERE 1 = 1 AND ' . self::ID . ' =:' . self::ID;\n $this->query = $this->pdo->prepare($queryString);\n }", "public function update() {\n // Get the values that are currently in the database\n $curr_vals = $this->read_single();\n\n // Set the values that will be added to the table\n foreach ($curr_vals as $key => $value) {\n // Convert key from the Database's capitalization to\n // this model's attribute capitalization style (all lowercase)\n $local_key = strtolower($key);\n // If user didn't specify property\n if (($this->attr[$local_key] === \"\") || ($this->attr[$local_key] === null)){\n // Then use the value that's already in the database\n $this->attr[$local_key] = $curr_vals[$key];\n }\n }\n\n // Create query\n $query = \"UPDATE \" . $this->table .\n \" SET = \" .\n \" WHERE MID = :mid AND Spot = :spot \";\n\n // Prepare statement\n $stmt = $this->conn->prepare($query);\n\n // Clean the data (reduce malicious SQL injection, etc.)\n foreach ($this->attr as $key => $value) {\n $this->attr[$key] = htmlspecialchars(strip_tags($value));\n }\n \n // Bind the data to a variable for an SQL attribute\n foreach ($this->attr as $key => $value) {\n $stmt->bindValue((\":\" . $key), $value);\n }\n\n // Execute the prepared statement and check for errors in running it\n return $this->runPrepStmtChkErr($stmt);\n }", "public function update() {\n\t\tTournamentDBClient::update($this);\n\t}", "protected function update() {\n if ($this->_isLoaded()) {\n $this->db->where('id', $this->id);\n $this->db->update($this->tableName, $this->mapToDatabase());\n } else {\n throw new Exception(\"Model is not loaded\");\n }\n }", "public function update()\n\t{\n\t\t$this->user->db_update();\n\t}", "public function update($row)\n\t{\n\t\t$this->db->where('tournamentId', $row['tournamentId']);\n\t\treturn $this->db->update('tournaments', $row);\n\t}", "public function update(){\r\n\t\tif (!$this->hasChanged) return self::RES_UNCHANGED;\r\n\t\t$table = $this->getTable();\r\n\t\tif ($this->new){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the record doesn't exist.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\tif (!$table->hasPrimaryKey()){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the table does not have a primary key.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$this->beforeCommit();\r\n\t\t\r\n\t\t$vals = array();\r\n\t\t$where = array();\r\n\t\t$changeCount = 0;\r\n\t\t$error = false;\r\n\t\tforeach ($this->values as $name=>$value){\r\n\t\t\tif ($value->isErroneous()){\r\n\t\t\t\tFramework::reportErrorField($name);\r\n\t\t\t\t$error = true;\r\n\t\t\t}\r\n\t\t\tif ($value->hasChanged()){\r\n\t\t\t\t$vals[] = \"`$name` = \".$value->getSQLValue();\r\n\t\t\t\t$changeCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($error){\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($table->getPrimaryKey()->getColumns() as $name){\r\n\t\t\t$where[] = \"`$name` = \".$this->values[$name]->getSQLValue();\r\n\t\t}\r\n\t\t$sql = 'UPDATE '.$this->getFullTableName().' SET '.implode(', ',$vals).' WHERE '.implode(' AND ',$where).' LIMIT 1';\r\n\t\tif (!SQL::query($sql)->success()){\r\n\t\t\tMessages::msg('Failed to update record in '.$this->getFullTableName().'.',Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t$this->hasChanged = false;\r\n\t\tforeach ($this->values as $value){\r\n\t\t\t$value->setHasChanged(false);\r\n\t\t}\r\n\t\t\r\n\t\t$this->afterCommit();\r\n\t\t\r\n\t\treturn self::RES_SUCCESS;\r\n\t}", "protected function _update() {\n $this->_getDef();\n \n //prepare\n foreach ($this->_tableData as $field) {\n if($field['primary']) {\n $primaryKey = $field['field_name'];\n $primaryValue = $this->$primaryKey;\n continue;\n }\n \n $sql_fields[] = '`' . $field['field_name'] . '` =?';\n \n $field_name = $field['field_name'];\n \n if(false !== ($overrideKey = $this->_getOverrideKey($field_name))){\n $field_name = $overrideKey;\n }\n \n if($this->$field_name instanceof \\DateTime){\n $$field_name = $this->$field_name->format('Y-m-d H:i:s');\n } elseif(is_array($$field_name)){\n $$field_name = json_encode($$field_name);\n } else {\n $$field_name = $this->$field_name;\n }\n \n $values[] = $$field_name;\n }\n \n $values[] = $primaryValue;\n \n $sql = \"UPDATE `{$this->_table}` SET \" . implode(',', $sql_fields) . \" WHERE `{$primaryKey}` =?\";\n $stmt = Database::connection($this->_connection)->prepare($sql, $values);\n $stmt->execute();\n $this->setLastError(NULL);\n if($stmt->error !== ''){\n $this->setLastError($stmt->error);\n }\n \n $stmt->close();\n \n return $this->getLastError() === NULL ? true : false;\n }", "private function _update() {\n\n $this->db->replace(XCMS_Tables::TABLE_USERS, $this->getArray());\n $this->attributes->save();\n\n }", "public function update()\n\t{\n\t\t$this->getModel()->update($this);\n\t}", "public function update(){\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $fieldsList = \" SET \";\n foreach ($this->attributes as $column => $value) {\n $fieldsList.=$column.\"=\".'\\''.$value.'\\''.\", \";\n }\n $fieldsList = str_last_replace(\", \", \"\", $fieldsList);\n $sqlQuery = \"UPDATE \".$this->table.$fieldsList.\" WHERE \".$this->idName.\"=\".$this->attributes[$this->idName];\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n }\n }", "public function put()\n {\n $this->layout = 'ajax';\n\n $this->Row->id = $this->request->data['id'];\n\n //if the row has a feed that belongs to the user\n $this->Feed->id = $this->Row->field('feed_id');\n\n // check if row belongs to the user\n if ($this->Auth->user('id') != $this->Feed->field('user_id')) {\n die('ERROR');\n }\n $this->Row->saveField(trim($this->request->data['columnName']), $this->request->data['value']);\n\n die($this->data['value']); // datatables wants this\n }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",lastname=\\\"$this->lastname\\\",username=\\\"$this->username\\\",email=\\\"$this->email\\\",kind=\\\"$this->kind\\\",status=\\\"$this->status\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$sql = 'UPDATE class SET ';\n\n\t\t\tif(isset($this->_year))\n\t\t\t\t$sql.=' year = :year,';\n\n\t\t\tif(isset($this->_section))\n\t\t\t\t$sql.=' section = :section';\n\t\t\telse\n\t\t\t\t$sql = substr_replace($sql, '', -1);\n\t\t\t\n\t\t\t$sql.=' WHERE id = :id';\n\n \t\t$data = [\n\t\t\t 'id' => $this->_id,\n\t\t\t 'year' => $this->_year,\n\t\t\t 'section' => $this->_section,\n\t\t\t];\n\n\t \t$stmt = $this->db->prepare($sql);\n\t \t$stmt->execute($data);\n\t\t\t$status = $stmt->rowCount();\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\theader(\"HTTP/1.0 400 Bad request\");\n\t\t\techo $e;\n\t\t}\n\t}", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",comments=\\\"$this->comments\\\",price=\\\"$this->price\\\",brand=\\\"$this->brand\\\",model=\\\"$this->model\\\",y=\\\"$this->y\\\",link=\\\"$this->link\\\",in_existence=\\\"$this->in_existence\\\",is_public=\\\"$this->is_public\\\",is_featured=\\\"$this->is_featured\\\",category_id=\\\"$this->category_id\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update() {\n\t\t$dbh = App::getDatabase()->connect();\n\n\t\t$query = \"UPDATE \".$this->getTableName().\"\n\t\t\t\t SET \";\n\n\t\t$fl = true;\n\t\tforeach($this as $column => $val) {\n\t\t\tif(!in_array($column, $this->getPrimaries())) {\n\t\t\t\t$query .= (($fl) ? \"\" : \", \").$column.\" = \".((is_bool($val)) ? (($val) ? \"TRUE\" : \"FALSE\") : ((is_null($val)||($val === \"\")) ? \"null\" : \"'\".$val.\"'\"));\n\t\t\t\t$fl = false;\n\t\t\t}\n\t\t}\n\n\t\t$fl = true;\n\t\tforeach($this as $column => $val) {\n\t\t\tif(in_array($column, $this->getPrimaries())) {\n\t\t\t\t$query .= \"\\n\".(($fl) ? \"WHERE\" : \"AND\").\" \".$column.\" = '\".$val.\"'\";\n\t\t\t\t$fl = false;\n\t\t\t}\n\t\t}\n\n\t\t$res = $dbh->exec($query);\n\t\t$dbh = null;\n\t\treturn $res;\n\t}", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "function update() {\n\t\t\t$updateQuery = \"UPDATE \".$this->table.\" SET \";\n\n\t\t\t$keysAR = array_keys($this->activeRecord);\n\n\t\t\tfor ($loopUp = 0; $loopUp < count($this->activeRecord); $loopUp++) {\n\n $updateQuery .= $keysAR[$loopUp] . \" = ?, \";\n $paramArray[] = $this->activeRecord[$keysAR[$loopUp]];\n\n\t\t\t}\n\n\t\t\t$updateQuery = substr($updateQuery, 0, -2); // Haal de laatste komma weg.\n\n\t\t\t$updateQuery .= \" WHERE \";\n\n\t\t\t// Fetch de primary key van de tabel.\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex = $fetchPrimary->fetch(PDO::FETCH_ASSOC);\n $kolomIndex = $arrayIndex['Column_name'];\n\n $updateQuery .= $kolomIndex.\" = \".$this->originalValues[$kolomIndex];\n\n\t\t\t$this->lastQuery = $updateQuery;\n\n $updateTable = $this->mysqlConnection->prepare($this->lastQuery);\n $updateTable->execute($paramArray);\n\n\t\t}", "public final function update() {\n\t\t$properties = self::getProperties($this);\n\t\t$columns = array_keys($properties);\n\t\t$values = array_values($properties);\n\n\t\t$setArray = array();\n\t\tfor ($i = 0; $i < count($properties); $i++) {\n\t\t\t$column = $columns[$i];\n\t\t\tif (strcmp($column, $this->primaryField) == 0 ||\n\t\t\t\tin_array($column, $this->uniqueFields)\n\t\t\t) {\n\t\t\t\t// Remove the value for binding\n\t\t\t\tunset($values[$i]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$setArray[] = $column . \" = ?\";\n\t\t}\n\n\t\t$sql = \"\n\tUPDATE\n\t\t\" . $this->table . \"\n\tSET\n\t\t\" . implode(\", \", $setArray) . \"\n\tWHERE\n\t\t\" . $this->primaryField . \" = ?\n\t;\";\n\t\t// Adds the primary key binding\n\t\t$values[] = $this->{$this->primaryField};\n\n\t\t$db = new MySQL();\n\t\t$statement = $db->prepare($sql);\n\t\t$status = $statement->execute($values);\n\t\t$statement = NULL;\n\n\t\treturn $status;\n\t}", "function EditRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$rsnew = array();\n\n\t\t\t// model_id\n\t\t\t$this->model_id->SetDbValueDef($rsnew, $this->model_id->CurrentValue, 0, $this->model_id->ReadOnly);\n\n\t\t\t// title\n\t\t\t$this->title->SetDbValueDef($rsnew, $this->title->CurrentValue, NULL, $this->title->ReadOnly);\n\n\t\t\t// description\n\t\t\t$this->description->SetDbValueDef($rsnew, $this->description->CurrentValue, NULL, $this->description->ReadOnly);\n\n\t\t\t// s_order\n\t\t\t$this->s_order->SetDbValueDef($rsnew, $this->s_order->CurrentValue, 0, $this->s_order->ReadOnly);\n\n\t\t\t// status\n\t\t\t$this->status->SetDbValueDef($rsnew, $this->status->CurrentValue, 0, $this->status->ReadOnly);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "protected function update()\n {\n $database = cbSQLConnect::connect('object');\n if (isset($database))\n {\n $fields = self::$db_fields;\n foreach($fields as $key)\n {\n $flag = $database->SQLUpdate(\"place\", $key, $this->{$key}, \"id\", $this->id);\n if ($flag == \"fail\")\n {\n break;\n }\n }\n if ($flag == \"fail\")\n {\n return false;\n }\n else\n return $this->id;\n }\n }", "public function update()\n {\n return $this->save();\n }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",email1=\\\"$this->email1\\\",address1=\\\"$this->address1\\\",lastname=\\\"$this->lastname\\\",phone1=\\\"$this->phone1\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "protected function update()\n\t{\n\t\t//append ID to fields\n\t\t$query = $this->connection->prepare\n\t\t(\"\n\t\t\tupdate Booth\n\t\t\tset BoothNum = ?\n\t\t\twhere BoothID = ?\n\t\t\");\n\n\t\t$query->execute(array_values($this->fields));\n\n\t}", "private function update(){\n\t\t$id = $this->objAccessCrud->getId();\n\t\tif (empty ( $id )) return;\n\t\t// Check permission to update.\n\t\t$result = $this->clsAccessPermission->toUpdate();\n\t\tif(!$result){\n\t\t\t$this->msg->setWarn(\"You don't have permission to update!\");\n\t\t\treturn;\n\t\t}\n\t\t// Execute Update.\n\t\tif (! $this->objAccessCrud->update ()) {\n\t\t\t$this->msg->setError (\"There were issues on update the record!\");\n\t\t\treturn;\n\t\t}\n\t\t$this->msg->setSuccess (\"Updated the record with success!\");\n\t\treturn;\n\t}", "function updateField() {\n DATABASE::INIT_TABLE($this->database, $this->table);\n $fname = $this->urlParam('fname');\n $fvalue = $this->urlParam('fvalue');\n $id = $this->urlParam('id');\n DATABASE::UPDATE($this->table, [$fname], [$fvalue], $id);\n }", "public function update(phpDataMapper_Model_Row $row)\n\t{\n\t\t// Get \"col = :col\" pairs for the update query\n\t\t$placeholders = array();\n\t\t$binds = array();\n\t\tforeach($row->getDataModified() as $field => $value) {\n\t\t\tif($this->fieldExists($field)) {\n\t\t\t\t$placeholders[] = $field . \" = :\" . $field . \"\";\n\t\t\t\t// Empty values will be NULL (easier to be handled by databases)\n\t\t\t\t$binds[$field] = $this->isEmpty($value) ? null : $value;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Ensure there are actually updated values on THIS table\n\t\tif(count($placeholders) > 0) {\n\t\t\t// Build the query\n\t\t\t$sql = \"UPDATE \" . $this->getTable() .\n\t\t\t\t\" SET \" . implode(', ', $placeholders) .\n\t\t\t\t\" WHERE \" . $this->getPrimaryKeyField() . \" = '\" . $this->getPrimaryKey($row) . \"'\";\n\t\t\t\n\t\t\t// Add query to log\n\t\t\t$this->logQuery($sql, $binds);\n\t\t\t\n\t\t\t// Prepare update query\n\t\t\t$stmt = $this->adapter->prepare($sql);\n\t\t\t\n\t\t\t// Bind column values\n\t\t\t$this->bindValues($stmt, $binds);\n\t\t\t\n\t\t\tif($stmt) {\n\t\t\t\t// Execute\n\t\t\t\tif($stmt->execute($binds)) {\n\t\t\t\t\t$result = $this->getPrimaryKey($row);\n\t\t\t\t} else {\n\t\t\t\t\t$result = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$result = false;\n\t\t\t}\n\t\t} else {\n\t\t\t$result = false;\n\t\t}\n\t\t\n\t\t// Save related rows\n\t\tif($result) {\n\t\t\t$this->saveRelatedRowsFor($row);\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "function EditRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$conn = &$this->Connection();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$this->LoadDbValues($rsold);\n\t\t\t$this->featured_image->OldUploadPath = \"../uploads/product/\";\n\t\t\t$this->featured_image->UploadPath = $this->featured_image->OldUploadPath;\n\t\t\t$rsnew = array();\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->SetDbValueDef($rsnew, $this->cat_id->CurrentValue, 0, $this->cat_id->ReadOnly || $this->cat_id->MultiUpdate <> \"1\");\n\n\t\t\t// company_id\n\t\t\t$this->company_id->SetDbValueDef($rsnew, $this->company_id->CurrentValue, 0, $this->company_id->ReadOnly || $this->company_id->MultiUpdate <> \"1\");\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->SetDbValueDef($rsnew, $this->pro_model->CurrentValue, NULL, $this->pro_model->ReadOnly || $this->pro_model->MultiUpdate <> \"1\");\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->SetDbValueDef($rsnew, $this->pro_name->CurrentValue, NULL, $this->pro_name->ReadOnly || $this->pro_name->MultiUpdate <> \"1\");\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->SetDbValueDef($rsnew, $this->pro_description->CurrentValue, NULL, $this->pro_description->ReadOnly || $this->pro_description->MultiUpdate <> \"1\");\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->SetDbValueDef($rsnew, $this->pro_condition->CurrentValue, NULL, $this->pro_condition->ReadOnly || $this->pro_condition->MultiUpdate <> \"1\");\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->SetDbValueDef($rsnew, $this->pro_features->CurrentValue, NULL, $this->pro_features->ReadOnly || $this->pro_features->MultiUpdate <> \"1\");\n\n\t\t\t// post_date\n\t\t\t$this->post_date->SetDbValueDef($rsnew, ew_CurrentDateTime(), NULL);\n\t\t\t$rsnew['post_date'] = &$this->post_date->DbValue;\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->SetDbValueDef($rsnew, $this->ads_id->CurrentValue, NULL, $this->ads_id->ReadOnly || $this->ads_id->MultiUpdate <> \"1\");\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->SetDbValueDef($rsnew, $this->pro_base_price->CurrentValue, NULL, $this->pro_base_price->ReadOnly || $this->pro_base_price->MultiUpdate <> \"1\");\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->SetDbValueDef($rsnew, $this->pro_sell_price->CurrentValue, NULL, $this->pro_sell_price->ReadOnly || $this->pro_sell_price->MultiUpdate <> \"1\");\n\n\t\t\t// featured_image\n\t\t\tif ($this->featured_image->Visible && !$this->featured_image->ReadOnly && strval($this->featured_image->MultiUpdate) == \"1\" && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t$this->featured_image->Upload->DbValue = $rsold['featured_image']; // Get original value\n\t\t\t\tif ($this->featured_image->Upload->FileName == \"\") {\n\t\t\t\t\t$rsnew['featured_image'] = NULL;\n\t\t\t\t} else {\n\t\t\t\t\t$rsnew['featured_image'] = $this->featured_image->Upload->FileName;\n\t\t\t\t}\n\t\t\t\t$this->featured_image->ImageWidth = 875; // Resize width\n\t\t\t\t$this->featured_image->ImageHeight = 665; // Resize height\n\t\t\t}\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->SetDbValueDef($rsnew, $this->folder_image->CurrentValue, \"\", $this->folder_image->ReadOnly || $this->folder_image->MultiUpdate <> \"1\");\n\n\t\t\t// pro_status\n\t\t\t$tmpBool = $this->pro_status->CurrentValue;\n\t\t\tif ($tmpBool <> \"Y\" && $tmpBool <> \"N\")\n\t\t\t\t$tmpBool = (!empty($tmpBool)) ? \"Y\" : \"N\";\n\t\t\t$this->pro_status->SetDbValueDef($rsnew, $tmpBool, \"N\", $this->pro_status->ReadOnly || $this->pro_status->MultiUpdate <> \"1\");\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->SetDbValueDef($rsnew, $this->branch_id->CurrentValue, NULL, $this->branch_id->ReadOnly || $this->branch_id->MultiUpdate <> \"1\");\n\n\t\t\t// lang\n\t\t\t$this->lang->SetDbValueDef($rsnew, $this->lang->CurrentValue, \"\", $this->lang->ReadOnly || $this->lang->MultiUpdate <> \"1\");\n\t\t\tif ($this->featured_image->Visible && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\t\t$OldFiles = ew_Empty($this->featured_image->Upload->DbValue) ? array() : array($this->featured_image->Upload->DbValue);\n\t\t\t\tif (!ew_Empty($this->featured_image->Upload->FileName) && $this->UpdateCount == 1) {\n\t\t\t\t\t$NewFiles = array($this->featured_image->Upload->FileName);\n\t\t\t\t\t$NewFileCount = count($NewFiles);\n\t\t\t\t\tfor ($i = 0; $i < $NewFileCount; $i++) {\n\t\t\t\t\t\t$fldvar = ($this->featured_image->Upload->Index < 0) ? $this->featured_image->FldVar : substr($this->featured_image->FldVar, 0, 1) . $this->featured_image->Upload->Index . substr($this->featured_image->FldVar, 1);\n\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\n\t\t\t\t\t\t\t$file = $NewFiles[$i];\n\t\t\t\t\t\t\tif (file_exists(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file)) {\n\t\t\t\t\t\t\t\t$OldFileFound = FALSE;\n\t\t\t\t\t\t\t\t$OldFileCount = count($OldFiles);\n\t\t\t\t\t\t\t\tfor ($j = 0; $j < $OldFileCount; $j++) {\n\t\t\t\t\t\t\t\t\t$file1 = $OldFiles[$j];\n\t\t\t\t\t\t\t\t\tif ($file1 == $file) { // Old file found, no need to delete anymore\n\t\t\t\t\t\t\t\t\t\tunset($OldFiles[$j]);\n\t\t\t\t\t\t\t\t\t\t$OldFileFound = TRUE;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ($OldFileFound) // No need to check if file exists further\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t$file1 = ew_UploadFileNameEx($this->featured_image->PhysicalUploadPath(), $file); // Get new file name\n\t\t\t\t\t\t\t\tif ($file1 <> $file) { // Rename temp file\n\t\t\t\t\t\t\t\t\twhile (file_exists(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file1) || file_exists($this->featured_image->PhysicalUploadPath() . $file1)) // Make sure no file name clash\n\t\t\t\t\t\t\t\t\t\t$file1 = ew_UniqueFilename($this->featured_image->PhysicalUploadPath(), $file1, TRUE); // Use indexed name\n\t\t\t\t\t\t\t\t\trename(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file, ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file1);\n\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $file1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->featured_image->Upload->DbValue = empty($OldFiles) ? \"\" : implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $OldFiles);\n\t\t\t\t\t$this->featured_image->Upload->FileName = implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $NewFiles);\n\t\t\t\t\t$this->featured_image->SetDbValueDef($rsnew, $this->featured_image->Upload->FileName, \"\", $this->featured_image->ReadOnly || $this->featured_image->MultiUpdate <> \"1\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t\tif ($EditRow) {\n\t\t\t\t\tif ($this->featured_image->Visible && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t\t\t$OldFiles = ew_Empty($this->featured_image->Upload->DbValue) ? array() : array($this->featured_image->Upload->DbValue);\n\t\t\t\t\t\tif (!ew_Empty($this->featured_image->Upload->FileName) && $this->UpdateCount == 1) {\n\t\t\t\t\t\t\t$NewFiles = array($this->featured_image->Upload->FileName);\n\t\t\t\t\t\t\t$NewFiles2 = array($rsnew['featured_image']);\n\t\t\t\t\t\t\t$NewFileCount = count($NewFiles);\n\t\t\t\t\t\t\tfor ($i = 0; $i < $NewFileCount; $i++) {\n\t\t\t\t\t\t\t\t$fldvar = ($this->featured_image->Upload->Index < 0) ? $this->featured_image->FldVar : substr($this->featured_image->FldVar, 0, 1) . $this->featured_image->Upload->Index . substr($this->featured_image->FldVar, 1);\n\t\t\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\n\t\t\t\t\t\t\t\t\t$file = ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $NewFiles[$i];\n\t\t\t\t\t\t\t\t\tif (file_exists($file)) {\n\t\t\t\t\t\t\t\t\t\tif (@$NewFiles2[$i] <> \"\") // Use correct file name\n\t\t\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $NewFiles2[$i];\n\t\t\t\t\t\t\t\t\t\tif (!$this->featured_image->Upload->ResizeAndSaveToFile($this->featured_image->ImageWidth, $this->featured_image->ImageHeight, EW_THUMBNAIL_DEFAULT_QUALITY, $NewFiles[$i], TRUE, $i)) {\n\t\t\t\t\t\t\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UploadErrMsg7\"));\n\t\t\t\t\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$NewFiles = array();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$OldFileCount = count($OldFiles);\n\t\t\t\t\t\tfor ($i = 0; $i < $OldFileCount; $i++) {\n\t\t\t\t\t\t\tif ($OldFiles[$i] <> \"\" && !in_array($OldFiles[$i], $NewFiles))\n\t\t\t\t\t\t\t\t@unlink($this->featured_image->OldPhysicalUploadPath() . $OldFiles[$i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\n\t\t// featured_image\n\t\tew_CleanUploadTempPath($this->featured_image, $this->featured_image->Upload->Index);\n\t\treturn $EditRow;\n\t}", "public function update($record);", "public function SQL_UPDATE() {\r\n\t}", "function update(){\n\t\t$this->model->update();\n\t}", "public function update(){\n static::setConnection();\n $table = static::$table;\n $keyColumn = static::$keyColumn;\n $sql = \"UPDATE \".$table.\" SET \";\n foreach($this as $k=>$v){\n $sql .= $k.\" = '\".$v.\"',\";\n }\n $sql = trim($sql, ',');\n $sql .= \" WHERE \".$keyColumn.\" = \".$this->keyColumn;\n mysqli_query(static::$conn, $sql);\n }", "public function update() {\n global $db;\n $this->_preupdate();\n $sql_set = '';\n $data = array();\n foreach($this->_magicProperties as $key=>$value)\n {\n $sql_set .= \"`\".addslashes($key).\"`=\";\n $sql_set .= \"?,\";\n $data[] = $value;\n }\n $sql_set = substr($sql_set, 0, -1);\n\n $query = \"UPDATE {$this->table} SET $sql_set WHERE \".$this->id_field.\"=?;\";\n $data[] = $this->{'get'.$this->id_field}();\n\n $result = $db->query($query,$data);\n $this->_postupdate($result);\n return $result;\n }", "public function update(){\n\t\techo $sql = \"update \".self::$tablename.\" set title=\\\"$this->title\\\",description=\\\"$this->description\\\",skills=\\\"$this->skills\\\",area_id=$this->area_id,jobtype_id=$this->jobtype_id,jobperiod_id=$this->jobperiod_id,duration=$this->duration,is_public=$this->is_public,is_finished=$this->is_finished,created_at=$this->created_at where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update($id)\n {\n /*\n |--------------------------------------------------------------------------\n |\n | This is an example which edits a particular row. \n | You can un-comment it to use this example\n |\n */\n // $row = Quizz::find($id);\n // $row->column = requestData(\"column\");\n // $row->save();\n }", "function EditRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\r\n\t\t$conn = &$this->Connection();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$this->LoadDbValues($rsold);\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->SetDbValueDef($rsnew, $this->Nro_Serie->CurrentValue, \"\", $this->Nro_Serie->ReadOnly || $this->Nro_Serie->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->SetDbValueDef($rsnew, $this->SN->CurrentValue, NULL, $this->SN->ReadOnly || $this->SN->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->SetDbValueDef($rsnew, $this->Cant_Net_Asoc->CurrentValue, NULL, $this->Cant_Net_Asoc->ReadOnly || $this->Cant_Net_Asoc->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->SetDbValueDef($rsnew, $this->Id_Marca->CurrentValue, 0, $this->Id_Marca->ReadOnly || $this->Id_Marca->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->SetDbValueDef($rsnew, $this->Id_Modelo->CurrentValue, 0, $this->Id_Modelo->ReadOnly || $this->Id_Modelo->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->SetDbValueDef($rsnew, $this->Id_SO->CurrentValue, 0, $this->Id_SO->ReadOnly || $this->Id_SO->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->SetDbValueDef($rsnew, $this->Id_Estado->CurrentValue, 0, $this->Id_Estado->ReadOnly || $this->Id_Estado->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->SetDbValueDef($rsnew, $this->User_Server->CurrentValue, NULL, $this->User_Server->ReadOnly || $this->User_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->SetDbValueDef($rsnew, $this->Pass_Server->CurrentValue, NULL, $this->Pass_Server->ReadOnly || $this->Pass_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->SetDbValueDef($rsnew, $this->User_TdServer->CurrentValue, NULL, $this->User_TdServer->ReadOnly || $this->User_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->SetDbValueDef($rsnew, $this->Pass_TdServer->CurrentValue, NULL, $this->Pass_TdServer->ReadOnly || $this->Pass_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cue\r\n\t\t\t// Fecha_Actualizacion\r\n\r\n\t\t\t$this->Fecha_Actualizacion->SetDbValueDef($rsnew, ew_CurrentDate(), NULL);\r\n\t\t\t$rsnew['Fecha_Actualizacion'] = &$this->Fecha_Actualizacion->DbValue;\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->SetDbValueDef($rsnew, CurrentUserName(), NULL);\r\n\t\t\t$rsnew['Usuario'] = &$this->Usuario->DbValue;\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t\tif ($EditRow) {\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\tif ($EditRow) {\r\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\r\n\t\t}\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "public function update() \n\t{\n\t\ttry\n\t\t{\n\t\t\t// Open database connection\n\t\t\t$database = new Database();\n\t\t\t\n\t\t\t// Set the error reporting attribute\n\t\t\t$database->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n\t\t\t// Build database query\n\t\t\t$sql = \"update stats set GP=:GP,AB=:AB,R=:R,H=:H,HR=:HR,RBI=:RBI,Salary=:Salary,Bio = :Bio where id = :id\";\n\t\t\t\n\t\t\t// Build database statement\n\t\t\t$statement = $database->prepare($sql);\n\t\t\t$statement->bindParam(':GP', $this->GP, PDO::PARAM_INT);\n\t\t\t$statement->bindParam(':AB', $this->AB, PDO::PARAM_INT);\n\t\t\t$statement->bindParam(':R', $this->R, PDO::PARAM_INT);\n\t\t\t$statement->bindParam(':H', $this->H, PDO::PARAM_INT);\n\t\t\t$statement->bindParam(':HR', $this->HR, PDO::PARAM_INT);\n\t\t\t$statement->bindParam(':RBI', $this->RBI, PDO::PARAM_INT);\n\t\t\t$statement->bindParam(':Salary', $this->Salary, PDO::PARAM_STR);\n\t\t\t$statement->bindParam(':Bio', $this->Bio, PDO::PARAM_STR);\n\t\t\t$statement->bindParam(':id', $this->id, PDO::PARAM_INT);\n\t\t\t\n\t\t\t// Execute database statement\n\t\t\t$statement->execute();\n\t\t\t\n\t\t\t// Get affected rows\n\t\t\t$count = $statement->rowCount();\n\t\t\t\n\t\t\t// Close database resources\n\t\t\t$database = null;\n\t\t\t\n\t\t\t// Return affected rows\n\t\t\treturn $count;\n\t\t}\n\t\tcatch (PDOException $exception) \n\t\t{\n\t\t\tdie($exception->getMessage());\n\t\t}\n\t}", "public function update() {\n if (!$this->id) {\n //echo \"No se tiene referencia al ID del objeto a actulizar.\";\n throw new Exception(\"No se tiene referencia al ID del objeto a actulizar.\");\n }\n\n $sql = \"UPDATE contratos SET numero_contrato=:numero_contrato, objeto_contrato=:objeto_contrato, presupuesto=:presupuesto, fecha_estimada_finalizacion=:fecha_estimada_finalizacion WHERE id=:id\";\n $args = array(\n \":id\" => $this->id,\n \":numero_contrato\" => $this->numeroContrato,\n \":objeto_contrato\" => $this->objetoContrato,\n \":presupuesto\" => $this->presupuesto,\n \":fecha_estimada_finalizacion\" => $this->fechaEstimadaFinalizacion,\n );\n $stmt = $this->executeQuery($sql, $args);\n\n return !$stmt ? false : true;\n }", "public function updateRow($data)\r\n\t{\r\n\t\t$data = (array)$data;\r\n\t\t$data = $this->cleanupFieldNames($data);\r\n\t\t\r\n\t\t// Build SQL\r\n\t\t$sql = 'UPDATE `'.$this->name.'` SET ';\r\n\t\t$values = array();\r\n\t\t$pkFound = false;\r\n\t\tforeach($data as $key => $val)\r\n\t\t{\r\n\t\t\t// Ignore if field is not in table\r\n\t\t\tif (!$this->hasField($key))\r\n\t\t\t{\r\n\t\t\t\tunset($data[$key]);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// Include value, but not if primary key and table has auto-incr PK\r\n\t\t\t$include = true;\r\n\t\t\tif ($key == $this->primaryKey)\r\n\t\t\t{\r\n\t\t\t\tif ($this->primaryKeyIsAutoIncrement)\r\n\t\t\t\t{\r\n\t\t\t\t\t$include = false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Found non-empty primary key\r\n\t\t\t\tif (!empty($val))\r\n\t\t\t\t{\r\n\t\t\t\t\t$pkFound = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Include and process special value\r\n\t\t\tif ($include)\r\n\t\t\t{\r\n\t\t\t\tif ($val === 'NULL')\r\n\t\t\t\t{\r\n\t\t\t\t\t$values[] = \"`$key` = NULL\";\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$values[] = \"`$key` = :$key\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t// Quit if has no primary key\r\n\t\tif (!$pkFound)\r\n\t\t{\r\n\t\t\tthrow new \\Exception('Cannot update: The supplied data does not contain a primary key');\r\n\t\t}\r\n\t\r\n\t\t// No fields were found - update makes no sense\r\n\t\tif (count($values) == 0)\r\n\t\t{\r\n\t\t\tthrow new \\Exception('No fields were added to the UPDATE query');\r\n\t\t}\r\n\t\t\t\r\n\t\t// Add values to query\r\n\t\t$sql .= implode(', ', $values);\r\n\t\r\n\t\t// Add where\r\n\t\t$sql .= ' WHERE `'.$this->primaryKey.'` = :' . $this->primaryKey;\r\n\r\n\t\t// Execute\r\n\t\t$result = $this->db->runQuery($sql, $data);\r\n\t\t\r\n\t\treturn $this->db->getAffectedRows();\r\n\t}", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",short_name=\\\"$this->short_name\\\",is_active=\\\"$this->is_active\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function updateRecord(){\n\t\tglobal $db;\n $data = array('email'=>$this->email);\n\t\t\t\t$response = $db->update($this->table,$data,\"id = $this->id\");\n\t\treturn $response;\n\t}", "public function update() {\n global $DB;\n $record = array(\n 'sortorder' => $this->sortorder,\n 'criterion' => $this->criterion,\n 'addinfo' => json_encode($this->addinfo)\n );\n if ($this->id) {\n $record['id'] = $this->id;\n $DB->update_record($this->get_table_name(), $record);\n } else {\n $record['instantquizid'] = $this->instantquiz->id;\n $this->id = $DB->insert_record($this->get_table_name(), $record);\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function update() {\n $Sql = \"UPDATE \" . $this->tableName[0] . \" SET \";\n foreach ($this->fieldListArray as $Key_ => $Value_) {\n $Sql = $Sql . \"$Key_='$Value_', \";\n }\n $Sql = substr($Sql, 0, strlen($Sql) - 2);\n $Sql = $Sql . \" WHERE \";\n foreach ($this->conditionArray as $Key_ => $Value_) {\n $Sql = $Sql . \"$Key_='$Value_' AND \";\n }\n $Sql = substr($Sql, 0, strlen($Sql) - 4);\n //echo $Sql;\n return mysqli_query($this->dataBaseConnect->getConnection(), $Sql);\n }", "private function Update() {\n $Update = new Update;\n $Update->ExeUpdate(self::Entity, $this->Data, \"WHERE id = :id\", \"id={$this->Post}\");\n if ($Update->getResult()):\n $this->Error = [\"As informações de <b>contato</b> foram atualizadas com sucesso!\", WS_ACCEPT];\n $this->Result = true;\n endif;\n }", "public function update()\n {\n if (empty($this->info)) {\n return true;\n }\n\n $success = $this->query($this->constructUpdateQuery());\n $this->numRows = $this->conn->affected_rows;\n\n return $success;\n }", "public function update() {\n\n // Does the course object have an ID?\n if ( is_null( $this->courseId ) ) trigger_error ( \"Course::update(): Attempt to update Course object that does not have its ID property set.\", E_USER_ERROR );\n\n // Update the course\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $sql = \"UPDATE course SET courseCode=:courseCode, courseName=:courseName, description=:description, headTeacher=:headTeacher WHERE courseId = :courseId\";\n $st = $conn->prepare ( $sql );\n $st->bindValue( \":courseCode\", $this->courseCode, PDO::PARAM_INT );\n $st->bindValue( \":courseName\", $this->courseName, PDO::PARAM_INT );\n $st->bindValue( \":description\", $this->description, PDO::PARAM_STR );\n $st->bindValue( \":headTeacher\", $this->headTeacher, PDO::PARAM_STR );\n\n//\n $st->bindValue( \":courseId\", $this->courseId, PDO::PARAM_INT );\n $st->execute();\n $conn = null;\n }", "function EditRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\r\n\t\t$conn = &$this->Connection();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$this->LoadDbValues($rsold);\r\n\t\t\t$this->Ruta_Archivo->OldUploadPath = 'ArchivosPase';\r\n\t\t\t$this->Ruta_Archivo->UploadPath = $this->Ruta_Archivo->OldUploadPath;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Serie_Equipo\r\n\t\t\t$this->Serie_Equipo->SetDbValueDef($rsnew, $this->Serie_Equipo->CurrentValue, NULL, $this->Serie_Equipo->ReadOnly);\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->SetDbValueDef($rsnew, $this->Id_Hardware->CurrentValue, NULL, $this->Id_Hardware->ReadOnly);\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->SetDbValueDef($rsnew, $this->SN->CurrentValue, NULL, $this->SN->ReadOnly);\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->SetDbValueDef($rsnew, $this->Modelo_Net->CurrentValue, NULL, $this->Modelo_Net->ReadOnly);\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->SetDbValueDef($rsnew, $this->Marca_Arranque->CurrentValue, NULL, $this->Marca_Arranque->ReadOnly);\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->SetDbValueDef($rsnew, $this->Nombre_Titular->CurrentValue, NULL, $this->Nombre_Titular->ReadOnly);\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->SetDbValueDef($rsnew, $this->Dni_Titular->CurrentValue, NULL, $this->Dni_Titular->ReadOnly);\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->SetDbValueDef($rsnew, $this->Cuil_Titular->CurrentValue, NULL, $this->Cuil_Titular->ReadOnly);\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->SetDbValueDef($rsnew, $this->Nombre_Tutor->CurrentValue, NULL, $this->Nombre_Tutor->ReadOnly);\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->SetDbValueDef($rsnew, $this->DniTutor->CurrentValue, NULL, $this->DniTutor->ReadOnly);\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->SetDbValueDef($rsnew, $this->Domicilio->CurrentValue, NULL, $this->Domicilio->ReadOnly);\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->SetDbValueDef($rsnew, $this->Tel_Tutor->CurrentValue, NULL, $this->Tel_Tutor->ReadOnly);\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->SetDbValueDef($rsnew, $this->CelTutor->CurrentValue, NULL, $this->CelTutor->ReadOnly);\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->SetDbValueDef($rsnew, $this->Cue_Establecimiento_Alta->CurrentValue, NULL, $this->Cue_Establecimiento_Alta->ReadOnly);\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->SetDbValueDef($rsnew, $this->Escuela_Alta->CurrentValue, NULL, $this->Escuela_Alta->ReadOnly);\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->SetDbValueDef($rsnew, $this->Directivo_Alta->CurrentValue, NULL, $this->Directivo_Alta->ReadOnly);\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->SetDbValueDef($rsnew, $this->Cuil_Directivo_Alta->CurrentValue, NULL, $this->Cuil_Directivo_Alta->ReadOnly);\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->SetDbValueDef($rsnew, $this->Dpto_Esc_alta->CurrentValue, NULL, $this->Dpto_Esc_alta->ReadOnly);\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->SetDbValueDef($rsnew, $this->Localidad_Esc_Alta->CurrentValue, NULL, $this->Localidad_Esc_Alta->ReadOnly);\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->SetDbValueDef($rsnew, $this->Domicilio_Esc_Alta->CurrentValue, NULL, $this->Domicilio_Esc_Alta->ReadOnly);\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->SetDbValueDef($rsnew, $this->Rte_Alta->CurrentValue, NULL, $this->Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->SetDbValueDef($rsnew, $this->Tel_Rte_Alta->CurrentValue, NULL, $this->Tel_Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->SetDbValueDef($rsnew, $this->Email_Rte_Alta->CurrentValue, NULL, $this->Email_Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->SetDbValueDef($rsnew, $this->Serie_Server_Alta->CurrentValue, NULL, $this->Serie_Server_Alta->ReadOnly);\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->SetDbValueDef($rsnew, $this->Cue_Establecimiento_Baja->CurrentValue, NULL, $this->Cue_Establecimiento_Baja->ReadOnly);\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->SetDbValueDef($rsnew, $this->Escuela_Baja->CurrentValue, NULL, $this->Escuela_Baja->ReadOnly);\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->SetDbValueDef($rsnew, $this->Directivo_Baja->CurrentValue, NULL, $this->Directivo_Baja->ReadOnly);\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->SetDbValueDef($rsnew, $this->Cuil_Directivo_Baja->CurrentValue, NULL, $this->Cuil_Directivo_Baja->ReadOnly);\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->SetDbValueDef($rsnew, $this->Dpto_Esc_Baja->CurrentValue, NULL, $this->Dpto_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->SetDbValueDef($rsnew, $this->Localidad_Esc_Baja->CurrentValue, NULL, $this->Localidad_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->SetDbValueDef($rsnew, $this->Domicilio_Esc_Baja->CurrentValue, NULL, $this->Domicilio_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->SetDbValueDef($rsnew, $this->Rte_Baja->CurrentValue, NULL, $this->Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->SetDbValueDef($rsnew, $this->Tel_Rte_Baja->CurrentValue, NULL, $this->Tel_Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->SetDbValueDef($rsnew, $this->Email_Rte_Baja->CurrentValue, NULL, $this->Email_Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->SetDbValueDef($rsnew, $this->Serie_Server_Baja->CurrentValue, NULL, $this->Serie_Server_Baja->ReadOnly);\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->Fecha_Pase->CurrentValue, 7), NULL, $this->Fecha_Pase->ReadOnly);\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->SetDbValueDef($rsnew, $this->Id_Estado_Pase->CurrentValue, 0, $this->Id_Estado_Pase->ReadOnly);\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->ReadOnly && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t$this->Ruta_Archivo->Upload->DbValue = $rsold['Ruta_Archivo']; // Get original value\r\n\t\t\t\tif ($this->Ruta_Archivo->Upload->FileName == \"\") {\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = NULL;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = $this->Ruta_Archivo->Upload->FileName;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t$this->Ruta_Archivo->UploadPath = 'ArchivosPase';\r\n\t\t\t\t$OldFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->DbValue);\r\n\t\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->FileName)) {\r\n\t\t\t\t\t$NewFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->FileName);\r\n\t\t\t\t\t$FileCount = count($NewFiles);\r\n\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t$fldvar = ($this->Ruta_Archivo->Upload->Index < 0) ? $this->Ruta_Archivo->FldVar : substr($this->Ruta_Archivo->FldVar, 0, 1) . $this->Ruta_Archivo->Upload->Index . substr($this->Ruta_Archivo->FldVar, 1);\r\n\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\r\n\t\t\t\t\t\t\t$file = $NewFiles[$i];\r\n\t\t\t\t\t\t\tif (file_exists(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file)) {\r\n\t\t\t\t\t\t\t\tif (!in_array($file, $OldFiles)) {\r\n\t\t\t\t\t\t\t\t\t$file1 = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->UploadPath), $file); // Get new file name\r\n\t\t\t\t\t\t\t\t\tif ($file1 <> $file) { // Rename temp file\r\n\t\t\t\t\t\t\t\t\t\twhile (file_exists(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file1)) // Make sure did not clash with existing upload file\r\n\t\t\t\t\t\t\t\t\t\t\t$file1 = ew_UniqueFilename(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->UploadPath), $file1, TRUE); // Use indexed name\r\n\t\t\t\t\t\t\t\t\t\trename(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file, ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file1);\r\n\t\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $file1;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->Ruta_Archivo->Upload->FileName = implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $NewFiles);\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = $this->Ruta_Archivo->Upload->FileName;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$NewFiles = array();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t\tif ($EditRow) {\r\n\t\t\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t\t\t$OldFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->DbValue);\r\n\t\t\t\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->FileName)) {\r\n\t\t\t\t\t\t\t$NewFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->FileName);\r\n\t\t\t\t\t\t\t$NewFiles2 = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $rsnew['Ruta_Archivo']);\r\n\t\t\t\t\t\t\t$FileCount = count($NewFiles);\r\n\t\t\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t\t\t$fldvar = ($this->Ruta_Archivo->Upload->Index < 0) ? $this->Ruta_Archivo->FldVar : substr($this->Ruta_Archivo->FldVar, 0, 1) . $this->Ruta_Archivo->Upload->Index . substr($this->Ruta_Archivo->FldVar, 1);\r\n\t\t\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\r\n\t\t\t\t\t\t\t\t\t$file = ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $NewFiles[$i];\r\n\t\t\t\t\t\t\t\t\tif (file_exists($file)) {\r\n\t\t\t\t\t\t\t\t\t\t$this->Ruta_Archivo->Upload->SaveToFile($this->Ruta_Archivo->UploadPath, (@$NewFiles2[$i] <> \"\") ? $NewFiles2[$i] : $NewFiles[$i], TRUE, $i); // Just replace\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$NewFiles = array();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$FileCount = count($OldFiles);\r\n\t\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t\tif ($OldFiles[$i] <> \"\" && !in_array($OldFiles[$i], $NewFiles))\r\n\t\t\t\t\t\t\t\t@unlink(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->OldUploadPath) . $OldFiles[$i]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\tif ($EditRow) {\r\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\r\n\t\t}\r\n\t\t$rs->Close();\r\n\r\n\t\t// Ruta_Archivo\r\n\t\tew_CleanUploadTempPath($this->Ruta_Archivo, $this->Ruta_Archivo->Upload->Index);\r\n\t\treturn $EditRow;\r\n\t}", "public function DoUpdate()\n\t{\n\n\t\treturn db_update_records($this->fields, $this->tables, $this->values, $this->filters);\n\t}", "public function update() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\t\t\t\r\n\t\t\t$arrBindings = array ();\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"UPDATE $this->sqlTable SET \";\r\n\t\t\t\r\n\t\t\tif (isset ( $this->userid )) {\r\n\t\t\t\t$sql .= \"lp_userid = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->userid;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->random )) {\r\n\t\t\t\t$sql .= \"lp_random = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->random;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->deadline )) {\r\n\t\t\t\t$sql .= \"lp_deadline = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->deadline;\r\n\t\t\t}\r\n\r\n\t\t\t$sql = preg_replace ( '/, $/', '', $sql);\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\t\t\t$arrBindings[] = $this->id;\r\n\t\t\t\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\t\r\n\t\t\t$ks_db->commit ();\r\n\t\t\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "function EditRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->SetDbValueDef($rsnew, $this->Con_SIM->CurrentValue, NULL, $this->Con_SIM->ReadOnly);\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->SetDbValueDef($rsnew, $this->Observaciones->CurrentValue, NULL, $this->Observaciones->ReadOnly);\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "protected function update()\n\t{\n\t\t$set = array();\n\t\tforeach( $this->attributes as $column => $value )\n\t\t{\n\t\t\t$set[] = \"`$column`=?\";\n\t\t}\n\t\t$set = implode(\",\", $set);\n\t\t\n\t\t$methodAttributes = array_values( $this->attributes );\n\t\t// add first method attribute - query\n\t\tarray_unshift($methodAttributes, \"UPDATE `\" . static::$table . \"` SET $set WHERE `\" . static::$primaryKey . \"` = ?\");\n\t\t// add last method attribute - primaryKey to WHERE\n\t\t$methodAttributes[] = $this->attributes[static::$primaryKey];\n\t\t\n\t\t// inserting\n\t\treturn call_user_func_array(\"Database::update\", $methodAttributes);\n\t}", "public function save()\n {\n $db = DatabaseUtil::db_connect($this->database);\n $db->query('update ' . $this->table . 'set ' . $this->column . ' = ' . $this->value . ' where ID=' . $this->ID);\n $db->close();\n }", "protected function updateObject()\n {\n $gatewayData = $this->encodeDataToJson();\n\n $query = $this->db->getQuery(true);\n\n $query\n ->update($this->db->quoteName(\"#__crowdf_intentions\"))\n ->set($this->db->quoteName(\"user_id\") . \"=\" . $this->db->quote($this->user_id))\n ->set($this->db->quoteName(\"project_id\") . \"=\" . $this->db->quote($this->project_id))\n ->set($this->db->quoteName(\"reward_id\") . \"=\" . $this->db->quote($this->reward_id))\n ->set($this->db->quoteName(\"unique_key\") . \"=\" . $this->db->quote($this->unique_key))\n ->set($this->db->quoteName(\"gateway\") . \"=\" . $this->db->quote($this->gateway))\n ->set($this->db->quoteName(\"gateway_data\") . \"=\" . $this->db->quote($gatewayData))\n ->set($this->db->quoteName(\"auser_id\") . \"=\" . $this->db->quote($this->auser_id))\n ->set($this->db->quoteName(\"session_id\") . \"=\" . $this->db->quote($this->session_id))\n ->where($this->db->quoteName(\"id\") .\"=\". (int)$this->id);\n\n $this->db->setQuery($query);\n $this->db->execute();\n }", "public function update():void\n {\n $id = $this->id;\n $first_name = $this->first_name;\n $last_name = $this->last_name;\n $image = $this->image;\n $user_type = $this->user_type;\n $address = $this->address;\n\t\t$phone = $this->phone;\n $this->fetch(\n 'UPDATE user\n SET first_name = ?,\n last_name = ?,\n image = ?,\n user_type = ?,\n address=?,\n phone=?\n WHERE id = ?;',\n [$first_name, $last_name,$image, $user_type,$address ,$phone , $id]\n );\n }", "public function update()\n\t{\n\t\t$mytable = WikiRevision::$table;\n\t\t$buf = \"UPDATE $mytable SET \";\n\t\tfor ($i = 0; $i < count(WikiRevision::$fields); $i++) {\n\t\t\t$buf .= WikiRevision::$fields[$i] . \" = '\" . DBConnection::get()->handle()->real_escape_string($this->data[$fields[$i]]) . \"'\" . ($i == count(WikiRevision::$fields) - 1)?(', '):(' ');\n\t\t}\n\t\t$buf .= \"WHERE rev_id = \" . $data['rev_id'];\n\t\tDBConnection::get()->handle()->query($buf);\n\t}", "public function update() {\r\n\r\n // get database connection\r\n\r\n \r\n \r\n $sql_update = \"update employees SET fname = '$this->firstName', lname = '$this->lastName', email = '$this->email' where id = '$this->id'\";\r\n if ($this->dbc->query($sql_update)) {\r\n\r\n echo \"<p> User Successfully Updated </p>\";\r\n return true;\r\n } else {\r\n\r\n echo \"<p> Could not run query </p>\";\r\n return false;\r\n }\r\n }", "public function update(){\n $sql = \"update \".self::$tablename.\" set correlativo=\\\"$this->correlativo\\\",nombre_instalador=\\\"$this->nombre_instalador\\\",nombre_proyecto=\\\"$this->nombre_proyecto\\\",localizacion=\\\"$this->localizacion\\\",contrato_orden_trabajo=\\\"$this->contrato_orden_trabajo\\\",sector_trabajo=\\\"$this->sector_trabajo\\\",area_aceptada=\\\"$this->area_aceptada\\\",fecha_proyecto=\\\"$this->fecha_proyecto\\\" where id_usuario=$this->id_usuario\";\n Executor::doit($sql);\n }", "public function updateData()\n {\n try {\n// echo \"<pre>\";\n// print_r($this->where);\n// print_r($this->insertUpdateArray);\n// exit;\n DB::table($this->dbTable)\n ->where($this->where)\n ->update($this->insertUpdateArray);\n } catch (Exception $ex) {\n throw new Exception($ex->getMessage(), 10024, $ex);\n }\n }", "function update(){\n\t\t\t\t$servername = \"localhost\";\n\t\t\t\t$username = \"root\";\n\t\t\t\t$password = \"\";\n\t\t\t\t$dbname = \"CS230\";\n\t\t\t\t//Variables for holding entity data\n\t\t\t\t$i = $_POST['i'];\n\t\t\t\t$cr = $_POST['creator'];\n\t\t\t\t$ti = $_POST['title'];\n\t\t\t\t$ty = $_POST['type'];\n\t\t\t\t$id = $_POST['identifier'];\n\t\t\t\t$da = $_POST['date'];\n\t\t\t\t$la = $_POST['language'];\n\t\t\t\t$de = $_POST['description'];\n\t\t\t\t$conn = mysqli_connect($servername, $username, $password, $dbname);\n\t\t\t\t\tif($conn){\n\t\t\t\t\t//echo \"Connection OK\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdie(\"The Connection has failed: \" .mysqli_connect_error());\n\t\t\t\t\t}\n\t\t\t\t$sql = \"UPDATE eBook_MetaData SET creator='$cr', title='$ti', type='$ty', identifier='$id', date='$da', language='$la', description='$de' WHERE id='$i'\";\n\t\t\t\t\t$data = mysqli_query($conn, $sql);\n\n\t\t\t\t\tif(!$data){\n\t\t\t\t\t\techo \"error\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\techo \"data updated\";\n\t\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t$conn = null;\n\t\t\t\t}", "public function updateRow($object)\n {\n $con = $this->getConnection();\n $statement = mysqli_prepare($con, \"UPDATE Comment SET UserID=? WHERE ID =?\");\n mysqli_stmt_bind_param($statement, 'ii', $UserID, $ID);\n $ID = $object->ID;\n $UserID = $object->UserID;\n mysqli_stmt_execute($statement);\n }", "public function testUpdate()\n {\n $id = $this->tester->grabRecord('common\\models\\Comentario', ['id_receita' => 2]);\n $receita = Comentario::findOne($id);\n $receita->descricao = 'novo Comentario';\n $receita->update();\n $this->tester->seeRecord('common\\models\\Comentario', ['descricao' => 'novo Comentario']);\n }", "public function update() {\n // Create Query\n $query = \n \"UPDATE \n $this->table \n SET\n name = :name\n WHERE\n id = :id;\";\n \n // Prepare Statement\n $stmt = $this->conn->prepare($query);\n \n // Clean data\n $this->name = htmlspecialchars(strip_tags($this->name));\n $this->id = htmlspecialchars(strip_tags($this->id));\n \n // Bind data\n $stmt-> bindParam(':name', $this->name);\n $stmt-> bindParam(':id', $this->id);\n \n // Execute query\n if($stmt->execute()) {\n return true;\n }\n\n // Print error if something goes wrong\n printf(\"Error: %s.\\n\", $stmt->error);\n return false;\n }", "public function update()\n\t{\n\t\ttry {\n\t\t\t$query = $this->connection->prepare(\"UPDATE \".self::$table.\" SET title=:title, content=:content, content_preview=:contentPreview WHERE id=:id\");\n\t\t\t$query->bindParam(':title', $this->title);\n\t\t\t$query->bindParam(':content', $this->content);\n\t\t\t$query->bindParam(':contentPreview', $this->contentPreview);\n\t\t\t$query->bindParam(':id', $this->id);\n\n\t\t\treturn $query->execute();\n\t\t} catch (\\PDOException $e) {\n\t\t\tLogger::log($e->getMessage());\n\t\t\tThrow new \\Exception('databaseError');\n\t\t\treturn false;\n\t\t}\n\t}", "public function update()\n {\n $this->_checkItem();\n $service = $this->getService();\n $entry = $service->getGbaseItemEntry( $this->getItem()->getGbaseItemId() );\n $this->setEntry($entry);\n $this->_prepareEnrtyForSave();\n $entry = $service->updateGbaseItem($this->getEntry());\n\n }", "function updateRow($pairId, $question, $answer)\r\n{\r\n global $dbh;\r\n\r\n $select = \"UPDATE flashcard SET question = :question, answer = :answer WHERE pairId=:pairId\";\r\n\r\n // prepare statement\r\n $statement = $dbh->prepare($select);\r\n\r\n // bind parameters\r\n $statement->bindValue(':pairId', $pairId);\r\n $statement->bindValue(':answer', $answer);\r\n $statement->bindValue(':question', $question);\r\n\r\n // execute statement\r\n $success = $statement->execute();\r\n\r\n return $success;\r\n}", "private function _update(){\n\t\tif($this->dao->update($this->user->getID(), $this->ident, $this->datahandler)){\n\t\t\t$this->read();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function updateDb()\n {\n\n // make sure this is a valid new entry\n if ($this->isValid()) {\n\n // check for duplicate\n $vals = sprintf(\"Level = %d\",$this->level);\n $sql = \" update Admins set $vals where Email = '$this->email';\";\n Dbc::getReader()->Exec($sql);\n }\n else\n print \"<br> Invalid entry. STOP! ($sql)<br>\";\n }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set Origen='$this->Origen',Fechap='$this->Fechap',Horap='$this->Horap',Cod_Referencia='$this->Referencia',Nombre_Referencia='$this->Nombre',Ref_Tela='$this->Reftela',Pinta='$this->Pinta',Color='$this->Color',Proceso='$this->Proceso',Ubicacion='$this->Ubicacion',SKU='$this->Sku',Maquina='$this->Maquina',Longitud_Inicial='$this->Longitudini',Longitud_Final='$this->Longitudfin',Peso='$this->Peso',Grados_PFoAT800K='$this->Plancha',Grados_Plato='$this->Plato',Grados_Pie='$this->Pie',Grados_Aire_S='$this->Airesup',Grados_Aire_I='$this->Aireinf',Caudal_Sup='$this->Caudalsup',Caudal_Inf='$this->Caudalinf',Presion='$this->Presion',Velocidad='$this->Velocidad',Velocidad_Sup='$this->Velocidad_Sup',Velocidad_Inf='$this->Velocidad_Inf',Intensidad='$this->Intensidad',Tiempo_Exp='$this->Tiempo',Resultado='$this->Resultado',Dinamometro='$this->Dinamometro',Observaciones1='$this->Observaciones' where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update_student($row)\n\t\t{\n\t\t\t$student = new Student();\n\t\t\t$student->setId($row['id']);\n\t\t\t$student->setFirstName($row['firstName']);\n\t\t\t$student->setLastName($row['lastName']);\n\t\t\t$student->setGender($row['gender']);\n\t\t\t$student->setAge($row['age']);\n\t\t\t$student->setGroup($row['sgroup']);\n\t\t\t$student->setFaculty($row['faculty']);\n\t\t\t$this->conn->update($student);\n\t\t}", "public function updateRecord()\n\t{\n\t\tif($this->user->hasRight($this->getHandler()->getEditRight()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$record = $this->getHandler()->getRecord();\n\t\t\t\t$record->import($this->getRequest());\n\n\t\t\t\t// check owner\n\t\t\t\tif(!$this->isOwner($record))\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception('You are not the owner of the record');\n\t\t\t\t}\n\n\t\t\t\t// check captcha\n\t\t\t\t$this->handleCaptcha($record);\n\n\t\t\t\t// update\n\t\t\t\t$this->getHandler()->update($record);\n\n\n\t\t\t\t$msg = new Message('You have successful edit a ' . $record->getName(), true);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t\tcatch(\\Exception $e)\n\t\t\t{\n\t\t\t\t$msg = new Message($e->getMessage(), false);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = new Message('Access not allowed', false);\n\n\t\t\t$this->setResponse($msg, null, $this->user->isAnonymous() ? 401 : 403);\n\t\t}\n\t}", "public function update() {\n\t\t$date = date(\"Y-m-d H:i:s\");\n\n\t\t$query=mysql_query(\"update \".$this->table.\" set \".$this->column.\" = '\".mysql_escape_string($this->value).\"', modified_by = \".$this->userID.\", modified='\".$date.\"' where id=\".$this->id);\n\n\t}", "public function update()\n {\n update($this->id, $article);\n }", "protected function _update()\n {\n $hash = $this->hasChangedFields() ? $this->getChangedFields()\n : $this->getFields();\n\n $primary = array();\n\n // we should check if tabe has only one primary\n $keys = $this->_db->getPrimary();\n if (is_array($keys)) {\n foreach ($keys as $key) {\n $primary[\"{$key} = ?\"] = $this->_fields[$key];\n }\n }\n\n return $this->_db->update($hash, $primary);\n }", "private function update() {\n\t\t\n\t\t// get database handle\n\t\tglobal $dbh;\n\t\t\n\t\t\n\t\treturn false;\n\t}", "public function update()\n {\n $this->model->load('TacGia');\n $tacgia = $this->model->TacGia->findById($_POST['id']);\n $tacgia->anh = $_POST['anh'];\n $tacgia->ten = $_POST['ten'];\n $tacgia->thongtin = $_POST['thongtin'];\n $tacgia->update();\n\n go_back();\n }", "protected function update()\n\t{\n\t\t$this->autofill();\n\n\t\t$query = $this->connection->prepare (\"call UpdateProjectBooth (?, ?)\");\n\t\t$query->execute ([$this->fields['ID'], $this->fields['BoothID']]);\n\n\t\t$booth = $this->fields['BoothID'];\n\t\tunset ($this->fields['BoothID']);\n\n\t\tparent::update();\n\n\t\t$this->fields['BoothID'] = $booth;\n\n\t}", "function EditRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$conn = &$this->Connection();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$this->LoadDbValues($rsold);\n\t\t\t$rsnew = array();\n\n\t\t\t// nomr\n\t\t\t$this->nomr->SetDbValueDef($rsnew, $this->nomr->CurrentValue, \"\", $this->nomr->ReadOnly);\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->SetDbValueDef($rsnew, $this->ket_nama->CurrentValue, NULL, $this->ket_nama->ReadOnly);\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->ket_tgllahir->CurrentValue, 0), NULL, $this->ket_tgllahir->ReadOnly);\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->SetDbValueDef($rsnew, $this->ket_alamat->CurrentValue, NULL, $this->ket_alamat->ReadOnly);\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->SetDbValueDef($rsnew, $this->ket_jeniskelamin->CurrentValue, NULL, $this->ket_jeniskelamin->ReadOnly);\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->SetDbValueDef($rsnew, $this->ket_title->CurrentValue, NULL, $this->ket_title->ReadOnly);\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->SetDbValueDef($rsnew, $this->dokterpengirim->CurrentValue, 0, $this->dokterpengirim->ReadOnly);\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->SetDbValueDef($rsnew, $this->statusbayar->CurrentValue, 0, $this->statusbayar->ReadOnly);\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->SetDbValueDef($rsnew, $this->kirimdari->CurrentValue, 0, $this->kirimdari->ReadOnly);\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->SetDbValueDef($rsnew, $this->keluargadekat->CurrentValue, \"\", $this->keluargadekat->ReadOnly);\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->SetDbValueDef($rsnew, $this->panggungjawab->CurrentValue, \"\", $this->panggungjawab->ReadOnly);\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->masukrs->CurrentValue, 0), NULL, $this->masukrs->ReadOnly);\n\n\t\t\t// noruang\n\t\t\t$this->noruang->SetDbValueDef($rsnew, $this->noruang->CurrentValue, 0, $this->noruang->ReadOnly);\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->SetDbValueDef($rsnew, $this->tempat_tidur_id->CurrentValue, 0, $this->tempat_tidur_id->ReadOnly);\n\n\t\t\t// nott\n\t\t\t$this->nott->SetDbValueDef($rsnew, $this->nott->CurrentValue, \"\", $this->nott->ReadOnly);\n\n\t\t\t// NIP\n\t\t\t$this->NIP->SetDbValueDef($rsnew, $this->NIP->CurrentValue, \"\", $this->NIP->ReadOnly);\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->SetDbValueDef($rsnew, $this->dokter_penanggungjawab->CurrentValue, 0, $this->dokter_penanggungjawab->ReadOnly);\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->SetDbValueDef($rsnew, $this->KELASPERAWATAN_ID->CurrentValue, NULL, $this->KELASPERAWATAN_ID->ReadOnly);\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->SetDbValueDef($rsnew, $this->NO_SKP->CurrentValue, NULL, $this->NO_SKP->ReadOnly);\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->sep_tglsep->CurrentValue, 5), NULL, $this->sep_tglsep->ReadOnly);\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->sep_tglrujuk->CurrentValue, 5), NULL, $this->sep_tglrujuk->ReadOnly);\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->SetDbValueDef($rsnew, $this->sep_kodekelasrawat->CurrentValue, NULL, $this->sep_kodekelasrawat->ReadOnly);\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->SetDbValueDef($rsnew, $this->sep_norujukan->CurrentValue, NULL, $this->sep_norujukan->ReadOnly);\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->SetDbValueDef($rsnew, $this->sep_kodeppkasal->CurrentValue, NULL, $this->sep_kodeppkasal->ReadOnly);\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->SetDbValueDef($rsnew, $this->sep_namappkasal->CurrentValue, NULL, $this->sep_namappkasal->ReadOnly);\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->SetDbValueDef($rsnew, $this->sep_kodeppkpelayanan->CurrentValue, NULL, $this->sep_kodeppkpelayanan->ReadOnly);\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->SetDbValueDef($rsnew, $this->sep_jenisperawatan->CurrentValue, NULL, $this->sep_jenisperawatan->ReadOnly);\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->SetDbValueDef($rsnew, $this->sep_catatan->CurrentValue, NULL, $this->sep_catatan->ReadOnly);\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->SetDbValueDef($rsnew, $this->sep_kodediagnosaawal->CurrentValue, NULL, $this->sep_kodediagnosaawal->ReadOnly);\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->SetDbValueDef($rsnew, $this->sep_namadiagnosaawal->CurrentValue, NULL, $this->sep_namadiagnosaawal->ReadOnly);\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->SetDbValueDef($rsnew, $this->sep_lakalantas->CurrentValue, NULL, $this->sep_lakalantas->ReadOnly);\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->SetDbValueDef($rsnew, $this->sep_lokasilaka->CurrentValue, NULL, $this->sep_lokasilaka->ReadOnly);\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->SetDbValueDef($rsnew, $this->sep_user->CurrentValue, NULL, $this->sep_user->ReadOnly);\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->SetDbValueDef($rsnew, $this->sep_flag_cekpeserta->CurrentValue, NULL, $this->sep_flag_cekpeserta->ReadOnly);\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->SetDbValueDef($rsnew, $this->sep_flag_generatesep->CurrentValue, NULL, $this->sep_flag_generatesep->ReadOnly);\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->SetDbValueDef($rsnew, $this->sep_nik->CurrentValue, NULL, $this->sep_nik->ReadOnly);\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->SetDbValueDef($rsnew, $this->sep_namapeserta->CurrentValue, NULL, $this->sep_namapeserta->ReadOnly);\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->SetDbValueDef($rsnew, $this->sep_jeniskelamin->CurrentValue, NULL, $this->sep_jeniskelamin->ReadOnly);\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->SetDbValueDef($rsnew, $this->sep_pisat->CurrentValue, NULL, $this->sep_pisat->ReadOnly);\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->SetDbValueDef($rsnew, $this->sep_tgllahir->CurrentValue, NULL, $this->sep_tgllahir->ReadOnly);\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->SetDbValueDef($rsnew, $this->sep_kodejeniskepesertaan->CurrentValue, NULL, $this->sep_kodejeniskepesertaan->ReadOnly);\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->SetDbValueDef($rsnew, $this->sep_namajeniskepesertaan->CurrentValue, NULL, $this->sep_namajeniskepesertaan->ReadOnly);\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->SetDbValueDef($rsnew, $this->sep_nokabpjs->CurrentValue, NULL, $this->sep_nokabpjs->ReadOnly);\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->SetDbValueDef($rsnew, $this->sep_status_peserta->CurrentValue, NULL, $this->sep_status_peserta->ReadOnly);\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->SetDbValueDef($rsnew, $this->sep_umur_pasien_sekarang->CurrentValue, NULL, $this->sep_umur_pasien_sekarang->ReadOnly);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t\tif ($EditRow) {\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "function updateRecord()\n\t{\n\t\t$data['roleName'] = $this->roleName;\n\t\t$data['roleDesc'] = $this->roleDesc;\n\t\t\n\t $this->db->where('roleID', $this->roleID);\n\t\t$this->db->update('roles', $data); \n\t\t\n\t\tif ($this->db->_error_message())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "function update( \\gb\\domain\\DomainObject $object ) {\n //$this->updateStmt->execute( $values );\n }", "public function updateDatabase(){\n\t\t$db = static::getDatabaseConnection();\n\t\t//Get all of the columns in the database table\n\t\t$columns = static::$columns;\n\t\t//Because we dont want the ID to change, remove the ID from the database\n\t\tunset($columns[array_search('id', $columns)]);\n\t\t//If we had a timecreated and timeupdated column, we would unset the timecreated column here\n\n\t\t//Write an Update Query\n\t\t$query = \"UPDATE \" . static::$tableName . \" SET \";\n\t\t$updatecols = [];\n\t\tforeach ($columns as $column){\n\t\t\tarray_push($updatecols, $column . \"=:\" . $column);\n\t\t}\n\t\t$query .= implode(\",\", $updatecols);\n\t\t$query .= \" WHERE id =:id\";\n\t\t$statement = $db->prepare($query);\n\n\t\tforeach(static::$columns as $column){\n\t\t\t//Hash the password\n\t\t\tif($column === 'password'){\n\t\t\t\t$this->$column = password_hash($this->$column, PASSWORD_DEFAULT);\n\t\t\t}\n\t\t\t$statement->bindValue(\":\".$column, $this->$column);\n\t\t}\n\t\t$statement->execute();\n\t}", "function update()\n {\n global $config;\n $query=file_get_contents(\"sql/updateArticle.sql\"); \n $query =sprintf($query, $config->prefix.self::$table); \n $query = $config->sql->prepare($query);\n $param=array(\n $this->title, $this->content, $this->lang, $this->date,\n $this->cat, $this->id, $this->lang\n );\n $result=$query->execute($param);\n if ($result) {\n return true;\n } else {\n print_r($query->errorInfo());\n }\n \n }", "function update_record () {\n\t\t\n\t\t// validate input\n $valid = true;\n if (empty($this->name)) {\n $this->nameError = 'Please enter Name';\n $valid = false;\n }\n\n if (empty($this->email)) {\n $this->emailError = 'Please enter Email Address';\n $valid = false;\n } \n\n\n if (empty($this->mobile)) {\n $this->mobileError = 'Please enter Mobile Number';\n $valid = false;\n }\n\n // update data\n if ($valid) {\n $pdo = Database::connect();\n $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $sql = \"UPDATE customers SET name = ?, email = ?, mobile = ? WHERE id=\".$_GET['id'];\n $q = $pdo->prepare($sql);\n $q->execute(array($this->name,$this->email,$this->mobile));\n Database::disconnect();\n header(\"Location: customer.php\");\n }\n else {\n $this->update();\n }\n\t\n\t}", "function update() {\n\n global $conn;\n\n $stmt = $conn->prepare('\n UPDATE Customer SET\n Name = :Name,\n Surname = :Surname,\n Email = :Email,\n Phone = :Phone\n WHERE Customer_id = :Customer_id\n ');\n\n $stmt->bindParam(':Name', $this->Name);\n $stmt->bindParam(':Surname', $this->Surname);\n $stmt->bindParam(':Email', $this->Email);\n $stmt->bindParam(':Phone', $this->Phone);\n $stmt->bindParam(':Customer_id', $this->Customer_id);\n\n return $stmt->execute();\n }", "function updateEntry($request, $rowId, $newRowId) {\n\n\t\t$this->deleteEntry($request, $rowId);\n\t\t$this->insertEntry($request, $newRowId);\n\t}", "protected function update()\n {\n $update = 'UPDATE users SET first_name = :first_name, last_name = :last_name,\n email = :email, password = :password WHERE id = :id';\n $statement = self::$dbc->prepare($update);\n foreach ($this->attributes as $key => $value) {\n $statement->bindValue(\":$key\", $value, PDO::PARAM_STR);\n }\n $statement->execute();\n }", "public function Save()\r\n\t\t{\r\n\t\t\tif ($this->id == -1) {\r\n\t\t\t\tunset($this->columns[\"id\"]);\r\n\t\t\t\t$sqlCol = null;\r\n\t\t\t\t$sqlKey = null;\r\n\t\t\t\tforeach ($this->columns as $column => $value) {\r\n\t\t\t\t\t$data[$column] = $this->$column;\r\n\t\t\t\t\t$sqlCol .= \",\" . $column;\r\n\t\t\t\t\t$sqlKey .= \",:\" . $column;\r\n\t\t\t\t}\r\n\t\t\t\t$sqlCol = ltrim($sqlCol, \",\");\r\n\t\t\t\t$sqlKey = ltrim($sqlKey, \",\");\r\n\t\t\t\t$query = $this->db->prepare(\r\n\t\t\t\t\t\"INSERT INTO \" . $this->table . \" (\" . $sqlCol . \")\r\n\t\t\t\t\t\tVALUES (\" . $sqlKey . \") ;\"\r\n\t\t\t\t);\r\n\t\t\t\t$query->execute($data);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\t// Sinon faire un update dynamique\r\n\t\t\t\t$sqlSet = null;\r\n\t\t\t\tforeach ($this->columns as $column => $value) {\r\n\t\t\t\t\t$data[$column] = $this->$column;\r\n\t\t\t\t\t$sqlSet[] .= $column . \"=:\" . $column;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Suppression de la mise à jour de la date d'update \r\n\t\t\t\t// la mise à jour des dates est maintenant faites en BDD.\r\n\t\t\t\t$query = $this->db->prepare(\r\n\t\t\t\t\t\"UPDATE \" . $this->table . \" SET \r\n\t\t\t\t\t\t\" . implode(\",\", $sqlSet) . \"\r\n\t\t\t\t\t\tWHERE id=:id;\"\r\n\t\t\t\t);\r\n\r\n\t\t\t\t$query->execute($data);\r\n\t\t\t}\r\n\t\t}", "public function update(){\n try {\n // update user query\n $this->_query = \"UPDATE \" . $this->_dbtable . \" SET usuario = :usuario, contrasena = :contrasena, nombre = :nombre, apellido = :apellido, email = :email, telefono = :telefono WHERE id=:id\";\n\n //preparing statement\n $statement = $this->_conn->prepare($this->_query);\n\n // binding params\n $statement->bindParam(':id', $this->id, PDO::PARAM_STR);\n $statement->bindParam(':usuario', $this->usuario, PDO::PARAM_STR);\n $statement->bindParam(':contrasena', $this->contrasena, PDO::PARAM_STR);\n $statement->bindParam(':nombre', $this->nombre, PDO::PARAM_STR);\n $statement->bindParam(':apellido', $this->apellido, PDO::PARAM_STR);\n $statement->bindParam(':email', $this->email, PDO::PARAM_STR);\n $statement->bindParam(':telefono', $this->telefono, PDO::PARAM_STR);\n\n // executing statement\n $statement->execute();\n\n // count affected rows\n $updatedRow = $statement->rowCount();\n\n // check if a row has been affected\n if ($updatedRow == 1) {\n return true;\n }\n\n return false;\n }\n catch(PDOException $ex){\n echo \"Error\" . $ex->getMessage();\n }\n }", "function update()\n {\n $this->dbInit();\n if ( isset( $this->ID ) )\n {\n query( \"UPDATE Grp set Name='$this->Name', Description='$this->Description',\n\t\tUserAdmin='$this->UserAdmin',\n \t\tUserGroupAdmin='$this->UserGroupAdmin',\n\t\tPersonTypeAdmin='$this->PersonTypeAdmin',\n\t\tCompanyTypeAdmin='$this->CompanyTypeAdmin',\n\t\tPhoneTypeAdmin='$this->PhoneTypeAdmin',\n\t\tAddressTypeAdmin='$this->AddressTypeAdmin' WHERE ID='$this->ID'\" );\n }\n }", "public function update() {\n\n //GETS TASK, DEPENDING ON TASK ID (ID)\n $data=Tasks::find(request('task_id'));\n\n //GETS REQUEST AND REPLACES TASK TITLE & DESCRIPTION\n $data->task=request('task');\n $data->description=request('description');\n\n //SAVES DB\n $data->save();\n\n //REDIRECTS TO TASK VIEW WITH NOTEPADID AS PARAMETER\n return redirect (\"/task/$data->NotepadID\");\n }", "public function Update()\n\t{\n\t\t$prefix = $this->Db->TablePrefix;\n\t\t$user = GetUser();\n\t\t$userid = $user->userid;\n\t\t$where = 'id = ' . $this->id;\n\n\t\t$surveys_data = $this->data;\n\n\t\tif (isset($surveys_data['_columns'])) {\n\t\t\tunset($surveys_data['_columns']);\n\t\t}\n\n\t\tif (isset($surveys_data['id'])) {\n\t\t\tunset($surveys_data['id']);\n\t\t}\n\n\t\t$surveys_data['updated'] = $this->GetServerTime();\n\n\t\t$this->Db->UpdateQuery('surveys', $surveys_data, $where);\n\t}", "public function update() {\n\t\t\t$query = \"UPDATE $this->table_name SET name=:name, drink=:drink WHERE id=:id\";\n\n\t\t\t// prepare motherfucker\n\t\t\t$stmt = $this->conn->prepare($query);\n\n\t\t\t$stmt->bindParam(':id', $this->id);\n\t\t\t$stmt->bindParam(':name', $this->name);\n\t\t\t$stmt->bindParam(':drink', $this->drink);\n\n\t\t\tif ($stmt->execute()) {\n\t\t\t\treturn true;\n\t\t\t}else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set nombre=\\\"$this->name\\\", razon_social=\\\"$this->razon\\\", status=$this->is_active where id_banco=$this->id_banco\";\n\t\tExecutor::doit($sql);\n\t}" ]
[ "0.7756289", "0.7365285", "0.72711533", "0.7213336", "0.7121275", "0.70645744", "0.7064426", "0.70587486", "0.69880486", "0.6935035", "0.6927288", "0.68843055", "0.6875682", "0.6854192", "0.68314517", "0.6828567", "0.6805677", "0.6770058", "0.6767573", "0.6749927", "0.6687357", "0.66867197", "0.66793406", "0.6677373", "0.6676618", "0.6675811", "0.6673821", "0.66589564", "0.6658532", "0.66507626", "0.6648498", "0.6638875", "0.66239464", "0.66237265", "0.6623202", "0.6621453", "0.65857357", "0.6564238", "0.65467966", "0.6545016", "0.653651", "0.6493678", "0.6493244", "0.64810467", "0.64758253", "0.6442255", "0.6440469", "0.6435535", "0.64245975", "0.64243615", "0.64243615", "0.64232266", "0.6409762", "0.64090794", "0.6405987", "0.64053947", "0.64016813", "0.63900197", "0.63892937", "0.6386865", "0.63814265", "0.6376645", "0.637545", "0.63679427", "0.6365901", "0.6363096", "0.6337426", "0.63317186", "0.633152", "0.63250256", "0.6316548", "0.63130635", "0.63090247", "0.6298325", "0.62922126", "0.6291525", "0.62882334", "0.6283659", "0.62812835", "0.62776047", "0.6272579", "0.62665933", "0.6265472", "0.6261325", "0.6233209", "0.622838", "0.6224675", "0.62230986", "0.62184685", "0.62156916", "0.62083864", "0.6207065", "0.62025845", "0.6201976", "0.61952734", "0.61817336", "0.6181103", "0.61723745", "0.61662835", "0.6164656", "0.61395323" ]
0.0
-1
Retrieves a field from the object by name passed in as a string.
public function getByName($name, $type = TableMap::TYPE_PHPNAME) { $pos = TblProdInfoTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); $field = $this->getByPosition($pos); return $field; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getField($name) { return $this->fields[$name]; }", "public function getField($field_name);", "public function getField($name) {\n return $this->getFields()[$name];\n }", "public function getField($name) {\n\t\treturn $this->fields[$name];\n\t}", "public function getField($name)\n {\n return $this->fields[$name];\n }", "public function get($name)\n\t{\n\t\tforeach ($this->getItems() as $field) {\n\t\t\tif ($field->getName() === $name) {\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new \\InvalidArgumentException(\"Could not find the field '{$name}'\");\n\t}", "public function getField($fieldName) {}", "public function getField($name)\n {\n return $this->fields[$name] ?: $this->addField($name);\n }", "public function getField($name) {\n return $this->body->getField($name);\n }", "public function get(string $name): FieldContract;", "function getField ( $name )\n\t{\n\t\tif ( ake ( $name , $this->_fields ) )\n\t\t{\n\t\t\treturn $this->_fields[$name] ;\n\t\t}\n\t\treturn null ;\n\t}", "public function get($field);", "public function get($field);", "public function getFieldValue(/*string*/ $fieldName);", "public function __get($name)\n\t{\n\t\tif ($field = $this->_meta->field($name))\n\t\t{\n\t\t\treturn $this->get($name);\n\t\t}\n\t}", "public function getField(string $name, string $class=null): Field;", "public function getField($field_name) {\n $retval = NULL;\n // if field exists\n if (array_key_exists($field_name,$this->form_fields)) {\n $retval = $this->form_fields[$field_name];\n }\n return $retval;\n }", "protected function _getReferenceField($name) {\r\n \treturn $this->_referenceMap[$name]['field'];\r\n }", "function &getField($name){\n\t\t$fields =& $this->fields();\n\t\tif ( !isset($fields[$name]) ){\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn $fields[$name];\n\t\t}\n\t}", "public function __invoke($name)\n {\n return $this->getFieldByName($name);\n }", "public function getFieldByName($name)\n {\n foreach ($this->fields as $field) {\n if ($field->getName() == $name) {\n return $field;\n }\n }\n\n return null;\n }", "function getFieldValue($field);", "public static function field($model, $field, $name = FALSE)\n\t{\n\t\tif (FALSE == ($meta = Jelly_Meta::get($model)))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t// Check to see if the field is aliased\n\t\tif (isset($meta->aliases[$field]))\n\t\t{\n\t\t\t$field = $meta->aliases[$field];\n\t\t}\n\t\t\n\t\tif (isset($meta->fields[$field]))\n\t\t{\n\t\t\tif ($name)\n\t\t\t{\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn $meta->fields[$field];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn NULL;\n\t}", "public function getField()\n {\n $value = $this->name;\n if (null != $this->field) {\n $value = $this->field;\n }\n return $value;\n }", "public function __get($name) \n {\n if(isset($this->fields[$name]))\n return $this->fields[$name];\n else\n return null;\n }", "public function getField(string $key);", "public function getField($fieldKey){\n $fields = $this->getFields();\n return $fields->{$fieldKey};\n }", "function get_field($name)\r\n {\r\n if ($name)\r\n {\r\n $tempArray = fetch_to_array(database::query(\"SELECT * FROM system WHERE name='$name'\"),\"\");\r\n if (is_array($tempArray)) return(current($tempArray));\r\n }\r\n else return (false);\r\n }", "function getfield($field){\n\n\t\treturn($this->record[$field]);\n\t}", "public function get_field( $args, $name = '' ) {\n\n\t\tif ( empty( $name ) ) {\n\t\t\t$name = isset( $args['type'] ) ? $args['type'] : false;\n\t\t}\n\n\t\treturn $name ? $this->get_object( $name, 'field', $args ) : null;\n\t}", "public function __get($name)\n {\n if (method_exists($this, \"get\" . ucfirst($name)))\n return call_user_func(array($this, \"get\" . ucfirst($name)));\n else {\n require_once(\"ID3/Exception.php\");\n throw new ID3_Exception(\"Unknown field: \" . $name);\n }\n }", "public function __get($name)\n\t{\n\t\tif (isset($this->_fields[$name]))\n\t\t\treturn $this->_fields[$name];\n\t\treturn null;\n\t}", "public function field($field, $name = FALSE)\n\t{\n\t\tif (empty($this->_fields[$field]))\n\t\t{\n\t\t\t$this->_fields[$field] = Jelly_Meta::field($this, $field);\n\t\t}\n\t\t\n\t\tif ($name)\n\t\t{\n\t\t\tif (is_object($this->_fields[$field]))\n\t\t\t{\n\t\t\t\treturn $this->_fields[$field]->name;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->_fields[$field];\n\t\t}\n\t\t\n\t\treturn NULL;\n\t}", "public function getDbFieldName($field_name);", "function get_field($type, $type_id = '', $field = 'name')\n {\n if ($type_id != '') {\n $l = $this->db->get_where($type, array(\n $type . '_id' => $type_id\n ));\n $n = $l->num_rows();\n if ($n > 0) {\n return $l->row()->$field;\n }\n }\n }", "function news_get_field( $p_news_id, $p_field_name ) {\r\n\t\t$row = news_get_row( $p_news_id );\r\n\t\treturn ( $row[$p_field_name] );\r\n\t}", "public function getFieldName() {}", "public function get($field) {\r\n\t\treturn $this -> fields[$field];\r\n\t}", "public function named(string $name) : Field\n {\n return $this->filter(function (Field $field) use ($name) {\n return $field->getName() == $name;\n })->first();\n }", "public function get_field_name();", "public function __get($name){\n\t\t\treturn ($name === 'Fields' || $name === 'Type') ? $this->$name : null;\n\t\t}", "public function get_field(/* .... */)\n {\n return $this->_field;\n }", "public function getProperty($field);", "public function getField();", "public function getField();", "public function getField();", "public function getField(string $name): ?\\ExEss\\Bundle\\CmsBundle\\Component\\Flow\\Response\\Form\\Field\n {\n $card = $this->getCardFor($name);\n\n if (null === $card) {\n return null;\n }\n\n foreach ($this->getGroup($card)->fields as $i => $field) {\n if (isset($field->id) && $field->id === $name) {\n return $field;\n }\n }\n\n return null;\n }", "public function fetchField();", "public function get_field_name($name)\n {\n if( ! $this->_model)\n {\n return $name;\n }\n return $this->get_model()->get_field_name($name);\n }", "public function findField(string $nativeName, string $class=null): Field;", "public function getFieldValue($fieldname)\n {\n return $this->{'get'.$fieldname}();\n }", "public function __get($name)\n {\n Precondition::isTrue(isset($this->data[$name]), 'field ' . $name . ' does not exist');\n\n return $this->data[$name];\n }", "public function getField(MultibannerInterface $multibanner, $name);", "public function extractProperty($object, $field_name)\n {\n if (!isset($object[$field_name]))\n {\n return null;\n }\n return $object[$field_name];\n }", "function get_field($id=false, $field=false) {\n\t\tif(!$id && !$field) return false;\n\t\tglobal $wpdb;\n\t\t$query = \"SELECT wposts.$field FROM $wpdb->posts wposts WHERE wposts.ID=$id\";\n\t\t$results = $this->query($query);\n\t\tif(isset($results[0])) return $results[0]->$field;\n\t}", "public function get(string $field_name)\n {\n return $this->field(INPUT_GET, $field_name);\n }", "protected static function getField(\n ParticleInterface $particle,\n FieldsCargo $cargo,\n string $name,\n array $args = []\n )/*: mixed*/\n {\n $name = Utils::findFieldName($cargo, $name);\n return $particle->attributes()->$name; // test with null.\n }", "public function getField($name)\r\n {\r\n $className = $this->retrieveClassName($name);\r\n return new $className;\r\n }", "function get($field) {\n\t\tif(!is_string($field)) {\n\t\t\ttrigger_error(\"Parameter for model->get() must be a string\", E_USER_WARNING);\n\t\t\treturn null;\n\t\t}\n\n\t\tif (method_exists($this, 'get_'.$field)) {\n\t\t\t$args = func_get_args();\n\t\t\tarray_shift($args);\n\n\t\t\treturn call_user_func_array(array(& $this, 'get_'.$field), $args);\n\t\t}\n\n\t\t$result = $this->find_associated($field);\n\n\t\tif (!is_null($result)) {\n\t\t\treturn $result;\n\t\t}\n\n\t\tif (isset($this->data[$field])) {\n\t\t\treturn $this->data[$field];\n\t\t}\n\n\t}", "public function getFieldValue($name)\n\t\t{\n\t\t\treturn $this->row[$name];\n\t\t}", "public function _get($field) {\n\t\tif(property_exists($this, $field)) return $this->{$field}; \n\t\telse return NULL;\n\t}", "public abstract function FetchField();", "public function getField($field_name, $check_db_on_fail = true){\n if(isset($this->data[$this->alias][$field_name]))\n return $this->data[$this->alias][$field_name];\n else if($check_db_on_fail && $this->id)\n return $this->field($field_name);\n else\n return null;\n }", "public function get_field( string $field ) {\n\t\tif ( array_key_exists( $field, $this->data ) ) {\n\t\t\treturn $this->data[ $field ];\n\t\t}\n\n\t\treturn '';\n\t}", "public function get_field_name($field_name)\n {\n }", "public function getField(): string;", "public function getField($fieldName)\n {\n return isset($this->fields[$fieldName]) ? $this->fields[$fieldName] : null;\n }", "function getFieldName(DataProperty &$property)\n {\n if (!is_object($property)) debug($property); // <-- this throws an exception\n // support [database.]table.field syntax\n if (preg_match('/^(.+)\\.(\\w+)$/', $property->source, $matches)) {\n $table = $matches[1];\n $field = $matches[2];\n return $field;\n }\n }", "public function getField($slug);", "public function getField($fieldName)\n {\n if (!isset($this->fields[$fieldName])) {\n return null;\n }\n\n return $this->fields[$fieldName];\n }", "public function field($fieldName = '') {\n if (!empty($fieldName)) {\n $this->currentField = $fieldName;\n }\n\n if (isset($this->fields[$this->currentField])) {\n return $this->fields[$this->currentField];\n } else {\n return null;\n }\n }", "public function getField($id)\r\n {\r\n return $this->_fetch($id);\r\n }", "public function get($name) {\n return $this->$name;\n }", "public function getSearchField($class, $field);", "public function __get($name)\n {\n if (method_exists($this, $name)) {\n return call_user_func_array(\n array($this, $name), array()\n );\n }\n\n // Try to get its value from a atribute\n if (property_exists($this, $name))\n return $this->$name;\n\n // Try to get its value from a \"record\" atribute\n if (property_exists($this,'record') && property_exists($this->record, $name))\n return $this->record->$name;\n\n // Just for debuggin\n //die(\"$name not found in \" . __CLASS__);\n\n // Nothing found\n return null;\n }", "function get($field)\n {\n $fieldLc = strtolower($field);\n if (array_key_exists($fieldLc, self::$translate))\n $fieldLc = self::$translate[$fieldLc];\n\n switch($fieldLc)\n { // act on field name\n case 'name':\n {\n return $this->getName();\n }\n\n case 'nativename':\n {\n return $this->getNativeName();\n }\n\n case 'sorry':\n {\n return $this->getSorry();\n }\n\n case 'cc':\n {\n if (array_key_exists('cc', $this->extras))\n return $this->extras['cc'];\n else\n return null;\n }\n\n\n default:\n { // other fields\n return parent::get($fieldLc);\n } // other fields\n } // act on field name\n }", "private function getFieldValue($data, $fieldName)\n {\n if ($fieldValue = data_get($data, $fieldName)) {\n return $fieldValue;\n }\n\n return data_get($data, camel_case($fieldName));\n }", "public function __get($name)\n\t{\n\t\tif ( isset( $this->newFields[$name] ) ) {\n\t\t\treturn $this->newFields[$name];\n\t\t}\n\t\telse if ( isset( $this->fields[$name] ) ) {\n\t\t\treturn $this->fields[$name];\n\t\t}\n\t\telse {\n\t\t\treturn NULL;\n\t\t}\n\t}", "public function get($field_name)\n\t{\n\t\t$value = Arr::get($this->_values, $field_name);\n\n\t\t// The field's value is not set\n\t\tif ($value === NULL)\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t\tif ($field = $this->_meta->field($field_name))\n\t\t{\n\t\t\t// If the field is defined, process the value using the field\n\t\t\t// object's `get` method.\n\t\t\t$value = $field->get($value);\n\t\t}\n\n\t\treturn $value;\n\t}", "private function getField($fieldName)\n {\n $form = $this->form;\n $field = $form->get($fieldName)->getConfig();\n $field->typeName = $this->getFieldTypeName($field);\n return $field;\n }", "public function getByName($name, $type = BasePeer::TYPE_FIELDNAME)\n {\n $pos = JadwalPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n $field = $this->getByPosition($pos);\n\n return $field;\n }", "public function getField(): string\n {\n return $this->field;\n }", "public static function getFieldValue($object, $fieldName) {\n if ( strpos($fieldName, '.') === false ) {\n if ( $object->hasMethod($fieldName) ) {\n // Method on object\n return $object->$fieldName();\n } else {\n // Bog standard field\n return $object->$fieldName;\n }\n }\n // Using dot notation\n list($baseFieldName, $relationFieldName) = explode('.', $fieldName, 2);\n // has_one\n if ( in_array($baseFieldName, array_keys($object->has_one())) ) {\n $field = $object->getComponent($baseFieldName);\n return $this->getFieldValue($field, $relationFieldName);\n }\n // has_many\n if ( in_array($baseFieldName, array_keys($object->has_many())) ) {\n // loop through and get string values for all components\n $tmp = '';\n $components = $object->getComponents($baseFieldName);\n foreach( $components as $component ) {\n $tmp .= $this->getFieldValue($component, $relationFieldName).\"\\n\";\n }\n return $tmp;\n }\n // many_many\n if ( in_array($baseFieldName, array_keys($object->many_many())) ) {\n // loop through and get string values for all components\n $tmp = '';\n $components = $object->getManyManyComponents($baseFieldName);\n foreach( $components as $component ) {\n $tmp .= $this->getFieldValue($component, $relationFieldName).\"\\n\";\n }\n return $tmp;\n }\n // Nope, not able to be indexed :-(\n return '';\n }", "public function get($name) {\n\t\treturn $this->$name;\n\t}", "public function getField($name)\n {\n if (!array_key_exists($name, $this->fields)) {\n throw new UnexpectedValueException('Trying to access an undefined field (`' . $name . '`).');\n }\n\n return $this->fields[$name];\n }", "public function __get(string $field)\n\t{\n\t\treturn $this->getValue($field);\n\t}", "public function get($campo) {\n return $this->$campo;\n }", "public function getByName($name, $type = BasePeer::TYPE_FIELDNAME)\n {\n $pos = BangunanPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n $field = $this->getByPosition($pos);\n\n return $field;\n }", "private function _getField($field, array &$fieldHandleParts = null)\n {\n if (is_numeric($field)) {\n $fieldHandleParts = null;\n return Craft::$app->getFields()->getFieldById($field);\n }\n\n $fieldHandleParts = explode('.', $field);\n return $this->fields[$fieldHandleParts[0]] ?? null;\n }", "public function __get($field)\n {\n if ($field == 'userId')\n {\n return $this->uid;\n }\n else \n {\n return $this->fields[$field];\n }\n }", "public function __get($name)\n {\n if(array_key_exists($name, $this->extraFields)){\n return $this->extraFields[$name]->getValue();\n }\n return parent::__get($name);\n }", "public function get($name)\n\t{\n\t\tif ( $name === 'id' )\n\t\t{\n\t\t\treturn $this->getID();\n\t\t}\n\t\t\n\t\tif ( isset($this->rest[$name]) )\n\t\t{\n\t\t\treturn $this->rest[$name];\n\t\t}\n\t\t\n\t\tif ( ! isset($this->members[$name]) )\n\t\t{\n\t\t\tthrow new DOMemberNotFoundException($name);\n\t\t}\n\t\t\n\t\treturn $this->values[$name];\n\t}", "private function getFieldFromRequest($fieldName)\n {\n $request = $this->getRequest();\n\n $fieldValue = '';\n if ($request->getMethod() == 'POST') {\n $formData = $request->request->get('form'); // form fields\n if (!empty($formData[$fieldName])) {\n $fieldValue = $formData[$fieldName];\n }\n } elseif ($request->getMethod() == 'GET') {\n if ($request->query->get($fieldName)) {\n $fieldValue = urldecode($request->query->get($fieldName));\n }\n }\n\n return $fieldValue;\n }", "public function getField(string $name, $default = null);", "function getField($campo)\n{\n\treturn $this->res2[$campo];\n}", "public function getFieldObject() {}", "public function get($name);", "public function get($name);", "public function get($name);", "public function get($name);", "public function get($name);" ]
[ "0.7682687", "0.766599", "0.7560665", "0.75073", "0.74375117", "0.73340756", "0.7267012", "0.7052004", "0.70329225", "0.7000008", "0.6946604", "0.69215125", "0.69215125", "0.6908229", "0.6866148", "0.6780136", "0.6772328", "0.6754795", "0.67382103", "0.67343754", "0.6721212", "0.66939145", "0.66926295", "0.66735643", "0.6641548", "0.66229016", "0.66098124", "0.6584433", "0.6575682", "0.65692085", "0.6528821", "0.65200156", "0.6518098", "0.6508603", "0.6497599", "0.64967436", "0.6480026", "0.6476091", "0.64661443", "0.6457992", "0.6443936", "0.6436731", "0.64315474", "0.6423075", "0.6423075", "0.6423075", "0.6417643", "0.6412429", "0.63686615", "0.6345601", "0.6340614", "0.63262725", "0.63148844", "0.6314134", "0.63112134", "0.6294586", "0.6288824", "0.62755644", "0.6269542", "0.6239878", "0.6230893", "0.62153786", "0.61824894", "0.6177728", "0.61717653", "0.6171329", "0.6164055", "0.6157755", "0.6154352", "0.6141662", "0.6135014", "0.61336404", "0.61080635", "0.60855556", "0.6084417", "0.60834485", "0.6082574", "0.6070394", "0.6070268", "0.606918", "0.60667896", "0.605894", "0.6043493", "0.60360765", "0.60355467", "0.6033143", "0.60268724", "0.6002801", "0.6000409", "0.59984344", "0.5996653", "0.5989046", "0.59888065", "0.5955721", "0.59298456", "0.59265625", "0.592525", "0.592525", "0.592525", "0.592525", "0.592525" ]
0.0
-1
Retrieves a field from the object by Position as specified in the xml schema. Zerobased.
public function getByPosition($pos) { switch ($pos) { case 0: return $this->getProdId(); break; case 1: return $this->getProdPriceId(); break; case 2: return $this->getProdName(); break; case 3: return $this->getProdAlt1(); break; case 4: return $this->getProdAlt2(); break; case 5: return $this->getProdAlt3(); break; case 6: return $this->getProdAlt4(); break; case 7: return $this->getProdCode(); break; case 8: return $this->getProdCategory(); break; case 9: return $this->getProdCategoryShipping(); break; case 10: return $this->getProdWriteup(); break; case 11: return $this->getProdLength(); break; case 12: return $this->getProdWingspan(); break; case 13: return $this->getProdHeight(); break; case 14: return $this->getProdScale(); break; case 15: return $this->getProdLinks(); break; case 16: return $this->getProdLinkdescription(); break; case 17: return $this->getProdFront(); break; case 18: return $this->getProdKeywords(); break; case 19: return $this->getProdKeywordsWriteup(); break; case 20: return $this->getProdTitle(); break; case 21: return $this->getProdDescription(); break; case 22: return $this->getProdGeneral(); break; case 23: return $this->getProdEra(); break; case 24: return $this->getProdCompany(); break; case 25: return $this->getProdRelated(); break; case 26: return $this->getProdRelatedPa(); break; case 27: return $this->getProdRelatedM3(); break; case 28: return $this->getProdRelated2(); break; case 29: return $this->getProdSaveas(); break; case 30: return $this->getProdAircraftreg(); break; case 31: return $this->getMb(); break; case 32: return $this->getPa(); break; case 33: return $this->getM3(); break; default: return null; break; } // switch() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFieldByPosition($position) {\n\t\tforeach ($this->fields as $field) {\n\t\t\tif ($field instanceof Field && $field->getPosition() == $position) {\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public function getFieldByPosition($position) {\n\t\tforeach ($this->fields as $field) {\n\t\t\tif ($field->getPosition() == $position) {\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public function getField(int $position): FieldInterface\n {\n return $this->fields[$position] ?? $this->fields[$position] = $this->instantiateField($position);\n }", "public function get($field);", "public function get($field);", "function FetchField($fieldOffset = -1) \n\t{\n\t\tif ($fieldOffset != -1) {\n\t\t\t$this->fieldmeta_offset = $fieldOffset;\n\t\t}\n\t\t$fieldObject = false;\n\t\t$i=0;\n\t\tforeach($this->fieldmeta as $o) {\n\t\t\tif($i==$this->fieldmeta_offset) {\n\t\t\t\t$fieldObject = $o;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\t$this->fieldmeta_offset++;\n\t\treturn $fieldObject;\n\t}", "public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getUfId();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getNome();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getSlug();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getLongitude();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getLatitude();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function getField();", "public function getField();", "public function getField();", "function getFieldValue($field);", "public function get_field(/* .... */)\n {\n return $this->_field;\n }", "public function fetchField();", "public function getField($field_name);", "public function get($field) {\r\n\t\treturn $this -> fields[$field];\r\n\t}", "public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getId();\n break;\n case 1:\n return $this->getName();\n break;\n case 2:\n return $this->getIsActive();\n break;\n case 3:\n return $this->getIsClosed();\n break;\n case 4:\n return $this->getFromDate();\n break;\n case 5:\n return $this->getToDate();\n break;\n case 6:\n return $this->getSortableRank();\n break;\n default:\n return null;\n break;\n } // switch()\n }", "public abstract function FetchField();", "public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getId();\n break;\n case 1:\n return $this->getName();\n break;\n case 2:\n return $this->getOpendate();\n break;\n case 3:\n return $this->getClosedate();\n break;\n case 4:\n return $this->getStatus();\n break;\n case 5:\n return $this->getInfotext();\n break;\n case 6:\n return $this->getForbook();\n break;\n case 7:\n return $this->getUserSys();\n break;\n case 8:\n return $this->getConfigSys();\n break;\n case 9:\n return $this->getSplit();\n break;\n case 10:\n return $this->getParentnode();\n break;\n case 11:\n return $this->getSort();\n break;\n default:\n return null;\n break;\n } // switch()\n }", "function getfield($field){\n\n\t\treturn($this->record[$field]);\n\t}", "public function getField($name) { return $this->fields[$name]; }", "public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getId();\n break;\n case 1:\n return $this->getNickname();\n break;\n case 2:\n return $this->getEmail();\n break;\n case 3:\n return $this->getAge();\n break;\n case 4:\n return $this->getSex();\n break;\n case 5:\n return $this->getCreatedAt();\n break;\n case 6:\n return $this->getUpdatedAt();\n break;\n default:\n return null;\n break;\n } // switch()\n }", "function getValue(int $field);", "public function get(string $name): FieldContract;", "public function getField($fieldName) {}", "public function getField($name) {\n return $this->body->getField($name);\n }", "public function get($position)\n\t{\n\t\tif($position < 0 || $position >= $this->length()) {\n\t\t\treturn null;\n\t\t}\n\n\t\t$part = $this->parts[$position];\n\n\t\tif((string)(int)$part == $part) {\n\t\t\t$part = (int)$part;\n\t\t}\n\n\t\treturn $part;\n\t}", "function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}", "public function _get($field) {\n\t\tif(property_exists($this, $field)) return $this->{$field}; \n\t\telse return NULL;\n\t}", "public function getFieldObject() {}", "public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getFeatureCvtermId();\n break;\n case 1:\n return $this->getFeatureId();\n break;\n case 2:\n return $this->getCvtermId();\n break;\n case 3:\n return $this->getPubId();\n break;\n case 4:\n return $this->getIsNot();\n break;\n case 5:\n return $this->getRank();\n break;\n default:\n return null;\n break;\n } // switch()\n }", "public function getField()\n {\n return $this->_field;\n }", "public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getArticleId();\n break;\n case 1:\n return $this->getDescription();\n break;\n case 2:\n return $this->getPrice();\n break;\n case 3:\n return $this->getCreation();\n break;\n case 4:\n return $this->getVisible();\n break;\n case 5:\n return $this->getShapeId();\n break;\n case 6:\n return $this->getCakeTypeId();\n break;\n default:\n return null;\n break;\n } // switch()\n }", "public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getEmail();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getDisplayName();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getRealName();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getLocation();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getWebpage();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getCountry();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getPostalCode();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getBirthday();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getGravatarAddress();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getInfo();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getPlatform();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getExperienceScore();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getUpVotes();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getDownVotes();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getIsGuest();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getIsAdmin();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getTodayVotes();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getEmailOn();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getLastEmail();\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\treturn $this->getCreatedAt();\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\treturn $this->getUpdatedAt();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getSubserial();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getAnnounce();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getMail();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getSerialId();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getRank();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getPrecinctId();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getGenreId();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getBroadcastId();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getCopyright();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getStatusId();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getRecorddate();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getPublicdate();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getEditorial1();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getEditorial2();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getEditorial3();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getAudio();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getDuration();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getNumView();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getComments();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function getField() {\n\t\treturn $this->_field;\n\t}", "public function getFieldValue(/*string*/ $fieldName);", "function FetchField($off = 0)\n\t{\n\n\t\t$o= new ADOFieldObject();\n\t\t$o->name = @pg_field_name($this->_queryID,$off);\n\t\t$o->type = @pg_field_type($this->_queryID,$off);\n\t\t$o->max_length = @pg_fieldsize($this->_queryID,$off);\n\t\treturn $o;\n\t}", "public function getField()\n {\n $value = $this->name;\n if (null != $this->field) {\n $value = $this->field;\n }\n return $value;\n }", "public function getField() {\n\t\treturn $this->field; \n\t}", "function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }", "public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getVenueid();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getAddress();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getAddress2();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getCity();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getProvince();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getCountry();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getLatitude();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getLongitude();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getPhone();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getName();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getDescription();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getWebsite();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getTwitter();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getFacebook();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getRssfeed();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getClosed();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getLastfmid();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getSlug();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getHasphotos();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getSubmittedbyuser();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "function news_get_field( $p_news_id, $p_field_name ) {\r\n\t\t$row = news_get_row( $p_news_id );\r\n\t\treturn ( $row[$p_field_name] );\r\n\t}", "public function getField() {\n\t\treturn $this->field;\n\t}", "function getField ( $name )\n\t{\n\t\tif ( ake ( $name , $this->_fields ) )\n\t\t{\n\t\t\treturn $this->_fields[$name] ;\n\t\t}\n\t\treturn null ;\n\t}", "function getField(){\n\t\treturn $this->Field;\n\t}", "public function getLookupField() {}", "public function getProperty($field);", "public function getField(){\n return $this->field;\n }", "public function getField($name) {\n\t\treturn $this->fields[$name];\n\t}", "function &getField($name){\n\t\t$fields =& $this->fields();\n\t\tif ( !isset($fields[$name]) ){\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn $fields[$name];\n\t\t}\n\t}", "public function Get ($field) {\n if ($this->structuredResult === null) return null;\n foreach ($this->structuredResult as $info) {\n if ($info['field'] == $field) {\n return $info['data'];\n }\n }\n return null;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function field()\n {\n if ($this->fieldInstance === null)\n {\n $field = $this->field ?: $this->id;\n\n $this->fieldInstance = $this->entity->fields()->get($field);\n\n if (null === $this->fieldInstance)\n {\n throw new RuntimeException(\"The field {$field} is not found in {$this->entity->getId()} entity.\");\n }\n\n if ( ! $this->fieldInstance instanceof ColumnInterface)\n {\n throw new LogicException(\"In order to use {$field} as a column it must implement SortableInterface.\");\n }\n }\n\n return $this->fieldInstance;\n }", "function get_field($id=false, $field=false) {\n\t\tif(!$id && !$field) return false;\n\t\tglobal $wpdb;\n\t\t$query = \"SELECT wposts.$field FROM $wpdb->posts wposts WHERE wposts.ID=$id\";\n\t\t$results = $this->query($query);\n\t\tif(isset($results[0])) return $results[0]->$field;\n\t}", "public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getPartieId();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getReplicaPostId();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getType();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getTitle();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getUrl();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getText();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getPhotoFile();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getPhotoUrl();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getQuote();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getQuoteAuthor();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getLinkTitle();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getLinkUrl();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getLinkImage();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getVideoUrl();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getTotalIndex();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getBestBadge1();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getBestBadge2();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getIsPublished();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getIsFeatured();\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\treturn $this->getCommentsCount();\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\treturn $this->getCreatedAt();\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\treturn $this->getUpdatedAt();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function position()\n\t{\n\t\treturn $this->getField('position');\n\t}", "public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getId();\n break;\n case 1:\n return $this->getMcode();\n break;\n case 2:\n return $this->getNameF();\n break;\n case 3:\n return $this->getNameT();\n break;\n case 4:\n return $this->getNameE();\n break;\n case 5:\n return $this->getPosid();\n break;\n case 6:\n return $this->getMdate();\n break;\n case 7:\n return $this->getBirthday();\n break;\n case 8:\n return $this->getNational();\n break;\n case 9:\n return $this->getIdTax();\n break;\n case 10:\n return $this->getIdCard();\n break;\n case 11:\n return $this->getIdCardImg();\n break;\n case 12:\n return $this->getIdCardImgDate();\n break;\n case 13:\n return $this->getZip();\n break;\n case 14:\n return $this->getHomeT();\n break;\n case 15:\n return $this->getOfficeT();\n break;\n case 16:\n return $this->getMobile();\n break;\n case 17:\n return $this->getMcodeAcc();\n break;\n case 18:\n return $this->getBonusrec();\n break;\n case 19:\n return $this->getBankcode();\n break;\n case 20:\n return $this->getBranch();\n break;\n case 21:\n return $this->getAccType();\n break;\n case 22:\n return $this->getAccNo();\n break;\n case 23:\n return $this->getAccNoImg();\n break;\n case 24:\n return $this->getAccNoImgDate();\n break;\n case 25:\n return $this->getAccName();\n break;\n case 26:\n return $this->getAccProv();\n break;\n case 27:\n return $this->getSvCode();\n break;\n case 28:\n return $this->getSpCode();\n break;\n case 29:\n return $this->getSpName();\n break;\n case 30:\n return $this->getSpCode2();\n break;\n case 31:\n return $this->getSpName2();\n break;\n case 32:\n return $this->getUpaCode();\n break;\n case 33:\n return $this->getUpaName();\n break;\n case 34:\n return $this->getLr();\n break;\n case 35:\n return $this->getComplete();\n break;\n case 36:\n return $this->getCompdate();\n break;\n case 37:\n return $this->getModate();\n break;\n case 38:\n return $this->getUsercode();\n break;\n case 39:\n return $this->getNameB();\n break;\n case 40:\n return $this->getSex();\n break;\n case 41:\n return $this->getAge();\n break;\n case 42:\n return $this->getOccupation();\n break;\n case 43:\n return $this->getStatus();\n break;\n case 44:\n return $this->getMarName();\n break;\n case 45:\n return $this->getMarAge();\n break;\n case 46:\n return $this->getEmail();\n break;\n case 47:\n return $this->getBeneficiaries();\n break;\n case 48:\n return $this->getRelation();\n break;\n case 49:\n return $this->getDistrictid();\n break;\n case 50:\n return $this->getAmphurid();\n break;\n case 51:\n return $this->getProvinceid();\n break;\n case 52:\n return $this->getFax();\n break;\n case 53:\n return $this->getInvCode();\n break;\n case 54:\n return $this->getUid();\n break;\n case 55:\n return $this->getOid();\n break;\n case 56:\n return $this->getPosCur();\n break;\n case 57:\n return $this->getPosCur1();\n break;\n case 58:\n return $this->getPosCur2();\n break;\n case 59:\n return $this->getPosCur3();\n break;\n case 60:\n return $this->getPosCur4();\n break;\n case 61:\n return $this->getPosCurTmp();\n break;\n case 62:\n return $this->getRposCur4();\n break;\n case 63:\n return $this->getPosCur3Date();\n break;\n case 64:\n return $this->getMemdesc();\n break;\n case 65:\n return $this->getCmp();\n break;\n case 66:\n return $this->getCmp2();\n break;\n case 67:\n return $this->getCmp3();\n break;\n case 68:\n return $this->getCcmp();\n break;\n case 69:\n return $this->getCcmp2();\n break;\n case 70:\n return $this->getCcmp3();\n break;\n case 71:\n return $this->getAddress();\n break;\n case 72:\n return $this->getStreet();\n break;\n case 73:\n return $this->getBuilding();\n break;\n case 74:\n return $this->getVillage();\n break;\n case 75:\n return $this->getSoi();\n break;\n case 76:\n return $this->getEwallet();\n break;\n case 77:\n return $this->getEatoship();\n break;\n case 78:\n return $this->getEcom();\n break;\n case 79:\n return $this->getBmdate1();\n break;\n case 80:\n return $this->getBmdate2();\n break;\n case 81:\n return $this->getBmdate3();\n break;\n case 82:\n return $this->getCbmdate1();\n break;\n case 83:\n return $this->getCbmdate2();\n break;\n case 84:\n return $this->getCbmdate3();\n break;\n case 85:\n return $this->getOnline();\n break;\n case 86:\n return $this->getCnameF();\n break;\n case 87:\n return $this->getCnameT();\n break;\n case 88:\n return $this->getCnameE();\n break;\n case 89:\n return $this->getCnameB();\n break;\n case 90:\n return $this->getCbirthday();\n break;\n case 91:\n return $this->getCnational();\n break;\n case 92:\n return $this->getCidTax();\n break;\n case 93:\n return $this->getCidCard();\n break;\n case 94:\n return $this->getCaddress();\n break;\n case 95:\n return $this->getCbuilding();\n break;\n case 96:\n return $this->getCvillage();\n break;\n case 97:\n return $this->getCstreet();\n break;\n case 98:\n return $this->getCsoi();\n break;\n case 99:\n return $this->getCzip();\n break;\n case 100:\n return $this->getChomeT();\n break;\n case 101:\n return $this->getCofficeT();\n break;\n case 102:\n return $this->getCmobile();\n break;\n case 103:\n return $this->getCfax();\n break;\n case 104:\n return $this->getCsex();\n break;\n case 105:\n return $this->getCemail();\n break;\n case 106:\n return $this->getCdistrictid();\n break;\n case 107:\n return $this->getCamphurid();\n break;\n case 108:\n return $this->getCprovinceid();\n break;\n case 109:\n return $this->getInameF();\n break;\n case 110:\n return $this->getInameT();\n break;\n case 111:\n return $this->getIrelation();\n break;\n case 112:\n return $this->getIphone();\n break;\n case 113:\n return $this->getIidCard();\n break;\n case 114:\n return $this->getStatusDoc();\n break;\n case 115:\n return $this->getStatusExpire();\n break;\n case 116:\n return $this->getStatusTerminate();\n break;\n case 117:\n return $this->getTerminateDate();\n break;\n case 118:\n return $this->getStatusSuspend();\n break;\n case 119:\n return $this->getSuspendDate();\n break;\n case 120:\n return $this->getStatusBlacklist();\n break;\n case 121:\n return $this->getStatusAto();\n break;\n case 122:\n return $this->getSletter();\n break;\n case 123:\n return $this->getSinvCode();\n break;\n case 124:\n return $this->getTxtoption();\n break;\n case 125:\n return $this->getSetregis();\n break;\n case 126:\n return $this->getSlr();\n break;\n case 127:\n return $this->getLocationbase();\n break;\n case 128:\n return $this->getCidMobile();\n break;\n case 129:\n return $this->getBewallet();\n break;\n case 130:\n return $this->getBvoucher();\n break;\n case 131:\n return $this->getVoucher();\n break;\n case 132:\n return $this->getManager();\n break;\n case 133:\n return $this->getMtype();\n break;\n case 134:\n return $this->getMtype1();\n break;\n case 135:\n return $this->getMtype2();\n break;\n case 136:\n return $this->getMvat();\n break;\n case 137:\n return $this->getUidbase();\n break;\n case 138:\n return $this->getExpDate();\n break;\n case 139:\n return $this->getHeadCode();\n break;\n case 140:\n return $this->getPvL();\n break;\n case 141:\n return $this->getPvC();\n break;\n case 142:\n return $this->getHpvL();\n break;\n case 143:\n return $this->getHpvC();\n break;\n case 144:\n return $this->getPvLNextmonth();\n break;\n case 145:\n return $this->getPvCNextmonth();\n break;\n case 146:\n return $this->getPvLLastmonth1();\n break;\n case 147:\n return $this->getPvCLastmonth1();\n break;\n case 148:\n return $this->getPvLLastmonth2();\n break;\n case 149:\n return $this->getPvCLastmonth2();\n break;\n case 150:\n return $this->getRcodeStar();\n break;\n case 151:\n return $this->getBunit();\n break;\n case 152:\n return $this->getProvince();\n break;\n case 153:\n return $this->getLineId();\n break;\n case 154:\n return $this->getFacebookName();\n break;\n case 155:\n return $this->getTypeCom();\n break;\n case 156:\n return $this->getExpPos();\n break;\n case 157:\n return $this->getExpPos60();\n break;\n case 158:\n return $this->getTripPrivate();\n break;\n case 159:\n return $this->getTripTeam();\n break;\n case 160:\n return $this->getMyfile1();\n break;\n case 161:\n return $this->getMyfile2();\n break;\n case 162:\n return $this->getClineId();\n break;\n case 163:\n return $this->getCfacebookName();\n break;\n case 164:\n return $this->getProfileImg();\n break;\n case 165:\n return $this->getAtocom();\n break;\n case 166:\n return $this->getHpv();\n break;\n default:\n return null;\n break;\n } // switch()\n }", "public function getField($pk = null)\n\t{\n\t\treturn parent::getRecord($pk);\n\t}", "public function getField($name) {\n return $this->getFields()[$name];\n }", "public function get_field( $query , $i = 0, $j = 0 ) {\n\t\t$result = $this->query( $query );\n\n\t\tif ( empty( $this->_last_result ) )\n\t\t\treturn null;\n\n\t\tif ( ! isset( $this->_last_result[ $i ] ) )\n\t\t\treturn null;\n\n\t\t$fields = array_values( get_object_vars( $this->_last_result[ $i ] ) );\n\n\t\tif ( ! isset( $fields[ $j ] ) )\n\t\t\treturn null;\n\n\t\treturn $fields[ $j ];\n\t}", "public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getPerfilId();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getEnderecoId();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getCargoId();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getDepartamentoId();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getMatricula();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getNome();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getEmail();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getDni();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getDataNascimento();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getDataContratacao();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getCelular();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getTelefone();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getToken();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getNomeUsuario();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getSenha();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getTokenSenha();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getTokenFirebase();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getDataRescisao();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getAtivo();\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\treturn $this->getTipoAcesso();\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\treturn $this->getEstadoCivil();\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\treturn $this->getNivelAcesso();\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\treturn $this->getUsuarioValidado();\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\treturn $this->getSexo();\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\treturn $this->getDataCadastro();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getBiblioId();\n break;\n case 1:\n return $this->getTitle();\n break;\n case 2:\n return $this->getSor();\n break;\n case 3:\n return $this->getEdition();\n break;\n case 4:\n return $this->getIsbn_issn();\n break;\n case 5:\n return $this->getPublisherId();\n break;\n case 6:\n return $this->getPublish_year();\n break;\n case 7:\n return $this->getCollation();\n break;\n case 8:\n return $this->getSeries_title();\n break;\n case 9:\n return $this->getCall_number();\n break;\n case 10:\n return $this->getLanguageId();\n break;\n case 11:\n return $this->getSource();\n break;\n case 12:\n return $this->getPublishPlaceId();\n break;\n case 13:\n return $this->getClassification();\n break;\n case 14:\n return $this->getNotes();\n break;\n case 15:\n return $this->getImage();\n break;\n case 16:\n return $this->getFile_att();\n break;\n case 17:\n return $this->getOpac_hide();\n break;\n case 18:\n return $this->getPromoted();\n break;\n case 19:\n return $this->getLabels();\n break;\n case 20:\n return $this->getFrequencyId();\n break;\n case 21:\n return $this->getSpec_detail_info();\n break;\n case 22:\n return $this->getInput_date();\n break;\n case 23:\n return $this->getLast_update();\n break;\n case 24:\n return $this->getUid();\n break;\n default:\n return null;\n break;\n } // switch()\n }", "public abstract function field_name($offset);", "public function getPlace($field) {\n\t\tif (is_null($this->place)) {\n\t\t\treturn null;\n\t\t}\n\t\treturn $this->place->$field;\n\t}", "public function get($field) {\n return key_exists($field, $this->_properties) ? $this->_properties[$field] : null;\n }", "function GetField($field=0){\n\t\t\treturn @mysql_result($this->result,0,$field);\n\t\t}", "public function __get ($field) {\n return $this->__fields[$field]['data'];\n }", "public function getField($fieldKey){\n $fields = $this->getFields();\n return $fields->{$fieldKey};\n }", "public function get(string $field)\n {\n return $this->getArray()[$field] ?? null;\n }", "public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getIDCommande();\n break;\n case 1:\n return $this->getRFCommande();\n break;\n case 2:\n return $this->getIDSociete_FK();\n break;\n case 3:\n return $this->getTMode();\n break;\n case 4:\n return $this->getQuantite();\n break;\n case 5:\n return $this->getAPrix();\n break;\n case 6:\n return $this->getADelai();\n break;\n case 7:\n return $this->getDTECommande();\n break;\n case 8:\n return $this->getPriorite();\n break;\n case 9:\n return $this->getCMDNote();\n break;\n default:\n return null;\n break;\n } // switch()\n }", "public function getField($id)\r\n {\r\n return $this->_fetch($id);\r\n }", "public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getPhadtype();\n break;\n case 1:\n return $this->getPhadid();\n break;\n case 2:\n return $this->getPhadsubid();\n break;\n case 3:\n return $this->getPhadsubidseq();\n break;\n case 4:\n return $this->getPhadcont();\n break;\n case 5:\n return $this->getPhadintl();\n break;\n case 6:\n return $this->getPhadtelenbr();\n break;\n case 7:\n return $this->getPhadteleext();\n break;\n case 8:\n return $this->getPhadintlnbr();\n break;\n case 9:\n return $this->getPhadintlext();\n break;\n case 10:\n return $this->getPhadfaxnbr();\n break;\n case 11:\n return $this->getPhadifaxnbr();\n break;\n case 12:\n return $this->getPhadcellnbr();\n break;\n case 13:\n return $this->getPhadicellnbr();\n break;\n case 14:\n return $this->getPhadhomenbr();\n break;\n case 15:\n return $this->getPhadihomenbr();\n break;\n case 16:\n return $this->getPhadwebaddr();\n break;\n case 17:\n return $this->getPhademailaddr();\n break;\n case 18:\n return $this->getPhadname();\n break;\n case 19:\n return $this->getPhadcontname();\n break;\n case 20:\n return $this->getDateupdtd();\n break;\n case 21:\n return $this->getTimeupdtd();\n break;\n case 22:\n return $this->getDummy();\n break;\n default:\n return null;\n break;\n } // switch()\n }", "public function offsetGet ($offset) {\n return $this->__fields[$offset]['data'];\n }", "public function getField(string $name, string $class=null): Field;", "public function findField(string $nativeName, string $class=null): Field;", "public function __get($field) {\n\t\tif(array_key_exists($field, $this->_data)) {\n\t\t\treturn $this->_data[$field];\n\t\t}\n\t\telse {\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('The specified field \"' . $field . '\" was not found.');\n\t\t}\n\t}", "public function __get(string $field)\n\t{\n\t\treturn $this->getValue($field);\n\t}", "function f($field) {\n\t\treturn($this->fetchfield($field));\n\t}", "public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getId();\n break;\n case 1:\n return $this->getRefNo();\n break;\n case 2:\n return $this->getUniquekeyid();\n break;\n case 3:\n return $this->getCustomerId();\n break;\n case 4:\n return $this->getAccountNo();\n break;\n case 5:\n return $this->getServiceType();\n break;\n case 6:\n return $this->getServiceDistrictId();\n break;\n case 7:\n return $this->getBillingCycle();\n break;\n case 8:\n return $this->getDueDate();\n break;\n case 9:\n return $this->getBillingFrom();\n break;\n case 10:\n return $this->getBillingTo();\n break;\n case 11:\n return $this->getBillDate();\n break;\n case 12:\n return $this->getRate();\n break;\n case 13:\n return $this->getMeternumber();\n break;\n case 14:\n return $this->getBillingmethod();\n break;\n case 15:\n return $this->getDateoflastreading();\n break;\n case 16:\n return $this->getDateofcurrentreading();\n break;\n case 17:\n return $this->getDaysusage();\n break;\n case 18:\n return $this->getLastmeterreading();\n break;\n case 19:\n return $this->getCurrentmeterreading();\n break;\n case 20:\n return $this->getUnitsconsumed();\n break;\n case 21:\n return $this->getLastpaymentamount();\n break;\n case 22:\n return $this->getLastpaymentdate();\n break;\n case 23:\n return $this->getMetermaintenancecharge();\n break;\n case 24:\n return $this->getDiscounts();\n break;\n case 25:\n return $this->getOthercharges();\n break;\n case 26:\n return $this->getPenaltycharges();\n break;\n case 27:\n return $this->getTaxcharges();\n break;\n case 28:\n return $this->getCharges();\n break;\n case 29:\n return $this->getRoutinecharges();\n break;\n case 30:\n return $this->getBillservicerate();\n break;\n case 31:\n return $this->getBuildingtype();\n break;\n case 32:\n return $this->getRoute();\n break;\n case 33:\n return $this->getUsagetype();\n break;\n case 34:\n return $this->getServiceCharge();\n break;\n case 35:\n return $this->getPreviousBalance();\n break;\n case 36:\n return $this->getPaymentReceived();\n break;\n case 37:\n return $this->getLastPaymentReceivedDate();\n break;\n case 38:\n return $this->getCurrentCharge();\n break;\n case 39:\n return $this->getTotalDue();\n break;\n case 40:\n return $this->getInvoiceNo();\n break;\n case 41:\n return $this->getReceiptNo();\n break;\n case 42:\n return $this->getDateCreated();\n break;\n case 43:\n return $this->getCreator();\n break;\n case 44:\n return $this->getStatus();\n break;\n default:\n return null;\n break;\n } // switch()\n }", "public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getUsername();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getEmail();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getPassword();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getPoints();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getCreatedAt();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getLastActivityAt();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getType();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getHidden();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getName();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getGender();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getHometown();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getHomePhone();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getMobilePhone();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getBirthdate();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getAddress();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getRelationshipStatus();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getShowEmail();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getShowGender();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getShowHometown();\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\treturn $this->getShowHomePhone();\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\treturn $this->getShowMobilePhone();\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\treturn $this->getShowBirthdate();\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\treturn $this->getShowAddress();\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\treturn $this->getShowRelationshipStatus();\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\treturn $this->getPasswordRecoverKey();\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\treturn $this->getCookieKey();\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\treturn $this->getCredit();\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\treturn $this->getInvisible();\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\treturn $this->getNotification();\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\treturn $this->getPhoneNumber();\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\treturn $this->getLogin();\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\treturn $this->getCreditCard();\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\treturn $this->getCreditCardToken();\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\treturn $this->getFirstCharge();\n\t\t\t\tbreak;\n\t\t\tcase 35:\n\t\t\t\treturn $this->getWhereFindUs();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getSlug();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getName();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getCommentaire();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getSubject();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getTemplateId();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getContent();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getPreparedContent();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getTextContent();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getPreparedTextContent();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getStatus();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getFromName();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getFromEmail();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getScheduledAt();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getScheduleType();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getTestType();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getTestUserList();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getTarget();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getReplyToEmail();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getReturnPathEmail();\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\treturn $this->getReturnPathServer();\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\treturn $this->getReturnPathLogin();\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\treturn $this->getReturnPathPassword();\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\treturn $this->getIsArchived();\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\treturn $this->getGoogleAnalyticsEnabled();\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\treturn $this->getGoogleAnalyticsSource();\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\treturn $this->getGoogleAnalyticsMedium();\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\treturn $this->getGoogleAnalyticsCampaignType();\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\treturn $this->getGoogleAnalyticsCampaignContent();\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\treturn $this->getGoogleAnalyticsContent();\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\treturn $this->getLitmusTestId();\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\treturn $this->getWebTrackerEnabled();\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\treturn $this->getCreatedAt();\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\treturn $this->getCreatedBy();\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\treturn $this->getUpdatedAt();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function __get($field)\n {\n if ($field == 'userId')\n {\n return $this->uid;\n }\n else \n {\n return $this->fields[$field];\n }\n }", "public function getField()\n {\n return $this->reflectionProperty;\n }", "public function getField($name)\n {\n return $this->fields[$name];\n }", "protected function _getReferenceField($name) {\r\n \treturn $this->_referenceMap[$name]['field'];\r\n }", "public function getField(string $key);", "public function __get($field){\n if ($field == 'usuario_id'){\n return $this->codigo;\n }\n else{\n return $this->fields[$field];\n }\n }", "public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getCoUsuario();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getNuCpf();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getDsPassword();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getNoUsuario();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getDsLogin();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getDtUltimoLogin();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getDsEmail();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getCoPerfil();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getNuCelular();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getNuTelefone();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getStUsuario();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function getField($field_name) {\n $retval = NULL;\n // if field exists\n if (array_key_exists($field_name,$this->form_fields)) {\n $retval = $this->form_fields[$field_name];\n }\n return $retval;\n }", "public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getId();\n break;\n case 1:\n return $this->getCode();\n break;\n case 2:\n return $this->getCategory();\n break;\n case 3:\n return $this->getAddress();\n break;\n case 4:\n return $this->getAddress2();\n break;\n case 5:\n return $this->getZipcode();\n break;\n case 6:\n return $this->getCity();\n break;\n case 7:\n return $this->getGeoCoordinateX();\n break;\n case 8:\n return $this->getGeoCoordinateY();\n break;\n case 9:\n return $this->getDistanceCamping();\n break;\n case 10:\n return $this->getImage();\n break;\n case 11:\n return $this->getPriority();\n break;\n case 12:\n return $this->getTel();\n break;\n case 13:\n return $this->getFax();\n break;\n case 14:\n return $this->getEmail();\n break;\n case 15:\n return $this->getWebsite();\n break;\n case 16:\n return $this->getCreatedAt();\n break;\n case 17:\n return $this->getUpdatedAt();\n break;\n case 18:\n return $this->getActive();\n break;\n default:\n return null;\n break;\n } // switch()\n }", "public function __get($field)\n\t{\n\t\treturn $this->get($field);\n\t}", "public function extractProperty($object, $field_name)\n {\n if (!isset($object[$field_name]))\n {\n return null;\n }\n return $object[$field_name];\n }", "function get_field( $field, $query = null ){\r\n\t\tif( $row = $this->get_row( $query ) and isset( $row[$field] ) )\r\n\t\t\treturn $row[$field];\r\n\r\n\t}", "public function __get($name) \n {\n if(isset($this->fields[$name]))\n return $this->fields[$name];\n else\n return null;\n }", "public function __get($field) {\n\t\tif($field == 'userId'){\n\t\t\treturn $this-uid;\n\t\t}else{\n\t\t\treturn $this->fields($field);\n\t\t}\n\t}", "public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getHazardousCargoFlag();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getRequestDate();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getRequestReasonDesc();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getAgencyName();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getReqFirstName();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getReqLastName();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getAgencyDivision();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getReqAddress1();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getReqAddress2();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getReqCity();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getReqState();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getReqCountry();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getReqZipcode();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getReqOfficePhone();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getReqOfficeComment();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getReqMobilePhone();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getReqMobileComment();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getReqFaxPhone();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getReqFaxComment();\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\treturn $this->getReqPagerPhone();\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\treturn $this->getReqPagerComment();\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\treturn $this->getReqOtherPhone1();\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\treturn $this->getReqOtherComment1();\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\treturn $this->getReqOtherPhone2();\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\treturn $this->getReqOtherComment2();\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\treturn $this->getReqOtherPhone3();\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\treturn $this->getReqOtherComment3();\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\treturn $this->getReqEmail();\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\treturn $this->getReqAltEmail();\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\treturn $this->getContactNotes();\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\treturn $this->getOriginCity();\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\treturn $this->getOriginState();\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\treturn $this->getDestCity();\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\treturn $this->getDestState();\n\t\t\t\tbreak;\n\t\t\tcase 35:\n\t\t\t\treturn $this->getPreferredDate();\n\t\t\t\tbreak;\n\t\t\tcase 36:\n\t\t\t\treturn $this->getAlternativeDate();\n\t\t\t\tbreak;\n\t\t\tcase 37:\n\t\t\t\treturn $this->getTransportType();\n\t\t\t\tbreak;\n\t\t\tcase 38:\n\t\t\t\treturn $this->getRequestPostedDate();\n\t\t\t\tbreak;\n\t\t\tcase 39:\n\t\t\t\treturn $this->getRequestPostedToAfaOrgId();\n\t\t\t\tbreak;\n\t\t\tcase 40:\n\t\t\t\treturn $this->getRequesProcessedDate();\n\t\t\t\tbreak;\n\t\t\tcase 41:\n\t\t\t\treturn $this->getRequestDisposition();\n\t\t\t\tbreak;\n\t\t\tcase 42:\n\t\t\t\treturn $this->getCallerName();\n\t\t\t\tbreak;\n\t\t\tcase 43:\n\t\t\t\treturn $this->getCallerPhone();\n\t\t\t\tbreak;\n\t\t\tcase 44:\n\t\t\t\treturn $this->getRequestPostResults();\n\t\t\t\tbreak;\n\t\t\tcase 45:\n\t\t\t\treturn $this->getRequesterVpoUserId();\n\t\t\t\tbreak;\n\t\t\tcase 46:\n\t\t\t\treturn $this->getSource();\n\t\t\t\tbreak;\n\t\t\tcase 47:\n\t\t\t\treturn $this->getSoapPostFromAfaOrgId();\n\t\t\t\tbreak;\n\t\t\tcase 48:\n\t\t\t\treturn $this->getSoapPostRequestId();\n\t\t\t\tbreak;\n\t\t\tcase 49:\n\t\t\t\treturn $this->getRequestProcessedBy();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function get($name)\n\t{\n\t\tforeach ($this->getItems() as $field) {\n\t\t\tif ($field->getName() === $name) {\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new \\InvalidArgumentException(\"Could not find the field '{$name}'\");\n\t}", "public function getFieldValue($fieldname)\n {\n return $this->{'get'.$fieldname}();\n }" ]
[ "0.7545232", "0.7535322", "0.7076139", "0.66101", "0.66101", "0.64943117", "0.6366077", "0.63648325", "0.63648325", "0.63648325", "0.635434", "0.63445854", "0.63423836", "0.6241783", "0.6215894", "0.61867005", "0.61762285", "0.6172897", "0.61662513", "0.6160981", "0.6135546", "0.6108017", "0.61040944", "0.6096965", "0.60335815", "0.6025792", "0.600023", "0.5992341", "0.5983517", "0.5979363", "0.5946506", "0.59125257", "0.5906336", "0.59005266", "0.5881086", "0.58338606", "0.5827983", "0.5818596", "0.5818179", "0.5810706", "0.5800953", "0.5793187", "0.5783168", "0.57759845", "0.5768068", "0.5748119", "0.573831", "0.5736719", "0.5732696", "0.5726219", "0.5721393", "0.57075137", "0.57075137", "0.57075137", "0.57075137", "0.57007587", "0.5694629", "0.56798214", "0.5673483", "0.5669803", "0.56684864", "0.56642103", "0.56641203", "0.56519175", "0.56470346", "0.5644406", "0.5637598", "0.56370574", "0.5634652", "0.5631866", "0.56309813", "0.5626208", "0.5609857", "0.55917424", "0.5588353", "0.5582471", "0.55798817", "0.5579253", "0.55762017", "0.5573676", "0.55718464", "0.55657494", "0.5563", "0.55609906", "0.5550849", "0.5544065", "0.55406386", "0.55349696", "0.55345106", "0.5533465", "0.55276334", "0.5519822", "0.5517683", "0.55157214", "0.550994", "0.5509039", "0.5499704", "0.54747", "0.5468847", "0.54612726", "0.5460117" ]
0.0
-1
Exports the object as an array. You can specify the key type of the array by passing one of the class type constants.
public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) { if (isset($alreadyDumpedObjects['TblProdInfo'][$this->hashCode()])) { return '*RECURSION*'; } $alreadyDumpedObjects['TblProdInfo'][$this->hashCode()] = true; $keys = TblProdInfoTableMap::getFieldNames($keyType); $result = array( $keys[0] => $this->getProdId(), $keys[1] => $this->getProdPriceId(), $keys[2] => $this->getProdName(), $keys[3] => $this->getProdAlt1(), $keys[4] => $this->getProdAlt2(), $keys[5] => $this->getProdAlt3(), $keys[6] => $this->getProdAlt4(), $keys[7] => $this->getProdCode(), $keys[8] => $this->getProdCategory(), $keys[9] => $this->getProdCategoryShipping(), $keys[10] => $this->getProdWriteup(), $keys[11] => $this->getProdLength(), $keys[12] => $this->getProdWingspan(), $keys[13] => $this->getProdHeight(), $keys[14] => $this->getProdScale(), $keys[15] => $this->getProdLinks(), $keys[16] => $this->getProdLinkdescription(), $keys[17] => $this->getProdFront(), $keys[18] => $this->getProdKeywords(), $keys[19] => $this->getProdKeywordsWriteup(), $keys[20] => $this->getProdTitle(), $keys[21] => $this->getProdDescription(), $keys[22] => $this->getProdGeneral(), $keys[23] => $this->getProdEra(), $keys[24] => $this->getProdCompany(), $keys[25] => $this->getProdRelated(), $keys[26] => $this->getProdRelatedPa(), $keys[27] => $this->getProdRelatedM3(), $keys[28] => $this->getProdRelated2(), $keys[29] => $this->getProdSaveas(), $keys[30] => $this->getProdAircraftreg(), $keys[31] => $this->getMb(), $keys[32] => $this->getPa(), $keys[33] => $this->getM3(), ); $virtualColumns = $this->virtualColumns; foreach ($virtualColumns as $key => $virtualColumn) { $result[$key] = $virtualColumn; } if ($includeForeignObjects) { if (null !== $this->aTblEra) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = 'tblEra'; break; case TableMap::TYPE_FIELDNAME: $key = 'tbl_era'; break; default: $key = 'TblEra'; } $result[$key] = $this->aTblEra->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aTblGeneral) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = 'tblGeneral'; break; case TableMap::TYPE_FIELDNAME: $key = 'tbl_general'; break; default: $key = 'TblGeneral'; } $result[$key] = $this->aTblGeneral->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aTblMenus) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = 'tblMenus'; break; case TableMap::TYPE_FIELDNAME: $key = 'tbl_menus'; break; default: $key = 'TblMenus'; } $result[$key] = $this->aTblMenus->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aTblProdPhotos) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = 'tblProdPhotos'; break; case TableMap::TYPE_FIELDNAME: $key = 'tbl_prod_photos'; break; default: $key = 'TblProdPhotos'; } $result[$key] = $this->aTblProdPhotos->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aTblProdPrices) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = 'tblProdPrices'; break; case TableMap::TYPE_FIELDNAME: $key = 'tbl_prod_prices'; break; default: $key = 'TblProdPrices'; } $result[$key] = $this->aTblProdPrices->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aTblProdPricing) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = 'tblProdPricing'; break; case TableMap::TYPE_FIELDNAME: $key = 'tbl_prod_pricing'; break; default: $key = 'TblProdPricing'; } $result[$key] = $this->aTblProdPricing->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aTblProdSmaller) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = 'tblProdSmaller'; break; case TableMap::TYPE_FIELDNAME: $key = 'tbl_prod_smaller'; break; default: $key = 'TblProdSmaller'; } $result[$key] = $this->aTblProdSmaller->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aTblShippingCategories) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = 'tblShippingCategories'; break; case TableMap::TYPE_FIELDNAME: $key = 'tbl_shipping_categories'; break; default: $key = 'TblShippingCategories'; } $result[$key] = $this->aTblShippingCategories->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function export() {\n\t\t$data = array();\n\t\tforeach ($this->store as $key => $value) {\n\t\t\tif ($value instanceof ELSWAK_Object) {\n\t\t\t\t$data[$key] = $value->_export();\n\t\t\t} elseif ($value instanceof ELSWAK_Array) {\n\t\t\t\t$data[$key] = $value->export();\n\t\t\t} else {\n\t\t\t\t$data[$key] = $value;\n\t\t\t}\n\t\t}\n\t\treturn $data;\n\t}", "public function toArray(ExportInterface $export);", "public function export(bool $private = FALSE, bool $meta = FALSE) {\n\t\t$keys = [];\n\t\t$ret = [];\n\n\t\tif ($private) {\n\t\t\t$keys = static::$PRIVATE;\n\t\t} else {\n\t\t\t$keys = static::$PUBLIC;\n\t\t}\n\n\t\tif (!empty(array_intersect(EXP_RESERVED, $keys))) {\n\t\t\tthrow new ExportableException(\n\t\t\t\t\"Reserved key '\".EXP_CLASSNAME.\"' used in object.\"\n\t\t\t);\n\t\t}\n\n\t\tif ($meta) { // Add metadata.\n\t\t\t$ret[EXP_CLASSNAME] = get_class($this);\n\t\t\t$ret[EXP_VISIBILITY] = $private ? 'private' : 'public';\n\t\t}\n\n\t\tforeach ($keys as $k) {\n\t\t\t$current = $this->__exportable_get($k);\n\t\t\tswitch (gettype($current)) {\n\t\t\t\tcase 'object':\n\t\t\t\t\t$ret[$k] = $this->exp_obj(\n\t\t\t\t\t\t$current, $private, $meta\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'array':\n\t\t\t\t\t$ret[$k] = $this->exp_array(\n\t\t\t\t\t\t$current, $private, $meta\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$ret[$k] = $current;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $ret;\n\t}", "public function toArray(): array\n {\n return ['foo' => 'bar'];\n }", "public static function toArray() {\n return [\n 'name' => static::getName(),\n 'identifier' => static::getIdentifier()\n ];\n }", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function getExportFields(): array;", "public function toArray(): array\n {\n }", "function exportArray($foo, $indent = 0, $withNumericKeys = false, $oneLine = false, $return = false) {\n return Ac_Util_Php::exportArray($foo, $indent, $withNumericKeys, $oneLine, $return);\n }", "public function toArray()\n {\n $type = $this->getType();\n $array = [\n 'type' => $type,\n ];\n if ('function' == $type) {\n $array['function'] = $this->getFunction();\n } else {\n $array['class'] = $this->getClass();\n $array['method'] = $this->getMethod();\n }\n return $array;\n }", "function toArray($object);", "public function toArray($cls) {\n return get_object_vars($cls);\n }", "abstract public function to_array();", "public function AsArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function to_array()\n {\n }", "public function to_array()\n {\n }", "public function to_array()\n {\n }", "public function to_array()\n {\n }", "public function to_array()\n {\n }", "public function to_array()\n {\n }", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function getExportableValues() {\n\t\telgg_deprecated_notice(__METHOD__ . ' has been deprecated by toObject()', 1.9);\n\t\treturn array(\n\t\t\t'id',\n\t\t\t'entity_guid',\n\t\t\t'name',\n\t\t\t'value',\n\t\t\t'value_type',\n\t\t\t'owner_guid',\n\t\t\t'type',\n\t\t);\n\t}", "public function toArray():array;", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();" ]
[ "0.6722602", "0.66466415", "0.6093355", "0.6018378", "0.60171276", "0.59986776", "0.59986776", "0.59986776", "0.59986776", "0.5998173", "0.5998173", "0.59980005", "0.59980005", "0.59980005", "0.59980005", "0.59980005", "0.59980005", "0.59980005", "0.59980005", "0.59980005", "0.59980005", "0.59891915", "0.5910215", "0.5906035", "0.5906023", "0.5904069", "0.5900821", "0.5892975", "0.5886944", "0.587516", "0.587516", "0.587516", "0.587516", "0.587516", "0.587516", "0.5872947", "0.5872947", "0.587288", "0.5872624", "0.5872624", "0.5872624", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5848046", "0.5823495", "0.58144456", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493", "0.5804493" ]
0.0
-1
Sets a field from the object by name passed in as a string.
public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME) { $pos = TblProdInfoTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); return $this->setByPosition($pos, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setField(string $name, $value);", "public function setField(string $name, Field $field);", "public function setField($name, $value);", "public function __set($name, $value) {\n if($value instanceof Field){\n if(!isset($value->name)){\n $value->name = $name;\n }\n if(!isset($value->id)){\n $value->id = $name;\n }\n $this->{$name} = $value;\n }\n }", "public function setField($field);", "public function setField($field);", "public function __set($name, $value)\n {\n if (method_exists($this, \"set\" . ucfirst($name)))\n call_user_func\n (array($this, \"set\" . ucfirst($name)), $value);\n else {\n require_once(\"ID3/Exception.php\");\n throw new ID3_Exception(\"Unknown field: \" . $name);\n }\n }", "public function __set($name, $value)\n {\n $this->fields[$name] = $value;\n }", "protected function set($obj, $name) {\r\n\t\tif (isset($obj->{$name})) {\r\n\t\t\t$this->$name = $obj->{$name};\r\n\t\t}\r\n\t}", "public function set($field, $value);", "public function set($field, $value);", "function setFieldName($fieldName) {\n\t\t$this->fieldName = $fieldName;\n\t}", "public function __set($name, $value) {\n if (ctype_alnum($name) && (ctype_digit($name[0]) == FALSE)) {\n $this->$name = $this->db->quote($value);\n $this->properties[$name] = $value;\n }\n }", "function setFieldName($fieldname, $name)\n\t{\n\t\tif (isset($this->table->fields[$fieldname]))\n\t\t{\n\t\t\t$this->table->fields[$fieldname]->label = $name;\n\t\t\t\n\t\t}\n\t\telse\n\t\t\ttrigger_error(\"No field exists with the name: $fieldname\");\n\t}", "public function __set(string $name, $field)\n {\n if (is_array($field) === true) {\n // use the array key as name if the name is not set\n $field['name'] = $field['name'] ?? $name;\n $field = Field::factory($field['type'], $field, $this);\n }\n\n return parent::__set($field->name(), $field);\n }", "public function setField(string $field): void\n {\n $this->field = $field;\n }", "public function setName($_name)\n {\n if (is_string($_name)) {\n \t$this->_name = $_name;\n }\n }", "function setField($field) {\r\r\n\t\t$this->field = $field;\r\r\n\t}", "public function __set($name, $value)\n\t{\n\t\tif ($field = $this->_meta->field($name))\n\t\t{\n\t\t\t$this->set(array($name => $value));\n\t\t}\n\t}", "public function set_field( string $field, $data ) {\n\t\t$this->data[ $field ] = $data;\n\t}", "public function SetField($val, $field)\n {\n $this->{$field} = $val;\n //echo $field.'<br>';\n }", "public function set($field, $value) {\n $this->$field = $value;\n }", "public function setName($string)\r\n {\r\n $this->_name = $string;\r\n }", "function setField (&$data, $key, $value)\n{\n if (is_object ($data))\n $data->$key = $value;\n else if (is_array ($data))\n $data[$key] = $value;\n else throw new \\InvalidArgumentException;\n}", "private function setName($name) {\n if (is_string($name)) {\n $this->name = $name;\n }\n }", "public function setField($value) {\n\t\t$this->_field = $value;\n\t}", "public function setName($name, $value)\t{\n\n\t\t\t$this->{$name} = $value;\n\t\t\t\t\n\t\t\t//if (ctype_alnum($name) == true)\n\t\t\t\n\t\t\t//(die('The name of the store should only contain letters');\n\t\t\t\n\t\t\t//$this->name = $name;\n\t\t}", "function setFieldParam($fieldname, $name, $value)\n\t{\n\t\tif (is_array($fieldname))\n\t\t\tforeach ($fieldname as $fieldn)\n\t\t\t{\n\t\t\t\tif (isset($this->table->fields[$fieldn]))\n\t\t\t\t\t$this->table->fields[$fieldn]->$name = $value;\n\t\t\t\telse\n\t\t\t\t\ttrigger_error(\"No field exists with the name: $fieldn\");\n\t\t\t}\n\t\telse\n\t\t{\n\t\t\tif (isset($this->table->fields[$fieldname]))\n\t\t\t{\n\t\t\t\t$this->table->fields[$fieldname]->$name = $value;\n\t\t\t}\n\t\t\telse\n\t\t\t\ttrigger_error(\"No field exists with the name: $fieldname\");\n\t\t}\n\t}", "public function __set($name, $value ) {\r\n \r\n // first check whether the given name is valid attribute or not\r\n // for that we are gonna use a switch statement\r\n switch($name) {\r\n \r\n case \"username\" :\r\n $this -> first_name = $value;\r\n break;\r\n default : return \"Invalid\"; // when the passes attribute doesnt exist\r\n }\r\n }", "public function __set($name, $value)\n {\n $this->obj->$name = $value;\n }", "public function __set($field, $value) {\r\n $this->$field = $value;\r\n }", "public function __set($field, $value) {\r\n $this->$field = $value;\r\n }", "public function setValue($fieldname, $value);", "public function setField($name, $value)\n\t{\n\t\tif ($this->verify_fields) {\n\t\t\tif (in_array($name, $this->_string_fields)) {\n\t\t\t\t$this->_post_fields[$name] = $value;\n\t\t\t} else {\n\t\t\t\tforeach($this->_pattern_fields as $pattern) {\n\t\t\t\t\tif (preg_match(\"/\" . $pattern . \"/\", $name)) {\n\t\t\t\t\t\t$this->_post_fields[$name] = $value;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthrow new PayPalException(\"Error: no field $name exists in the PayPal API.\");\n\t\t\t}\n\t\t} else {\n\t\t\t$this->_post_fields[$name] = $value;\n\t\t}\n\t}", "function __set ( $name , $value )\n {\n $this->$name=$value;\n }", "public function setField($field)\n {\n $this->_field = $field;\n }", "public function __set($name, $value);", "public function __set($name, $value);", "public function __set($name, $value)\n\t{\n\t\tif( isset($this->fields[$name]) ) {\n\t\t\t$this->newFields[$name] = $value;\n\t\t} else {\n\t\t\t$this->fields[$name] = $value;\n\t\t}\n\t\treturn $value;\n\t}", "public function setFieldFromData($name)\n {\n $value = $this->getFieldFormData($name);\n\n return $this->setFieldValue($name, $value);\n }", "function setField($field, $value)\n {\n $this->_data[$field] = $value;\n }", "public function set($name, $value);", "public function set($name, $value);", "public function set($name, $value);", "public function __set($_name, $_value);", "function __set( $name, $value ) {\n\t\t$this->$name = $value;\n\t}", "public function __set($name, $value){\n $this->$name=$value;\n }", "public function setField($field) {\n\t\t$this->_field = $field;\n\t}", "public function set($name, $value){}", "public function set($field, $value) {\r\n\t\t$this -> fields[$field] = $value;\r\n\t}", "public function register_field($name)\n {\n $this->$name();\n }", "function __set($name,$value) {\n\t\t$this->object[$name]=$value;\n\t}", "public function setName($x) { $this->name = $x; }", "public function setName($name) {\n\t\t$this->_name = (string)$name;\n\t}", "function __set($name, $value)\r\n\t{\r\n\t\t$this->{$name} = $value;\r\n\t}", "function __set($name, $value) {\n $this->$name = $value;\n }", "public function setPropertyValue(string $field_name, $value): void;", "public function __set($field, $value){\n if (array_key_exists($field, $this->fields)){\n $this->fields[$field] = $value;\n }\n }", "public function __set($field, $value){\n if (array_key_exists($field, $this->fields)){\n $this->fields[$field] = $value;\n }\n }", "public function __set($name, $value){\n $this->$name = $value;\n }", "public function __set($name, $value) \r\n {\r\n $this->filterFields[$name] = $value;\r\n }", "public function __set($name, $value){\n switch ($name) {\n case '_patente':\n $this->_patente = $value;\n case '_marca':\n $this->_marca= $value;\n case '_color':\n $this->_color= $value;\n case '_precio':\n $this->_precio= $value;\n default:\n \"No se existe la varible\";\n break;\n }\n $this->$name = $value;\n }", "public function __set($name, $value)\n\t{\n\t\t$this->setField($name, $value);\n\t}", "public function __set($fieldName, $fieldValue) {\n\t\t$this->document->$fieldName = json_decode(json_encode($fieldValue));\n\t}", "private function setAttributeValueFromField(string $field_name) {\n // We need to unaltered field data value here not the field value returned\n // by $this->get($field_name)->value (magic getter).\n $field_value = $this->get($field_name)->getValue();\n // Property not found so let's save it as an attribute value.\n $attribute_value = $this->fieldAttributeConverter()->getAttributeValueFromField($this->entityTypeId, $field_name, $field_value);\n if ($attribute_value !== NULL) {\n $attribute_name = $this->fieldAttributeConverter()->getAttributeName($field_name);\n // Do not leave empty attributes. If generated attribute value is an\n // empty string let's remove it from the entity.\n // (Apigee Edge MGMT UI does not allow to save an entity with empty\n // attribute value, the API does.)\n if ($attribute_value === '') {\n $this->decorated->deleteAttribute($attribute_name);\n }\n else {\n $this->decorated->setAttribute($attribute_name, $attribute_value);\n }\n }\n }", "public function setName ($name){\n\t\tif($name){\n\t\t\t$this->Item['name'] = substr($name, 0,100);\n\t\t}\n\t}", "protected function _setValue($name, $value) {}", "public function set_field($field_slug, $args) {\n\n // Verify if the field has valid parameters\n if ( isset($args['field_name']) && isset($args['field_type']) ) {\n\n self::$the_fields[$field_slug] = $args;\n \n }\n\n }", "public function setName(?string $name): void\n {\n $this->name['value'] = $name;\n }", "public function setName(?string $name): void\n {\n $this->name['value'] = $name;\n }", "public function setName(?string $name): void\n {\n $this->name['value'] = $name;\n }", "function __set($attr_name, $value) {\n // in $attr_name, replace _ with \" \"\n $attr_name = str_replace('_', ' ', $attr_name);\n $attr_name = ucwords($attr_name);\n $attr_name = str_replace(' ', '', $attr_name);\n $function = \"set$attr_name\";\n //var_dump($function);\n $this->$function($value);\n }", "public function setCustomField($name, $value){\r\n\t\t$this->_customFields[$name] = $value;\r\n\t}", "function set($name, $value) {\n $this->vars[$name] = $value; //is_object($value) ? $value->fetch() : $value;\n }", "public function setName($name)\n {\n $this->_name = (string)$name;\n }", "public function __set($field, $value){\n\t\tif(array_key_exists($field, $this->fields)){\n\t\t\t$this->fields[$field]=$value;\n\t\t}\n\t}", "public function setName($x) {\n $this->name = $x;\n }", "public function setByName($name, $value, $type = BasePeer::TYPE_FIELDNAME)\n {\n $pos = JadwalPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }", "protected function _setName($name, $value) {}", "public function __set($name, $value) {\n $this->$name = $value;\n }", "public function setterForField($fieldName, $entity = null)\n {\n if (is_null($entity)) {\n $entity = $this->createEntity();\n } else if (is_string($entity)) {\n $entity = $this->createEntity($entity);\n }\n\n $fieldName = $this->getFieldName($fieldName, $entity);\n\n if ($fieldName) {\n $setterName = 'set' . ucfirst($fieldName);\n if (method_exists($entity, $setterName)) {\n return $setterName;\n }\n }\n\n return null;\n }", "static public function set($name, $value) {}", "public function __set($name,$value)\n\t{\n\t\tif (isset($this->searchFields[$name]))\n\t\t\t$this->searchFields[$name]['value'] = $value;\n\t\telse\n\t\t\tparent::__set($name,$value);\n\t}", "public function __set($field, $value)\n {\n if (array_key_exists($field, $this->fields))\n {\n $this->fields[$field] = $value;\n }\n }", "public function __set($field, $value)\n {\n if (array_key_exists($field, $this->fields))\n {\n $this->fields[$field] = $value;\n }\n }", "public function setField(Field $field) {\n\t\t$this->field = $field; \n\t}", "public function __set($name, $value)\n {\n $this->$name = $value;\n }", "public function __set($name, $value)\n {\n $this->$name = $value;\n }", "public function __set($name, $value)\n {\n $this->$name = $value;\n }", "public function setName(string $name);", "public function setName(string $name);", "function setName( &$value )\r\n {\r\n $this->Name = $value;\r\n }", "function setName( &$value )\r\n {\r\n $this->Name = $value;\r\n }", "function setName($value) {\n $this->name = $value;\n }", "public function __set($field, $value) {\n\t\t$this[$field] = $value;\n\t}", "protected function _setNameValue($key, $name) {}", "public function setByName($name, $value, $type = BasePeer::TYPE_FIELDNAME)\n {\n $pos = BangunanPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }", "public function set(string $name, $object)\n {\n $this->instances[$name] = $object;\n }", "public function setName($name){\n $this->_name = $name;\n }", "function set_name($name) { \n $this->name = $name;\n }", "public function setName(string $name)\n\t{\n\t\t$this->name=$name; \n\t\t$this->keyModified['name'] = 1; \n\n\t}" ]
[ "0.7794071", "0.7765753", "0.7621745", "0.7159486", "0.6848369", "0.6848369", "0.66906244", "0.6660367", "0.6613256", "0.66118556", "0.66118556", "0.6599802", "0.65166557", "0.6498437", "0.6475633", "0.64500886", "0.6437298", "0.64018905", "0.6397115", "0.6375107", "0.6358418", "0.6350787", "0.6337682", "0.6322612", "0.6289266", "0.62556", "0.62420875", "0.623825", "0.6233245", "0.6213884", "0.6211773", "0.6211773", "0.6211605", "0.62028426", "0.6199358", "0.6183685", "0.6182402", "0.6182402", "0.6181121", "0.6169351", "0.6169184", "0.61679536", "0.61679536", "0.61679536", "0.6162005", "0.6146888", "0.61426634", "0.6138673", "0.6132274", "0.6129792", "0.6115682", "0.6112377", "0.6110397", "0.6082812", "0.60805905", "0.60791576", "0.60666513", "0.6061112", "0.6061112", "0.6057102", "0.6055295", "0.6049472", "0.59973615", "0.5992511", "0.5989639", "0.5988527", "0.59876233", "0.59830916", "0.5979021", "0.5979021", "0.5979021", "0.5970349", "0.5967478", "0.59655935", "0.5958559", "0.5956774", "0.59411275", "0.5937868", "0.5936302", "0.5920576", "0.58932954", "0.58871716", "0.58769655", "0.5870456", "0.5870456", "0.5865628", "0.5864162", "0.5864162", "0.5864162", "0.585903", "0.585903", "0.58581287", "0.58581287", "0.58531785", "0.58526534", "0.58384407", "0.5833566", "0.5824581", "0.58199096", "0.5819392", "0.5817607" ]
0.0
-1
Sets a field from the object by Position as specified in the xml schema. Zerobased.
public function setByPosition($pos, $value) { switch ($pos) { case 0: $this->setProdId($value); break; case 1: $this->setProdPriceId($value); break; case 2: $this->setProdName($value); break; case 3: $this->setProdAlt1($value); break; case 4: $this->setProdAlt2($value); break; case 5: $this->setProdAlt3($value); break; case 6: $this->setProdAlt4($value); break; case 7: $this->setProdCode($value); break; case 8: $this->setProdCategory($value); break; case 9: $this->setProdCategoryShipping($value); break; case 10: $this->setProdWriteup($value); break; case 11: $this->setProdLength($value); break; case 12: $this->setProdWingspan($value); break; case 13: $this->setProdHeight($value); break; case 14: $this->setProdScale($value); break; case 15: $this->setProdLinks($value); break; case 16: $this->setProdLinkdescription($value); break; case 17: $this->setProdFront($value); break; case 18: $this->setProdKeywords($value); break; case 19: $this->setProdKeywordsWriteup($value); break; case 20: $this->setProdTitle($value); break; case 21: $this->setProdDescription($value); break; case 22: $this->setProdGeneral($value); break; case 23: $this->setProdEra($value); break; case 24: $this->setProdCompany($value); break; case 25: $this->setProdRelated($value); break; case 26: $this->setProdRelatedPa($value); break; case 27: $this->setProdRelatedM3($value); break; case 28: $this->setProdRelated2($value); break; case 29: $this->setProdSaveas($value); break; case 30: $this->setProdAircraftreg($value); break; case 31: $this->setMb($value); break; case 32: $this->setPa($value); break; case 33: $this->setM3($value); break; } // switch() return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set(array $array, $pos = 0){\n foreach($this as $field => $valor){\n if(isset($array[$pos])){\n $this->$field = $array[$pos];\n }\n $pos++;\n }\n }", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setUfId($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setNome($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setSlug($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setLongitude($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setLatitude($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function setField($field);", "public function setField($field);", "public function testSetPosition ( ) {\n $this->markTestIncomplete (\n 'This test has not been implemented yet.'\n );\n\n }", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setDisplayName($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setRealName($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setLocation($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setWebpage($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setCountry($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setPostalCode($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setBirthday($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setGravatarAddress($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setInfo($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setPlatform($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setExperienceScore($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setUpVotes($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setDownVotes($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setIsGuest($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setIsAdmin($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setTodayVotes($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setEmailOn($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setLastEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setCreatedAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setUpdatedAt($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "#[@fromDia(xpath= 'dia:attribute[@name=\"pos\"]/dia:point/@val', value= 'array')]\n public function setPosition($position) {\n $this->setPoint('pos', $position);\n }", "protected abstract function setFields();", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setName($value);\n break;\n case 2:\n $this->setIsActive($value);\n break;\n case 3:\n $this->setIsClosed($value);\n break;\n case 4:\n $this->setFromDate($value);\n break;\n case 5:\n $this->setToDate($value);\n break;\n case 6:\n $this->setSortableRank($value);\n break;\n } // switch()\n }", "public function setPosition() {\n }", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setSubserial($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setAnnounce($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setMail($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setSerialId($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setRank($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setPrecinctId($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setGenreId($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setBroadcastId($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setCopyright($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setStatusId($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setRecorddate($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setPublicdate($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setEditorial1($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setEditorial2($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setEditorial3($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setAudio($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setDuration($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setNumView($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setComments($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setRefNo($value);\n break;\n case 2:\n $this->setUniquekeyid($value);\n break;\n case 3:\n $this->setCustomerId($value);\n break;\n case 4:\n $this->setAccountNo($value);\n break;\n case 5:\n $this->setServiceType($value);\n break;\n case 6:\n $this->setServiceDistrictId($value);\n break;\n case 7:\n $this->setBillingCycle($value);\n break;\n case 8:\n $this->setDueDate($value);\n break;\n case 9:\n $this->setBillingFrom($value);\n break;\n case 10:\n $this->setBillingTo($value);\n break;\n case 11:\n $this->setBillDate($value);\n break;\n case 12:\n $this->setRate($value);\n break;\n case 13:\n $this->setMeternumber($value);\n break;\n case 14:\n $this->setBillingmethod($value);\n break;\n case 15:\n $this->setDateoflastreading($value);\n break;\n case 16:\n $this->setDateofcurrentreading($value);\n break;\n case 17:\n $this->setDaysusage($value);\n break;\n case 18:\n $this->setLastmeterreading($value);\n break;\n case 19:\n $this->setCurrentmeterreading($value);\n break;\n case 20:\n $this->setUnitsconsumed($value);\n break;\n case 21:\n $this->setLastpaymentamount($value);\n break;\n case 22:\n $this->setLastpaymentdate($value);\n break;\n case 23:\n $this->setMetermaintenancecharge($value);\n break;\n case 24:\n $this->setDiscounts($value);\n break;\n case 25:\n $this->setOthercharges($value);\n break;\n case 26:\n $this->setPenaltycharges($value);\n break;\n case 27:\n $this->setTaxcharges($value);\n break;\n case 28:\n $this->setCharges($value);\n break;\n case 29:\n $this->setRoutinecharges($value);\n break;\n case 30:\n $this->setBillservicerate($value);\n break;\n case 31:\n $this->setBuildingtype($value);\n break;\n case 32:\n $this->setRoute($value);\n break;\n case 33:\n $this->setUsagetype($value);\n break;\n case 34:\n $this->setServiceCharge($value);\n break;\n case 35:\n $this->setPreviousBalance($value);\n break;\n case 36:\n $this->setPaymentReceived($value);\n break;\n case 37:\n $this->setLastPaymentReceivedDate($value);\n break;\n case 38:\n $this->setCurrentCharge($value);\n break;\n case 39:\n $this->setTotalDue($value);\n break;\n case 40:\n $this->setInvoiceNo($value);\n break;\n case 41:\n $this->setReceiptNo($value);\n break;\n case 42:\n $this->setDateCreated($value);\n break;\n case 43:\n $this->setCreator($value);\n break;\n case 44:\n $this->setStatus($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setid($value);\n break;\n case 1:\n $this->setcreateDatetime($value);\n break;\n case 2:\n $this->setcreatePersonId($value);\n break;\n case 3:\n $this->setmodifyDatetime($value);\n break;\n case 4:\n $this->setmodifyPersonId($value);\n break;\n case 5:\n $this->setdeleted($value);\n break;\n case 6:\n $this->setClass($value);\n break;\n case 7:\n $this->setgroupId($value);\n break;\n case 8:\n $this->setcode($value);\n break;\n case 9:\n $this->setname($value);\n break;\n case 10:\n $this->settitle($value);\n break;\n case 11:\n $this->setflatCode($value);\n break;\n case 12:\n $this->setsex($value);\n break;\n case 13:\n $this->setage($value);\n break;\n case 14:\n $this->setageBu($value);\n break;\n case 15:\n $this->setageBc($value);\n break;\n case 16:\n $this->setageEu($value);\n break;\n case 17:\n $this->setageEc($value);\n break;\n case 18:\n $this->setoffice($value);\n break;\n case 19:\n $this->setshowInForm($value);\n break;\n case 20:\n $this->setgenTimeTable($value);\n break;\n case 21:\n $this->setserviceId($value);\n break;\n case 22:\n $this->setquotaTypeId($value);\n break;\n case 23:\n $this->setcontext($value);\n break;\n case 24:\n $this->setamount($value);\n break;\n case 25:\n $this->setamountEvaluation($value);\n break;\n case 26:\n $this->setdefaultStatus($value);\n break;\n case 27:\n $this->setdefaultDirectionDate($value);\n break;\n case 28:\n $this->setdefaultPlannedEndDate($value);\n break;\n case 29:\n $this->setdefaultEndDate($value);\n break;\n case 30:\n $this->setdefaultExecPersonId($value);\n break;\n case 31:\n $this->setdefaultPersonInEvent($value);\n break;\n case 32:\n $this->setdefaultPersonInEditor($value);\n break;\n case 33:\n $this->setmaxOccursInEvent($value);\n break;\n case 34:\n $this->setshowTime($value);\n break;\n case 35:\n $this->setisMes($value);\n break;\n case 36:\n $this->setnomenclativeServiceId($value);\n break;\n case 37:\n $this->setisPreferable($value);\n break;\n case 38:\n $this->setprescribedTypeId($value);\n break;\n case 39:\n $this->setsheduleId($value);\n break;\n case 40:\n $this->setisRequiredCoordination($value);\n break;\n case 41:\n $this->setisRequiredTissue($value);\n break;\n case 42:\n $this->settestTubeTypeId($value);\n break;\n case 43:\n $this->setjobTypeId($value);\n break;\n case 44:\n $this->setmnem($value);\n break;\n } // switch()\n }", "public function set($field, $value);", "public function set($field, $value);", "public function setField(string $name, Field $field);", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setPartieId($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setReplicaPostId($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setType($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setTitle($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setUrl($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setText($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setPhotoFile($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setPhotoUrl($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setQuote($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setQuoteAuthor($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setLinkTitle($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setLinkUrl($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setLinkImage($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setVideoUrl($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setTotalIndex($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setBestBadge1($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setBestBadge2($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setIsPublished($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setIsFeatured($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setCommentsCount($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setCreatedAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setUpdatedAt($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setCode($value);\n break;\n case 2:\n $this->setCategory($value);\n break;\n case 3:\n $this->setAddress($value);\n break;\n case 4:\n $this->setAddress2($value);\n break;\n case 5:\n $this->setZipcode($value);\n break;\n case 6:\n $this->setCity($value);\n break;\n case 7:\n $this->setGeoCoordinateX($value);\n break;\n case 8:\n $this->setGeoCoordinateY($value);\n break;\n case 9:\n $this->setDistanceCamping($value);\n break;\n case 10:\n $this->setImage($value);\n break;\n case 11:\n $this->setPriority($value);\n break;\n case 12:\n $this->setTel($value);\n break;\n case 13:\n $this->setFax($value);\n break;\n case 14:\n $this->setEmail($value);\n break;\n case 15:\n $this->setWebsite($value);\n break;\n case 16:\n $this->setCreatedAt($value);\n break;\n case 17:\n $this->setUpdatedAt($value);\n break;\n case 18:\n $this->setActive($value);\n break;\n } // switch()\n }", "public function setPosition($position);", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setMcode($value);\n break;\n case 2:\n $this->setNameF($value);\n break;\n case 3:\n $this->setNameT($value);\n break;\n case 4:\n $this->setNameE($value);\n break;\n case 5:\n $this->setPosid($value);\n break;\n case 6:\n $this->setMdate($value);\n break;\n case 7:\n $this->setBirthday($value);\n break;\n case 8:\n $this->setNational($value);\n break;\n case 9:\n $this->setIdTax($value);\n break;\n case 10:\n $this->setIdCard($value);\n break;\n case 11:\n $this->setIdCardImg($value);\n break;\n case 12:\n $this->setIdCardImgDate($value);\n break;\n case 13:\n $this->setZip($value);\n break;\n case 14:\n $this->setHomeT($value);\n break;\n case 15:\n $this->setOfficeT($value);\n break;\n case 16:\n $this->setMobile($value);\n break;\n case 17:\n $this->setMcodeAcc($value);\n break;\n case 18:\n $this->setBonusrec($value);\n break;\n case 19:\n $this->setBankcode($value);\n break;\n case 20:\n $this->setBranch($value);\n break;\n case 21:\n $this->setAccType($value);\n break;\n case 22:\n $this->setAccNo($value);\n break;\n case 23:\n $this->setAccNoImg($value);\n break;\n case 24:\n $this->setAccNoImgDate($value);\n break;\n case 25:\n $this->setAccName($value);\n break;\n case 26:\n $this->setAccProv($value);\n break;\n case 27:\n $this->setSvCode($value);\n break;\n case 28:\n $this->setSpCode($value);\n break;\n case 29:\n $this->setSpName($value);\n break;\n case 30:\n $this->setSpCode2($value);\n break;\n case 31:\n $this->setSpName2($value);\n break;\n case 32:\n $this->setUpaCode($value);\n break;\n case 33:\n $this->setUpaName($value);\n break;\n case 34:\n $this->setLr($value);\n break;\n case 35:\n $this->setComplete($value);\n break;\n case 36:\n $this->setCompdate($value);\n break;\n case 37:\n $this->setModate($value);\n break;\n case 38:\n $this->setUsercode($value);\n break;\n case 39:\n $this->setNameB($value);\n break;\n case 40:\n $this->setSex($value);\n break;\n case 41:\n $this->setAge($value);\n break;\n case 42:\n $this->setOccupation($value);\n break;\n case 43:\n $this->setStatus($value);\n break;\n case 44:\n $this->setMarName($value);\n break;\n case 45:\n $this->setMarAge($value);\n break;\n case 46:\n $this->setEmail($value);\n break;\n case 47:\n $this->setBeneficiaries($value);\n break;\n case 48:\n $this->setRelation($value);\n break;\n case 49:\n $this->setDistrictid($value);\n break;\n case 50:\n $this->setAmphurid($value);\n break;\n case 51:\n $this->setProvinceid($value);\n break;\n case 52:\n $this->setFax($value);\n break;\n case 53:\n $this->setInvCode($value);\n break;\n case 54:\n $this->setUid($value);\n break;\n case 55:\n $this->setOid($value);\n break;\n case 56:\n $this->setPosCur($value);\n break;\n case 57:\n $this->setPosCur1($value);\n break;\n case 58:\n $this->setPosCur2($value);\n break;\n case 59:\n $this->setPosCur3($value);\n break;\n case 60:\n $this->setPosCur4($value);\n break;\n case 61:\n $this->setPosCurTmp($value);\n break;\n case 62:\n $this->setRposCur4($value);\n break;\n case 63:\n $this->setPosCur3Date($value);\n break;\n case 64:\n $this->setMemdesc($value);\n break;\n case 65:\n $this->setCmp($value);\n break;\n case 66:\n $this->setCmp2($value);\n break;\n case 67:\n $this->setCmp3($value);\n break;\n case 68:\n $this->setCcmp($value);\n break;\n case 69:\n $this->setCcmp2($value);\n break;\n case 70:\n $this->setCcmp3($value);\n break;\n case 71:\n $this->setAddress($value);\n break;\n case 72:\n $this->setStreet($value);\n break;\n case 73:\n $this->setBuilding($value);\n break;\n case 74:\n $this->setVillage($value);\n break;\n case 75:\n $this->setSoi($value);\n break;\n case 76:\n $this->setEwallet($value);\n break;\n case 77:\n $this->setEatoship($value);\n break;\n case 78:\n $this->setEcom($value);\n break;\n case 79:\n $this->setBmdate1($value);\n break;\n case 80:\n $this->setBmdate2($value);\n break;\n case 81:\n $this->setBmdate3($value);\n break;\n case 82:\n $this->setCbmdate1($value);\n break;\n case 83:\n $this->setCbmdate2($value);\n break;\n case 84:\n $this->setCbmdate3($value);\n break;\n case 85:\n $this->setOnline($value);\n break;\n case 86:\n $this->setCnameF($value);\n break;\n case 87:\n $this->setCnameT($value);\n break;\n case 88:\n $this->setCnameE($value);\n break;\n case 89:\n $this->setCnameB($value);\n break;\n case 90:\n $this->setCbirthday($value);\n break;\n case 91:\n $this->setCnational($value);\n break;\n case 92:\n $this->setCidTax($value);\n break;\n case 93:\n $this->setCidCard($value);\n break;\n case 94:\n $this->setCaddress($value);\n break;\n case 95:\n $this->setCbuilding($value);\n break;\n case 96:\n $this->setCvillage($value);\n break;\n case 97:\n $this->setCstreet($value);\n break;\n case 98:\n $this->setCsoi($value);\n break;\n case 99:\n $this->setCzip($value);\n break;\n case 100:\n $this->setChomeT($value);\n break;\n case 101:\n $this->setCofficeT($value);\n break;\n case 102:\n $this->setCmobile($value);\n break;\n case 103:\n $this->setCfax($value);\n break;\n case 104:\n $this->setCsex($value);\n break;\n case 105:\n $this->setCemail($value);\n break;\n case 106:\n $this->setCdistrictid($value);\n break;\n case 107:\n $this->setCamphurid($value);\n break;\n case 108:\n $this->setCprovinceid($value);\n break;\n case 109:\n $this->setInameF($value);\n break;\n case 110:\n $this->setInameT($value);\n break;\n case 111:\n $this->setIrelation($value);\n break;\n case 112:\n $this->setIphone($value);\n break;\n case 113:\n $this->setIidCard($value);\n break;\n case 114:\n $this->setStatusDoc($value);\n break;\n case 115:\n $this->setStatusExpire($value);\n break;\n case 116:\n $this->setStatusTerminate($value);\n break;\n case 117:\n $this->setTerminateDate($value);\n break;\n case 118:\n $this->setStatusSuspend($value);\n break;\n case 119:\n $this->setSuspendDate($value);\n break;\n case 120:\n $this->setStatusBlacklist($value);\n break;\n case 121:\n $this->setStatusAto($value);\n break;\n case 122:\n $this->setSletter($value);\n break;\n case 123:\n $this->setSinvCode($value);\n break;\n case 124:\n $this->setTxtoption($value);\n break;\n case 125:\n $this->setSetregis($value);\n break;\n case 126:\n $this->setSlr($value);\n break;\n case 127:\n $this->setLocationbase($value);\n break;\n case 128:\n $this->setCidMobile($value);\n break;\n case 129:\n $this->setBewallet($value);\n break;\n case 130:\n $this->setBvoucher($value);\n break;\n case 131:\n $this->setVoucher($value);\n break;\n case 132:\n $this->setManager($value);\n break;\n case 133:\n $this->setMtype($value);\n break;\n case 134:\n $this->setMtype1($value);\n break;\n case 135:\n $this->setMtype2($value);\n break;\n case 136:\n $this->setMvat($value);\n break;\n case 137:\n $this->setUidbase($value);\n break;\n case 138:\n $this->setExpDate($value);\n break;\n case 139:\n $this->setHeadCode($value);\n break;\n case 140:\n $this->setPvL($value);\n break;\n case 141:\n $this->setPvC($value);\n break;\n case 142:\n $this->setHpvL($value);\n break;\n case 143:\n $this->setHpvC($value);\n break;\n case 144:\n $this->setPvLNextmonth($value);\n break;\n case 145:\n $this->setPvCNextmonth($value);\n break;\n case 146:\n $this->setPvLLastmonth1($value);\n break;\n case 147:\n $this->setPvCLastmonth1($value);\n break;\n case 148:\n $this->setPvLLastmonth2($value);\n break;\n case 149:\n $this->setPvCLastmonth2($value);\n break;\n case 150:\n $this->setRcodeStar($value);\n break;\n case 151:\n $this->setBunit($value);\n break;\n case 152:\n $this->setProvince($value);\n break;\n case 153:\n $this->setLineId($value);\n break;\n case 154:\n $this->setFacebookName($value);\n break;\n case 155:\n $this->setTypeCom($value);\n break;\n case 156:\n $this->setExpPos($value);\n break;\n case 157:\n $this->setExpPos60($value);\n break;\n case 158:\n $this->setTripPrivate($value);\n break;\n case 159:\n $this->setTripTeam($value);\n break;\n case 160:\n $this->setMyfile1($value);\n break;\n case 161:\n $this->setMyfile2($value);\n break;\n case 162:\n $this->setClineId($value);\n break;\n case 163:\n $this->setCfacebookName($value);\n break;\n case 164:\n $this->setProfileImg($value);\n break;\n case 165:\n $this->setAtocom($value);\n break;\n case 166:\n $this->setHpv($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setUsername($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setPassword($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setPoints($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setCreatedAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setLastActivityAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setType($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setHidden($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setName($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setGender($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setHometown($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setHomePhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setMobilePhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setBirthdate($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setAddress($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setRelationshipStatus($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setShowEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setShowGender($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setShowHometown($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setShowHomePhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setShowMobilePhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setShowBirthdate($value);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\t$this->setShowAddress($value);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\t$this->setShowRelationshipStatus($value);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\t$this->setPasswordRecoverKey($value);\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\t$this->setCookieKey($value);\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\t$this->setCredit($value);\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\t$this->setInvisible($value);\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\t$this->setNotification($value);\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\t$this->setPhoneNumber($value);\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\t$this->setLogin($value);\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\t$this->setCreditCard($value);\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\t$this->setCreditCardToken($value);\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\t$this->setFirstCharge($value);\n\t\t\t\tbreak;\n\t\t\tcase 35:\n\t\t\t\t$this->setWhereFindUs($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setFeatureCvtermId($value);\n break;\n case 1:\n $this->setFeatureId($value);\n break;\n case 2:\n $this->setCvtermId($value);\n break;\n case 3:\n $this->setPubId($value);\n break;\n case 4:\n $this->setIsNot($value);\n break;\n case 5:\n $this->setRank($value);\n break;\n } // switch()\n }", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setPerfilId($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setEnderecoId($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setCargoId($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setDepartamentoId($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setMatricula($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setNome($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setDni($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setDataNascimento($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setDataContratacao($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setCelular($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setTelefone($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setToken($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setNomeUsuario($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setSenha($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setTokenSenha($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setTokenFirebase($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setDataRescisao($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setAtivo($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setTipoAcesso($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setEstadoCivil($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setNivelAcesso($value);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\t$this->setUsuarioValidado($value);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\t$this->setSexo($value);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\t$this->setDataCadastro($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setVenueid($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setAddress($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setAddress2($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setCity($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setProvince($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setCountry($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setLatitude($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setLongitude($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setPhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setName($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setDescription($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setWebsite($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setTwitter($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setFacebook($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setRssfeed($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setClosed($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setLastfmid($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setSlug($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setHasphotos($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setSubmittedbyuser($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setHazardousCargoFlag($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setRequestDate($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setRequestReasonDesc($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setAgencyName($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setReqFirstName($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setReqLastName($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setAgencyDivision($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setReqAddress1($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setReqAddress2($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setReqCity($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setReqState($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setReqCountry($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setReqZipcode($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setReqOfficePhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setReqOfficeComment($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setReqMobilePhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setReqMobileComment($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setReqFaxPhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setReqFaxComment($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setReqPagerPhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setReqPagerComment($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setReqOtherPhone1($value);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\t$this->setReqOtherComment1($value);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\t$this->setReqOtherPhone2($value);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\t$this->setReqOtherComment2($value);\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\t$this->setReqOtherPhone3($value);\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\t$this->setReqOtherComment3($value);\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\t$this->setReqEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\t$this->setReqAltEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\t$this->setContactNotes($value);\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\t$this->setOriginCity($value);\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\t$this->setOriginState($value);\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\t$this->setDestCity($value);\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\t$this->setDestState($value);\n\t\t\t\tbreak;\n\t\t\tcase 35:\n\t\t\t\t$this->setPreferredDate($value);\n\t\t\t\tbreak;\n\t\t\tcase 36:\n\t\t\t\t$this->setAlternativeDate($value);\n\t\t\t\tbreak;\n\t\t\tcase 37:\n\t\t\t\t$this->setTransportType($value);\n\t\t\t\tbreak;\n\t\t\tcase 38:\n\t\t\t\t$this->setRequestPostedDate($value);\n\t\t\t\tbreak;\n\t\t\tcase 39:\n\t\t\t\t$this->setRequestPostedToAfaOrgId($value);\n\t\t\t\tbreak;\n\t\t\tcase 40:\n\t\t\t\t$this->setRequesProcessedDate($value);\n\t\t\t\tbreak;\n\t\t\tcase 41:\n\t\t\t\t$this->setRequestDisposition($value);\n\t\t\t\tbreak;\n\t\t\tcase 42:\n\t\t\t\t$this->setCallerName($value);\n\t\t\t\tbreak;\n\t\t\tcase 43:\n\t\t\t\t$this->setCallerPhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 44:\n\t\t\t\t$this->setRequestPostResults($value);\n\t\t\t\tbreak;\n\t\t\tcase 45:\n\t\t\t\t$this->setRequesterVpoUserId($value);\n\t\t\t\tbreak;\n\t\t\tcase 46:\n\t\t\t\t$this->setSource($value);\n\t\t\t\tbreak;\n\t\t\tcase 47:\n\t\t\t\t$this->setSoapPostFromAfaOrgId($value);\n\t\t\t\tbreak;\n\t\t\tcase 48:\n\t\t\t\t$this->setSoapPostRequestId($value);\n\t\t\t\tbreak;\n\t\t\tcase 49:\n\t\t\t\t$this->setRequestProcessedBy($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setPhadtype($value);\n break;\n case 1:\n $this->setPhadid($value);\n break;\n case 2:\n $this->setPhadsubid($value);\n break;\n case 3:\n $this->setPhadsubidseq($value);\n break;\n case 4:\n $this->setPhadcont($value);\n break;\n case 5:\n $this->setPhadintl($value);\n break;\n case 6:\n $this->setPhadtelenbr($value);\n break;\n case 7:\n $this->setPhadteleext($value);\n break;\n case 8:\n $this->setPhadintlnbr($value);\n break;\n case 9:\n $this->setPhadintlext($value);\n break;\n case 10:\n $this->setPhadfaxnbr($value);\n break;\n case 11:\n $this->setPhadifaxnbr($value);\n break;\n case 12:\n $this->setPhadcellnbr($value);\n break;\n case 13:\n $this->setPhadicellnbr($value);\n break;\n case 14:\n $this->setPhadhomenbr($value);\n break;\n case 15:\n $this->setPhadihomenbr($value);\n break;\n case 16:\n $this->setPhadwebaddr($value);\n break;\n case 17:\n $this->setPhademailaddr($value);\n break;\n case 18:\n $this->setPhadname($value);\n break;\n case 19:\n $this->setPhadcontname($value);\n break;\n case 20:\n $this->setDateupdtd($value);\n break;\n case 21:\n $this->setTimeupdtd($value);\n break;\n case 22:\n $this->setDummy($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setSlug($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setName($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setCommentaire($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setSubject($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setTemplateId($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setContent($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setPreparedContent($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setTextContent($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setPreparedTextContent($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setStatus($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setFromName($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setFromEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setScheduledAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setScheduleType($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setTestType($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setTestUserList($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setTarget($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setReplyToEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setReturnPathEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setReturnPathServer($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setReturnPathLogin($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setReturnPathPassword($value);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\t$this->setIsArchived($value);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\t$this->setGoogleAnalyticsEnabled($value);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\t$this->setGoogleAnalyticsSource($value);\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\t$this->setGoogleAnalyticsMedium($value);\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\t$this->setGoogleAnalyticsCampaignType($value);\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\t$this->setGoogleAnalyticsCampaignContent($value);\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\t$this->setGoogleAnalyticsContent($value);\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\t$this->setLitmusTestId($value);\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\t$this->setWebTrackerEnabled($value);\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\t$this->setCreatedAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\t$this->setCreatedBy($value);\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\t$this->setUpdatedAt($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setName($value);\n break;\n case 2:\n $this->setOpendate($value);\n break;\n case 3:\n $this->setClosedate($value);\n break;\n case 4:\n $this->setStatus($value);\n break;\n case 5:\n $this->setInfotext($value);\n break;\n case 6:\n $this->setForbook($value);\n break;\n case 7:\n $this->setUserSys($value);\n break;\n case 8:\n $this->setConfigSys($value);\n break;\n case 9:\n $this->setSplit($value);\n break;\n case 10:\n $this->setParentnode($value);\n break;\n case 11:\n $this->setSort($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setField($name, $value);", "function setField($field) {\r\r\n\t\t$this->field = $field;\r\r\n\t}", "public function setField($value) {\n\t\t$this->_field = $value;\n\t}", "function setField($Field){\n\t\t$this->Field = $Field;\n\t}", "public function setField($field) {\n\t\t$this->_field = $field;\n\t}", "function setPosition($s)\n\t{\n\t\t$this->Info['Position'] = $s;\n\t\tupdateTableByUser('Developer', 'Position', $s, $this->Username);\n\t}", "function set_position($newposition) {\n\t\t$this->position = $newposition;\n\t}", "public function setPosition( $position )\n\t\t{\n\t\t\t$this->_position = $position;\n\t\t}", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setBiblioId($value);\n break;\n case 1:\n $this->setTitle($value);\n break;\n case 2:\n $this->setSor($value);\n break;\n case 3:\n $this->setEdition($value);\n break;\n case 4:\n $this->setIsbn_issn($value);\n break;\n case 5:\n $this->setPublisherId($value);\n break;\n case 6:\n $this->setPublish_year($value);\n break;\n case 7:\n $this->setCollation($value);\n break;\n case 8:\n $this->setSeries_title($value);\n break;\n case 9:\n $this->setCall_number($value);\n break;\n case 10:\n $this->setLanguageId($value);\n break;\n case 11:\n $this->setSource($value);\n break;\n case 12:\n $this->setPublishPlaceId($value);\n break;\n case 13:\n $this->setClassification($value);\n break;\n case 14:\n $this->setNotes($value);\n break;\n case 15:\n $this->setImage($value);\n break;\n case 16:\n $this->setFile_att($value);\n break;\n case 17:\n $this->setOpac_hide($value);\n break;\n case 18:\n $this->setPromoted($value);\n break;\n case 19:\n $this->setLabels($value);\n break;\n case 20:\n $this->setFrequencyId($value);\n break;\n case 21:\n $this->setSpec_detail_info($value);\n break;\n case 22:\n $this->setInput_date($value);\n break;\n case 23:\n $this->setLast_update($value);\n break;\n case 24:\n $this->setUid($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setField($field)\n {\n $this->_field = $field;\n }", "public function setField(Field $field) {\n\t\t$this->field = $field; \n\t}", "public function setPosX($posX);", "public function setPos($pos)\n {\n $this->pos = $pos;\n }", "public function setField(string $name, $value);", "function setPosition($value) {\n $this->_position = intval($value);\n }", "public function setOrderField($x) { $this->orderField = $x; }", "function setValue(int $field, $value) : void;", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setNickname($value);\n break;\n case 2:\n $this->setEmail($value);\n break;\n case 3:\n $this->setAge($value);\n break;\n case 4:\n $this->setSex($value);\n break;\n case 5:\n $this->setCreatedAt($value);\n break;\n case 6:\n $this->setUpdatedAt($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setPosition($position) {\n\t\t$this->position = $position;\n\t}", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setCoUsuario($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setNuCpf($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setDsPassword($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setNoUsuario($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setDsLogin($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setDtUltimoLogin($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setDsEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setCoPerfil($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setNuCelular($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setNuTelefone($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setStUsuario($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function SetField($val, $field)\n {\n $this->{$field} = $val;\n //echo $field.'<br>';\n }", "public function __set ($field, $val) {\n if (isset($this->__fields[$field]['set'])) {\n $this->__fields[$field]['data'] = $this->__fields[$field]['set']($val);\n } else {\n $this->__fields[$field]['data'] = $val;\n }\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setOpPrimeId($value);\n break;\n case 1:\n $this->setOpId($value);\n break;\n case 2:\n $this->setOpPrimeLibelle($value);\n break;\n case 3:\n $this->setOpPrimeNumero($value);\n break;\n case 4:\n $this->setGdlArtId($value);\n break;\n case 5:\n $this->setOperationPrimeCurrencyId($value);\n break;\n case 6:\n $this->setOperationPrimeRRewardTypeId($value);\n break;\n case 7:\n $this->setOperationPrimeRRewardExpeditionModeId($value);\n break;\n case 8:\n $this->setOperationPrimeRRewardTransporterId($value);\n break;\n case 9:\n $this->setOperationPrimeFixedAmount($value);\n break;\n case 10:\n $this->setOperationPrimeProductPricePourcentage($value);\n break;\n case 11:\n $this->setOperationPrimeMaximumAmount($value);\n break;\n } // switch()\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setSessionid($value);\n break;\n case 1:\n $this->setRecno($value);\n break;\n case 2:\n $this->setDate($value);\n break;\n case 3:\n $this->setTime($value);\n break;\n case 4:\n $this->setType($value);\n break;\n case 5:\n $this->setCustid($value);\n break;\n case 6:\n $this->setShiptoid($value);\n break;\n case 7:\n $this->setCustname($value);\n break;\n case 8:\n $this->setOrderno($value);\n break;\n case 9:\n $this->setCustpo($value);\n break;\n case 10:\n $this->setCustref($value);\n break;\n case 11:\n $this->setStatus($value);\n break;\n case 12:\n $this->setOrderdate($value);\n break;\n case 13:\n $this->setCareof($value);\n break;\n case 14:\n $this->setQuotdate($value);\n break;\n case 15:\n $this->setInvdate($value);\n break;\n case 16:\n $this->setShipdate($value);\n break;\n case 17:\n $this->setRevdate($value);\n break;\n case 18:\n $this->setExpdate($value);\n break;\n case 19:\n $this->setHasdocuments($value);\n break;\n case 20:\n $this->setHastracking($value);\n break;\n case 21:\n $this->setSubtotal($value);\n break;\n case 22:\n $this->setSalestax($value);\n break;\n case 23:\n $this->setFreight($value);\n break;\n case 24:\n $this->setMisccost($value);\n break;\n case 25:\n $this->setOrdertotal($value);\n break;\n case 26:\n $this->setHasnotes($value);\n break;\n case 27:\n $this->setEditord($value);\n break;\n case 28:\n $this->setError($value);\n break;\n case 29:\n $this->setErrormsg($value);\n break;\n case 30:\n $this->setSconame($value);\n break;\n case 31:\n $this->setShipname($value);\n break;\n case 32:\n $this->setShipaddress($value);\n break;\n case 33:\n $this->setShipaddress2($value);\n break;\n case 34:\n $this->setShipcity($value);\n break;\n case 35:\n $this->setShipstate($value);\n break;\n case 36:\n $this->setShipzip($value);\n break;\n case 37:\n $this->setShipcountry($value);\n break;\n case 38:\n $this->setContact($value);\n break;\n case 39:\n $this->setPhintl($value);\n break;\n case 40:\n $this->setPhone($value);\n break;\n case 41:\n $this->setExtension($value);\n break;\n case 42:\n $this->setFaxnbr($value);\n break;\n case 43:\n $this->setEmail($value);\n break;\n case 44:\n $this->setReleasenbr($value);\n break;\n case 45:\n $this->setShipviacd($value);\n break;\n case 46:\n $this->setShipviadesc($value);\n break;\n case 47:\n $this->setPricecode($value);\n break;\n case 48:\n $this->setPricecodedesc($value);\n break;\n case 49:\n $this->setPricedisp($value);\n break;\n case 50:\n $this->setTaxcode($value);\n break;\n case 51:\n $this->setTaxcodedesc($value);\n break;\n case 52:\n $this->setTaxcodedisp($value);\n break;\n case 53:\n $this->setTermcode($value);\n break;\n case 54:\n $this->setTermtype($value);\n break;\n case 55:\n $this->setTermcodedesc($value);\n break;\n case 56:\n $this->setRqstdate($value);\n break;\n case 57:\n $this->setShipcom($value);\n break;\n case 58:\n $this->setSp1($value);\n break;\n case 59:\n $this->setSp1name($value);\n break;\n case 60:\n $this->setSp2($value);\n break;\n case 61:\n $this->setSp2name($value);\n break;\n case 62:\n $this->setSp2disp($value);\n break;\n case 63:\n $this->setSp3($value);\n break;\n case 64:\n $this->setSp3name($value);\n break;\n case 65:\n $this->setSp3disp($value);\n break;\n case 66:\n $this->setFob($value);\n break;\n case 67:\n $this->setDeliverydesc($value);\n break;\n case 68:\n $this->setWhse($value);\n break;\n case 69:\n $this->setCardnumber($value);\n break;\n case 70:\n $this->setCardexpire($value);\n break;\n case 71:\n $this->setCardcode($value);\n break;\n case 72:\n $this->setCardapproval($value);\n break;\n case 73:\n $this->setTotalcost($value);\n break;\n case 74:\n $this->setTotaldiscount($value);\n break;\n case 75:\n $this->setPaymenttype($value);\n break;\n case 76:\n $this->setSrcdatefrom($value);\n break;\n case 77:\n $this->setSrcdatethru($value);\n break;\n case 78:\n $this->setBillname($value);\n break;\n case 79:\n $this->setBilladdress($value);\n break;\n case 80:\n $this->setBilladdress2($value);\n break;\n case 81:\n $this->setBilladdress3($value);\n break;\n case 82:\n $this->setBillcountry($value);\n break;\n case 83:\n $this->setBillcity($value);\n break;\n case 84:\n $this->setBillstate($value);\n break;\n case 85:\n $this->setBillzip($value);\n break;\n case 86:\n $this->setPrntfmt($value);\n break;\n case 87:\n $this->setPrntfmtdisp($value);\n break;\n case 88:\n $this->setDummy($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setShnttype($value);\n break;\n case 1:\n $this->setShnttypedesc($value);\n break;\n case 2:\n $this->setOehhnbr($value);\n break;\n case 3:\n $this->setShntyear($value);\n break;\n case 4:\n $this->setOedhline($value);\n break;\n case 5:\n $this->setShntlotser($value);\n break;\n case 6:\n $this->setShntpickticket($value);\n break;\n case 7:\n $this->setShntpackticket($value);\n break;\n case 8:\n $this->setShntinvoice($value);\n break;\n case 9:\n $this->setShntacknow($value);\n break;\n case 10:\n $this->setShntseq($value);\n break;\n case 11:\n $this->setShntnote($value);\n break;\n case 12:\n $this->setShntkey2($value);\n break;\n case 13:\n $this->setShntform($value);\n break;\n case 14:\n $this->setDateupdtd($value);\n break;\n case 15:\n $this->setTimeupdtd($value);\n break;\n case 16:\n $this->setDummy($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setIDCommande($value);\n break;\n case 1:\n $this->setRFCommande($value);\n break;\n case 2:\n $this->setIDSociete_FK($value);\n break;\n case 3:\n $this->setTMode($value);\n break;\n case 4:\n $this->setQuantite($value);\n break;\n case 5:\n $this->setAPrix($value);\n break;\n case 6:\n $this->setADelai($value);\n break;\n case 7:\n $this->setDTECommande($value);\n break;\n case 8:\n $this->setPriorite($value);\n break;\n case 9:\n $this->setCMDNote($value);\n break;\n } // switch()\n\n return $this;\n }", "function callbackSetValue($object,$field) {\n \n\n //echo get_class($object);\n switch ($field) {\n case 'name':\n // name does not set dirty flag - its a simple rename..\n $value = $object->get_text();\n if (@$this->$field == $value) {\n return;\n }\n $this->$field = $value;\n //print_r($this->data['TABLES'][$table]['FIELDS']);\n $this->table->database->dirty=true;\n break;\n case 'length':\n case 'default':\n $value = $object->get_text();\n if (@$this->$field == $value) {\n return;\n }\n // echo \"CHANGE?\";\n $this->$field = $value;\n //print_r($this->data['TABLES'][$table]['FIELDS']);\n $this->table->database->dirty=true;\n $this->dirty = true;\n break;\n case 'notnull':\n case 'isIndex':\n case 'sequence':\n case 'unique': \n $value = (int) $object->get_active();\n if (@$this->$field == $value) {\n return;\n }\n //echo \"CHANGE?\";\n $this->$field = $value;\n //print_r($this->data['TABLES'][$table]['FIELDS']);\n $this->table->database->dirty=true;\n $this->table->database->save();\n $this->setVisable();\n $this->dirty = true;\n break;\n default: \n echo \"opps forgot :$field\\n\";\n \n \n }\n //print_r(func_get_args());\n }", "protected function setFieldValue ($field) {\n if ($this->$field instanceof Newforms_File)\n $this->$field->setValue('');\n if (!$this->__bound) return;\n if (is_array($this->__Data)) {\n if (isset($this->__Data[$field])) {\n $this->$field->setValue ($this->__Data[$field]);\n return;\n }\n return;\n }\n if (is_object ($this->__Data)) {\n if (isset($this->__Data->$field)) {\n $this->$field->setValue ($this->__Data->$field);\n return;\n }\n return;\n }\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setArticleId($value);\n break;\n case 1:\n $this->setDescription($value);\n break;\n case 2:\n $this->setPrice($value);\n break;\n case 3:\n $this->setCreation($value);\n break;\n case 4:\n $this->setVisible($value);\n break;\n case 5:\n $this->setShapeId($value);\n break;\n case 6:\n $this->setCakeTypeId($value);\n break;\n } // switch()\n\n return $this;\n }", "public function assignPos(Position $position);", "function setField($field, $value)\n {\n $this->_data[$field] = $value;\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setPothnbr($value);\n break;\n case 1:\n $this->setPothstat($value);\n break;\n case 2:\n $this->setPothrcptdate($value);\n break;\n case 3:\n $this->setIntbwhse($value);\n break;\n case 4:\n $this->setPothglpd($value);\n break;\n case 5:\n $this->setPothairship($value);\n break;\n case 6:\n $this->setPotherinreview($value);\n break;\n case 7:\n $this->setPothexchctry($value);\n break;\n case 8:\n $this->setPothexchrate($value);\n break;\n case 9:\n $this->setIntbwhseorig($value);\n break;\n case 10:\n $this->setPothlandcost($value);\n break;\n case 11:\n $this->setPothrcptnbr($value);\n break;\n case 12:\n $this->setPothlandbasedon($value);\n break;\n case 13:\n $this->setPothinvcnbr($value);\n break;\n case 14:\n $this->setPothinvcdate($value);\n break;\n case 15:\n $this->setPothfrtamt($value);\n break;\n case 16:\n $this->setPothmiscamt($value);\n break;\n case 17:\n $this->setDateupdtd($value);\n break;\n case 18:\n $this->setTimeupdtd($value);\n break;\n case 19:\n $this->setDummy($value);\n break;\n } // switch()\n\n return $this;\n }", "public function setPosition($position)\n {\n $this->position = $position;\n }", "public function setPosition($position)\n {\n $this->position = $position;\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setSekolahId($value);\n break;\n case 1:\n $this->setSemesterId($value);\n break;\n case 2:\n $this->setSumberAirId($value);\n break;\n case 3:\n $this->setSumberAirMinumId($value);\n break;\n case 4:\n $this->setCreateDate($value);\n break;\n case 5:\n $this->setLastUpdate($value);\n break;\n case 6:\n $this->setSoftDelete($value);\n break;\n case 7:\n $this->setLastSync($value);\n break;\n case 8:\n $this->setUpdaterId($value);\n break;\n case 9:\n $this->setKetersediaanAir($value);\n break;\n case 10:\n $this->setKecukupanAir($value);\n break;\n case 11:\n $this->setMinumSiswa($value);\n break;\n case 12:\n $this->setMemprosesAir($value);\n break;\n case 13:\n $this->setSiswaBawaAir($value);\n break;\n case 14:\n $this->setToiletSiswaLaki($value);\n break;\n case 15:\n $this->setToiletSiswaPerempuan($value);\n break;\n case 16:\n $this->setToiletSiswaKk($value);\n break;\n case 17:\n $this->setToiletSiswaKecil($value);\n break;\n case 18:\n $this->setJmlJambanLG($value);\n break;\n case 19:\n $this->setJmlJambanLTg($value);\n break;\n case 20:\n $this->setJmlJambanPG($value);\n break;\n case 21:\n $this->setJmlJambanPTg($value);\n break;\n case 22:\n $this->setJmlJambanLpG($value);\n break;\n case 23:\n $this->setJmlJambanLpTg($value);\n break;\n case 24:\n $this->setTempatCuciTangan($value);\n break;\n case 25:\n $this->setTempatCuciTanganRusak($value);\n break;\n case 26:\n $this->setASabunAirMengalir($value);\n break;\n case 27:\n $this->setJambanDifabel($value);\n break;\n case 28:\n $this->setTipeJamban($value);\n break;\n case 29:\n $this->setASediaPembalut($value);\n break;\n case 30:\n $this->setKegiatanCuciTangan($value);\n break;\n case 31:\n $this->setPembuanganAirLimbah($value);\n break;\n case 32:\n $this->setAKurasSeptitank($value);\n break;\n case 33:\n $this->setAMemilikiSolokan($value);\n break;\n case 34:\n $this->setATempatSampahKelas($value);\n break;\n case 35:\n $this->setATempatSampahTutupP($value);\n break;\n case 36:\n $this->setACerminJambanP($value);\n break;\n case 37:\n $this->setAMemilikiTps($value);\n break;\n case 38:\n $this->setATpsAngkutRutin($value);\n break;\n case 39:\n $this->setAAnggaranSanitasi($value);\n break;\n case 40:\n $this->setAMelibatkanSanitasiSiswa($value);\n break;\n case 41:\n $this->setAKemitraanSanDaerah($value);\n break;\n case 42:\n $this->setAKemitraanSanPuskesmas($value);\n break;\n case 43:\n $this->setAKemitraanSanSwasta($value);\n break;\n case 44:\n $this->setAKemitraanSanNonPem($value);\n break;\n case 45:\n $this->setKieGuruCuciTangan($value);\n break;\n case 46:\n $this->setKieGuruHaid($value);\n break;\n case 47:\n $this->setKieGuruPerawatanToilet($value);\n break;\n case 48:\n $this->setKieGuruKeamananPangan($value);\n break;\n case 49:\n $this->setKieGuruMinumAir($value);\n break;\n case 50:\n $this->setKieKelasCuciTangan($value);\n break;\n case 51:\n $this->setKieKelasHaid($value);\n break;\n case 52:\n $this->setKieKelasPerawatanToilet($value);\n break;\n case 53:\n $this->setKieKelasKeamananPangan($value);\n break;\n case 54:\n $this->setKieKelasMinumAir($value);\n break;\n case 55:\n $this->setKieToiletCuciTangan($value);\n break;\n case 56:\n $this->setKieToiletHaid($value);\n break;\n case 57:\n $this->setKieToiletPerawatanToilet($value);\n break;\n case 58:\n $this->setKieToiletKeamananPangan($value);\n break;\n case 59:\n $this->setKieToiletMinumAir($value);\n break;\n case 60:\n $this->setKieSelasarCuciTangan($value);\n break;\n case 61:\n $this->setKieSelasarHaid($value);\n break;\n case 62:\n $this->setKieSelasarPerawatanToilet($value);\n break;\n case 63:\n $this->setKieSelasarKeamananPangan($value);\n break;\n case 64:\n $this->setKieSelasarMinumAir($value);\n break;\n case 65:\n $this->setKieUksCuciTangan($value);\n break;\n case 66:\n $this->setKieUksHaid($value);\n break;\n case 67:\n $this->setKieUksPerawatanToilet($value);\n break;\n case 68:\n $this->setKieUksKeamananPangan($value);\n break;\n case 69:\n $this->setKieUksMinumAir($value);\n break;\n case 70:\n $this->setKieKantinCuciTangan($value);\n break;\n case 71:\n $this->setKieKantinHaid($value);\n break;\n case 72:\n $this->setKieKantinPerawatanToilet($value);\n break;\n case 73:\n $this->setKieKantinKeamananPangan($value);\n break;\n case 74:\n $this->setKieKantinMinumAir($value);\n break;\n } // switch()\n }", "public function set($field, $value) {\r\n\t\t$this -> fields[$field] = $value;\r\n\t}", "public function __set($field, $value){\n\t\tif(array_key_exists($field, $this->fields)){\n\t\t\t$this->fields[$field]=$value;\n\t\t}\n\t}", "public function __set($field, $value){\n if (array_key_exists($field, $this->fields)){\n $this->fields[$field] = $value;\n }\n }", "public function __set($field, $value){\n if (array_key_exists($field, $this->fields)){\n $this->fields[$field] = $value;\n }\n }", "public function setField( WebLab_Data_Field $field ) {\n $this->_field = $field;\n }", "function setRefFields($val) {\n $this->_refFields = $val;\n }", "public function set_position($position){\n $position = (array)$position;\n if(count($position) === 2){\n $this->posX = $position['x'];\n $this->posY = $position['y'];\n }\n return null;\n }", "public function __set($field, $value) {\r\n $this->$field = $value;\r\n }", "public function __set($field, $value) {\r\n $this->$field = $value;\r\n }", "public function setByPosition ($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setCalendarUid ($value);\n break;\n case 1:\n $this->setCalendarHolidayName ($value);\n break;\n case 2:\n $this->setCalendarHolidayStart ($value);\n break;\n case 3:\n $this->setCalendarHolidayEnd ($value);\n break;\n } // switch()\n }", "public function setValue($fieldname, $value);", "public static function setPosition($position)\n {\n self::$position = $position;\n }", "public function __set($name, $value) {\n if($value instanceof Field){\n if(!isset($value->name)){\n $value->name = $name;\n }\n if(!isset($value->id)){\n $value->id = $name;\n }\n $this->{$name} = $value;\n }\n }", "public static function setPosition(int $x, int $y) {}", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setCoParticipante($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setCoUsuarioElabora($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setCoForense($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setCoInformeRecomendaciones($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setCoInformeIncidente($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setCoInformeForense($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setCoInformeDepuracion($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setCoMantenimiento($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setCoDoumentoNormativo($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function set_field( string $field, $data ) {\n\t\t$this->data[ $field ] = $data;\n\t}", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setIdBangunan($value);\n break;\n case 1:\n $this->setJenisPrasaranaId($value);\n break;\n case 2:\n $this->setSekolahId($value);\n break;\n case 3:\n $this->setIdTanah($value);\n break;\n case 4:\n $this->setPtkId($value);\n break;\n case 5:\n $this->setIdHapusBuku($value);\n break;\n case 6:\n $this->setKepemilikanSarprasId($value);\n break;\n case 7:\n $this->setKdKl($value);\n break;\n case 8:\n $this->setKdSatker($value);\n break;\n case 9:\n $this->setKdBrg($value);\n break;\n case 10:\n $this->setNup($value);\n break;\n case 11:\n $this->setKodeEselon1($value);\n break;\n case 12:\n $this->setNamaEselon1($value);\n break;\n case 13:\n $this->setKodeSubSatker($value);\n break;\n case 14:\n $this->setNamaSubSatker($value);\n break;\n case 15:\n $this->setNama($value);\n break;\n case 16:\n $this->setPanjang($value);\n break;\n case 17:\n $this->setLebar($value);\n break;\n case 18:\n $this->setNilaiPerolehanAset($value);\n break;\n case 19:\n $this->setJmlLantai($value);\n break;\n case 20:\n $this->setThnDibangun($value);\n break;\n case 21:\n $this->setLuasTapakBangunan($value);\n break;\n case 22:\n $this->setVolPondasiM3($value);\n break;\n case 23:\n $this->setVolSloopKolomBalokM3($value);\n break;\n case 24:\n $this->setPanjKudakudaM($value);\n break;\n case 25:\n $this->setVolKudakudaM3($value);\n break;\n case 26:\n $this->setPanjKasoM($value);\n break;\n case 27:\n $this->setPanjRengM($value);\n break;\n case 28:\n $this->setLuasTutupAtapM2($value);\n break;\n case 29:\n $this->setKdSatkerTanah($value);\n break;\n case 30:\n $this->setNmSatkerTanah($value);\n break;\n case 31:\n $this->setKdBrgTanah($value);\n break;\n case 32:\n $this->setNmBrgTanah($value);\n break;\n case 33:\n $this->setNupBrgTanah($value);\n break;\n case 34:\n $this->setTglSkPemakai($value);\n break;\n case 35:\n $this->setTglHapusBuku($value);\n break;\n case 36:\n $this->setKetBangunan($value);\n break;\n case 37:\n $this->setAsalData($value);\n break;\n case 38:\n $this->setCreateDate($value);\n break;\n case 39:\n $this->setLastUpdate($value);\n break;\n case 40:\n $this->setSoftDelete($value);\n break;\n case 41:\n $this->setLastSync($value);\n break;\n case 42:\n $this->setUpdaterId($value);\n break;\n } // switch()\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setSekolahId($value);\n break;\n case 1:\n $this->setSemesterId($value);\n break;\n case 2:\n $this->setIdRuang($value);\n break;\n case 3:\n $this->setHari($value);\n break;\n case 4:\n $this->setBelKe01($value);\n break;\n case 5:\n $this->setBelKe02($value);\n break;\n case 6:\n $this->setBelKe03($value);\n break;\n case 7:\n $this->setBelKe04($value);\n break;\n case 8:\n $this->setBelKe05($value);\n break;\n case 9:\n $this->setBelKe06($value);\n break;\n case 10:\n $this->setBelKe07($value);\n break;\n case 11:\n $this->setBelKe08($value);\n break;\n case 12:\n $this->setBelKe09($value);\n break;\n case 13:\n $this->setBelKe10($value);\n break;\n case 14:\n $this->setBelKe11($value);\n break;\n case 15:\n $this->setBelKe12($value);\n break;\n case 16:\n $this->setBelKe13($value);\n break;\n case 17:\n $this->setBelKe14($value);\n break;\n case 18:\n $this->setBelKe15($value);\n break;\n case 19:\n $this->setBelKe16($value);\n break;\n case 20:\n $this->setBelKe17($value);\n break;\n case 21:\n $this->setBelKe18($value);\n break;\n case 22:\n $this->setBelKe19($value);\n break;\n case 23:\n $this->setBelKe20($value);\n break;\n case 24:\n $this->setCreateDate($value);\n break;\n case 25:\n $this->setLastUpdate($value);\n break;\n case 26:\n $this->setSoftDelete($value);\n break;\n case 27:\n $this->setLastSync($value);\n break;\n case 28:\n $this->setUpdaterId($value);\n break;\n } // switch()\n }", "public function setPositionAttribute($input)\n {\n $this->attributes['position'] = $input ? $input : null;\n }", "public function __set($fieldName, $fieldValue) {\n\t\t$this->document->$fieldName = json_decode(json_encode($fieldValue));\n\t}", "public function testSetFieldValueWithProxy()\n {\n $document = new Album('ten');\n $this->documentManager->persist($document);\n $this->documentManager->flush();\n $this->documentManager->clear();\n\n //get the proxy\n $proxy = $this->documentManager->getReference(\n 'Zoop\\Shard\\Test\\ODMCore\\TestAsset\\Document\\Album',\n $document->getId()\n );\n\n //get metadata\n $metadata = $this->documentManager->getClassMetadata('Zoop\\Shard\\Test\\ODMCore\\TestAsset\\Document\\Album');\n\n //set a field\n $metadata->setFieldValue($proxy, 'name', 'nevermind');\n\n //flush changes\n $this->documentManager->flush();\n $this->documentManager->clear();\n\n //check that changes did get flushed\n $proxy = $this->documentManager->getReference(\n 'Zoop\\Shard\\Test\\ODMCore\\TestAsset\\Document\\Album',\n $document->getId()\n );\n\n $this->assertEquals('nevermind', $proxy->getName());\n }", "private function setPositionInstance($x, $y = null)\n {\n if (is_array($x) && $y === null) {\n $this->position = new Position($x[0], $y[1]);\n } else {\n $this->position = new Position($x, $y);\n }\n\n }", "public function set($field, $value) {\n $this->$field = $value;\n }", "public function setField(string $field): void\n {\n $this->field = $field;\n }", "public function set($offset, $value);", "public function setX($x) {}", "private function setAttributeFieldValue()\n {\n // Get all our attribute objects\n $proxiedAttrs = $this->getAttributes();\n \n $data = [];\n foreach ($proxiedAttrs as $attrObjArr) {\n foreach ($attrObjArr as $attrObj) {\n $dataKey = $attrObj->getFieldName();\n $dataVal = $this->getRequest()->postVar($dataKey);\n $data[$dataKey] = $dataVal;\n }\n }\n \n $json = $this->dbObject('AttributeData')->toJson($data);\n $this->setField('AttributeData', $json);\n }", "public function setPatternedField(string $field, $value): ObjectInterface;", "function position( $x, $y )\n\t{\n\t\t$this->x = $x;\n\t\t$this->y = $y;\n\t}", "protected function tempPosition()\n {\n $this->{$this->getPositionColumn()} = static::$insanePosition;\n $this->save();\n }", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setIdmontacargas($value);\n break;\n case 1:\n $this->setIdsucursal($value);\n break;\n case 2:\n $this->setMontacargasModelo($value);\n break;\n case 3:\n $this->setMontacargasMarca($value);\n break;\n case 4:\n $this->setMontacargasC($value);\n break;\n case 5:\n $this->setMontacargasK($value);\n break;\n case 6:\n $this->setMontacargasP($value);\n break;\n case 7:\n $this->setMontacargasT($value);\n break;\n case 8:\n $this->setMontacargasE($value);\n break;\n case 9:\n $this->setMontacargasVolts($value);\n break;\n case 10:\n $this->setMontacargasAmperaje($value);\n break;\n case 11:\n $this->setMontacargasNombre($value);\n break;\n case 12:\n $this->setMontacargasNumserie($value);\n break;\n case 13:\n $this->setMontacargasComprador($value);\n break;\n case 14:\n $this->setMontacargasCiclosmant($value);\n break;\n case 15:\n $this->setMontacargasCiclosiniciales($value);\n break;\n case 16:\n $this->setMontacargasBaja($value);\n break;\n } // switch()\n }", "protected function setLocalField($field, $value) {\n if ($field == 'union_name') {\n $field = 'organization_name';\n }\n #converts phone field so it's found in union's telecommunication_number\n if ($field == 'union_phone_no') {\n $field = 'contact_number';\n }\n return parent::setLocalField($field, $value);\n }", "protected function _updatefields() {}", "public function __set($field, $value)\n {\n if (array_key_exists($field, $this->fields))\n {\n $this->fields[$field] = $value;\n }\n }", "public function __set($field, $value)\n {\n if (array_key_exists($field, $this->fields))\n {\n $this->fields[$field] = $value;\n }\n }", "public function setField(FieldInterface $field);", "public function set_position(INT $_position){\n $this->_position = $_position;\n\n return $this;\n }" ]
[ "0.65272844", "0.6344112", "0.6287539", "0.6287539", "0.6219963", "0.6218413", "0.6208247", "0.61701673", "0.61679393", "0.61589175", "0.61440307", "0.6098001", "0.6083997", "0.607921", "0.607921", "0.6075176", "0.60695404", "0.60664", "0.60600835", "0.60483164", "0.60365003", "0.6016145", "0.6014237", "0.5999985", "0.59819525", "0.5980405", "0.59310025", "0.59218013", "0.59191173", "0.59128547", "0.58808905", "0.5853655", "0.58446604", "0.5842949", "0.583074", "0.5809136", "0.57971257", "0.57964677", "0.57773536", "0.5774087", "0.5771006", "0.57583815", "0.57545024", "0.57437664", "0.572266", "0.57183766", "0.5711373", "0.570477", "0.5687069", "0.56818444", "0.56777996", "0.56250376", "0.5615919", "0.5612809", "0.5611104", "0.56089824", "0.5570435", "0.5558584", "0.55524373", "0.55481625", "0.55075896", "0.55075896", "0.55070925", "0.550665", "0.55062425", "0.54958475", "0.54958475", "0.54835373", "0.5480236", "0.547748", "0.5475003", "0.5475003", "0.54608", "0.5457236", "0.54475963", "0.54460037", "0.5431831", "0.5417902", "0.5409207", "0.54036605", "0.5374637", "0.5373174", "0.53707093", "0.53682977", "0.5355274", "0.53545624", "0.5344396", "0.53442746", "0.5340366", "0.53375185", "0.5335727", "0.53326005", "0.53166676", "0.53026664", "0.52627134", "0.52626264", "0.5252826", "0.5252826", "0.5220636", "0.5213807" ]
0.534478
86
Populates the object using an array. This is particularly useful when populating an object from one of the request arrays (e.g. $_POST). This method goes through the column names, checking to see whether a matching key exists in populated array. If so the setByName() method is called for that column. You can specify the key type of the array by additionally passing one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME, TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. The default key type is the column's TableMap::TYPE_PHPNAME.
public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME) { $keys = TblProdInfoTableMap::getFieldNames($keyType); if (array_key_exists($keys[0], $arr)) { $this->setProdId($arr[$keys[0]]); } if (array_key_exists($keys[1], $arr)) { $this->setProdPriceId($arr[$keys[1]]); } if (array_key_exists($keys[2], $arr)) { $this->setProdName($arr[$keys[2]]); } if (array_key_exists($keys[3], $arr)) { $this->setProdAlt1($arr[$keys[3]]); } if (array_key_exists($keys[4], $arr)) { $this->setProdAlt2($arr[$keys[4]]); } if (array_key_exists($keys[5], $arr)) { $this->setProdAlt3($arr[$keys[5]]); } if (array_key_exists($keys[6], $arr)) { $this->setProdAlt4($arr[$keys[6]]); } if (array_key_exists($keys[7], $arr)) { $this->setProdCode($arr[$keys[7]]); } if (array_key_exists($keys[8], $arr)) { $this->setProdCategory($arr[$keys[8]]); } if (array_key_exists($keys[9], $arr)) { $this->setProdCategoryShipping($arr[$keys[9]]); } if (array_key_exists($keys[10], $arr)) { $this->setProdWriteup($arr[$keys[10]]); } if (array_key_exists($keys[11], $arr)) { $this->setProdLength($arr[$keys[11]]); } if (array_key_exists($keys[12], $arr)) { $this->setProdWingspan($arr[$keys[12]]); } if (array_key_exists($keys[13], $arr)) { $this->setProdHeight($arr[$keys[13]]); } if (array_key_exists($keys[14], $arr)) { $this->setProdScale($arr[$keys[14]]); } if (array_key_exists($keys[15], $arr)) { $this->setProdLinks($arr[$keys[15]]); } if (array_key_exists($keys[16], $arr)) { $this->setProdLinkdescription($arr[$keys[16]]); } if (array_key_exists($keys[17], $arr)) { $this->setProdFront($arr[$keys[17]]); } if (array_key_exists($keys[18], $arr)) { $this->setProdKeywords($arr[$keys[18]]); } if (array_key_exists($keys[19], $arr)) { $this->setProdKeywordsWriteup($arr[$keys[19]]); } if (array_key_exists($keys[20], $arr)) { $this->setProdTitle($arr[$keys[20]]); } if (array_key_exists($keys[21], $arr)) { $this->setProdDescription($arr[$keys[21]]); } if (array_key_exists($keys[22], $arr)) { $this->setProdGeneral($arr[$keys[22]]); } if (array_key_exists($keys[23], $arr)) { $this->setProdEra($arr[$keys[23]]); } if (array_key_exists($keys[24], $arr)) { $this->setProdCompany($arr[$keys[24]]); } if (array_key_exists($keys[25], $arr)) { $this->setProdRelated($arr[$keys[25]]); } if (array_key_exists($keys[26], $arr)) { $this->setProdRelatedPa($arr[$keys[26]]); } if (array_key_exists($keys[27], $arr)) { $this->setProdRelatedM3($arr[$keys[27]]); } if (array_key_exists($keys[28], $arr)) { $this->setProdRelated2($arr[$keys[28]]); } if (array_key_exists($keys[29], $arr)) { $this->setProdSaveas($arr[$keys[29]]); } if (array_key_exists($keys[30], $arr)) { $this->setProdAircraftreg($arr[$keys[30]]); } if (array_key_exists($keys[31], $arr)) { $this->setMb($arr[$keys[31]]); } if (array_key_exists($keys[32], $arr)) { $this->setPa($arr[$keys[32]]); } if (array_key_exists($keys[33], $arr)) { $this->setM3($arr[$keys[33]]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = AliMemberTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setMcode($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setNameF($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setNameT($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setNameE($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setPosid($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setMdate($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setBirthday($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setNational($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setIdTax($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setIdCard($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setIdCardImg($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setIdCardImgDate($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setZip($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setHomeT($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setOfficeT($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setMobile($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setMcodeAcc($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setBonusrec($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setBankcode($arr[$keys[19]]);\n }\n if (array_key_exists($keys[20], $arr)) {\n $this->setBranch($arr[$keys[20]]);\n }\n if (array_key_exists($keys[21], $arr)) {\n $this->setAccType($arr[$keys[21]]);\n }\n if (array_key_exists($keys[22], $arr)) {\n $this->setAccNo($arr[$keys[22]]);\n }\n if (array_key_exists($keys[23], $arr)) {\n $this->setAccNoImg($arr[$keys[23]]);\n }\n if (array_key_exists($keys[24], $arr)) {\n $this->setAccNoImgDate($arr[$keys[24]]);\n }\n if (array_key_exists($keys[25], $arr)) {\n $this->setAccName($arr[$keys[25]]);\n }\n if (array_key_exists($keys[26], $arr)) {\n $this->setAccProv($arr[$keys[26]]);\n }\n if (array_key_exists($keys[27], $arr)) {\n $this->setSvCode($arr[$keys[27]]);\n }\n if (array_key_exists($keys[28], $arr)) {\n $this->setSpCode($arr[$keys[28]]);\n }\n if (array_key_exists($keys[29], $arr)) {\n $this->setSpName($arr[$keys[29]]);\n }\n if (array_key_exists($keys[30], $arr)) {\n $this->setSpCode2($arr[$keys[30]]);\n }\n if (array_key_exists($keys[31], $arr)) {\n $this->setSpName2($arr[$keys[31]]);\n }\n if (array_key_exists($keys[32], $arr)) {\n $this->setUpaCode($arr[$keys[32]]);\n }\n if (array_key_exists($keys[33], $arr)) {\n $this->setUpaName($arr[$keys[33]]);\n }\n if (array_key_exists($keys[34], $arr)) {\n $this->setLr($arr[$keys[34]]);\n }\n if (array_key_exists($keys[35], $arr)) {\n $this->setComplete($arr[$keys[35]]);\n }\n if (array_key_exists($keys[36], $arr)) {\n $this->setCompdate($arr[$keys[36]]);\n }\n if (array_key_exists($keys[37], $arr)) {\n $this->setModate($arr[$keys[37]]);\n }\n if (array_key_exists($keys[38], $arr)) {\n $this->setUsercode($arr[$keys[38]]);\n }\n if (array_key_exists($keys[39], $arr)) {\n $this->setNameB($arr[$keys[39]]);\n }\n if (array_key_exists($keys[40], $arr)) {\n $this->setSex($arr[$keys[40]]);\n }\n if (array_key_exists($keys[41], $arr)) {\n $this->setAge($arr[$keys[41]]);\n }\n if (array_key_exists($keys[42], $arr)) {\n $this->setOccupation($arr[$keys[42]]);\n }\n if (array_key_exists($keys[43], $arr)) {\n $this->setStatus($arr[$keys[43]]);\n }\n if (array_key_exists($keys[44], $arr)) {\n $this->setMarName($arr[$keys[44]]);\n }\n if (array_key_exists($keys[45], $arr)) {\n $this->setMarAge($arr[$keys[45]]);\n }\n if (array_key_exists($keys[46], $arr)) {\n $this->setEmail($arr[$keys[46]]);\n }\n if (array_key_exists($keys[47], $arr)) {\n $this->setBeneficiaries($arr[$keys[47]]);\n }\n if (array_key_exists($keys[48], $arr)) {\n $this->setRelation($arr[$keys[48]]);\n }\n if (array_key_exists($keys[49], $arr)) {\n $this->setDistrictid($arr[$keys[49]]);\n }\n if (array_key_exists($keys[50], $arr)) {\n $this->setAmphurid($arr[$keys[50]]);\n }\n if (array_key_exists($keys[51], $arr)) {\n $this->setProvinceid($arr[$keys[51]]);\n }\n if (array_key_exists($keys[52], $arr)) {\n $this->setFax($arr[$keys[52]]);\n }\n if (array_key_exists($keys[53], $arr)) {\n $this->setInvCode($arr[$keys[53]]);\n }\n if (array_key_exists($keys[54], $arr)) {\n $this->setUid($arr[$keys[54]]);\n }\n if (array_key_exists($keys[55], $arr)) {\n $this->setOid($arr[$keys[55]]);\n }\n if (array_key_exists($keys[56], $arr)) {\n $this->setPosCur($arr[$keys[56]]);\n }\n if (array_key_exists($keys[57], $arr)) {\n $this->setPosCur1($arr[$keys[57]]);\n }\n if (array_key_exists($keys[58], $arr)) {\n $this->setPosCur2($arr[$keys[58]]);\n }\n if (array_key_exists($keys[59], $arr)) {\n $this->setPosCur3($arr[$keys[59]]);\n }\n if (array_key_exists($keys[60], $arr)) {\n $this->setPosCur4($arr[$keys[60]]);\n }\n if (array_key_exists($keys[61], $arr)) {\n $this->setPosCurTmp($arr[$keys[61]]);\n }\n if (array_key_exists($keys[62], $arr)) {\n $this->setRposCur4($arr[$keys[62]]);\n }\n if (array_key_exists($keys[63], $arr)) {\n $this->setPosCur3Date($arr[$keys[63]]);\n }\n if (array_key_exists($keys[64], $arr)) {\n $this->setMemdesc($arr[$keys[64]]);\n }\n if (array_key_exists($keys[65], $arr)) {\n $this->setCmp($arr[$keys[65]]);\n }\n if (array_key_exists($keys[66], $arr)) {\n $this->setCmp2($arr[$keys[66]]);\n }\n if (array_key_exists($keys[67], $arr)) {\n $this->setCmp3($arr[$keys[67]]);\n }\n if (array_key_exists($keys[68], $arr)) {\n $this->setCcmp($arr[$keys[68]]);\n }\n if (array_key_exists($keys[69], $arr)) {\n $this->setCcmp2($arr[$keys[69]]);\n }\n if (array_key_exists($keys[70], $arr)) {\n $this->setCcmp3($arr[$keys[70]]);\n }\n if (array_key_exists($keys[71], $arr)) {\n $this->setAddress($arr[$keys[71]]);\n }\n if (array_key_exists($keys[72], $arr)) {\n $this->setStreet($arr[$keys[72]]);\n }\n if (array_key_exists($keys[73], $arr)) {\n $this->setBuilding($arr[$keys[73]]);\n }\n if (array_key_exists($keys[74], $arr)) {\n $this->setVillage($arr[$keys[74]]);\n }\n if (array_key_exists($keys[75], $arr)) {\n $this->setSoi($arr[$keys[75]]);\n }\n if (array_key_exists($keys[76], $arr)) {\n $this->setEwallet($arr[$keys[76]]);\n }\n if (array_key_exists($keys[77], $arr)) {\n $this->setEatoship($arr[$keys[77]]);\n }\n if (array_key_exists($keys[78], $arr)) {\n $this->setEcom($arr[$keys[78]]);\n }\n if (array_key_exists($keys[79], $arr)) {\n $this->setBmdate1($arr[$keys[79]]);\n }\n if (array_key_exists($keys[80], $arr)) {\n $this->setBmdate2($arr[$keys[80]]);\n }\n if (array_key_exists($keys[81], $arr)) {\n $this->setBmdate3($arr[$keys[81]]);\n }\n if (array_key_exists($keys[82], $arr)) {\n $this->setCbmdate1($arr[$keys[82]]);\n }\n if (array_key_exists($keys[83], $arr)) {\n $this->setCbmdate2($arr[$keys[83]]);\n }\n if (array_key_exists($keys[84], $arr)) {\n $this->setCbmdate3($arr[$keys[84]]);\n }\n if (array_key_exists($keys[85], $arr)) {\n $this->setOnline($arr[$keys[85]]);\n }\n if (array_key_exists($keys[86], $arr)) {\n $this->setCnameF($arr[$keys[86]]);\n }\n if (array_key_exists($keys[87], $arr)) {\n $this->setCnameT($arr[$keys[87]]);\n }\n if (array_key_exists($keys[88], $arr)) {\n $this->setCnameE($arr[$keys[88]]);\n }\n if (array_key_exists($keys[89], $arr)) {\n $this->setCnameB($arr[$keys[89]]);\n }\n if (array_key_exists($keys[90], $arr)) {\n $this->setCbirthday($arr[$keys[90]]);\n }\n if (array_key_exists($keys[91], $arr)) {\n $this->setCnational($arr[$keys[91]]);\n }\n if (array_key_exists($keys[92], $arr)) {\n $this->setCidTax($arr[$keys[92]]);\n }\n if (array_key_exists($keys[93], $arr)) {\n $this->setCidCard($arr[$keys[93]]);\n }\n if (array_key_exists($keys[94], $arr)) {\n $this->setCaddress($arr[$keys[94]]);\n }\n if (array_key_exists($keys[95], $arr)) {\n $this->setCbuilding($arr[$keys[95]]);\n }\n if (array_key_exists($keys[96], $arr)) {\n $this->setCvillage($arr[$keys[96]]);\n }\n if (array_key_exists($keys[97], $arr)) {\n $this->setCstreet($arr[$keys[97]]);\n }\n if (array_key_exists($keys[98], $arr)) {\n $this->setCsoi($arr[$keys[98]]);\n }\n if (array_key_exists($keys[99], $arr)) {\n $this->setCzip($arr[$keys[99]]);\n }\n if (array_key_exists($keys[100], $arr)) {\n $this->setChomeT($arr[$keys[100]]);\n }\n if (array_key_exists($keys[101], $arr)) {\n $this->setCofficeT($arr[$keys[101]]);\n }\n if (array_key_exists($keys[102], $arr)) {\n $this->setCmobile($arr[$keys[102]]);\n }\n if (array_key_exists($keys[103], $arr)) {\n $this->setCfax($arr[$keys[103]]);\n }\n if (array_key_exists($keys[104], $arr)) {\n $this->setCsex($arr[$keys[104]]);\n }\n if (array_key_exists($keys[105], $arr)) {\n $this->setCemail($arr[$keys[105]]);\n }\n if (array_key_exists($keys[106], $arr)) {\n $this->setCdistrictid($arr[$keys[106]]);\n }\n if (array_key_exists($keys[107], $arr)) {\n $this->setCamphurid($arr[$keys[107]]);\n }\n if (array_key_exists($keys[108], $arr)) {\n $this->setCprovinceid($arr[$keys[108]]);\n }\n if (array_key_exists($keys[109], $arr)) {\n $this->setInameF($arr[$keys[109]]);\n }\n if (array_key_exists($keys[110], $arr)) {\n $this->setInameT($arr[$keys[110]]);\n }\n if (array_key_exists($keys[111], $arr)) {\n $this->setIrelation($arr[$keys[111]]);\n }\n if (array_key_exists($keys[112], $arr)) {\n $this->setIphone($arr[$keys[112]]);\n }\n if (array_key_exists($keys[113], $arr)) {\n $this->setIidCard($arr[$keys[113]]);\n }\n if (array_key_exists($keys[114], $arr)) {\n $this->setStatusDoc($arr[$keys[114]]);\n }\n if (array_key_exists($keys[115], $arr)) {\n $this->setStatusExpire($arr[$keys[115]]);\n }\n if (array_key_exists($keys[116], $arr)) {\n $this->setStatusTerminate($arr[$keys[116]]);\n }\n if (array_key_exists($keys[117], $arr)) {\n $this->setTerminateDate($arr[$keys[117]]);\n }\n if (array_key_exists($keys[118], $arr)) {\n $this->setStatusSuspend($arr[$keys[118]]);\n }\n if (array_key_exists($keys[119], $arr)) {\n $this->setSuspendDate($arr[$keys[119]]);\n }\n if (array_key_exists($keys[120], $arr)) {\n $this->setStatusBlacklist($arr[$keys[120]]);\n }\n if (array_key_exists($keys[121], $arr)) {\n $this->setStatusAto($arr[$keys[121]]);\n }\n if (array_key_exists($keys[122], $arr)) {\n $this->setSletter($arr[$keys[122]]);\n }\n if (array_key_exists($keys[123], $arr)) {\n $this->setSinvCode($arr[$keys[123]]);\n }\n if (array_key_exists($keys[124], $arr)) {\n $this->setTxtoption($arr[$keys[124]]);\n }\n if (array_key_exists($keys[125], $arr)) {\n $this->setSetregis($arr[$keys[125]]);\n }\n if (array_key_exists($keys[126], $arr)) {\n $this->setSlr($arr[$keys[126]]);\n }\n if (array_key_exists($keys[127], $arr)) {\n $this->setLocationbase($arr[$keys[127]]);\n }\n if (array_key_exists($keys[128], $arr)) {\n $this->setCidMobile($arr[$keys[128]]);\n }\n if (array_key_exists($keys[129], $arr)) {\n $this->setBewallet($arr[$keys[129]]);\n }\n if (array_key_exists($keys[130], $arr)) {\n $this->setBvoucher($arr[$keys[130]]);\n }\n if (array_key_exists($keys[131], $arr)) {\n $this->setVoucher($arr[$keys[131]]);\n }\n if (array_key_exists($keys[132], $arr)) {\n $this->setManager($arr[$keys[132]]);\n }\n if (array_key_exists($keys[133], $arr)) {\n $this->setMtype($arr[$keys[133]]);\n }\n if (array_key_exists($keys[134], $arr)) {\n $this->setMtype1($arr[$keys[134]]);\n }\n if (array_key_exists($keys[135], $arr)) {\n $this->setMtype2($arr[$keys[135]]);\n }\n if (array_key_exists($keys[136], $arr)) {\n $this->setMvat($arr[$keys[136]]);\n }\n if (array_key_exists($keys[137], $arr)) {\n $this->setUidbase($arr[$keys[137]]);\n }\n if (array_key_exists($keys[138], $arr)) {\n $this->setExpDate($arr[$keys[138]]);\n }\n if (array_key_exists($keys[139], $arr)) {\n $this->setHeadCode($arr[$keys[139]]);\n }\n if (array_key_exists($keys[140], $arr)) {\n $this->setPvL($arr[$keys[140]]);\n }\n if (array_key_exists($keys[141], $arr)) {\n $this->setPvC($arr[$keys[141]]);\n }\n if (array_key_exists($keys[142], $arr)) {\n $this->setHpvL($arr[$keys[142]]);\n }\n if (array_key_exists($keys[143], $arr)) {\n $this->setHpvC($arr[$keys[143]]);\n }\n if (array_key_exists($keys[144], $arr)) {\n $this->setPvLNextmonth($arr[$keys[144]]);\n }\n if (array_key_exists($keys[145], $arr)) {\n $this->setPvCNextmonth($arr[$keys[145]]);\n }\n if (array_key_exists($keys[146], $arr)) {\n $this->setPvLLastmonth1($arr[$keys[146]]);\n }\n if (array_key_exists($keys[147], $arr)) {\n $this->setPvCLastmonth1($arr[$keys[147]]);\n }\n if (array_key_exists($keys[148], $arr)) {\n $this->setPvLLastmonth2($arr[$keys[148]]);\n }\n if (array_key_exists($keys[149], $arr)) {\n $this->setPvCLastmonth2($arr[$keys[149]]);\n }\n if (array_key_exists($keys[150], $arr)) {\n $this->setRcodeStar($arr[$keys[150]]);\n }\n if (array_key_exists($keys[151], $arr)) {\n $this->setBunit($arr[$keys[151]]);\n }\n if (array_key_exists($keys[152], $arr)) {\n $this->setProvince($arr[$keys[152]]);\n }\n if (array_key_exists($keys[153], $arr)) {\n $this->setLineId($arr[$keys[153]]);\n }\n if (array_key_exists($keys[154], $arr)) {\n $this->setFacebookName($arr[$keys[154]]);\n }\n if (array_key_exists($keys[155], $arr)) {\n $this->setTypeCom($arr[$keys[155]]);\n }\n if (array_key_exists($keys[156], $arr)) {\n $this->setExpPos($arr[$keys[156]]);\n }\n if (array_key_exists($keys[157], $arr)) {\n $this->setExpPos60($arr[$keys[157]]);\n }\n if (array_key_exists($keys[158], $arr)) {\n $this->setTripPrivate($arr[$keys[158]]);\n }\n if (array_key_exists($keys[159], $arr)) {\n $this->setTripTeam($arr[$keys[159]]);\n }\n if (array_key_exists($keys[160], $arr)) {\n $this->setMyfile1($arr[$keys[160]]);\n }\n if (array_key_exists($keys[161], $arr)) {\n $this->setMyfile2($arr[$keys[161]]);\n }\n if (array_key_exists($keys[162], $arr)) {\n $this->setClineId($arr[$keys[162]]);\n }\n if (array_key_exists($keys[163], $arr)) {\n $this->setCfacebookName($arr[$keys[163]]);\n }\n if (array_key_exists($keys[164], $arr)) {\n $this->setProfileImg($arr[$keys[164]]);\n }\n if (array_key_exists($keys[165], $arr)) {\n $this->setAtocom($arr[$keys[165]]);\n }\n if (array_key_exists($keys[166], $arr)) {\n $this->setHpv($arr[$keys[166]]);\n }\n }", "public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = UserTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setNickname($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setEmail($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setAge($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setSex($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setCreatedAt($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setUpdatedAt($arr[$keys[6]]);\n }\n }", "public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = KluBillTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setRefNo($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setUniquekeyid($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setCustomerId($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setAccountNo($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setServiceType($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setServiceDistrictId($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setBillingCycle($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setDueDate($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setBillingFrom($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setBillingTo($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setBillDate($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setRate($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setMeternumber($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setBillingmethod($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setDateoflastreading($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setDateofcurrentreading($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setDaysusage($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setLastmeterreading($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setCurrentmeterreading($arr[$keys[19]]);\n }\n if (array_key_exists($keys[20], $arr)) {\n $this->setUnitsconsumed($arr[$keys[20]]);\n }\n if (array_key_exists($keys[21], $arr)) {\n $this->setLastpaymentamount($arr[$keys[21]]);\n }\n if (array_key_exists($keys[22], $arr)) {\n $this->setLastpaymentdate($arr[$keys[22]]);\n }\n if (array_key_exists($keys[23], $arr)) {\n $this->setMetermaintenancecharge($arr[$keys[23]]);\n }\n if (array_key_exists($keys[24], $arr)) {\n $this->setDiscounts($arr[$keys[24]]);\n }\n if (array_key_exists($keys[25], $arr)) {\n $this->setOthercharges($arr[$keys[25]]);\n }\n if (array_key_exists($keys[26], $arr)) {\n $this->setPenaltycharges($arr[$keys[26]]);\n }\n if (array_key_exists($keys[27], $arr)) {\n $this->setTaxcharges($arr[$keys[27]]);\n }\n if (array_key_exists($keys[28], $arr)) {\n $this->setCharges($arr[$keys[28]]);\n }\n if (array_key_exists($keys[29], $arr)) {\n $this->setRoutinecharges($arr[$keys[29]]);\n }\n if (array_key_exists($keys[30], $arr)) {\n $this->setBillservicerate($arr[$keys[30]]);\n }\n if (array_key_exists($keys[31], $arr)) {\n $this->setBuildingtype($arr[$keys[31]]);\n }\n if (array_key_exists($keys[32], $arr)) {\n $this->setRoute($arr[$keys[32]]);\n }\n if (array_key_exists($keys[33], $arr)) {\n $this->setUsagetype($arr[$keys[33]]);\n }\n if (array_key_exists($keys[34], $arr)) {\n $this->setServiceCharge($arr[$keys[34]]);\n }\n if (array_key_exists($keys[35], $arr)) {\n $this->setPreviousBalance($arr[$keys[35]]);\n }\n if (array_key_exists($keys[36], $arr)) {\n $this->setPaymentReceived($arr[$keys[36]]);\n }\n if (array_key_exists($keys[37], $arr)) {\n $this->setLastPaymentReceivedDate($arr[$keys[37]]);\n }\n if (array_key_exists($keys[38], $arr)) {\n $this->setCurrentCharge($arr[$keys[38]]);\n }\n if (array_key_exists($keys[39], $arr)) {\n $this->setTotalDue($arr[$keys[39]]);\n }\n if (array_key_exists($keys[40], $arr)) {\n $this->setInvoiceNo($arr[$keys[40]]);\n }\n if (array_key_exists($keys[41], $arr)) {\n $this->setReceiptNo($arr[$keys[41]]);\n }\n if (array_key_exists($keys[42], $arr)) {\n $this->setDateCreated($arr[$keys[42]]);\n }\n if (array_key_exists($keys[43], $arr)) {\n $this->setCreator($arr[$keys[43]]);\n }\n if (array_key_exists($keys[44], $arr)) {\n $this->setStatus($arr[$keys[44]]);\n }\n }", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = UserPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setUsername($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setEmail($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setPassword($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setPoints($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setCreatedAt($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setLastActivityAt($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setType($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setHidden($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setName($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setGender($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setHometown($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setHomePhone($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setMobilePhone($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setBirthdate($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setAddress($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setRelationshipStatus($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setShowEmail($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setShowGender($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setShowHometown($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setShowHomePhone($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setShowMobilePhone($arr[$keys[21]]);\n\t\tif (array_key_exists($keys[22], $arr)) $this->setShowBirthdate($arr[$keys[22]]);\n\t\tif (array_key_exists($keys[23], $arr)) $this->setShowAddress($arr[$keys[23]]);\n\t\tif (array_key_exists($keys[24], $arr)) $this->setShowRelationshipStatus($arr[$keys[24]]);\n\t\tif (array_key_exists($keys[25], $arr)) $this->setPasswordRecoverKey($arr[$keys[25]]);\n\t\tif (array_key_exists($keys[26], $arr)) $this->setCookieKey($arr[$keys[26]]);\n\t\tif (array_key_exists($keys[27], $arr)) $this->setCredit($arr[$keys[27]]);\n\t\tif (array_key_exists($keys[28], $arr)) $this->setInvisible($arr[$keys[28]]);\n\t\tif (array_key_exists($keys[29], $arr)) $this->setNotification($arr[$keys[29]]);\n\t\tif (array_key_exists($keys[30], $arr)) $this->setPhoneNumber($arr[$keys[30]]);\n\t\tif (array_key_exists($keys[31], $arr)) $this->setLogin($arr[$keys[31]]);\n\t\tif (array_key_exists($keys[32], $arr)) $this->setCreditCard($arr[$keys[32]]);\n\t\tif (array_key_exists($keys[33], $arr)) $this->setCreditCardToken($arr[$keys[33]]);\n\t\tif (array_key_exists($keys[34], $arr)) $this->setFirstCharge($arr[$keys[34]]);\n\t\tif (array_key_exists($keys[35], $arr)) $this->setWhereFindUs($arr[$keys[35]]);\n\t}", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = UserPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setEmail($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setDisplayName($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setRealName($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setLocation($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setWebpage($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setCountry($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setPostalCode($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setBirthday($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setGravatarAddress($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setInfo($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setPlatform($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setExperienceScore($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setUpVotes($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setDownVotes($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setIsGuest($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setIsAdmin($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setTodayVotes($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setEmailOn($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setLastEmail($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setCreatedAt($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setUpdatedAt($arr[$keys[21]]);\n\t}", "public function loadFromArray($array){\n\t\t\tforeach ($array as $key => $value) {//iterate given array key=>values\n\t\t\t\tif(in_array($key, $this->columns) || in_array($key, $this->keys)){//if this key belongs to the valid columns\n\t\t\t\t\t$this->__set($key, $value);//save it\n\t\t\t\t}\n\t\t\t}\n\t\t}", "protected function setUpdateArray() {\n $column_names = getColumnNames($this->table_name);\n foreach ($column_names as $column_name) {\n if (isset($_POST[$column_name])) {\n $this->update[$column_name] = Mysql::SQLValue($_POST[$column_name]);\n } else if (isset($_GET[$column_name])) {\n $this->update[$column_name] = Mysql::SQLValue($_GET[$column_name]);\n }\n }\n }", "public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = PhoneBookTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setPhadtype($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setPhadid($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setPhadsubid($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setPhadsubidseq($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setPhadcont($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setPhadintl($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setPhadtelenbr($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setPhadteleext($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setPhadintlnbr($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setPhadintlext($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setPhadfaxnbr($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setPhadifaxnbr($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setPhadcellnbr($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setPhadicellnbr($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setPhadhomenbr($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setPhadihomenbr($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setPhadwebaddr($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setPhademailaddr($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setPhadname($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setPhadcontname($arr[$keys[19]]);\n }\n if (array_key_exists($keys[20], $arr)) {\n $this->setDateupdtd($arr[$keys[20]]);\n }\n if (array_key_exists($keys[21], $arr)) {\n $this->setTimeupdtd($arr[$keys[21]]);\n }\n if (array_key_exists($keys[22], $arr)) {\n $this->setDummy($arr[$keys[22]]);\n }\n }", "function setFields($array)\r\n\t{\r\n\t\t$db = new \\Fmw\\Core\\Db();\r\n\t\t$fields = $db->getColumns($this->getTabName($this->defTab));\r\n\t\tif ($fields) {\r\n\t\t\t$colName = false;\r\n\r\n\t\t\tforeach ($fields as $field) {\r\n\t\t\t\t$colName = $field['Field'];\r\n\r\n\t\t\t\tif (isset($array[$field['Field']])) {\r\n\r\n\t\t\t\t\tif ($field['Type'] == 'text') {\r\n\t\t\t\t\t\tif (isFormatedText($field['Field'])) {\r\n\t\t\t\t\t\t\t$array[$colName] = $array[$colName];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->$colName = $array[$colName];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = IssuesTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setName($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setOpendate($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setClosedate($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setStatus($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setInfotext($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setForbook($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setUserSys($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setConfigSys($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setSplit($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setParentnode($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setSort($arr[$keys[11]]);\n }\n }", "public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = BiblioTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setBiblioId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setTitle($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setSor($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setEdition($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setIsbn_issn($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setPublisherId($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setPublish_year($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setCollation($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setSeries_title($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setCall_number($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setLanguageId($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setSource($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setPublishPlaceId($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setClassification($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setNotes($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setImage($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setFile_att($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setOpac_hide($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setPromoted($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setLabels($arr[$keys[19]]);\n }\n if (array_key_exists($keys[20], $arr)) {\n $this->setFrequencyId($arr[$keys[20]]);\n }\n if (array_key_exists($keys[21], $arr)) {\n $this->setSpec_detail_info($arr[$keys[21]]);\n }\n if (array_key_exists($keys[22], $arr)) {\n $this->setInput_date($arr[$keys[22]]);\n }\n if (array_key_exists($keys[23], $arr)) {\n $this->setLast_update($arr[$keys[23]]);\n }\n if (array_key_exists($keys[24], $arr)) {\n $this->setUid($arr[$keys[24]]);\n }\n }", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = VenuePeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setVenueid($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setAddress($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setAddress2($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setCity($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setProvince($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setCountry($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setLatitude($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setLongitude($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setPhone($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setName($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setDescription($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setWebsite($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setTwitter($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setFacebook($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setRssfeed($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setClosed($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setLastfmid($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setSlug($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setHasphotos($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setSubmittedbyuser($arr[$keys[19]]);\n\t}", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = MmPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setSubserial($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setAnnounce($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setMail($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setSerialId($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setRank($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setPrecinctId($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setGenreId($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setBroadcastId($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setCopyright($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setStatusId($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setRecorddate($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setPublicdate($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setEditorial1($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setEditorial2($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setEditorial3($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setAudio($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setDuration($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setNumView($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setComments($arr[$keys[19]]);\n\t}", "public function processArray($input){\n\t\tforeach (static::$columns as $column) {\n\t\t\tif(isset($input[$column])){\n\t\t\t\t$this->$column = $input[$column];\n \t\t\t}\n\t\t}\n\t}", "public function fromArray ($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = CalendarHolidaysPeer::getFieldNames ($keyType);\n if ( array_key_exists ($keys[0], $arr) )\n {\n $this->setCalendarUid ($arr[$keys[0]]);\n }\n if ( array_key_exists ($keys[1], $arr) )\n {\n $this->setCalendarHolidayName ($arr[$keys[1]]);\n }\n if ( array_key_exists ($keys[2], $arr) )\n {\n $this->setCalendarHolidayStart ($arr[$keys[2]]);\n }\n if ( array_key_exists ($keys[3], $arr) )\n {\n $this->setCalendarHolidayEnd ($arr[$keys[3]]);\n }\n }", "public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = OrdrhedTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setSessionid($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setRecno($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setDate($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setTime($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setType($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setCustid($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setShiptoid($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setCustname($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setOrderno($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setCustpo($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setCustref($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setStatus($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setOrderdate($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setCareof($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setQuotdate($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setInvdate($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setShipdate($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setRevdate($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setExpdate($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setHasdocuments($arr[$keys[19]]);\n }\n if (array_key_exists($keys[20], $arr)) {\n $this->setHastracking($arr[$keys[20]]);\n }\n if (array_key_exists($keys[21], $arr)) {\n $this->setSubtotal($arr[$keys[21]]);\n }\n if (array_key_exists($keys[22], $arr)) {\n $this->setSalestax($arr[$keys[22]]);\n }\n if (array_key_exists($keys[23], $arr)) {\n $this->setFreight($arr[$keys[23]]);\n }\n if (array_key_exists($keys[24], $arr)) {\n $this->setMisccost($arr[$keys[24]]);\n }\n if (array_key_exists($keys[25], $arr)) {\n $this->setOrdertotal($arr[$keys[25]]);\n }\n if (array_key_exists($keys[26], $arr)) {\n $this->setHasnotes($arr[$keys[26]]);\n }\n if (array_key_exists($keys[27], $arr)) {\n $this->setEditord($arr[$keys[27]]);\n }\n if (array_key_exists($keys[28], $arr)) {\n $this->setError($arr[$keys[28]]);\n }\n if (array_key_exists($keys[29], $arr)) {\n $this->setErrormsg($arr[$keys[29]]);\n }\n if (array_key_exists($keys[30], $arr)) {\n $this->setSconame($arr[$keys[30]]);\n }\n if (array_key_exists($keys[31], $arr)) {\n $this->setShipname($arr[$keys[31]]);\n }\n if (array_key_exists($keys[32], $arr)) {\n $this->setShipaddress($arr[$keys[32]]);\n }\n if (array_key_exists($keys[33], $arr)) {\n $this->setShipaddress2($arr[$keys[33]]);\n }\n if (array_key_exists($keys[34], $arr)) {\n $this->setShipcity($arr[$keys[34]]);\n }\n if (array_key_exists($keys[35], $arr)) {\n $this->setShipstate($arr[$keys[35]]);\n }\n if (array_key_exists($keys[36], $arr)) {\n $this->setShipzip($arr[$keys[36]]);\n }\n if (array_key_exists($keys[37], $arr)) {\n $this->setShipcountry($arr[$keys[37]]);\n }\n if (array_key_exists($keys[38], $arr)) {\n $this->setContact($arr[$keys[38]]);\n }\n if (array_key_exists($keys[39], $arr)) {\n $this->setPhintl($arr[$keys[39]]);\n }\n if (array_key_exists($keys[40], $arr)) {\n $this->setPhone($arr[$keys[40]]);\n }\n if (array_key_exists($keys[41], $arr)) {\n $this->setExtension($arr[$keys[41]]);\n }\n if (array_key_exists($keys[42], $arr)) {\n $this->setFaxnbr($arr[$keys[42]]);\n }\n if (array_key_exists($keys[43], $arr)) {\n $this->setEmail($arr[$keys[43]]);\n }\n if (array_key_exists($keys[44], $arr)) {\n $this->setReleasenbr($arr[$keys[44]]);\n }\n if (array_key_exists($keys[45], $arr)) {\n $this->setShipviacd($arr[$keys[45]]);\n }\n if (array_key_exists($keys[46], $arr)) {\n $this->setShipviadesc($arr[$keys[46]]);\n }\n if (array_key_exists($keys[47], $arr)) {\n $this->setPricecode($arr[$keys[47]]);\n }\n if (array_key_exists($keys[48], $arr)) {\n $this->setPricecodedesc($arr[$keys[48]]);\n }\n if (array_key_exists($keys[49], $arr)) {\n $this->setPricedisp($arr[$keys[49]]);\n }\n if (array_key_exists($keys[50], $arr)) {\n $this->setTaxcode($arr[$keys[50]]);\n }\n if (array_key_exists($keys[51], $arr)) {\n $this->setTaxcodedesc($arr[$keys[51]]);\n }\n if (array_key_exists($keys[52], $arr)) {\n $this->setTaxcodedisp($arr[$keys[52]]);\n }\n if (array_key_exists($keys[53], $arr)) {\n $this->setTermcode($arr[$keys[53]]);\n }\n if (array_key_exists($keys[54], $arr)) {\n $this->setTermtype($arr[$keys[54]]);\n }\n if (array_key_exists($keys[55], $arr)) {\n $this->setTermcodedesc($arr[$keys[55]]);\n }\n if (array_key_exists($keys[56], $arr)) {\n $this->setRqstdate($arr[$keys[56]]);\n }\n if (array_key_exists($keys[57], $arr)) {\n $this->setShipcom($arr[$keys[57]]);\n }\n if (array_key_exists($keys[58], $arr)) {\n $this->setSp1($arr[$keys[58]]);\n }\n if (array_key_exists($keys[59], $arr)) {\n $this->setSp1name($arr[$keys[59]]);\n }\n if (array_key_exists($keys[60], $arr)) {\n $this->setSp2($arr[$keys[60]]);\n }\n if (array_key_exists($keys[61], $arr)) {\n $this->setSp2name($arr[$keys[61]]);\n }\n if (array_key_exists($keys[62], $arr)) {\n $this->setSp2disp($arr[$keys[62]]);\n }\n if (array_key_exists($keys[63], $arr)) {\n $this->setSp3($arr[$keys[63]]);\n }\n if (array_key_exists($keys[64], $arr)) {\n $this->setSp3name($arr[$keys[64]]);\n }\n if (array_key_exists($keys[65], $arr)) {\n $this->setSp3disp($arr[$keys[65]]);\n }\n if (array_key_exists($keys[66], $arr)) {\n $this->setFob($arr[$keys[66]]);\n }\n if (array_key_exists($keys[67], $arr)) {\n $this->setDeliverydesc($arr[$keys[67]]);\n }\n if (array_key_exists($keys[68], $arr)) {\n $this->setWhse($arr[$keys[68]]);\n }\n if (array_key_exists($keys[69], $arr)) {\n $this->setCardnumber($arr[$keys[69]]);\n }\n if (array_key_exists($keys[70], $arr)) {\n $this->setCardexpire($arr[$keys[70]]);\n }\n if (array_key_exists($keys[71], $arr)) {\n $this->setCardcode($arr[$keys[71]]);\n }\n if (array_key_exists($keys[72], $arr)) {\n $this->setCardapproval($arr[$keys[72]]);\n }\n if (array_key_exists($keys[73], $arr)) {\n $this->setTotalcost($arr[$keys[73]]);\n }\n if (array_key_exists($keys[74], $arr)) {\n $this->setTotaldiscount($arr[$keys[74]]);\n }\n if (array_key_exists($keys[75], $arr)) {\n $this->setPaymenttype($arr[$keys[75]]);\n }\n if (array_key_exists($keys[76], $arr)) {\n $this->setSrcdatefrom($arr[$keys[76]]);\n }\n if (array_key_exists($keys[77], $arr)) {\n $this->setSrcdatethru($arr[$keys[77]]);\n }\n if (array_key_exists($keys[78], $arr)) {\n $this->setBillname($arr[$keys[78]]);\n }\n if (array_key_exists($keys[79], $arr)) {\n $this->setBilladdress($arr[$keys[79]]);\n }\n if (array_key_exists($keys[80], $arr)) {\n $this->setBilladdress2($arr[$keys[80]]);\n }\n if (array_key_exists($keys[81], $arr)) {\n $this->setBilladdress3($arr[$keys[81]]);\n }\n if (array_key_exists($keys[82], $arr)) {\n $this->setBillcountry($arr[$keys[82]]);\n }\n if (array_key_exists($keys[83], $arr)) {\n $this->setBillcity($arr[$keys[83]]);\n }\n if (array_key_exists($keys[84], $arr)) {\n $this->setBillstate($arr[$keys[84]]);\n }\n if (array_key_exists($keys[85], $arr)) {\n $this->setBillzip($arr[$keys[85]]);\n }\n if (array_key_exists($keys[86], $arr)) {\n $this->setPrntfmt($arr[$keys[86]]);\n }\n if (array_key_exists($keys[87], $arr)) {\n $this->setPrntfmtdisp($arr[$keys[87]]);\n }\n if (array_key_exists($keys[88], $arr)) {\n $this->setDummy($arr[$keys[88]]);\n }\n }", "function setValues($array){\r\n\t\tforeach($array as $key => $val){\r\n\t\t\t$key = lcfirst(str_replace(\" \",\"\",ucwords(str_replace(\"_\",\" \",$key))));\r\n\t\t\tif(property_exists($this,$key))\r\n\t\t\t\t$this->$key = $val;\r\n\t\t}\r\n\t}", "function setValues($array){\r\n\t\tforeach($array as $key => $val){\r\n\t\t\t$key = lcfirst(str_replace(\" \",\"\",ucwords(str_replace(\"_\",\" \",$key))));\r\n\t\t\tif(property_exists($this,$key))\r\n\t\t\t\t$this->$key = $val;\r\n\t\t}\r\n\t}", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = EventPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setCode($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setCategory($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setAddress($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setAddress2($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setZipcode($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setCity($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setGeoCoordinateX($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setGeoCoordinateY($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setDistanceCamping($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setImage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setPriority($arr[$keys[11]]);\n if (array_key_exists($keys[12], $arr)) $this->setTel($arr[$keys[12]]);\n if (array_key_exists($keys[13], $arr)) $this->setFax($arr[$keys[13]]);\n if (array_key_exists($keys[14], $arr)) $this->setEmail($arr[$keys[14]]);\n if (array_key_exists($keys[15], $arr)) $this->setWebsite($arr[$keys[15]]);\n if (array_key_exists($keys[16], $arr)) $this->setCreatedAt($arr[$keys[16]]);\n if (array_key_exists($keys[17], $arr)) $this->setUpdatedAt($arr[$keys[17]]);\n if (array_key_exists($keys[18], $arr)) $this->setActive($arr[$keys[18]]);\n }", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = MmPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}", "protected function hydrate($array){\r\n\t\tforeach ($array as $key => $value) {\r\n\t\t\t$methodName = 'set'.ucfirst($key);\r\n\t\t\tif(method_exists($this, $methodName)){\r\n\t\t\t\t$this->$methodName($value);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = YearPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setName($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setIsActive($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setIsClosed($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setFromDate($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setToDate($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setSortableRank($arr[$keys[6]]);\n }", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = CidadePeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setUfId($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setNome($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setSlug($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setLongitude($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setLatitude($arr[$keys[5]]);\n\t}", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = UsuarioPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setPerfilId($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setEnderecoId($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setCargoId($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setDepartamentoId($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setMatricula($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setNome($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setEmail($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setDni($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setDataNascimento($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setDataContratacao($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setCelular($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setTelefone($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setToken($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setNomeUsuario($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setSenha($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setTokenSenha($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setTokenFirebase($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setDataRescisao($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setAtivo($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setTipoAcesso($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setEstadoCivil($arr[$keys[21]]);\n\t\tif (array_key_exists($keys[22], $arr)) $this->setNivelAcesso($arr[$keys[22]]);\n\t\tif (array_key_exists($keys[23], $arr)) $this->setUsuarioValidado($arr[$keys[23]]);\n\t\tif (array_key_exists($keys[24], $arr)) $this->setSexo($arr[$keys[24]]);\n\t\tif (array_key_exists($keys[25], $arr)) $this->setDataCadastro($arr[$keys[25]]);\n\t}", "protected function _setupMapperArray()\n\t{\n\t\t$this->mapperArray = array();\n\t\t\n\t\t$this->mapperArray['property_id'] = 'properties_id';\n\t\t$this->mapperArray['sort_order'] = 'sort_order';\n\t\t\n\t\t$this->mapperArray['name'] = 'properties_name';\n\t\t$this->mapperArray['admin_name'] = 'properties_admin_name';\n\t}", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = UsuarioPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setCoUsuario($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setNuCpf($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setDsPassword($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setNoUsuario($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setDsLogin($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setDtUltimoLogin($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setDsEmail($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setCoPerfil($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setNuCelular($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setNuTelefone($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setStUsuario($arr[$keys[10]]);\n\t}", "public function testSetByName()\n {\n $book = new Book();\n $types = [\n TableMap::TYPE_PHPNAME => 'Title',\n TableMap::TYPE_CAMELNAME => 'title',\n TableMap::TYPE_COLNAME => 'book.title',\n TableMap::TYPE_FIELDNAME => 'title',\n TableMap::TYPE_NUM => 1\n ];\n\n $title = 'Harry Potter and the Order of the Phoenix';\n foreach ($types as $type => $name) {\n $book->setByName($name, $title, $type);\n $result = $book->getTitle();\n $this->assertEquals($title, $result);\n }\n }", "public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = ArticleTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setArticleId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setDescription($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setPrice($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setCreation($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setVisible($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setShapeId($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setCakeTypeId($arr[$keys[6]]);\n }\n }", "public function populate($row){\n foreach ($row as $key => $value){\n $this->$key = $value;\n }\n }", "public function assignByArray($array) {\n\t\t$result=array();\n\t\tforeach ($array as $fieldId=>$value) {\n\t\t\t$result[self::$FIELD_NAMES[$fieldId]]=$value;\n\t\t}\n\t\t$this->assignByHash($result);\n\t}", "public function assignByArray($array) {\n\t\t$result=array();\n\t\tforeach ($array as $fieldId=>$value) {\n\t\t\t$result[self::$FIELD_NAMES[$fieldId]]=$value;\n\t\t}\n\t\t$this->assignByHash($result);\n\t}", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = CampaignPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setSlug($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setName($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setCommentaire($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setSubject($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setTemplateId($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setContent($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setPreparedContent($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setTextContent($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setPreparedTextContent($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setStatus($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setFromName($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setFromEmail($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setScheduledAt($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setScheduleType($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setTestType($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setTestUserList($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setTarget($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setReplyToEmail($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setReturnPathEmail($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setReturnPathServer($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setReturnPathLogin($arr[$keys[21]]);\n\t\tif (array_key_exists($keys[22], $arr)) $this->setReturnPathPassword($arr[$keys[22]]);\n\t\tif (array_key_exists($keys[23], $arr)) $this->setIsArchived($arr[$keys[23]]);\n\t\tif (array_key_exists($keys[24], $arr)) $this->setGoogleAnalyticsEnabled($arr[$keys[24]]);\n\t\tif (array_key_exists($keys[25], $arr)) $this->setGoogleAnalyticsSource($arr[$keys[25]]);\n\t\tif (array_key_exists($keys[26], $arr)) $this->setGoogleAnalyticsMedium($arr[$keys[26]]);\n\t\tif (array_key_exists($keys[27], $arr)) $this->setGoogleAnalyticsCampaignType($arr[$keys[27]]);\n\t\tif (array_key_exists($keys[28], $arr)) $this->setGoogleAnalyticsCampaignContent($arr[$keys[28]]);\n\t\tif (array_key_exists($keys[29], $arr)) $this->setGoogleAnalyticsContent($arr[$keys[29]]);\n\t\tif (array_key_exists($keys[30], $arr)) $this->setLitmusTestId($arr[$keys[30]]);\n\t\tif (array_key_exists($keys[31], $arr)) $this->setWebTrackerEnabled($arr[$keys[31]]);\n\t\tif (array_key_exists($keys[32], $arr)) $this->setCreatedAt($arr[$keys[32]]);\n\t\tif (array_key_exists($keys[33], $arr)) $this->setCreatedBy($arr[$keys[33]]);\n\t\tif (array_key_exists($keys[34], $arr)) $this->setUpdatedAt($arr[$keys[34]]);\n\t}", "public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = PoReceivingHeadTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setPothnbr($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setPothstat($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setPothrcptdate($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setIntbwhse($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setPothglpd($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setPothairship($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setPotherinreview($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setPothexchctry($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setPothexchrate($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setIntbwhseorig($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setPothlandcost($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setPothrcptnbr($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setPothlandbasedon($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setPothinvcnbr($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setPothinvcdate($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setPothfrtamt($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setPothmiscamt($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setDateupdtd($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setTimeupdtd($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setDummy($arr[$keys[19]]);\n }\n }", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n {\n $pos = MontacargasPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }", "public function setFromArray(array $data)\n\t{\n\t\t//原来是array_intersect_key($data, $this->getArrayCopy()),现在取消参数列表检查,因此直接使用data\n\t\tforeach ($data as $columnName => $value) {\n\t\t\t$this[$columnName] = $value;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function init_from_array($array)\n { \n foreach($array as $key => $val)\n { \n $this->set($key,$val);\n }\n }", "protected function _setupTableMapperArray()\n\t{\n\t\t$this->tableMapperArray = array();\n\t\t\n\t\t$this->tableMapperArray['property_id'] = 'properties';\n\t\t$this->tableMapperArray['external_property_id'] = 'properties';\n\t\t$this->tableMapperArray['sort_order'] = 'properties';\n\t\t\n\t\t$this->tableMapperArray['name'] = 'properties_description';\n\t\t$this->tableMapperArray['admin_name'] = 'properties_description';\n \n\t\t$this->languageDependentMapperArray = array('properties_description');\n\t}", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n parent::fromArray($arr, $keyType);\n\n if (isset(CollectorProfilePeer::$extraFieldNames[$keyType]))\n {\n $keys = CollectorProfilePeer::$extraFieldNames[$keyType];\n\n if (array_key_exists($keys[0], $arr)) $this->setAboutMe($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setAboutCompany($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setAboutCollections($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setAboutWhatYouCollect($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setAboutWhatYouSell($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setAboutMostExpensiveItem($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setAboutAnnuallySpend($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setAboutPurchasesPerYear($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setAboutNewItemEvery($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setAboutInterests($arr[$keys[9]]);\n }\n }", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = UserPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = UserPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}", "public function setColumns(array $columns);", "public function testFromArray()\n {\n $types = [\n TableMap::TYPE_PHPNAME,\n TableMap::TYPE_CAMELNAME,\n TableMap::TYPE_COLNAME,\n TableMap::TYPE_FIELDNAME,\n TableMap::TYPE_NUM\n ];\n $expecteds = [\n TableMap::TYPE_PHPNAME => [\n 'Title' => 'Harry Potter and the Order of the Phoenix',\n 'ISBN' => '043935806X'\n ],\n TableMap::TYPE_CAMELNAME => [\n 'title' => 'Harry Potter and the Order of the Phoenix',\n 'iSBN' => '043935806X'\n ],\n TableMap::TYPE_COLNAME => [\n 'book.title' => 'Harry Potter and the Order of the Phoenix',\n 'book.isbn' => '043935806X'\n ],\n TableMap::TYPE_FIELDNAME => [\n 'title' => 'Harry Potter and the Order of the Phoenix',\n 'isbn' => '043935806X'\n ],\n TableMap::TYPE_NUM => [\n '1' => 'Harry Potter and the Order of the Phoenix',\n '2' => '043935806X'\n ]\n ];\n\n $book = new Book();\n\n foreach ($types as $type) {\n $expected = $expecteds[$type];\n $book->fromArray($expected, $type);\n $result = [];\n foreach (array_keys($expected) as $key) {\n $result[$key] = $book->getByName($key, $type);\n }\n $this->assertEquals(\n $expected,\n $result,\n 'expected was: ' . print_r($expected, 1) .\n 'but fromArray() returned ' . print_r($result, 1)\n );\n }\n }", "public function fromArray($array) {\n \n foreach ( $array as $key => $value ) {\n \n if ( $this->$key instanceof PersistentCollection ) {\n \n $value = new ArrayCollection(\n array_unique(array_merge($this->$key->toArray(), $value->toArray()), \\SORT_REGULAR)\n );\n \n }\n \n $this->$key = $value; \n }\n \n //return $this;\n }", "public function fromArray($array) {\n \n foreach ( $array as $key => $value ) {\n \n if ( $this->$key instanceof PersistentCollection ) {\n \n $value = new ArrayCollection(\n array_unique(array_merge($this->$key->toArray(), $value->toArray()), \\SORT_REGULAR)\n );\n \n }\n \n $this->$key = $value; \n }\n \n //return $this;\n }", "function setValues($array){\r\n\t\tforeach($array as $key => $val)\r\n\t\t\tif(property_exists($this,$key))\r\n\t\t\t\t$this->$key = $val;\r\n\t}", "public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = SalesHistoryNotesTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setShnttype($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setShnttypedesc($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setOehhnbr($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setShntyear($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setOedhline($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setShntlotser($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setShntpickticket($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setShntpackticket($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setShntinvoice($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setShntacknow($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setShntseq($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setShntnote($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setShntkey2($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setShntform($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setDateupdtd($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setTimeupdtd($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setDummy($arr[$keys[16]]);\n }\n }", "public function set_values_from_array(array $Data) {\n foreach ($Data as $field => $value) {\n if (!isset ($this->$field)) continue;\n $this->$field->setValue ($value);\n }\n }", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = ActionTypePeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setid($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setcreateDatetime($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setcreatePersonId($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setmodifyDatetime($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setmodifyPersonId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setdeleted($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setClass($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setgroupId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setcode($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setname($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->settitle($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setflatCode($arr[$keys[11]]);\n if (array_key_exists($keys[12], $arr)) $this->setsex($arr[$keys[12]]);\n if (array_key_exists($keys[13], $arr)) $this->setage($arr[$keys[13]]);\n if (array_key_exists($keys[14], $arr)) $this->setageBu($arr[$keys[14]]);\n if (array_key_exists($keys[15], $arr)) $this->setageBc($arr[$keys[15]]);\n if (array_key_exists($keys[16], $arr)) $this->setageEu($arr[$keys[16]]);\n if (array_key_exists($keys[17], $arr)) $this->setageEc($arr[$keys[17]]);\n if (array_key_exists($keys[18], $arr)) $this->setoffice($arr[$keys[18]]);\n if (array_key_exists($keys[19], $arr)) $this->setshowInForm($arr[$keys[19]]);\n if (array_key_exists($keys[20], $arr)) $this->setgenTimeTable($arr[$keys[20]]);\n if (array_key_exists($keys[21], $arr)) $this->setserviceId($arr[$keys[21]]);\n if (array_key_exists($keys[22], $arr)) $this->setquotaTypeId($arr[$keys[22]]);\n if (array_key_exists($keys[23], $arr)) $this->setcontext($arr[$keys[23]]);\n if (array_key_exists($keys[24], $arr)) $this->setamount($arr[$keys[24]]);\n if (array_key_exists($keys[25], $arr)) $this->setamountEvaluation($arr[$keys[25]]);\n if (array_key_exists($keys[26], $arr)) $this->setdefaultStatus($arr[$keys[26]]);\n if (array_key_exists($keys[27], $arr)) $this->setdefaultDirectionDate($arr[$keys[27]]);\n if (array_key_exists($keys[28], $arr)) $this->setdefaultPlannedEndDate($arr[$keys[28]]);\n if (array_key_exists($keys[29], $arr)) $this->setdefaultEndDate($arr[$keys[29]]);\n if (array_key_exists($keys[30], $arr)) $this->setdefaultExecPersonId($arr[$keys[30]]);\n if (array_key_exists($keys[31], $arr)) $this->setdefaultPersonInEvent($arr[$keys[31]]);\n if (array_key_exists($keys[32], $arr)) $this->setdefaultPersonInEditor($arr[$keys[32]]);\n if (array_key_exists($keys[33], $arr)) $this->setmaxOccursInEvent($arr[$keys[33]]);\n if (array_key_exists($keys[34], $arr)) $this->setshowTime($arr[$keys[34]]);\n if (array_key_exists($keys[35], $arr)) $this->setisMes($arr[$keys[35]]);\n if (array_key_exists($keys[36], $arr)) $this->setnomenclativeServiceId($arr[$keys[36]]);\n if (array_key_exists($keys[37], $arr)) $this->setisPreferable($arr[$keys[37]]);\n if (array_key_exists($keys[38], $arr)) $this->setprescribedTypeId($arr[$keys[38]]);\n if (array_key_exists($keys[39], $arr)) $this->setsheduleId($arr[$keys[39]]);\n if (array_key_exists($keys[40], $arr)) $this->setisRequiredCoordination($arr[$keys[40]]);\n if (array_key_exists($keys[41], $arr)) $this->setisRequiredTissue($arr[$keys[41]]);\n if (array_key_exists($keys[42], $arr)) $this->settestTubeTypeId($arr[$keys[42]]);\n if (array_key_exists($keys[43], $arr)) $this->setjobTypeId($arr[$keys[43]]);\n if (array_key_exists($keys[44], $arr)) $this->setmnem($arr[$keys[44]]);\n }", "public function setColumns(array $columns);", "function set(array $array){\n foreach($this as $atributo => $valor){\n if(isset($array[$atributo])){\n $this->$atributo = $array[$atributo];\n }\n }\n }", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n parent::fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME);\n $this->initCmsI18ns();\n if (isset($arr['CmsI18ns'])) {\n foreach ($arr['CmsI18ns'] as $cmsI18n) {\n $translation = new CmsI18n();\n $translation->fromArray($cmsI18n);\n $this->addCmsI18n($translation);\n }\n }\n }", "public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME)\n {\n $pos = UserTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);\n\n return $this->setByPosition($pos, $value);\n }", "public function __construct($keys, $columns) {\n $this->mapping = array();\n if (count($keys) <= count($columns)) {\n for ($i = 0; $i < count($keys); $i++) {\n $this->mapping[$keys[$i]] = $columns[$i];\n }\n }\n }", "public function fromArray($array) {\n \n foreach ( $array as $key => $value ) {\n \n $this->$key = $value; \n }\n \n //return $this;\n }", "public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = CommandeTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setIDCommande($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setRFCommande($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setIDSociete_FK($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setTMode($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setQuantite($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setAPrix($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setADelai($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setDTECommande($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setPriorite($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setCMDNote($arr[$keys[9]]);\n }\n }", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = C060InventarioPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setCoEquipo($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setCoRegion($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setCoNegocio($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setCoDivision($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setCoTipo($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setCoCustodio($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setTxEtiquetaSti($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setCoEstado($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setTxNombreEquipo($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setTxFunsionEquipo($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setCoSo($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setTxEtiquetaActivo($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setTxSerialHardware($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setTxMarcaHardware($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setTxModeloHardware($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setCoCiudad($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setCoEdificio($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setTxDireccionUbicacion($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setTxDetalleUbicacion($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setCoCentroDato($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setCoRack($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setTxUbicacionLlave($arr[$keys[21]]);\n\t\tif (array_key_exists($keys[22], $arr)) $this->setInRespaldoAutomatizado($arr[$keys[22]]);\n\t\tif (array_key_exists($keys[23], $arr)) $this->setInBloqueoInactividad($arr[$keys[23]]);\n\t\tif (array_key_exists($keys[24], $arr)) $this->setInAdiministradoresPersonalizados($arr[$keys[24]]);\n\t\tif (array_key_exists($keys[25], $arr)) $this->setInPoliticaPassword($arr[$keys[25]]);\n\t\tif (array_key_exists($keys[26], $arr)) $this->setInSincronizacionReloj($arr[$keys[26]]);\n\t\tif (array_key_exists($keys[27], $arr)) $this->setInMonitoreado($arr[$keys[27]]);\n\t\tif (array_key_exists($keys[28], $arr)) $this->setInInfActualizada($arr[$keys[28]]);\n\t\tif (array_key_exists($keys[29], $arr)) $this->setInLogActivo($arr[$keys[29]]);\n\t\tif (array_key_exists($keys[30], $arr)) $this->setCoNivelCriticidad($arr[$keys[30]]);\n\t\tif (array_key_exists($keys[31], $arr)) $this->setTxObservaciones($arr[$keys[31]]);\n\t\tif (array_key_exists($keys[32], $arr)) $this->setTxRutaRespaldoConfiguraciones($arr[$keys[32]]);\n\t\tif (array_key_exists($keys[33], $arr)) $this->setCoNumInventario($arr[$keys[33]]);\n\t}", "public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME)\n {\n $pos = KluBillTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);\n\n return $this->setByPosition($pos, $value);\n }", "protected function _configureColumns()\n {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n $this->_sourceColumns = $this->columns;;\n\n $columnsByKey = [];\n foreach ($this->columns as $column) {\n $columnKey = $this->_getColumnKey($column);\n for ($j = 0; true; $j++) {\n $suffix = ($j) ? '_' . $j : '';\n $columnKey .= $suffix;\n if (!array_key_exists($columnKey, $columnsByKey)) {\n break;\n }\n }\n $columnsByKey[$columnKey] = $column;\n }\n\n $this->columns = $columnsByKey;\n }", "public function init()\r\n\t{\r\n\t\tif (count($this->table_fields) < 1)\r\n\t\t\treturn false;\r\n\t\tforeach ($this->table_fields as $table_field) {\r\n\t\t\tif ($table_field->get_primary_key()) {\r\n\t\t\t\t$this->id_field = $table_field->get_name();\r\n\t\t\t}\r\n\t\t\tif ($table_field->get_name_key()) {\r\n\t\t\t\t$this->name_fields[] = $table_field->get_name();\r\n\t\t\t}\r\n\t\t\tif ($table_field->get_unike_key()) {\r\n\t\t\t\t$this->unike_keys[] = $table_field->get_name();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = MontacargasPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setIdmontacargas($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setIdsucursal($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setMontacargasModelo($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setMontacargasMarca($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setMontacargasC($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setMontacargasK($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setMontacargasP($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setMontacargasT($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setMontacargasE($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setMontacargasVolts($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setMontacargasAmperaje($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setMontacargasNombre($arr[$keys[11]]);\n if (array_key_exists($keys[12], $arr)) $this->setMontacargasNumserie($arr[$keys[12]]);\n if (array_key_exists($keys[13], $arr)) $this->setMontacargasComprador($arr[$keys[13]]);\n if (array_key_exists($keys[14], $arr)) $this->setMontacargasCiclosmant($arr[$keys[14]]);\n if (array_key_exists($keys[15], $arr)) $this->setMontacargasCiclosiniciales($arr[$keys[15]]);\n if (array_key_exists($keys[16], $arr)) $this->setMontacargasBaja($arr[$keys[16]]);\n }", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = C060InventarioPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}", "protected function __construct($tbl, $column_array, $field_array) {\n\t\t$this->table = $tbl;\n\t\t$this->columns = $column_array;\n\t\t$this->fields = $field_array;\n\t\t$this->map = Util::MakeAssocArray($this->columns,$this->fields);\n\t\t$this->_id = uniqid();\t\t// Every object in the database has a random hash\n\t}", "public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME)\n {\n $pos = TblProdInfoTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);\n\n return $this->setByPosition($pos, $value);\n }", "public function setHeader($array) {\n $this->colName= $array;\n $this->headerWritten= FALSE;\n }", "public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME)\n {\n $pos = OrdrhedTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);\n\n return $this->setByPosition($pos, $value);\n }", "private function _setColumns()\n {\n $this->columns = new Pike_Grid_DataSource_Columns();\n\n foreach ($this->_query->getFields() as $field) {\n $this->columns->add($field, null, $field);\n }\n }", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = CampaignPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}", "function set(array $array, $pos = 0){\n foreach($this as $field => $valor){\n if(isset($array[$pos])){\n $this->$field = $array[$pos];\n }\n $pos++;\n }\n }", "public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME)\n {\n $pos = PhoneBookTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);\n\n return $this->setByPosition($pos, $value);\n }", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n {\n $pos = EventPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = VpoRequestPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setHazardousCargoFlag($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setRequestDate($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setRequestReasonDesc($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setAgencyName($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setReqFirstName($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setReqLastName($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setAgencyDivision($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setReqAddress1($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setReqAddress2($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setReqCity($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setReqState($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setReqCountry($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setReqZipcode($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setReqOfficePhone($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setReqOfficeComment($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setReqMobilePhone($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setReqMobileComment($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setReqFaxPhone($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setReqFaxComment($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setReqPagerPhone($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setReqPagerComment($arr[$keys[21]]);\n\t\tif (array_key_exists($keys[22], $arr)) $this->setReqOtherPhone1($arr[$keys[22]]);\n\t\tif (array_key_exists($keys[23], $arr)) $this->setReqOtherComment1($arr[$keys[23]]);\n\t\tif (array_key_exists($keys[24], $arr)) $this->setReqOtherPhone2($arr[$keys[24]]);\n\t\tif (array_key_exists($keys[25], $arr)) $this->setReqOtherComment2($arr[$keys[25]]);\n\t\tif (array_key_exists($keys[26], $arr)) $this->setReqOtherPhone3($arr[$keys[26]]);\n\t\tif (array_key_exists($keys[27], $arr)) $this->setReqOtherComment3($arr[$keys[27]]);\n\t\tif (array_key_exists($keys[28], $arr)) $this->setReqEmail($arr[$keys[28]]);\n\t\tif (array_key_exists($keys[29], $arr)) $this->setReqAltEmail($arr[$keys[29]]);\n\t\tif (array_key_exists($keys[30], $arr)) $this->setContactNotes($arr[$keys[30]]);\n\t\tif (array_key_exists($keys[31], $arr)) $this->setOriginCity($arr[$keys[31]]);\n\t\tif (array_key_exists($keys[32], $arr)) $this->setOriginState($arr[$keys[32]]);\n\t\tif (array_key_exists($keys[33], $arr)) $this->setDestCity($arr[$keys[33]]);\n\t\tif (array_key_exists($keys[34], $arr)) $this->setDestState($arr[$keys[34]]);\n\t\tif (array_key_exists($keys[35], $arr)) $this->setPreferredDate($arr[$keys[35]]);\n\t\tif (array_key_exists($keys[36], $arr)) $this->setAlternativeDate($arr[$keys[36]]);\n\t\tif (array_key_exists($keys[37], $arr)) $this->setTransportType($arr[$keys[37]]);\n\t\tif (array_key_exists($keys[38], $arr)) $this->setRequestPostedDate($arr[$keys[38]]);\n\t\tif (array_key_exists($keys[39], $arr)) $this->setRequestPostedToAfaOrgId($arr[$keys[39]]);\n\t\tif (array_key_exists($keys[40], $arr)) $this->setRequesProcessedDate($arr[$keys[40]]);\n\t\tif (array_key_exists($keys[41], $arr)) $this->setRequestDisposition($arr[$keys[41]]);\n\t\tif (array_key_exists($keys[42], $arr)) $this->setCallerName($arr[$keys[42]]);\n\t\tif (array_key_exists($keys[43], $arr)) $this->setCallerPhone($arr[$keys[43]]);\n\t\tif (array_key_exists($keys[44], $arr)) $this->setRequestPostResults($arr[$keys[44]]);\n\t\tif (array_key_exists($keys[45], $arr)) $this->setRequesterVpoUserId($arr[$keys[45]]);\n\t\tif (array_key_exists($keys[46], $arr)) $this->setSource($arr[$keys[46]]);\n\t\tif (array_key_exists($keys[47], $arr)) $this->setSoapPostFromAfaOrgId($arr[$keys[47]]);\n\t\tif (array_key_exists($keys[48], $arr)) $this->setSoapPostRequestId($arr[$keys[48]]);\n\t\tif (array_key_exists($keys[49], $arr)) $this->setRequestProcessedBy($arr[$keys[49]]);\n\t}", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = VenuePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = PostPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}", "private function initColumnArrays()\n {\n foreach ($this->columns as $key => $column) {\n $dql = $this->accessor->getValue($column, 'dql');\n $data = $this->accessor->getValue($column, 'data');\n\n $currentPart = $this->entityShortName;\n $currentAlias = $currentPart;\n $metadata = $this->metadata;\n\n if (true === $this->accessor->getValue($column, 'customDql')) {\n $columnAlias = str_replace('.', '_', $data);\n\n // Select\n $selectDql = preg_replace('/\\{([\\w]+)\\}/', '$1', $dql);\n $this->addSelectColumn(null, $selectDql.' '.$columnAlias);\n // Order on alias column name\n $this->addOrderColumn($column, null, $columnAlias);\n // Fix subqueries alias duplication\n $searchDql = preg_replace('/\\{([\\w]+)\\}/', '$1_search', $dql);\n $this->addSearchColumn($column, null, $searchDql);\n } elseif (true === $this->accessor->getValue($column, 'selectColumn')) {\n $parts = explode('.', $dql);\n\n while (count($parts) > 1) {\n $previousPart = $currentPart;\n $previousAlias = $currentAlias;\n\n $currentPart = array_shift($parts);\n $currentAlias = ($previousPart === $this->entityShortName ? '' : $previousPart.'_').$currentPart;\n\n if (!array_key_exists($previousAlias.'.'.$currentPart, $this->joins)) {\n $this->addJoin($previousAlias.'.'.$currentPart, $currentAlias, $this->accessor->getValue($column, 'joinType'));\n }\n\n $metadata = $this->setIdentifierFromAssociation($currentAlias, $currentPart, $metadata);\n }\n\n $this->addSelectColumn($currentAlias, $this->getIdentifier($metadata));\n $this->addSelectColumn($currentAlias, $parts[0]);\n $this->addSearchOrderColumn($column, $currentAlias, $parts[0]);\n } else {\n // Add Order-Field for VirtualColumn\n if ($this->accessor->isReadable($column, 'orderColumn') && true === $this->accessor->getValue($column, 'orderable')) {\n $orderColumn = $this->accessor->getValue($column, 'orderColumn');\n $orderParts = explode('.', $orderColumn);\n if (count($orderParts) < 2) {\n $orderColumn = $this->entityShortName.'.'.$orderColumn;\n }\n $this->orderColumns[] = $orderColumn;\n } else {\n $this->orderColumns[] = null;\n }\n\n // Add Search-Field for VirtualColumn\n if ($this->accessor->isReadable($column, 'searchColumn') && true === $this->accessor->getValue($column, 'searchable')) {\n $searchColumn = $this->accessor->getValue($column, 'searchColumn');\n $searchParts = explode('.', $searchColumn);\n if (count($searchParts) < 2) {\n $searchColumn = $this->entityShortName.'.'.$searchColumn;\n }\n $this->searchColumns[] = $searchColumn;\n } else {\n $this->searchColumns[] = null;\n }\n }\n }\n\n return $this;\n }", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n {\n $pos = YearPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }", "public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME)\n {\n $pos = AliMemberTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);\n\n return $this->setByPosition($pos, $value);\n }", "public function fromArray(array $data)\n {\n foreach ($data as $key => $value) {\n $this->{'set'.ucfirst($key)}($value);\n }\n }", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = UsuarioPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = UsuarioPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = CidadePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}", "public function getByName($name, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = MmPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->getByPosition($pos);\n\t}", "public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME)\n {\n $pos = BiblioTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);\n\n return $this->setByPosition($pos, $value);\n }", "public function exchangeArray(array $array)\n {\n $values = get_object_vars($this);\n\n foreach (array_keys($values) as $property) {\n if (array_key_exists($property, $array)) {\n $this->$property = $array[$property];\n }\n }\n }", "public function fromArray ($fieldsArr)\n\t{\n\t\tforeach ($fieldsArr as $name => $value) {\n\t\t\t$this->$name = $value;\n\t\t}\n\t}", "private function applyArray($arr)\n {\n foreach ($this as $key => $value)\n if (isset($arr[$key]))\n $this->$key = $arr[$key];\n }", "public function populate(array $options = [])\n {\n foreach ($options as $key => $value) {\n // NB: This can in the future be changed to automatically use setters and enforce validation\n $this->$key = $value;\n }\n }", "public function exchangeArray(array $data)\n {\n foreach ($data as $name => $value) {\n if(property_exists($this, $name)) {\n if(strstr($name,'_id')\n && empty($value)){\n $this->$name = null;\n }else{\n $this->$name = $value;\n }\n }\n }\n }", "function resultSet($results) {\n $this->map = array();\n $numFields = $results->columnCount();\n $index = 0;\n $j = 0;\n\n while ($j < $numFields) {\n $column = $results->getColumnMeta($index);\n if (!empty($column['table'])) {\n $this->map[$index++] = array($column['table'], $column['name']);\n } else {\n if (strpos($column['name'], '__')) {\n $parts = explode('__', $column['name']);\n $this->map[$index++] = array($parts[0], $parts[1]);\n } else {\n $this->map[$index++] = array(0, $column['name']);\n }\n }\n $j++;\n }\n\n }", "protected function loadColumns(){\n\t\t\t$this->columns = array_diff(\n\t\t\t\tarray_keys(get_class_vars($this->class)),\n\t\t\t\t$this->getIgnoreAttributes()\n\t\t\t);\n\t\t}", "public function __construct(Array $columns)\n {\n $this->Columns = $columns;\n }", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = PostPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setPartieId($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setReplicaPostId($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setType($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setTitle($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setUrl($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setText($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setPhotoFile($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setPhotoUrl($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setQuote($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setQuoteAuthor($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setLinkTitle($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setLinkUrl($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setLinkImage($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setVideoUrl($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setTotalIndex($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setBestBadge1($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setBestBadge2($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setIsPublished($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setIsFeatured($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setCommentsCount($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setCreatedAt($arr[$keys[21]]);\n\t\tif (array_key_exists($keys[22], $arr)) $this->setUpdatedAt($arr[$keys[22]]);\n\t}", "private function load_columns_information() {\n $query = \"SELECT ordinal_position,\n column_name,\n data_type,\n is_nullable::boolean::integer\n FROM information_schema.columns\n WHERE table_schema = 'public'\n AND table_name = '{$this->get_table_name()}';\";\n $this->columns_information = DB::fetch_all($query);\n\n // Cria os campos da tabela no objeto corrente\n foreach($this->columns_information as $column) {\n $this->$column['column_name'] = null;\n $this->{'_' . $column['column_name']} = null;\n }\n }", "protected function map_field($table_name, &$source_array) {\n\t\t$table_field_list = $this->db->list_fields($table_name);\n\t\tforeach ($source_array as $source_key => $source_value) {\n\t\t\t$found = FALSE;\n\t\t\tforeach ($table_field_list as $column_name) {\n\t\t\t\tif ($source_key === $column_name) {\n\t\t\t\t\t$found = TRUE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!$found) {\n\t\t\t\tunset($source_array[$source_key]);\n\t\t\t}\n\t\t}\n\t}", "private function fillArray($array) {\n\t\t$result = array();\n\t\tforeach ($array as $attr => $val) {\n\t\t\t$setMethod = 'set' . ucfirst($attr);\n\t\t\t$returnType = $this->getReturnTypeOfSetMethod($setMethod);\n\t\t\tif ($returnType) {\n\t\t\t\t$result[$attr] = new $returnType(); \n\t\t\t} else {\n\t\t\t\t$result[$attr] = 'abc';\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function hydrate(array $data){ \n \tforeach ($data as $key => $value){\n \t\t$method = 'set'.ucfirst($key); \n \tif (method_exists($this, $method)){\n \t$this->$method($value);\n }\n }\n\t}", "public function init($array) {\n foreach ($this->params as $key => $val) {\n if (array_key_exists($key, $array)) {\n //if ($key == 'mil_labs')\n // $array[$key] = explode(\",\", $array[$key]);\n $this->params[$key] = $array[$key];\n } else {\n throw new Exception(\"Parameter $key is required.\");\n }\n }\n //$this->irrSysTypeCategory = Utility::getLookupTable('irr_sys_type_category');\n $this->irrSysTypes = Utility::getLookupTable('irr_sys_types');\n\n $this->counties = Utility::getLookupTable(\"fl_county\");\n\n $sql = \"select id, common_name from irr_sys_types\";\n $query_rez = MIL::doQuery($sql, MYSQL_ASSOC);\n foreach ($query_rez as $i => $value) {\n $this->irrTypes[$i] = $value;\n }\n }", "protected function initializeColumnMapping() {\n\t\t// add always available cols for filemetadata\n\t\tforeach ($this->metaColMapping as $damColName => $metaColName) {\n\t\t\t$this->columnMapping[$damColName] = $metaColName;\n\t\t}\n\n\t\t// add additional cols if ext:for filemetadata is installed\n\t\tif (ExtensionManagementUtility::isLoaded('filemetadata')) {\n\t\t\tforeach ($this->additionalMetaColMapping as $damColName => $metaColName) {\n\t\t\t\t$this->columnMapping[$damColName] = $metaColName;\n\t\t\t}\n\t\t}\n\t}", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = FeatureCvtermPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setFeatureCvtermId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setFeatureId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setCvtermId($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setPubId($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setIsNot($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setRank($arr[$keys[5]]);\n }", "protected function initColumns()\n\t{\n\t\tif($this->columns===array())\n\t\t{\n\t\t\tif($this->dataProvider instanceof NActiveDataProvider)\n\t\t\t\t$this->columns=$this->dataProvider->model->attributeNames();\n\t\t\telse if($this->dataProvider instanceof IDataProvider)\n\t\t\t{\n\t\t\t\t// use the keys of the first row of data as the default columns\n\t\t\t\t$data=$this->dataProvider->getData();\n\t\t\t\tif(isset($data[0]) && is_array($data[0]))\n\t\t\t\t\t$this->columns=array_keys($data[0]);\n\t\t\t}\n\t\t}\n\t\t$id=$this->getId();\n\t\tforeach($this->columns as $i=>$column)\n\t\t{\n\t\t\tif ($column['name'] && (!isset($column['export']) || @$column['export']!=false)) {\n\t\t\t\tif(is_string($column))\n\t\t\t\t\t$column=$this->createDataColumn($column);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!isset($column['class']))\n\t\t\t\t\t\t$column['class']='NDataColumn';\n\t\t\t\t\t$column=Yii::createComponent($column, $this);\n\t\t\t\t}\n\t\t\t\tif(!$column->visible)\n\t\t\t\t{\n\t\t\t\t\tunset($this->columns[$i]);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif($column->id===null)\n\t\t\t\t\t$column->id=$id.'_c'.$i;\n\t\t\t\t$this->columns[$i]=$column;\n\t\t\t} else {\n\t\t\t\tunset($this->columns[$i]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tforeach($this->columns as $column)\n\t\t\t\t$column->init();\n\t}", "public function loadData(Array $data): void\n {\n foreach($data as $fieldName => $fData) {\n if (property_exists($this, $fieldName)) {\n $this->{$fieldName} = $fData;\n }\n }\n }" ]
[ "0.6509717", "0.6312809", "0.59346604", "0.59316504", "0.58837193", "0.58560085", "0.5810146", "0.58028835", "0.57683325", "0.5720703", "0.56907237", "0.5657866", "0.5637225", "0.56195664", "0.55450475", "0.5504854", "0.5491418", "0.5491418", "0.54822934", "0.5480083", "0.5478485", "0.5467936", "0.5398039", "0.53948396", "0.53843486", "0.5363509", "0.53578335", "0.53425723", "0.5333737", "0.53243107", "0.53243107", "0.53044415", "0.5299335", "0.52941877", "0.52747345", "0.5247831", "0.5235359", "0.52276397", "0.5224475", "0.5224475", "0.52198404", "0.5212163", "0.5198513", "0.5198513", "0.5190544", "0.5182061", "0.51711315", "0.5170737", "0.51530844", "0.51451963", "0.51361924", "0.51346946", "0.51334745", "0.51235986", "0.51015395", "0.5093389", "0.50757855", "0.50757", "0.5057285", "0.5045316", "0.5037082", "0.5026302", "0.5005849", "0.5002049", "0.5001418", "0.4993751", "0.49896392", "0.49835628", "0.49807075", "0.49615958", "0.4952247", "0.49447992", "0.49275294", "0.49157915", "0.49134764", "0.49082685", "0.4902275", "0.48944053", "0.48944053", "0.48928443", "0.4876671", "0.48739845", "0.48733377", "0.4860286", "0.48575652", "0.4856658", "0.48446783", "0.4844476", "0.48158103", "0.48126605", "0.48027796", "0.47851124", "0.47697425", "0.4765987", "0.47606242", "0.47590202", "0.47496954", "0.47486264", "0.4736922", "0.47333384" ]
0.53996587
22
Build a Criteria object containing the values of all modified columns in this object.
public function buildCriteria() { $criteria = new Criteria(TblProdInfoTableMap::DATABASE_NAME); if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ID)) { $criteria->add(TblProdInfoTableMap::COL_PROD_ID, $this->prod_id); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_PRICE_ID)) { $criteria->add(TblProdInfoTableMap::COL_PROD_PRICE_ID, $this->prod_price_id); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_NAME)) { $criteria->add(TblProdInfoTableMap::COL_PROD_NAME, $this->prod_name); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ALT1)) { $criteria->add(TblProdInfoTableMap::COL_PROD_ALT1, $this->prod_alt1); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ALT2)) { $criteria->add(TblProdInfoTableMap::COL_PROD_ALT2, $this->prod_alt2); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ALT3)) { $criteria->add(TblProdInfoTableMap::COL_PROD_ALT3, $this->prod_alt3); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ALT4)) { $criteria->add(TblProdInfoTableMap::COL_PROD_ALT4, $this->prod_alt4); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_CODE)) { $criteria->add(TblProdInfoTableMap::COL_PROD_CODE, $this->prod_code); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_CATEGORY)) { $criteria->add(TblProdInfoTableMap::COL_PROD_CATEGORY, $this->prod_category); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_CATEGORY_SHIPPING)) { $criteria->add(TblProdInfoTableMap::COL_PROD_CATEGORY_SHIPPING, $this->prod_category_shipping); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_WRITEUP)) { $criteria->add(TblProdInfoTableMap::COL_PROD_WRITEUP, $this->prod_writeup); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_LENGTH)) { $criteria->add(TblProdInfoTableMap::COL_PROD_LENGTH, $this->prod_length); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_WINGSPAN)) { $criteria->add(TblProdInfoTableMap::COL_PROD_WINGSPAN, $this->prod_wingspan); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_HEIGHT)) { $criteria->add(TblProdInfoTableMap::COL_PROD_HEIGHT, $this->prod_height); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_SCALE)) { $criteria->add(TblProdInfoTableMap::COL_PROD_SCALE, $this->prod_scale); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_LINKS)) { $criteria->add(TblProdInfoTableMap::COL_PROD_LINKS, $this->prod_links); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_LINKDESCRIPTION)) { $criteria->add(TblProdInfoTableMap::COL_PROD_LINKDESCRIPTION, $this->prod_linkdescription); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_FRONT)) { $criteria->add(TblProdInfoTableMap::COL_PROD_FRONT, $this->prod_front); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_KEYWORDS)) { $criteria->add(TblProdInfoTableMap::COL_PROD_KEYWORDS, $this->prod_keywords); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP)) { $criteria->add(TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP, $this->prod_keywords_writeup); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_TITLE)) { $criteria->add(TblProdInfoTableMap::COL_PROD_TITLE, $this->prod_title); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_DESCRIPTION)) { $criteria->add(TblProdInfoTableMap::COL_PROD_DESCRIPTION, $this->prod_description); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_GENERAL)) { $criteria->add(TblProdInfoTableMap::COL_PROD_GENERAL, $this->prod_general); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ERA)) { $criteria->add(TblProdInfoTableMap::COL_PROD_ERA, $this->prod_era); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_COMPANY)) { $criteria->add(TblProdInfoTableMap::COL_PROD_COMPANY, $this->prod_company); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_RELATED)) { $criteria->add(TblProdInfoTableMap::COL_PROD_RELATED, $this->prod_related); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_RELATED_PA)) { $criteria->add(TblProdInfoTableMap::COL_PROD_RELATED_PA, $this->prod_related_pa); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_RELATED_M3)) { $criteria->add(TblProdInfoTableMap::COL_PROD_RELATED_M3, $this->prod_related_m3); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_RELATED2)) { $criteria->add(TblProdInfoTableMap::COL_PROD_RELATED2, $this->prod_related2); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_SAVEAS)) { $criteria->add(TblProdInfoTableMap::COL_PROD_SAVEAS, $this->prod_saveas); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_AIRCRAFTREG)) { $criteria->add(TblProdInfoTableMap::COL_PROD_AIRCRAFTREG, $this->prod_aircraftreg); } if ($this->isColumnModified(TblProdInfoTableMap::COL_MB)) { $criteria->add(TblProdInfoTableMap::COL_MB, $this->mb); } if ($this->isColumnModified(TblProdInfoTableMap::COL_PA)) { $criteria->add(TblProdInfoTableMap::COL_PA, $this->pa); } if ($this->isColumnModified(TblProdInfoTableMap::COL_M3)) { $criteria->add(TblProdInfoTableMap::COL_M3, $this->m3); } return $criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildCriteria()\n {\n $criteria = new Criteria(UserTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(UserTableMap::COL_ID)) {\n $criteria->add(UserTableMap::COL_ID, $this->id);\n }\n if ($this->isColumnModified(UserTableMap::COL_NICKNAME)) {\n $criteria->add(UserTableMap::COL_NICKNAME, $this->nickname);\n }\n if ($this->isColumnModified(UserTableMap::COL_EMAIL)) {\n $criteria->add(UserTableMap::COL_EMAIL, $this->email);\n }\n if ($this->isColumnModified(UserTableMap::COL_AGE)) {\n $criteria->add(UserTableMap::COL_AGE, $this->age);\n }\n if ($this->isColumnModified(UserTableMap::COL_SEX)) {\n $criteria->add(UserTableMap::COL_SEX, $this->sex);\n }\n if ($this->isColumnModified(UserTableMap::COL_CREATED_AT)) {\n $criteria->add(UserTableMap::COL_CREATED_AT, $this->created_at);\n }\n if ($this->isColumnModified(UserTableMap::COL_UPDATED_AT)) {\n $criteria->add(UserTableMap::COL_UPDATED_AT, $this->updated_at);\n }\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(CommandeTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(CommandeTableMap::COL_ID_COMMANDE)) {\n $criteria->add(CommandeTableMap::COL_ID_COMMANDE, $this->id_commande);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_REFERENCE)) {\n $criteria->add(CommandeTableMap::COL_REFERENCE, $this->reference);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_SOC_ID_FK)) {\n $criteria->add(CommandeTableMap::COL_SOC_ID_FK, $this->soc_id_fk);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_TRANSPORT_FK)) {\n $criteria->add(CommandeTableMap::COL_TRANSPORT_FK, $this->transport_fk);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_QUANTITE)) {\n $criteria->add(CommandeTableMap::COL_QUANTITE, $this->quantite);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_PRIX)) {\n $criteria->add(CommandeTableMap::COL_PRIX, $this->prix);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_DELAI)) {\n $criteria->add(CommandeTableMap::COL_DELAI, $this->delai);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_DTE_COMMANDE)) {\n $criteria->add(CommandeTableMap::COL_DTE_COMMANDE, $this->dte_commande);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_PRIORITE)) {\n $criteria->add(CommandeTableMap::COL_PRIORITE, $this->priorite);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_NOTE)) {\n $criteria->add(CommandeTableMap::COL_NOTE, $this->note);\n }\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(ArticleTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(ArticleTableMap::COL_ARTICLE_ID)) {\n $criteria->add(ArticleTableMap::COL_ARTICLE_ID, $this->article_id);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_DESCRIPTION)) {\n $criteria->add(ArticleTableMap::COL_DESCRIPTION, $this->description);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_PRICE)) {\n $criteria->add(ArticleTableMap::COL_PRICE, $this->price);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_CREATION)) {\n $criteria->add(ArticleTableMap::COL_CREATION, $this->creation);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_VISIBLE)) {\n $criteria->add(ArticleTableMap::COL_VISIBLE, $this->visible);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_SHAPE_ID)) {\n $criteria->add(ArticleTableMap::COL_SHAPE_ID, $this->shape_id);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_CAKE_TYPE_ID)) {\n $criteria->add(ArticleTableMap::COL_CAKE_TYPE_ID, $this->cake_type_id);\n }\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(YearPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(YearPeer::ID)) $criteria->add(YearPeer::ID, $this->id);\n if ($this->isColumnModified(YearPeer::NAME)) $criteria->add(YearPeer::NAME, $this->name);\n if ($this->isColumnModified(YearPeer::IS_ACTIVE)) $criteria->add(YearPeer::IS_ACTIVE, $this->is_active);\n if ($this->isColumnModified(YearPeer::IS_CLOSED)) $criteria->add(YearPeer::IS_CLOSED, $this->is_closed);\n if ($this->isColumnModified(YearPeer::FROM_DATE)) $criteria->add(YearPeer::FROM_DATE, $this->from_date);\n if ($this->isColumnModified(YearPeer::TO_DATE)) $criteria->add(YearPeer::TO_DATE, $this->to_date);\n if ($this->isColumnModified(YearPeer::SORTABLE_RANK)) $criteria->add(YearPeer::SORTABLE_RANK, $this->sortable_rank);\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(SalesHistoryNotesTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTTYPE)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTTYPE, $this->shnttype);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTTYPEDESC)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTTYPEDESC, $this->shnttypedesc);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_OEHHNBR)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_OEHHNBR, $this->oehhnbr);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTYEAR)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTYEAR, $this->shntyear);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_OEDHLINE)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_OEDHLINE, $this->oedhline);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTLOTSER)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTLOTSER, $this->shntlotser);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTPICKTICKET)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTPICKTICKET, $this->shntpickticket);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTPACKTICKET)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTPACKTICKET, $this->shntpackticket);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTINVOICE)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTINVOICE, $this->shntinvoice);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTACKNOW)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTACKNOW, $this->shntacknow);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTSEQ)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTSEQ, $this->shntseq);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTNOTE)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTNOTE, $this->shntnote);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTKEY2)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTKEY2, $this->shntkey2);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTFORM)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTFORM, $this->shntform);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_DATEUPDTD)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_DATEUPDTD, $this->dateupdtd);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_TIMEUPDTD)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_TIMEUPDTD, $this->timeupdtd);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_DUMMY)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_DUMMY, $this->dummy);\n }\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(EventPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(EventPeer::ID)) $criteria->add(EventPeer::ID, $this->id);\n if ($this->isColumnModified(EventPeer::CODE)) $criteria->add(EventPeer::CODE, $this->code);\n if ($this->isColumnModified(EventPeer::CATEGORY)) $criteria->add(EventPeer::CATEGORY, $this->category);\n if ($this->isColumnModified(EventPeer::ADDRESS)) $criteria->add(EventPeer::ADDRESS, $this->address);\n if ($this->isColumnModified(EventPeer::ADDRESS2)) $criteria->add(EventPeer::ADDRESS2, $this->address2);\n if ($this->isColumnModified(EventPeer::ZIPCODE)) $criteria->add(EventPeer::ZIPCODE, $this->zipcode);\n if ($this->isColumnModified(EventPeer::CITY)) $criteria->add(EventPeer::CITY, $this->city);\n if ($this->isColumnModified(EventPeer::GEO_COORDINATE_X)) $criteria->add(EventPeer::GEO_COORDINATE_X, $this->geo_coordinate_x);\n if ($this->isColumnModified(EventPeer::GEO_COORDINATE_Y)) $criteria->add(EventPeer::GEO_COORDINATE_Y, $this->geo_coordinate_y);\n if ($this->isColumnModified(EventPeer::DISTANCE_CAMPING)) $criteria->add(EventPeer::DISTANCE_CAMPING, $this->distance_camping);\n if ($this->isColumnModified(EventPeer::IMAGE)) $criteria->add(EventPeer::IMAGE, $this->image);\n if ($this->isColumnModified(EventPeer::PRIORITY)) $criteria->add(EventPeer::PRIORITY, $this->priority);\n if ($this->isColumnModified(EventPeer::TEL)) $criteria->add(EventPeer::TEL, $this->tel);\n if ($this->isColumnModified(EventPeer::FAX)) $criteria->add(EventPeer::FAX, $this->fax);\n if ($this->isColumnModified(EventPeer::EMAIL)) $criteria->add(EventPeer::EMAIL, $this->email);\n if ($this->isColumnModified(EventPeer::WEBSITE)) $criteria->add(EventPeer::WEBSITE, $this->website);\n if ($this->isColumnModified(EventPeer::CREATED_AT)) $criteria->add(EventPeer::CREATED_AT, $this->created_at);\n if ($this->isColumnModified(EventPeer::UPDATED_AT)) $criteria->add(EventPeer::UPDATED_AT, $this->updated_at);\n if ($this->isColumnModified(EventPeer::ACTIVE)) $criteria->add(EventPeer::ACTIVE, $this->active);\n\n return $criteria;\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(CidadePeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(CidadePeer::ID)) $criteria->add(CidadePeer::ID, $this->id);\n\t\tif ($this->isColumnModified(CidadePeer::UF_ID)) $criteria->add(CidadePeer::UF_ID, $this->uf_id);\n\t\tif ($this->isColumnModified(CidadePeer::NOME)) $criteria->add(CidadePeer::NOME, $this->nome);\n\t\tif ($this->isColumnModified(CidadePeer::SLUG)) $criteria->add(CidadePeer::SLUG, $this->slug);\n\t\tif ($this->isColumnModified(CidadePeer::LONGITUDE)) $criteria->add(CidadePeer::LONGITUDE, $this->longitude);\n\t\tif ($this->isColumnModified(CidadePeer::LATITUDE)) $criteria->add(CidadePeer::LATITUDE, $this->latitude);\n\n\t\treturn $criteria;\n\t}", "public function buildCriteria()\n {\n $criteria = new Criteria(OrdrhedTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(OrdrhedTableMap::COL_SESSIONID)) {\n $criteria->add(OrdrhedTableMap::COL_SESSIONID, $this->sessionid);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_RECNO)) {\n $criteria->add(OrdrhedTableMap::COL_RECNO, $this->recno);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_DATE)) {\n $criteria->add(OrdrhedTableMap::COL_DATE, $this->date);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TIME)) {\n $criteria->add(OrdrhedTableMap::COL_TIME, $this->time);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TYPE)) {\n $criteria->add(OrdrhedTableMap::COL_TYPE, $this->type);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CUSTID)) {\n $criteria->add(OrdrhedTableMap::COL_CUSTID, $this->custid);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPTOID)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPTOID, $this->shiptoid);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CUSTNAME)) {\n $criteria->add(OrdrhedTableMap::COL_CUSTNAME, $this->custname);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_ORDERNO)) {\n $criteria->add(OrdrhedTableMap::COL_ORDERNO, $this->orderno);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CUSTPO)) {\n $criteria->add(OrdrhedTableMap::COL_CUSTPO, $this->custpo);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CUSTREF)) {\n $criteria->add(OrdrhedTableMap::COL_CUSTREF, $this->custref);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_STATUS)) {\n $criteria->add(OrdrhedTableMap::COL_STATUS, $this->status);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_ORDERDATE)) {\n $criteria->add(OrdrhedTableMap::COL_ORDERDATE, $this->orderdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CAREOF)) {\n $criteria->add(OrdrhedTableMap::COL_CAREOF, $this->careof);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_QUOTDATE)) {\n $criteria->add(OrdrhedTableMap::COL_QUOTDATE, $this->quotdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_INVDATE)) {\n $criteria->add(OrdrhedTableMap::COL_INVDATE, $this->invdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPDATE)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPDATE, $this->shipdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_REVDATE)) {\n $criteria->add(OrdrhedTableMap::COL_REVDATE, $this->revdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_EXPDATE)) {\n $criteria->add(OrdrhedTableMap::COL_EXPDATE, $this->expdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_HASDOCUMENTS)) {\n $criteria->add(OrdrhedTableMap::COL_HASDOCUMENTS, $this->hasdocuments);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_HASTRACKING)) {\n $criteria->add(OrdrhedTableMap::COL_HASTRACKING, $this->hastracking);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SUBTOTAL)) {\n $criteria->add(OrdrhedTableMap::COL_SUBTOTAL, $this->subtotal);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SALESTAX)) {\n $criteria->add(OrdrhedTableMap::COL_SALESTAX, $this->salestax);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_FREIGHT)) {\n $criteria->add(OrdrhedTableMap::COL_FREIGHT, $this->freight);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_MISCCOST)) {\n $criteria->add(OrdrhedTableMap::COL_MISCCOST, $this->misccost);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_ORDERTOTAL)) {\n $criteria->add(OrdrhedTableMap::COL_ORDERTOTAL, $this->ordertotal);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_HASNOTES)) {\n $criteria->add(OrdrhedTableMap::COL_HASNOTES, $this->hasnotes);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_EDITORD)) {\n $criteria->add(OrdrhedTableMap::COL_EDITORD, $this->editord);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_ERROR)) {\n $criteria->add(OrdrhedTableMap::COL_ERROR, $this->error);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_ERRORMSG)) {\n $criteria->add(OrdrhedTableMap::COL_ERRORMSG, $this->errormsg);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SCONAME)) {\n $criteria->add(OrdrhedTableMap::COL_SCONAME, $this->sconame);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPNAME)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPNAME, $this->shipname);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPADDRESS)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPADDRESS, $this->shipaddress);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPADDRESS2)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPADDRESS2, $this->shipaddress2);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPCITY)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPCITY, $this->shipcity);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPSTATE)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPSTATE, $this->shipstate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPZIP)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPZIP, $this->shipzip);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPCOUNTRY)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPCOUNTRY, $this->shipcountry);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CONTACT)) {\n $criteria->add(OrdrhedTableMap::COL_CONTACT, $this->contact);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PHINTL)) {\n $criteria->add(OrdrhedTableMap::COL_PHINTL, $this->phintl);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PHONE)) {\n $criteria->add(OrdrhedTableMap::COL_PHONE, $this->phone);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_EXTENSION)) {\n $criteria->add(OrdrhedTableMap::COL_EXTENSION, $this->extension);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_FAXNBR)) {\n $criteria->add(OrdrhedTableMap::COL_FAXNBR, $this->faxnbr);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_EMAIL)) {\n $criteria->add(OrdrhedTableMap::COL_EMAIL, $this->email);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_RELEASENBR)) {\n $criteria->add(OrdrhedTableMap::COL_RELEASENBR, $this->releasenbr);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPVIACD)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPVIACD, $this->shipviacd);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPVIADESC)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPVIADESC, $this->shipviadesc);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PRICECODE)) {\n $criteria->add(OrdrhedTableMap::COL_PRICECODE, $this->pricecode);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PRICECODEDESC)) {\n $criteria->add(OrdrhedTableMap::COL_PRICECODEDESC, $this->pricecodedesc);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PRICEDISP)) {\n $criteria->add(OrdrhedTableMap::COL_PRICEDISP, $this->pricedisp);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TAXCODE)) {\n $criteria->add(OrdrhedTableMap::COL_TAXCODE, $this->taxcode);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TAXCODEDESC)) {\n $criteria->add(OrdrhedTableMap::COL_TAXCODEDESC, $this->taxcodedesc);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TAXCODEDISP)) {\n $criteria->add(OrdrhedTableMap::COL_TAXCODEDISP, $this->taxcodedisp);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TERMCODE)) {\n $criteria->add(OrdrhedTableMap::COL_TERMCODE, $this->termcode);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TERMTYPE)) {\n $criteria->add(OrdrhedTableMap::COL_TERMTYPE, $this->termtype);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TERMCODEDESC)) {\n $criteria->add(OrdrhedTableMap::COL_TERMCODEDESC, $this->termcodedesc);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_RQSTDATE)) {\n $criteria->add(OrdrhedTableMap::COL_RQSTDATE, $this->rqstdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPCOM)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPCOM, $this->shipcom);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP1)) {\n $criteria->add(OrdrhedTableMap::COL_SP1, $this->sp1);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP1NAME)) {\n $criteria->add(OrdrhedTableMap::COL_SP1NAME, $this->sp1name);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP2)) {\n $criteria->add(OrdrhedTableMap::COL_SP2, $this->sp2);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP2NAME)) {\n $criteria->add(OrdrhedTableMap::COL_SP2NAME, $this->sp2name);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP2DISP)) {\n $criteria->add(OrdrhedTableMap::COL_SP2DISP, $this->sp2disp);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP3)) {\n $criteria->add(OrdrhedTableMap::COL_SP3, $this->sp3);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP3NAME)) {\n $criteria->add(OrdrhedTableMap::COL_SP3NAME, $this->sp3name);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP3DISP)) {\n $criteria->add(OrdrhedTableMap::COL_SP3DISP, $this->sp3disp);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_FOB)) {\n $criteria->add(OrdrhedTableMap::COL_FOB, $this->fob);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_DELIVERYDESC)) {\n $criteria->add(OrdrhedTableMap::COL_DELIVERYDESC, $this->deliverydesc);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_WHSE)) {\n $criteria->add(OrdrhedTableMap::COL_WHSE, $this->whse);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CARDNUMBER)) {\n $criteria->add(OrdrhedTableMap::COL_CARDNUMBER, $this->cardnumber);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CARDEXPIRE)) {\n $criteria->add(OrdrhedTableMap::COL_CARDEXPIRE, $this->cardexpire);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CARDCODE)) {\n $criteria->add(OrdrhedTableMap::COL_CARDCODE, $this->cardcode);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CARDAPPROVAL)) {\n $criteria->add(OrdrhedTableMap::COL_CARDAPPROVAL, $this->cardapproval);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TOTALCOST)) {\n $criteria->add(OrdrhedTableMap::COL_TOTALCOST, $this->totalcost);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TOTALDISCOUNT)) {\n $criteria->add(OrdrhedTableMap::COL_TOTALDISCOUNT, $this->totaldiscount);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PAYMENTTYPE)) {\n $criteria->add(OrdrhedTableMap::COL_PAYMENTTYPE, $this->paymenttype);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SRCDATEFROM)) {\n $criteria->add(OrdrhedTableMap::COL_SRCDATEFROM, $this->srcdatefrom);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SRCDATETHRU)) {\n $criteria->add(OrdrhedTableMap::COL_SRCDATETHRU, $this->srcdatethru);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLNAME)) {\n $criteria->add(OrdrhedTableMap::COL_BILLNAME, $this->billname);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLADDRESS)) {\n $criteria->add(OrdrhedTableMap::COL_BILLADDRESS, $this->billaddress);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLADDRESS2)) {\n $criteria->add(OrdrhedTableMap::COL_BILLADDRESS2, $this->billaddress2);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLADDRESS3)) {\n $criteria->add(OrdrhedTableMap::COL_BILLADDRESS3, $this->billaddress3);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLCOUNTRY)) {\n $criteria->add(OrdrhedTableMap::COL_BILLCOUNTRY, $this->billcountry);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLCITY)) {\n $criteria->add(OrdrhedTableMap::COL_BILLCITY, $this->billcity);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLSTATE)) {\n $criteria->add(OrdrhedTableMap::COL_BILLSTATE, $this->billstate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLZIP)) {\n $criteria->add(OrdrhedTableMap::COL_BILLZIP, $this->billzip);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PRNTFMT)) {\n $criteria->add(OrdrhedTableMap::COL_PRNTFMT, $this->prntfmt);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PRNTFMTDISP)) {\n $criteria->add(OrdrhedTableMap::COL_PRNTFMTDISP, $this->prntfmtdisp);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_DUMMY)) {\n $criteria->add(OrdrhedTableMap::COL_DUMMY, $this->dummy);\n }\n\n return $criteria;\n }", "public function buildCriteria ()\n {\n $criteria = new Criteria (CalendarHolidaysPeer::DATABASE_NAME);\n if ( $this->isColumnModified (CalendarHolidaysPeer::CALENDAR_UID) )\n {\n $criteria->add (CalendarHolidaysPeer::CALENDAR_UID, $this->calendar_uid);\n }\n if ( $this->isColumnModified (CalendarHolidaysPeer::CALENDAR_HOLIDAY_NAME) )\n {\n $criteria->add (CalendarHolidaysPeer::CALENDAR_HOLIDAY_NAME, $this->calendar_holiday_name);\n }\n if ( $this->isColumnModified (CalendarHolidaysPeer::CALENDAR_HOLIDAY_START) )\n {\n $criteria->add (CalendarHolidaysPeer::CALENDAR_HOLIDAY_START, $this->calendar_holiday_start);\n }\n if ( $this->isColumnModified (CalendarHolidaysPeer::CALENDAR_HOLIDAY_END) )\n {\n $criteria->add (CalendarHolidaysPeer::CALENDAR_HOLIDAY_END, $this->calendar_holiday_end);\n }\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(PoReceivingHeadTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHNBR)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHNBR, $this->pothnbr);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHSTAT)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHSTAT, $this->pothstat);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHRCPTDATE)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHRCPTDATE, $this->pothrcptdate);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_INTBWHSE)) {\n $criteria->add(PoReceivingHeadTableMap::COL_INTBWHSE, $this->intbwhse);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHGLPD)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHGLPD, $this->pothglpd);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHAIRSHIP)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHAIRSHIP, $this->pothairship);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHERINREVIEW)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHERINREVIEW, $this->potherinreview);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHEXCHCTRY)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHEXCHCTRY, $this->pothexchctry);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHEXCHRATE)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHEXCHRATE, $this->pothexchrate);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_INTBWHSEORIG)) {\n $criteria->add(PoReceivingHeadTableMap::COL_INTBWHSEORIG, $this->intbwhseorig);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHLANDCOST)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHLANDCOST, $this->pothlandcost);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHRCPTNBR)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHRCPTNBR, $this->pothrcptnbr);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHLANDBASEDON)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHLANDBASEDON, $this->pothlandbasedon);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHINVCNBR)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHINVCNBR, $this->pothinvcnbr);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHINVCDATE)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHINVCDATE, $this->pothinvcdate);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHFRTAMT)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHFRTAMT, $this->pothfrtamt);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHMISCAMT)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHMISCAMT, $this->pothmiscamt);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_DATEUPDTD)) {\n $criteria->add(PoReceivingHeadTableMap::COL_DATEUPDTD, $this->dateupdtd);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_TIMEUPDTD)) {\n $criteria->add(PoReceivingHeadTableMap::COL_TIMEUPDTD, $this->timeupdtd);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_DUMMY)) {\n $criteria->add(PoReceivingHeadTableMap::COL_DUMMY, $this->dummy);\n }\n\n return $criteria;\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_EQUIPO)) $criteria->add(C060InventarioPeer::CO_EQUIPO, $this->co_equipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_REGION)) $criteria->add(C060InventarioPeer::CO_REGION, $this->co_region);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_NEGOCIO)) $criteria->add(C060InventarioPeer::CO_NEGOCIO, $this->co_negocio);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_DIVISION)) $criteria->add(C060InventarioPeer::CO_DIVISION, $this->co_division);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_TIPO)) $criteria->add(C060InventarioPeer::CO_TIPO, $this->co_tipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_CUSTODIO)) $criteria->add(C060InventarioPeer::CO_CUSTODIO, $this->co_custodio);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_ETIQUETA_STI)) $criteria->add(C060InventarioPeer::TX_ETIQUETA_STI, $this->tx_etiqueta_sti);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_ESTADO)) $criteria->add(C060InventarioPeer::CO_ESTADO, $this->co_estado);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_NOMBRE_EQUIPO)) $criteria->add(C060InventarioPeer::TX_NOMBRE_EQUIPO, $this->tx_nombre_equipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_FUNSION_EQUIPO)) $criteria->add(C060InventarioPeer::TX_FUNSION_EQUIPO, $this->tx_funsion_equipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_SO)) $criteria->add(C060InventarioPeer::CO_SO, $this->co_so);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_ETIQUETA_ACTIVO)) $criteria->add(C060InventarioPeer::TX_ETIQUETA_ACTIVO, $this->tx_etiqueta_activo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_SERIAL_HARDWARE)) $criteria->add(C060InventarioPeer::TX_SERIAL_HARDWARE, $this->tx_serial_hardware);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_MARCA_HARDWARE)) $criteria->add(C060InventarioPeer::TX_MARCA_HARDWARE, $this->tx_marca_hardware);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_MODELO_HARDWARE)) $criteria->add(C060InventarioPeer::TX_MODELO_HARDWARE, $this->tx_modelo_hardware);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_CIUDAD)) $criteria->add(C060InventarioPeer::CO_CIUDAD, $this->co_ciudad);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_EDIFICIO)) $criteria->add(C060InventarioPeer::CO_EDIFICIO, $this->co_edificio);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_DIRECCION_UBICACION)) $criteria->add(C060InventarioPeer::TX_DIRECCION_UBICACION, $this->tx_direccion_ubicacion);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_DETALLE_UBICACION)) $criteria->add(C060InventarioPeer::TX_DETALLE_UBICACION, $this->tx_detalle_ubicacion);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_CENTRO_DATO)) $criteria->add(C060InventarioPeer::CO_CENTRO_DATO, $this->co_centro_dato);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_RACK)) $criteria->add(C060InventarioPeer::CO_RACK, $this->co_rack);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_UBICACION_LLAVE)) $criteria->add(C060InventarioPeer::TX_UBICACION_LLAVE, $this->tx_ubicacion_llave);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_RESPALDO_AUTOMATIZADO)) $criteria->add(C060InventarioPeer::IN_RESPALDO_AUTOMATIZADO, $this->in_respaldo_automatizado);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_BLOQUEO_INACTIVIDAD)) $criteria->add(C060InventarioPeer::IN_BLOQUEO_INACTIVIDAD, $this->in_bloqueo_inactividad);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_ADIMINISTRADORES_PERSONALIZADOS)) $criteria->add(C060InventarioPeer::IN_ADIMINISTRADORES_PERSONALIZADOS, $this->in_adiministradores_personalizados);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_POLITICA_PASSWORD)) $criteria->add(C060InventarioPeer::IN_POLITICA_PASSWORD, $this->in_politica_password);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_SINCRONIZACION_RELOJ)) $criteria->add(C060InventarioPeer::IN_SINCRONIZACION_RELOJ, $this->in_sincronizacion_reloj);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_MONITOREADO)) $criteria->add(C060InventarioPeer::IN_MONITOREADO, $this->in_monitoreado);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_INF_ACTUALIZADA)) $criteria->add(C060InventarioPeer::IN_INF_ACTUALIZADA, $this->in_inf_actualizada);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_LOG_ACTIVO)) $criteria->add(C060InventarioPeer::IN_LOG_ACTIVO, $this->in_log_activo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_NIVEL_CRITICIDAD)) $criteria->add(C060InventarioPeer::CO_NIVEL_CRITICIDAD, $this->co_nivel_criticidad);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_OBSERVACIONES)) $criteria->add(C060InventarioPeer::TX_OBSERVACIONES, $this->tx_observaciones);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_RUTA_RESPALDO_CONFIGURACIONES)) $criteria->add(C060InventarioPeer::TX_RUTA_RESPALDO_CONFIGURACIONES, $this->tx_ruta_respaldo_configuraciones);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_NUM_INVENTARIO)) $criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}", "public function buildCriteria()\n {\n $criteria = new Criteria(FeatureCvtermPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(FeatureCvtermPeer::FEATURE_CVTERM_ID)) $criteria->add(FeatureCvtermPeer::FEATURE_CVTERM_ID, $this->feature_cvterm_id);\n if ($this->isColumnModified(FeatureCvtermPeer::FEATURE_ID)) $criteria->add(FeatureCvtermPeer::FEATURE_ID, $this->feature_id);\n if ($this->isColumnModified(FeatureCvtermPeer::CVTERM_ID)) $criteria->add(FeatureCvtermPeer::CVTERM_ID, $this->cvterm_id);\n if ($this->isColumnModified(FeatureCvtermPeer::PUB_ID)) $criteria->add(FeatureCvtermPeer::PUB_ID, $this->pub_id);\n if ($this->isColumnModified(FeatureCvtermPeer::IS_NOT)) $criteria->add(FeatureCvtermPeer::IS_NOT, $this->is_not);\n if ($this->isColumnModified(FeatureCvtermPeer::RANK)) $criteria->add(FeatureCvtermPeer::RANK, $this->rank);\n\n return $criteria;\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(UsuarioPeer::CO_USUARIO)) $criteria->add(UsuarioPeer::CO_USUARIO, $this->co_usuario);\n\t\tif ($this->isColumnModified(UsuarioPeer::NU_CPF)) $criteria->add(UsuarioPeer::NU_CPF, $this->nu_cpf);\n\t\tif ($this->isColumnModified(UsuarioPeer::DS_PASSWORD)) $criteria->add(UsuarioPeer::DS_PASSWORD, $this->ds_password);\n\t\tif ($this->isColumnModified(UsuarioPeer::NO_USUARIO)) $criteria->add(UsuarioPeer::NO_USUARIO, $this->no_usuario);\n\t\tif ($this->isColumnModified(UsuarioPeer::DS_LOGIN)) $criteria->add(UsuarioPeer::DS_LOGIN, $this->ds_login);\n\t\tif ($this->isColumnModified(UsuarioPeer::DT_ULTIMO_LOGIN)) $criteria->add(UsuarioPeer::DT_ULTIMO_LOGIN, $this->dt_ultimo_login);\n\t\tif ($this->isColumnModified(UsuarioPeer::DS_EMAIL)) $criteria->add(UsuarioPeer::DS_EMAIL, $this->ds_email);\n\t\tif ($this->isColumnModified(UsuarioPeer::CO_PERFIL)) $criteria->add(UsuarioPeer::CO_PERFIL, $this->co_perfil);\n\t\tif ($this->isColumnModified(UsuarioPeer::NU_CELULAR)) $criteria->add(UsuarioPeer::NU_CELULAR, $this->nu_celular);\n\t\tif ($this->isColumnModified(UsuarioPeer::NU_TELEFONE)) $criteria->add(UsuarioPeer::NU_TELEFONE, $this->nu_telefone);\n\t\tif ($this->isColumnModified(UsuarioPeer::ST_USUARIO)) $criteria->add(UsuarioPeer::ST_USUARIO, $this->st_usuario);\n\n\t\treturn $criteria;\n\t}", "public function buildCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(SanitasiPeer::SEKOLAH_ID)) $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(SanitasiPeer::SEMESTER_ID)) $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n if ($this->isColumnModified(SanitasiPeer::SUMBER_AIR_ID)) $criteria->add(SanitasiPeer::SUMBER_AIR_ID, $this->sumber_air_id);\n if ($this->isColumnModified(SanitasiPeer::SUMBER_AIR_MINUM_ID)) $criteria->add(SanitasiPeer::SUMBER_AIR_MINUM_ID, $this->sumber_air_minum_id);\n if ($this->isColumnModified(SanitasiPeer::CREATE_DATE)) $criteria->add(SanitasiPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(SanitasiPeer::LAST_UPDATE)) $criteria->add(SanitasiPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(SanitasiPeer::SOFT_DELETE)) $criteria->add(SanitasiPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(SanitasiPeer::LAST_SYNC)) $criteria->add(SanitasiPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(SanitasiPeer::UPDATER_ID)) $criteria->add(SanitasiPeer::UPDATER_ID, $this->updater_id);\n if ($this->isColumnModified(SanitasiPeer::KETERSEDIAAN_AIR)) $criteria->add(SanitasiPeer::KETERSEDIAAN_AIR, $this->ketersediaan_air);\n if ($this->isColumnModified(SanitasiPeer::KECUKUPAN_AIR)) $criteria->add(SanitasiPeer::KECUKUPAN_AIR, $this->kecukupan_air);\n if ($this->isColumnModified(SanitasiPeer::MINUM_SISWA)) $criteria->add(SanitasiPeer::MINUM_SISWA, $this->minum_siswa);\n if ($this->isColumnModified(SanitasiPeer::MEMPROSES_AIR)) $criteria->add(SanitasiPeer::MEMPROSES_AIR, $this->memproses_air);\n if ($this->isColumnModified(SanitasiPeer::SISWA_BAWA_AIR)) $criteria->add(SanitasiPeer::SISWA_BAWA_AIR, $this->siswa_bawa_air);\n if ($this->isColumnModified(SanitasiPeer::TOILET_SISWA_LAKI)) $criteria->add(SanitasiPeer::TOILET_SISWA_LAKI, $this->toilet_siswa_laki);\n if ($this->isColumnModified(SanitasiPeer::TOILET_SISWA_PEREMPUAN)) $criteria->add(SanitasiPeer::TOILET_SISWA_PEREMPUAN, $this->toilet_siswa_perempuan);\n if ($this->isColumnModified(SanitasiPeer::TOILET_SISWA_KK)) $criteria->add(SanitasiPeer::TOILET_SISWA_KK, $this->toilet_siswa_kk);\n if ($this->isColumnModified(SanitasiPeer::TOILET_SISWA_KECIL)) $criteria->add(SanitasiPeer::TOILET_SISWA_KECIL, $this->toilet_siswa_kecil);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_L_G)) $criteria->add(SanitasiPeer::JML_JAMBAN_L_G, $this->jml_jamban_l_g);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_L_TG)) $criteria->add(SanitasiPeer::JML_JAMBAN_L_TG, $this->jml_jamban_l_tg);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_P_G)) $criteria->add(SanitasiPeer::JML_JAMBAN_P_G, $this->jml_jamban_p_g);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_P_TG)) $criteria->add(SanitasiPeer::JML_JAMBAN_P_TG, $this->jml_jamban_p_tg);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_LP_G)) $criteria->add(SanitasiPeer::JML_JAMBAN_LP_G, $this->jml_jamban_lp_g);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_LP_TG)) $criteria->add(SanitasiPeer::JML_JAMBAN_LP_TG, $this->jml_jamban_lp_tg);\n if ($this->isColumnModified(SanitasiPeer::TEMPAT_CUCI_TANGAN)) $criteria->add(SanitasiPeer::TEMPAT_CUCI_TANGAN, $this->tempat_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::TEMPAT_CUCI_TANGAN_RUSAK)) $criteria->add(SanitasiPeer::TEMPAT_CUCI_TANGAN_RUSAK, $this->tempat_cuci_tangan_rusak);\n if ($this->isColumnModified(SanitasiPeer::A_SABUN_AIR_MENGALIR)) $criteria->add(SanitasiPeer::A_SABUN_AIR_MENGALIR, $this->a_sabun_air_mengalir);\n if ($this->isColumnModified(SanitasiPeer::JAMBAN_DIFABEL)) $criteria->add(SanitasiPeer::JAMBAN_DIFABEL, $this->jamban_difabel);\n if ($this->isColumnModified(SanitasiPeer::TIPE_JAMBAN)) $criteria->add(SanitasiPeer::TIPE_JAMBAN, $this->tipe_jamban);\n if ($this->isColumnModified(SanitasiPeer::A_SEDIA_PEMBALUT)) $criteria->add(SanitasiPeer::A_SEDIA_PEMBALUT, $this->a_sedia_pembalut);\n if ($this->isColumnModified(SanitasiPeer::KEGIATAN_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KEGIATAN_CUCI_TANGAN, $this->kegiatan_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::PEMBUANGAN_AIR_LIMBAH)) $criteria->add(SanitasiPeer::PEMBUANGAN_AIR_LIMBAH, $this->pembuangan_air_limbah);\n if ($this->isColumnModified(SanitasiPeer::A_KURAS_SEPTITANK)) $criteria->add(SanitasiPeer::A_KURAS_SEPTITANK, $this->a_kuras_septitank);\n if ($this->isColumnModified(SanitasiPeer::A_MEMILIKI_SOLOKAN)) $criteria->add(SanitasiPeer::A_MEMILIKI_SOLOKAN, $this->a_memiliki_solokan);\n if ($this->isColumnModified(SanitasiPeer::A_TEMPAT_SAMPAH_KELAS)) $criteria->add(SanitasiPeer::A_TEMPAT_SAMPAH_KELAS, $this->a_tempat_sampah_kelas);\n if ($this->isColumnModified(SanitasiPeer::A_TEMPAT_SAMPAH_TUTUP_P)) $criteria->add(SanitasiPeer::A_TEMPAT_SAMPAH_TUTUP_P, $this->a_tempat_sampah_tutup_p);\n if ($this->isColumnModified(SanitasiPeer::A_CERMIN_JAMBAN_P)) $criteria->add(SanitasiPeer::A_CERMIN_JAMBAN_P, $this->a_cermin_jamban_p);\n if ($this->isColumnModified(SanitasiPeer::A_MEMILIKI_TPS)) $criteria->add(SanitasiPeer::A_MEMILIKI_TPS, $this->a_memiliki_tps);\n if ($this->isColumnModified(SanitasiPeer::A_TPS_ANGKUT_RUTIN)) $criteria->add(SanitasiPeer::A_TPS_ANGKUT_RUTIN, $this->a_tps_angkut_rutin);\n if ($this->isColumnModified(SanitasiPeer::A_ANGGARAN_SANITASI)) $criteria->add(SanitasiPeer::A_ANGGARAN_SANITASI, $this->a_anggaran_sanitasi);\n if ($this->isColumnModified(SanitasiPeer::A_MELIBATKAN_SANITASI_SISWA)) $criteria->add(SanitasiPeer::A_MELIBATKAN_SANITASI_SISWA, $this->a_melibatkan_sanitasi_siswa);\n if ($this->isColumnModified(SanitasiPeer::A_KEMITRAAN_SAN_DAERAH)) $criteria->add(SanitasiPeer::A_KEMITRAAN_SAN_DAERAH, $this->a_kemitraan_san_daerah);\n if ($this->isColumnModified(SanitasiPeer::A_KEMITRAAN_SAN_PUSKESMAS)) $criteria->add(SanitasiPeer::A_KEMITRAAN_SAN_PUSKESMAS, $this->a_kemitraan_san_puskesmas);\n if ($this->isColumnModified(SanitasiPeer::A_KEMITRAAN_SAN_SWASTA)) $criteria->add(SanitasiPeer::A_KEMITRAAN_SAN_SWASTA, $this->a_kemitraan_san_swasta);\n if ($this->isColumnModified(SanitasiPeer::A_KEMITRAAN_SAN_NON_PEM)) $criteria->add(SanitasiPeer::A_KEMITRAAN_SAN_NON_PEM, $this->a_kemitraan_san_non_pem);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_GURU_CUCI_TANGAN, $this->kie_guru_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_HAID)) $criteria->add(SanitasiPeer::KIE_GURU_HAID, $this->kie_guru_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_GURU_PERAWATAN_TOILET, $this->kie_guru_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_GURU_KEAMANAN_PANGAN, $this->kie_guru_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_GURU_MINUM_AIR, $this->kie_guru_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_KELAS_CUCI_TANGAN, $this->kie_kelas_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_HAID)) $criteria->add(SanitasiPeer::KIE_KELAS_HAID, $this->kie_kelas_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_KELAS_PERAWATAN_TOILET, $this->kie_kelas_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_KELAS_KEAMANAN_PANGAN, $this->kie_kelas_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_KELAS_MINUM_AIR, $this->kie_kelas_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_TOILET_CUCI_TANGAN, $this->kie_toilet_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_HAID)) $criteria->add(SanitasiPeer::KIE_TOILET_HAID, $this->kie_toilet_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_TOILET_PERAWATAN_TOILET, $this->kie_toilet_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_TOILET_KEAMANAN_PANGAN, $this->kie_toilet_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_TOILET_MINUM_AIR, $this->kie_toilet_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_SELASAR_CUCI_TANGAN, $this->kie_selasar_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_HAID)) $criteria->add(SanitasiPeer::KIE_SELASAR_HAID, $this->kie_selasar_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_SELASAR_PERAWATAN_TOILET, $this->kie_selasar_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_SELASAR_KEAMANAN_PANGAN, $this->kie_selasar_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_SELASAR_MINUM_AIR, $this->kie_selasar_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_UKS_CUCI_TANGAN, $this->kie_uks_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_HAID)) $criteria->add(SanitasiPeer::KIE_UKS_HAID, $this->kie_uks_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_UKS_PERAWATAN_TOILET, $this->kie_uks_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_UKS_KEAMANAN_PANGAN, $this->kie_uks_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_UKS_MINUM_AIR, $this->kie_uks_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_KANTIN_CUCI_TANGAN, $this->kie_kantin_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_HAID)) $criteria->add(SanitasiPeer::KIE_KANTIN_HAID, $this->kie_kantin_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_KANTIN_PERAWATAN_TOILET, $this->kie_kantin_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_KANTIN_KEAMANAN_PANGAN, $this->kie_kantin_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_KANTIN_MINUM_AIR, $this->kie_kantin_minum_air);\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(JadwalPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(JadwalPeer::SEKOLAH_ID)) $criteria->add(JadwalPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(JadwalPeer::SEMESTER_ID)) $criteria->add(JadwalPeer::SEMESTER_ID, $this->semester_id);\n if ($this->isColumnModified(JadwalPeer::ID_RUANG)) $criteria->add(JadwalPeer::ID_RUANG, $this->id_ruang);\n if ($this->isColumnModified(JadwalPeer::HARI)) $criteria->add(JadwalPeer::HARI, $this->hari);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_01)) $criteria->add(JadwalPeer::BEL_KE_01, $this->bel_ke_01);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_02)) $criteria->add(JadwalPeer::BEL_KE_02, $this->bel_ke_02);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_03)) $criteria->add(JadwalPeer::BEL_KE_03, $this->bel_ke_03);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_04)) $criteria->add(JadwalPeer::BEL_KE_04, $this->bel_ke_04);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_05)) $criteria->add(JadwalPeer::BEL_KE_05, $this->bel_ke_05);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_06)) $criteria->add(JadwalPeer::BEL_KE_06, $this->bel_ke_06);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_07)) $criteria->add(JadwalPeer::BEL_KE_07, $this->bel_ke_07);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_08)) $criteria->add(JadwalPeer::BEL_KE_08, $this->bel_ke_08);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_09)) $criteria->add(JadwalPeer::BEL_KE_09, $this->bel_ke_09);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_10)) $criteria->add(JadwalPeer::BEL_KE_10, $this->bel_ke_10);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_11)) $criteria->add(JadwalPeer::BEL_KE_11, $this->bel_ke_11);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_12)) $criteria->add(JadwalPeer::BEL_KE_12, $this->bel_ke_12);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_13)) $criteria->add(JadwalPeer::BEL_KE_13, $this->bel_ke_13);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_14)) $criteria->add(JadwalPeer::BEL_KE_14, $this->bel_ke_14);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_15)) $criteria->add(JadwalPeer::BEL_KE_15, $this->bel_ke_15);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_16)) $criteria->add(JadwalPeer::BEL_KE_16, $this->bel_ke_16);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_17)) $criteria->add(JadwalPeer::BEL_KE_17, $this->bel_ke_17);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_18)) $criteria->add(JadwalPeer::BEL_KE_18, $this->bel_ke_18);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_19)) $criteria->add(JadwalPeer::BEL_KE_19, $this->bel_ke_19);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_20)) $criteria->add(JadwalPeer::BEL_KE_20, $this->bel_ke_20);\n if ($this->isColumnModified(JadwalPeer::CREATE_DATE)) $criteria->add(JadwalPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(JadwalPeer::LAST_UPDATE)) $criteria->add(JadwalPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(JadwalPeer::SOFT_DELETE)) $criteria->add(JadwalPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(JadwalPeer::LAST_SYNC)) $criteria->add(JadwalPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(JadwalPeer::UPDATER_ID)) $criteria->add(JadwalPeer::UPDATER_ID, $this->updater_id);\n\n return $criteria;\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(J019tParticipantesPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_PARTICIPANTE)) $criteria->add(J019tParticipantesPeer::CO_PARTICIPANTE, $this->co_participante);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_USUARIO_ELABORA)) $criteria->add(J019tParticipantesPeer::CO_USUARIO_ELABORA, $this->co_usuario_elabora);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_FORENSE)) $criteria->add(J019tParticipantesPeer::CO_FORENSE, $this->co_forense);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_RECOMENDACIONES)) $criteria->add(J019tParticipantesPeer::CO_INFORME_RECOMENDACIONES, $this->co_informe_recomendaciones);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_INCIDENTE)) $criteria->add(J019tParticipantesPeer::CO_INFORME_INCIDENTE, $this->co_informe_incidente);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_FORENSE)) $criteria->add(J019tParticipantesPeer::CO_INFORME_FORENSE, $this->co_informe_forense);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_DEPURACION)) $criteria->add(J019tParticipantesPeer::CO_INFORME_DEPURACION, $this->co_informe_depuracion);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_MANTENIMIENTO)) $criteria->add(J019tParticipantesPeer::CO_MANTENIMIENTO, $this->co_mantenimiento);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_DOUMENTO_NORMATIVO)) $criteria->add(J019tParticipantesPeer::CO_DOUMENTO_NORMATIVO, $this->co_doumento_normativo);\n\n\t\treturn $criteria;\n\t}", "public function buildCriteria()\n {\n $criteria = new Criteria(BiblioTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(BiblioTableMap::COL_BIBLIO_ID)) {\n $criteria->add(BiblioTableMap::COL_BIBLIO_ID, $this->biblio_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_TITLE)) {\n $criteria->add(BiblioTableMap::COL_TITLE, $this->title);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SOR)) {\n $criteria->add(BiblioTableMap::COL_SOR, $this->sor);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_EDITION)) {\n $criteria->add(BiblioTableMap::COL_EDITION, $this->edition);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_ISBN_ISSN)) {\n $criteria->add(BiblioTableMap::COL_ISBN_ISSN, $this->isbn_issn);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PUBLISHER_ID)) {\n $criteria->add(BiblioTableMap::COL_PUBLISHER_ID, $this->publisher_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PUBLISH_YEAR)) {\n $criteria->add(BiblioTableMap::COL_PUBLISH_YEAR, $this->publish_year);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_COLLATION)) {\n $criteria->add(BiblioTableMap::COL_COLLATION, $this->collation);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SERIES_TITLE)) {\n $criteria->add(BiblioTableMap::COL_SERIES_TITLE, $this->series_title);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_CALL_NUMBER)) {\n $criteria->add(BiblioTableMap::COL_CALL_NUMBER, $this->call_number);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_LANGUAGE_ID)) {\n $criteria->add(BiblioTableMap::COL_LANGUAGE_ID, $this->language_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SOURCE)) {\n $criteria->add(BiblioTableMap::COL_SOURCE, $this->source);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PUBLISH_PLACE_ID)) {\n $criteria->add(BiblioTableMap::COL_PUBLISH_PLACE_ID, $this->publish_place_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_CLASSIFICATION)) {\n $criteria->add(BiblioTableMap::COL_CLASSIFICATION, $this->classification);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_NOTES)) {\n $criteria->add(BiblioTableMap::COL_NOTES, $this->notes);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_IMAGE)) {\n $criteria->add(BiblioTableMap::COL_IMAGE, $this->image);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_FILE_ATT)) {\n $criteria->add(BiblioTableMap::COL_FILE_ATT, $this->file_att);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_OPAC_HIDE)) {\n $criteria->add(BiblioTableMap::COL_OPAC_HIDE, $this->opac_hide);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PROMOTED)) {\n $criteria->add(BiblioTableMap::COL_PROMOTED, $this->promoted);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_LABELS)) {\n $criteria->add(BiblioTableMap::COL_LABELS, $this->labels);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_FREQUENCY_ID)) {\n $criteria->add(BiblioTableMap::COL_FREQUENCY_ID, $this->frequency_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SPEC_DETAIL_INFO)) {\n $criteria->add(BiblioTableMap::COL_SPEC_DETAIL_INFO, $this->spec_detail_info);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_INPUT_DATE)) {\n $criteria->add(BiblioTableMap::COL_INPUT_DATE, $this->input_date);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_LAST_UPDATE)) {\n $criteria->add(BiblioTableMap::COL_LAST_UPDATE, $this->last_update);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_UID)) {\n $criteria->add(BiblioTableMap::COL_UID, $this->uid);\n }\n\n return $criteria;\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(UserPeer::ID)) $criteria->add(UserPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(UserPeer::EMAIL)) $criteria->add(UserPeer::EMAIL, $this->email);\n\t\tif ($this->isColumnModified(UserPeer::DISPLAY_NAME)) $criteria->add(UserPeer::DISPLAY_NAME, $this->display_name);\n\t\tif ($this->isColumnModified(UserPeer::REAL_NAME)) $criteria->add(UserPeer::REAL_NAME, $this->real_name);\n\t\tif ($this->isColumnModified(UserPeer::LOCATION)) $criteria->add(UserPeer::LOCATION, $this->location);\n\t\tif ($this->isColumnModified(UserPeer::WEBPAGE)) $criteria->add(UserPeer::WEBPAGE, $this->webpage);\n\t\tif ($this->isColumnModified(UserPeer::COUNTRY)) $criteria->add(UserPeer::COUNTRY, $this->country);\n\t\tif ($this->isColumnModified(UserPeer::POSTAL_CODE)) $criteria->add(UserPeer::POSTAL_CODE, $this->postal_code);\n\t\tif ($this->isColumnModified(UserPeer::BIRTHDAY)) $criteria->add(UserPeer::BIRTHDAY, $this->birthday);\n\t\tif ($this->isColumnModified(UserPeer::GRAVATAR_ADDRESS)) $criteria->add(UserPeer::GRAVATAR_ADDRESS, $this->gravatar_address);\n\t\tif ($this->isColumnModified(UserPeer::INFO)) $criteria->add(UserPeer::INFO, $this->info);\n\t\tif ($this->isColumnModified(UserPeer::PLATFORM)) $criteria->add(UserPeer::PLATFORM, $this->platform);\n\t\tif ($this->isColumnModified(UserPeer::EXPERIENCE_SCORE)) $criteria->add(UserPeer::EXPERIENCE_SCORE, $this->experience_score);\n\t\tif ($this->isColumnModified(UserPeer::UP_VOTES)) $criteria->add(UserPeer::UP_VOTES, $this->up_votes);\n\t\tif ($this->isColumnModified(UserPeer::DOWN_VOTES)) $criteria->add(UserPeer::DOWN_VOTES, $this->down_votes);\n\t\tif ($this->isColumnModified(UserPeer::IS_GUEST)) $criteria->add(UserPeer::IS_GUEST, $this->is_guest);\n\t\tif ($this->isColumnModified(UserPeer::IS_ADMIN)) $criteria->add(UserPeer::IS_ADMIN, $this->is_admin);\n\t\tif ($this->isColumnModified(UserPeer::TODAY_VOTES)) $criteria->add(UserPeer::TODAY_VOTES, $this->today_votes);\n\t\tif ($this->isColumnModified(UserPeer::EMAIL_ON)) $criteria->add(UserPeer::EMAIL_ON, $this->email_on);\n\t\tif ($this->isColumnModified(UserPeer::LAST_EMAIL)) $criteria->add(UserPeer::LAST_EMAIL, $this->last_email);\n\t\tif ($this->isColumnModified(UserPeer::CREATED_AT)) $criteria->add(UserPeer::CREATED_AT, $this->created_at);\n\t\tif ($this->isColumnModified(UserPeer::UPDATED_AT)) $criteria->add(UserPeer::UPDATED_AT, $this->updated_at);\n\n\t\treturn $criteria;\n\t}", "public function buildCriteria()\n {\n $criteria = new Criteria(AliMemberTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(AliMemberTableMap::COL_ID)) {\n $criteria->add(AliMemberTableMap::COL_ID, $this->id);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MCODE)) {\n $criteria->add(AliMemberTableMap::COL_MCODE, $this->mcode);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_NAME_F)) {\n $criteria->add(AliMemberTableMap::COL_NAME_F, $this->name_f);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_NAME_T)) {\n $criteria->add(AliMemberTableMap::COL_NAME_T, $this->name_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_NAME_E)) {\n $criteria->add(AliMemberTableMap::COL_NAME_E, $this->name_e);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POSID)) {\n $criteria->add(AliMemberTableMap::COL_POSID, $this->posid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MDATE)) {\n $criteria->add(AliMemberTableMap::COL_MDATE, $this->mdate);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BIRTHDAY)) {\n $criteria->add(AliMemberTableMap::COL_BIRTHDAY, $this->birthday);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_NATIONAL)) {\n $criteria->add(AliMemberTableMap::COL_NATIONAL, $this->national);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ID_TAX)) {\n $criteria->add(AliMemberTableMap::COL_ID_TAX, $this->id_tax);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ID_CARD)) {\n $criteria->add(AliMemberTableMap::COL_ID_CARD, $this->id_card);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ID_CARD_IMG)) {\n $criteria->add(AliMemberTableMap::COL_ID_CARD_IMG, $this->id_card_img);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ID_CARD_IMG_DATE)) {\n $criteria->add(AliMemberTableMap::COL_ID_CARD_IMG_DATE, $this->id_card_img_date);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ZIP)) {\n $criteria->add(AliMemberTableMap::COL_ZIP, $this->zip);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_HOME_T)) {\n $criteria->add(AliMemberTableMap::COL_HOME_T, $this->home_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_OFFICE_T)) {\n $criteria->add(AliMemberTableMap::COL_OFFICE_T, $this->office_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MOBILE)) {\n $criteria->add(AliMemberTableMap::COL_MOBILE, $this->mobile);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MCODE_ACC)) {\n $criteria->add(AliMemberTableMap::COL_MCODE_ACC, $this->mcode_acc);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BONUSREC)) {\n $criteria->add(AliMemberTableMap::COL_BONUSREC, $this->bonusrec);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BANKCODE)) {\n $criteria->add(AliMemberTableMap::COL_BANKCODE, $this->bankcode);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BRANCH)) {\n $criteria->add(AliMemberTableMap::COL_BRANCH, $this->branch);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ACC_TYPE)) {\n $criteria->add(AliMemberTableMap::COL_ACC_TYPE, $this->acc_type);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ACC_NO)) {\n $criteria->add(AliMemberTableMap::COL_ACC_NO, $this->acc_no);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ACC_NO_IMG)) {\n $criteria->add(AliMemberTableMap::COL_ACC_NO_IMG, $this->acc_no_img);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ACC_NO_IMG_DATE)) {\n $criteria->add(AliMemberTableMap::COL_ACC_NO_IMG_DATE, $this->acc_no_img_date);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ACC_NAME)) {\n $criteria->add(AliMemberTableMap::COL_ACC_NAME, $this->acc_name);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ACC_PROV)) {\n $criteria->add(AliMemberTableMap::COL_ACC_PROV, $this->acc_prov);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SV_CODE)) {\n $criteria->add(AliMemberTableMap::COL_SV_CODE, $this->sv_code);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SP_CODE)) {\n $criteria->add(AliMemberTableMap::COL_SP_CODE, $this->sp_code);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SP_NAME)) {\n $criteria->add(AliMemberTableMap::COL_SP_NAME, $this->sp_name);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SP_CODE2)) {\n $criteria->add(AliMemberTableMap::COL_SP_CODE2, $this->sp_code2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SP_NAME2)) {\n $criteria->add(AliMemberTableMap::COL_SP_NAME2, $this->sp_name2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_UPA_CODE)) {\n $criteria->add(AliMemberTableMap::COL_UPA_CODE, $this->upa_code);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_UPA_NAME)) {\n $criteria->add(AliMemberTableMap::COL_UPA_NAME, $this->upa_name);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_LR)) {\n $criteria->add(AliMemberTableMap::COL_LR, $this->lr);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_COMPLETE)) {\n $criteria->add(AliMemberTableMap::COL_COMPLETE, $this->complete);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_COMPDATE)) {\n $criteria->add(AliMemberTableMap::COL_COMPDATE, $this->compdate);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MODATE)) {\n $criteria->add(AliMemberTableMap::COL_MODATE, $this->modate);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_USERCODE)) {\n $criteria->add(AliMemberTableMap::COL_USERCODE, $this->usercode);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_NAME_B)) {\n $criteria->add(AliMemberTableMap::COL_NAME_B, $this->name_b);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SEX)) {\n $criteria->add(AliMemberTableMap::COL_SEX, $this->sex);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_AGE)) {\n $criteria->add(AliMemberTableMap::COL_AGE, $this->age);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_OCCUPATION)) {\n $criteria->add(AliMemberTableMap::COL_OCCUPATION, $this->occupation);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS)) {\n $criteria->add(AliMemberTableMap::COL_STATUS, $this->status);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MAR_NAME)) {\n $criteria->add(AliMemberTableMap::COL_MAR_NAME, $this->mar_name);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MAR_AGE)) {\n $criteria->add(AliMemberTableMap::COL_MAR_AGE, $this->mar_age);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_EMAIL)) {\n $criteria->add(AliMemberTableMap::COL_EMAIL, $this->email);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BENEFICIARIES)) {\n $criteria->add(AliMemberTableMap::COL_BENEFICIARIES, $this->beneficiaries);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_RELATION)) {\n $criteria->add(AliMemberTableMap::COL_RELATION, $this->relation);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_DISTRICTID)) {\n $criteria->add(AliMemberTableMap::COL_DISTRICTID, $this->districtid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_AMPHURID)) {\n $criteria->add(AliMemberTableMap::COL_AMPHURID, $this->amphurid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PROVINCEID)) {\n $criteria->add(AliMemberTableMap::COL_PROVINCEID, $this->provinceid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_FAX)) {\n $criteria->add(AliMemberTableMap::COL_FAX, $this->fax);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_INV_CODE)) {\n $criteria->add(AliMemberTableMap::COL_INV_CODE, $this->inv_code);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_UID)) {\n $criteria->add(AliMemberTableMap::COL_UID, $this->uid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_OID)) {\n $criteria->add(AliMemberTableMap::COL_OID, $this->oid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR, $this->pos_cur);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR1)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR1, $this->pos_cur1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR2)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR2, $this->pos_cur2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR3)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR3, $this->pos_cur3);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR4)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR4, $this->pos_cur4);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR_TMP)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR_TMP, $this->pos_cur_tmp);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_RPOS_CUR4)) {\n $criteria->add(AliMemberTableMap::COL_RPOS_CUR4, $this->rpos_cur4);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR3_DATE)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR3_DATE, $this->pos_cur3_date);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MEMDESC)) {\n $criteria->add(AliMemberTableMap::COL_MEMDESC, $this->memdesc);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CMP)) {\n $criteria->add(AliMemberTableMap::COL_CMP, $this->cmp);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CMP2)) {\n $criteria->add(AliMemberTableMap::COL_CMP2, $this->cmp2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CMP3)) {\n $criteria->add(AliMemberTableMap::COL_CMP3, $this->cmp3);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CCMP)) {\n $criteria->add(AliMemberTableMap::COL_CCMP, $this->ccmp);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CCMP2)) {\n $criteria->add(AliMemberTableMap::COL_CCMP2, $this->ccmp2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CCMP3)) {\n $criteria->add(AliMemberTableMap::COL_CCMP3, $this->ccmp3);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ADDRESS)) {\n $criteria->add(AliMemberTableMap::COL_ADDRESS, $this->address);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STREET)) {\n $criteria->add(AliMemberTableMap::COL_STREET, $this->street);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BUILDING)) {\n $criteria->add(AliMemberTableMap::COL_BUILDING, $this->building);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_VILLAGE)) {\n $criteria->add(AliMemberTableMap::COL_VILLAGE, $this->village);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SOI)) {\n $criteria->add(AliMemberTableMap::COL_SOI, $this->soi);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_EWALLET)) {\n $criteria->add(AliMemberTableMap::COL_EWALLET, $this->ewallet);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_EATOSHIP)) {\n $criteria->add(AliMemberTableMap::COL_EATOSHIP, $this->eatoship);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ECOM)) {\n $criteria->add(AliMemberTableMap::COL_ECOM, $this->ecom);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BMDATE1)) {\n $criteria->add(AliMemberTableMap::COL_BMDATE1, $this->bmdate1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BMDATE2)) {\n $criteria->add(AliMemberTableMap::COL_BMDATE2, $this->bmdate2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BMDATE3)) {\n $criteria->add(AliMemberTableMap::COL_BMDATE3, $this->bmdate3);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CBMDATE1)) {\n $criteria->add(AliMemberTableMap::COL_CBMDATE1, $this->cbmdate1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CBMDATE2)) {\n $criteria->add(AliMemberTableMap::COL_CBMDATE2, $this->cbmdate2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CBMDATE3)) {\n $criteria->add(AliMemberTableMap::COL_CBMDATE3, $this->cbmdate3);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ONLINE)) {\n $criteria->add(AliMemberTableMap::COL_ONLINE, $this->online);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CNAME_F)) {\n $criteria->add(AliMemberTableMap::COL_CNAME_F, $this->cname_f);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CNAME_T)) {\n $criteria->add(AliMemberTableMap::COL_CNAME_T, $this->cname_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CNAME_E)) {\n $criteria->add(AliMemberTableMap::COL_CNAME_E, $this->cname_e);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CNAME_B)) {\n $criteria->add(AliMemberTableMap::COL_CNAME_B, $this->cname_b);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CBIRTHDAY)) {\n $criteria->add(AliMemberTableMap::COL_CBIRTHDAY, $this->cbirthday);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CNATIONAL)) {\n $criteria->add(AliMemberTableMap::COL_CNATIONAL, $this->cnational);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CID_TAX)) {\n $criteria->add(AliMemberTableMap::COL_CID_TAX, $this->cid_tax);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CID_CARD)) {\n $criteria->add(AliMemberTableMap::COL_CID_CARD, $this->cid_card);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CADDRESS)) {\n $criteria->add(AliMemberTableMap::COL_CADDRESS, $this->caddress);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CBUILDING)) {\n $criteria->add(AliMemberTableMap::COL_CBUILDING, $this->cbuilding);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CVILLAGE)) {\n $criteria->add(AliMemberTableMap::COL_CVILLAGE, $this->cvillage);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CSTREET)) {\n $criteria->add(AliMemberTableMap::COL_CSTREET, $this->cstreet);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CSOI)) {\n $criteria->add(AliMemberTableMap::COL_CSOI, $this->csoi);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CZIP)) {\n $criteria->add(AliMemberTableMap::COL_CZIP, $this->czip);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CHOME_T)) {\n $criteria->add(AliMemberTableMap::COL_CHOME_T, $this->chome_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_COFFICE_T)) {\n $criteria->add(AliMemberTableMap::COL_COFFICE_T, $this->coffice_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CMOBILE)) {\n $criteria->add(AliMemberTableMap::COL_CMOBILE, $this->cmobile);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CFAX)) {\n $criteria->add(AliMemberTableMap::COL_CFAX, $this->cfax);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CSEX)) {\n $criteria->add(AliMemberTableMap::COL_CSEX, $this->csex);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CEMAIL)) {\n $criteria->add(AliMemberTableMap::COL_CEMAIL, $this->cemail);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CDISTRICTID)) {\n $criteria->add(AliMemberTableMap::COL_CDISTRICTID, $this->cdistrictid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CAMPHURID)) {\n $criteria->add(AliMemberTableMap::COL_CAMPHURID, $this->camphurid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CPROVINCEID)) {\n $criteria->add(AliMemberTableMap::COL_CPROVINCEID, $this->cprovinceid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_INAME_F)) {\n $criteria->add(AliMemberTableMap::COL_INAME_F, $this->iname_f);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_INAME_T)) {\n $criteria->add(AliMemberTableMap::COL_INAME_T, $this->iname_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_IRELATION)) {\n $criteria->add(AliMemberTableMap::COL_IRELATION, $this->irelation);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_IPHONE)) {\n $criteria->add(AliMemberTableMap::COL_IPHONE, $this->iphone);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_IID_CARD)) {\n $criteria->add(AliMemberTableMap::COL_IID_CARD, $this->iid_card);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS_DOC)) {\n $criteria->add(AliMemberTableMap::COL_STATUS_DOC, $this->status_doc);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS_EXPIRE)) {\n $criteria->add(AliMemberTableMap::COL_STATUS_EXPIRE, $this->status_expire);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS_TERMINATE)) {\n $criteria->add(AliMemberTableMap::COL_STATUS_TERMINATE, $this->status_terminate);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_TERMINATE_DATE)) {\n $criteria->add(AliMemberTableMap::COL_TERMINATE_DATE, $this->terminate_date);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS_SUSPEND)) {\n $criteria->add(AliMemberTableMap::COL_STATUS_SUSPEND, $this->status_suspend);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SUSPEND_DATE)) {\n $criteria->add(AliMemberTableMap::COL_SUSPEND_DATE, $this->suspend_date);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS_BLACKLIST)) {\n $criteria->add(AliMemberTableMap::COL_STATUS_BLACKLIST, $this->status_blacklist);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS_ATO)) {\n $criteria->add(AliMemberTableMap::COL_STATUS_ATO, $this->status_ato);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SLETTER)) {\n $criteria->add(AliMemberTableMap::COL_SLETTER, $this->sletter);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SINV_CODE)) {\n $criteria->add(AliMemberTableMap::COL_SINV_CODE, $this->sinv_code);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_TXTOPTION)) {\n $criteria->add(AliMemberTableMap::COL_TXTOPTION, $this->txtoption);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SETREGIS)) {\n $criteria->add(AliMemberTableMap::COL_SETREGIS, $this->setregis);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SLR)) {\n $criteria->add(AliMemberTableMap::COL_SLR, $this->slr);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_LOCATIONBASE)) {\n $criteria->add(AliMemberTableMap::COL_LOCATIONBASE, $this->locationbase);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CID_MOBILE)) {\n $criteria->add(AliMemberTableMap::COL_CID_MOBILE, $this->cid_mobile);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BEWALLET)) {\n $criteria->add(AliMemberTableMap::COL_BEWALLET, $this->bewallet);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BVOUCHER)) {\n $criteria->add(AliMemberTableMap::COL_BVOUCHER, $this->bvoucher);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_VOUCHER)) {\n $criteria->add(AliMemberTableMap::COL_VOUCHER, $this->voucher);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MANAGER)) {\n $criteria->add(AliMemberTableMap::COL_MANAGER, $this->manager);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MTYPE)) {\n $criteria->add(AliMemberTableMap::COL_MTYPE, $this->mtype);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MTYPE1)) {\n $criteria->add(AliMemberTableMap::COL_MTYPE1, $this->mtype1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MTYPE2)) {\n $criteria->add(AliMemberTableMap::COL_MTYPE2, $this->mtype2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MVAT)) {\n $criteria->add(AliMemberTableMap::COL_MVAT, $this->mvat);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_UIDBASE)) {\n $criteria->add(AliMemberTableMap::COL_UIDBASE, $this->uidbase);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_EXP_DATE)) {\n $criteria->add(AliMemberTableMap::COL_EXP_DATE, $this->exp_date);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_HEAD_CODE)) {\n $criteria->add(AliMemberTableMap::COL_HEAD_CODE, $this->head_code);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_L)) {\n $criteria->add(AliMemberTableMap::COL_PV_L, $this->pv_l);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_C)) {\n $criteria->add(AliMemberTableMap::COL_PV_C, $this->pv_c);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_HPV_L)) {\n $criteria->add(AliMemberTableMap::COL_HPV_L, $this->hpv_l);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_HPV_C)) {\n $criteria->add(AliMemberTableMap::COL_HPV_C, $this->hpv_c);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_L_NEXTMONTH)) {\n $criteria->add(AliMemberTableMap::COL_PV_L_NEXTMONTH, $this->pv_l_nextmonth);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_C_NEXTMONTH)) {\n $criteria->add(AliMemberTableMap::COL_PV_C_NEXTMONTH, $this->pv_c_nextmonth);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_L_LASTMONTH1)) {\n $criteria->add(AliMemberTableMap::COL_PV_L_LASTMONTH1, $this->pv_l_lastmonth1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_C_LASTMONTH1)) {\n $criteria->add(AliMemberTableMap::COL_PV_C_LASTMONTH1, $this->pv_c_lastmonth1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_L_LASTMONTH2)) {\n $criteria->add(AliMemberTableMap::COL_PV_L_LASTMONTH2, $this->pv_l_lastmonth2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_C_LASTMONTH2)) {\n $criteria->add(AliMemberTableMap::COL_PV_C_LASTMONTH2, $this->pv_c_lastmonth2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_RCODE_STAR)) {\n $criteria->add(AliMemberTableMap::COL_RCODE_STAR, $this->rcode_star);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BUNIT)) {\n $criteria->add(AliMemberTableMap::COL_BUNIT, $this->bunit);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PROVINCE)) {\n $criteria->add(AliMemberTableMap::COL_PROVINCE, $this->province);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_LINE_ID)) {\n $criteria->add(AliMemberTableMap::COL_LINE_ID, $this->line_id);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_FACEBOOK_NAME)) {\n $criteria->add(AliMemberTableMap::COL_FACEBOOK_NAME, $this->facebook_name);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_TYPE_COM)) {\n $criteria->add(AliMemberTableMap::COL_TYPE_COM, $this->type_com);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_EXP_POS)) {\n $criteria->add(AliMemberTableMap::COL_EXP_POS, $this->exp_pos);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_EXP_POS_60)) {\n $criteria->add(AliMemberTableMap::COL_EXP_POS_60, $this->exp_pos_60);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_TRIP_PRIVATE)) {\n $criteria->add(AliMemberTableMap::COL_TRIP_PRIVATE, $this->trip_private);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_TRIP_TEAM)) {\n $criteria->add(AliMemberTableMap::COL_TRIP_TEAM, $this->trip_team);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MYFILE1)) {\n $criteria->add(AliMemberTableMap::COL_MYFILE1, $this->myfile1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MYFILE2)) {\n $criteria->add(AliMemberTableMap::COL_MYFILE2, $this->myfile2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CLINE_ID)) {\n $criteria->add(AliMemberTableMap::COL_CLINE_ID, $this->cline_id);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CFACEBOOK_NAME)) {\n $criteria->add(AliMemberTableMap::COL_CFACEBOOK_NAME, $this->cfacebook_name);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PROFILE_IMG)) {\n $criteria->add(AliMemberTableMap::COL_PROFILE_IMG, $this->profile_img);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ATOCOM)) {\n $criteria->add(AliMemberTableMap::COL_ATOCOM, $this->atocom);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_HPV)) {\n $criteria->add(AliMemberTableMap::COL_HPV, $this->hpv);\n }\n\n return $criteria;\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(CampaignPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(CampaignPeer::ID)) $criteria->add(CampaignPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(CampaignPeer::SLUG)) $criteria->add(CampaignPeer::SLUG, $this->slug);\n\t\tif ($this->isColumnModified(CampaignPeer::NAME)) $criteria->add(CampaignPeer::NAME, $this->name);\n\t\tif ($this->isColumnModified(CampaignPeer::COMMENTAIRE)) $criteria->add(CampaignPeer::COMMENTAIRE, $this->commentaire);\n\t\tif ($this->isColumnModified(CampaignPeer::SUBJECT)) $criteria->add(CampaignPeer::SUBJECT, $this->subject);\n\t\tif ($this->isColumnModified(CampaignPeer::TEMPLATE_ID)) $criteria->add(CampaignPeer::TEMPLATE_ID, $this->template_id);\n\t\tif ($this->isColumnModified(CampaignPeer::CONTENT)) $criteria->add(CampaignPeer::CONTENT, $this->content);\n\t\tif ($this->isColumnModified(CampaignPeer::PREPARED_CONTENT)) $criteria->add(CampaignPeer::PREPARED_CONTENT, $this->prepared_content);\n\t\tif ($this->isColumnModified(CampaignPeer::TEXT_CONTENT)) $criteria->add(CampaignPeer::TEXT_CONTENT, $this->text_content);\n\t\tif ($this->isColumnModified(CampaignPeer::PREPARED_TEXT_CONTENT)) $criteria->add(CampaignPeer::PREPARED_TEXT_CONTENT, $this->prepared_text_content);\n\t\tif ($this->isColumnModified(CampaignPeer::STATUS)) $criteria->add(CampaignPeer::STATUS, $this->status);\n\t\tif ($this->isColumnModified(CampaignPeer::FROM_NAME)) $criteria->add(CampaignPeer::FROM_NAME, $this->from_name);\n\t\tif ($this->isColumnModified(CampaignPeer::FROM_EMAIL)) $criteria->add(CampaignPeer::FROM_EMAIL, $this->from_email);\n\t\tif ($this->isColumnModified(CampaignPeer::SCHEDULED_AT)) $criteria->add(CampaignPeer::SCHEDULED_AT, $this->scheduled_at);\n\t\tif ($this->isColumnModified(CampaignPeer::SCHEDULE_TYPE)) $criteria->add(CampaignPeer::SCHEDULE_TYPE, $this->schedule_type);\n\t\tif ($this->isColumnModified(CampaignPeer::TEST_TYPE)) $criteria->add(CampaignPeer::TEST_TYPE, $this->test_type);\n\t\tif ($this->isColumnModified(CampaignPeer::TEST_USER_LIST)) $criteria->add(CampaignPeer::TEST_USER_LIST, $this->test_user_list);\n\t\tif ($this->isColumnModified(CampaignPeer::TARGET)) $criteria->add(CampaignPeer::TARGET, $this->target);\n\t\tif ($this->isColumnModified(CampaignPeer::REPLY_TO_EMAIL)) $criteria->add(CampaignPeer::REPLY_TO_EMAIL, $this->reply_to_email);\n\t\tif ($this->isColumnModified(CampaignPeer::RETURN_PATH_EMAIL)) $criteria->add(CampaignPeer::RETURN_PATH_EMAIL, $this->return_path_email);\n\t\tif ($this->isColumnModified(CampaignPeer::RETURN_PATH_SERVER)) $criteria->add(CampaignPeer::RETURN_PATH_SERVER, $this->return_path_server);\n\t\tif ($this->isColumnModified(CampaignPeer::RETURN_PATH_LOGIN)) $criteria->add(CampaignPeer::RETURN_PATH_LOGIN, $this->return_path_login);\n\t\tif ($this->isColumnModified(CampaignPeer::RETURN_PATH_PASSWORD)) $criteria->add(CampaignPeer::RETURN_PATH_PASSWORD, $this->return_path_password);\n\t\tif ($this->isColumnModified(CampaignPeer::IS_ARCHIVED)) $criteria->add(CampaignPeer::IS_ARCHIVED, $this->is_archived);\n\t\tif ($this->isColumnModified(CampaignPeer::GOOGLE_ANALYTICS_ENABLED)) $criteria->add(CampaignPeer::GOOGLE_ANALYTICS_ENABLED, $this->google_analytics_enabled);\n\t\tif ($this->isColumnModified(CampaignPeer::GOOGLE_ANALYTICS_SOURCE)) $criteria->add(CampaignPeer::GOOGLE_ANALYTICS_SOURCE, $this->google_analytics_source);\n\t\tif ($this->isColumnModified(CampaignPeer::GOOGLE_ANALYTICS_MEDIUM)) $criteria->add(CampaignPeer::GOOGLE_ANALYTICS_MEDIUM, $this->google_analytics_medium);\n\t\tif ($this->isColumnModified(CampaignPeer::GOOGLE_ANALYTICS_CAMPAIGN_TYPE)) $criteria->add(CampaignPeer::GOOGLE_ANALYTICS_CAMPAIGN_TYPE, $this->google_analytics_campaign_type);\n\t\tif ($this->isColumnModified(CampaignPeer::GOOGLE_ANALYTICS_CAMPAIGN_CONTENT)) $criteria->add(CampaignPeer::GOOGLE_ANALYTICS_CAMPAIGN_CONTENT, $this->google_analytics_campaign_content);\n\t\tif ($this->isColumnModified(CampaignPeer::GOOGLE_ANALYTICS_CONTENT)) $criteria->add(CampaignPeer::GOOGLE_ANALYTICS_CONTENT, $this->google_analytics_content);\n\t\tif ($this->isColumnModified(CampaignPeer::LITMUS_TEST_ID)) $criteria->add(CampaignPeer::LITMUS_TEST_ID, $this->litmus_test_id);\n\t\tif ($this->isColumnModified(CampaignPeer::WEB_TRACKER_ENABLED)) $criteria->add(CampaignPeer::WEB_TRACKER_ENABLED, $this->web_tracker_enabled);\n\t\tif ($this->isColumnModified(CampaignPeer::CREATED_AT)) $criteria->add(CampaignPeer::CREATED_AT, $this->created_at);\n\t\tif ($this->isColumnModified(CampaignPeer::CREATED_BY)) $criteria->add(CampaignPeer::CREATED_BY, $this->created_by);\n\t\tif ($this->isColumnModified(CampaignPeer::UPDATED_AT)) $criteria->add(CampaignPeer::UPDATED_AT, $this->updated_at);\n\n\t\treturn $criteria;\n\t}", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(UserPeer::ID)) $criteria->add(UserPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(UserPeer::USERNAME)) $criteria->add(UserPeer::USERNAME, $this->username);\n\t\tif ($this->isColumnModified(UserPeer::EMAIL)) $criteria->add(UserPeer::EMAIL, $this->email);\n\t\tif ($this->isColumnModified(UserPeer::PASSWORD)) $criteria->add(UserPeer::PASSWORD, $this->password);\n\t\tif ($this->isColumnModified(UserPeer::POINTS)) $criteria->add(UserPeer::POINTS, $this->points);\n\t\tif ($this->isColumnModified(UserPeer::CREATED_AT)) $criteria->add(UserPeer::CREATED_AT, $this->created_at);\n\t\tif ($this->isColumnModified(UserPeer::LAST_ACTIVITY_AT)) $criteria->add(UserPeer::LAST_ACTIVITY_AT, $this->last_activity_at);\n\t\tif ($this->isColumnModified(UserPeer::TYPE)) $criteria->add(UserPeer::TYPE, $this->type);\n\t\tif ($this->isColumnModified(UserPeer::HIDDEN)) $criteria->add(UserPeer::HIDDEN, $this->hidden);\n\t\tif ($this->isColumnModified(UserPeer::NAME)) $criteria->add(UserPeer::NAME, $this->name);\n\t\tif ($this->isColumnModified(UserPeer::GENDER)) $criteria->add(UserPeer::GENDER, $this->gender);\n\t\tif ($this->isColumnModified(UserPeer::HOMETOWN)) $criteria->add(UserPeer::HOMETOWN, $this->hometown);\n\t\tif ($this->isColumnModified(UserPeer::HOME_PHONE)) $criteria->add(UserPeer::HOME_PHONE, $this->home_phone);\n\t\tif ($this->isColumnModified(UserPeer::MOBILE_PHONE)) $criteria->add(UserPeer::MOBILE_PHONE, $this->mobile_phone);\n\t\tif ($this->isColumnModified(UserPeer::BIRTHDATE)) $criteria->add(UserPeer::BIRTHDATE, $this->birthdate);\n\t\tif ($this->isColumnModified(UserPeer::ADDRESS)) $criteria->add(UserPeer::ADDRESS, $this->address);\n\t\tif ($this->isColumnModified(UserPeer::RELATIONSHIP_STATUS)) $criteria->add(UserPeer::RELATIONSHIP_STATUS, $this->relationship_status);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_EMAIL)) $criteria->add(UserPeer::SHOW_EMAIL, $this->show_email);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_GENDER)) $criteria->add(UserPeer::SHOW_GENDER, $this->show_gender);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_HOMETOWN)) $criteria->add(UserPeer::SHOW_HOMETOWN, $this->show_hometown);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_HOME_PHONE)) $criteria->add(UserPeer::SHOW_HOME_PHONE, $this->show_home_phone);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_MOBILE_PHONE)) $criteria->add(UserPeer::SHOW_MOBILE_PHONE, $this->show_mobile_phone);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_BIRTHDATE)) $criteria->add(UserPeer::SHOW_BIRTHDATE, $this->show_birthdate);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_ADDRESS)) $criteria->add(UserPeer::SHOW_ADDRESS, $this->show_address);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_RELATIONSHIP_STATUS)) $criteria->add(UserPeer::SHOW_RELATIONSHIP_STATUS, $this->show_relationship_status);\n\t\tif ($this->isColumnModified(UserPeer::PASSWORD_RECOVER_KEY)) $criteria->add(UserPeer::PASSWORD_RECOVER_KEY, $this->password_recover_key);\n\t\tif ($this->isColumnModified(UserPeer::COOKIE_KEY)) $criteria->add(UserPeer::COOKIE_KEY, $this->cookie_key);\n\t\tif ($this->isColumnModified(UserPeer::CREDIT)) $criteria->add(UserPeer::CREDIT, $this->credit);\n\t\tif ($this->isColumnModified(UserPeer::INVISIBLE)) $criteria->add(UserPeer::INVISIBLE, $this->invisible);\n\t\tif ($this->isColumnModified(UserPeer::NOTIFICATION)) $criteria->add(UserPeer::NOTIFICATION, $this->notification);\n\t\tif ($this->isColumnModified(UserPeer::PHONE_NUMBER)) $criteria->add(UserPeer::PHONE_NUMBER, $this->phone_number);\n\t\tif ($this->isColumnModified(UserPeer::LOGIN)) $criteria->add(UserPeer::LOGIN, $this->login);\n\t\tif ($this->isColumnModified(UserPeer::CREDIT_CARD)) $criteria->add(UserPeer::CREDIT_CARD, $this->credit_card);\n\t\tif ($this->isColumnModified(UserPeer::CREDIT_CARD_TOKEN)) $criteria->add(UserPeer::CREDIT_CARD_TOKEN, $this->credit_card_token);\n\t\tif ($this->isColumnModified(UserPeer::FIRST_CHARGE)) $criteria->add(UserPeer::FIRST_CHARGE, $this->first_charge);\n\t\tif ($this->isColumnModified(UserPeer::WHERE_FIND_US)) $criteria->add(UserPeer::WHERE_FIND_US, $this->where_find_us);\n\n\t\treturn $criteria;\n\t}", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(MmPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(MmPeer::ID)) $criteria->add(MmPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(MmPeer::SUBSERIAL)) $criteria->add(MmPeer::SUBSERIAL, $this->subserial);\n\t\tif ($this->isColumnModified(MmPeer::ANNOUNCE)) $criteria->add(MmPeer::ANNOUNCE, $this->announce);\n\t\tif ($this->isColumnModified(MmPeer::MAIL)) $criteria->add(MmPeer::MAIL, $this->mail);\n\t\tif ($this->isColumnModified(MmPeer::SERIAL_ID)) $criteria->add(MmPeer::SERIAL_ID, $this->serial_id);\n\t\tif ($this->isColumnModified(MmPeer::RANK)) $criteria->add(MmPeer::RANK, $this->rank);\n\t\tif ($this->isColumnModified(MmPeer::PRECINCT_ID)) $criteria->add(MmPeer::PRECINCT_ID, $this->precinct_id);\n\t\tif ($this->isColumnModified(MmPeer::GENRE_ID)) $criteria->add(MmPeer::GENRE_ID, $this->genre_id);\n\t\tif ($this->isColumnModified(MmPeer::BROADCAST_ID)) $criteria->add(MmPeer::BROADCAST_ID, $this->broadcast_id);\n\t\tif ($this->isColumnModified(MmPeer::COPYRIGHT)) $criteria->add(MmPeer::COPYRIGHT, $this->copyright);\n\t\tif ($this->isColumnModified(MmPeer::STATUS_ID)) $criteria->add(MmPeer::STATUS_ID, $this->status_id);\n\t\tif ($this->isColumnModified(MmPeer::RECORDDATE)) $criteria->add(MmPeer::RECORDDATE, $this->recorddate);\n\t\tif ($this->isColumnModified(MmPeer::PUBLICDATE)) $criteria->add(MmPeer::PUBLICDATE, $this->publicdate);\n\t\tif ($this->isColumnModified(MmPeer::EDITORIAL1)) $criteria->add(MmPeer::EDITORIAL1, $this->editorial1);\n\t\tif ($this->isColumnModified(MmPeer::EDITORIAL2)) $criteria->add(MmPeer::EDITORIAL2, $this->editorial2);\n\t\tif ($this->isColumnModified(MmPeer::EDITORIAL3)) $criteria->add(MmPeer::EDITORIAL3, $this->editorial3);\n\t\tif ($this->isColumnModified(MmPeer::AUDIO)) $criteria->add(MmPeer::AUDIO, $this->audio);\n\t\tif ($this->isColumnModified(MmPeer::DURATION)) $criteria->add(MmPeer::DURATION, $this->duration);\n\t\tif ($this->isColumnModified(MmPeer::NUM_VIEW)) $criteria->add(MmPeer::NUM_VIEW, $this->num_view);\n\t\tif ($this->isColumnModified(MmPeer::COMMENTS)) $criteria->add(MmPeer::COMMENTS, $this->comments);\n\n\t\treturn $criteria;\n\t}", "public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(MontacargasPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(MontacargasPeer::IDMONTACARGAS)) $criteria->add(MontacargasPeer::IDMONTACARGAS, $this->idmontacargas);\n if ($this->isColumnModified(MontacargasPeer::IDSUCURSAL)) $criteria->add(MontacargasPeer::IDSUCURSAL, $this->idsucursal);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_MODELO)) $criteria->add(MontacargasPeer::MONTACARGAS_MODELO, $this->montacargas_modelo);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_MARCA)) $criteria->add(MontacargasPeer::MONTACARGAS_MARCA, $this->montacargas_marca);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_C)) $criteria->add(MontacargasPeer::MONTACARGAS_C, $this->montacargas_c);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_K)) $criteria->add(MontacargasPeer::MONTACARGAS_K, $this->montacargas_k);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_P)) $criteria->add(MontacargasPeer::MONTACARGAS_P, $this->montacargas_p);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_T)) $criteria->add(MontacargasPeer::MONTACARGAS_T, $this->montacargas_t);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_E)) $criteria->add(MontacargasPeer::MONTACARGAS_E, $this->montacargas_e);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_VOLTS)) $criteria->add(MontacargasPeer::MONTACARGAS_VOLTS, $this->montacargas_volts);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_AMPERAJE)) $criteria->add(MontacargasPeer::MONTACARGAS_AMPERAJE, $this->montacargas_amperaje);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_NOMBRE)) $criteria->add(MontacargasPeer::MONTACARGAS_NOMBRE, $this->montacargas_nombre);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_NUMSERIE)) $criteria->add(MontacargasPeer::MONTACARGAS_NUMSERIE, $this->montacargas_numserie);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_COMPRADOR)) $criteria->add(MontacargasPeer::MONTACARGAS_COMPRADOR, $this->montacargas_comprador);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_CICLOSMANT)) $criteria->add(MontacargasPeer::MONTACARGAS_CICLOSMANT, $this->montacargas_ciclosmant);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_CICLOSINICIALES)) $criteria->add(MontacargasPeer::MONTACARGAS_CICLOSINICIALES, $this->montacargas_ciclosiniciales);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_BAJA)) $criteria->add(MontacargasPeer::MONTACARGAS_BAJA, $this->montacargas_baja);\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(BangunanPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(BangunanPeer::ID_BANGUNAN)) $criteria->add(BangunanPeer::ID_BANGUNAN, $this->id_bangunan);\n if ($this->isColumnModified(BangunanPeer::JENIS_PRASARANA_ID)) $criteria->add(BangunanPeer::JENIS_PRASARANA_ID, $this->jenis_prasarana_id);\n if ($this->isColumnModified(BangunanPeer::SEKOLAH_ID)) $criteria->add(BangunanPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(BangunanPeer::ID_TANAH)) $criteria->add(BangunanPeer::ID_TANAH, $this->id_tanah);\n if ($this->isColumnModified(BangunanPeer::PTK_ID)) $criteria->add(BangunanPeer::PTK_ID, $this->ptk_id);\n if ($this->isColumnModified(BangunanPeer::ID_HAPUS_BUKU)) $criteria->add(BangunanPeer::ID_HAPUS_BUKU, $this->id_hapus_buku);\n if ($this->isColumnModified(BangunanPeer::KEPEMILIKAN_SARPRAS_ID)) $criteria->add(BangunanPeer::KEPEMILIKAN_SARPRAS_ID, $this->kepemilikan_sarpras_id);\n if ($this->isColumnModified(BangunanPeer::KD_KL)) $criteria->add(BangunanPeer::KD_KL, $this->kd_kl);\n if ($this->isColumnModified(BangunanPeer::KD_SATKER)) $criteria->add(BangunanPeer::KD_SATKER, $this->kd_satker);\n if ($this->isColumnModified(BangunanPeer::KD_BRG)) $criteria->add(BangunanPeer::KD_BRG, $this->kd_brg);\n if ($this->isColumnModified(BangunanPeer::NUP)) $criteria->add(BangunanPeer::NUP, $this->nup);\n if ($this->isColumnModified(BangunanPeer::KODE_ESELON1)) $criteria->add(BangunanPeer::KODE_ESELON1, $this->kode_eselon1);\n if ($this->isColumnModified(BangunanPeer::NAMA_ESELON1)) $criteria->add(BangunanPeer::NAMA_ESELON1, $this->nama_eselon1);\n if ($this->isColumnModified(BangunanPeer::KODE_SUB_SATKER)) $criteria->add(BangunanPeer::KODE_SUB_SATKER, $this->kode_sub_satker);\n if ($this->isColumnModified(BangunanPeer::NAMA_SUB_SATKER)) $criteria->add(BangunanPeer::NAMA_SUB_SATKER, $this->nama_sub_satker);\n if ($this->isColumnModified(BangunanPeer::NAMA)) $criteria->add(BangunanPeer::NAMA, $this->nama);\n if ($this->isColumnModified(BangunanPeer::PANJANG)) $criteria->add(BangunanPeer::PANJANG, $this->panjang);\n if ($this->isColumnModified(BangunanPeer::LEBAR)) $criteria->add(BangunanPeer::LEBAR, $this->lebar);\n if ($this->isColumnModified(BangunanPeer::NILAI_PEROLEHAN_ASET)) $criteria->add(BangunanPeer::NILAI_PEROLEHAN_ASET, $this->nilai_perolehan_aset);\n if ($this->isColumnModified(BangunanPeer::JML_LANTAI)) $criteria->add(BangunanPeer::JML_LANTAI, $this->jml_lantai);\n if ($this->isColumnModified(BangunanPeer::THN_DIBANGUN)) $criteria->add(BangunanPeer::THN_DIBANGUN, $this->thn_dibangun);\n if ($this->isColumnModified(BangunanPeer::LUAS_TAPAK_BANGUNAN)) $criteria->add(BangunanPeer::LUAS_TAPAK_BANGUNAN, $this->luas_tapak_bangunan);\n if ($this->isColumnModified(BangunanPeer::VOL_PONDASI_M3)) $criteria->add(BangunanPeer::VOL_PONDASI_M3, $this->vol_pondasi_m3);\n if ($this->isColumnModified(BangunanPeer::VOL_SLOOP_KOLOM_BALOK_M3)) $criteria->add(BangunanPeer::VOL_SLOOP_KOLOM_BALOK_M3, $this->vol_sloop_kolom_balok_m3);\n if ($this->isColumnModified(BangunanPeer::PANJ_KUDAKUDA_M)) $criteria->add(BangunanPeer::PANJ_KUDAKUDA_M, $this->panj_kudakuda_m);\n if ($this->isColumnModified(BangunanPeer::VOL_KUDAKUDA_M3)) $criteria->add(BangunanPeer::VOL_KUDAKUDA_M3, $this->vol_kudakuda_m3);\n if ($this->isColumnModified(BangunanPeer::PANJ_KASO_M)) $criteria->add(BangunanPeer::PANJ_KASO_M, $this->panj_kaso_m);\n if ($this->isColumnModified(BangunanPeer::PANJ_RENG_M)) $criteria->add(BangunanPeer::PANJ_RENG_M, $this->panj_reng_m);\n if ($this->isColumnModified(BangunanPeer::LUAS_TUTUP_ATAP_M2)) $criteria->add(BangunanPeer::LUAS_TUTUP_ATAP_M2, $this->luas_tutup_atap_m2);\n if ($this->isColumnModified(BangunanPeer::KD_SATKER_TANAH)) $criteria->add(BangunanPeer::KD_SATKER_TANAH, $this->kd_satker_tanah);\n if ($this->isColumnModified(BangunanPeer::NM_SATKER_TANAH)) $criteria->add(BangunanPeer::NM_SATKER_TANAH, $this->nm_satker_tanah);\n if ($this->isColumnModified(BangunanPeer::KD_BRG_TANAH)) $criteria->add(BangunanPeer::KD_BRG_TANAH, $this->kd_brg_tanah);\n if ($this->isColumnModified(BangunanPeer::NM_BRG_TANAH)) $criteria->add(BangunanPeer::NM_BRG_TANAH, $this->nm_brg_tanah);\n if ($this->isColumnModified(BangunanPeer::NUP_BRG_TANAH)) $criteria->add(BangunanPeer::NUP_BRG_TANAH, $this->nup_brg_tanah);\n if ($this->isColumnModified(BangunanPeer::TGL_SK_PEMAKAI)) $criteria->add(BangunanPeer::TGL_SK_PEMAKAI, $this->tgl_sk_pemakai);\n if ($this->isColumnModified(BangunanPeer::TGL_HAPUS_BUKU)) $criteria->add(BangunanPeer::TGL_HAPUS_BUKU, $this->tgl_hapus_buku);\n if ($this->isColumnModified(BangunanPeer::KET_BANGUNAN)) $criteria->add(BangunanPeer::KET_BANGUNAN, $this->ket_bangunan);\n if ($this->isColumnModified(BangunanPeer::ASAL_DATA)) $criteria->add(BangunanPeer::ASAL_DATA, $this->asal_data);\n if ($this->isColumnModified(BangunanPeer::CREATE_DATE)) $criteria->add(BangunanPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(BangunanPeer::LAST_UPDATE)) $criteria->add(BangunanPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(BangunanPeer::SOFT_DELETE)) $criteria->add(BangunanPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(BangunanPeer::LAST_SYNC)) $criteria->add(BangunanPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(BangunanPeer::UPDATER_ID)) $criteria->add(BangunanPeer::UPDATER_ID, $this->updater_id);\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(IssuesTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(IssuesTableMap::COL_ID)) {\n $criteria->add(IssuesTableMap::COL_ID, $this->id);\n }\n if ($this->isColumnModified(IssuesTableMap::COL__NAME)) {\n $criteria->add(IssuesTableMap::COL__NAME, $this->_name);\n }\n if ($this->isColumnModified(IssuesTableMap::COL__OPENDATE)) {\n $criteria->add(IssuesTableMap::COL__OPENDATE, $this->_opendate);\n }\n if ($this->isColumnModified(IssuesTableMap::COL__CLOSEDATE)) {\n $criteria->add(IssuesTableMap::COL__CLOSEDATE, $this->_closedate);\n }\n if ($this->isColumnModified(IssuesTableMap::COL__STATUS)) {\n $criteria->add(IssuesTableMap::COL__STATUS, $this->_status);\n }\n if ($this->isColumnModified(IssuesTableMap::COL__INFOTEXT)) {\n $criteria->add(IssuesTableMap::COL__INFOTEXT, $this->_infotext);\n }\n if ($this->isColumnModified(IssuesTableMap::COL__FORBOOK)) {\n $criteria->add(IssuesTableMap::COL__FORBOOK, $this->_forbook);\n }\n if ($this->isColumnModified(IssuesTableMap::COL___USER__)) {\n $criteria->add(IssuesTableMap::COL___USER__, $this->__user__);\n }\n if ($this->isColumnModified(IssuesTableMap::COL___CONFIG__)) {\n $criteria->add(IssuesTableMap::COL___CONFIG__, $this->__config__);\n }\n if ($this->isColumnModified(IssuesTableMap::COL___SPLIT__)) {\n $criteria->add(IssuesTableMap::COL___SPLIT__, $this->__split__);\n }\n if ($this->isColumnModified(IssuesTableMap::COL___PARENTNODE__)) {\n $criteria->add(IssuesTableMap::COL___PARENTNODE__, $this->__parentnode__);\n }\n if ($this->isColumnModified(IssuesTableMap::COL___SORT__)) {\n $criteria->add(IssuesTableMap::COL___SORT__, $this->__sort__);\n }\n\n return $criteria;\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(UsuarioPeer::ID)) $criteria->add(UsuarioPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(UsuarioPeer::PERFIL_ID)) $criteria->add(UsuarioPeer::PERFIL_ID, $this->perfil_id);\n\t\tif ($this->isColumnModified(UsuarioPeer::ENDERECO_ID)) $criteria->add(UsuarioPeer::ENDERECO_ID, $this->endereco_id);\n\t\tif ($this->isColumnModified(UsuarioPeer::CARGO_ID)) $criteria->add(UsuarioPeer::CARGO_ID, $this->cargo_id);\n\t\tif ($this->isColumnModified(UsuarioPeer::DEPARTAMENTO_ID)) $criteria->add(UsuarioPeer::DEPARTAMENTO_ID, $this->departamento_id);\n\t\tif ($this->isColumnModified(UsuarioPeer::MATRICULA)) $criteria->add(UsuarioPeer::MATRICULA, $this->matricula);\n\t\tif ($this->isColumnModified(UsuarioPeer::NOME)) $criteria->add(UsuarioPeer::NOME, $this->nome);\n\t\tif ($this->isColumnModified(UsuarioPeer::EMAIL)) $criteria->add(UsuarioPeer::EMAIL, $this->email);\n\t\tif ($this->isColumnModified(UsuarioPeer::DNI)) $criteria->add(UsuarioPeer::DNI, $this->dni);\n\t\tif ($this->isColumnModified(UsuarioPeer::DATA_NASCIMENTO)) $criteria->add(UsuarioPeer::DATA_NASCIMENTO, $this->data_nascimento);\n\t\tif ($this->isColumnModified(UsuarioPeer::DATA_CONTRATACAO)) $criteria->add(UsuarioPeer::DATA_CONTRATACAO, $this->data_contratacao);\n\t\tif ($this->isColumnModified(UsuarioPeer::CELULAR)) $criteria->add(UsuarioPeer::CELULAR, $this->celular);\n\t\tif ($this->isColumnModified(UsuarioPeer::TELEFONE)) $criteria->add(UsuarioPeer::TELEFONE, $this->telefone);\n\t\tif ($this->isColumnModified(UsuarioPeer::TOKEN)) $criteria->add(UsuarioPeer::TOKEN, $this->token);\n\t\tif ($this->isColumnModified(UsuarioPeer::NOME_USUARIO)) $criteria->add(UsuarioPeer::NOME_USUARIO, $this->nome_usuario);\n\t\tif ($this->isColumnModified(UsuarioPeer::SENHA)) $criteria->add(UsuarioPeer::SENHA, $this->senha);\n\t\tif ($this->isColumnModified(UsuarioPeer::TOKEN_SENHA)) $criteria->add(UsuarioPeer::TOKEN_SENHA, $this->token_senha);\n\t\tif ($this->isColumnModified(UsuarioPeer::TOKEN_FIREBASE)) $criteria->add(UsuarioPeer::TOKEN_FIREBASE, $this->token_firebase);\n\t\tif ($this->isColumnModified(UsuarioPeer::DATA_RESCISAO)) $criteria->add(UsuarioPeer::DATA_RESCISAO, $this->data_rescisao);\n\t\tif ($this->isColumnModified(UsuarioPeer::ATIVO)) $criteria->add(UsuarioPeer::ATIVO, $this->ativo);\n\t\tif ($this->isColumnModified(UsuarioPeer::TIPO_ACESSO)) $criteria->add(UsuarioPeer::TIPO_ACESSO, $this->tipo_acesso);\n\t\tif ($this->isColumnModified(UsuarioPeer::ESTADO_CIVIL)) $criteria->add(UsuarioPeer::ESTADO_CIVIL, $this->estado_civil);\n\t\tif ($this->isColumnModified(UsuarioPeer::NIVEL_ACESSO)) $criteria->add(UsuarioPeer::NIVEL_ACESSO, $this->nivel_acesso);\n\t\tif ($this->isColumnModified(UsuarioPeer::USUARIO_VALIDADO)) $criteria->add(UsuarioPeer::USUARIO_VALIDADO, $this->usuario_validado);\n\t\tif ($this->isColumnModified(UsuarioPeer::SEXO)) $criteria->add(UsuarioPeer::SEXO, $this->sexo);\n\t\tif ($this->isColumnModified(UsuarioPeer::DATA_CADASTRO)) $criteria->add(UsuarioPeer::DATA_CADASTRO, $this->data_cadastro);\n\n\t\treturn $criteria;\n\t}", "public function buildCriteria()\n {\n $criteria = new Criteria(PhoneBookTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADTYPE)) {\n $criteria->add(PhoneBookTableMap::COL_PHADTYPE, $this->phadtype);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADID)) {\n $criteria->add(PhoneBookTableMap::COL_PHADID, $this->phadid);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADSUBID)) {\n $criteria->add(PhoneBookTableMap::COL_PHADSUBID, $this->phadsubid);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADSUBIDSEQ)) {\n $criteria->add(PhoneBookTableMap::COL_PHADSUBIDSEQ, $this->phadsubidseq);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADCONT)) {\n $criteria->add(PhoneBookTableMap::COL_PHADCONT, $this->phadcont);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADINTL)) {\n $criteria->add(PhoneBookTableMap::COL_PHADINTL, $this->phadintl);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADTELENBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADTELENBR, $this->phadtelenbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADTELEEXT)) {\n $criteria->add(PhoneBookTableMap::COL_PHADTELEEXT, $this->phadteleext);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADINTLNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADINTLNBR, $this->phadintlnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADINTLEXT)) {\n $criteria->add(PhoneBookTableMap::COL_PHADINTLEXT, $this->phadintlext);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADFAXNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADFAXNBR, $this->phadfaxnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADIFAXNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADIFAXNBR, $this->phadifaxnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADCELLNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADCELLNBR, $this->phadcellnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADICELLNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADICELLNBR, $this->phadicellnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADHOMENBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADHOMENBR, $this->phadhomenbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADIHOMENBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADIHOMENBR, $this->phadihomenbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADWEBADDR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADWEBADDR, $this->phadwebaddr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADEMAILADDR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADEMAILADDR, $this->phademailaddr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADNAME)) {\n $criteria->add(PhoneBookTableMap::COL_PHADNAME, $this->phadname);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADCONTNAME)) {\n $criteria->add(PhoneBookTableMap::COL_PHADCONTNAME, $this->phadcontname);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_DATEUPDTD)) {\n $criteria->add(PhoneBookTableMap::COL_DATEUPDTD, $this->dateupdtd);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_TIMEUPDTD)) {\n $criteria->add(PhoneBookTableMap::COL_TIMEUPDTD, $this->timeupdtd);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_DUMMY)) {\n $criteria->add(PhoneBookTableMap::COL_DUMMY, $this->dummy);\n }\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(SekolahPaudPeer::SEKOLAH_ID)) $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(SekolahPaudPeer::KATEGORI_TK_ID)) $criteria->add(SekolahPaudPeer::KATEGORI_TK_ID, $this->kategori_tk_id);\n if ($this->isColumnModified(SekolahPaudPeer::KLASIFIKASI_LEMBAGA_ID)) $criteria->add(SekolahPaudPeer::KLASIFIKASI_LEMBAGA_ID, $this->klasifikasi_lembaga_id);\n if ($this->isColumnModified(SekolahPaudPeer::SUMBER_DANA_SEKOLAH_ID)) $criteria->add(SekolahPaudPeer::SUMBER_DANA_SEKOLAH_ID, $this->sumber_dana_sekolah_id);\n if ($this->isColumnModified(SekolahPaudPeer::FASILITAS_LAYANAN_ID)) $criteria->add(SekolahPaudPeer::FASILITAS_LAYANAN_ID, $this->fasilitas_layanan_id);\n if ($this->isColumnModified(SekolahPaudPeer::JADWAL_PMTAS)) $criteria->add(SekolahPaudPeer::JADWAL_PMTAS, $this->jadwal_pmtas);\n if ($this->isColumnModified(SekolahPaudPeer::LEMBAGA_PENGANGKAT_ID)) $criteria->add(SekolahPaudPeer::LEMBAGA_PENGANGKAT_ID, $this->lembaga_pengangkat_id);\n if ($this->isColumnModified(SekolahPaudPeer::JADWAL_DDTK)) $criteria->add(SekolahPaudPeer::JADWAL_DDTK, $this->jadwal_ddtk);\n if ($this->isColumnModified(SekolahPaudPeer::FREQ_PARENTING)) $criteria->add(SekolahPaudPeer::FREQ_PARENTING, $this->freq_parenting);\n if ($this->isColumnModified(SekolahPaudPeer::BENTUK_LEMBAGA_ID)) $criteria->add(SekolahPaudPeer::BENTUK_LEMBAGA_ID, $this->bentuk_lembaga_id);\n if ($this->isColumnModified(SekolahPaudPeer::JADWAL_KESEHATAN)) $criteria->add(SekolahPaudPeer::JADWAL_KESEHATAN, $this->jadwal_kesehatan);\n if ($this->isColumnModified(SekolahPaudPeer::IZIN_PAUD)) $criteria->add(SekolahPaudPeer::IZIN_PAUD, $this->izin_paud);\n if ($this->isColumnModified(SekolahPaudPeer::PENCATATAN_DDTK)) $criteria->add(SekolahPaudPeer::PENCATATAN_DDTK, $this->pencatatan_ddtk);\n if ($this->isColumnModified(SekolahPaudPeer::RUJUKAN_DDTK)) $criteria->add(SekolahPaudPeer::RUJUKAN_DDTK, $this->rujukan_ddtk);\n if ($this->isColumnModified(SekolahPaudPeer::PELAKSANAAN_PARENTING)) $criteria->add(SekolahPaudPeer::PELAKSANAAN_PARENTING, $this->pelaksanaan_parenting);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KPO)) $criteria->add(SekolahPaudPeer::PARENTING_KPO, $this->parenting_kpo);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KELAS)) $criteria->add(SekolahPaudPeer::PARENTING_KELAS, $this->parenting_kelas);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KEGIATAN)) $criteria->add(SekolahPaudPeer::PARENTING_KEGIATAN, $this->parenting_kegiatan);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KONSULTASI)) $criteria->add(SekolahPaudPeer::PARENTING_KONSULTASI, $this->parenting_konsultasi);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KUNJUNGAN)) $criteria->add(SekolahPaudPeer::PARENTING_KUNJUNGAN, $this->parenting_kunjungan);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_LAINNYA)) $criteria->add(SekolahPaudPeer::PARENTING_LAINNYA, $this->parenting_lainnya);\n if ($this->isColumnModified(SekolahPaudPeer::NILK)) $criteria->add(SekolahPaudPeer::NILK, $this->nilk);\n if ($this->isColumnModified(SekolahPaudPeer::NILM)) $criteria->add(SekolahPaudPeer::NILM, $this->nilm);\n if ($this->isColumnModified(SekolahPaudPeer::NO_PENETAPAN_PNF)) $criteria->add(SekolahPaudPeer::NO_PENETAPAN_PNF, $this->no_penetapan_pnf);\n if ($this->isColumnModified(SekolahPaudPeer::TANGGAL_PENETAPAN_PNF)) $criteria->add(SekolahPaudPeer::TANGGAL_PENETAPAN_PNF, $this->tanggal_penetapan_pnf);\n if ($this->isColumnModified(SekolahPaudPeer::CREATE_DATE)) $criteria->add(SekolahPaudPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(SekolahPaudPeer::LAST_UPDATE)) $criteria->add(SekolahPaudPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(SekolahPaudPeer::SOFT_DELETE)) $criteria->add(SekolahPaudPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(SekolahPaudPeer::LAST_SYNC)) $criteria->add(SekolahPaudPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(SekolahPaudPeer::UPDATER_ID)) $criteria->add(SekolahPaudPeer::UPDATER_ID, $this->updater_id);\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(KluBillTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(KluBillTableMap::COL_ID)) {\n $criteria->add(KluBillTableMap::COL_ID, $this->id);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_REF_NO)) {\n $criteria->add(KluBillTableMap::COL_REF_NO, $this->ref_no);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_UNIQUEKEYID)) {\n $criteria->add(KluBillTableMap::COL_UNIQUEKEYID, $this->uniquekeyid);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_CUSTOMER_ID)) {\n $criteria->add(KluBillTableMap::COL_CUSTOMER_ID, $this->customer_id);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_ACCOUNT_NO)) {\n $criteria->add(KluBillTableMap::COL_ACCOUNT_NO, $this->account_no);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_SERVICE_TYPE)) {\n $criteria->add(KluBillTableMap::COL_SERVICE_TYPE, $this->service_type);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_SERVICE_DISTRICT_ID)) {\n $criteria->add(KluBillTableMap::COL_SERVICE_DISTRICT_ID, $this->service_district_id);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BILLING_CYCLE)) {\n $criteria->add(KluBillTableMap::COL_BILLING_CYCLE, $this->billing_cycle);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_DUE_DATE)) {\n $criteria->add(KluBillTableMap::COL_DUE_DATE, $this->due_date);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BILLING_FROM)) {\n $criteria->add(KluBillTableMap::COL_BILLING_FROM, $this->billing_from);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BILLING_TO)) {\n $criteria->add(KluBillTableMap::COL_BILLING_TO, $this->billing_to);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BILL_DATE)) {\n $criteria->add(KluBillTableMap::COL_BILL_DATE, $this->bill_date);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_RATE)) {\n $criteria->add(KluBillTableMap::COL_RATE, $this->rate);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_METERNUMBER)) {\n $criteria->add(KluBillTableMap::COL_METERNUMBER, $this->meternumber);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BILLINGMETHOD)) {\n $criteria->add(KluBillTableMap::COL_BILLINGMETHOD, $this->billingmethod);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_DATEOFLASTREADING)) {\n $criteria->add(KluBillTableMap::COL_DATEOFLASTREADING, $this->dateoflastreading);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_DATEOFCURRENTREADING)) {\n $criteria->add(KluBillTableMap::COL_DATEOFCURRENTREADING, $this->dateofcurrentreading);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_DAYSUSAGE)) {\n $criteria->add(KluBillTableMap::COL_DAYSUSAGE, $this->daysusage);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_LASTMETERREADING)) {\n $criteria->add(KluBillTableMap::COL_LASTMETERREADING, $this->lastmeterreading);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_CURRENTMETERREADING)) {\n $criteria->add(KluBillTableMap::COL_CURRENTMETERREADING, $this->currentmeterreading);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_UNITSCONSUMED)) {\n $criteria->add(KluBillTableMap::COL_UNITSCONSUMED, $this->unitsconsumed);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_LASTPAYMENTAMOUNT)) {\n $criteria->add(KluBillTableMap::COL_LASTPAYMENTAMOUNT, $this->lastpaymentamount);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_LASTPAYMENTDATE)) {\n $criteria->add(KluBillTableMap::COL_LASTPAYMENTDATE, $this->lastpaymentdate);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_METERMAINTENANCECHARGE)) {\n $criteria->add(KluBillTableMap::COL_METERMAINTENANCECHARGE, $this->metermaintenancecharge);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_DISCOUNTS)) {\n $criteria->add(KluBillTableMap::COL_DISCOUNTS, $this->discounts);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_OTHERCHARGES)) {\n $criteria->add(KluBillTableMap::COL_OTHERCHARGES, $this->othercharges);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_PENALTYCHARGES)) {\n $criteria->add(KluBillTableMap::COL_PENALTYCHARGES, $this->penaltycharges);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_TAXCHARGES)) {\n $criteria->add(KluBillTableMap::COL_TAXCHARGES, $this->taxcharges);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_CHARGES)) {\n $criteria->add(KluBillTableMap::COL_CHARGES, $this->charges);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_ROUTINECHARGES)) {\n $criteria->add(KluBillTableMap::COL_ROUTINECHARGES, $this->routinecharges);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BILLSERVICERATE)) {\n $criteria->add(KluBillTableMap::COL_BILLSERVICERATE, $this->billservicerate);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BUILDINGTYPE)) {\n $criteria->add(KluBillTableMap::COL_BUILDINGTYPE, $this->buildingtype);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_ROUTE)) {\n $criteria->add(KluBillTableMap::COL_ROUTE, $this->route);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_USAGETYPE)) {\n $criteria->add(KluBillTableMap::COL_USAGETYPE, $this->usagetype);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_SERVICE_CHARGE)) {\n $criteria->add(KluBillTableMap::COL_SERVICE_CHARGE, $this->service_charge);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_PREVIOUS_BALANCE)) {\n $criteria->add(KluBillTableMap::COL_PREVIOUS_BALANCE, $this->previous_balance);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_PAYMENT_RECEIVED)) {\n $criteria->add(KluBillTableMap::COL_PAYMENT_RECEIVED, $this->payment_received);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_LAST_PAYMENT_RECEIVED_DATE)) {\n $criteria->add(KluBillTableMap::COL_LAST_PAYMENT_RECEIVED_DATE, $this->last_payment_received_date);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_CURRENT_CHARGE)) {\n $criteria->add(KluBillTableMap::COL_CURRENT_CHARGE, $this->current_charge);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_TOTAL_DUE)) {\n $criteria->add(KluBillTableMap::COL_TOTAL_DUE, $this->total_due);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_INVOICE_NO)) {\n $criteria->add(KluBillTableMap::COL_INVOICE_NO, $this->invoice_no);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_RECEIPT_NO)) {\n $criteria->add(KluBillTableMap::COL_RECEIPT_NO, $this->receipt_no);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_DATE_CREATED)) {\n $criteria->add(KluBillTableMap::COL_DATE_CREATED, $this->date_created);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_CREATOR)) {\n $criteria->add(KluBillTableMap::COL_CREATOR, $this->creator);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_STATUS)) {\n $criteria->add(KluBillTableMap::COL_STATUS, $this->status);\n }\n\n return $criteria;\n }", "public function getModifiedArrayCopy()\n {\n $columns = array_intersect_key(\n $this->data,\n array_filter($this->modifiedDataFields)\n );\n\n return array_diff_key(\n $columns,\n array_combine(array_keys($this->relations), array_keys($this->relations))\n );\n }", "protected function applyCriteria(){\n\n if( $this->skipCriteria === true )\n return $this;\n\n $criteria = $this->getCriteria();\n\n foreach($criteria as $c){\n if( $c instanceof Criteria ){\n $this->query = $c->apply($this->query, $this);\n }\n }\n\n return $this;\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(VpoRequestPeer::ID)) $criteria->add(VpoRequestPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(VpoRequestPeer::HAZARDOUS_CARGO_FLAG)) $criteria->add(VpoRequestPeer::HAZARDOUS_CARGO_FLAG, $this->hazardous_cargo_flag);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_DATE)) $criteria->add(VpoRequestPeer::REQUEST_DATE, $this->request_date);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_REASON_DESC)) $criteria->add(VpoRequestPeer::REQUEST_REASON_DESC, $this->request_reason_desc);\n\t\tif ($this->isColumnModified(VpoRequestPeer::AGENCY_NAME)) $criteria->add(VpoRequestPeer::AGENCY_NAME, $this->agency_name);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_FIRST_NAME)) $criteria->add(VpoRequestPeer::REQ_FIRST_NAME, $this->req_first_name);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_LAST_NAME)) $criteria->add(VpoRequestPeer::REQ_LAST_NAME, $this->req_last_name);\n\t\tif ($this->isColumnModified(VpoRequestPeer::AGENCY_DIVISION)) $criteria->add(VpoRequestPeer::AGENCY_DIVISION, $this->agency_division);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_ADDRESS1)) $criteria->add(VpoRequestPeer::REQ_ADDRESS1, $this->req_address1);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_ADDRESS2)) $criteria->add(VpoRequestPeer::REQ_ADDRESS2, $this->req_address2);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_CITY)) $criteria->add(VpoRequestPeer::REQ_CITY, $this->req_city);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_STATE)) $criteria->add(VpoRequestPeer::REQ_STATE, $this->req_state);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_COUNTRY)) $criteria->add(VpoRequestPeer::REQ_COUNTRY, $this->req_country);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_ZIPCODE)) $criteria->add(VpoRequestPeer::REQ_ZIPCODE, $this->req_zipcode);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OFFICE_PHONE)) $criteria->add(VpoRequestPeer::REQ_OFFICE_PHONE, $this->req_office_phone);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OFFICE_COMMENT)) $criteria->add(VpoRequestPeer::REQ_OFFICE_COMMENT, $this->req_office_comment);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_MOBILE_PHONE)) $criteria->add(VpoRequestPeer::REQ_MOBILE_PHONE, $this->req_mobile_phone);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_MOBILE_COMMENT)) $criteria->add(VpoRequestPeer::REQ_MOBILE_COMMENT, $this->req_mobile_comment);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_FAX_PHONE)) $criteria->add(VpoRequestPeer::REQ_FAX_PHONE, $this->req_fax_phone);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_FAX_COMMENT)) $criteria->add(VpoRequestPeer::REQ_FAX_COMMENT, $this->req_fax_comment);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_PAGER_PHONE)) $criteria->add(VpoRequestPeer::REQ_PAGER_PHONE, $this->req_pager_phone);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_PAGER_COMMENT)) $criteria->add(VpoRequestPeer::REQ_PAGER_COMMENT, $this->req_pager_comment);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OTHER_PHONE1)) $criteria->add(VpoRequestPeer::REQ_OTHER_PHONE1, $this->req_other_phone1);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OTHER_COMMENT1)) $criteria->add(VpoRequestPeer::REQ_OTHER_COMMENT1, $this->req_other_comment1);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OTHER_PHONE2)) $criteria->add(VpoRequestPeer::REQ_OTHER_PHONE2, $this->req_other_phone2);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OTHER_COMMENT2)) $criteria->add(VpoRequestPeer::REQ_OTHER_COMMENT2, $this->req_other_comment2);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OTHER_PHONE3)) $criteria->add(VpoRequestPeer::REQ_OTHER_PHONE3, $this->req_other_phone3);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OTHER_COMMENT3)) $criteria->add(VpoRequestPeer::REQ_OTHER_COMMENT3, $this->req_other_comment3);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_EMAIL)) $criteria->add(VpoRequestPeer::REQ_EMAIL, $this->req_email);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_ALT_EMAIL)) $criteria->add(VpoRequestPeer::REQ_ALT_EMAIL, $this->req_alt_email);\n\t\tif ($this->isColumnModified(VpoRequestPeer::CONTACT_NOTES)) $criteria->add(VpoRequestPeer::CONTACT_NOTES, $this->contact_notes);\n\t\tif ($this->isColumnModified(VpoRequestPeer::ORIGIN_CITY)) $criteria->add(VpoRequestPeer::ORIGIN_CITY, $this->origin_city);\n\t\tif ($this->isColumnModified(VpoRequestPeer::ORIGIN_STATE)) $criteria->add(VpoRequestPeer::ORIGIN_STATE, $this->origin_state);\n\t\tif ($this->isColumnModified(VpoRequestPeer::DEST_CITY)) $criteria->add(VpoRequestPeer::DEST_CITY, $this->dest_city);\n\t\tif ($this->isColumnModified(VpoRequestPeer::DEST_STATE)) $criteria->add(VpoRequestPeer::DEST_STATE, $this->dest_state);\n\t\tif ($this->isColumnModified(VpoRequestPeer::PREFERRED_DATE)) $criteria->add(VpoRequestPeer::PREFERRED_DATE, $this->preferred_date);\n\t\tif ($this->isColumnModified(VpoRequestPeer::ALTERNATIVE_DATE)) $criteria->add(VpoRequestPeer::ALTERNATIVE_DATE, $this->alternative_date);\n\t\tif ($this->isColumnModified(VpoRequestPeer::TRANSPORT_TYPE)) $criteria->add(VpoRequestPeer::TRANSPORT_TYPE, $this->transport_type);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_POSTED_DATE)) $criteria->add(VpoRequestPeer::REQUEST_POSTED_DATE, $this->request_posted_date);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_POSTED_TO_AFA_ORG_ID)) $criteria->add(VpoRequestPeer::REQUEST_POSTED_TO_AFA_ORG_ID, $this->request_posted_to_afa_org_id);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUES_PROCESSED_DATE)) $criteria->add(VpoRequestPeer::REQUES_PROCESSED_DATE, $this->reques_processed_date);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_DISPOSITION)) $criteria->add(VpoRequestPeer::REQUEST_DISPOSITION, $this->request_disposition);\n\t\tif ($this->isColumnModified(VpoRequestPeer::CALLER_NAME)) $criteria->add(VpoRequestPeer::CALLER_NAME, $this->caller_name);\n\t\tif ($this->isColumnModified(VpoRequestPeer::CALLER_PHONE)) $criteria->add(VpoRequestPeer::CALLER_PHONE, $this->caller_phone);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_POST_RESULTS)) $criteria->add(VpoRequestPeer::REQUEST_POST_RESULTS, $this->request_post_results);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUESTER_VPO_USER_ID)) $criteria->add(VpoRequestPeer::REQUESTER_VPO_USER_ID, $this->requester_vpo_user_id);\n\t\tif ($this->isColumnModified(VpoRequestPeer::SOURCE)) $criteria->add(VpoRequestPeer::SOURCE, $this->source);\n\t\tif ($this->isColumnModified(VpoRequestPeer::SOAP_POST_FROM_AFA_ORG_ID)) $criteria->add(VpoRequestPeer::SOAP_POST_FROM_AFA_ORG_ID, $this->soap_post_from_afa_org_id);\n\t\tif ($this->isColumnModified(VpoRequestPeer::SOAP_POST_REQUEST_ID)) $criteria->add(VpoRequestPeer::SOAP_POST_REQUEST_ID, $this->soap_post_request_id);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_PROCESSED_BY)) $criteria->add(VpoRequestPeer::REQUEST_PROCESSED_BY, $this->request_processed_by);\n\n\t\treturn $criteria;\n\t}", "public function defineCriteriaAttributes()\n {\n return [\n 'userId' => [AttributeType::Number],\n 'chargeId' => [AttributeType::Number],\n 'membershipSubscriptionId' => [AttributeType::Number],\n 'status' => [AttributeType::String]\n ];\n }", "private function applyCriteria()\n {\n foreach( $this->criteria as $criterion )\n {\n $this->query = $criterion->apply( $this->query, $this );\n }\n\n return $this;\n }", "private function getUpdateableClause () {\n\t\t$where = new Where;\n\t\tforeach ($this->primaryKeys as $key) {\n\t\t\t$value = $this->retreive($key);\n\t\t\tif ($value){\n\t\t\t\t$where->equals($key, $this->retreive($key));\n\t\t\t} else {\n\t\t\t\tthrow new \\Exception(\"Primary key (\". $key .\") has no value!\");\n\t\t\t}\n\t\t}\n\n\t\treturn $where;\n\t}", "public function getModifiedSearchCriterias()\n {\n $modifiedCriterias = array();\n\n $searchCriterias = $this->getSearchCriterias();\n $parameters = $this->_cleanSearchParams($this->getParameters());\n if (!empty($searchCriterias) && !empty($parameters)) {\n\n $i = 0;\n foreach ($parameters as $key => $parameter) {\n $modifiedCriterias[$key] = $searchCriterias[$i];\n $i++;\n }\n }\n\n return $modifiedCriterias;\n }", "protected function getConditions()\n {\n $entityPk = (array)$this->mapper->getConfig()->getPrimaryKey();\n $conditions = [];\n foreach ($entityPk as $col) {\n $val = $this->entityHydrator->get($this->entity, $col);\n if ($val) {\n $conditions[$col] = $val;\n }\n }\n\n // not enough columns? reset\n if (count($conditions) != count($entityPk)) {\n return [];\n }\n\n return $conditions;\n }", "public function defineCriteriaAttributes()\n\t{\n\t\treturn array(\n\t\t\t'slug' => AttributeType::String,\n\t\t\t'sectionId' => AttributeType::Number,\n\t\t\t'authorId' => AttributeType::Number,\n\t\t\t'authorGroupId' => AttributeType::Number,\n\t\t\t'authorGroup' => AttributeType::String,\n\t\t\t'section' => AttributeType::Mixed,\n\t\t\t'editable' => AttributeType::Bool,\n\t\t\t'postDate' => AttributeType::Mixed,\n\t\t\t'after' => AttributeType::Mixed,\n\t\t\t'before' => AttributeType::Mixed,\n\t\t\t'status' => array(AttributeType::String, 'default' => EntryModel::LIVE),\n\t\t\t'order' => array(AttributeType::String, 'default' => 'postDate desc'),\n\t\t);\n\t}", "protected function functionCriteria() {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n if (!is_array($this->kunjungan)){\n $this->kunjungan = 0;\n }\n \n $criteria->addBetweenCondition('date(tglmasukpenunjang)', $this->tglAwal, $this->tglAkhir);\n $criteria->compare('kunjungan', $this->kunjungan);\n\t\tif(!empty($this->instalasiasal_id)){\n\t\t\t$criteria->addCondition('instalasiasal_id ='.$this->instalasiasal_id);\n\t\t}\n if (!empty($this->instalasiasal_id)){\n if (!is_array($this->ruanganasal_id)){\n $this->ruanganasal_id = 0;\n }\n }\n\t\tif(!empty($this->carabayar_id)){\n\t\t\t$criteria->addCondition('carabayar_id ='.$this->carabayar_id);\n\t\t}\n\t\tif(!empty($this->carabayar_id)){\n\t\t\t$criteria->addCondition('penjamin_id ='.$this->carabayar_id);\n\t\t}\n\t\tif(!empty($this->ruanganasal_id)){\n\t\t\t$criteria->addCondition('ruanganasal_id ='.$this->ruanganasal_id);\n\t\t}\n $criteria->addCondition('ruanganpenunj_id = '.Yii::app()->user->getState('ruangan_id'));\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(ActionTypePeer::DATABASE_NAME);\n\n if ($this->isColumnModified(ActionTypePeer::ID)) $criteria->add(ActionTypePeer::ID, $this->id);\n if ($this->isColumnModified(ActionTypePeer::CREATEDATETIME)) $criteria->add(ActionTypePeer::CREATEDATETIME, $this->createdatetime);\n if ($this->isColumnModified(ActionTypePeer::CREATEPERSON_ID)) $criteria->add(ActionTypePeer::CREATEPERSON_ID, $this->createperson_id);\n if ($this->isColumnModified(ActionTypePeer::MODIFYDATETIME)) $criteria->add(ActionTypePeer::MODIFYDATETIME, $this->modifydatetime);\n if ($this->isColumnModified(ActionTypePeer::MODIFYPERSON_ID)) $criteria->add(ActionTypePeer::MODIFYPERSON_ID, $this->modifyperson_id);\n if ($this->isColumnModified(ActionTypePeer::DELETED)) $criteria->add(ActionTypePeer::DELETED, $this->deleted);\n if ($this->isColumnModified(ActionTypePeer::CLAZZ)) $criteria->add(ActionTypePeer::CLAZZ, $this->class);\n if ($this->isColumnModified(ActionTypePeer::GROUP_ID)) $criteria->add(ActionTypePeer::GROUP_ID, $this->group_id);\n if ($this->isColumnModified(ActionTypePeer::CODE)) $criteria->add(ActionTypePeer::CODE, $this->code);\n if ($this->isColumnModified(ActionTypePeer::NAME)) $criteria->add(ActionTypePeer::NAME, $this->name);\n if ($this->isColumnModified(ActionTypePeer::TITLE)) $criteria->add(ActionTypePeer::TITLE, $this->title);\n if ($this->isColumnModified(ActionTypePeer::FLATCODE)) $criteria->add(ActionTypePeer::FLATCODE, $this->flatcode);\n if ($this->isColumnModified(ActionTypePeer::SEX)) $criteria->add(ActionTypePeer::SEX, $this->sex);\n if ($this->isColumnModified(ActionTypePeer::AGE)) $criteria->add(ActionTypePeer::AGE, $this->age);\n if ($this->isColumnModified(ActionTypePeer::AGE_BU)) $criteria->add(ActionTypePeer::AGE_BU, $this->age_bu);\n if ($this->isColumnModified(ActionTypePeer::AGE_BC)) $criteria->add(ActionTypePeer::AGE_BC, $this->age_bc);\n if ($this->isColumnModified(ActionTypePeer::AGE_EU)) $criteria->add(ActionTypePeer::AGE_EU, $this->age_eu);\n if ($this->isColumnModified(ActionTypePeer::AGE_EC)) $criteria->add(ActionTypePeer::AGE_EC, $this->age_ec);\n if ($this->isColumnModified(ActionTypePeer::OFFICE)) $criteria->add(ActionTypePeer::OFFICE, $this->office);\n if ($this->isColumnModified(ActionTypePeer::SHOWINFORM)) $criteria->add(ActionTypePeer::SHOWINFORM, $this->showinform);\n if ($this->isColumnModified(ActionTypePeer::GENTIMETABLE)) $criteria->add(ActionTypePeer::GENTIMETABLE, $this->gentimetable);\n if ($this->isColumnModified(ActionTypePeer::SERVICE_ID)) $criteria->add(ActionTypePeer::SERVICE_ID, $this->service_id);\n if ($this->isColumnModified(ActionTypePeer::QUOTATYPE_ID)) $criteria->add(ActionTypePeer::QUOTATYPE_ID, $this->quotatype_id);\n if ($this->isColumnModified(ActionTypePeer::CONTEXT)) $criteria->add(ActionTypePeer::CONTEXT, $this->context);\n if ($this->isColumnModified(ActionTypePeer::AMOUNT)) $criteria->add(ActionTypePeer::AMOUNT, $this->amount);\n if ($this->isColumnModified(ActionTypePeer::AMOUNTEVALUATION)) $criteria->add(ActionTypePeer::AMOUNTEVALUATION, $this->amountevaluation);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTSTATUS)) $criteria->add(ActionTypePeer::DEFAULTSTATUS, $this->defaultstatus);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTDIRECTIONDATE)) $criteria->add(ActionTypePeer::DEFAULTDIRECTIONDATE, $this->defaultdirectiondate);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTPLANNEDENDDATE)) $criteria->add(ActionTypePeer::DEFAULTPLANNEDENDDATE, $this->defaultplannedenddate);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTENDDATE)) $criteria->add(ActionTypePeer::DEFAULTENDDATE, $this->defaultenddate);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTEXECPERSON_ID)) $criteria->add(ActionTypePeer::DEFAULTEXECPERSON_ID, $this->defaultexecperson_id);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTPERSONINEVENT)) $criteria->add(ActionTypePeer::DEFAULTPERSONINEVENT, $this->defaultpersoninevent);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTPERSONINEDITOR)) $criteria->add(ActionTypePeer::DEFAULTPERSONINEDITOR, $this->defaultpersonineditor);\n if ($this->isColumnModified(ActionTypePeer::MAXOCCURSINEVENT)) $criteria->add(ActionTypePeer::MAXOCCURSINEVENT, $this->maxoccursinevent);\n if ($this->isColumnModified(ActionTypePeer::SHOWTIME)) $criteria->add(ActionTypePeer::SHOWTIME, $this->showtime);\n if ($this->isColumnModified(ActionTypePeer::ISMES)) $criteria->add(ActionTypePeer::ISMES, $this->ismes);\n if ($this->isColumnModified(ActionTypePeer::NOMENCLATIVESERVICE_ID)) $criteria->add(ActionTypePeer::NOMENCLATIVESERVICE_ID, $this->nomenclativeservice_id);\n if ($this->isColumnModified(ActionTypePeer::ISPREFERABLE)) $criteria->add(ActionTypePeer::ISPREFERABLE, $this->ispreferable);\n if ($this->isColumnModified(ActionTypePeer::PRESCRIBEDTYPE_ID)) $criteria->add(ActionTypePeer::PRESCRIBEDTYPE_ID, $this->prescribedtype_id);\n if ($this->isColumnModified(ActionTypePeer::SHEDULE_ID)) $criteria->add(ActionTypePeer::SHEDULE_ID, $this->shedule_id);\n if ($this->isColumnModified(ActionTypePeer::ISREQUIREDCOORDINATION)) $criteria->add(ActionTypePeer::ISREQUIREDCOORDINATION, $this->isrequiredcoordination);\n if ($this->isColumnModified(ActionTypePeer::ISREQUIREDTISSUE)) $criteria->add(ActionTypePeer::ISREQUIREDTISSUE, $this->isrequiredtissue);\n if ($this->isColumnModified(ActionTypePeer::TESTTUBETYPE_ID)) $criteria->add(ActionTypePeer::TESTTUBETYPE_ID, $this->testtubetype_id);\n if ($this->isColumnModified(ActionTypePeer::JOBTYPE_ID)) $criteria->add(ActionTypePeer::JOBTYPE_ID, $this->jobtype_id);\n if ($this->isColumnModified(ActionTypePeer::MNEM)) $criteria->add(ActionTypePeer::MNEM, $this->mnem);\n\n return $criteria;\n }", "public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }", "public function getCriteria();", "public function __clone() {\n foreach ($this->conditions as $i => $condition) {\n $this->conditions[$i] = clone $condition;\n }\n }", "protected function applyCriteria()\n {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n $criteria = $this->getCriteria();\n\n if ($criteria) {\n foreach ($criteria as $c) {\n $this->model = $c->apply($this->model, $this);\n }\n }\n\n return $this;\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(PostPeer::ID)) $criteria->add(PostPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(PostPeer::PARTIE_ID)) $criteria->add(PostPeer::PARTIE_ID, $this->partie_id);\n\t\tif ($this->isColumnModified(PostPeer::REPLICA_POST_ID)) $criteria->add(PostPeer::REPLICA_POST_ID, $this->replica_post_id);\n\t\tif ($this->isColumnModified(PostPeer::TYPE)) $criteria->add(PostPeer::TYPE, $this->type);\n\t\tif ($this->isColumnModified(PostPeer::TITLE)) $criteria->add(PostPeer::TITLE, $this->title);\n\t\tif ($this->isColumnModified(PostPeer::URL)) $criteria->add(PostPeer::URL, $this->url);\n\t\tif ($this->isColumnModified(PostPeer::TEXT)) $criteria->add(PostPeer::TEXT, $this->text);\n\t\tif ($this->isColumnModified(PostPeer::PHOTO_FILE)) $criteria->add(PostPeer::PHOTO_FILE, $this->photo_file);\n\t\tif ($this->isColumnModified(PostPeer::PHOTO_URL)) $criteria->add(PostPeer::PHOTO_URL, $this->photo_url);\n\t\tif ($this->isColumnModified(PostPeer::QUOTE)) $criteria->add(PostPeer::QUOTE, $this->quote);\n\t\tif ($this->isColumnModified(PostPeer::QUOTE_AUTHOR)) $criteria->add(PostPeer::QUOTE_AUTHOR, $this->quote_author);\n\t\tif ($this->isColumnModified(PostPeer::LINK_TITLE)) $criteria->add(PostPeer::LINK_TITLE, $this->link_title);\n\t\tif ($this->isColumnModified(PostPeer::LINK_URL)) $criteria->add(PostPeer::LINK_URL, $this->link_url);\n\t\tif ($this->isColumnModified(PostPeer::LINK_IMAGE)) $criteria->add(PostPeer::LINK_IMAGE, $this->link_image);\n\t\tif ($this->isColumnModified(PostPeer::VIDEO_URL)) $criteria->add(PostPeer::VIDEO_URL, $this->video_url);\n\t\tif ($this->isColumnModified(PostPeer::TOTAL_INDEX)) $criteria->add(PostPeer::TOTAL_INDEX, $this->total_index);\n\t\tif ($this->isColumnModified(PostPeer::BEST_BADGE_1)) $criteria->add(PostPeer::BEST_BADGE_1, $this->best_badge_1);\n\t\tif ($this->isColumnModified(PostPeer::BEST_BADGE_2)) $criteria->add(PostPeer::BEST_BADGE_2, $this->best_badge_2);\n\t\tif ($this->isColumnModified(PostPeer::IS_PUBLISHED)) $criteria->add(PostPeer::IS_PUBLISHED, $this->is_published);\n\t\tif ($this->isColumnModified(PostPeer::IS_FEATURED)) $criteria->add(PostPeer::IS_FEATURED, $this->is_featured);\n\t\tif ($this->isColumnModified(PostPeer::COMMENTS_COUNT)) $criteria->add(PostPeer::COMMENTS_COUNT, $this->comments_count);\n\t\tif ($this->isColumnModified(PostPeer::CREATED_AT)) $criteria->add(PostPeer::CREATED_AT, $this->created_at);\n\t\tif ($this->isColumnModified(PostPeer::UPDATED_AT)) $criteria->add(PostPeer::UPDATED_AT, $this->updated_at);\n\n\t\treturn $criteria;\n\t}", "public function applyCriteria() {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n foreach ($this->getCriteria() as $criteria) {\n if ($criteria instanceof Criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n }\n\n return $this;\n }", "private function &normalizeCriteria($criteria) {\n\n $result = array();\n $lastFieldName = null;\n\n foreach($criteria as $key => $value) {\n\n if (is_numeric($key)) {\n\n // $value is either a field name, value, conjunction, literal sql, or another array of criteria\n\n if ($lastFieldName !== null) {\n $result[] = new Octopus_Model_Restriction_Field($this->getModelInstance(), $lastFieldName, $value);\n $lastFieldName = null;\n } else if (is_array($value)) {\n $result[] = $this->normalizeCriteria($value);\n $lastFieldName = null;\n } else if ($value instanceof Octopus_Model_Restriction) {\n $result[] = $value;\n } else {\n\n $uvalue = strtoupper($value);\n\n if ($uvalue === 'OR' || $uvalue === 'AND') {\n if (count($result)) {\n $result[] = $uvalue;\n }\n $lastFieldName = null;\n } else if ($lastFieldName === null) {\n\n if (Octopus_Model_Restriction_Field::looksLikeFieldExpression($value)) {\n $lastFieldName = $value;\n } else {\n // Probably literal SQL\n $result[] = new Octopus_Model_Restriction_Sql($value);\n }\n\n }\n }\n\n continue;\n }\n\n // $key is either a field name or a conjunction or NOT\n $ukey = strtoupper($key);\n\n if ($ukey === 'NOT') {\n $result[] = array('NOT' => $this->normalizeCriteria($value));\n } else if ($ukey === 'AND' || $ukey === 'OR') {\n $result[] = $ukey;\n $result[] = $this->normalizeCriteria($value);\n } else {\n // Two scenarios:\n // 1. $key is a field name and $value is a corresponding filter value\n // 2. $key is literal SQL and $value is an array of parameters to go with it\n if (Octopus_Model_Restriction_Field::looksLikeFieldExpression($key)) {\n $result[] = new Octopus_Model_Restriction_Field($this->getModelInstance(), $key, $value);\n } else {\n $result[] = new Octopus_Model_Restriction_Sql($key, $value);\n }\n }\n }\n\n return $result;\n }", "public function getCriteria()\n {\n return $this->criteria;\n }", "public function getCriteria()\n {\n return $this->criteria;\n }", "public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }", "public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }", "public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }", "public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }", "public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }", "public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }", "public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }", "public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }", "public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }", "public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }", "public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }", "public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }", "private function values($appendPrimaryKey = true) {\r\n\t\t$c = get_called_class();\r\n\r\n\t\t$return = array();\r\n\t\tforeach ($c::getRequirements() as $column => $details) {\r\n\t\t\tif($c::$primaryKey != $column) {\r\n\t\t\t\t$property = substr($column,1,strlen($column)-2);\r\n\t\t\t\tif(in_array($property, array('creationDate','updateDate'))) {\r\n\t\t\t\t\t$return[] = $this->$property->format('Y-m-d H:i:s');\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$return[] = $this->$property;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif($appendPrimaryKey) {\r\n\t\t\t$return[] = $this->{substr($c::$primaryKey,1,strlen($c::$primaryKey)-2)}; }\r\n\t\treturn $return;\r\n\t}", "private function addCriteriaCondition(\n array $criteria,\n array &$columns,\n array &$values,\n array &$conditions\n ): void {\n $platform = $this->getDatabasePlatform();\n\n foreach ($criteria as $columnName => $value) {\n if ($value === null) {\n $conditions[] = $platform->getIsNullExpression($columnName);\n continue;\n }\n\n $columns[] = $columnName;\n $values[] = $value;\n $conditions[] = $columnName . ' = ?';\n }\n }", "public function getCriteria(){\n return $this->criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildOrdrhedQuery::create();\n $criteria->add(OrdrhedTableMap::COL_SESSIONID, $this->sessionid);\n $criteria->add(OrdrhedTableMap::COL_RECNO, $this->recno);\n $criteria->add(OrdrhedTableMap::COL_ORDERNO, $this->orderno);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(YearPeer::DATABASE_NAME);\n $criteria->add(YearPeer::ID, $this->id);\n\n return $criteria;\n }", "public function getNewChildSelectOptions()\n {\n $conditions = [\n ['value' => $this->getType(), 'label' => __('Conditions Combination')],\n $this->_attributeFactory->create()->getNewChildSelectOptions(),\n ];\n\n $conditions = array_merge_recursive(parent::getNewChildSelectOptions(), $conditions);\n return $conditions;\n }", "public function getCriteria()\n\t{\n\t\treturn $this->criteria;\n\t}", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(VenuePeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(VenuePeer::VENUEID)) $criteria->add(VenuePeer::VENUEID, $this->venueid);\n\t\tif ($this->isColumnModified(VenuePeer::ADDRESS)) $criteria->add(VenuePeer::ADDRESS, $this->address);\n\t\tif ($this->isColumnModified(VenuePeer::ADDRESS2)) $criteria->add(VenuePeer::ADDRESS2, $this->address2);\n\t\tif ($this->isColumnModified(VenuePeer::CITY)) $criteria->add(VenuePeer::CITY, $this->city);\n\t\tif ($this->isColumnModified(VenuePeer::PROVINCE)) $criteria->add(VenuePeer::PROVINCE, $this->province);\n\t\tif ($this->isColumnModified(VenuePeer::COUNTRY)) $criteria->add(VenuePeer::COUNTRY, $this->country);\n\t\tif ($this->isColumnModified(VenuePeer::LATITUDE)) $criteria->add(VenuePeer::LATITUDE, $this->latitude);\n\t\tif ($this->isColumnModified(VenuePeer::LONGITUDE)) $criteria->add(VenuePeer::LONGITUDE, $this->longitude);\n\t\tif ($this->isColumnModified(VenuePeer::PHONE)) $criteria->add(VenuePeer::PHONE, $this->phone);\n\t\tif ($this->isColumnModified(VenuePeer::NAME)) $criteria->add(VenuePeer::NAME, $this->name);\n\t\tif ($this->isColumnModified(VenuePeer::DESCRIPTION)) $criteria->add(VenuePeer::DESCRIPTION, $this->description);\n\t\tif ($this->isColumnModified(VenuePeer::WEBSITE)) $criteria->add(VenuePeer::WEBSITE, $this->website);\n\t\tif ($this->isColumnModified(VenuePeer::TWITTER)) $criteria->add(VenuePeer::TWITTER, $this->twitter);\n\t\tif ($this->isColumnModified(VenuePeer::FACEBOOK)) $criteria->add(VenuePeer::FACEBOOK, $this->facebook);\n\t\tif ($this->isColumnModified(VenuePeer::RSSFEED)) $criteria->add(VenuePeer::RSSFEED, $this->rssfeed);\n\t\tif ($this->isColumnModified(VenuePeer::CLOSED)) $criteria->add(VenuePeer::CLOSED, $this->closed);\n\t\tif ($this->isColumnModified(VenuePeer::LASTFMID)) $criteria->add(VenuePeer::LASTFMID, $this->lastfmid);\n\t\tif ($this->isColumnModified(VenuePeer::SLUG)) $criteria->add(VenuePeer::SLUG, $this->slug);\n\t\tif ($this->isColumnModified(VenuePeer::HASPHOTOS)) $criteria->add(VenuePeer::HASPHOTOS, $this->hasphotos);\n\t\tif ($this->isColumnModified(VenuePeer::SUBMITTEDBYUSER)) $criteria->add(VenuePeer::SUBMITTEDBYUSER, $this->submittedbyuser);\n\n\t\treturn $criteria;\n\t}", "public function buildWhereClause()\n {\n $criterias = $this->bean->ownCriteria;\n if (empty($criterias)) {\n return '1';\n }// find all because there are no criterias\n $where = array();\n $this->filter_values = array();\n //$mask = \" %s %s %s\"; // login, field, op (with masked value)\n $n = 0;\n foreach ($criterias as $id=>$criteria) {\n if (! $criteria->op) {\n continue;\n } // skip all entries that say any!\n if ($criteria->value === null || $criteria->value === '') {\n continue;\n } // skip all empty\n $n++;\n $logic = 'AND ';//$criteria->logic;\n if ($n == 1) {\n $logic = '';\n }\n $where[] = $logic.$criteria->makeWherePart($this);\n }\n\n if (empty($where)) {\n return '1';\n }// find all because there was no active criteria\n\n $where = implode(' ', $where);\n return $where;\n }", "public function criteriaSearch()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\tif(!empty($this->tunjangan_id)){\n\t\t\t$criteria->addCondition('tunjangan_id = '.$this->tunjangan_id);\n\t\t}\n\t\tif(!empty($this->pangkat_id)){\n\t\t\t$criteria->addCondition('pangkat_id = '.$this->pangkat_id);\n\t\t}\n\t\tif(!empty($this->jabatan_id)){\n\t\t\t$criteria->addCondition('jabatan_id = '.$this->jabatan_id);\n\t\t}\n\t\tif(!empty($this->komponengaji_id)){\n\t\t\t$criteria->addCondition('komponengaji_id = '.$this->komponengaji_id);\n\t\t}\n\t\t$criteria->compare('nominaltunjangan', str_replace('.','',$this->nominaltunjangan));\n\t\t$criteria->compare('tunjangan_aktif',isset($this->tunjangan_aktif)?$this->tunjangan_aktif:true);\n\n\t\treturn $criteria;\n\t}", "public function orig_search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('rowtype', $this->rowtype, true);\n $criteria->compare('anno_registrazione', $this->anno_registrazione, true);\n $criteria->compare('tipo_transazione', $this->tipo_transazione, true);\n $criteria->compare('id_causale', $this->id_causale, true);\n $criteria->compare('id_cassa', $this->id_cassa, true);\n $criteria->compare('id_controparte', $this->id_controparte);\n $criteria->compare('descrizione', $this->descrizione, true);\n $criteria->compare('importo', $this->importo, true);\n $criteria->compare('data_doc', $this->data_doc, true);\n $criteria->compare('riferim_doc', $this->riferim_doc, true);\n $criteria->compare('data_pagam', $this->data_pagam, true);\n $criteria->compare('des_pagam', $this->des_pagam, true);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }", "public function getCriteriaList() {\n return $this->_get(6);\n }", "public function getQueryCriteria(): array\n {\n return [\n 'created_after' => new DateValidator,\n 'created_before' => new DateValidator,\n 'id_greater_than' => new PositiveIntValidator,\n 'id_less_than' => new PositiveIntValidator,\n 'name' => new StringValidator,\n 'updated_before' => new DateValidator,\n 'updated_after' => new DateValidator\n ];\n }", "public function updateColumns()\n\t{\n\t\treturn $this->updateColumns;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(MmPeer::DATABASE_NAME);\n\n\t\t$criteria->add(MmPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(MontacargasPeer::DATABASE_NAME);\n $criteria->add(MontacargasPeer::IDMONTACARGAS, $this->idmontacargas);\n\n return $criteria;\n }", "private function setCustomWhere()\n\t{\n\t\tif ($this->customQuery->where) {\n\t\t\t$this->where = array_merge_recursive($this->customQuery->where, $this->where);\n\t\t}\n\n\t\treturn $this;\n\t}", "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(JadwalPeer::DATABASE_NAME);\n $criteria->add(JadwalPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(JadwalPeer::SEMESTER_ID, $this->semester_id);\n $criteria->add(JadwalPeer::ID_RUANG, $this->id_ruang);\n $criteria->add(JadwalPeer::HARI, $this->hari);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(BangunanPeer::DATABASE_NAME);\n $criteria->add(BangunanPeer::ID_BANGUNAN, $this->id_bangunan);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(EventPeer::DATABASE_NAME);\n $criteria->add(EventPeer::ID, $this->id);\n\n return $criteria;\n }", "protected function hydrateCriteria($builder, array $criteria = array())\n {\n foreach ($criteria as $fieldName => $fieldValue) {\n $builder->field($fieldName)->equals($fieldValue);\n// $builder->addOr($builder->expr()->field($fieldName)->equals($fieldValue));\n }\n }", "public function getCriteria()\n {\n $criterias = array();\n foreach ($this->validators as $validator) {\n $criterias = array_merge($criterias, $validator->getCriteria());\n }\n \n return $criterias;\n }", "private function buildWhere()\n {\n $query = array();\n\n // Make sure there's something to do\n if (isset($this->query['where']) and count($this->query['where'])) {\n foreach ($this->query['where'] as $group => $conditions) {\n $group = array(); // Yes, because the $group above is not used, get over it.\n foreach ($conditions as $condition => $value) {\n // Get column name\n $cond = explode(\" \", $condition);\n $column = str_replace('`', '', $cond[0]);\n $safeColumn = $this->columnName($column);\n\n // Make the column name safe\n $condition = str_replace($column, $safeColumn, $condition);\n\n // Add value to the bind queue\n $valueBindKey = str_replace(array('.', '`'), array('_', ''), $safeColumn);\n\n if (!empty($value) or $value !== null) {\n $this->valuesToBind[$valueBindKey] = $value;\n }\n\n // Add condition to group\n $group[] = str_replace(\"?\", \":{$valueBindKey}\", $condition);\n }\n\n // Add the group\n $query[] = \"(\" . implode(\" AND \", $group) . \")\";\n }\n\n // Return\n return \"WHERE \" . implode(\" OR \", $query);\n }\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(CidadePeer::DATABASE_NAME);\n\t\t$criteria->add(CidadePeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = ChildUserQuery::create();\n $criteria->add(UserTableMap::COL_ID, $this->id);\n $criteria->add(UserTableMap::COL_NICKNAME, $this->nickname);\n\n return $criteria;\n }" ]
[ "0.6666395", "0.6528488", "0.6479534", "0.64027274", "0.6399369", "0.63132507", "0.63040465", "0.62215126", "0.61996377", "0.6172906", "0.6171644", "0.6164037", "0.6156793", "0.6144736", "0.61277544", "0.61176074", "0.6089784", "0.60798377", "0.6045999", "0.6037183", "0.60367745", "0.6033058", "0.60253334", "0.60242623", "0.6019283", "0.59528553", "0.5949993", "0.5944755", "0.5918975", "0.58366495", "0.578247", "0.5776793", "0.5703901", "0.5701083", "0.5670108", "0.5635795", "0.5547621", "0.5533339", "0.54888636", "0.5487629", "0.5453043", "0.54507923", "0.5418068", "0.54151356", "0.5403853", "0.53866875", "0.535119", "0.5350083", "0.534064", "0.534064", "0.5340043", "0.5340043", "0.5340043", "0.5340043", "0.5340043", "0.5340043", "0.5340043", "0.5340043", "0.5340043", "0.5340043", "0.5340043", "0.5340043", "0.5304807", "0.52712536", "0.5260338", "0.52599555", "0.52539796", "0.5250882", "0.5237153", "0.52326113", "0.52011734", "0.51796657", "0.51396126", "0.5134558", "0.512272", "0.51181144", "0.5112036", "0.51096183", "0.5104805", "0.510243", "0.50991577", "0.50991577", "0.50991577", "0.50991577", "0.50991577", "0.50991577", "0.50991577", "0.50991577", "0.50991577", "0.50991577", "0.50991577", "0.50991577", "0.50971484", "0.509131", "0.50716174", "0.50521886", "0.5044454", "0.5042575", "0.50391865", "0.502917" ]
0.6042813
19
Builds a Criteria object containing the primary key for this object. Unlike buildCriteria() this method includes the primary key values regardless of whether or not they have been modified.
public function buildPkeyCriteria() { $criteria = ChildTblProdInfoQuery::create(); $criteria->add(TblProdInfoTableMap::COL_PROD_ID, $this->prod_id); return $criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(CidadePeer::DATABASE_NAME);\n\t\t$criteria->add(CidadePeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(YearPeer::DATABASE_NAME);\n $criteria->add(YearPeer::ID, $this->id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(MmPeer::DATABASE_NAME);\n\n\t\t$criteria->add(MmPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\t$criteria->add(UserPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\t$criteria->add(UserPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(CampaignPeer::DATABASE_NAME);\n\n\t\t$criteria->add(CampaignPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\t\t$criteria->add(UsuarioPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = ChildKluBillQuery::create();\n $criteria->add(KluBillTableMap::COL_ID, $this->id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\t$criteria->add(VpoRequestPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = ChildArticleQuery::create();\n $criteria->add(ArticleTableMap::COL_ARTICLE_ID, $this->article_id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(EventPeer::DATABASE_NAME);\n $criteria->add(EventPeer::ID, $this->id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\n\t\t$criteria->add(PostPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildBiblioQuery::create();\n $criteria->add(BiblioTableMap::COL_BIBLIO_ID, $this->biblio_id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildAliMemberQuery::create();\n $criteria->add(AliMemberTableMap::COL_ID, $this->id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildIssuesQuery::create();\n $criteria->add(IssuesTableMap::COL_ID, $this->id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(MontacargasPeer::DATABASE_NAME);\n $criteria->add(MontacargasPeer::IDMONTACARGAS, $this->idmontacargas);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VenuePeer::DATABASE_NAME);\n\t\t$criteria->add(VenuePeer::VENUEID, $this->venueid);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = ChildUserQuery::create();\n $criteria->add(UserTableMap::COL_ID, $this->id);\n $criteria->add(UserTableMap::COL_NICKNAME, $this->nickname);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildOrdrhedQuery::create();\n $criteria->add(OrdrhedTableMap::COL_SESSIONID, $this->sessionid);\n $criteria->add(OrdrhedTableMap::COL_RECNO, $this->recno);\n $criteria->add(OrdrhedTableMap::COL_ORDERNO, $this->orderno);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(BangunanPeer::DATABASE_NAME);\n $criteria->add(BangunanPeer::ID_BANGUNAN, $this->id_bangunan);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\t\t$criteria->add(UsuarioPeer::CO_USUARIO, $this->co_usuario);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = ChildPhoneBookQuery::create();\n $criteria->add(PhoneBookTableMap::COL_PHADTYPE, $this->phadtype);\n $criteria->add(PhoneBookTableMap::COL_PHADID, $this->phadid);\n $criteria->add(PhoneBookTableMap::COL_PHADSUBID, $this->phadsubid);\n $criteria->add(PhoneBookTableMap::COL_PHADSUBIDSEQ, $this->phadsubidseq);\n $criteria->add(PhoneBookTableMap::COL_PHADCONT, $this->phadcont);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildCommandeQuery::create();\n $criteria->add(CommandeTableMap::COL_ID_COMMANDE, $this->id_commande);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(JadwalPeer::DATABASE_NAME);\n $criteria->add(JadwalPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(JadwalPeer::SEMESTER_ID, $this->semester_id);\n $criteria->add(JadwalPeer::ID_RUANG, $this->id_ruang);\n $criteria->add(JadwalPeer::HARI, $this->hari);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildSalesHistoryNotesQuery::create();\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTTYPE, $this->shnttype);\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTSEQ, $this->shntseq);\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTKEY2, $this->shntkey2);\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTFORM, $this->shntform);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(J019tParticipantesPeer::DATABASE_NAME);\n\n\t\t$criteria->add(J019tParticipantesPeer::CO_PARTICIPANTE, $this->co_participante);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(ActionTypePeer::DATABASE_NAME);\n $criteria->add(ActionTypePeer::ID, $this->id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildPoReceivingHeadQuery::create();\n $criteria->add(PoReceivingHeadTableMap::COL_POTHNBR, $this->pothnbr);\n\n return $criteria;\n }", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public static function primaryKey()\n {\n $obj = new PrimaryKey();\n $obj->type = 'int';\n $obj->size = 10;\n $obj->auto_increment = true;\n $obj->primary_key = true;\n\n return $obj;\n }", "public function primaryKey()\n {\n return $this->set('primary_key', true);\n }", "public function makePrimaryKey()\n {\n $this->mapping['id'] = true;\n\n return $this;\n }", "private static function genPrimaryKeyWhereClause() {\n return \"WHERE \" . self::ID_KEY . \"=\" . self::transformForPreparedStatement(self::ID_KEY);\n }", "public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(FeatureCvtermPeer::DATABASE_NAME);\n $criteria->add(FeatureCvtermPeer::FEATURE_CVTERM_ID, $this->feature_cvterm_id);\n\n return $criteria;\n }", "public static function primaryKey()\n {\n return ['_id'];\n }", "protected function _getPrimaryKeyValue(){\n $primaryKey = $this->_getPrimaryKey();\n return $this->{$primaryKey};\n }", "public function getPrimaryKey()\r\n\t{\r\n\t\treturn $this->primaryKey;\r\n\t}", "protected function getPrimaryKeyCondition($primaryKeyValue) {\n return array(\n 'where' => \"{$this->_primaryKeyElement} = ?\",\n 'bindings' => array($primaryKeyValue)\n );\n }", "public function getPrimaryKey()\n {\n return $this->primaryKey;\n }", "protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }", "public static function primaryKey()\n {\n return static::PRIMARY_KEY;\n }", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey();", "function get_primary_key_column()\n {\n return $this->object->_primary_key_column;\n }", "abstract public function getPrimaryKey();", "abstract public function getPrimaryKey();", "public function primary(): self\n {\n $this->query = \" PRIMARY KEY \";\n return $this;\n }", "protected function _getPrimaryKeyAttributes(){\n\t\treturn ActiveRecordMetaData::getPrimaryKeys($this->_source, $this->_schema);\n\t}", "public function primary_key(){\n $table_columns = $this->meta();\n\n $primary_key_column = NULL;\n foreach ($table_columns as $col) :\n if($col->primary_key):\n $primary_key_column = $col->name;\n endif;\n endforeach;\n\n return $primary_key_column; \n }", "protected function generateKeyFromCriteria(Mephex_Model_Criteria $criteria)\n\t{\n\t\tif($criteria->hasCriteriaFields(array('id')))\n\t\t{\n\t\t\treturn 'id=' . $criteria->getCriteriaValue('id');\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "function get_primary_key_column()\n {\n return $this->_primary_key_column;\n }", "protected function getPrimaryKey()\n {\n return $this->getSubject()->getLastEntityId();\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_nom' => $this->iid_nom, 'id_nivel' => $this->iid_nivel);\n }\n return $this->aPrimary_key;\n }", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "public function getPrimaryKeyField()\n\t{\n\t\treturn $this->primaryKey;\n\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(PhoneBookTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADTYPE)) {\n $criteria->add(PhoneBookTableMap::COL_PHADTYPE, $this->phadtype);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADID)) {\n $criteria->add(PhoneBookTableMap::COL_PHADID, $this->phadid);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADSUBID)) {\n $criteria->add(PhoneBookTableMap::COL_PHADSUBID, $this->phadsubid);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADSUBIDSEQ)) {\n $criteria->add(PhoneBookTableMap::COL_PHADSUBIDSEQ, $this->phadsubidseq);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADCONT)) {\n $criteria->add(PhoneBookTableMap::COL_PHADCONT, $this->phadcont);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADINTL)) {\n $criteria->add(PhoneBookTableMap::COL_PHADINTL, $this->phadintl);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADTELENBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADTELENBR, $this->phadtelenbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADTELEEXT)) {\n $criteria->add(PhoneBookTableMap::COL_PHADTELEEXT, $this->phadteleext);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADINTLNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADINTLNBR, $this->phadintlnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADINTLEXT)) {\n $criteria->add(PhoneBookTableMap::COL_PHADINTLEXT, $this->phadintlext);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADFAXNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADFAXNBR, $this->phadfaxnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADIFAXNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADIFAXNBR, $this->phadifaxnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADCELLNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADCELLNBR, $this->phadcellnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADICELLNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADICELLNBR, $this->phadicellnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADHOMENBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADHOMENBR, $this->phadhomenbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADIHOMENBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADIHOMENBR, $this->phadihomenbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADWEBADDR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADWEBADDR, $this->phadwebaddr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADEMAILADDR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADEMAILADDR, $this->phademailaddr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADNAME)) {\n $criteria->add(PhoneBookTableMap::COL_PHADNAME, $this->phadname);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADCONTNAME)) {\n $criteria->add(PhoneBookTableMap::COL_PHADCONTNAME, $this->phadcontname);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_DATEUPDTD)) {\n $criteria->add(PhoneBookTableMap::COL_DATEUPDTD, $this->dateupdtd);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_TIMEUPDTD)) {\n $criteria->add(PhoneBookTableMap::COL_TIMEUPDTD, $this->timeupdtd);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_DUMMY)) {\n $criteria->add(PhoneBookTableMap::COL_DUMMY, $this->dummy);\n }\n\n return $criteria;\n }", "public static function primaryKey() {\n return (new static)->getKeyName();\n }", "public static function primaryKey()\n {\n return ['id'];\n }", "public static function primaryKey()\n {\n return ['id'];\n }", "protected static function buildConditionByPk($primary_key)\n {\n if (!is_array($primary_key)) {\n throw new InvalidParameterException(\n _s('Primary Key is no array, maybe you wanted to use AbstractModelWithId instead?')\n );\n }\n\n $sql = \" (\";\n\n // add each column to query\n foreach (array_keys($primary_key) as $i => $key) {\n if ($i > 0) {\n $sql .= \" AND \";\n }\n $sql .= \"\\\"\".$key.\"\\\" = :\".$key;\n }\n $sql .= \") \";\n\n return [\n 'sql' => $sql,\n 'params' => $primary_key\n ];\n }", "public function getPrimaryKey()\n {\n if ($this->_primaryKey === null) {\n $schema = $this->getSchema();\n $key = $schema->getPrimaryKey();\n if (count($key) === 1) {\n $key = $key[0];\n }\n $this->_primaryKey = $key;\n }\n\n return $this->_primaryKey;\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_asignatura' => $this->iid_asignatura, 'id_nom' => $this->iid_nom);\n }\n return $this->aPrimary_key;\n }", "abstract function getPrimaryKey();", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "function PrimaryKey ( $cPrimaryKey=null )\n{\n if ( isset($cPrimaryKey) ) {\n $cPrimaryKey = $this->_FixCase_($cPrimaryKey);\n if ( $this->_PrimaryKeyStr != $cPrimaryKey || $this->_inLoading_ ) {\n $this->_PrimaryKeyStr = $cPrimaryKey;\n if ( $this->KeyName() == '' ) $this->KeyName($cPrimaryKey);\n }\n return true;\n } else {\n return $this->_PrimaryKeyStr;\n }\n}", "public static function primaryKey()\n {\n return 'id';\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(CidadePeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(CidadePeer::ID)) $criteria->add(CidadePeer::ID, $this->id);\n\t\tif ($this->isColumnModified(CidadePeer::UF_ID)) $criteria->add(CidadePeer::UF_ID, $this->uf_id);\n\t\tif ($this->isColumnModified(CidadePeer::NOME)) $criteria->add(CidadePeer::NOME, $this->nome);\n\t\tif ($this->isColumnModified(CidadePeer::SLUG)) $criteria->add(CidadePeer::SLUG, $this->slug);\n\t\tif ($this->isColumnModified(CidadePeer::LONGITUDE)) $criteria->add(CidadePeer::LONGITUDE, $this->longitude);\n\t\tif ($this->isColumnModified(CidadePeer::LATITUDE)) $criteria->add(CidadePeer::LATITUDE, $this->latitude);\n\n\t\treturn $criteria;\n\t}", "public function primaryKey()\n {\n return $this->data[static::$primaryKey] ?? null;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_situacion' => $this->iid_situacion);\n }\n return $this->aPrimary_key;\n }", "public function getPk()\n {\n return $this->{static::primaryKey()};\n }", "public static function getPk(){\n return static::$_primaryKey;\n }", "function pk_key() {\r\n\t\t$c = 0;\r\n\t\tfor($i = 0; $i < count ( $this->fields ); $i ++) {\r\n\t\t\tif ($this->fields [$i] ['PK'] == 'yes') {\r\n\t\t\t\t$pk_key [$c] = $this->fields [$i] ['VAR'];\r\n\t\t\t\t$c ++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $pk_key;\r\n\t}", "public function buildCriteria()\n {\n $criteria = new Criteria(BiblioTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(BiblioTableMap::COL_BIBLIO_ID)) {\n $criteria->add(BiblioTableMap::COL_BIBLIO_ID, $this->biblio_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_TITLE)) {\n $criteria->add(BiblioTableMap::COL_TITLE, $this->title);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SOR)) {\n $criteria->add(BiblioTableMap::COL_SOR, $this->sor);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_EDITION)) {\n $criteria->add(BiblioTableMap::COL_EDITION, $this->edition);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_ISBN_ISSN)) {\n $criteria->add(BiblioTableMap::COL_ISBN_ISSN, $this->isbn_issn);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PUBLISHER_ID)) {\n $criteria->add(BiblioTableMap::COL_PUBLISHER_ID, $this->publisher_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PUBLISH_YEAR)) {\n $criteria->add(BiblioTableMap::COL_PUBLISH_YEAR, $this->publish_year);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_COLLATION)) {\n $criteria->add(BiblioTableMap::COL_COLLATION, $this->collation);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SERIES_TITLE)) {\n $criteria->add(BiblioTableMap::COL_SERIES_TITLE, $this->series_title);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_CALL_NUMBER)) {\n $criteria->add(BiblioTableMap::COL_CALL_NUMBER, $this->call_number);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_LANGUAGE_ID)) {\n $criteria->add(BiblioTableMap::COL_LANGUAGE_ID, $this->language_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SOURCE)) {\n $criteria->add(BiblioTableMap::COL_SOURCE, $this->source);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PUBLISH_PLACE_ID)) {\n $criteria->add(BiblioTableMap::COL_PUBLISH_PLACE_ID, $this->publish_place_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_CLASSIFICATION)) {\n $criteria->add(BiblioTableMap::COL_CLASSIFICATION, $this->classification);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_NOTES)) {\n $criteria->add(BiblioTableMap::COL_NOTES, $this->notes);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_IMAGE)) {\n $criteria->add(BiblioTableMap::COL_IMAGE, $this->image);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_FILE_ATT)) {\n $criteria->add(BiblioTableMap::COL_FILE_ATT, $this->file_att);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_OPAC_HIDE)) {\n $criteria->add(BiblioTableMap::COL_OPAC_HIDE, $this->opac_hide);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PROMOTED)) {\n $criteria->add(BiblioTableMap::COL_PROMOTED, $this->promoted);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_LABELS)) {\n $criteria->add(BiblioTableMap::COL_LABELS, $this->labels);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_FREQUENCY_ID)) {\n $criteria->add(BiblioTableMap::COL_FREQUENCY_ID, $this->frequency_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SPEC_DETAIL_INFO)) {\n $criteria->add(BiblioTableMap::COL_SPEC_DETAIL_INFO, $this->spec_detail_info);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_INPUT_DATE)) {\n $criteria->add(BiblioTableMap::COL_INPUT_DATE, $this->input_date);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_LAST_UPDATE)) {\n $criteria->add(BiblioTableMap::COL_LAST_UPDATE, $this->last_update);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_UID)) {\n $criteria->add(BiblioTableMap::COL_UID, $this->uid);\n }\n\n return $criteria;\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoParticipante();\n\t}", "public function getPKField() {\n return $this->_key_field;\n }", "public function getPrimaryKey()\n {\n return $this->getid();\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(ArticleTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(ArticleTableMap::COL_ARTICLE_ID)) {\n $criteria->add(ArticleTableMap::COL_ARTICLE_ID, $this->article_id);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_DESCRIPTION)) {\n $criteria->add(ArticleTableMap::COL_DESCRIPTION, $this->description);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_PRICE)) {\n $criteria->add(ArticleTableMap::COL_PRICE, $this->price);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_CREATION)) {\n $criteria->add(ArticleTableMap::COL_CREATION, $this->creation);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_VISIBLE)) {\n $criteria->add(ArticleTableMap::COL_VISIBLE, $this->visible);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_SHAPE_ID)) {\n $criteria->add(ArticleTableMap::COL_SHAPE_ID, $this->shape_id);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_CAKE_TYPE_ID)) {\n $criteria->add(ArticleTableMap::COL_CAKE_TYPE_ID, $this->cake_type_id);\n }\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(UserTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(UserTableMap::COL_ID)) {\n $criteria->add(UserTableMap::COL_ID, $this->id);\n }\n if ($this->isColumnModified(UserTableMap::COL_NICKNAME)) {\n $criteria->add(UserTableMap::COL_NICKNAME, $this->nickname);\n }\n if ($this->isColumnModified(UserTableMap::COL_EMAIL)) {\n $criteria->add(UserTableMap::COL_EMAIL, $this->email);\n }\n if ($this->isColumnModified(UserTableMap::COL_AGE)) {\n $criteria->add(UserTableMap::COL_AGE, $this->age);\n }\n if ($this->isColumnModified(UserTableMap::COL_SEX)) {\n $criteria->add(UserTableMap::COL_SEX, $this->sex);\n }\n if ($this->isColumnModified(UserTableMap::COL_CREATED_AT)) {\n $criteria->add(UserTableMap::COL_CREATED_AT, $this->created_at);\n }\n if ($this->isColumnModified(UserTableMap::COL_UPDATED_AT)) {\n $criteria->add(UserTableMap::COL_UPDATED_AT, $this->updated_at);\n }\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(YearPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(YearPeer::ID)) $criteria->add(YearPeer::ID, $this->id);\n if ($this->isColumnModified(YearPeer::NAME)) $criteria->add(YearPeer::NAME, $this->name);\n if ($this->isColumnModified(YearPeer::IS_ACTIVE)) $criteria->add(YearPeer::IS_ACTIVE, $this->is_active);\n if ($this->isColumnModified(YearPeer::IS_CLOSED)) $criteria->add(YearPeer::IS_CLOSED, $this->is_closed);\n if ($this->isColumnModified(YearPeer::FROM_DATE)) $criteria->add(YearPeer::FROM_DATE, $this->from_date);\n if ($this->isColumnModified(YearPeer::TO_DATE)) $criteria->add(YearPeer::TO_DATE, $this->to_date);\n if ($this->isColumnModified(YearPeer::SORTABLE_RANK)) $criteria->add(YearPeer::SORTABLE_RANK, $this->sortable_rank);\n\n return $criteria;\n }", "public function preparePrimaryKeyName()\n {\n $this->primaryKeyName = $this->getOption('primary');\n\n if (empty($this->primaryKeyName)) {\n $this->primaryKeyName = 'id';\n }\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->_rowKey;\n\t}", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "public function getPrimaryKey()\n {\n return $this->getId();\n }" ]
[ "0.74039143", "0.72935617", "0.7287205", "0.7247887", "0.7247887", "0.7236872", "0.7176888", "0.71193415", "0.7022065", "0.7002017", "0.6990735", "0.6932499", "0.68301713", "0.6812496", "0.6811818", "0.6755649", "0.67477554", "0.67276317", "0.66831625", "0.6667528", "0.66614306", "0.66586196", "0.6653777", "0.66295564", "0.6614502", "0.66135854", "0.66025174", "0.65976036", "0.6517876", "0.64890736", "0.63707733", "0.6293851", "0.6252668", "0.6252668", "0.6231136", "0.62132776", "0.621204", "0.6149842", "0.61129206", "0.5995781", "0.59892565", "0.59810257", "0.59530765", "0.5932384", "0.592853", "0.5907583", "0.58951765", "0.5881166", "0.58707184", "0.58707184", "0.58707184", "0.5838893", "0.58187824", "0.58187824", "0.5802273", "0.5781724", "0.57636184", "0.57566524", "0.5754696", "0.57505614", "0.57484186", "0.57432646", "0.57432646", "0.57432646", "0.57257366", "0.57206565", "0.57086545", "0.5708459", "0.5699336", "0.5693572", "0.5693572", "0.56878805", "0.56864494", "0.5682771", "0.5682771", "0.56616175", "0.565995", "0.5659713", "0.5659713", "0.5656618", "0.56557333", "0.5643852", "0.56422645", "0.56403077", "0.56208235", "0.56142354", "0.56096196", "0.5593042", "0.5591263", "0.5588928", "0.55862856", "0.55731374", "0.55664104", "0.5563195", "0.55467135", "0.5542282", "0.5542092", "0.5542092", "0.5542092", "0.5542092" ]
0.66176915
24
If the primary key is not null, return the hashcode of the primary key. Otherwise, return the hash code of the object.
public function hashCode() { $validPk = null !== $this->getProdId(); $validPrimaryKeyFKs = 3; $primaryKeyFKs = []; //relation tbl_prod_info_fk_c95266 to table tbl_prod_photos if ($this->aTblProdPhotos && $hash = spl_object_hash($this->aTblProdPhotos)) { $primaryKeyFKs[] = $hash; } else { $validPrimaryKeyFKs = false; } //relation tbl_prod_info_fk_55d783 to table tbl_prod_prices if ($this->aTblProdPrices && $hash = spl_object_hash($this->aTblProdPrices)) { $primaryKeyFKs[] = $hash; } else { $validPrimaryKeyFKs = false; } //relation tbl_prod_info_fk_937b39 to table tbl_prod_smaller if ($this->aTblProdSmaller && $hash = spl_object_hash($this->aTblProdSmaller)) { $primaryKeyFKs[] = $hash; } else { $validPrimaryKeyFKs = false; } if ($validPk) { return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE)); } elseif ($validPrimaryKeyFKs) { return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE)); } return spl_object_hash($this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hashCode()\n {\n $validPk = null !== $this->getId();\n\n $validPrimaryKeyFKs = 0;\n $primaryKeyFKs = [];\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function hashCode()\n {\n $validPk = null !== $this->getId();\n\n $validPrimaryKeyFKs = 0;\n $primaryKeyFKs = [];\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function hashCode()\n {\n $validPk = null !== $this->getId();\n\n $validPrimaryKeyFKs = 0;\n $primaryKeyFKs = [];\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function hashCode()\n {\n $validPk = null !== $this->getPhadtype() &&\n null !== $this->getPhadid() &&\n null !== $this->getPhadsubid() &&\n null !== $this->getPhadsubidseq() &&\n null !== $this->getPhadcont();\n\n $validPrimaryKeyFKs = 0;\n $primaryKeyFKs = [];\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function hashCode()\n {\n $validPk = null !== $this->getArticleId();\n\n $validPrimaryKeyFKs = 0;\n $primaryKeyFKs = [];\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function hashCode()\n {\n $validPk = null !== $this->getBiblioId();\n\n $validPrimaryKeyFKs = 0;\n $primaryKeyFKs = [];\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function hashCode()\n {\n $validPk = null !== $this->getPothnbr();\n\n $validPrimaryKeyFKs = 1;\n $primaryKeyFKs = [];\n\n //relation purchaseorder to table po_head\n if ($this->aPurchaseOrder && $hash = spl_object_hash($this->aPurchaseOrder)) {\n $primaryKeyFKs[] = $hash;\n } else {\n $validPrimaryKeyFKs = false;\n }\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function hashCode()\n {\n $validPk = null !== $this->getSessionid() &&\n null !== $this->getRecno() &&\n null !== $this->getOrderno();\n\n $validPrimaryKeyFKs = 0;\n $primaryKeyFKs = [];\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function hashCode()\n {\n $validPk = null !== $this->getId() &&\n null !== $this->getNickname();\n\n $validPrimaryKeyFKs = 0;\n $primaryKeyFKs = [];\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function hashCode()\n {\n $validPk = null !== $this->getShnttype() &&\n null !== $this->getShntseq() &&\n null !== $this->getShntkey2() &&\n null !== $this->getShntform();\n\n $validPrimaryKeyFKs = 0;\n $primaryKeyFKs = [];\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function hashCode()\n {\n $validPk = null !== $this->getIDCommande();\n\n $validPrimaryKeyFKs = 0;\n $primaryKeyFKs = [];\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function getHashCode()\n {\n return $this->hash_code;\n }", "public function hashCode() {\n return $this->_hash;\n }", "protected function getHashKey()\n {\n return $this->getHashKeyForId($this->getId());\n }", "public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function getHashCode(): int {\n\t\t$builder = new HashCodeBuilder();\n\t\treturn $builder\n\t\t\t->append($this->getPath())\n\t\t\t->append($this->isFilterable())\n\t\t\t->append($this->columnOptions['visible'])\n\t\t\t->toHashCode();\n\t}", "public function getPrimaryKey()\r\n\t{\r\n\t\treturn $this->primaryKey;\r\n\t}", "public function getPrimaryKey()\n {\n return $this->primaryKey;\n }", "protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }", "public function hashCode();", "public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->_rowKey;\n\t}", "public static function getPk(){\n return static::$_primaryKey;\n }", "function getHashCode($obj);", "public function getHash()\n {\n\tif ( !$this->hash )\n\t{\n\t $array= array(\n\t $this->isPrimaryKey(),\n\t $this->isNullable(),\n\t $this->dbName,\n\t $this->getDefaultValue(),\n\t $this->getType(),\n\t get_class($this)\n\t );\n\t $this->hash= md5(implode('|', $array));\n\t}\n\treturn $this->hash;\n }", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey()\n {\n return $this->getPothnbr();\n }", "public function getPk()\n {\n return $this->{static::primaryKey()};\n }", "public function getPrimaryKey()\n {\n if ($this->_primaryKey === null) {\n $schema = $this->getSchema();\n $key = $schema->getPrimaryKey();\n if (count($key) === 1) {\n $key = $key[0];\n }\n $this->_primaryKey = $key;\n }\n\n return $this->_primaryKey;\n }", "public function hashCode() : string;", "public function hashCode(): string;", "public function getPrimaryKey()\n {\n return $this->getid();\n }", "public function getPrimaryKey() {\n\t\treturn $this->_key_primary->name;\n\t}", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "function getPrimaryKey() {\n\n $count = $this->find('count');\n $primaryKey = $count + 1;\n\n if ($this->find('count', array('conditions' => array($this->name . '.' . $this->primaryKey => $primaryKey))) > 0) {\n\n $i = (int) $count;\n\n while ($i >= 1) {\n\n $i += 1;\n\n $primaryKey = $i;\n\n $returnValue = $this->find('count', array('conditions' => array($this->name . '.' . $this->primaryKey => $primaryKey)));\n\n if ($returnValue == 0) {\n\n break;\n }\n\n $i++;\n }\n\n return $primaryKey;\n } else {\n\n return $primaryKey;\n }\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey()\n {\n return $this->getSekolahId();\n }", "abstract public function getPrimaryKey();", "abstract public function getPrimaryKey();", "public static function _getPK(){\n return (property_exists(get_called_class(), '_pk') ? static::$_pk : 'id');\n }", "public function getHashCode();", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getHashId()\n {\n $prefixColumn = static::getHashIdPrefixColumn();\n $prefix = $prefixColumn ? $this->model->attributes[$prefixColumn] : null;\n $hashId = app(HashidGenerator::class)->encode($this->model->getKey());\n\n return ($prefix ? $prefix.'-' : '').$hashId;\n }", "public function getPk()\n {\n return $this->_pk;\n }", "function getPrimaryKey () {\n\t\t\n\t\t$count = $this->find('count');\n\t\t\n\t\t$primaryKey = $count+1;\n\t\t\n\t\tif( $this->find('count',array('conditions'=>array($this->name . '.' . $this->primaryKey=>$primaryKey))) > 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t$i = (int) $count;\n\n while ( $i >= 1 ) {\n\n $i += 1;\n\t\t\t\t\t\n\t\t\t\t\t$primaryKey = $i;\n \n\t\t\t\t\t$returnValue = $this->find('count',array('conditions'=>array($this->name . '.' . $this->primaryKey=>$primaryKey)));\n\n if ($returnValue == 0) {\n \t\t\t\t\t\t\t\t\t\n break;\n }\n\t\t\t\t\t\n\t\t\t\t\t$i++;\n }\n\n return $primaryKey;\n\t\t\t\n\t\t} else {\n\t\t\n\t\t\treturn $primaryKey;\n\n\t\t}\t\n\t\n\t}", "public function getHashIndex(): ?int\n {\n return $this->hashIndex;\n }", "public function getHashIndex(): ?int\n {\n return $this->hashIndex;\n }", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "public function primaryKey()\n {\n return $this->data[static::$primaryKey] ?? null;\n }", "public function key()\n {\n return key($this->_object);\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_nom' => $this->iid_nom, 'id_nivel' => $this->iid_nivel);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey()\n\t{\n $indexes = $this->getIndexes();\n\n foreach ($indexes as $index){\n if ($index['Key_name'] == \"PRIMARY\"){\n return $index;\n }\n }\n\n \t\t\n\t}", "public function getIdHash() {\n return encrypt( [ 'id' => $this->id ] );\n }", "public static function getPrimaryKey()\n {\n return self::getRepo()->getPrimaryKey();\n }", "public function getPrimaryKeyField()\n\t{\n\t\treturn $this->primaryKey;\n\t}", "public function hashObject($object);", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "public function getHash()\n\t{\n\t\t// Create a string that should uniquely represent the media instance.\n\t\t// We'll base it on the table name, concatenated with a '.', followed by the\n\t\t// ID value.\n\t\t$string = $this->getTable().'.'.$this->getKey();\n\n\t\t// We will use the SHA1 algorithm, as it is less prone to collision attacks,\n\t\t// while still being quick enough for mass hashing.\n\t\treturn hash('sha1', $string);\n\t}", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "public static function getPrimaryKeyHashFromRow($row, $startcol = 0)\n\t{\n\t\t// If the PK cannot be derived from the row, return NULL.\n\t\tif ($row[$startcol + 57] === null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (string) $row[$startcol + 57];\n\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_asignatura' => $this->iid_asignatura, 'id_nom' => $this->iid_nom);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('nivel_stgr' => $this->inivel_stgr);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_region' => $this->iid_region);\n }\n return $this->aPrimary_key;\n }", "public static function getPrimaryKeyHashFromRow($row, $startcol = 0)\n {\n // If the PK cannot be derived from the row, return null.\n if ($row[$startcol + 2] === null) {\n return null;\n }\n\n return (string) $row[$startcol + 2];\n }", "abstract function getPrimaryKey();", "public function hashCode() {\n return $this->getClassName().$this->name;\n }", "public function getPkValue(){\n $pk = static::getPk();\n return (int) $this->$pk;\n }", "public function getPrimaryKey() {\n return $this->_data->getDeepValue('indexes/primary/columns/0', null);\n }", "public function hash();", "public function hashCode()\n {\n // TODO: Implement hashCode() method.\n }", "public function getPKField() {\n return $this->_key_field;\n }", "public static function getPrimaryKeyHashFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM)\n {\n // If the PK cannot be derived from the row, return NULL.\n if ($row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Oehhnbr', TableMap::TYPE_PHPNAME, $indexType)] === null && $row[TableMap::TYPE_NUM == $indexType ? 1 + $offset : static::translateFieldName('Oedhline', TableMap::TYPE_PHPNAME, $indexType)] === null && $row[TableMap::TYPE_NUM == $indexType ? 2 + $offset : static::translateFieldName('Inititemnbr', TableMap::TYPE_PHPNAME, $indexType)] === null && $row[TableMap::TYPE_NUM == $indexType ? 3 + $offset : static::translateFieldName('Oeshtag', TableMap::TYPE_PHPNAME, $indexType)] === null && $row[TableMap::TYPE_NUM == $indexType ? 4 + $offset : static::translateFieldName('Oeshlotser', TableMap::TYPE_PHPNAME, $indexType)] === null && $row[TableMap::TYPE_NUM == $indexType ? 5 + $offset : static::translateFieldName('Oeshbin', TableMap::TYPE_PHPNAME, $indexType)] === null && $row[TableMap::TYPE_NUM == $indexType ? 6 + $offset : static::translateFieldName('Oeshplltnbr', TableMap::TYPE_PHPNAME, $indexType)] === null && $row[TableMap::TYPE_NUM == $indexType ? 7 + $offset : static::translateFieldName('Oeshcrtnnbr', TableMap::TYPE_PHPNAME, $indexType)] === null) {\n return null;\n }\n\n return serialize([(null === $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Oehhnbr', TableMap::TYPE_PHPNAME, $indexType)] || is_scalar($row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Oehhnbr', TableMap::TYPE_PHPNAME, $indexType)]) || is_callable([$row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Oehhnbr', TableMap::TYPE_PHPNAME, $indexType)], '__toString']) ? (string) $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Oehhnbr', TableMap::TYPE_PHPNAME, $indexType)] : $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Oehhnbr', TableMap::TYPE_PHPNAME, $indexType)]), (null === $row[TableMap::TYPE_NUM == $indexType ? 1 + $offset : static::translateFieldName('Oedhline', TableMap::TYPE_PHPNAME, $indexType)] || is_scalar($row[TableMap::TYPE_NUM == $indexType ? 1 + $offset : static::translateFieldName('Oedhline', TableMap::TYPE_PHPNAME, $indexType)]) || is_callable([$row[TableMap::TYPE_NUM == $indexType ? 1 + $offset : static::translateFieldName('Oedhline', TableMap::TYPE_PHPNAME, $indexType)], '__toString']) ? (string) $row[TableMap::TYPE_NUM == $indexType ? 1 + $offset : static::translateFieldName('Oedhline', TableMap::TYPE_PHPNAME, $indexType)] : $row[TableMap::TYPE_NUM == $indexType ? 1 + $offset : static::translateFieldName('Oedhline', TableMap::TYPE_PHPNAME, $indexType)]), (null === $row[TableMap::TYPE_NUM == $indexType ? 2 + $offset : static::translateFieldName('Inititemnbr', TableMap::TYPE_PHPNAME, $indexType)] || is_scalar($row[TableMap::TYPE_NUM == $indexType ? 2 + $offset : static::translateFieldName('Inititemnbr', TableMap::TYPE_PHPNAME, $indexType)]) || is_callable([$row[TableMap::TYPE_NUM == $indexType ? 2 + $offset : static::translateFieldName('Inititemnbr', TableMap::TYPE_PHPNAME, $indexType)], '__toString']) ? (string) $row[TableMap::TYPE_NUM == $indexType ? 2 + $offset : static::translateFieldName('Inititemnbr', TableMap::TYPE_PHPNAME, $indexType)] : $row[TableMap::TYPE_NUM == $indexType ? 2 + $offset : static::translateFieldName('Inititemnbr', TableMap::TYPE_PHPNAME, $indexType)]), (null === $row[TableMap::TYPE_NUM == $indexType ? 3 + $offset : static::translateFieldName('Oeshtag', TableMap::TYPE_PHPNAME, $indexType)] || is_scalar($row[TableMap::TYPE_NUM == $indexType ? 3 + $offset : static::translateFieldName('Oeshtag', TableMap::TYPE_PHPNAME, $indexType)]) || is_callable([$row[TableMap::TYPE_NUM == $indexType ? 3 + $offset : static::translateFieldName('Oeshtag', TableMap::TYPE_PHPNAME, $indexType)], '__toString']) ? (string) $row[TableMap::TYPE_NUM == $indexType ? 3 + $offset : static::translateFieldName('Oeshtag', TableMap::TYPE_PHPNAME, $indexType)] : $row[TableMap::TYPE_NUM == $indexType ? 3 + $offset : static::translateFieldName('Oeshtag', TableMap::TYPE_PHPNAME, $indexType)]), (null === $row[TableMap::TYPE_NUM == $indexType ? 4 + $offset : static::translateFieldName('Oeshlotser', TableMap::TYPE_PHPNAME, $indexType)] || is_scalar($row[TableMap::TYPE_NUM == $indexType ? 4 + $offset : static::translateFieldName('Oeshlotser', TableMap::TYPE_PHPNAME, $indexType)]) || is_callable([$row[TableMap::TYPE_NUM == $indexType ? 4 + $offset : static::translateFieldName('Oeshlotser', TableMap::TYPE_PHPNAME, $indexType)], '__toString']) ? (string) $row[TableMap::TYPE_NUM == $indexType ? 4 + $offset : static::translateFieldName('Oeshlotser', TableMap::TYPE_PHPNAME, $indexType)] : $row[TableMap::TYPE_NUM == $indexType ? 4 + $offset : static::translateFieldName('Oeshlotser', TableMap::TYPE_PHPNAME, $indexType)]), (null === $row[TableMap::TYPE_NUM == $indexType ? 5 + $offset : static::translateFieldName('Oeshbin', TableMap::TYPE_PHPNAME, $indexType)] || is_scalar($row[TableMap::TYPE_NUM == $indexType ? 5 + $offset : static::translateFieldName('Oeshbin', TableMap::TYPE_PHPNAME, $indexType)]) || is_callable([$row[TableMap::TYPE_NUM == $indexType ? 5 + $offset : static::translateFieldName('Oeshbin', TableMap::TYPE_PHPNAME, $indexType)], '__toString']) ? (string) $row[TableMap::TYPE_NUM == $indexType ? 5 + $offset : static::translateFieldName('Oeshbin', TableMap::TYPE_PHPNAME, $indexType)] : $row[TableMap::TYPE_NUM == $indexType ? 5 + $offset : static::translateFieldName('Oeshbin', TableMap::TYPE_PHPNAME, $indexType)]), (null === $row[TableMap::TYPE_NUM == $indexType ? 6 + $offset : static::translateFieldName('Oeshplltnbr', TableMap::TYPE_PHPNAME, $indexType)] || is_scalar($row[TableMap::TYPE_NUM == $indexType ? 6 + $offset : static::translateFieldName('Oeshplltnbr', TableMap::TYPE_PHPNAME, $indexType)]) || is_callable([$row[TableMap::TYPE_NUM == $indexType ? 6 + $offset : static::translateFieldName('Oeshplltnbr', TableMap::TYPE_PHPNAME, $indexType)], '__toString']) ? (string) $row[TableMap::TYPE_NUM == $indexType ? 6 + $offset : static::translateFieldName('Oeshplltnbr', TableMap::TYPE_PHPNAME, $indexType)] : $row[TableMap::TYPE_NUM == $indexType ? 6 + $offset : static::translateFieldName('Oeshplltnbr', TableMap::TYPE_PHPNAME, $indexType)]), (null === $row[TableMap::TYPE_NUM == $indexType ? 7 + $offset : static::translateFieldName('Oeshcrtnnbr', TableMap::TYPE_PHPNAME, $indexType)] || is_scalar($row[TableMap::TYPE_NUM == $indexType ? 7 + $offset : static::translateFieldName('Oeshcrtnnbr', TableMap::TYPE_PHPNAME, $indexType)]) || is_callable([$row[TableMap::TYPE_NUM == $indexType ? 7 + $offset : static::translateFieldName('Oeshcrtnnbr', TableMap::TYPE_PHPNAME, $indexType)], '__toString']) ? (string) $row[TableMap::TYPE_NUM == $indexType ? 7 + $offset : static::translateFieldName('Oeshcrtnnbr', TableMap::TYPE_PHPNAME, $indexType)] : $row[TableMap::TYPE_NUM == $indexType ? 7 + $offset : static::translateFieldName('Oeshcrtnnbr', TableMap::TYPE_PHPNAME, $indexType)])]);\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "#[Pure]\nfunction spl_object_hash(object $object): string {}", "public static function getPrimaryKeyHashFromRow($row, $startcol = 0)\n\t{\n\t\t// If the PK cannot be derived from the row, return NULL.\n\t\tif ($row[$startcol + 1] === null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (string) $row[$startcol + 1];\n\t}", "public static function getPrimaryKeyHashFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM)\n {\n // If the PK cannot be derived from the row, return NULL.\n if ($row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Oid', TableMap::TYPE_PHPNAME, $indexType)] === null) {\n return null;\n }\n\n return null === $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Oid', TableMap::TYPE_PHPNAME, $indexType)] || is_scalar($row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Oid', TableMap::TYPE_PHPNAME, $indexType)]) || is_callable([$row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Oid', TableMap::TYPE_PHPNAME, $indexType)], '__toString']) ? (string) $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Oid', TableMap::TYPE_PHPNAME, $indexType)] : $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Oid', TableMap::TYPE_PHPNAME, $indexType)];\n }", "public function key(): int|string|null;", "public function getKey()\n {\n return $this->object->getKey();\n }", "public function getKey()\n {\n return $this->object->getKey();\n }", "public function getIdKey()\n {\n\n if (is_null($this->idKey))\n $this->idKey = BuizCore::uniqKey();\n\n return $this->idKey;\n\n }" ]
[ "0.78566974", "0.78566974", "0.78566974", "0.7742431", "0.7738423", "0.76423997", "0.7622025", "0.7619179", "0.7618223", "0.7539026", "0.7417955", "0.64878756", "0.6322118", "0.6136845", "0.6114651", "0.61097574", "0.61097574", "0.6089344", "0.60876435", "0.6060637", "0.60522693", "0.6034846", "0.6029777", "0.6015763", "0.59813315", "0.5978465", "0.59778684", "0.5969239", "0.5969239", "0.5969239", "0.59678674", "0.5954964", "0.59126234", "0.5900127", "0.58821917", "0.5875364", "0.58647996", "0.5836961", "0.5836961", "0.5836961", "0.5836961", "0.5836961", "0.5827555", "0.5821306", "0.58125436", "0.5807955", "0.5807955", "0.58012074", "0.57977736", "0.5796357", "0.5796357", "0.5796357", "0.5796357", "0.5796357", "0.5796357", "0.5796357", "0.5796357", "0.57941043", "0.5793339", "0.5778905", "0.57777375", "0.57777375", "0.577592", "0.577592", "0.577592", "0.577564", "0.5774172", "0.5770293", "0.57579744", "0.57579744", "0.5747524", "0.57389826", "0.5734789", "0.57098025", "0.5706194", "0.5701036", "0.56862366", "0.56770754", "0.5676221", "0.56646794", "0.56626016", "0.56556815", "0.5653302", "0.56499314", "0.56467503", "0.56450075", "0.56446284", "0.56327313", "0.56274486", "0.56199425", "0.56153387", "0.5602661", "0.559812", "0.5592498", "0.5591471", "0.5586618", "0.5584875", "0.5583823", "0.5583823", "0.55801505" ]
0.705405
11
Returns the primary key for this object (row).
public function getPrimaryKey() { return $this->getProdId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPrimaryKey()\n\t{\n\t\treturn $this->_rowKey;\n\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}", "public function getPrimaryKey(phpDataMapper_Model_Row $row)\n\t{\n\t\t$pkField = $this->getPrimaryKeyField();\n\t\treturn $row->$pkField;\n\t}", "public function getPrimaryKey()\r\n\t{\r\n\t\treturn $this->primaryKey;\r\n\t}", "public function getPrimaryKey() {\n\t\treturn $this->_key_primary->name;\n\t}", "public function getPrimaryKey()\n {\n return $this->primaryKey;\n }", "function get_primary_key_column()\n {\n return $this->object->_primary_key_column;\n }", "protected function _getPrimaryKey(): string\n {\n if (!$this->_primaryKey) {\n $primaryKey = (array)$this->_table->getPrimaryKey();\n $this->_primaryKey = $primaryKey[0];\n }\n\n return $this->_primaryKey;\n }", "public function getPk()\n {\n return $this->{static::primaryKey()};\n }", "public function get_primary_row(){\r\n $result = $this->db->query(\"SHOW KEYS FROM \". $this->db->formatTableName($this->table). \"\r\n WHERE Key_name = %s\"\r\n , \"PRIMARY\");\r\n $pk = \"\";\r\n foreach ($result as $res){\r\n $pk = $res[\"Column_name\"];\r\n }\r\n return $pk;\r\n }", "public function getPrimaryKey()\n {\n return $this->getPothnbr();\n }", "public function getPrimaryKey()\n {\n return $this->getid();\n }", "protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }", "public function getPrimaryKey() {\n return $this->_data->getDeepValue('indexes/primary/columns/0', null);\n }", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey();", "public static function getPk(){\n return static::$_primaryKey;\n }", "public function getPrimaryKey()\n {\n if ($this->_primaryKey === null) {\n $schema = $this->getSchema();\n $key = $schema->getPrimaryKey();\n if (count($key) === 1) {\n $key = $key[0];\n }\n $this->_primaryKey = $key;\n }\n\n return $this->_primaryKey;\n }", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKeyField()\n\t{\n\t\treturn $this->primaryKey;\n\t}", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "public function getPrimaryKey()\n {\n return $this->getId();\n }", "function get_primary_key_column()\n {\n return $this->_primary_key_column;\n }", "public function primary_key(){\n $table_columns = $this->meta();\n\n $primary_key_column = NULL;\n foreach ($table_columns as $col) :\n if($col->primary_key):\n $primary_key_column = $col->name;\n endif;\n endforeach;\n\n return $primary_key_column; \n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->name;\n\t}", "private function getPrimaryKey()\n {\n $result = database()->fetchResult('SHOW KEYS FROM ' . $this->table . ' WHERE Key_name = \"PRIMARY\"');\n\n return ($result['Column_name'] ?? null);\n }", "public function getPrimaryKey()\n {\n $cols = $this->info('cols');\n return $cols[0];\n }", "public function getPrimaryKey()\n {\n return $this->getSekolahId();\n }", "public static function getPrimaryKey()\n {\n return self::getRepo()->getPrimaryKey();\n }", "public static function primaryKey()\n {\n return static::PRIMARY_KEY;\n }", "public function primaryKey()\n {\n return $this->data[static::$primaryKey] ?? null;\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "public static function primaryKey() {\n return (new static)->getKeyName();\n }", "public function getPrimaryKeyColumn() : string\n {\n return $this->primaryKey;\n }", "public function primaryKey()\n {\n return $this->set('primary_key', true);\n }", "public function getPrimaryKeyName()\n {\n return self::$primary_key_name;\n }", "abstract public function getPrimaryKey();", "abstract public function getPrimaryKey();", "public function getPrimaryKeyFieldName(){\n\t\treturn $this->primaryKey;\n\t}", "public function getPrimaryKeyName()\n {\n return $this->primaryKeyName;\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "protected function getPrimaryKey()\n {\n return $this->getSubject()->getLastEntityId();\n }", "public function getPrimaryKey()\n {\n return $this->getArticleId();\n }", "public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }", "public function getId()\n {\n return $this->{self::getPrimaryKey()};\n }", "public function getPk()\n {\n return $this->_pk;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }", "public function getID()\n {\n return $this->getKey();\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('CampaignDefinitionsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('CampaignDefinitionsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "abstract function getPrimaryKey();", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoParticipante();\n\t}", "public function getKeyName()\n {\n return $this->primaryKey;\n }", "public function getKeyName()\n {\n return $this->primaryKey;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_nom' => $this->iid_nom, 'id_nivel' => $this->iid_nivel);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "protected function _getPrimaryKey(){\n $def = $this->_getDef();\n foreach($def as $column){\n if($column['primary'] === true){\n return $column['field_name'];\n }\n }\n \n return false;\n }", "public function getPrimaryKey()\n {\n return $this->getIdmontacargas();\n }", "public function getPrimaryKeyField()\n\t{\n\t\tif ($this->primaryKeyField === null)\n\t\t{\n\t\t\tthrow new DataMapper_Exception('No primary key field set for ' . __CLASS__);\n\t\t}\n\t\treturn $this->primaryKeyField;\n\t}", "public function id()\n\t{\n\t\treturn $this->get($this->meta()->primary_key);\n\t}", "public function getKey()\n {\n return $this->id;\n }", "public function key()\r\n\t{\r\n\t\treturn $this->elements[$this->i]->get($this->obj->primaryKey);\r\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoNumInventario();\n\t}", "public function getRowId() {\n return $this->_row_id;\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoUsuario();\n\t}", "protected function _getPrimaryKeyValue(){\n $primaryKey = $this->_getPrimaryKey();\n return $this->{$primaryKey};\n }", "public function get_id()\n {\n $pkey = static::tinydb_get_table_info()->primary_key;\n if (is_array($pkey)) {\n $val = array();\n foreach ($pkey as $field) {\n $val[$field] = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($field)->type,\n $this->tinydb_rowdata[$field]);\n }\n } else {\n $val = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($pkey)->type,\n $this->tinydb_rowdata[$pkey]);\n }\n\n\n return $val;\n }", "public function getPKField() {\n return $this->_key_field;\n }", "public function getPrimaryKey()\n\t{\n $indexes = $this->getIndexes();\n\n foreach ($indexes as $index){\n if ($index['Key_name'] == \"PRIMARY\"){\n return $index;\n }\n }\n\n \t\t\n\t}", "public function get_primary_column()\n {\n }", "public function getRowID() {\n return $this->_row_id;\n }", "function getPrimaryKey() {\n\n $count = $this->find('count');\n $primaryKey = $count + 1;\n\n if ($this->find('count', array('conditions' => array($this->name . '.' . $this->primaryKey => $primaryKey))) > 0) {\n\n $i = (int) $count;\n\n while ($i >= 1) {\n\n $i += 1;\n\n $primaryKey = $i;\n\n $returnValue = $this->find('count', array('conditions' => array($this->name . '.' . $this->primaryKey => $primaryKey)));\n\n if ($returnValue == 0) {\n\n break;\n }\n\n $i++;\n }\n\n return $primaryKey;\n } else {\n\n return $primaryKey;\n }\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_region' => $this->iid_region);\n }\n return $this->aPrimary_key;\n }", "public static function primaryKey()\n {\n $obj = new PrimaryKey();\n $obj->type = 'int';\n $obj->size = 10;\n $obj->auto_increment = true;\n $obj->primary_key = true;\n\n return $obj;\n }", "public function getId()\n {\n return $this->getPrimaryKey();\n }", "public function getId()\n {\n return $this->getPrimaryKey();\n }", "public function getId()\n {\n return $this->getPrimaryKey();\n }", "public function getId()\n {\n return $this->getPrimaryKey();\n }", "private function _fetch_primary_key()\n {\n if($this->primaryKey == NULl)\n {\n $this->primaryKey = $this->db->query(\"SHOW KEYS FROM `\".$this->_table.\"` WHERE Key_name = 'PRIMARY'\")->row()->Column_name;\n }\n }", "public function getKeyName()\n {\n if (!$this->primaryKey) {\n if ($key = $this->getPrimaryFromFields()) {\n $this->primaryKey = $key;\n } else {\n $this->primaryKey = 'id';\n }\n }\n\n return $this->primaryKey;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_asignatura' => $this->iid_asignatura, 'id_nom' => $this->iid_nom);\n }\n return $this->aPrimary_key;\n }", "public function get_key($row) {\n return null;\n }", "public function id()\n {\n return $this->read($this->metadata['pk']->name);\n }" ]
[ "0.8595145", "0.84201205", "0.84201205", "0.8416345", "0.8306896", "0.82407564", "0.8182611", "0.81780905", "0.8136161", "0.8115969", "0.8105539", "0.8069275", "0.80621624", "0.8044358", "0.8020919", "0.79972017", "0.79690564", "0.79690564", "0.79690564", "0.79638743", "0.79376566", "0.7916959", "0.7916959", "0.7916959", "0.7908159", "0.7908159", "0.7908159", "0.7908159", "0.7908159", "0.7908159", "0.7908159", "0.7908159", "0.7907829", "0.79066193", "0.79066193", "0.79066193", "0.79066193", "0.79066193", "0.78977764", "0.784511", "0.7831004", "0.7830678", "0.77924657", "0.77709365", "0.7766865", "0.7755637", "0.77382135", "0.7725292", "0.7724228", "0.77136314", "0.770217", "0.7678825", "0.7662507", "0.7662507", "0.76586854", "0.76573426", "0.76545405", "0.7641267", "0.76001304", "0.75701106", "0.7538834", "0.7538834", "0.75260454", "0.75245374", "0.7522187", "0.7497253", "0.74854386", "0.7482703", "0.74708706", "0.747045", "0.74689156", "0.74689156", "0.7457395", "0.7450013", "0.7445242", "0.74256724", "0.7413914", "0.7407781", "0.7402762", "0.73929614", "0.7389691", "0.7389249", "0.73854333", "0.73795146", "0.73663443", "0.7365351", "0.7361217", "0.73517317", "0.73493546", "0.73409426", "0.73352206", "0.73338616", "0.7328904", "0.7328904", "0.7328904", "0.7328904", "0.73285466", "0.731759", "0.73151785", "0.73110664", "0.73101586" ]
0.0
-1
Generic method to set the primary key (prod_id column).
public function setPrimaryKey($key) { $this->setProdId($key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function product_id($product_id=null)\n {\n if (isset($product_id)) $this->product_id = $product_id;\n return $this->product_id;\n }", "public function getPrimaryKey()\n {\n return $this->getProdId();\n }", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "private function alterPrimaryKey()\n {\n if(is_array($this->primaryKeyValue)){\n // check for auto increment\n $autoIncrement = $this->primaryKeyValue['auto_increment'];\n if($autoIncrement){\n $increment = \" AUTO_INCREMENT, AUTO_INCREMENT=1\";\n }\n\n $this->addCollectionQuery(\n \"\n --\n -- AUTO_INCREMENT for table `{$this->tableName}`\n --\n ALTER TABLE `{$this->tableName}`\n MODIFY {$this->createColumnDefinition($this->primaryKeyValue)}{$increment};\n \"\n );\n }\n }", "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function setPrimaryKey($key) {\n $this->primaryKey = $key;\n }", "function setPrimaryKey($inKey) {\n\t\tlist($ID) = explode(self::PRIMARY_KEY_SEPARATOR, $inKey);\n\t\t$this->setID($ID);\n\t}", "function setPrimaryKey($inKey) {\n\t\tlist($ID) = explode(self::PRIMARY_KEY_SEPARATOR, $inKey);\n\t\t$this->setID($ID);\n\t}", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_item') && $val_id !== '') $this->iid_item = (int)$val_id; \n }\n }\n }", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_item') && $val_id !== '') $this->iid_item = (int)$val_id; \n }\n }\n }", "public function setPrimaryKey($key)\n {\n $this->setSekolahId($key);\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoNumInventario($key);\n\t}", "public function setPrimaryKey($key)\n {\n $this->setid($key);\n }", "public function setPrimaryKey($key)\n {\n $this->setArticleId($key);\n }", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoParticipante($key);\n\t}", "function setPrimaryKey($pkey_name){\n\n\t\t$this->pkey = $pkey_name;\n\n\t}", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_ubi') && $val_id !== '') $this->iid_ubi = (int)$val_id;\n if (($nom_id == 'id_tarifa') && $val_id !== '') $this->iid_tarifa = (int)$val_id;\n if (($nom_id == 'year') && $val_id !== '') $this->iyear = (int)$val_id;\n if (($nom_id == 'id_serie') && $val_id !== '') $this->iid_serie = (int)$val_id;\n }\n }\n }", "public function setProductId($id);", "public function setPrimaryKey($key)\n {\n $this->setPothnbr($key);\n }", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_nom') && $val_id !== '') $this->iid_nom = (int)$val_id;\n if (($nom_id == 'id_nivel') && $val_id !== '') $this->iid_nivel = (int)$val_id;\n }\n }\n }", "public function setPrimaryKey($key)\n {\n $this->setOpPrimeId($key);\n }", "public function setPrimaryKey($key)\n {\n $this->setIDCommande($key);\n }", "public function setPrimaryKey($key)\n {\n $this->setIdmontacargas($key);\n }", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_activ') && $val_id !== '') $this->iid_activ = (int)$val_id;\n if (($nom_id == 'id_asignatura') && $val_id !== '') $this->iid_asignatura = (int)$val_id;\n if (($nom_id == 'id_nom') && $val_id !== '') $this->iid_nom = (int)$val_id;\n }\n }\n }", "public function getProdId()\n {\n return $this->prod_id;\n }", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setVenueid($key);\n\t}", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'nivel_stgr') && $val_id !== '') $this->inivel_stgr = (int)$val_id;\n }\n }\n }", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoUsuario($key);\n\t}", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_dl') && $val_id !== '') $this->iid_dl = $val_id;\n }\n }\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_situacion') && $val_id !== '') $this->iid_situacion = (int)$val_id; \n }\n }\n }", "public function setIdKey($idKey);", "public function setPrimaryKey($key)\n {\n $this->setBiblioId($key);\n }", "public function setPrimaryKey($key)\n {\n $this->setIdBangunan($key);\n }", "protected function setUpPrimaryKey()\n {\n $this->getOldTable()->createColumn('foo', Type::STRING, array('length' => 50));\n $this->getOldTable()->createColumn('bar', Type::STRING, array('length' => 50));\n\n $this->getOldTable()->createPrimaryKey(array('foo'), 'pk');\n\n $this->createOldTable();\n }", "public function set_primary_key_field($primary_key_field = NULL)\n\t{\n\t\t$this->_primary_key_field = $primary_key_field;\n\t}", "public function setPrimaryKey($primaryKey);", "function setPrimaryKey($inKey) {\n\t\tlist($movieID, $CountryID) = explode(self::PRIMARY_KEY_SEPARATOR, $inKey);\n\t\t$this->setMovieID($movieID);\n\t\t$this->setCountryID($CountryID);\n\t}", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_region') && $val_id !== '') $this->iid_region = (int)$val_id;\n }\n }\n }", "public function setProdId($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->prod_id !== $v) {\n $this->prod_id = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ID] = true;\n }\n\n if ($this->aTblProdPhotos !== null && $this->aTblProdPhotos->getProdId() !== $v) {\n $this->aTblProdPhotos = null;\n }\n\n if ($this->aTblProdPrices !== null && $this->aTblProdPrices->getProdId() !== $v) {\n $this->aTblProdPrices = null;\n }\n\n if ($this->aTblProdSmaller !== null && $this->aTblProdSmaller->getProdId() !== $v) {\n $this->aTblProdSmaller = null;\n }\n\n return $this;\n }", "public function preparePrimaryKeyName()\n {\n $this->primaryKeyName = $this->getOption('primary');\n\n if (empty($this->primaryKeyName)) {\n $this->primaryKeyName = 'id';\n }\n }", "function set_product_sequence($voucher_id, $prod_id, $seq)\n\t{\n\t\t$this->db->where(array('voucher_id'=>$voucher_id, 'product_id'=>$prod_id));\n\t\t$this->db->update('vouchers_products', array('sequence'=>$seq));\n\t}", "protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }", "abstract public function getPrimaryKey();", "abstract public function getPrimaryKey();", "function getID(){ return (int)$this->productInfo['products_id']; }", "public function setProductKey($val)\n {\n $this->_propDict[\"productKey\"] = $val;\n return $this;\n }", "public function setProductKey($val)\n {\n $this->_propDict[\"productKey\"] = $val;\n return $this;\n }", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "abstract function getPrimaryKey();", "public function getProductIdFieldName() {\n return 'products_id';\n }", "public function _meta_type_primary_id_override( $key, $original ) {\n\n\t\tif ( $original === $this->get_meta_type() . '_id' ) {\n\t\t\t$key = static::get_meta_table()->get_primary_id_column();\n\t\t}\n\n\t\treturn $key;\n\t}", "function primary_key()\r\n\t{\r\n\t\treturn 'key';\r\n\t}", "public function setPrimaryKey(string $key = null)\n {\n if (empty($key)) {\n $class = explode('\\\\', get_class($this));\n $this->primaryKey = strtolower(array_pop($class)) . '_id';\n return $this;\n }\n $this->primaryKey = $key;\n return $this;\n }", "function getProdId($product){\r\n require '../../model/dbconnect.php';\r\n $prod = $db->quote($product);\r\n $rows_prod = $db->query(\"SELECT id FROM product WHERE name = $prod\");\r\n if ($rows_prod) {\r\n foreach($rows_prod as $row)\r\n return $row['id'];\r\n }\r\n }", "public function setProductIdAttribute($input)\n {\n $this->attributes['product_id'] = $input ? $input : null;\n }", "public function setId_product($id_product)\n {\n $this->id_product = $id_product;\n\n return $this;\n }", "public function setKeyFromData()\n\t{\n\t\t$key = isset($this->data[$this->primaryKey])\n\t\t\t? $this->data[$this->primaryKey]\n\t\t\t: null;\n\n\t\tif ($key !== null && !is_numeric($key)) {\n\t\t\t$key = Hash::decode($key);\n\t\t}\n\n\t\t$this->key = $key;\n\t}", "public function getPrefixedIdAttribute()\n {\n return 'product-' . $this->id;\n }", "public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}", "public function setIdProduct($idProduct)\n {\n $this->idProduct = $idProduct;\n\n return $this;\n }", "protected function addSkuPkMapping(array $product)\n {\n $this->addSkuEntityIdMapping($product[MemberNames::SKU], $product[MemberNames::ENTITY_ID]);\n }", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey();", "function setIdkitprodutos($idkitprodutos) {\n $this->idkitprodutos = $idkitprodutos;\n }", "public function setProductid( $productid ) {\n\t\t$this->productid = $productid;\n\t}", "public function setPrimaryKey($keys)\n {\n $this->setSessionid($keys[0]);\n $this->setRecno($keys[1]);\n $this->setOrderno($keys[2]);\n }", "public function setPrimaryKey($primaryKey)\r\n\t{\r\n\t\t$this->primaryKey = $primaryKey;\r\n\t}", "public function getProductID()\n {\n }", "public function getProduct_Id() {\n return $this->product_Id;\n }", "public function setAsPrimaryColumn(): self;", "public function setIdProduct($idProduct): self\n {\n $this->idProduct = $idProduct;\n\n return $this;\n }", "public function setProdId($prodid = '')\n {\n $this->prodid = $prodid;\n\n return $this;\n }", "public function setKeyName($key)\n {\n $this->primaryKey = $key;\n }", "public function getProductsId()\n {\n return $this->productsId;\n }", "public function getProductid() {\n\t\treturn $this->productid;\n\t}", "public function formSetPrimarykey($pk, $pkval) {\r\n $this->pk = $pk;\r\n $this->pkVal = $pkval;\r\n return $this;\r\n }", "public function updateStockId();", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function getIdProduct()\n {\n return $this->idProduct;\n }", "public function setProductId($image_id, $product_id){\r\n $this->ID = (int)$image_id;\r\n $this->product_id = $product_id;\r\n \r\n return $this->update();\r\n }", "public function setPrimaryKey($key)\n {\n $this->setFeatureCvtermId($key);\n }" ]
[ "0.6696248", "0.6689001", "0.6688477", "0.6688477", "0.6688477", "0.6688477", "0.6688477", "0.6688477", "0.6688477", "0.6688477", "0.6633477", "0.66040504", "0.66040504", "0.66040504", "0.66040504", "0.66040504", "0.65759486", "0.650717", "0.64487755", "0.64487755", "0.6399288", "0.6399288", "0.639818", "0.63800156", "0.63800156", "0.6369565", "0.6369084", "0.6355498", "0.6355471", "0.634384", "0.63427866", "0.6334265", "0.6332862", "0.6328291", "0.6326295", "0.63257706", "0.63213545", "0.6319015", "0.6267748", "0.6170083", "0.61638117", "0.61599016", "0.614167", "0.61410314", "0.6136622", "0.6125105", "0.61143345", "0.61023873", "0.6092379", "0.6068893", "0.6053516", "0.60371375", "0.60124123", "0.6002527", "0.5999707", "0.59931934", "0.59921086", "0.5958358", "0.59232193", "0.59232193", "0.5911466", "0.58847564", "0.58847564", "0.5882455", "0.5882455", "0.5868223", "0.58353275", "0.58088726", "0.5788484", "0.57837945", "0.5757992", "0.57539433", "0.5742048", "0.5727312", "0.5715817", "0.57063055", "0.5699113", "0.5693198", "0.568472", "0.568472", "0.568472", "0.56789804", "0.56785196", "0.5654226", "0.5634568", "0.5623615", "0.5614741", "0.5601164", "0.5594226", "0.55935925", "0.5569857", "0.5568545", "0.55555135", "0.554598", "0.55277926", "0.55216557", "0.55216557", "0.55216557", "0.55190873", "0.5504347" ]
0.7543459
0
Returns true if the primary key for this object is null.
public function isPrimaryKeyNull() { return null === $this->getProdId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isPrimaryKeyNull()\n {\n\n return null === $this->getid();\n }", "public function isPrimaryKeyNull()\n {\n return null === $this->getId();\n }", "public function isPrimaryKeyNull()\n {\n return null === $this->getId();\n }", "public function isPrimaryKeyNull()\n {\n return null === $this->getId();\n }", "public function isPrimaryKeyNull()\n {\n return (null === $this->getId()) && (null === $this->getNickname());\n }", "public function isPrimaryKeyNull()\n {\n\n return null === $this->getId();\n }", "public function isPrimaryKeyNull()\n {\n\n return null === $this->getId();\n }", "public function isPrimaryKeyNull()\n\t{\n\t\treturn null === $this->getId();\n\t}", "public function isPrimaryKeyNull()\n\t{\n\t\treturn null === $this->getId();\n\t}", "public function isPrimaryKeyNull()\n {\n return null === $this->getPothnbr();\n }", "public function isPrimaryKeyNull()\n {\n return (null === $this->getPhadtype()) && (null === $this->getPhadid()) && (null === $this->getPhadsubid()) && (null === $this->getPhadsubidseq()) && (null === $this->getPhadcont());\n }", "public function isPrimaryKeyNull()\n {\n\n return null === $this->getOpPrimeId();\n }", "public function isPrimaryKeyNull()\n {\n\n return null === $this->getSekolahId();\n }", "public function isPrimaryKeyNull()\n {\n return (null === $this->getSessionid()) && (null === $this->getRecno()) && (null === $this->getOrderno());\n }", "public function isPrimaryKeyNull()\n\t{\n\t\treturn null === $this->getCoUsuario();\n\t}", "public function isPrimaryKeyNull()\n {\n return null === $this->getIDCommande();\n }", "public function isPrimaryKeyNull()\n {\n\n return null === $this->getIdmontacargas();\n }", "public function isPrimaryKeyNull()\n {\n return null === $this->getArticleId();\n }", "public function isPrimaryKeyNull()\n {\n return (null === $this->getShnttype()) && (null === $this->getShntseq()) && (null === $this->getShntkey2()) && (null === $this->getShntform());\n }", "public function isPrimaryKeyNull()\n {\n\n return (null === $this->getSekolahId()) && (null === $this->getSemesterId());\n }", "public function isPrimaryKeyNull()\n {\n return null === $this->getBiblioId();\n }", "public function isPrimaryKeyNull()\n {\n\n return null === $this->getIdBangunan();\n }", "public function isPrimaryKeyNull()\n {\n\n return (null === $this->getSekolahId()) && (null === $this->getSemesterId()) && (null === $this->getIdRuang()) && (null === $this->getHari());\n }", "public function isPrimaryKeyNull()\n\t{\n\t\treturn null === $this->getVenueid();\n\t}", "public function isPrimaryKeyNull()\n {\n\n return null === $this->getFeatureCvtermId();\n }", "public function hasAutoIncrementPrimaryKey()\n {\n return null !== $this->getAutoIncrementPrimaryKey();\n }", "public function isPrimaryKey()\n {\n return $this->isPrimaryKey;\n }", "public function isPrimaryKey()\n {\n return $this->isPrimaryKey;\n }", "public function hasPrimaryKey()\n {\n return count($this->getPrimaryKey()) > 0;\n }", "public function isPrimaryKey()\n {\n\treturn $this->primaryKey;\n }", "function isPrimaryKey(): bool;", "public function isPkField()\n {\n if ($this->key == \"PRI\"){\n return true;\n } else {\n return false;\n }\n }", "public function hasId()\n {\n return $this->id !== null;\n }", "public function checkPkValues() {\n foreach ($this->getPkValues() as $pk) {\n if (empty($pk))\n return false;\n }\n\n return true;\n }", "public function hasId(): bool\n {\n return $this->id !== null;\n }", "public function hasPrimary() {\n\t\tforeach($this->Columns() as $column) {\n\t\t\tif($this->$column->primary) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function valid() {\n return ( ! is_null($this->key()));\n }", "public function valid()\n {\n return !is_null($this->key());\n }", "public function valid()\n {\n return $this->key() !== null;\n }", "public function valid()\n {\n return ($this->key() !== null);\n }", "public function valid()\n {\n return ($this->key() !== null);\n }", "public function valid()\n {\n return ($this->key() !== null);\n }", "public function valid() {\n return ($this->key() !== null);\n }", "public function valid() {\n return ($this->key() !== null);\n }", "public function exists() {\n\t\treturn !is_null($this->id);\n\t}", "public function hasCompositePrimaryKey()\n {\n return count($this->getPrimaryKey()) > 1;\n }", "public static function hasIdProperty(): bool\n {\n return static::getIdProperty() !== null;\n }", "public function is_null() { return is_null($this->obj); }", "public function is_null(): bool\n {\n return $this->is_null;\n }", "public function valid(): bool\n {\n return $this->key() !== null && $this->key() !== false;\n }", "public function valid()\n {\n $key = $this->key();\n return ($key !== false && $key !== null);\n }", "public function isPKSequenceOrIdentity() : bool {\n return true;\n }", "public function hasPaddleId()\n {\n return ! is_null($this->paddle_id);\n }", "function exists()\r\n\t{\r\n\t\treturn ( ! empty($this->id));\r\n\t}", "public function isPrimaryKey($isPrimaryKey = null)\n {\n if ($isPrimaryKey !== null) {\n $this->isPrimaryKey = (bool)$isPrimaryKey;\n }\n return $this->isPrimaryKey;\n }", "public function hasKey()\n\t{\n\t\treturn !empty($this->key);\n\t}", "public function hasId()\n {\n $attributes = $this->getAttributes();\n\n if ( ! isset($attributes['id'])) return false;\n\n return true;\n }", "public function hasId(): bool\n {\n return $this->getEntityDao()->hasId();\n }", "public function exists()\n {\n return !empty($this->ID);\n }", "public function hasPrimaryKeyColumns(){\n return $this->_has(4);\n }", "function exists() {\n\t return !empty($this->id);\n\t}", "public function hasMaconomyId(): bool\n {\n return !empty($this->data['instancekeyField']);\n }", "public function isPk($pk) {\n\t\treturn filter_var($pk, FILTER_VALIDATE_INT) !== false;\n }", "public function valid()\n {\n $key = key($this->_object);\n return ($key !== null && $key !== false);\n }", "public function supportsInsertNullPk();", "public function isRecord() {\n return count($this->primaryKeys) === 1;\n }", "public function exists()\n {\n return ! is_null($this->first([Grammar::VIRTUAL_META_ID_COLUMN]));\n }", "public function exists()\n {\n return ($this->id) ? true : false;\n }", "public function hasSyncKey()\n {\n return $this->get(self::SYNC_KEY) !== null;\n }", "static function HasPrimaryKey($dbName, $tableName) {\n $sql = \"SELECT 1\n FROM information_schema.columns\n WHERE table_schema = '$dbName'\n and table_name='$tableName'\n and column_key = 'PRI'\";\n $val = DbManager::query($sql);\n if (count($val) > 0 && $val != false) {\n return true;\n } else {\n return false;\n }\n }", "public function isSetId()\n {\n return !empty($this->_fields['Id']['FieldValue']);\n }", "public function valid()\n {\n\n if ($this->container['lob_id'] === null) {\n return false;\n }\n return true;\n }", "public function exists()\n {\n return ($this->id > 0) ? true : false;\n }", "public function hasIdentity() : bool\n {\n return !empty($this->identity);\n }", "public function hasPaystackId()\n {\n return ! is_null($this->paystack_id);\n }", "public function hasKey()\n {\n return isset($this->key);\n }", "public function hasKey()\n {\n return isset($this->key);\n }", "public function valid()\n {\n return (null !== key($this->data));\n }", "public function isPrimaryKey($metadata, $field)\n {\n if (isset($metadata['fieldMappings'][$field])\n && isset($metadata['fieldMappings'][$field]['id'])\n && $metadata['fieldMappings'][$field]['id'])\n {\n return true;\n }\n\n return false;\n }", "#[\\ReturnTypeWillChange]\n public function valid()\n {\n return key($this->_data) !== null;\n }", "public function isNew()\n {\n if (static::getId()=== null) {\n return true;\n } else {\n return false;\n }\n }", "public function isPKAutoIncr()\r\n {\r\n if(is_array($this->cols) && array_key_exists($this->getPKField(), $this->cols))\r\n {\r\n return $this->cols[$this->pkField]->isAutoIncr;\r\n }else{\r\n return false;\r\n }\r\n }", "public function valid()\n {\n return $this->key === 0;\n }", "public function isNullable()\n {\n\treturn $this->isNullable && true;\n }", "public function hasGuid(): bool\n {\n return null !== $this->guid;\n }", "public function isAllowPkInsert()\n {\n return $this->allowPkInsert;\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasId() {\n return $this->_has(1);\n }", "public function hasIdentity()\n {\n return !empty($this->storage[$this->storageKey]);\n }" ]
[ "0.84790915", "0.84544814", "0.84544814", "0.84544814", "0.8447244", "0.8424832", "0.8424832", "0.84234697", "0.84234697", "0.8402295", "0.8382674", "0.83426905", "0.83093476", "0.82835287", "0.82737416", "0.8239393", "0.8228147", "0.82255316", "0.8206747", "0.81994236", "0.8144139", "0.8083553", "0.80567896", "0.8025754", "0.79069567", "0.7697868", "0.76132655", "0.76132655", "0.75314903", "0.7505397", "0.71362936", "0.70991546", "0.704084", "0.6992842", "0.6967642", "0.6944779", "0.6925539", "0.688207", "0.68819183", "0.68689066", "0.68689066", "0.68689066", "0.6868753", "0.6868753", "0.6811001", "0.6809393", "0.6792567", "0.6720618", "0.6712622", "0.66986895", "0.667756", "0.6644783", "0.6621574", "0.6619313", "0.6613721", "0.66135776", "0.6603561", "0.65635234", "0.65022784", "0.65016127", "0.6471992", "0.64667916", "0.6435493", "0.64218277", "0.63205427", "0.63038146", "0.62765294", "0.627375", "0.6268891", "0.62683153", "0.6247436", "0.62352365", "0.62344587", "0.6219747", "0.6219226", "0.6213431", "0.6213431", "0.6212519", "0.6192467", "0.6189184", "0.6178892", "0.6170388", "0.6161686", "0.61606735", "0.61556596", "0.61544883", "0.6142335", "0.6142335", "0.6142335", "0.6142335", "0.6142335", "0.6142335", "0.6142335", "0.6142335", "0.6142335", "0.6142335", "0.6142335", "0.6142335", "0.6142335", "0.6141563" ]
0.83412915
12
Sets contents of passed object to values from current object. If desired, this method can also make copies of all associated (fkey referrers) objects.
public function copyInto($copyObj, $deepCopy = false, $makeNew = true) { $copyObj->setProdPriceId($this->getProdPriceId()); $copyObj->setProdName($this->getProdName()); $copyObj->setProdAlt1($this->getProdAlt1()); $copyObj->setProdAlt2($this->getProdAlt2()); $copyObj->setProdAlt3($this->getProdAlt3()); $copyObj->setProdAlt4($this->getProdAlt4()); $copyObj->setProdCode($this->getProdCode()); $copyObj->setProdCategory($this->getProdCategory()); $copyObj->setProdCategoryShipping($this->getProdCategoryShipping()); $copyObj->setProdWriteup($this->getProdWriteup()); $copyObj->setProdLength($this->getProdLength()); $copyObj->setProdWingspan($this->getProdWingspan()); $copyObj->setProdHeight($this->getProdHeight()); $copyObj->setProdScale($this->getProdScale()); $copyObj->setProdLinks($this->getProdLinks()); $copyObj->setProdLinkdescription($this->getProdLinkdescription()); $copyObj->setProdFront($this->getProdFront()); $copyObj->setProdKeywords($this->getProdKeywords()); $copyObj->setProdKeywordsWriteup($this->getProdKeywordsWriteup()); $copyObj->setProdTitle($this->getProdTitle()); $copyObj->setProdDescription($this->getProdDescription()); $copyObj->setProdGeneral($this->getProdGeneral()); $copyObj->setProdEra($this->getProdEra()); $copyObj->setProdCompany($this->getProdCompany()); $copyObj->setProdRelated($this->getProdRelated()); $copyObj->setProdRelatedPa($this->getProdRelatedPa()); $copyObj->setProdRelatedM3($this->getProdRelatedM3()); $copyObj->setProdRelated2($this->getProdRelated2()); $copyObj->setProdSaveas($this->getProdSaveas()); $copyObj->setProdAircraftreg($this->getProdAircraftreg()); $copyObj->setMb($this->getMb()); $copyObj->setPa($this->getPa()); $copyObj->setM3($this->getM3()); if ($makeNew) { $copyObj->setNew(true); $copyObj->setProdId(NULL); // this is a auto-increment column, so set to default value } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_obj(&$obj)\n{\n\t$this->_obj = $obj;\n}", "function setObject($object);", "public function & fromObjectRef( & $a_object )\r\n\t{\r\n\t\tif(!is_object($a_object))\r\n\t\t\treturn $this;\r\n\r\n\t\tif($a_object instanceof ZRegistry)\r\n\t\t\t$this->m_data = $this->getDataRef();\r\n\t\telse\r\n\t\t{\r\n\t\t\t$d = array();\r\n\t\t\tforeach(get_object_vars($a_object) as $k => $v)\r\n\t\t\t\t$d[$k] = & $a_object->$k;\r\n\t\t\t$this->m_data = $d;\r\n\t\t}\r\n\t\treturn $this;\r\n\t}", "public function setObject(object $object): self;", "public function setObject(object $object): void;", "private function deepObjToRef()\n {\n $allFields = $this->toArray();\n foreach ($allFields as $key => $val) {\n if ($val instanceof \\Phalcore\\Models\\Mongo) {\n if (!isset($val->_id)) $val->save();\n $val = Mongo\\AdHocDBRef::create($val);\n $this->$key = $val;\n } elseif (is_array($val)) {\n list ($converted, $changed) = $this->_recO2R($val);\n if ($changed)\n $this->$key = $converted;\n }\n }\n }", "public function set_object($_object)\n {\n $this->_object = $_object;\n\n return $this;\n }", "public function __clone()\n {\n foreach ($this as $key => $val)\n {\n if (is_object($val) || is_array($val))\n $this->{$key} = unserialize(serialize($val));\n }\n }", "private function deepRefToObj()\n {\n $allFields = $this->toArray();\n foreach ($allFields as $key => $val) {\n if (Mongo\\AdHocDBRef::isRef($val)) {\n $val = Mongo\\AdHocDBRef::expand($val);\n $this->$key = $val;\n } elseif (is_array($val)) {\n list ($converted, $changed) = $this->_recR2O($val);\n if ($changed)\n $this->$key = $converted;\n }\n }\n }", "public function __clone() {\n\t\t$vars = get_object_vars($this);\n\t\tforeach ($vars as $key => $value) {\n\t\t\tif (is_object($value)) {\n\t\t\t\t$this->$key = clone $value;\n\t\t\t} else {\n\t\t\t\t$this->$key = $value;\n\t\t\t}\n\t\t}\n\t}", "public function __clone() {\n\t\t$vars = get_object_vars($this);\n\t\tforeach ($vars as $key => $value) {\n\t\t\tif (is_object($value)) {\n\t\t\t\t$this->$key = clone $value;\n\t\t\t} else {\n\t\t\t\t$this->$key = $value;\n\t\t\t}\n\t\t}\n\t}", "public function __clone()\n {\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if (is_object($value)) {\n $this->$key = clone $value;\n } else {\n $this->$key = $value;\n }\n }\n }", "public function __clone()\n {\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if (is_object($value)) {\n $this->$key = clone $value;\n } else {\n $this->$key = $value;\n }\n }\n }", "public function __clone()\n {\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if (is_object($value)) {\n $this->$key = clone $value;\n } else {\n $this->$key = $value;\n }\n }\n }", "public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif ((is_object($v)) || is_array($v)) {\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}", "public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif ((is_object($v)) || is_array($v)) {\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}", "public function __clone()\n {\n foreach ((array) get_object_vars($this) as $k => $v) {\n $this->$k = null;\n }\n }", "public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif (is_object($v) || is_array($v))\n\t\t\t{\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}", "function setRefFields($val) {\n $this->_refFields = $val;\n }", "public function __clone()\n {\n foreach ($this->children as $key => $value) {\n if (is_object($value)) {\n $this->children[$key] = clone $value;\n }\n }\n }", "public function setObject($object) {\n $this->object = $object;\n }", "function copyFrom($name) {\n\t\tif (is_array(self::ref($name)))\n\t\t\t$this->object=self::ref($name);\n\t}", "function __clone()\r\n\t{\r\n\t\tforeach ($this as $key => $value)\r\n\t\t{\r\n\t\t\tif (is_object($value))\r\n\t\t\t{\r\n\t\t\t\t$this->{$key} = clone($value);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function copySameFrom ( &$otherObject ) {\n \t\t$myVars = get_object_vars($this);\n \t\t$otherVars = get_object_vars($otherObject);\n \t\t\n \t\tforeach (array_keys($myVars) as $varName) {\n \t\t\tif (key_exists($varName, $otherVars))\n\t \t\t\t$this->$varName = $otherVars[$varName];\n \t\t}\n \t}", "private function setObject($object) {\n $this->object = $object;\n }", "public function set($object, $mapping);", "public function __clone()\n {\n foreach (get_object_vars($this) as $property => $value) {\n if (is_object($value)) {\n $this->{$property} = clone $value;\n } elseif (is_array($value)) {\n foreach ($value as $value_key => $value_item) {\n if (is_object($value_item)) {\n $this->{$property}[$value_key] = clone $value_item;\n }\n }\n }\n }\n }", "public function setObjectData(&$data)\n {\n $objVarNames = array_keys(get_object_vars($this));\n $theData = $data;\n if (is_object($theData)) $theData = get_object_vars($data);\n foreach($theData as $propertyName => &$propertyValue)\n {\n foreach ($objVarNames as &$varName)\n {\n if (strcasecmp($varName, $propertyName) == 0)\n {\n $this->$varName = $propertyValue;\n }\n }\n }\n }", "public function __clone()\n {\n $this->_id = null;\n $this->_key = null;\n $this->_rev = null;\n // do not change the _changed flag here\n }", "protected function setFromCache($object)\r\n {\r\n // TODO: Implement setFromCache() method.\r\n }", "public function update( &$object );", "public function setObject($object, $key = null) {\r\n if($key) {\r\n $this->objects[$key] = $object;\r\n }\r\n else {\r\n $this->objects[] = $object;\r\n }\r\n }", "public function _cloned($obj)\n {\n $this->new = true;\n $this->data = [];\n $this->attr($obj);\n $this->init();\n }", "public function setAll($args = [], $reassign = false);", "public function setObjectForKey($key, $object)\n {\n $this->setObjectForKeyWithLifeTimePathAndDomain($key, $object, '_');\n }", "public function setAttributesByRef (&$attributes)\n {\n\n foreach ($attributes as $key => &$value)\n {\n\n $this->attributes[$key] =& $value;\n\n }\n\n }", "public function & fromObject( $a_object )\r\n\t{\r\n\t\tif(!is_object($a_object))\r\n\t\t\treturn $this;\r\n\r\n\t\tif($a_object instanceof ZRegistry)\r\n\t\t\t$this->fromArray($a_object->toArray());\r\n\t\telse if($a_object instanceof ZModel)\r\n\t\t\t$this->fromArray((array)$a_object->export());\r\n\t\telse\r\n\t\t\t$this->fromArray(get_object_vars($a_object));\r\n\r\n\t\treturn $this;\r\n\t}", "public function __clone() {\n foreach ($this->properties as $name => $property) {\n $this->properties[$name] = clone $property;\n $this->properties[$name]->setContext($name, $this);\n }\n }", "public function setReferences($val)\n {\n $this->_propDict[\"references\"] = $val;\n return $this;\n }", "function set_object( $objname, &$obj, $scope='', $tagname=null ){\n\n if( $scope=='global' ){\n $this->ctx[0]['_obj_'][$objname] = &$obj;\n return 1;\n }\n\n for( $x=count($this->ctx)-1; $x>=0; $x-- ){\n if( !is_null($tagname) ){\n if( isset($this->ctx[$x]['_obj_']) && ($this->ctx[$x]['name']==$tagname) ){\n $this->ctx[$x]['_obj_'][$objname] = &$obj;\n return 1;\n }\n }\n else{\n if( isset($this->ctx[$x]['_obj_']) ){\n $this->ctx[$x]['_obj_'][$objname] = &$obj;\n return 1;\n }\n }\n }\n\n }", "function set($data) {\n\tif (! is_object($data)) throw new Exception('Supplied argument is not an object.');\n\t\n\tforeach (get_object_vars($data) as $prop=>$val) {\n\t if (property_exists($this,$prop)) {\n\t\t$this->$prop = $val;\n\t }\n\t}\n\t\n }", "public function setMetaFrom($object);", "function assignObject()\n\t{\n\t\tif ($this->id != 0)\n\t\t{\n\t\t\tif ($this->call_by_reference)\n\t\t\t{\n\t\t\t\t$this->object =& new ilObjAICCLearningModule($this->id, true);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->object =& new ilObjAICCLearningModule($this->id, false);\n\t\t\t}\n\t\t}\n\t}", "public function set($key, $object)\n {\n $this->items[$key] = $object;\n }", "public static function set_object($object) {\n\t\tif($object instanceof \\stdClass) {\n\t\t\t$object = new WPChaosDataObject($object);\n\t\t}\n\t\tself::$object = $object;\n\t}", "function test_object_refs() {\n\t\t$key = rand_str();\n\t\t$object_a = new stdClass;\n\t\t$object_a->foo = 'alpha';\n\t\t$this->cache->set( $key, $object_a );\n\t\t$object_a->foo = 'bravo';\n\t\t$object_b = $this->cache->get( $key );\n\t\t$this->assertEquals( 'alpha', $object_b->foo );\n\t\t$object_b->foo = 'charlie';\n\t\t$this->assertEquals( 'bravo', $object_a->foo );\n\n\t\t$key = rand_str();\n\t\t$object_a = new stdClass;\n\t\t$object_a->foo = 'alpha';\n\t\t$this->cache->add( $key, $object_a );\n\t\t$object_a->foo = 'bravo';\n\t\t$object_b = $this->cache->get( $key );\n\t\t$this->assertEquals( 'alpha', $object_b->foo );\n\t\t$object_b->foo = 'charlie';\n\t\t$this->assertEquals( 'bravo', $object_a->foo );\n\t}", "public function update_object ($obj)\n {\n parent::update_object ($obj);\n $this->access_id = $obj->id;\n }", "public function update_object ($obj)\n {\n parent::update_object ($obj);\n $this->access_id = $obj->id;\n }", "public static function assignByRef($key,&$value) {\r\n\t\tself::$_smarty->assignByRef($key,$value);\r\n\t}", "function setAllData(&$data) {\n\t\t$this->_data =& $data;\n\t}", "public function setParametersByRef (&$parameters)\n {\n\n foreach ($parameters as $key => &$value)\n {\n\n $this->parameters[$key] =& $value;\n\n }\n\n }", "abstract public function set();", "public function & setDataRef( & $a_data )\r\n\t{\r\n\t\tswitch(gettype($a_data))\r\n\t\t{\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'array':\r\n\t\t\t\t$this->fromArrayRef($a_data);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'object':\r\n\t\t\t\t$this->fromObjectRef($a_data);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\treturn $this;\r\n\t}", "public function __clone()\n {\n foreach ( $this->props as $path => $propStorage )\n {\n $this->props[$path] = clone $propStorage;\n }\n }", "public function __clone()\n {\n foreach ($this->data as $key => $value) {\n if ($value instanceof self) {\n $this[$key] = clone $value;\n }\n }\n }", "public function setObject($object)\n {\n $this->object = $object;\n\n return $this;\n }", "function object_assign(object $object, Arrayable|iterable $data, bool $overwrite = true): object\n {\n if ($data instanceof Arrayable) {\n $data = $data->toArray();\n }\n\n foreach ($data as $name => $value) {\n data_set($object, $name, $value, $overwrite);\n }\n\n return $object;\n }", "function copyto($key) {\n\t\t$var=&\\Base::instance()->ref($key);\n\t\tforeach ($this->item as $key=>$field)\n\t\t\t$var[$key]=$field;\n\t}", "protected function setProperties()\n {\n foreach ($this->data as $key => $value) {\n $this->$key = $value;\n }\n }", "public function __construct($object) {\n foreach ($object as $key => $value) :\n $k = \"_$key\";\n $this->$k = $value;\n endforeach;\n }", "abstract public function object_data(&$data);", "function setObject(mofilmTrack $inObject) {\n\t\treturn $this->_setValue($inObject);\n\t}", "public function update_object ($obj)\n {\n parent::update_object ($obj);\n $this->access_id = $obj->parent_folder_id ();\n }", "public function __clone()\n {\n // so that both the original object and the clone\n // can work without interfering with each other.\n $this->context = hash_copy($this->context);\n }", "function __set($name,$value) {\n\t\t$this->object[$name]=$value;\n\t}", "protected function fillProperties()\n {\n foreach ($this as $key => $value) {\n if ($this->isPrivate($key)) {\n continue;\n }\n $this->currentProperties[\"{$key}\"] = $value;\n $this->newProperties[\"{$key}\"] = $value;\n }\n }", "public function exchangeObject($data)\n {\n foreach ($data AS $key => $datum) {\n if (property_exists($this, $key)) {\n $this->{$key} = $datum;\n }\n }\n }", "function prepareData(){\n $this->ref = array();\n foreach($this->getIterator() as $junk=>$item){\n // current values\n $id = $item[$this->id_field];\n \n // save item\n $this->items[$id] = $item;\n \n // save relation\n if(isset($item[$this->parent_id_field])) {\n $this->ref[$item[$this->parent_id_field]][] = $id;\n } else {\n $this->ref[undefined][] = $id;\n }\n }\n }", "public function merge(EGmap3ObjectBase $object)\n\t{\n\t\tforeach ($object as $k => $v) {\n\t\t\tif ($v !== null) {\n\t\t\t\t$this->$k = $v;\n\t\t\t}\n\t\t}\n\t}", "function setRef($name, &$value) {\n $this->vars[$name] =& $value; //is_object($value) ? $value->fetch() : $value;\n }", "public function __clone()\n {\n $this->_objectTag = clone $this->_objectTag;\n }", "public function setRef($ref);", "public function __clone()\n {\n $this->items = ConfigUtil::cloneItems($this->items);\n $this->fields = ConfigUtil::cloneObjects($this->fields);\n }", "public function __clone()\n {\n $this->reset(TRUE);\n }", "public function fill(?\\stdClass $obj): void\n {\n if (is_object($obj)) {\n $object_vars = get_object_vars($obj);\n\n if (!empty($object_vars)) {\n foreach ($object_vars as $var => $value) {\n if (property_exists($this, $var)) {\n $this->$var = $value;\n }\n }\n }\n }\n }", "public function assignRef (mixed $value, mixed $value)\n {\n }", "private function __replaceReference($DBObject) {\n\t\tglobal $connect;\n\t\trequire_once('CORE/extensionManager.inc.php');\n\t\t$class_list = getReferenceTablesList($this->__table);\n\t\tforeach($class_list as $table=>$fieldname) {\n\t\t\trequire_once($this->getTableName($table));\n\t\t\t$class_name=\"DBObj_\".$table;\n\t\t\t$DBObjRefTarget=new $class_name;\n\t\t\t$item = $DBObjRefTarget->__DBMetaDataField[$fieldname];\n\t\t\tif (isset($item['params']['CascadeMerge']) && $item['params']['CascadeMerge']) {\n\t\t\t\t$DBObjRefTarget->$fieldname=$this->id;\n\t\t\t\t$nb1=$DBObjRefTarget->find();\n\t\t\t\t$DBObjRefTarget->fetch();\n\t\t\t\t\n\t\t\t\t$DBObjRefOther=new $class_name;\n\t\t\t\t$DBObjRefOther->$fieldname=$DBObject->id;\n\t\t\t\t$nb2=$DBObjRefOther->find();\n\t\t\t\t$DBObjRefOther->fetch();\n\n\t\t\t\tif (($nb1==1) && ($nb2==1) && ($DBObjRefTarget->id>0) && ($DBObjRefOther->id)) {\n\t\t\t\t\t$DBObjRefTarget->merge($DBObjRefOther);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\trequire_once(\"CORE/Lucterios_Error.inc.php\");\n\t\t\t\t\tthrow new LucteriosException(IMPORTANT,\"Fusion impossible.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$q=\"UPDATE $table SET $fieldname=$this->id WHERE $fieldname=$DBObject->id\";\n\t\t\t\t$connect->execute($q,true);\n\t\t\t}\n\t\t}\n\t\tif($this->Heritage != \"\")\n\t\t\t$this->Super->__replaceReference($DBObject->Super);\n\t}", "public function __clone() {\n\t\t$this->session = clone $this->session;\n\t\t$this->fees_api = clone $this->fees_api;\n\t}", "public function copyData($object)\n {\n if ($object instanceof CNabuDataObject) {\n $this->data = $object->data;\n } elseif (is_array($object)) {\n $this->data = $object;\n }\n }", "public function setObject(?string $object): self\n {\n $this->object = $object;\n\n return $this;\n }", "public function setObject(?string $object): self\n {\n $this->object = $object;\n\n return $this;\n }", "public function setObject(?string $object): self\n {\n $this->object = $object;\n\n return $this;\n }", "public function setReference( &$ref ) {\n\t\t$this->items = $ref;\n\t\treturn $this;\n\t}", "function &copy () {\n \t\t$newObject =& $this->shallowCopy();\n \t\treturn $newObject->postCopy();\n \t}", "function apply_fix($old_obj){\t\r\r\n\t\t// to be copied vars\r\r\n\t\t$vars = array('active_modules','active_plugins','setting');\r\r\n\t\t// set\r\r\n\t\tforeach($vars as $var){\r\r\n\t\t\t// var\r\r\n\t\t\t$this->{$var} = (isset( $old_obj->{$var} ) ) ? $old_obj->{$var} : '';\r\r\n\t\t}\t\t\t\t\t\r\r\n\t\t// save\r\r\n\t\t$this->save();\t\r\r\n\t}", "public function initWithObjects()\n {\n $this->array = func_get_args();\n return $this;\n }", "public function setObject(string $object): void\n {\n $this->_object = $object;\n }", "public function setObject(string $object): void\n {\n $this->_object = $object;\n }", "public static function aliases(&$object) {\n\t\t\t$object->protocol = &$object->scheme;\n\t\t\t$object->username = &$object->user;\n\t\t\t$object->password = &$object->pass;\n\t\t\t$object->domain = &$object->host;\n\t\t\t$object->fqdn = &$object->host;\n\t\t}", "public function setObject(RenderableInterface $object = null)\n {\n $this->__currentelement = null;\n $this->_object = $object;\n\n if (is_array($this->__vars) && 0 < count($this->__vars)) {\n foreach ($this->__vars as $key => $var) {\n if ($var === $object) {\n $this->__currentelement = $key;\n }\n }\n }\n\n return $this;\n }", "public function setObject($key, $value)\n {\n $this->objectCache[$key] = $value;\n }", "function __clone()\n {\n // it will point to same object.\n $this->object1 = clone $this->object1;\n }", "function copyto($key) {\n\t\t$var=&\\Base::instance()->ref($key);\n\t\tforeach ($this->document as $key=>$field)\n\t\t\t$var[$key]=$field;\n\t}", "public function setProperties($obj){\n\t\tforeach(((array)$obj) as $prop => $val)\n\t\t{\n\t\t\t$this->$prop = $obj->$prop;\n\t\t}\n\t}", "public function setRef($ref)\n {\n $this->_ref = $ref;\n }", "public function setCacheReferencedObjects($cacheReferencedObjects) {}", "public function __clone()\n {\n foreach ($this->parameters as $key => $child) {\n $this->parameters[$key] = clone $child;\n $this->parameters[$key]->parent = $this;\n }\n }", "public function __clone()\n {\n foreach ($this->_associations as $i => $association) {\n $this->_associations[$i] = clone $association;\n }\n }", "final public function __clone()\n {\n $this->aliased = false;\n }", "abstract public function setContext($context_object);", "function assignTo($dest)\r\n {\r\n // make sure modified() is not always called while assigning new values\r\n $dest->startUpdate();\r\n\r\n $dest->setFamily($this->getFamily());\r\n $dest->setSize($this->getSize());\r\n $dest->setColor($this->getColor());\r\n $dest->setAlign($this->getAlign());\r\n $dest->setStyle($this->getStyle());\r\n $dest->setCase($this->getCase());\r\n $dest->setLineHeight($this->getLineHeight());\r\n $dest->setVariant($this->getVariant());\r\n $dest->setWeight($this->getWeight());\r\n\r\n $dest->endUpdate();\r\n }" ]
[ "0.63775754", "0.63127476", "0.62226856", "0.6140272", "0.5996202", "0.5934495", "0.58980685", "0.58389705", "0.58183944", "0.57577884", "0.57577884", "0.5735294", "0.5735294", "0.5735294", "0.57314146", "0.57314146", "0.5730579", "0.5725711", "0.57123417", "0.5699155", "0.5692661", "0.56678915", "0.5654134", "0.564832", "0.5612608", "0.5597475", "0.5560443", "0.55341786", "0.5503764", "0.54849505", "0.5480147", "0.54763633", "0.54435426", "0.5441758", "0.54105717", "0.5368189", "0.53673404", "0.53559744", "0.53417724", "0.5326762", "0.5319176", "0.5310374", "0.53005636", "0.5293079", "0.5275367", "0.5242829", "0.5238013", "0.5238013", "0.5229234", "0.5224805", "0.52231324", "0.5221175", "0.52145547", "0.5199505", "0.5198169", "0.5192866", "0.51884353", "0.51860476", "0.5175872", "0.5172737", "0.51503444", "0.51448196", "0.51439756", "0.51422685", "0.51344454", "0.51327884", "0.5124877", "0.5119412", "0.5118087", "0.51001316", "0.5096543", "0.509564", "0.5092674", "0.5074751", "0.506442", "0.50599504", "0.5056685", "0.50499105", "0.50442404", "0.5042716", "0.5042716", "0.5042716", "0.50360143", "0.502615", "0.5024936", "0.5020742", "0.5012598", "0.5012598", "0.5010531", "0.5005528", "0.49835864", "0.49757746", "0.49747202", "0.49719626", "0.49706835", "0.49613577", "0.49551928", "0.4952096", "0.4940456", "0.49398822", "0.4931088" ]
0.0
-1
Makes a copy of this object that will be inserted as a new row in table when saved. It creates a new object filling in the simple attributes, but skipping any primary keys that are defined for the table. If desired, this method can also make copies of all associated (fkey referrers) objects.
public function copy($deepCopy = false) { // we use get_class(), because this might be a subclass $clazz = get_class($this); $copyObj = new $clazz(); $this->copyInto($copyObj, $deepCopy); return $copyObj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function copyAttributesToKey()\n\t{\n\t\t$primarykey = $this->factory->getPrimarykey ;\n\t\tforeach( $primarykey->fields as $n=>$field )\n\t\t{\n\t\t\t$this->key[$field] = $this->$field ;\n\t\t}\n\t}", "public function CopyRecord()\n {\n $rec = $this->GetActiveRecord();\n if (!$rec) return;\n foreach ($rec as $k=>$v)\n $rec[$k] = addslashes($v);\n global $g_BizSystem;\n // get new record array\n $recArr = $this->GetDataObj()->NewRecord();\n\n $rec[\"Id\"] = $recArr[\"Id\"]; // replace with new Id field. TODO: consider different ID generation type\n $this->m_RecordRow->SetRecordArr($rec);\n $ok = $this->GetDataObj()->InsertRecord($rec);\n if (!$ok)\n return $this->ProcessDataObjError($ok);\n return $this->ReRender();\n }", "public function __clone()\n {\n $this->table = clone $this->table;\n }", "static function createObject () {\n $query = 'insert into '.Config::getTablePrifix().self::getTableName().' (';\n $feilds = self::getFeildNames();\n $query .= implode(',',$feilds);\n $query .= ') values(';\n foreach ($feilds as $feild) {\n if ($feild != current($feilds)) {\n $query .= ',';\n }\n $query .= '\\''.Database::escape(self::getFeildValue($feild)).'\\'';\n }\n $query .= ')';\n Database::query($query);\n // update the id feild value\n $lastInsertId = Database::queryAsObject('select max(id) as lastid from '.Config::getTablePrifix().self::getTableName());\n self::setFeildValue(self::getIdFeild(),$lastInsertId->lastid);\n return $this;\n }", "public function __clone()\n {\n // If the entity has an identity, proceed as normal.\n if ($this->id) {\n // unset identifiers\n $this->setId(0);\n \n // init validator\n $this->initValidator();\n \n // reset Workflow\n $this->resetWorkflow();\n \n $this->setCreatedDate(null);\n $this->setCreatedUserId(null);\n $this->setUpdatedDate(null);\n $this->setUpdatedUserId(null);\n \n \n }\n // otherwise do nothing, do NOT throw an exception!\n }", "public function clone() {\n\t\t\t$class = get_called_class();\n\t\t\t$obj = new $class($this->_db);\n\t\t\t$obj->setFromArray($this->toArray());\n\t\t\t$obj->setChanged($this->hasChanged());\n\t\t\treturn $obj;\n\t\t}", "protected function createNew() {\n $this->db->insert($this->tableName, $this->mapToDatabase());\n $this->id = $this->db->insert_id();\n }", "function makeClone()\n {\n $this->id = 0;\n }", "public function __clone()\n {\n $this->_id = null;\n $this->_key = null;\n $this->_rev = null;\n // do not change the _changed flag here\n }", "public function save() {\n\t\tif (array_intersect_key($this->toArray(TRUE), array_flip($this->primary))) {\n\t\t\t$this->update();\n\t\t} else {\n\t\t\t$this->insert();\n\t\t}\n\t\treturn $this;\n\t}", "public function toObject(): self\n {\n $this->key_by_column_name = true;\n $this->to_object = true;\n\n return $this;\n }", "public function copy(): Model\n {\n $new = $this->replicate();\n $new->push();\n\n return $new;\n }", "public function run(): static\n {\n $pkFields = $this->findPrimaryKeyFields();\n $this->table->setPrimaryKeyFields($pkFields);\n\n $fieldDefList = $this->getFieldDefList();\n\n $this->populateFieldsIntoTable($fieldDefList);\n\n return $this;\n }", "public function __clone()\n {\n parent::__clone();\n $this->hasOneRelationships = clone $this->hasOneRelationships;\n $this->hasManyRelationships = clone $this->hasManyRelationships;\n }", "function get_copy()\r\n\t{\r\n\t\t$copy = clone($this);\r\n\r\n\t\t$copy->id = NULL;\r\n\r\n\t\treturn $copy;\r\n\t}", "function &copy( )\n {\n $new = $this;\n $new->unsetID();\n $new->store();\n\n return $new;\n }", "public function makePrimaryKey()\n {\n $this->mapping['id'] = true;\n\n return $this;\n }", "public function save(){\n global $wpdb;\n $table_name = $wpdb->prefix.static::$_table;\n \n $data = [];\n $pk = $this->getPk();\n foreach($this->_datas as $key => $value){\n if($key!=$pk && in_array($key, static::$_fields)){\n $data[$key] = $value.'';\n }\n }\n \n if( isset( $this->$pk ) ){\n // Update row\n $wpdb->update(\n $table_name,\n $data,\n [$pk=>$this->$pk]\n );\n }else{\n // Insert row\n $wpdb->insert(\n $table_name,\n $data\n );\n $this->$pk = $wpdb->insert_id;\n }\n \n return $this;\n }", "public function create () {\n reset($this->__fields);\n $pk = key($this->__fields);\n $form = $this->getForm();\n $placeholders = array();\n\n foreach ($form as $k => $v) {\n $placeholders[$k] = ':' . $k;\n }\n\n $sql = sprintf(\n 'INSERT INTO %s (%s) VALUES (%s)'\n , $this->getTableName()\n , implode(',', array_keys($placeholders))\n , implode(',', $placeholders)\n );\n\n $stmt = $this->__db->prepare($sql);\n\n foreach ($form as $k => $v) {\n if (is_object($v->getData()) && get_class($v->getData()) == 'DateTime') {\n $stmt->bindValue($k, $v->getData(), $this->__fields[$k]['type']);\n } else {\n $stmt->bindValue($k, $v->getData());\n }\n }\n\n $stmt->execute();\n $this->$pk = $this->__db->lastInsertId();\n\n return $this;\n }", "public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif (is_object($v) || is_array($v))\n\t\t\t{\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}", "public function __clone()\n {\n foreach ($this as $key => $val)\n {\n if (is_object($val) || is_array($val))\n $this->{$key} = unserialize(serialize($val));\n }\n }", "public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif ((is_object($v)) || is_array($v)) {\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}", "public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif ((is_object($v)) || is_array($v)) {\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}", "public function __clone()\n {\n foreach ((array) get_object_vars($this) as $k => $v) {\n $this->$k = null;\n }\n }", "public function __clone()\n {\n // if the entity has no identity do nothing, do NOT throw an exception\n if (!($this->id)) {\n return;\n }\n \n // otherwise proceed\n \n // unset identifiers\n $this->setId(0);\n \n // reset workflow\n $this->resetWorkflow();\n \n $this->setCreatedBy(null);\n $this->setCreatedDate(null);\n $this->setUpdatedBy(null);\n $this->setUpdatedDate(null);\n \n \n // clone categories\n $categories = $this->categories;\n $this->categories = new ArrayCollection();\n foreach ($categories as $c) {\n $newCat = clone $c;\n $this->categories->add($newCat);\n $newCat->setEntity($this);\n }\n }", "public function __clone()\n {\n // if the entity has no identity do nothing, do NOT throw an exception\n if (!$this->id) {\n return;\n }\n \n // otherwise proceed\n \n // unset identifier\n $this->setId(0);\n \n // reset workflow\n $this->setWorkflowState('initial');\n \n // reset upload fields\n $this->setAvatarUpload(null);\n \n $this->setCreatedBy(null);\n $this->setCreatedDate(null);\n $this->setUpdatedBy(null);\n $this->setUpdatedDate(null);\n \n \n // clone categories\n $categories = $this->categories;\n $this->categories = new ArrayCollection();\n foreach ($categories as $c) {\n $newCat = clone $c;\n $this->categories->add($newCat);\n $newCat->setEntity($this);\n }\n }", "protected function _create()\n {\n $entry = $this->_db->createRow();\n foreach ($this->getFields() as $key => $value) {\n $entry->{$key} = $value;\n }\n return $entry->save();\n }", "public function create_record() {\n $class = get_called_class();\n\n if ($this->does_exist()) {\n return false;\n }\n\n $db = DB::connect();\n\n $attributes = '';\n $values = '';\n\n // Loop through all the attributes to get the attributes and values\n foreach (get_object_vars($this) as $key => $value) {\n // We dont add the id of the object, as it is autoincremented\n if ($value == null) {\n continue;\n }\n\n $attributes = $attributes . \" $key,\";\n\n // We cannot add an object to sql statemnt. if the value is an object, get the id of it\n if (gettype($value) == 'object') {\n $value = $value->id;\n } elseif (gettype($value) === 'string') {\n $value = \"'\" . $value . \"'\";\n }\n\n $values = $values . \" $value,\";\n\n }\n\n // Delete the last comma\n $attributes = substr_replace($attributes, \" \", -1);\n $values = substr_replace($values, \" \", -1);\n\n $sql = $db->prepare(\"INSERT INTO \" . $class . \" (\" . $attributes . \") VALUES (\" . $values . \")\");\n $sql->execute();\n\n return true;\n }", "public function __clone()\n {\n $this->_id = null;\n }", "public function __clone() {\n\t\t$vars = get_object_vars($this);\n\t\tforeach ($vars as $key => $value) {\n\t\t\tif (is_object($value)) {\n\t\t\t\t$this->$key = clone $value;\n\t\t\t} else {\n\t\t\t\t$this->$key = $value;\n\t\t\t}\n\t\t}\n\t}", "public function __clone() {\n\t\t$vars = get_object_vars($this);\n\t\tforeach ($vars as $key => $value) {\n\t\t\tif (is_object($value)) {\n\t\t\t\t$this->$key = clone $value;\n\t\t\t} else {\n\t\t\t\t$this->$key = $value;\n\t\t\t}\n\t\t}\n\t}", "function clone_record($db_table) {\n $db_obj = new db_class();\n $typeHash = $db_obj->columnTypeHash($this->table_title);\n \n $sql = 'INSERT INTO ' . $this->table_title ;\n $typeList = '';\n $columns = ' (' ;\n $values = '(' ;\n $paramList = array();\n $count = 0;\n \n foreach($db_table as $key => $value) {\n if($count > 0){ \n $columns .= ',' ; \n $values .= ',';\n }\n $columns .= $key;\n $values .= '?';\n $paramList[] = $value;\n $typeList .= $typeHash[$key];\n \n $count++;\n }\n \n $columns .= ')';\n $values .= ')';\n $sql .= $columns . ' VALUES ' . $values;\n \n showArray(array($sql, $typeList, $paramList));\n \n $db_obj->closeDB();\n \n }", "public function reset() {\r\n\t\tforeach ($this->_metadata->getNames() as $name){\r\n\t\t\tif($this->isPrimaryKey($name)){\r\n\t\t\t\t$this->_record[$name] = $this->getPrimaryKey() ;\r\n\t\t\t}else{\r\n\t\t\t\t$this->_record[$name] = $this->{$name} ;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this->_record ;\r\n\t}", "public function cleanCopy()\n {\n $clone = clone $this;\n $clone->setEagerLoader(clone $this->getEagerLoader());\n $clone->triggerBeforeFind();\n $clone->enableAutoFields(false);\n $clone->limit(null);\n $clone->order([], true);\n $clone->offset(null);\n $clone->mapReduce(null, null, true);\n $clone->formatResults(null, true);\n $clone->setSelectTypeMap(new TypeMap());\n $clone->decorateResults(null, true);\n\n return $clone;\n }", "public function save() {\n\t\tif( $this->isAddingNew() ) {\n\t\t\t//Insert record\n\t\t\t$key = $this->getConnection()->insert( $this->_updateBuffer, $this );\n\n\t\t\t//remove all state from this object (including isAddingNew)\n\t\t\t$this->clear();\n\n\t\t\t//Pull just this new record\n\t\t\t$method = \"where\" . $this->getTable()->getPrimaryKey();\n\t\t\t$this->$method( $key );\n\t\t} else {\n\t\t\t$updatedRecord = $this->getConnection()->update( $this->_updateBuffer, $this );\n\t\t\t$this->_recordset[ $this->_currentRow ] = $updatedRecord[0];\n\t\t}\n\n\t\t$this->_updateBuffer = array();\n\t\treturn $this;\n\t}", "public function __clone()\n {\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if (is_object($value)) {\n $this->$key = clone $value;\n } else {\n $this->$key = $value;\n }\n }\n }", "public function __clone()\n {\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if (is_object($value)) {\n $this->$key = clone $value;\n } else {\n $this->$key = $value;\n }\n }\n }", "public function __clone()\n {\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if (is_object($value)) {\n $this->$key = clone $value;\n } else {\n $this->$key = $value;\n }\n }\n }", "public static function createTable(){\n if (RBModel::recreateTable(get_called_class()) == false){\n return;\n }\n\n $bean = R::dispense( strtolower(get_called_class()));\n $fields = get_class_vars(get_called_class());\n \n foreach( $fields as $field=>$value){\n\n \n //ignora as variaveis que começam com _\n if ($field[0] == \"_\" || $field == \"id\"){\n continue;\n }\n\n $r = new ReflectionProperty(get_called_class(), $field);\n $comment = strtolower($r->getDocComment());\n\n if (strstr($comment,\"@varchar\")){\n $value = \"\";\n } else\n if (strstr($comment,\"@int\")){\n $value = 0;\n } else\n if (strstr($comment,\"@date\")){\n $value = \"1990-01-01\";\n } else\n if (strstr($comment,\"@datetime\")){\n $value = \"1990-01-01 00:00:00\";\n } else\n if (strstr($comment,\"@double\")){\n $value = 0.0;\n } else\n if (strstr($comment,\"@bool\")){\n $value = false;\n } else\n if (strstr($comment,\"@money\")){\n $value = \"10.00\";\n }\n \n \n $bean->$field = $value;\n }\n \n R::store($bean);\n R::trash($bean);\n }", "protected function setUpPrimaryKey()\n {\n $this->getOldTable()->createColumn('foo', Type::STRING, array('length' => 50));\n $this->getOldTable()->createColumn('bar', Type::STRING, array('length' => 50));\n\n $this->getOldTable()->createPrimaryKey(array('foo'), 'pk');\n\n $this->createOldTable();\n }", "public function __clone()\n {\n $this->constructedObjectId = spl_object_hash($this);\n }", "public function resetForClone()\n {\n // reset any fields for successful clone\n $this->id = null;\n return $this;\n }", "public function __clone()\n {\n foreach ($this->_associations as $i => $association) {\n $this->_associations[$i] = clone $association;\n }\n }", "public function __clone()\r\n {\r\n $schema = new self();\r\n\r\n $schema->columns = $this->columns;\r\n $schema->lastError = '';\r\n\r\n return $schema;\r\n }", "protected function _beforeSave()\n\t{\n\t\tparent::_beforeSave();\n\n $date = Mage::getModel('core/date')->date('Y-m-d H:i:s');\n\t\tif ($this->isObjectNew()) {\n\t\t\t$this->setCreatedAt($date);\n\t\t\t$this->setUpdatedAt($date);\n\t\t} else {\n\t\t\t$this->setUpdatedAt($date);\n\t\t}\t\n\t\t\n\t\treturn $this;\n\t}", "function __clone()\r\n\t{\r\n\t\tforeach ($this as $key => $value)\r\n\t\t{\r\n\t\t\tif (is_object($value))\r\n\t\t\t{\r\n\t\t\t\t$this->{$key} = clone($value);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function getClone($withParameters = true) {\n\t\t$clone = new static($this->sqlAdapter, $this->idField, $this->class);\n\t\tif( $withParameters ) {\n\t\t\t$clone->parameters = $this->parameters;\n\t\t}\n\t\treturn $clone;\n\t}", "public function __clone()\r\n {\r\n $this->document = [];\r\n $this->document_id = 0;\r\n\r\n $this->documentTotal = 0;\r\n $this->documentExchageTotal = 0;\r\n\r\n $this->associatedDocuments = [];\r\n }", "public function update_simple_assocs()\n {\n Logger::getInstance()->po_log(\"PO:update_simple_assocs\");\n\n foreach( $this->hasOne as $attr => $type )\n {\n $obj = $this->attributeValues[ $attr ]; // Valor es un objeto (puede ser null!)\n\n // El objeto debe estar cargado para poder pedirle el id\n if ( $obj !== PersistentObject::NOT_LOADED_ASSOC )\n {\n $refAttrName = DatabaseNormalization::simpleAssoc( $attr );\n if ($obj)\n {\n // Si es MTI, el id de cualquier clase parcial será el mismo.\n $this->attributeValues[ $refAttrName ] = $obj->getId(); // seteo ref_id, ej. \"email_id\"\n }\n else\n {\n $this->attributeValues[ $refAttrName ] = NULL; // Si no hay objeto, la referencia es NULL.\n }\n }\n }\n }", "static function saveObject () {\n $query = 'update '.Config::getTablePrifix().self::getTableName().' set ';\n $feilds = self::getFeildNames();\n $query .= implode(',',$feilds);\n $query .= ') values(';\n foreach ($feilds as $feild) {\n if ($feild != current($feilds)) {\n $query .= ',';\n }\n $query .= $feild.' = \\''.Database::escape(self::getFeildValue($feild)).'\\'';\n }\n $query .= ' where '.self::getIdFeild().' = \\''.self::getFeildValue(self::getIdFeild()).'\\'';\n Database::query($query);\n return $this;\n }", "public function __clone()\n {\n unset($this->id);\n }", "protected function initialiseFromPrimary()\n {\n foreach ($this->from as $key => $from) {\n if (isset($from->primary)) {\n } else {\n $this->from[$key]->primary = false;\n }\n }\n\n return $this;\n }", "public function makePrimary()\n {\n $this->primary = 1;\n $this->save();\n self::where('church_id', $this->church_id)\n ->where('id', '!=', $this->id)\n ->update(['primary' => 0]);\n }", "public function getNewModel()\n { if (isset($this->oModel))\n {\n if (get_class($this->oModel) !== $this->modelClassName)\n {\n // yes we do\n $this->resetModel();\n\n }\n else\n {\n // no, we do not\n }\n }\n else\n {\n // we have no record instance - create one\n $this->resetModel();\n }\n\n return clone $this->oModel;\n }", "public function create()\n {\n foreach ($this->_getColumns() as $column) {\n $data[$column] = $this->get($column);\n }\n\n $data['updated_at'] = \\Carbon\\Carbon::now()->toDateTimeString();\n $data['is_active'] = true;\n $this->_localConfig->database()->insert($this->_getTable(), $data);\n\n return $this;\n }", "function create()\n {\n $this->_getConnection();\n $this->preSave();\n $req = 'INSERT INTO `'.$this->_con->pfx.$this->_table.'` SET'.\"\\n\";\n $fields = array();\n $assoc = array();\n foreach ($this->_cols as $col=>$val) {\n $field = new $val['type']();\n if ($col == 'id') {\n continue;\n } elseif ($field->type == 'manytomany') {\n // If is a defined array, we need to associate.\n if (is_array($this->$col)) {\n $assoc[$val['model']] = $this->$col;\n }\n continue;\n }\n $fields[] = '`'.$col.'` = \\''.$this->_con->esc($this->$col).'\\'';\n }\n $req .= implode(','.\"\\n\", $fields);\n if (!$this->_con->execute($req)) {\n throw new Exception($this->_con->error());\n }\n if (false === ($id=$this->_con->getLastID())) {\n throw new Exception($this->_con->error());\n }\n $this->_data['id'] = $id;\n foreach ($assoc as $model=>$ids) {\n $this->batchAssoc($model, $ids);\n }\n return true;\n }", "protected function _beforeSave()\r\n {\r\n parent::_beforeSave();\r\n $now = Mage::getSingleton('core/date')->gmtDate();\r\n if ($this->isObjectNew()) {\r\n $this->setCreatedAt($now);\r\n }\r\n $this->setUpdatedAt($now);\r\n return $this;\r\n }", "public function create(){\n\n $id=0;\n $attributes = $this->prepared_attributes_insert();\n\t\t\n\t $sql = \"INSERT INTO \".static::$table_name.\" (\";\n\t $sql .= join(\",\",array_keys($attributes));\n\t $sql .= \") VALUES (\"; \n $sql .= join(\",\",array_values($attributes));\t\t \n $sql .= \") \";\n \n $idf = static::$id_field;\n \n $this->{static::$id_field} = static::db()->insert($sql);\n static::db()->free_statement();\n if (static::$idf !== -1)\n {\n\t return true;\n\t } else {\n\t return false;\n\t }\n }", "public function prepAttributesForSave()\n\t{\n\t\t$attributes = $this->defineAttributes();\n\t\t$attributes['dateUpdated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\t\t$attributes['dateCreated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\n\t\tforeach ($attributes as $name => $config)\n\t\t{\n\t\t\t$config = ModelHelper::normalizeAttributeConfig($config);\n\t\t\t$value = $this->getAttribute($name);\n\n\t\t\t$this->setAttribute($name, ModelHelper::packageAttributeValue($config, $value, true));\n\t\t}\n\n\t\t// Populate dateCreated and uid if this is a new record\n\t\tif ($this->isNewRecord())\n\t\t{\n\t\t\t$this->dateCreated = DateTimeHelper::currentTimeForDb();\n\t\t\t$this->uid = StringHelper::UUID();\n\t\t}\n\n\t\t// Update the dateUpdated\n\t\t$this->dateUpdated = DateTimeHelper::currentTimeForDb();\n\t}", "function prepareForCopy() {\n\t\t$this->id = null;\n\t}", "public function _cloned($obj)\n {\n $this->new = true;\n $this->data = [];\n $this->attr($obj);\n $this->init();\n }", "function create($dq=null){\n\t\tif($this->id)throw new APortalException(\"Object already have ID, cannot create again\",$this);\n\n\t\t// First we are going to create entry in obj table\n\t\t$dq_obj = $this->api->db->dsql();\n\t\t$dq_obj->set('type',$this->type);\n\t\t$dq_obj->set('name',$this->name);\n\t\t$dq_obj->table(\"obj\");\n\t\t$this->id = $dq_obj->do_insert();\n\n\t\t// Now we are creating entry in supplementary table\n\t\t$dq=$this->prepareSave($dq);\n\t\t$dq->set('id',$this->id);\n\t\ttry {\n\t\t\t$id=$dq->do_replace();\n\t\t} catch (SQLException $e){\n\t\t\t// Perhaps table does not exist. We will try to create it and repeat query.\n\t\t\t$this->createTable();\n\t\t\t$dq->do_replace();\n\t\t}\n\n\t\t$this->name='Object #'.$this->id;\n\t\t$this->short_name='obj_'.$this->id;\n\t\treturn $this;\n\t}", "function __construct($row = null) {\n $this->_data = array();\n $this->_extra = array();\n if (!isset(self::$_defaults[$this->getObjectName()])) {\n // maintain the default data (column values) separately\n self::$_defaults[$this->getObjectName()] = array();\n $this->loadDefaults();\n }\n\n // clone from the default data. much faster than reloading the column values every time\n $def =& self::$_defaults[$this->getObjectName()];\n foreach ($def as $k => &$d) {\n $this->_data[$k] = clone $d;\n }\n\n if (is_array($row)) {\n $this->loadFromRow($row);\n } else if (is_int($row)) {\n $this->setValue('id', $row);\n }\n }", "protected function _beforeSave()\n {\n parent::_beforeSave();\n $now = Mage::getSingleton('core/date')->gmtDate();\n if ($this->isObjectNew()) {\n $this->setCreatedAt($now);\n }\n $this->setUpdatedAt($now);\n return $this;\n }", "public function prep() : self\n {\n\n $this->prepRelations();\n\n return $this;\n }", "public function prepareSave()\n {\n $info = $this->getInfoInstance();\n\n $info->setCcNumberEnc($info->encrypt($info->getCcNumber()));\n $info->setCcCidEnc($info->encrypt($info->getCcCid()));\n\n $info\n ->setCcNumber(null)\n ->setCcCid(null);\n\n return $this;\n }", "public function create(array $attributes = []){\n $data_built = $this->buildData($attributes);\n /*\n | Run afterCreating() methods...\n */\n $primary_key = (new $this->class)->getKeyName();\n $client = new Query($this->class);\n $last_primary_key = $client->getLastPrimaryKeyValue();\n\n if(is_subclass_of($data_built, Model::class)){\n $data_built->$primary_key = ++$last_primary_key;\n }else{\n foreach($data_built as $item){\n $item->$primary_key = ++$last_primary_key;\n }\n }\n\n $client->fill($data_built);\n return $data_built;\n }", "public function fresh()\n {\n if ($this->hasModel() && $this->exists()) {\n return odb($this->db(), $this->table())->find((int) $this->data['id']);\n }\n\n return $this;\n }", "public function copy($cap = false, $generateNewId = true)\n\t{\n\t\t//refresh the ID attribute.\n\t\t$rows = $this->getRows();\n\t\t$this->row['id'] = $rows['id'];\n\n\t\treturn $this->create($cap, $generateNewId);\n\t}", "public function syncOriginal(): Model\n {\n $this->original = $this->getAttributes();\n\n return $this;\n }", "protected function createModelInstance(&$row) {\n\n // NOTE: Because $row might contain extra fields (like from a join,\n // We have to use the public 'setData' (which only tries to set fields\n // that exist).\n\n $class = $this->_modelClass;\n $id = $row[$this->getModelPrimaryKey()];\n $instance = new $class($id);\n $instance->setData($row);\n $instance->escaped = $this->escaped;\n\n return $instance;\n }", "public function save() {\n\n $this->get(\"id\") ? $this->_update() : $this->_create();\n return $this;\n\n }", "function create () {\n\t\t$stm = DB::$pdo->prepare(\"insert into `generated_object` ({$generator_insert_columns}) \n\t\t\t\t\t\t\t\t values ({$generator_insert_values})\");\n\t\t// generator bind hook\n\t\t$stm->execute();\n\n\t\t$this->id = DB::$pdo->lastInsertId();\n\t}", "public function newEntryModel();", "public function updateRecord() {\n $model = self::model()->findByAttributes(array('id_customer' => $this->id_customer, 'id_supplier' => $this->id_supplier));\n\n //model is new, so create a copy with the keys set\n if (null === $model) {\n //we don't use clone $this as it can leave off behaviors and events\n $model = new self;\n $model->id_customer = $this->id_customer;\n $model->id_supplier = $this->id_supplier;\n }\n $model->save(false);\n return $model;\n }", "protected function resetFromPrimary()\n {\n foreach ($this->from as $key => $from) {\n $this->from[$key]->primary = false;\n }\n\n return $this;\n }", "function &shallowCopy () {\n \t\t$class = get_class($this);\n \t\t$newObject =& new $class;\n \t\t\n \t\t$varList = array_keys(get_object_vars($this));\n \t\tforeach ($varList as $varName) {\n \t\t\tif (is_object($this->$varName))\n \t\t\t\t$newObject->$varName =& $this->$varName;\n \t\t\telse\n\t \t\t\t$newObject->$varName = $this->$varName;\n \t\t}\n \t\t\n \t\treturn $newObject;\n \t}", "private static function _objectify(DaoQuery $qry, array $row)\n {\n // Populate the focus object\n $fClass = $qry->getFocusClass();\n $newEntity = new $fClass;\n $newEntity->setId($row['id']);\n DaoMap::loadMap(strtolower($fClass));\n foreach (DaoMap::$map[strtolower($fClass)] as $field => $properties)\n {\n //ignore metadata\n if (trim($field) === '_')\n continue;\n //if it's just a private data for this entity class\n if (!isset($properties['rel']))\n $value = $row[$field];\n //if it's a relationship then we need to consider repopulate object(s)\n else if ($properties['rel'] === DaoMap::MANY_TO_ONE || ($properties['rel'] === DaoMap::ONE_TO_ONE))\n {\n //creates a empty object\n $id = $row[$field . 'Id'];\n $cls = DaoMap::$map[strtolower($fClass)][$field]['class'];\n $value = new $cls;\n $value->setId($id);\n $value->setProxyMode(true);\n }\n else if ($properties['rel'] === DaoMap::ONE_TO_MANY || ($properties['rel'] === DaoMap::MANY_TO_MANY))\n {\n $value = array(); //creates an empty array to stand out as an array\n }\n else\n continue;\n self::_setProperty($newEntity, $field, $value);\n }\n return $newEntity;\n }", "public function __clone()\n {\n parent::__clone();\n $this->_stockItem = null;\n $this->_stockItems = null;\n $this->_inStockStockItems = null;\n return $this;\n }", "public function create(array $attributes = [])\n {\n return tap($this->newModelInstance($attributes), function ($instance) {\n if (method_exists($instance, 'isTableShard')) {\n if ($instance->isTableShard()) {\n $instance->setTable($instance->getShardTable());\n }\n }\n $instance->save();\n });\n }", "public function __clone()\n {\n $this->id = null;\n\n // Generate a new identifier\n $identifier = Uuid::uuid1()->toString();\n $this->identifier = $identifier;\n $this->uri = 'local:'.$this->identifier;\n\n // Set last change/update to now\n $this->updatedAt = new \\DateTimeImmutable();\n $this->changedAt = $this->updatedAt;\n }", "public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }", "private static function duplicateRecord($from, $to) {\n $fields = $from->as_array();\n unset($fields['id']);\n foreach ($fields as $name => $value) {\n $to->$name = $value;\n }\n\n return $to;\n }", "public function __clone()\n {\n foreach ($this->data as $key => $value) {\n if ($value instanceof self) {\n $this[$key] = clone $value;\n }\n }\n }", "protected function _prepareEnrtyForSave()\n {\n $object = $this->getObject();\n if (!($object instanceof Varien_Object)) {\n Mage::throwException(Mage::helper('googlebase')->__('Object model is not specified to save Google Base entry.'));\n }\n\n $this->_setUniversalData();\n\n $attributes = $this->getAttributeValues();\n if (is_array($attributes) && count($attributes)) {\n foreach ($attributes as $name => $data) {\n\n $name = $this->_normalizeString($name);\n $value = isset($data['value']) ? $data['value'] : '';\n $type = isset($data['type']) && $data['type'] ? $data['type'] : self::DEFAULT_ATTRIBUTE_TYPE;\n\n $customSetter = '_setAttribute' . ucfirst($name);\n if (method_exists($this, $customSetter)) {\n $this->$customSetter($name, $value, $type);\n } else {\n $this->_setAttribute($name, $value, $type);\n }\n }\n }\n return $this;\n }", "public function save(){\n\n if (!$this->preSave()) {\n return FALSE;\n }\n\n $reference = $this->_getReference();\n $pk = $this->_getPK();\n\n $data = get_object_vars($this);\n\n if (empty($pk) && $pk !== NULL) {\n throw new \\Exception('Model PK is empty!');\n }\n\n if (is_array($pk)) {\n $pkv = [];\n $_pkv = [];\n $insert = TRUE;\n foreach ($pk as $c) {\n if (!empty($data[$c])) {\n $pkv[] = $data[$c];\n $_pkv[$c] = $data[$c];\n // unset($data[$c]);\n $insert = FALSE;\n }\n }\n\n if (!$insert) {\n $insert = is_null(self::getWhere($_pkv));\n }\n\n\n } else {\n $pkv = !empty($data[$pk]) ? $data[$pk] : NULL;\n $_pkv = [$pk => $pkv];\n\n // Se for AUTO INCREMENT remove dos campos a serem INSERIDOS/ALTERADOS\n if (self::_isPkAi())\n unset($data[$pk]);\n\n $insert = empty($pkv);\n }\n\n unset($data['__error']);\n\n foreach ($data as $key => $value) {\n if (strpos($key, '_') === 0)\n unset($data[$key]);\n }\n\n if ($insert) {\n\n if (array_key_exists('created', $data))\n $data['created'] = Date('Y-m-d H:i:s');\n\n if (array_key_exists('updated', $data))\n unset($data['updated']);\n\n\n $res = self::$connection->insert($reference, $data)->execute();\n\n if ($res && $pk !== NULL && !is_array($pk))\n $this->{'set'.$pk}(self::$connection->lastInsertId());\n\n } else {\n\n if (array_key_exists('updated', $data))\n $data['updated'] = Date('Y-m-d H:i:s');\n\n if (array_key_exists('created', $data))\n unset($data['created']);\n\n $res = self::$connection->update($reference, $data, $_pkv)->execute();\n\n }\n\n if ($res)\n $this->refresh();\n\n $this->afterSave($res);\n\n return $res;\n\n }", "static private function _reuseAfterSave(dDbRow3 $object, $onlyFields = false)\n {\n // Isso significa que temos os originais e o isLoaded() antigo.\n $className = get_called_class();\n $maxSlots = self::structGet('allowReusable');\n if (!$maxSlots) {\n return new $className($onlyFields);\n }\n\n // --> Se mudou o primaryKey, então tenho que des-carregar tudo o que fazia referência ao ID antigo.\n // --> Se o objeto não estava no sistema de reusables, então tenho que adicioná-lo\n // --> Se o objeto não estava alocado, mas outro estava com o mesmo id/onlyFields, mantenha-o desalocado\n // --> Se o objeto não estava alocado, mas nenhum outro também estava, aloque-o\n $primaryKey = self::structGet('primaryKey');\n $primaryVal = $object->getValue($primaryKey);\n if ($object->isLoaded()) {\n $primaryOri = $object->getOriginal($primaryKey);\n\n if ($primaryVal != $primaryOri) {\n $compareKey = \"{$primaryOri}(\";\n $compareLen = strlen($compareKey);\n foreach (self::$reusable[$className] as $reuseKey => $reuseItem) {\n if (substr($reuseKey, 0, $compareLen) == $compareKey) {\n unset(self::$reusable[$className][$reuseKey]);\n }\n }\n }\n }\n\n if (!isset(self::$reusable[$className])) {\n self::$reusable[$className] = array();\n }\n\n $onlyFields = (sizeof($object->fieldValues) == sizeof(self::structGet('fieldProps',\n 'simple'))) ? false : implode(\",\", array_keys($object->fieldValues));\n if (self::reuseExists($primaryVal, $onlyFields)) {\n return false;\n }\n\n self::_reuseAllocate(1);\n if (sizeof(self::$reusable[$className]) < $maxSlots) {\n // Só vamos alocar se houverem slots disponíveis.\n $tryKey = $primaryVal . \"(\" . ($onlyFields ? $onlyFields : 'all') . \")\";\n self::$reusable[$className][$tryKey] = array('objRef' => $object, 'inUse' => 1);\n }\n return true;\n }", "public function save()\n {\n\n // generate all column's sql query\n $column_names = '';\n $column_values = '';\n foreach ($this->columns as $field_name => $column_obj)\n {\n if ($column_obj->columnName === null) {\n $column_names .= $field_name.', ';\n } else {\n $column_names .= $column_obj->columnName.', ';\n }\n $column_values .= $column_obj->generateValueForSQL().', ';\n }\n $column_names = substr($column_names, 0, -1);\n $column_values = substr($column_values, 0, -1);\n $this_table_name = $this->table_name;\n $this_id = $this->id;\n\n if ($this->id === 0) {\n // This object is not saved yet.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values);';\n // Execute query\n } else {\n // This object is on the DB.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values) WHERE id=$this_id;';\n // Execute query\n }\n\n mysql_run_query($query);\n\n }", "public function __clone(){\n\t trigger_error('La clonación de este objeto no está permitida', E_USER_ERROR);\n\t }", "function __clone()\n\t{\n\t\t$relations = array();\n\n\t\tif (!empty($this->relations))\n\t\t{\n\t\t\t/** @var Relation[] $relations */\n\t\t\tforeach ($this->relations as $key => $relation)\n\t\t\t{\n\t\t\t\t$relations[$key] = clone($relation);\n\t\t\t\t$relations[$key]->reset();\n\t\t\t}\n\t\t}\n\n\t\t$this->relations = $relations;\n\t}", "function factory($id,$row) {\n\t\t$mapper=clone($this);\n\t\t$mapper->reset();\n\t\t$mapper->id=$id;\n\t\tforeach ($row as $field=>$val)\n\t\t\t$mapper->document[$field]=$val;\n\t\t$mapper->query=[clone($mapper)];\n\t\tif (isset($mapper->trigger['load']))\n\t\t\t\\Base::instance()->call($mapper->trigger['load'],$mapper);\n\t\treturn $mapper;\n\t}", "function ctools_export_new_object($table, $set_defaults = TRUE) {\r\n $schema = ctools_export_get_schema($table);\r\n $export = $schema['export'];\r\n\r\n $object = new $export['object'];\r\n foreach ($schema['fields'] as $field => $info) {\r\n if (isset($info['object default'])) {\r\n $object->$field = $info['object default'];\r\n }\r\n else if (isset($info['default'])) {\r\n $object->$field = $info['default'];\r\n }\r\n else {\r\n $object->$field = NULL;\r\n }\r\n }\r\n\r\n if ($set_defaults) {\r\n // Set some defaults so this data always exists.\r\n // We don't set the export_type property here, as this object is not saved\r\n // yet. We do give it NULL so we don't generate notices trying to read it.\r\n $object->export_type = NULL;\r\n $object->{$export['export type string']} = t('Local');\r\n }\r\n return $object;\r\n}", "public function newObject(array $row = array())\n {\n return $this->object_factory->newObject($row);\n }", "public function __clone()\n {\n $keep_prefix = 'CLASS_';\n $keep_len = strlen($keep_prefix);\n $keep_prefix2 = 'CONF_';\n $keep_len2 = strlen($keep_prefix2);\n foreach ((array) get_object_vars($this) as $k => $v) {\n if (substr($k, 0, $keep_len) === $keep_prefix) {\n continue;\n }\n if (substr($k, 0, $keep_len2) === $keep_prefix2) {\n continue;\n }\n $this->$k = null;\n }\n }", "public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }", "function createObject()\n {\n $stmt = $this->mysqli->prepare(\"INSERT INTO object(`name`, `description`, `price`, `typeCoin`, `weight`, `volume`, `limitationStrength`,\n `limitationDex`, `limitationCons`, `limitationInt`, `limitationWis`,`typeObject`, `primal`)\n VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)\");\n $stmt->bind_param(\n \"ssisiiiiiiisi\",\n $this->name,\n $this->description,\n $this->price,\n $this->typeCoin,\n $this->weight,\n $this->volume,\n $this->limitationStrength,\n $this->limitationDex,\n $this->limitationCons,\n $this->limitationInt,\n $this->limitationWis,\n $this->typeObject,\n $this->primal\n );\n $stmt->execute();\n $this->id = $this->mysqli->insert_id;\n $stmt->close();\n }", "public function __clone() {\n $this->a = clone $this->a;\n $this->b = clone $this->b;\n parent::__clone();\n }", "public function as_object() {\r\n $this->fetch_mode = 'object';\r\n return $this;\r\n }", "public static function instantation($the_record){ //Its the same as $row\n //$the_object = new self; // Bse of inheritance problem ,this as to change in late static\n $calling_class = get_called_class();\n $the_object = new $calling_class;\n \n \n// $the_object->id =$found_user['id'];\n// $the_object->username =$found_user['username'];\n// $the_object->password =$found_user['password'];\n// $the_object->First_Name =$found_user['first_name'];\n// $the_object->Last_Name =$found_user['last_name'];\n// \n foreach ($the_record as $the_attribute =>$value){\n if ($the_object->has_the_attribute($the_attribute)){\n \n $the_object->$the_attribute=$value; // Value is attribute in database\n } \n }\n return $the_object; \n \n }", "function createNewEntry( $doAllowPrimaryKeyUpdate=false ) \n { \n\t parent::createNewEntry( $doAllowPrimaryKeyUpdate );\n\t \n\t //$ccTransID = $this->getID(); \n\t $values = $this->getArrayOfValues();\n// \t echo \"<pre>\".print_r($values,true).\"</pre>\";\n\t \n\t if (isset($values['reg_id']))\n\t {\n\t \n\t\t // update balance owing column in cim_reg_registration table\n\t\t $singleReg = new RowManager_RegistrationManager($values['reg_id']);\n// \t\t $singleReg_list = $singleReg->getListIterator();\n// \t\t $singleReg_array = $singleReg_list->getDataList();\n// \t\t \n// \t\t reset($singleReg_array);\n// \t\t $record = current($singleReg_array);\n// \t\t $oldBalance = $record['registration_balance'];\n\t\t \n\t\t\t $balanceGetter = new FinancialTools();\n\t\t\t $balance = array();\n// \t\t\t $balance['registration_balance'] = $oldBalance - $record['cctransaction_amount'];\n\t\t\t $balance['registration_balance'] = $balanceGetter->simpleCalcBalanceOwing($values['reg_id']);\t\n\t\t\t $singleReg->loadFromArray( $balance );\n\t\t\t $singleReg->updateDBTable();\t\t\t\n\t\t }\t \n }", "public function copyFromDbRow($row) {\r\n $map = static::getDbMap();\r\n if ($map && (is_object($row) || is_array($row))) {\r\n\r\n $row = (object) $row;\r\n $primaryKey = $map[static::getDbPrimaryKey()];\r\n\r\n foreach($map as $property => $column) {\r\n if (property_exists($row, $column) && property_exists($this, $property)) {\r\n $this->$property = $row->$column;\r\n if ($column === $primaryKey) {\r\n $this->$property = (int) $this->$property;\r\n }\r\n }\r\n }\r\n }\r\n }" ]
[ "0.6332256", "0.61998326", "0.6151685", "0.60494846", "0.6041154", "0.6009676", "0.5935561", "0.5931129", "0.58673227", "0.5805495", "0.580052", "0.57638663", "0.57557493", "0.5726596", "0.57138896", "0.5705014", "0.57018805", "0.5678847", "0.56721795", "0.5608651", "0.56022346", "0.5580663", "0.5580663", "0.5576193", "0.5545285", "0.5542078", "0.5528904", "0.5526895", "0.5520199", "0.5502658", "0.5502658", "0.5493957", "0.5480282", "0.54730237", "0.54632473", "0.5444577", "0.5444577", "0.5444577", "0.5409197", "0.54068017", "0.540555", "0.5392975", "0.5382163", "0.53781736", "0.53417", "0.53282267", "0.53258085", "0.5322492", "0.53182524", "0.53131557", "0.5300431", "0.5281552", "0.52767235", "0.5272014", "0.5262416", "0.5257002", "0.5256392", "0.5244495", "0.5233545", "0.52253056", "0.5224813", "0.5219332", "0.5212654", "0.5211898", "0.5197068", "0.51818484", "0.5175083", "0.517029", "0.5169023", "0.5167112", "0.51652855", "0.51586074", "0.515847", "0.5155469", "0.51496863", "0.51493865", "0.5143787", "0.5140535", "0.5136355", "0.5127562", "0.51223946", "0.5111758", "0.510905", "0.5103374", "0.5098317", "0.50907576", "0.5076696", "0.50714374", "0.50562954", "0.5054037", "0.5052257", "0.5044029", "0.5040966", "0.50395435", "0.50368977", "0.50346357", "0.5026407", "0.5020506", "0.50192946", "0.5016562", "0.5015557" ]
0.0
-1
Declares an association between this object and a ChildTblEra object.
public function setTblEra(ChildTblEra $v = null) { if ($v === null) { $this->setProdEra(NULL); } else { $this->setProdEra($v->getEraId()); } $this->aTblEra = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildTblEra object, it will not be re-added. if ($v !== null) { $v->addTblProdInfo($this); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initialize()\n {\n $this->belongsTo('id_deuda', 'NbDeudas', 'id_deuda', array('alias' => 'NbDeudas'));\n $this->belongsTo('id_deuda', 'Nbdeudas', 'id_deuda', array('foreignKey' => true));\n }", "public function initialize()\n {\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('alias' => 'Datospersonales'));\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('foreignKey' => true));\n }", "public function initialize()\n {\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('foreignKey' => true,'alias' => 'Produto'));\n }", "public function addForeignKeys()\n\t{\n\t\t$table = $this->getTableName();\n\n\t\tforeach ($this->getBelongsToRelations() as $name => $config)\n\t\t{\n\t\t\t$otherModel = new $config[1];\n\t\t\t$otherTable = $otherModel->getTableName();\n\t\t\t$fkName = \"{$table}_{$name}_fk\";\n\n\t\t\tif (isset($config['onDelete']))\n\t\t\t{\n\t\t\t\t$onDelete = $config['onDelete'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (empty($config['required']))\n\t\t\t\t{\n\t\t\t\t\t$onDelete = static::SET_NULL;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$onDelete = null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tblx()->db->createCommand()->addForeignKey($fkName, $table, $config[2], $otherTable, 'id', $onDelete);\n\t\t}\n\t}", "public function initialize()\n {\n $this->hasMany('informacion_id', 'Informacionadicional', 'informacion_id', array('alias' => 'Informacionadicional'));\n $this->belongsTo('informacion_adicionalId', 'Adicional', 'adicional_id', array('alias' => 'Adicional'));\n }", "public function toForeignKey($primaryTable = null, $foreignKey = null, $onDelete = \"CASCADE\", $onUpdate = \"CASCADE\") {\n parent::toForeignKey($primaryTable, $foreignKey, $onDelete, $onUpdate);\n \n if($foreignKey == null) {\n $foreignKey = $this->_currentColumn;\n }\n\n if($primaryTable == null) {\n $otherTableName = explode(\"_\", $foreignKey);\n $otherTableName = $otherTableName[0];\n $primaryTable = $otherTableName;\n }\n\n $class = ucfirst(strtolower($this->_currentTable));\n $secondClass = ucfirst(strtolower($primaryTable));\n\n $this->addClass($class);\n $this->addClass($secondClass);\n \n $column = substr($this->_currentColumn, 0, strlen($this->_currentColumn) - 3);\n\n if($class == $secondClass) {\n \n $belongsToName = \"parent\";\n $hasManyName = \"children\";\n \n \n if($this->_currentColumn == \"instance_id\") {\n $belongsToName = \"instance\";\n $hasManyName = \"revisions\";\n }\n \n \n $belongsTo = array($belongsToName, \"class_name\" => $this->_modelNamespace.$class, \"foreign_key\" => $this->_currentColumn);\n $this->_classes[$class][\"belongs_to\"][] = $belongsTo;\n \n $hasMany = array($hasManyName, \"class_name\" => $this->_modelNamespace.$class, \"foreign_key\" => $this->_currentColumn);\n if($hasManyName == \"revisions\") {\n // if it's a revision relationship sort by revision\n $hasMany[\"order\"] = \"revision desc\";\n } elseif($this->columnExist($this->_currentTable, \"position\")) {\n // if there is a column position sort by this column\n $hasMany[\"order\"] = \"position asc\";\n }\n \n $this->_classes[$class][\"has_many\"][] = $hasMany;\n \n self::makeArrayUnique($this->_classes[$class][\"belongs_to\"]);\n self::makeArrayUnique($this->_classes[$class][\"has_many\"]);\n } else {\n \n $belongsTo = array(substr($foreignKey, 0, -3), \"class_name\" => $this->_modelNamespace.$secondClass, \"foreign_key\" => $this->_currentColumn);\n $this->_classes[$class][\"belongs_to\"][] = $belongsTo;\n \n $primaryColumnName = explode(\"_\", $this->_currentTable);\n array_shift($primaryColumnName);\n $primaryColumnName = join(\"_\", $primaryColumnName);\n \n $hasMany = array($primaryColumnName.\"s\", \"class_name\" => $this->_modelNamespace.$class, \"foreign_key\" => $this->_currentColumn);\n \n if($this->columnExist($this->_currentTable, \"position\")) {\n $hasMany[\"order\"] = \"position asc\";\n }\n \n $this->_classes[$secondClass][\"has_many\"][] = $hasMany;\n \n self::makeArrayUnique($this->_classes[$class][\"belongs_to\"]);\n self::makeArrayUnique($this->_classes[$secondClass][\"has_many\"]);\n }\n\n // fluent interface\n return $this;\n }", "public function Child() {\n return $this->belongsTo(Child::class);\n }", "public function initialize()\n {\n\t\t$this->belongsTo('sfafba_partner_id', 'SfAffiliationPartener', 'sfafpa_id', array('alias' => 'sf_affiliation_partener_partner_id'));\n\n parent::initialize();\n }", "public function initialize()\r\n {\r\n $this->belongsTo('encuesta_personalId', 'Personal', 'personal_id', array('alias' => 'Personal'));\r\n $this->belongsTo('encuesta_alojamientoId', 'Alojamiento', 'alojamiento_id', array('alias' => 'Alojamiento'));\r\n $this->belongsTo('encuesta_recepcionId', 'Recepcion', 'recepcion_id', array('alias' => 'Recepcion'));\r\n $this->belongsTo('encuesta_unidadId', 'Unidad', 'unidad_id', array('alias' => 'Unidad'));\r\n $this->belongsTo('encuesta_adicionalId', 'Adicional', 'adicional_id', array('alias' => 'Adicional'));\r\n $this->belongsTo('encuesta_sorteoId', 'Sorteo', 'sorteo_id', array('alias' => 'Sorteo'));\r\n }", "protected function addForeignKeys()\n {\n // TargetRecord\n $this->addForeignKey(\n $this->db->getForeignKeyName(InitiativeRecord::tableName(), 'id'),\n InitiativeRecord::tableName(),\n 'id',\n ElementRecord::tableName(),\n 'id',\n 'CASCADE'\n );\n\n // TargetRecord\n $this->addForeignKey(\n $this->db->getForeignKeyName(TargetRecord::tableName(), 'elementId'),\n TargetRecord::tableName(),\n 'elementId',\n InitiativeRecord::tableName(),\n 'id',\n 'CASCADE'\n );\n $this->addForeignKey(\n $this->db->getForeignKeyName(TargetRecord::tableName(), 'userId'),\n TargetRecord::tableName(),\n 'userId',\n UserRecord::tableName(),\n 'id',\n 'CASCADE'\n );\n }", "public function associate($entity)\n {\n // The Mapper will retrieve this association within the object model, we won't be using\n // the foreign key attribute inside the parent Entity.\n //\n //$this->parent->setEntityAttribute($this->foreignKey, $entity->getEntityAttribute($this->otherKey));\n //\n // Instead, we'll just add the object to the Entity's attribute\n\n $this->parent->setEntityAttribute($this->relation, $entity->getEntityObject());\n }", "protected function addRelation()\n {\n $fromTable = $this->ask('Enter the name of the parent table');\n $this->checkInput($fromTable);\n $toTable = $this->ask('Enter the name of the child table');\n $this->checkInput($toTable);\n $relationColumn = $this->ask('Enter the column which is going to be referenced (default is \\'id\\')', 'id');\n $action = $this->choice('Action to be taken for column (default is \\'cascade\\')', ['cascade', 'restrict', 'set null'], 'cascade');\n $this->service->addRelation($fromTable, $toTable, $relationColumn, $action);\n }", "public function initialize()\n {\n $this->belongsTo('cons_order_id', '\\Orders', 'id', array('alias' => 'Orders'));\n $this->belongsTo('order_id', '\\Orders', 'id', array('alias' => 'Orders'));\n }", "public function initialize()\n {\n $this->hasMany(\n 'id',\n AuditDetail::class,\n 'audit_id',\n [\n 'alias' => 'details',\n ]\n );\n }", "public function initialize()\n {\n $this->setSchema(\"atiempo_prod\");\n $this->hasMany('id', 'AcCartaAvalDetalle', 'id_carta', ['alias' => 'AcCartaAvalDetalle']);\n }", "public function buildRelations()\n {\n $this->addRelation('Marca', 'Marca', RelationMap::MANY_TO_ONE, array('idmarca' => 'idmarca', ), 'CASCADE', 'CASCADE');\n $this->addRelation('Proveedor', 'Proveedor', RelationMap::MANY_TO_ONE, array('idproveedor' => 'idproveedor', ), 'CASCADE', 'CASCADE');\n }", "public function initialize()\n {\n $this->setSource('tblEntry');\n\n $this->hasOne('userId', '\\Soul\\Model\\User', 'userId', ['alias' => 'user']);\n $this->belongsTo('eventId', '\\Soul\\Model\\Event', 'eventId', ['alias' => 'event']);\n $this->hasOne('paymentId', '\\Soul\\Model\\Payment', 'paymentId', ['alias' => 'payment']);\n }", "public function initialize()\n {\n $this->belongsTo('id_actaconteo_persona', 'CobActaconteoPersonaExcusa', 'id_actaconteo_persona', array(\n 'reusable' => true\n ));\n $this->belongsTo('id_actaconteo_persona', 'CobActaconteoPersonaFacturacion', 'id_actaconteo_persona', array(\n 'reusable' => true\n ));\n $this->belongsTo('id_actaconteo', 'CobActaconteo', 'id_actaconteo', array(\n 'reusable' => true\n ));\n }", "public function initialize()\n {\n $this->belongsTo('cd_nfe', 'PdvNfe', 'cd_nfe', array('alias' => 'PdvNfe'));\n }", "public function initialize()\n {\n $this->hasMany('cd_desconto', 'App\\Models\\PdvVendasHasItens', 'cd_desconto', array('alias' => 'PdvVendasHasItens'));\n $this->belongsTo('cd_caixa', 'App\\Models\\PdvCaixa', 'cd_caixa', array('alias' => 'PdvCaixa'));\n $this->belongsTo('cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('cd_unidade_negocio', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('cd_usuario_criacao', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }", "public function initialize()\n {\n $this->hasMany('cd', 'ShouhinMrs', 'shu_souko_mr_cd', array('alias' => 'ShouhinMrs'));\n $this->hasMany('cd', 'ShiireMeisaiDts', 'souko_mr_cd', array('alias' => 'ShiireMeisaiDts'));\n $this->hasMany('cd', 'UriageMeisaiDts', 'souko_mr_cd', array('alias' => 'UriageMeisaiDts'));\n $this->belongsTo('tantou_mr_cd', 'TantouMrs', 'cd', array('alias' => 'TantouMrs'));\n }", "public function initialize()\n {\n $this->hasMany('id', 'Aulas', 'id_materia', array('alias' => 'Aulas'));\n $this->hasMany('id', 'Aulas', 'id_materia', NULL);\n }", "public function setRelationChildId($id);", "public function initialize()\n {\n $this->hasMany('idmov', 'App\\Models\\MovEstoque', 'movimentacao_manual_estoque_idmov', array('alias' => 'MovEstoque'));\n $this->hasMany('idmov', 'App\\Models\\MovimentacaoManualEstoqueItem', 'idmov', array('alias' => 'MovimentacaoManualEstoqueItem'));\n $this->belongsTo('cd_ordem_servico_reparo', 'App\\Models\\OrdemServicoReparo', 'cd_ordem_servico', array('alias' => 'OrdemServicoReparo'));\n $this->belongsTo('cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('requerente', 'App\\Models\\Empresa', 'cd_empresa', array('alias' => 'Empresa'));\n $this->belongsTo('usuario_responsavel', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }", "public function initialize()\n {\n $this->belongsTo('posicao_id', 'Ecommerce\\Admin\\Models\\Posicao', 'id', array('alias' => 'Posicao'));\n }", "public function initialize()\n {\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', array('alias' => 'Documentosbeneficios'));\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', NULL);\n }", "public function initialize()\n {\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', array('alias' => 'Cargaestudiantes'));\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', array('alias' => 'Datosprofesiona'));\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', NULL);\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', NULL);\n }", "public function buildRelations()\n {\n $this->addRelation('ArtRequest', 'ArtRequestORM\\\\ArtRequest', RelationMap::ONE_TO_MANY, array('event_id' => 'event_id', ), 'CASCADE', 'CASCADE', 'ArtRequests');\n }", "public function initialize()\n {\n $this->hasMany('id', 'Movie', 'classification_id', array('alias' => 'Movie'));\n }", "public function foreign(string $foreignKey)\n {\n $this->addColumn();\n $this->foreignKey = $foreignKey;\n return $this;\n }", "public function child(){\n return $this->belongsTo('App\\Child', 'child_id');\n }", "public function setRelations() {}", "public function addRelation($tablename, $arg1, $arg2=FALSE) {\n\t\tif ($arg2) {\n\t\t\t$origKey = $arg1;\n\t\t\t$targetKey = $arg2;\n\t\t}\n\t\telse {\n\t\t\t$origKey = self::$primaryKey[$this->table];\n\t\t\t$targetKey = $arg1;\n\t\t}\n\t\tif (isset(self::$global['dbCon']) && self::$global['dbCon']==$this->connection) \n\t\t\t$table = new table ($tablename);\n\t\telse {\n\t\techo 'ceva'.$tablename;\n\t\t\t$table = new table ($tablename,FALSE,FALSE,$this->connection);\n\t\t}\n\t\tif (isset($table->$targetKey)) {\n\t\t\tself::$relations[$this->table][$tablename] = new stdClass();\n\t\t\tself::$relations[$this->table][$tablename]->origKey = $origKey;\n\t\t\tself::$relations[$this->table][$tablename]->targetKey = $targetKey;\n\t\t\tself::$relations[$tablename][$this->table] = new stdClass();\n\t\t\tself::$relations[$tablename][$this->table]->origKey = $targetKey;\n\t\t\tself::$relations[$tablename][$this->table]->targetKey = $origKey;\n\t\t\tself::$relations[$tablename][$this->table]->type = self::$relations[$this->table][$tablename]->type = NOT_ANALYZED;\n\t\t}\n\t\telse {\n\t\t\tthrow new Exception(\"$targetKey column doesn't exist in $tablename\");\n\t\t}\n\t\t$this->analyzeRelations();\n\t\treturn $this;\n\t}", "public function initialize()\n {\n $this->hasMany('idprodutoArea', 'App\\Models\\TabelaPrecoHasDesconto', 'produtoArea_idprodutoArea', array('alias' => 'TabelaPrecoHasDesconto'));\n $this->belongsTo('area_cd_area', 'App\\Models\\Area', 'cd_area', array('alias' => 'Area'));\n $this->belongsTo('produto_cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('cd_tabela', 'App\\Models\\TabelaPreco', 'cd_tabela', array('alias' => 'TabelaPreco'));\n $this->belongsTo('unidade_negocio_cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->hasMany('idprodutoArea', 'App\\Models\\TabelaPrecoHasDesconto', 'produtoArea_idprodutoArea', NULL);\n $this->belongsTo('area_cd_area', 'App\\Models\\Area', 'cd_area', array('foreignKey' => true,'alias' => 'Area'));\n $this->belongsTo('produto_cd_produto', 'App\\Models\\Produto', 'cd_produto', array('foreignKey' => true,'alias' => 'Produto'));\n $this->belongsTo('cd_tabela', 'App\\Models\\TabelaPreco', 'cd_tabela', array('foreignKey' => true,'alias' => 'TabelaPreco'));\n $this->belongsTo('unidade_negocio_cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('foreignKey' => true,'alias' => 'UnidadeNegocio'));\n }", "public function __construct()\n {\n $this->table = 'products';\n $this->primary_key = 'id';\n \n $this->has_many['pictures'] = array(\n 'foreign_model' => 'Pictures_model',\n 'foreign_table' => 'pictures',\n 'foreign_key' => 'product_id',\n 'local_key' => 'id'\n );\n \n $this->has_many['options'] = array(\n 'foreign_model' => 'Product_options_model',\n 'foreign_table' => 'product_options',\n 'foreign_key' => 'product_id',\n 'local_key' => 'id'\n );\n\n \n \n parent::__construct();\n }", "public function initialize()\n {\n \t$this->belongsTo('id_usuario', 'IbcUsuario', 'id_usuario', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_periodo', 'CobPeriodo', 'id_periodo', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_contrato', 'CobActaconteo', 'id_contrato', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_ajuste_reportado', 'CobAjusteReportado', 'id_ajuste_reportado', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_actaconteo_persona_facturacion', 'CobActaconteoPersonaFacturacion', 'id_actaconteo_persona_facturacion', array(\n \t\t\t'reusable' => true\n \t));\n }", "public function belongsTo($class, $foreignKey = null, $otherKey = null);", "public function initialize()\n {\n $this->hasMany('id', 'Message', 'idFil', array('alias' => 'Message'));\n $this->belongsTo('idFil', 'Message', 'id', array('alias' => 'Message'));\n $this->belongsTo('idProjet', 'Projet', 'id', array('alias' => 'Projet'));\n $this->belongsTo('idUser', 'User', 'id', array('alias' => 'User'));\n }", "public function initialize()\n {\n $this->hasMany(\"id\", \"Modules\\Models\\Orders\", \"member_id\", array(\n 'alias' => 'orders'\n ));\n }", "public function initialize()\n {\n $this->hasMany(\"members_id\", \"\\Event\\Model\\Events\", \"members_id\", ['alias' => 'Events']);\n }", "public function initialize()\n {\n $this->belongsTo('id_segmentation', 'Entities\\Segmentation', 'id', array('foreignKey' => true, 'alias' => 'Segmentation'));\n $this->belongsTo('id_factor_network', 'Entities\\FactorNetwork', 'id', array('foreignKey' => true, 'alias' => 'FactorNetwork'));\n }", "public function buildRelations()\n {\n $this->addRelation('Contrarecibo', 'Contrarecibo', RelationMap::MANY_TO_ONE, array('idcontrarecibo' => 'idcontrarecibo', ), 'CASCADE', 'CASCADE');\n }", "public function setParent(self $parent, string $parentAssociationMapping): void;", "public function initialize()\n {\n $this->hasMany('id' , 'Cars' , 'brand_id');\n }", "function prot_setFKDefaults( $raFK = array() )\r\n /*********************************************\r\n With no args, this is the same as Clear()\r\n Args of \"table\"=>\"fk key\" cause those foreign keys to be set in the relation, and foreign data to be\r\n retrieved for non-base tables. This is especially useful for creating an \"empty\" row in a form that\r\n displays read-only data from a parent row.\r\n */\r\n {\r\n $this->Clear();\r\n\r\n // Leave _dbValSnap cleared because it's only used in updates to the base row, which is not set by this method.\r\n\r\n\r\n // N.B. only implemented for one level of indirection from the base table.\r\n // Traversal or really smart joins required to fetch data for a second-level row e.g. grandparent\r\n // We are assuming that the fk_* column name is not aliased (i.e. Field['col']==Field['alias']=='fk_'.$tableName\r\n foreach( $raFK as $tableName => $fkKey ) {\r\n $this->_values['fk_'.$tableName] = $fkKey;\r\n\r\n if( @$this->kfrdef['ver'] == 2 ) {\r\n if( ($a = $this->kfrel->raTableN2A[$tableName]) && ($t = $this->kfrdef['Tables'][$a]) ) {\r\n $raSelFields = array();\r\n foreach( $t['Fields'] as $f ) {\r\n $raSelFields[] = \"$a.{$f['col']} as {$f['alias']}\";\r\n }\r\n $ra = $this->kfrel->kfdb->QueryRA( \"SELECT \".implode(\",\",$raSelFields).\" FROM {$t['Table']} $a\"\r\n .\" WHERE $a._key='$fkKey'\" );\r\n // array_merge is easier, but KFDB returns duplicate entries in $ra[0],$ra[1],...\r\n foreach( $t['Fields'] as $f ) {\r\n $this->_values[$f['alias']] = $ra[$f['alias']];\r\n }\r\n }\r\n } else {\r\n foreach( $this->kfrel->kfrdef['Tables'] as $t ) {\r\n if( $t['Table'] != $tableName ) continue;\r\n $raSelFields = array();\r\n foreach( $t['Fields'] as $f ) {\r\n $raSelFields[] = $t['Alias'].\".\".$f['col'].\" as \".$f['alias'];\r\n }\r\n $ra = $this->kfrel->kfdb->QueryRA( \"SELECT \".implode(\",\",$raSelFields).\" FROM \".$t['Table'].\" \".$t['Alias'].\r\n \" WHERE \".$t['Alias'].\"._key=$fkKey\" );\r\n // array_merge is easier, but KFDB returns duplicate entries in $ra[0],$ra[1],...\r\n foreach( $t['Fields'] as $f ) {\r\n $this->_values[$f['alias']] = $ra[$f['alias']];\r\n }\r\n }\r\n }\r\n }\r\n }", "function eZEnhancedObjectRelationType()\n {\n $this->eZDataType( EZ_DATATYPESTRING_ENHANCED_OBJECT_RELATION, ezi18n( 'kernel/classes/datatypes', \"Enhanced Object relation\", 'Datatype name' ),\n array( 'serialize_supported' => true ) );\n }", "public function initialize()\n {\n $this->belongsTo('id_categoria_gastos', 'CategoriaGastos', 'id_categoria_gastos', array('alias' => 'CategoriaGastos'));\n $this->belongsTo('id_presupuesto', 'Presupuesto', 'id_presupuesto', array('alias' => 'Presupuesto'));\n }", "public function initialize()\n {\n $this->hasMany('id', 'GroupProfile', 'media_id', array('alias' => 'GroupProfile'));\n $this->belongsTo('profile_id', 'Profile', 'id', array('alias' => 'Profile'));\n $this->belongsTo('evenement_id', 'Event', 'id', array('alias' => 'Event'));\n }", "public function setRelationChildRealId($realId);", "public function setupAssociations() \n {\n \n }", "public function initialize()\r\n {\r\n\t\t$this->belongsTo(\"Mikro\", \"Pobjeda\\Models\\Mikro\", \"idMikro\");\r\n }", "public function initialize()\n {\n \t$this->belongsTo('id_verificacion', 'CobVerificacion', 'id_verificacion', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_actadocumentacion', 'CobActadocumentacionDatos', 'id_actadocumentacion', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_usuario', 'IbcUsuario', 'id_usuario', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('estado', 'IbcReferencia', 'id_referencia', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->hasMany('id_actadocumentacion', 'CobActadocumentacionPersona', 'id_actadocumentacion', array(\n \t\t\t'foreignKey' => array(\n \t\t\t\t\t'message' => 'El acta no puede ser eliminada porque existen beneficiarios asociados a ésta'\n \t\t\t)\n \t));\n }", "public function initialize()\n {\n $this->hasMany('speler_id', 'Team_spelers', 'speler_id', array('alias' => 'Team_spelers'));\n }", "public function initialize()\n {\n $this->belongsTo(\"location_id\", \"\\Event\\Model\\Location\", \"id\", ['alias' => 'Location']);\n }", "public function defineRelations()\n\t{\n\t\treturn array();\n\t}", "public function initialize()\n {\n $this->hasMany('groep_id', 'Gebruikers', 'groep_id', array('alias' => 'Gebruikers'));\n $this->hasMany('groep_id', 'Groep_permissies', 'groep_id', array('alias' => 'Groep_permissies'));\n }", "public function has_many_and_belongs_to($model, $table = null, $foreign = null, $other = null) {\n\t\treturn new Has_Many_And_Belongs_To($this, $model, $table, $foreign, $other);\n\t}", "public function initialize()\n {\n $this->setSchema(\"ieslluis_gestiovfc\");\n $this->setSource(\"lines_comandes\");\n $this->hasMany('ncomanda', 'Comandes', 'numero', ['alias' => 'Comandes']);\n $this->hasMany('producte', 'Productes', 'codi', ['alias' => 'Productes']);\n }", "public function afterSave(){\r\n parent::afterSave();\r\n if($this->isNewRecord){\r\n $class = Strategy::getClass('Aro');\r\n $aro = new $class();\r\n $aro->model = get_class($this);\r\n $aro->foreign_key = $this->getPrimaryKey();\r\n if(!$aro->save())\r\n throw new RuntimeError(\"Unable to save Aro-Collection\");\r\n }\r\n }", "public function defineRelations()\n {\n return array(\n 'product' => array(static::BELONGS_TO, 'Commerce_ProductRecord', 'required' => true, 'onDelete'=> static::CASCADE),\n 'wishlist' => array(static::BELONGS_TO, 'WishlistRecord', 'required' => true, 'onDelete'=> static::CASCADE)\n );\n }", "public function __construct()\n\t{\n\t\t$this->has_one['product'] = array('Products_m', 'id', 'product_id');\n\t\t// $this->soft_deletes = TRUE;\n\t\tparent::__construct();\n\t}", "public function initialize()\n {\n $this->setSchema(\"bd_diagnostico\");\n $this->setSource(\"categoria\");\n $this->hasMany('id_categoria', 'diag\\cc\\Pregunta', 'id_categoria', ['alias' => 'Pregunta']);\n $this->hasMany('id_categoria', 'diag\\cc\\Visita', 'id_categoria', ['alias' => 'Visita']);\n }", "public function buildRelations()\n {\n $this->addRelation('Banco', 'Banco', RelationMap::MANY_TO_ONE, array('idbanco' => 'idbanco', ), 'CASCADE', 'CASCADE');\n }", "public function initialize()\n {\n $this->belongsTo('kousin_user_id', 'Users', 'id', array('alias' => 'Users'));\n $this->belongsTo('tanni_mr1_cd', 'TanniMrs', 'cd', array('alias' => 'TanniMr1s'));\n $this->belongsTo('tanni_mr2_cd', 'TanniMrs', 'cd', array('alias' => 'TanniMr2s'));\n $this->belongsTo('utiwake_kbn_cd', 'UtiwakeKbns', 'cd', array('alias' => 'UtiwakeKbns'));\n $this->belongsTo('denpyou_mr_cd', 'DenpyouMrs', 'cd', array('alias' => 'DenpyouMrs'));\n $this->belongsTo('tantou_mr_cd', 'TantouMrs', 'cd', array('alias' => 'TantouMrs'));\n $this->belongsTo('hinsitu_kbn_cd', 'HinsituKbns', 'cd', array('alias' => 'HinsituKbns'));\n $this->belongsTo('souko_mr_cd', 'SoukoMrs', 'cd', array('alias' => 'SoukoMrs'));\n\n //納入先、気付先を取得するため。 Add By Nishiyama 2019/2/14\n $this->belongsTo('denpyou_mr_cd','UriageDts','cd',array('alias' => 'UriageDts'));\n }", "function create_fam_relation($eParent, $personRec, $tag)\n\t{\n\t\t//throw new exception(\"create fam rel - this function is not implemented\");\n\t}", "public function attach(&$parent, &$child, $rel_name) {\n\t$parent->save();\n\t$child->save();\n\n\t$rels = $parent->getRelationships($rel_name);\n\t$insert = true;\n\tforeach ($rels as $rel) {\n\t $node = $rel->getEndNode();\n\t if ($node->getProperty('name') == $child->getProperty('name')) {\n\t\t$insert = false;\n\t }\n\t}\n\tif ($insert) {\n\t $parent->relateTo($child, $rel_name)->save();\n\t}\n }", "public function initialize() {\n $this->setSchema(\"coopdb\");\n $this->setSource(\"pedidosdetalle\");\n $this->belongsTo('IDKEY', 'Pedidos', 'TxnID', ['alias' => 'Pedidos']);\n }", "public function setTableDefinition() {\n\t\tparent::setTableDefinition();\n\t\t\n\t\t// set the table\n\t\t$this->setTableName('company');\n\t\t$this->hasColumn('type', 'integer', null, array('notblank' => true, 'default' => '1')); // 1 Partner, 2 to be continue\n\t\t$this->hasColumn('name', 'string', 255, array('notblank' => true));\n\t\t$this->hasColumn('description', 'string', 500);\n\t\t$this->hasColumn('contactperson', 'string', 255);\n\t\t$this->hasColumn('phone', 'string', 15);\n\t\t$this->hasColumn('email', 'string', 255);\n\t\t$this->hasColumn('country', 'string', 2, array('default' => 'UG'));\n\t\t$this->hasColumn('locationid', 'integer', null);\n\t\t$this->hasColumn('status', 'integer', null, array('default' => '1'));\n\t\t$this->hasColumn('farmistype', 'integer', null, array('default' => '1'));\n\t\t// 0=>'None', 1=>'All Farmers', 2=>'One Region', 3=>'Multiple Regions', 4=>'One District', 5=>'Multiple Districts', 6=>'One DNA', 7=>'Multiple DNAs'\n\t\t$this->hasColumn('regionid', 'integer', null);\n\t\t$this->hasColumn('regionids', 'string', 50);\n\t\t$this->hasColumn('districtid', 'integer', null);\n\t\t$this->hasColumn('districtids', 'string', 50);\n\t\t$this->hasColumn('dnaid', 'integer', null);\n\t\t$this->hasColumn('dnaids', 'string', 50);\n\t\t$this->hasColumn('showind', 'integer', null, array('default' => '1')); // 1=Enabled, 0=Disabled\n\t}", "protected\tfunction\tsetRelations() {}", "protected\tfunction\tsetRelations() {}", "public function buildRelations()\n\t{\n $this->addRelation('Genero', 'Genero', RelationMap::MANY_TO_ONE, array('id_genero' => 'id', ), null, 'CASCADE');\n $this->addRelation('Tematica', 'Tematica', RelationMap::MANY_TO_ONE, array('id_tematica' => 'id', ), null, 'CASCADE');\n $this->addRelation('Autor', 'Autor', RelationMap::MANY_TO_ONE, array('id_autor' => 'id', ), null, 'CASCADE');\n $this->addRelation('Materia', 'Materia', RelationMap::MANY_TO_ONE, array('id_materia' => 'id', ), null, 'CASCADE');\n $this->addRelation('Tipopublicacion', 'Tipopublicacion', RelationMap::MANY_TO_ONE, array('id_tipopublicacion' => 'id', ), null, 'CASCADE');\n\t}", "public function initialize()\n {\n $this->setSchema(\"fox_zeus\");\r\n $this->setSource(\"ubicacion\");\r\n $this->hasMany('codUbicacion', 'HistoricoMovimientos', 'codUbicacion', ['alias' => 'HistoricoMovimientos']);\r\n $this->belongsTo('codSecion', '\\Seccion', 'codSecion', ['alias' => 'Seccion']);\r\n $this->belongsTo('codZona', '\\Zona', 'codZona', ['alias' => 'Zona']);\r\n $this->belongsTo('codSector', '\\Sector', 'codSector', ['alias' => 'Sector']);\r\n $this->belongsTo('codAlmacen', '\\Almacen', 'codAlmacen', ['alias' => 'Almacen']);\r\n $this->belongsTo('codProducto', '\\Producto', 'codProducto', ['alias' => 'Producto']);\n }", "public function buildRelations()\n {\n $this->addRelation('EmailManagerTrace', '\\\\TheliaEmailManager\\\\Model\\\\EmailManagerTrace', RelationMap::MANY_TO_ONE, array('trace_id' => 'id', ), 'CASCADE', 'RESTRICT');\n $this->addRelation('EmailManagerHistoryEmail', '\\\\TheliaEmailManager\\\\Model\\\\EmailManagerHistoryEmail', RelationMap::ONE_TO_MANY, array('id' => 'history_id', ), 'CASCADE', 'RESTRICT', 'EmailManagerHistoryEmails');\n }", "public function setChild($child)\n {\n $this->child = $child;\n }", "public function hasMany($class, $foreignKey = null, $localKey = null);", "public function attach($owner)\n\t{\n\t\tparent::attach($owner);\n\n\t\t$metadata = $this->owner->getMetadata();\n\n\t\t// Add many-many relation\n\t\t$metadata->addRelation($this->xrefRelationName, array(\n\t\t\tCActiveRecord::MANY_MANY,\n\t\t\t$this->xrefClass,\n\t\t\t$this->modelClass.'('.$this->ownerFkName.','.$this->indexFkName.')',\n\t\t));\n\t}", "private function hasOne($table, $foreignTableName) {\n $foreignTableName = strtolower($foreignTableName);\n assert('!empty($table->primaryKey); // table needs to have primary key defined for table join');\n\n // can we load the foreign table?\n if (class_exists(ucfirst($foreignTableName))) {\n // capitalize\n $foreignTableName = ucfirst($foreignTableName);\n // note the foreign table might have relationships of its own...\n $foreignTable = new $foreignTableName();\n assert('!empty($foreignTable->primaryKey); // foreign table needs to have primary key defined');\n\n // create the join on custom primary key and (optionally) custom table name\n $table->join($foreignTable->tableName, array(\n \"{$table->tableName}.{$foreignTable->tableName}_{$table->primaryKey}\"\n => \"{$foreignTable->tableName}.{$foreignTable->primaryKey}\"\n ));\n // as an added bonus, we might have a relationship in the foreign table, add it...\n $table->join .= $foreignTable->join;\n } else {\n // we will have to rely on our primary key\n // create the join where \"foreignTable_id = id\"\n $table->join($foreignTableName, array(\n \"{$table->tableName}.{$foreignTableName}_{$table->primaryKey}\"\n => \"{$foreignTableName}.{$table->primaryKey}\"\n ));\n }\n }", "public function defineRelations()\n\t{\n\t\treturn [\n\t\t\t'deliveries' => [\n\t\t\t\tstatic::HAS_MANY,\n\t\t\t\t'Courier_DeliveryRecord',\n\t\t\t\t'blueprintId',\n\t\t\t\t'order' => 'dateCreated DESC'\n\t\t\t],\n\t\t];\n\t}", "public function getFkPedido()\n {\n return $this->hasOne(Pedido::className(), ['id' => 'fk_pedido']);\n }", "public function aerolinea(){\n \t$this->belongsTo('App\\Aerolinea');\n }", "public function initialize()\n {\n $this->belongsTo('user_id', 'app\\common\\models\\base\\UserEntity', 'id', array('alias' => 'UserEntity'));\n }", "public function initialize()\n {\n $this->belongsTo(\"hotel_id\", \"Hotels\", \"id\");\n $this->belongsTo(\"user_id\", \"User\", \"id\");\n $this->hasMany(\"id\", \"Transaction\", \"reservation_id\");\n }", "public function initialize()\n {\n $this->setSchema(\"project_bd\");\n $this->belongsTo('establishment_id', '\\Establishment', 'establishment_id', ['alias' => 'Establishment']);\n }", "public function initialize()\n {\n $this->hasMany('id', 'app\\common\\models\\base\\UserProfile', 'user_id', array('alias' => 'UserProfile'));\n $this->hasMany('id', 'app\\common\\models\\base\\UserRoles', 'user_id', array('alias' => 'UserRoles'));\n $this->belongsTo('type_id', 'app\\common\\models\\base\\UserType', 'id', array('alias' => 'UserType'));\n }", "public function setRelationParentRealId($realId);", "public function initialize()\n {\n $this->hasMany('cd_upload', 'App\\Models\\Empresa', 'logo', array('alias' => 'Empresa'));\n $this->hasMany('cd_upload', 'App\\Models\\EmpresaHasArquivos', 'cd_upload', array('alias' => 'EmpresaHasArquivos'));\n $this->hasMany('cd_upload', 'App\\Models\\EmpresaHasLinkCentralcompras', 'cd_upload', array('alias' => 'EmpresaHasLinkCentralcompras'));\n $this->hasMany('cd_upload', 'App\\Models\\LancamentoHasUpload', 'cd_upload', array('alias' => 'LancamentoHasUpload'));\n $this->hasMany('cd_upload', 'App\\Models\\LiquidacaoHasUpload', 'cd_upload', array('alias' => 'LiquidacaoHasUpload'));\n $this->hasMany('cd_upload', 'App\\Models\\NfentradaHasUpload', 'cd_upload', array('alias' => 'NfentradaHasUpload'));\n $this->hasMany('cd_upload', 'App\\Models\\UploadHas', 'upload_cd_upload', array('alias' => 'UploadHas'));\n $this->belongsTo('cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n }", "public function dtPrimary()\n {\n return $this->belongsTo(DatatablePrimary::class, 'parent_id');\n }", "public function initialize()\n {\n $this->belongsTo('torihikisaki_cd', 'TokuisakiMrs', 'cd', array('alias' => 'TorihikisakiMrs'));\n $this->belongsTo('shouhin_mr_cd', 'ShouhinMrs', 'cd', array('alias' => 'ShouhinMrs'));\n $this->belongsTo('tanni_mr1_cd', 'TanniMrs', 'cd', array('alias' => 'TanniMr1s'));\n $this->belongsTo('tanni_mr2_cd', 'TanniMrs', 'cd', array('alias' => 'TanniMr2s'));\n $this->belongsTo('tantou_mr_cd', 'TantouMrs', 'cd', array('alias' => 'TantouMrs'));\n $this->belongsTo('souko_mr_cd', 'SoukoMrs', 'cd', array('alias' => 'SoukoMrs'));\n $this->belongsTo('denpyou_mr_cd', 'DenpyouMrs', 'cd', array('alias' => 'DenpyouMrs'));\n $this->belongsTo('utiwake_kbn_cd', 'UtiwakeKbns', 'cd', array('alias' => 'UtiwakeKbns'));\n $this->belongsTo('hinsitu_kbn_cd', 'HinsituKbns', 'cd', array('alias' => 'HinsituKbns'));\n $this->belongsTo('sakusei_user_id', 'Users', 'id', array('alias' => 'Users'));\n $this->belongsTo('meisai_id', 'UriageMeisaiDts', 'id', array('alias' => 'UriageMeisaiDts'));\n $this->hasMany('shukka_kbn_max', 'UriageShukkaMaxs', 'shouhin_mr_cd', array('alias' => 'UriageShukkaMaxs'));\n }", "public function getRelationChildId();", "public function initialize()\n {\n $this->belongsTo('user_id', 'Users', 'id');\n }", "public function initialize()\n {\n $this->setSchema(\"phalcon\");\r\n $this->belongsTo('member_id', '\\BalanceMember', 'member_id', ['alias' => 'BalanceMember']);\n }", "function addChild($key, IBabylonModel $child) : IBabylonModel;", "public function initialize()\n\t{\n\t\tparent::initialize();\n\n\t\t$this->belongsTo('track_id', '\\Track', 'id', ['alias' => 'Track']);\n\t}", "public function __construct(){\n $this->TableName = 'Users';\n \n $this->EntityName = 'User';\n \n $this->PrimaryKeyName = 'UserId';\n \n $this->FieldDefinition['UserId'] = array ('Type' => 'PrimaryKey');\n \n $this->FieldDefinition['Name'] = array ('Type' => 'Normal');\n \n $this->FieldDefinition['Password'] = array ('Type' => 'Normal');\n \n $this->FieldDefinition['UserShares'] = array ('Type' => 'ManyForeignObjects', 'ModelTable' => 'UserShares','ForeignKey' => 'UserId');\n \n }", "private function hasMany($table, $foreignTableName) {\n $foreignTableName = strtolower($foreignTableName);\n assert('!empty($table->primaryKey); // table needs to have primary key defined for table join');\n\n // can we load the foreign table?\n if (class_exists(ucfirst($foreignTableName))) {\n // capitalize\n $foreignTableName = ucfirst($foreignTableName);\n // note the foreign table might have relationships of its own...\n $foreignTable = new $foreignTableName();\n assert('!empty($foreignTable->primaryKey); // foreign table needs to have primary key defined');\n\n // create the join where \"ourTable.ourId=foreignTable.ourTable_ourId\"\n $table->join($foreignTable->tableName, array(\n \"{$table->tableName}.{$table->primaryKey}\"\n => \"{$foreignTable->tableName}.{$table->tableName}_{$table->primaryKey}\"\n ));\n // as an added bonus, we might have a relationship in the foreign table, add it...\n $table->join .= $foreignTable->join;\n } else {\n // we will have to rely on our primary key\n // create the join where \"ourTable.ourId=foreignTable.ourTable_ourId\"\n $table->join($foreignTableName->tableName, array(\n \"{$table->tableName}.{$table->primaryKey}\"\n => \"{$foreignTableName->tableName}.{$table->tableName}_{$table->primaryKey}\"\n ));\n }\n }", "public function belongsToRelation()\n {\n return $this->belongsTo(Relations::class)\n ->foreignKey('on_table_id');\n }", "public function initialize()\n\t{\n\t\t$this->hasMany(\"id\", \"QuanLyThucThu\", \"ckNganHang\",[\n\t\t\t'foreignKey' \t=> [\n\t\t\t\t'message'\t=> 'Không Được Xóa Bởi Vì Ngân Hàng Này Đang Được Sử Dụng Bên Quản Lý Thu Chi'\n\t\t\t]\n\t\t]);\n\n\t\t$this->hasMany(\"id\", \"QuanLyThucChi\", \"ckNganHang\",[\n\t\t\t'foreignKey' \t=> [\n\t\t\t\t'message'\t=> 'Không Được Xóa Bởi Vì Ngân Hàng Này Đang Được Sử Dụng Bên Quản Lý Thu Chi'\n\t\t\t]\n\t\t]);\n\t}", "abstract public function belongs_to($from_table, $to_table, $to_column = NULL, $from_column = NULL);", "public function initialize() {\n\n $this->belongsTo(\"users_id\", \"Aiden\\Models\\Users\", \"id\", [\"alias\" => \"User\"]);\n $this->belongsTo(\"councils_id\", \"Aiden\\Models\\Councils\", \"id\", [\"alias\" => \"Council\"]);\n\n }", "public function setUp() {\n\t\t// A book\n\t\t$this->hasOne('Blipoteka_Book as book', array('local' => 'book_id', 'foreign' => 'book_id', 'onDelete' => 'CASCADE', 'onUpdate' => 'CASCADE'));\n\t\t// User who borrows a book\n\t\t$this->hasOne('Blipoteka_User as borrower', array('local' => 'borrower_id', 'foreign' => 'user_id', 'onUpdate' => 'CASCADE', 'onDelete' => 'CASCADE'));\n\t\t// User who lends a book\n\t\t$this->hasOne('Blipoteka_User as lender', array('local' => 'lender_id', 'foreign' => 'user_id', 'onUpdate' => 'CASCADE', 'onDelete' => 'CASCADE'));\n\t}" ]
[ "0.5762646", "0.5698438", "0.5666273", "0.56294125", "0.556644", "0.55421746", "0.550281", "0.5498231", "0.54922104", "0.545242", "0.5428864", "0.5423846", "0.5423403", "0.5422257", "0.54184324", "0.53828377", "0.536755", "0.5362396", "0.53601164", "0.53587234", "0.533962", "0.53186595", "0.5308971", "0.5287996", "0.52835536", "0.5279782", "0.5279691", "0.5276488", "0.5260376", "0.52599895", "0.52466387", "0.52378297", "0.5234598", "0.52263093", "0.5221188", "0.5216267", "0.52033406", "0.5202779", "0.5200172", "0.51719075", "0.5159677", "0.51559585", "0.51558393", "0.5138515", "0.5129704", "0.51234263", "0.51141065", "0.51133174", "0.5113198", "0.51043266", "0.5101991", "0.5096706", "0.5094068", "0.5092579", "0.5090306", "0.50828904", "0.5079947", "0.50590056", "0.50525796", "0.50450844", "0.50232476", "0.5016871", "0.5014622", "0.5013433", "0.50073963", "0.5004447", "0.49981597", "0.49755907", "0.4957667", "0.4957667", "0.49537706", "0.495064", "0.49266312", "0.49213064", "0.49193978", "0.49177957", "0.4914404", "0.4913259", "0.4909227", "0.4907506", "0.4895539", "0.48892412", "0.4887612", "0.48855293", "0.48745424", "0.48722956", "0.48684016", "0.48634", "0.48580986", "0.48572907", "0.48546875", "0.48498875", "0.4849376", "0.48474574", "0.4846095", "0.4845823", "0.48446035", "0.4842262", "0.48411188", "0.483841" ]
0.63477343
0
Get the associated ChildTblEra object
public function getTblEra(ConnectionInterface $con = null) { if ($this->aTblEra === null && ($this->prod_era !== null)) { $this->aTblEra = ChildTblEraQuery::create()->findPk($this->prod_era, $con); /* The following can be used additionally to guarantee the related object contains a reference to this object. This level of coupling may, however, be undesirable since it could result in an only partially populated collection in the referenced object. $this->aTblEra->addTblProdInfos($this); */ } return $this->aTblEra; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParentItemfromDatabase()\n {\n $dataTableName = Data::mapDataType($this->parentType);\n\n\n $dataTable = new $dataTableName();\n\n $parentItem = $this->parentItem = $dataTable->find($this->parentId)->current();\n return $parentItem;\n }", "public function Child() {\n return $this->belongsTo(Child::class);\n }", "public function getChild()\n {\n return $this->child;\n }", "public function getRelationChildId();", "public function getRelationChildRealId();", "protected function childEntities()\n {\n return null;\n }", "public function child(){\n return $this->belongsTo('App\\Child', 'child_id');\n }", "public function child(){\n return $this->morphTo(null,'recharge_type','recharge_type_id');\n }", "public function getFk()\n {\n return $this->_fk;\n }", "function getChildEntries() {\n if (empty($this->id)) {\n $this->error = \"id is not set, cannot get child records\";\n return -1;\n }\n $sql = \"SELECT\";\n $sql.= \" t.rowid,\";\n $sql.= \" t.fk_transaction,\";\n $sql.= \" t.fk_accountid,\";\n $sql.= \" t.amount,\";\n $sql.= \" t.direction,\";\n $sql.= \" c.account_code,\";\n $sql.= \" c.account_code2,\";\n $sql.= \" c.account_name\";\n\n $sql.= \" FROM \" . MAIN_DB_PREFIX . \"iconta_accountingdebcred as t\";\n $sql.= \" ,\" . MAIN_DB_PREFIX . \"iconta_chart_master as c \";\n\n $sql.= \" WHERE t.fk_transaction = \" . $this->id;\n $sql.= \" and t.fk_accountid = c.rowid \";\n $sql.= \" ORDER BY t.direction \";\n dol_syslog(get_class($this) . \"::fetch sql=\" . $sql, LOG_DEBUG);\n $resql = $this->db->query($sql);\n if ($resql) {\n $numrows = $this->db->num_rows($resql);\n if ($numrows > 0) {\n for ($i = 0; $i < $numrows; $i++) {\n $this->child[] = $this->db->fetch_array($resql);\n }\n return 1;\n } else {\n return 0;\n }\n } else {\n $this->error = \"Error \" . $this->db->lasterror();\n dol_syslog(get_class($this) . \"::fetch \" . $this->error, LOG_ERR);\n return -1;\n }\n }", "static public function getParentTable(){\n return TABLE_EMPRESA . \"_relacion\";\n }", "public function GetItem()\r\n\t{\r\n\t\treturn $this->_phreezer->GetManyToOne($this, \"fk_reference_item1\");\r\n\t}", "public function parentRecord()\r\n {\r\n return $this->_parent;\r\n }", "protected function fkElement()\n\t{\n\t\treturn $this->formModel->getElement($this->params->get('foreign_key'), true);\n\t}", "protected function getPersistentChildByPK($pk)\n {\n foreach ($this->getParentObject()->{$this->getRelationAlias()}\n as $childObject)\n { \n if (reset($childObject->identifier()) == $pk)\n return $childObject; \n }\n \n return null;\n }", "public function parent(){\n return $this->where('id', $this->parent_id)->first();\n }", "public function parent()\n {\n return $this->belongsTo(habitos::class);\n }", "public function current()\n\t{\n\t\t$row = $this->databaseResult->current();\n\n\t\tif ($row === null) {\n\t\t\treturn null;\n\t\t}\n\n\t\t$entity = clone $this->baseEntity;\n\n\t\t$tableName = $entity->getEntityTableName();\n\n\t\t$entityData = $this->getValuesByKeyPrefix($row, \"{$tableName}:\");\n\n\t\t$entity->hydrateEntity($entityData);\n\t\t$entity->setDatabase($this->databaseConnection);\n\n\t\tif ($entity instanceof RelatedEntity) {\n\n\t\t\t$relationships = $entity->getEntityRelationships();\n\n\t\t\tforeach ($relationships as $relationship) {\n\t\t\t\t\n\t\t\t\t$data = $this->getValuesByKeyPrefix($row, \"{$relationship['name']}:\");\n\n\t\t\t\tif (empty($data)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$relatedEntity = new $relationship['class'];\n\t\t\t\t$relatedEntity->hydrateEntity($data);\n\t\t\t\t$relatedEntity->setDatabase($this->databaseConnection);\n\t\t\t\t\n\t\t\t\t$entity->setRelatedEntity($relationship['name'], $relatedEntity);\n\n\t\t\t\t// TODO: link related entity back to entity\n\t\t\t}\n\n\t\t}\n\n\t\treturn $entity;\n\t}", "protected function get_record()\n\t{\n\t\treturn $this->key ? parent::get_record() : null;\n\t}", "public function dtPrimary()\n {\n return $this->belongsTo(DatatablePrimary::class, 'parent_id');\n }", "public function getTable()\n {\n return $this->parentTable;\n }", "public function getFkPedido()\n {\n return $this->hasOne(Pedido::className(), ['id' => 'fk_pedido']);\n }", "function find_childs($child_schema, $child_table, $fkey_column, $fk_id) {\n\t\t$table = new PgObject($this->gui, $child_schema, $child_table);\n\t\t$this->childs[$child_table] = $table->find_where($fkey_column . \" = '\" . $fk_id. \"'\");\n\t\treturn $this->childs[$child_table];\n\t}", "public function escuela() \n {\n return $this->belongsto(Escuela::class);\n \t}", "public function parent()\n {\n return $this->hasOne($this,'id', 'parent_id');\n }", "protected function retrieveParent()\n {\n }", "public function get_child($child_id)\n {\n }", "public function parent()\n\t{\n\t\tif( static::$databaseColumnParent !== NULL )\n\t\t{\n\t\t\t$parentColumn = static::$databaseColumnParent;\n\t\t\tif( $this->$parentColumn !== static::$databaseColumnParentRootValue )\n\t\t\t{\n\t\t\t\treturn static::load( $this->$parentColumn );\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ( isset( static::$parentNodeClass ) )\n\t\t{\n\t\t\t$parentNodeClass = static::$parentNodeClass;\n\t\t\t$parentColumn = static::$parentNodeColumnId;\n\t\t\tif( $this->$parentColumn )\n\t\t\t{\n\t\t\t\treturn $parentNodeClass::load( $this->$parentColumn );\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn NULL;\n\t}", "static public function getParentTableRelationalField(){\n return \"uid_empresa_superior\";\n }", "protected function getChildEntities() {\n\n\t\treturn array();\n\t}", "public function getParent()\n\t{\n\t\t$owner=$this->getOwner();\n\t\t$db=$owner->getDbConnection();\n\t\t$criteria=$owner->getDbCriteria();\n\t\t$alias=$db->quoteColumnName($owner->getTableAlias());\n\n\t\t$criteria->mergeWith(array(\n\t\t\t'condition'=>$alias.'.'.$db->quoteColumnName($this->leftAttribute).'<'.$owner->{$this->leftAttribute}.\n\t\t\t\t' AND '.$alias.'.'.$db->quoteColumnName($this->rightAttribute).'>'.$owner->{$this->rightAttribute},\n\t\t\t'order'=>$alias.'.'.$db->quoteColumnName($this->rightAttribute),\n\t\t));\n\n\t\tif($this->hasManyRoots)\n\t\t\t$criteria->addCondition($alias.'.'.$db->quoteColumnName($this->rootAttribute).'='.$owner->{$this->rootAttribute});\n\n\t\treturn $owner->find();\n\t}", "public function parent()\n {\n return $this->belongsTo(self::class);\n }", "public function get_Parent_Entite($forced = 0)\n {\n\n $this->Parent_Entite = new entite($this->ID_Entite);\n\n return $this->Parent_Entite;\n }", "public function getEntity()\n\t{\n\t\treturn $this->hasKey() ? $this->database->find($this->key) : null;\n\t}", "public function getFChild()\n {\n return $this->f_child;\n }", "public final function getTable()\n {\n if ($this->_table === null)\n $this->_table = $this->getParentObject()->getTable();\n \n return $this->_table;\n }", "public function getChildrenField()\n {\n return $this->inheritanceField;\n }", "public function entity()\n\t{\n\t\treturn $this->morphTo();\n\t}", "public function getChild()\n {\n return $this->hasMany(Pages::className(), ['parent_id' => 'id']);\n }", "public function getForeignKey();", "public function getEtiqueta()\n {\n return $this->hasOne(Etiqueta::className(), ['id' => 'id_etiqueta']);\n }", "public function getDataWithTypeParentRecordNumber() {}", "public function getTblObj(){\r\n if(is_null(self::$tblObj)){\r\n self::$tblObj = new ImageTable();\r\n }\r\n return self::$tblObj;\r\n }", "public function getParent(){\n\t\treturn $this->father;\n\t}", "public function get_parent();", "function get_parent() {\n return $this->get_mapped_property('parent');\n }", "public function createChild()\n {\n if (!$this->id) {\n throw new Exception(sprintf('Cannot create a new child entity for a non-existent %s entity', $this->getName()));\n }\n $child = $this->_model->create($this->getName());\n $child->Parent = $this;\n\n return $child;\n }", "public function getChildId(): int {\n return $this->child_id;\n }", "function getClassroomRelatedByClassroomId() {\n\t\t$fk_value = $this->getclassroom_id();\n\t\tif (null === $fk_value) {\n\t\t\treturn null;\n\t\t}\n\t\treturn Classroom::retrieveByPK($fk_value);\n\t}", "public function getFkEmpenhoEmpenho()\n {\n return $this->fkEmpenhoEmpenho;\n }", "public function child()\n {\n if ($this->type == 'attribute_template') {\n return $this->attributeTemplate();\n } elseif ($this->type == 'dice_roll') {\n return $this->diceRoll();\n } else {\n return $this->{$this->type}();\n }\n }", "public function getMotherAttribute()\n {\n return $this->families()->where('type', 'mother')->first();\n }", "protected function getSubTable(){\n return $this->buildArrayData( Company::orderBy('id', 'asc')->get());\n }", "public function parent()\n {\n return $this->belongsTo(config('rbac.models.role'),'parent_id');\n }", "function getChild($field, $id) {\n// 'conditions' => \"IdTBeli = '$id'\"\n// ));\n //echo \"$this->child_class $field = '$id'\";die();\n $result = call_user_func(array($this->child_class, 'find'), 'all', array(\n 'conditions' => \"$field = '$id'\"\n ));\n return $result;\n }", "public function getParentEntity() {\n\t\treturn get_entity($this->getParentGUID());\n\t}", "function get_child($name, $require_exists = true) {\n\t\t$this->load_children(); // a bit overkill\n\t\tif (isset($this->_children[$name])) {\n\t\t\treturn $this->_children[$name];\n\t\t} else if ($require_exists) {\n\t\t\treturn NULL;\n\t\t} else {\n\t\t\treturn new Entity($this,$name);\n\t\t}\n\t}", "function name_child_relationship($class_name,$foreign_key)\n\t{\n\t\tif($class_name == 'vehicle' && $foreign_key == 'supplier_id')\n\t\t{\n\t\t\treturn \"supplier\";\n\t\t}\n\t\telse if($class_name == 'delivery' && $foreign_key == 'vehicle_id')\n\t\t{\n\t\t\treturn \"vehicle\";\n\t\t}\n\t\telse if($class_name == 'delivery' && $foreign_key == 'venue_id')\n\t\t{\n\t\t\treturn \"venue\";\n\t\t}\n\t\telse if($class_name == 'delivery' && $foreign_key == 'status_id')\n\t\t{\n\t\t\treturn \"status\";\n\t\t}\n\t\telse if($class_name == 'driver' && $foreign_key == 'supplier_id')\n\t\t{\n\t\t\treturn \"supplier\";\n\t\t}\n\t\t\n\t}", "public function employee()\n {\n return $this->belongsTo(get_class(new Employee()));\n }", "public function dataRow()\n {\n return $this->morphTo();\n }", "public function Parent()\n\t{\n\t\treturn Category::findOrFail($this->category_id);\n\t}", "public function Child()\n\t{\n\t\treturn $this->hasMany(Category::class);\n\t}", "public function referee()\n {\n return $this->hasOne('App\\Models\\Referee');\n }", "public function parent()\n {\n if ( !$this->loaded )\n $this->reload();\n\n if ($this->is_root())\n return NULL;\n\n if ( ! in_array('parent', $this->_objects) )\n {\n $sql = \"SELECT * FROM $this->_table_name\n WHERE \n $this->primary_column = $this->parent_key\n ORDER BY \". $this->_sorting[0] .\" \". $this->_sorting[1] .\"\n \";\n\n $result = $this->_db->query($sql);\n\n $this->_objects['parent'] = $this->factory_set($result)[0];\n }\n\n return $this->_objects['parent'];\n }", "public function getEditableField()\n {\n return $this->Parent()->Parent()->Fields()->filter([\n 'Name' => $this->Name\n ])->First();\n }", "public function getParentEntity()\n {\n return $this->entity;\n }", "public function parent(): BelongsTo\n {\n return $this->belongsTo(static::class, $this->parent);\n }", "public function getEmployee()\n {\n return $this->hasOne(Employees::className(), ['ID' => 'EmployeeID']);\n }", "public function getFkFrotaItem()\n {\n return $this->fkFrotaItem;\n }", "public function getObject()\n {\n $object = Doctrine::getTable($this->getModel())->findOneById($this->getModelId());\n\n return $object;\n }", "public function withParent()\r\n {\r\n $owner=$this->getOwner();\r\n $db=$owner->getDbConnection();\r\n $criteria = $owner->getDbCriteria();\r\n\r\n $criteria->select .= ', `parent`.ID as `parent_id`';\r\n\r\n $select =\r\n ' SELECT * from ' . $db->quoteColumnName($owner->tableName()) .\r\n ' WHERE ' . $db->quoteColumnName($owner->tableName()) . '.ROOT = ' . $owner->root .\r\n ' ORDER BY ' . $db->quoteColumnName($owner->tableName()) . '.LFT DESC';\r\n\r\n $criteria->join .=\r\n 'LEFT JOIN ('.$select.') `parent` ' .\r\n 'ON (`parent`.LFT < `t`.LFT AND `parent`.RGT > `t`.RGT)';\r\n\r\n $criteria->group = '`t`.ID';\r\n\r\n return $owner;\r\n }", "private function getdetailbyparentid($idparent){\r\n\t\t$this->load->model('submission');\r\n\t\t$h = $this->submission->selectdetail44($idparent);\r\n\t\treturn $h;\r\n\t}", "public function children()\n {\n return $this->hasMany('App\\Models\\Child');\n }", "static public function getParentRelationalField(){\n return \"uid_empresa_inferior\";\n }", "public function __get($key)\n\t{\n\t\t// See if we are requesting a foreign key\n\t\tif (isset($this->_data[$key.'_id']))\n\t\t{\n\t\t\tif (isset($this->_lazy[$key])) // See if we've lazy loaded it\n\t\t\t{\n\t\t\t\t$model = AutoModeler::factory($key);\n\t\t\t\t$model->process_load($this->_lazy[$key]);\n\t\t\t\t$model->process_load_state();\n\t\t\t\treturn $model;\n\t\t\t}\n\n\t\t\t// Get the row from the foreign table\n\t\t\treturn AutoModeler::factory($key, $this->_data[$key.'_id']);\n\t\t}\n\t\telse if (isset($this->_data[$key]))\n\t\t\treturn $this->_data[$key];\n\t}", "public function getCartouche()\n {\n return $this->hasOne(Cartouche::className(), ['diffuseur_id' => 'id']);\n }", "public function getForeignKey()\n {\n return $this->foreignKey;\n }", "public function getForeignKey()\n {\n return $this->foreignKey;\n }", "public function getForeignKey()\n {\n return $this->foreignKey;\n }", "public function getChildren($tableName)\n {\n $sqlStm = \"SELECT TABLE_NAME as tableName, REFERENCED_COLUMN_NAME as localColumnName,\n COLUMN_NAME as foreignColumnName \n FROM information_schema.key_column_usage \n WHERE REFERENCED_TABLE_NAME = ?\";\t\n \n $query = new DataQuery($sqlStm);\n $params = array();\n $params[] = new DataParameter('tableName', DataParameter::TYPE_VARCHAR , $tableName);\n return $this->query($query, $params);\n }", "public function parent()\n {\n return $this->belongsToOne(static::class, 'parent_id');\n }", "public function parent() {\n return $this->belongsTo(self::class, 'parent_id');\n }", "public function getTree()\n {\n return $this->hasOne(Tree::className(), ['id' => 'tree_id']);\n }", "public function getRelationParentRealId();", "public function getForeignKey()\r\n\t{\r\n\t return $this->_aForeignKey;\r\n\t}", "private function getEntity()\n {\n // obtm o nome da classe\n $classe = constant(get_class($this) . '::TABLENAME');\n return $classe;\n // retorna o nome da classe - \"Record\"\n// return substr($classe , 0 , -6);\n }", "public function employee()\n {\n return $this->belongsTo(get_class(new Employee()), 'employee_id');\n }", "public static function getInstance()\n {\n return Doctrine_Core::getTable('Encadrant_ere');\n }", "protected function loadParentId(){return 0;}", "public function entity()\n {\n return $this->model;\n }", "public function entry() {\n\t\treturn $this->has_many('Entry');\n\t}", "public function parent()\n\t{\n\t\treturn $this->hasMany(TemplateDetail::class, 'id', 'parent_id');\n\t}", "public function setTblEra(ChildTblEra $v = null)\n {\n if ($v === null) {\n $this->setProdEra(NULL);\n } else {\n $this->setProdEra($v->getEraId());\n }\n\n $this->aTblEra = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the ChildTblEra object, it will not be re-added.\n if ($v !== null) {\n $v->addTblProdInfo($this);\n }\n\n\n return $this;\n }", "public function parent()\n {\n return $this->belongsTo(self::class, 'parent_id');\n }", "public function parent()\n {\n return $this->belongsTo(self::class, 'parent_id');\n }", "public function children()\n {\n return $this->hasMany('busRegistration\\Child');\n }", "public function parent()\n {\n return $this->hasOne('App\\Technology', 'id', 'parent_id');\n }", "public function parent(){\n\t\treturn $this->belongsTo('App\\Models\\Units', 'unit_parent_id');\n\t}", "public function parent(){\n return $this->belongsTo(self::class, 'parent_id');\n }", "public function findChildren()\n {\n return self::where('code_parrent',$this->id)->get();\n }" ]
[ "0.6320663", "0.61443436", "0.60798424", "0.59233564", "0.5907897", "0.5861435", "0.58456725", "0.58237445", "0.57886326", "0.57884866", "0.5774084", "0.57579213", "0.57414114", "0.57213366", "0.57102203", "0.57076675", "0.5694221", "0.56684095", "0.56445235", "0.56438166", "0.56355566", "0.5598677", "0.5566925", "0.55666345", "0.5535041", "0.5532574", "0.55266565", "0.55154485", "0.5514447", "0.5507708", "0.5503331", "0.55027425", "0.5490399", "0.548299", "0.5468051", "0.5465127", "0.54636806", "0.54619133", "0.5442704", "0.5434085", "0.54238963", "0.54188496", "0.5415585", "0.5407725", "0.54052925", "0.5403101", "0.5397371", "0.5394252", "0.53871304", "0.5385646", "0.5384015", "0.53784084", "0.5377692", "0.53708845", "0.5368695", "0.53673947", "0.5367306", "0.53641635", "0.5362477", "0.5360819", "0.53595656", "0.53518414", "0.5348415", "0.53454524", "0.5345257", "0.5343444", "0.5337828", "0.53356504", "0.5332193", "0.5330533", "0.53251773", "0.53245395", "0.53175306", "0.5314224", "0.53134733", "0.530666", "0.5297984", "0.5297984", "0.5297984", "0.52954", "0.5292922", "0.52926844", "0.5289995", "0.5282943", "0.5275073", "0.52729213", "0.52677", "0.5266674", "0.5266627", "0.52580684", "0.5255698", "0.52549356", "0.5249216", "0.5234325", "0.5234325", "0.5230182", "0.52295786", "0.52198803", "0.5216944", "0.5212252" ]
0.6087521
2
Declares an association between this object and a ChildTblGeneral object.
public function setTblGeneral(ChildTblGeneral $v = null) { if ($v === null) { $this->setProdGeneral(NULL); } else { $this->setProdGeneral($v->getProdGeneral()); } $this->aTblGeneral = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildTblGeneral object, it will not be re-added. if ($v !== null) { $v->addTblProdInfo($this); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addForeignKeys()\n\t{\n\t\t$table = $this->getTableName();\n\n\t\tforeach ($this->getBelongsToRelations() as $name => $config)\n\t\t{\n\t\t\t$otherModel = new $config[1];\n\t\t\t$otherTable = $otherModel->getTableName();\n\t\t\t$fkName = \"{$table}_{$name}_fk\";\n\n\t\t\tif (isset($config['onDelete']))\n\t\t\t{\n\t\t\t\t$onDelete = $config['onDelete'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (empty($config['required']))\n\t\t\t\t{\n\t\t\t\t\t$onDelete = static::SET_NULL;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$onDelete = null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tblx()->db->createCommand()->addForeignKey($fkName, $table, $config[2], $otherTable, 'id', $onDelete);\n\t\t}\n\t}", "public function toForeignKey($primaryTable = null, $foreignKey = null, $onDelete = \"CASCADE\", $onUpdate = \"CASCADE\") {\n parent::toForeignKey($primaryTable, $foreignKey, $onDelete, $onUpdate);\n \n if($foreignKey == null) {\n $foreignKey = $this->_currentColumn;\n }\n\n if($primaryTable == null) {\n $otherTableName = explode(\"_\", $foreignKey);\n $otherTableName = $otherTableName[0];\n $primaryTable = $otherTableName;\n }\n\n $class = ucfirst(strtolower($this->_currentTable));\n $secondClass = ucfirst(strtolower($primaryTable));\n\n $this->addClass($class);\n $this->addClass($secondClass);\n \n $column = substr($this->_currentColumn, 0, strlen($this->_currentColumn) - 3);\n\n if($class == $secondClass) {\n \n $belongsToName = \"parent\";\n $hasManyName = \"children\";\n \n \n if($this->_currentColumn == \"instance_id\") {\n $belongsToName = \"instance\";\n $hasManyName = \"revisions\";\n }\n \n \n $belongsTo = array($belongsToName, \"class_name\" => $this->_modelNamespace.$class, \"foreign_key\" => $this->_currentColumn);\n $this->_classes[$class][\"belongs_to\"][] = $belongsTo;\n \n $hasMany = array($hasManyName, \"class_name\" => $this->_modelNamespace.$class, \"foreign_key\" => $this->_currentColumn);\n if($hasManyName == \"revisions\") {\n // if it's a revision relationship sort by revision\n $hasMany[\"order\"] = \"revision desc\";\n } elseif($this->columnExist($this->_currentTable, \"position\")) {\n // if there is a column position sort by this column\n $hasMany[\"order\"] = \"position asc\";\n }\n \n $this->_classes[$class][\"has_many\"][] = $hasMany;\n \n self::makeArrayUnique($this->_classes[$class][\"belongs_to\"]);\n self::makeArrayUnique($this->_classes[$class][\"has_many\"]);\n } else {\n \n $belongsTo = array(substr($foreignKey, 0, -3), \"class_name\" => $this->_modelNamespace.$secondClass, \"foreign_key\" => $this->_currentColumn);\n $this->_classes[$class][\"belongs_to\"][] = $belongsTo;\n \n $primaryColumnName = explode(\"_\", $this->_currentTable);\n array_shift($primaryColumnName);\n $primaryColumnName = join(\"_\", $primaryColumnName);\n \n $hasMany = array($primaryColumnName.\"s\", \"class_name\" => $this->_modelNamespace.$class, \"foreign_key\" => $this->_currentColumn);\n \n if($this->columnExist($this->_currentTable, \"position\")) {\n $hasMany[\"order\"] = \"position asc\";\n }\n \n $this->_classes[$secondClass][\"has_many\"][] = $hasMany;\n \n self::makeArrayUnique($this->_classes[$class][\"belongs_to\"]);\n self::makeArrayUnique($this->_classes[$secondClass][\"has_many\"]);\n }\n\n // fluent interface\n return $this;\n }", "public function foreign(string $foreignKey)\n {\n $this->addColumn();\n $this->foreignKey = $foreignKey;\n return $this;\n }", "public function initialize()\n {\n $this->hasMany('informacion_id', 'Informacionadicional', 'informacion_id', array('alias' => 'Informacionadicional'));\n $this->belongsTo('informacion_adicionalId', 'Adicional', 'adicional_id', array('alias' => 'Adicional'));\n }", "public function getTblGeneral(ConnectionInterface $con = null)\n {\n if ($this->aTblGeneral === null && ($this->prod_general !== null)) {\n $this->aTblGeneral = ChildTblGeneralQuery::create()->findPk($this->prod_general, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aTblGeneral->addTblProdInfos($this);\n */\n }\n\n return $this->aTblGeneral;\n }", "public function setTableDefinition() {\n\t\tparent::setTableDefinition();\n\t\t\n\t\t// set the table\n\t\t$this->setTableName('company');\n\t\t$this->hasColumn('type', 'integer', null, array('notblank' => true, 'default' => '1')); // 1 Partner, 2 to be continue\n\t\t$this->hasColumn('name', 'string', 255, array('notblank' => true));\n\t\t$this->hasColumn('description', 'string', 500);\n\t\t$this->hasColumn('contactperson', 'string', 255);\n\t\t$this->hasColumn('phone', 'string', 15);\n\t\t$this->hasColumn('email', 'string', 255);\n\t\t$this->hasColumn('country', 'string', 2, array('default' => 'UG'));\n\t\t$this->hasColumn('locationid', 'integer', null);\n\t\t$this->hasColumn('status', 'integer', null, array('default' => '1'));\n\t\t$this->hasColumn('farmistype', 'integer', null, array('default' => '1'));\n\t\t// 0=>'None', 1=>'All Farmers', 2=>'One Region', 3=>'Multiple Regions', 4=>'One District', 5=>'Multiple Districts', 6=>'One DNA', 7=>'Multiple DNAs'\n\t\t$this->hasColumn('regionid', 'integer', null);\n\t\t$this->hasColumn('regionids', 'string', 50);\n\t\t$this->hasColumn('districtid', 'integer', null);\n\t\t$this->hasColumn('districtids', 'string', 50);\n\t\t$this->hasColumn('dnaid', 'integer', null);\n\t\t$this->hasColumn('dnaids', 'string', 50);\n\t\t$this->hasColumn('showind', 'integer', null, array('default' => '1')); // 1=Enabled, 0=Disabled\n\t}", "public function belongsTo($class, $foreignKey = null, $otherKey = null);", "public function setParent(self $parent, string $parentAssociationMapping): void;", "public function has_many_and_belongs_to($model, $table = null, $foreign = null, $other = null) {\n\t\treturn new Has_Many_And_Belongs_To($this, $model, $table, $foreign, $other);\n\t}", "protected function addForeignKeys()\n {\n // TargetRecord\n $this->addForeignKey(\n $this->db->getForeignKeyName(InitiativeRecord::tableName(), 'id'),\n InitiativeRecord::tableName(),\n 'id',\n ElementRecord::tableName(),\n 'id',\n 'CASCADE'\n );\n\n // TargetRecord\n $this->addForeignKey(\n $this->db->getForeignKeyName(TargetRecord::tableName(), 'elementId'),\n TargetRecord::tableName(),\n 'elementId',\n InitiativeRecord::tableName(),\n 'id',\n 'CASCADE'\n );\n $this->addForeignKey(\n $this->db->getForeignKeyName(TargetRecord::tableName(), 'userId'),\n TargetRecord::tableName(),\n 'userId',\n UserRecord::tableName(),\n 'id',\n 'CASCADE'\n );\n }", "private function hasOne($table, $foreignTableName) {\n $foreignTableName = strtolower($foreignTableName);\n assert('!empty($table->primaryKey); // table needs to have primary key defined for table join');\n\n // can we load the foreign table?\n if (class_exists(ucfirst($foreignTableName))) {\n // capitalize\n $foreignTableName = ucfirst($foreignTableName);\n // note the foreign table might have relationships of its own...\n $foreignTable = new $foreignTableName();\n assert('!empty($foreignTable->primaryKey); // foreign table needs to have primary key defined');\n\n // create the join on custom primary key and (optionally) custom table name\n $table->join($foreignTable->tableName, array(\n \"{$table->tableName}.{$foreignTable->tableName}_{$table->primaryKey}\"\n => \"{$foreignTable->tableName}.{$foreignTable->primaryKey}\"\n ));\n // as an added bonus, we might have a relationship in the foreign table, add it...\n $table->join .= $foreignTable->join;\n } else {\n // we will have to rely on our primary key\n // create the join where \"foreignTable_id = id\"\n $table->join($foreignTableName, array(\n \"{$table->tableName}.{$foreignTableName}_{$table->primaryKey}\"\n => \"{$foreignTableName}.{$table->primaryKey}\"\n ));\n }\n }", "public function setRelationChildRealId($realId);", "private function hasMany($table, $foreignTableName) {\n $foreignTableName = strtolower($foreignTableName);\n assert('!empty($table->primaryKey); // table needs to have primary key defined for table join');\n\n // can we load the foreign table?\n if (class_exists(ucfirst($foreignTableName))) {\n // capitalize\n $foreignTableName = ucfirst($foreignTableName);\n // note the foreign table might have relationships of its own...\n $foreignTable = new $foreignTableName();\n assert('!empty($foreignTable->primaryKey); // foreign table needs to have primary key defined');\n\n // create the join where \"ourTable.ourId=foreignTable.ourTable_ourId\"\n $table->join($foreignTable->tableName, array(\n \"{$table->tableName}.{$table->primaryKey}\"\n => \"{$foreignTable->tableName}.{$table->tableName}_{$table->primaryKey}\"\n ));\n // as an added bonus, we might have a relationship in the foreign table, add it...\n $table->join .= $foreignTable->join;\n } else {\n // we will have to rely on our primary key\n // create the join where \"ourTable.ourId=foreignTable.ourTable_ourId\"\n $table->join($foreignTableName->tableName, array(\n \"{$table->tableName}.{$table->primaryKey}\"\n => \"{$foreignTableName->tableName}.{$table->tableName}_{$table->primaryKey}\"\n ));\n }\n }", "public function buildRelations()\n {\n $this->addRelation('Marca', 'Marca', RelationMap::MANY_TO_ONE, array('idmarca' => 'idmarca', ), 'CASCADE', 'CASCADE');\n $this->addRelation('Proveedor', 'Proveedor', RelationMap::MANY_TO_ONE, array('idproveedor' => 'idproveedor', ), 'CASCADE', 'CASCADE');\n }", "public function __construct()\n {\n $this->table = 'products';\n $this->primary_key = 'id';\n \n $this->has_many['pictures'] = array(\n 'foreign_model' => 'Pictures_model',\n 'foreign_table' => 'pictures',\n 'foreign_key' => 'product_id',\n 'local_key' => 'id'\n );\n \n $this->has_many['options'] = array(\n 'foreign_model' => 'Product_options_model',\n 'foreign_table' => 'product_options',\n 'foreign_key' => 'product_id',\n 'local_key' => 'id'\n );\n\n \n \n parent::__construct();\n }", "public function initialize()\r\n {\r\n $this->belongsTo('encuesta_personalId', 'Personal', 'personal_id', array('alias' => 'Personal'));\r\n $this->belongsTo('encuesta_alojamientoId', 'Alojamiento', 'alojamiento_id', array('alias' => 'Alojamiento'));\r\n $this->belongsTo('encuesta_recepcionId', 'Recepcion', 'recepcion_id', array('alias' => 'Recepcion'));\r\n $this->belongsTo('encuesta_unidadId', 'Unidad', 'unidad_id', array('alias' => 'Unidad'));\r\n $this->belongsTo('encuesta_adicionalId', 'Adicional', 'adicional_id', array('alias' => 'Adicional'));\r\n $this->belongsTo('encuesta_sorteoId', 'Sorteo', 'sorteo_id', array('alias' => 'Sorteo'));\r\n }", "public function initialize()\n {\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('alias' => 'Datospersonales'));\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('foreignKey' => true));\n }", "public function initialize()\n {\n $this->belongsTo('id_deuda', 'NbDeudas', 'id_deuda', array('alias' => 'NbDeudas'));\n $this->belongsTo('id_deuda', 'Nbdeudas', 'id_deuda', array('foreignKey' => true));\n }", "public function initialize()\n {\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('foreignKey' => true,'alias' => 'Produto'));\n }", "public function initialize()\n {\n $this->hasMany('id', 'Movie', 'classification_id', array('alias' => 'Movie'));\n }", "protected function addRelation()\n {\n $fromTable = $this->ask('Enter the name of the parent table');\n $this->checkInput($fromTable);\n $toTable = $this->ask('Enter the name of the child table');\n $this->checkInput($toTable);\n $relationColumn = $this->ask('Enter the column which is going to be referenced (default is \\'id\\')', 'id');\n $action = $this->choice('Action to be taken for column (default is \\'cascade\\')', ['cascade', 'restrict', 'set null'], 'cascade');\n $this->service->addRelation($fromTable, $toTable, $relationColumn, $action);\n }", "public function addRelation($tablename, $arg1, $arg2=FALSE) {\n\t\tif ($arg2) {\n\t\t\t$origKey = $arg1;\n\t\t\t$targetKey = $arg2;\n\t\t}\n\t\telse {\n\t\t\t$origKey = self::$primaryKey[$this->table];\n\t\t\t$targetKey = $arg1;\n\t\t}\n\t\tif (isset(self::$global['dbCon']) && self::$global['dbCon']==$this->connection) \n\t\t\t$table = new table ($tablename);\n\t\telse {\n\t\techo 'ceva'.$tablename;\n\t\t\t$table = new table ($tablename,FALSE,FALSE,$this->connection);\n\t\t}\n\t\tif (isset($table->$targetKey)) {\n\t\t\tself::$relations[$this->table][$tablename] = new stdClass();\n\t\t\tself::$relations[$this->table][$tablename]->origKey = $origKey;\n\t\t\tself::$relations[$this->table][$tablename]->targetKey = $targetKey;\n\t\t\tself::$relations[$tablename][$this->table] = new stdClass();\n\t\t\tself::$relations[$tablename][$this->table]->origKey = $targetKey;\n\t\t\tself::$relations[$tablename][$this->table]->targetKey = $origKey;\n\t\t\tself::$relations[$tablename][$this->table]->type = self::$relations[$this->table][$tablename]->type = NOT_ANALYZED;\n\t\t}\n\t\telse {\n\t\t\tthrow new Exception(\"$targetKey column doesn't exist in $tablename\");\n\t\t}\n\t\t$this->analyzeRelations();\n\t\treturn $this;\n\t}", "function name_child_relationship($class_name,$foreign_key)\n\t{\n\t\tif($class_name == 'vehicle' && $foreign_key == 'supplier_id')\n\t\t{\n\t\t\treturn \"supplier\";\n\t\t}\n\t\telse if($class_name == 'delivery' && $foreign_key == 'vehicle_id')\n\t\t{\n\t\t\treturn \"vehicle\";\n\t\t}\n\t\telse if($class_name == 'delivery' && $foreign_key == 'venue_id')\n\t\t{\n\t\t\treturn \"venue\";\n\t\t}\n\t\telse if($class_name == 'delivery' && $foreign_key == 'status_id')\n\t\t{\n\t\t\treturn \"status\";\n\t\t}\n\t\telse if($class_name == 'driver' && $foreign_key == 'supplier_id')\n\t\t{\n\t\t\treturn \"supplier\";\n\t\t}\n\t\t\n\t}", "public function buildRelations()\n {\n $this->addRelation('Contrarecibo', 'Contrarecibo', RelationMap::MANY_TO_ONE, array('idcontrarecibo' => 'idcontrarecibo', ), 'CASCADE', 'CASCADE');\n }", "public function setTableDefinition() {\n\t\tparent::setTableDefinition();\n\t\t\n\t\t// set the table\n\t\t$this->setTableName('commoditycategory');\n\t\t\n\t\t// unique constraint on name\n\t\t$this->unique(array(\"name\")); \n\t}", "public function setForeignKey($foreignKey)\n {\n $this->foreignKey = $foreignKey;\n\n return $this;\n }", "public function setRelationChildId($id);", "public function initialize()\n {\n $this->hasMany(\n 'id',\n AuditDetail::class,\n 'audit_id',\n [\n 'alias' => 'details',\n ]\n );\n }", "public function initialize()\n {\n $this->setSchema(\"bd_diagnostico\");\n $this->setSource(\"categoria\");\n $this->hasMany('id_categoria', 'diag\\cc\\Pregunta', 'id_categoria', ['alias' => 'Pregunta']);\n $this->hasMany('id_categoria', 'diag\\cc\\Visita', 'id_categoria', ['alias' => 'Visita']);\n }", "public function buildRelations()\n\t{\n $this->addRelation('Genero', 'Genero', RelationMap::MANY_TO_ONE, array('id_genero' => 'id', ), null, 'CASCADE');\n $this->addRelation('Tematica', 'Tematica', RelationMap::MANY_TO_ONE, array('id_tematica' => 'id', ), null, 'CASCADE');\n $this->addRelation('Autor', 'Autor', RelationMap::MANY_TO_ONE, array('id_autor' => 'id', ), null, 'CASCADE');\n $this->addRelation('Materia', 'Materia', RelationMap::MANY_TO_ONE, array('id_materia' => 'id', ), null, 'CASCADE');\n $this->addRelation('Tipopublicacion', 'Tipopublicacion', RelationMap::MANY_TO_ONE, array('id_tipopublicacion' => 'id', ), null, 'CASCADE');\n\t}", "public function belongsTo($table, $foreign = null, $local = null, $name = null, $onUpdate = null, $onDelete = null)\n {\n \t// Determine the Name of the Foreign Key\n \tif(is_null($foreign)) {\n \t\t$foreign = Str::singular($table) . '_id';\n \t}\n\n \t// Define the Column\n \t$column = $this->belongsToColumn($foreign);\n\n \t// Define the Relation\n \t$this->belongsToForeign($table, $foreign, $local, $name, $onUpdate, $onDelete);\n\n \t// Return the Column\n \treturn $column;\n }", "private function _set_relationships()\n {\n if(empty($this->_relationships))\n {\n $options = array('has_one','has_many','has_many_pivot');\n foreach($options as $option)\n {\n if(isset($this->{$option}) && !empty($this->{$option}))\n {\n foreach($this->{$option} as $key => $relation)\n {\n $foreign_model = (is_array($relation)) ? $relation[0] : $relation;\n $foreign_model_name = strtolower($foreign_model);\n $this->load->model($foreign_model_name);\n $foreign_table = $this->{$foreign_model_name}->table;\n if($option=='has_many_pivot')\n {\n $tables = array($this->table, $foreign_table);\n sort($tables);\n $pivot_table = $tables[0].'_'.$tables[1];\n $foreign_key = (is_array($relation)) ? $relation[1] : $this->{$foreign_model_name}->primary;\n $local_key = (is_array($relation) && isset($relation[2])) ? $relation[2] : $this->primary;\n }\n else\n {\n $foreign_key = (is_array($relation)) ? $relation[1] : singular($this->table) . '_id';\n $local_key = (is_array($relation) && isset($relation[2])) ? $relation[2] : $this->primary;\n }\n $this->_relationships[$key] = array('relation' => $option, 'relation_key' => $key, 'foreign_model' => $foreign_model_name, 'foreign_table' => $foreign_table, 'foreign_key' => $foreign_key, 'local_key' => $local_key);\n ($option == 'has_many_pivot') ? ($this->_relationships[$key]['pivot_table'] = $pivot_table) : FALSE;\n\n }\n }\n }\n }\n }", "public function initialize()\n {\n $this->belongsTo('id_segmentation', 'Entities\\Segmentation', 'id', array('foreignKey' => true, 'alias' => 'Segmentation'));\n $this->belongsTo('id_factor_network', 'Entities\\FactorNetwork', 'id', array('foreignKey' => true, 'alias' => 'FactorNetwork'));\n }", "public function initialize()\n {\n $this->belongsTo('id_categoria_gastos', 'CategoriaGastos', 'id_categoria_gastos', array('alias' => 'CategoriaGastos'));\n $this->belongsTo('id_presupuesto', 'Presupuesto', 'id_presupuesto', array('alias' => 'Presupuesto'));\n }", "public function Child() {\n return $this->belongsTo(Child::class);\n }", "public function buildRelations()\n\t{\n $this->addRelation('SftOrganismo', 'SftOrganismo', RelationMap::ONE_TO_MANY, array('id' => 'id_pais', ), 'SET NULL', 'CASCADE');\n $this->addRelation('SftPersona', 'SftPersona', RelationMap::ONE_TO_MANY, array('id' => 'id_paisdocidentificacion', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('GenPaisI18n', 'GenPaisI18n', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', 'CASCADE');\n\t}", "public function __construct()\n\t{\n\t\t$this->has_one['product'] = array('Products_m', 'id', 'product_id');\n\t\t// $this->soft_deletes = TRUE;\n\t\tparent::__construct();\n\t}", "public function initialize()\n {\n $this->hasMany('speler_id', 'Team_spelers', 'speler_id', array('alias' => 'Team_spelers'));\n }", "public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null){\n\t\t$foreignKey = $foreignKey ?: with(new $related)->getForeignKey();\n\n\t\treturn parent::belongsTo($related, $foreignKey, $otherKey, $relation);\n\t}", "protected function getHasManyRelation($table,$foreignKey,$otherKey,$otherKeyValue)\n {\n $this->setSql(\"SELECT `b`.* FROM `{$table}` AS `a` JOIN \" . $this->getTableName() . \" AS `b` ON `a`.`{$otherKey}` = `b`.`{$foreignKey}` \");\n $this->setWhere(\"AND\",\"`a`.`$otherKey` = ? \");\n $this->table = \"b\";\n $this->addValue($otherKey,$otherKeyValue);\n return $this;\n }", "public function belongsToForeign($table, $foreign = null, $local = null, $name = null, $onUpdate = null, $onDelete = null)\n {\n // Determine the Name of the Foreign Key\n if(is_null($foreign)) {\n $foreign = Str::singular($table) . '_id';\n }\n\n // Determine the Name of the Local Key\n if(is_null($local)) {\n $local = 'id';\n }\n\n // Determine the Update Constraint\n if(is_null($onUpdate)) {\n $onUpdate = $this->getConfig('belongsTo.onUpdate');\n }\n\n // Determine the Delete Constraint\n if(is_null($onDelete)) {\n $onDelete = $this->getConfig('belongsTo.onDelete');\n }\n\n // Define the Reference\n return $this->foreign($foreign, $name, $table)->references($local)->onUpdate($onUpdate)->onDelete($onDelete);\n }", "function bindPrimaryCategoryObject()\r\n\t{\r\n JTable::addIncludePath( JPATH_ADMINISTRATOR . '/components/com_calendar/tables' );\r\n\t\t$table = JTable::getInstance( 'Categories', 'CalendarTable' );\r\n\t\t\r\n\t if (!empty($this->event_primary_category_id))\r\n\t {\r\n\t $table->load( $this->event_primary_category_id );\r\n\t }\r\n\t \r\n\t\t$table->trimProperties();\r\n\t\t\r\n\t\t$properties = $this->getProperties();\r\n\t\t$table_properties = $table->getProperties();\r\n\r\n\t\tforeach ($table_properties as $prop=>$value)\r\n\t\t{\r\n\t\t $key_name = \"primary_\" . $prop;\r\n\t\t if (!array_key_exists($key_name, $properties))\r\n\t\t {\r\n\t\t $this->$key_name = $table->$prop;\r\n\t\t }\r\n\t\t}\r\n\t}", "public function withRelatedIdAs(string $columnName)\n {\n call_user_func($this->callback,\n function ($idString, Table $parentTable) use ($columnName) {\n $mapper = call_user_func($this->mapperLoader);\n\n return new ManyToOneRelation(\n $idString,\n $this->loadIds\n ? new ToOneRelationIdentityReference($mapper, $this->bidirectionalRelationProperty)\n : new ToOneRelationObjectReference($mapper, $this->bidirectionalRelationProperty),\n $parentTable,\n $columnName\n );\n },\n // Dont create foreign key if bidirectional property is set\n // because it will be created by the inverse bidirectional relation\n /** @see OneToManyRelationDefiner::withParentIdAs() */\n /** @see ToOneRelationDefiner::withParentIdAs() */\n $this->bidirectionalRelationProperty ? null : function (Table $parentTable) use ($columnName) {\n /** @var IEntityMapper $mapper */\n $mapper = call_user_func($this->mapperLoader);\n\n return ForeignKey::createWithNamingConvention(\n $parentTable->getName(),\n [$columnName],\n $mapper->getPrimaryTableName(),\n [$mapper->getPrimaryTable()->getPrimaryKeyColumnName()],\n $this->onDeleteMode,\n ForeignKeyMode::CASCADE\n );\n });\n }", "function prot_setFKDefaults( $raFK = array() )\r\n /*********************************************\r\n With no args, this is the same as Clear()\r\n Args of \"table\"=>\"fk key\" cause those foreign keys to be set in the relation, and foreign data to be\r\n retrieved for non-base tables. This is especially useful for creating an \"empty\" row in a form that\r\n displays read-only data from a parent row.\r\n */\r\n {\r\n $this->Clear();\r\n\r\n // Leave _dbValSnap cleared because it's only used in updates to the base row, which is not set by this method.\r\n\r\n\r\n // N.B. only implemented for one level of indirection from the base table.\r\n // Traversal or really smart joins required to fetch data for a second-level row e.g. grandparent\r\n // We are assuming that the fk_* column name is not aliased (i.e. Field['col']==Field['alias']=='fk_'.$tableName\r\n foreach( $raFK as $tableName => $fkKey ) {\r\n $this->_values['fk_'.$tableName] = $fkKey;\r\n\r\n if( @$this->kfrdef['ver'] == 2 ) {\r\n if( ($a = $this->kfrel->raTableN2A[$tableName]) && ($t = $this->kfrdef['Tables'][$a]) ) {\r\n $raSelFields = array();\r\n foreach( $t['Fields'] as $f ) {\r\n $raSelFields[] = \"$a.{$f['col']} as {$f['alias']}\";\r\n }\r\n $ra = $this->kfrel->kfdb->QueryRA( \"SELECT \".implode(\",\",$raSelFields).\" FROM {$t['Table']} $a\"\r\n .\" WHERE $a._key='$fkKey'\" );\r\n // array_merge is easier, but KFDB returns duplicate entries in $ra[0],$ra[1],...\r\n foreach( $t['Fields'] as $f ) {\r\n $this->_values[$f['alias']] = $ra[$f['alias']];\r\n }\r\n }\r\n } else {\r\n foreach( $this->kfrel->kfrdef['Tables'] as $t ) {\r\n if( $t['Table'] != $tableName ) continue;\r\n $raSelFields = array();\r\n foreach( $t['Fields'] as $f ) {\r\n $raSelFields[] = $t['Alias'].\".\".$f['col'].\" as \".$f['alias'];\r\n }\r\n $ra = $this->kfrel->kfdb->QueryRA( \"SELECT \".implode(\",\",$raSelFields).\" FROM \".$t['Table'].\" \".$t['Alias'].\r\n \" WHERE \".$t['Alias'].\"._key=$fkKey\" );\r\n // array_merge is easier, but KFDB returns duplicate entries in $ra[0],$ra[1],...\r\n foreach( $t['Fields'] as $f ) {\r\n $this->_values[$f['alias']] = $ra[$f['alias']];\r\n }\r\n }\r\n }\r\n }\r\n }", "public function initialize()\n {\n $this->hasMany('groep_id', 'Gebruikers', 'groep_id', array('alias' => 'Gebruikers'));\n $this->hasMany('groep_id', 'Groep_permissies', 'groep_id', array('alias' => 'Groep_permissies'));\n }", "function __construct($id = false, $table = null, $ds = null)\n\t{\n\t\tif($this->hasLDF) \n\t\t{\n\t\t\tif(!isset($this->LDFName)) $this->LDFName = $this->name . 'LDF'; \n\n\t\t\tif(!isset($this->hasMany)) $this->hasMany = array();\n\t\t\t$this->hasMany[$this->LDFName] = array('className' => $this->LDFName,\n\t\t\t\t\t\t\t\t\t\t\t\t 'foreignKey' => low($this->name) . '_id',\n\t\t\t\t\t\t\t\t\t\t\t\t 'dependent' => true,\n\t\t\t\t\t\t\t\t\t\t\t\t 'exclusive' => true);\n\t\t} elseif($this->isLDF) {\n\t\t\tif(!isset($this->LDFParent)) $this->LDFParent = substr($this->name, 0, -3);\n\t\t\t\n\t\t\tif(!isset($this->belongsTo)) $this->belongsTo = array();\n\t\t\t$this->belongsTo[$this->LDFParent] = array('className' => $this->LDFParent,\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'foreignKey' => low($this->LDFParent) . '_id');\n\t\t}\n\t\t\n\t\tparent::__construct($id, $table, $ds);\n\t}", "public function addRelationM2M($connectortable,$thisid,$mappedid,$connectedtable,$thatid,$cmappedid) {\n\t\t$table = new table($connectedtable);\n\t\t$conntable = new table($connectortable);\n\t\tif (isset($conntable->$mappedid) && isset($conntable->$cmappedid)) {\n\t\t\t\tself::$relations[$this->table][$connectedtable] = new stdClass();\n\t\t\t\tself::$relations[$this->table][$connectedtable]->origKey = $thisid;\n\t\t\t\tself::$relations[$this->table][$connectedtable]->targetKey = $mappedid;\n\t\t\t\tself::$relations[$this->table][$connectedtable]->connector = $connectortable;\n\t\t\t\tself::$relations[$connectedtable][$this->table] = new stdClass();\n\t\t\t\tself::$relations[$connectedtable][$this->table]->origKey = $thatid;\n\t\t\t\tself::$relations[$connectedtable][$this->table]->targetKey = $cmappedid;\n\t\t\t\tself::$relations[$connectedtable][$this->table]->connector = $connectortable;\n\t\t\t\tself::$relations[$connectedtable][$this->table]->type = self::$relations[$this->table][$connectedtable]->type = MANY;\n\t\t}\n\t\telse {\n\t\t\t\tthrow new Exception(\"$mappedid column doesn't exist in $connectortable or $cmappedid column doesn't exist in $connectedtable\");\n\t\t}\n\t\treturn $this;\n\t}", "public function setRelationParentRealId($realId);", "public function setTableDefinition() {\n\t\t$this -> hasColumn('Transaction_Type', 'varchar', 10);\n\t\t$this -> hasColumn('User', 'varchar', 10);\n\t\t$this -> hasColumn('Timestamp', 'varchar', 32);\n\t\t$this -> hasColumn('Status', 'varchar', 5);\n\t\t$this -> hasColumn('Validated_By', 'varchar', 10);\n\t}", "public function buildRelations()\n {\n $this->addRelation('ArtRequest', 'ArtRequestORM\\\\ArtRequest', RelationMap::ONE_TO_MANY, array('event_id' => 'event_id', ), 'CASCADE', 'CASCADE', 'ArtRequests');\n }", "public function initialize()\n {\n $this->belongsTo('id_actaconteo_persona', 'CobActaconteoPersonaExcusa', 'id_actaconteo_persona', array(\n 'reusable' => true\n ));\n $this->belongsTo('id_actaconteo_persona', 'CobActaconteoPersonaFacturacion', 'id_actaconteo_persona', array(\n 'reusable' => true\n ));\n $this->belongsTo('id_actaconteo', 'CobActaconteo', 'id_actaconteo', array(\n 'reusable' => true\n ));\n }", "public function initialize()\n {\n $this->hasMany('id', 'Message', 'idFil', array('alias' => 'Message'));\n $this->belongsTo('idFil', 'Message', 'id', array('alias' => 'Message'));\n $this->belongsTo('idProjet', 'Projet', 'id', array('alias' => 'Projet'));\n $this->belongsTo('idUser', 'User', 'id', array('alias' => 'User'));\n }", "public function initialize()\n {\n $this->belongsTo('cons_order_id', '\\Orders', 'id', array('alias' => 'Orders'));\n $this->belongsTo('order_id', '\\Orders', 'id', array('alias' => 'Orders'));\n }", "public function __construct(Builder $query, Model $parent, $table, $foreignKey, $otherKey, $relationName = null)\n {\n $this->table = $table;\n $this->otherKey = $otherKey;\n $this->foreignKey = $foreignKey;\n $this->relationName = $relationName;\n parent::__construct ( $query, $parent );\n }", "public function hasMany($class, $foreignKey = null, $localKey = null);", "public function defineRelations()\n\t{\n\t\treturn array();\n\t}", "function eZEnhancedObjectRelationType()\n {\n $this->eZDataType( EZ_DATATYPESTRING_ENHANCED_OBJECT_RELATION, ezi18n( 'kernel/classes/datatypes', \"Enhanced Object relation\", 'Datatype name' ),\n array( 'serialize_supported' => true ) );\n }", "public function __set($key, $value)\n\t{\n\t\tif (in_array($key, $this->_has_many))\n\t\t{\n\t\t\t$related_table = AutoModeler::factory(inflector::singular($key))->get_table_name();\n\t\t\t$this_key = inflector::singular($this->_table_name).'_id';\n\t\t\t$f_key = inflector::singular($related_table).'_id';\n\n\t\t\t// See if this is already in the join table\n\t\t\tif ( ! count(db::select('*')->from($this->_table_name.'_'.$related_table)->where($f_key, '=', $value)->where($this_key, '=', $this->_data['id'])->execute($this->_db)))\n\t\t\t{\n\t\t\t\t// Insert\n\t\t\t\tdb::insert($this->_table_name.'_'.$related_table)->columns(array($f_key, $this_key))->values(array($value, $this->_data['id']))->execute($this->_db);\n\t\t\t}\n\t\t}\n\t\telse if (in_array($key, $this->_belongs_to))\n\t\t{\n\t\t\t$related_table = AutoModeler::factory(inflector::singular($key))->get_table_name();\n\t\t\t$this_key = inflector::singular($this->_table_name).'_id';\n\t\t\t$f_key = inflector::singular($related_table).'_id';\n\t\t\t// See if this is already in the join table\n\t\t\tif ( ! count(db::select('*')->from($related_table.'_'.$this->_table_name)->where($this_key, '=', $value)->where($f_key, '=', $this->_data['id'])->execute($this->_db)))\n\t\t\t{\n\t\t\t\t// Insert\n\t\t\t\tdb::insert($related_table.'_'.$this->_table_name, array($f_key => $value, $this_key => $this->_data['id']))->execute($this->_db);\n\t\t\t}\n\t\t}\n\t\telseif (strpos($key, ':')) // Process with\n\t\t{\n\t\t\tlist($table, $field) = explode(':', $key);\n\t\t\tif ($table == $this->_table_name)\n\t\t\t{\n\t\t\t\tparent::__set($key, $value);\n\t\t\t}\n\t\t\telseif ($field)\n\t\t\t{\n\t\t\t\t$this->_lazy[inflector::singular($table)][$field] = $value;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tparent::__set($key, $value);\n\t\t}\n\t}", "public function associate($entity)\n {\n // The Mapper will retrieve this association within the object model, we won't be using\n // the foreign key attribute inside the parent Entity.\n //\n //$this->parent->setEntityAttribute($this->foreignKey, $entity->getEntityAttribute($this->otherKey));\n //\n // Instead, we'll just add the object to the Entity's attribute\n\n $this->parent->setEntityAttribute($this->relation, $entity->getEntityObject());\n }", "function init(){\n\t\t/*\n\t\t * Redefine this object, call parent then use addField to specify which fields\n\t\t * you are going to use\n\t\t */\n\t\tparent::init();\n\t\t$this->table_name = get_class($this);\n\t}", "public function initialize()\n {\n\t\t$this->belongsTo('sfafba_partner_id', 'SfAffiliationPartener', 'sfafpa_id', array('alias' => 'sf_affiliation_partener_partner_id'));\n\n parent::initialize();\n }", "public function getIddefCategoria()\n {\n return $this->hasOne(DefCategoria::className(), ['iddef_categoria' => 'iddef_categoria']);\n }", "public function setForeignKeyName($foreignKey) {\n $this->foreignKeyName = $foreignKey;\n }", "public function buildRelations()\n {\n $this->addRelation('Banco', 'Banco', RelationMap::MANY_TO_ONE, array('idbanco' => 'idbanco', ), 'CASCADE', 'CASCADE');\n }", "public function initialize()\n {\n $this->hasMany('cd', 'ShouhinMrs', 'shu_souko_mr_cd', array('alias' => 'ShouhinMrs'));\n $this->hasMany('cd', 'ShiireMeisaiDts', 'souko_mr_cd', array('alias' => 'ShiireMeisaiDts'));\n $this->hasMany('cd', 'UriageMeisaiDts', 'souko_mr_cd', array('alias' => 'UriageMeisaiDts'));\n $this->belongsTo('tantou_mr_cd', 'TantouMrs', 'cd', array('alias' => 'TantouMrs'));\n }", "abstract public function belongs_to($from_table, $to_table, $to_column = NULL, $from_column = NULL);", "public function buildRelations()\n {\n $this->addRelation('Attribute', '\\\\Thelia\\\\Model\\\\Attribute', RelationMap::MANY_TO_ONE, array('attribute_id' => 'id', ), 'CASCADE', 'RESTRICT');\n $this->addRelation('Feature', '\\\\Thelia\\\\Model\\\\Feature', RelationMap::MANY_TO_ONE, array('feature_id' => 'id', ), 'CASCADE', 'RESTRICT');\n $this->addRelation('ChoiceFilterOther', '\\\\ChoiceFilter\\\\Model\\\\ChoiceFilterOther', RelationMap::MANY_TO_ONE, array('other_id' => 'id', ), 'CASCADE', 'RESTRICT');\n $this->addRelation('Category', '\\\\Thelia\\\\Model\\\\Category', RelationMap::MANY_TO_ONE, array('category_id' => 'id', ), 'CASCADE', 'RESTRICT');\n $this->addRelation('Template', '\\\\Thelia\\\\Model\\\\Template', RelationMap::MANY_TO_ONE, array('template_id' => 'id', ), 'CASCADE', 'RESTRICT');\n }", "public function buildRelations()\n\t{\n $this->addRelation('Track', 'Track', RelationMap::MANY_TO_ONE, array('track_id' => 'id', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('Featurevectortype', 'Featurevectortype', RelationMap::MANY_TO_ONE, array('featurevectortype_id' => 'id', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('File', 'File', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('DistanceRelatedByTrackAId', 'Distance', RelationMap::ONE_TO_MANY, array('track_id' => 'track_a_id', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('DistanceRelatedByTrackBId', 'Distance', RelationMap::ONE_TO_MANY, array('track_id' => 'track_b_id', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('Distancejob', 'Distancejob', RelationMap::ONE_TO_MANY, array('track_id' => 'track_id', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('Featurevectorsegment', 'Featurevectorsegment', RelationMap::ONE_TO_MANY, array('track_id' => 'track_id', ), 'RESTRICT', 'CASCADE');\n\t}", "public function buildRelations()\n {\n $this->addRelation('UnitUsaha', 'DataDikdas\\\\Model\\\\UnitUsaha', RelationMap::MANY_TO_ONE, array('unit_usaha_id' => 'unit_usaha_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('Mou', 'DataDikdas\\\\Model\\\\Mou', RelationMap::MANY_TO_ONE, array('mou_id' => 'mou_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('SumberDana', 'DataDikdas\\\\Model\\\\SumberDana', RelationMap::MANY_TO_ONE, array('sumber_dana_id' => 'sumber_dana_id', ), 'RESTRICT', 'RESTRICT');\n }", "public function buildRelations()\n {\n $this->addRelation('Contact', 'Contact', RelationMap::MANY_TO_ONE, array('contact_id' => 'id', ), null, null);\n $this->addRelation('State', 'State', RelationMap::MANY_TO_ONE, array('state_id' => 'id', ), null, null);\n $this->addRelation('School', 'School', RelationMap::ONE_TO_MANY, array('id' => 'sponsor_id', ), null, null, 'Schools');\n }", "protected function define(MapperDefinition $map)\n {\n $map->type(ParentEntity::class);\n $map->toTable('parents');\n\n $map->idToPrimaryKey('id');\n\n $map->embedded('one')->withColumnsPrefixedBy('one_')->using(new LevelOneMapper());\n }", "public function buildRelations()\n\t{\n $this->addRelation('Organisatie', 'Organisatie', RelationMap::MANY_TO_ONE, array('organisatie_id' => 'id', ), null, null);\n $this->addRelation('Contact', 'Contact', RelationMap::ONE_TO_MANY, array('id' => 'persoon_id', ), null, null);\n\t}", "public function belongsToRelation()\n {\n return $this->belongsTo(Relations::class)\n ->foreignKey('on_table_id');\n }", "public function initialize(){\n $this->hasMany(\n \"category_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Products\", \n \"category\",\n array(\n \"reusable\" => true\n )\n );\n \n $this->hasManyToMany(\n \"category_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Products\", \n \"category\", \n \"vendor_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Vendor\", \n \"vendor_id\",\n array(\n \"reusable\" => true,\n \"alias\" => \"AliasVendorPro\"\n )\n );\n }", "public function initialize()\n {\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', array('alias' => 'Cargaestudiantes'));\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', array('alias' => 'Datosprofesiona'));\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', NULL);\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', NULL);\n }", "public function table(): HasOne\n {\n return $this->hasOne(Donnee::class, 'id', 'table_id');\n }", "public function setupAssociations() \n {\n \n }", "public function buildRelations()\n {\n $this->addRelation('SalesHistory', '\\\\SalesHistory', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':OehhNbr',\n 1 => ':OehhNbr',\n ),\n), null, null, null, false);\n $this->addRelation('SalesHistoryDetail', '\\\\SalesHistoryDetail', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':OehhNbr',\n 1 => ':OehhNbr',\n ),\n 1 =>\n array (\n 0 => ':OedhLine',\n 1 => ':OedhLine',\n ),\n), null, null, null, false);\n $this->addRelation('ItemMasterItem', '\\\\ItemMasterItem', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':InitItemNbr',\n 1 => ':InitItemNbr',\n ),\n), null, null, null, false);\n }", "public function buildRelations()\n\t{\n $this->addRelation('CuadreCaja', 'CuadreCaja', RelationMap::MANY_TO_ONE, array('id_cuadre_caja' => 'id_cuadre_caja', ), 'RESTRICT', null);\n $this->addRelation('PersonaRelatedByIdPersona', 'Persona', RelationMap::MANY_TO_ONE, array('id_persona' => 'id_persona', ), 'RESTRICT', null);\n $this->addRelation('PersonaRelatedByIdAutoriza', 'Persona', RelationMap::MANY_TO_ONE, array('id_autoriza' => 'id_persona', ), 'RESTRICT', null);\n\t}", "public function buildRelations()\n {\n $this->addRelation('EmailManagerTrace', '\\\\TheliaEmailManager\\\\Model\\\\EmailManagerTrace', RelationMap::MANY_TO_ONE, array('trace_id' => 'id', ), 'CASCADE', 'RESTRICT');\n $this->addRelation('EmailManagerHistoryEmail', '\\\\TheliaEmailManager\\\\Model\\\\EmailManagerHistoryEmail', RelationMap::ONE_TO_MANY, array('id' => 'history_id', ), 'CASCADE', 'RESTRICT', 'EmailManagerHistoryEmails');\n }", "public function initialize()\n {\n $this->belongsTo('cd_nfe', 'PdvNfe', 'cd_nfe', array('alias' => 'PdvNfe'));\n }", "public function set_groupe_fk($_groupe_fk){\n $this->_groupe_fk = $_groupe_fk;\n\n return $this;\n }", "public function __construct($model, $associated, $table, $foreign, $other)\n {\n $this->other = $other;\n $this->joining = $table ? $table : $this->joining($model, $associated);\n\n if (Pivot::$timestamps) {\n $this->with[] = 'created_at';\n $this->with[] = 'updated_at';\n }\n\n parent::__construct($model, $associated, $foreign);\n }", "public function __construct($foreignTable, $foreignKey, array $options = null)\n {\n $this->foreignTable = $foreignTable;\n $this->foreignKey = $foreignKey;\n $this->options = $options;\n }", "protected function belongs_to($associated_class_name, $foreign_key_name=null, $foreign_key_name_in_associated_models_table=null, $connection_name=null) {\r\n // Added: to determine eager load relationship parameters\r\n $this->relating = 'belongs_to';\r\n\r\n $associated_table_name = self::_get_table_name(self::$auto_prefix_models . $associated_class_name);\r\n $foreign_key_name = self::_build_foreign_key_name($foreign_key_name, $associated_table_name);\r\n $associated_object_id = $this->$foreign_key_name;\r\n\r\n // Added: to determine eager load relationship parameters\r\n $this->relating_key = $foreign_key_name;\r\n\r\n $desired_record = null;\r\n\r\n if( is_null($foreign_key_name_in_associated_models_table) ) {\r\n //\"{$associated_table_name}.primary_key = {$associated_object_id}\"\r\n //NOTE: primary_key is a placeholder for the actual primary key column's name\r\n //in $associated_table_name\r\n $desired_record = self::factory($associated_class_name, $connection_name)->where_id_is($associated_object_id);\r\n } else {\r\n //\"{$associated_table_name}.{$foreign_key_name_in_associated_models_table} = {$associated_object_id}\"\r\n $desired_record = self::factory($associated_class_name, $connection_name)->where($foreign_key_name_in_associated_models_table, $associated_object_id);\r\n }\r\n\r\n return $desired_record;\r\n }", "public function buildRelations()\n\t{\n $this->addRelation('Aviso', 'Aviso', RelationMap::MANY_TO_ONE, array('aviso_id' => 'id', ), 'RESTRICT', null);\n $this->addRelation('Usuario', 'Usuario', RelationMap::MANY_TO_ONE, array('usuario_id' => 'id', ), 'RESTRICT', null);\n\t}", "public function childRecordCallback(InterfaceGeneralModel $objModel);", "public function dtPrimary()\n {\n return $this->belongsTo(DatatablePrimary::class, 'parent_id');\n }", "public function initialize()\n {\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', array('alias' => 'Documentosbeneficios'));\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', NULL);\n }", "public function initialize()\n {\n $this->hasMany('id', 'GroupProfile', 'media_id', array('alias' => 'GroupProfile'));\n $this->belongsTo('profile_id', 'Profile', 'id', array('alias' => 'Profile'));\n $this->belongsTo('evenement_id', 'Event', 'id', array('alias' => 'Event'));\n }", "protected function has_many($associated_class_name, $foreign_key_name=null, $foreign_key_name_in_current_models_table=null, $connection_name=null) {\r\n // Added: to determine eager load relationship parameters\r\n $this->relating = 'has_many';\r\n return $this->_has_one_or_many($associated_class_name, $foreign_key_name, $foreign_key_name_in_current_models_table, $connection_name);\r\n }", "public function initialize()\n {\n $this->hasMany('id' , 'Cars' , 'brand_id');\n }", "public function buildRelations()\n {\n $this->addRelation('Country', 'Slashworks\\\\AppBundle\\\\Model\\\\Country', RelationMap::MANY_TO_ONE, array('country_id' => 'id', ), null, 'CASCADE');\n $this->addRelation('RemoteApp', 'Slashworks\\\\AppBundle\\\\Model\\\\RemoteApp', RelationMap::ONE_TO_MANY, array('id' => 'customer_id', ), 'SET NULL', 'CASCADE', 'RemoteApps');\n $this->addRelation('UserCustomerRelation', 'Slashworks\\\\AppBundle\\\\Model\\\\UserCustomerRelation', RelationMap::ONE_TO_MANY, array('id' => 'customer_id', ), 'CASCADE', 'CASCADE', 'UserCustomerRelations');\n }", "public function addFK( $type, $targetType, $field, $targetField) {\n\t\t//not supported yet\n\t}", "public function Table_1()\n {\n return $this->hasOne('App\\Table_1')->withDefault([\n \n 'name' => 'Guest Author',\n \n ]);\n }", "public function initialize()\n {\n \t$this->belongsTo('id_usuario', 'IbcUsuario', 'id_usuario', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_periodo', 'CobPeriodo', 'id_periodo', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_contrato', 'CobActaconteo', 'id_contrato', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_ajuste_reportado', 'CobAjusteReportado', 'id_ajuste_reportado', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_actaconteo_persona_facturacion', 'CobActaconteoPersonaFacturacion', 'id_actaconteo_persona_facturacion', array(\n \t\t\t'reusable' => true\n \t));\n }", "protected function define(MapperDefinition $map)\n {\n $map->type(AnotherEntity::class);\n $map->toTable('anothers');\n\n $map->idToPrimaryKey('id');\n\n $map->property('val')->to('val')->asInt();\n\n $map->subclass()->asSeparateTable('another_subclasses')->define(function (MapperDefinition $map) {\n $map->type(AnotherEntitySubclass::class);\n\n $map->primaryKey('id');\n $map->property('data')->to('data')->asBool();\n });\n }", "public function setRelations() {}", "public function setChild($child)\n {\n $this->child = $child;\n }", "public function buildRelations()\n {\n $this->addRelation(\n 'Group',\n 'CAD\\\\TransferBundle\\\\Model\\\\Conn1\\\\Group',\n RelationMap::MANY_TO_ONE,\n array('group_id' => 'id',),\n null,\n null\n );\n $this->addRelation(\n 'Batch',\n 'CAD\\\\TransferBundle\\\\Model\\\\Conn1\\\\Batch',\n RelationMap::MANY_TO_ONE,\n array('batch_id' => 'id',),\n null,\n null\n );\n }" ]
[ "0.5680653", "0.53593063", "0.5337398", "0.52782416", "0.5243401", "0.52148837", "0.5202885", "0.51744944", "0.51673913", "0.512093", "0.51165974", "0.50935745", "0.50695413", "0.5061241", "0.5019683", "0.5008641", "0.49908268", "0.49813455", "0.4980881", "0.49652037", "0.4950604", "0.49466407", "0.4945266", "0.4934825", "0.49194336", "0.49029076", "0.48972633", "0.48771298", "0.4873573", "0.48726937", "0.48412567", "0.48407763", "0.4840149", "0.4836481", "0.4827298", "0.48263702", "0.48258942", "0.48255724", "0.48014095", "0.4792854", "0.47882086", "0.47881356", "0.47853318", "0.4780337", "0.4772172", "0.4764584", "0.47641614", "0.47579592", "0.4753803", "0.47528017", "0.47499606", "0.47454974", "0.47443777", "0.47429737", "0.47428596", "0.47415927", "0.47403648", "0.473918", "0.47359937", "0.47305325", "0.4728282", "0.47239158", "0.47226554", "0.47170752", "0.47153908", "0.4710642", "0.47074813", "0.47050673", "0.46977416", "0.46898913", "0.4682358", "0.46822482", "0.4676446", "0.46743163", "0.4674104", "0.46732435", "0.46692064", "0.4668623", "0.46650818", "0.46602204", "0.46594515", "0.46485466", "0.4648129", "0.4644589", "0.46442744", "0.46431142", "0.46345502", "0.46342638", "0.46340838", "0.46289217", "0.46274307", "0.4626501", "0.4622627", "0.46222663", "0.4620614", "0.4615819", "0.4614371", "0.46071583", "0.4604103", "0.4594427" ]
0.66842127
0
Get the associated ChildTblGeneral object
public function getTblGeneral(ConnectionInterface $con = null) { if ($this->aTblGeneral === null && ($this->prod_general !== null)) { $this->aTblGeneral = ChildTblGeneralQuery::create()->findPk($this->prod_general, $con); /* The following can be used additionally to guarantee the related object contains a reference to this object. This level of coupling may, however, be undesirable since it could result in an only partially populated collection in the referenced object. $this->aTblGeneral->addTblProdInfos($this); */ } return $this->aTblGeneral; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getSubTable(){\n return $this->buildArrayData( Company::orderBy('id', 'asc')->get());\n }", "public function setTblGeneral(ChildTblGeneral $v = null)\n {\n if ($v === null) {\n $this->setProdGeneral(NULL);\n } else {\n $this->setProdGeneral($v->getProdGeneral());\n }\n\n $this->aTblGeneral = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the ChildTblGeneral object, it will not be re-added.\n if ($v !== null) {\n $v->addTblProdInfo($this);\n }\n\n\n return $this;\n }", "function name_child_relationship($class_name,$foreign_key)\n\t{\n\t\tif($class_name == 'vehicle' && $foreign_key == 'supplier_id')\n\t\t{\n\t\t\treturn \"supplier\";\n\t\t}\n\t\telse if($class_name == 'delivery' && $foreign_key == 'vehicle_id')\n\t\t{\n\t\t\treturn \"vehicle\";\n\t\t}\n\t\telse if($class_name == 'delivery' && $foreign_key == 'venue_id')\n\t\t{\n\t\t\treturn \"venue\";\n\t\t}\n\t\telse if($class_name == 'delivery' && $foreign_key == 'status_id')\n\t\t{\n\t\t\treturn \"status\";\n\t\t}\n\t\telse if($class_name == 'driver' && $foreign_key == 'supplier_id')\n\t\t{\n\t\t\treturn \"supplier\";\n\t\t}\n\t\t\n\t}", "public static function getInstance()\n {\n return Doctrine_Core::getTable('HandlingMoreInfo');\n }", "public function Child() {\n return $this->belongsTo(Child::class);\n }", "public function getChild()\n {\n return $this->child;\n }", "public static function getInstance()\n {\n return Doctrine_Core::getTable('GeneralLibraryCategory');\n }", "public function getCategory() {\n return $this->hasOne(Category::className(), ['id' => 'category_id']); // second - field in dependent table\n }", "public function getParentItemfromDatabase()\n {\n $dataTableName = Data::mapDataType($this->parentType);\n\n\n $dataTable = new $dataTableName();\n\n $parentItem = $this->parentItem = $dataTable->find($this->parentId)->current();\n return $parentItem;\n }", "public function get_related_tables(){\n\t\treturn $this->related;\n\t}", "public function dtPrimary()\n {\n return $this->belongsTo(DatatablePrimary::class, 'parent_id');\n }", "public function getRelatedDescriptor()\n\t{\n\t\treturn Db::getDescriptor($this->getRelatedClass());\n\t}", "public function getTable()\n {\n return $this->parentTable;\n }", "public function child(){\n return $this->morphTo(null,'recharge_type','recharge_type_id');\n }", "public function GetItem()\r\n\t{\r\n\t\treturn $this->_phreezer->GetManyToOne($this, \"fk_reference_item1\");\r\n\t}", "static public function getParentTable(){\n return TABLE_EMPRESA . \"_relacion\";\n }", "public function getRelationChildRealId();", "public function Child()\n\t{\n\t\treturn $this->hasMany(Category::class);\n\t}", "public function get_groupe_fk(){ return $this->_groupe_fk;}", "public function getTblObj(){\r\n if(is_null(self::$tblObj)){\r\n self::$tblObj = new ImageTable();\r\n }\r\n return self::$tblObj;\r\n }", "public function getRelationChildId();", "public function getMotherAttribute()\n {\n return $this->families()->where('type', 'mother')->first();\n }", "public function getOne(){\n $categorias = $this ->db->query(\"SELECT * FROM categorias WHERE id={$this->getId()}\");\n return $categorias->fetch_object(); //devuelvo un objeto ya utilizable\n }", "public function get_child($child_id)\n {\n }", "public function getForeignTable()\n {\n return $this->foreignTable;\n }", "public function getOtherMorphClass()\n {\n return $this->relatedMorphClass;\n }", "public function child(){\n return $this->belongsTo('App\\Child', 'child_id');\n }", "private function getdetailbyparentid($idparent){\r\n\t\t$this->load->model('submission');\r\n\t\t$h = $this->submission->selectdetail44($idparent);\r\n\t\treturn $h;\r\n\t}", "public function getFk()\n {\n return $this->_fk;\n }", "protected function getHasOneRelation($table,$foreignKey,$otherKey,$otherKeyValue)\n {\n $this->setSql(\"SELECT `b`.* FROM `{$table}` AS `a` JOIN \" . $this->getTableName() . \" AS `b` ON `a`.`{$otherKey}` = `b`.`{$foreignKey}` \");\n $this->setWhere(\"AND\",\"`a`.`$otherKey` = ? \");\n $this->table = \"b\";\n $this->addValue($otherKey,$otherKeyValue);\n $statement = $this->executeQuery();\n $data = $statement->fetch();\n if ($data){\n return $this->arrayToObj($data);\n }\n return null;\n }", "public function childRecordCallback(InterfaceGeneralModel $objModel);", "function loadChild($types=null,$dq=null){\n\t\t$obj_pool=$this->api->genericLoadObj($this->api->childDQ($dq,$this->id,$types));\n\t\t$new_obj_pool=array();\n\t\tforeach($obj_pool as $obj){\n\t\t\t$new_obj_pool[$obj->id]=$this->add($obj);\n\t\t\t$new_obj_pool[$obj->id]->aux = $obj->aux; // add sux, and drops this important value!\n\t\t\t$new_obj_pool[$obj->id]->rel_type = $obj->rel_type; // add sux, and drops this important value!\n\t\t}\n\t\treturn $new_obj_pool;\n\t}", "function get_info($office_id) {\n $this->db->from('offices');\n $this->db->join('offices_info', 'offices.office_id = offices_info.officeID', 'left');\n $this->db->join('app_files', 'app_files.officeID = offices.office_id', 'left');\n $this->db->where('office_id', $office_id);\n $query = $this->db->get();\n\n if ($query->num_rows() == 1) {\n return $query->row();\n } else {\n //Get empty base parent object, as $massage_id is NOT an customer\n // $obj = new stdClass();\n $obj = $this->get_info_parents(-1);\n\n $fields = $this->db->list_fields('offices_info');\n\n //Get all the fields from items_massages table\n foreach ($fields as $field) {\n //append those fields to base parent object, we we have a complete empty object\n $obj->$field = '';\n }\n\n return $obj;\n }\n }", "public function getDetails()\n {\n return $this->hasMany(Details::className(), ['contragent_id' => 'id']);\n }", "function inheritance_field() {\n\t\treturn $this->inheritance_field;\n\t}", "public function __get($key)\n\t{\n\t\t// See if we are requesting a foreign key\n\t\tif (isset($this->_data[$key.'_id']))\n\t\t{\n\t\t\tif (isset($this->_lazy[$key])) // See if we've lazy loaded it\n\t\t\t{\n\t\t\t\t$model = AutoModeler::factory($key);\n\t\t\t\t$model->process_load($this->_lazy[$key]);\n\t\t\t\t$model->process_load_state();\n\t\t\t\treturn $model;\n\t\t\t}\n\n\t\t\t// Get the row from the foreign table\n\t\t\treturn AutoModeler::factory($key, $this->_data[$key.'_id']);\n\t\t}\n\t\telse if (isset($this->_data[$key]))\n\t\t\treturn $this->_data[$key];\n\t}", "public final function getTable()\n {\n if ($this->_table === null)\n $this->_table = $this->getParentObject()->getTable();\n \n return $this->_table;\n }", "function find_childs($child_schema, $child_table, $fkey_column, $fk_id) {\n\t\t$table = new PgObject($this->gui, $child_schema, $child_table);\n\t\t$this->childs[$child_table] = $table->find_where($fkey_column . \" = '\" . $fk_id. \"'\");\n\t\treturn $this->childs[$child_table];\n\t}", "public function getDjTable()\n {\n return $this->hasOne(DjTable::className(), ['id' => 'dj_table_id']);\n }", "public function relatedTable()\n {\n return $this->belongsTo('App\\Table','table');\n }", "public function getDataWithTypeParentRecordNumber() {}", "public function getChildType(): string;", "public function getChildrenField()\n {\n return $this->inheritanceField;\n }", "public static function getInstance()\n {\n return Doctrine_Core::getTable('CategoriaObjecto');\n }", "public function return_table()\n {\n $table = \"sub_classes\";\n return $table;\n }", "public function inheritance()\n\t{\t\treturn $this->hasMany(GroupInheritance::class, \"child\");\n\t}", "public function getTree()\n {\n return $this->hasOne(Tree::className(), ['id' => 'tree_id']);\n }", "public static function getInstance()\n {\n return Doctrine_Core::getTable('mdCategoryObject');\n }", "public function get_Parent_Entite($forced = 0)\n {\n\n $this->Parent_Entite = new entite($this->ID_Entite);\n\n return $this->Parent_Entite;\n }", "public function getForeignKey();", "public function mountDetails()\n {\n $haveDetails = false;\n $array = [];\n // $array['options'] = [\n // '' => '-- None --',\n // ];\n\n if ($relation = $this->isBelongTo()) {\n $relationData = $relation->toArray();\n if (!isset($this->parentEntity->system->mapperTableToClasses[$relationData['name']])) {\n return null; //@todo tratar erro de tabela que nao existe\n }\n // name, key, label\n $haveDetails = true;\n\n if (is_array($relationClassName = $this->parentEntity->system->mapperTableToClasses[$relationData['name']])) {\n $relationClassName = $relationClassName[0];\n }\n\n $array['model'] = $relationClassName;\n $array['table'] = $relationData['name'];\n $array['method'] = $relationData['name'];\n $array['type'] = 'belongsTo';\n $array['column'] = $this->getColumnName();\n $array['key'] = $relation->returnPrimaryKeyFromIndexes();\n $array['label'] = $relation->getDisplayName();\n $array['pivot_table'] = $relationData['name'];\n $array['pivot'] = 0;\n }else if ($relation = $this->isMorphTo()) {\n // Filtra o Primeiro\n\n // @todo Ajeitar aqu dps \n // if (!isset($relation['table_target']) || !isset($this->parentEntity->system->mapperTableToClasses[$relation['table_target']])) {\n // dd(\n // 'deu ruim aqui mountcolumn',\n // $relation\n // );\n // return null; //@todo tratar erro de tabela que nao existe\n // }\n // name, key, label\n $haveDetails = true;\n\n // Get Relation Data\n $relationData = $relation['relations'][0];\n\n // Aqui invez do modelo fica a coluna que armazena o modelo\n $array['model'] = $relationData['morph_type'];\n $array['table'] = $relation['name'];\n $array['method'] = $relation['name'];\n $array['type'] = 'morphTo';\n $array['column'] = $this->getColumnName();\n $array['key'] = $relationData['ownerKey']; // id, code\n $array['label'] = 'name';\n $array['pivot'] = 0;\n if ($relationData['pivot']) {\n $array['pivot'] = 1;\n $array['pivot_table'] = $relationData['pivot'];\n dd(\n 'fazer pivon',\n $relation,\n $array\n );\n }\n }\n\n // Belongs to many\n // if ($relation = $this->isBelongTo()) {\n // // name, key, label\n // $haveDetails = true;\n // $array['model'] = $relationClassName;\n // $array['table'] = $relation['roles'];\n // $array['type'] = 'belongsToMany';\n // $array['column'] = $relation['id'];\n // $array['key'] = $relation['key'];\n // $array['label'] = $relation['ladisplayNamebel'];\n // $array['pivot_table'] = $relation['user_roles'];\n // $array['pivot'] = 1; // @todo\n // $array['taggable'] = 0; // @todo\n // }\n\n\n \n if (in_array($this->getColumnType(), ['date', 'datetime', 'timestamp'])) {\n $haveDetails = true;\n // $array['format'] = '%A %d %B %Y'; //formatLocalized for Carbon\n // $array['format'] = 'Y-m-d G:i:s';\n }\n \n if (in_array($this->getColumnType(), ['checkbox'])) {\n $haveDetails = true;\n $array['on'] = true;\n $array['off'] = true;\n }\n \n if (in_array($this->getColumnType(), ['select_dropdown', 'select_multiple'])) {\n $haveDetails = true;\n $array['options'] = true;\n }\n \n if (in_array($this->getColumnType(), ['media_picker'])) {\n $haveDetails = true;\n $array['show_as_images'] = true;\n }\n\n if (!$haveDetails) {\n return null;\n }\n\n return $array;\n }", "public function Parent()\n\t{\n\t\treturn Category::findOrFail($this->category_id);\n\t}", "public static function getTbl(){\r\n if(is_null(self::$tblObj)){\r\n self::$tblObj = new ImageTable();\r\n }\r\n return self::$tblObj;\r\n }", "public function __get($obj) {\n $class = get_called_class();\n\n // If the relation is has_one\n if (method_exists($this, \"has_one\") && in_array($obj, $this->has_one())) {\n $attr = $obj . '_id';\n\n // If the object does not have attribute ending in '_id'\n if (!property_exists($this, $attr)) {\n throw new Exception(\"$class does not have a attribute $attr\", 1);\n return;\n }\n\n $object_class = ucfirst($obj);\n\n return $object_class::find($this->$attr);\n }\n\n\n // If the relation is has_many\n if (method_exists($this, \"has_many\") && in_array($obj, $this->has_many())) {\n\n // Get the singular of the word $obj. i.e. $book->categories will get 'category'\n $singular_obj = singularize($obj);\n\n $attr_class = ucfirst($singular_obj);\n\n $attr = lcfirst($class) . '_id';\n\n // If the table has an attribute of the called + '_id'\n if ($attr_class::has_attribute($attr)) {\n // Return a list of all objects\n return $attr_class::where(\"$attr = ?\", $this->id);\n }\n\n // There might be a many_to_many, so we need to check two tables:\n // book_category and category_book\n $table1 = ucfirst($singular_obj) . \"_\" . $class;\n $table2 = $class . \"_\" . ucfirst($singular_obj);\n\n\n // If the first combination has the attributes\n if (class_exists($table1) && $table1::in_database() && $table1::has_attribute($attr) && $table1::has_attribute($singular_obj . '_id')) {\n return $table1::where(\"$attr = ?\", $this->id);\n }\n\n // If the second combination has the attributes\n if (class_exists($table2) && $table2::in_database() && $table2::has_attribute($attr) && $table2::has_attribute($singular_obj . '_id')) {\n return $table2::where(\"$attr = ?\", $this->id);\n }\n\n\n // If there isnt any coincidence\n throw new Exception(\"has_many relation in class $class does include $singular_obj\", 1);\n return;\n\n\n }\n\n\n // If the relation is belongs_to\n if (method_exists($this, \"belongs_to\") && in_array($obj, $this->belongs_to())) {\n $attr = lcfirst($obj) . '_id';\n $attr_class = ucfirst($obj);\n\n // If the table has not an attribute of the called + '_id'\n if (!$class::has_attribute($attr)) {\n throw new Exception(\"belongs_to relation in class $class does have $attr\", 1);\n return;\n }\n\n // Return a list of all objects\n return $attr_class::find($this->$attr);\n }\n\n trigger_error(\"Variable $obj not declared\", E_USER_WARNING);\n\n return NULL;\n }", "protected function childEntities()\n {\n return null;\n }", "public function getSubtype()\n {\n return $this->hasOne(SpaceSubtype::className(), ['id' => 'subtype_id']);\n }", "public function getSubCategory(){\n return $this->hasOne(Category::class, 'id','subcategory_id');\n }", "public function child()\n {\n if ($this->type == 'attribute_template') {\n return $this->attributeTemplate();\n } elseif ($this->type == 'dice_roll') {\n return $this->diceRoll();\n } else {\n return $this->{$this->type}();\n }\n }", "public function getOne(){\n\n $categoria = $this->db->query(\"SELECT * from categorias WHERE id_categoria = '{$this->getIdCategoria()}'\");\n\n return $categoria->fetch_object();\n }", "function get_detail_data($table_name,$where,$return_data)\r\n{\r\n\t$ci = & get_instance();\r\n\t$ci->load->database();\r\n\t$result = $ci->db->get_where($table_name,$where)->row();\r\n\tif($result):\r\n\t\treturn $result->$return_data;\r\n\telse:\r\n\t\treturn false;\r\n\tendif;\r\n}", "static public function getParentTableRelationalField(){\n return \"uid_empresa_superior\";\n }", "function get_single_object_info($id,$table, $Manipulation){\r\n $this->db->select('*');\r\n // $this->db->select('c.name as country_name');\r\n $this->db->from($table);\r\n // $this->db->join('country c','c.id = u.country','LEFT');\r\n $this->db->where($Manipulation,$id);\r\n $query = $this->db->get();\r\n $query = $query->row(); \r\n return $query;\r\n }", "public function parent()\n {\n return $this->hasOne('App\\Technology', 'id', 'parent_id');\n }", "public function meta(){\n $table_meta = new \\stdClass();\n\n // get fields in the database table\n if(count($this->_model_meta)==0){\n $this->_meta();\n }\n\n\n foreach ($this->_model_meta as $meta) {\n $table_meta->{$meta->name} = $meta;\n }\n\n return $table_meta;\n }", "public function getTableBase();", "function _get_relation($model, $id)\r\n\t{\r\n\t\t// No related items\r\n\t\tif (empty($model) OR empty($id))\r\n\t\t{\r\n\t\t\t// Reset query\r\n\t\t\t$this->db->_reset_select();\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Prepare model\r\n\t\t$model = ucfirst($model);\r\n\t\t$object = new $model();\r\n\r\n\t\t// Determine relationship table name\r\n\t\t$relationship_table = $this->_get_relationship_table($object->prefix, $object->table, $object->model);\r\n\r\n\t\t// Retrieve related records\r\n\t\tif (empty($this->db->ar_select))\r\n\t\t{\r\n\t\t\t$this->db->select($this->table . '.*');\r\n\t\t}\r\n\r\n\t\t// Check if self referencing\r\n\t\tif ($this->table == $object->table)\r\n\t\t{\r\n\t\t\t$this->db->from($this->table);\r\n\t\t\t$this->db->join($relationship_table, $object->table . '.id = ' . $relationship_table . '.' . $this->model . '_id', 'left');\r\n\t\t\t$this->db->where($relationship_table . '.' . $object->model . '_id = ' . $id);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->db->from($this->table);\r\n\t\t\t$this->db->join($relationship_table, $this->table . '.id = ' . $relationship_table . '.' . $this->model . '_id', 'left');\r\n\t\t\t$this->db->join($object->table, $object->table . '.id = ' . $relationship_table . '.' . $object->model . '_id', 'left');\r\n\t\t\t$this->db->where($object->table . '.id = ' . $id);\r\n\t\t}\r\n\r\n\t\t$query = $this->db->get();\r\n\r\n\t\t// Clear this object to make way for new data\r\n\t\t$this->clear();\r\n\r\n\t\tif ($query->num_rows() > 0)\r\n\t\t{\r\n\t\t\t// Populate all with records as objects\r\n\t\t\t$this->all = $this->_to_object($query->result(), $this->model);\r\n\r\n\t\t\t// Populate this object with values from first record\r\n\t\t\tforeach ($query->row() as $key => $value)\r\n\t\t\t{\r\n\t\t\t\t$this->{$key} = $value;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$this->_refresh_stored_values();\r\n\t}", "function getClassroomRelatedByClassroomId() {\n\t\t$fk_value = $this->getclassroom_id();\n\t\tif (null === $fk_value) {\n\t\t\treturn null;\n\t\t}\n\t\treturn Classroom::retrieveByPK($fk_value);\n\t}", "function loadParent($types=null,$dq=null){\n\t\t$obj_pool=$this->api->genericLoadObj($this->api->parentDQ($dq,$this->id,$types));\n\t\treturn $obj_pool;\n\t}", "protected function get_record()\n\t{\n\t\treturn $this->key ? parent::get_record() : null;\n\t}", "public function all_child_individual()\n\t{\n\t\t$this->db->where('individual_status = 1 AND individual_parent > 0');\n\t\t$this->db->order_by('individual_name', 'ASC');\n\t\t$query = $this->db->get('individual');\n\t\t\n\t\treturn $query;\n\t}", "public function getSubmenu()\n {\n return $this->hasOne(Menu::className(), ['id'=>'menu_id']);\n }", "function getChild($field, $id) {\n// 'conditions' => \"IdTBeli = '$id'\"\n// ));\n //echo \"$this->child_class $field = '$id'\";die();\n $result = call_user_func(array($this->child_class, 'find'), 'all', array(\n 'conditions' => \"$field = '$id'\"\n ));\n return $result;\n }", "public function parent()\n\t{\n\t\treturn $this->hasMany(TemplateDetail::class, 'id', 'parent_id');\n\t}", "public function getRelated()\n {\n return new $this->morphType();\n }", "protected function subRelation(): RelationInterface\n {\n /** @var array{entity:class-string<L>} $infos */\n $infos = $this->map($this->discriminatorValue);\n\n $relation = $this->local->repository($infos['entity'])\n ->relation($this->attributeAim);\n\n // TODO doit on redescendre les options sur la relation ?\n\n return $relation;\n }", "protected function fkElement()\n\t{\n\t\treturn $this->formModel->getElement($this->params->get('foreign_key'), true);\n\t}", "protected function childCategoryTC()\n {\n return PostCategory::childCategories()->firstOrFail();\n }", "function get( $id )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n if ( $id != \"\" )\r\n {\r\n $db->array_query( $company_type_array, \"SELECT * FROM eZContact_CompanyType WHERE ID='$id'\" );\r\n\r\n if ( count( $company_type_array ) > 1 )\r\n {\r\n die( \"Error: More than one company type with the same ID found. Major problem, clean up the table eZContact_CompanyType. \" );\r\n }\r\n else if ( count( $company_type_array ) == 1 )\r\n {\r\n $this->ID = $company_type_array[ 0 ][ $db->fieldName( \"ID\" ) ];\r\n $this->Name = $company_type_array[ 0 ][ $db->fieldName( \"Name\" ) ];\r\n $this->Description = $company_type_array[ 0 ][ $db->fieldName( \"Description\" ) ];\r\n $this->ParentID = $company_type_array[ 0 ][ $db->fieldName( \"ParentID\" ) ];\r\n $this->ImageID = $company_type_array[ 0 ][ $db->fieldName( \"ImageID\" ) ];\r\n }\r\n }\r\n }", "function objFldHeiarchRoot($dbh, $idfld, $parentfld, $tbl, $curid)\r\n{\r\n\t$ret = $curid;\r\n\r\n\tif ($curid)\r\n\t{\r\n\t\t$result = $dbh->Query(\"select $parentfld from $tbl where $idfld='$curid'\");\r\n\t\tif ($dbh->GetNumberRows($result))\r\n\t\t{\r\n\t\t\t$val = $dbh->GetValue($result, 0, $parentfld);\r\n\t\t\tif ($val)\r\n\t\t\t{\r\n\t\t\t\t$ret = objFldHeiarchRoot($dbh, $idfld, $parentfld, $tbl, $val);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn $ret;\r\n}", "public function getTable()\r\n\t{\r\n\t\tif ($this->_table===null) {\r\n\t\t\t$this->_table=new $this->_tableClass;\r\n\t\t}\r\n\t\treturn $this->_table;\r\n\t}", "public function getTable() { return $this->table->getTable(); }", "public function parentRecord()\r\n {\r\n return $this->_parent;\r\n }", "public function subcategory()\n {\n return $this->hasOne('App\\Models\\Category','id','sub_category_id');\n }", "public function getFChild()\n {\n return $this->f_child;\n }", "function getparent(){\r\n\tglobal $con;\r\n\t$getAll = $con->prepare(\"SELECT * FROM categories WHERE parent = 0 ORDER BY ID ASC\");\r\n\t$getAll->execute();\t\r\n\t$parent = $getAll->fetchAll();\r\n\treturn $parent;\r\n}", "public function getParentSubtype()\n {\n return $this->hasOne(SpaceSubtype::className(), ['id' => 'parent_subtype_id']);\n }", "function get_parent() {\n return $this->get_mapped_property('parent');\n }", "private static function genChildDbFieldTable($param_table) {\n $child_db_field_table = static::genChildDbFieldTableTemplate(); \n self::bindValuesToDbTable($param_table, $child_db_field_table);\n return $child_db_field_table;\n }", "public function _meta(){\n if(!$this->db->table_exists($this->table_name())):\n throw new OrmExceptions(sprintf(\"The table %s does not exist\", $this->table_name()));\n endif;\n\n if(empty($this->_model_meta )){\n $this->_model_meta = $this->db->field_data($this->table_name());\n $this->_fields_loaded = TRUE;\n }\n return $this->_model_meta ;\n }", "public function parent(){\n return $this->where('id', $this->parent_id)->first();\n }", "public static function getInstance()\n {\n return Doctrine_Core::getTable('PlugintdSubpage');\n }", "function get_info($group_id, $can_cache = TRUE)\n {\n if ($can_cache) {\n static $cache = array();\n if (isset($cache[$group_id])) {\n return $cache[$group_id];\n }\n } else {\n $cache = array();\n }\n $this->db->from('groups');\n $this->db->where('groups.group_id', $group_id);\n $query = $this->db->get();\n\n if ($query->num_rows() == 1) {\n $cache[$group_id] = $query->row();\n return $cache[$group_id];\n } else {\n /* Get empty base parent object */\n $group_obj = new stdClass();\n\n /* Get all the fields from group table */\n $fields = $this->db->list_fields('groups');\n\n /* Append those fields to base parent object, we have a complete empty object */\n foreach ($fields as $field) {\n $group_obj->$field = '';\n }\n\n return $group_obj;\n }\n }", "public function getListChildClass()\n {\n return $this->child_class;\n }", "function show_childgrid() {\r\n if (($this->action=='edit' or $this->action=='view' or $this->action=='browse') and $this->childds) {\r\n foreach ($this->childds as $child_modulename) {\r\n $child_module = instantiate_module($child_modulename);\r\n $child_module->logical_parent = $this; # 1. for parent: bind children to parent\r\n # bind child's foreign key to me\r\n # - search which field is the foreign key\r\n foreach ($child_module->properties as $k=>$col) {\r\n if ($col->enumerate == $this->module) { # foreign key always int\r\n $child_module->properties[$k]->hidden = 1; # hide this field from browse\r\n $child_module->properties[$k]->parentkey = 1; # flag that this field IS the connecting master/detail key. will be used by add-suggestive-field\r\n $child_module->properties[$k]->parentkey_value = $this->ds->_rowid[$this->_cursor];\r\n $child_module->db_where = '`'.$col->colname.'`='.$this->ds->_rowid[$this->_cursor];\r\n break;\r\n }\r\n }\r\n $child_module->final_init();\r\n if ($this->db_count) # if parent empty, do not populate child\r\n $child_module->populate();\r\n #~ echo '<hr>';\r\n echo '<br>';\r\n echo '<table>';\r\n echo '<tr><td style=\"color:white; background-color:rgb(99,140,181);\">'.$child_module->title.'</td></tr>';\r\n echo '<tr><td>';\r\n $child_module->showgrid('browse');\r\n echo '</tr></td></table>';\r\n }\r\n }\r\n }", "public function getParent(){\n\t\treturn $this->father;\n\t}", "public function subCategoryType()\n {\n return $this->belongsTo(SubCategoryType::class);\n }", "public function Tipodoc_contable() {\n return $this->belongsTo('App\\Models\\Admin\\Tipodoc_contable','tdc_id','id');\n }", "public static function getInstance()\n {\n return Doctrine_Core::getTable('TipoResgate');\n }", "function getChild($key, string $interface) : ?IBabylonModel;", "public function getMainTable(): Table\n {\n return $this->mainTable;\n }" ]
[ "0.57971954", "0.57651067", "0.573825", "0.5638981", "0.5601552", "0.55805635", "0.5539091", "0.5519887", "0.5484783", "0.548063", "0.54800844", "0.5467514", "0.54373556", "0.5424376", "0.5414079", "0.54017437", "0.53866476", "0.5369319", "0.5347422", "0.5341997", "0.5329818", "0.5307697", "0.5302007", "0.5299703", "0.52911365", "0.5275922", "0.5269029", "0.52624625", "0.52588505", "0.5241783", "0.52231437", "0.52161586", "0.52052283", "0.5188674", "0.5187505", "0.5187255", "0.5182396", "0.51820356", "0.51784134", "0.5171021", "0.5157997", "0.5157176", "0.51444924", "0.513878", "0.51289374", "0.51278716", "0.5122882", "0.51195925", "0.5115977", "0.5114927", "0.5114172", "0.5111183", "0.51071316", "0.510408", "0.51025236", "0.5100497", "0.50976515", "0.5097609", "0.50886893", "0.50673413", "0.5057219", "0.5054687", "0.5054234", "0.5046739", "0.5031894", "0.5029275", "0.5027039", "0.50242287", "0.5023572", "0.5020781", "0.50161463", "0.5014372", "0.5009148", "0.49943227", "0.49925393", "0.49910662", "0.49881303", "0.49844682", "0.49822927", "0.4981366", "0.49805048", "0.49793425", "0.497831", "0.49780446", "0.49752367", "0.49707276", "0.4963619", "0.4955019", "0.49543688", "0.49480733", "0.49458984", "0.4944206", "0.4943951", "0.49402043", "0.49395967", "0.49380785", "0.49367955", "0.49305436", "0.49282217", "0.4926328" ]
0.6617312
0
Declares an association between this object and a ChildTblMenus object.
public function setTblMenus(ChildTblMenus $v = null) { if ($v === null) { $this->setProdCategory(NULL); } else { $this->setProdCategory($v->getMenuAlias()); } $this->aTblMenus = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildTblMenus object, it will not be re-added. if ($v !== null) { $v->addTblProdInfo($this); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function attachModelToParent(int $id, Menu $menu);", "public function attachModelToParent(int $id, Menu $menu);", "public function Menus(){\n return $this->belongsToMany(Menu::class);\n }", "public function getSubmenu()\n {\n return $this->hasOne(Menu::className(), ['id'=>'menu_id']);\n }", "public function menu()\n {\n return $this->hasMany(\"App\\Menu\");\n }", "public function menuItems(){\n return $this->hasMany('App\\Models\\MasterRecords\\MenuItem');\n }", "public\tfunction menu() {\n\t\treturn\t$this->belongsTo('App\\Menu');\n\t}", "public function menus()\n {\n return $this->hasMany('App\\Models\\Menu');\n }", "public function menu(){\n return $this->belongsTo('App\\Front\\Menu','menu_id','id');\n }", "public function parent()\n {\n return $this->belongsTo('Amerhendy\\Employment\\App\\Models\\Base\\Menu', 'parent_id');\n }", "private function parent()\n {\n return $this->belongsTo(Menu::class);\n }", "public function menu()\n {\n return $this->belongsTo(Menu::class, 'menuID', 'id');\n }", "public function menus()\n {\n // belongsToMany(RelatedModel, foreignKey = menu_id, keyOnRelatedModel = id)\n return $this->belongsToMany(Menu::class);\n }", "private function createMenu() {\n $menu = new Menu;\n $menu->name = $this->page['title'];\n if ($this->page['parent_id']) {\n $parent = ModelsPage::findOrFail($this->page['parent_id']);\n $menu->link = env('APP_URL') . '/' . $parent->slug . '/' . $this->page['slug'];\n } else {\n $menu->link = env('APP_URL') . '/' . $this->page['slug'];\n }\n $menu->parent_id = null;\n $order = Menu::select('order')->where('parent_id', null)->orderBy('order', 'desc')->first();\n $menu->order = (($order) ? $order->order : 0) + 1;\n $menu->target = '_self';\n $menu->status = true;\n $menu->save();\n }", "public function toForeignKey($primaryTable = null, $foreignKey = null, $onDelete = \"CASCADE\", $onUpdate = \"CASCADE\") {\n parent::toForeignKey($primaryTable, $foreignKey, $onDelete, $onUpdate);\n \n if($foreignKey == null) {\n $foreignKey = $this->_currentColumn;\n }\n\n if($primaryTable == null) {\n $otherTableName = explode(\"_\", $foreignKey);\n $otherTableName = $otherTableName[0];\n $primaryTable = $otherTableName;\n }\n\n $class = ucfirst(strtolower($this->_currentTable));\n $secondClass = ucfirst(strtolower($primaryTable));\n\n $this->addClass($class);\n $this->addClass($secondClass);\n \n $column = substr($this->_currentColumn, 0, strlen($this->_currentColumn) - 3);\n\n if($class == $secondClass) {\n \n $belongsToName = \"parent\";\n $hasManyName = \"children\";\n \n \n if($this->_currentColumn == \"instance_id\") {\n $belongsToName = \"instance\";\n $hasManyName = \"revisions\";\n }\n \n \n $belongsTo = array($belongsToName, \"class_name\" => $this->_modelNamespace.$class, \"foreign_key\" => $this->_currentColumn);\n $this->_classes[$class][\"belongs_to\"][] = $belongsTo;\n \n $hasMany = array($hasManyName, \"class_name\" => $this->_modelNamespace.$class, \"foreign_key\" => $this->_currentColumn);\n if($hasManyName == \"revisions\") {\n // if it's a revision relationship sort by revision\n $hasMany[\"order\"] = \"revision desc\";\n } elseif($this->columnExist($this->_currentTable, \"position\")) {\n // if there is a column position sort by this column\n $hasMany[\"order\"] = \"position asc\";\n }\n \n $this->_classes[$class][\"has_many\"][] = $hasMany;\n \n self::makeArrayUnique($this->_classes[$class][\"belongs_to\"]);\n self::makeArrayUnique($this->_classes[$class][\"has_many\"]);\n } else {\n \n $belongsTo = array(substr($foreignKey, 0, -3), \"class_name\" => $this->_modelNamespace.$secondClass, \"foreign_key\" => $this->_currentColumn);\n $this->_classes[$class][\"belongs_to\"][] = $belongsTo;\n \n $primaryColumnName = explode(\"_\", $this->_currentTable);\n array_shift($primaryColumnName);\n $primaryColumnName = join(\"_\", $primaryColumnName);\n \n $hasMany = array($primaryColumnName.\"s\", \"class_name\" => $this->_modelNamespace.$class, \"foreign_key\" => $this->_currentColumn);\n \n if($this->columnExist($this->_currentTable, \"position\")) {\n $hasMany[\"order\"] = \"position asc\";\n }\n \n $this->_classes[$secondClass][\"has_many\"][] = $hasMany;\n \n self::makeArrayUnique($this->_classes[$class][\"belongs_to\"]);\n self::makeArrayUnique($this->_classes[$secondClass][\"has_many\"]);\n }\n\n // fluent interface\n return $this;\n }", "public function initialize()\n {\n $this->hasMany(\"id\", \"Modules\\Models\\Orders\", \"member_id\", array(\n 'alias' => 'orders'\n ));\n }", "public function getTblMenus(ConnectionInterface $con = null)\n {\n if ($this->aTblMenus === null && (($this->prod_category !== \"\" && $this->prod_category !== null))) {\n $this->aTblMenus = ChildTblMenusQuery::create()\n ->filterByTblProdInfo($this) // here\n ->findOne($con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aTblMenus->addTblProdInfos($this);\n */\n }\n\n return $this->aTblMenus;\n }", "public function getMenu()\n {\n return $this->hasOne(\\wdmg\\menu\\models\\Menu::class, ['id' => 'menu_id']);\n }", "public function initialize()\n {\n $this->hasMany(\"members_id\", \"\\Event\\Model\\Events\", \"members_id\", ['alias' => 'Events']);\n }", "public function init()\n {\n $menus = P4Cms_Menu::fetchAll();\n $menuNames = array();\n foreach ($menus as $menu) {\n $menuNames[$menu->getId()] = $menu->getLabel();\n }\n\n // tack on the various dynamic items so they can\n // pick from those as well\n $group = 'Dynamic';\n $menuNames[$group] = array();\n $dynamicTypes = P4Cms_Navigation_DynamicHandler::fetchAll();\n foreach ($dynamicTypes as $dynamicType) {\n $label = $dynamicType->getLabel();\n $value = 'P4Cms_Navigation_DynamicHandler/' . $dynamicType->getId();\n\n $menuNames[$group][$value] = $label;\n }\n natcasesort($menuNames[$group]);\n\n $this->addElement(\n 'select',\n 'menu',\n array(\n 'label' => 'Menu',\n 'value' => P4Cms_Menu::DEFAULT_MENU,\n 'required' => true,\n 'description' => \"Choose a menu to display\",\n 'multiOptions' => $menuNames,\n 'onChange' => \"p4cms.menu.refreshSubForm(this.form);\"\n )\n );\n\n // add option to select the display root\n $this->addElement(\n 'select',\n P4Cms_Menu::MENU_ROOT,\n array(\n 'value' => '',\n 'label' => 'Display Root',\n )\n );\n $this->getElement(P4Cms_Menu::MENU_ROOT)\n ->getDecorator('htmlTag')\n ->setOption('class', 'menu-root');\n $this->_loadRootOptions();\n\n // add option to toggle inclusion of root item, when rooting a menu.\n $this->addElement(\n 'checkbox',\n P4Cms_Menu::MENU_KEEP_ROOT,\n array(\n 'label' => 'Include Root Item',\n 'description' => 'Set the display root (starting point) to display from.<br/>'\n . 'Optionally show the root item in the displayed menu.'\n )\n );\n P4Cms_Form::moveCheckboxLabel($this->getElement(P4Cms_Menu::MENU_KEEP_ROOT));\n $this->getElement(P4Cms_Menu::MENU_KEEP_ROOT)\n ->getDecorator('htmlTag')\n ->setOption('class', 'keep-root');\n $this->getElement(P4Cms_Menu::MENU_KEEP_ROOT)\n ->getDecorator('Description')\n ->setEscape(false);\n\n // add option to limit depth of the displayed menu.\n $options = array('' => 'Unlimited') + range(1, 10);\n $this->addElement(\n 'select',\n P4Cms_Menu::MENU_MAX_DEPTH,\n array(\n 'value' => '',\n 'label' => 'Maximum Depth',\n 'description' => 'Set the maximum depth of items to display.',\n 'multiOptions' => $options\n )\n );\n\n // add option to limit depth of the displayed menu.\n $options = array('' => 'Unlimited')\n + array_combine(range(1, 10), range(1, 10))\n + array_combine(range(15, 50, 5), range(15, 50, 5))\n + array_combine(range(60, 100, 10), range(60, 100, 10));\n $this->addElement(\n 'select',\n P4Cms_Menu::MENU_MAX_ITEMS,\n array(\n 'value' => '',\n 'label' => 'Maximum Items',\n 'description' => 'Set the maximum number of items to display.',\n 'multiOptions' => $options\n )\n );\n }", "public function menu() {\n return $this->belongsTo('App\\Menu');//belongsToは$reservekから$menuに入れることができる便利なやつ\n }", "protected function addRelation()\n {\n $fromTable = $this->ask('Enter the name of the parent table');\n $this->checkInput($fromTable);\n $toTable = $this->ask('Enter the name of the child table');\n $this->checkInput($toTable);\n $relationColumn = $this->ask('Enter the column which is going to be referenced (default is \\'id\\')', 'id');\n $action = $this->choice('Action to be taken for column (default is \\'cascade\\')', ['cascade', 'restrict', 'set null'], 'cascade');\n $this->service->addRelation($fromTable, $toTable, $relationColumn, $action);\n }", "public function menuLinks()\n {\n return $this->hasMany('MenuLink', 'menu_id');\n }", "public function addForeignKeys()\n\t{\n\t\t$table = $this->getTableName();\n\n\t\tforeach ($this->getBelongsToRelations() as $name => $config)\n\t\t{\n\t\t\t$otherModel = new $config[1];\n\t\t\t$otherTable = $otherModel->getTableName();\n\t\t\t$fkName = \"{$table}_{$name}_fk\";\n\n\t\t\tif (isset($config['onDelete']))\n\t\t\t{\n\t\t\t\t$onDelete = $config['onDelete'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (empty($config['required']))\n\t\t\t\t{\n\t\t\t\t\t$onDelete = static::SET_NULL;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$onDelete = null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tblx()->db->createCommand()->addForeignKey($fkName, $table, $config[2], $otherTable, 'id', $onDelete);\n\t\t}\n\t}", "public function __construct()\n {\n $this->table = 'products';\n $this->primary_key = 'id';\n \n $this->has_many['pictures'] = array(\n 'foreign_model' => 'Pictures_model',\n 'foreign_table' => 'pictures',\n 'foreign_key' => 'product_id',\n 'local_key' => 'id'\n );\n \n $this->has_many['options'] = array(\n 'foreign_model' => 'Product_options_model',\n 'foreign_table' => 'product_options',\n 'foreign_key' => 'product_id',\n 'local_key' => 'id'\n );\n\n \n \n parent::__construct();\n }", "private function sons()\n {\n return $this->hasMany(Menu::class, 'id', 'parent_id');\n }", "protected function define(MapperDefinition $map)\n {\n $map->type(ParentEntity::class);\n $map->toTable('parents');\n\n $map->idToPrimaryKey('id');\n\n $map->embedded('one')->withColumnsPrefixedBy('one_')->using(new LevelOneMapper());\n }", "public function getId_Menu()\n{\nreturn $this->Id_Menu;\n}", "public function initialize()\n {\n $this->hasMany('informacion_id', 'Informacionadicional', 'informacion_id', array('alias' => 'Informacionadicional'));\n $this->belongsTo('informacion_adicionalId', 'Adicional', 'adicional_id', array('alias' => 'Adicional'));\n }", "public function add_menus()\n {\n }", "public function setParent(self $parent, string $parentAssociationMapping): void;", "public function __construct()\n\t{\n\t\t$this->has_one['product'] = array('Products_m', 'id', 'product_id');\n\t\t// $this->soft_deletes = TRUE;\n\t\tparent::__construct();\n\t}", "public function buildRelations()\n {\n $this->addRelation('Marca', 'Marca', RelationMap::MANY_TO_ONE, array('idmarca' => 'idmarca', ), 'CASCADE', 'CASCADE');\n $this->addRelation('Proveedor', 'Proveedor', RelationMap::MANY_TO_ONE, array('idproveedor' => 'idproveedor', ), 'CASCADE', 'CASCADE');\n }", "public function initialize()\n {\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('foreignKey' => true,'alias' => 'Produto'));\n }", "public function menus(){\n return $this->belongsToMany('ChecklistSilfa\\Entities\\MainMenu', 'permisos_menu', 'user_id', 'permisos_id')->where('menu.estado','=','1')->orderBy('menu.id');\n }", "public function setRelationChildId($id);", "public function initialize(){\n $this->hasMany(\n \"category_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Products\", \n \"category\",\n array(\n \"reusable\" => true\n )\n );\n \n $this->hasManyToMany(\n \"category_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Products\", \n \"category\", \n \"vendor_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Vendor\", \n \"vendor_id\",\n array(\n \"reusable\" => true,\n \"alias\" => \"AliasVendorPro\"\n )\n );\n }", "public function initialize()\n {\n $this->belongsTo('id_deuda', 'NbDeudas', 'id_deuda', array('alias' => 'NbDeudas'));\n $this->belongsTo('id_deuda', 'Nbdeudas', 'id_deuda', array('foreignKey' => true));\n }", "public function permisoSubMenu()\n {\n return $this->belongsTo('App\\PermisosSubMenu', 'id_permisos_submenu');\n }", "public function initialize()\n {\n $this->hasMany('id', 'Movie', 'classification_id', array('alias' => 'Movie'));\n }", "public function setUpMenuItems()\n {\n $Menu = new DModuleMenu();\n $Menu -> setIcon( '<i class=\"fa fa-money\"></i>' );\n $MenuItem = new DModuleMenuItem( \"show\" , \"Monedas\" );\n $MenuItem -> setIcon( '<i class=\"fa fa-money\"></i>' );\n $Menu -> addItemObject( $MenuItem );\n $this -> setMenu( $Menu );\n }", "protected function addForeignKeys()\n {\n // TargetRecord\n $this->addForeignKey(\n $this->db->getForeignKeyName(InitiativeRecord::tableName(), 'id'),\n InitiativeRecord::tableName(),\n 'id',\n ElementRecord::tableName(),\n 'id',\n 'CASCADE'\n );\n\n // TargetRecord\n $this->addForeignKey(\n $this->db->getForeignKeyName(TargetRecord::tableName(), 'elementId'),\n TargetRecord::tableName(),\n 'elementId',\n InitiativeRecord::tableName(),\n 'id',\n 'CASCADE'\n );\n $this->addForeignKey(\n $this->db->getForeignKeyName(TargetRecord::tableName(), 'userId'),\n TargetRecord::tableName(),\n 'userId',\n UserRecord::tableName(),\n 'id',\n 'CASCADE'\n );\n }", "function __construct($id = false, $table = null, $ds = null)\n\t{\n\t\tif($this->hasLDF) \n\t\t{\n\t\t\tif(!isset($this->LDFName)) $this->LDFName = $this->name . 'LDF'; \n\n\t\t\tif(!isset($this->hasMany)) $this->hasMany = array();\n\t\t\t$this->hasMany[$this->LDFName] = array('className' => $this->LDFName,\n\t\t\t\t\t\t\t\t\t\t\t\t 'foreignKey' => low($this->name) . '_id',\n\t\t\t\t\t\t\t\t\t\t\t\t 'dependent' => true,\n\t\t\t\t\t\t\t\t\t\t\t\t 'exclusive' => true);\n\t\t} elseif($this->isLDF) {\n\t\t\tif(!isset($this->LDFParent)) $this->LDFParent = substr($this->name, 0, -3);\n\t\t\t\n\t\t\tif(!isset($this->belongsTo)) $this->belongsTo = array();\n\t\t\t$this->belongsTo[$this->LDFParent] = array('className' => $this->LDFParent,\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'foreignKey' => low($this->LDFParent) . '_id');\n\t\t}\n\t\t\n\t\tparent::__construct($id, $table, $ds);\n\t}", "public function getMenus()\n {\n return $this->hasMany(Menu::className(), ['id' => 'menu_id'])->viaTable('menu_cook', ['cook_id' => 'id']);\n }", "public function initialize()\n {\n $this->belongsTo('posicao_id', 'Ecommerce\\Admin\\Models\\Posicao', 'id', array('alias' => 'Posicao'));\n }", "function __construct() \n {\n // CODE\n parent::__construct( XMLObject_Menu::ROOT_NODE_MENU );\n \n }", "public function __construct()\n {\n $men= \\App\\Menu::all();\n $this->menus = $men;\n }", "public function setRelations() {}", "public function initialize()\n {\n $this->hasMany('id', 'Message', 'idFil', array('alias' => 'Message'));\n $this->belongsTo('idFil', 'Message', 'id', array('alias' => 'Message'));\n $this->belongsTo('idProjet', 'Projet', 'id', array('alias' => 'Projet'));\n $this->belongsTo('idUser', 'User', 'id', array('alias' => 'User'));\n }", "public function initialize()\n {\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', array('alias' => 'Documentosbeneficios'));\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', NULL);\n }", "public function initialize()\n {\n // attributes\n $this->setName('menuconfig_mcf');\n $this->setPhpName('MenuConfig');\n $this->setIdentifierQuoting(false);\n $this->setClassName('\\\\ChurchCRM\\\\MenuConfig');\n $this->setPackage('ChurchCRM');\n $this->setUseIdGenerator(true);\n // columns\n $this->addPrimaryKey('mid', 'Id', 'INTEGER', true, null, null);\n $this->addColumn('name', 'Name', 'VARCHAR', true, 20, null);\n $this->addColumn('parent', 'Parent', 'VARCHAR', true, 20, null);\n $this->addColumn('ismenu', 'Menu', 'BOOLEAN', true, 1, null);\n $this->addColumn('content_english', 'ContentEnglish', 'VARCHAR', true, 100, null);\n $this->addColumn('content', 'Content', 'VARCHAR', false, 100, null);\n $this->addColumn('uri', 'URI', 'VARCHAR', true, 255, null);\n $this->addColumn('statustext', 'Status', 'VARCHAR', true, 255, null);\n $this->addColumn('security_grp', 'SecurityGroup', 'VARCHAR', true, 50, null);\n $this->addColumn('session_var', 'SessionVar', 'VARCHAR', false, 50, null);\n $this->addColumn('session_var_in_text', 'SessionVarInText', 'BOOLEAN', true, 1, null);\n $this->addColumn('session_var_in_uri', 'SessionVarInURI', 'BOOLEAN', true, 1, null);\n $this->addColumn('url_parm_name', 'URLParmName', 'VARCHAR', false, 50, null);\n $this->addColumn('active', 'Active', 'BOOLEAN', true, 1, null);\n $this->addColumn('sortorder', 'SortOrder', 'TINYINT', true, 3, null);\n $this->addColumn('icon', 'Icon', 'VARCHAR', false, 50, null);\n }", "public function addMenu()\n {\n $wpMenu = [\n [\n 'Bolsista',\n 'Bolsista',\n 'edit_pages',\n 'bolsista',\n $this,\n 'doAction',\n 'dashicons-format-aside',\n 2\n ]\n ];\n $wpSubMenu = [];\n $this->addMenuItem($wpMenu, $wpSubMenu);\n }", "public function initialize()\n {\n $this->hasMany('id', 'Aulas', 'id_materia', array('alias' => 'Aulas'));\n $this->hasMany('id', 'Aulas', 'id_materia', NULL);\n }", "public function menusAsignados(){\n return $this->hasMany('App\\Models\\MenuAsignado');\n }", "public function has_many_and_belongs_to($model, $table = null, $foreign = null, $other = null) {\n\t\treturn new Has_Many_And_Belongs_To($this, $model, $table, $foreign, $other);\n\t}", "public function defineRelations()\n\t{\n\t\treturn array();\n\t}", "function foreignTableSetup(&$conf,&$menuRow,&$markerArray) {\t\n\t\t// to be removed as soon as I find an alternative\n\n\t\tif ($conf['foreignTables']) {\n\t\t\t//MM not implemented\n\t\t\t//Not MM\n\t\t\t// We get foreign key data here (this is a bad way to do it !)?\n\t\t\t// we should get every data from the orignal data array\n\n\t\t\t$FTRels=t3lib_div::trimexplode(',',$conf['foreignTables']);\n\t\t\tforeach($FTRels as $FTRel) {\n\t\t\t\t\n\t\t\t\t$FTable=$conf['TCAN'][$conf['table']]['columns'][$FTRel]['config']['foreign_table'];\n\t\t\t\t//TODO handle muliple relations here (a.b.c);\n\t\t\t\tif ($FTable) {\n\t\t\t\t\tif (!$conf['TCAN'][$conf['table']]['columns'][$FTRel]['config']['MM']) {\n\t\t\t\t\t\t$FTUid=$menuRow[$FTRel];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//$FTUids=$this->metafeeditlib->getMMUids($conf,$conf['table'],$FTRel,$menuRow);\n\t\t\t\t\t}\t\n\n\t\t\t\t\t// what if multiple ???\n\t\t\t\t\t// what if editmenu list ???\n\n\t\t\t\t\tif ($FTUid) {\n\t\t\t\t\t\t$FTorigArr = $GLOBALS['TSFE']->sys_page->getRawRecord($FTable, $FTUid);\n\t\t\t\t\t\tif (is_array($FTorigArr)) {\n\t\t\t\t\t\t\tforeach($FTorigArr as $key =>$val) $menuRow[$FTRel.'.'.$key]=$val;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t $FTCA=$conf['TCAN'][$FTable]['columns'];\n\t\t\t\t\t\t if (!is_array($FTCA)) die( \"PLUGIN META FEEDIT : Rel $FTRel - $FTable has no columns !\");\n\t\t\t\t\t\t foreach($FTCA as $key=>$val) {\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t if (in_array(substr($FTCA,0,11),array('--div--;Tab','--fsb--;FSB','--fse--;FSE'))) continue;\n\t\t\t\t\t\t\t $markerArray['###FIELD_'.$FTRel.'.'.$key.'###']='';\n\t\t\t\t\t\t\t $markerArray['###FIELD_EVAL_'.$FTRel.'.'.$key.'###']='';\n\t\t\t\t\t\t\t $markerArray['###EVAL_ERROR_FIELD_'.$FTRel.'.'.$key.'###']='';\n\t\t\t\t\t\t\t $markerArray['###EVAL_ERROR_FIELD_'.$FTRel.'_'.$key.'###']='';\n\t\t\t\t\t\t\t $markerArray['###CSS_ERROR_FIELD_'.$FTRel.'.'.$key.'###']='';\n\t\t\t\t\t\t\t $markerArray['###CSS_ERROR_FIELD_'.$FTRel.'_'.$key.'###']='';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "public function initialize()\n {\n $this->hasMany(\n 'id',\n AuditDetail::class,\n 'audit_id',\n [\n 'alias' => 'details',\n ]\n );\n }", "public function setTable(Table $parent)\n {\n $this->parentTable = $parent;\n }", "public function actionAdd ()\n\t\t{\n\n\t\t\t$menu = new Menu();\n\t\t\t$this->_tpl = '@menuViews/add';\n\t\t\t$this->setTitle(Yii::tr('Add menu item', [], 'menu'));\n\t\t\t$type = MenuType::findOne(Yii::$app->request->get('type'));\n\t\t\tif ($type == null)\n\t\t\t\treturn;\n\t\t\t$root = null;\n\t\t\t$parentId = Yii::$app->request->get('parentID');\n\t\t\tif (!is_null($parentId))\n\t\t\t{\n\t\t\t\t$root = Menu::findOne([ 'id' => $parentId, 'typeID' => $type->id ]);\n\t\t\t\t$this->setTitle(Yii::tr('Add menu subitem to {title}', [ 'title' => $root->title ], 'menu'));\n\t\t\t}\n\n\t\t\tif (Yii::$app->request->isPost)\n\t\t\t{\n\t\t\t\t$post = Yii::$app->request->post('Menu');\n\n\t\t\t\tif (is_null($root))\n\t\t\t\t{\n\t\t\t\t\t$root = Menu::findOne([ 'title' => $type->guid . '_ROOT', 'typeID' => $type->id ]);\n\t\t\t\t\tif ($root == null)\n\t\t\t\t\t{\n\t\t\t\t\t\t$root = new Menu([ 'title' => $type->guid . '_ROOT', 'typeID' => $type->id ]);\n\t\t\t\t\t\t$root->makeRoot();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$menu->setAttributes([\n\t\t\t\t\t'title' => $post[ 'title' ],\n\t\t\t\t\t'url' => $post[ 'url' ],\n\t\t\t\t\t'path' => $post[ 'path' ],\n\t\t\t\t\t'typeID' => $type->id\n\t\t\t\t]);\n\n\t\t\t\t$menu->appendTo($root);\n\t\t\t\tYii::$app->notification->messageToSession(Yii::tr('Menu item was saved.', [], 'menu'));\n\t\t\t\t$this->redirect(Url::toRoute([ '/menu/index', 'type' => $type->id ]));\n\t\t\t}\n\t\t\t$this->data('model', $menu);\n\t\t}", "public function _construct() {\n $this->_init('supermenu/supermenu', 'supermenu_id');\n }", "public function initialize()\n {\n $this->hasMany('id', 'AppCustomer', 'app_id', NULL);\n $this->hasMany('id', 'AppPrivileges', 'app_id', NULL);\n }", "function assignMenuHierarchy($rootId)\n {\n if ($this->id > $rootId)\n {\n /* Get a list of all child sections of this section. Additional\n field 'hilit' contains 0 as all the records are surely not\n the currently displayed section. */\n $levelN = $this->dbQuery(\n \"SELECT id, mtitle, 0 AS hilit, 0 AS level FROM section \" .\n \"WHERE parent=\" . $this->id . \" \" .\n \"ORDER BY position,mtitle\");\n /* Fetch a parent id of this section */\n $rs = $this->dbQuery(\"SELECT parent FROM section WHERE id=\" . $this->id);\n $parent = $rs[0]['parent'];\n /* Actual level counter. If $levelN contains some data, the parent objects\n are in menu level 1, otherwise we are at the bottom-most level 0. */\n $levelCount = (isset ($levelN)) ? 1 : 0;\n\n /* Get a list of all sections at the same hierarchy level. Additional\n field 'hilit' contains 1 for the record that is currently being\n displayed. */\n $levelC = $this->dbQuery(\n \"SELECT id, mtitle, id=\" . $this->id . \" AS hilit, \" . $levelCount . \" AS level FROM section \" .\n \"WHERE parent=\" . $parent . \" \" .\n \"ORDER BY position,mtitle\");\n /* Incorporate data from $levelN, if there are some child sections. */\n if (isset ($levelN))\n {\n /* $levelC is sorted correctly, we need to insert the elements of\n $levelN after the element of $levelC that has 'hilit' == 1. */\n $menu = array();\n foreach ($levelC as $val)\n {\n $menu[] = $val;\n if ($val['hilit'] == 1)\n {\n $menu = array_merge($menu, $levelN);\n }\n }\n }\n /* Otherwise just assign $menu to be $levelC */\n else\n {\n $menu = $levelC;\n }\n\n $this->dumpVar('menu part 1 (the same level and children)', $menu);\n $this->dumpVar('parent', $parent);\n $this->dumpVar('root id', $rootId);\n\n /* Add parents to this list until the parent is the root of the\n section tree with id 0. Skip the loop if the parent is\n already id 0. */\n $parent2 = $parent;\n while ($parent2 > $rootId)\n {\n /* Increment $levelCount */\n $levelCount++;\n /* Get the next level. */\n $rs = $this->dbQuery(\n \"SELECT id, mtitle, 0 AS hilit, \" . $levelCount . \" AS level, parent FROM section \" .\n \"WHERE id=\" . $parent2);\n /* Get the new parent id */\n $parent = $rs[0]['parent'];\n /* The parent entry may be a toplevel entry (whith parent id\n equal to $rootId). In such a case, let's leave the loop now\n as the toplevel entries shall be added as a complete list\n and this will be accomplished in the next loop. */\n if ($parent == $rootId) break;\n /* Prepend the result to the $menu array */\n $menu = array_merge($rs, $menu);\n /* And update parent */\n $parent2 = $parent;\n }\n\n $this->dumpVar('menu part 2 (without top level entries)', $menu);\n $this->dumpVar('parent', $parent);\n $this->dumpVar('parent2', $parent2);\n $this->dumpVar('root id', $rootId);\n\n /* At this point, $parent should be $rootId. $parent2 contains the id\n of the last lower-level entry or $rootId, if the toplevel list\n has been alrady displayed. */\n if ($parent2 > $rootId)\n {\n /* Fetch the toplevel list. */\n $rs = $this->dbQuery(\n \"SELECT id, mtitle, 0 AS hilit, \" . $levelCount . \" AS level FROM section \" .\n \"WHERE parent=\" . $rootId . \" \" .\n \"ORDER BY position,mtitle\");\n /* Determine the value where the current contents of $menu\n shall be inserted. */\n $count = count($rs);\n for ($i = 0; $i < $count; $i++)\n {\n if ($rs[$i]['id'] == $parent2) break;\n }\n /* Split the $rs into two parts and insert $menu. If there\n is no matching id, ignore the toplevel menu. */\n if ($i < $count)\n {\n $temp1 = array_slice($rs, 0, $i + 1);\n $temp2 = array_slice($rs, $i + 1);\n $menu = array_merge($temp1, $menu, $temp2);\n }\n }\n /* Transform levels by subtracting from $levelCount. */\n foreach ($menu as $key => $val)\n {\n $menu[$key]['colspan'] = $val['level'] + 1;\n $menu[$key]['level'] = $levelCount - $val['level'];\n }\n\n $this->_smarty->assign('menuHierList', $menu);\n $this->_smarty->assign('colspan', $levelCount + 1);\n }\n }", "public function initialize()\n {\n $this->hasMany('groep_id', 'Gebruikers', 'groep_id', array('alias' => 'Gebruikers'));\n $this->hasMany('groep_id', 'Groep_permissies', 'groep_id', array('alias' => 'Groep_permissies'));\n }", "public function beforeSave($options = array())\n {\n parent::beforeSave($options);\n $this->data['Menu']['child'] = $this->data['Menu'][$this->data['Menu']['type']];\n if (isset($this->data['Menu']['parent_id']) && $this->data['Menu']['parent_id']) {\n $this->data['Menu']['order'] = null;\n }\n }", "public function associate($entity)\n {\n // The Mapper will retrieve this association within the object model, we won't be using\n // the foreign key attribute inside the parent Entity.\n //\n //$this->parent->setEntityAttribute($this->foreignKey, $entity->getEntityAttribute($this->otherKey));\n //\n // Instead, we'll just add the object to the Entity's attribute\n\n $this->parent->setEntityAttribute($this->relation, $entity->getEntityObject());\n }", "public function setTableDefinition()\n {\n $this->setTableName('textosLayout');\n $this->hasColumn('id', 'integer', 4, array(\n 'type' => 'integer',\n 'length' => 4,\n 'fixed' => false,\n 'unsigned' => false,\n 'primary' => true,\n 'autoincrement' => true,\n ));\n $this->hasColumn('id_texto', 'integer', 4, array(\n 'type' => 'integer',\n 'length' => 4,\n 'fixed' => false,\n 'unsigned' => false,\n 'primary' => false,\n 'notnull' => true,\n 'autoincrement' => false,\n ));\n $this->hasColumn('id_idioma', 'integer', 4, array(\n 'type' => 'integer',\n 'length' => 4,\n 'fixed' => false,\n 'unsigned' => false,\n 'primary' => false,\n 'notnull' => true,\n 'autoincrement' => false,\n ));\n $this->hasColumn('texto', 'string', 255, array(\n 'type' => 'string',\n 'length' => 255,\n 'fixed' => false,\n 'unsigned' => false,\n 'primary' => false,\n 'notnull' => true,\n 'autoincrement' => false,\n ));\n }", "public function initialize()\n {\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('alias' => 'Datospersonales'));\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('foreignKey' => true));\n }", "public function initialize()\n {\n $this->hasMany('speler_id', 'Team_spelers', 'speler_id', array('alias' => 'Team_spelers'));\n }", "public function initialize()\n {\n $this->belongsTo('cons_order_id', '\\Orders', 'id', array('alias' => 'Orders'));\n $this->belongsTo('order_id', '\\Orders', 'id', array('alias' => 'Orders'));\n }", "protected function createTables()\n\t{\n\t\t$this->db->createTable($this->mainTable, 'name TEXT NOT NULL');\n\t\t$this->db->createTable($this->relationsTable,\n\t\t\t\t\t'child INTEGER NOT NULL, parent INTEGER NOT NULL');\n\t\treturn $this;\n\t}", "public function buildRelations()\n {\n $this->addRelation('Contrarecibo', 'Contrarecibo', RelationMap::MANY_TO_ONE, array('idcontrarecibo' => 'idcontrarecibo', ), 'CASCADE', 'CASCADE');\n }", "public function Child()\n\t{\n\t\treturn $this->hasMany(Category::class);\n\t}", "public function __construct()\n\t{\n\t\t$this->menus = array();\n\t}", "function add() {\n\t\t$this->account();\n\t\tif (!empty($this->data)) {\n\t\t\t$this->Menu->create();\n\t\t\tif ($this->Menu->save($this->data)) {\n\t\t\t\t$this->Session->setFlash(__('Thêm mới danh mục thành công', true));\n\t\t\t\t$this->redirect(array('action' => 'index'));\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(__('Thêm mơi danh mục thất bại. Vui long thử lại', true));\n\t\t\t}\n\t\t}\n\t\t$this->loadModel(\"Menu\");\n $menulist = $this->Menu->generatetreelist(null,null,null,\" _ \");\n $this->set(compact('menulist'));\n\t}", "public function mainCategory(){\n \treturn $this->hasMany(Category::class,'parent_id');\n }", "public function initialize()\n {\n $this->setSchema(\"bd_diagnostico\");\n $this->setSource(\"categoria\");\n $this->hasMany('id_categoria', 'diag\\cc\\Pregunta', 'id_categoria', ['alias' => 'Pregunta']);\n $this->hasMany('id_categoria', 'diag\\cc\\Visita', 'id_categoria', ['alias' => 'Visita']);\n }", "public function buildRelations()\n {\n $this->addRelation('ArtRequest', 'ArtRequestORM\\\\ArtRequest', RelationMap::ONE_TO_MANY, array('event_id' => 'event_id', ), 'CASCADE', 'CASCADE', 'ArtRequests');\n }", "public function createMenu()\n {\n $parent = $this->Menu()->findOneBy(['label' => 'Artikel']);\n\n $this->createMenuItem(\n [\n 'label' => 'Custom sort',\n 'controller' => 'CustomSort',\n 'action' => 'Index',\n 'active' => 0,\n 'class' => 'sprite-blue-document-text-image',\n 'parent' => $parent,\n 'position' => 6,\n ]\n );\n }", "public function initialize()\n {\n $this->setSchema(\"atiempo_prod\");\n $this->hasMany('id', 'AcCartaAvalDetalle', 'id_carta', ['alias' => 'AcCartaAvalDetalle']);\n }", "public function save() {\n foreach($this->getMenuItems() as $item){\n $item->setMenu($this);\n $item->save();\n }\n parent::save();\n }", "public function hasMany($class, $foreignKey = null, $localKey = null);", "public function add($idMenu = null) {\n\t\tif($this->request->is('post')){\n\t\t\t$dataFmenu = $this->request->data;\n\t\t\t$edit = (isset($this->request->data['FShop']['id'] ) && !empty($this->request->data['FShop']['id'] ))?true:false; \n\t\t\t\t$this->FShop->create();\n\t\t\t\tif($this->FShop->save($dataFmenu)){\n\t\t\t\t\t$id = $this->FShop->getLastInsertId();\n\t\t\t\t\t// save table shops_menus\n\t\t\t\t\tif(!empty($dataFmenu['FShop']['listMenu'])){\n\t\t\t\t\t\t\tforeach ($dataFmenu['FShop']['listMenu'] as $key => $value) {\n\t\t\t\t\t\t\t\t$this->ShopsMenus->create();\n\t\t\t\t\t\t\t\t$dataShopMenu['ShopsMenus']['shop_id'] = $id;\n\t\t\t\t\t\t\t\t$dataShopMenu['ShopsMenus']['menu_id'] = $value;\n\t\t\t\t\t\t\t\t$this->ShopsMenus->save($dataShopMenu);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t$msg = ($edit)?SUCCESS_EDIT_MENU:SUCCESS_ADD_MENU;\t\t\t\t\t\n\t\t\t\t\t$this->Session->setFlash($msg,'success');\n\t\t\t\t}else{\n\t\t\t\t\t$msg = ($edit)?ERROR_EDIT_MENU:ERROR_ADD_MENU;\n\t\t\t\t\t$this->Session->setFlash($msg,'error');\n\t\t\t\t}\n\t\t\t\t$this->redirect(array('action'=>'index'));\n\t\t}\n\t\t$listmenus = $this->FMenu->find('all',array(\t\n\t\t\t'fields'=>array('FMenu.id','FMenu.menu_jp_id'),\n\t\t\t\t'conditions'=>array('FMenu.status'=>0),\n\t\t\t\t'contain'=>array('DictJa'=> array('fields'=>array('DictJa.word_0'))),\n\t\t\t\t'limit'=>LIMIT,\n\t\t\t\t'order'=>array('DictJa.created'=>'desc'),\n\t\t\t\n\t\t\t));\n\t\t\tforeach ($listmenus as $key => $value) {\n\t\t\t\t\t$listmenu[$value['FMenu']['id']] = $value['DictJa']['word_0'];\n\t\t\t}\t\n\t\t$this->set(compact('listmenu'));\n\t\t\n\t}", "public function Child() {\n return $this->belongsTo(Child::class);\n }", "public function setSubMenu($subMenu){\n $this->subMenu = $subMenu;\n return $this;\n }", "public function initialize()\n {\n $this->hasMany('cd', 'ShouhinMrs', 'shu_souko_mr_cd', array('alias' => 'ShouhinMrs'));\n $this->hasMany('cd', 'ShiireMeisaiDts', 'souko_mr_cd', array('alias' => 'ShiireMeisaiDts'));\n $this->hasMany('cd', 'UriageMeisaiDts', 'souko_mr_cd', array('alias' => 'UriageMeisaiDts'));\n $this->belongsTo('tantou_mr_cd', 'TantouMrs', 'cd', array('alias' => 'TantouMrs'));\n }", "public function setupAssociations() \n {\n \n }", "protected function get_menu_auto_add($menu_id)\n {\n }", "public function add_menu() {\n\t\tadd_menu_page( 'Custom Table', 'Custom Table', 'manage_options', 'custom-table', [ $this, 'display_page_contents' ] );\n\t}", "public function initialize()\r\n {\r\n $this->belongsTo('encuesta_personalId', 'Personal', 'personal_id', array('alias' => 'Personal'));\r\n $this->belongsTo('encuesta_alojamientoId', 'Alojamiento', 'alojamiento_id', array('alias' => 'Alojamiento'));\r\n $this->belongsTo('encuesta_recepcionId', 'Recepcion', 'recepcion_id', array('alias' => 'Recepcion'));\r\n $this->belongsTo('encuesta_unidadId', 'Unidad', 'unidad_id', array('alias' => 'Unidad'));\r\n $this->belongsTo('encuesta_adicionalId', 'Adicional', 'adicional_id', array('alias' => 'Adicional'));\r\n $this->belongsTo('encuesta_sorteoId', 'Sorteo', 'sorteo_id', array('alias' => 'Sorteo'));\r\n }", "function add_sub_menu($arr)\n\t{\n\t\tif (empty($arr[\"parent\"]))\n\t\t{\n\t\t\t$arr[\"parent\"] = $this->menu_id;\n\t\t}\n\t\t$arr[\"sub_menu_id\"] = $arr[\"name\"];\n\t\t$baseurl = $this->cfg[\"baseurl\"];\n\t\t$rv = '<a class=\"menuItem\" href=\"\" onclick=\"return false;\"\n\t\t\t onmouseover=\"menuItemMouseover(event, \\''.$arr[\"sub_menu_id\"].'\\');\">\n\t\t\t\t<span class=\"menuItemText\">'.$arr[\"text\"].'</span>\n\t\t\t\t<span class=\"menuItemArrow\"><img style=\"border:0px\" src=\"'.$baseurl.\n\t\t\t\t'/automatweb/images/arr.gif\" alt=\"\"></span></a>';\n\n\t\tif (isset($this->menus[$arr[\"parent\"]]))\n\t\t{\n\t\t\t$this->menus[$arr[\"parent\"]] .= $rv;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->menus[$arr[\"parent\"]] = $rv;\n\t\t}\n\t\t\n\t\tif (!isset($this->items[$arr[\"name\"]]))\n\t\t{\n\t\t\t$this->items[$arr[\"name\"]] = array();\n\t\t}\n\t\tif (!isset($this->items[$arr[\"parent\"]]))\n\t\t{\n\t\t\t$this->items[$arr[\"parent\"]] = array();\n\t\t}\n\t\t$arr[\"html\"] = html::href(array(\"caption\" => $arr[\"text\"]));\n\t\t$this->items[$arr[\"parent\"]][] = $arr;\n\t}", "public function link()\n {\n return $this->belongsTo('App\\Models\\MenuLink');\n }", "public function initialize()\n {\n $this->hasMany('cd_desconto', 'App\\Models\\PdvVendasHasItens', 'cd_desconto', array('alias' => 'PdvVendasHasItens'));\n $this->belongsTo('cd_caixa', 'App\\Models\\PdvCaixa', 'cd_caixa', array('alias' => 'PdvCaixa'));\n $this->belongsTo('cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('cd_unidade_negocio', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('cd_usuario_criacao', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }", "public function __construct(DatabaseManager $dbManager, ForeignKeyManager $fkManager)\n {\n parent::__construct();\n $this->dbManager = $dbManager;\n $this->fkManager = $fkManager;\n }", "private function addToMenu($pageId, $key, $em)\n {\n $menu = new Menu();\n $page = $this->getDoctrine()->getRepository('XvolutionsAdminBundle:Page')->find($pageId);\n $menu->setPage($page);\n $menu->setPosition($key);\n\n $em->persist($menu);\n $em->flush();\n }", "function __construct($arrMenu, &$smarty, $idMenuSelected = NULL)\n {\n parent::__construct($arrMenu, $idMenuSelected);\n $this->_smarty = &$smarty;\n }", "public function initialize()\n {\n $this->belongsTo('id_categoria_gastos', 'CategoriaGastos', 'id_categoria_gastos', array('alias' => 'CategoriaGastos'));\n $this->belongsTo('id_presupuesto', 'Presupuesto', 'id_presupuesto', array('alias' => 'Presupuesto'));\n }", "public function initialize()\n {\n $this->setSource('tblEntry');\n\n $this->hasOne('userId', '\\Soul\\Model\\User', 'userId', ['alias' => 'user']);\n $this->belongsTo('eventId', '\\Soul\\Model\\Event', 'eventId', ['alias' => 'event']);\n $this->hasOne('paymentId', '\\Soul\\Model\\Payment', 'paymentId', ['alias' => 'payment']);\n }", "public function construct($id) {\n\t\tif(!isset($id)) {\n\t\t\tprint(__('Menu Editor: no ID given - unable to edit menus'));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$this->mid = $id;\n\t\t\n\t\tif(!$this->isset_module_variable('data')) {\n\t\t\t$ret = DB::Execute('SELECT path FROM utils_custommenu_entry WHERE page_id=\\''.md5($this->mid).'\\'');\n\t\t\t$data = array();\n\t\t\twhile($row = $ret->FetchRow())\n\t\t\t\t$data[] = $row['path'];\n\t\t\t$this->set_module_variable('data',$data);\n\t\t}\n\t}", "public function buildRelations()\n {\n $this->addRelation('SalesHistory', '\\\\SalesHistory', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':OehhNbr',\n 1 => ':OehhNbr',\n ),\n), null, null, null, false);\n $this->addRelation('SalesHistoryDetail', '\\\\SalesHistoryDetail', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':OehhNbr',\n 1 => ':OehhNbr',\n ),\n 1 =>\n array (\n 0 => ':OedhLine',\n 1 => ':OedhLine',\n ),\n), null, null, null, false);\n $this->addRelation('ItemMasterItem', '\\\\ItemMasterItem', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':InitItemNbr',\n 1 => ':InitItemNbr',\n ),\n), null, null, null, false);\n }" ]
[ "0.5783814", "0.5783814", "0.57027423", "0.5670512", "0.5636242", "0.55329037", "0.5529758", "0.5467495", "0.54092646", "0.534998", "0.5348717", "0.5308784", "0.52461445", "0.5150251", "0.5146164", "0.5130045", "0.5123683", "0.5091496", "0.5087677", "0.50760776", "0.507139", "0.5045687", "0.5041219", "0.5028855", "0.50254816", "0.50218976", "0.50180066", "0.5011175", "0.5011004", "0.4998309", "0.49755034", "0.49328622", "0.4930023", "0.49168915", "0.4915254", "0.4914704", "0.49018112", "0.49017805", "0.48999", "0.4889469", "0.48867118", "0.4861058", "0.48400858", "0.48127747", "0.48038527", "0.47990522", "0.479139", "0.4783619", "0.47703677", "0.47688735", "0.4766817", "0.4763407", "0.47612384", "0.47601688", "0.4751749", "0.47506016", "0.47441584", "0.47436088", "0.4743085", "0.47348344", "0.47299364", "0.4724107", "0.47042978", "0.46958885", "0.46944094", "0.46878266", "0.4684355", "0.46797004", "0.46779123", "0.46770203", "0.46727923", "0.46726215", "0.46696925", "0.4669342", "0.46673477", "0.4663382", "0.46616268", "0.46539932", "0.46498016", "0.4642421", "0.4637833", "0.46375236", "0.46337593", "0.46232805", "0.4605179", "0.4604196", "0.46038347", "0.46030658", "0.45952284", "0.45939523", "0.4582676", "0.45824483", "0.45820758", "0.4578755", "0.45764524", "0.45685357", "0.45675886", "0.45629737", "0.4561355", "0.45587516" ]
0.6340689
0
Get the associated ChildTblMenus object
public function getTblMenus(ConnectionInterface $con = null) { if ($this->aTblMenus === null && (($this->prod_category !== "" && $this->prod_category !== null))) { $this->aTblMenus = ChildTblMenusQuery::create() ->filterByTblProdInfo($this) // here ->findOne($con); /* The following can be used additionally to guarantee the related object contains a reference to this object. This level of coupling may, however, be undesirable since it could result in an only partially populated collection in the referenced object. $this->aTblMenus->addTblProdInfos($this); */ } return $this->aTblMenus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSubmenu()\n {\n return $this->hasOne(Menu::className(), ['id'=>'menu_id']);\n }", "public function getMenu()\n {\n return $this->hasOne(\\wdmg\\menu\\models\\Menu::class, ['id' => 'menu_id']);\n }", "private function parent()\n {\n return $this->belongsTo(Menu::class);\n }", "static function getParentMenu($openSession){\n// \t\t$openSession = null;\n\t\t$consulta = 'select * from menline_parent order by order_line';\n\t\ttry {\n// \t\t\t$openSession = managedConnection::openConnection();\n\t\t\t\t$dao = $openSession->query($consulta);\n\t\t\t\t//Retornamos la lista de Objetos\n// \t\t\tmanagedConnection::closeConnection($openSession);\n\t\t\treturn ($dao);\n\t\t} catch (PDOException $exception) {\n\t\t\techo $exception->getMessage();\n\t\t}\n\t}", "public function getMenu(){\n\n\t\treturn $this->get();\n\t}", "public function parentmenus() {\n $this->db->where('menuparentid', \" \"); \n $this->db->order_by('serialid', \"asc\");\n $query = $this->db->get('menu');\n return $query->result();\n }", "function get_cmenu($parent_id)\n{\n $ci = & get_instance();\n $menu_c = $ci->db->select('*')\n ->where('parent_id', $parent_id)\n ->order_by('show_order', 'asc')\n ->get('menu')->result();\n return $menu_c;\n}", "public function getMenu()\n {\n $this->db->order_by('id_menu', 'DESC');\n return $this->db->get('tabel_menu')->result();\n }", "public\tfunction menu() {\n\t\treturn\t$this->belongsTo('App\\Menu');\n\t}", "public static function menu(){\n $sql = \"select * from pageweb where id_parent = 1 AND menu = 1 ORDER BY ordre\";\n $parents = DB::get_sql_tab($sql);\n for($i=0;$i<count($parents);$i++) {\n $sql2 = \"select * from pageweb where id_parent = '\".$parents[$i][\"id\"].\"'AND menu = 1\";\n $enfants = DB::get_sql_tab($sql2);\n $parents[$i][\"enfants\"] = $enfants;\n }\n return $parents;\n }", "public function parent()\n {\n return $this->belongsTo('Amerhendy\\Employment\\App\\Models\\Base\\Menu', 'parent_id');\n }", "function getMenus($parent_menu=false,$parent_id=null){\r\n\t\t$this->db->select(TBL_MASTER_MENUS.'.*');\r\n\t\tif($parent_menu==true){\r\n\t\t\t$this->db->where(array('menu_parent_id'=>0));\r\n\t\t}\r\n\t\tif($parent_id!=null && $parent_id!=''){\r\n\t\t\t$this->db->where(array('menu_parent_id'=>$parent_id));\r\n\t\t}\r\n\t\t$this->db->where(array('is_active'=>1));\r\n\t\t\t\r\n\t\t$this->db->from(TBL_MASTER_MENUS);\r\n\t\t$recordSets = $this->db->get();\r\n\t\t$data = $recordSets->result();\r\n\t\treturn $data;\r\n\t}", "public function getmenu( ) {\n \t$parent = $this->find('all', array(\n 'conditions' => array(\n 'Page.parent_id IS NULL',\n 'Page.is_menu' => 1,\n 'Page.is_active' => 1\n ),\n 'contain'=>array(\n ),\n 'fields'=>array('Page.lft', 'Page.rght'),\n 'order'=>array('Page.lft' => 'ASC')\n ));\n\t\t\n\t\t$recs = array(); \n foreach($parent as $v){\n \t$info = $this->find('threaded', array(\n\t 'conditions' => array(\n\t 'Page.lft >=' => $v['Page']['lft'], \n\t 'Page.rght <=' => $v['Page']['rght'],\n\t 'Page.is_menu' => 1,\n\t 'Page.is_active' => 1\n\t ),\n\t 'contain'=>array()\n\t ));\n\t \n\t $recs = array_merge($recs, $info);\n\t }\n\t\t\n\t\treturn $recs;\n }", "public function getParentMenu(){\n return $this->parentMenu;\n }", "public function getMenus() {}", "abstract protected function getMenuTree();", "public function getSubmenu()\n {\n $this->db->join('tabel_menu', 'tabel_menu.id_menu = tabel_submenu.id_menu');\n $this->db->order_by('id_submenu', 'DESC');\n return $this->db->get('tabel_submenu')->result();\n }", "public function menu()\n {\n return $this->belongsTo(Menu::class, 'menuID', 'id');\n }", "public function menus()\n {\n // belongsToMany(RelatedModel, foreignKey = menu_id, keyOnRelatedModel = id)\n return $this->belongsToMany(Menu::class);\n }", "public function getMenus()\n {\n return $this->hasMany(Menu::className(), ['id' => 'menu_id'])->viaTable('menu_cook', ['cook_id' => 'id']);\n }", "public function menus()\n {\n return $this->hasMany('App\\Models\\Menu');\n }", "public function Menus(){\n return $this->belongsToMany(Menu::class);\n }", "private function sons()\n {\n return $this->hasMany(Menu::class, 'id', 'parent_id');\n }", "public function menu()\n {\n return $this->hasMany(\"App\\Menu\");\n }", "public function getMenu($parent = 0 ,$id = 0, $admin_type = 0) {\n//echo ' $parent='.$parent.' $id='.$id.' $admin_type='.$admin_type; Die();\n\t\t$lang = $this->_ci->lang->language['lang'];\n\t\t$status = 1;\n\t\t$row = array();\n\t\t\n \tif ($admin_type > 1) {\n/*\n \t\t//Getting an individual user\n \t\t//$query = $this->_ci->db->get_where(\"_admin_menu\", array(\"admin_menu_id\" => $id, \"parent\" => $parent, \"status\" => $status, \"lang\" => $lang));\n \t\t\n \t\t$sql = 'SELECT\n\t\t\tsd_admin_menu.admin_menu_id,\t sd_admin_menu.admin_menu_id2,\n\t\t\tsd_admin_menu.title, sd_admin_menu.url,\tsd_admin_menu.parent,\tsd_admin_menu.order_by,\n\t\t\tsd_admin_menu.status,\tsd_admin_menu.lang,\tsd_admin_access_menu.admin_access_id,\n\t\t\tsd_admin_access_menu.admin_type_id\n\t\t\tFROM sd_admin_menu Inner Join sd_admin_access_menu ON (sd_admin_access_menu.admin_menu_id = sd_admin_menu.admin_menu_id2 AND sd_admin_menu.status = 1)\n\t\t\tWHERE admin_type_id='.$admin_type;\n \t\t\n \t\t$query = $this->_ci->db->query($sql);\n\t\t\t//Debug($this->_ci->db->last_query());\n\t\t\t\n \t\t//Check if any results were returned\n \t\tif ($query->num_rows() > 0) {\n \t\t\t//Pass the data to our local function to create an object for us and return this new object\n \t\t\tforeach ($query->result() as $data) {\n \t\t\t\tif($lang == $data->lang) $row[] = $data;\n \t\t\t}\n \t\t\t\n \t\t\t//Debug($query->row());\n \t\t\t//Debug($row);\n \t\t\t//die();\n \t\t\treturn $row;\n \t\t\t//return $this->createObjectFromData($query->row());\n \t\t}\n \t\treturn false;\n*/\n\n/////////////////////////////////////////////////\n \n \t\t//Getting all the users\n\t\t$orderby = \"order_by\";\n \t\t$query = $this->_ci->db->select(\"*\")->from(\"_admin_menu\")->where('admin_menu_id2<>','27')->where(array(\"parent\" => $parent, \"status\" => $status, \"lang\" => $lang))->order_by($orderby, 'ASC')->get();\n\t\t\t //echo $this->_ci->db->last_query();\n\n \t\t//Check if any results were returned\n \t\tif ($query->num_rows() > 0) {\n \t\t\t//Create an array to store users\n \t\t\t$users = array();\n \t\t\t//Loop through each row returned from the query\n \t\t\t\n \t\t\tforeach ($query->result() as $row) {\n \t\t\t\t//Pass the row data to our local function which creates a new user object with the data provided and add it to the users array\n \t\t\t\t$users[] = $this->createObjectFromData($row);\n \t\t\t}\n \t\t\t\n \t\t\t/*foreach ($query->result() as $data) {\n \t\t\t\tif($lang == $data->lang) $row[] = $data;\n \t\t\t}*/\n \t\t\t \t\t\t\n \t\t\t//Return the users array\n \t\t\t//Debug($users);\n \t\t\t//die();\n \t\t\treturn $users;\n \t\t}\n \t\treturn false;\n/////////////////////////////////////////////////\n \t}else{\n \t\t\n \t\t//Getting all the users\n\t\t\t$orderby = \"order_by\";\n \t\t$query = $this->_ci->db->select(\"*\")->from(\"_admin_menu\")->where(array(\"parent\" => $parent, \"status\" => $status, \"lang\" => $lang))->order_by($orderby, 'ASC')->get();\n\t\t\t//echo $this->_ci->db->last_query();\n\n \t\t//Check if any results were returned\n \t\tif ($query->num_rows() > 0) {\n \t\t\t//Create an array to store users\n \t\t\t$users = array();\n \t\t\t//Loop through each row returned from the query\n \t\t\t\n \t\t\tforeach ($query->result() as $row) {\n \t\t\t\t//Pass the row data to our local function which creates a new user object with the data provided and add it to the users array\n \t\t\t\t$users[] = $this->createObjectFromData($row);\n \t\t\t}\n \t\t\t\n \t\t\t/*foreach ($query->result() as $data) {\n \t\t\t\tif($lang == $data->lang) $row[] = $data;\n \t\t\t}*/\n \t\t\t \t\t\t\n \t\t\t//Return the users array\n \t\t\t//Debug($users);\n \t\t\t//die();\n \t\t\treturn $users;\n \t\t}\n \t\treturn false;\n \t}\n }", "public static function getSiteMenu() {\n $menu = Yii::$app->cacheManage->site_menu;\n if (!$menu) {\n $context = new ViewHelper();\n $config = [\n 'model' => 'app\\models\\action\\Nav',\n 'parentKey' => 'parentid',\n 'primaryKey' => 'id',\n 'rootParent' => 0,\n 'orderBy' => 'listorder desc',\n ];\n $obj = new Tree($config);\n $tree = $obj->getTree(true);\n $menu = $context->getMenuChild($tree);\n Yii::$app->cacheManage->site_menu = $menu;\n }\n return $menu;\n }", "public function getMenu(){\n $bigCategory = $this->getBigCategory();\n $medCategory = $this->getMediumCategory();\n foreach($bigCategory as $bigKey => $value){\n foreach($medCategory as $medKey => $val){\n if($val['parentId'] == $value['id']){\n $bigCategory[$bigKey]['subCategory'][] = $val;\n }\n }\n }\n return $bigCategory;\n }", "public function get_list() {\n\t\t$this->db->select('mnu.*, icon.nama AS nama_icon, mnu_parent.nama AS nama_parent');\n\t\t$this->db->from('menu AS mnu');\n\t\t$this->db->join('icon AS icon', 'icon.id = mnu.id_icon', 'LEFT');\n\t\t$this->db->join('menu AS mnu_parent', 'mnu_parent.id = mnu.parent_id', 'LEFT');\n\n\t\treturn parent::get_list();\n\t}", "public function menus(){\n return $this->belongsToMany('ChecklistSilfa\\Entities\\MainMenu', 'permisos_menu', 'user_id', 'permisos_id')->where('menu.estado','=','1')->orderBy('menu.id');\n }", "public static function getBottomMenu(){\n return ObjectDB::getAllOnField(self::$table, __CLASS__, \"type\", false,\"id\");\n\n }", "public function menu(){\n return $this->belongsTo('App\\Front\\Menu','menu_id','id');\n }", "public function getChildren()\n {\n return $this\n ->hasMany(MenuItem::class, ['menuId' => 'id'])\n ->andWhere(['is', 'parentId', null])\n ->orderBy(['order' => SORT_ASC]);\n }", "function GetParentsSubMenu($MenuId) {\n global $db;\n\t$SqlStmt = $db->prepare(\"SELECT * FROM p149pm_menu_options WHERE menu_parent_id=:MenuId ORDER BY menu_order\");\n $SqlStmt->bindValue(':MenuId',$MenuId, PDO::PARAM_INT);\n\ttry{ $SqlStmt->execute(); } catch (PDOException $e) { die(); }\n\twhile($row = $SqlStmt->fetch(PDO::FETCH_ASSOC)) { $smartRs[] = $row; }\n\tif ($SqlStmt->rowCount() > 0) {return $smartRs; }\n}", "static public function getMenu() {\n $query = mysql_query(\"SELECT `menu` FROM `info` WHERE `id` = '0'\");\n return mysql_result($query, 0, 'menu');\n }", "public function menuItems(){\n return $this->hasMany('App\\Models\\MasterRecords\\MenuItem');\n }", "public function getMenus(){\n\n }", "public function getId_Menu()\n{\nreturn $this->Id_Menu;\n}", "public function all_parent()\r\n\t{\r\n\t\t$query = $this->db->select('*')->get('menu')->result_array(); \r\n\t \treturn $query;\r\n\t}", "public function getMenus()\n\t{\n\n\t}", "public function getAllMenus()\n {\n $menus = $this->find('all', array(\n 'conditions' => array(\n 'Menu.active' => true,\n ),\n 'order' => array(\n 'Menu.order' => 'asc',\n ),\n 'joins' => array(\n array(\n 'table' => 'product_categories',\n 'alias' => 'ProductCategory',\n 'type' => 'left',\n 'conditions' => array(\n 'Menu.type = \"ProductCategory\"',\n 'Menu.child = ProductCategory.id'\n )\n ),\n array(\n 'table' => 'blog_categories',\n 'alias' => 'BlogCategory',\n 'type' => 'left',\n 'conditions' => array(\n 'Menu.type = \"BlogCategory\"',\n 'Menu.child = BlogCategory.id'\n )\n ),\n array(\n 'table' => 'pages',\n 'alias' => 'Page',\n 'type' => 'left',\n 'conditions' => array(\n 'Menu.type = \"Page\"',\n 'Menu.child = Page.id'\n )\n )\n ),\n 'fields' => array(\n 'Menu.id',\n 'Menu.introduction',\n 'Menu.name',\n 'Menu.image',\n 'Menu.type',\n 'Menu.parent_id',\n 'Menu.child',\n 'ProductCategory.slug',\n 'Page.slug',\n 'BlogCategory.slug'\n )\n ));\n\n return $menus;\n }", "public function getSubMenu(){\n return $this->subMenu;\n }", "public function model()\n {\n return Menu::class;\n }", "private function MenusData($id_parent=0) {\n $i=0;\n $id_group = id_auth_group();\n if (!$id_group) {\n return;\n }\n $this->CI =& get_instance();\n $this->CI->load->database();\n $data = $this->CI->db\n ->join('auth_menu','auth_menu.id_auth_menu=auth_menu_group.id_auth_menu','left')\n ->where('auth_menu_group.id_auth_group',$id_group)\n ->where('auth_menu.parent_auth_menu',$id_parent)\n ->order_by('auth_menu.position','asc')\n ->order_by('auth_menu.id_auth_menu','asc')\n ->get('auth_menu_group')\n ->result_array();\n foreach ($data as $row => $val) {\n $data[$row]['children'] = $this->MenusData($val['id_auth_menu']);\n $i++;\n }\n return $data;\n }", "public function getMenus()\n {\n $menus = Menu::all();\n\n return Datatables::of($menus)\n ->addColumn('actions', function ($menu) {\n $editBtn = '<a style=\"margin-right: 0.2em;\" href=\"' . url('admin/menus/' . $menu->id . '/edit/') . '\" title=\"Edit\"><i class=\"fa fa-2 fa-pencil\"></i></a>';\n $deleteBtn = '&nbsp;<a href=\"' . url('admin/menus/' . $menu->id) . '\" class=\"message_box text-danger\" data-box=\"#message-box-delete\" data-action=\"DELETE\" title=\"Permanent Delete\"><i class=\"fa fa-2 fa-remove\"></i></i></a>';\n return $editBtn . $deleteBtn;\n })->make(true);\n }", "public function getParentMenuArr() {}", "public function getMenu2($parent = 0 ,$id = 0, $admin_type = 0) {\n echo'parent='.$parent;;echo'id='.$id;echo'admin_type='.$admin_type;\n\t Die();\n\t\t$lang = $this->_ci->lang->language['lang'];\n\t\t$status = 1;\n\t\t$row = array();\n\t\t\n \tif ($admin_type > 1) {\n\n \t\t//Getting an individual user\n \t\t//$query = $this->_ci->db->get_where(\"_admin_menu\", array(\"admin_menu_id\" => $id, \"parent\" => $parent, \"status\" => $status, \"lang\" => $lang));\n \t\t\n \t\t$sql = 'SELECT\n\t\t\tsd_admin_menu.admin_menu_id,\t sd_admin_menu.admin_menu_id2,\n\t\t\tsd_admin_menu.title, sd_admin_menu.url,\tsd_admin_menu.parent,\tsd_admin_menu.order_by,\n\t\t\tsd_admin_menu.status,\tsd_admin_menu.lang,\tsd_admin_access_menu.admin_access_id,\n\t\t\tsd_admin_access_menu.admin_type_id\n\t\t\tFROM sd_admin_menu Inner Join sd_admin_access_menu ON (sd_admin_access_menu.admin_menu_id = sd_admin_menu.admin_menu_id2 AND sd_admin_menu.status = 1)\n\t\t\tWHERE admin_type_id='.$admin_type;\n \t\t\n \t\t$query = $this->_ci->db->query($sql);\n\t\t\t//Debug($this->_ci->db->last_query());\n\t\t\t\n \t\t//Check if any results were returned\n \t\tif ($query->num_rows() > 0) {\n \t\t\t//Pass the data to our local function to create an object for us and return this new object\n \t\t\tforeach ($query->result() as $data) {\n \t\t\t\tif($lang == $data->lang) $row[] = $data;\n \t\t\t}\n \t\t\t\n \t\t\t//Debug($query->row());\n \t\t\t//Debug($row);\n \t\t\t//die();\n \t\t\treturn $row;\n \t\t\t//return $this->createObjectFromData($query->row());\n \t\t}\n \t\treturn false;\n \t} else {\n \t\t\n \t\t//Getting all the users\n\t\t\t$orderby = \"order_by\";\n \t\t$query = $this->_ci->db->select(\"*\")->from(\"_admin_menu\")->where(array(\"parent\" => $parent, \"status\" => $status, \"lang\" => $lang))->order_by($orderby, 'ASC')->get();\n\t\t\t//echo $this->_ci->db->last_query();\n\n \t\t//Check if any results were returned\n \t\tif ($query->num_rows() > 0) {\n \t\t\t//Create an array to store users\n \t\t\t$users = array();\n \t\t\t//Loop through each row returned from the query\n \t\t\t\n \t\t\tforeach ($query->result() as $row) {\n \t\t\t\t//Pass the row data to our local function which creates a new user object with the data provided and add it to the users array\n \t\t\t\t$users[] = $this->createObjectFromData($row);\n \t\t\t}\n \t\t\t\n \t\t\t/*foreach ($query->result() as $data) {\n \t\t\t\tif($lang == $data->lang) $row[] = $data;\n \t\t\t}*/\n \t\t\t \t\t\t\n \t\t\t//Return the users array\n \t\t\t//Debug($users);\n \t\t\t//die();\n \t\t\treturn $users;\n \t\t}\n \t\treturn false;\n \t}\n }", "public function getMenuParents()\n {\n return $this->db->select('*')->from('admin_menu')->where('parent',0)->get()->result_array();\n }", "public function getModel()\n {\n return new Menu();\n }", "public function get(){\n\t\t\t\n\t\t\t$query=\"SELECT menuItem FROM menuModel\";\n\t\t\t$results=$this->db()->query($query);\n\t\t\t\n\t\t\t// echo\"<pre>\";\n\t\t\t// var_dump($results);\n\t\t\t\n\t\t\tforeach($results as $res){\n\t\t\t\t$menu_array[]=$res;\n\t\t\t}\n\t\t\t\n\t\t\treturn $menu_array;\n\t\t\t\n\t\t}", "public function getMenus()\n\t{\n\t\treturn $this->menus;\n\t}", "public function getParentMenuItem() {}", "function GetMenu()\n {\n $sql = \"SELECT\n title,\n slug,\n id\n FROM\n pages\";\n $this->setSql($sql);\n return $this->getAll();\n }", "public function getMenu();", "public function getMenus()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('menus');\n\t\t$this->db->order_by('order', 'ASC');\n\t\t//$this->db->where('post_type', 'menu');\n\t\t$query = $this->db->get();\n\n\t\treturn $query->result();\n\t}", "public function getSubMenu()\n {\n $query = \" SELECT `user_sub_menu`.*, `user_menu`.`menu` \n FROM `user_sub_menu` JOIN `user_menu`\n ON `user_sub_menu`.`menu_id` = `user_menu`.`id`\n \";\n\n return $this->db->query($query)->result_array();\n }", "private function getChild($parent_id,$menu_location){\r\n\t\t$html=\"\";\r\n\t\tif($parent_id!=0){\r\n\t\t\t$menus = DB::table('menu')->where(\"parent_id\",\"=\",$parent_id)->where('type',\"=\",$menu_location)->orderBy('position','asc')->get();\r\n\t\t}else{\r\n\t\t\t$menus = DB::table('menu')->where(\"parent_id\",\"=\",\"0\")->where('type',\"=\",$menu_location)->orderBy('position','asc')->get();\r\n\t\t}\r\n\t\tforeach($menus as $menu){ \r\n\t\t\t$id=$menu->id;\r\n\t\t\t$html.='<li data-id=\"'.$id.'\" id=\"set_'.$id.'\" class=\"ui-state-default list_dynamic_menus mjs-nestedSortable-leaf\" data-slug=\"'.$menu->slug.'\" data-type=\"'.$menu->link_type.'\" data-page-id=\"'.$menu->page_id.'\" data-title=\"'.$menu->title.'\" ><span class=\"ui-icon ui-icon-arrowthick-2-n-s\" ></span><div class=\"dynamic_menus\">'.$menu->title.'<a href=\"javascript:void(0)\" class=\"deleteme pull-right\"><i class=\"fa fa-times text-danger \"></i></a></div>';\r\n\t\t\tif($menu->is_parent==1) { \r\n\t\t\t\t$html.=\"<ol>\";\r\n\t\t\t\t$html.=$this->getChild($menu->id,$menu_location);\r\n\t\t\t\t$html.=\"</ol>\";\r\n\t\t\t} \r\n\t\t\t$html.='</li>';\r\n\t\t}\t\t\r\n\t\treturn $html;\r\n\t}", "public function getMenu()\n {\n $sql = \"select a.*, ifnull(count(b.id_sub),0) as havesub from mainmenu a left outer join submenu b on a.id_main = b.id_main GROUP BY a.id_main ORDER BY a.urutan asc\";\n $hasil = $this->db->query($sql)->result();\n $menu = array();\n $no = 1;\n $total = count($hasil);\n foreach($hasil as $item){\n $row = array();\n $row['id_main'] = $item->id_main;\n $row['text'] = $item->nama_menu;\n $row['link'] = $item->link;\n $row['aktif'] = $item->aktif;\n $row['urutan'] = $item->urutan;\n $row['isChild'] = 0;\n $row['position'] = $no == 1 ? \"first\" : ($no == $total ? \"last\" : \"\");\n if($item->havesub > 0){\n $row['children'] = $this->getSubMenu($item->id_main);\n }\n $menu[] = $row;\n $no++;\n }\n return $menu;\n }", "public function getParentItemfromDatabase()\n {\n $dataTableName = Data::mapDataType($this->parentType);\n\n\n $dataTable = new $dataTableName();\n\n $parentItem = $this->parentItem = $dataTable->find($this->parentId)->current();\n return $parentItem;\n }", "public function getSubMenu()\n {\n $query = \" SELECT user_sub_menu.*, user_menu.menu FROM user_sub_menu JOIN user_menu ON user_sub_menu.menu_id = user_menu.id\";\n\n return $this->db->query($query)->result_array();\n }", "public function menu() {\n return $this->belongsTo('App\\Menu');//belongsToは$reservekから$menuに入れることができる便利なやつ\n }", "public function getAdminMenu( ) {\n \t$parent = $this->find('all', array(\n 'conditions' => array(\n 'Page.parent_id IS NULL',\n ),\n 'contain'=>array(\n ),\n 'fields'=>array('Page.lft', 'Page.rght'),\n 'order'=>array('Page.lft' => 'ASC')\n ));\n\t\t\n\t\t$recs = array(); \n foreach($parent as $v){\n \t$info = $this->find('threaded', array(\n\t 'conditions' => array(\n\t 'Page.lft >=' => $v['Page']['lft'], \n\t 'Page.rght <=' => $v['Page']['rght'],\n\t ),\n\t 'contain'=>array()\n\t ));\n\t \n\t $recs = array_merge($recs, $info);\n\t }\n\t\t\n\t\treturn $recs;\n }", "function get_menu_tree($parent_id) \n\t\t{\n\t\t\tinclude_once('connection.php');\n \t$obj=new connection();\n \t$obj->connect();\n\t\t\t$menu='';\n\t\t\t$obj->sql=\"SELECT * FROM register where referral_code='\".$parent_id.\"'\";\n\t\t\t$obj->select($obj->sql);\n\t\t\t//$no1=mysqli_num_rows($obj->res);\n\t\t\twhile($rows1=mysqli_fetch_array($obj->res))\n\t\t\t{\n\t\t\t\t//$rows1=mysqli_fetch_array($obj->res);\n\t\t\t\t$menu.=\"<li>\". $rows1['name'];\n\t\t\t\t$menu.=\"<ul>\".get_menu_tree($rows1['rid']).\"</ul>\";\n\t\t\t\t$menu.=\"</li>\";\n\t\t\t}\n\t\t\treturn $menu;\n\t\t}", "public function getMenu1($parent = 0 ,$id = 0, $admin_type = 0) {\n echo'parent='.$parent;;echo'id='.$id;echo'admin_type='.$admin_type;\n\t Die();\n\t\t$lang = $this->_ci->lang->language['lang'];\n\t\t$status = 1;\n\t\t$row = array();\n\t\t\n \tif ($admin_type > 1) {\n\n \t\t//Getting an individual user\n \t\t//$query = $this->_ci->db->get_where(\"_admin_menu\", array(\"admin_menu_id\" => $id, \"parent\" => $parent, \"status\" => $status, \"lang\" => $lang));\n \t\t\n \t\t$sql = 'SELECT\n\t\t\tsd_admin_menu.admin_menu_id,\t sd_admin_menu.admin_menu_id2,\n\t\t\tsd_admin_menu.title, sd_admin_menu.url,\tsd_admin_menu.parent,\tsd_admin_menu.order_by,\n\t\t\tsd_admin_menu.status,\tsd_admin_menu.lang,\tsd_admin_access_menu.admin_access_id,\n\t\t\tsd_admin_access_menu.admin_type_id\n\t\t\tFROM sd_admin_menu Inner Join sd_admin_access_menu ON (sd_admin_access_menu.admin_menu_id = sd_admin_menu.admin_menu_id2 AND sd_admin_menu.status = 1)\n\t\t\tWHERE admin_type_id='.$admin_type;\n \t\t\n \t\t$query = $this->_ci->db->query($sql);\n\t\t\t//Debug($this->_ci->db->last_query());\n\t\t\t\n \t\t//Check if any results were returned\n \t\tif ($query->num_rows() > 0) {\n \t\t\t//Pass the data to our local function to create an object for us and return this new object\n \t\t\tforeach ($query->result() as $data) {\n \t\t\t\tif($lang == $data->lang) $row[] = $data;\n \t\t\t}\n \t\t\t\n \t\t\t//Debug($query->row());\n \t\t\t//Debug($row);\n \t\t\t//die();\n \t\t\treturn $row;\n \t\t\t//return $this->createObjectFromData($query->row());\n \t\t}\n \t\treturn false;\n \t} else {\n \t\t\n \t\t//Getting all the users\n\t\t\t$orderby = \"order_by\";\n \t\t$query = $this->_ci->db->select(\"*\")->from(\"_admin_menu\")->where(array(\"parent\" => $parent, \"status\" => $status, \"lang\" => $lang))->order_by($orderby, 'ASC')->get();\n\t\t\t//echo $this->_ci->db->last_query();\n\n \t\t//Check if any results were returned\n \t\tif ($query->num_rows() > 0) {\n \t\t\t//Create an array to store users\n \t\t\t$users = array();\n \t\t\t//Loop through each row returned from the query\n \t\t\t\n \t\t\tforeach ($query->result() as $row) {\n \t\t\t\t//Pass the row data to our local function which creates a new user object with the data provided and add it to the users array\n \t\t\t\t$users[] = $this->createObjectFromData($row);\n \t\t\t}\n \t\t\t\n \t\t\t/*foreach ($query->result() as $data) {\n \t\t\t\tif($lang == $data->lang) $row[] = $data;\n \t\t\t}*/\n \t\t\t \t\t\t\n \t\t\t//Return the users array\n \t\t\t//Debug($users);\n \t\t\t//die();\n \t\t\treturn $users;\n \t\t}\n \t\treturn false;\n \t}\n }", "public function getMenusListAttribute()\n {\n return Menu::orderBy('name')->get();\n }", "public function getMenu()\n {\n if (!$this->hasMenu()) {\n $this->setMenu(false);\n\n $menu = $this->menuFactory->create()->load($this->_getData('nav_menu'));\n\n if ($menu->getId()) {\n $this->setMenu($menu);\n }\n }\n\n return $this->_getData('menu');\n }", "public function permisoSubMenu()\n {\n return $this->belongsTo('App\\PermisosSubMenu', 'id_permisos_submenu');\n }", "public function byId($menuId)\n {\n return Menu::with('permission')->find($menuId);\n }", "public function getMenu()\n\t{\n\t\t$user = $this->user;\n\n\t\t$session = Yii::$app->session;\n\t\t$sessionMenus = $session->get('user.menus');\n\t\tif ( $user->role != 30 )\n\t\t{\n\n\t\t\t$role = Role::find()->where(['=', 'code', $user->role])->one();\n\t\t\t$menuPermission = Menu::getMenuPermission($role->id);\n\t\t\t$session->set('user.menus', $menuPermission); \t\n\n\t\t} else {\n\t\t\t$menuPermission = Menu::getMenuAdmin();\n\t\t\t$session->set('user.menus', $menuPermission);\n\t\t}\n\n\t\t$pureMenu = ArrayHelper::toArray($menuPermission);\n\t\t$reIndex = ArrayHelper::index($pureMenu, 'id');\n\t\t$result = [];\n\t\tforeach ($pureMenu as $key => $menu) {\n\t\t\tif ( array_key_exists($menu['parent_id'], $reIndex) )\n\t\t\t{\n\t\t\t\tunset( $reIndex[$menu['id']] );\n\t\t\t\t$menu['name'] = str_replace($reIndex[$menu['parent_id']]['name'], '', $menu['name']);\n\t\t\t\t$reIndex[$menu['parent_id']]['child'][] = $menu;\n\t\t\t}\n\t\t}\n\t\t// echo \"<pre>\";print_r($reIndex);exit;\n\t\treturn $reIndex;\t\t\t\n\t}", "function &getMenu()\n {\n static $s_instance = NULL;\n if ($s_instance==NULL)\n {\n atkdebug(\"Creating a new menu instance\");\n $classname = atkMenu::getMenuClass();\n\n\n $filename = getClassPath($classname);\n if (file_exists($filename)) $s_instance = atknew($classname);\n else\n {\n atkerror('Failed to get menu object ('.$filename.' / '.$classname.')!');\n atkwarning('Please check your compatible_menus in themedef.inc and config_menu_layout in config.inc.php.');\n $s_instance = atknew('atk.menu.atkplainmenu');\n }\n\n // Set the dispatchfile for this menu based on the theme setting, or to the default if not set.\n // This makes sure that all calls to dispatch_url will generate a url for the main frame and not\n // within the menu itself.\n $theme = &atkinstance(\"atk.ui.atktheme\");\n $dispatcher = $theme->getAttribute('dispatcher', atkconfig(\"dispatcher\", \"dispatch.php\")); // do not use atkSelf here!\n $c = &atkinstance(\"atk.atkcontroller\");\n $c->setPhpFile($dispatcher);\n\n atkHarvestModules(\"getMenuItems\");\n }\n\n return $s_instance;\n }", "public function getMenu()\n\t{\n\t\treturn $this->menu;\n\t}", "public function getMenu() {\n\t\treturn $this->menu;\n\t}", "public function menu()\n\t{\n\t\t$this->db->order_by(\"urutan\",\"asc\");\n\t\t$hasil = $this->db->get_where(\"mainmenu\",array(\"aktif\"=>\"Y\"));\n\t\t$output = new myObject();\n\t\tif($hasil->num_rows() > 0){\n\t\t\t$data = $hasil->result();\n\t\t\t$menu = array();\n\t\t\tforeach ($data as $item) {\n\t\t\t\t$row = array();\n\t\t\t\t$row =$item;\n\t\t\t\t$row->submenu = $this->submenu($item->id_main);\n\t\t\t\t$menu[] = $row;\n\t\t\t}\n\t\t\t$output->data = $menu;\n\t\t\t$output->status = true;\n\t\t}else{\n\t\t\t$output->status = false;\n\t\t}\n\t\treturn $output;\n\t}", "public function getMenus()\n {\n $menus = array();\n\n $CoreMenuObject = new CoreMenuObject();\n $CoreMenuObject->setId('performanceutils');\n $CoreMenuObject->setName('admin.performance.utils.link.name');\n $CoreMenuObject->setTitle('admin.performance.utils.link.title');\n $CoreMenuObject->setHref('/admin/performanceutils');\n $CoreMenuObject->setParentId(AdminModule::ADMIN_NAV_ID_SYSTEM);\n $CoreMenuObject->setTarget(AdminModule::ADMIN_NAV_ID);\n array_push($menus, $CoreMenuObject);\n\n return $menus;\n }", "public function getMenu() {\r\n $sql = $this->db->query(\"SELECT * FROM ms_menu WHERE menu_isactive = 1 ORDER BY menu_urut\");\r\n if ($sql->num_rows() > 0) {\r\n return $sql->result_array();\r\n }\r\n return null;\r\n }", "public function get_parent();", "function buildMenuHierarchy(): array\n{\n $menu = queryDB(\n \"SELECT * FROM pages WHERE parent_page_id IS NULL AND published = 1 ORDER BY menu_priority ASC\"\n )->fetchAll();\n\n foreach ($menu as $i => $parentPage) {\n $menu[$i][\"children\"] = queryDB(\n \"SELECT * FROM pages WHERE parent_page_id = ? AND published = 1 ORDER BY menu_priority ASC\",\n $parentPage['id']\n )->fetchAll();\n }\n\n return $menu;\n}", "function get_children($id,$config,$lang=array())\r\n\t{\r\n\t\t$children = array();\r\n\t\t\r\n\t\t$query = \"SELECT menu_id,menu_title,menu_url,menu_desc,menu_icon,menu_target FROM \".$config['db']['pre'].\"amenu WHERE parent_id = '$id' ORDER BY sort_id,menu_id\";\r\n\t\t$result = $this->query($query);\r\n\t\t$count = 0;\r\n\t\twhile ($row = mysql_fetch_array($result))\t\r\n\t\t{\r\n\t\t\tif(isset($lang['PROVIDERU']))\r\n\t\t\t{\r\n\t\t\t\tif($row['menu_title'] == 'Buyers')\r\n\t\t\t\t{\r\n\t\t\t\t\t$row['menu_title'] = $lang['BUYERU'].'s';\r\n\t\t\t\t}\r\n\t\t\t\telseif($row['menu_title'] == 'Add Buyer')\r\n\t\t\t\t{\r\n\t\t\t\t\t$row['menu_title'] = 'Add '.$lang['BUYERU'];\r\n\t\t\t\t}\r\n\t\t\t\telseif($row['menu_title'] == 'Search Buyer(s)')\r\n\t\t\t\t{\r\n\t\t\t\t\t$row['menu_title'] = 'Search '.$lang['BUYERU'].'(s)';\r\n\t\t\t\t}\r\n\t\t\t\telseif($row['menu_title'] == 'Edit Buyer(s)')\r\n\t\t\t\t{\r\n\t\t\t\t\t$row['menu_title'] = 'Edit '.$lang['BUYERU'].'(s)';\r\n\t\t\t\t}\r\n\t\t\t\telseif($row['menu_title'] == 'Providers')\r\n\t\t\t\t{\r\n\t\t\t\t\t$row['menu_title'] = $lang['PROVIDERU'].'s';\r\n\t\t\t\t}\r\n\t\t\t\telseif($row['menu_title'] == 'Add Provider')\r\n\t\t\t\t{\r\n\t\t\t\t\t$row['menu_title'] = 'Add '.$lang['PROVIDERU'];\r\n\t\t\t\t}\r\n\t\t\t\telseif($row['menu_title'] == 'Search Provider(s)')\r\n\t\t\t\t{\r\n\t\t\t\t\t$row['menu_title'] = 'Search '.$lang['PROVIDERU'].'(s)';\r\n\t\t\t\t}\r\n\t\t\t\telseif($row['menu_title'] == 'Edit Provider(s)')\r\n\t\t\t\t{\r\n\t\t\t\t\t$row['menu_title'] = 'Edit '.$lang['PROVIDERU'].'(s)';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\t$children[$count]['id'] = $row['menu_id'];\t\r\n\t\t\t$children[$count]['title'] = $row['menu_title'];\t\r\n\t\t\t$children[$count]['url'] = $row['menu_url'];\t\r\n\t\t\t$children[$count]['desc'] = $row['menu_desc'];\t\r\n\t\t\t$children[$count]['icon'] = $row['menu_icon'];\t\r\n\t\t\t$children[$count]['target'] = $row['menu_target'];\t\r\n\t\t\t$count++;\r\n\t\t}\r\n\t\treturn $children;\r\n\t}", "function select_idxmenu(){\n $query = $this->db->query(\"\n select title, file_path\n from sys_menu \n where is_parent = 0 order by id\n \");\n return $query;\n }", "protected function get_detail($id) {\n\t\t$result = new stdClass();\n\n\t\t$this->db->select('mnu.*, icon.nama AS nama_icon, icon.group AS group_icon, mnu_parent.nama AS nama_parent');\n\t\t$this->db->from('menu AS mnu');\n\t\t$this->db->join('icon AS icon', 'icon.id = mnu.id_icon', 'LEFT');\n\t\t$this->db->join('menu AS mnu_parent', 'mnu_parent.id = mnu.parent_id', 'LEFT');\n\t\t$this->db->where('mnu.id', $id);\n\t\t$t_menu = $this->db->get();\n\t\tif ($t_menu->num_rows() > 0) {\n\t\t\t$result = $t_menu->first_row();\n\t\t}\n\n\t\treturn $result;\n\t}", "function getModelObject(){\n\t\t\n\t\tif ( !isset($this->modObj) ){\n\t\t\t//$this->modObj = new Menu_PDO_Model();\n\t\t\t$this->modObj = new DoctrineMenu();\t\n\t\t}\n\t\t\n\t\treturn $this->modObj;\n\t}", "function get_childs($id, $class_parent = '')\n {\n $has_subcats = FALSE;\n \n $html_out = '';\n $tab_out = '';\n //$html_out .= \"\\n\\t\\t\\t\\t\".'<div>'.\"\\n\";\n \n // query q me ejecuta el submenu filtrando por usuario y para buscar el submenu segun el id que traigo\n //echo \"select * from dyn_menu where parent_id = $id\";\n $query = $this->ci->db->query(\"select * from dyn_menu where parent_id = $id\");\n /*echo \"<pre>\";\n print_r($query->result_array());exit;*/\n if(count($query->result())>0)\n $html_out .= \"\\t\\t\\t\\t\\t\".'<ul '.$class_parent.'>'.\"\\n\";\n else\n $html_out .= \"\\t\\t\\t\\t\\t\".'<ul>'.\"\\n\";\n\n foreach ($query->result() as $row)\n {\n $id = $row->id;\n $title = $row->title;\n $link_type = $row->link_type;\n $page_id = $row->page_id;\n $module_name = $row->module_name;\n $url = $row->url;\n $uri = $row->uri;\n $dyn_group_id = $row->dyn_group_id;\n $position = $row->position;\n $target = $row->target;\n $parent_id = $row->parent_id;\n $is_parent = $row->is_parent;\n $show_menu = $row->show_menu;\n $anchorAttribute = $row->anchor_attribute;\n $liAttribute = $row->li_attribute;\n $icon = $row->icon;\n $dividerDiv = $row->divider;\n $is_tab = $row->is_tab;\n $childAttribute = !empty($row->child_attribute)?$row->child_attribute:$this->class_parent;\n $has_subcats = TRUE;\n \n $title2 = !empty($icon)?'<i class=\"'.$icon.'\"></i>':'';\n if($is_tab){ \n $liAttribute .= 'data-id='.$id.' data-target=\"menu-'.$id.'\" id=\"tabm_'.$id.'\"'; \n $tab_out .= '<div class=\"menu_cont clearfix\" data-id=\"'.$id.'\" style=\"display: block;\" id=\"menu-'.$id.'\"></div>';\n //$tab_out .= '<div class=\"col-sm-4\"></div>';\n }\n if ($is_parent == TRUE)\n {\n $title2.= '<span>'.$title.'</span><span class=\"pull-right-container\"><i class=\"fa fa-angle-left pull-right\"></i></span>';\n /* $title2.= '<span>'.$title.'</span><span class=\"stream stream0\"><i class=\"fa fa-angle-left pull-right\"></i></span>';*/\n /*$html_out .= \"\\t\\t\\t\\t\\t\\t\".'<li>'.anchor($url.' '.$this->class_parent, '<span>'.$title.'</span>', 'name=\"'.$title.'\" id=\"'.$id.'\" target=\"'.$target.'\"');*/\n $html_out .= \"\\t\\t\\t\\t\\t\\t\".'<li '.$liAttribute.'>'.anchor($url, $title2, $anchorAttribute);\n\n }\n else\n {\n $title2.= '<span>'.$title.'</span>';\n $html_out .= \"\\t\\t\\t\\t\\t\\t\".'<li '.$liAttribute.'>'.anchor($url, $title2, $anchorAttribute);\n }\n\n // Recurse call to get more child submenus.\n if($dividerDiv){\n $html_out.='<div class=\"divider\" style=\"display:block\"></div>';\n }\n $dynamicMenuTagQuery = $this->ci->db->query(\"select * from dyn_menu_tags where dyn_menu_id='\".$id.\"' and is_active=1 order by priority\");\n /*echo \"<pre>\";\n print_r($dynamicMenuTagQuery->result_array());*/\n /* echo \"select * from dyn_menu_tags where dyn_menu_id='\".$id.\"' and is_active=1 order by priority <br>\";*/\n if(count($dynamicMenuTagQuery->result_array())>0){ \n //echo \"hello\"; \n //echo $this->ci->db->count_all_results();\n /* echo '<pre>';\n print_r($dynamicMenuTagQuery->result_array());*/\n // exit;\n foreach ($dynamicMenuTagQuery->result_array() as $dynamicMenuTag) {\n $html_out.='<'.$dynamicMenuTag['tag'].' '.$dynamicMenuTag['attribute'].'>';\n /*echo $dynamicMenuTag;exit;*/\n /*if($is_tab== TRUE){\n // echo \"hello\";\n $html_out .= $$this->get_Tabs($id);\n }else{*/\n $html_out .= $this->get_childs($id, $childAttribute);\n // }\n $html_out.='</'.$dynamicMenuTag['tag'].'>';\n\n }\n }else{ //echo \"hiii\";exit;\n /*if($is_tab == TRUE) {\n //echo \"reached in tabs\";\n $html_out .=$this->get_Tabs($id);\n }else\n {\n*/\n $html_out .= $this->get_childs($id, $childAttribute);\n //}\n }\n }\n $html_out .= '</li>' . \"\\n\";\n $html_out .= \"\\t\\t\\t\\t\\t\".'</ul>' . \"\\n\";\n $html_out .=$tab_out;\n /*$query1 = $this->ci->db->query(\"select html_tags_id from dyn_menu\");\n $query1->result_array();*/\n //$html_out .= \"\\t\\t\\t\\t\".'</div>' . \"\\n\";\n \n return ($has_subcats) ? $html_out : FALSE;\n \n }", "public function getMenu()\n {\n return null;\n }", "public static function getMenus()\n\t{\n\t\t$sql = \"SELECT * FROM mod_menu\";\n\t\t$query = \\SimplCMS::$app->getDbConnection()->query($sql);\n\t\treturn $query->fetchAll( \\PDO::FETCH_ASSOC );\t\t\n\t}", "public function specific_menu($id)\r\n\t{\r\n\t\t$this->db->where('id',$id); \r\n\t\t$result = $this->db->get('menu'); \r\n\t\treturn $result->row();\r\n\t}", "public function getMenuItems()\n\t{\n\t\treturn Settings_Vtiger_MenuItem_Model::getAll($this->getId());\n\t}", "public function getMenuForEdit()\n {\n $root = $this->findRoot();\n $result = $this->findChildren($root);\n return $result;\n }", "public function getGrandParent();", "function getparent(){\r\n\tglobal $con;\r\n\t$getAll = $con->prepare(\"SELECT * FROM categories WHERE parent = 0 ORDER BY ID ASC\");\r\n\t$getAll->execute();\t\r\n\t$parent = $getAll->fetchAll();\r\n\treturn $parent;\r\n}", "public function parent(){\n return $this->where('id', $this->parent_id)->first();\n }", "function _getRubriekFromDb()\n {\n $menuData = array('items' => array(), 'parents' => array());\n\n $conn = getConn();\n $sql = \"SELECT RubriekID, Rubrieknaam, SuperRubriekID FROM Rubriek ORDER BY SuperRubriekID, Rubrieknaam\";\n $stmt = sqlsrv_prepare($conn, $sql);\n if (!$stmt) {\n die(print_r(sqlsrv_errors(), true));\n }\n sqlsrv_execute($stmt);\n if (sqlsrv_execute($stmt)) {\n while ($menuItem = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_ASSOC)) {\n $menuData['items'][$menuItem['RubriekID']] = $menuItem;\n $menuData['parents'][$menuItem['SuperRubriekID']][] = $menuItem['RubriekID'];\n }\n }\n return $menuData;\n }", "function getMenuItem($type, $id_admin, $top_menu, $id_parent='-1')\n{\n\tif($type == '1') //for super admin\n\t{\n\t\t$query\t\t= \"* FROM admin_menu where id_parent='\". $id_parent .\"' and status='1' and top_menu = '\". $top_menu .\"' order by sort\";\n\t}\n\telse //for sub admins\n\t{\n\t\t$query\t\t= \"* FROM admin_menu as AM, admin_access as AC where AM.id_menu = AC.id_menu and AM.id_parent='\". $id_parent .\"' and AM.status='1' and top_menu = '\". $top_menu .\"' \";\n\t\tif($type != '1')\n\t\t\t$query\t.= \"and AC.id_admin = '\". $id_admin .\"' \";\n\t\t$query\t\t.= \"order by sort\";\t\n\t}\n\treturn getLoopData($query);\n}", "public function get_menu_type(){\n $this->db->where('user_role_id', 4);\n $menu_types = parent::get();\n return $menu_types;\n }", "function getMenuItems () {\n return sqlSelect('SELECT * FROM menu');\n}", "public function getNavigation() {\n \n $search = $this->search();\n $menuObjects = $search->getRecords();\n $result = array();\n $fields = $this->definition->fields();\n $menuItemField = FieldService::instance()->getFieldByName($fields, \"menuItems\");\n \n //$search->getRelationsForObjects(\"menuItems\", $menuObjects);\n \n foreach($menuObjects as $menuObject) {\n $result[$menuObject->name] = $search->getRelations($menuItemField, $menuObject->id);\n }\n \n return $result;\n }", "public static function getMenus()\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true)\n\t\t\t->select('a.*, SUM(b.home) AS home')\n\t\t\t->from('#__menu_types AS a')\n\t\t\t->join('LEFT', '#__menu AS b ON b.menutype = a.menutype AND b.home != 0')\n\t\t\t->select('b.language')\n\t\t\t->join('LEFT', '#__languages AS l ON l.lang_code = language')\n\t\t\t->select('l.image')\n\t\t\t->select('l.sef')\n\t\t\t->select('l.title_native')\n\t\t\t->where('(b.client_id = 0 OR b.client_id IS NULL)');\n\n\t\t// Sqlsrv change\n\t\t$query->group('a.id, a.menutype, a.description, a.title, b.menutype,b.language,l.image,l.sef,l.title_native');\n\n\t\t$db->setQuery($query);\n\n\t\ttry\n\t\t{\n\t\t\t$result = $db->loadObjectList();\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$result = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $result;\n\t}", "public function getMenuById($id) {\r\n $sql = $this->db->query(\"SELECT * FROM ms_menu WHERE menuid = '$id'\");\r\n if ($sql->num_rows() > 0) {\r\n return $sql->row_array();\r\n }\r\n return null;\r\n }", "protected function loadParentId(){return 0;}", "public function getMenus()\n {\n\n $menus = array();\n\n $CoreMenuObject = new CoreMenuObject();\n $CoreMenuObject->setId('adminlessvariables');\n $CoreMenuObject->setName(CoreLanguage::get('admin:system:adminlessvars:link:name'));\n $CoreMenuObject->setHref('/admin/system/lessvariables');\n $CoreMenuObject->setTitle(CoreLanguage::get('admin:system:adminlessvars:link:title'));\n $CoreMenuObject->setTemplate('adminnavsection');\n $CoreMenuObject->setZIndex(20);\n $CoreMenuObject->setParentId(AdminModule::ADMIN_NAV_ID_SYSTEM);\n $CoreMenuObject->setTarget(AdminModule::ADMIN_NAV_ID);\n array_push($menus, $CoreMenuObject);\n\n return $menus;\n\n }", "protected function _getTree(){\n\t\tif (!$this->_tree) {\n\t\t\t$this->_tree = Mage::getResourceModel('megamenu2/menuitem_tree')->load();\n\t\t}\n\t\treturn $this->_tree;\n\t}", "public function getTree()\n {\n return $this->hasOne(Tree::className(), ['id' => 'tree_id']);\n }" ]
[ "0.71868193", "0.6739627", "0.66164696", "0.6570604", "0.65208596", "0.6472349", "0.63874024", "0.63673025", "0.6352337", "0.63307333", "0.63164353", "0.6294624", "0.629274", "0.62774754", "0.623657", "0.6232077", "0.6226547", "0.620865", "0.620269", "0.6194057", "0.61677814", "0.61519104", "0.61489195", "0.6141153", "0.6108486", "0.6104092", "0.6102895", "0.61010325", "0.6095308", "0.60881954", "0.6056145", "0.60272473", "0.60172033", "0.6015129", "0.59998655", "0.5980707", "0.5972755", "0.59628016", "0.5962414", "0.59599733", "0.594269", "0.5925668", "0.59036547", "0.5895973", "0.58917445", "0.587379", "0.5866091", "0.5862439", "0.58046633", "0.5802551", "0.5799721", "0.579156", "0.5750702", "0.5747949", "0.57471126", "0.5744949", "0.5744017", "0.5741434", "0.5731582", "0.57260543", "0.57234716", "0.57222736", "0.57056296", "0.5702242", "0.5700096", "0.56980544", "0.5694656", "0.56884813", "0.56824046", "0.567949", "0.5676163", "0.56693506", "0.5661465", "0.5659444", "0.5658617", "0.5645631", "0.5632601", "0.56281686", "0.5622372", "0.56182766", "0.5617372", "0.5612994", "0.56075937", "0.560283", "0.5598168", "0.5595011", "0.5588167", "0.5586425", "0.55825454", "0.5582307", "0.55749583", "0.5572584", "0.55650014", "0.55577207", "0.5557579", "0.5553936", "0.55490667", "0.5535077", "0.5534347", "0.552787" ]
0.68729335
1
Declares an association between this object and a ChildTblProdPhotos object.
public function setTblProdPhotos(ChildTblProdPhotos $v = null) { if ($v === null) { $this->setProdId(NULL); } else { $this->setProdId($v->getProdId()); } $this->aTblProdPhotos = $v; // Add binding for other direction of this 1:1 relationship. if ($v !== null) { $v->setTblProdInfo($this); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n $this->table = 'products';\n $this->primary_key = 'id';\n \n $this->has_many['pictures'] = array(\n 'foreign_model' => 'Pictures_model',\n 'foreign_table' => 'pictures',\n 'foreign_key' => 'product_id',\n 'local_key' => 'id'\n );\n \n $this->has_many['options'] = array(\n 'foreign_model' => 'Product_options_model',\n 'foreign_table' => 'product_options',\n 'foreign_key' => 'product_id',\n 'local_key' => 'id'\n );\n\n \n \n parent::__construct();\n }", "public function photos() {\n return $this->hasMany('App\\Models\\ProductPhoto');\n }", "public function getTblProdPhotos(ConnectionInterface $con = null)\n {\n if ($this->aTblProdPhotos === null && ($this->prod_id !== null)) {\n $this->aTblProdPhotos = ChildTblProdPhotosQuery::create()->findPk($this->prod_id, $con);\n // Because this foreign key represents a one-to-one relationship, we will create a bi-directional association.\n $this->aTblProdPhotos->setTblProdInfo($this);\n }\n\n return $this->aTblProdPhotos;\n }", "public function photo_product()\n {\n return $this->belongsTo(Photo_product::class);\n }", "public function productImage(){\n\t\treturn $this->hasmany('App\\ProductImages','product_id');\n\t}", "public function photo()\n {\n return $this->belongsToMany(Photos::class,'photo_product','photo_id', 'product_id');\n }", "public function photographs()\n {\n return $this->hasMany('App\\Photograph');\n }", "public function SPPhotos()\n {\n // hasMany(RelatedModel, foreignKeyOnRelatedModel = sp_id, localKey = sp_id)\n return $this->hasMany('App\\SPPhoto','sp_id','sp_id');\n }", "public function images(): HasMany\n {\n return $this->hasMany('App\\Models\\ProductImage');\n }", "public function photos() {\n return $this->hasMany('\\P4\\Photo');\n }", "public function image()\n {\n\n return $this->hasMany(ProductImage::class);\n \n }", "public function initialize()\n {\n $this->hasMany('cd_upload', 'App\\Models\\Empresa', 'logo', array('alias' => 'Empresa'));\n $this->hasMany('cd_upload', 'App\\Models\\EmpresaHasArquivos', 'cd_upload', array('alias' => 'EmpresaHasArquivos'));\n $this->hasMany('cd_upload', 'App\\Models\\EmpresaHasLinkCentralcompras', 'cd_upload', array('alias' => 'EmpresaHasLinkCentralcompras'));\n $this->hasMany('cd_upload', 'App\\Models\\LancamentoHasUpload', 'cd_upload', array('alias' => 'LancamentoHasUpload'));\n $this->hasMany('cd_upload', 'App\\Models\\LiquidacaoHasUpload', 'cd_upload', array('alias' => 'LiquidacaoHasUpload'));\n $this->hasMany('cd_upload', 'App\\Models\\NfentradaHasUpload', 'cd_upload', array('alias' => 'NfentradaHasUpload'));\n $this->hasMany('cd_upload', 'App\\Models\\UploadHas', 'upload_cd_upload', array('alias' => 'UploadHas'));\n $this->belongsTo('cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n }", "public function images()\n {\n return $this->hasMany('fooCart\\src\\ProductImage', 'product_id', 'product_id');\n }", "public function initialize()\n {\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('foreignKey' => true,'alias' => 'Produto'));\n }", "public function initialize(){\n $this->hasMany(\n \"category_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Products\", \n \"category\",\n array(\n \"reusable\" => true\n )\n );\n \n $this->hasManyToMany(\n \"category_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Products\", \n \"category\", \n \"vendor_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Vendor\", \n \"vendor_id\",\n array(\n \"reusable\" => true,\n \"alias\" => \"AliasVendorPro\"\n )\n );\n }", "public function photos(){\n\n\t\treturn $this->hasMany('App\\Photo');\n\n\t}", "public function photos(): HasMany\n\t{\n\t\treturn $this->hasMany('App\\Models\\Photo', 'album_id', 'id');\n\t}", "public function photos()\n {\n return $this->hasMany('App\\Photo');\n }", "public function photos()\n {\n return $this->hasMany('App\\Photo');\n }", "public function pictures() {\n return $this->hasMany('App\\Models\\Picture');\n }", "public function images()\n\t{\n\t\treturn $this->hasMany(ProductImage::class);\n\t}", "public function photos()\n {\n return $this->hasMany('App\\Entities\\QuoteOptionHotelRoomPhoto', 'quote_option_room_id', 'quote_option_room_id');\n }", "public function initialize()\n {\n $this->setSchema(\"atiempo_prod\");\n $this->hasMany('id', 'AcCartaAvalDetalle', 'id_carta', ['alias' => 'AcCartaAvalDetalle']);\n }", "public function fotos()\n {\n return $this->hasMany(foto::class,'fk_id_producto');\n }", "public function foto(){\n \treturn $this->hasOne('App\\Foto');\n }", "public function getGallery(){\n return $this->hasMany(ProductGallery::class, 'product_id','id');\n }", "public function photo() {\n return $this->hasOne('Photo','id','photo_id');\n }", "public function __construct()\n\t{\n\t\t$this->has_one['product'] = array('Products_m', 'id', 'product_id');\n\t\t// $this->soft_deletes = TRUE;\n\t\tparent::__construct();\n\t}", "public function photo()\n {\n return $this->hasOne('App\\DescriptionPhoto','description_id');\n }", "public function product_galleries() {\n return $this->hasMany(ProductGallery::class, 'product_id', 'id');\n }", "public function getPhotos()\n {\n return $this->hasMany(Photo::className(), ['owner_id' => 'id']);\n }", "public function photos() {\n return $this->hasMany('App\\FlyerPhoto');\n }", "public function products(): MorphToMany;", "public function bannerPhotos() {\n return $this->hasMany('App\\FlyerBanner');\n }", "public function getPhoto() {\n return $this->hasOne(Photo::className(), ['id' => 'photo_id']);\n }", "public function Photographies()\n {\n return $this->hasMany('App\\Photography','id_category');\n }", "public function setupAssociations() \n {\n \n }", "public function buildRelations()\n {\n $this->addRelation('Photo', 'wiosloCMS\\\\PhotoBundle\\\\Model\\\\Photo', RelationMap::MANY_TO_ONE, array('photo_id' => 'id', ), 'CASCADE', 'CASCADE');\n $this->addRelation('UserRate', 'wiosloCMS\\\\PhotoBundle\\\\Model\\\\UserRate', RelationMap::ONE_TO_MANY, array('photo_id' => 'photo_id', ), 'CASCADE', 'CASCADE', 'UserRates');\n $this->addRelation('User', 'wiosloCMS\\\\UserBundle\\\\Model\\\\User', RelationMap::MANY_TO_MANY, array(), 'CASCADE', 'CASCADE', 'Users');\n }", "public function setPhotosAttribute($value)\n {\n $attribute_name = \"photos\";\n $disk = \"uploads\";\n $destination_path = \"products\";\n\n $this->uploadMultipleFilesToDisk($value, $attribute_name, $disk, $destination_path);\n }", "public function photo_categories(): BelongsToMany\n {\n return $this->belongsToMany(PhotoCategory::class, 'photo_categories_photos');\n }", "public function photos()\n {\n return $this->hasMany(Photo::class, 'album_id', 'id');\n }", "public function featuredPhoto() {\n return $this->hasOne('App\\Models\\ProductPhoto')->whereFeatured(true);\n }", "public function photos(){\n return $this->hasMany('App\\Models\\PhotoNews', 'news_album_id');\n }", "public function photos()\n {\n return $this->hasMany(Photo::class, 'photo_album_id');\n }", "public function relations()\n\t{\n\t\t// class name for the relations automatically generated below.\n\t\treturn array(\n\t\t\t\t'Img' => array(self::HAS_MANY, 'ImgAdvt', 'advt_id'),\n\t\t);\n\t}", "public function pictures()\n {\n return $this->hasMany(Picture::class);\n }", "public function photos()\n {\n return $this->hasOne('App\\Customerfile','customer_id','id');\n }", "public function images()\n {\n return $this->hasMany(ProductImageProxy::modelClass(), 'seller_product_id');\n }", "public function photo(){\n // Not \"hasOne\" which would try and match for a post_id column in the \"photos\" table\n \treturn $this->belongsTo('App\\Photo');\n }", "public function product() {\n // $productImage->product\n return $this->belongsTo(Product::class);\n }", "public function photo() {\n return $this->belongsTo('App\\Photo');\n }", "public function photos()\n {\n return $this->hasMany(ItemsPhoto::class);\n }", "public function photos(){\n return $this->morphMany('cms\\Photo', 'imageable');\n }", "public function initialize()\n {\n // \n $this->setSource(\"img_gallery\");\n $this->belongsTo('imageid', 'WC\\Models\\Image', 'id', ['alias' => 'Image']);\n $this->belongsTo('galleryid', 'WC\\Models\\Gallery', 'id', ['alias' => 'Gallery']);\n }", "private function SetProductImages()\n\t{\n\n\t\t$GLOBALS['ProductThumbWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\t\t$GLOBALS['ProductThumbHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_STANDARD);\n\n\t\t$GLOBALS['ProductMaxTinyWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\t\t$GLOBALS['ProductMaxTinyHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\n\t\t$GLOBALS['ProductTinyBoxWidth'] = $GLOBALS['ProductMaxTinyWidth']+4;\n\t\t$GLOBALS['ProductTinyBoxHeight'] = $GLOBALS['ProductMaxTinyHeight']+4;\n\n\n\t\t$GLOBALS['ProductMaxZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductMaxZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\t\t$GLOBALS['ProductZoomWidth'] = ISC_PRODUCT_IMAGE::getSizeWidth(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t$GLOBALS['ProductZoomHeight'] = ISC_PRODUCT_IMAGE::getSizeHeight(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\n\n\t\t$productImages = ISC_PRODUCT_IMAGE::getProductImagesFromDatabase($GLOBALS['ProductId'], null, false, true);\n\t\t$GLOBALS['NumProdImages'] = count($productImages);\n\n\t\t$GLOBALS['CurrentProdThumbImage'] = 0;\n\t\t$thumb = '';\n\t\t$curZoomImage = '';\n\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] = '';\n\t\t$GLOBALS['HideImageCarousel'] = 'display:none;';\n\t\t$GLOBALS['HideMorePicturesLink'] = 'display:none;';\n\t\t$thumbImageDescription = '';\n\t\t$i = 0;\n\n\t\t$GLOBALS['ProdImageJavascript'] = '';\n\t\t$GLOBALS['ProdImageZoomJavascript'] = '';\n\t\t$GLOBALS['LightBoxImageList'] = '';\n\t\t$GLOBALS['ZoomImageMaxWidth'] = 0;\n\t\t$GLOBALS['ZoomImageMaxHeight'] = 0;\n\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = 0;\n\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = 'display: none';\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t//Show image carousel\n\n\t\t\tif ($GLOBALS['NumProdImages'] == 2) {\n\t\t\t\t$var = \"MorePictures1\";\n\t\t\t} else if ($GLOBALS['NumProdImages'] == 1) {\n\t\t\t\t$var = \"SeeLargerImage\";\n\t\t\t} else {\n\t\t\t\t$var = \"MorePictures2\";\n\t\t\t}\n\n\t\t\t$GLOBALS['SeeMorePictures'] = sprintf(GetLang($var), count($productImages) - 1);\n\t\t\t$GLOBALS['HideAlwaysLinkedMorePicturesLink'] = '';\n\n\t\t\tif (GetConfig('ProductImagesTinyThumbnailsEnabled')) {\n\t\t\t\t$GLOBALS['HideImageCarousel'] = '';\n\t\t\t} else {\n\t\t\t\t$GLOBALS['HideMorePicturesLink'] = '';\n\t\t\t}\n\n\t\t\t$continue=false;\n\n\t\t\tforeach ($productImages as $productImage) {\n\n\t\t\t\t$thumbURL = '';\n\t\t\t\t$zoomImageURL = '';\n\n\t\t\t\ttry{\n\t\t\t\t\t$thumbURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_STANDARD, true);\n\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\ttry{\n\t\t\t\t\t$zoomImageURL = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_ZOOM, true);\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t}\n\n\t\t\t\tif($thumbURL == '' && $zoomImageURL == '') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$resizedZoomDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_ZOOM);\n\t\t\t\t$resizedTinyDimension = $productImage->getResizedFileDimensions(ISC_PRODUCT_IMAGE_SIZE_TINY);\n\n\t\t\t\t//calculate the max zoom image width and height\n\t\t\t\tif ($GLOBALS['ZoomImageMaxWidth'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]) {\n\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t//the height of the image has got the max width needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxWidthHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\tif ($GLOBALS['ZoomImageMaxHeight'] < $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]) {\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeight'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t//the width of the image has got the max height needed to calulate the image fancy box size.\n\t\t\t\t\t$GLOBALS['ZoomImageMaxHeightWidth'] = $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['ImageDescription'] = isc_html_escape($productImage->getDescription());\n\t\t\t\tif($GLOBALS['ImageDescription'] == '') {\n\t\t\t\t\t$GLOBALS['ImageDescription'] = GetLang(\"Image\") . \" \" . ($i + 1);\n\t\t\t\t}\n\n\t\t\t\t//show image carousel\n\t\t\t\tif(GetConfig('ProductImagesTinyThumbnailsEnabled')==1) {\n\n\t\t\t\t\t$GLOBALS['ProdImageJavascript'] .= \"\n\t\t\t\t\t\tThumbURLs[\".$i.\"] = \" . isc_json_encode($thumbURL) . \";\n\t\t\t\t\t\tProductImageDescriptions[\".$i.\"] = \" . isc_json_encode($GLOBALS['ImageDescription']) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$GLOBALS['TinyImageOverJavascript'] = \"showProductThumbImage(\".$i.\")\";\n\t\t\t\t\t//$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\n\t\t\t\t\ttry{\n\t\t\t\t\t\t$GLOBALS['ProductTinyImageURL'] = $productImage->getResizedUrl(ISC_PRODUCT_IMAGE_SIZE_TINY, true);\n\t\t\t\t\t\t//$GLOBALS['ProductThumbURL'] = $thumbURL;\n\t\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\t\t// do nothing, will result in returning blank string, which is fine\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ProductThumbIndex'] = $i;\n\t\t\t\t\tif(GetConfig('ProductImageMode') == 'lightbox') {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImageLightBox(\".$i.\"); return false;\";\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['TinyImageClickJavascript'] = \"showProductImage('\".GetConfig('ShopPath').\"/productimage.php', \".$GLOBALS['ProductId'].\", \".$i.\");\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['TinyImageWidth'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH];\n\t\t\t\t\t$GLOBALS['TinyImageHeight'] = $resizedTinyDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT];\n\t\t\t\t\t$GLOBALS['TinyImageTopPadding'] = floor(($GLOBALS['ProductMaxTinyHeight'] - $GLOBALS['TinyImageHeight']) / 2);\n\t\t\t\t\t$GLOBALS['SNIPPETS']['ProductTinyImages'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductTinyImage\");\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\tif(GetConfig('ProductImagesImageZoomEnabled') == 1) {\n\t\t\t\t\t//check if zoom image is large enough for image zoomer\n\t\t\t\t\tif($resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_WIDTH]<ISC_PRODUCT_IMAGE_MIN_ZOOM_WIDTH && $resizedZoomDimension[ISC_PRODUCT_IMAGE_DIMENSIONS_HEIGHT]<ISC_PRODUCT_IMAGE_MIN_ZOOM_HEIGHT) {\n\t\t\t\t\t\t$zoomImageURL = '';\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['ProdImageZoomJavascript'] .= \"\n\t\t\t\t\t\tZoomImageURLs[\".$i.\"] = \" . isc_json_encode($zoomImageURL) . \";\n\t\t\t\t\t\";\n\t\t\t\t\t$continue = true;\n\t\t\t\t}\n\n\t\t\t\t//\t$GLOBALS['ProductZoomImageURL'] = $zoomImageURL;\n\n\t\t\t\t//this image is the product page thumbnail\n\t\t\t\tif($i==0) {\n\t\t\t\t\t//get the thumb image for product page\n\t\t\t\t\t$thumb = $thumbURL;\n\t\t\t\t\t$curZoomImage = $zoomImageURL;\n\t\t\t\t\t$thumbImageDescription = $GLOBALS['ImageDescription'];\n\t\t\t\t\t//if there is no need to loop through images anymore, get out from the loop.\n\t\t\t\t\tif($continue === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['VisibleImageTotal'] = $i+1;\n\n\t\t$GLOBALS['ShowImageZoomer'] = GetConfig('ProductImagesImageZoomEnabled');\n\t\tif ($GLOBALS['ShowImageZoomer']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductImageZoomer'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"ProductImageZoomer\");\n\t\t}\n\t\t$GLOBALS['ZoomImageURL'] = $curZoomImage;\n\n\t\t//if no product thumb images\n\t\tif($thumb == '') {\n\t\t\tif(GetConfig('DefaultProductImage') == 'template') {\n\t\t\t\t$thumb = $GLOBALS['IMG_PATH'].'/ProductDefault.gif';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$thumb = GetConfig('ShopPath').'/'.GetConfig('DefaultProductImage');\n\t\t\t}\n\t\t}\n\n\t\t// need to check for variation images\n\t\t$GLOBALS['ImageDescription'] = $thumbImageDescription;\n\t\t$GLOBALS['ThumbImageURL'] = $thumb;\n\n\t\tif ($GLOBALS['NumProdImages']) {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('FastProductThumbImage');\n\t\t} else {\n\t\t\t$GLOBALS['SNIPPETS']['ProductThumbImage'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ProductThumbImagePlaceholder');\n\t\t}\n\t}", "public function pic()\n {\n return $this->belongsTo('App\\Pic');\n }", "public function pic()\n {\n return $this->belongsTo('App\\Pic');\n }", "public function thumbs() {\n return $this->hasMany('App\\Thumb');\n }", "public final function create_attachment_object($cropped, $parent_attachment_id)\n {\n }", "public function images(){\n return $this->hasOne(Images::class);\n }", "public function imagefiles()\n {\n return $this->hasMany('App\\ImageFile');\n }", "public function images()\n {\n return $this->hasMany(PropertyImage::class,'property_id', 'id');\n }", "public function setAssociations($val)\n {\n $this->_propDict[\"associations\"] = $val;\n return $this;\n }", "public function create_attachment_object($cropped, $parent_attachment_id)\n {\n }", "public function photos()\n {\n return $this->hasMany(TypesOfHomePhoto::class);\n }", "public function initialize()\n {\n $this->hasMany('cd_desconto', 'App\\Models\\PdvVendasHasItens', 'cd_desconto', array('alias' => 'PdvVendasHasItens'));\n $this->belongsTo('cd_caixa', 'App\\Models\\PdvCaixa', 'cd_caixa', array('alias' => 'PdvCaixa'));\n $this->belongsTo('cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('cd_unidade_negocio', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('cd_usuario_criacao', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }", "public function photo()\n {\n return $this->hasOne('App\\ConferenceAsset', 'id', 'photo');\n }", "public function buildRelations()\n {\n $this->addRelation('Marca', 'Marca', RelationMap::MANY_TO_ONE, array('idmarca' => 'idmarca', ), 'CASCADE', 'CASCADE');\n $this->addRelation('Proveedor', 'Proveedor', RelationMap::MANY_TO_ONE, array('idproveedor' => 'idproveedor', ), 'CASCADE', 'CASCADE');\n }", "public function getImages()\n {\n return $this->hasMany(ProductImage::class, ['product_id' => 'id']);\n }", "public function initialize()\n {\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', array('alias' => 'Documentosbeneficios'));\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', NULL);\n }", "public function photos() {\n \treturn $this->morphMany('App\\Photo', 'imageable');\n }", "public function initialize()\n {\n parent::initialize();\n $this->setSchema(\"salesDB\");\n $this->setSource(\"product_category\");\n $this->hasMany('id', 'App\\Models\\Product', 'product_category_id', ['alias' => 'Product']);\n $this->belongsTo('user_updated', 'App\\Models\\User', 'id', ['alias' => 'UserUpdated']);\n $this->belongsTo('user_created', 'App\\Models\\User', 'id', ['alias' => 'UserCreated']);\n $this->belongsTo('client_id', 'App\\Models\\Client', 'id', ['alias' => 'Client']);\n $this->belongsTo('sync_status_id', 'App\\Models\\SyncStatus', 'id', ['alias' => 'SyncStatus']);\n }", "public function photos()\n {\n return $this->hasMany('App\\AgentPhoto', 'agent_id');\n }", "public function products()\n {\n return $this->hasMany('App\\Core\\Catalog\\Entities\\Product', 'company_id', 'id');\n }", "public function multiplePhoto()\n {\n return $this->hasMany('App\\DescriptionPhoto','description_id')->orderBy('id','desc');\n }", "public function buildRelations()\n {\n $this->addRelation('RemoteApp', 'Slashworks\\\\AppBundle\\\\Model\\\\RemoteApp', RelationMap::MANY_TO_ONE, array('remote_app_id' => 'id', ), 'CASCADE', 'CASCADE');\n }", "public function photos(): BelongsToMany\n {\n return $this->belongsToMany(Photo::class, 'penginapan_photos', 'id_penginapan', 'id_photos');\n }", "public function associate($entity)\n {\n // The Mapper will retrieve this association within the object model, we won't be using\n // the foreign key attribute inside the parent Entity.\n //\n //$this->parent->setEntityAttribute($this->foreignKey, $entity->getEntityAttribute($this->otherKey));\n //\n // Instead, we'll just add the object to the Entity's attribute\n\n $this->parent->setEntityAttribute($this->relation, $entity->getEntityObject());\n }", "public function initialize()\n {\n $this->belongsTo('id_categoria_gastos', 'CategoriaGastos', 'id_categoria_gastos', array('alias' => 'CategoriaGastos'));\n $this->belongsTo('id_presupuesto', 'Presupuesto', 'id_presupuesto', array('alias' => 'Presupuesto'));\n }", "public function initialize()\n {\n $this->hasMany('id', 'GroupProfile', 'media_id', array('alias' => 'GroupProfile'));\n $this->belongsTo('profile_id', 'Profile', 'id', array('alias' => 'Profile'));\n $this->belongsTo('evenement_id', 'Event', 'id', array('alias' => 'Event'));\n }", "public function attachProductData($data) {\n\t\t\n\t\tif (isset($data['CartItem'])) {\n\t\t\t\n\t\t\t$productIDs = Set::extract('CartItem.{n}.product_id', $data);\n\t\t\t$conditionsForProduct = array(\n\t\t\t\t\t// Product Data\t\n\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'Product.visible' =>true,\n\t\t\t\t\t\t'Product.id' \t =>$productIDs,\n\t\t\t\t\t),\n\t\t\t\t\t'contain' => array(\n\t\t\t\t\t\t'ProductImage'=>array(\n\t\t\t\t\t\t 'fields' => array('filename'),\n\t\t\t\t\t\t 'order'=>array(\n\t\t\t\t\t\t\t\t'ProductImage.cover DESC')\n\t\t\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t\t\t\t'Variant' => array(\n\t\t\t\t\t\t\t'order'=>'Variant.order ASC',\n\t\t\t\t\t\t\t'VariantOption' => array(\n\t\t\t\t\t\t\t\t'fields' => array('id', 'value', 'field', 'variant_id'),\n\t\t\t\t\t\t\t\t'order' => 'VariantOption.order ASC',\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t\t\t\t'ProductsInGroup'=>array(\n\t\t\t\t\t\t 'fields' => array(\n\t\t\t\t\t\t\t\t'id',\n\t\t\t\t\t\t\t\t'product_id'),\n\t\t\t\t\t\t \n\t\t\t\t\t\t 'ProductGroup'=>array(\n\t\t\t\t\t\t\t 'fields' => array(\n\t\t\t\t\t\t\t\t\t'id', \n\t\t\t\t\t\t\t\t\t'title', 'handle',\n\t\t\t\t\t\t\t\t\t'description', 'visible_product_count',\n\t\t\t\t\t\t\t\t\t'url', 'vendor_count'),\n\t\t\t\t\t\t )\n\t\t\t\t\t )\n\t\t\t\t ),\n\t\t\t\t\t'link' => array('Vendor'=>array('fields'=>array('id', 'title'))),\n\t\t\t\t);\n\t\t\t\n\t\t\t/**\n\t\t\t * $products is in the form of {n}=>array(Product, ProductImage, ProductsInGroup=>array(ProductGroup))\n\t\t\t **/\n\t\t\t$products = $this->Product->find('all', $conditionsForProduct);\n\t\t\t\n\t\t\t$originalIndex = array_keys($data['CartItem']);\n\t\t\t\n\t\t\t// then we use product_id as the index in $products to facilitate the insertion\n\t\t\t$products = Set::combine($products, '{n}.Product.id', '{n}');\n\t\t\t\n\t\t\t// now we insert the Product data\n\t\t\tforeach($data['CartItem'] as $id=>$item) {\n\t\t\t\t$product_id = $item['product_id'];\n\t\t\t\tif (!empty($products[$product_id])) {\n\t\t\t\t\t$data['CartItem'][$id]['Product'] = $products[$product_id]['Product'];\n\t\t\t\t\t$data['CartItem'][$id]['ProductImage'] = $products[$product_id]['ProductImage'];\n\t\t\t\t\t$data['CartItem'][$id]['ProductsInGroup'] = $products[$product_id]['ProductsInGroup'];\n\t\t\t\t\t$data['CartItem'][$id]['Variant']\t= $products[$product_id]['Variant'];\n\t\t\t\t\t$data['CartItem'][$id]['Vendor']\t= $products[$product_id]['Vendor'];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// now we put the original index back\n\t\t\t$cartItems = array_values($data['CartItem']);\n\t\t\t$data['CartItem'] = array_combine($originalIndex, $cartItems);\n\n\t\t}\n\t\t\n\t\treturn $data;\n\t}", "public function setParent(self $parent, string $parentAssociationMapping): void;", "public function images(){\n return $this->hasMany('App\\DogImage', 'dog_id', 'id');\n }", "function __construct()\n\t{\n parent::__construct();\n\t\t$this->set_table_name(\"vdo_gallerys\");\n\t\t\n\t\t$this->tbl_vdo_name = \"vdo\";\n\t\t//$this->tbl_product_type_name = \"product_type\";\n\t}", "public function buildRelations()\n {\n $this->addRelation('Label', '\\\\MediaProperty\\\\Label', RelationMap::MANY_TO_ONE, array('label_id' => 'id', ), null, null);\n $this->addRelation('Album', '\\\\MediaItem\\\\Album', RelationMap::ONE_TO_MANY, array('id' => 'artist_id', ), null, null, 'Albums');\n }", "public function initialize()\n {\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', array('alias' => 'Cargaestudiantes'));\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', array('alias' => 'Datosprofesiona'));\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', NULL);\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', NULL);\n }", "public function image()\n {\n return $this->hasMany('App\\Models\\Image');\n }", "public function comments()\n {\n return $this->hasMany(PhotoComment::class);\n }", "public function images()\n {\n return $this->hasMany('App\\Image');\n }", "public function images()\n {\n return $this->hasMany('App\\Image');\n }", "public function images()\n {\n return $this->hasMany('App\\Image');\n }", "public function images()\n {\n return $this->hasMany('App\\Image');\n }", "public function buildRelations()\n {\n $this->addRelation('ArtRequest', 'ArtRequestORM\\\\ArtRequest', RelationMap::ONE_TO_MANY, array('event_id' => 'event_id', ), 'CASCADE', 'CASCADE', 'ArtRequests');\n }", "public function images()\n {\n return $this->hasMany(BusinessListingImage::class);\n }", "public function products(){\n\t\treturn $this->hasMany('Product');\t\n\t}", "public function imagenes(){\n return $this->belongsToMany(Imagen::class);\n }", "public function initialize()\n {\n $this->hasMany('id', 'Movie', 'classification_id', array('alias' => 'Movie'));\n }", "public function products() {\r\n return $this->belongsToMany('App\\Product');\r\n }", "public function photoshoots()\n {\n return $this->hasMany(Photoshoot::class, 'request_id');\n }", "public function photos() {\n\t\treturn $this->belongsToMany('\\App\\Models\\Photo', 'tagsphotos', 'id_tag', 'id_photo');\n\t}" ]
[ "0.5997008", "0.5925393", "0.5756778", "0.57131916", "0.5632418", "0.5589473", "0.54623234", "0.5427783", "0.53538245", "0.5344459", "0.53411", "0.5283743", "0.52625775", "0.52566516", "0.5233465", "0.5230972", "0.5197283", "0.5193044", "0.5193044", "0.5186329", "0.517417", "0.5150636", "0.508615", "0.5015865", "0.50065684", "0.49921855", "0.49784967", "0.4975352", "0.49678668", "0.49441487", "0.4930216", "0.49243638", "0.4915076", "0.49139783", "0.4908217", "0.49023992", "0.4869843", "0.48375148", "0.48363656", "0.48217207", "0.4820601", "0.48104736", "0.48040193", "0.47992247", "0.47970432", "0.47938251", "0.4791302", "0.4774197", "0.47715443", "0.47712374", "0.47569227", "0.47531384", "0.47529206", "0.47519156", "0.4718722", "0.47105312", "0.47105312", "0.47103903", "0.47086248", "0.47029164", "0.46949685", "0.46931547", "0.46890998", "0.46765023", "0.4676495", "0.46716905", "0.46666092", "0.4659204", "0.4658947", "0.46564108", "0.46481624", "0.46473998", "0.46371683", "0.4628487", "0.4628301", "0.4616968", "0.46119428", "0.4611585", "0.46075428", "0.46053067", "0.46032593", "0.45985654", "0.45966154", "0.45965087", "0.45931953", "0.45902294", "0.4583189", "0.4580413", "0.4579691", "0.4579691", "0.4579691", "0.4579691", "0.4572135", "0.4555347", "0.4555035", "0.4553676", "0.45502138", "0.4544097", "0.45411786", "0.45410883" ]
0.68439764
0
Get the associated ChildTblProdPhotos object
public function getTblProdPhotos(ConnectionInterface $con = null) { if ($this->aTblProdPhotos === null && ($this->prod_id !== null)) { $this->aTblProdPhotos = ChildTblProdPhotosQuery::create()->findPk($this->prod_id, $con); // Because this foreign key represents a one-to-one relationship, we will create a bi-directional association. $this->aTblProdPhotos->setTblProdInfo($this); } return $this->aTblProdPhotos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function photos() {\n return $this->hasMany('App\\Models\\ProductPhoto');\n }", "public function getPhoto() {\n return $this->hasOne(Photo::className(), ['id' => 'photo_id']);\n }", "public function photo_product()\n {\n return $this->belongsTo(Photo_product::class);\n }", "public function photo()\n {\n return $this->belongsToMany(Photos::class,'photo_product','photo_id', 'product_id');\n }", "public function setTblProdPhotos(ChildTblProdPhotos $v = null)\n {\n if ($v === null) {\n $this->setProdId(NULL);\n } else {\n $this->setProdId($v->getProdId());\n }\n\n $this->aTblProdPhotos = $v;\n\n // Add binding for other direction of this 1:1 relationship.\n if ($v !== null) {\n $v->setTblProdInfo($this);\n }\n\n\n return $this;\n }", "public function getPicturesProduct()\n {\n $aVariantSelections = $this->getVariantSelections();\n if ($aVariantSelections && $aVariantSelections['oActiveVariant'] && !$aVariantSelections['blPerfectFit']) {\n return $aVariantSelections['oActiveVariant'];\n }\n\n return $this->getProduct();\n }", "public function productImage(){\n\t\treturn $this->hasmany('App\\ProductImages','product_id');\n\t}", "public function getImage()\n {\n return $this->hasOne(ProductImage::class, ['product_id' => 'id'])->where([\n 'product_image.main' => true\n ]);\n }", "public function featuredPhoto() {\n return $this->hasOne('App\\Models\\ProductPhoto')->whereFeatured(true);\n }", "public function getPhotos()\n {\n return $this->hasMany(Photo::className(), ['owner_id' => 'id']);\n }", "public function photo() {\n return $this->hasOne('Photo','id','photo_id');\n }", "public function SPPhotos()\n {\n // hasMany(RelatedModel, foreignKeyOnRelatedModel = sp_id, localKey = sp_id)\n return $this->hasMany('App\\SPPhoto','sp_id','sp_id');\n }", "public function getGallery(){\n return $this->hasMany(ProductGallery::class, 'product_id','id');\n }", "public function images()\n {\n return $this->hasMany('fooCart\\src\\ProductImage', 'product_id', 'product_id');\n }", "public function photo(){\n // Not \"hasOne\" which would try and match for a post_id column in the \"photos\" table\n \treturn $this->belongsTo('App\\Photo');\n }", "public function photos()\n {\n return $this->hasMany('App\\Entities\\QuoteOptionHotelRoomPhoto', 'quote_option_room_id', 'quote_option_room_id');\n }", "public function images()\n\t{\n\t\treturn $this->hasMany(ProductImage::class);\n\t}", "public function photos() {\n return $this->hasMany('\\P4\\Photo');\n }", "public function photographs()\n {\n return $this->hasMany('App\\Photograph');\n }", "public function photo()\n {\n \treturn $this->article->photos->first();\n }", "public function foto(){\n \treturn $this->hasOne('App\\Foto');\n }", "public function getImages()\n {\n return $this->hasMany(ProductImage::class, ['product_id' => 'id']);\n }", "public function photos(){\n\n\t\treturn $this->hasMany('App\\Photo');\n\n\t}", "public function getPicture(){\n\t\t$criteria = new CDbCriteria();\n\t\t$criteria->condition = \"emp_id = :EMPID\";\n\t\t$criteria->params[':EMPID'] = $this->emp_id;\n\t\t$criteria->select = \"pic,location_pic\";\n\t\t$empl_pic = Employees::model()->find($criteria);\n\t\treturn \t$empl_pic;\n\t}", "public function photos()\n {\n return $this->hasOne('App\\Customerfile','customer_id','id');\n }", "public function images()\n {\n return $this->hasMany(ProductImageProxy::modelClass(), 'seller_product_id');\n }", "function getThumbInfo($imageid) { \t\n \t$sql = \"SELECT opm_products.productname, properties.property\n \t\t\tFROM opm_images\n \t\t\tLEFT JOIN opm_products ON opm_products.opm_productid = opm_images.opm_productid\n \t\t\tLEFT JOIN properties ON properties.propertyid = opm_products.propertyid\n \t\t\tWHERE opm_images.imageid = \" . $this->db->escape($imageid);\n \t\t\t\n \t$query = $this->db->query($sql);\n \t$row = $query->row();\n\t\t\n \techo $row->property .\" // \".$row->productname;\n \n }", "public function getFotoProducto()\n {\n return $this->fotoProducto;\n }", "public function photo()\n {\n return $this->hasOne('App\\DescriptionPhoto','description_id');\n }", "public function pictures() {\n return $this->hasMany('App\\Models\\Picture');\n }", "public function multiplePhoto()\n {\n return $this->hasMany('App\\DescriptionPhoto','description_id')->orderBy('id','desc');\n }", "public function fotos()\n {\n return $this->hasMany(foto::class,'fk_id_producto');\n }", "public function product_galleries() {\n return $this->hasMany(ProductGallery::class, 'product_id', 'id');\n }", "public function photos()\n {\n return $this->hasMany('App\\Photo');\n }", "public function photos()\n {\n return $this->hasMany('App\\Photo');\n }", "public function photos() {\n \treturn $this->morphMany('App\\Photo', 'imageable');\n }", "public function product() {\n // $productImage->product\n return $this->belongsTo(Product::class);\n }", "public function pictures()\n {\n return $this->hasMany(Picture::class);\n }", "public function photoshoots()\n {\n return $this->hasMany(Photoshoot::class, 'request_id');\n }", "public function image()\n {\n\n return $this->hasMany(ProductImage::class);\n \n }", "public function findAllPhoto(){\n $query= $this->getEntityManager()\n ->createQuery(\"Select p FROM PidevFrontOfficeBundle:Galerie p ORDER BY p.idEvennement ASC\");\n return $query->getResult();\n }", "public function photos() {\n\t\treturn $this->belongsToMany('\\App\\Models\\Photo', 'tagsphotos', 'id_tag', 'id_photo');\n\t}", "public function photos()\n {\n return $this->morphedByMany(Photo::class, 'taggable');\n }", "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public function photo() {\n return $this->belongsTo('App\\Photo');\n }", "function goods_viewImgProduct(){\n $sql = \"select * from gd_image where get_imgid=:get_imgid order by gd_imgid ASC\";\n $args = [':get_imgid'=>$this->id];\n return $this->run($sql, $args);\n }", "public function getPictureGallery()\n {\n if ($this->_aPicGallery === null) {\n //get picture gallery\n $this->_aPicGallery = $this->getPicturesProduct()->getPictureGallery();\n }\n\n return $this->_aPicGallery;\n }", "public function photos()\n {\n return $this->hasMany(Photo::class, 'album_id', 'id');\n }", "public function images(){\n return $this->hasOne(Images::class);\n }", "public function getPictures() : ?array\n {\n return $this->get('pictures', 'products');\n }", "public function photos()\n {\n return $this->hasMany(Photo::class, 'photo_album_id');\n }", "public function photos(){\n return $this->morphMany('cms\\Photo', 'imageable');\n }", "public function product_detail()\n {\n return $this->has_one('Product_Detail');\n }", "public function photos() {\n return $this->hasMany('App\\FlyerPhoto');\n }", "public function getPhotos()\n {\n return $this->photos;\n }", "public function photos() {\n return $this->morphMany('App\\Models\\Photo', 'imageable'); //'imageable' - method in Photos model\n }", "public function images()\n {\n return $this->hasMany(PropertyImage::class,'property_id', 'id');\n }", "function get_child_product($entity_id)\n\t{\n\t\t$relTable = Mage::getSingleton('core/resource')->getTableName('catalog_product_relation');\n\t\t$sql = \"SELECT child_id FROM `\" . $relTable . \"`\n\t\t\t\t\t\tWHERE parent_id = '\" . (int) $entity_id . \"'\";\n\t\t$prods = Mage::getSingleton('core/resource')->getConnection('core_read')->fetchAll($sql);\n\t\tif ($prods) {\n\t\t\treturn $prods;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function photos(): HasMany\n\t{\n\t\treturn $this->hasMany('App\\Models\\Photo', 'album_id', 'id');\n\t}", "public function getFotos()\n\t{\n\t\treturn $this->fotos;\n\t}", "public function getPhoto($id);", "public function Photographies()\n {\n return $this->hasMany('App\\Photography','id_category');\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function images(){\n return $this->hasMany('App\\DogImage', 'dog_id', 'id');\n }", "public function photos()\n {\n return $this->morphToMany(\n 'App\\RentalManager\\AddOns\\Photo', // model\n 'node', // node\n 'photo_node', // table\n 'node_id',\n 'photo_id'\n );\n }", "public function pic()\n {\n return $this->belongsTo('App\\Pic');\n }", "public function pic()\n {\n return $this->belongsTo('App\\Pic');\n }", "public function getProduct()\r\n {\r\n return $this->item->getParentObject()->getProduct();\r\n }", "public function photos()\n {\n return $this->hasMany(ItemsPhoto::class);\n }", "function get_by_poi($production_order_item_id)\r\n {\r\n $sql = 'SELECT\r\n id,\r\n excluido,\r\n date_record,\r\n production_order_item_id,\r\n block_id,\r\n path,\r\n file,\r\n type,\r\n size,\r\n obs\r\n FROM block_photo\r\n WHERE production_order_item_id = ? \r\n AND excluido = \\'N\\' ';\r\n\r\n $params[] = $production_order_item_id;\r\n\r\n $query = DB::query($sql, $params);\r\n \r\n $photos = array();\r\n\r\n foreach ($query as $key => $row) {\r\n $photo = new self;\r\n $photo->fill($row);\r\n $photos[] = $photo;\r\n }\r\n\r\n return $photos;\r\n }", "public function getAllPictureInfo($p_pet_id){\n $stmt = $this->adapter->conn->prepare(\n \"SELECT * \".\n \"FROM PICTURES \".\n \"WHERE pet_id=?;\");\n $stmt->bindParam(1,$p_pet_id);\n $result = null;\n try{\n $result = $this->adapter->executeFetchPrepared($stmt);\n }catch(PDOException $e){\n return null;\n }\n \n return $result; \n }", "public function photos()\n {\n return $this->hasMany('App\\AgentPhoto', 'agent_id');\n }", "public function getProduct0()\n {\n return $this->hasOne(Products::className(), ['id' => 'product']);\n }", "public function getImages()\n {\n return GalleryImage::get()->filter('ParentID', $this->AllChildren()->column('ID') ?: null);\n }", "public function getImages()\n {\n return $this->hasMany(Image::className(), ['venueId' => 'id']);\n }", "public function imagenes() {\n return $imagenes = ImagenesProducto::where('fk_producto',$this->codigo) -> orderBy('featured','desc') -> get(); //para mostrar las imagenes ordenadas por las destacada\n }", "public function location()\n {\n return $this->hasOne(PhotoLocation::class);\n }", "public function galleries()\n {\n return $this->belongsTo(Gallery::class);\n }", "public function products() {\n\t\treturn $this->hasOne('App\\Product', 'id', 'product_id');\n\t}", "public function images(): HasMany\n {\n return $this->hasMany('App\\Models\\ProductImage');\n }", "public function thumbs() {\n return $this->hasMany('App\\Thumb');\n }", "public function photos()\n {\n return $this->hasMany(TypesOfHomePhoto::class);\n }", "public function photos(){\n return $this->morphMany('App\\Models\\Photo','image');\n \n }", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `gallery_id`, `name`, `path`, `path_min`, `description`, `active`, `last_modified`, `created` FROM `photos` WHERE `id` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Photos();\n $obj->hydrate($row);\n PhotosPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function thumbnails()\n {\n return $this->hasMany('App\\DescriptionThumbnail','category_id');\n }", "public function getImages()\n {\n return $this->hasMany(self::class, ['file_id' => 'file_id']);\n }", "public function getPhotoId()\n {\n return $this->photoId;\n }", "public function multiImageResultImages()\n {\n return $this->hasMany('App\\MultiImageResultImage');\n }", "function Product() {\r\n\t\treturn $this->owner;\r\n\t}", "function requestFotosProduto($produto_id)\n {\n\n $conn = new db_conect();\n $query = 'SELECT caminho_foto FROM img_produto WHERE produto_fk = ' . $produto_id . ';';\n $result = $conn->selectCustom($query);\n return $result;\n }", "public function getProducto(){\n $sql='SELECT idProducto, nombre, precio, descripcion, foto, estado, idCategoria, cantidad, idProveedor from producto WHERE idProducto = ?';\n $params=array($this->id);\n return Database::getRow($sql,$params);\n }", "public function getPhoto()\n {\n return $this->photo;\n }", "public function photos(){\n return $this->hasMany('App\\Models\\PhotoNews', 'news_album_id');\n }", "public function images()\n {\n return $this->HasMany('App\\Models\\Properties\\Image')->orderBy('index', 'asc');\n }", "public function images()\n {\n return $this->hasMany(BusinessListingImage::class);\n }", "function getPhotoDetail($photo_id=null){\r\n\t\tif($photo_id==null) return array();\r\n\t\t$this->db->select('*');\r\n\t\t$this->db->where(array('id'=>$photo_id));\r\n\t\t$recordSet = $this->db->get(TBL_ALBUM_HAS_PHOTOS);\r\n\t\t$data=$recordSet->result() ;\r\n \t\treturn $data;\r\n\t}", "public function getPhoto()\n {\n return $this->execute('GET', '/' . self::PHOTO);\n }" ]
[ "0.63446426", "0.6282922", "0.62145877", "0.62004745", "0.6195938", "0.61836874", "0.618317", "0.61496836", "0.6145557", "0.6032552", "0.60284215", "0.6003343", "0.5901852", "0.58515775", "0.58360404", "0.5822309", "0.5792609", "0.5789036", "0.57851845", "0.5773946", "0.5770099", "0.5767073", "0.5752159", "0.5751963", "0.57390106", "0.57319015", "0.5691649", "0.56824434", "0.56725866", "0.56523633", "0.5646811", "0.5638424", "0.55926365", "0.5581861", "0.5581861", "0.5533363", "0.55271643", "0.5526131", "0.5514828", "0.5509831", "0.5505715", "0.55009156", "0.54930246", "0.5487704", "0.5483127", "0.5482664", "0.5478457", "0.5475153", "0.54747504", "0.5469691", "0.5452061", "0.542987", "0.5427038", "0.54180986", "0.5409777", "0.5407917", "0.54069173", "0.53986996", "0.53822446", "0.5378233", "0.53781253", "0.53769326", "0.537135", "0.537135", "0.537135", "0.537135", "0.53691953", "0.5364058", "0.5345189", "0.5345189", "0.5342343", "0.5335525", "0.5324988", "0.532228", "0.5319791", "0.53122926", "0.53065336", "0.5304498", "0.5301349", "0.5299727", "0.52901685", "0.5283287", "0.5280445", "0.5260042", "0.52579993", "0.5253978", "0.5248254", "0.5230565", "0.5229222", "0.5222344", "0.5221004", "0.5216851", "0.5208224", "0.5194634", "0.5186573", "0.51834357", "0.5180792", "0.51772434", "0.51741093", "0.5157348" ]
0.7099568
0