query
stringlengths
9
43.3k
document
stringlengths
17
1.17M
metadata
dict
negatives
sequencelengths
0
30
negative_scores
sequencelengths
0
30
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
Get the montant general.
public function getMontantGeneral() { return $this->montantGeneral; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMontant()\n {\n return $this->montant;\n }", "public function getMontant()\n {\n return $this->montant;\n }", "public function getMontant() {\n return $this->montant;\n }", "public function getMontantTva() {\n return $this->montantTva;\n }", "public function getMontant_taxe()\n {\n return $this->montant_taxe;\n }", "public function setMontantGeneral($montantGeneral) {\n $this->montantGeneral = $montantGeneral;\n return $this;\n }", "public function getMontacargasCiclosmant()\n {\n\n return $this->montacargas_ciclosmant;\n }", "public function getSubrogationMontant() {\n return $this->subrogationMontant;\n }", "public function getMontantTes() {\n return $this->montantTes;\n }", "public function getMontantTtc() {\n return $this->montantTtc;\n }", "public function getMontant_vente()\n {\n return $this->montant_vente;\n }", "public function getMontantHt() {\n return $this->montantHt;\n }", "public function getMontant_ht()\n {\n return $this->montant_ht;\n }", "public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }", "public function GetGeneral(){\r\r\n\t\treturn self::$general;\r\r\n\t}", "public function getGlobalMoyenne() {\r\n $query = \"SELECT AVG(MOYGENERALE) AS MOYCLASSE, MIN(MOYGENERALE) AS MOYMIN, \"\r\n . \"MAX(MOYGENERALE) AS MOYMAX \"\r\n . \"FROM (SELECT SUM(MOYENNE*COEFF)/SUM(COEFF) AS MOYGENERALE \"\r\n . \"FROM tmp_notes GROUP BY IDELEVE ORDER BY MOYGENERALE DESC) TOTALS \";\r\n return $this->row($query);\r\n }", "public function getMontantTtc()\n {\n $montant_ttc = $this->montant;\n\n foreach ($this->tvas as $tva) {\n $montant_ttc += $tva->getMontantTva();\n }\n\n return $montant_ttc;\n }", "public function getMontantHtCde() {\n return $this->montantHtCde;\n }", "public function getMaitre()\n {\n return $this->maitre;\n }", "public function getMontacargasT()\n {\n\n return $this->montacargas_t;\n }", "public function getMontacargasP()\n {\n\n return $this->montacargas_p;\n }", "public function getMateria(){\n\t\treturn $this->materia;\n }", "public function getmnem()\n {\n return $this->mnem;\n }", "public function getCoMantenimiento()\n\t{\n\t\treturn $this->co_mantenimiento;\n\t}", "public function getMataPelajaran();", "public function getMvat()\n {\n return $this->mvat;\n }", "public function getMatricule(){\n return $this->$Matricule;\n }", "public function getMatricule()\n {\n return $this->matricule;\n }", "public function getMetageneration()\n {\n return $this->metageneration;\n }", "public function getMatricule()\n {\n return $this->matricule;\n }" ]
[ "0.7356934", "0.7356934", "0.733964", "0.69096184", "0.661266", "0.6604905", "0.655474", "0.63536555", "0.6299388", "0.6198498", "0.6168159", "0.6161563", "0.61235964", "0.6098129", "0.6092286", "0.60855985", "0.60425824", "0.6024673", "0.5994141", "0.5930417", "0.58527297", "0.58108354", "0.5777393", "0.5766591", "0.5753937", "0.5729346", "0.5714953", "0.5714172", "0.57139164", "0.57119125" ]
0.8537222
0
Get the montant particulier.
public function getMontantParticulier() { return $this->montantParticulier; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMontant()\n {\n return $this->montant;\n }", "public function getMontant()\n {\n return $this->montant;\n }", "public function getMontant() {\n return $this->montant;\n }", "public function getMontant_vente()\n {\n return $this->montant_vente;\n }", "public function getMontantTva() {\n return $this->montantTva;\n }", "public function getMontantGeneral() {\n return $this->montantGeneral;\n }", "public function getMontantHtCde() {\n return $this->montantHtCde;\n }", "public function getSubrogationMontant() {\n return $this->subrogationMontant;\n }", "public function getMontantTes() {\n return $this->montantTes;\n }", "public function getMontantHt() {\n return $this->montantHt;\n }", "public function getMontant_taxe()\n {\n return $this->montant_taxe;\n }", "public function getMontacargasCiclosmant()\n {\n\n return $this->montacargas_ciclosmant;\n }", "public function getMontantAnnuel1(): ?float {\n return $this->montantAnnuel1;\n }", "public function getMontantTtc() {\n return $this->montantTtc;\n }", "public function getMontantBudget() {\n return $this->montantBudget;\n }", "function getMontantArticle($numserie) {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->article[$numserie]['montantHT']));\n else return 0;\n }", "public function getMontant_ht()\n {\n return $this->montant_ht;\n }", "public function getCasParticulier() {\n return $this->casParticulier;\n }", "public function getMontantFixe(): ?bool {\n return $this->montantFixe;\n }", "public function getMontantAnnuel5(): ?float {\n return $this->montantAnnuel5;\n }", "public function getMontacargasE()\n {\n\n return $this->montacargas_e;\n }", "public function getMontacargasP()\n {\n\n return $this->montacargas_p;\n }", "public function getMontantTtc()\n {\n $montant_ttc = $this->montant;\n\n foreach ($this->tvas as $tva) {\n $montant_ttc += $tva->getMontantTva();\n }\n\n return $montant_ttc;\n }", "public function getMontantAnnuel2(): ?float {\n return $this->montantAnnuel2;\n }", "public function min()\n {\n $minimum = round($this->centre - $this->centre * $this->deviation);\n\n return $this->unsigned ? max($minimum, 0) : $minimum;\n }", "public function getMontantAnnuel4(): ?float {\n return $this->montantAnnuel4;\n }", "public function setMontantParticulier($montantParticulier) {\n $this->montantParticulier = $montantParticulier;\n return $this;\n }", "public function getMontantAnnuel3(): ?float {\n return $this->montantAnnuel3;\n }", "public function getRepriseMotifMed() {\n return $this->repriseMotifMed;\n }", "public function getMatricule()\n {\n return $this->matricule;\n }" ]
[ "0.7361016", "0.7361016", "0.7310926", "0.6805924", "0.6554442", "0.64709204", "0.6429309", "0.64190423", "0.63975674", "0.62538606", "0.6220548", "0.61932486", "0.6186035", "0.6182788", "0.60515356", "0.6046053", "0.60227406", "0.5927286", "0.5813694", "0.58095413", "0.5787928", "0.5762036", "0.5735608", "0.57305527", "0.56982785", "0.5663997", "0.5657905", "0.5621486", "0.56126386", "0.5577121" ]
0.8145472
0
Get the mt cg euro ou franc.
public function getMtCgEuroOuFranc() { return $this->mtCgEuroOuFranc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMtCpEuroOuFranc() {\n return $this->mtCpEuroOuFranc;\n }", "function getUTM()\r\n\t{\r\n\t\t// get UTM letter\r\n\t\tif ( $this->nLat <= 84.0 && $this->nLat >= 72.0 )\r\n\t\t\t$utmLetter = 'X';\r\n\t\telse if ( $this->nLat < 72.0 && $this->nLat >= 64.0 )\r\n\t\t\t$utmLetter = 'W';\r\n\t\telse if ( $this->nLat < 64.0 && $this->nLat >= 56.0 )\r\n\t\t\t$utmLetter = 'V';\r\n\t\telse if ( $this->nLat < 56.0 && $this->nLat >= 48.0 )\r\n\t\t\t$utmLetter = 'U';\r\n\t\telse if ( $this->nLat < 48.0 && $this->nLat >= 40.0 )\r\n\t\t\t$utmLetter = 'T';\r\n\t\telse if ( $this->nLat < 40.0 && $this->nLat >= 32.0 )\r\n\t\t\t$utmLetter = 'S';\r\n\t\telse if ( $this->nLat < 32.0 && $this->nLat >= 24.0 )\r\n\t\t\t$utmLetter = 'R';\r\n\t\telse if ( $this->nLat < 24.0 && $this->nLat >= 16.0 )\r\n\t\t\t$utmLetter = 'Q';\r\n\t\telse if ( $this->nLat < 16.0 && $this->nLat >= 8.0 )\r\n\t\t\t$utmLetter = 'P';\r\n\t\telse if ( $this->nLat < 8.0 && $this->nLat >= 0.0 )\r\n\t\t\t$utmLetter = 'N';\r\n\t\telse if ( $this->nLat < 0.0 && $this->nLat >= -8.0 )\r\n\t\t\t$utmLetter = 'M';\r\n\t\telse if ( $this->nLat < -8.0 && $this->nLat >= -16.0 )\r\n\t\t\t$utmLetter = 'L';\r\n\t\telse if ( $this->nLat < -16.0 && $this->nLat >= -24.0 )\r\n\t\t\t$utmLetter = 'K';\r\n\t\telse if ( $this->nLat < -24.0 && $this->nLat >= -32.0 )\r\n\t\t\t$utmLetter = 'J';\r\n\t\telse if ( $this->nLat < -32.0 && $this->nLat >= -40.0 )\r\n\t\t\t$utmLetter = 'H';\r\n\t\telse if ( $this->nLat < -40.0 && $this->nLat >= -48.0 )\r\n\t\t\t$utmLetter = 'G';\r\n\t\telse if ( $this->nLat < -48.0 && $this->nLat >= -56.0 )\r\n\t\t\t$utmLetter = 'F';\r\n\t\telse if ( $this->nLat < -56.0 && $this->nLat >= -64.0 )\r\n\t\t\t$utmLetter = 'E';\r\n\t\telse if ( $this->nLat < -64.0 && $this->nLat >= -72.0 )\r\n\t\t\t$utmLetter = 'D';\r\n\t\telse if ( $this->nLat < -72.0 && $this->nLat >= -80.0 )\r\n\t\t\t$utmLetter = 'C';\r\n\t\telse\r\n\t\t\t$utmLetter = 'Z'; //returns 'Z' if the lat is outside the UTM limits of 84N to 80S\r\n\r\n\t\t$zone = (int) ( ( $this->nLon + 180 ) / 6 ) + 1;\r\n\r\n\t\tif ( $this->nLat >= 56.0 && $this->nLat < 64.0 && $this->nLon >= 3.0 && $this->nLon < 12.0 ) $zone = 32;\r\n\r\n\t\t// Special zones for Svalbard.\r\n\t\tif ($this->nLat >= 72.0 && $this->nLat < 84.0 )\r\n\t\t{\r\n\t\t\tif ( $this->nLon >= 0.0 && $this->nLon < 9.0 )\r\n\t\t\t\t$zone = 31;\r\n\t\t\telse if ( $this->nLon >= 9.0 && $this->nLon < 21.0 )\r\n\t\t\t\t$zone = 33;\r\n\t\t\telse if ( $this->nLon >= 21.0 && $this->nLon < 33.0 )\r\n\t\t\t\t$zone = 35;\r\n\t\t\telse if ( $this->nLon >= 33.0 && $this->nLon < 42.0 )\r\n\t\t\t\t$zone = 37;\r\n\t\t}\r\n\r\n\t\t$cs2csresult = $this->getCore(\"+proj=utm +datum=WGS84 +zone=$zone\");\r\n\r\n\t\treturn Array('zone' => $zone, 'letter' => $utmLetter, 'north' => 'N ' . floor($cs2csresult[1]), 'east' => 'E ' . floor($cs2csresult[0]));\r\n\t}", "public function getNumeroCgm() {\n return $this->iNumeroCgm;\n }", "public function getFornecedor() {\n\n if (empty($this->oCgm) && !empty($this->iCodigoCgm)) {\n $this->setFornecedor(CgmFactory::getInstanceByCgm($this->iCodigoCgm));\n }\n return $this->oCgm;\n }", "public function getGRUPO_ETNICO()\r\n {\r\n return $this->GRUPO_ETNICO;\r\n }", "public function getGRUPOETNICO()\r\n {\r\n return $this->GRUPO_ETNICO;\r\n }", "public function getageEu()\n {\n return $this->age_eu;\n }", "public function getGlobalCurrencyCode();", "public function getGender(){ // fungsi get untuk mengambil nilai dari gender\n printNumC();//\n return $this->gender;\n }", "public function setMtCgEuroOuFranc($mtCgEuroOuFranc) {\n $this->mtCgEuroOuFranc = $mtCgEuroOuFranc;\n return $this;\n }", "public function getCgm() {\n\n if (!empty($this->iCodigoCGM)) {\n $this->oCgm = CgmFactory::getInstanceByCgm($this->iCodigoCGM);\n }\n return $this->oCgm;\n }", "public function getCpf() {\n return $this->oCgm->getCpf();\n }", "public function getCGU()\n\t{\n\t\t$this->db->where('titre = \"Terme-condition-utilisation\"');\n\t\t$Query = $this->db->get(\"mention\");\n\t\tif($Query->num_rows() > 0 ){\n\t\t\tforeach ($Query->result() as $mentionsCGU)\n\t\t\t{\n\t\t\t\t$data[] = $mentionsCGU;\n\t\t\t}\n\t\n\t\t\treturn $data;\n\t\t}\n\t}", "public function getWholeGender()\n\t{\n\t\tif($this->gender == \"m\"){\n\t\t\treturn \"muž\";\n\t\t}elseif($this->gender == \"f\"){\n\t\t\treturn \"žena\";\n\t\t}\n\t\treturn;\n\t}", "function getLocale();", "public function getMontantHtCde() {\n return $this->montantHtCde;\n }", "public function getCelular()\n\t{\n\t\treturn $this->celular;\n\t}", "public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }", "public function getUm()\n {\n return isset($this->um) ? $this->um : null;\n }", "function utilgsmnumber($number){\n return $number;\n }", "function ucapan($g,$u){\n\tif($g == \"Wanita\" && $u > 24 ){\n\t\t$ucapan = \"Ibu\";\n\t}elseif($g == \"Pria\" && $u > 24 ){\n\t\t$ucapan = \"Bapak\";\n\t}elseif($g == \"Pria\"){\n\t\t$ucapan = \"Saudara\";\n\t}else{\n\t\t$ucapan = \"Saudari\";\n\t}\n\treturn $ucapan;\n}", "abstract public function getLocaleCode();", "public function getBachilleratofecha()\n\t{\n\t\treturn $this->bachilleratofecha;\n\t}", "public function getCodeMetier(): ?string {\n return $this->codeMetier;\n }", "public static function getMileageString(){\n $mileagePref = sfContext::getInstance()->getUser()->getAttribute('mileage',null,'subscriber');\n $mileString = \"miles\";\n if($mileagePref==0){\n $mileString=\"km\";\n }\n return $mileString;\n }", "public function getCurrency(): string;", "public function getCurrency(): string;", "public function get_ctc_type($type){\n\t\tswitch($type){\n\t\t\tcase 'T':\n\t\t\t$value = 'Thousands';\n\t\t\tbreak;\n\t\t\tcase 'L':\n\t\t\t$value = 'Lacs';\n\t\t\tbreak;\n\t\t\tcase 'C':\n\t\t\t$value = 'Crore';\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\treturn $value;\n }", "public function getGenderCode($quote)\n {\n $gender = $quote->getCustomerGender();\n if ($gender) {\n $attribute = Mage::getModel('eav/entity_attribute')->loadByCode('customer', 'gender');\n $option = $attribute->getFrontend()->getOption($gender);\n\n switch (strtolower($option)) {\n case 'male':\n return 'M';\n case 'female':\n return 'F';\n }\n }\n\n $gender = $quote->getCustomerPrefix();\n if ($gender) {\n switch (strtolower($gender)) {\n case 'herr':\n case 'mr':\n return 'M';\n case 'frau':\n case 'mrs':\n return 'F';\n }\n }\n return 'U';\n }", "public function getGenderCode($quote)\n {\n $gender = $quote->getCustomerGender();\n if ($gender) {\n $attribute = Mage::getModel('eav/entity_attribute')->loadByCode('customer', 'gender');\n $option = $attribute->getFrontend()->getOption($gender);\n\n switch (strtolower($option)) {\n case 'male':\n return 'M';\n case 'female':\n return 'F';\n }\n }\n\n $gender = $quote->getCustomerPrefix();\n if ($gender) {\n switch (strtolower($gender)) {\n case 'herr':\n case 'mr':\n return 'M';\n case 'frau':\n case 'mrs':\n return 'F';\n }\n }\n return 'U';\n }" ]
[ "0.7239235", "0.6447964", "0.6013873", "0.5902233", "0.58915937", "0.58721757", "0.58065593", "0.5778419", "0.5713487", "0.57025003", "0.5689995", "0.5686294", "0.56852114", "0.56698525", "0.5660657", "0.56601804", "0.5616415", "0.56086683", "0.55599755", "0.55382174", "0.5530086", "0.55126804", "0.5509516", "0.54997563", "0.54910094", "0.5488949", "0.5488949", "0.5486486", "0.5480326", "0.5480326" ]
0.7987385
0
Get the mt cp euro ou franc.
public function getMtCpEuroOuFranc() { return $this->mtCpEuroOuFranc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMtCgEuroOuFranc() {\n return $this->mtCgEuroOuFranc;\n }", "function getUTM()\r\n\t{\r\n\t\t// get UTM letter\r\n\t\tif ( $this->nLat <= 84.0 && $this->nLat >= 72.0 )\r\n\t\t\t$utmLetter = 'X';\r\n\t\telse if ( $this->nLat < 72.0 && $this->nLat >= 64.0 )\r\n\t\t\t$utmLetter = 'W';\r\n\t\telse if ( $this->nLat < 64.0 && $this->nLat >= 56.0 )\r\n\t\t\t$utmLetter = 'V';\r\n\t\telse if ( $this->nLat < 56.0 && $this->nLat >= 48.0 )\r\n\t\t\t$utmLetter = 'U';\r\n\t\telse if ( $this->nLat < 48.0 && $this->nLat >= 40.0 )\r\n\t\t\t$utmLetter = 'T';\r\n\t\telse if ( $this->nLat < 40.0 && $this->nLat >= 32.0 )\r\n\t\t\t$utmLetter = 'S';\r\n\t\telse if ( $this->nLat < 32.0 && $this->nLat >= 24.0 )\r\n\t\t\t$utmLetter = 'R';\r\n\t\telse if ( $this->nLat < 24.0 && $this->nLat >= 16.0 )\r\n\t\t\t$utmLetter = 'Q';\r\n\t\telse if ( $this->nLat < 16.0 && $this->nLat >= 8.0 )\r\n\t\t\t$utmLetter = 'P';\r\n\t\telse if ( $this->nLat < 8.0 && $this->nLat >= 0.0 )\r\n\t\t\t$utmLetter = 'N';\r\n\t\telse if ( $this->nLat < 0.0 && $this->nLat >= -8.0 )\r\n\t\t\t$utmLetter = 'M';\r\n\t\telse if ( $this->nLat < -8.0 && $this->nLat >= -16.0 )\r\n\t\t\t$utmLetter = 'L';\r\n\t\telse if ( $this->nLat < -16.0 && $this->nLat >= -24.0 )\r\n\t\t\t$utmLetter = 'K';\r\n\t\telse if ( $this->nLat < -24.0 && $this->nLat >= -32.0 )\r\n\t\t\t$utmLetter = 'J';\r\n\t\telse if ( $this->nLat < -32.0 && $this->nLat >= -40.0 )\r\n\t\t\t$utmLetter = 'H';\r\n\t\telse if ( $this->nLat < -40.0 && $this->nLat >= -48.0 )\r\n\t\t\t$utmLetter = 'G';\r\n\t\telse if ( $this->nLat < -48.0 && $this->nLat >= -56.0 )\r\n\t\t\t$utmLetter = 'F';\r\n\t\telse if ( $this->nLat < -56.0 && $this->nLat >= -64.0 )\r\n\t\t\t$utmLetter = 'E';\r\n\t\telse if ( $this->nLat < -64.0 && $this->nLat >= -72.0 )\r\n\t\t\t$utmLetter = 'D';\r\n\t\telse if ( $this->nLat < -72.0 && $this->nLat >= -80.0 )\r\n\t\t\t$utmLetter = 'C';\r\n\t\telse\r\n\t\t\t$utmLetter = 'Z'; //returns 'Z' if the lat is outside the UTM limits of 84N to 80S\r\n\r\n\t\t$zone = (int) ( ( $this->nLon + 180 ) / 6 ) + 1;\r\n\r\n\t\tif ( $this->nLat >= 56.0 && $this->nLat < 64.0 && $this->nLon >= 3.0 && $this->nLon < 12.0 ) $zone = 32;\r\n\r\n\t\t// Special zones for Svalbard.\r\n\t\tif ($this->nLat >= 72.0 && $this->nLat < 84.0 )\r\n\t\t{\r\n\t\t\tif ( $this->nLon >= 0.0 && $this->nLon < 9.0 )\r\n\t\t\t\t$zone = 31;\r\n\t\t\telse if ( $this->nLon >= 9.0 && $this->nLon < 21.0 )\r\n\t\t\t\t$zone = 33;\r\n\t\t\telse if ( $this->nLon >= 21.0 && $this->nLon < 33.0 )\r\n\t\t\t\t$zone = 35;\r\n\t\t\telse if ( $this->nLon >= 33.0 && $this->nLon < 42.0 )\r\n\t\t\t\t$zone = 37;\r\n\t\t}\r\n\r\n\t\t$cs2csresult = $this->getCore(\"+proj=utm +datum=WGS84 +zone=$zone\");\r\n\r\n\t\treturn Array('zone' => $zone, 'letter' => $utmLetter, 'north' => 'N ' . floor($cs2csresult[1]), 'east' => 'E ' . floor($cs2csresult[0]));\r\n\t}", "public function getCpf()\n {\n return $this->cpf;\n }", "public function getCpf()\n {\n return $this->cpf;\n }", "public function getCpf() {\n return $this->oCgm->getCpf();\n }", "public function getCp()\n {\n return $this->cp;\n }", "public function getIndemniteCp(): ?float {\n return $this->indemniteCp;\n }", "public function getCP() {\n\t\treturn $this->cp;\n\t}", "public function getNuCpf()\n\t{\n\t\treturn $this->nu_cpf;\n\t}", "protected function getCertificacionEnergetica() {\n\t\tif (!empty($this->item['ec'])) {\n\t\t\treturn strtolower($this->item['ec']);\n\t\t}\n\t\treturn 'no disponible';\n\t}", "public function getCodeCaisseCp() {\n return $this->codeCaisseCp;\n }", "public function getCelular()\n\t{\n\t\treturn $this->celular;\n\t}", "public function getCodeOfficielCommuneLieuTrav() {\n return $this->codeOfficielCommuneLieuTrav;\n }", "public function getPrecioCompra()\n\t{\n\t\treturn $this->precio_compra;\n\t}", "public function getPvC()\n {\n return $this->pv_c;\n }", "public function getCouleur()\n {\n return $this->couleur;\n }", "public function getCep()\n\t{\t\n\t\t/**\n\t\t * retorno Cep cliente\n\t\t * @return Cep\n\t\t */\n\t\treturn $this->cep;\n\t}", "public function getPerPersonEquivFareCurrency()\n {\n return $this->PerPersonEquivFareCurrency;\n }", "public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }", "public function getMontoCuota()\n {\n return $this->monto_cuota;\n }", "public function getCofficeT()\n {\n return $this->coffice_t;\n }", "public function getProvisionCp(): ?float {\n return $this->provisionCp;\n }", "public function getRacineCpt(): ?string {\n return $this->racineCpt;\n }", "public function getMUNICIPIO()\r\n {\r\n return $this->MUNICIPIO;\r\n }", "public function getPaiementEnEuro() {\n return $this->paiementEnEuro;\n }", "public function getPreferredCMM() {}", "function getLocale();", "public function getCorrelativoCuot()\n {\n return $this->correlativo_cuot;\n }", "public function getCustpo()\n {\n return $this->custpo;\n }", "public function getPeriodeAu() {\n return $this->periodeAu;\n }" ]
[ "0.7303341", "0.6151648", "0.59112823", "0.59112823", "0.58921427", "0.5857651", "0.57863796", "0.57562053", "0.5701888", "0.57016164", "0.56658584", "0.56259066", "0.5622929", "0.5614875", "0.5596929", "0.55920243", "0.5576041", "0.55584407", "0.5552015", "0.55389225", "0.5533599", "0.5532417", "0.5526961", "0.55265296", "0.5512059", "0.5506586", "0.55022854", "0.5493343", "0.5480916", "0.54782325" ]
0.77591896
0
Get the mt sal brut moins150 h.
public function getMtSalBrutMoins150H() { return $this->mtSalBrutMoins150H; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMtSalBrutMoins600H() {\n return $this->mtSalBrutMoins600H;\n }", "public function setMtSalBrutMoins150H($mtSalBrutMoins150H) {\n $this->mtSalBrutMoins150H = $mtSalBrutMoins150H;\n return $this;\n }", "public function setMtSalBrutMoins600H($mtSalBrutMoins600H) {\n $this->mtSalBrutMoins600H = $mtSalBrutMoins600H;\n return $this;\n }", "public function getMontantHt() {\n return $this->montantHt;\n }", "public function getMontant_ht()\n {\n return $this->montant_ht;\n }", "function getTotalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->totalHT));\n else return 0;\n }", "function getHhRent(){\n\t\treturn $this->hhRentAmount;\n\t}", "public function getHival() {}", "function tiemposHMS($min){\n $min=(int)$min;\n $heure=(int)($min/60);\n $minute=(($min/60)-$heure)*60; \n return $heure .':' . $minute; \n \n \n \n }", "function hms($duree = 0) \n\t{\n\t\t$heures = round($duree / 3600);\n\t\t$minutes = round(($duree - $heures * 3600) / 60);\n\t\t$secondes = round(($duree - $heures * 3600 - $minutes * 60) / 60);\n\n\t\treturn str_pad($heures, 2, \"0\", STR_PAD_LEFT).':'.str_pad($minutes, 2, \"0\", STR_PAD_LEFT).':'.str_pad($secondes, 2, \"0\", STR_PAD_LEFT);\n\t}", "function getTotalFinalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", ($this->totalHT+$this->port)));\n else return 0;\n }", "public function get_bodymass() {\n return \"Gewicht = \" . $this->bodymass . \"kg\";\n }", "function Tn_tro_her($level,$MBn) // Ct dung\n{\n\treturn round((2300+450*($level-1)+pow(1.6*($level-1),3))*$MBn);\n}", "function Tn_eco_mar($level,$MBn) // CT dung\n{\n\treturn round((1800+450*($level-1)+pow(2*($level-1),3))*$MBn);\n}", "public function getBMI()\n {\n if ($this->height && $this->height > 0){\n return (($this->weight / ($this->height * $this->height)) * 703);\n }\n else{\n return 0;\n }\n \n }", "public function getWhse()\n {\n return $this->whse;\n }", "public function calculate_bmi() {\n return $this->bodymass / ($this->bodylength * $this->bodylength); \n }", "function Tn_eco_oth($level,$MBn) // CT dung\n{\n\treturn round((2000+350*($level-1)+pow(2*($level-1),3))*$MBn);\n}", "public function HienThiDmsp(){\n\n\t\treturn $this -> db -> get('b_dmsp');\n\t}", "public function getMontantHtCde() {\n return $this->montantHtCde;\n }", "public function getBMI(){\r\n\r\n return ($this->weight)/(($this->height*$this->height));\r\n}", "public function calcularSueldo(){\n $this->horas_trabajadas * 540;\n }", "function Tn_tro($level,$MBn) // Ct dung\n{\n\treturn\tround((2000+350*($level-1)+pow(2*($level-1),3))*$MBn);\n}", "protected function _getUnitsPerEm() {}", "function tinhchuvihinhtron($r) {\n $bk = 3.14 * $r * 2;\n return $bk;\n}", "public function getStemH() {}", "public function getMileage() {\n return $this->get(self::MILEAGE);\n }", "public function getHumidity();", "function tinhchuvihinhtron($r){\n $bk = 3.14 * 2 * $r;\n return $bk;\n}", "function calculateBMI(){\n $BMI = (705 * $this->weight / ($this->height * $this->height));\n return $BMI;\n }" ]
[ "0.81284815", "0.6787421", "0.6590257", "0.6509527", "0.63265646", "0.6245734", "0.61465055", "0.5902071", "0.5826885", "0.5670488", "0.5658322", "0.56055933", "0.5595796", "0.5577867", "0.5561614", "0.5556528", "0.55257803", "0.550007", "0.54830927", "0.5477087", "0.5459695", "0.5441425", "0.5428789", "0.53615767", "0.53520215", "0.53517103", "0.53464943", "0.5342375", "0.5330955", "0.5324899" ]
0.85886776
0
Get the mt sal brut moins600 h.
public function getMtSalBrutMoins600H() { return $this->mtSalBrutMoins600H; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMtSalBrutMoins150H() {\n return $this->mtSalBrutMoins150H;\n }", "public function setMtSalBrutMoins600H($mtSalBrutMoins600H) {\n $this->mtSalBrutMoins600H = $mtSalBrutMoins600H;\n return $this;\n }", "public function getMontantHt() {\n return $this->montantHt;\n }", "function getTotalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->totalHT));\n else return 0;\n }", "public function getMontant_ht()\n {\n return $this->montant_ht;\n }", "function getHhRent(){\n\t\treturn $this->hhRentAmount;\n\t}", "function tiemposHMS($min){\n $min=(int)$min;\n $heure=(int)($min/60);\n $minute=(($min/60)-$heure)*60; \n return $heure .':' . $minute; \n \n \n \n }", "function hms($duree = 0) \n\t{\n\t\t$heures = round($duree / 3600);\n\t\t$minutes = round(($duree - $heures * 3600) / 60);\n\t\t$secondes = round(($duree - $heures * 3600 - $minutes * 60) / 60);\n\n\t\treturn str_pad($heures, 2, \"0\", STR_PAD_LEFT).':'.str_pad($minutes, 2, \"0\", STR_PAD_LEFT).':'.str_pad($secondes, 2, \"0\", STR_PAD_LEFT);\n\t}", "function getTotalFinalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", ($this->totalHT+$this->port)));\n else return 0;\n }", "public function getBMI()\n {\n if ($this->height && $this->height > 0){\n return (($this->weight / ($this->height * $this->height)) * 703);\n }\n else{\n return 0;\n }\n \n }", "public function calcularSueldo(){\n $this->horas_trabajadas * 540;\n }", "public function setMtSalBrutMoins150H($mtSalBrutMoins150H) {\n $this->mtSalBrutMoins150H = $mtSalBrutMoins150H;\n return $this;\n }", "private function GetTimeHHMM() : string {\n\t\t\t$dt = new DateTime();\n\t\t\t$dtz = new DateTimeZone(\"EUROPE/Berlin\");\n\t\t\t$dt->setTimezone($dtz);\n\t\t\treturn $dt->format(\"H:i\");\n\t\t}", "public function getUnitsPerEm() {}", "protected function _getUnitsPerEm() {}", "public function get_bodymass() {\n return \"Gewicht = \" . $this->bodymass . \"kg\";\n }", "function hr2bin($hr){\n //eg: $hr = 14.68M\n //result: 15392074\n preg_match(\"/(\\d*\\.?\\d)(K|M|G|T)?/\",$hr,$matches);\n if (count($matches)< 1) return 0;\n if (count($matches)< 2) return $matches[1];\n $base = $matches[1];\n switch($matches[2]){\n case \"T\":\n return $base * 1099511627776;\n break;\n case \"G\":\n return $base * 1073741824;\n break;\n case \"M\":\n return $base * 1048576;\n break;\n case \"K\":\n return $base * 1024;\n break;\n }\n return $base;\n}", "public function calculate_bmi() {\n return $this->bodymass / ($this->bodylength * $this->bodylength); \n }", "public function getHival() {}", "public function getBMI(){\r\n\r\n return ($this->weight)/(($this->height*$this->height));\r\n}", "function Tn_tro_her($level,$MBn) // Ct dung\n{\n\treturn round((2300+450*($level-1)+pow(1.6*($level-1),3))*$MBn);\n}", "public function getCodeMetierBtp() {\n return $this->codeMetierBtp;\n }", "public function getHumidity();", "function get_bmi($height, $weight) {\n return $weight / pow($height/100, 2);\n}", "function get_hora_meridiano($hora){\n\t$hora = explode(\":\",$hora);\n\t$h = $hora[0];\n\t$m = $hora[1];\n\tif($h > 12){\n\t\t$h = $h - 12;\n\t\tif($h < 10){\n\t\t\t$h = '0'.$h;\n\t\t}\n\t\t$h = $h.':'.$m.' pm';\t\t\n\t}else{\n\t\tif($h == 12){\n\t\t\t$h = $h.':'.$m.' m';\n\t\t}else{\n\t\t\t$h = $h.':'.$m.' am';\n\t\t}\t\t\n\t}\n\treturn $h;\n}", "function parseSMSBatteryMT90($text) {\n $matches = array();\n preg_match(\"/BAT=[0-9]+%/\", $text, $matches);\n if (!empty($matches)) {\n return substr($matches[0], 4);\n } else {\n return \"NA\";\n }\n}", "function get_hora_bd($hora){\n\t$h = substr($hora,0,2);\n\t$m = substr($hora,3,2);\n\t$meridiano = substr($hora,-2,2);\n\tif($meridiano == 'pm'){\n\t\t$h = $h + 12;\n\t\t$h = $h.':'.$m.':00';\n\t}else{\n\t\t$h = $h.':'.$m.':00';\n\t}\n\treturn $h;\n}", "function meterTomile($e){\n$getTotal = $e*0.000621371;\nreturn $getTotal;\n}", "function Tn_eco_mar($level,$MBn) // CT dung\n{\n\treturn round((1800+450*($level-1)+pow(2*($level-1),3))*$MBn);\n}", "function calculate_bmi() {\n if (!$this->height || !$this->weight) { // check weight and height are set and height is not zero\n return 0;\n }\n\n return round((self::BMI_CONSTANT * $this->weight) / pow($this->height, 2), 2);\n }" ]
[ "0.7991754", "0.69580823", "0.6549752", "0.6384018", "0.63254356", "0.6122387", "0.6062434", "0.5997521", "0.5906559", "0.5862553", "0.58303183", "0.5773106", "0.574874", "0.57377714", "0.5713431", "0.56413746", "0.5610561", "0.5608987", "0.5590756", "0.5586268", "0.55499065", "0.5519601", "0.55057156", "0.5462938", "0.54517424", "0.5450462", "0.54476416", "0.54441446", "0.5434353", "0.5433199" ]
0.8594104
0
Get the nb enfants a charge.
public function getNbEnfantsACharge() { return $this->nbEnfantsACharge; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_nbre_conso(){\n\t\tglobal $bd;\n\t\t$req = $bd->query(\"SELECT SUM(nbre) as nbre FROM consommateur WHERE etat = 'present' \");\n\t\t$data = $req->fetch();\n\t\treturn $data['nbre'];\n\t}", "public function getNumagence()\n {\n return $this->numagence;\n }", "public function countAnnonce() {\n $db = $this->getPDO();\n $limite = 2;\n //requete qui compte le nbr d'entree\n $resultFoundRows = $db->query('SELECT COUNT (id_annonce) FROM annonces');\n $nbrElementsTotal = $resultFoundRows->fetchColumn();\n /* Si on est sur la première page, on n'a pas besoin d'afficher de lien\n * vers la précédente. On va donc ne l'afficher que si on est sur une autre\n * page que la première */\n $nbrPages = ceil($nbrElementsTotal / $limite);\n return $nbrPages;\n }", "public function nbEmprunt()\n\t\t{\n\t\treturn $this->lesEmprunts->count();\n\t\t}", "public function getCentresCount()\n {\n return $this->manager->createQuery('SELECT COUNT(c) FROM App\\Entity\\CentreEtatCivil c')\n ->getSingleScalarResult();\n }", "private function getTotalCharge() {\n $result = 0;\n\n foreach ($this->rentals as $rental) {\n $result += $rental->getCharge();\n }\n return $result;\n\n }", "function getNumeroDeBeneficiarios(){\n\t\t\t$benefs = 0;\n\t\t\t$sqlcreel = \"SELECT COUNT(idsocios_relaciones) AS 'beneficiarios'\n\t\t\t\t\t\t\tFROM socios_relaciones\n\t\t\t\t\t\t\tWHERE socio_relacionado=\" . $this->mCodigo . \" AND tipo_relacion=11\";\n\t\t\t$benefs = mifila($sqlcreel, \"beneficiarios\");\n\t\t\treturn $benefs;\n\t}", "public function getNumEnregistrement(): int\n {\n return $this->numEnregistrement;\n }", "public function getNumcompte()\n {\n return $this->numcompte;\n }", "public function getNumcompte()\n {\n return $this->numcompte;\n }", "public function getNbAddresses()\n\t{\n\t\tif ( $this->nb_addresses === null ) {\n\t\t\t$this->nb_addresses = gmp_strval(gmp_pow(2, $this->getMaxPrefix() - $this->prefix));\n\t\t}\n\t\treturn $this->nb_addresses;\n\t}", "public function getNbrNoticeExtension()\n {\n $nbrNotice = $this->doctrine\n ->getRepository('NajdahAppBundle:Declaration')\n ->getNomberNoticeNomber();\n \n return $nbrNotice;\n }", "public function getnbadults()\n {\n\n $rqt='select count(*) as nb from adult ';\n\n $rep= $this->executerRequete($rqt);\n $ligne= $rep->fetch();\n return $ligne['nb'];\n }", "function getNombreArticle() {\n return ($this->nbarticle);\n }", "public function nbArticles(){\n\t$nbArticles = 0;\n\tforeach($this->listeProduits as $value){\n\t\t$nbArticles += $value[1];\n\t}\n\treturn $nbArticles;\n }", "public function size()\n {\n return 100 - $this->eaten;\n }", "function nb_demande(){\n\t\tglobal $bdd;\n\n\t\t$req = $bdd->query(\"SELECT COUNT(id_utilisateur) AS nb_demande FROM utilisateur WHERE devenir_star = TRUE\");\n\t\t\n\t\t$result = $req->fetch();\n\t\t\n\t\t$req->closeCursor();\n\t\treturn $result['nb_demande'];\n\t}", "function obtenirNbEtab ($connexion) {\r\n\r\n $req = \"SELECT COUNT(*) FROM Etablissement\";\r\n $stmt = $connexion -> prepare ($req);\r\n $stmt -> execute ();\r\n return $stmt -> fetchColumn ();\r\n\r\n }", "public function getTotalNettedChargeAmount()\n {\n return $this->totalNettedChargeAmount;\n }", "public function incomming ()\n {\n $stock = 0;\n\n foreach ($this->batches as $batch) {\n $edge = $batch->article()->edge($this);\n\n $stock = $stock + $edge->count;\n }\n\n return $stock;\n }", "function getAllNumClases(){\n\t\t$clase=$this->nmclass;\n\t\t$u=$this->cant_clases;\n\t\treturn $u;\n\t}", "public function getNumLigne() {\n return $this->numLigne;\n }", "public function getIngredientsNum():int\n {\n return $this->ingredients_num;\n }", "public function getInvoice_counter()\n {\n return $this->fv_invoice_counter;\n }", "public function getAliquotaReaisCofins()\n {\n return $this->aliquotaReaisCofins;\n }", "public function getNbDuree()\n {\n return $this->nbDuree;\n }", "public function getNprcifecha()\n {\n return $this->nprcifecha;\n }", "public function getEntriesNum() {\n\t\t$db = Denkmal_Db::get();\n\t\treturn $db->fetchOne('SELECT COUNT(1)\n\t\t\t\t\t\t\t\tFROM promotion_entry e\n\t\t\t\t\t\t\t\tWHERE e.promotionId=?'\n\t\t\t, array($this->getId()));\n\t}", "public function getDeletedIncidents(): int;", "public function getNbHCasPart() {\n return $this->nbHCasPart;\n }" ]
[ "0.6371368", "0.62964106", "0.6052738", "0.6006173", "0.5980947", "0.596976", "0.5922395", "0.59219927", "0.58677036", "0.58677036", "0.58534396", "0.5843825", "0.58417386", "0.5831666", "0.5829031", "0.5828441", "0.5828289", "0.57886446", "0.5773589", "0.57651365", "0.573983", "0.5710156", "0.57090896", "0.57053727", "0.5703422", "0.5696525", "0.5690277", "0.5686312", "0.5664716", "0.5646681" ]
0.7999184
0
Get the nb h cas part.
public function getNbHCasPart() { return $this->nbHCasPart; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNbHComp(): ?float {\n return $this->nbHComp;\n }", "public function setNbHCasPart($nbHCasPart) {\n $this->nbHCasPart = $nbHCasPart;\n return $this;\n }", "public function getCasParticulier() {\n return $this->casParticulier;\n }", "public function getNbHn(): ?float {\n return $this->nbHn;\n }", "public function getNbHGeneral() {\n return $this->nbHGeneral;\n }", "public function getOehhnbr()\n {\n return $this->oehhnbr;\n }", "public function getNbreH(): ?float {\n return $this->nbreH;\n }", "public function getHsn(){\n return $this->db->get_where('hsn',array('chapter'=>1))->result();\n }", "public function getHsnChapter(){\n return $this->db->get('hsn_chapter')->result();\n }", "public static function getNbpiece(){return self::$nbPiece;}", "public function getNbHRc(): ?float {\n return $this->nbHRc;\n }", "public function getHival() {}", "public function getNumcompte()\n {\n return $this->numcompte;\n }", "public function getNumcompte()\n {\n return $this->numcompte;\n }", "protected function getContentPartNumber(): string\n {\n $partNumber = $this->getPartNumber();\n if (0 === \\count($this->getParts())) {\n $partNumber .= '.1';\n }\n\n return $partNumber;\n }", "public function getKieKelasHaid()\n {\n return $this->kie_kelas_haid;\n }", "public function getIntituleCompte() {\n return $this->intituleCompte;\n }", "public function getPhadhomenbr()\n {\n return $this->phadhomenbr;\n }", "public function getPhadicellnbr()\n {\n return $this->phadicellnbr;\n }", "function getHead($coment){\r\n\t\tif(isset($this->Head[$coment])) return $this->Head[$coment];\r\n\t\treturn '';\r\n\t}", "public function pages_with_bhl()\n {\n if(isset($this->pages_with_bhl)) return $this->pages_with_bhl;\n $this->pages_with_bhl = 0;\n \n $result = $this->mysqli_slave->query(\"SELECT COUNT(DISTINCT(tc.id)) count FROM taxon_concepts tc JOIN taxon_concept_names tcn ON (tc.id=tcn.taxon_concept_id) JOIN page_names pn ON (tcn.name_id=pn.name_id) WHERE tc.published=1 AND tc.supercedure_id=0\");\n if($result && $row=$result->fetch_assoc()) $this->pages_with_bhl = $row['count'];\n return $this->pages_with_bhl;\n }", "public function getCittaPartenza() {\n if (isset($_REQUEST['citta_partenza'])) {\n return $_REQUEST['citta_partenza'];\n } else\n return 0;\n }", "public function getNbHBase(): ?float {\n return $this->nbHBase;\n }", "public function H990()\n {\n $this->Sped->criarEncerramentoBloco('0', 'H990', \"H990\");\n }", "public function getMontant_ht()\n {\n return $this->montant_ht;\n }", "public function getHpvC()\n {\n return $this->hpv_c;\n }", "public function getChien()\n {\n return $this->chien;\n }", "public function getCompte()\n {\n return $this->compte;\n }", "public function getNbHAbs(): ?float {\n return $this->nbHAbs;\n }", "public function getNbHt(): ?float {\n return $this->nbHt;\n }" ]
[ "0.61633533", "0.60141784", "0.5965054", "0.5647783", "0.56361014", "0.55697083", "0.5543079", "0.5521292", "0.55143315", "0.55112565", "0.54933125", "0.548911", "0.54520077", "0.54520077", "0.5404517", "0.53921574", "0.53872436", "0.537597", "0.5368918", "0.5359181", "0.5353565", "0.5320052", "0.52920055", "0.52871454", "0.5259028", "0.5240034", "0.5201315", "0.5178343", "0.5174566", "0.51616377" ]
0.7604777
0
Get the nb h general.
public function getNbHGeneral() { return $this->nbHGeneral; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNbreH(): ?float {\n return $this->nbreH;\n }", "public function getNbHn(): ?float {\n return $this->nbHn;\n }", "public function getNbHCasPart() {\n return $this->nbHCasPart;\n }", "public function getNbHComp(): ?float {\n return $this->nbHComp;\n }", "public function setNbHGeneral($nbHGeneral) {\n $this->nbHGeneral = $nbHGeneral;\n return $this;\n }", "public function getNbHNuit(): ?float {\n return $this->nbHNuit;\n }", "public function getNbHt(): ?float {\n return $this->nbHt;\n }", "public function getNumberOfHMetrics() {}", "public function getHeight()\n {\n // Support for 'n%', relative to parent\n return $this->parseGlobalValue_v($this->h);\n }", "public function getNbreHMini(): ?float {\n return $this->nbreHMini;\n }", "public function getNbreHMardi(): ?float {\n return $this->nbreHMardi;\n }", "public function getNbreHMax(): ?float {\n return $this->nbreHMax;\n }", "public function getNbHBase(): ?float {\n return $this->nbHBase;\n }", "public function getTotalHT(){\n\t\t$HT=0;\n\t\tforeach ($this->_leslignes->getAll() as $uneligne){\n\t\t\t$HT+=$uneligne->getTotal();\n\t\t}\n\t\treturn $HT;\n\t}", "public function getNbreHSamedi(): ?float {\n return $this->nbreHSamedi;\n }", "public function getNbHAbs(): ?float {\n return $this->nbHAbs;\n }", "public function getNumerTaryfyHs()\n {\n return $this->numerTaryfyHs;\n }", "public function getHival() {}", "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 getNbreHMaxiSamedi(): ?float {\n return $this->nbreHMaxiSamedi;\n }", "public function getH() {\n return $this->x;\n }", "public function getNbreHMiniSamedi(): ?float {\n return $this->nbreHMiniSamedi;\n }", "public function pages_with_bhl()\n {\n if(isset($this->pages_with_bhl)) return $this->pages_with_bhl;\n $this->pages_with_bhl = 0;\n \n $result = $this->mysqli_slave->query(\"SELECT COUNT(DISTINCT(tc.id)) count FROM taxon_concepts tc JOIN taxon_concept_names tcn ON (tc.id=tcn.taxon_concept_id) JOIN page_names pn ON (tcn.name_id=pn.name_id) WHERE tc.published=1 AND tc.supercedure_id=0\");\n if($result && $row=$result->fetch_assoc()) $this->pages_with_bhl = $row['count'];\n return $this->pages_with_bhl;\n }", "public function getThnDibangun()\n {\n return $this->thn_dibangun;\n }", "public function getMontant_ht()\n {\n return $this->montant_ht;\n }", "function size()\n\t{\n\t\treturn $this->nb;\n\t}", "protected function getHeightNQuery()\n {\n return $this->heightNQuery;\n }", "public function getSizeGib()\n {\n return $this->size_gib;\n }", "public function getNbrHeures(): ?float {\n return $this->nbrHeures;\n }", "public function getNbrNoticeExtension()\n {\n $nbrNotice = $this->doctrine\n ->getRepository('NajdahAppBundle:Declaration')\n ->getNomberNoticeNomber();\n \n return $nbrNotice;\n }" ]
[ "0.691194", "0.6910423", "0.652079", "0.64660776", "0.64192164", "0.6399246", "0.63817656", "0.62446564", "0.61819834", "0.6166987", "0.6156636", "0.613332", "0.60868144", "0.60518736", "0.60190845", "0.5983249", "0.5969165", "0.5916694", "0.5889797", "0.5873208", "0.5845351", "0.58277464", "0.58261675", "0.5815319", "0.57839006", "0.5777561", "0.5774737", "0.57526505", "0.57422435", "0.57340413" ]
0.8188359
0
Get the nom marital.
public function getNomMarital() { return $this->nomMarital; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMarName()\n {\n return $this->mar_name;\n }", "public function getnom() {\n\t\treturn $this->nom;\n\t}", "public function get_nom()\n {\n return $this->_nom;\n }", "public function get_nom()\n {\n return $this->_nom;\n }", "public function getMarca()\n {\n return $this->marca;\n }", "public function getMarca()\n {\n return $this->marca;\n }", "public function getNomNaissance() {\n return $this->nomNaissance;\n }", "public function getMarca()\n {\n return $this->marca;\n }", "public function getMarca()\n {\n return $this->marca;\n }", "public function getMarca()\n {\n return $this->marca;\n }", "public function getMarcaNombre()\n {\n return $this->marcaNombre;\n }", "public function getMarca() {\n return $this->iMarca;\n }", "public final function getNom()\n\t{\n\t\treturn $this->nom;\n\t}", "public function getMaterno()\n {\n return $this->materno;\n }", "public function getNom();", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }", "public function getNom()\n {\n return $this->nom;\n }" ]
[ "0.75451976", "0.6856713", "0.676108", "0.676108", "0.6754215", "0.6754215", "0.6745942", "0.6705544", "0.6705544", "0.6705544", "0.66755956", "0.665765", "0.6611304", "0.65778106", "0.6573724", "0.65630895", "0.65630895", "0.65630895", "0.65630895", "0.65630895", "0.65630895", "0.65630895", "0.65630895", "0.65630895", "0.65630895", "0.65630895", "0.65630895", "0.65630895", "0.65630895", "0.65630895" ]
0.85869616
0
Get the non repris.
public function getNonRepris() { return $this->nonRepris; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIsNot()\n {\n return $this->is_not;\n }", "public function get_nonces()\n {\n }", "public function getNegocio();", "public function isNot()\n {\n return $this->not;\n }", "public function isNot()\n {\n return $this->not;\n }", "public function getNonOptions()\n {\n return $this->nonOptions;\n }", "public function getInvisible()\n\t{\n\t\treturn $this->invisible;\n\t}", "public function noes()\n {\n return $this->dummy->noes();\n }", "public function getNota(){\n\t\treturn $this->nota;\n\t}", "public function getNoInterrumpir( ) {\n return $this->noInterrumpir;\n }", "private function get_not() {\n\t\t$prefix = $this->not ? '!' : '';\n\t\tunset( $this->not );\n\t\treturn $prefix;\n\t}", "public function getNonStrings()\n {\n return array(\n array(11),\n array(-3),\n array(3.14),\n array(true),\n array(false),\n array(null),\n array(array()),\n array(new \\stdClass())\n );\n }", "public function getNonStrings()\n {\n return array(\n array(11),\n array(-3),\n array(3.14),\n array(true),\n array(false),\n array(null),\n array(array()),\n array(new \\stdClass())\n );\n }", "public function getNilm()\n {\n return $this->nilm;\n }", "public function getNOTASGENERALES()\r\n {\r\n return $this->NOTAS_GENERALES;\r\n }", "public function setNonRepris($nonRepris) {\n $this->nonRepris = $nonRepris;\n return $this;\n }", "public function not() {\n\t\t$this->not = '!';\n\t\treturn $this;\n\t}", "public function getNilk()\n {\n return $this->nilk;\n }", "public function getNoticias()\n {\n return $this->noticias;\n }", "public function getCdUnidadeNegocio()\n {\n return $this->cd_unidade_negocio;\n }", "public function getCodigosItensNotas() {\n return $this->aCodigosNotas;\n }", "public function getNota(){\n return $this->nota;\n }", "public function getIteneraryNonRefundableIndicator()\n {\n return $this->IteneraryNonRefundableIndicator;\n }", "public function getInvisibleFlag() {}", "public function getTextoNot() {\n\t\treturn $this->TextoNot;\n\t}", "public function getNotReplacedChars()\n {\n return $this->_notReplacedChars;\n }", "public function getXpNecesaria()\n {\n return $this->xpNecesaria;\n }", "public function getUnidadeNegocioCdUnidade()\n {\n return $this->unidade_negocio_cd_unidade;\n }", "public function getNeverRender()\n {\n return $this->_neverRender;\n }", "public function get_security_nonces() {\r\n\t\treturn $this->security_nonces;\r\n\t}" ]
[ "0.713593", "0.70154023", "0.69284344", "0.68762016", "0.68762016", "0.67585933", "0.6708682", "0.6583878", "0.65719026", "0.6499312", "0.6472972", "0.6399451", "0.6399451", "0.6398196", "0.63316065", "0.632114", "0.6303458", "0.6248654", "0.6243233", "0.62087834", "0.62012136", "0.61004514", "0.60806036", "0.6046688", "0.6012032", "0.60006654", "0.59490216", "0.5941964", "0.5886443", "0.5878965" ]
0.8560331
0
Get the numero attestation.
public function getNumeroAttestation() { return $this->numeroAttestation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNota_num()\n {\n if (!isset($this->inota_num) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_num;\n }", "function getNota_num()\n {\n if (!isset($this->inota_num) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_num;\n }", "public function getAno():int{\n\t\treturn $this->ano;\n\t}", "public function getNUMEROINT()\r\n {\r\n return $this->NUMERO_INT;\r\n }", "public function getAnum()\r\n {\r\n return $this->anum;\r\n }", "public function getNUMERO_INT()\r\n {\r\n return $this->NUMERO_INT;\r\n }", "public function getIdAttestation()\n {\n return $this->idAttestation;\n }", "public function getPeriodeAttest() {\n return $this->periodeAttest;\n }", "public function getAno() {\n return $this->iAno;\n }", "public function getAno() {\n return $this->iAno;\n }", "public function getAno()\n {\n return $this->ano;\n }", "public function getNumber() {}", "public function getNumerocarte()\n {\n return $this->numerocarte;\n }", "public function number()\n {\n return $this->number;\n }", "public function getNumber() : int\n {\n return $this->number;\n }", "function getNumero() {\n return $this->numero;\n }", "public function get_number()\n\t{\n\t\treturn $this->number;\n\t}", "public function getNumagence()\n {\n return $this->numagence;\n }", "public function num() {\n return $this->num;\n }", "function getNum()\n {\n return $this->num;\n }", "public function getNum()\n {\n return $this->num;\n }", "public function getNum()\n {\n return $this->num;\n }", "public function getNumero() {\n return $this->numero;\n }", "public function getNumber();", "public function getNumero()\n {\n return $this->numero;\n }", "public function getActif():int\n {\n return $this->actif;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }" ]
[ "0.70694256", "0.70694256", "0.70440537", "0.68899566", "0.67479926", "0.6712988", "0.6705838", "0.66824067", "0.66637766", "0.66637766", "0.65711737", "0.65208066", "0.65086573", "0.64637375", "0.6457996", "0.64385617", "0.64360076", "0.64172006", "0.64063877", "0.6383278", "0.6379097", "0.6379097", "0.6375587", "0.63671684", "0.6356614", "0.6349216", "0.6331842", "0.6331842", "0.6331842", "0.6331842" ]
0.8290196
1
Get the paiement en euro.
public function getPaiementEnEuro() { return $this->paiementEnEuro; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPeriodeAu() {\n return $this->periodeAu;\n }", "public function getageEu()\n {\n return $this->age_eu;\n }", "public function getEstudiante( ){\n\t\treturn $this->estudiante;\n\t}", "public function getEmenta()\n {\n return $this->ementa;\n }", "function getEstanteria(){\r\n return $this->estanteria;\r\n }", "public function getProdEra()\n {\n return $this->prod_era;\n }", "public function getPeriodeSubrAu() {\n return $this->periodeSubrAu;\n }", "public function getPesoArea() {\n return $this->_peso; \n }", "public function getPeriodeEcriture() {\n return $this->periodeEcriture;\n }", "public function getPeriodeDu() {\n return $this->periodeDu;\n }", "public function getPerPersonEquivFareCurrency()\n {\n return $this->PerPersonEquivFareCurrency;\n }", "public function getEtunimi(){\n return $this->etunimi;\n }", "function european_format($amount)\n {\n //return $fmt->formatCurrency($amount, \"EUR\");\n return $amount;\n }", "public function getDureeAnnuelle() {\n return $this->dureeAnnuelle;\n }", "public function getPventa()\n {\n return $this->pventa;\n }", "public function getEnseigne()\n {\n return $this->_enseigne;\n }", "public function getEmpleado_idemp(){\n return $this->empleado_idemp;\n }", "public function getProviseur()\n {\n return $this->proviseur;\n }", "public function getASediaPembalut()\n {\n return $this->a_sedia_pembalut;\n }", "public function getCep()\n\t{\t\n\t\t/**\n\t\t * retorno Cep cliente\n\t\t * @return Cep\n\t\t */\n\t\treturn $this->cep;\n\t}", "public function getCurrency(): string;", "public function getCurrency(): string;", "public function getExpedition()\n {\n if ($this->amount > 50) {\n return 'Spedizione Gratuita';\n }\n return 'Costo di spedizione 5€';\n }", "public function iva_articulos_formato(){\r\n\t\t\t$importe = $this->iva_articulos();\r\n\t\t\t$formatter = new NumberFormatter('de_DE', NumberFormatter::CURRENCY);\r\n\t\t\treturn $formatter->formatCurrency($importe, 'EUR');\r\n\t\t}", "public function getEstimacionEntrega()\n {\n \tif ( $this->getIdEshop() ) {\n \t\treturn 'Envío en 96hs Hábiles';\n \t}\n\n $campana = campanaTable::getInstance()->getFirstByIdProducto( $this->getIdProducto() );\n \n\t\tif ( $campana )\n { \n\n \tif ( $campana->getIdCampana() == 2776 ) {\n\t \t\treturn 'FECHA ESTIMADA DE ENVÍO ENTRE EL 06 DE NOVIEMBRE Y EL 14 DE NOVIEMBRE.';\n\t \t}\n\n if ( $campana && $campana->getIdCampana() == 2798 ) {\n return 'FECHA ESTIMADA DE ENVÍO ENTRE EL 13 DE NOVIEMBRE Y EL 21 DE NOVIEMBRE.';\n }\n\n\n if ( $campana->getEstimacionEnvioFecha() )\n {\n return 'Fecha estimada de envío: ' . strftime('%e de %B', strtotime($campana->getEstimacionEnvioFecha()));\n }\n elseif ( $campana->getEstimacionEnvioHoras() )\n {\n return 'Envío en ' . $campana->getEstimacionEnvioHoras() . 'hs Hábiles';\n }\n else\n {\n $timestampFechaFinCampana = strtotime($campana->getFechaFin());\n \n $desde = pmDateHelper::getInstance()->sumarDiasHabiles( 5, 'Y-m-d', $timestampFechaFinCampana);\n $hasta = pmDateHelper::getInstance()->sumarDiasHabiles( 10, 'Y-m-d', $timestampFechaFinCampana );\n \n return 'Fecha estimada de envío entre el ' . strftime('%e de %B', strtotime($desde)) . ' y el ' . strftime('%e de %B', strtotime($hasta)) . '.';\n }\n }\n \n if ( $this->getEsOutlet() )\n {\n $outletData = configuracionTable::getInstance()->getOutlet();\n $outletData = json_decode($outletData->getValor(), true);\n \n if ( $outletData['estimacion_envio_fecha'] )\n {\n return 'Fecha estimada de envío: ' . strftime('%e de %B', strtotime( $outletData['estimacion_envio_fecha'] ));\n }\n elseif ( $outletData['estimacion_envio_horas'] )\n {\n return 'Envío en ' . $outletData['estimacion_envio_horas'] . 'hs Hábiles';\n }\n else\n {\n $timestampFechaFin = strtotime( $outletData['fecha_fin'] );\n \n $desde = pmDateHelper::getInstance()->sumarDiasHabiles( 5, 'Y-m-d', $timestampFechaFin);\n $hasta = pmDateHelper::getInstance()->sumarDiasHabiles( 10, 'Y-m-d', $timestampFechaFin );\n \n return 'Fecha estimada de envío entre el ' . strftime('%e de %B', strtotime($desde)) . ' y el ' . strftime('%e de %B', strtotime($hasta)) . '.';\n } \n }\n \n $timestampFecha = time();\n $desde = pmDateHelper::getInstance()->sumarDiasHabiles( 5, 'Y-m-d', $timestampFecha );\n $hasta = pmDateHelper::getInstance()->sumarDiasHabiles( 10, 'Y-m-d', $timestampFecha );\n \n return 'Fecha estimada de envío entre el ' . strftime('%e de %B', strtotime($desde)) . ' y el ' . strftime('%e de %B', strtotime($hasta)) . '.';\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 getPrecio()\r\n {\r\n return \"5.00$\";\r\n }", "public function getUmPrice()\n {\n return isset($this->umPrice) ? $this->umPrice : null;\n }" ]
[ "0.7227349", "0.6815541", "0.6741217", "0.66662127", "0.64591545", "0.64284605", "0.63840413", "0.63298404", "0.63055", "0.6267195", "0.625919", "0.6250906", "0.6235365", "0.62303966", "0.6224446", "0.6203171", "0.62030566", "0.6171438", "0.61695015", "0.61690456", "0.6160544", "0.6160544", "0.61573744", "0.61354595", "0.61214024", "0.61140865", "0.61140865", "0.61140865", "0.60815716", "0.60798836" ]
0.82457185
0
Get the periode au.
public function getPeriodeAu() { return $this->periodeAu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAUMENTOPERDIDA()\r\n {\r\n return $this->AUMENTO_PERDIDA;\r\n }", "public function getPeriodeAttest() {\n return $this->periodeAttest;\n }", "public function getPeriodeDu() {\n return $this->periodeDu;\n }", "public function getPeriodeSubrAu() {\n return $this->periodeSubrAu;\n }", "public function getPeriodeEcriture() {\n return $this->periodeEcriture;\n }", "public function getAPELLIDOPATERNO()\r\n {\r\n return $this->APELLIDO_PATERNO;\r\n }", "public function getPorAtender() {\n return $this->por_atender;\n }", "public function getApodo()\n {\n return $this->apodo;\n }", "public function getAPELLIDO_PATERNO()\r\n {\r\n return $this->APELLIDO_PATERNO;\r\n }", "public function getPventa()\n {\n return $this->pventa;\n }", "public function getAPELLIDOPATERNOC()\r\n {\r\n return $this->APELLIDOPATERNOC;\r\n }", "public function getAnoPortaria() {\n return $this->iAnoPortaria;\n }", "public function get_pa(){ return $this->_pa;}", "public function getAnulacao(){\n return $this->oAnulacao;\n }", "function getPerfil() {\n return $this->perfil;\n }", "public function getPanier(){\n\t\treturn $this->panier;\n\t}", "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 getPa()\n {\n return $this->pa;\n }", "public function getPa()\n {\n return $this->pa;\n }", "public function getDireccionOrigen()\n {\n return $this->direccionOrigen;\n }", "public function getDESCUENTO_PROVEEDOR(){\n return $this->DESCUENTO_PROVEEDOR;\n }", "function getIdelemento(){\n\t\treturn $this->idelemento;\n\t}", "public function getEmenta()\n {\n return $this->ementa;\n }", "public function getIndicePeriode(): ?int {\n return $this->indicePeriode;\n }", "public function getEmpleado_idemp(){\n return $this->empleado_idemp;\n }", "public function getApprentiEtam() {\n return $this->apprentiEtam;\n }", "public function getAtocom()\n {\n return $this->atocom;\n }", "public function getIdempresa(){\n return $this->idempresa;\n }" ]
[ "0.66992366", "0.6658607", "0.66465604", "0.6564719", "0.6554739", "0.6524196", "0.64446896", "0.62972003", "0.6227593", "0.61637557", "0.6120171", "0.6086346", "0.6065454", "0.6022141", "0.59956634", "0.5960413", "0.5953593", "0.5953593", "0.5953593", "0.59309405", "0.59309405", "0.5919752", "0.5895455", "0.58935326", "0.5878989", "0.5857063", "0.58520794", "0.58302003", "0.5806309", "0.58018476" ]
0.7658468
0
Get the periode du.
public function getPeriodeDu() { return $this->periodeDu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDpto()\n {\n return $this->dpto;\n }", "public function getPDif()\n {\n return $this->pDif;\n }", "public function getPiD() {\n\t\treturn $this->piD;\n\t}", "public function getDod();", "public function getD()\n {\n return $this->D;\n }", "public function getPeriodeSubrDu() {\n return $this->periodeSubrDu;\n }", "public function getDipartimento() {\n return $this->dipartimento;\n }", "public function getIdDeuda()\n {\n return $this->id_deuda;\n }", "public function get_PDI_ID() {\n return $this->pdi_id;\n }", "public function getDeId()\n {\n return $this->de_id;\n }", "public function getProdutoCdProduto()\n {\n return $this->produto_cd_produto;\n }", "public function getConsecutivoPadrePD( ){\n\t\t \treturn $this->consecutivoPadrePD;\n\t\t }", "public function getDn();", "public function getCdUnidade()\n {\n return $this->cd_unidade;\n }", "public function getCdUnidade()\n {\n return $this->cd_unidade;\n }", "public function getCdUnidade()\n {\n return $this->cd_unidade;\n }", "public function getPeriodeAu() {\n return $this->periodeAu;\n }", "public function getCdProduto()\n {\n return $this->Cd_produto;\n }", "public function getDepartement()\n {\n return $this->departement;\n }", "public function getPer()\n {\n return $this->get(self::_PER);\n }", "public function getPeriodeEcriture() {\n return $this->periodeEcriture;\n }", "public function getCdProduto()\n {\n return $this->cd_produto;\n }", "public function getDDI()\n {\n return $this->ddi;\n }", "public function getPerDecUlt() {\n return $this->perDecUlt;\n }", "public function getD() {}", "private function getDeptNum(){\r\n\t\treturn $this->DeptNum;\r\n\t}", "public function getDobd() {\n\t\treturn $this->container['dobd'];\n\t}", "public function getPeriodeAttest() {\n return $this->periodeAttest;\n }", "public function getIndicePeriode(): ?int {\n return $this->indicePeriode;\n }", "public function get_department() \n {\n return $this->department;\n }" ]
[ "0.7177669", "0.6663902", "0.6643879", "0.6570871", "0.65694225", "0.6430316", "0.6358724", "0.63214666", "0.62310416", "0.62294626", "0.6164113", "0.61403644", "0.60642564", "0.6056466", "0.6056466", "0.6056466", "0.60547435", "0.6024933", "0.60013753", "0.5990319", "0.5954246", "0.59498006", "0.5941425", "0.5929686", "0.5920207", "0.58987296", "0.58900607", "0.58475137", "0.582858", "0.58089715" ]
0.8072781
0
Get the periode subr au.
public function getPeriodeSubrAu() { return $this->periodeSubrAu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPeriodeSubrDu() {\n return $this->periodeSubrDu;\n }", "public function getSubrogationPartielle() {\n return $this->subrogationPartielle;\n }", "public function getPeriodeAu() {\n return $this->periodeAu;\n }", "public function getSub()\n {\n return $this->sub;\n }", "public function getPorAtender() {\n return $this->por_atender;\n }", "public function getPeriodeDu() {\n return $this->periodeDu;\n }", "function getMainNode(){\n\t\treturn $this->nodeppal;\n\t}", "public function getPhadsubid()\n {\n return $this->phadsubid;\n }", "public function getPeriodeEcriture() {\n return $this->periodeEcriture;\n }", "public function getDeptsub()\n\t\t{\n\t\t\treturn $this->hasOne(Deptsub::className(), ['DEP_SUB_ID' => 'DEP_SUB_ID']);\n\t\t}", "public function get_superficie(){ return $this->_superficie;}", "function getRubrique() {\n\t\t$faux_array = array_values($this->getParents());\n\t\t$rubrique = $faux_array[0];\n\t\tif ($rubrique instanceof Rubrique) {\n\t\t\treturn $rubrique;\n\t\t} else {\n\t\t\tdie(\"Le parent de l'article n'est pas une Rubrique !\");\n\t\t}\n\t}", "public function getAUMENTOPERDIDA()\r\n {\r\n return $this->AUMENTO_PERDIDA;\r\n }", "public function getSubserial()\n\t{\n\n\t\treturn $this->subserial;\n\t}", "public function getPhadsubidseq()\n {\n return $this->phadsubidseq;\n }", "public function getDESCUENTO_PROVEEDOR(){\n return $this->DESCUENTO_PROVEEDOR;\n }", "public function get_subpage() {\n\n\t\tif ( null === $this->subpage ) {\n\t\t\t$this->subpage = isset( $_GET['sub'] ) ? esc_attr( $_GET['sub'] ) : $this->get_initial_page();\n\t\t}\n\n\t\treturn $this->subpage;\n\t}", "public function getPraticien()\n {\n return $this->praticien;\n }", "public function getPanier(){\n\t\treturn $this->panier;\n\t}", "public function getSubrogationMontant() {\n return $this->subrogationMontant;\n }", "public function getPChild()\n {\n return $this->p_child;\n }", "public function get_sublink($id){\t\n\t\t$sql=\"SELECT etiqueta_sub FROM link WHERE id_sub='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['etiqueta_sub'];\n\t}", "public function get_sublink($id){\n $sql=\"SELECT etiqueta_sub FROM link WHERE id_sub='$id'\";\n $consulta=mysql_query($sql) or die(mysql_error());\n $resultado=mysql_fetch_array($consulta);\n\n return $resultado['etiqueta_sub'];\n }", "public function getOrganismeRetraite() {\n return $this->organismeRetraite;\n }", "function pa() {\n\t\t\t\t$edit_pid = (int)UTIL::get_post('edit_pid');\n\t\t\t\t//-- haben wir eine edit-id, koennen wir direkt zur auswahl gehen\n\t\t\t\tif ($edit_pid) return $this->pa_type();\n\t\t\t\t//-- seitenbaum auslesen\n\t\t\t\t$root_id = (int)$this->root_id;\n\t\t\t\t$set = new NestedSet();\n\t\t\t\t$set->set_table_name($this->mod_tbl);\n\t\t\t\t$nodes = $set->getNodes($root_id, '*', $this->DB->table_restriction($this->mod_tbl));\n\t\t\t\t$this->set_var('page_nodes', $nodes);\n\t\t\t\t$this->set_var('title', e::o('v_title_1'));\n\t\t\t\t$this->OPC->generate_view($this->tpl_dir . 'pa.php');\n\t\t\t\treturn;\n\t\t\t}", "public function getSubType()\n {\n return $this->subType;\n }", "public function getRoe()\n {\n return $this->roe;\n }", "public function getSubMenu(){\n return $this->subMenu;\n }", "public function getRischioArea() {\n return $this->_rischio; \n }", "public function getPventa()\n {\n return $this->pventa;\n }" ]
[ "0.76389134", "0.6540315", "0.6364979", "0.63171417", "0.59253764", "0.58969265", "0.58959204", "0.58488697", "0.58325076", "0.5803064", "0.574627", "0.5699839", "0.5680714", "0.5635693", "0.5607816", "0.5586675", "0.5557904", "0.55385256", "0.5529796", "0.55231565", "0.55100465", "0.5477485", "0.54712063", "0.5469308", "0.54418427", "0.54405236", "0.5428172", "0.5424179", "0.5396205", "0.5392444" ]
0.7990897
0
Get the periode subr du.
public function getPeriodeSubrDu() { return $this->periodeSubrDu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPeriodeSubrAu() {\n return $this->periodeSubrAu;\n }", "public function getPeriodeDu() {\n return $this->periodeDu;\n }", "public function getSubrogationPartielle() {\n return $this->subrogationPartielle;\n }", "public function getDeptsub()\n\t\t{\n\t\t\treturn $this->hasOne(Deptsub::className(), ['DEP_SUB_ID' => 'DEP_SUB_ID']);\n\t\t}", "public function getPhadsubid()\n {\n return $this->phadsubid;\n }", "public function getSub()\n {\n return $this->sub;\n }", "public function getConsecutivoPadrePD( ){\n\t\t \treturn $this->consecutivoPadrePD;\n\t\t }", "public function getDpto()\n {\n return $this->dpto;\n }", "public function getFkPessoalSubDivisao()\n {\n return $this->fkPessoalSubDivisao;\n }", "public function getKodeSubSatker()\n {\n return $this->kode_sub_satker;\n }", "public function getSubrogationMontant() {\n return $this->subrogationMontant;\n }", "public function getSubDir()\n\t{\n\t\treturn $this->sub_dir;\n\t}", "public function getSubserial()\n\t{\n\n\t\treturn $this->subserial;\n\t}", "public function setPeriodeSubrDu(DateTime $periodeSubrDu = null) {\n $this->periodeSubrDu = $periodeSubrDu;\n return $this;\n }", "public function getCdUnidade()\n {\n return $this->cd_unidade;\n }", "public function getCdUnidade()\n {\n return $this->cd_unidade;\n }", "public function getCdUnidade()\n {\n return $this->cd_unidade;\n }", "public function getPhadsubidseq()\n {\n return $this->phadsubidseq;\n }", "public function getPChild()\n {\n return $this->p_child;\n }", "public function getSubtaskId()\n {\n return $this->get(self::SUBTASK_ID);\n }", "public function getSubtaskId()\n {\n return $this->get(self::SUBTASK_ID);\n }", "public function getUnidadeNegocioCdUnidade()\n {\n return $this->unidade_negocio_cd_unidade;\n }", "public function getMain_depart_id()\n {\n return $this->main_depart_id;\n }", "public function getPerDecUlt() {\n return $this->perDecUlt;\n }", "public function getPod()\n {\n return $this->pod;\n }", "public function getPeriodeAu() {\n return $this->periodeAu;\n }", "public function getPorAtender() {\n return $this->por_atender;\n }", "public function getDod();", "public function get_sublink($id){\t\n\t\t$sql=\"SELECT etiqueta_sub FROM link WHERE id_sub='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['etiqueta_sub'];\n\t}", "public function getCdUnidadeNegocio()\n {\n return $this->cd_unidade_negocio;\n }" ]
[ "0.73687637", "0.66268235", "0.62896854", "0.61688894", "0.5923749", "0.5922495", "0.5760629", "0.57078546", "0.5621825", "0.558855", "0.5555366", "0.5522058", "0.5481113", "0.54485965", "0.54478776", "0.54478776", "0.54478776", "0.5385438", "0.5347891", "0.5306937", "0.5306937", "0.53028125", "0.52922434", "0.52691454", "0.52676606", "0.52579933", "0.5239264", "0.5227571", "0.52145153", "0.5212928" ]
0.81561846
0
Get the prenom employe.
public function getPrenomEmploye() { return $this->prenomEmploye; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmploye()\n {\n return $this->hasOne(Employe::className(), ['id' => 'employe_id']);\n }", "public function getNomEmploye() {\n return $this->nomEmploye;\n }", "public function getNomEmploye() {\n return $this->nomEmploye;\n }", "public function getEmployeRemplace(): ?string {\n return $this->employeRemplace;\n }", "public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }", "public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }", "public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }", "public function getEmpleado_idemp(){\n return $this->empleado_idemp;\n }", "public function getEmpleado() {\r\n return $this->empleado;\r\n }", "public function getPraticien()\n {\n return $this->praticien;\n }", "public function getempleado()\r\n {\r\n return $this->empleado;\r\n }", "public function getempleado()\r\n {\r\n return $this->empleado;\r\n }", "public function getNom_employeur()\n {\n return $this->nom_employeur;\n }", "public function getEmpCommune() {\n return $this->empCommune;\n }", "public function getPrenom()\n\t{\n\t\treturn $this->prenom;\n\t}", "public function setPrenomEmploye($prenomEmploye) {\n $this->prenomEmploye = $prenomEmploye;\n return $this;\n }", "public function getPeriodeEcriture() {\n return $this->periodeEcriture;\n }", "public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }", "public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }", "public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }", "public function getEmployer()\n {\n return $this->employer;\n }", "public function getPrcifecha()\n {\n return $this->prcifecha;\n }", "public function getPrenom()\n {\n return $this->prenom;\n }", "public function getPrenom()\n {\n return $this->prenom;\n }", "public function getPrenom()\n {\n return $this->prenom;\n }", "public function getPrenom()\n {\n return $this->prenom;\n }", "public function getPrenom()\n {\n return $this->prenom;\n }", "public function getPrenom()\n {\n return $this->prenom;\n }", "public function getPrenom()\n {\n return $this->prenom;\n }", "public function getPrenom()\n {\n return $this->prenom;\n }" ]
[ "0.6785702", "0.6683946", "0.6683946", "0.667989", "0.66549647", "0.66549647", "0.66549647", "0.6480769", "0.6435781", "0.64179915", "0.6378953", "0.6378953", "0.63715315", "0.63622564", "0.6318543", "0.63136375", "0.6305812", "0.6284954", "0.6284954", "0.6284954", "0.62703466", "0.6238318", "0.62027293", "0.62027293", "0.62027293", "0.62027293", "0.62027293", "0.62027293", "0.62027293", "0.62027293" ]
0.78539026
0
Get the reprise motif med.
public function getRepriseMotifMed() { return $this->repriseMotifMed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMotifRupture() {\n return $this->motifRupture;\n }", "public function getMedida() {\n return $this->iMedida;\n }", "public function getMotif()\n {\n return $this->motif;\n }", "public function getPrenotazioniMedico() {\n return $this->_prenotazioni;\n }", "public function getPazientiMedico() {\n return $this->_pazienti;\n }", "public function getUnidadeMedida()\n {\n return $this->unidadeMedida;\n }", "public function get_motdepasse()\n {\n return $this->_motdepasse;\n }", "public function setRepriseMotifMed($repriseMotifMed) {\n $this->repriseMotifMed = $repriseMotifMed;\n return $this;\n }", "public function getRemediation()\n {\n return $this->remediation;\n }", "public function getUnidadMedida()\n {\n return $this->unidadMedida;\n }", "public function getMUNICIPIO()\r\n {\r\n return $this->MUNICIPIO;\r\n }", "public function getUnidadMedida() {\n $o_DMantenimientoGeneral = new DMantenimientoGeneral();\n $resultado = $o_DMantenimientoGeneral->getUnidadMedida();\n foreach ($resultado as $key => $value) {\n array_push($resultado[$key], \"../../../../fastmedical_front/imagen/icono/editar.png ^ Editar\");\n array_push($resultado[$key], \"../../../../fastmedical_front/imagen/icono/i_nomailappt.png ^ Eliminar\");\n }\n return $resultado;\n }", "public function get_medico()\n {\n \n // loads the associated object\n if (empty($this->medico))\n $this->medico = new Medicos($this->medico_id);\n \n // returns the associated object\n return $this->medico;\n }", "public function getPromImg()\n {\n return $this->prom_img;\n }", "public function getImagem()\n {\n return $this->imagem;\n }", "public function getSuspensionMotif() {\n return $this->suspensionMotif;\n }", "public function getMontant() {\n return $this->montant;\n }", "public function getMedicaments(){\n\t\t$req = \"select * from medicament order by MED_NOMCOMMERCIAL\";\n\t\t$rs = PdoGsb::$monPdo->query($req);\n\t\t$ligne = $rs->fetchAll();\n\t\treturn $ligne;\n\t}", "public function getMontant()\n {\n return $this->montant;\n }", "public function getMontant()\n {\n return $this->montant;\n }", "public function imc(){\n\t\t\treturn $this-> peso / ($this->altura * $this->altura);\n\t\t}", "public function getMotivoRejeicao()\n {\n return $this->motivoRejeicao;\n }", "public function getMilage()\n {\n }", "public function getMaitre()\n {\n return $this->maitre;\n }", "public function readMedicoEspecial(){\n $objM=new medicoDAO();\n $resul=$objM->readMedicoEspecialidad();\n return $resul;\n }", "public function getPhoto604()\n {\n return $this->photo_604;\n }", "public function getMileage() {\n return $this->get(self::MILEAGE);\n }", "public function getPanjRengM()\n {\n return $this->panj_reng_m;\n }", "public function getNumIscrizioneMedico() {\n return $this->_numIscrizione;\n }", "public function getPoster(){\n return $this->film['poster'];\n }" ]
[ "0.70896006", "0.6872117", "0.6640547", "0.64759755", "0.6407346", "0.632862", "0.6196713", "0.6128715", "0.6104083", "0.6064797", "0.5994016", "0.58943385", "0.5835735", "0.58093053", "0.5795964", "0.5793903", "0.5789754", "0.57828826", "0.5746337", "0.5746337", "0.5736725", "0.5715695", "0.5704925", "0.57002336", "0.56970716", "0.5666126", "0.56095845", "0.5604025", "0.5586796", "0.5539377" ]
0.8177568
0
Get the reprise raison pers.
public function getRepriseRaisonPers() { return $this->repriseRaisonPers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_persR()\n {\n return $this->_persR;\n }", "public function setRepriseRaisonPers($repriseRaisonPers) {\n $this->repriseRaisonPers = $repriseRaisonPers;\n return $this;\n }", "public function getRisks()\n {\n return isset($this->Risks) ? $this->Risks : null;\n }", "public function set_persR($_persR)\n {\n $this->_persR = $_persR;\n\n return $this;\n }", "public function getPlazasRestantes() {\r\n return $this->plazas;\r\n }", "public static function getRotasPermitidas(){\n $usucpf = $_SESSION['usucpf'];\n $sisid = $_SESSION['sisid'];\n $perfis = $_SESSION['perfil'][$usucpf][$sisid];\n\n $arrTmp = array();\n if(!empty($perfis)){\n $rotas = Rota::select('ds_rota')\n ->join('seguranca.tb_rota_perfil','seguranca.tb_rota_perfil.co_rota','=','seguranca.tb_rota.co_rota')\n ->where('sisid',$sisid)\n ->where('seguranca.tb_rota_perfil.st_habilitado',true)\n ->whereIn('seguranca.tb_rota_perfil.pflcod',$perfis)->get();\n\n\n\n if(!empty($rotas)){\n foreach ($rotas as $rota)\n $arrTmp[] = $rota->ds_rota;\n }\n }\n return $arrTmp;\n }", "public function getListRpr()\n {\n $db = $this->dblocal;\n try\n {\n $stmt = $db->prepare(\"SELECT @rownum := @rownum + 1 AS urutan,t.* FROM m_redeemed_receipt t, \n (SELECT @rownum := 0) r ORDER BY id_rpr ASC\");\n $stmt->execute();\n $stat[0] = true;\n $stat[1] = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $stat;\n }\n catch(PDOException $ex)\n {\n $stat[0] = false;\n $stat[1] = $ex->getMessage();\n return $stat;\n }\n }", "public function getReplayResults()\n {\n return $this->replay_results;\n }", "public function getRut(): array\n {\n return $this->rut;\n }", "public function getPR() {}", "public function getPersonaIdPers() {\n return $this->personaIdPers;\n }", "public function getPalestras()\n {\n return $this->palestras;\n }", "function getRuedas(){\r\n\t\t\treturn $this->ruedas;\r\n\t\t}", "public function getSlides(){\r\n\t\treturn $this->getModel()->getSlides();\r\n\t}", "public function getReel()\n {\n return $reel;\n }", "public function getRentals(): array\n {\n return $this->rentals;\n }", "public function ListarRepartidores()\n{\n\tself::SetNames();\n\t$sql = \" select * from usuarios WHERE nivel = 'REPARTIDOR'\";\n\tforeach ($this->dbh->query($sql) as $row)\n\t{\n\t\t$this->p[] = $row;\n\t}\n\treturn $this->p;\n\t$this->dbh=null;\n}", "public function getRoues()\n\t\t{\n\t\t\treturn $this->_roues;\n\t\t}", "public function getPraticiens() {\r\n $sql = $this->sqlPraticien . ' order by nom_praticien';\r\n $praticiens = $this->executerRequete($sql);\r\n return $praticiens;\r\n }", "public function getRaza()\n {\n return $this->raza;\n }", "public function getRaza()\n {\n return $this->raza;\n }", "public function getPanjRengM()\n {\n return $this->panj_reng_m;\n }", "function getRendimientoPonderado() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\t\tglobal $usr;\n\n\t\t//DATO PARA LA CONSULTA SQL, LISTA LAS HORAS DEL DÍA\n\t\t//SI ES 0 TRAE LAS 24 HORAS\n\t\t$ponderacion = $usr->getPonderacion();\n\n\t\tif ($ponderacion == null) {\n\t\t\t$ponderacion_id = 0;\n\t\t}\n\t\telse {\n\t\t\t$ponderacion_id = $ponderacion->ponderacion_id;\n\t\t}\n\n\t\t$sql = \"SELECT * FROM reporte.rendimiento_resumen_global_ponderado(\".\n\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n\t\t\t\tpg_escape_string($ponderacion_id).\",' \".\n\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\n\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\texit();\n\t\t}\n\n\t\tif($row = $res->fetchRow()){\n\t\t\t$dom = new DomDocument();\n\t\t\t$dom->preserveWhiteSpace = FALSE;\n\t\t\t$dom->loadXML($row['rendimiento_resumen_global_ponderado']);\n\t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"rendimiento_resumen_global_ponderado\"]);\n\t\t}\n\n\t\t$conf_objetivo= $xpath->query(\"/atentus/resultados/propiedades/objetivos/objetivo\")->item(0);\n\t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n\t\t$conf_ponderaciones = $xpath->query(\"/atentus/resultados/propiedades/ponderaciones/item\");\n\n\t\t//SE MUESTRA TEMPLATE SIN DATOS\n\t\tif ($xpath->query(\"//detalles/detalle/detalles/detalle\")->length == 0) {\n\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\treturn;\n\t\t}\n\n\t\t//TEMPLATE DEL REPORTE\n\t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'rendimiento_ponderado.tpl');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_ITEMS', 'lista_items');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_EVENTOS_TITULOS', 'bloque_eventos_titulos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_EVENTOS_TOTAL', 'bloque_eventos_total');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\n\n\t\t$T->setVar('__paso_id_default', $conf_pasos->item(0)->getAttribute('paso_orden'));\n\t\t//$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\t\t$orden = 1;\n\t\tforeach ($conf_pasos as $conf_paso) {\n\t\t\t$T->setVar('__paso_id', $conf_paso->getAttribute('paso_orden'));\n\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute('nombre'));\n\t\t\t$T->setVar('__paso_orden', $orden);\n\n\t\t\t$total_min_ponderado = 0;\n\t\t\t$total_max_ponderado = 0;\n\t\t\t$total_prom_ponderado = 0;\n\n\t\t\t$T->setVar('lista_items', '');\n\t\t\tforeach ($conf_ponderaciones as $conf_ponderacion) {\n\t\t\t\tif ($conf_ponderacion->getAttribute('valor') == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$tag_dato = $xpath->query(\"//detalles/detalle/detalles/detalle[@item_id=\".$conf_ponderacion->getAttribute(\"item_id\").\"]/detalles/detalle[@paso_orden=\".$conf_paso->getAttribute(\"paso_orden\").\"]/datos/dato\")->item(0);\n\n\t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n\t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\t\t\t\t$T->setVar('__item_inicio', $conf_ponderacion->getAttribute('inicio'));\n\t\t\t\t$T->setVar('__item_termino', $conf_ponderacion->getAttribute('termino'));\n\n\t\t\t\t$T->setVar('__paso_minimo', ($tag_dato == null)?'S/I':number_format($tag_dato->getAttribute('tiempo_min'), 2, ',', ''));\n\t\t\t\t$T->setVar('__paso_maximo', ($tag_dato == null)?'S/I':number_format($tag_dato->getAttribute('tiempo_max'), 2, ',', ''));\n\t\t\t\t$T->setVar('__paso_promedio', ($tag_dato == null)?'S/I':number_format($tag_dato->getAttribute('tiempo_prom'), 2, ',', ''));\n\n\t\t\t\tif ($tag_dato == null) {\n\t\t\t\t\t$tiempo_minimo = 0;\n\t\t\t\t\t$tiempo_maximo = 0;\n\t\t\t\t\t$tiempo_promedio = 0;\n\t\t\t\t}else{\n\t\t\t\t\t$tiempo_minimo = $tag_dato->getAttribute('tiempo_min');\n\t\t\t\t\t$tiempo_maximo = $tag_dato->getAttribute('tiempo_max');\n\t\t\t\t\t$tiempo_promedio = $tag_dato->getAttribute('tiempo_prom');\n\t\t\t\t}\n\n\t\t\t\t//SE CALCULA EL PONDERADO\n\t\t\t\t$total_min_ponderado = (($conf_ponderacion->getAttribute('valor')/100) * $tiempo_minimo) + $total_min_ponderado;\n\t\t\t\t$total_max_ponderado = (($conf_ponderacion->getAttribute('valor')/100) * $tiempo_maximo) + $total_max_ponderado;\n\t\t\t\t$total_prom_ponderado = (($conf_ponderacion->getAttribute('valor')/100) * $tiempo_promedio) + $total_prom_ponderado;\n\n\t\t\t\t//SE ASIGNA VALOR DE LA PONDERACIÓN\n \t\t\t$T->setVar('__item_valor', number_format($conf_ponderacion->getAttribute('valor'), 2, '.', ''));\n\n\t\t\t\t$T->parse('lista_items', 'LISTA_ITEMS', true);\n\t\t\t\t$linea++;\n\t\t\t}\n\n\t\t\t$T->setVar('__min_total', number_format($total_min_ponderado, 2, ',', ''));\n\t\t\t$T->setVar('__max_total', number_format($total_max_ponderado, 2, ',', ''));\n\t\t\t$T->setVar('__prom_total', number_format($total_prom_ponderado, 2, ',', ''));\n\n\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n\t\t\t$orden++;\n\t\t}\n\n\t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n\t\t$this->resultado =$T->parse('out', 'tpl_tabla');\n\t}", "public function getTargetRoas()\n {\n return $this->target_roas;\n }", "public function getTargetRoas()\n {\n return $this->target_roas;\n }", "public function getRuedas()\n {\n return $this->ruedas;\n }", "public function getReplay()\n {\n return $this->get(self::_REPLAY);\n }", "function AllReponces(){\n return $this->db->get($this->reponce)->result();\n }", "public function getPaniers()\n {\n return $this->paniers;\n }", "public function getRoms(){\n\t\tglobal $db;\n\t\t$sql = $db->prepare(\"SELECT * FROM project01_roms\");\n\t\t$sql->execute();\n\t\tif ($sql->rowCount()>0) {\n\t\t\t\t$sql = $sql->fetchAll();\n\t\t\t\t$this->roms = $sql;\n\t\t\t}\n\t\treturn $this->roms;\n\t}" ]
[ "0.69906235", "0.61914563", "0.58452016", "0.5788801", "0.57243705", "0.57128435", "0.56435776", "0.56159204", "0.56151587", "0.5611966", "0.5605238", "0.55988073", "0.55771416", "0.5500865", "0.5499776", "0.54973227", "0.54723924", "0.54644465", "0.54556805", "0.5436903", "0.5436903", "0.54320264", "0.54286504", "0.5417521", "0.5417521", "0.5388565", "0.53833115", "0.53826857", "0.5376832", "0.5370063" ]
0.80090326
0
Get the signature date.
public function getSignatureDate() { return $this->signatureDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSignature();", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature() {\n\t\treturn $this->signature;\n\t}", "public function getSignature(): string\n {\n return $this->signature;\n }", "public function getSignature(): string\n {\n return $this->signature;\n }", "function getSignature()\n {\n return $this->_signature;\n }", "public function getSignature() : string\n {\n return $this->signature;\n }", "public function getDateSignature1(): ?DateTime {\n return $this->dateSignature1;\n }", "public static function getSignature()\n\t{\n\t\treturn MHTTPD::$info['signature'];\n\t}", "public function getSignatureHeader()\n {\n return $this->signature_header;\n }", "public function getHeaderDate()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__DATE];\r\n\t}", "public function getMaturityDate()\n {\n $maturityDates = $this->collectData();\n\n return $maturityDates[0];\n }", "public function getDocumentUploadDate() {\n return $this->document['uploadDate'];\n }", "public function getSignature()\n {\n $signString= sprintf(\"%s\\n%s\\n%s\\n%d\", $this->topic, $this->consumerId, $this->message->getMessageHandle(), $this->time);\n return base64_encode(hash_hmac('sha1', $signString, $this->getAuthorization()->getAccessSecret(), true));\n }", "public function getDateSignature2(): ?DateTime {\n return $this->dateSignature2;\n }", "public function getDateSignature4(): ?DateTime {\n return $this->dateSignature4;\n }", "public function getHeaderSignature()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__SIGNATURE];\r\n\t}", "public function getDateSignature5(): ?DateTime {\n return $this->dateSignature5;\n }", "public function getFormationDate()\n {\n $value = $this->get(self::FORMATIONDATE);\n return $value === null ? (string)$value : $value;\n }", "public function getPaymentDate();", "public function getSignature() {\n $headers = $this->getHeaders();\n foreach ($headers as $key => $value) {\n if (strtolower($key) === 'x-hub-signature') {\n return $value;\n }\n }\n return '';\n }", "public function getSignature(): string\n {\n return $this->getName();\n }", "public function getDate();", "public function getDate();", "function getAuthSignature()\n {\n return $this->_authSignature;\n }", "public static function getPubDate()\n {\n return self::$pubDate;\n }" ]
[ "0.6996184", "0.6928079", "0.6928079", "0.6928079", "0.6928079", "0.6928079", "0.6896828", "0.68161833", "0.68161833", "0.6786824", "0.67263967", "0.6546772", "0.6539167", "0.64912343", "0.64847696", "0.6459992", "0.6444085", "0.6397334", "0.63852197", "0.6354066", "0.63538194", "0.6326469", "0.6324099", "0.6220645", "0.6210527", "0.6189656", "0.6183096", "0.6183096", "0.6182183", "0.617939" ]
0.8690396
1
Get the signature nom.
public function getSignatureNom() { return $this->signatureNom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSignature();", "public function getSignature(): string\n {\n return $this->getName();\n }", "public function getSignature(): string\n {\n return $this->signature;\n }", "public function getSignature(): string\n {\n return $this->signature;\n }", "public function getSignature() : string\n {\n return $this->signature;\n }", "public static function getSignature()\n\t{\n\t\treturn MHTTPD::$info['signature'];\n\t}", "public function getSignaturePrenom() {\n return $this->signaturePrenom;\n }", "public function getSignature() {\n\t\treturn $this->signature;\n\t}", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature() {\n $headers = $this->getHeaders();\n foreach ($headers as $key => $value) {\n if (strtolower($key) === 'x-hub-signature') {\n return $value;\n }\n }\n return '';\n }", "function getSignature()\n {\n return $this->_signature;\n }", "public function getHeaderSignature()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__SIGNATURE];\r\n\t}", "public function getSignatureType(): string\n {\n return $this->type->getSignatureType();\n }", "public static function getSignature()\n {\n return ':meta';\n }", "public function getSig()\n {\n return $this->sig;\n }", "private function getSignature(): string {\r\n return base64_encode(hash_hmac(\"sha1\", $this->buildSigningBase(), $this->buildSigningKey(), true));\r\n }", "private function getSignature()\n\t{\n\t\t$string_to_sign = mb_convert_encoding(\n\t\t\t$this->http_verb . $this->uri . $this->timestamp . $this->nonce,\n\t\t\t'UTF-8'\n\t\t);\n\t\treturn base64_encode(\n\t\t\thash_hmac(\n\t\t\t\t'sha1',\n\t\t\t\t$string_to_sign,\n\t\t\t\t$this->secret,\n\t\t\t\ttrue\n\t\t\t)\n\t\t);\n\t}", "public function getSignatureHeader()\n {\n return $this->signature_header;\n }", "public function getUserSignature(): ?string;", "public function getSignature() {\n\t\treturn md5(get_class($this));\n\t}", "public function getSignatureQualite() {\n return $this->signatureQualite;\n }", "public function getSignatureQualite() {\n return $this->signatureQualite;\n }", "public static function getSignature()\n {\n return ':originalData';\n }", "public function getSignatureVille() {\n return $this->signatureVille;\n }", "public function getSignatureVille() {\n return $this->signatureVille;\n }", "public function getSignature()\n {\n $headers = $this->getHeaders();\n return isset($headers['X-Hub-Signature']) ? $headers['X-Hub-Signature'] : null;\n }" ]
[ "0.77426827", "0.7658116", "0.75099325", "0.75099325", "0.74627465", "0.7374278", "0.7279629", "0.7189189", "0.71850806", "0.71850806", "0.71850806", "0.71850806", "0.71850806", "0.7058632", "0.7034025", "0.69950694", "0.69841653", "0.6978668", "0.6821341", "0.67729783", "0.675652", "0.6727545", "0.66987175", "0.66522974", "0.66414857", "0.66414857", "0.6605708", "0.6579729", "0.6579729", "0.6522577" ]
0.8725653
1
Get the signature qualite.
public function getSignatureQualite() { return $this->signatureQualite; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSignatureQualiteCode() {\n return $this->signatureQualiteCode;\n }", "public function getSignature();", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature(): string\n {\n return $this->signature;\n }", "public function getSignature(): string\n {\n return $this->signature;\n }", "function getSignature()\n {\n return $this->_signature;\n }", "public function getSignature() {\n\t\treturn $this->signature;\n\t}", "public function getSignature() : string\n {\n return $this->signature;\n }", "public function getSignaturePrenom() {\n return $this->signaturePrenom;\n }", "public function setSignatureQualite($signatureQualite) {\n $this->signatureQualite = $signatureQualite;\n return $this;\n }", "public function setSignatureQualite($signatureQualite) {\n $this->signatureQualite = $signatureQualite;\n return $this;\n }", "public function getSignature() {\n $headers = $this->getHeaders();\n foreach ($headers as $key => $value) {\n if (strtolower($key) === 'x-hub-signature') {\n return $value;\n }\n }\n return '';\n }", "public function getSignature(): string\n {\n return $this->getName();\n }", "public static function getSignature()\n\t{\n\t\treturn MHTTPD::$info['signature'];\n\t}", "public function getUserSignature(): ?string;", "public function getSignatureHeader()\n {\n return $this->signature_header;\n }", "private function getSignature()\n\t{\n\t\t$string_to_sign = mb_convert_encoding(\n\t\t\t$this->http_verb . $this->uri . $this->timestamp . $this->nonce,\n\t\t\t'UTF-8'\n\t\t);\n\t\treturn base64_encode(\n\t\t\thash_hmac(\n\t\t\t\t'sha1',\n\t\t\t\t$string_to_sign,\n\t\t\t\t$this->secret,\n\t\t\t\ttrue\n\t\t\t)\n\t\t);\n\t}", "private function getSignature(): string {\r\n return base64_encode(hash_hmac(\"sha1\", $this->buildSigningBase(), $this->buildSigningKey(), true));\r\n }", "public function getSignatureKey(): ?string\n {\n return $this->signatureKey;\n }", "public function getSignature()\n {\n $headers = $this->getHeaders();\n return isset($headers['X-Hub-Signature']) ? $headers['X-Hub-Signature'] : null;\n }", "public function getEnforceSignatureCheck()\n {\n if (array_key_exists(\"enforceSignatureCheck\", $this->_propDict)) {\n return $this->_propDict[\"enforceSignatureCheck\"];\n } else {\n return null;\n }\n }", "public function getEnforceSignatureCheck()\n {\n if (array_key_exists(\"enforceSignatureCheck\", $this->_propDict)) {\n return $this->_propDict[\"enforceSignatureCheck\"];\n } else {\n return null;\n }\n }", "function getAuthSignature()\n {\n return $this->_authSignature;\n }", "public function getSigner()\n {\n if (array_key_exists(\"signer\", $this->_propDict)) {\n return $this->_propDict[\"signer\"];\n } else {\n return null;\n }\n }", "public function getSignatureType(): string\n {\n return $this->type->getSignatureType();\n }", "public function getSigner()\n {\n return $this->get(self::SIGNER);\n }" ]
[ "0.83037734", "0.69842154", "0.67814934", "0.67814934", "0.67814934", "0.67814934", "0.67814934", "0.6767807", "0.6767807", "0.6749297", "0.67445767", "0.67262936", "0.6700249", "0.6656768", "0.6656768", "0.6415006", "0.63963634", "0.6290969", "0.62479544", "0.6242171", "0.62341005", "0.61881256", "0.61694235", "0.6128566", "0.6108822", "0.6108822", "0.6084737", "0.60475165", "0.6039244", "0.5997879" ]
0.8800238
1
Get the signature ville.
public function getSignatureVille() { return $this->signatureVille; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSignature();", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature()\n {\n return $this->signature;\n }", "public function getSignature() {\n\t\treturn $this->signature;\n\t}", "public function getSignature(): string\n {\n return $this->signature;\n }", "public function getSignature(): string\n {\n return $this->signature;\n }", "public function getSignature() : string\n {\n return $this->signature;\n }", "function getSignature()\n {\n return $this->_signature;\n }", "public function getSignaturePrenom() {\n return $this->signaturePrenom;\n }", "public function getSignature() {\n $headers = $this->getHeaders();\n foreach ($headers as $key => $value) {\n if (strtolower($key) === 'x-hub-signature') {\n return $value;\n }\n }\n return '';\n }", "public function getSignatureNom() {\n return $this->signatureNom;\n }", "public function getSignatureNom() {\n return $this->signatureNom;\n }", "public function getSignatureHeader()\n {\n return $this->signature_header;\n }", "public function getSig()\n {\n return $this->sig;\n }", "public static function getSignature()\n\t{\n\t\treturn MHTTPD::$info['signature'];\n\t}", "public function getHeaderSignature()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__SIGNATURE];\r\n\t}", "public function getSignatureQualite() {\n return $this->signatureQualite;\n }", "public function getSignatureQualite() {\n return $this->signatureQualite;\n }", "public function getSignature()\n {\n $headers = $this->getHeaders();\n return isset($headers['X-Hub-Signature']) ? $headers['X-Hub-Signature'] : null;\n }", "public function getSignatureQualiteCode() {\n return $this->signatureQualiteCode;\n }", "function getAuthSignature()\n {\n return $this->_authSignature;\n }", "public function getSignature(): string\n {\n return $this->getName();\n }", "public function getSignatureKeyId()\n {\n return $this->signature_key_id;\n }", "public function getUserSignature(): ?string;", "function signature()\r\n\t{\r\n\t\tglobal $ibforums, $std, $print;\r\n\r\n\t\t$t_sig = $this->parser->unconvert($this->member['signature'], $ibforums->vars['sig_allow_ibc'], $ibforums->vars['sig_allow_html']);\r\n\r\n\t\t$ibforums->lang['the_max_length'] = $ibforums->vars['max_sig_length']\r\n\t\t\t? $ibforums->vars['max_sig_length']\r\n\t\t\t: 0;\r\n\r\n\t\t$data = array(\r\n\t\t\t'TEXT' => $this->member['signature'],\r\n\t\t\t'SMILIES' => 1,\r\n\t\t\t'CODE' => 1,\r\n\t\t\t'SIGNATURE' => 0,\r\n\t\t\t'HTML' => $ibforums->vars['sig_allow_html'],\r\n\t\t);\r\n\r\n\t\t$this->member['signature'] = $this->parser->prepare($data);\r\n\r\n\t\tif ($ibforums->vars['sig_allow_html'] == 1)\r\n\t\t{\r\n\t\t\t$this->member['signature'] = $this->parser->parse_html($this->member['signature'], 0);\r\n\t\t}\r\n\r\n\t\t$this->output .= View::make(\r\n\t\t\t\"ucp.signature\",\r\n\t\t\t[\r\n\t\t\t\t'sig' => $this->member['signature'],\r\n\t\t\t\t't_sig' => $t_sig,\r\n\t\t\t\t'key' => $std->return_md5_check(),\r\n\t\t\t\t'select_syntax' => $std->code_tag_button()\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->page_title = $ibforums->lang['t_welcome'];\r\n\t\t$this->nav = array(\"<a href='\" . $this->base_url . \"act=UserCP&amp;CODE=00'>\" . $ibforums->lang['t_title'] . \"</a>\");\r\n\r\n\t}", "function sign()\r\n {\r\n return $this->Sign;\r\n }", "public function getSignatureKey(): ?string\n {\n return $this->signatureKey;\n }" ]
[ "0.72362614", "0.70100397", "0.70100397", "0.70100397", "0.70100397", "0.70100397", "0.698202", "0.69795424", "0.69795424", "0.69611627", "0.69387734", "0.691812", "0.67894834", "0.67245334", "0.67245334", "0.6636831", "0.6607573", "0.65785134", "0.6539263", "0.6518947", "0.6518947", "0.64560777", "0.64329445", "0.6428297", "0.63237685", "0.6313137", "0.63115436", "0.63034046", "0.6269821", "0.6158171" ]
0.8623605
1
Get the subrogation constantes.
public function getSubrogationConstantes() { return $this->subrogationConstantes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConstants()\n\t{\n\t\treturn $this->constants;\n\t}", "public function getConstants()\n {\n return $this->constants;\n }", "public function getConstants()\n {\n return $this->constants;\n }", "static function getConstants()\n {\n $oClass = new ReflectionClass(__CLASS__);\n return $oClass->getConstants();\n }", "public function getConstants(): Collection\n {\n return $this->constants;\n }", "public function getConstList(){\n\t\treturn $this->getConstantsList();\n\t}", "public function getConstants()\n {\n return array();\n }", "public function getConsts() {\n $const = $this->get('const');\n return null !== $const ? $const : array();\n }", "public static function getConstants()\n {\n $self = new ReflectionClass(static::class);\n\n return $self->getConstants();\n }", "final static private function getConstants()\n\t{\n $class = get_called_class();\n\t\tif(!isset(self::$_consts[$class])) {\n\t\t\tif($class == __CLASS__) {\n\t\t\t\tthrow new \\BadMethodCallException('You can\\'t access constants from Enum class');\n\t\t\t}\n\t\t\t$reflection = new \\ReflectionClass($class);\n\t\t\tself::$_consts[$class] = $reflection->getConstants();\n\t\t}\n\t\treturn self::$_consts[$class];\n\t}", "public function setSubrogationConstantes($subrogationConstantes) {\n $this->subrogationConstantes = $subrogationConstantes;\n return $this;\n }", "public static function getConstList()\n\t{\n\t\t$reflect = new ReflectionClass(get_called_class());\n\t\treturn $reflect->getConstants();\n\t}", "private static function getConstants() {\n if (self::$constCacheArray == NULL) {\n self::$constCacheArray = [];\n }\n\n $calledClass = get_called_class();\n \n if (!array_key_exists($calledClass, self::$constCacheArray)) {\n $reflect = new ReflectionClass($calledClass);\n self::$constCacheArray[$calledClass] = $reflect->getConstants();\n }\n\n return self::$constCacheArray[$calledClass];\n }", "public static function getValues()\n\t\t{\n\n\t\t\t$reflectionClass = new ReflectionClass(static::class);\n\t\t\treturn array_values($reflectionClass->getConstants());\n\n\t\t}", "public static function getConstants()\n {\n if (empty(self::$_constantsCache)) {\n $reflectionClass = new \\ReflectionClass(get_called_class());\n self::$_constantsCache = $reflectionClass->getConstants();\n }\n return self::$_constantsCache;\n }", "public function getConstants(): Collection\n {\n return collection($this->reflectionObject->getImmediateReflectionConstants())->map(function (ReflectionClassConstant $constant) {\n return new ConstantEntity($constant);\n });\n }", "static public function getEnumConstants()\n {\n if ( !self::$constants )\n {\n // array of enums constants\n self::$constants = array(\n new PropertyContentType (self::REGULAR),\n new PropertyContentType (self::ID),\n new PropertyContentType (self::RELATION_TO_PARENT),\n new PropertyContentType (self::ROLLUP_OPERATOR),\n new PropertyContentType (self::ORG_TITLE),\n new PropertyContentType (self::CAPTION),\n new PropertyContentType (self::CAPTION_SHORT),\n new PropertyContentType (self::CAPTION_DESCRIPTION),\n new PropertyContentType (self::CAPTION_ABREVIATION),\n new PropertyContentType (self::WEB_URL),\n new PropertyContentType (self::WEB_HTML),\n new PropertyContentType (self::WEB_XML_OR_XSL),\n new PropertyContentType (self::WEB_MAIL_ALIAS),\n new PropertyContentType (self::ADDRESS),\n new PropertyContentType (self::ADDRESS_STREET),\n new PropertyContentType (self::ADDRESS_HOUSE),\n new PropertyContentType (self::ADDRESS_CITY),\n new PropertyContentType (self::ADDRESS_STATE_OR_PROVINCE),\n new PropertyContentType (self::ADDRESS_ZIP),\n new PropertyContentType (self::ADDRESS_QUARTER),\n new PropertyContentType (self::ADDRESS_COUNTRY),\n new PropertyContentType (self::ADDRESS_BUILDING),\n new PropertyContentType (self::ADDRESS_ROOM),\n new PropertyContentType (self::ADDRESS_FLOOR),\n new PropertyContentType (self::ADDRESS_FAX),\n new PropertyContentType (self::ADDRESS_PHONE),\n new PropertyContentType (self::GEO_CENTROID_X),\n new PropertyContentType (self::GEO_CENTROID_Y),\n new PropertyContentType (self::GEO_CENTROID_Z),\n new PropertyContentType (self::GEO_BOUNDARY_TOP),\n new PropertyContentType (self::GEO_BOUNDARY_LEFT),\n new PropertyContentType (self::GEO_BOUNDARY_BOTTOM),\n new PropertyContentType (self::GEO_BOUNDARY_RIGHT),\n new PropertyContentType (self::GEO_BOUNDARY_FRONT),\n new PropertyContentType (self::GEO_BOUNDARY_REAR),\n new PropertyContentType (self::GEO_BOUNDARY_POLYGON),\n new PropertyContentType (self::PHYSICAL_SIZE),\n new PropertyContentType (self::PHYSICAL_COLOR),\n new PropertyContentType (self::PHYSICAL_WEIGHT),\n new PropertyContentType (self::PHYSICAL_HEIGHT),\n new PropertyContentType (self::PHYSICAL_WIDTH),\n new PropertyContentType (self::PHYSICAL_DEPTH),\n new PropertyContentType (self::PHYSICAL_VOLUME),\n new PropertyContentType (self::PHYSICAL_DENSITY),\n new PropertyContentType (self::PERSON_FULL_NAME),\n new PropertyContentType (self::PERSON_FIRST_NAME),\n new PropertyContentType (self::PERSON_LAST_NAME),\n new PropertyContentType (self::PERSON_MIDDLE_NAME),\n new PropertyContentType (self::PERSON_DEMOGRAPHIC),\n new PropertyContentType (self::PERSON_CONTACT),\n new PropertyContentType (self::QTY_RANGE_LOW),\n new PropertyContentType (self::QTY_RANGE_HIGH),\n new PropertyContentType (self::FORMATTING_COLOR),\n new PropertyContentType (self::FORMATTING_ORDER),\n new PropertyContentType (self::FORMATTING_FONT),\n new PropertyContentType (self::FORMATTING_FONT_EFFECTS),\n new PropertyContentType (self::FORMATTING_FONT_SIZE),\n new PropertyContentType (self::FORMATTING_SUB_TOTAL),\n new PropertyContentType (self::DATE),\n new PropertyContentType (self::DATE_START),\n new PropertyContentType (self::DATE_ENDED),\n new PropertyContentType (self::DATE_CANCELED),\n new PropertyContentType (self::DATE_MODIFIED),\n new PropertyContentType (self::DATE_DURATION),\n new PropertyContentType (self::VERSION)\n );\n }\n\n return self::$constants;\n }", "final static public function toArray()\n {\n return self::getConstants();\n }", "public static function getConstants(): array\n {\n $oClass = new ReflectionClass(__CLASS__);\n return $oClass->getConstants();\n }", "public static function toArray()\n\t{\n\t\treturn array_flip((new \\ReflectionClass(new self))->getConstants());\n\t}", "public static function toArray()\n\t{\n\t\treturn array_flip((new \\ReflectionClass(new self))->getConstants());\n\t}", "public static function getValues()\n {\n return Hash::extract(self::getConstants(), '{s}.value');\n }", "static function getCollection(){\n $class = new ReflectionClass(get_called_class());\n return collect($class->getConstants());\n }", "private static function getConstants(): array\n {\n $calledClass = get_called_class();\n\n if (!array_key_exists($calledClass, self::$constCacheArray)) {\n $reflect = new ReflectionClass($calledClass);\n self::$constCacheArray[$calledClass] = $reflect->getConstants();\n }\n\n return self::$constCacheArray[$calledClass];\n }", "public static function getMap()\n\t\t{\n\n\t\t\t$reflectionClass = new ReflectionClass(static::class);\n\t\t\treturn array_flip($reflectionClass->getConstants());\n\n\t\t}", "public function getConstants($extension = null, $version = null);", "public static function getValues(): array\n {\n $reflectionClass = new ReflectionClass(static::class);\n\n return array_values($reflectionClass->getConstants());\n }", "private function define_constants()\n {\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_NEW', 1000);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_PENDING', 1100);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_ACKNOWLEDGED', 1200);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_RESOLVED', 1400);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_CLOSED', 2000);\n\n define('FI_KILONKIPINAT_TODOS_TODOITEM_RELATED_LINKTYPE_PENDING', 1000);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_RELATED_LINKTYPE_DUPLICATE', 1100);\n \n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_ULTRALIGHT', 1000);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_LIGHT', 1100);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_MEDIUM', 1200);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_HEAVY', 1300);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_SUPERHEAVY', 1400);\n \n define('FI_KILONKIPINAT_TODOS_TODOITEM_VISIBILITY_PUBLIC', 1000);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_VISIBILITY_SECURE', 1100);\n }", "public static function values()\n {\n $class = get_called_class();\n\n if (!isset(self::$cache[$class])) {\n $reflected = new \\ReflectionClass($class);\n self::$cache[$class] = $reflected->getConstants();\n }\n\n return self::$cache[$class];\n }", "public function testgetConstantsFromExtension()\n {\n if (is_null($this->ref)) {\n return;\n }\n\n $const = get_defined_constants(true);\n\n foreach ($this->ref['extensions'] as $extname => $opt) {\n if (isset($const[$extname])) {\n // Test if each constants are in reference\n foreach ($const[$extname] as $constname => $value) {\n if (!in_array($constname, $this->ignoredconstants)) {\n $this->assertArrayHasKey(\n $constname,\n $this->ref['constants'],\n \"Defined constant '$constname' not known in Reference.\"\n );\n }\n }\n }\n }\n }" ]
[ "0.7020336", "0.6997876", "0.6997876", "0.6848647", "0.67737705", "0.67576444", "0.67530584", "0.66969633", "0.6580753", "0.6437854", "0.64359224", "0.6272819", "0.62182057", "0.62166536", "0.6192849", "0.6086983", "0.6040359", "0.6025755", "0.5961874", "0.59302354", "0.59302354", "0.5915794", "0.590958", "0.5896054", "0.58729196", "0.5872771", "0.585381", "0.5792829", "0.5765497", "0.57348025" ]
0.8816917
0
Get the subrogation montant.
public function getSubrogationMontant() { return $this->subrogationMontant; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMontant()\n {\n return $this->montant;\n }", "public function getMontant()\n {\n return $this->montant;\n }", "public function getMontant() {\n return $this->montant;\n }", "public function getMontantGeneral() {\n return $this->montantGeneral;\n }", "public function getSubrogationPartielle() {\n return $this->subrogationPartielle;\n }", "public function setSubrogationMontant($subrogationMontant) {\n $this->subrogationMontant = $subrogationMontant;\n return $this;\n }", "public function getMontantTva() {\n return $this->montantTva;\n }", "public function getMontacargasCiclosmant()\n {\n\n return $this->montacargas_ciclosmant;\n }", "public function getMontantTtc()\n {\n $montant_ttc = $this->montant;\n\n foreach ($this->tvas as $tva) {\n $montant_ttc += $tva->getMontantTva();\n }\n\n return $montant_ttc;\n }", "public function getMontant_vente()\n {\n return $this->montant_vente;\n }", "public function getMontantParticulier() {\n return $this->montantParticulier;\n }", "public function getMontantBudget() {\n return $this->montantBudget;\n }", "public function getMontantHtCde() {\n return $this->montantHtCde;\n }", "public function getMontant_taxe()\n {\n return $this->montant_taxe;\n }", "public function getPeriodeSubrDu() {\n return $this->periodeSubrDu;\n }", "public function getMontantTtc() {\n return $this->montantTtc;\n }", "public function getMatricule()\n {\n return $this->matricule;\n }", "public function getMontantHt() {\n return $this->montantHt;\n }", "public function getMontantTes() {\n return $this->montantTes;\n }", "public function getMatricule()\n {\n return $this->matricule;\n }", "public function getMontant_ht()\n {\n return $this->montant_ht;\n }", "public function getMvat()\n {\n return $this->mvat;\n }", "public function determinant()\n {\n $this->validateDimensions($this, self::SQUARE);\n\n if (!array_key_exists(__METHOD__, $this->cache)) {\n switch ($this->y) {\n case 1:\n $this->cache[__METHOD__] = $this->get(0, 0);\n break;\n case 2:\n $this->cache[__METHOD__] = $this->get(0, 0) * $this->get(1, 1) - $this->get(0, 1) * $this->get(1, 0);\n break;\n default:\n $determinant = 0;\n foreach ($this->getRow(0) as $x => $cell) {\n $minor_determinant = $cell * $this->getMinors($x)->determinant();\n if (($x % 2) === 0) {\n $determinant += $minor_determinant;\n } else {\n $determinant -= $minor_determinant;\n }\n }\n $this->cache[__METHOD__] = $determinant;\n break;\n }\n }\n\n return $this->cache[__METHOD__];\n }", "public function getGlobalMoyenne() {\r\n $query = \"SELECT AVG(MOYGENERALE) AS MOYCLASSE, MIN(MOYGENERALE) AS MOYMIN, \"\r\n . \"MAX(MOYGENERALE) AS MOYMAX \"\r\n . \"FROM (SELECT SUM(MOYENNE*COEFF)/SUM(COEFF) AS MOYGENERALE \"\r\n . \"FROM tmp_notes GROUP BY IDELEVE ORDER BY MOYGENERALE DESC) TOTALS \";\r\n return $this->row($query);\r\n }", "public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }", "public function imc(){\n\t\t\treturn $this-> peso / ($this->altura * $this->altura);\n\t\t}", "public function getCoMantenimiento()\n\t{\n\t\treturn $this->co_mantenimiento;\n\t}", "public function getMatricule(){\n return $this->$Matricule;\n }", "public function getMontacargasP()\n {\n\n return $this->montacargas_p;\n }", "public function getCierre_menor_inversion()\n {\n return $this->cierre_menor_inversion;\n }" ]
[ "0.67870015", "0.67870015", "0.67590207", "0.656417", "0.6526523", "0.63373774", "0.62547094", "0.6122955", "0.58927613", "0.589082", "0.58795637", "0.5839641", "0.58034325", "0.578789", "0.57419914", "0.5696554", "0.5691468", "0.5682332", "0.5669514", "0.563903", "0.55670536", "0.5557549", "0.5552216", "0.55492383", "0.55287886", "0.55010104", "0.5492276", "0.5468415", "0.5445468", "0.5444587" ]
0.8196023
0
Get the subrogation partielle.
public function getSubrogationPartielle() { return $this->subrogationPartielle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSub()\n {\n return $this->sub;\n }", "public function getPeriodeSubrDu() {\n return $this->periodeSubrDu;\n }", "public function getSubrogationMontant() {\n return $this->subrogationMontant;\n }", "public function get_superficie(){ return $this->_superficie;}", "public function setSubrogationPartielle($subrogationPartielle) {\n $this->subrogationPartielle = $subrogationPartielle;\n return $this;\n }", "public function getPeriodeSubrAu() {\n return $this->periodeSubrAu;\n }", "public function getSubstep()\n\t{\n\t\treturn $this->activeSubstep;\n\t}", "public function getSubTitle()\n {\n return $this->_sub_title;\n }", "function getSuburb()\n\t{\n\t\t// Load the Suburb data\n\t\tif ($this->_loadSuburb())\n\n\t\treturn $this->_suburb;\n\t}", "public function get_subpage() {\n\n\t\tif ( null === $this->subpage ) {\n\t\t\t$this->subpage = isset( $_GET['sub'] ) ? esc_attr( $_GET['sub'] ) : $this->get_initial_page();\n\t\t}\n\n\t\treturn $this->subpage;\n\t}", "public function subSelect(){\n try {\n // Sparql11query.g:620:3: ( project whereClause solutionModifier ) \n // Sparql11query.g:621:3: project whereClause solutionModifier \n {\n $this->pushFollow(self::$FOLLOW_project_in_subSelect2248);\n $this->project();\n\n $this->state->_fsp--;\n\n $this->pushFollow(self::$FOLLOW_whereClause_in_subSelect2250);\n $this->whereClause();\n\n $this->state->_fsp--;\n\n $this->pushFollow(self::$FOLLOW_solutionModifier_in_subSelect2252);\n $this->solutionModifier();\n\n $this->state->_fsp--;\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "Function getSubpart($template, $subpart) {\n\t\tReturn t3lib_parsehtml::getSubpart($template, $subpart);\n\t}", "public function get_sublink($id){\n $sql=\"SELECT etiqueta_sub FROM link WHERE id_sub='$id'\";\n $consulta=mysql_query($sql) or die(mysql_error());\n $resultado=mysql_fetch_array($consulta);\n\n return $resultado['etiqueta_sub'];\n }", "public function get_sublink($id){\t\n\t\t$sql=\"SELECT etiqueta_sub FROM link WHERE id_sub='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['etiqueta_sub'];\n\t}", "public function getSubserial()\n\t{\n\n\t\treturn $this->subserial;\n\t}", "public function getNamaSubSatker()\n {\n return $this->nama_sub_satker;\n }", "public function getPhadsubid()\n {\n return $this->phadsubid;\n }", "public function getSubTitle(){\n\t\treturn $this->ol[\"ISBN:\".$this->isbn][\"subtitle\"];\t\n\t}", "function getSubj(){\n\t\tglobal $_CON;\n\t\t$_SUBJ_ID = urldecode(base64_decode(subj_ID())); \n\t\t$sqlSearch = mysqli_query($_CON,\"SELECT subject_code, subject_name FROM subjects_table WHERE subject_id='$_SUBJ_ID' \");\n\t\t$count = mysqli_num_rows($sqlSearch);\n\t\tif($count > 0){\n\t\t\t$row = mysqli_fetch_array($sqlSearch);\n\t\t\t$subject_code = $row['subject_code'];\n\t\t\t$subject_name = $row['subject_name'];\n\t\t\treturn \"Subject: \" . $subject_code. \" - \" . $subject_name;\n\t\t}else{\n\t\t\theader(\"location: myclass.php?errno=404\");\n\t\t\tob_end_clean();\n\t\t}\n\t}", "public function get_sublink2($id){\n $sql=\"SELECT nombre_sub FROM sublink WHERE id_sub='$id'\";\n $consulta=mysql_query($sql) or die(mysql_error());\n $resultado=mysql_fetch_array($consulta);\n\n return $resultado['nombre_sub'];\n }", "public function getSubpartDataProvider() {}", "public function getFkPessoalSubDivisao()\n {\n return $this->fkPessoalSubDivisao;\n }", "public function getSub_category(){\n return $this->sub_category;\n }", "public function getKodeSubSatker()\n {\n return $this->kode_sub_satker;\n }", "public function getSubpasta()\r\n\t{\r\n\t\treturn $this->subpasta;\r\n\t}", "public function getPhadsubidseq()\n {\n return $this->phadsubidseq;\n }", "public static function getSuperior()\n {\n SWS_API::find();\n\n #si es de nivel 3 devuleve la subdireccion a la que pertenece\n #si es de nivel 2, el mismo\n #si es de nivel 1, el jefe de planeacion\n \n if($GLOBALS['SWS_UserObj'][5] == 3)\n {\n return SWS_API::getSubdireccion();\n }\n else if($GLOBALS['SWS_UserObj'][5] == 2)\n {\n return $GLOBALS['SWS_UserObj'];\n }\n else if($GLOBALS['SWS_UserObj'][5] == 1)\n {\n return SWS_API::getJefePlaneacion();\n }\n }", "public function getQuestionSubtext()\n {\n return $this->questionSubtext;\n }", "public function subir(){\n $respuesta = array();\n\n //obtengo la extension del archivo\n $info = new SplFileInfo($this->file[\"name\"]);\n $extencion = $info->getExtension();\n\n //concateno el nuevo nombre con la extension y tambien la ruta donde se guardara\n $nombre_imagen = $this->nombre . \".\" . $extencion;\n $ruta_archivo = $this->ruta . $nombre_imagen;\n \n //si no existe ningun archivo con ese nombre....\n if (!file_exists($ruta_archivo)) {\n //subiendo el archivo y guardando el resultado en una variable\n $subido = move_uploaded_file($this->file[\"tmp_name\"], $ruta_archivo);\n //devolviendo valores segun el resultado de la operacion\n if($subido){\n $respuesta[\"resultado\"] = true;\n $respuesta[\"mensaje\"] = $nombre_imagen;\n }else {\n $respuesta[\"resultado\"] = false;\n $respuesta[\"mensaje\"] = \"Ocurrió un error al subir el archivo\";\n }\n } else {\n $respuesta[\"resultado\"] = false;\n $respuesta[\"mensaje\"] = \"Ya existe un archivo con el mismo nombre\";\n }\n return $respuesta;\n }", "public function get_sublink2($id){\t\n\t\t$sql=\"SELECT nombre_sub FROM sublink WHERE id_sub='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['nombre_sub'];\n\t}" ]
[ "0.710265", "0.68591785", "0.68532294", "0.6537732", "0.6433126", "0.64165735", "0.62268865", "0.608651", "0.60478926", "0.60454476", "0.60081637", "0.5997882", "0.5987769", "0.5961897", "0.58940655", "0.5872393", "0.5860563", "0.58438534", "0.58394283", "0.5834289", "0.5831642", "0.5804384", "0.5777378", "0.577297", "0.57589674", "0.57453", "0.5732847", "0.57286054", "0.57144535", "0.5710313" ]
0.87371856
0
Get the suspension date.
public function getSuspensionDate() { return $this->suspensionDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getResumeDate()\n {\n return isset($this->transaction['resumeDate']) ? $this->transaction['resumeDate'] : '';\n }", "public function setSuspensionDate(DateTime $suspensionDate = null) {\n $this->suspensionDate = $suspensionDate;\n return $this;\n }", "public function getWarrantyDate()\n {\n return $this->warrantyDate;\n }", "public function getSuspendPeriodFrom(): ?DateTime {\n return $this->suspendPeriodFrom;\n }", "public function getProducedAt()\r\n\t{\r\n\t\treturn $this->producedAt ?? new \\DateTime(\"now\");\r\n\t}", "public function getSuspendPeriodUntil(): ?DateTime {\n return $this->suspendPeriodUntil;\n }", "public function getPendingDate() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->pendingDate;\r\n\t}", "public function getRejectionDate() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->rejectionDate;\r\n\t}", "public function getReportedDate();", "public function getRepeatPropertyBookerDate()\n {\n if ($this->repeatPropertyBookerDate) {\n return new \\DateTime($this->repeatPropertyBookerDate);\n } else {\n return;\n }\n }", "public function getInvdate()\n {\n return $this->invdate;\n }", "function getDateNotified() {\n\t\treturn $this->getData('dateNotified');\n\t}", "public function getFilingDate() {\n\t\treturn self::$_filingDate;\n\t}", "public function setSuspendDate($v)\n {\n $dt = PropelDateTime::newInstance($v, null, 'DateTime');\n if ($this->suspend_date !== null || $dt !== null) {\n if ($this->suspend_date === null || $dt === null || $dt->format(\"Y-m-d H:i:s.u\") !== $this->suspend_date->format(\"Y-m-d H:i:s.u\")) {\n $this->suspend_date = $dt === null ? null : clone $dt;\n $this->modifiedColumns[AliMemberTableMap::COL_SUSPEND_DATE] = true;\n }\n } // if either are not null\n\n return $this;\n }", "public function getReceptionDate();", "public function getReportDate()\n {\n return $this->reportDate;\n }", "public function getSuspendDate($format = NULL)\n {\n if ($format === null) {\n return $this->suspend_date;\n } else {\n return $this->suspend_date instanceof \\DateTimeInterface ? $this->suspend_date->format($format) : null;\n }\n }", "public function getdefaultPlannedEndDate()\n {\n return $this->defaultplannedenddate;\n }", "function getDateReminded() {\n\t\treturn $this->getData('dateReminded');\n\t}", "public function getDATE_DEPOT()\n {\n return $this->DATE_DEPOT;\n }", "public function getExpirationDate()\n {\n return $this->expirationDate;\n }", "public function getExpirationDate()\n {\n return $this->expirationDate;\n }", "public function getExpirationDate();", "public function getUseDate() \n \t{\n \t\treturn $this->use_date;\n \t}", "public function getExpirationDate()\n {\n return $this->user_expiration;\n }", "public function getPassportIssuedDate(): string {\n return $this->passport_issued_date;\n }", "public function getPublish_date() {\n return $this->publish_date;\n }", "public function get()\n {\n return $this->date;\n }", "public function getExpiryDate(){\n\t\t$expiryDate = $this->config->getAppValue('owncollab_ganttchart', 'shareExpiryDate', 0);\n\t\treturn $expiryDate;\n\t}", "public function getEntryDate()\n {\n return $this->entry_date;\n }" ]
[ "0.6634977", "0.64603627", "0.6417197", "0.6376608", "0.63691443", "0.62666166", "0.6255111", "0.6137486", "0.60963744", "0.60859627", "0.6065824", "0.6056718", "0.60465556", "0.5945188", "0.59336877", "0.5909884", "0.5894052", "0.58927625", "0.5881432", "0.5875179", "0.5863897", "0.5863897", "0.585388", "0.58503705", "0.5841255", "0.58251333", "0.57980084", "0.5783459", "0.57790613", "0.5762837" ]
0.84831387
0
Get the suspension motif.
public function getSuspensionMotif() { return $this->suspensionMotif; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSuspensionMotif($suspensionMotif) {\n $this->suspensionMotif = $suspensionMotif;\n return $this;\n }", "public function getMotif()\n {\n return $this->motif;\n }", "private function getPlayback() {\n\t\treturn $this->socketSend('playback');\n\t}", "public function getStatusSuspend()\n {\n return $this->status_suspend;\n }", "public function getSuspended()\n {\n return $this->suspended;\n }", "public function getSuspended()\n {\n return $this->suspended;\n }", "public function getPause()\n {\n return $this->get(self::PAUSE);\n }", "public function getMotifRupture() {\n return $this->motifRupture;\n }", "public function getRepriseMotifMed() {\n return $this->repriseMotifMed;\n }", "public function isSuspend() {\n return $this->isSuspended;\n }", "public function getSuspensionDate() {\n return $this->suspensionDate;\n }", "public function getProcNotif(){\n return $this->_data['proc_notif'];\n }", "public function getPromImg()\n {\n return $this->prom_img;\n }", "public function getSleep()\n {\n return $this->sleep;\n }", "public function getSleep()\n {\n return $this->sleep;\n }", "public function getPresentation();", "public function getMedida() {\n return $this->iMedida;\n }", "public function getSuspendPeriodUntil(): ?DateTime {\n return $this->suspendPeriodUntil;\n }", "public function getIdPromocion()\n {\n return $this->id_promocion;\n }", "public function suspended()\n\t{\n\t\t$this->load->model('Common/Data_seed_m');\n\t\t$data = $this->Data_seed_m->suspended();\n\t\treturn $data;\n\t}", "public static function get()\n {\n return Present_student_notif::with(\"time\")->where(\"status\", config('globalVariable.starting'))->get();\n }", "public function getMotivation() {\n return $this->motivation;\n }", "public function getEstadoMuteadoProyector() {\n if ($this->proyector_central->is_mute()) {\n return \"MUTE\";\n } else {\n return \"NO_MUTE\";\n }\n\n }", "public function getFreeToPlay()\n {\n return $this->get('freeToPlay', false);\n }", "public function getDismiss()\n {\n return $this->get(self::_DISMISS);\n }", "public function isSuspended()\n {\n return $this->suspended;\n }", "function suspendCurrent()\n {\n $this->currentTcb->markAsSuspended();\n return $this->currentTcb;\n }", "public function getSuspendPeriodFrom(): ?DateTime {\n return $this->suspendPeriodFrom;\n }", "public function get_current_interstitial() {\n\t\treturn $this->data['current'];\n\t}", "public function getSpe()\n {\n return $this->spe;\n }" ]
[ "0.6076829", "0.5718892", "0.5703779", "0.5661769", "0.56431335", "0.56431335", "0.5598952", "0.5459187", "0.53669477", "0.53464985", "0.53318924", "0.5304171", "0.51613164", "0.51145524", "0.51145524", "0.5083021", "0.5077428", "0.50711846", "0.50604934", "0.5057615", "0.5057294", "0.50538474", "0.49191198", "0.48993888", "0.48971516", "0.48942134", "0.48930234", "0.48879835", "0.48558322", "0.48275986" ]
0.7695198
0
Get the travail temp.
public function getTravailTemp() { return $this->travailTemp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTempLink()\n {\n return $this->temp_loc;\n }", "public function getCodeUniteTempsTravail() {\n return $this->codeUniteTempsTravail;\n }", "private function getCurrentTemp() {\n $statement = $this->db->prepare('SELECT * FROM \"temperature\" ORDER BY \"created\" DESC LIMIT 1');\n $result = $statement->execute();\n return $result->fetchArray(SQLITE3_ASSOC)['amount'];\n }", "public function getTempUnit() {\n return $this->cTempUnit;\n }", "public function getTempFile()\n {\n return $this->tempFile;\n }", "public function getTempUnit() {\n\t\treturn $this->unit;\n\t}", "public function getDispenseTravail() {\n return $this->dispenseTravail;\n }", "function getTempo()\r\n {\r\n return $this->getData(DATE_FORMAT_UNIXTIME);\r\n }", "public function getGTemp(){\r\n\t\treturn Yii::app()->TempRep->GetById($this->tmp);\r\n\t}", "public function getTemperature() {\n\t\treturn $this->temperature;\n\t}", "public function getTrip()\n {\n return isset($this->trip) ? $this->trip : null;\n }", "public function getTemperature() {\n\t\treturn $this->_temperature;\n\t}", "public function setTravailTemp($travailTemp) {\n $this->travailTemp = $travailTemp;\n return $this;\n }", "public function getTmpPath()\n\t{\n\t\treturn $this->tmp_path;\n\t}", "public function getEtabLieuTravail() {\n return $this->etabLieuTravail;\n }", "public function getTemp(string $key) : mixed\n {\n if (isset($_SESSION['$']['temp'][$key])) {\n if ($_SESSION['$']['temp'][$key]['ttl'] > \\time()) {\n return $_SESSION['$']['temp'][$key]['data'];\n }\n unset($_SESSION['$']['temp'][$key]);\n }\n return null;\n }", "private function getTX()\n {\n return $this->getRemote($this->RemoteQuery['ip'], \".1.3.6.1.2.1.10.127.1.2.2.1.3.2\", $this->RemoteQuery['community']);\n }", "public function getTempDir(): string\n\t{\n\t\treturn $this->tempDir;\n\t}", "public function getTempCacheTimeToLive() {\n return $this->temporaryCacheTtl;\n }", "public function getTemperature(): string\n {\n return $this->temperature;\n }", "public static function getTempDir()\n {\n self::TMP_DIR or die('missing temp directory!!!');\n\n return dirname(__FILE__) . '/' . self::TMP_DIR;\n }", "public function getTempPath()\n {\n return $this->_tempPath;\n }", "public function getTempName() {}", "public function getTrial()\n {\n return $this->trial;\n }", "public function getTrial()\n {\n return $this->trial;\n }", "public function getTemperature();", "public function getInputTempUnit() {\n return $this->cInputTempUnit;\n }", "public function getTemperature()\n {\n //no-op\n }", "protected function get_temperature( ) {\n// depending on the temperature, Heat Index or Wind Chill Temperature is calculated.\n// Format is tt/dd where tt = temperature and dd = dew point temperature. All units are\n// in Celsius. A 'M' preceeding the tt or dd indicates a negative temperature. Some\n// stations do not report dew point, so the format is tt/ or tt/XX.\n\n if (preg_match('#^(M?[0-9]{2})/(M?[0-9]{2}|[X]{2})?$#',$this->current_group_text,$pieces)) {\n $tempC = (integer) strtr($pieces[1], 'M', '-');\n $tempF = round(1.8 * $tempC + 32);\n $this->wxInfo['ITEMS'][$this->tend]['TEMPERATURE_C'] = $tempC;\n// $this->wxInfo['ITEMS'][$this->tend]['TEMPERATURE_F'] = $tempF;\n $this->wxInfo['ITEMS'][$this->tend]['WINDCHILL_C'] = $tempC;\n// $this->wxInfo['ITEMS'][$this->tend]['WINDCHILL_F'] = $tempF;\n $this->get_wind_chill($tempF);\n if (strlen($pieces[2]) != 0 && $pieces[2] != 'XX') {\n $dewC = (integer) strtr($pieces[2], 'M', '-');\n $dewF = convertTempToF($dewC);\n $this->wxInfo['ITEMS'][$this->tend]['DEWTEMPERATURE_C'] = $dewC;\n// $this->wxInfo['ITEMS'][$this->tend]['DEWTEMPERATURE_F'] = $dewF;\n $rh = round(100 * pow((112 - (0.1 * $tempC) + $dewC) / (112 + (0.9 * $tempC)), 8),1);\n $this->wxInfo['ITEMS'][$this->tend]['HUMIDITY'] = $rh;\n $this->get_heat_index($tempF, $rh);\n }\n $this->wxInfo['ITEMS'][$this->tend]['CODE_TEMPERATURE'] = $this->current_group_text;\n $this->current_ptr++;\n $this->current_group++;\n }\n else {\n $this->current_group++;\n }\n }", "public static function getTempDir() {}" ]
[ "0.6748049", "0.66022974", "0.6425537", "0.6398941", "0.6396713", "0.6345167", "0.6250627", "0.62267524", "0.6151169", "0.60739034", "0.602443", "0.6012342", "0.6008299", "0.5965899", "0.59576935", "0.5947864", "0.59262604", "0.5858319", "0.5849059", "0.5817639", "0.58110064", "0.5700034", "0.56831604", "0.5648742", "0.5648742", "0.56479067", "0.5622986", "0.561421", "0.55942583", "0.55881304" ]
0.84011436
0
Get the type attestation.
public function getTypeAttestation() { return $this->typeAttestation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "function _get_type() {\n\t\treturn $this->type();\n\n\t}", "private function get_type() {\n\n\t}", "public function get_type();", "function get_type() {\n\t\treturn $this->get_data( 'type' );\n\t}", "public function get_type(): string;", "public function GetType()\n {\n return ( $this->type );\n }", "final protected function get_type() {\n return $this->type;\n }", "public function type()\n {\n return $this->_type;\n }", "public function type() {\n\t\t\treturn $this->_type;\n\t\t}", "public function type()\n {\n return $this->type;\n }", "public function type()\n {\n return $this->type;\n }", "public function type()\n {\n return $this->type;\n }", "public function GetType(){\r\n\t\treturn $this->type;\r\n\t}", "public function GetType(){\r\r\n\t\treturn $this->type;\r\r\n\t}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}" ]
[ "0.7098099", "0.7097878", "0.7097821", "0.7097821", "0.7097083", "0.7037731", "0.6992977", "0.6922783", "0.69054574", "0.68294924", "0.6812601", "0.67897886", "0.6783906", "0.6773932", "0.6771674", "0.6771674", "0.6771674", "0.6768191", "0.6751322", "0.6732734", "0.6732734", "0.6732705", "0.6732705", "0.6732705", "0.6732681", "0.6732681", "0.6732681", "0.6732681", "0.6732681", "0.6732681" ]
0.86887246
0
Set the cas general.
public function setCasGeneral($casGeneral) { $this->casGeneral = $casGeneral; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCasGeneral() {\n return $this->casGeneral;\n }", "public function setGeneral() // Attribuer une valeur générale à un attaquant\n {\n $this->_general = round($this->attaqueCalcul());\n }", "private function cas_init()\n {\n session_name((isset($this->config[ 'session_name' ]) ? $this->config[ 'session_name' ] : 'CASAuth'));\n // initialize CAS client\n $this->configureCasClient();\n $this->configureSslValidation();\n $this->detect_authentication();\n\n // set service URL for authorization with CAS server\n //\\phpCAS::setFixedServiceURL();\n if ( ! empty($this->config[ 'cas_service' ])) {\n phpCAS::allowProxyChain(new \\CAS_ProxyChain_Any);\n }\n // set login and logout URLs of the CAS server\n phpCAS::setServerLoginURL($this->config[ 'cas_login_url' ]);\n phpCAS::setServerLogoutURL($this->config[ 'cas_logout_url' ]);\n }", "public function setForCMS() {\r\n\t\t$this->setContentTypes();\r\n\t\t$this->setEditable(true);\r\n\t\t$this->setHomepageEditable(true);\r\n\t\t$this->setDisableButtons(false);\r\n\t\t$this->setOnlyTree(false);\r\n\t}", "public function cas($cas, $key, $value, $expiry = 0) {}", "public static function setNoCasServerValidation() \n\t{\n\t\tacPhpCas::setReporting();\n\t\tphpCAS::setNoCasServerValidation();\t\t\n\t}", "public static function setCasServerCert($cert) \n\t{\n\t\tacPhpCas::setReporting();\n\t\tphpCAS::setCasServerCert($cert);\n\t}", "public function casAction()\n {\n $auth = Zend_Auth::getInstance();\n $casAdapter = $this->_getCasAdapter();\n $casAdapter->setTicket($this->_getParam('ticket'));\n \n if ($this->_getParam('logoutRequest')) {\n $casAdapter->handleLogoutRequest($this->_getParam('logoutRequest'));\n }\n \n try {\n $result = $auth->authenticate(new Unl_Auth_Adapter_Cas($casAdapter));\n } catch (Exception $e) {\n //\n }\n \n if ($result && $result->isValid()) {\n $this->_setupUser(Zend_Auth::getInstance()->getIdentity());\n } else {\n Zend_Auth::getInstance()->clearIdentity();\n if (isset($_COOKIE['unl_sso'])) {\n setcookie('unl_sso', 'fake', time() - 60*60*24, '/', '.unl.edu');\n }\n }\n \n $session = new Zend_Session_Namespace(__CLASS__);\n $this->_redirect($session->referer);\n }", "public static function setCasServerCACert($cert) \n\t{\n\t\tacPhpCas::setReporting();\n\t\tphpCAS::setCasServerCACert($cert);\t\t\n\t}", "public function setCf($_cf)\n {\n $this->cf = $_cf;\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 setAcl()\n {\n Zend_Registry::set('acl',$this->acl);\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 setAuth(CommonAuth $auth)\n {\n $this->auth = $auth;\n }", "private function setRule()\n\t{\n\t\t$this->rule = ( $this->timber->security->isAuth() && $this->timber->security->isClient() ) ? 'client' : $this->rule;\n\t\t$this->rule = ( $this->timber->security->isAuth() && $this->timber->security->isStaff() ) ? 'staff' : $this->rule;\n\t\t$this->rule = ( $this->timber->security->isAuth() && $this->timber->security->isAdmin() ) ? 'admin' : $this->rule;\n\t}", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "abstract public function set();", "function set_acl_base($base)\n {\n $this->acl_base = $base;\n foreach ($this->plugins as $name => $obj) {\n $this->plugins[$name]->set_acl_base($base);\n }\n }", "function setBaseCalculo($nValorBaseCalculo) {\n $this->nValorBaseCalculo = $nValorBaseCalculo;\n }", "public function _settings_remote_auth_section_general() {\n _e( 'The general remote authentication settings', 'zendesk' );\n }", "public function set_general_fields( $post_id, $request ) {\n\n\t\tif ( ! $post_id && ! $request ) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// Set type.\n\t\t$request->set_type( $this->get_type( $post_id ) );\n\n\t\t// Set general description id.\n\t\t$request->set_statutory_service_general_description_id( $this->get_statutory_service_general_description_id( $post_id ) );\n\n\t\t// Set status.\n\t\t$request->set_publishing_status( $this->get_publishing_status( $post_id ) );\n\n\t\t// Set service names.\n\t\t$request->set_service_names( $this->get_service_names( $post_id ) );\n\n\t\t// Set service descriptions.\n\t\t$request->set_service_descriptions( $this->get_service_descriptions( $post_id ) );\n\n\t\t// Set service charge type.\n\t\t$request->set_service_charge_type( $this->get_service_charge_type( $post_id ) );\n\n\t\t// Set requirements.\n\t\t$request->set_requirements( $this->get_requirements( $post_id ) );\n\n\t\t// Set area type.\n\t\t$request->set_area_type( $this->get_area_type( $post_id ) );\n\n\t\t// Set areas.\n\t\t$request->set_areas( $this->get_areas( $post_id ) );\n\n\t\t// Set legislation.\n\t\t$request->set_legislation( $this->get_legislation( $post_id ) );\n\n\t\tif ( ! $request->get_legislation() && method_exists( $request, 'set_delete_all_laws' ) ) {\n\t\t\t$request->set_delete_all_laws( true );\n\t\t}\n\n\t\t// Set languages.\n\t\t$request->set_languages( $this->get_languages( $post_id ) );\n\n\t\t// Set funding type.\n\t\t$request->set_funding_type( $this->get_funding_type( $post_id ) );\n\n\t\t// Set main responsible organization.\n\t\t$request->set_main_responsible_organization( $this->get_main_responsible_organization( $post_id ) );\n\n\t\t// Set main responsible organizations.\n\t\t$request->set_other_responsible_organizations( $this->get_other_responsible_organizations( $post_id ) );\n\n\t\t// Set service producers.\n\t\t$request->set_service_producers( $this->get_service_producers( $post_id ) );\n\n\t\t// Set service vouchers in use.\n\t\t$request->set_service_vouchers_in_use( $this->get_service_vouchers_in_use( $post_id ) );\n\n\t\t// Set service vouchers.\n\t\t$request->set_service_vouchers( $this->get_service_vouchers( $post_id ) );\n\n\t\t// Set target groups.\n\t\t$request->set_target_groups( $this->get_target_groups( $post_id ) );\n\n\t\t// Set ontology terms.\n\t\t$request->set_ontology_terms( $this->get_ontology_terms( $post_id ) );\n\n\t\t// Set life events.\n\t\t$request->set_life_events( $this->get_life_events( $post_id ) );\n\n\t\t// Delete all life events if none is set.\n\t\tif ( ! $request->get_life_events() && method_exists( $request, 'set_delete_all_life_events' ) ) {\n\t\t\t$request->set_delete_all_life_events( true );\n\t\t}\n\n\t\t// Set service classes.\n\t\t$request->set_service_classes( $this->get_service_classes( $post_id ) );\n\n\t\t// Set ontology terms.\n\t\t$request->set_industrial_classes( $this->get_industrial_classes( $post_id ) );\n\n\t\t// Delete all industrial classes if none is set.\n\t\tif ( ! $request->get_industrial_classes() && method_exists( $request, 'set_delete_all_industrial_classes' ) ) {\n\t\t\t$request->set_delete_all_industrial_classes( true );\n\t\t}\n\n\t\treturn $request;\n\n\t}", "function setSubject($subject_toset,$default=\"No Subject\"){\n\t\t\tif(strlen($subject_toset)>0)\n\t\t\t{\n\t\t\t\t$this->subject=$subject_toset;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->subject=$default;\t\n\t\t\t}\n\t\t}", "function setCommonInfo()\n\t{\n\t\t$this->configobj = new configclass();\t\t\n\t\t\n\t}", "private function _setDefaults() {\r\n\t\t$checked = $selected = '';\r\n\t\t$isAdmin = $hasCart = false;\r\n\t\tif($this->isAdmin()) {\r\n\t\t\t$isAdmin = true;\r\n\t\t}\r\n\t\tif($this->Session->check('Order.id')) {\r\n\t\t\t$hasCart = true;\r\n\t\t}\r\n\t\t$this->set(compact('checked', 'selected', 'isAdmin', 'hasCart'));\r\n\t\t\r\n\t\t$this->layout = 'shop';\r\n\t\tif(isset($this->params['admin'])) {\r\n\t\t\t$this->layout = 'admin';\r\n\t\t}\r\n\t}", "public function configure_merchant_settings() {\n\t\t$this->title = $this->get_option( 'title' );\n\t\t$this->enabled = $this->get_option( 'enabled' );\n\t\t$this->payment_action = $this->get_option( 'payment_action' );\n\t\t$this->txn_descriptor = $this->get_option( 'txn_descriptor' );\n\t\t$this->allow_card_saving = $this->get_option( 'allow_card_saving' ) === 'yes';\n\n\t\tforeach ( $this->get_gateway_form_fields() as $key => $options ) {\n\t\t\tif ( ! property_exists( $this, $key ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$value = $this->get_option( $key );\n\n\t\t\tif ( 'checkbox' === $options['type'] ) {\n\t\t\t\t$value = 'yes' === $value;\n\t\t\t}\n\n\t\t\t$this->{$key} = $value;\n\t\t}\n\t}", "function cuser_set($disp,$grps,$rights){\n $this->cname = $disp;\n $this->cgroups = $grps;\n $this->crights = $rights;\n }", "public function setCollection()\n {\n $cl = $this->nameCollection;\n $this->collection = self::$database->$cl;\n }", "public function initialize()\n\t{\n\t\trequire_once(dirname(__FILE__).'/../lib/vendor/phpCAS/CAS.class.php');\n\t}", "public function setTipo(string $tipo)\n {\n if (!is_null($this->tipo)) {\n return;\n }\n\n switch ($tipo) {\n case 'cc':\n $this->saldo = 20;\n break;\n case 'cp':\n $this->saldo = 70;\n break;\n default:\n die('<h3>Tipo de Conta inválida! Insira somente cc ou cp!</h3>');\n }\n\n $this->tipo = $tipo;\n }", "public function set_correlativo( $param )\n {\n #uniendo con el detalle de venta\n $corr = 0;\n $data_update = array();\n switch ($param['tipo']) {\n case 'F':\n $data_update['correlativo_factura'] = $param['corr'];\n break;\n case 'B':\n $data_update['correlativo_boleta'] = $param['corr'];\n break;\n }\n DB::table('config')\n ->where('id', 1)\n ->update( $data_update );\n #\n }" ]
[ "0.6339077", "0.56195015", "0.5608804", "0.5055983", "0.47993225", "0.47356996", "0.47322875", "0.46985862", "0.46602115", "0.4656535", "0.46100768", "0.45420977", "0.4532391", "0.4520497", "0.45156774", "0.4508978", "0.45078292", "0.4470023", "0.4463007", "0.446197", "0.44617108", "0.44556576", "0.44476646", "0.44248748", "0.4415169", "0.44038388", "0.439519", "0.43911487", "0.43756992", "0.43717837" ]
0.65141845
0
Set the cas particulier.
public function setCasParticulier($casParticulier) { $this->casParticulier = $casParticulier; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function setCC()\n {\n }", "public function getCasParticulier() {\n return $this->casParticulier;\n }", "abstract public function set();", "public function set_cidade($cidade) : void\n {\n try {\n $this->cidade = Validador::Cidade()::validar_id($cidade);\n } catch (Exception $e) {\n $this->cidade = Validador::Cidade()::filtrar_id($cidade);\n }\n }", "public function setCf($_cf)\n {\n $this->cf = $_cf;\n }", "public function testSetFicheSignee() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setFicheSignee(true);\n $this->assertEquals(true, $obj->getFicheSignee());\n }", "function setCC($cc){\n\t\t\t$this->cc = $cc;\n\t\t}", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "public function testSetCodeChantier() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeChantier(\"codeChantier\");\n $this->assertEquals(\"codeChantier\", $obj->getCodeChantier());\n }", "public function testSetSuperviseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSuperviseur(true);\n $this->assertEquals(true, $obj->getSuperviseur());\n }", "public function testSetSignQualite() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignQualite(10);\n $this->assertEquals(10, $obj->getSignQualite());\n }", "public function setCodiCasa($value) {\n\t\t//validando de que el valor sea un id\n\t\tif ($this->validateId($value)) {\n\t\t\t//seteando valor a la variable codigo\n\t\t\t$this->codi_casa = $value;\n\t\t\t//retornar true\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//retornar respuesta falso\n\t\t\treturn false;\n\t\t}\n\t}", "public function testSetCodeChantier() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeChantier(\"codeChantier\");\n $this->assertEquals(\"codeChantier\", $obj->getCodeChantier());\n }", "public function __set($name, $value)\n\t{\n\t\t$method = 'set' . $name;\n\t\tif (!method_exists($this, $method)) \n\t{\n\t\tthrow new \\Exception('Class Entity: Trmsus Invalid specified property: set'.$name);\n\t}\n\t$this->$method($value);\n\t}", "public function testSetAllegParticulier() {\n\n $obj = new Employes();\n\n $obj->setAllegParticulier(true);\n $this->assertEquals(true, $obj->getAllegParticulier());\n }", "public function testSetCasPartSs() {\n\n $obj = new Employes();\n\n $obj->setCasPartSs(true);\n $this->assertEquals(true, $obj->getCasPartSs());\n }", "public function setChanger(UserInterface $user)\n {\n $this->entity->setChanger($user);\n }", "public function testSetTypeControle() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setTypeControle(\"typeControle\");\n $this->assertEquals(\"typeControle\", $obj->getTypeControle());\n }", "public function testSetSignRaisonSociale() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignRaisonSociale(\"signRaisonSociale\");\n $this->assertEquals(\"signRaisonSociale\", $obj->getSignRaisonSociale());\n }", "protected function setOrganization() {}", "public function setFabricante($fabricante)\n\t{\n\t\tif ($fabricante == NULL)\n\t\t{\n\t\t\t$this->fabricante = NULL;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (is_a($fabricante, \"ENFabricante\"))\n\t\t\t{\n\t\t\t\t$this->fabricante = $fabricante;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function beforeSet() {\r\n\t\t$this->oldDomain = $this->object->get('domain');\r\n\t\t$sitestart = $this->getProperty('sitestart');\r\n\t\t$this->setProperty('sitestart', (!empty($sitestart) ? $sitestart : null));\r\n\t\t\r\n\t\treturn parent::beforeSet();\r\n\t}", "public function testSetQuePremiereAnnee() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setQuePremiereAnnee(true);\n $this->assertEquals(true, $obj->getQuePremiereAnnee());\n }", "function setQuestion( &$question )\r\n {\r\n if ( is_a( $question, \"eZQuizQuestion\" ) )\r\n $this->Question = $question;\r\n }", "public function testSetComplement() {\n\n $obj = new Collaborateurs();\n\n $obj->setComplement(\"complement\");\n $this->assertEquals(\"complement\", $obj->getComplement());\n }", "public function set()\n {\n setcookie($this->name, $this->value, $this->time);\n\n }", "public function __set($name, $value)\n\t{\n\t\t$method = 'set' . $name;\n\t\tif (!method_exists($this, $method)) \n\t{\n\t\tthrow new \\Exception('Class Entity: Ttcidi Invalid specified property: set'.$name);\n\t}\n\t$this->$method($value);\n\t}", "public function setC($x) { $this->c = $x; }", "public function setCadence($val){\n $this->cadence = $val;\n return $this;\n }" ]
[ "0.56581694", "0.5586182", "0.5514884", "0.54723096", "0.54310167", "0.5376648", "0.534794", "0.53461814", "0.53399163", "0.52470607", "0.51738524", "0.5165805", "0.5121851", "0.5117559", "0.51152843", "0.5096076", "0.5047848", "0.5046917", "0.50407034", "0.5036099", "0.50027794", "0.4993887", "0.49885967", "0.4983652", "0.49713707", "0.49710786", "0.49523842", "0.49381518", "0.49198163", "0.4899693" ]
0.58338654
0
Set the date naissance employe.
public function setDateNaissanceEmploye(DateTime $dateNaissanceEmploye = null) { $this->dateNaissanceEmploye = $dateNaissanceEmploye; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t\t}\r\n\r\n\t\tif ($this->year > 2037) $this->year = 2037;\r\n\t\tif ($this->year < 1971) $this->year = 1971;\r\n\t}", "public function setFecha($n)\n {\n $this->c_fecha=$n;\n }", "public function setDate($date);", "public function setDateDuJour()\n{\n$this->setDateSysteme(date(\"Y-m-d\"));\n$this->setDateUtilisateur(date(\"d/m/Y\"));\n}", "public function setDate($date){\n\t\t$this->date = $date;\n\t}", "public function testSetDateNaissance() {\n\n // Set a Date/time mock.\n $dateNaissance = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateNaissance($dateNaissance);\n $this->assertSame($dateNaissance, $obj->getDateNaissance());\n }", "public function setDate($date) {\n $this->date = $date;\n }", "public function setDate($date)\n\t{\n\t\t$this->date = $date;\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date)\n {\n $this->date = $date;\n }", "protected function setDateUtilisateur($date)\n{\n$this->dateUtilisateur = $date;\t\n}", "public function setDate($value) {\n\t\t$this->_date = $value;\n\t}", "public function getDateNaissanceEmploye() {\n return $this->dateNaissanceEmploye;\n }", "public function setDateMiseEnLigne($dateMiseEnLigne) \n\t{\n\t\t\n $this ->dateMiseEnLigne = empty($dateMiseEnLigne) ? \"\" : $dateMiseEnLigne;\t\n\t}", "public function setModDate($date) {}", "public function testSetDateNaissConjoint() {\n\n // Set a Date/time mock.\n $dateNaissConjoint = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateNaissConjoint($dateNaissConjoint);\n $this->assertSame($dateNaissConjoint, $obj->getDateNaissConjoint());\n }", "public function setUseDate($use_date) \n \t{\n \t\t$this->use_date = $use_date;\n \t}", "public function testSetDateNaissance() {\n\n // Set a Date/time mock.\n $dateNaissance = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDateNaissance($dateNaissance);\n $this->assertSame($dateNaissance, $obj->getDateNaissance());\n }", "private function setDate(){\n\t// Validate incoming parameters\n\t\t$this->di->logger->stamp(__CLASS__, __METHOD__, '');\n\tif (isset($_GET['month'])) {\n\t\tis_numeric($_GET['month']) or die('month has to be numeric');\n\t}\n\tif (isset($_GET['year'])) {\n\t\tis_numeric($_GET['year']) or die('year has to be numeric');\n\t}\n\n\t// Set new date\n\t$this->newMonth = isset($_GET['month']) ? ($_GET['month']) : $this->currentMonth;\n\t$this->newYear = isset($_GET['year']) ? ($_GET['year']) : $this->currentYear;\n\n\tif ($this->newMonth > 12) {\n\t\t$this->newYear = $this->newYear +1;\n\t\t$this->newMonth = 1;\n\t\t$_GET['month'] = 1;\n\n\t}\n\telse if ($this->newMonth < 1) {\n\t\t$this->newYear = $this->newYear -1;\n\t\t$this->newMonth = 12;\n\t\t$_GET['month'] = 12;\n\t}\n\t\n\t}", "function set_change_sale_date_enable() {\n $this->sale_lib->set_change_sale_date_enable($this->input->post('change_sale_date_enable'));\n if (!$this->sale_lib->get_change_sale_date()) {\n $this->sale_lib->set_change_sale_date(date(get_date_format()));\n }\n }", "function setDate($date = null)\r\n\t{\t\r\n\t\t$day = substr($date ,8, 2);\r\n\t\t$month = substr($date ,5, 2);\r\n\t\t$year = substr($date ,0, 4);\r\n\t\t\r\n\t\t$newDate = $day.'-'.$month.'-'.$year;\r\n\t\t\r\n\t\treturn $newDate;\r\n\t}", "public function setDay($day){\n\t\t$this->_day = (int) $day;\n\t\t$monthDays = self::$_monthTable[$this->_month-1];\n\t\tif($this->isLeapYear()==true&&$this->_month==2){\n\t\t\t++$monthDays;\n\t\t}\n\t\tif($this->_day>$monthDays){\n\t\t\t$this->_day = self::$_monthTable[$this->_month-1];\n\t\t}\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public function setDateOfBirth()\n {\n $dateOfBirth = request('dob_year') . '-' . request('dob_month') . '-' . request('dob_day');\n\n $this->date_of_birth = $dateOfBirth;\n $this->save();\n }", "function setEndDate($end_date = \"\") \n\t{\n\t\t$this->end_date = $end_date;\n\t}", "public static function setDateFormatDay()\n {\n self::$settings[0] = 'Y-m-d';\n }", "function setData($data)\n {\n $this->date=$data;\n }", "protected function setDefaultExpDate() {\n $user = new User();\n if ($user->hasRole('Company Administrator')) {\n $exp_date = $this->getDefaultElementValue('exp_date');\n $this->setElementPropertyValue('exp_date',\n array('#default_value', 'value'), $exp_date);\n }\n }", "function setFecha($fecha) {\r\n $this->fecha = $fecha;\r\n }", "function setDay($d)\r\n {\r\n if($d > 31 || $d < 1) {\r\n $this->dia = 1;\r\n } else {\r\n $this->dia = $d;\r\n }\r\n }", "public function setDate($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }" ]
[ "0.72519827", "0.6952645", "0.6942366", "0.69341314", "0.6900791", "0.68350714", "0.6785719", "0.6775258", "0.6772178", "0.6772178", "0.6631212", "0.65668344", "0.64628696", "0.6452138", "0.64067966", "0.6366432", "0.6279073", "0.6247718", "0.62279093", "0.6193304", "0.61779976", "0.61681306", "0.6161949", "0.6159159", "0.6130376", "0.61218894", "0.611378", "0.61107594", "0.6105727", "0.60968006" ]
0.69560844
1
Set the dern j.
public function setDernJ(DateTime $dernJ = null) { $this->dernJ = $dernJ; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDernJ() {\n return $this->dernJ;\n }", "private function j() {\n }", "function setDay($d)\r\n {\r\n if($d > 31 || $d < 1) {\r\n $this->dia = 1;\r\n } else {\r\n $this->dia = $d;\r\n }\r\n }", "public function setJadwalDimulai($jadwal_dimulai);", "function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }", "private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t\t}\r\n\r\n\t\tif ($this->year > 2037) $this->year = 2037;\r\n\t\tif ($this->year < 1971) $this->year = 1971;\r\n\t}", "function setDS_NO($DS_NO){ $this->DS_NO = $DS_NO; }", "public function tourSuivant() {\n\t\t\t$this -> turn = ($this-> turn == $this -> j1) ? $this -> j2 : $this -> j1 ;\n\t\t}", "function JD($year, $month, $day)\n {\n // ref: J. Meeus, Astronomical Algorithms\n $y = $year; $m = $month; $d = $day;\n if ($m <= 2) {\n $y = $y - 1;\n $m = $m + 12;\n }\n $a = floor($y/100);\n $b = 2 - $a + floor($a/4);\n $JD = floor(365.25*($y+4716)) + floor(30.6001*($m+1)) + $d + $b - 1524.5;\n return $JD;\n }", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function setJadwalDdtk($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->jadwal_ddtk !== $v) {\n $this->jadwal_ddtk = $v;\n $this->modifiedColumns[] = SekolahPaudPeer::JADWAL_DDTK;\n }\n\n if ($this->aJadwalPaudRelatedByJadwalDdtk !== null && $this->aJadwalPaudRelatedByJadwalDdtk->getJadwalId() !== $v) {\n $this->aJadwalPaudRelatedByJadwalDdtk = null;\n }\n\n\n return $this;\n }", "public function testSetDernNumPrime() {\n\n $obj = new Employes();\n\n $obj->setDernNumPrime(10);\n $this->assertEquals(10, $obj->getDernNumPrime());\n }", "public function testSetJour() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setJour(\"jour\");\n $this->assertEquals(\"jour\", $obj->getJour());\n }", "public function setOrden($ord) {\n $orden = ($ord != 1 && $ord != 2) ? 0 : $ord;\n if ($orden != $this->orden) {\n $this->cargarPersonas($orden);\n }\n }", "public function setIdJeu(int $id_jeu) {\n $this->id_jeu = $id_jeu;\n }", "public function setZoom($nom){\n\t\t$zoom = (int) $zoom;\n\t\t// On vérifie ensuite si ce nombre est bien strictement positif.\n\t\tif ($zoom > 0){\n\t\t\t// Si c'est le cas, c'est tout bon, on assigne la valeur à l'attribut correspondant.\n\t\t\t$this->_zoom = $zoom;\n\t\t}\n\t}", "public function getDateDernJMens() {\n return $this->dateDernJMens;\n }", "protected function getJour()\n{\nreturn substr($this->getDateSysteme(), 8, 2);\t\n}", "function setYear($y)\r\n {\r\n if($y < 0 || $y > 9999) {\r\n $this->ano = 0;\r\n } else {\r\n $this->ano = $y;\r\n }\r\n }", "function setAllIm($i, $j, $k) {/*{{{*/\n $this->setI($i);\n $this->setJ($j);\n $this->setK($k);\n }", "public function getJadwalDdtk()\n {\n return $this->jadwal_ddtk;\n }", "function setLeja($_leja){\r\n $this->leja=$_leja;\r\n }", "function initMonth()\n {\n //! Si aucun mois ou année n'est recupéré on prend le mois et l'année actuel\n if (!$this->currentMonthName || !$this->year) {\n $this->currentMonthIndex = (int)date(\"m\", time()) - 1;\n $this->currentMonthName = $this->months[$this->currentMonthIndex];\n $this->year = (int)date(\"Y\", time());\n }\n // recalcule le premier jour pour ce mois et le nombre de jour total du mois\n $this->firstDayInMonth = strftime('%u', strtotime(strval($this->currentMonthIndex + 1) . '/01/' . strval($this->year)));\n $this->nbDaysMonth = cal_days_in_month(CAL_GREGORIAN, $this->currentMonthIndex + 1, $this->year);\n $this->currentMonthName = $this->months[$this->currentMonthIndex];\n }", "public function testSetJacp() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setJacp(10);\n $this->assertEquals(10, $obj->getJacp());\n }", "function setMargemEsquerda($iNumCol = 4) {\n\n $sComando = chr(27) . chr(108) . \" $iNumCol\";\n parent::addComando($sComando);\n }", "function setNum($num)\n {\n $this->num = $num;\n }", "public function testSetInterdireEditionValoriseJrnTemps() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireEditionValoriseJrnTemps(true);\n $this->assertEquals(true, $obj->getInterdireEditionValoriseJrnTemps());\n }", "public function setDay($day){\n\t\t$this->_day = (int) $day;\n\t\t$monthDays = self::$_monthTable[$this->_month-1];\n\t\tif($this->isLeapYear()==true&&$this->_month==2){\n\t\t\t++$monthDays;\n\t\t}\n\t\tif($this->_day>$monthDays){\n\t\t\t$this->_day = self::$_monthTable[$this->_month-1];\n\t\t}\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public function testSetDtDernJourTrav() {\n\n // Set a Date/time mock.\n $dtDernJourTrav = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtDernJourTrav($dtDernJourTrav);\n $this->assertSame($dtDernJourTrav, $obj->getDtDernJourTrav());\n }" ]
[ "0.63446367", "0.5508329", "0.5375601", "0.5297958", "0.5174965", "0.5123468", "0.508628", "0.50707984", "0.5031361", "0.49863082", "0.4960327", "0.49498767", "0.4912852", "0.4892309", "0.48799276", "0.48575872", "0.48490658", "0.4788467", "0.47795036", "0.47523853", "0.47343093", "0.47213623", "0.47116968", "0.47115272", "0.47114474", "0.47074926", "0.46865577", "0.46864495", "0.46841854", "0.46750003" ]
0.5926831
1
Set the dispense travail.
public function setDispenseTravail($dispenseTravail) { $this->dispenseTravail = $dispenseTravail; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDispenseTravail() {\n return $this->dispenseTravail;\n }", "public function testSetNumeroCarteTravail() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteTravail(\"numeroCarteTravail\");\n $this->assertEquals(\"numeroCarteTravail\", $obj->getNumeroCarteTravail());\n }", "public function testSetDernLieuTravail() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernLieuTravail(\"dernLieuTravail\");\n $this->assertEquals(\"dernLieuTravail\", $obj->getDernLieuTravail());\n }", "public function partirAuTravail(): void\n\t{\n\t}", "public function setCodeTravail(?string $codeTravail): LettresMissionsLignes {\n $this->codeTravail = $codeTravail;\n return $this;\n }", "public function edit(accidentsTravail $accidentsTravail)\n {\n //\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function testSetCarteTravailExpireLe() {\n\n // Set a Date/time mock.\n $carteTravailExpireLe = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setCarteTravailExpireLe($carteTravailExpireLe);\n $this->assertSame($carteTravailExpireLe, $obj->getCarteTravailExpireLe());\n }", "public function testSetCarteTravailDelivreeLe() {\n\n // Set a Date/time mock.\n $carteTravailDelivreeLe = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setCarteTravailDelivreeLe($carteTravailDelivreeLe);\n $this->assertSame($carteTravailDelivreeLe, $obj->getCarteTravailDelivreeLe());\n }", "public function testSetCompteDeTiers() {\n\n $obj = new Collaborateurs();\n\n $obj->setCompteDeTiers(\"compteDeTiers\");\n $this->assertEquals(\"compteDeTiers\", $obj->getCompteDeTiers());\n }", "public function transitionTo(Etat $etat): void\n {\n echo \"Context: Transition to \" . get_class($etat) . \".\\n\";\n $this->setEtat($etat);\n $this->etat->setJoueur($this);\n }", "public function setCodeMedecineTravail($codeMedecineTravail) {\n $this->codeMedecineTravail = $codeMedecineTravail;\n return $this;\n }", "public function testSetEtat() {\n\n $obj = new PointBonTrav();\n\n $obj->setEtat(\"etat\");\n $this->assertEquals(\"etat\", $obj->getEtat());\n }", "public function testSetTravailleJf() {\n\n $obj = new Employes();\n\n $obj->setTravailleJf(true);\n $this->assertEquals(true, $obj->getTravailleJf());\n }", "public function setTaille($taille){\n $this->taille = $taille;\n }", "public function setTaille($taille){\n $this->taille = $taille;\n }", "public function testSetTelPoste() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPoste(\"telPoste\");\n $this->assertEquals(\"telPoste\", $obj->getTelPoste());\n }", "public function setTravailTemp($travailTemp) {\n $this->travailTemp = $travailTemp;\n return $this;\n }", "protected function setZpTprop($clave) {\n $this->zpTprop = $clave;\n }", "public function testSetLieuTravailConjoint() {\n\n $obj = new Employes();\n\n $obj->setLieuTravailConjoint(\"lieuTravailConjoint\");\n $this->assertEquals(\"lieuTravailConjoint\", $obj->getLieuTravailConjoint());\n }", "public function testSetTpPourcentageNonOperationnel() {\n\n $obj = new Collaborateurs();\n\n $obj->setTpPourcentageNonOperationnel(10.092018);\n $this->assertEquals(10.092018, $obj->getTpPourcentageNonOperationnel());\n }", "public function setterSetsTcemain() {\n\t\t\n\t\t$TCE = $this->controller->getTCE();\n\t\t\n\t\t$this->assertInstanceOf(t3lib_TCEmain, $TCE);\n\t}", "public function testSetTauxPensionCivile() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionCivile(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionCivile());\n }", "public function setVoiture($voiture){\n $this->$voiture = $voiture;\n }", "public function testSetModifBonsTravaux() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifBonsTravaux(\"modifBonsTravaux\");\n $this->assertEquals(\"modifBonsTravaux\", $obj->getModifBonsTravaux());\n }", "public function testSetMontant() {\n\n $obj = new PointBonTrav();\n\n $obj->setMontant(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant());\n }", "public function testSetCumHeureTrav() {\n\n $obj = new Employes();\n\n $obj->setCumHeureTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getCumHeureTrav());\n }", "public function setModeDue(){\n\t\t\n\t\t$info = array(\n\t\t\t'username' => 'unkown',\n\t\t\t'realName' => 'unkown',\n\t\t\t'email' => 'unkown'\n\t\t);\n\t\t\n\t\tif ( TYPO3_MODE==\"BE\" ){\n\t\t\t$info['username'] = $GLOBALS['BE_USER']->user['username'];\n\t\t\t$info['realName'] = $GLOBALS['BE_USER']->user['realName'];\n\t\t\t$info['email'] = $GLOBALS['BE_USER']->user['email'];\n\t\t}\n\n\t\t$resultRepository = tx_caretaker_TestResultRepository::getInstance();\n\t\t$latestTestResult = $resultRepository->getLatestByNode( $this );\n\t\t\n\t\t$message = new tx_caretaker_ResultMessage( 'LLL:EXT:caretaker/locallang_fe.xml:message_due', $info );\n\t\t$result = tx_caretaker_TestResult::create( tx_caretaker_Constants::state_due, 0 , $message );\n\t\t$resultRepository->saveTestResultForNode( $this, $result );\n\t\t\n\t\t$this->notify( 'updatedTestResult', $result, $latestTestResult );\n\t\t\n\t\treturn $result;\n\t}", "public function setTeksti($var){\n\t\t$this->teksti=$var;\n\t}", "public function setUtente($utente) \n\t{\n $this->utente = $utente;\n }" ]
[ "0.6029165", "0.5676616", "0.554448", "0.54712135", "0.5416176", "0.54128075", "0.53842825", "0.52919513", "0.52437794", "0.51896507", "0.51812536", "0.5155434", "0.5078486", "0.50613695", "0.50536484", "0.50536484", "0.504719", "0.50356364", "0.5023263", "0.50230664", "0.500792", "0.5007008", "0.50049895", "0.5003258", "0.50026083", "0.49898586", "0.49754125", "0.49633393", "0.49607998", "0.49421665" ]
0.708766
0
Set the etbl adresse1.
public function setEtblAdresse1($etblAdresse1) { $this->etblAdresse1 = $etblAdresse1; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setStreet1( &$value )\n {\n $this->Street1 = $value;\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function setAddress1($address1)\r\n {\r\n $this->_address1 = $address1;\r\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 setAddress1($fv_address1)\n {\n \tif(!empty($fv_address1))\n \t{\n \t\treturn $this->fv_address1 = $fv_address1;\n \t}\n $this->fv_error_message = $this->fv_error_message .'<br> - Direccion 1 '.ERROR_NULL;\n\n return $this->fv_address1 = null;\n }", "public function set_address_1( $address ) {\n\t\t$this->set_prop( 'address_1', $address );\n\t}", "public function setAddress1($address1)\n {\n $this->address1 = $address1;\n }", "function setStreet2( &$value )\n {\n $this->Street2 = $value;\n }", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function setEmpAdresse1($empAdresse1) {\n $this->empAdresse1 = $empAdresse1;\n return $this;\n }", "public function setLlx($llx) {}", "public function setEtblAdresse3($etblAdresse3) {\n $this->etblAdresse3 = $etblAdresse3;\n return $this;\n }", "public function setLocalAddress(string $address): void {}", "public function setStreet1(string $street1): void\n {\n $this->_street1 = $street1;\n }", "function setAddress($add) {\n if ( strpos($add->value, \"BEGIN:VCARD\") || strpos($add->value, \"begin:vcard\") )\n $add->type = 'text/directory';\n else\n $add->type = 'text/plain';\n $this->address = $add;\n $changed = true;\n }", "public function setAddress($value)\n {\n $this->_address = $value;\n }", "public function set_address($new) {\n\t\t$this->CI->api->dns->modify->zone_address($this->zone, $this->address, 'address', $new);\n\t\t$this->hostname = $new;\n\t}", "public function setAddLine1($val, $markChanged=true) {\n\t\t$this->addLine1 = $val;\n\t\tif( $markChanged ) $this->isChanged = true;\n\t}", "public function setAddress1($value)\n {\n parent::setValue('address1', $value);\n\n return $this;\n }", "public function getAddress1()\n {\n return $this->fv_address1;\n }", "public function set_address_2( $address ) {\n\t\t$this->set_prop( 'address_2', $address );\n\t}", "function setAdresse($adresse){\n if(empty($adresse)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n }\n //on declare de la variable adresse puis on appelle la varibale prive adresse\n $this->_adresse = $adresse;\n }", "public function setAddress($val)\n {\n $this->_propDict[\"address\"] = $val;\n return $this;\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 getAddress1()\r\n {\r\n return $this->_address1;\r\n }", "function setAddress( $postoffice='', $extended='', $street='', $city='', $region='', $zip='', $country='', $type='HOME;POSTAL' )\n {\n // $type may be DOM | INTL | POSTAL | PARCEL | HOME | WORK or any combination of these: e.g. \"WORK;PARCEL;POSTAL\"\n $key = 'ADR';\n if ( $type != '' ) {\n $key .= ';'. $type;\n }\n $key.= ';ENCODING=QUOTED-PRINTABLE';\n $this->properties[$key] = encode( $postoffice ) . ';' . encode( $extended ) .';'. encode( $street ) .';'. encode( $city ) .';'. encode( $region) .';'. encode( $zip ) .';'. encode( $country );\n }", "public function setAddress(Model_DbTable_Row_Address $address) {\n\t if ($address1 = $this->findParentRow(new Model_DbTable_Address())) {\n\t $addressData = $address->toArray();\n\t unset($addressData['id']);\n\t $address1->setFromArray($addressData);\n\t $address = $address1;\n\t }\n\n\t $this->_address = $address;\n\t}" ]
[ "0.64310783", "0.6414345", "0.6414345", "0.6348597", "0.6345011", "0.6345011", "0.6284593", "0.6205155", "0.6126692", "0.58637524", "0.5651736", "0.5651736", "0.56123877", "0.55980545", "0.5577241", "0.5565588", "0.5526708", "0.552035", "0.5511832", "0.5448438", "0.5430502", "0.5424175", "0.5408449", "0.53697985", "0.53600186", "0.53416365", "0.5314233", "0.531274", "0.5279613", "0.5276349" ]
0.74971974
1
Set the etbl adresse2.
public function setEtblAdresse2($etblAdresse2) { $this->etblAdresse2 = $etblAdresse2; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setStreet2( &$value )\n {\n $this->Street2 = $value;\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 set_address_2( $address ) {\n\t\t$this->set_prop( 'address_2', $address );\n\t}", "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 getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function setAddress2($address2)\r\n {\r\n $this->_address2 = $address2;\r\n }", "public function setAddress2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->address2 !== $v) {\n $this->address2 = $v;\n $this->modifiedColumns[] = EventPeer::ADDRESS2;\n }\n\n\n return $this;\n }", "public function setAddress2($address2)\n {\n $this->address2 = $address2;\n }", "public function setAddress2($value)\n {\n parent::setValue('address2', $value);\n\n return $this;\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function setAddress2($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->address2 !== $v) {\n\t\t\t$this->address2 = $v;\n\t\t\t$this->modifiedColumns[] = VenuePeer::ADDRESS2;\n\t\t}\n\n\t\treturn $this;\n\t}", "function setStreet1( &$value )\n {\n $this->Street1 = $value;\n }", "public function setStreet2(string $street2): void\n {\n $this->_street2 = $street2;\n }", "public function getAddress2()\r\n {\r\n return $this->_address2;\r\n }", "public function getAddress2()\n {\n\n return $this->fv_address2;\n }", "public function getAddress2()\n\t{\n\t\treturn $this->address2;\n\t}", "function setAddress( $postoffice='', $extended='', $street='', $city='', $region='', $zip='', $country='', $type='HOME;POSTAL' )\n {\n // $type may be DOM | INTL | POSTAL | PARCEL | HOME | WORK or any combination of these: e.g. \"WORK;PARCEL;POSTAL\"\n $key = 'ADR';\n if ( $type != '' ) {\n $key .= ';'. $type;\n }\n $key.= ';ENCODING=QUOTED-PRINTABLE';\n $this->properties[$key] = encode( $postoffice ) . ';' . encode( $extended ) .';'. encode( $street ) .';'. encode( $city ) .';'. encode( $region) .';'. encode( $zip ) .';'. encode( $country );\n }", "public function setValue2($value){\n $this->_value2 = $value;\n }", "public function getAddress2()\n {\n return parent::getValue('address2');\n }", "public function setEtblAdresse3($etblAdresse3) {\n $this->etblAdresse3 = $etblAdresse3;\n return $this;\n }", "public function set_address($new) {\n\t\t$this->CI->api->dns->modify->zone_address($this->zone, $this->address, 'address', $new);\n\t\t$this->hostname = $new;\n\t}", "public function setEmpAdresse2($empAdresse2) {\n $this->empAdresse2 = $empAdresse2;\n return $this;\n }", "function &street2( )\n {\n return $this->Street2;\n }", "public function setRef2($ref2) {\n $this->_ref2 = $ref2;\n }", "public function set_address_1( $address ) {\n\t\t$this->set_prop( 'address_1', $address );\n\t}", "public function getAddress2()\n {\n return $this->address2;\n }", "public function getAddress2()\n {\n return $this->address2;\n }" ]
[ "0.68240243", "0.66204965", "0.66204965", "0.6612199", "0.6602968", "0.66026497", "0.66026497", "0.644116", "0.62798226", "0.61825335", "0.59780204", "0.5875645", "0.5875645", "0.57634723", "0.5741063", "0.5695427", "0.5545948", "0.553791", "0.5530153", "0.5529806", "0.55154973", "0.54981476", "0.5497944", "0.54846126", "0.54661036", "0.5462869", "0.5444734", "0.5422539", "0.5403925", "0.5403925" ]
0.74391973
1
Set the etbl adresse3.
public function setEtblAdresse3($etblAdresse3) { $this->etblAdresse3 = $etblAdresse3; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEtblAdresse3() {\n return $this->etblAdresse3;\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 setEtblAdresse2($etblAdresse2) {\n $this->etblAdresse2 = $etblAdresse2;\n return $this;\n }", "public function setEtblAdresse2($etblAdresse2) {\n $this->etblAdresse2 = $etblAdresse2;\n return $this;\n }", "public function setLlx($llx) {}", "public function _setLotNo3($lotNo3) {\n\t\t$this->_lotNo3 = $lotNo3;\n\t}", "function setStreet2( &$value )\n {\n $this->Street2 = $value;\n }", "public function setLocalAddress(string $address): void {}", "public function set_address($new) {\n\t\t$this->CI->api->dns->modify->zone_address($this->zone, $this->address, 'address', $new);\n\t\t$this->hostname = $new;\n\t}", "public function setBilladdress3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->billaddress3 !== $v) {\n $this->billaddress3 = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_BILLADDRESS3] = true;\n }\n\n return $this;\n }", "public function setLine3($line3)\n {\n $this->json()->line3 = $line3;\n }", "function setAddress( $postoffice='', $extended='', $street='', $city='', $region='', $zip='', $country='', $type='HOME;POSTAL' )\n {\n // $type may be DOM | INTL | POSTAL | PARCEL | HOME | WORK or any combination of these: e.g. \"WORK;PARCEL;POSTAL\"\n $key = 'ADR';\n if ( $type != '' ) {\n $key .= ';'. $type;\n }\n $key.= ';ENCODING=QUOTED-PRINTABLE';\n $this->properties[$key] = encode( $postoffice ) . ';' . encode( $extended ) .';'. encode( $street ) .';'. encode( $city ) .';'. encode( $region) .';'. encode( $zip ) .';'. encode( $country );\n }", "function setAddress($add) {\n if ( strpos($add->value, \"BEGIN:VCARD\") || strpos($add->value, \"begin:vcard\") )\n $add->type = 'text/directory';\n else\n $add->type = 'text/plain';\n $this->address = $add;\n $changed = true;\n }", "function setStreet1( &$value )\n {\n $this->Street1 = $value;\n }", "public function setAddress($val)\n {\n $this->_propDict[\"address\"] = $val;\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 getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function setAddress($value)\n {\n $this->_address = $value;\n }", "public function setEtblTel($etblTel) {\n $this->etblTel = $etblTel;\n return $this;\n }", "public function setEtblTel($etblTel) {\n $this->etblTel = $etblTel;\n return $this;\n }", "public function setAddress($data=null) {\n if(!is_array($data)) {\n $b = $this->getBilling();\n $p = $this->getPayment();\n $data = array(\n 'STREET' => $b['address'],\n 'STREET2' => $b['address2'],\n 'CITY' => $b['city'],\n 'STATE' => $b['state'],\n 'COUNTRYCODE' => $b['country'],\n 'ZIP' => $b['zip'],\n 'SHIPTOPHONENUM' => $p['phone']\n );\n }\n $this->_payerAddress = $data;\n }", "protected function update_network_to_1_3_0() {\n\n\t\t$this->update_points_type_settings_to_1_3_0();\n\t}", "public function set_address_2( $address ) {\n\t\t$this->set_prop( 'address_2', $address );\n\t}", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\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 setT3Hashes() {}", "public function set_address_1( $address ) {\n\t\t$this->set_prop( 'address_1', $address );\n\t}" ]
[ "0.64634407", "0.5929654", "0.5929654", "0.56583685", "0.56583685", "0.5626059", "0.53908724", "0.5274686", "0.52228135", "0.5222413", "0.5213579", "0.5201986", "0.516101", "0.5155293", "0.50844854", "0.5083218", "0.50007576", "0.49835464", "0.49835464", "0.4975157", "0.49181688", "0.49181688", "0.4895634", "0.48901504", "0.48834684", "0.48689824", "0.48689824", "0.4851468", "0.48222947", "0.48215365" ]
0.7314218
0
Set the etbl tel.
public function setEtblTel($etblTel) { $this->etblTel = $etblTel; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTel($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->tel !== $v) {\n $this->tel = $v;\n $this->modifiedColumns[] = EventPeer::TEL;\n }\n\n\n return $this;\n }", "public function set_tel($_tel)\n {\n $this->_tel = $_tel;\n\n return $this;\n }", "public function getEtblTel() {\n return $this->etblTel;\n }", "public function getEtblTel() {\n return $this->etblTel;\n }", "public function testSetEtblTel() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblTel(\"etblTel\");\n $this->assertEquals(\"etblTel\", $obj->getEtblTel());\n }", "public function setTel($tel)\n {\n $this->tel = $tel;\n\n return $this;\n }", "public function setTel($tel)\n {\n $this->tel = $tel;\n\n return $this;\n }", "public function setTel($tel)\n {\n $this->tel = $tel;\n\n return $this;\n }", "public function testSetTel() {\n\n $obj = new AppelsEnCours();\n\n $obj->setTel(\"tel\");\n $this->assertEquals(\"tel\", $obj->getTel());\n }", "public function setTel($Tel)\n {\n $this->Tel = $Tel;\n\n return $this;\n }", "private function setTelephone()\n {\n \tif ( empty($_POST['telephone'] ) ) {\n $this->data['error']['telephone'] = 'Please provide a valid phone number.';\n $this->error = true;\n return;\n }\n\t\n $t = trim( $_POST['telephone'] );\n \n\t\t// Remove non-digits.\n\t\t$t = preg_replace('/[^0-9]/', '', $t);\n\t\n\t\t// Make sure it's 10 digits.\n\t\tif ( strlen($t) != 10 ) {\n\t\t\t$this->data['error']['telephone'] = 'Please provide a valid phone number.';\n $this->error = true;\n return;\n\t\t}\n\t\n $this->data['telephone'] = $t;\n }", "public function getTel()\n {\n return $this->Tel;\n }", "public function getTel()\n {\n return $this->tel;\n }", "public function getTel()\n {\n return $this->tel;\n }", "public function getTel()\n {\n return $this->tel;\n }", "public function getTel()\n {\n return $this->tel;\n }", "public function setEmpTel($empTel) {\n $this->empTel = $empTel;\n return $this;\n }", "function tel( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_TEL,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t null,\n\t Form::DATA_STRING\n );\n\t}", "public function get_tel()\n {\n return $this->_tel;\n }", "public static function tel(string $tel, $text = null, array $attr = []): string\n {\n $number = preg_replace('![^0-9\\+]+!', '', $tel);\n\n if (empty($text) === true) {\n $text = $tel;\n }\n\n return static::link('tel:' . $number, $text, $attr);\n }", "public function ETelepHoneNum($etel, $euid) {\n $euid = mysqli_real_escape_string($this->db, $euid);\n mysqli_query($this->db,\"UPDATE users SET tel='$etel' WHERE uid='$euid'\") or die(mysqli_error($this->db));\n}", "public function getEmpTel() {\n return $this->empTel;\n }", "public function setTelefono($_telefono)\n {\n $this->telefono = $_telefono;\n }", "public function testSetTelPoste() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPoste(\"telPoste\");\n $this->assertEquals(\"telPoste\", $obj->getTelPoste());\n }", "public function setTelefonoClinica($tel) {\r\n $this->_telefono = $tel;\r\n }", "function setNum_teleco($snum_teleco = '')\n {\n $this->snum_teleco = $snum_teleco;\n }", "function setTipo_teleco($stipo_teleco = '')\n {\n $this->stipo_teleco = $stipo_teleco;\n }", "public function testSetTel1() {\n\n $obj = new Employes();\n\n $obj->setTel1(\"tel1\");\n $this->assertEquals(\"tel1\", $obj->getTel1());\n }", "public function setTel_user($tel_user)\r\n {\r\n $this->tel_user = $tel_user;\r\n\r\n return $this;\r\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}" ]
[ "0.68898445", "0.66195256", "0.6604832", "0.6604832", "0.6494497", "0.626511", "0.626511", "0.626511", "0.61205685", "0.6105368", "0.6092171", "0.6055104", "0.6030813", "0.6030813", "0.6030813", "0.6030813", "0.5964175", "0.5950645", "0.5936094", "0.57648075", "0.56926656", "0.5621206", "0.55824524", "0.55762637", "0.5575172", "0.5572218", "0.5562306", "0.54831564", "0.5467793", "0.54337597" ]
0.7437214
1
Set the intitule compte.
public function setIntituleCompte($intituleCompte) { $this->intituleCompte = $intituleCompte; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIntituleCompte() {\n return $this->intituleCompte;\n }", "public function testSetCompteComptable() {\n\n $obj = new Collaborateurs();\n\n $obj->setCompteComptable(\"compteComptable\");\n $this->assertEquals(\"compteComptable\", $obj->getCompteComptable());\n }", "public function setCompte($compte)\n {\n $this->compte = $compte;\n\n return $this;\n }", "public function setCompteIdAttribute($input)\n {\n $this->attributes['compte_id'] = $input ? $input : null;\n }", "public function setNumcompte($numcompte)\n {\n $this->numcompte = $numcompte;\n }", "public function testSetCodeVentilCompta() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVentilCompta(\"codeVentilCompta\");\n $this->assertEquals(\"codeVentilCompta\", $obj->getCodeVentilCompta());\n }", "public function setComponent($component);", "public function testSetIntitule() {\n\n $obj = new AppelsEnCours();\n\n $obj->setIntitule(\"intitule\");\n $this->assertEquals(\"intitule\", $obj->getIntitule());\n }", "public function setUI( $ui )\n {\n $this->ui = $ui;\n }", "public function testSetInterdireModifAffCli() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifAffCli(true);\n $this->assertEquals(true, $obj->getInterdireModifAffCli());\n }", "public function testSetCompteDeTiers() {\n\n $obj = new Collaborateurs();\n\n $obj->setCompteDeTiers(\"compteDeTiers\");\n $this->assertEquals(\"compteDeTiers\", $obj->getCompteDeTiers());\n }", "public function testSetAutreContrat() {\n\n $obj = new AttestationCacm();\n\n $obj->setAutreContrat(\"autreContrat\");\n $this->assertEquals(\"autreContrat\", $obj->getAutreContrat());\n }", "public function testSetTypeControle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setTypeControle(\"typeControle\");\n $this->assertEquals(\"typeControle\", $obj->getTypeControle());\n }", "public function setCC()\n {\n }", "public function testSetCodeCollaborateur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeCollaborateur(\"codeCollaborateur\");\n $this->assertEquals(\"codeCollaborateur\", $obj->getCodeCollaborateur());\n }", "public function testSetControleur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setControleur(\"controleur\");\n $this->assertEquals(\"controleur\", $obj->getControleur());\n }", "public function setTipoCompra($iTipoCompra){\n $this->iTipoCompra = $iTipoCompra;\n }", "public function setOfficerComp($value)\n {\n return $this->set('OfficerComp', $value);\n }", "public function testSetComplement() {\n\n $obj = new Collaborateurs();\n\n $obj->setComplement(\"complement\");\n $this->assertEquals(\"complement\", $obj->getComplement());\n }", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "public function testSetCodeCollaborateurEntrant() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurEntrant(\"codeCollaborateurEntrant\");\n $this->assertEquals(\"codeCollaborateurEntrant\", $obj->getCodeCollaborateurEntrant());\n }", "public function getCompte()\n {\n return $this->compte;\n }", "private function setController()\n\t\t{\n\t\t\t$this->_controller = $this->_separetor[1];\n\t\t}", "public function setPreComponent()\n {\n $this->component\t=\tnew PreComponent;\n $draftsObj\t=\tnew ProfileDrafts($this->contactHandler->getViewer());\n $privilegeObj=$this->contactHandler->getPrivilegeObj();\n $this->component->drafts=$draftsObj->getAcceptDrafts();\n }", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "public function testSetModifChantier() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifChantier(\"modifChantier\");\n $this->assertEquals(\"modifChantier\", $obj->getModifChantier());\n }", "public function setId_cuisinier($id_cuisinier) {\r\n\t\tif($id_cuisinier > 0) {\r\n\t\t\t$this->id_cuisinier = $id_cuisinier;\r\n\t\t}\r\n\t}", "public function setCompteVentilation(?string $compteVentilation): VentilationsAuto {\n $this->compteVentilation = $compteVentilation;\n return $this;\n }", "public function set(){\r\n\t\t$js = new \\wp\\htmlManager\\js();\r\n\t\t$js->addPlugin(\"jquery.plugin\",true);\r\n\t\t$js->addPlugin(\"jquery.datepick\",true);\r\n\t\t$js->addPlugin(\"jquery.datepick-fr\");\r\n\t\t\r\n\t\t\\wp\\Tpl\\templateEngine::getEngine()->addContent(\"js\",$js);\r\n\t\t\r\n\t\t// Ajoute le script d'ouverture du datepicker\r\n\t\t$this->toControls();\r\n\t\t\r\n\t\t// Ajoute les CSS\r\n\t\t$css = new \\wp\\htmlManager\\css();\r\n\t\t$css->addSheet(\"jquery.datepick\");\r\n\t\t\r\n\t\t\\wp\\Tpl\\templateEngine::getEngine()->addContent(\"css\",$css);\r\n\t}", "public function setComptes($comptes)\n {\n $this->comptes = $comptes;\n\n return $this;\n }" ]
[ "0.5896986", "0.56563413", "0.563226", "0.55655843", "0.5520414", "0.55167305", "0.54682654", "0.5367164", "0.5305057", "0.52277005", "0.52263707", "0.51864254", "0.5179039", "0.5158214", "0.51547754", "0.5149708", "0.5136741", "0.51331097", "0.51210594", "0.51080793", "0.5102284", "0.5089345", "0.50859195", "0.50856316", "0.5084937", "0.5079325", "0.50759983", "0.50538146", "0.50502247", "0.50447154" ]
0.63653183
0
Set the montant general.
public function setMontantGeneral($montantGeneral) { $this->montantGeneral = $montantGeneral; 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 getMontantGeneral() {\n return $this->montantGeneral;\n }", "abstract public function setMetas();", "public function setMontantTva($montantTva) {\n $this->montantTva = $montantTva;\n return $this;\n }", "public function setMontant($montant)\n {\n $this->montant = $montant;\n\n return $this;\n }", "public function setMontant($montant)\n {\n $this->montant = $montant;\n\n return $this;\n }", "public function getMontant() {\n return $this->montant;\n }", "public function testSetMontant() {\n\n $obj = new PointBonTrav();\n\n $obj->setMontant(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant());\n }", "public function getMontant()\n {\n return $this->montant;\n }", "public function getMontant()\n {\n return $this->montant;\n }", "public function setMontantTes($montantTes) {\n $this->montantTes = $montantTes;\n return $this;\n }", "public function setMontant_taxe(float $montant_taxe)\n {\n $this->montant_taxe = $montant_taxe;\n\n return $this;\n }", "public function setDefaultMetas($activ = false)\n {\n $this->defMetas = $activ;\n }", "public function setMontacargasCiclosmant($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->montacargas_ciclosmant !== $v) {\n $this->montacargas_ciclosmant = $v;\n $this->modifiedColumns[] = MontacargasPeer::MONTACARGAS_CICLOSMANT;\n }\n\n\n return $this;\n }", "public function testSetMontant1() {\n\n $obj = new Employes();\n\n $obj->setMontant1(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant1());\n }", "public function setMontantTtc($montantTtc) {\n $this->montantTtc = $montantTtc;\n return $this;\n }", "public function getMontantTva() {\n return $this->montantTva;\n }", "public function setMontant_ht(float $montant_ht)\n {\n $this->montant_ht = $montant_ht;\n\n return $this;\n }", "public function setMontant_vente(float $montant_vente)\n {\n $this->montant_vente = $montant_vente;\n\n return $this;\n }", "public function setMontantHt($montantHt) {\n $this->montantHt = $montantHt;\n return $this;\n }", "function setMateria($materia){\n\t\t\n\t\t$this->materia = $materia;\n\t\t$this->cambios = true;\n\t}", "public function setSubrogationMontant($subrogationMontant) {\n $this->subrogationMontant = $subrogationMontant;\n return $this;\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function getMontant_taxe()\n {\n return $this->montant_taxe;\n }", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\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 testSetMontant5() {\n\n $obj = new Employes();\n\n $obj->setMontant5(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant5());\n }", "public function setRealations(){\n\n }", "public function testSetTauxPensionMilitaire() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionMilitaire(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionMilitaire());\n }" ]
[ "0.685194", "0.6477238", "0.6166996", "0.5914994", "0.5870595", "0.5870595", "0.5731733", "0.56869847", "0.56565326", "0.56565326", "0.5487709", "0.5443953", "0.5443069", "0.5423828", "0.54011595", "0.5303867", "0.53034526", "0.52806675", "0.52732784", "0.5203123", "0.51646733", "0.51101124", "0.5098628", "0.50637436", "0.50471747", "0.50471747", "0.5044096", "0.5036906", "0.50147045", "0.500825" ]
0.70181245
0
Set the montant particulier.
public function setMontantParticulier($montantParticulier) { $this->montantParticulier = $montantParticulier; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetMontant() {\n\n $obj = new PointBonTrav();\n\n $obj->setMontant(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant());\n }", "public function testSetMontant1() {\n\n $obj = new Employes();\n\n $obj->setMontant1(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant1());\n }", "public function getMontantParticulier() {\n return $this->montantParticulier;\n }", "public function setMontant($montant)\n {\n $this->montant = $montant;\n\n return $this;\n }", "public function setMontant($montant)\n {\n $this->montant = $montant;\n\n return $this;\n }", "public function testSetMontant5() {\n\n $obj = new Employes();\n\n $obj->setMontant5(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant5());\n }", "public function setMontant_vente(float $montant_vente)\n {\n $this->montant_vente = $montant_vente;\n\n return $this;\n }", "public function testSetMontant4() {\n\n $obj = new Employes();\n\n $obj->setMontant4(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant4());\n }", "public function setMontantTva($montantTva) {\n $this->montantTva = $montantTva;\n return $this;\n }", "public function testSetMontant3() {\n\n $obj = new Employes();\n\n $obj->setMontant3(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant3());\n }", "public function testSetMontant2() {\n\n $obj = new Employes();\n\n $obj->setMontant2(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant2());\n }", "public function testSetMontantAvantage() {\n\n $obj = new Employes();\n\n $obj->setMontantAvantage(10.092018);\n $this->assertEquals(10.092018, $obj->getMontantAvantage());\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 getMontant() {\n return $this->montant;\n }", "public function getMontant()\n {\n return $this->montant;\n }", "public function getMontant()\n {\n return $this->montant;\n }", "public function setMontantHtCde($montantHtCde) {\n $this->montantHtCde = $montantHtCde;\n return $this;\n }", "public function setMontantTtc($montantTtc) {\n $this->montantTtc = $montantTtc;\n return $this;\n }", "public function setMontantHt($montantHt) {\n $this->montantHt = $montantHt;\n return $this;\n }", "public function setMother($mother)\n {\n $this->mother = $mother;\n }", "public function setMontantTes($montantTes) {\n $this->montantTes = $montantTes;\n return $this;\n }", "public function setMontant_ht(float $montant_ht)\n {\n $this->montant_ht = $montant_ht;\n\n return $this;\n }", "abstract public function setMetas();", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "public function testSetMtPrime1Chantier() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMtPrime1Chantier(10.092018);\n $this->assertEquals(10.092018, $obj->getMtPrime1Chantier());\n }", "public function testSetStatutParticulier() {\n\n $obj = new AttestationCacm();\n\n $obj->setStatutParticulier(10);\n $this->assertEquals(10, $obj->getStatutParticulier());\n }", "public function setMontant_taxe(float $montant_taxe)\n {\n $this->montant_taxe = $montant_taxe;\n\n return $this;\n }", "public function setMontantGeneral($montantGeneral) {\n $this->montantGeneral = $montantGeneral;\n return $this;\n }", "public function setMontantFixe(?bool $montantFixe): Assurances {\n $this->montantFixe = $montantFixe;\n return $this;\n }", "public function setMinDamage(){ $this->minDamage = 10; }" ]
[ "0.6530693", "0.6303402", "0.6228058", "0.609951", "0.609951", "0.60048246", "0.5965888", "0.5962873", "0.5949494", "0.586956", "0.5866632", "0.57987094", "0.5763293", "0.5721387", "0.5648978", "0.5648978", "0.5597043", "0.5581409", "0.5566849", "0.5545622", "0.5543306", "0.5533349", "0.55078596", "0.54853356", "0.546262", "0.5425032", "0.54025716", "0.5297017", "0.52838856", "0.52821684" ]
0.64189845
1
Set the mt sal brut moins150 h.
public function setMtSalBrutMoins150H($mtSalBrutMoins150H) { $this->mtSalBrutMoins150H = $mtSalBrutMoins150H; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMtSalBrutMoins150H() {\n return $this->mtSalBrutMoins150H;\n }", "public function setMtSalBrutMoins600H($mtSalBrutMoins600H) {\n $this->mtSalBrutMoins600H = $mtSalBrutMoins600H;\n return $this;\n }", "public function getMtSalBrutMoins600H() {\n return $this->mtSalBrutMoins600H;\n }", "public function testSetMtSalaireBrut() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtSalaireBrut(10.092018);\n $this->assertEquals(10.092018, $obj->getMtSalaireBrut());\n }", "public function setMontant_ht(float $montant_ht)\n {\n $this->montant_ht = $montant_ht;\n\n return $this;\n }", "public function testSetHs35Heures() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHs35Heures(10.092018);\n $this->assertEquals(10.092018, $obj->getHs35Heures());\n }", "public function setMontantHt($montantHt) {\n $this->montantHt = $montantHt;\n return $this;\n }", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "function setHeading($h)\n\t{\n\t\t$this->_headingText=$h;\n\t}", "public function setBigVClock($smallVClock) {}", "public function testSetNbHeureMois() {\n\n $obj = new Employes();\n\n $obj->setNbHeureMois(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMois());\n }", "function set_height($height) {\n $this->height = $height;\n }", "public function setH($value)\n {\n $this->setParam('h', $value);\n }", "function setMinute($m)\r\n {\r\n if($m > 59 || $m < 0) {\r\n $this->minuto = 0;\r\n } else {\r\n $this->minuto = $m;\r\n }\r\n }", "function setMiles($new_miles)\n {\n $this->miles = $new_miles;\n }", "public function calcularSueldo(){\n $this->horas_trabajadas * 540;\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 testSetTds60() {\n\n $obj = new Employes();\n\n $obj->setTds60(true);\n $this->assertEquals(true, $obj->getTds60());\n }", "function setHour($h)\r\n {\r\n if($h > 23 || $h < 0) {\r\n $this->hora = 0;\r\n } else {\r\n $this->hora = $h;\r\n }\r\n }", "public function testSetNbHeureSal() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSal(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSal());\n }", "public function getMontantHt() {\n return $this->montantHt;\n }", "public function setTempFahrenheit() {\n\t\t$this->unit = 'fahrenheit';\n\t}", "function KhachHang($HoTen, $SDT,$Email, $TrangThai,$TenGhe){\n $this->HoTen=$HoTen;\n $this->SDT=$SDT;\n $this->Email=$Email;\n $this->TrangThai = $TrangThai;\n $this->TenGhe=$TenGhe;\n }", "public function setSmallVClock($smallVClock) {}", "function setOutletSteamMassFlow($massflow){\n $this->outletSteam->setMassFlow($massflow);\n $this->setBlowdownRate($this->blowdownRate);\n }", "public function testSetHRempl() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHRempl(10.092018);\n $this->assertEquals(10.092018, $obj->getHRempl());\n }", "public function set_m_mhs_id($id)\n {\n $this->m_mhs_id=$id;\n }", "function data_mhs(){\r\n\t\t\techo \"KodeMataKuliah : \".$this->KodeMataKuliah.\"<br />\";\r\n\t\t\techo \"SKS : \".$this->SKS.\"<br />\";\r\n\t\t\techo \"Daftar matakuliah yang diambil:<br />\";\r\n\t\t\t\r\n\t\t\t$i = 0; // nomor urut daftar SKS matakuliah yang diambil\r\n\t\t\tforeach($this->NamaMataKuliah as $mk){\r\n\t\t\t\techo ++$i.\". \".$mk.\"<br />\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Cuma buat ganti baris aja kok :-)\r\n\t\t\techo \"<br />\";\r\n\t\t}", "public function testSetCum30Ss() {\n\n $obj = new Employes();\n\n $obj->setCum30Ss(10.092018);\n $this->assertEquals(10.092018, $obj->getCum30Ss());\n }", "function setSecond($s) {\r\n if($s > 59 || $s < 0) {\r\n $this->segundo = 0;\r\n } else {\r\n $this->segundo = $s;\r\n }\r\n }" ]
[ "0.7519646", "0.7187335", "0.7039643", "0.56109107", "0.5544254", "0.55417585", "0.54365575", "0.54143035", "0.51407146", "0.50958455", "0.5071692", "0.50693405", "0.50625235", "0.5032684", "0.5008575", "0.49877858", "0.49852535", "0.4948779", "0.49440333", "0.4935389", "0.4890193", "0.48767215", "0.4864469", "0.4853033", "0.48230377", "0.48112208", "0.4798076", "0.47887427", "0.47464156", "0.47374782" ]
0.74409014
1
Set the mt sal brut moins600 h.
public function setMtSalBrutMoins600H($mtSalBrutMoins600H) { $this->mtSalBrutMoins600H = $mtSalBrutMoins600H; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMtSalBrutMoins600H() {\n return $this->mtSalBrutMoins600H;\n }", "public function getMtSalBrutMoins150H() {\n return $this->mtSalBrutMoins150H;\n }", "public function setMtSalBrutMoins150H($mtSalBrutMoins150H) {\n $this->mtSalBrutMoins150H = $mtSalBrutMoins150H;\n return $this;\n }", "public function testSetMtSalaireBrut() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtSalaireBrut(10.092018);\n $this->assertEquals(10.092018, $obj->getMtSalaireBrut());\n }", "public function setMontant_ht(float $montant_ht)\n {\n $this->montant_ht = $montant_ht;\n\n return $this;\n }", "public function setMontantHt($montantHt) {\n $this->montantHt = $montantHt;\n return $this;\n }", "public function calcularSueldo(){\n $this->horas_trabajadas * 540;\n }", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "function setHour($h)\r\n {\r\n if($h > 23 || $h < 0) {\r\n $this->hora = 0;\r\n } else {\r\n $this->hora = $h;\r\n }\r\n }", "public function testSetHs35Heures() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHs35Heures(10.092018);\n $this->assertEquals(10.092018, $obj->getHs35Heures());\n }", "public function setH($value)\n {\n $this->setParam('h', $value);\n }", "function setSecond($s) {\r\n if($s > 59 || $s < 0) {\r\n $this->segundo = 0;\r\n } else {\r\n $this->segundo = $s;\r\n }\r\n }", "function setMinute($m)\r\n {\r\n if($m > 59 || $m < 0) {\r\n $this->minuto = 0;\r\n } else {\r\n $this->minuto = $m;\r\n }\r\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 setTempFahrenheit() {\n\t\t$this->unit = 'fahrenheit';\n\t}", "function setOutletSteamMassFlow($massflow){\n $this->outletSteam->setMassFlow($massflow);\n $this->setBlowdownRate($this->blowdownRate);\n }", "public function getMontantHt() {\n return $this->montantHt;\n }", "function set_height($height) {\n $this->height = $height;\n }", "public function setHr($hr)\n {\n $this->hr = $hr;\n\n return $this;\n }", "function setHeading($h)\n\t{\n\t\t$this->_headingText=$h;\n\t}", "public function testSetNbHeureMois() {\n\n $obj = new Employes();\n\n $obj->setNbHeureMois(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMois());\n }", "public function testSetNbHeureSal() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSal(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSal());\n }", "function setMiles($new_miles)\n {\n $this->miles = $new_miles;\n }", "public function setBigVClock($smallVClock) {}", "public function testSetHRempl() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHRempl(10.092018);\n $this->assertEquals(10.092018, $obj->getHRempl());\n }", "function getTotalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->totalHT));\n else return 0;\n }", "function KhachHang($HoTen, $SDT,$Email, $TrangThai,$TenGhe){\n $this->HoTen=$HoTen;\n $this->SDT=$SDT;\n $this->Email=$Email;\n $this->TrangThai = $TrangThai;\n $this->TenGhe=$TenGhe;\n }", "function setSecondsElapsedHMS( $hour, $minute, $second )\r\n {\r\n $this->SecondsElapsed = ( ( $hour * 3600 ) + ( $minute * 60 ) + $second );\r\n setType( $this->SecondsElapsed, \"integer\" );\r\n }", "public function set_m_mhs_id($id)\n {\n $this->m_mhs_id=$id;\n }", "function tiemposHMS($min){\n $min=(int)$min;\n $heure=(int)($min/60);\n $minute=(($min/60)-$heure)*60; \n return $heure .':' . $minute; \n \n \n \n }" ]
[ "0.74902856", "0.69387895", "0.6385285", "0.5665022", "0.5544806", "0.536009", "0.52975214", "0.52848774", "0.5239685", "0.5216829", "0.5107758", "0.5077674", "0.50608146", "0.50416905", "0.501744", "0.5001427", "0.49728447", "0.4927287", "0.48747626", "0.4868808", "0.48685288", "0.48606876", "0.48306644", "0.48036957", "0.47842535", "0.47734827", "0.47659877", "0.4742231", "0.4734633", "0.4722389" ]
0.7526913
0
Set the nb h cas part.
public function setNbHCasPart($nbHCasPart) { $this->nbHCasPart = $nbHCasPart; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setH($value)\n {\n $this->setParam('h', $value);\n }", "public function setNbHComp(?float $nbHComp): PrepaPaie {\n $this->nbHComp = $nbHComp;\n return $this;\n }", "public function setNbHBase(?float $nbHBase): ChargesPaie {\n $this->nbHBase = $nbHBase;\n return $this;\n }", "public function getNbHCasPart() {\n return $this->nbHCasPart;\n }", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "function setHeading($h)\n\t{\n\t\t$this->_headingText=$h;\n\t}", "public function H990()\n {\n $this->Sped->criarEncerramentoBloco('0', 'H990', \"H990\");\n }", "public function setNbHt(?float $nbHt): ChargesPaie {\n $this->nbHt = $nbHt;\n return $this;\n }", "public static function set_hcol($hcol)\n\t{\n\t\tif ( bbn\\str::check_name($hcol) ){\n\t\t\tself::$hcol = $hcol;\n\t\t}\n\t}", "public function setNbHGeneral($nbHGeneral) {\n $this->nbHGeneral = $nbHGeneral;\n return $this;\n }", "public function setHashIndex($value) {\n\t\t$this->_hashIndex = $value;\n\t}", "public function testSetNumeroCasPartSecu() {\n\n $obj = new Employes();\n\n $obj->setNumeroCasPartSecu(10);\n $this->assertEquals(10, $obj->getNumeroCasPartSecu());\n }", "public function testSetNbHeureSup() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSup(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSup());\n }", "public function setNbHn(?float $nbHn): ChargesPaie {\n $this->nbHn = $nbHn;\n return $this;\n }", "public function setContenido($n)\n {\n $this->c_contenido=$n;\n }", "public function setHashIndex($value)\n {\n $this->hashIndex = $value;\n }", "public function setBreadth($breadth) {\r\n $this->breadth = $breadth;\r\n }", "public function setNbHRc(?float $nbHRc): ChargesPaie {\n $this->nbHRc = $nbHRc;\n return $this;\n }", "public function setHashIndex($value);", "protected function setHashIndexKey(): void\n {\n $this->hashIndexKey = $this->index . (empty($this->indexType)\n ? self::HASH_INDEX_GLUE\n : (self::HASH_INDEX_GLUE . $this->indexType . self::HASH_INDEX_GLUE));\n }", "public function setCC()\n {\n }", "function setHeadTitel($var)\n\t{\n\t\t$this -> head_titel = $var;\n\t}", "public function testSetNbHeureSal() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSal(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSal());\n }", "public function testSetHc() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHc(10.092018);\n $this->assertEquals(10.092018, $obj->getHc());\n }", "public function setNumberOfHMetrics($value) {}", "public function setNbLane(int $nbLane) : void\n {\n $this->nbLane = $nbLane;\n }", "public function setHeadline($headline) {\n $this->headline = $headline;\n }", "public function testSetCasPartSs() {\n\n $obj = new Employes();\n\n $obj->setCasPartSs(true);\n $this->assertEquals(true, $obj->getCasPartSs());\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}", "protected function setCUITNumber($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\tpreg_match(\"/(\\d{2})(\\d{8})(\\d{1})/\", $value, $matches);\n\t\n\t\tif (count($matches) == 4)\n\t\t{\n\t\t\t$cuit = $matches[1] . \"-\" . $matches[2] . \"-\" . $matches[3];\n\t\n\t\t\tif (strlen($cuit) == 13){\n\t\t\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t\t\t$this->_getPdf()->pages[$i]->drawText($cuit, 298, 623, 'UTF-8');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.5510395", "0.5505417", "0.5429941", "0.54222", "0.5390879", "0.53864753", "0.52583617", "0.51332086", "0.5039268", "0.48939627", "0.4891923", "0.48875803", "0.48654112", "0.48627493", "0.48129302", "0.48080555", "0.4804824", "0.47774792", "0.47706866", "0.47350848", "0.47337073", "0.47336406", "0.47264373", "0.47231835", "0.47137684", "0.47073853", "0.47066468", "0.47008285", "0.46896207", "0.46844682" ]
0.6317895
0
Set the nb h general.
public function setNbHGeneral($nbHGeneral) { $this->nbHGeneral = $nbHGeneral; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNbHGeneral() {\n return $this->nbHGeneral;\n }", "public function setNumberOfHMetrics($value) {}", "public function setH($value)\n {\n $this->setParam('h', $value);\n }", "public function getNbHn(): ?float {\n return $this->nbHn;\n }", "public function setNbreH(?float $nbreH): HoraireTheorique {\n $this->nbreH = $nbreH;\n return $this;\n }", "public function getNbreH(): ?float {\n return $this->nbreH;\n }", "function setHeading($h)\n\t{\n\t\t$this->_headingText=$h;\n\t}", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "public function setNbHt(?float $nbHt): ChargesPaie {\n $this->nbHt = $nbHt;\n return $this;\n }", "public function testSetNbHeuresTp() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbHeuresTp(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeuresTp());\n }", "public function testSetNbHeuresRs() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbHeuresRs(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeuresRs());\n }", "public function testSetPrimeHDimNormal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHDimNormal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHDimNormal());\n }", "public function testSetNbHeureSup() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSup(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSup());\n }", "public function setNbHBase(?float $nbHBase): ChargesPaie {\n $this->nbHBase = $nbHBase;\n return $this;\n }", "private function min_headings_num() {\n\t\t$this->section_data['general_min_headings_num'] = array(\n\t\t\t'name' \t\t\t\t\t=> 'general_min_headings_num',\n\t\t\t'label' \t\t\t\t=> __( 'Display TOC when', 'fixedtoc' ),\n\t\t\t'default' \t\t\t=> '',\n\t\t\t'type' \t\t\t\t\t=> 'number',\n\t\t\t'input_attrs'\t\t=> array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'class' => 'small-text'\n\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t'sanitize'\t\t\t=> 'absint',\n\t\t\t'suffix'\t\t\t\t=> __( 'or more headings are present.', 'fixedtoc' )\n\t\t);\n\t}", "function set_num_items($num){\n $this -> num_of_items = $num;\n }", "function setNum($num)\n {\n $this->num = $num;\n }", "public function setNbreHSamedi(?float $nbreHSamedi): HoraireTheorique {\n $this->nbreHSamedi = $nbreHSamedi;\n return $this;\n }", "public function setNbHComp(?float $nbHComp): PrepaPaie {\n $this->nbHComp = $nbHComp;\n return $this;\n }", "public function setColspan($num)\n {\n parent::setAttr(\"colspan\", $num);\n }", "function Ln($h='')\n\t\t{\n\t\t\t$this->x=$this->lMargin;\n\t\t\tif(is_string($h)) $this->y+=$this->lasth;\n\t\t\telse $this->y+=$h;\n\t\t}", "public function setNbreHMardi(?float $nbreHMardi): HoraireTheorique {\n $this->nbreHMardi = $nbreHMardi;\n return $this;\n }", "public function setGridSize($girdSize);", "public function getNbHCasPart() {\n return $this->nbHCasPart;\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 getNbHNuit(): ?float {\n return $this->nbHNuit;\n }", "public function testSetNbHeureSal() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSal(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSal());\n }", "public function setNbHn(?float $nbHn): ChargesPaie {\n $this->nbHn = $nbHn;\n return $this;\n }", "public function init(){\n parent::init();\n\t\t$this->_gridParam['width'] = 870;\n }", "public function define_nb_line($p_nb_line)\r\n\t\t{\r\n\t\t\t$this->c_nb_line = $p_nb_line;\r\n\t\t\t$this->c_limit_max = $this->c_nb_line;\r\n\t\t}" ]
[ "0.68551844", "0.62782705", "0.560459", "0.5466795", "0.5428369", "0.5373916", "0.53461426", "0.5289319", "0.5253452", "0.52494055", "0.52249455", "0.51957285", "0.5159444", "0.51197094", "0.510041", "0.5099026", "0.5084571", "0.5079496", "0.50769275", "0.50484216", "0.50483483", "0.5044798", "0.5033487", "0.49858588", "0.49688554", "0.4967626", "0.49654672", "0.49640992", "0.49512452", "0.49481928" ]
0.703059
0
Set the non repris.
public function setNonRepris($nonRepris) { $this->nonRepris = $nonRepris; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNonRepris() {\n return $this->nonRepris;\n }", "public function not() {\n\t\t$this->not = '!';\n\t\treturn $this;\n\t}", "public function setNe($x) { $this->ne = $x; }", "public function setNoexec($ne)\n {\n $this->noexec = (boolean) $ne;\n }", "public function setCompactNonIdentifiable($non_identifiable) {\n $this->_setCompact('non-identifiable', $non_identifiable ? 'NID' : NULL);\n }", "public function setUnmodified()\n {\n\t$this->modified= false;\n }", "public function setInvalid();", "public function setNonEditable() {\n\n if($this->controlID != null) {\n throw new BadMethodCallException('You cannot set styles after the control is added to the UI.');\n }\n\n $this->style = self::NON_EDITABLE;\n }", "public function resetBooleans()\n {\n $this->setShowSize(false);\n $this->setShowDescription(false);\n $this->setShowExtension(false);\n $this->setShowLastUpdate(false);\n }", "public function negate()\n\t{\n\t\t$this->not_in = !$this->not_in;\n\t}", "public function setInvisibleFlag($invisible = true) {}", "function setValorNota($nValorNota) {\n \n $this->nValorNota = $nValorNota;\n }", "public function noRedEye()\n {\n $this->getValue()->setSimpleNamedValue('no', 'redeye');\n\n return $this;\n }", "public function isNot()\n {\n return $this->not;\n }", "public function isNot()\n {\n return $this->not;\n }", "public function setNota($nota){\n\t\t$this->nota = $nota;\n\t}", "public function setNonGere(?bool $nonGere): RetraitesEmp {\n $this->nonGere = $nonGere;\n return $this;\n }", "public function setNota($nota){\n $this->nota = $nota;\n }", "public function getIsNot()\n {\n return $this->is_not;\n }", "public function negate()\n {\n $this->_not = true;\n return $this;\n }", "public function notEmpty()\n {\n $this->non_empty = true;\n }", "public function setCanNotBeNull() {\n $this->__isNullAllowed = false;\n return $this;\n }", "function setNoBackground($no_background) {\n $this->fields['no_background'] = $no_background;\n return $this;\n }", "function setNoBackground($no_background) {\n $this->fields['no_background'] = $no_background;\n return $this;\n }", "function setNoCopy($no_copy) {\n $this->fields['no_copy'] = $no_copy;\n return $this;\n }", "public function setIsNot($v)\n {\n if ($v !== null) {\n if (is_string($v)) {\n $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n } else {\n $v = (boolean) $v;\n }\n }\n\n if ($this->is_not !== $v) {\n $this->is_not = $v;\n $this->modifiedColumns[] = FeatureCvtermPeer::IS_NOT;\n }\n\n\n return $this;\n }", "public function setHidden(){\n $this->_hidden = true;\n }", "public function hideExtraField()\n {\n $this->houses=false;\n $this->jobs_training=false;\n $this->motorcycles =false;\n $this->cars = false;\n $this->offices=false;\n $this->lands_plots=false;\n return;\n }", "public function preview_no_options_message($str)\n\t{\n\t\t$this->relation_preview_no_options = $str;\n\t\treturn $this;\n\t}", "public function setIteneraryNonRefundableIndicator(bool $value): self\n {\n $this->IteneraryNonRefundableIndicator = $value;\n\n return $this;\n }" ]
[ "0.6789798", "0.66197675", "0.6381324", "0.5944018", "0.59153557", "0.5843811", "0.5836054", "0.5829398", "0.58257836", "0.5818445", "0.5817638", "0.5809363", "0.57627314", "0.5710994", "0.5710994", "0.56978965", "0.5690516", "0.5686984", "0.5660401", "0.5624591", "0.5619352", "0.559908", "0.55645674", "0.55645674", "0.5560011", "0.55596036", "0.5550255", "0.5488288", "0.5485423", "0.5483099" ]
0.71935844
0
Set the paiement en euro.
public function setPaiementEnEuro($paiementEnEuro) { $this->paiementEnEuro = $paiementEnEuro; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaiementEnEuro() {\n return $this->paiementEnEuro;\n }", "public function setPesoArea($peso) {\n $this->_peso = $peso; \n }", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "public function getPeriodeAu() {\n return $this->periodeAu;\n }", "public function testSetPourcentAbat() {\n\n $obj = new Employes();\n\n $obj->setPourcentAbat(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentAbat());\n }", "function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }", "private function setCurrency()\n {\n $currency = $this->em->getRepository('ClubUserBundle:LocationConfig')->getObjectByKey('default_currency',$this->order->getLocation());\n\n $this->order->setCurrency($currency);\n $this->order->setCurrencyValue(1);\n }", "public function setPrice()\n {\n $price = $this->price;\n $outFix = $this->outFix;\n $outPer = $this->outPer;\n $inPer = $this->inPer;\n $inFix = $this->inFix;\n $flag = $this->flagInOut;\n if ($price < 1) {\n $sumIn = $outFix > 0 ? 1 + $outFix : 1; //outFix\n $sumIn = $outPer > 0 ? $sumIn + ($sumIn * $outPer / 100) : $sumIn; //outPer\n $sumIn = $sumIn / $price; // price\n $sumIn = $inFix > 0 ? $sumIn + $inFix : $sumIn;// inFix\n $ss = $sumIn * $inPer / 100;\n $sumIn = $inPer > 0 ? $sumIn + $ss : $sumIn;\n $this->in = $this->format_amount($sumIn);\n $this->out = $flag ? 1 : 0;\n } else {\n $val = $inFix > 0 ? 1 - $inFix : 1;\n $val = $inPer > 0 ? $val - $val * ($inPer / 100) : $val;\n $sumOut = $price * $val;\n $sumOut = $outFix > 0 ? $sumOut - $outFix : $sumOut;\n $sumOut = $outPer > 0 ? $sumOut - $outPer / 100 * $sumOut : $sumOut;\n $this->out = $this->format_amount($sumOut);\n $this->in = $flag ? 1 : 0;\n }\n $this->price = (float)$price;\n }", "public function setEstudiante( $estudiante ){\n\t\t$this->estudiante = $estudiante;\n\t}", "public function setEstudiante( $estudiante ){\n\t\t\t$this->estudiante = $estudiante;\n\t\t}", "public function setEmpleado_idemp($empleado_idemp){\n $this->empleado_idemp = $empleado_idemp;\n }", "public function testSetPrixVente() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente());\n }", "public static function euro($value)\n {\n if (! is_numeric($value)) {\n throw new Exception('[fieldRendererHelper::euro] The inserted value is not numeric!');\n }\n\n return '€ '.number_format($value, 2, ',', '.');\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}", "public function testSetPourcentAct() {\n\n $obj = new Employes();\n\n $obj->setPourcentAct(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentAct());\n }", "function setNota_num($inota_num = '')\n {\n // adminto ',' como separador decimal.\n $inota_num = str_replace(\",\", \".\", $inota_num);\n $this->inota_num = $inota_num;\n }", "public function choMuonTien() {\n\t\treturn $this->getMoney();\n\t}", "public function aprova()\n {\n $this -> estadoAtual -> aprova($this);\n }", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "public function testSetTauxAncien() {\n\n $obj = new Employes();\n\n $obj->setTauxAncien(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxAncien());\n }", "public function testSetTxHoraireTp() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setTxHoraireTp(10.092018);\n $this->assertEquals(10.092018, $obj->getTxHoraireTp());\n }", "public function editPriceMoney(){\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public function cortesia()\n {\n $this->costo = 0;\n }", "public function setEdad($valor){\n\t\t\t$this->edad = $valor;\n\t\t}", "public function setEAN ($ean){\n\t\tif($ean) {\n\t\t\t$this->Item['ean'] = substr($ean, 0,100);\n\t\t}\n\t}", "function toPay()\r\n {\r\n try {\r\n $this->mKart->setPaidKart();\r\n }catch(Exception $e){\r\n $this->error->throwException('310', 'No s`ha pogut realitzar el pagament.', $e);\r\n }\r\n }", "function set_values() {\n\t\tparent::set_values();\n\t\t$currency = new currency($this->_currency_id);\n\t\t\n\t\t$this->order_id->value = $this->_order_id;\n\t\t$this->timestamp->value = date(\"j M Y\");\n\t\t$this->total_amount->value = $currency->format_money($this->_total_amount);\n\t}", "function european_format($amount)\n {\n //return $fmt->formatCurrency($amount, \"EUR\");\n return $amount;\n }", "public function getageEu()\n {\n return $this->age_eu;\n }", "function setPrice($price, $taxPercentage = 25)\n {\n $this->taxPercentage = $taxPercentage;\n $this->taxA = $price / 100 * 100;\n $this->price = $price;\n }" ]
[ "0.6726171", "0.6121081", "0.58242524", "0.5794459", "0.5791253", "0.5775971", "0.57461715", "0.5732518", "0.5646602", "0.5635794", "0.56346846", "0.5630907", "0.5614467", "0.5587414", "0.5572525", "0.5565851", "0.55516565", "0.55393535", "0.5536037", "0.5513375", "0.5464269", "0.5457412", "0.54497266", "0.54422814", "0.5428793", "0.5410495", "0.5409689", "0.5404037", "0.5395998", "0.53525424" ]
0.6318065
1
Set the periode subr au.
public function setPeriodeSubrAu(DateTime $periodeSubrAu = null) { $this->periodeSubrAu = $periodeSubrAu; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPeriodeSubrAu() {\n return $this->periodeSubrAu;\n }", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "public function getPeriodeSubrDu() {\n return $this->periodeSubrDu;\n }", "function set_parent($parent)\r\n {\r\n $this->parent = $parent;\r\n }", "public function setPR($r) {}", "public function setPesoArea($peso) {\n $this->_peso = $peso; \n }", "function setValSubNode($nombre,$valor){\n\t\t$clase=$this->nmclass;\n\t\t$this->nodos[$clase][$nombre]=$valor;\n\t\t$this->anode=$nombre;\n\t\treturn 0;\n\t}", "protected function setSubstep($new_substep)\n\t{\n\t\t$this->activeSubstep = $new_substep;\n\t}", "function setSuperada($bsuperada = 'f')\n {\n $this->bsuperada = $bsuperada;\n }", "function setComprobantePagoARegistroPago() {\n\t\tglobal $bd;\t\t\n\t\tglobal $x_correlativo_comprobante;\n\t\t$correlatico_comprobante = $x_correlativo_comprobante;\n\t\t$x_array_comprobante = $_POST['p_comprobante'];\n\t\t$id_registro_pago = $_POST['idregistro_pago'];\n\n\t\t$idtipo_comprobante_serie = $x_array_comprobante['idtipo_comprobante_serie'];\n\t\t\n\t\t$sqlrp=\"update registro_pago set idtipo_comprobante_serie=\".$idtipo_comprobante_serie.\" where idregistro_pago=\".$id_registro_pago;\n\t\t$idregistro_pago=$bd->xConsulta_NoReturn($sqlrp);\n\t}", "public function setSubfolders($param) {\n\t\t$this->subfolders = $param;\n\t}", "public function setParent($parent) {\n\t\t$this->parent = $parent;\n\t}", "protected function onParentSet() : void\n {\n $value = $this->oFG->getData()->getValue($this->strName);\n $this->iValue = $value ? intval($value) : $this->iMin;\n }", "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 set($child) {\n\t\t$this->childs = array($child);\n\t}", "public function subirVolumen( ) {\n $vol = $this->getVolumen();\n if ($vol < 100) {\n $vol = $vol + 8;\n }\n else {\n $vol = 8;\n }\n $this->setVolumen($vol);\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function videoconferenciaSubirVolumen( ) {\n $this->subirVolumen();\n //$this->setComando(\"SUBIR_VOLUMEN\");\n }", "public function testSetPeriode() {\n\n // Set a Date/time mock.\n $periode = new DateTime(\"2018-09-10\");\n\n $obj = new HistoPrepPaie();\n\n $obj->setPeriode($periode);\n $this->assertSame($periode, $obj->getPeriode());\n }", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function setParent($parent)\n\t{\n\t\t$this->parent = $parent;\n\t}", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "public function __construct($puerto) {\n\t\t$this->puerto = $puerto;\t\n\t}", "public function setPeriodeSubrDu(DateTime $periodeSubrDu = null) {\n $this->periodeSubrDu = $periodeSubrDu;\n return $this;\n }", "function setOperationnode($node){\n\t\t$this->operationNode = $node;\n\t}", "public function setEncendidoPizarra( $encendido ) {\n $this->pizarra_on=$encendido;\n $this->enviarComandoEstado();\n //$this->activarPantalla();\n }", "protected static function setter($node, $property, $value, $subProperty = false)\n {\n\n //if there is a sub-property and there is only one, replace it\n if ($subProperty && isset($node->$property->$subProperty) && count($node->$property->$subProperty) === 1) {\n $node->$property->$subProperty = $value;\n } elseif (property_exists($node, $property)) {\n $node->$property = $value;\n }\n }", "function SetTreeData($data){\n $this->InitControl($data);\n\n }", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "function pa() {\n\t\t\t\t$edit_pid = (int)UTIL::get_post('edit_pid');\n\t\t\t\t//-- haben wir eine edit-id, koennen wir direkt zur auswahl gehen\n\t\t\t\tif ($edit_pid) return $this->pa_type();\n\t\t\t\t//-- seitenbaum auslesen\n\t\t\t\t$root_id = (int)$this->root_id;\n\t\t\t\t$set = new NestedSet();\n\t\t\t\t$set->set_table_name($this->mod_tbl);\n\t\t\t\t$nodes = $set->getNodes($root_id, '*', $this->DB->table_restriction($this->mod_tbl));\n\t\t\t\t$this->set_var('page_nodes', $nodes);\n\t\t\t\t$this->set_var('title', e::o('v_title_1'));\n\t\t\t\t$this->OPC->generate_view($this->tpl_dir . 'pa.php');\n\t\t\t\treturn;\n\t\t\t}" ]
[ "0.5791211", "0.5400335", "0.5337396", "0.53221637", "0.52510077", "0.52428615", "0.51784086", "0.5160976", "0.510818", "0.5089068", "0.5055793", "0.5019125", "0.50155056", "0.49956346", "0.4995259", "0.49816465", "0.49749538", "0.49707505", "0.49570417", "0.49516904", "0.4933603", "0.49266544", "0.49182847", "0.4917779", "0.49153164", "0.49055934", "0.4898026", "0.48887956", "0.4884501", "0.48705631" ]
0.56920934
1
Set the periode subr du.
public function setPeriodeSubrDu(DateTime $periodeSubrDu = null) { $this->periodeSubrDu = $periodeSubrDu; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPeriodeSubrDu() {\n return $this->periodeSubrDu;\n }", "public function getPeriodeSubrAu() {\n return $this->periodeSubrAu;\n }", "public function setPeriodeSubrAu(DateTime $periodeSubrAu = null) {\n $this->periodeSubrAu = $periodeSubrAu;\n return $this;\n }", "public function setPR($r) {}", "public function subirVolumen( ) {\n $vol = $this->getVolumen();\n if ($vol < 100) {\n $vol = $vol + 8;\n }\n else {\n $vol = 8;\n }\n $this->setVolumen($vol);\n }", "public function setSubserial($v)\n\t{\n\n\t\tif ($this->subserial !== $v || $v === false) {\n\t\t\t$this->subserial = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::SUBSERIAL;\n\t\t}\n\n\t}", "public function setSubDir($sub_dir)\n\t{\n\t\t$this->sub_dir = $sub_dir;\n\n\t\treturn $this;\n\t}", "public function setSubfolders($param) {\n\t\t$this->subfolders = $param;\n\t}", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "protected function setSubstep($new_substep)\n\t{\n\t\t$this->activeSubstep = $new_substep;\n\t}", "public function setSubProperty($path,$value)\n\t{\n\t\t$object=$this;\n\t\tif(($pos=strrpos($path,'.'))===false)\n\t\t\t$property=$path;\n\t\telse\n\t\t{\n\t\t\t$object=$this->getSubProperty(substr($path,0,$pos));\n\t\t\t$property=substr($path,$pos+1);\n\t\t}\n\t\t$object->$property=$value;\n\t}", "public function set($child) {\n\t\t$this->childs = array($child);\n\t}", "protected function setVida() {\n $this->vida = 200;\n }", "public function videoconferenciaSubirVolumen( ) {\n $this->subirVolumen();\n //$this->setComando(\"SUBIR_VOLUMEN\");\n }", "public function setVida($valor){\n $this->vida=$valor;\n }", "protected static function setter($node, $property, $value, $subProperty = false)\n {\n\n //if there is a sub-property and there is only one, replace it\n if ($subProperty && isset($node->$property->$subProperty) && count($node->$property->$subProperty) === 1) {\n $node->$property->$subProperty = $value;\n } elseif (property_exists($node, $property)) {\n $node->$property = $value;\n }\n }", "public function set_superficie(int $_superficie){\n $this->_superficie = $_superficie;\n\n return $this;\n }", "function setSuperada($bsuperada = 'f')\n {\n $this->bsuperada = $bsuperada;\n }", "public function setChild($child)\n {\n $this->child = $child;\n }", "function setValSubNode($nombre,$valor){\n\t\t$clase=$this->nmclass;\n\t\t$this->nodos[$clase][$nombre]=$valor;\n\t\t$this->anode=$nombre;\n\t\treturn 0;\n\t}", "public static function setSessionSubformField(string $subfromKey, string $field, $value)\n {\n self::$libraryData['subform'][$subfromKey][$field] = $value;\n }", "function setPID($pid) {\n\t\t$this->_pid = $pid;\n\t}", "public function setSubReportSize($size)\n {\n $this->_subReportSize = $size;\n }", "protected function onParentSet() : void\n {\n $value = $this->oFG->getData()->getValue($this->strName);\n $this->iValue = $value ? intval($value) : $this->iMin;\n }", "public function setSub($sub)\n {\n ValidationUtility::ensureNullOrString('$sub', $sub);\n\n $this->sub = $sub;\n\n return $this;\n }", "function set_parent($parent)\r\n {\r\n $this->parent = $parent;\r\n }", "public function getPeriodeDu() {\n return $this->periodeDu;\n }", "public function setDataRoot($r){\n $this->data_root = $r;\n }", "public function setDepth($depth) {\n\t $this->d = $depth;\n }", "public function setR($r) {}" ]
[ "0.5936033", "0.5472491", "0.53441644", "0.5271361", "0.5267191", "0.52468234", "0.5229783", "0.5168123", "0.5159658", "0.50777733", "0.50657064", "0.50412333", "0.50323623", "0.5029432", "0.49274123", "0.49197626", "0.49152356", "0.49123108", "0.48600665", "0.4846196", "0.48196986", "0.48149782", "0.481261", "0.47983405", "0.4794276", "0.4793338", "0.4780462", "0.47796828", "0.4763792", "0.47572547" ]
0.59841317
0
Set the prenom employe.
public function setPrenomEmploye($prenomEmploye) { $this->prenomEmploye = $prenomEmploye; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNumeroEmploye(?string $numeroEmploye): PrepaPaie {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "public function testSetPrenom() {\n\n $obj = new Employes();\n\n $obj->setPrenom(\"prenom\");\n $this->assertEquals(\"prenom\", $obj->getPrenom());\n }", "function set_employee($emp)\n\t\t{\n\t\t\t$this->employee = $emp;\n\t\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 setNumeroEmploye(?string $numeroEmploye): RetraitesEmp {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "public function testSetPersonneAPrevenir() {\n\n $obj = new Employes();\n\n $obj->setPersonneAPrevenir(\"personneAPrevenir\");\n $this->assertEquals(\"personneAPrevenir\", $obj->getPersonneAPrevenir());\n }", "public function testSetCodeEmploye() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "public function testSetPrenomConjoint() {\n\n $obj = new Employes();\n\n $obj->setPrenomConjoint(\"prenomConjoint\");\n $this->assertEquals(\"prenomConjoint\", $obj->getPrenomConjoint());\n }", "public function testSetPrudLieuVote() {\n\n $obj = new Employes();\n\n $obj->setPrudLieuVote(\"prudLieuVote\");\n $this->assertEquals(\"prudLieuVote\", $obj->getPrudLieuVote());\n }", "public function testSetNumeroEmploye() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroEmploye(\"numeroEmploye\");\n $this->assertEquals(\"numeroEmploye\", $obj->getNumeroEmploye());\n }", "public function setEmpleado_idemp($empleado_idemp){\n $this->empleado_idemp = $empleado_idemp;\n }", "public function getPrenomEmploye() {\n return $this->prenomEmploye;\n }", "public function testSetTelPersAPrevenir() {\n\n $obj = new Employes();\n\n $obj->setTelPersAPrevenir(\"telPersAPrevenir\");\n $this->assertEquals(\"telPersAPrevenir\", $obj->getTelPersAPrevenir());\n }", "public function testSetCodeEmploye() {\n\n $obj = new PointBonTrav();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "public function testSetOrphelin() {\n\n $obj = new Employes();\n\n $obj->setOrphelin(true);\n $this->assertEquals(true, $obj->getOrphelin());\n }", "public function setCodeEmploye(?string $codeEmploye): PointEmpHeuresAbsComplRempl {\n $this->codeEmploye = $codeEmploye;\n return $this;\n }", "public function testSetNumeroPermis() {\n\n $obj = new Employes();\n\n $obj->setNumeroPermis(\"numeroPermis\");\n $this->assertEquals(\"numeroPermis\", $obj->getNumeroPermis());\n }", "public function testSetDernNumPrime() {\n\n $obj = new Employes();\n\n $obj->setDernNumPrime(10);\n $this->assertEquals(10, $obj->getDernNumPrime());\n }", "public function setNit_empresa($nit_empresa){\n $this->nit_empresa = $nit_empresa;\n }", "public function testSetNivConfEmpPropreteRestreint() {\n\n $obj = new Collaborateurs();\n\n $obj->setNivConfEmpPropreteRestreint(true);\n $this->assertEquals(true, $obj->getNivConfEmpPropreteRestreint());\n }", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function setPR($r) {}", "public function testSetCalculParticip() {\n\n $obj = new Employes();\n\n $obj->setCalculParticip(true);\n $this->assertEquals(true, $obj->getCalculParticip());\n }", "public function testSetTypePaiement() {\n\n $obj = new Employes();\n\n $obj->setTypePaiement(\"typePaiement\");\n $this->assertEquals(\"typePaiement\", $obj->getTypePaiement());\n }", "public function setNumeroEmploye($numeroEmploye) {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "public function setNumeroEmploye($numeroEmploye) {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "public function setNumeroEmploye($numeroEmploye) {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "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 testSetNumeroOrdre() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setNumeroOrdre(10);\n $this->assertEquals(10, $obj->getNumeroOrdre());\n }", "Public function set_requete($requete = null){\n\n\n\n\n }" ]
[ "0.64211816", "0.6336441", "0.6193238", "0.61533844", "0.6150885", "0.6082781", "0.5976428", "0.594993", "0.58826363", "0.5880677", "0.5866691", "0.58579713", "0.58394736", "0.5808791", "0.5795179", "0.57919085", "0.5760322", "0.57584465", "0.57496285", "0.5696624", "0.5683577", "0.5675781", "0.5639408", "0.5605362", "0.55867535", "0.55867535", "0.55867535", "0.5585598", "0.55622095", "0.5538093" ]
0.63876516
1
Set the reprise motif med.
public function setRepriseMotifMed($repriseMotifMed) { $this->repriseMotifMed = $repriseMotifMed; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRepriseMotifMed() {\n return $this->repriseMotifMed;\n }", "public function setRise($rise) {}", "public function testSetMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setMotifRupture(\"motifRupture\");\n $this->assertEquals(\"motifRupture\", $obj->getMotifRupture());\n }", "public function setRealations(){\n\n }", "public function updatePatientMedicineTarget() {\n if ($this->patient instanceof Patient) {\n PatientMedicineTarget::removeAllByPatient($this->patient);\n $pmpitems = PatientMedicinePkgItemDao::getListByPatientmedicinepkgid($this->id);\n\n foreach ($pmpitems as $pmpitem) {\n if ($pmpitem->medicine->ischinese) {\n continue;\n }\n PatientMedicineTarget::updateByPatientMedicinePkgItem($pmpitem);\n }\n }\n }", "public function getMotifRupture() {\n return $this->motifRupture;\n }", "public function setPrenotazioniMedico($prenotazioni ) {\n $this->_pazienti = $prenotazioni ;\n }", "public function setPazientiMedico($pazienti) {\n $this->_pazienti = $pazienti;\n }", "protected function setVida() {\n $this->vida = 200;\n }", "protected function setOfferNature ()\n {\n $this->offerNature = $this->offer->rate_nature->value;\n }", "public function setMedia()\n {\n }", "public function setMedia()\n {\n }", "public function setMedia()\n {\n }", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "protected function calidadImagenDefaut(){\r\n\t\t$this->calidadImagen=100;\r\n\t}", "public function setMotifRupture($motifRupture) {\n $this->motifRupture = $motifRupture;\n return $this;\n }", "public function testSetCodeMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setCodeMotifRupture(\"codeMotifRupture\");\n $this->assertEquals(\"codeMotifRupture\", $obj->getCodeMotifRupture());\n }", "private function __setMedicationTileData() {\n\t\tif ($this->_requestedUser['id'] === $this->Auth->user('id')) {\n\t\t\t$showMedicationTile = true;\n\t\t\t$this->__addMedicationSchedulerFormValidation();\n\t\t\t$timezone = $this->Auth->user('timezone');\n\t\t\t$date = Date::getCurrentDate($timezone);\n\t\t\t$data = $this->__getMedicationDataOnDate($date);\n\t\t\t$this->set($data);\n\t\t} else {\n\t\t\t$showMedicationTile = false;\n\t\t}\n\t\t$this->set(compact('showMedicationTile'));\n\t}", "public function testSetSignMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignMotifRupture(\"signMotifRupture\");\n $this->assertEquals(\"signMotifRupture\", $obj->getSignMotifRupture());\n }", "public function setPR($r) {}", "public function ligarMudo() {\n if ($this->getLigado() && $this->getVolume() > 0) {\n $this->setVolume(0);\n }\n }", "private function _setPan()\n {\n if (isset($this->pan) && $this->pan) {\n switch ($this->pan) {\n case 'up':\n $x_offset = 1;\n $y_offset = 0.9;\n break;\n\n case 'right':\n $x_offset = 1.1;\n $y_offset = 1;\n break;\n\n case 'down':\n $x_offset = 1;\n $y_offset = 1.1;\n break;\n\n case 'left':\n $x_offset = 0.9;\n $y_offset = 1;\n break;\n }\n\n $new_point = ms_newPointObj();\n $new_point->setXY($this->map_obj->width/2*$x_offset, $this->map_obj->height/2*$y_offset);\n $this->map_obj->zoompoint(1, $new_point, $this->map_obj->width, $this->map_obj->height, $this->map_obj->extent);\n }\n }", "public function reprova()\n {\n $this -> estadoAtual -> reprova($this);\n }", "public function set_motdepasse($_motdepasse)\n {\n $this->_motdepasse = $_motdepasse;\n\n return $this;\n }", "public function setOneSlideMode( $data ) {\n\t\t$this->oneSlideMode = true;\n\t\t$this->oneSlideData = $data;\n\t}", "public function setIllumination($value) {\n $this->illuminate = $value;\n }", "public function setR($r) {}", "public function testSetTauxPensionMilitaire() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionMilitaire(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionMilitaire());\n }", "function setMinute($m)\r\n {\r\n if($m > 59 || $m < 0) {\r\n $this->minuto = 0;\r\n } else {\r\n $this->minuto = $m;\r\n }\r\n }", "public function setMag($mag_)\n\t{\n\t\t$s = $mag_ / $this->mag();\n\t\t$this->scale($s);\n\t}" ]
[ "0.61284965", "0.5820954", "0.5367605", "0.5340308", "0.5266526", "0.52644074", "0.52555054", "0.5242494", "0.51762193", "0.51636565", "0.5039836", "0.5039836", "0.5039836", "0.49996296", "0.49843413", "0.4964447", "0.49579167", "0.4952581", "0.49348414", "0.49043378", "0.49040112", "0.47886083", "0.47828278", "0.47714803", "0.47648942", "0.47597814", "0.47449294", "0.47333378", "0.4730553", "0.47287548" ]
0.661334
0
Set the reprise raison pers.
public function setRepriseRaisonPers($repriseRaisonPers) { $this->repriseRaisonPers = $repriseRaisonPers; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_persR($_persR)\n {\n $this->_persR = $_persR;\n\n return $this;\n }", "public function getRepriseRaisonPers() {\n return $this->repriseRaisonPers;\n }", "public function setPR($r) {}", "public function setRealations(){\n\n }", "public function setRise($rise) {}", "public function setResaca($resaca){\n $this->resaca=$resaca;\n }", "public function setR($r) {}", "public function get_persR()\n {\n return $this->_persR;\n }", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "public function alejarCamaraPresidencia() {\n\n self::$presidencia->alejarZoom();\n\n }", "public function presetCamaraPresidencia($posicion) {\n\n self::$presidencia->preset($posicion);\n\n }", "function assign_rs()\n {\n $this->assign('student', $this->rs);\n }", "function setViewerReturnValues($viewer) {\n\t\t$viewer->assign('RETURN_MODULE', $this->get('returnmodule'));\n\t\t$viewer->assign('RETURN_VIEW', $this->get('returnview'));\n\t\t$viewer->assign('RETURN_PAGE', $this->get('returnpage'));\n\t\t$viewer->assign('RETURN_VIEW_NAME', $this->get('returnviewname'));\n\t\t$viewer->assign('RETURN_SEARCH_PARAMS', $this->get('returnsearch_params'));\n\t\t$viewer->assign('RETURN_SEARCH_KEY', $this->get('returnsearch_key'));\n\t\t$viewer->assign('RETURN_SEARCH_VALUE', $this->get('returnsearch_value'));\n\t\t$viewer->assign('RETURN_SEARCH_OPERATOR', $this->get('returnoperator'));\n\t\t$viewer->assign('RETURN_SORTBY', $this->get('returnsortorder'));\n\t\t$viewer->assign('RETURN_ORDERBY', $this->get('returnorderby'));\n\t\t\n\t\t$viewer->assign('RETURN_RECORD', $this->get('returnrecord'));\n\t\t$viewer->assign('RETURN_RELATED_TAB', $this->get('returntab_label'));\n\t\t$viewer->assign('RETURN_RELATED_MODULE', $this->get('returnrelatedModuleName'));\n\t\t$viewer->assign('RETURN_MODE', $this->get('returnmode'));\n $viewer->assign('RETURN_RELATION_ID', $this->get('returnrelationId'));\n $viewer->assign('RETURN_PARENT_MODULE', $this->get('returnparent'));\n\t}", "public function constructor(){\r\n\t\t$this->pers = array();//Indicamos que pers sera un array de valores\r\n\t}", "public function setRRecupPris(?float $rRecupPris): PrepaPaie {\n $this->rRecupPris = $rRecupPris;\n return $this;\n }", "public function SetRIs(SetRIs $parameters)\n {\n return $this->__soapCall('SetRIs', array($parameters));\n }", "public function setRoues( $roues )\n\t\t{\n\t\t\ttry //on essaye le code suivant\n\t\t\t{\n\t\t\t\t//if( !preg_match('/^[1-9]{1}$/', $roues) )\n\t\t\t\tif( $roues < 4 ) //erreur si le nombre de roues < 2\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception( 'Nombre de roues invalide!' ); //envoi d'un message d'erreur personnalisé\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->_roues = $roues;\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception $e)// en cas d'erreur\n\t\t\t{\n\t\t\t\t// on affiche le message d'erreur qui a été recupéré grâce à getMessage()\n\t\t\t\techo '<erreur>Erreur: '.$e->getMessage().'</erreur><br/>';\n\t\t\t\t\n\t\t\t\t//on arrête l'exécution s'il y a du code après\n\t\t\t\texit();\n\t\t\t}\n\t\t}", "public function setPaper($paper) {\n\t}", "private function _setPan()\n {\n if (isset($this->pan) && $this->pan) {\n switch ($this->pan) {\n case 'up':\n $x_offset = 1;\n $y_offset = 0.9;\n break;\n\n case 'right':\n $x_offset = 1.1;\n $y_offset = 1;\n break;\n\n case 'down':\n $x_offset = 1;\n $y_offset = 1.1;\n break;\n\n case 'left':\n $x_offset = 0.9;\n $y_offset = 1;\n break;\n }\n\n $new_point = ms_newPointObj();\n $new_point->setXY($this->map_obj->width/2*$x_offset, $this->map_obj->height/2*$y_offset);\n $this->map_obj->zoompoint(1, $new_point, $this->map_obj->width, $this->map_obj->height, $this->map_obj->extent);\n }\n }", "public function setRdate($rdate) {\n $this->rdate = $rdate;\n }", "public function setCrops( $crops ){\n if ($crops instanceof CropsTYPE)\n\t\t\t$this->crops = $crops;\n\t\telse \n\t\t\t$this->crops->clear();\n }", "public function setRrPris(?float $rrPris): PrepaPaie {\n $this->rrPris = $rrPris;\n return $this;\n }", "private function setRutasVista() {\n /* variable relacionadas a un controlador especifico */\n $this->_rutas = [\n 'vista' => RUTA_MODULOS . 'vista' . DS . $this->_controlador . DS,\n 'img' => URL_MODULOS . \"vista/\" . $this->_controlador . \"/img/\",\n 'js' => URL_MODULOS . \"vista/\" . $this->_controlador . \"/js/\",\n 'css' => URL_MODULOS . \"vista/\" . $this->_controlador . \"/css/\",\n ];\n }", "public function setRemediationScriptParameters($val)\n {\n $this->_propDict[\"remediationScriptParameters\"] = $val;\n return $this;\n }", "public function setUry($ury) {}", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function setIdPROVEEDORES($idPROVEEDORES){\n $this->idPROVEEDORES = $idPROVEEDORES;\n }", "public function setRain( $rain ) {\n\n $this->rain = $rain;\n }", "public function set_imgR($_imgR)\n {\n $this->_imgR = $_imgR;\n\n return $this;\n }", "public function setRentals(array $rentals): void\n {\n $this->rentals = $rentals;\n }" ]
[ "0.67494875", "0.6448145", "0.62792486", "0.58824193", "0.5712311", "0.56753546", "0.55229974", "0.5493988", "0.5284306", "0.5235466", "0.5194359", "0.51708", "0.5138197", "0.50563765", "0.50434816", "0.5022134", "0.50184816", "0.49817193", "0.49693915", "0.49584255", "0.4956579", "0.49198994", "0.48954582", "0.48919666", "0.48589164", "0.4827574", "0.4811891", "0.47927615", "0.47598192", "0.47350615" ]
0.67442745
1
Set the signature date.
public function setSignatureDate(DateTime $signatureDate = null) { $this->signatureDate = $signatureDate; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDate($date);", "private function _setDate(){\n\t\tif($this->_year>=1970&&$this->_year<=2038){\n\t\t\t$this->_day = date('d', $this->_timestamp);\n\t\t\t$this->_month = date('m', $this->_timestamp);\n\t\t\t$this->_year = date('Y', $this->_timestamp);\n\t\t} else {\n\t\t\t$dateParts = self::_getDateParts($this->_timestamp, true);\n\t\t\t$this->_day = sprintf('%02s', $dateParts['mday']);\n\t\t\t$this->_month = sprintf('%02s', $dateParts['mon']);\n\t\t\t$this->_year = $dateParts['year'];\n\t\t}\n\t\t$this->_date = $this->_year.'-'.$this->_month.'-'.$this->_day;\n\t}", "public function setDate($date){\n\t\t$this->date = $date;\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($value) {\n\t\t$this->_date = $value;\n\t}", "public function setDate($date) {\n $this->date = $date;\n }", "public function getSignatureDate() {\n return $this->signatureDate;\n }", "public function getSignatureDate() {\n return $this->signatureDate;\n }", "public function setDate($date)\n\t{\n\t\t$this->date = $date;\n\t}", "public function setDate()\n\t{\n\t\tif ($this->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "function setSignature($signature)\n {\n $this->_signature = $signature;\n }", "protected function setSignature( $data ){\n $this->signature = $data;\n }", "public function setExpirationDate(?Date $value): void {\n $this->getBackingStore()->set('expirationDate', $value);\n }", "public function setTransactionDate($value) {\n\t\tself::$_transactionDate = $value;\n\t}", "public function setDate( $date ) {\n\t\tif ( !preg_match( self::DATERE, $date ) ) {\n\t\t\tthrow new InvalidArgumentException( \"Not a valid date: \".$date );\n\t\t}\n\t\t$this->setParameter( \"dtreviewed\", $date );\n\t}", "public function set_date($date) \n\t{\n\t\tif(! is_numeric($date))\n\t\t{\n\t\t\t$date = strtotime($date);\n\t\t}\n\t\t\n\t\tif($this->version == ATOM)\n\t\t{\n\t\t\t$tag = 'updated';\n\t\t\t$value = date(DATE_ATOM, $date);\n\t\t} \n\t\telseif($this->version == RSS2) \n\t\t{\n\t\t\t$tag = 'pubDate';\n\t\t\t$value = date(DATE_RSS, $date);\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$tag = 'dc:date';\n\t\t\t$value = date(\"Y-m-d\", $date);\n\t\t}\n\t\t\n\t\t$this->add_element($tag, $value); \n\t}", "public function setPubDate( $timestamp ) {\n\t\t$this->pubDate = date( 'r', $timestamp );\n\t}", "private function setDate(){\n\t// Validate incoming parameters\n\t\t$this->di->logger->stamp(__CLASS__, __METHOD__, '');\n\tif (isset($_GET['month'])) {\n\t\tis_numeric($_GET['month']) or die('month has to be numeric');\n\t}\n\tif (isset($_GET['year'])) {\n\t\tis_numeric($_GET['year']) or die('year has to be numeric');\n\t}\n\n\t// Set new date\n\t$this->newMonth = isset($_GET['month']) ? ($_GET['month']) : $this->currentMonth;\n\t$this->newYear = isset($_GET['year']) ? ($_GET['year']) : $this->currentYear;\n\n\tif ($this->newMonth > 12) {\n\t\t$this->newYear = $this->newYear +1;\n\t\t$this->newMonth = 1;\n\t\t$_GET['month'] = 1;\n\n\t}\n\telse if ($this->newMonth < 1) {\n\t\t$this->newYear = $this->newYear -1;\n\t\t$this->newMonth = 12;\n\t\t$_GET['month'] = 12;\n\t}\n\t\n\t}", "public function setCreated($date)\n {\n $this->created = $date;\n }", "public function testSetSignDate() {\n\n // Set a Date/time mock.\n $signDate = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setSignDate($signDate);\n $this->assertSame($signDate, $obj->getSignDate());\n }", "private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t\t}\r\n\r\n\t\tif ($this->year > 2037) $this->year = 2037;\r\n\t\tif ($this->year < 1971) $this->year = 1971;\r\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setCreationDate($date) {}", "public function setExpiryDate($date)\n {\n $this->expiryDate = $date;\n }", "public function setCreated($date) \n\t{\n\t\t$this->created = $this->parseDate($date);\n\t}", "public function SetSignatureParameter() {\n $signature_text = $this->signature->build_signature($this->request, $this->consumer, $this->token);\n $this->request->set_parameter('signature', $signature_text);\n return $this;\n }", "public function setDate( $sDate ) {\n\t\t$this->sDate = $sDate;\n\t}", "public function setDate($date){\r\n\t\t$this->wishDate = $date;\r\n\t}" ]
[ "0.6909436", "0.6663818", "0.6610339", "0.65995985", "0.65995985", "0.65993595", "0.65898025", "0.6589389", "0.6589389", "0.6571134", "0.6508739", "0.63443655", "0.6335881", "0.63342345", "0.6319506", "0.63190424", "0.61906254", "0.6176249", "0.6162845", "0.61507285", "0.61487526", "0.6145867", "0.61211663", "0.61211663", "0.6114592", "0.61075616", "0.6102689", "0.6100941", "0.609245", "0.6087358" ]
0.71012825
1
Set the signature qualite.
public function setSignatureQualite($signatureQualite) { $this->signatureQualite = $signatureQualite; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setSignature($signature)\n {\n $this->_signature = $signature;\n }", "public function SetSignatureParameter() {\n $signature_text = $this->signature->build_signature($this->request, $this->consumer, $this->token);\n $this->request->set_parameter('signature', $signature_text);\n return $this;\n }", "protected function setSignature( $data ){\n $this->signature = $data;\n }", "public function setSignature($signature) {\n\t\t$this->signature = $signature;\n\t}", "public function getSignatureQualite() {\n return $this->signatureQualite;\n }", "public function getSignatureQualite() {\n return $this->signatureQualite;\n }", "public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n }", "function setAuthSignature($AuthSignature)\n {\n \t$this->_authSignature =$AuthSignature;\n }", "public function setSignatureQualiteCode($signatureQualiteCode) {\n $this->signatureQualiteCode = $signatureQualiteCode;\n return $this;\n }", "function setSignatureMode($mode)\n {\n $this->signatureMode = $mode;\n }", "public function setSignature($var)\n {\n GPBUtil::checkString($var, True);\n $this->signature = $var;\n\n return $this;\n }", "public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n\n return $this;\n }", "public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n\n return $this;\n }", "public function setSignatureFile($path)\n {\n $this->setSignatureFileFromPath($path);\n }", "public function getSignatureQualiteCode() {\n return $this->signatureQualiteCode;\n }", "public function setSignatureKey(?string $signatureKey): void\n {\n $this->signatureKey = $signatureKey;\n }", "public function setSignature($signature = null)\n {\n $this->_signature = $signature;\n return $this;\n }", "public function testSetSignQualite() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignQualite(10);\n $this->assertEquals(10, $obj->getSignQualite());\n }", "public function setSignature(array $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function setSig(string $sig)\n {\n $this->sig = $sig;\n\n return $this;\n }", "public function withSignature($signature);", "public function setSignature($body) {\n $this->addHeaders([\n 'X-Hub-Signature' => 'sha1=' . hash_hmac('sha1', $body, $this->secret, FALSE),\n ]);\n return $this;\n }", "public function setEnforceSignatureCheck($val)\n {\n $this->_propDict[\"enforceSignatureCheck\"] = $val;\n return $this;\n }", "public function setSignature($signature)\n {\n if (!base64_decode($signature)) {\n throw new \\Exception(\"The provided signature was not valid\");\n }\n\n $this->signature = $signature;\n }", "protected function setRequestSignature($request) {\n\t\t$fields = array(\n\t\t\t\t$this->getVersion(), // APIVERSION\n\t\t\t\t$this->tid, // TID\n\t\t\t\t$this->shopID, // SHOPID\n\t\t\t\t$this->shopUserRef, // SHOPUSERREF\n\t\t\t\t$this->amount, // AMOUNT\n\t\t\t\t$this->currencyCode, // CURRENCYCODE\n\t\t\t\t$this->pan, // PAN\n\t\t\t\t$this->payInstrToken, // PAYINSTRTOKEN\n\t\t\t\t$this->expireMonth, // EXPIREMONTH\n\t\t\t\t$this->expireYear, // EXPIREYEAR\n\t\t\t\t$this->termURL, // TERMURL\n\t\t\t\t$this->description, // DESCRIPTION\n\t\t\t\t$this->addInfo1, // UDF1\n\t\t\t\t$this->addInfo2, // UDF2\n\t\t\t\t$this->addInfo3, // UDF3\n\t\t\t\t$this->addInfo4, // UDF4\n\t\t\t\t$this->addInfo5); // UDF5\n\t\t$signature = $this->getSignature($this->kSig, // KSIGN\n\t\t\t\t$fields); \n\t\t$request = $this->replaceRequest($request, \"{signature}\", $signature);\n\t\treturn $request;\n\t}", "public function setCallSignature(string $call_sig):void{\n\t\t$this->call_sig = $call_sig;\n\t }", "public function setSignatureFileContent($contentRaw)\n {\n $this->setSignatureFileFromContentRaw($contentRaw);\n }", "public function setEnforceSignatureCheck(?bool $value): void {\n $this->getBackingStore()->set('enforceSignatureCheck', $value);\n }", "public function setEnforceSignatureCheck(?bool $value): void {\n $this->getBackingStore()->set('enforceSignatureCheck', $value);\n }", "function setSign( $value )\r\n {\r\n $this->Sign = $value;\r\n }" ]
[ "0.68597966", "0.6698528", "0.66283333", "0.66129583", "0.65129846", "0.65129846", "0.64959246", "0.63993406", "0.6354599", "0.6199017", "0.6166662", "0.61617255", "0.61617255", "0.61406803", "0.6127692", "0.6059226", "0.5842635", "0.58299285", "0.5742746", "0.57163054", "0.57056004", "0.5697005", "0.56332105", "0.55776685", "0.5566636", "0.55277044", "0.54627043", "0.5440167", "0.5440167", "0.5402045" ]
0.7103444
1
Set the signature ville.
public function setSignatureVille($signatureVille) { $this->signatureVille = $signatureVille; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setSignature( $data ){\n $this->signature = $data;\n }", "function setSignature($signature)\n {\n $this->_signature = $signature;\n }", "public function SetSignatureParameter() {\n $signature_text = $this->signature->build_signature($this->request, $this->consumer, $this->token);\n $this->request->set_parameter('signature', $signature_text);\n return $this;\n }", "function setSignatureMode($mode)\n {\n $this->signatureMode = $mode;\n }", "public function setSignature($signature) {\n\t\t$this->signature = $signature;\n\t}", "public function getSignatureVille() {\n return $this->signatureVille;\n }", "public function getSignatureVille() {\n return $this->signatureVille;\n }", "public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n }", "function setAuthSignature($AuthSignature)\n {\n \t$this->_authSignature =$AuthSignature;\n }", "function setSign( $value )\r\n {\r\n $this->Sign = $value;\r\n }", "public function setSignatureKey(?string $signatureKey): void\n {\n $this->signatureKey = $signatureKey;\n }", "public function setSignatureFile($path)\n {\n $this->setSignatureFileFromPath($path);\n }", "public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n\n return $this;\n }", "public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n\n return $this;\n }", "public function setSignature($var)\n {\n GPBUtil::checkString($var, True);\n $this->signature = $var;\n\n return $this;\n }", "public function setSigner($val)\n {\n $this->_propDict[\"signer\"] = $val;\n return $this;\n }", "public function customize_preview_signature()\n {\n }", "public function setCallSignature(string $call_sig):void{\n\t\t$this->call_sig = $call_sig;\n\t }", "public function setSignature()\n {\n \t$options = array('user_id' => $this->user_id,\n \t 'profile_key' => 'sig'\n \t );\n $result = DatabaseObject_UserProfile::getUserProfileData($this->_db, $options);\n \t\n \tif (!$result) {\n \t return \"\";\n \t}\n \t \n \treturn $this->signature = html_entity_decode($result);\n }", "public function testSetEmailModeSignature() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailModeSignature(10);\n $this->assertEquals(10, $obj->getEmailModeSignature());\n }", "function signature()\r\n\t{\r\n\t\tglobal $ibforums, $std, $print;\r\n\r\n\t\t$t_sig = $this->parser->unconvert($this->member['signature'], $ibforums->vars['sig_allow_ibc'], $ibforums->vars['sig_allow_html']);\r\n\r\n\t\t$ibforums->lang['the_max_length'] = $ibforums->vars['max_sig_length']\r\n\t\t\t? $ibforums->vars['max_sig_length']\r\n\t\t\t: 0;\r\n\r\n\t\t$data = array(\r\n\t\t\t'TEXT' => $this->member['signature'],\r\n\t\t\t'SMILIES' => 1,\r\n\t\t\t'CODE' => 1,\r\n\t\t\t'SIGNATURE' => 0,\r\n\t\t\t'HTML' => $ibforums->vars['sig_allow_html'],\r\n\t\t);\r\n\r\n\t\t$this->member['signature'] = $this->parser->prepare($data);\r\n\r\n\t\tif ($ibforums->vars['sig_allow_html'] == 1)\r\n\t\t{\r\n\t\t\t$this->member['signature'] = $this->parser->parse_html($this->member['signature'], 0);\r\n\t\t}\r\n\r\n\t\t$this->output .= View::make(\r\n\t\t\t\"ucp.signature\",\r\n\t\t\t[\r\n\t\t\t\t'sig' => $this->member['signature'],\r\n\t\t\t\t't_sig' => $t_sig,\r\n\t\t\t\t'key' => $std->return_md5_check(),\r\n\t\t\t\t'select_syntax' => $std->code_tag_button()\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->page_title = $ibforums->lang['t_welcome'];\r\n\t\t$this->nav = array(\"<a href='\" . $this->base_url . \"act=UserCP&amp;CODE=00'>\" . $ibforums->lang['t_title'] . \"</a>\");\r\n\r\n\t}", "protected function setRequestSignature($request) {\n\t\t$fields = array(\n\t\t\t\t$this->getVersion(), // APIVERSION\n\t\t\t\t$this->tid, // TID\n\t\t\t\t$this->shopID, // SHOPID\n\t\t\t\t$this->shopUserRef, // SHOPUSERREF\n\t\t\t\t$this->amount, // AMOUNT\n\t\t\t\t$this->currencyCode, // CURRENCYCODE\n\t\t\t\t$this->pan, // PAN\n\t\t\t\t$this->payInstrToken, // PAYINSTRTOKEN\n\t\t\t\t$this->expireMonth, // EXPIREMONTH\n\t\t\t\t$this->expireYear, // EXPIREYEAR\n\t\t\t\t$this->termURL, // TERMURL\n\t\t\t\t$this->description, // DESCRIPTION\n\t\t\t\t$this->addInfo1, // UDF1\n\t\t\t\t$this->addInfo2, // UDF2\n\t\t\t\t$this->addInfo3, // UDF3\n\t\t\t\t$this->addInfo4, // UDF4\n\t\t\t\t$this->addInfo5); // UDF5\n\t\t$signature = $this->getSignature($this->kSig, // KSIGN\n\t\t\t\t$fields); \n\t\t$request = $this->replaceRequest($request, \"{signature}\", $signature);\n\t\treturn $request;\n\t}", "public function setSig(string $sig)\n {\n $this->sig = $sig;\n\n return $this;\n }", "public function setFileToSign($path)\n {\n $this->setFileToSignFromPath($path);\n }", "public function setFileToSign($path)\n {\n $this->setFileToSignFromPath($path);\n }", "public function setEnforceSignatureCheck(?bool $value): void {\n $this->getBackingStore()->set('enforceSignatureCheck', $value);\n }", "public function setEnforceSignatureCheck(?bool $value): void {\n $this->getBackingStore()->set('enforceSignatureCheck', $value);\n }", "public function setDataSignature() \n {\n $this->dataSignature = array(\n \"order_no\" => array(\"required\" => 1, \"type\" => \"int\"),\n \"order_status\" => array(\"required\" => 1, \"type\" => \"int\"),\n );\n }", "public function setSignatureFileContent($contentRaw)\n {\n $this->setSignatureFileFromContentRaw($contentRaw);\n }", "public function setSignature($signature = null)\n {\n $this->_signature = $signature;\n return $this;\n }" ]
[ "0.6864862", "0.67513925", "0.6582091", "0.65801716", "0.65205884", "0.64514726", "0.64514726", "0.64172405", "0.63131857", "0.62962157", "0.61627716", "0.6137811", "0.6005786", "0.6005786", "0.5990562", "0.58488834", "0.58160585", "0.5807098", "0.5639753", "0.56099945", "0.5590056", "0.5498528", "0.5461611", "0.5455071", "0.5455071", "0.5421974", "0.5421974", "0.53700286", "0.5353847", "0.53394806" ]
0.7040498
1
Set the subrogation constantes.
public function setSubrogationConstantes($subrogationConstantes) { $this->subrogationConstantes = $subrogationConstantes; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSubrogationConstantes() {\n return $this->subrogationConstantes;\n }", "protected function _initSetConstants() {\n // Them file cau hinh cac hang so su dung trong project\n $config = parse_ini_file(APPLICATION_PATH . '/configs/constant.ini');\n foreach($config as $key=>$value){\n // neu chua dinh nghia thi moi dinh nghia lai\n if(!defined($key)){\n define($key, $value);\n }\n }\n }", "protected static function defineBaseConstants() {}", "public function setConstants($constants)\n {\n $this->constants = $constants;\n }", "private function setConstants()\n {\n $this->FIELDTAG = '(?<tag>(?:[a-z0-9\\.]{3,3}|[A-Z0-9\\.]{3,3}|[0-9\\.]{3,3}))';\n $this->POSITIONORRANGE = '(?:(?:(?:[0-9]+|#)\\-(?:[0-9]+|#))|(?:[0-9]+|#))';\n $this->INDEX = '(?:\\[(?<index>'.$this->POSITIONORRANGE.')\\])?';\n $this->CHARPOS = '(?:\\/(?<charpos>'.$this->POSITIONORRANGE.'))?';\n $this->INDICATORPOS = '(?:\\^(?<indicatorpos>[12]))';\n $this->SUBSPECS = '(?<subspecs>(?:\\{.+?(?<!(?<!(\\$|\\\\\\))(\\$|\\\\\\))\\})+)?';\n $this->SUBFIELDS = '(?<subfields>\\$.+)';\n $this->FIELD = '(?<field>'.$this->FIELDTAG.$this->INDEX.')';\n $this->MARCSPEC = '^'.$this->FIELD.'(?:'.$this->SUBFIELDS.'|(?:'.$this->INDICATORPOS.'|'.$this->CHARPOS.')'.$this->SUBSPECS.')$';\n $this->SUBFIELDTAGRANGE = '(?<subfieldtagrange>(?:[0-9a-z]\\-[0-9a-z]))';\n $this->SUBFIELDTAG = '(?<subfieldtag>[\\!-\\?\\[-\\{\\}-~])';\n $this->SUBFIELD = '(?<subfield>\\$(?:'.$this->SUBFIELDTAGRANGE.'|'.$this->SUBFIELDTAG.')'.$this->INDEX.$this->CHARPOS.$this->SUBSPECS.')';\n $this->LEFTSUBTERM = '^(?<leftsubterm>(?:\\\\\\(?:(?<=\\\\\\)[\\!\\=\\~\\?]|[^\\!\\=\\~\\?])+)|(?:(?<=\\$)[\\!\\=\\~\\?]|[^\\!\\=\\~\\?])+)?';\n $this->OPERATOR = '(?<operator>\\!\\=|\\!\\~|\\=|\\~|\\!|\\?)';\n $this->SUBTERMS = '(?:'.$this->LEFTSUBTERM.$this->OPERATOR.')?(?<rightsubterm>.+)$';\n $this->SUBSPEC = '(?:\\{(.+)\\})';\n }", "function set_const($const)\r\n\t{\r\n\t\tif (defined($const)) \r\n\t\t{\r\n\t\t\t$this->set_var($const, constant($const));\r\n\t\t}\r\n\t}", "public function setConstants(Collection $constants): void\n {\n $this->constants = $constants;\n }", "public function defineConstants ()\n {\n foreach ($this->data as $key => $value) {\n define(strtoupper($key), $value);\n }\n }", "public function setConstants($constants)\n\t{\n\t\t$this->constants = $constants;\n\t\treturn $this;\n\t}", "function runkit_constant_redefine($constname, $newvalue)\n{\n}", "public function setConstants($paths)\n {\n define ('HOME', $paths['home']);\n define ('PROJ_PATH',$paths['proj']);\n\n define ('REPO_PATH',$paths['repo']);\n define ('REPO', $this->repo);\n\n define ('SITE_PATH', REPO_PATH . \"/public\");\n\n define ('SITE', $this->site);\n define ('SITE_URL', 'http://' . $this->site);\n define ('PLATFORM',$this->platform);\n define ('DB_INI',$paths['db_ini']);\n\n }", "public function __construct($constants)\n\t{\n\t\t$this->_constants = $constants;\n\t}", "function defineConstants() {\n define('Terminus', true);\n $default_constants = Yaml::parse(\n file_get_contents(TERMINUS_ROOT . '/config/constants.yml')\n );\n foreach ($default_constants as $var_name => $default) {\n if (isset($_SERVER[$var_name]) && ($_SERVER[$var_name] != '')) {\n define($var_name, $_SERVER[$var_name]);\n } else if (!defined($var_name)) {\n define($var_name, $default);\n }\n }\n date_default_timezone_set(TERMINUS_TIME_ZONE);\n\n if (!defined('TERMINUS_SCRIPT')) {\n define('TERMINUS_SCRIPT', 'php/Terminus.php');\n }\n}", "protected function setCurlConstants(): void\n {\n $constants = [\n 'CURLOPT_SSLVERSION' => 32,\n 'CURL_SSLVERSION_TLSv1_2' => 6,\n 'CURLOPT_SSL_VERIFYPEER' => 64,\n 'CURLOPT_SSLCERT' => 10025,\n ];\n\n foreach ($constants as $key => $value) {\n if (!defined($key)) {\n define($key, $constants[$key]);\n }\n }\n }", "public static function loadConstants(): void\n {\n AppConstant::defineConstant('USER_UNIQUE_ENTITY_ERROR', self::UNIQUE_ENTITY_ERROR);\n AppConstant::defineConstant('USER_USERNAME_EMPTY_ERROR', self::USERNAME_EMPTY_ERROR);\n AppConstant::defineConstant('USER_USERNAME_MIN_LENGTH_ERROR', self::USERNAME_MIN_LENGTH_ERROR);\n AppConstant::defineConstant('USER_USERNAME_MAX_LENGTH_ERROR', self::USERNAME_MAX_LENGTH_ERROR);\n AppConstant::defineConstant('USER_PASSWORD_EMPTY_ERROR', self::PASSWORD_EMPTY_ERROR);\n AppConstant::defineConstant('USER_PASSWORD_MIN_LENGTH_ERROR', self::PASSWORD_MIN_LENGTH_ERROR);\n AppConstant::defineConstant('USER_PASSWORD_MAX_LENGTH_ERROR', self::PASSWORD_MAX_LENGTH_ERROR);\n AppConstant::defineConstant('USER_CREATED_BY_EMPTY_ERROR', self::CREATED_BY_EMPTY_ERROR);\n\n //Constants for Annotations in App\\Controller\\Api\\Admin\\RoleController\n AppConstant::defineConstant('USER_GET_USERS_SECURITY_ERROR', self::GET_USERS_SECURITY_ERROR);\n AppConstant::defineConstant('USER_GET_USER_SECURITY_ERROR', self::GET_USER_SECURITY_ERROR);\n AppConstant::defineConstant('USER_CREATE_USER_SECURITY_ERROR', self::CREATE_USER_SECURITY_ERROR);\n AppConstant::defineConstant('USER_UPDATE_USER_SECURITY_ERROR', self::UPDATE_USER_SECURITY_ERROR);\n AppConstant::defineConstant('USER_DELETE_USER_SECURITY_ERROR', self::DELETE_USER_SECURITY_ERROR);\n }", "protected function defineConstants()\n {\n define('PATH_ROOT', dirname(__DIR__));\n }", "private function parseConstants(): void\n {\n $constants = $this->extractConstants();\n foreach ($constants as $constant)\n {\n if ($constant['docblock']===null)\n {\n $docId = null;\n }\n else\n {\n $docId = PhpAutoDoc::$dl->padDocblockInsertDocblock($constant['docblock']['doc_line_start'],\n $constant['docblock']['doc_line_end'],\n $constant['docblock']['doc_docblock']);\n }\n\n PhpAutoDoc::$dl->padClassInsertConstant($this->clsId,\n $docId,\n $constant['name'],\n $constant['visibility'],\n $constant['value'],\n $constant['start'],\n $constant['end']);\n }\n }", "function set_base($val) {\n\t\t$this->base = $val;\n\t}", "private function define_constants()\n {\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_NEW', 1000);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_PENDING', 1100);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_ACKNOWLEDGED', 1200);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_RESOLVED', 1400);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_CLOSED', 2000);\n\n define('FI_KILONKIPINAT_TODOS_TODOITEM_RELATED_LINKTYPE_PENDING', 1000);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_RELATED_LINKTYPE_DUPLICATE', 1100);\n \n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_ULTRALIGHT', 1000);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_LIGHT', 1100);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_MEDIUM', 1200);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_HEAVY', 1300);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_SUPERHEAVY', 1400);\n \n define('FI_KILONKIPINAT_TODOS_TODOITEM_VISIBILITY_PUBLIC', 1000);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_VISIBILITY_SECURE', 1100);\n }", "public function replaceConstants() : self\n {\n $padding = 4;\n\n $constants = array_map(function (EnumDefinition $enum) use ($padding) {\n $key = $this->export($enum->key, $padding);\n return str_repeat(' ', $padding) . \"const {$enum->name} = {$key};\";\n }, $this->enums);\n\n $this->stub = str_replace('DummyConstants', implode(PHP_EOL, $constants), $this->stub);\n\n return $this;\n }", "static function unittest_redefiningClassConstants () {\n PhlintTest::assertIssues('\n\n class A {\n const C1 = 1;\n const C2 = 2;\n }\n\n class B {\n const C2 = 3;\n const C2 = 4;\n }\n\n ', [\n 'Having multiple definitions for *C2* is prohibited on line 8.',\n 'Having multiple definitions for *C2* is prohibited on line 9.',\n ]);\n }", "protected function defineLegacyConstants() {}", "protected function defineLegacyConstants() {}", "protected function defineLegacyConstants() {}", "public function setRealations(){\n\n }", "function ms_subdomain_constants()\n {\n }", "function renderConstants() {\n\n $this->constants[\"public\"] = $this->accessor->getConstantsByAccess(\"public\");\n $this->constants[\"private\"] = $this->accessor->getConstantsByAccess(\"private\");\n\n if (0 == count($this->constants[\"public\"]) && 0 == count($this->constants[\"private\"]))\n return;\n\n $this->renderConstantSummary();\n $this->renderConstantDetail();\n $this->constants = array();\n\n }", "function constants() {\r\n\r\n\t\t\t/**\r\n\t\t\t * Set constant name for the post type name.\r\n\t\t\t *\r\n\t\t\t * @since 1.0.0\r\n\t\t\t */\r\n\t\t\tdefine( 'RV_PORTFOLIO_NAME', 'rv-portfolio' );\r\n\r\n\t\t\t/**\r\n\t\t\t * Set the slug of the plugin.\r\n\t\t\t *\r\n\t\t\t * @since 1.0.0\r\n\t\t\t */\r\n\t\t\tdefine( 'RV_PORTFOLIO_SLUG', basename( dirname( __FILE__ ) ) );\r\n\r\n\t\t\t/**\r\n\t\t\t * Set the name for the 'meta_key' value in the 'wp_postmeta' table.\r\n\t\t\t *\r\n\t\t\t * @since 1.0.0\r\n\t\t\t */\r\n\t\t\tdefine( 'RV_PORTFOLIO_POSTMETA', 'rv_portfolio' );\r\n\r\n\t\t\t/**\r\n\t\t\t * Set constant path to the plugin directory.\r\n\t\t\t *\r\n\t\t\t * @since 1.0.0\r\n\t\t\t */\r\n\t\t\tdefine( 'RV_PORTFOLIO_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );\r\n\r\n\t\t\t/**\r\n\t\t\t * Set constant path to the plugin URI.\r\n\t\t\t *\r\n\t\t\t * @since 1.0.0\r\n\t\t\t */\r\n\t\t\tdefine( 'RV_PORTFOLIO_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );\r\n\r\n\t\t\t/**\r\n\t\t\t * Set constant DB option field.\r\n\t\t\t *\r\n\t\t\t * @since 1.0.0\r\n\t\t\t */\r\n\t\t\tdefine( 'RV_PORTFOLIO_OPTIONS_NAME', 'rv_portfolio_options' );\r\n\r\n\t\t}", "protected function _define_constants() {\n\t\t\tdefine( 'LP_ADDON_STRIPE_ADVANCED_PAYMENT_PATH', dirname( LP_ADDON_STRIPE_ADVANCED_PAYMENT_FILE ) );\n\t\t\tdefine( 'LP_ADDON_STRIPE_ADVANCED_PAYMENT_INC', LP_ADDON_STRIPE_ADVANCED_PAYMENT_PATH . '/inc/' );\n\t\t\tdefine( 'LP_ADDON_STRIPE_ADVANCED_PAYMENT_URL', plugin_dir_url( LP_ADDON_STRIPE_ADVANCED_PAYMENT_FILE ) );\n\t\t\tdefine( 'LP_ADDON_STRIPE_ADVANCED_PAYMENT_TEMPLATE', LP_ADDON_STRIPE_ADVANCED_PAYMENT_PATH . '/templates/' );\n\t\t}", "protected function __construct()\n {\n // Define the constants\n define('VALIB_CONFIG', $this->loadConfig());\n }" ]
[ "0.6075742", "0.6019924", "0.5948071", "0.5896313", "0.57862264", "0.57647413", "0.5660662", "0.56162435", "0.54969156", "0.5464344", "0.54320496", "0.5307176", "0.5259188", "0.52374816", "0.51791286", "0.51719314", "0.5167643", "0.5162132", "0.5160093", "0.5110295", "0.5081504", "0.50661844", "0.50655794", "0.5064789", "0.50119317", "0.5000941", "0.49604657", "0.49487716", "0.49134442", "0.48852944" ]
0.69706935
0
Set the subrogation montant.
public function setSubrogationMontant($subrogationMontant) { $this->subrogationMontant = $subrogationMontant; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSubrogationMontant() {\n return $this->subrogationMontant;\n }", "public function testSetMontant() {\n\n $obj = new PointBonTrav();\n\n $obj->setMontant(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant());\n }", "function setSuperada($bsuperada = 'f')\n {\n $this->bsuperada = $bsuperada;\n }", "public function testSetSuperviseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSuperviseur(true);\n $this->assertEquals(true, $obj->getSuperviseur());\n }", "public function setMontant($montant)\n {\n $this->montant = $montant;\n\n return $this;\n }", "public function setMontant($montant)\n {\n $this->montant = $montant;\n\n return $this;\n }", "public function set_superficie(int $_superficie){\n $this->_superficie = $_superficie;\n\n return $this;\n }", "public function setSub($sub)\n {\n ValidationUtility::ensureNullOrString('$sub', $sub);\n\n $this->sub = $sub;\n\n return $this;\n }", "public function testSetMtSalaireBrut() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtSalaireBrut(10.092018);\n $this->assertEquals(10.092018, $obj->getMtSalaireBrut());\n }", "public function setSubserial($v)\n\t{\n\n\t\tif ($this->subserial !== $v || $v === false) {\n\t\t\t$this->subserial = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::SUBSERIAL;\n\t\t}\n\n\t}", "public function testSetMontant2() {\n\n $obj = new Employes();\n\n $obj->setMontant2(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant2());\n }", "public function set($child) {\n\t\t$this->childs = array($child);\n\t}", "protected function setSubstep($new_substep)\n\t{\n\t\t$this->activeSubstep = $new_substep;\n\t}", "public function testSetMontant1() {\n\n $obj = new Employes();\n\n $obj->setMontant1(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant1());\n }", "public function setMontantTva($montantTva) {\n $this->montantTva = $montantTva;\n return $this;\n }", "function setSubtotal($subtotal)\n {\n $this->subtotal = $subtotal;\n }", "public function setSubProperty($path,$value)\n\t{\n\t\t$object=$this;\n\t\tif(($pos=strrpos($path,'.'))===false)\n\t\t\t$property=$path;\n\t\telse\n\t\t{\n\t\t\t$object=$this->getSubProperty(substr($path,0,$pos));\n\t\t\t$property=substr($path,$pos+1);\n\t\t}\n\t\t$object->$property=$value;\n\t}", "public function testSetIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLegale(true);\n $this->assertEquals(true, $obj->getIndemnLegale());\n }", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "public function testSetMontant5() {\n\n $obj = new Employes();\n\n $obj->setMontant5(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant5());\n }", "protected function setVida() {\n $this->vida = 200;\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 setSubrogationPartielle($subrogationPartielle) {\n $this->subrogationPartielle = $subrogationPartielle;\n return $this;\n }", "public function setMontacargasCiclosmant($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->montacargas_ciclosmant !== $v) {\n $this->montacargas_ciclosmant = $v;\n $this->modifiedColumns[] = MontacargasPeer::MONTACARGAS_CICLOSMANT;\n }\n\n\n return $this;\n }", "public function setRealations(){\n\n }", "abstract public function set();", "abstract public function setMetas();", "public function testSetMontant4() {\n\n $obj = new Employes();\n\n $obj->setMontant4(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant4());\n }", "public function setGeneral() // Attribuer une valeur générale à un attaquant\n {\n $this->_general = round($this->attaqueCalcul());\n }", "public function setMontantGeneral($montantGeneral) {\n $this->montantGeneral = $montantGeneral;\n return $this;\n }" ]
[ "0.5878443", "0.5383034", "0.53604084", "0.53046715", "0.5291558", "0.5291558", "0.5260345", "0.5209268", "0.52006876", "0.5165598", "0.5149714", "0.51269794", "0.5103591", "0.50887614", "0.5007486", "0.49790245", "0.4976187", "0.4975825", "0.49103114", "0.4910307", "0.4909132", "0.49054137", "0.48776233", "0.48715338", "0.48612627", "0.4851374", "0.4848259", "0.48319352", "0.48238987", "0.4818145" ]
0.6784718
0
Set the subrogation partielle.
public function setSubrogationPartielle($subrogationPartielle) { $this->subrogationPartielle = $subrogationPartielle; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setSubstep($new_substep)\n\t{\n\t\t$this->activeSubstep = $new_substep;\n\t}", "public function setSubserial($v)\n\t{\n\n\t\tif ($this->subserial !== $v || $v === false) {\n\t\t\t$this->subserial = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::SUBSERIAL;\n\t\t}\n\n\t}", "public function setSubPrzesylka(array $subPrzesylka = [])\n {\n // validation for constraint: array\n if ('' !== ($subPrzesylkaArrayErrorMessage = self::validateSubPrzesylkaForArrayConstraintsFromSetSubPrzesylka($subPrzesylka))) {\n throw new \\InvalidArgumentException($subPrzesylkaArrayErrorMessage, __LINE__);\n }\n // validation for constraint: choice(urzadWydaniaEPrzesylki, subPrzesylka)\n if ('' !== ($subPrzesylkaChoiceErrorMessage = self::validateSubPrzesylkaForChoiceConstraintsFromSetSubPrzesylka($subPrzesylka))) {\n throw new \\InvalidArgumentException($subPrzesylkaChoiceErrorMessage, __LINE__);\n }\n if (is_null($subPrzesylka) || (is_array($subPrzesylka) && empty($subPrzesylka))) {\n unset($this->subPrzesylka);\n } else {\n $this->subPrzesylka = $subPrzesylka;\n }\n\n return $this;\n }", "public function setSubProperty($path,$value)\n\t{\n\t\t$object=$this;\n\t\tif(($pos=strrpos($path,'.'))===false)\n\t\t\t$property=$path;\n\t\telse\n\t\t{\n\t\t\t$object=$this->getSubProperty(substr($path,0,$pos));\n\t\t\t$property=substr($path,$pos+1);\n\t\t}\n\t\t$object->$property=$value;\n\t}", "public function setSub($sub)\n {\n ValidationUtility::ensureNullOrString('$sub', $sub);\n\n $this->sub = $sub;\n\n return $this;\n }", "public function subirVolumen( ) {\n $vol = $this->getVolumen();\n if ($vol < 100) {\n $vol = $vol + 8;\n }\n else {\n $vol = 8;\n }\n $this->setVolumen($vol);\n }", "function setSubtotal($subtotal)\n {\n $this->subtotal = $subtotal;\n }", "public function getSubrogationPartielle() {\n return $this->subrogationPartielle;\n }", "function setSuperada($bsuperada = 'f')\n {\n $this->bsuperada = $bsuperada;\n }", "public function testSetSuperviseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSuperviseur(true);\n $this->assertEquals(true, $obj->getSuperviseur());\n }", "public function setSubfolders($param) {\n\t\t$this->subfolders = $param;\n\t}", "public function videoconferenciaSubirVolumen( ) {\n $this->subirVolumen();\n //$this->setComando(\"SUBIR_VOLUMEN\");\n }", "public function substituteSubpartDataProvider() {}", "public function setSubEvent($value)\n {\n $this->subEvent = $value;\n }", "public function subdivision()\n {\n $city = $this->city;\n\n $this->subdivision = $city ? $city->subdivision : null;\n }", "abstract public function set();", "public function set($child) {\n\t\t$this->childs = array($child);\n\t}", "public function set_superficie(int $_superficie){\n $this->_superficie = $_superficie;\n\n return $this;\n }", "public static function setSessionSubformField(string $subfromKey, string $field, $value)\n {\n self::$libraryData['subform'][$subfromKey][$field] = $value;\n }", "public function setSubpasta($subpasta)\r\n\t{\r\n\t\t$this->subpasta=$subpasta;\r\n\t}", "public function setSubdomain($subdomain)\n {\n $this->subdomain = $subdomain;\n }", "public function edit(Sublivres $sublivres)\n {\n //\n }", "function setSubscrito($lSubscrito = true) {\n\n if ($lSubscrito) {\n $sComando = chr(27) . chr(83) . \"1\";\n } else {\n $sComando = chr(27) . chr(84);\n }\n return $sComando;\n }", "public function setSubReportSize($size)\n {\n $this->_subReportSize = $size;\n }", "public function setSubrogationMontant($subrogationMontant) {\n $this->subrogationMontant = $subrogationMontant;\n return $this;\n }", "protected function onParentSet() : void\n {\n $value = $this->oFG->getData()->getValue($this->strName);\n $this->iValue = $value ? intval($value) : $this->iMin;\n }", "function editar_sublink(){\t\t\n\t\t$this->accion=\"Editando Datos del Subenlace\";\n\t\tif (isset($_POST['envio']) && $_POST['envio']==\"Guardar\" && isset($_GET['id']) && $_GET['id']!=\"\"){\n\t\t\t$id=$_GET['id'];\n\t\t\t$this->asignar_valores();\n\t\t\t$sql=\"SELECT * FROM sublink WHERE nombre_sub='$this->nombre' AND id_sub!='$id'\";\n\t\t\t$sql=\"UPDATE sublink SET nombre_sub='$this->nombre', prioridad_sub='$this->prioridad' WHERE id_sub='$id'\";\n\t\t\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\t\theader(\"location:/admin/link/sublink_lista.php\");\n\t\t\t\n\t\t}else{\n\t\t $this->mostrar_sublink();\n\t\t}\n\t}", "public function setChild($child)\n {\n $this->child = $child;\n }", "public function setQuestionSubtext($questionSubtext)\n {\n $this->questionSubtext = (string)$questionSubtext;\n }", "function evt__form_sub__modificacion($datos)\r\n\t{\r\n if($this->dep('datos')->tabla('subroga')->esta_cargada()){//es modificacion\r\n $sub=$this->dep('datos')->tabla('subroga')->get();\r\n if($datos['desde']!=$sub['desde']){\r\n $this->dep('datos')->tabla('subroga')->modif_desde($datos['desde'],$sub['id_cargo'],$sub['desde']);\r\n }\r\n } \r\n $car=$this->controlador()->dep('datos')->tabla('cargo')->get();\r\n $datos['id_cargo']=$car['id_cargo'];\r\n $this->dep('datos')->tabla('subroga')->set($datos);\r\n $this->dep('datos')->tabla('subroga')->sincronizar();\r\n \r\n toba::notificacion()->agregar('Se ha guardado correctamente', 'info');\r\n $this->s__mostrar_s=0;\r\n\t}" ]
[ "0.62581486", "0.60434854", "0.59658307", "0.5916466", "0.57746464", "0.57263976", "0.567553", "0.5668145", "0.56507933", "0.5633211", "0.55247366", "0.552281", "0.5512364", "0.5463369", "0.53553295", "0.53441674", "0.53051686", "0.52969015", "0.52481943", "0.5228681", "0.52264136", "0.5216492", "0.52155393", "0.5147022", "0.51240367", "0.5117361", "0.5073158", "0.50331455", "0.5032116", "0.5031003" ]
0.643087
0
Set the suspension date.
public function setSuspensionDate(DateTime $suspensionDate = null) { $this->suspensionDate = $suspensionDate; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSuspendDate($v)\n {\n $dt = PropelDateTime::newInstance($v, null, 'DateTime');\n if ($this->suspend_date !== null || $dt !== null) {\n if ($this->suspend_date === null || $dt === null || $dt->format(\"Y-m-d H:i:s.u\") !== $this->suspend_date->format(\"Y-m-d H:i:s.u\")) {\n $this->suspend_date = $dt === null ? null : clone $dt;\n $this->modifiedColumns[AliMemberTableMap::COL_SUSPEND_DATE] = true;\n }\n } // if either are not null\n\n return $this;\n }", "public function getSuspensionDate() {\n return $this->suspensionDate;\n }", "public function setDate($date){\r\n\t\t$this->wishDate = $date;\r\n\t}", "public function setDate($date);", "public function setDate($date) {\n $this->date = $date;\n }", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date)\n\t{\n\t\t$this->date = $date;\n\t}", "public function setDate($date){\n\t\t$this->date = $date;\n\t}", "public function setDate($value) {\n\t\t$this->_date = $value;\n\t}", "public function setExpirationDate(?Date $value): void {\n $this->getBackingStore()->set('expirationDate', $value);\n }", "public function setDate()\n\t{\n\t\tif ($this->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "public function setDate( $date ) {\n\t\tif ( !preg_match( self::DATERE, $date ) ) {\n\t\t\tthrow new InvalidArgumentException( \"Not a valid date: \".$date );\n\t\t}\n\t\t$this->setParameter( \"dtreviewed\", $date );\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setModDate($date) {}", "public function setStartDate(?Date $value): void {\n $this->getBackingStore()->set('startDate', $value);\n }", "private function updatePublishOnDate()\n {\n $this->owner->PublishOnDate = $this->owner->DesiredPublishDate;\n // Remove the DesiredPublishDate.\n $this->owner->DesiredPublishDate = null;\n }", "protected function setNextRun(\\DateTime $date) {\n $this->next_run = $date;\n }", "public function setStartDate(string $date);", "function setDateConfirmed($dateConfirmed) {\n\t\t$this->setData('dateConfirmed', $dateConfirmed);\n\t}", "public function setTransactionDate($value) {\n\t\tself::$_transactionDate = $value;\n\t}", "public function set_approved_date( $date ) {\n\t\t$this->set_prop( 'approved_date', $date ) ;\n\t}", "public function setLastActivityDate(\\DateTime $date): void\n {\n $this->lastActivityDate = $date;\n }", "protected function setstartdate(string $startdate)\r\n\t{\r\n\t\t$this->startdate = $startdate;\r\n\t}", "public function setUseDate($use_date) \n \t{\n \t\t$this->use_date = $use_date;\n \t}", "private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t\t}\r\n\r\n\t\tif ($this->year > 2037) $this->year = 2037;\r\n\t\tif ($this->year < 1971) $this->year = 1971;\r\n\t}", "public function setStartDate($value)\n {\n $this->startDate = $value;\n }", "public function setStartDate($date)\n\t\t{\n\t\t\t$this->start_date = $date;\n\t\t}", "public function setExpirationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('expirationDateTime', $value);\n }" ]
[ "0.69102025", "0.6624781", "0.64760685", "0.6456377", "0.6308923", "0.63024324", "0.63024324", "0.62916654", "0.62397474", "0.62283295", "0.6111231", "0.5951811", "0.595108", "0.5932211", "0.5932211", "0.5930407", "0.5918174", "0.5811013", "0.5776216", "0.57286584", "0.571954", "0.5701417", "0.5692412", "0.5676711", "0.56709284", "0.566898", "0.5661062", "0.5660824", "0.56275684", "0.5624129" ]
0.71887213
0
Set the suspension motif.
public function setSuspensionMotif($suspensionMotif) { $this->suspensionMotif = $suspensionMotif; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSuspensionMotif() {\n return $this->suspensionMotif;\n }", "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 mute($mute) {\n $this->mute = $mute;\n }", "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 }", "public function videoconferenciaNoInterrumpir( ) {\n $this->setNoInterrumpir(\"OFF\");\n //$this->setNoInterrumpir(\"ALLOCATED\");\n }", "public function videoconferenciaNoInterrumpirOFF( ) {\n $this->setNoInterrumpir(\"ON\");\n// $this->setNoInterrumpir(\"AUTOANSWER\");\n }", "function suspend(): void\n {\n signal(fn (Closure $resume): mixed => $resume());\n }", "public function suspend(): void\n {\n $this->tonClient->request(\n 'net.suspend'\n )->wait();\n }", "public function setFlag(): void\n {\n $this->session->setData(ConfigProvider::SESSION_FLAG, true);\n }", "public function setSuspended($var)\n {\n GPBUtil::checkBool($var);\n $this->suspended = $var;\n }", "public function setIdpension($idpension){\n $this->idpension = $idpension;\n }", "public function setSleep($sleep)\n {\n $this->sleep = $sleep;\n }", "function wp_heartbeat_set_suspension($settings)\n {\n }", "public function setStatusSuspend($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->status_suspend !== $v) {\n $this->status_suspend = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_STATUS_SUSPEND] = true;\n }\n\n return $this;\n }", "abstract protected function doSuspend();", "public function pause()\n\t{\n\t\t$this->data->directSet(\"state\", self::STATE_PAUSED);\n\t}", "public function setPower()\n {\n $this->_role->power = 200;\n }", "public function suspend()\n {\n if ($this->getState()->getMode() == View\\StateInterface::MODE_ENABLED) {\n $state = $this->getState();\n $state->setVersionId($this->getChangelog()->getVersion());\n $state->setStatus(View\\StateInterface::STATUS_SUSPENDED);\n $state->save();\n }\n }", "public function setSettingsBlockSessionResume(?bool $value): void {\n $this->getBackingStore()->set('settingsBlockSessionResume', $value);\n }", "public function pause() {\n $this->setRunningPaused( false, true );\n $this->pauseTime = $this->getCurrentTime();\n }", "public function pause() {\n if ($this->getLigado() && $this->getTocando()) {\n $this->setTocando(false);\n }\n }", "public function enviarNoInterrumpir( ) {\n $cmd = new ComandoFlash(\"VIDEOCONFERENCIA\", \"NO_INTERRUMPIR\",\n $this->getNoInterrumpir());\n usleep(1000000);\n $this->enviarPeticion($cmd->getComando());\n\n }", "public function setIntent($intent) {}", "public function setIntent($intent) {}", "public function setActif(int $actif)\n {\n $actif= (int)$actif;\n //checking is empty\n if(empty($actif)){\n trigger_error('The actif session cannot empty!!!',E_USER_NOTICE);\n }else{\n $this->actif = $actif;\n }\n\n }", "public function setPower()\n {\n $this->_role->power = 100;\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}", "protected function setVida() {\n $this->vida = 200;\n }", "public function setResumeToken(Token $token)\n {\n \t$this->update(['resume_token' => $token->id]);\n }", "public function setMedia()\n {\n }" ]
[ "0.5546344", "0.5532672", "0.52472496", "0.52098227", "0.51793486", "0.51688", "0.4989135", "0.4973923", "0.49666145", "0.49391243", "0.4938052", "0.49182537", "0.48981625", "0.48835284", "0.48410162", "0.48362947", "0.47903314", "0.47844258", "0.47786203", "0.47590762", "0.47508106", "0.47339368", "0.47303477", "0.47294345", "0.4694313", "0.46454263", "0.4626675", "0.46164685", "0.46090895", "0.46036467" ]
0.64169466
0
Set the travail temp.
public function setTravailTemp($travailTemp) { $this->travailTemp = $travailTemp; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTravailTemp() {\n return $this->travailTemp;\n }", "public function set_temp_dir() {\n\t\t$this->temp_dir = tempnam( $this->sys_temp_dir, \"RTV\" );\n\t\tunlink( $this->temp_dir );\n\t\tmkdir( $this->temp_dir );\n\t\techo \"Temporary dir: {$this->temp_dir}\" . PHP_EOL;\n\t}", "public static function setTempDir($tempDir) {}", "public function setTempCelsius() {\n\t\t$this->unit = 'celsius';\n\t}", "public function setTempUnit($tempUnit) {\n $this->cTempUnit = $tempUnit;\n $this->cLatestObservations.setOutputTempUnit($tempUnit);\n }", "private function setTempFile() {\n $this->filename = tempnam('/tmp/', 'siwiki_relplot_');\n $this->fileresource = fopen($this->filename, 'a+');\n }", "public function setTempDir(?string $path): void {\n\n\t\t$this->tempDir = $path !== null\n\t\t\t? Func::validate_dirs([$path])[0]\n\t\t\t: null;\n\n\t}", "public function setTemperature($value) {\n\t\t$this->_temperature = $value;\n\t}", "private function setTemperature($chosenCity) {\n $this->cityTemperature = $this->cities[$chosenCity]['Temp']; \n }", "public function testSetNumeroCarteTravail() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteTravail(\"numeroCarteTravail\");\n $this->assertEquals(\"numeroCarteTravail\", $obj->getNumeroCarteTravail());\n }", "public function testSetTempsPasse() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setTempsPasse(10.092018);\n $this->assertEquals(10.092018, $obj->getTempsPasse());\n }", "public function setTemps($post)\n {\n // var_dump($post[\"required_tempPokój_1\"]);\n foreach ($this->rooms as $key => $value) {\n // var_dump($post[\"required_temp\" . str_replace(' ', '_', $key)]);\n $this->rooms[$key][2] = abs($post['required_temp' . str_replace(' ', '_', $key)]);\n $this->rooms[$key][3] = abs($post['tolerance' . str_replace(' ', '_', $key)]);\n }\n $serialized = serialize($this->rooms);\n file_put_contents(\"rooms_temp\", $serialized);\n }", "public function setTmpName($tmpName)\n\t{\n\t\t$this->tmpName = $tmpName;\n\t}", "public function testSetTempsPasse() {\n\n $obj = new Employes();\n\n $obj->setTempsPasse(true);\n $this->assertEquals(true, $obj->getTempsPasse());\n }", "public static function setTempDir($tempDir)\n {\n self::$tempDir = $tempDir;\n }", "public function testSetCompteurTemps() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCompteurTemps(10);\n $this->assertEquals(10, $obj->getCompteurTemps());\n }", "public function testSetCarteTravailExpireLe() {\n\n // Set a Date/time mock.\n $carteTravailExpireLe = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setCarteTravailExpireLe($carteTravailExpireLe);\n $this->assertSame($carteTravailExpireLe, $obj->getCarteTravailExpireLe());\n }", "public function setCodeUniteTempsTravail($codeUniteTempsTravail) {\n $this->codeUniteTempsTravail = $codeUniteTempsTravail;\n return $this;\n }", "public function setTempSetting ($key, $value)\n {\n \t$this->settings[$key] = $value;\n\t}", "public function setTiers(array $tiers): void\n {\n $this->_tiers = $tiers;\n }", "public function testSetTravailleJf() {\n\n $obj = new Employes();\n\n $obj->setTravailleJf(true);\n $this->assertEquals(true, $obj->getTravailleJf());\n }", "public function testSetTpPasJournalTemps() {\n\n $obj = new Collaborateurs();\n\n $obj->setTpPasJournalTemps(true);\n $this->assertEquals(true, $obj->getTpPasJournalTemps());\n }", "public function testSetDernLieuTravail() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernLieuTravail(\"dernLieuTravail\");\n $this->assertEquals(\"dernLieuTravail\", $obj->getDernLieuTravail());\n }", "private function setTraffic() {\n $this->getTraffic();\n if (!$this->Traffic):\n $ArrSiteViews = ['siteviews_date' => $this->Date, 'siteviews_users' => 1, 'siteviews_views' => 1, 'siteviews_pages' => 1];\n $CreateSiteViews = new Create;\n $CreateSiteViews->ExeCreate('ws_siteviews', $ArrSiteViews);\n else:\n\n endif;\n }", "protected function initializeTemporaryDatabaseMount()\n {\n $backendUser = $this->getBackendUser();\n\n // Set/Cancel Temporary DB Mount:\n if (strlen($this->setTemporaryDatabaseMount)) {\n $set = max($this->setTemporaryDatabaseMount, 0);\n // Setting...:\n if ($set > 0 && $backendUser->isInWebMount($set)) {\n $this->settingTemporaryMountPoint($set);\n // Clear:\n } else {\n $this->settingTemporaryMountPoint(0);\n }\n }\n\n // Getting temporary mount point ID:\n $temporaryMountPoint = (int) $backendUser->getSessionData('pageTree_temporaryMountPoint_orders');\n\n // If mount point ID existed and is within users\n // real mount points, then set it temporarily:\n if ($temporaryMountPoint && $backendUser->isInWebMount($temporaryMountPoint)) {\n $this->pagetree->MOUNTS = array($temporaryMountPoint);\n $this->activeTemporaryMountPoint = BackendUtility::readPageAccess(\n $temporaryMountPoint,\n $backendUser->getPagePermsClause(1)\n );\n }\n }", "public function setTicket($ticket)\n {\n $this->ticket = $ticket;\n }", "public function setTaille($taille){\n $this->taille = $taille;\n }", "public function setTaille($taille){\n $this->taille = $taille;\n }", "public function __construct()\n {\n $this->tempDirectories = array(\n 'main' => PATH_site . 'typo3temp/razor/',\n 'cache' => PATH_site . 'typo3temp/razor/Temp/',\n );\n }", "public function testSetEtat() {\n\n $obj = new PointBonTrav();\n\n $obj->setEtat(\"etat\");\n $this->assertEquals(\"etat\", $obj->getEtat());\n }" ]
[ "0.60227126", "0.5648416", "0.5625851", "0.5614505", "0.5585015", "0.55531025", "0.54940844", "0.5488171", "0.54624474", "0.54314756", "0.53815866", "0.53402066", "0.5285139", "0.5276806", "0.52708614", "0.52237195", "0.52210206", "0.5156025", "0.5123591", "0.50986797", "0.5094242", "0.50440216", "0.50321406", "0.498346", "0.4972397", "0.49467158", "0.4936882", "0.4936882", "0.49241558", "0.4914491" ]
0.6356814
0
add or update the Device History
public function addOrUpdateDeviceHistoryByDeviceAndTime(DeviceHistory $deviceHistory) { $bean = R::findOne( self::$tbl, ' deviceId = :deviceId AND time = :time ', array(':deviceId'=>$deviceHistory->deviceId, ':time' => $deviceHistory->time) ); if (!$bean){ $bean = R::dispense(self::$tbl); } $bean = $this->toBean($deviceHistory, $bean); $bean->deviceId = $deviceHistory->deviceId; $bean->time = $deviceHistory->time; $bean->amount = $deviceHistory->amount; $bean->processed = $deviceHistory->processed; $deviceHistory->id = R::store($bean); return $deviceHistory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function updateHistory()\n {\n self::$history[] = time();\n if(30 === count(self::$history))\n {\n if(reset(self::$history) >= (time() - 30))\n {\n sleep(2);\n }\n array_shift(self::$history);\n }\n }", "protected function updateHistory() {\n self::$history[] = time();\n\n if ( 30 === count( self::$history ) ) {\n if ( reset( self::$history ) >= (time() - 30) ) {\n sleep( 2 );\n }\n\n array_shift( self::$history );\n }\n }", "protected function populateDatastreamHistory() {\n if ($this->datastreamHistory === NULL) {\n $this->datastreamHistory = $this->getDatastreamHistory();\n }\n }", "function addHistory($artifact, $history){\n\t\tforeach($history as $h){\n\t\t\t$time = strtotime($h['date']);\n\t\t\t$uid = user_get_object_by_name($h['by'])->getID();\n\t\t\t$importData = array('time' => $time, 'user' => $uid);\n\t//hack!!\n\t\t\t$old = $h['old'];\n\t//\t\tif($h['field']=='assigned_to'){\n\t//\t\t\tif($old!='none'){\n\t//\t\t\t\t$old = user_get_object_by_name($old)->getID();\n\t//\t\t\t} else {\n\t//\t\t\t\t$old = 100;\n\t//\t\t\t}\n\t//\t\t}\n\t//\t\tif($h['field']=='status_id'){\n\t//\t\t\t$status = array('Open' =>1, 'Closed' => 2, 'Deleted' => 3);\n\t//\t\t\t$old = $status[$old];\n\t//\t\t}\n\t//\t\tif($h['field']=='close_date'){\n\t//\t\t\t$old = strtotime($old);\n\t//\t\t}\n\t//end hack\n\t\t\t$artifact->addHistory($h['field'],$old, $importData);\n\t\t}\n\t}", "public function update(Request $request, UserDeviceHistory $history)\n {\n $request->validate([\n 'device_id' => 'required|exists:devices,id',\n 'user_id' => 'required|exists:users,id',\n 'created_at' => 'required|date',\n 'updated_at' => 'required|date',\n 'millage_old' => 'required|integer|gte:0',\n 'millage_new' => 'required|integer|gte:millage_old',\n 'note' => 'sometimes|string|max:255'\n ]);\n\n\n $history->update([\n 'device_id' => $request->device_id,\n 'user_id' => $request->user_id,\n 'created_at' => Carbon::parse($request->created_at),\n 'updated_at' => Carbon::parse($request->updated_at),\n 'millage_old' => $request->millage_old,\n 'millage_new' => $request->millage_new,\n ]);\n\n if($request->note)\n {\n $note = Note::firstOrNew(['history_id' => $history->id]);\n $note->text = $request->note;\n $note->save();\n }\n\n return redirect()->route('histories.index')\n ->with('success', 'history updated successfully');\n }", "function History($table, $key, $id)\n{\n global $mysqli, $userid;\n // Add Audit Record\n $hsql = \"Insert into \".$table.\"_history\n select 0,\".$table.\".*,'\".$userid.\"',null\n from \".$table.\" where \".$key.\" = \".$id.\";\";\n $result = $mysqli->query($hsql);\n return $hsql;\n}", "public function store(Request $request)\n {\n $request->validate([\n 'device_id' => 'required|exists:devices,id',\n 'user_id' => 'required|exists:users,id',\n 'created_at' => 'required|date',\n 'updated_at' => 'required|date',\n 'millage_old' => 'required|integer|gte:0',\n 'millage_new' => 'required|integer|gte:millage_old',\n 'note' => 'sometimes|string|max:255'\n ]);\n\n $history = UserDeviceHistory::create([\n 'device_id' => $request->device_id,\n 'user_id' => $request->user_id,\n 'created_at' => Carbon::parse($request->created_at),\n 'updated_at' => Carbon::parse($request->updated_at),\n 'millage_old' => $request->millage_old,\n 'millage_new' => $request->millage_new,\n ]);\n\n Note::create([\n 'text' => $request->note,\n 'history_id' => $history->id\n ]);\n\n return redirect()->route('histories.index')\n ->with('success', 'History created successfully.');\n }", "public function updated(History $history)\n {\n //\n }", "public function update_user_history() {\n\n\t\t// Grab user history from the current session\n\t\t$history = $this->get_user_history();\n\n\t\t// Add the current page to the user's history\n\t\t$protocol = ( isset( $_SERVER[\"HTTPS\"] ) && $_SERVER[\"HTTPS\"] == \"on\") ? \"https://\" : \"http://\";\n\t\t$page_url = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\t\t$history[] = array( 'url' => $page_url, 'time' => time() );\n\n\t\t// Push the updated history to the current session\n\t\tit_exchange_update_session_data( 'user_history', $history );\n\n\t}", "private function addDeviceToTracking()\n {\n // add device if not owned by you (owners will be able to track their devices by default)\n $owner = $this->getOwnerToken();\n if ($owner != null)\n if (strcmp($this->token, $owner) != 0) {\n $obj = $this->sql->query(\"select `device_count` from \" . tableName . \" where `uid` = '$this->token'\")->fetch_object();\n $x = $obj->device_count + 1;\n\n $str = \"update \" . tableName . \" set `device_count` = '$x' where `uid` = '$this->token';\";\n $str .= \"insert into \" . dataTableName . \" (`token`, `device_id`) VALUES ('$this->token', '$this->deviceID');\";\n\n if ($this->sql->multi_query($str))\n echo \"SUCCESS\";\n\n else die(\"FAILED\");\n } else\n die(\"Already added\");\n else\n die(\"No owners. Device may not have been registered.\");\n }", "function addToHistory() {\n if ($this->getRequestMethod() != \"POST\") {\n $this->response('', 406);\n }\n $data = json_decode(file_get_contents(\"php://input\"),true);\n $userId = $data[\"user_id\"];\n $videoId = $data[\"video_id\"];\n $auth = $this->getAuthorization();\n if (!$this->validateAuthorization($userId, $auth)) {\n $this->response('', 400);\n }\n \n $query = \"insert into history (user_id, video_id) values($userId, $videoId);\";\n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n $success = array('status' => \"Success\", \"msg\" => \"Added to History.\", \"data\" => $data);\n $this->response(json_encode($success),200);\n }", "public function save(DeviceHistory $object) {\n\t\t$bObject = ($object->id > 0) ? R::load(self::$tbl, $object->id) : R::dispense(self::$tbl);\n\t\t$bObject = $this->toBean($object, $bObject);\n\t\t$object->id = R::store($bObject);\n\t\treturn $object;\n\t}", "public function actionHistory()\n {\n /*$auditdata = AuditTrailSearch::find()\n ->select(['entry_id', 'model_id', 'user_id', 'created', 'old_value'])\n ->where([\n 'action' => 'DELETE',\n 'model' => 'backend\\models\\Event',\n ])\n ->andFilterWhere(['>', 'old_value', \"''\"])\n ->orderBy(['model_id' => SORT_DESC])\n ->all();*/\n// $historyData = \\yii\\helpers\\ArrayHelper::map($auditdata, 'model_id', 'old_value');\n// \\yii\\helpers\\VarDumper::dump($historyData);\n\n $searchModel = new AuditTrailSearch;\n $searchFilter = [\n 'AuditTrailSearch' => [\n 'action' => 'DELETE',\n 'model' => 'backend\\models\\Event'\n ]\n ];\n $dataProvider = $searchModel->search(\\yii\\helpers\\ArrayHelper::merge(Yii::$app->request->get(), $searchFilter));\n //var_dump(Yii::$app->request->get());\n //\\yii\\helpers\\VarDumper::dump($searchModel);\n $message = \"<ol>恢复操作指引<li><删除内容>中输入内容筛选</li><li>点击复选框选中需要恢复的记录</li><li>点击<恢复记录>按钮</li></ol>\";\n Yii::$app->session->setFlash('info', $message);\n return $this->render('history', [\n 'dataProvider' => $dataProvider,\n 'searchModel' => $searchModel,\n ]);\n }", "function addHistory($field_name,$old_value, $importData = array()) {\n\t\tif (array_key_exists('user', $importData)){\n\t\t\t$user = $importData['user'];\n\t\t} else {\n\t\t\tif (!session_loggedin()) {\n\t\t\t\t$user=100;\n\t\t\t} else {\n\t\t\t\t$user=user_getid();\n\t\t\t}\n\t\t}\n\t\tif (array_key_exists('time',$importData)){\n\t\t\t$time = $importData['time'];\n\t\t} else {\n\t\t\t$time = time();\n\t\t}\n\t\treturn db_query_params ('INSERT INTO artifact_history(artifact_id,field_name,old_value,mod_by,entrydate) VALUES ($1,$2,$3,$4,$5)',\n\t\t\t\t\tarray ($this->getID(),\n\t\t\t\t\t $field_name,\n\t\t\t\t\t $old_value,\n\t\t\t\t\t $user,\n\t\t\t\t\t $time)) ;\n\t}", "public function addHistory($date, $history_id) {\n if ( $_SESSION['addHistory'] = true ) {\n $file = fopen( \"loginHistory.txt\", \"a\");\n if($file) {\n $output = ++$history_id . \"~\" . $_POST['username'] . \"~\" . $date . \"\\n\";\n fwrite($file, $output);\n fclose($file); \n } else {\n echo \"Could not save history!\";\n } \n }\n }", "public function history()\n\t{\n $orders = $this->history->get_history();\n foreach($orders as $order)\n {\n if($order->added_by=='customer')\n {\n $agency_id = $this->Common->get_details('agency_orders',array('order_id'=>$order->order_id))->row()->agency_id;\n $agency_check = $this->Common->get_details('agencies',array('agency_id'=>$agency_id));\n if($agency_check->num_rows()>0)\n {\n $order->agency = $agency_check->row()->agency_name;\n }\n else\n {\n $order->agency = '';\n }\n }\n }\n $data['orders'] = $orders;\n\t\t$this->load->view('admin/bill/history',$data);\n\t}", "public function history()\n\t{\n\t\t$migration = new \\Hubzero\\Content\\Migration();\n\t\t$history = $migration->history();\n\t\t$items = [];\n\t\t$maxFile = 0;\n\t\t$maxUser = 0;\n\t\t$maxScope = 0;\n\n\n\t\tif ($history && count($history) > 0)\n\t\t{\n\t\t\t$items[] = [\n\t\t\t\t'File',\n\t\t\t\t'By',\n\t\t\t\t'Direction',\n\t\t\t\t'Date'\n\t\t\t];\n\n\t\t\tforeach ($history as $entry)\n\t\t\t{\n\t\t\t\t$items[] = [\n\t\t\t\t\t$entry->scope . DS . $entry->file,\n\t\t\t\t\t$entry->action_by,\n\t\t\t\t\t$entry->direction,\n\t\t\t\t\t$entry->date\n\t\t\t\t];\n\t\t\t}\n\n\t\t\t$this->output->addTable($items, true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->addLine('No history to display.');\n\t\t}\n\t}", "function history()\n {\n $data['tbl_history'] = $this->Tbl_history_model->get_tbl_history();\n \n if(isset($data['tbl_history']['id_history']))\n {\n if(isset($_POST) && count($_POST) > 0) \n { \n $params = array(\n 'history_desc_id' => $this->input->post('history_desc_id'),\n 'history_desc_en' => $this->input->post('history_desc_en'),\n );\n\n $this->Tbl_history_model->update_tbl_history($params); \n redirect('admin/history');\n }\n else\n {\n $data = array(\n \"site\" => $_SERVER['SERVER_NAME'],\n \"page\" => \"History\",\n \"tbl_history\" => $this->Tbl_history_model->get_tbl_history()\n );\n $this->load->view('layout/admin/header', $data);\n $this->load->view('edit_history',$data);\n $this->load->view('layout/admin/footer');\n }\n }\n else\n show_error('The tbl_home you are trying to edit does not exist.');\n }", "private function saveHistory()\n {\n ksort($this->migrations);\n foreach ($this->migrations as $k => $migration) {\n if ($migration['id'] === 0) {\n // new\n $prep = $this->db->prepare(\"INSERT INTO `{$this->table}` (`created_at`,`name`,`author`,`status`) \"\n . \"VALUES (:time, :name, :author, :status)\");\n $prep->execute([\n ':time' => $migration['time'],\n ':name' => $migration['name'],\n ':author' => $migration['author'],\n ':status' => $migration['status'],\n ]);\n // get inserted id\n $sth = $this->db->query('SELECT LAST_INSERT_ID()');\n $newId = $sth->fetchColumn();\n $this->migrations[$k]['id'] = $newId;\n } else if ($migration['id'] === -100) {\n // delete\n $prep = $this->db->prepare(\"DELETE FROM `{$this->table}` WHERE `id` = :id\");\n $prep->execute([':id' => $migration['id']]);\n } else {\n // update\n $prep = $this->db->prepare(\"UPDATE `{$this->table}` SET `status` = :status WHERE `id` = :id\");\n $prep->execute([':id' => $migration['id'], ':status' => $migration['status']]);\n }\n }\n }", "function WriteAuditTrailOnAdd(&$rs) {\n\t\tglobal $mst_vendor;\n\t\t$table = 'mst_vendor';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$key .= $rs['kode'];\n\n\t\t// Write Audit Trail\n\t\t$filePfx = \"log\";\n\t\t$curDate = date(\"Y/m/d\");\n\t\t$curTime = date(\"H:i:s\");\n\t\t$id = ew_ScriptName();\n\t $curUser = CurrentUserName();\n\t\t$action = \"A\";\n\t\t$oldvalue = \"\";\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif ($mst_vendor->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore Blob Field\n\t\t\t\t$newvalue = ($mst_vendor->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) ? \"<MEMO>\" : $rs[$fldname]; // Memo Field\n\t\t\t\tew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $curUser, $action, $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t}\n\t\t}\n\t}", "function post_addItem() {\n\n if ((isset($this->input['_no_history']) && $this->input['_no_history'])\n || (!static::$logs_for_item_1\n && !static::$logs_for_item_2)) {\n return;\n }\n\n $item1 = $this->getConnexityItem(static::$itemtype_1, static::$items_id_1);\n $item2 = $this->getConnexityItem(static::$itemtype_2, static::$items_id_2);\n\n if (($item1 !== false)\n && ($item2 !== false)) {\n\n if ($item1->dohistory\n && static::$logs_for_item_1) {\n $changes[0] = '0';\n $changes[1] = \"\";\n $changes[2] = addslashes($this->getHistoryNameForItem1($item2, 'add'));\n Log::history($item1->getID(), $item1->getType(), $changes, $item2->getType(),\n static::$log_history_1_add);\n }\n\n if ($item2->dohistory && static::$logs_for_item_2) {\n $changes[0] = '0';\n $changes[1] = \"\";\n $changes[2] = addslashes($this->getHistoryNameForItem2($item1, 'add'));\n Log::history($item2->getID(), $item2->getType(), $changes, $item1->getType(),\n static::$log_history_2_add);\n }\n }\n }", "function AddToHistory($arParams, $Provider, $Event) {\n\t\tif (ToLower($Provider)!='_log') {\n\t\t\t$arFields = array(\n\t\t\t\t'RECEIVER' => $arParams['TO'],\n\t\t\t\t'SENDER' => $arParams['SENDER'],\n\t\t\t\t'MESSAGE' => $arParams['MESSAGE'],\n\t\t\t\t'PROVIDER' => $Provider,\n\t\t\t\t'EVENT' => $Event,\n\t\t\t\t'DATETIME' => date('Y-m-d H:i:s'),\n\t\t\t);\n\t\t\tCWD_SMS_History::Add($arFields);\n\t\t}\n\t}", "function action_history()\n{\n\tglobal $pagestore, $page, $full, $HistMax;\n\n\t$history = $pagestore->history($page);\n\n\tgen_headers($history[0][0]);\n\n\n\t$text = '';\n\t$latest_auth = '';\n\t$previous_ver = 0;\n\t$is_latest = 1;\n\n\tfor($i = 0; $i < count($history); $i++)\n\t{\n\t\tif($latest_auth == '')\n\t\t{\n\t\t\t$latest_auth = ($history[$i][3] == '' ? $history[$i][1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: $history[$i][3]);\n\t\t\t$latest_ver = $history[$i][2];\n\t\t}\n\n\t\tif($previous_ver == 0\n\t\t\t && $latest_auth != ($history[$i][3] == '' ? $history[$i][1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t : $history[$i][3]))\n\t\t\t{ $previous_ver = $history[$i][2]; }\n\n\t\tif($i < $HistMax || $full)\n\t\t{\n\t\t\t$text = $text . html_history_entry($page, $history[$i][2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $history[$i][0], $history[$i][1],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $history[$i][3],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $previous_ver == $history[$i][2] || !$full && $i == count($history)-1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $is_latest, $history[$i][4]);\n\t\t}\n\n\t\t$is_latest = 0;\n\t}\n\n\tif($i >= $HistMax && !$full)\n\t\t{ $text = $text . html_fullhistory($page, count($history)); }\n\n\t$p1 = $pagestore->page($page);\n\t$p1->version = $previous_ver;\n\t$p2 = $pagestore->page($page);\n\t$p2->version = $latest_ver;\n\n\t$diff = diff_compute($p1->read(), $p2->read());\n\ttemplate_history(array('page' => $p2->as_array(),\n\t\t\t\t\t\t\t\t\t\t\t\t 'history' => $text,\n\t\t\t\t\t\t\t\t\t\t\t\t 'diff' => diff_parse($diff)));\n}", "public function addDeviceToActiveDevicesList($device)\n {\n $sql = \"INSERT INTO `active_devices` (`device_id`) VALUES ('$device')\n\t\tON DUPLICATE KEY UPDATE device_id = device_id ;\";\n mysqli_query($this->db_connection, $sql);\n }", "public function actionHistory()\n {\n $model= User::findOne(['id' => Yii::$app->user->identity->getId()]);\n $orders = Order::find()->where(['id_user' => $model->id])->with('orderProds')->orderBy('date DESC')->all();\n return $this->render('history', [\n 'model' => $model,\n 'orders' => $orders,\n 'page' => SmapPages::find()->where(['id_class'=>4,'alias' => 'history'])->one()\n ]);\n }", "public static function bootHistoryTrait() {\n// parent::boot();\n\n foreach (static::getRecordActivityEvents() as $eventName) {\n static::$eventName(function ($model) use ($eventName) {\n try {\n $modelRevisionObj = self::getRevisionObject($model);\n \n $diff = static::getDiff($model);\n\n if (!$diff['before'] && !$diff['after']) {\n return true;\n }\n\n $relations = $model->getRelations();\n \n foreach ($diff['before'] as $key => $value) {\n\n if (static::isRelated($key)) {\n $relatedModel = static::getRelatedModel($model, $key);\n \n //check related model need to be logged\n if(!$relatedModel)\n continue;\n \n //load related model and get old value\n $relatedModelObj = new $relatedModel;\n $relModel = $relatedModelObj::find($value);\n\n $relations = static::getRelatedModelRelations($model, $key);\n\n $modelBefore = $relModel->load($relations);\n\n //get new value\n $relModel = $relatedModelObj::find($diff['after'][$key]);\n $modelAfter = $relModel->load($relations);\n\n $accessColumnValue = static::getRelatedModelColumn($model, $key);\n\n $row['old_value'] = array_get($modelBefore->toArray(), $accessColumnValue);\n $row['new_value'] = array_get($modelAfter->toArray(), $accessColumnValue);\n } else {\n $row['old_value'] = $value;\n $row['new_value'] = $diff['after'][$key];\n }\n\n $mutator = 'get' . studly_case($key) . 'Attribute';\n \n if (method_exists($model, $mutator)) {\n $key = $model->$mutator($key);\n }\n \n $row['column'] = $key;\n\n $foreign_key = $model->foreign_key;\n// \n// //set history relation col to appropriate value\n $row['revisionable_id'] = $model->$foreign_key;\n $row['user_id'] = \\Auth::user()->id;\n\n $modelRevisionObj::create($row);\n }\n } catch (\\Exception $e) {\n return $e->getMessage();\n }\n });\n \n return true;\n }\n }", "private function addUrlToHistory(string $url): void\n {\n $this->session->pushItemToSessionItemArray(\"url-history\", $url, 5);\n }", "public function addRecipeToHistory($recipe)\n {\n $recipe_ids = $this->getAttribute('recipe_history', array());\n if (!in_array($recipe->getRecipeId(), $recipe_ids))\n {\n\t array_unshift($recipe_ids, $recipe->getRecipeId());\n\t $this->setAttribute('recipe_history', array_slice($recipe_ids, 0, 4));\n }\t\n }", "public function actionHistory()\n {\n $id = Yii::app()->request->getQuery('id');\n $model = Order::model()->findByPk($id);\n\n if (!$model)\n $this->error404(Yii::t('CartModule.admin', 'ORDER_NOT_FOUND'));\n if ($model->is_deleted)\n throw new CHttpException(404, Yii::t('CartModule.admin', 'ORDER_ISDELETED'));\n $this->render('_history', array(\n 'model' => $model\n ));\n }", "public function viewHistory() {\n $historyRows = $this->db->query(\"SELECT * FROM history\");\n if (!$historyRows) die(\"Fatal Error.\");\n\n // Looping through all rows in the histoy table.\n $history = [];\n foreach($historyRows as $historyRow) {\n $regNr = htmlspecialchars($historyRow[\"regNr\"]);\n $ssNr = htmlspecialchars($historyRow[\"ssNr\"]);\n $checkOut = htmlspecialchars($historyRow[\"checkOutTime\"]);\n $checkIn = htmlspecialchars($historyRow[\"checkInTime\"]);\n $days = htmlspecialchars($historyRow[\"days\"]);\n $cost = htmlspecialchars($historyRow[\"cost\"]);\n\n // Setting 0 as default value on days and cost if car not checked in yet.\n if (!$checkIn) {\n $checkIn = \"Checked Out\";\n $days = 0;\n $cost = 0;\n }\n \n $histor = [\"regNr\" => $regNr,\n \"ssNr\" => $ssNr, \n \"checkOut\" => $checkOut,\n \"checkIn\" => $checkIn, \n \"days\" => $days,\n \"cost\" => $cost,\n \"days\" => $days];\n \n $history[] = $histor;\n }\n return $history;\n }" ]
[ "0.6141389", "0.6108143", "0.5999649", "0.58444494", "0.5755704", "0.57429683", "0.5737426", "0.57036966", "0.5699356", "0.5697036", "0.5687135", "0.5656135", "0.5559893", "0.5518729", "0.5514207", "0.54897416", "0.54684585", "0.54410625", "0.5428704", "0.5405801", "0.53766286", "0.53432196", "0.5331888", "0.5315146", "0.5264879", "0.52491826", "0.52455527", "0.5238378", "0.52293414", "0.5227112" ]
0.6487874
0
Check is category created in DB or no.
public function isNewCategory(): bool { return !$this->category->exists; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasCategory(): bool;", "function categoryExists($cat) { // Return true if the given category exists\n\t$cat = dbEscape($cat);\n\treturn(dbResultExists(\"SELECT * FROM categories WHERE name='$cat'\"));\n}", "public function cate_exists() {\n\t\t$category_name = trim($this->input->post ( 'category_name' ));\n\n\n\t\t$edit_id = $this->input->post ( 'edit_id' );\n\t\t$where = array ( 'category_name' => trim ( $category_name ));\n\n\t\tif ($edit_id != \"\") {\n\t\t\t$where = array_merge ( $where, array ( \"category_id !=\" => $edit_id ) );\n\t\t} \n\n\t\t$result = $this->Mydb->get_record ( 'category_id', $this->table, $where );\n\t\tif (! empty ( $result )) {\n\t\t\t$this->form_validation->set_message ( 'cate_exists', get_label('cate_exists') );\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "public function category_exists() {\n\t\t$users_name = trim($this->input->post ( 'category_name' ));\n\n\t\t$where = array ('category_name' => trim ( $users_name ));\n\t\t\n\t\t$result = $this->Mydb->get_record ( 'category_id', $this->table, $where );\n\t\tif (! empty ( $result )) {\n\t\t\t$this->form_validation->set_message ( 'cate_exists', get_label('username_exists') );\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "public function checkdata_exist()\n\t{\n$categories=DB::select('select *from categories');\n\t\t$data_exist=DB::select('select *from categories where id=1');\n\t\tif(!$data_exist)\n\t\t{\n\t\t\t$this->autosavecategory();\n\t\t\treturn view('publish')->withCategories($categories);\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\treturn view('publish')->withCategories($categories);\n\t\t}\n\t\t\n\t\t\n\t}", "public function createCategory();", "public function hasCategory()\n {\n return $this->category !== null;\n }", "public function categoriesSetup()\n {\n \treturn (bool) $this->categoryDao->countAll();\n }", "function _validCategory($check)\n\t\t{\n\t\t\t// check legacy too in case we're adding a legacy workshop\n\t\t\t$this->Category->useLegacy(true);\n\t\t\t\n\t\t\t$result = $this->Category->find('count', \n\t\t\t\tarray('recursive' => -1, 'conditions' => array('Category.id' => $check['category_id'])));\n\t\t\t\n\t\t\tif ($result)\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "function createCategory($category)\r\n{\r\n $results = false;\r\n \r\n $db = dbconnect();\r\n \r\n $stmt = $db->prepare(\"INSERT INTO categories SET category = :category\");\r\n \r\n $binds = array(\r\n // Used to place new array information under a new ID in Categories table\r\n \":category\" => $category,\r\n );\r\n \r\n if ($stmt->execute($binds) && $stmt->rowCount() > 0) \r\n {\r\n $results = true;\r\n }\r\n \r\n return $results; \r\n}", "function has_categorys()\n\t{\n\t\t\t$categorias = $this->combofiller->categorias();\t\t\t\n\t\t\tforeach($categorias as $key => $value)\n\t\t\t{\n\t\t\t\tif ($this->input->post('' . $key . ''))\n\t\t\t\t{\n\t\t\t\t\treturn TRUE;\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn FALSE;\t\n\t}", "public function store()\n\t{\n\t\t$category = Category::create(['name' => \\Input::get('name')]);\n\n\t\tif($category){\n\t\t\treturn \"true\";\n\t\t}\n\t\treturn \"false\";\n\t}", "public function hasCategories()\n {\n return !$this->categories->isEmpty();\n }", "function checkCategory($storeId=null,$merchant_id=null,$catId=null) {\n \n App::import('Model', 'Category');\n $this->Category = new Category();\n $result=FALSE;\n $checkCategory=$this->Category->find('first',array('conditions'=>array('Category.store_id'=>$storeId,'Category.merchant_id'=>$merchant_id,'Category.is_deleted'=>0,'Category.id'=>$catId,'Category.is_active'=>1),'fields'=>array('id')));\n if(!empty($checkCategory)){\n $result=TRUE;\n }else{\n $result=FALSE;\n }\n return $result;\n }", "public function addCategory($category_name){\n\n //write the query to insert into taable\n $query = \"INSERT INTO category(category_name) \n VALUES ('$category_name')\";\n\n //check if the query() runs // data is insert into users table\n if ($this->dbobj->dbcon->query($query)===true){\n\n\n \n echo \" Category was successfully added\";\n \n }\n else{\n echo \"Error\".$this->dbobj->dbcon->error;\n }\n }", "public function isValidCategory() {\n\t\t$input = file_get_contents('php://input');\n\t\t$_POST = json_decode($input, TRUE);\n\n\t\t// if no splits then category is required otherwise MUST be NULL (will be ignored in Save)\n\t\tif (empty($_POST['splits']) && empty($_POST['category_id'])) {\n\t\t\t$this->form_validation->set_message('isValidCategory', 'The Category Field is Required');\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "private function category() {\n if ($this->is_logged_in()){\n return true; //check if user had been logged in!!!\n }else{\n exit;\n }\n }", "public function isReadyForPurge()\n\t{\n\t\tif($this->getStatus() != CategoryStatus::DELETED)\n\t\t\treturn false;\n\t\t\t\n\t\tif($this->getMembersCount())\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getMembersCount() . \"] users\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\tif($this->getEntriesCount() > 0)\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getEntriesCount() . \"] entries\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\tif($this->getDirectSubCategoriesCount() > 0)\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getDirectSubCategoriesCount() . \"] sub categories\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function is_category($category = '')\n {\n }", "public function existCategorie($categories){\n\t\t\n\t\tglobal $wpdb;\n\n\t\t$ok = 0;\n\t\t\n\t\tif(!empty($categories))\n\t\t{\n\t\t\tforeach($categories as $cat)\n\t\t\t{ \n\t\t\t\t$category = $this->utils->cleanString($cat);\n\t\t\t\t\n\t\t\t\t$result = $this->findCategory($category);\n\t\t\t\t\n\t\t\t\tif( !$result )\n\t\t\t\t{\n\t\t\t\t\t$this->insertCategory($category);\n\t\t\t\t}\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\t \n\t\treturn true;\n\t}", "function has_category($category = '', $post = \\null)\n {\n }", "public function insert_category() {\n\n $this->load->model('Categories');\n\n $category_id = $this->auth->generator(15);\n\n\n\n //Customer basic information adding.\n\n $data = array(\n\n 'category_id' => $category_id,\n\n 'category_name' => $this->input->post('category_name'),\n\n 'status' => 1\n\n );\n\n\n\n $result = $this->Categories->category_entry($data);\n\n\n\n if ($result == TRUE) {\n\n $this->session->set_userdata(array('message' => display('successfully_added')));\n\n echo TRUE;\n\n } else {\n\n $this->session->set_userdata(array('error_message' => display('already_exists')));\n\n echo FALSE;\n\n }\n\n }", "protected function isCategory()\n {\n return is_null($this->request->task);\n }", "public function testValidCategory(){\n\t\t\t$categoryVars = [\n\t\t\t\t'name' => 'Dressers',\t\t\t\t\n\t\t\t];\n\t\t\t$properTest= saveFuncCategory($categoryVars);\n\t\t\t$this->assertTrue($properTest);\n\t\t}", "public function createCategories()\n {\n $value = $this->_config->get('category_settings/create_categories');\n\n if ($value === null) {\n $value = true;\n }\n\n return (bool)$value;\n }", "public function test_create_category()\n {\n $category=categories::factory()->create();\n $this->assertDatabaseHas('categories',['cat_name'=>$category->cat_name]);\n\n }", "public function canCreate($member = null) {\n\t\treturn DataList::create(\"DOArticlesCategoryHolderPage\")->count() < 1;\n\t}", "public function create(Request $request){\n //check if category exist\n $checker = \\App\\Models\\Category::select('id_category')->where('id_category',$request->id_category)->exists();\n if($checker){\n return redirect('/category')->with('fail', 'Data already exists'); //redirect to category route \n }\n\n $query = \\App\\Models\\Category::create($request->all()); // insert data to database \n return redirect('/category')->with('success', 'Input data success'); //redirect to category route if success\n }", "public function category_add() {\n $this->autoRender = false;\n $params = $this->request->data;\n //echo \"<pre>\";print_r($params);echo \"</pre>\"; exit;\n $categoryTable = TableRegistry::get('SkillCategory');\n $getCategory = $categoryTable->find()->select(['id'])->where(['category_name' => $params['category_name']])->toArray();\n if(empty($getCategory)){\n $category = $categoryTable->newEntity($params);\n if ($categoryTable->save($category)) {\n echo json_encode(\n [\n 'status' => 1,\n 'message' => \"Skill Category Added!\",\n ]\n );\n exit;\n }\n }else{\n echo json_encode(\n [\n 'status' => 0,\n 'message' => \"Skill Category Already Exists!\",\n ]\n );\n exit;\n }\n \n }", "public function create(User $user) {\n return $user->hasPermission('categories.create');\n }" ]
[ "0.7183599", "0.708187", "0.691461", "0.68026745", "0.6793626", "0.6748666", "0.67404103", "0.67289835", "0.6707681", "0.66667247", "0.6470421", "0.645172", "0.6447906", "0.6439284", "0.64307773", "0.6430055", "0.6418707", "0.64029104", "0.6365869", "0.6353941", "0.63429016", "0.63341546", "0.63309515", "0.6319828", "0.63097644", "0.6301805", "0.6274918", "0.62727225", "0.6255422", "0.6247498" ]
0.8032583
0
Get new company account approval mail template
public function getCompanyAccountApprovalEmailTemplate() { return $this->scopeConfig->getValue( self::XML_PATH_COMPANY_ACCOUNT_APPROVAL_EMAIL_TEMPLATE, ScopeInterface::SCOPE_STORE ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTemplate() {\n\t\treturn new Template('Premanager', 'changeEmail');\n\t}", "public function emailtemplateAction(){\n\n $this->_helper->layout->setLayout('popup'); \n\n\t $this->view->emailtemplate = $this->ModelObj->fetchemailtemplate(array('notification_id'=>$this->Request['notification_id'])); \n\n\t $this->view->templatename = ($this->Request['notification_name']!='') ? $this->Request['notification_name'] : '';\n\n }", "public function getCustomerApproveEmailTemplate ()\n {\n $customerApproveEmailTemplate = $this->scopeConfig->getValue(\n 'b2bregistration/email_setting/customer_approve_templates',\n ScopeInterface::SCOPE_STORE\n );\n return $customerApproveEmailTemplate;\n }", "public function getEmailTemplateFile() {}", "public function toMail($notifiable)\n {\n\n\n if ($this->request->mailTemplate == 'SYNCINVOICE_VERIFICATION') {\n\n $name = $this->company->name;\n\n $invoices = Invoice::whereIn('id', $this->request->invoices)->get();\n\n return (new MailMessage)\n ->subject('Syncinvoce Verification')\n ->markdown('manage.mailer.syncinvoice-verification', [\n 'name' => $name,\n 'invoices' => $invoices\n ])\n ->action('Notification Action', url('/'));\n }\n\n\n\n $tmpltVars = [\n '&lt;First Name&gt;' => $this->request->firstName,\n '&lt;Last Name&gt;' => $this->request->lastName,\n '&lt;person email&gt;' => $this->request->personEmail,\n '&lt;phone number&gt;' => $this->request->phoneNumber,\n ];\n\n $name = $this->request->name;\n $companyInfo = $this->company;\n\n switch ($this->request->mailTemplate) {\n case 'ONBOARDING_MESSAGE':\n $tmpltVars['<a>&lt;click here&gt;</a>'] =\n '<a href=\"' . route('customer-verification', ['verification_code' => $this->request->hasLink]) . '\">click Here</a>';\n $template = $companyInfo->onboarding_message;\n $subject = $companyInfo->onboarding_mail_subject;\n break;\n case 'INVOICE_RESULT_MESSAGE':\n $template = $companyInfo->invoice_result_message;\n $subject = $companyInfo->invoice_result_message_subject;\n break;\n case 'SUPPLIER_VERIFICATION_MESSAGE':\n $tmpltVars['<a>&lt;click here&gt;</a>'] =\n '<a href=\"' . route('verification.supplier.start', ['verification_code' => $this->request->hasLink]) . '\">click Here</a>';\n $template = $companyInfo->supplier_verification_message;\n $subject = $companyInfo->supplier_verification_mail_subject;\n break;\n case 'EXISTING_SUPPLIER_MESSAGE':\n $tmpltVars['<a>&lt;click here&gt;</a>'] =\n '<a href=\"' . route('verification.supplier.start', ['verification_code' => $this->request->hasLink]) . '\">click Here</a>';\n $template = $companyInfo->existing_supplier_message;\n $subject = $companyInfo->existing_supplier_mail_verification;\n break;\n default:\n $template = $companyInfo->onboarding_message;\n $subject = $companyInfo->onboarding_mail_subject;\n }\n $mailTemplate = strtr($template, $tmpltVars);\n\n\n return (new MailMessage)\n ->subject($subject)\n ->markdown('manage.mailer.setting-notification-mail', ['mailTemplate' => $mailTemplate, 'name' => $name])\n ->action('Notification Action', url('/'));\n }", "public function emailTemplate(){\n if (Auth::user()->admin===1) {\n $template = EmailTemplate::find(1);\n return view('admin.emailTemplate')->with('template', $template);\n }\n else {\n return view('pages.noAccess');\n }\n }", "public function getemailtemplate() {\n $admin_id = Session::get('bio_admin_id');\n if($admin_id == \"\"){\n return Redirect::to('/backend');\n }\n $EmailData = DB::table('tbl_email_template')->orderBy('id')->where('id', '>', 0)->get();\n return view('admin.manage-emailtemplate')->with('EmailData', $EmailData);\n }", "public function email_approver()\n {\n \n $this->db->select('EMAIL');\n $this->db->from('APPROVERS');\n $this->db->where('UNIT',$_SESSION['div']);\n $query = $this->db->get();\n $out = $query->result_array();\n\n if ($out) {\n\n \n foreach ($out as $recipient){\n \n //mail to approver\n $this->load->library('email');\n $htmlContent = '<h1>Title change requested in FREE System.</h1>';\n $htmlContent .= '<p>Please review the <a href=\"' . base_url() . '/admin\">Approval Control Panel</a> to review the request.</p>';\n \n $this->email->clear();\n\n $config['mailtype'] = 'html';\n $this->email->initialize($config);\n $this->email->to($recipient);\n $this->email->from('[email protected]', 'FREE System');\n $this->email->subject('Title Change Requested');\n $this->email->message($htmlContent);\n $this->email->send();\n }\n }\n }", "public function add_email_template()\n {\n \n\t\t$this->arr_view_data['page_title'] = \"Manage \".$this->module_title;\n $this->arr_view_data['parent_module_icon'] = \"fa fa-home\";\n $this->arr_view_data['parent_module_title'] = \"Dashboard\";\n $this->arr_view_data['parent_module_url'] = url('/').'/admin/dashboard';\n $this->arr_view_data['module_icon'] = $this->module_icon;\n $this->arr_view_data['module_title'] = \"Manage \".$this->module_title;\n\t\t$this->arr_view_data['module_url_path'] = $this->module_url_path;\n\t\t$this->arr_view_data['admin_url_path'] = $this->admin_url_path;\n\t\t$this->arr_view_data['admin_panel_slug'] = $this->admin_panel_slug;\n\t\t\n\t\treturn view($this->module_view_folder.'.add',$this->arr_view_data);\n }", "public function mailtemplates() {\n $arr = array(\n 'completed' => 'order-completed.txt',\n 'completed-wm' => 'wm-order-completed.txt',\n 'pending' => 'order-pending.txt',\n 'pending-wm' => 'wm-order-pending.txt'\n );\n return $arr;\n }", "private function emailTemplate($data) {\n $body = array_reduce($data, function($prevInput, $curInput) {\n return $prevInput . '<p style=\"font-family:sans-serif;font-size:14px;font-weight:normal;margin:0;Margin-bottom:2px;\">' . $curInput['name'] . ': ' . $curInput['value'] . '</p>' . PHP_EOL;\n });\n\n $email = '<!DOCTYPE html>\n <html>\n <head>\n <meta name=\"viewport\" content=\"width=device-width\">\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n <title>New Online Donation</title>\n <style type=\"text/css\">\n @media only screen and (max-width: 620px) {\n table[class=body] h1 {\n font-size: 28px !important;\n margin-bottom: 10px !important; }\n table[class=body] p,\n table[class=body] ul,\n table[class=body] ol,\n table[class=body] td,\n table[class=body] span,\n table[class=body] a {\n font-size: 16px !important; }\n table[class=body] .wrapper,\n table[class=body] .article {\n padding: 10px !important; }\n table[class=body] .content {\n padding: 0 !important; }\n table[class=body] .container {\n padding: 0 !important;\n width: 100% !important; }\n table[class=body] .main {\n border-left-width: 0 !important;\n border-radius: 0 !important;\n border-right-width: 0 !important; }\n table[class=body] .btn table {\n width: 100% !important; }\n table[class=body] .btn a {\n width: 100% !important; }\n table[class=body] .img-responsive {\n height: auto !important;\n max-width: 100% !important;\n width: auto !important; }}\n @media all {\n .ExternalClass {\n width: 100%; }\n .ExternalClass,\n .ExternalClass p,\n .ExternalClass span,\n .ExternalClass font,\n .ExternalClass td,\n .ExternalClass div {\n line-height: 100%; }\n .apple-link a {\n color: inherit !important;\n font-family: inherit !important;\n font-size: inherit !important;\n font-weight: inherit !important;\n line-height: inherit !important;\n text-decoration: none !important; }\n .btn-primary table td:hover {\n background-color: #34495e !important; }\n .btn-primary a:hover {\n background-color: #34495e !important;\n border-color: #34495e !important; } }\n </style>\n </head>\n <body class=\"\" style=\"background-color:#f6f6f6;font-family:sans-serif;-webkit-font-smoothing:antialiased;font-size:14px;line-height:1.4;margin:0;padding:0;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;\">\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"body\" style=\"border-collapse:separate;mso-table-lspace:0pt;mso-table-rspace:0pt;background-color:#f6f6f6;width:100%;\">\n <tr>\n <td style=\"font-family:sans-serif;font-size:14px;vertical-align:top;\">&nbsp;</td>\n <td class=\"container\" style=\"font-family:sans-serif;font-size:14px;vertical-align:top;display:block;max-width:960px;padding:10px;width:100%;Margin:0 auto !important;\">\n <div class=\"content\" style=\"box-sizing:border-box;display:block;Margin:0 auto;max-width:100%;padding:10px;\">\n <span class=\"preheader\" style=\"color:transparent;display:none;height:0;max-height:0;max-width:0;opacity:0;overflow:hidden;mso-hide:all;visibility:hidden;width:0;\">New Form Submission</span>\n <table class=\"main\" style=\"border-collapse:separate;mso-table-lspace:0pt;mso-table-rspace:0pt;background:#fff;border-radius:3px;width:100%;\">\n <tr>\n <td class=\"wrapper\" style=\"font-family:sans-serif;font-size:14px;vertical-align:top;box-sizing:border-box;padding:20px;\">\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:separate;mso-table-lspace:0pt;mso-table-rspace:0pt;width:100%;\">\n <tr>\n <td style=\"font-family:sans-serif;font-size:14px;vertical-align:top;\">\n <p style=\"font-family:sans-serif;font-size:24px;font-weight:normal;margin:0;Margin-bottom:24px;\">Here are the details:</p>\n ' . $body . '\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </div>\n </td>\n <td style=\"font-family:sans-serif;font-size:14px;vertical-align:top;\">&nbsp;</td>\n </tr>\n </table>\n </body>\n </html>';\n \n return $email;\n }", "function Trigger_ActivationEmail(&$tNG) {\r\n $emailObj = new tNG_Email($tNG);\r\n $emailObj->setFrom(\"{KT_defaultSender}\");\r\n $emailObj->setTo(\"{member_email}\");\r\n $emailObj->setCC(\"\");\r\n $emailObj->setBCC(\"\");\r\n $emailObj->setSubject(\"Activation\");\r\n //FromFile method\r\n $emailObj->setContentFile(\"includes/mailtemplates/activate.html\");\r\n $emailObj->setEncoding(\"UTF-8\");\r\n $emailObj->setFormat(\"HTML/Text\");\r\n $emailObj->setImportance(\"Normal\");\r\n return $emailObj->Execute();\r\n}", "public function mailTemplates() {\n $t = array(\n 'completed' => 'order-completed.txt',\n 'completed-wm' => 'order-completed-webmaster.txt',\n 'completed-dl' => 'order-completed-dl.txt',\n 'completed-wm-dl' => 'order-completed-dl-webmaster.txt',\n 'pending' => 'order-pending.txt',\n 'pending-wm' => 'order-pending-webmaster.txt',\n 'refunded' => 'order-refunded.txt',\n 'cancelled' => 'order-cancelled.txt',\n 'completed-wish' => 'order-completed-wish.txt',\n 'completed-wish-dl' => 'order-completed-wish-dl.txt',\n 'completed-wish-recipient' => 'order-completed-wish-recipient.txt',\n 'completed-wish-recipient-dl' => 'order-completed-wish-recipient-dl.txt'\n );\n return $t;\n }", "public function approve()\n {\n $message = new MailMessage;\n $message->greeting(\"Hi {$this->post->reporting->name}!\");\n $message->line(\"The post {$this->post->titile} has been approved successfully.\"); \n foreach ($this->workflow as $key => $value) {\n if ($key == 0) {\n $message->action($value->action, url('workflows/workflow/' . $value->id));\n continue;\n }\n $message->line('<a href=\"'.url('workflows/workflow/' . $value->id).'\">'.$value->action.'</a>');\n }\n\n return $message;\n }", "public function create()\n {\n return (new EmailTemplate())->loadDefaultValues();\n }", "public function email_configurations(){\n\t\t\t$template_list='';\t\t\n\t\t\t$user_id = $this->session->userdata('id');\n\t\t\t$role = $this->session->userdata('role');\n\t\t\t$template_id = $this->uri->segment(3);\n\t\t\tif( ($role=='super_admin') || ($role=='admin')):\n\t\t\t\tif(!empty($template_id)){\n\t\t\t\t\t$template_list = $this->InteractModal->get_email_template($template_id);\n\t\t\t\t}\n\t\t\t\t$pagedata['template_list'] = $template_list;\n\t\t\t\t$this->load->view('dashboard/header');\n\t\t\t\t$this->load->view('dashboard/email-configurations',$pagedata);\n\t\t\t\t$this->load->view('dashboard/footer');\n\t\t\t\n\t\t\telse:\n\t\t\t\tredirect( base_url( 'Interact/login' ));\n\t\t\tendif;\n\t}", "public function createMailMessage();", "public function template()\n {\n $templates = EmailTemplate::select('*')->where('email_templates.state','0')->get();\n $newcontact = DB::table('contact')->where('contact.state', '=', '0')->count();\n return view('admin.email_template')->with(array('templates'=>$templates,'newcontact'=>$newcontact));\n }", "function emailTemplate($username, $password, $idcode ,$expiredate ,$package, $typePackage, $note,$isMagDevice)\n{\n\n if ($typePackage == \"IPTV\") {\n if ($isMagDevice == \"1\") {\n $corpo_credenziali = '<b>Link Portal:</b> ';\n $corpo_credenziali .= \"http://satopen-iptv.ddns.net:8000/c/\";\n $corpo_credenziali .= '<br><br><b>Package:</b> ';\n $corpo_credenziali .= \"IPTV $package\";\n $corpo_credenziali .= '<br><b>Expire Date:</b> ';\n $corpo_credenziali .= \"$expiredate (Year/Month/Day)\";\n $corpo_credenziali .= '<br><b>Payment Id-Code:</b> ';\n $corpo_credenziali .= \"$idcode\";\n $corpo_credenziali .= '<br><b>Note:</b> ';\n $corpo_credenziali .= \"$note\";\n $corpo_credenziali .= '<br><br><b>Iptv Note:</b> ';\n $corpo_credenziali .= '<br>Usage Google DNS on your device or router: 8.8.8.8 (Primary) 8.8.4.4 (Secondary)<br>Download and Install Our Enigma 2 Plugin http://satopen-panel.ddns.net/Download/IptvGate_World.ipk<br>Automatic Update Of Channel List, Personalizate Bouquet Channel, Play & Pause, Forward & Rewind, Search VOD, Account Info and many more<br>';\n \n }\n else {\n $corpo_credenziali = '<b>Username:</b> ';\n $corpo_credenziali .= \"$username\";\n $corpo_credenziali .= '<br><b>Password:</b> ';\n $corpo_credenziali .= \"$password\";\n $corpo_credenziali .= '<br><br><b>Your IPTV Account Data - AutoScript Enigma2:</b> ';\n $corpo_credenziali .= \"wget -O /etc/enigma2/iptv.sh \\\"http://satopen-iptv.ddns.net:8000/get.php?username=$username&password=$password&type=enigma22_script&output=mpegts\\\" && chmod 777 /etc/enigma2/iptv.sh && /etc/enigma2/iptv.sh\";\n $corpo_credenziali .= '<br><br><b>Your IPTV Account Data - Link VLC/Android/IOS/Smart-Tv Player:</b> ';\n $corpo_credenziali .= \"http://satopen-iptv.ddns.net:8000/get.php?username=$username&password=$password&type=m3u_plus&output=mpegts\";\n $corpo_credenziali .= '<br><br><b>Plugin WorldTeam 2.0:</b> ';\n $corpo_credenziali .= \"wget -q -O /tmp/IptvGate_World.ipk http://app-world.dyndns.tv/addons/plugin/tar/IptvGate_World.ipk; chmod 777 /tmp/IptvGate_World.ipk; opkg install /tmp/IptvGate_World.ipk; sleep 5; killall -9 enigma2\";\n $corpo_credenziali .= '<br><b>After open the Plugina and insert your Username and Password</b>';\n $corpo_credenziali .= '<br><br><b>Package:</b> ';\n $corpo_credenziali .= \"IPTV $package\";\n $corpo_credenziali .= '<br><b>Expire Date:</b> ';\n $corpo_credenziali .= \"$expiredate (Year/Month/Day)\";\n $corpo_credenziali .= '<br><b>Payment Id-Code:</b> ';\n $corpo_credenziali .= \"$idcode\";\n $corpo_credenziali .= '<br><b>Note:</b> ';\n $corpo_credenziali .= \"$note\";\n $corpo_credenziali .= '<br><br><b>Iptv Note:</b> ';\n $corpo_credenziali .= '<br>Usage Google DNS on your device or router: 8.8.8.8 (Primary) 8.8.4.4 (Secondary)<br>Download and Install Our Enigma 2 Plugin http://satopen-panel.ddns.net/Download/IptvGate_World.ipk<br>Automatic Update Of Channel List, Personalizate Bouquet Channel, Play & Pause, Forward & Rewind, Search VOD, Account Info and many more<br>';\n } \n }\n else {\n $corpo_credenziali = '<b>Username:</b> ';\n $corpo_credenziali .= \"$username\";\n $corpo_credenziali .= '<br><b>Password:</b> ';\n $corpo_credenziali .= \"$password\";\n $corpo_credenziali .= '<br><br><b>Your CardSharing Account Data - CLine:</b><br>';\n $corpo_credenziali .= \"C: satopen-client.ddns.net 23000 $username $password\";\n $corpo_credenziali .= '<br><br><b>Package:</b> ';\n $corpo_credenziali .= \"Cardsharing $package\";\n $corpo_credenziali .= '<br><b>Expire Date:</b> ';\n $corpo_credenziali .= \"$expiredate (Year/Month/Day)\";\n $corpo_credenziali .= '<br><b>Payment Id-Code:</b> ';\n $corpo_credenziali .= \"$idcode\";\n $corpo_credenziali .= '<br><b>Note:</b> ';\n $corpo_credenziali .= \"$note\";\n $corpo_credenziali .= '<br><br><b>CardSharing Note:</b> ';\n $corpo_credenziali .= '<br>Usage Google DNS on your device or router: 8.8.8.8 (Primary) 8.8.4.4 (Secondary)<br>Download and Install Our CCcam.prio in your decoder for fast zapping and zero freeze<br>http://www.satopen.cc/setup-cccam.html<br>';\n\n }\n\n \n \n $GLOBALS['head_email'] = '<html xmlns=\"http://www.w3.org/1999/xhtml\"> <head>\n\t\t\t\t <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n\t\t\t\t <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t\t\t <title>SatOpen Email</title>\n\t\t\t\t <style type=\"text/css\"> \n\t\t\t\t img {\n\t\t\t\t max-width: 600px;\n\t\t\t\t outline: none;\n\t\t\t\t text-decoration: none;\n\t\t\t\t -ms-interpolation-mode: bicubic;\n\t\t\t\t }\n\n\t\t\t\t a {\n\t\t\t\t border: 0;\n\t\t\t\t outline: none;\n\t\t\t\t }\n\n\t\t\t\t a img {\n\t\t\t\t border: none;\n\t\t\t\t }\n\n\t\t\t\t /* General styling */\n\n\t\t\t\t td, h1, h2, h3 {\n\t\t\t\t font-family: Helvetica, Arial, sans-serif;\n\t\t\t\t font-weight: 400;\n\t\t\t\t }\n\n\t\t\t\t td {\n\t\t\t\t font-size: 13px;\n\t\t\t\t line-height: 19px;\n\t\t\t\t text-align: left;\n\t\t\t\t }\n\n\t\t\t\t body {\n\t\t\t\t -webkit-font-smoothing:antialiased;\n\t\t\t\t -webkit-text-size-adjust:none;\n\t\t\t\t width: 100%;\n\t\t\t\t height: 100%;\n\t\t\t\t color: #37302d;\n\t\t\t\t background: #ffffff;\n\t\t\t\t }\n\n\t\t\t\t table {\n\t\t\t\t border-collapse: collapse !important;\n\t\t\t\t }\n\n\n\t\t\t\t h1, h2, h3, h4 {\n\t\t\t\t padding: 0;\n\t\t\t\t margin: 0;\n\t\t\t\t color: #444444;\n\t\t\t\t font-weight: 400;\n\t\t\t\t line-height: 110%;\n\t\t\t\t }\n\n\t\t\t\t h1 {\n\t\t\t\t font-size: 35px;\n\t\t\t\t }\n\n\t\t\t\t h2 {\n\t\t\t\t font-size: 30px;\n\t\t\t\t }\n\n\t\t\t\t h3 {\n\t\t\t\t font-size: 24px;\n\t\t\t\t }\n\n\t\t\t\t h4 {\n\t\t\t\t font-size: 18px;\n\t\t\t\t font-weight: normal;\n\t\t\t\t }\n\n\t\t\t\t .important-font {\n\t\t\t\t color: #21BEB4;\n\t\t\t\t font-weight: bold;\n\t\t\t\t }\n\n\t\t\t\t .hide {\n\t\t\t\t display: none !important;\n\t\t\t\t }\n\n\t\t\t\t .force-full-width {\n\t\t\t\t width: 100% !important;\n\t\t\t\t }\n\n\t\t\t\t </style>\n\n\t\t\t\t <style type=\"text/css\" media=\"screen\">\n\t\t\t\t @media screen {\n\t\t\t\t\t@import url(http://fonts.googleapis.com/css?family=Open+Sans:400);\n\n\t\t\t\t\t/* Thanks Outlook 2013! */\n\t\t\t\t\ttd, h1, h2, h3 {\n\t\t\t\t\t font-family: Open Sans, Helvetica Neue, Arial, sans-serif !important;\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t </style>\n\n\t\t\t\t <style type=\"text/css\" media=\"only screen and (max-width: 600px)\">\n\t\t\t\t /* Mobile styles */\n\t\t\t\t @media only screen and (max-width: 600px) {\n\n\t\t\t\t table[class=\"w320\"] {\n\t\t\t\t\twidth: 320px !important;\n\t\t\t\t }\n\n\t\t\t\t table[class=\"w300\"] {\n\t\t\t\t\twidth: 300px !important;\n\t\t\t\t }\n\n\t\t\t\t table[class=\"w290\"] {\n\t\t\t\t\twidth: 290px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class=\"w320\"] {\n\t\t\t\t\twidth: 320px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class~=\"mobile-padding\"] {\n\t\t\t\t\tpadding-left: 14px !important;\n\t\t\t\t\tpadding-right: 14px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-padding-left\"] {\n\t\t\t\t\tpadding-left: 14px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-padding-right\"] {\n\t\t\t\t\tpadding-right: 14px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-padding-left-only\"] {\n\t\t\t\t\tpadding-left: 14px !important;\n\t\t\t\t\tpadding-right: 0 !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-padding-right-only\"] {\n\t\t\t\t\tpadding-right: 14px !important;\n\t\t\t\t\tpadding-left: 0 !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-block\"] {\n\t\t\t\t\tdisplay: block !important;\n\t\t\t\t\twidth: 100% !important;\n\t\t\t\t\ttext-align: left !important;\n\t\t\t\t\tpadding-left: 0 !important;\n\t\t\t\t\tpadding-right: 0 !important;\n\t\t\t\t\tpadding-bottom: 15px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-no-padding-bottom\"] {\n\t\t\t\t\tpadding-bottom: 0 !important;\n\t\t\t\t }\n\n\t\t\t\t td[class~=\"mobile-center\"] {\n\t\t\t\t\ttext-align: center !important;\n\t\t\t\t }\n\n\t\t\t\t table[class*=\"mobile-center-block\"] {\n\t\t\t\t\tfloat: none !important;\n\t\t\t\t\tmargin: 0 auto !important;\n\t\t\t\t }\n\n\t\t\t\t *[class*=\"mobile-hide\"] {\n\t\t\t\t\tdisplay: none !important;\n\t\t\t\t\twidth: 0 !important;\n\t\t\t\t\theight: 0 !important;\n\t\t\t\t\tline-height: 0 !important;\n\t\t\t\t\tfont-size: 0 !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-border\"] {\n\t\t\t\t\tborder: 0 !important;\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t </style>\n\t\t\t\t</head>';\n\nif ($typePackage == \"IPTV\") {\n $corpo_email = $GLOBALS['head_email'];\n $corpo_email .= ' \n\t\t\t\t<body class=\"body\" style=\"padding:0; margin:0; display:block; background:#ffffff; -webkit-text-size-adjust:none\" bgcolor=\"#ffffff\">\n\t\t\t\t<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">\n\t\t\t\t <tr>\n\t\t\t\t <td align=\"center\" valign=\"top\" bgcolor=\"#ffffff\" width=\"100%\">\n\n\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"background:#1f1f1f\" width=\"100%\">\n\n\t\t\t\t\t <center>\n\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"600\" class=\"w320\">\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td valign=\"top\" class=\"mobile-block mobile-no-padding-bottom mobile-center\" width=\"270\" style=\"background:#1f1f1f;padding:10px 10px 10px 20px;\">\n\t\t\t\t\t\t <a data-click-track-id=\"1262\" href=\"#\" style=\"text-decoration:none;\">\n\t\t\t\t\t\t <img src=\"http://www.satopen.cc/uploads/1/3/3/0/13301587/1460553356.png\" width=\"142\" height=\"30\" alt=\"Your Logo\"/>\n\t\t\t\t\t\t </a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td valign=\"top\" class=\"mobile-block mobile-center\" width=\"270\" style=\"background:#1f1f1f;padding:10px 15px 10px 10px\">\n\t\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mobile-center-block\" align=\"right\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td align=\"right\">\n\t\t\t\t\t\t\t<a data-click-track-id=\"2952\" href=\"https://www.facebook.com/Satopencc-Best-CardSharingIPTV-Server-1738104009796186\">\n\t\t\t\t\t\t\t<img src=\"http://keenthemes.com/assets/img/emailtemplate/social_facebook.png\" width=\"30\" height=\"30\" alt=\"social icon\"/>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"border-bottom:1px solid #e7e7e7;\">\n\n\t\t\t\t\t <center>\n\t\t\t\t\t <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\">\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td align=\"left\" class=\"mobile-padding\" style=\"padding:20px 20px 0\">\n\n\t\t\t\t\t\t <br class=\"mobile-hide\" />\n\n\t\t\t\t\t\t <h1>Account Data on SatOpen.cc!</h1>\n\n\t\t\t\t\t\t <br>\n\t\t\t\t\t\t <b>Your Data for Help Area:</b><br><br>';\n $corpo_email .= $corpo_credenziali;\n $corpo_email .= '\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t <br>\n\n\t\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" bgcolor=\"#ffffff\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td style=\"width:130px;background:#D84A38;\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t <!--[if mso]>\n\t\t\t\t\t\t\t <v:rect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" href=\"#\" style=\"height:33px;v-text-anchor:middle;width:130px;\" stroke=\"f\" fillcolor=\"#D84A38\">\n\t\t\t\t\t\t\t <w:anchorlock/>\n\t\t\t\t\t\t\t <center>\n\t\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\t <a href=\"http://satopen.cc\"\n\t\t\t\t\t\t\tstyle=\"background-color:#D84A38;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:33px;text-align:center;text-decoration:none;width:130px;-webkit-text-size-adjust:none;\">SatOpen.CC</a>\n\t\t\t\t\t\t\t <!--[if mso]>\n\t\t\t\t\t\t\t </center>\n\t\t\t\t\t\t\t </v:rect> \n\t\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t <td width=\"316\" style=\"background-color:#ffffff; font-size:0; line-height:0;\">&nbsp;</td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t <br><br>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td class=\"mobile-hide\" style=\"padding-top:20px;padding-bottom:0;vertical-align:bottom\">\n\t\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td align=\"right\" valign=\"bottom\" width=\"220\" style=\"padding-right:20px; padding-bottom:0; vertical-align:bottom;\">\n\t\t\t\t\t\t <img style=\"display:block\" src=\"https://www.filepicker.io/api/file/AvB8yENR7OdiUqonW05y\" width=\"174\" height=\"294\" alt=\"iphone\"/>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td valign=\"top\" style=\"background-color:#f8f8f8;border-bottom:1px solid #e7e7e7;\">\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"background-color:#1f1f1f;\">\n\t\t\t\t\t <center>\n\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\" style=\"height:100%;color:#ffffff\" bgcolor=\"#1f1f1f\" >\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td align=\"right\" valign=\"middle\" class=\"mobile-padding\" style=\"font-size:12px;padding:20px; background-color:#1f1f1f; color:#ffffff; text-align:left; \">\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"http://www.satopen.cc/support.html\">Contact Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"https://www.facebook.com/Satopencc-Best-CardSharingIPTV-Server-1738104009796186\">Facebook</a>&nbsp;&nbsp;|&nbsp;&nbsp;\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"http://www.satopen.cc/support.html\">Support</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t </table>\n\n\t\t\t\t </td>\n\t\t\t\t </tr>\n\t\t\t\t</table>\n\t\t\t\t</body>\n\t\t\t\t</html>\n\t\t\t\t';\n}\n\nelse {\n $corpo_email = $GLOBALS['head_email'];\n $corpo_email .= ' \n\t\t\t\t<body class=\"body\" style=\"padding:0; margin:0; display:block; background:#ffffff; -webkit-text-size-adjust:none\" bgcolor=\"#ffffff\">\n\t\t\t\t<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">\n\t\t\t\t <tr>\n\t\t\t\t <td align=\"center\" valign=\"top\" bgcolor=\"#ffffff\" width=\"100%\">\n\n\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"background:#1f1f1f\" width=\"100%\">\n\n\t\t\t\t\t <center>\n\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"600\" class=\"w320\">\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td valign=\"top\" class=\"mobile-block mobile-no-padding-bottom mobile-center\" width=\"270\" style=\"background:#1f1f1f;padding:10px 10px 10px 20px;\">\n\t\t\t\t\t\t <a data-click-track-id=\"1262\" href=\"#\" style=\"text-decoration:none;\">\n\t\t\t\t\t\t <img src=\"http://www.satopen.cc/uploads/1/3/3/0/13301587/1460553356.png\" width=\"142\" height=\"30\" alt=\"Your Logo\"/>\n\t\t\t\t\t\t </a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td valign=\"top\" class=\"mobile-block mobile-center\" width=\"270\" style=\"background:#1f1f1f;padding:10px 15px 10px 10px\">\n\t\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mobile-center-block\" align=\"right\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td align=\"right\">\n\t\t\t\t\t\t\t<a data-click-track-id=\"2952\" href=\"https://www.facebook.com/Satopencc-Best-CardSharingIPTV-Server-1738104009796186\">\n\t\t\t\t\t\t\t<img src=\"http://keenthemes.com/assets/img/emailtemplate/social_facebook.png\" width=\"30\" height=\"30\" alt=\"social icon\"/>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"border-bottom:1px solid #e7e7e7;\">\n\n\t\t\t\t\t <center>\n\t\t\t\t\t <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\">\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td align=\"left\" class=\"mobile-padding\" style=\"padding:20px 20px 0\">\n\n\t\t\t\t\t\t <br class=\"mobile-hide\" />\n\n\t\t\t\t\t\t <h1>Account Data on SatOpen.cc!</h1>\n\n\t\t\t\t\t\t <br>\n\t\t\t\t\t\t <b>Your Data for Help Area:</b><br><br>';\n $corpo_email .= $corpo_credenziali;\n $corpo_email .= '\n\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t <br>\n\n\t\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" bgcolor=\"#ffffff\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td style=\"width:130px;background:#D84A38;\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t <!--[if mso]>\n\t\t\t\t\t\t\t <v:rect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" href=\"#\" style=\"height:33px;v-text-anchor:middle;width:130px;\" stroke=\"f\" fillcolor=\"#D84A38\">\n\t\t\t\t\t\t\t <w:anchorlock/>\n\t\t\t\t\t\t\t <center>\n\t\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\t <a href=\"http://satopen.cc\"\n\t\t\t\t\t\t\tstyle=\"background-color:#D84A38;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:33px;text-align:center;text-decoration:none;width:130px;-webkit-text-size-adjust:none;\">SatOpen.cc</a>\n\t\t\t\t\t\t\t <!--[if mso]>\n\t\t\t\t\t\t\t </center>\n\t\t\t\t\t\t\t </v:rect> \n\t\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t <td width=\"316\" style=\"background-color:#ffffff; font-size:0; line-height:0;\">&nbsp;</td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t <br><br>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td class=\"mobile-hide\" style=\"padding-top:20px;padding-bottom:0;vertical-align:bottom\">\n\t\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td align=\"right\" valign=\"bottom\" width=\"220\" style=\"padding-right:20px; padding-bottom:0; vertical-align:bottom;\">\n\t\t\t\t\t\t <img style=\"display:block\" src=\"https://www.filepicker.io/api/file/AvB8yENR7OdiUqonW05y\" width=\"174\" height=\"294\" alt=\"iphone\"/>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td valign=\"top\" style=\"background-color:#f8f8f8;border-bottom:1px solid #e7e7e7;\">\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"background-color:#1f1f1f;\">\n\t\t\t\t\t <center>\n\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\" style=\"height:100%;color:#ffffff\" bgcolor=\"#1f1f1f\" >\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td align=\"right\" valign=\"middle\" class=\"mobile-padding\" style=\"font-size:12px;padding:20px; background-color:#1f1f1f; color:#ffffff; text-align:left; \">\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"http://www.satopen.cc/support.html\">Contact Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"https://www.facebook.com/Satopencc-Best-CardSharingIPTV-Server-1738104009796186\">Facebook</a>&nbsp;&nbsp;|&nbsp;&nbsp;\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"http://www.satopen.cc/support.html\">Support</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t </table>\n\n\t\t\t\t </td>\n\t\t\t\t </tr>\n\t\t\t\t</table>\n\t\t\t\t</body>\n\t\t\t\t</html>\n\t\t\t\t';\n\n}\n\n return array($corpo_email,$corpo_credenziali);\n}", "public function emailtemplete($email)\n\t{\t\n\t\t$templetedata = '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta name=\"viewport\" content=\"width=device-width\" />\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n<title>Verify your account</title>\n<style>/* -------------------------------------\n GLOBAL\n A very basic CSS reset\n------------------------------------- */\n* {\n margin: 0;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n box-sizing: border-box;\n font-size: 14px;\n}\n\nimg {\n max-width: 100%;\n}\n\nbody {\n -webkit-font-smoothing: antialiased;\n -webkit-text-size-adjust: none;\n width: 100% !important;\n height: 100%;\n line-height: 1.6em;\n /* 1.6em * 14px = 22.4px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 22px;*/\n}\n\ntable td {\n vertical-align: top;\n}\n\nbody {\n background-color: #f6f6f6;\n}\n\n.body-wrap {\n background-color: #f6f6f6;\n width: 100%;\n}\n\n.container {\n display: block !important;\n max-width: 600px !important;\n margin: 0 auto !important;\n /* makes it centered */\n clear: both !important;\n}\n\n.content {\n max-width: 600px;\n margin: 0 auto;\n display: block;\n padding: 20px;\n}\n\n/* -------------------------------------\n HEADER, FOOTER, MAIN\n------------------------------------- */\n.main {\n background-color: #fff;\n border: 1px solid #e9e9e9;\n border-radius: 3px;\n}\n\n.content-wrap {\n padding: 20px;\n}\n\n.content-block {\n padding: 0 0 20px;\n}\n\n.header {\n width: 100%;\n margin-bottom: 20px;\n}\n\n.footer {\n width: 100%;\n clear: both;\n color: #999;\n padding: 20px;\n}\n.footer p, .footer a, .footer td {\n color: #999;\n font-size: 12px;\n}\n\n/* -------------------------------------\n TYPOGRAPHY\n------------------------------------- */\nh1, h2, h3 {\n font-family: \"Helvetica Neue\", Helvetica, Arial, \"Lucida Grande\", sans-serif;\n color: #000;\n margin: 40px 0 0;\n line-height: 1.2em;\n font-weight: 400;\n}\n\nh1 {\n font-size: 32px;\n font-weight: 500;\n /* 1.2em * 32px = 38.4px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 38px;*/\n}\n\nh2 {\n font-size: 24px;\n /* 1.2em * 24px = 28.8px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 29px;*/\n}\n\nh3 {\n font-size: 18px;\n /* 1.2em * 18px = 21.6px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 22px;*/\n}\n\nh4 {\n font-size: 14px;\n font-weight: 600;\n}\n\np, ul, ol {\n margin-bottom: 10px;\n font-weight: normal;\n}\np li, ul li, ol li {\n margin-left: 5px;\n list-style-position: inside;\n}\n\n/* -------------------------------------\n LINKS & BUTTONS\n------------------------------------- */\na {\n color: #348eda;\n text-decoration: underline;\n}\n\n.btn-primary {\n text-decoration: none;\n color: #FFF;\n background-color: #348eda;\n border: solid #348eda;\n border-width: 10px 20px;\n line-height: 2em;\n /* 2em * 14px = 28px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 28px;*/\n font-weight: bold;\n text-align: center;\n cursor: pointer;\n display: inline-block;\n border-radius: 5px;\n text-transform: capitalize;\n}\n\n/* -------------------------------------\n OTHER STYLES THAT MIGHT BE USEFUL\n------------------------------------- */\n.last {\n margin-bottom: 0;\n}\n\n.first {\n margin-top: 0;\n}\n\n.aligncenter {\n text-align: center;\n}\n\n.alignright {\n text-align: right;\n}\n\n.alignleft {\n text-align: left;\n}\n\n.clear {\n clear: both;\n}\n\n/* -------------------------------------\n ALERTS\n Change the class depending on warning email, good email or bad email\n------------------------------------- */\n.alert {\n font-size: 16px;\n color: #fff;\n font-weight: 500;\n padding: 20px;\n text-align: center;\n border-radius: 3px 3px 0 0;\n}\n.alert a {\n color: #fff;\n text-decoration: none;\n font-weight: 500;\n font-size: 16px;\n}\n.alert.alert-warning {\n background-color: #FF9F00;\n}\n.alert.alert-bad {\n background-color: #D0021B;\n}\n.alert.alert-good {\n background-color: #68B90F;\n}\n\n/* -------------------------------------\n INVOICE\n Styles for the billing table\n------------------------------------- */\n.invoice {\n margin: 40px auto;\n text-align: left;\n width: 80%;\n}\n.invoice td {\n padding: 5px 0;\n}\n.invoice .invoice-items {\n width: 100%;\n}\n.invoice .invoice-items td {\n border-top: #eee 1px solid;\n}\n.invoice .invoice-items .total td {\n border-top: 2px solid #333;\n border-bottom: 2px solid #333;\n font-weight: 700;\n}\n\n/* -------------------------------------\n RESPONSIVE AND MOBILE FRIENDLY STYLES\n------------------------------------- */\n@media only screen and (max-width: 640px) {\n body {\n padding: 0 !important;\n }\n\n h1, h2, h3, h4 {\n font-weight: 800 !important;\n margin: 20px 0 5px !important;\n }\n\n h1 {\n font-size: 22px !important;\n }\n\n h2 {\n font-size: 18px !important;\n }\n\n h3 {\n font-size: 16px !important;\n }\n\n .container {\n padding: 0 !important;\n width: 100% !important;\n }\n\n .content {\n padding: 0 !important;\n }\n\n .content-wrap {\n padding: 10px !important;\n }\n\n .invoice {\n width: 100% !important;\n }\n}\n\n/*# sourceMappingURL=styles.css.map */\n</style>\n</head>\n\n<body itemscope itemtype=\"http://schema.org/EmailMessage\">\n\n<table class=\"body-wrap\">\n\t<tr>\n\t\t<td></td>\n\t\t<td class=\"container\" width=\"600\">\n\t\t\t<div class=\"content\">\n\t\t\t\t<table class=\"main\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=\"alert alert-warning\">\n\t\t\t\t\t\t\tVerify your account\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=\"content-wrap\">\n\t\t\t\t\t\t\t<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"content-block\">\n\t\t\t\t\t\t\t\t\t\tDear customer Pleas <strong>Click</strong> Below link .\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"content-block\">\n\t\t\t\t\t\t\t\t\t\t<a href=\"'.base_url().'varify/'.urlencode(base64_encode($email)).'\" class=\"btn-primary\">verify</a>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"content-block\">\n\t\t\t\t\t\t\t\t\t\tThanks for choosing 11needs.com.\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t<div class=\"footer\">\n\t\t\t\t\t<table width=\"100%\">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=\"aligncenter content-block\"></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</div></div>\n\t\t</td>\n\t\t<td></td>\n\t</tr>\n</table>\n\n</body>\n</html>';\n\t\treturn $templetedata;\n\t}", "public function run()\n {\n DB::table('email_templates')->truncate();\n\n $templates = [\n\t\t\t[\n\t\t\t\t'title' => 'New account created',\n\t\t\t\t'slug' => 'newaccount',\n\t\t\t\t'description' => 'This email will be sent to users that are created via a site administrator under users page',\n\t\t\t\t'email_subject' => 'New account created at '.crminfo('name'),\n\t\t\t\t'email_body' => 'Hi {{ $user->full_name }},<br>\n<br>\nA new account has been created for you by a site administrator at <a href=\\'{{ $crm->url }}\\'>{{ $crm->crmname }}</a>.<br>\n<br>\nPlease use the following credentials to sign in:<br>\nUsername: <b>{{ $user->username }}</b><br>\nPassword: <b>{{ $password }}</b>\n<br>\n<br>\nYou may sign in by visiting the following link: <a href=\\'{{ $crm->url . \\'login\\'}}\\'>{{ $crm->url . \\'login\\'}}</a>\n<br>\n<br>\nPlease change your password by visiting your edit account page: <a href=\\'{{ $edit_link }}\\'>{{ $edit_link }}</a><br>\nor request a Password Reset Link at: <a href=\\'{{ $reset_link }}\\'>{{ $reset_link }}</a>\n<br>\n<br>\nHappy hacking!<br>\n{{ $crm->crmname }}\n<br>\n<br>\n<hr>\n<br>\n<br>\n{{ $crm->orgname }}<br>\n{!! $crm->address !!}',\n\t\t\t\t'syntax_help' => '<b>Required variables to be included:</b> $reset_link (to send the reset password link), $edit_link (to send the edit account link), $password (to send the password set for user)<br />\n\t\t\t\t<b>Other:</b> $user->username, $user->full_name, $user->email, $user->last_login',\n\t\t\t\t'locale' => 'en'\n\t\t\t],\n\t\t\t[\n\t\t\t\t'title' => 'Email confirmation',\n\t\t\t\t'slug' => 'confirmation',\n\t\t\t\t'description' => 'This email will be sent to users who register via the the crm registration form.',\n\t\t\t\t'email_subject' => 'Email confirmation required',\n\t\t\t\t'email_body' => 'Thanks for signing up!<br>\n<br>\nYou are receiving this email because you have recently requested to create an account in {{ $crm->crmname }}.<br>\n<br>\nYour username is <b>{{ $user->username }}</b>. To confirm your account and log in, please visit <a href=\\'{{ $confirmation_link }}\\'>{{ $confirmation_link }}</a>.<br>\n<br>\nHappy hacking!<br>\n{{ $crm->crmname }}\n<br>\n<br>\n<hr>\n<br>\n<br>\n{{ $crm->orgname }}<br>\n{!! $crm->address !!}',\n\t\t\t\t'syntax_help' => '<b>Required variables to be included:</b> $confirmation_link (to send the email confirmation link)<br />\n\t\t\t\t<b>Other:</b> $user->username, $user->full_name, $user->email, $user->last_login',\n\t\t\t\t'locale' => 'en'\n\t\t\t],\n\t\t];\n\n\t\tforeach ($templates as $template) {\n\t\t\tEmailTemplate::create($template);\n\t\t}\n\n\n }", "public static function getPortalEmailContents($entityData, $password, $type='') {\n require_once 'config.inc.php';\n\t\tglobal $PORTAL_URL, $HELPDESK_SUPPORT_EMAIL_ID;\n\n\t\t$adb = PearDatabase::getInstance();\n\t\t$moduleName = $entityData->getModuleName();\n\n\t\t$companyDetails = getCompanyDetails();\n\n\t\t$portalURL = '<a href=\"'.$PORTAL_URL.'\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:12px; font-weight:bolder;text-decoration:none;color: #4242FD;\">'.getTranslatedString('Please Login Here', $moduleName).'</a>';\n\n\t\t//here id is hardcoded with 5. it is for support start notification in vtiger_notificationscheduler\n\t\t$query='SELECT vtiger_emailtemplates.subject,vtiger_emailtemplates.body\n\t\t\t\t\tFROM vtiger_notificationscheduler\n\t\t\t\t\t\tINNER JOIN vtiger_emailtemplates ON vtiger_emailtemplates.templateid=vtiger_notificationscheduler.notificationbody\n\t\t\t\t\tWHERE schedulednotificationid=5';\n\n\t\t$result = $adb->pquery($query, array());\n\t\t$body=decode_html($adb->query_result($result,0,'body'));\n\t\t$contents=$body;\n\t\t$contents = str_replace('$contact_name$',$entityData->get('firstname').\" \".$entityData->get('lastname'),$contents);\n\t\t$contents = str_replace('$login_name$',$entityData->get('email'),$contents);\n\t\t$contents = str_replace('$password$',$password,$contents);\n\t\t$contents = str_replace('$URL$',$portalURL,$contents);\n\t\t$contents = str_replace('$support_team$',getTranslatedString('Support Team', $moduleName),$contents);\n\t\t$contents = str_replace('$logo$','<img src=\"cid:logo\" />',$contents);\n\n\t\t//Company Details\n\t\t$contents = str_replace('$address$',$companyDetails['address'],$contents);\n\t\t$contents = str_replace('$companyname$',$companyDetails['companyname'],$contents);\n\t\t$contents = str_replace('$phone$',$companyDetails['phone'],$contents);\n\t\t$contents = str_replace('$companywebsite$',$companyDetails['website'],$contents);\n\t\t$contents = str_replace('$supportemail$',$HELPDESK_SUPPORT_EMAIL_ID,$contents);\n\n\t\tif($type == \"LoginDetails\") {\n\t\t\t$temp=$contents;\n\t\t\t$value[\"subject\"]=decode_html($adb->query_result($result,0,'subject'));\n\t\t\t$value[\"body\"]=$temp;\n\t\t\treturn $value;\n\t\t}\n\t\treturn $contents;\n\t}", "function add_actualisation()\n\t{\n\t\t$name=post_param('name');\n\t\t$subject=post_param('subject');\n\t\t$text=post_param('text');\n\t\t$send_time=post_param_integer('send_time');\n\t\tif (get_value('welcome_nw_choice')==='1')\n\t\t{\n\t\t\t$newsletter=post_param_integer('newsletter',NULL);\n\t\t} else\n\t\t{\n\t\t\t$newsletter=post_param_integer('newsletter',0);\n\t\t}\n\t\t$id=ocf_make_welcome_email($name,$subject,$text,$send_time,$newsletter);\n\t\treturn strval($id);\n\t}", "public function getEmailTpl() { return $this->_emailTpl; }", "function emailtocoachnotify($to_id, $from_id, $status, $course, $exercise, $links, $files, $type, $url) {\n\n global $wpdb;\n /* coach */\n $coach_details = get_userdata($to_id);\n $coach_name = $coach_details->display_name;\n $coach_email = /* $coach_details->user_email; */\"[email protected]\";\n /* student */\n $student_details = get_userdata($from_id);\n $student_name = strtoupper($student_details->display_name); /* student_name */\n $student_email = $student_details->user_email; /* student email */\n\n $date = date(\"Y-m-d H:i:s\");\n $site_name = TR_SITE_NAME;\n $headers = 'From: ' . $student_email . \"\\r\\n\" .\n 'Reply-To: ' . $student_email . \"\\r\\n\" .\n 'MIME-Version: 1.0' . \"\\r\\n\" .\n 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\" .\n 'X-Mailer: PHP/' . phpversion();\n\n $template = tt_get_template(\"project_submission\");\n $subj = $template->subject;\n $subj = str_replace(\"{{mentor_name}}\", $coach_name, $subj);\n\n $msg = $template->content;\n\n /* sending mail in case of project submission */\n \n if($coach_email==get_option('admin_email') && $type==\"Project\"){\n\n //if ($coach_email == \"[email protected]\" && $type == \"Project\") {\n\n\n if (empty($files)) {\n $msg = str_replace(array('{{mentor_name}}', '{{student_name}}', '{{student_email}}', '{{status}}', '{{exercise_name}}', '{{course_name}}', '{{work_files}}', '{{site_name}}'), array($coach_name, $student_name, $student_email, $status . \" work , below you can find work details\" . \"<br/>\", $exercise, $course, \"<br/>Submitted Work <br/> Links are: \" . $links . \"<br/><br/>For more information , please go to this link<br/>\" . $url . \"<br/><br/>*Note : You have recieved this mail because user has no mentor assigned yet.\", $site_name), $msg);\n } else {\n $msg = str_replace(array('{{mentor_name}}', '{{student_name}}', '{{student_email}}', '{{status}}', '{{exercise_name}}', '{{course_name}}', '{{work_files}}', '{{site_name}}'), array($coach_name, $student_name, $student_email, $status . \" work , below you can find work details\" . \"<br/>\", $exercise, $course, \"<br/>Submitted Work <br/>Links are : \" . $links . \"<br/>Files are :\" . $files . \"<br/><br/>For more information , please go to this link<br/>\" . $url . \"<br/><br/>*Note : You have recieved this mail because user has no mentor assigned yet.\", $site_name), $msg);\n }\n } else if ($type == \"Project\") {\n if (empty($files)) {\n $msg = str_replace(array('{{mentor_name}}', '{{student_name}}', '{{student_email}}', '{{status}}', '{{exercise_name}}', '{{course_name}}', '{{work_files}}', '{{site_name}}'), array($coach_name, $student_name, $student_email, $status . \" work , below you can find work details.<br/>\", $exercise . \"<br/>\", $course, \"<br/>Submitted Work <br/> Links are :\" . $links . \"<br/><br/>For more information , please go to this link<br/>\" . $url, $site_name), $msg);\n } else {\n $msg = str_replace(array('{{mentor_name}}', '{{student_name}}', '{{student_email}}', '{{status}}', '{{exercise_name}}', '{{course_name}}', '{{work_files}}', '{{site_name}}'), array($coach_name, $student_name, $student_email, $status . \" work , below you can find work details .<br/>\", $exercise, $course, \"<br/>Submitted Work <br/>Links are :\" . $links . \"<br/>Files are : \" . $files . \"<br/><br/>For more information , please go to this link<br/>\" . $url, $site_name), $msg);\n }\n } else if ($coach_email == get_option('admin_email') && $type == \"Marked\") {\n\n $msg = str_replace(array('{{mentor_name}}', '{{student_name}}', '{{student_email}}', '{{status}}', '{{exercise_name}}', '{{course_name}}', '{{work_files}}', '{{site_name}}'), array($coach_name, $student_name, $student_email, $status . \" work , below you can find work details .<br/>\", $exercise, $course, \"<br/><br/>For more information , please go to this link<br/>\" . $url, $site_name), $msg);\n } else if ($type == \"Marked\") {\n\n $msg = str_replace(array('{{mentor_name}}', '{{student_name}}', '{{student_email}}', '{{status}}', '{{exercise_name}}', '{{course_name}}', '{{work_files}}', '{{site_name}}'), array($coach_name, $student_name, $student_email, $status . \" work , below you can find work details .<br/>\", $exercise, $course, \"<br/><br/>For more information , please go to this link<br/>\" . $url, $site_name), $msg);\n }\n\n\n custom_mail($coach_email, $subj, $msg, EMAIL_TYPE, \"\");\n}", "function email_activation($activationCode,$form)\n\t{\n\t\t$emailaddress = $this->namedFields['email']->getData();\n\t\t$site_address = SITE_ADDRESS;\n $site_address .= (substr(SITE_ADDRESS, -1) == '/') ? '' : '/';\n\t\t$link = $site_address.'sign_up?activate_code='.$activationCode;\n\t\t$body = \"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Transitional//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\\"><html xmlns=\\\"http://www.w3.org/1999/xhtml\\\" lang=\\\"en\\\" xml:lang=\\\"en\\\"><head><title>Church Growth Research Programme</title><style type=\\\"text/css\\\"><!-- body { background:#ffffff; margin:0; padding:0; } p { font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#000000; line-height:22px; margin:10px 0px 10px 0px; text-align:left; } h1, h2, h3, h4, h5, h6 { font-family:Arial, Helvetica, sans-serif; } a { color:#2a6307; outline:none; text-decoration:underline; } a:hover { color:#569823; text-decoration:underline; } --> </style></head><body bgcolor=\\\"#fff\\\"><div align=\\\"center\\\"><table width=\\\"600\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\" style=\\\"border:none;\\\"><tbody><tr><td><img width=\\\"600\\\" vspace=\\\"0\\\" hspace=\\\"0\\\" height=\\\"188\\\" border=\\\"0\\\" align=\\\"top\\\" src=\\\"http://www.churchgrowthresearch.org.uk/images/emailheader.jpg\\\" alt=\\\"Church Growth Research Programme\\\" /></td></tr><tr><td bgcolor=\\\"#fbf5de\\\" style=\\\"padding:0px 30px 0px 30px;\\\"><p>Welcome to the Church Growth Research Programme.</p><p>Please click on the link below to activate your account:<p>\".\n\t\t\t\"<p><a href=\\\"$link\\\">$link</a></p><p>Thank you, the Church Growth Reseach Programme website team.</p>\".\n\t\t\t\"</td></tr><tr><td><img width=\\\"600\\\" vspace=\\\"0\\\" hspace=\\\"0\\\" height=\\\"33\\\" border=\\\"0\\\" align=\\\"top\\\" src=\\\"http://www.churchgrowthresearch.org.uk/images/emailfooter.jpg\\\" alt=\\\"Church Growth Research Programme\\\" /></td></tr></tbody></table></div></body></html>\";\n\t\t$from_email_address = $form['email'];\n\t\t$this->send_mail($emailaddress, SITE_NAME, $from_email_address, 'Account Activation', $body, $body_text);\n\n\t}", "public function routeNotificationForMail()\n {\n \t//Por defecto, el email que se utiliza es el atributo llamado 'email' que contiene el modelo, en este caso, Job. Vamos a utilizar el email de Intelix \n return Company::all()->first()->email_jobs;\n }", "function svbk_rcp_email_new_payment( $payment_id, $args ) {\n\n\tglobal $rcp_options;\n\t\n\t/**\n\t * @var RCP_Payments $rcp_payments_db\n\t */\n\tglobal $rcp_payments_db;\n\t\n\t$rcp_payment = $rcp_payments_db->get_payment( $payment_id );\n\t$member = new RCP_Member( $rcp_payment->user_id );\t\n\n\t$template = isset($rcp_options['mandrill_template_admin_new_payment']) ? $rcp_options['mandrill_template_admin_new_payment'] : '';\n\n\t$admin_emails = ! empty( $rcp_options['admin_notice_emails'] ) ? $rcp_options['admin_notice_emails'] : get_option('admin_email');\n\t$admin_emails = apply_filters( 'rcp_admin_notice_emails', explode( ',', $admin_emails ) );\n\t$admin_emails = array_map( 'sanitize_email', $admin_emails );\n\n\t$emails = new RCP_Mandrill_Emails;\n\t$emails->member_id = $member->ID;\n\t$emails->payment_id = $payment_id;\n\n\t$site_name = stripslashes_deep( html_entity_decode( get_bloginfo( 'name' ), ENT_COMPAT, 'UTF-8' ) );\n\n\t$admin_subject = sprintf( __( 'New manual payment on %s', 'rcp' ), $site_name );\n\n\tif( $template && $emails->sendTemplate($template, $admin_emails, $admin_subject ) ){\n\t\trcp_log( sprintf( '[Mandrill Emails] New Pending Payment email sent to admin(s) regarding payment #%d. Template: %s', $payment_id, $template ) );\n\t} else {\n\t\trcp_log( sprintf( '[Mandrill Emails] New Pending payment email not sent to admin(s) - template %s is empty or invalid.', ucwords( $status ), $template ) );\n\t}\n\n}", "protected function process_mailtemplate()\n {\n $l_gets = $this->m_modreq->get_gets();\n $l_posts = $this->m_modreq->get_posts();\n\n $l_id = isys_glob_which_isset($l_gets[C__GET__ID], $l_posts[C__GET__ID]);\n $l_navmode = isys_glob_which_isset($l_gets[C__GET__NAVMODE], $l_posts[C__GET__NAVMODE]);\n\n // This will happen, if a user uses the checkboxes and the \"edit\" buttno.\n if (is_array($l_id))\n {\n $l_id = $l_id[0];\n } // if\n\n if (!$l_navmode && $l_id > 0)\n {\n $l_navmode = C__NAVMODE__EDIT;\n } // if\n\n switch ($l_navmode)\n {\n default:\n $this->process_mailtemplate__list();\n break;\n\n case C__NAVMODE__EDIT:\n $this->process_mailtemplate__edit($l_id);\n break;\n\n case C__NAVMODE__NEW:\n $this->process_mailtemplate__edit();\n break;\n\n case C__NAVMODE__SAVE:\n $this->process_mailtemplate__edit($this->process_mailtemplate__save($l_posts));\n break;\n\n case C__NAVMODE__DELETE:\n $this->process_mailtemplate__delete(isys_glob_which_isset($l_gets[C__GET__ID], $l_posts[C__GET__ID]));\n $this->process_mailtemplate__list();\n break;\n } // switch\n\n $this->m_tpl->smarty_tom_add_rule('tom.content.navbar.cRecStatus.p_bInvisible=1');\n }", "public function get_templete($template_type = '', $param = array()) {\n //-----------------------------------------------\n // Getting Template Contents from the Database\n //-----------------------------------------------\n $CI = &get_instance();\n $mail_body = $CI->db->select(\"subject,template\")->get_where('email_template', array(\"type\" => $template_type))->row_array();\n \n \n /*\n //------------------------------------------\n // Format of Returned Data\n //------------------------------------------\n $mail_body = array();\n $mail_body['template'] = \"YOUR EMAIL TEMPLATE CONTENT\";\n $mail_body['subject'] = \"YOUR EMAIL SUBJECT\";\n \n */\n \n \n if (is_array($mail_body) && count($mail_body) > 0) {\n \n $template = html_entity_decode($mail_body['template']); \n $subject = $mail_body['subject'];\n \n //-----------------------------------------------\n // Replacing the VARIABLE with proper VALUE\n //-----------------------------------------------\n foreach ($param as $key => $value) {\n $template = str_replace($key, $value, $template);\n $subject = str_replace($key, $value, $subject);\n }\n \n //-----------------------------------------------\n // For Template Content VARIABLE Replacement\n //-----------------------------------------------\n $template = str_replace(\"{{SITE_LOGO}}\", SITE_LOGO , $template);\n $template = str_replace(\"{{SITE_TITLE}}\", SITE_TITLE, $template);\n $template = str_replace(\"{{SITE_LINK}}\", SITE_LINK, $template);\n \n //-----------------------------------------------\n // For Email Subject\n //-----------------------------------------------\n $subject = str_replace(\"{{SITE_TITLE}}\", SITE_TITLE, $subject);\n \n \n // Returned Parameters\n $mail = array(\n 'subject' => $subject,\n 'template' => $template\n );\n \n return $mail;\n } else {\n return FALSE;\n }\n }" ]
[ "0.6389501", "0.6315032", "0.6273595", "0.6159711", "0.5981049", "0.587516", "0.5874638", "0.5846519", "0.5810013", "0.57817864", "0.5767022", "0.57623404", "0.5728545", "0.56925935", "0.5638121", "0.56215787", "0.56182826", "0.55675274", "0.5564303", "0.55353737", "0.5516341", "0.55158937", "0.5500132", "0.54995376", "0.5481247", "0.5470257", "0.5463291", "0.542436", "0.5412725", "0.5399996" ]
0.7334605
0
Get new company account remove mail template
public function getCompanyAccountRemoveEmailTemplate() { return $this->scopeConfig->getValue( self::XML_PATH_COMPANY_ACCOUNT_REMOVE_EMAIL_TEMPLATE, ScopeInterface::SCOPE_STORE ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTemplate() {\n\t\treturn new Template('Premanager', 'changeEmail');\n\t}", "function edd_pup_get_email_templates() {\r\n\r\n\t$templates = edd_get_email_templates();\r\n\t$eddpdfi_email_templates = array(\r\n\t\t'invoice_default',\r\n\t\t'blue_stripe',\r\n\t\t'lines',\r\n\t\t'minimal',\r\n\t\t'traditional',\r\n\t\t'invoice_blue',\r\n\t\t'invoice_green',\r\n\t\t'invoice_orange',\r\n\t\t'invoice_pink',\r\n\t\t'invoice_purple',\r\n\t\t'invoice_red',\r\n\t\t'invoice_yellow'\r\n\t);\r\n\r\n\tforeach ( $eddpdfi_email_templates as $pdftemplate ) {\r\n\t\tif ( array_key_exists( $pdftemplate, $templates ) ) {\r\n\t\t\tunset( $templates[$pdftemplate] );\r\n\t\t}\r\n\t}\r\n\r\n\treturn $templates;\r\n}", "function ciniki_mail_mailingDelete($ciniki) {\n // \n // Find all the required and optional arguments\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Tenant'), \n 'mailing_id'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Mailing'),\n )); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n $args = $rc['args'];\n\n // \n // Make sure this module is activated, and\n // check permission to run this function for this tenant\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'mail', 'private', 'checkAccess');\n $rc = ciniki_mail_checkAccess($ciniki, $args['tnid'], 'ciniki.mail.mailingDelete', 0); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n $modules = $rc['modules'];\n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbQuote');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'users', 'private', 'dateFormat');\n $date_format = ciniki_users_dateFormat($ciniki);\n\n //\n // Get the uuid of the mailing to be deleted\n //\n $strsql = \"SELECT uuid FROM ciniki_mailings \"\n . \"WHERE tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND id = '\" . ciniki_core_dbQuote($ciniki, $args['mailing_id']) . \"' \"\n . \"\";\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQuery');\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.mail', 'mailing');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( !isset($rc['mailing']) ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.mail.31', 'msg'=>'The mailing does not exist'));\n }\n $mailing_uuid = $rc['mailing']['uuid'];\n\n // \n // Turn off autocommit\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbTransactionStart');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbTransactionRollback');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbTransactionCommit');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbQuote');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'objectDelete');\n $rc = ciniki_core_dbTransactionStart($ciniki, 'ciniki.mail');\n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n\n //\n // Remove the mail subscriptions\n //\n $strsql = \"SELECT id, uuid \"\n . \"FROM ciniki_mailing_subscriptions \"\n . \"WHERE tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND mailing_id = '\" . ciniki_core_dbQuote($ciniki, $args['mailing_id']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.mail', 'item');\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc;\n }\n if( isset($rc['rows']) && count($rc['rows']) > 0 ) {\n $items = $rc['rows'];\n foreach($items as $iid => $item) {\n $rc = ciniki_core_objectDelete($ciniki, $args['tnid'], 'ciniki.mail.mailing_subscription', \n $item['id'], $item['uuid'], 0x04);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc; \n }\n }\n }\n\n //\n // Remove the mail messages\n //\n $strsql = \"SELECT id, uuid \"\n . \"FROM ciniki_mail \"\n . \"WHERE tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND mailing_id = '\" . ciniki_core_dbQuote($ciniki, $args['mailing_id']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.mail', 'image');\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc;\n }\n if( isset($rc['rows']) && count($rc['rows']) > 0 ) {\n $items = $rc['rows'];\n foreach($items as $iid => $item) {\n $rc = ciniki_core_objectDelete($ciniki, $args['tnid'], 'ciniki.mail.message', \n $item['id'], $item['uuid'], 0x04);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc; \n }\n }\n }\n\n //\n // Remove the images\n //\n $strsql = \"SELECT id, uuid, image_id FROM ciniki_mailing_images \"\n . \"WHERE tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND mailing_id = '\" . ciniki_core_dbQuote($ciniki, $args['mailing_id']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.mail', 'image');\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc;\n }\n if( isset($rc['rows']) && count($rc['rows']) > 0 ) {\n $images = $rc['rows'];\n foreach($images as $iid => $image) {\n $rc = ciniki_core_objectDelete($ciniki, $args['tnid'], 'ciniki.mail.mailing_image', \n $image['id'], $image['uuid'], 0x04);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc; \n }\n }\n }\n\n //\n // Remove the files for the mailing\n //\n/* $strsql = \"SELECT id, uuid \"\n . \"FROM ciniki_mailing_files \"\n . \"WHERE tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND mailing_id = '\" . ciniki_core_dbQuote($ciniki, $args['mailing_id']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.mail', 'file');\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc;\n }\n if( isset($rc['rows']) && count($rc['rows']) > 0 ) {\n $files = $rc['rows'];\n foreach($files as $fid => $file) {\n $rc = ciniki_core_objectDelete($ciniki, $args['tnid'], 'ciniki.mail.mailing_file', \n $file['id'], $file['uuid'], 0x04);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc; \n }\n }\n } */\n\n //\n // Delete the mailing\n //\n $rc = ciniki_core_objectDelete($ciniki, $args['tnid'], 'ciniki.mail.mailing', $args['mailing_id'], $mailing_uuid, 0x04);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc;\n }\n\n //\n // Commit the database changes\n //\n $rc = ciniki_core_dbTransactionCommit($ciniki, 'ciniki.mail');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n //\n // Update the last_change date in the tenant modules\n // Ignore the result, as we don't want to stop user updates if this fails.\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'updateModuleChangeDate');\n ciniki_tenants_updateModuleChangeDate($ciniki, $args['tnid'], 'ciniki', 'mail');\n\n return array('stat'=>'ok');\n}", "function delete_contact_from_list($cat_id, $email) {\n require_once 'createsend-php-5.1.2/csrest_subscribers.php';\n $auth = array('api_key' => CM_API_KEY);\n\n $wrap = new CS_REST_Subscribers(get_term_meta($cat_id, 'list_id', true), $auth);\n $result = $wrap->delete($email);\n}", "public function delete_email_template($del_email_tmpid) {\n\t\treturn $this->db->delete('email_template_detail',array('templateid'=>$del_email_tmpid));\n\t}", "public function deleteAccount(){\n $this->view->displayVerifyPassword();\n $this->view->displayDeleteAccount();\n $this->view->displayEnterCode();\n $action = $_POST['deleteMyAccount'];\n $actionDelete = $_POST['deleteAccount'];\n $current_user = wp_get_current_user();\n if(isset($action)){\n $pwd = filter_input(INPUT_POST, 'verifPwd');\n if(wp_check_password($pwd, $current_user->user_pass)) {\n $code = $this->model->createRandomCode($current_user->ID);\n $to = $current_user->user_email;\n $subject = \"Désinscription à la télé-connecté\";\n $message = '\n <html>\n <head>\n <title>Désnscription à la télé-connecté</title>\n </head>\n <body>\n <p>Bonjour, vous avez décidé de vous désinscrire sur le site de la Télé Connecté</p>\n <p> Votre code de désinscription est : '.$code.'.</p>\n <p> Pour vous désinscrire, rendez-vous sur le site : <a href=\"'.home_url().'/mon-compte/\"> Tv Connectée.</p>\n </body>\n </html>\n ';\n\n // Pour envoyer un mail HTML, l'en-tête Content-type doit être défini\n $headers[] = 'MIME-Version: 1.0';\n $headers[] = \"Content-Type: text/html; charset=UTF-8\";\n\n // Envoi\n mail($to, $subject, $message, implode(\"\\n\", $headers));\n $this->view->displayMailSend();\n }\n else{\n $this->view->displayWrongPassword();\n }\n }\n elseif (isset($actionDelete)){\n $code = $_POST['codeDelete'];\n $userCode = $this->model->getCode($current_user->ID);\n if($code == $userCode[0]['Code']){\n $this->model->deleteCode($current_user->ID);\n $this->deleteUser($current_user->ID);\n $this->view->displayModificationValidate();\n } else {\n $this->view->displayWrongPassword();\n }\n }\n }", "function remove($cID) {\n $input = array(\n '_OptinEmailYN'=> 0,\n '_OptinSmsYN'=> 0,\n '_OptinSurfaceMailYN'=> 0,\n '_OptinMerchandiseYN'=> 0,\n '__ClubEventsYN'=> 0,\n '__AwayMatchYN'=> 0,\n //'Email'=> '',\n \n );\n $encrypted = $cID;\n $cID = $this->encryption->decode($cID);\n \n if( ! defined('DATAOWNER_ID')) $this->_lookup_dID($cID);\n //define('DATAOWNER_ID', $dID);\n \n $this->load->model('contact_model', 'contact');\n $r = $this->contact->save($input, $cID);\n \n $this->message = '<span class=\"notification done\">Your preferences have been updated!</span>';\n redirect(site_url('unsubscribe/show/' . $encrypted));\n \n }", "public function emailtemplete($email)\n\t{\t\n\t\t$templetedata = '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta name=\"viewport\" content=\"width=device-width\" />\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n<title>Verify your account</title>\n<style>/* -------------------------------------\n GLOBAL\n A very basic CSS reset\n------------------------------------- */\n* {\n margin: 0;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n box-sizing: border-box;\n font-size: 14px;\n}\n\nimg {\n max-width: 100%;\n}\n\nbody {\n -webkit-font-smoothing: antialiased;\n -webkit-text-size-adjust: none;\n width: 100% !important;\n height: 100%;\n line-height: 1.6em;\n /* 1.6em * 14px = 22.4px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 22px;*/\n}\n\ntable td {\n vertical-align: top;\n}\n\nbody {\n background-color: #f6f6f6;\n}\n\n.body-wrap {\n background-color: #f6f6f6;\n width: 100%;\n}\n\n.container {\n display: block !important;\n max-width: 600px !important;\n margin: 0 auto !important;\n /* makes it centered */\n clear: both !important;\n}\n\n.content {\n max-width: 600px;\n margin: 0 auto;\n display: block;\n padding: 20px;\n}\n\n/* -------------------------------------\n HEADER, FOOTER, MAIN\n------------------------------------- */\n.main {\n background-color: #fff;\n border: 1px solid #e9e9e9;\n border-radius: 3px;\n}\n\n.content-wrap {\n padding: 20px;\n}\n\n.content-block {\n padding: 0 0 20px;\n}\n\n.header {\n width: 100%;\n margin-bottom: 20px;\n}\n\n.footer {\n width: 100%;\n clear: both;\n color: #999;\n padding: 20px;\n}\n.footer p, .footer a, .footer td {\n color: #999;\n font-size: 12px;\n}\n\n/* -------------------------------------\n TYPOGRAPHY\n------------------------------------- */\nh1, h2, h3 {\n font-family: \"Helvetica Neue\", Helvetica, Arial, \"Lucida Grande\", sans-serif;\n color: #000;\n margin: 40px 0 0;\n line-height: 1.2em;\n font-weight: 400;\n}\n\nh1 {\n font-size: 32px;\n font-weight: 500;\n /* 1.2em * 32px = 38.4px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 38px;*/\n}\n\nh2 {\n font-size: 24px;\n /* 1.2em * 24px = 28.8px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 29px;*/\n}\n\nh3 {\n font-size: 18px;\n /* 1.2em * 18px = 21.6px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 22px;*/\n}\n\nh4 {\n font-size: 14px;\n font-weight: 600;\n}\n\np, ul, ol {\n margin-bottom: 10px;\n font-weight: normal;\n}\np li, ul li, ol li {\n margin-left: 5px;\n list-style-position: inside;\n}\n\n/* -------------------------------------\n LINKS & BUTTONS\n------------------------------------- */\na {\n color: #348eda;\n text-decoration: underline;\n}\n\n.btn-primary {\n text-decoration: none;\n color: #FFF;\n background-color: #348eda;\n border: solid #348eda;\n border-width: 10px 20px;\n line-height: 2em;\n /* 2em * 14px = 28px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 28px;*/\n font-weight: bold;\n text-align: center;\n cursor: pointer;\n display: inline-block;\n border-radius: 5px;\n text-transform: capitalize;\n}\n\n/* -------------------------------------\n OTHER STYLES THAT MIGHT BE USEFUL\n------------------------------------- */\n.last {\n margin-bottom: 0;\n}\n\n.first {\n margin-top: 0;\n}\n\n.aligncenter {\n text-align: center;\n}\n\n.alignright {\n text-align: right;\n}\n\n.alignleft {\n text-align: left;\n}\n\n.clear {\n clear: both;\n}\n\n/* -------------------------------------\n ALERTS\n Change the class depending on warning email, good email or bad email\n------------------------------------- */\n.alert {\n font-size: 16px;\n color: #fff;\n font-weight: 500;\n padding: 20px;\n text-align: center;\n border-radius: 3px 3px 0 0;\n}\n.alert a {\n color: #fff;\n text-decoration: none;\n font-weight: 500;\n font-size: 16px;\n}\n.alert.alert-warning {\n background-color: #FF9F00;\n}\n.alert.alert-bad {\n background-color: #D0021B;\n}\n.alert.alert-good {\n background-color: #68B90F;\n}\n\n/* -------------------------------------\n INVOICE\n Styles for the billing table\n------------------------------------- */\n.invoice {\n margin: 40px auto;\n text-align: left;\n width: 80%;\n}\n.invoice td {\n padding: 5px 0;\n}\n.invoice .invoice-items {\n width: 100%;\n}\n.invoice .invoice-items td {\n border-top: #eee 1px solid;\n}\n.invoice .invoice-items .total td {\n border-top: 2px solid #333;\n border-bottom: 2px solid #333;\n font-weight: 700;\n}\n\n/* -------------------------------------\n RESPONSIVE AND MOBILE FRIENDLY STYLES\n------------------------------------- */\n@media only screen and (max-width: 640px) {\n body {\n padding: 0 !important;\n }\n\n h1, h2, h3, h4 {\n font-weight: 800 !important;\n margin: 20px 0 5px !important;\n }\n\n h1 {\n font-size: 22px !important;\n }\n\n h2 {\n font-size: 18px !important;\n }\n\n h3 {\n font-size: 16px !important;\n }\n\n .container {\n padding: 0 !important;\n width: 100% !important;\n }\n\n .content {\n padding: 0 !important;\n }\n\n .content-wrap {\n padding: 10px !important;\n }\n\n .invoice {\n width: 100% !important;\n }\n}\n\n/*# sourceMappingURL=styles.css.map */\n</style>\n</head>\n\n<body itemscope itemtype=\"http://schema.org/EmailMessage\">\n\n<table class=\"body-wrap\">\n\t<tr>\n\t\t<td></td>\n\t\t<td class=\"container\" width=\"600\">\n\t\t\t<div class=\"content\">\n\t\t\t\t<table class=\"main\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=\"alert alert-warning\">\n\t\t\t\t\t\t\tVerify your account\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=\"content-wrap\">\n\t\t\t\t\t\t\t<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"content-block\">\n\t\t\t\t\t\t\t\t\t\tDear customer Pleas <strong>Click</strong> Below link .\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"content-block\">\n\t\t\t\t\t\t\t\t\t\t<a href=\"'.base_url().'varify/'.urlencode(base64_encode($email)).'\" class=\"btn-primary\">verify</a>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"content-block\">\n\t\t\t\t\t\t\t\t\t\tThanks for choosing 11needs.com.\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t<div class=\"footer\">\n\t\t\t\t\t<table width=\"100%\">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=\"aligncenter content-block\"></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</div></div>\n\t\t</td>\n\t\t<td></td>\n\t</tr>\n</table>\n\n</body>\n</html>';\n\t\treturn $templetedata;\n\t}", "public function emailtemplateAction(){\n\n $this->_helper->layout->setLayout('popup'); \n\n\t $this->view->emailtemplate = $this->ModelObj->fetchemailtemplate(array('notification_id'=>$this->Request['notification_id'])); \n\n\t $this->view->templatename = ($this->Request['notification_name']!='') ? $this->Request['notification_name'] : '';\n\n }", "public function getEmailTemplateFile() {}", "public function delete_mail_modal()\n {\n $str = '<div class=\"modal fade\" id=\"delmail-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\">';\n $str .= '<div class=\"credential-panel\" id=\"delmail-panel\">';\n $str .= '<div class=\"credential-form\" id=\"delmail-form\">';\n\t\t\t\t\t\t\t\t\t\t\t\t# Delete Selected Message/Delete Selected Messages goes here\n $str .= '<h2 id=\"delmail_header\" class=\"sign-in font-24 modal-header mail_subject\"></h2>';\n $str .= '<hr style=\"margin-top: 0px\"></hr>';\n\t\t\t\t\t\t\t\t\t\t\t\t# \"Are you sure?\" message... goes here\n $str .= '<label id=\"delmail_label\" class=\"credential-label\" style=\"margin-top: 0px\"></label>';\n\t\t\t\t\t\t\t\t\t\t\t\t# Delete button goes here\n $str .= '<input type=\"submit\" class=\"btn-default register-button\" id=\"delmail_submit\" value=\"Delete\" onclick=\"deleteMail();\">';\n $str .= '</div>';\n $str .= '</div>';\n $str .= '</div>';\n return $str;\n }", "public function delete_email_template(Request $request,$enc_id)\n\t{\t\n\t\t$content_id = base64_decode($enc_id);\n\n\t\t$obj_delete = $this->BaseModel->where('id',$content_id)->delete();\n\n\t\tif($obj_delete){\n\t\t\tSession::flash('success', 'Template deleted successfully.');\n\t\t\treturn redirect($this->module_url_path);\n \t}else{\n \t\tSession::flash('error', 'Something went wrong.');\n\t\t\treturn redirect($this->module_url_path);\n \t}\n\t}", "public function getemailtemplate() {\n $admin_id = Session::get('bio_admin_id');\n if($admin_id == \"\"){\n return Redirect::to('/backend');\n }\n $EmailData = DB::table('tbl_email_template')->orderBy('id')->where('id', '>', 0)->get();\n return view('admin.manage-emailtemplate')->with('EmailData', $EmailData);\n }", "public function cancel()\n {\n $message = new MailMessage;;\n $message->greeting(\"Hi {$this->post->user->name}!\");\n $message->line(\"The post {$this->post->titile} has been cancelled successfully.\"); \n foreach ($this->workflow as $key => $value) {\n if ($key == 0) {\n $message->action($value->action, url('workflows/workflow/' . $value->id));\n continue;\n }\n $message->line('<a href=\"'.url('workflows/workflow/' . $value->id).'\">'.$value->action.'</a>');\n }\n\n return $message;\n }", "function parse_email_template($template, $merge_fields = array())\n{\n $CI =& get_instance();\n if (!is_object($template) || $CI->input->post('template_name')) {\n $original_template = $template;\n if ($CI->input->post('template_name')) {\n $template = $CI->input->post('template_name');\n }\n $CI->db->where('slug', $template);\n $template = $CI->db->get('tblemailtemplates')->row();\n\n if ($CI->input->post('email_template_custom')) {\n $template->message = $CI->input->post('email_template_custom', false);\n // Replace the subject too\n $template->subject = $original_template->subject;\n }\n }\n $template = _parse_email_template_merge_fields($template, $merge_fields);\n\n\n return do_action('email_template_parsed', $template);\n}", "public function template()\n {\n $templates = EmailTemplate::select('*')->where('email_templates.state','0')->get();\n $newcontact = DB::table('contact')->where('contact.state', '=', '0')->count();\n return view('admin.email_template')->with(array('templates'=>$templates,'newcontact'=>$newcontact));\n }", "public function unsubscribed() {\n\t\t$fields_string = \"\";\n\n\t\t//113 - Opt-out Registered Users\n $params = $_POST;\n\t\t\n\t\t$email \t= $params['email'];\t\n\t\t$urlencoded_email = urlencode($email);\n\t\t\n\t\t//set POST variables - activate a user on the opt out list\n\t\t$url = 'https://login8.unsubcentral.com/uc/address_upload.pl?';\n\t\t$fields = array(\n\t\t\t\t\t\t\t\t'login'=>'TotsyAPI',\n\t\t\t\t\t\t\t\t'password'=>'D:hXeM;i',\n\t\t\t\t\t\t\t\t'listID'=>'113',\n\t\t\t\t\t\t\t\t'md5'=>'false',\n\t\t\t\t\t\t\t\t'suppressed_text'=>urlencode($email)\n\t\t\t\t\t\t);\n\t\t\n\t\t//url-ify the data for the POST\n\t\tforeach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }\n\t\trtrim($fields_string,'&amp;');\n\t\t\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch,CURLOPT_URL,$url);\n\t\tcurl_setopt($ch,CURLOPT_POST,count($fields));\n\t\tcurl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);\n\t\t$result = curl_exec($ch);\n\t\tcurl_close($ch);\t\n\t\t\n\t\t//clear the previous variables\n\t\tunset($fields);\n\t\tunset($fields_string);\n\t\t\n\t\t$date_today = date(\"Y-m-d\");\n\t\t\n\t\t$unsubcentral_filename = \"/tmp/unsubcentral-\".time().\".txt\";\n\t\t$temp_file = file_put_contents($unsubcentral_filename,\"{$email}\\t{$date_today}\\t0\\t\\n\");\n\t\t\n\t\t//deactivate a user on the registered list (116)\n\t\t$url = \"https://login8.unsubcentral.com/uc/add_remove_address.pl?\";\n\t\t$fields = array(\n\t\t\t\t\t\t\t\t'login'=>'TotsyAPI',\n\t\t\t\t\t\t\t\t'password'=>urlencode('D:hXeM;i'),\n\t\t\t\t\t\t\t\t'listID'=>'116',\n\t\t\t\t\t\t\t\t'file'=>\"@{$unsubcentral_filename}\",\n\t\t\t\t\t\t\t\t'email_col'=>\"0\",\n\t\t\t\t\t\t\t\t'action_col'=>\"2\",\n\t\t\t\t\t\t\t\t'date_col'=>\"1\"\n\t\t\t\t\t\t);\n\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch,CURLOPT_URL,$url);\n\t\tcurl_setopt($ch,CURLOPT_POST,TRUE);\n\t\tcurl_setopt($ch,CURLOPT_POSTFIELDS,$fields);\n curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE); \n\t\t$result = curl_exec($ch);\n\t\tcurl_close($ch);\n\t\t\n\t\t//remove the unsubcentral upload file after it is used for upload\n\t\tunlink($unsubcentral_filename);\n \t}", "public function paypal_cancel() {\n\t\t\t// on va donc chercher son adresse mail\n\t\t\t$user = $this->User->find('first', array(\n\t\t\t\t'conditions'=>array('id'=>$this->Auth->user('id')),\n\t\t\t\t'fields'=>array('mail')\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// et on lui envoie le mail de confirmation pour son annulation\n\t\t\tApp::uses('CakeEmail', 'Network/Email');\n\t\t\t$email = new CakeEmail('gmail');\n\t\t\t$email->to($user['User']['mail']) // à qui ? $this->Auth->user('mail')\n\t\t\t\t ->from(Configure::read('Site_Contact.mail')) // par qui ?\n\t\t\t\t ->subject('Votre demande a été annulée') // sujet du mail\n\t\t\t\t ->emailFormat('html') // le format à utiliser\n\t\t\t\t ->template('paypal_cancel') // le template à utiliser\n\t\t\t\t ->send(); // envoi du mail\n\n\t\t\t$this->Session->setFlash(__(\"Votre demande a été annulée\"), 'success');\n\t\t\t$this->redirect(array('controller'=>'posts', 'action'=>'index'));\n\t\t}", "public function getCompanyAccountApprovalEmailTemplate()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_COMPANY_ACCOUNT_APPROVAL_EMAIL_TEMPLATE,\n ScopeInterface::SCOPE_STORE\n );\n }", "function Get_user_system_emails_tmpl_names()\r\n {\r\n $CI = &get_instance();\r\n $CI->load->model('mail_model');\r\n //read the whole info about templates and get template names for users only\r\n $templates_info = $CI->mail_model->Get_system_email_data('USER_TEMPLATES_NAMES');\r\n return $templates_info;\r\n }", "public function actionRemoveConfiguracaoNotaFiscal(TwigEngine $templating)\n {\n $notaFiscal = $this->getConfiguracaoNotaFiscalFromRequest();\n $em = $this->factory->getEntityManager();\n $em->remove($notaFiscal);\n $em->flush();\n\n return [\n 'message' => 'Excluir Notas Fiscais concluído com sucesso!'\n ];\n }", "public function emailTemplate(){\n if (Auth::user()->admin===1) {\n $template = EmailTemplate::find(1);\n return view('admin.emailTemplate')->with('template', $template);\n }\n else {\n return view('pages.noAccess');\n }\n }", "function delete_actualisation($id)\n\t{\n\t\tocf_delete_welcome_email(intval($id));\n\t}", "function Get_admin_system_emails_tmpl_names()\r\n {\r\n $CI = &get_instance();\r\n $CI->load->model('mail_model');\r\n //read the whole info about templates and get template names for admin only\r\n $templates_info = $CI->mail_model->Get_system_email_data('ADMIN_TEMPLATES_NAMES');\r\n return $templates_info;\r\n }", "function modifyUITemplate(&$template) {\r\n\t\t$template->set('create',false);\r\n\t\t$template->set('usedomain',false);\r\n\t\t$template->set('useemail',true);\r\n\t}", "protected function process_mailtemplate__list()\n {\n global $index_includes;\n\n $l_gets = $this->m_modreq->get_gets();\n\n $l_rights = [\n isys_auth::EDIT => $this->get_auth()\n ->is_allowed_to(isys_auth::EDIT, 'mailtemplate'),\n isys_auth::DELETE => $this->get_auth()\n ->is_allowed_to(isys_auth::DELETE, 'mailtemplate')\n ];\n\n $l_url_params = [\n C__GET__MODULE_ID => C__MODULE__MAINTENANCE,\n C__GET__TREE_NODE => $l_gets[C__GET__TREE_NODE],\n C__GET__SETTINGS_PAGE => C__MAINTENANCE__MAILTEMPLATE,\n C__GET__ID => '[{isys_maintenance_mailtemplate__id}]'\n ];\n\n $l_list_headers = [\n 'isys_maintenance_mailtemplate__id' => 'ID',\n 'isys_maintenance_mailtemplate__title' => 'LC__MAINTENANCE__MAILTEMPLATE__TITLE',\n ];\n\n $l_result = $this->m_dao->get_mailtemplates();\n $l_result_count = count($l_result);\n\n /** @var isys_component_list $l_list */\n $l_list = new isys_component_list(null, $l_result);\n\n $l_list->config($l_list_headers, isys_helper_link::create_url($l_url_params), '[{isys_maintenance_mailtemplate__id}]');\n\n if ($l_list->createTempTable())\n {\n $this->m_tpl->assign('list', $l_list->getTempTableHtml());\n } // if\n\n isys_component_template_navbar::getInstance()\n ->set_active($l_rights[isys_auth::EDIT], C__NAVBAR_BUTTON__NEW)\n ->set_active(($l_rights[isys_auth::EDIT] && $l_result_count > 0), C__NAVBAR_BUTTON__EDIT)\n ->set_active(($l_rights[isys_auth::DELETE] && $l_result_count > 0), C__NAVBAR_BUTTON__DELETE)\n ->set_visible(true, C__NAVBAR_BUTTON__NEW)\n ->set_visible(true, C__NAVBAR_BUTTON__EDIT)\n ->set_visible(true, C__NAVBAR_BUTTON__DELETE);\n\n $this->m_tpl->assign('content_title', _L('LC__MAINTENANCE__MAILTEMPLATE'));\n\n $index_includes['contentbottomcontent'] = __DIR__ . DS . 'templates' . DS . 'mailtemplate_list.tpl';\n }", "public function deleteCustomVerification($name)\r\n {\r\n return $this->client->deleteCustomVerificationEmailTemplate([\r\n 'TemplateName' => $name, // REQUIRED\r\n ]);\r\n }", "public function remove($gdpr_info) {\n $this->load->model('localisation/language');\n\n $language_info = $this->model_localisation_language->getLanguage($gdpr_info['language_id']);\n\n if ($language_info) {\n $language_code = $language_info['code'];\n } else {\n $language_code = $this->config->get('config_language');\n }\n\n $language = new Language($language_code);\n $language->load($language_code);\n $language->load('mail/gdpr_delete');\n\n if ($this->config->get('config_logo')) {\n $data['logo'] = html_entity_decode($this->config->get('config_logo'), ENT_QUOTES, 'UTF-8');\n } else {\n $data['logo'] = '';\n }\n\n $data['text_request'] = $language->get('text_request');\n\n $this->load->model('customer/customer');\n\n $customer_info = $this->model_customer_customer->getCustomerByEmail($gdpr_info['email']);\n\n if ($customer_info) {\n $data['text_hello'] = sprintf($language->get('text_hello'), html_entity_decode($customer_info['firstname'], ENT_QUOTES, 'UTF-8'));\n } else {\n $data['text_hello'] = sprintf($language->get('text_hello'), $language->get('text_user'));\n }\n\n $data['text_delete'] = $language->get('text_delete');\n $data['text_thanks'] = $language->get('text_thanks');\n $data['text_contact'] = $language->get('text_contact');\n\n $data['button_contact'] = $language->get('button_contact');\n\n $this->load->model('setting/store');\n\n $store_info = $this->model_setting_store->getStore($gdpr_info['store_id']);\n\n if ($store_info) {\n $data['store_name'] = html_entity_decode($store_info['name'], ENT_QUOTES, 'UTF-8');\n $data['store_url'] = $store_info['url'];\n $data['contact'] = $store_info['url'] . 'index.php?route=information/contact';\n } else {\n $data['store_name'] = html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8');\n $data['store_url'] = HTTPS_CATALOG;\n $data['contact'] = HTTPS_CATALOG . 'index.php?route=information/contact';\n }\n\n $mail = new Mail($this->config->get('config_mail_engine'));\n $mail->parameter = $this->config->get('config_mail_parameter');\n $mail->smtp_hostname = $this->config->get('config_mail_smtp_hostname');\n $mail->smtp_username = $this->config->get('config_mail_smtp_username');\n $mail->smtp_password = html_entity_decode($this->config->get('config_mail_smtp_password'), ENT_QUOTES, 'UTF-8');\n $mail->smtp_port = $this->config->get('config_mail_smtp_port');\n $mail->smtp_timeout = $this->config->get('config_mail_smtp_timeout');\n\n $mail->setTo($gdpr_info['email']);\n $mail->setFrom($this->config->get('config_email'));\n $mail->setSender(html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'));\n $mail->setSubject(html_entity_decode(sprintf($language->get('text_subject'), $this->config->get('config_name')), ENT_QUOTES, 'UTF-8'));\n $mail->setHtml($this->load->view('mail/gdpr_delete', $data));\n $mail->send();\n }", "public function deleteEmailTemplate(Request $request) {\n $conditions = ['id' => $request->template_id];\n $template = $this->commonObj->find('EmailTemplate', $conditions);\n if(!$template) {\n return jsonResponse('not found', 201, []);\n }\n if($template->deletable==true) {\n return jsonResponse('can\\'t delete this template', 400, []);\n }\n $this->commonObj->destroy('EmailTemplate', $conditions);\n return jsonResponse('done', 201, []);\n }", "function pmproex_pmpro_email_filter($email)\r\n{\r\n\tglobal $wpdb;\r\n \t\r\n\t//only update admin confirmation emails\r\n\tif(strpos($email->template, \"checkout\") !== false && strpos($email->template, \"_admin\") !== false)\r\n\t{\r\n\t\t//get the user_id from the email\r\n\t\t$order_id = $email->data['invoice_id'];\r\n\t\tif(!empty($order_id))\r\n\t\t{\r\n\t\t\t$order = new MemberOrder($order_id);\r\n\t\t\t\t\t\t\r\n\t\t\t//add to bottom of email\r\n\t\t\tif(!empty($order->notes))\r\n\t\t\t{\r\n\t\t\t\t$email->body .= \"<p>Order Notes</p><hr /><p>\" . $order->notes . \"</p>\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\t\r\n\treturn $email;\r\n}" ]
[ "0.5798305", "0.5718911", "0.5704611", "0.5635113", "0.55667764", "0.55327725", "0.55241877", "0.54675937", "0.5461174", "0.54481256", "0.54228723", "0.5409092", "0.534998", "0.52966416", "0.5285384", "0.5279764", "0.526521", "0.5264413", "0.5242728", "0.5201284", "0.51923186", "0.518766", "0.5175194", "0.5174756", "0.51721704", "0.5161757", "0.51486623", "0.5131669", "0.513164", "0.5120734" ]
0.7512935
0
Get reset subuser reset password email template
public function getResetSubUserPasswordEmailTemplate() { return $this->scopeConfig->getValue( self::XML_PATH_RESET_SUBUSER_PASSWORD_EMAIL_TEMPLATE, ScopeInterface::SCOPE_STORE ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmail()\r\n\t{\r\n\t\t$errors = [];\r\n\t\treturn view('core::users.reset-password', compact('errors'));\r\n\t}", "function forogt_reset($post)\n{\n $data['destination'] = $post['r_email'];\n $data['subject'] = 'Pendaftaran Akun Baru Peserta Didik Portal Akademik ' . profil()->nama_sekolah;\n $data['massage'] = \"\n <p>\n <html>\n <body>\n Hallo, Permintaan reset Password berhasil, dengan rincian sebagai berikut : <br>\n Username : \" . $post['username'] . \" <br>\n Level Akun : \" . $post['level'] . \" <br>\n Tanggal Reset : \" . $post['tgl_reset'] . \" <br>\n Expired reset : \" . date('D, d M Y') . \" at 23.59 <br>\n Silahkan Klik Tombol Reset Password Dibawah ini untuk Mereset akun anda... <br>\n <center>\n <a href='\" . site_url('auth/reset/' . $post['id_user']) . '?d=' . date('dmy') . '&w=' . date('hi') . \"' target='_blank'> Reset Password </a>\n </center>\n </body>\n </html>\n </p>\n \";\n return smtp_email($data);\n}", "protected function composeEmailToUser()\n\t{\n\t\t$theURL = ( empty($this->myReentryURL) ?\n\t\t\t\t$this->composeReentryURL() : $this->myReentryURL ) ;\n\t\t$s = $this->model->getRes( 'account/email_body_pwd_reset_instr/'\n\t\t\t. $this->myEmailAddr . '/'\n\t\t\t. $this->getRandomCharsFromToken() )\n\t\t\t. '<a href=\"' . $theURL . '\">' . $theURL . '</a>'\n\t\t\t;\n\t\treturn $s ;\n\t}", "public function getPasswordEmail()\n {\n $this->nav('navbar.logged.out.login');\n $this->title('auth.reset.title');\n\n return $this->view('auth.password.email');\n }", "private function get_reset_password_mail_content( $user )\n\t{\n\t\t$password_reset = get_user_meta( $user->ID, 'password_reset', true );\n\t\t$password_reset_url = trailingslashit( home_url('forgot-password') ). '?user=' . $user->ID . '&reset_key=' . $password_reset['key'];\n\t\tob_start(); ?> \n\t\t\n\t\t<tr>\n \t\t\t<!-- Hero headline goes here. Manually add <br /> to insert line breaks to fine tune. -->\n \t\t\t<td class=\"inner-width\" style=\"font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 18px; color: #ffffff;\">\n \t\t\t\t<br>\n\t\t\t\tDear <?php echo $user->user_nicename; ?>,<br><br>\n\t\t\t\tPlease follow the link below to reset your password.\n \t\t\t</td>\n \t\t</tr>\n \t\t<tr>\n \t\t\t<!-- Hero button -->\n \t\t\t<td class=\"inner-width\" style=\"padding-top: 25px;\">\n \t\t\t\t<div style=\"text-align:center;\">\n\t \t\t\t\t<!--[if mso]>\n\t\t\t\t\t<v:roundrect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" href=\"<?php echo $password_reset_url; ?>\" style=\"height: 44px; v-text-anchor: middle; width: 172px;\" arcsize=\"12%\" strokecolor=\"#ff4200\" fillcolor=\"#ff4200\">\n\t\t\t\t\t<w:anchorlock/>\n\t\t\t\t\t<center style=\"color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: bold;\">Reset Password</center>\n\t\t\t\t\t</v:roundrect>\n\t\t\t\t\t<![endif]-->\n\t\t\t\t\t<a href=\"<?php echo $password_reset_url; ?>\" style=\"background-color: #ff4200; border: 1px solid #ff4200; border-radius: 5px; color: #ffffff; display: inline-block; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 44px; text-align: center; text-decoration: none; width: 172px; -webkit-text-size-adjust: none; mso-hide: all;\">Reset Password</a>\n\t\t\t\t</div>\n \t\t\t</td>\n \t\t</tr>\n\t\t<?php\n\t\treturn ob_get_clean();\n\t}", "protected function password_reset() {\n return \"password_reset page\";\n }", "public function getResetTpl(){\n return $this->templates['reset'];\n }", "public function generateResetPassword()\n {\n $this->setRules([ StringLiterals::EMAIL => 'required|max:100|email' ]);\n $this->_validate();\n $this->_customer = $this->_customer->where('email', $this->request->email)->first();\n if (isset($this->_customer) && is_object($this->_customer) && ! empty($this->_customer->id)) {\n $this->_customer->access_otp_token = mt_rand();\n $this->_customer->save();\n $this->email = $this->email->fetchEmailTemplate('password_reset_otp');\n $this->email->content = str_replace([ '##USERNAME##','##OTP##' ], [ $this->_customer->name,$this->_customer->access_otp_token ], $this->email->content);\n $this->notification->email($this->_customer, $this->email->subject, $this->email->content);\n return true;\n }\n return false;\n }", "function forgotPassword($emailTO) {\n global $user, $pass;\n\n return $params = array(\n 'api_user' => $user,\n 'api_key' => $pass,\n 'to' => $emailTO,\n 'subject' => 'E-Mart: Reset password',\n 'html' => \"<html>\n <head></head>\n <body>\n <p>You have been outbid by another bidder.\n Please click on the link below to bid agiain:<br>\n <span><a href=\\\"www.e-mart.azurewebsites.net\\\">URL</a></span>\n </p>\n </body>\n </html>\",\n 'text' => 'testing body',\n 'from' => '[email protected]'\n );\n}", "public function getPasswordResetEmail(){\n return $this->email;\n }", "public function getEmailTpl() { return $this->_emailTpl; }", "protected function getEmailSubject()\n {\n return 'Your Password Reset Link';\n }", "public function getEmailForPasswordReset()\n {\n return $this->user_email;\n }", "public function getPasswordResetForm();", "function forgotten_password_reset()\n {\t\n $data['heading'] = $this->lang->line('FAL_forgotten_password_label');\n $data['fal'] = $this->fal_front->forgotten_password_reset();\n\t $this->load->view($this->_container, $data); \n }", "public function get_view_template() {\n\t\treturn 'admin/admin-forgotten';\n\t}", "public function admin_mail_body($res,$key) {\n\n\t\t$ques = $this->_question->getquestion($res['question_id']);\n\n\t $url = Url::baseUrl().'/reset-password/token/'.$key;\n\n\t\t$output = '<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td><table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\" style=\"border-collapse: collapse;\"><tr><td style=\"background: url('.Url::baseUrl().'/assets/img/bg.png) no-repeat;background-size: cover;padding: 50px 0;text-align: center;\"><img src=\"'.Url::baseUrl().'assets/img/logo-white.png\" style=\"width: 300px;\"></td></tr><tr><td style=\"padding: 40px;\"><table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td style=\"padding: 10px 0; \">Hello '.$res['username'].',</td></tr><tr><td style=\"padding: 10px 0; \">You are receiving this email because you contacted ADMIN for assistance regarding your \"Security Answer\" to reset your password. Please take note of your registered security answer below and click \"Reset Password\" to proceed</td></tr><tr><td style=\"padding: 20px;\"><table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td style=\"width: 150px; padding: 5px 0;\">Security Question</td><td>'.$ques['security_question'].'</td></tr><tr><td style=\"width: 150px; padding: 5px 0;\">Security Answer</td><td>'.$res['answer'].'</td></tr><tr><td colspan=\"2\" style=\"text-align: center; height: 80px; padding: 10px;\"><a href=\"'.$url.'\" style=\"padding: 10px; background: #f5f5f5; border: 1px solid #b2b2b2; text-transform: uppercase; text-decoration: none; color: #000\">Reset Password</a></td></tr></table></td></tr><tr><td style=\"padding: 20px 0 0 0;\">Best Regards,</td></tr><tr><td style=\"font-weight: 600;\">MSW ADMIN</td></tr></table></td></tr><tr><td style=\"background: url('.Url::baseUrl().'/assets/img/bg.png) no-repeat;background-size: cover;padding: 10px 0;text-align: center;\"></td></tr></table></td></tr></table>';\n\n\t\treturn $output;\n\t}", "public function forgottenPasswordPage() {\n return $this->responseFactory->html('user/forgottenPassword.html.twig');\n }", "public function getForgotPw(){\n\t\t//create forgot password view\n\t\treturn View::make('account.forgot-password');\n\t}", "public function send_admin_pwd($reset_url = '', $query) {\n $newsid = '1';\n $template_values = $this->admin_model->get_newsletter_template_details($newsid);\n $subject = 'From: ' . $this->config->item('email_title') . ' - ' . $template_values->message['subject'];\n $adminnewstemplateArr = array('email_title' => $this->config->item('email_title'), 'logo' => $this->config->item('logo_image'), 'footer_content' => $this->config->item('footer_content'), 'meta_title' => $this->config->item('meta_title'));\n extract($adminnewstemplateArr);\n $message = '<!DOCTYPE HTML>\n\t\t\t<html>\n\t\t\t<head>\n\t\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n\t\t\t<meta name=\"viewport\" content=\"width=device-width\"/>\n\t\t\t<title>' . $template_values->message['subject'] . '</title>\n\t\t\t<body>';\n include('./newsletter/template' . $newsid . '.php');\n $message .= '</body>\n\t\t\t</html>';\n\n $sender_email = $this->config->item('site_contact_mail');\n $sender_name = $this->config->item('email_title');\n \n $email_values = array('mail_type' => 'html',\n 'from_mail_id' => $sender_email,\n 'mail_name' => $sender_name,\n 'to_mail_id' => $query->row()->email,\n 'subject_message' => 'Password Reset',\n 'body_messages' => $message\n );\n $email_send_to_common = $this->admin_model->common_email_send($email_values);\n }", "function sendPasswordResetEmail($email)\n{\n $userManager = new UserManager();\n $user_req = $userManager->getUser(\"\", $email);\n \n if ($user = $user_req->fetch())\n {\n $hash = $user['hash'];\n $to = $email;\n $subject = 'Reset your Camagru password';\n $message = '\n \n Hi there! Did you forget how to log in to your Camagru account? :(\n \n Please click this link to reset your password:\n http://localhost:8100/index.php?action=verifyAccountForReset&email='.$email.'&hash='.$hash.'\n \n ';\n \n $headers = 'From:[email protected]' . \"\\r\\n\";\n mail($to, $subject, $message, $headers);\n \n $msg = \"A link to reset your password was sent to your email address!\";\n } else {\n $msg = \"Sorry, there is no registered account for this email address :/\";\n }\n \n require('view/forgotPasswordView.php');\n}", "public function getEmailForPasswordReset()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return view('auth::auth.forgot');\n }", "public function admin_password_reset_page(){\n return view('singin&singup.forget.enter_email');\n \n }", "public function getPasswordReset()\n {\n $data = [\n 'title' => translate('cp.reset_password')\n ];\n\n return view('auth.reset', $data);\n }", "public function getResetPassword()\n {\n return view('admin.reset_password')->with(['success'=>'success message']);\n }", "public function forgotPassword()\n {\n $breadCrumb = $this->userEngine\n ->breadcrumbGenerate('forgot-password');\n\n return $this->loadPublicView('user.forgot-password', $breadCrumb['data']);\n }", "protected function getFailedResetPasswordMessage()\r\n {\r\n return 'We can\\'t find a user with that e-mail address.';\r\n }", "public function getEmailForPasswordReset()\n\t{\n\t\treturn $this->email;\n\t}", "public function getEmailForPasswordReset()\n {\n return $this->attributes['cu_email'];\n }" ]
[ "0.7059658", "0.6946295", "0.6807468", "0.6792431", "0.6761867", "0.6626948", "0.6621814", "0.65793663", "0.6526518", "0.6525153", "0.6508268", "0.650287", "0.65019256", "0.64975965", "0.64916945", "0.6491627", "0.64464664", "0.6438728", "0.6426141", "0.63950115", "0.63802624", "0.6379384", "0.6372499", "0.6369968", "0.6359398", "0.6359024", "0.63409853", "0.634059", "0.6336872", "0.633276" ]
0.8476593
0
Get approval emails copy to
public function getCaApprovalCopyToEmails() { return $this->scopeConfig->getValue( self::XML_PATH_APPROVAL_COPY_TO_EMAILS, ScopeInterface::SCOPE_STORE ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function email_approver()\n {\n \n $this->db->select('EMAIL');\n $this->db->from('APPROVERS');\n $this->db->where('UNIT',$_SESSION['div']);\n $query = $this->db->get();\n $out = $query->result_array();\n\n if ($out) {\n\n \n foreach ($out as $recipient){\n \n //mail to approver\n $this->load->library('email');\n $htmlContent = '<h1>Title change requested in FREE System.</h1>';\n $htmlContent .= '<p>Please review the <a href=\"' . base_url() . '/admin\">Approval Control Panel</a> to review the request.</p>';\n \n $this->email->clear();\n\n $config['mailtype'] = 'html';\n $this->email->initialize($config);\n $this->email->to($recipient);\n $this->email->from('[email protected]', 'FREE System');\n $this->email->subject('Title Change Requested');\n $this->email->message($htmlContent);\n $this->email->send();\n }\n }\n }", "public function getApprovalRequests()\n {\n return $this->approval_requests;\n }", "public function getEmailReferrers();", "public function getEmailCopyTo()\n {\n $data = $this->getConfigValue(self::XML_PATH_EMAIL_COPY_TO, $this->getStore()->getStoreId());\n if (!empty($data)) {\n return array_map('trim', explode(',', $data));\n }\n return false;\n }", "public function getCaRemoveCopyToEmails()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_REMOVE_COPY_TO_EMAILS,\n ScopeInterface::SCOPE_STORE\n );\n }", "protected function get_notified_email_address()\n\t{\n\t\treturn [];\n\t}", "function get_posts_discussion_email_details($discussion, $emails) {\n global $CFG;\n require_once($CFG->dirroot.'/user/lib.php');\n $contribemails = array();\n $userids = get_contributor_ids($discussion);\n // Get contributor details.\n $users = user_get_users_by_id($userids);\n foreach ($users as $user) {\n if (!in_array($user->email, $emails)) {\n $details = array();\n $details['email'] = $user->email;\n $details['mailformat'] = $user->mailformat;\n $details['username'] = $user->username;\n $contribemails[] = $details;\n }\n }\n return $contribemails;\n}", "public function getPendingApproval(Filter $filter): Collection;", "public function getAssigneeEmail();", "public function getForApproval() {\n\n /* Set orWhereIn variables */\n array_push($this->orWhereIn, [\n 'column' => 'id',\n 'array' => $this->user->idp_approvals()->pluck('id')->toArray()\n ]);\n }", "function getApprover1Email($connid)\r\n\t{\r\n\t\t$query = \"SELECT srno,sbu_head,emailComp FROM sbu_master a,emp_master b WHERE a.sbu_head = b.userID\";\r\n\t\t$dbquery = new dbquery($query,$connid);\r\n\t\twhile($row = $dbquery->getrowarray())\r\n\t\t{\r\n\t\t\t$arrRet[$row[\"srno\"]] = $row[\"emailComp\"];\r\n\t\t}\r\n\t\treturn $arrRet;\r\n\t}", "public function send_approvals() {\n if (isset($_POST['approval'])) {\n $PDO = Record::getConnection();\n\t\t\t $common = new APCommon();\n \t\t\t foreach($_POST['approval'] as $id){\n\t\t\t\t\n\t\t\t\t//Find the record in the temp table and send the confirmation email\n\t\t\t\t$sql = \"SELECT * FROM \". TABLE_PREFIX . \"approved_users_temp WHERE id=:id\";\n $stmt = $PDO->prepare($sql);\n $stmt->execute(array(\"id\" => $id));\n\t\t\t\t$row = $stmt->fetch();\n\t\t\t\t$email = $row[2];\n\t\t\t\t$name = $row[1];\n\t\t\t\t$common->confirmation_email($email, $name);\n\t\t\t\t\n\t\t\t\t//Update the temp table to mark row as processed\n $sql = \"UPDATE \" . TABLE_PREFIX . \"approved_users_temp SET processed=1 WHERE id=:id\";\n $stmt = $PDO->prepare($sql);\n $stmt->execute(array(\"id\" => $id));\n\t\t\t }\n \n \t\t\tFlash::set('success', __('Approvals processed'));\n \t\t} else {\n Flash::set('error', __('Unable to process approvals'));\n }\n\n redirect(get_url('plugin/approved_users/approvals'));\n }", "public function getTo($isCopy)\n {\n return array_merge([\n $this->_user->email => $this->_user->full_name,\n ], $this->_additionalTo);\n }", "public function getRecipients();", "private function emailList()\n {\n return array(\n '[email protected]',\n '[email protected]',\n '[email protected]',\n );\n }", "public static function getExportDestinationEmails() {\n\n return get_option( 'geb_gfe_export_destination_emails' );\n }", "public function getEmails()\n {\n return $this->emails;\n }", "public function getEmails()\n {\n return $this->emails;\n }", "public function gatherActivationEmailProperties() {\n /* generate a password and encode it and the username into the url */\n $pword = $this->modx->user->generatePassword();\n $confirmParams['lp'] = $this->login->base64url_encode($pword);\n $confirmParams['lu'] = $this->login->base64url_encode($this->user->get('username'));\n $confirmParams = array_merge($this->persistParams,$confirmParams);\n\n /* if using redirectBack param, set here to allow dynamic redirection\n * handling from other forms.\n */\n $redirectBack = $this->modx->getOption('redirectBack',$_REQUEST,$this->controller->getProperty('redirectBack',''));\n if (!empty($redirectBack)) {\n $confirmParams['redirectBack'] = $redirectBack;\n }\n $redirectBackParams = $this->modx->getOption('redirectBackParams',$_REQUEST,$this->controller->getProperty('redirectBackParams',''));\n if (!empty($redirectBackParams)) {\n $confirmParams['redirectBackParams'] = $redirectBackParams;\n }\n\n /* generate confirmation url */\n if ($this->login->inTestMode) {\n $confirmUrl = $this->modx->makeUrl(1,'',$confirmParams,'full');\n } else {\n $confirmUrl = $this->modx->makeUrl($this->controller->getProperty('activationResourceId',1),'',$confirmParams,'full');\n }\n\n /* set confirmation email properties */\n $emailTpl = $this->controller->getProperty('activationEmailTpl','lgnActivateEmailTpl');\n $emailTplAlt = $this->controller->getProperty('activationEmailTplAlt','');\n $emailTplType = $this->controller->getProperty('activationEmailTplType','modChunk');\n $emailProperties = $this->user->toArray();\n $emailProperties['confirmUrl'] = $confirmUrl;\n $emailProperties['tpl'] = $emailTpl;\n $emailProperties['tplAlt'] = $emailTplAlt;\n $emailProperties['tplType'] = $emailTplType;\n $emailProperties['password'] = $this->dictionary->get($this->controller->getProperty('passwordField','password'));\n\n $this->setCachePassword($pword);\n return $emailProperties;\n }", "public function getMatchedEmailAddress();", "public function get_emails() {\n\n\t\t$emails = array();\n\n\t\tforeach ( $this->settings['recipients'] as $item ) {\n\t\t\t$emails[] = $item['value'];\n\t\t}\n\n\t\treturn $emails;\n\t}", "public function getEmails()\n\t{\n \\Phalcon\\DI::getDefault()->get('logger')->log(\"Emails: \" . print_r($this->emails, true));\n\t\treturn $this->emails;\n\t}", "public function getCompanyAccountApprovalEmailTemplate()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_COMPANY_ACCOUNT_APPROVAL_EMAIL_TEMPLATE,\n ScopeInterface::SCOPE_STORE\n );\n }", "public function getNewsletterRecipientIDs();", "public function getAdminEmails() {\n //get administration email array\n $administration_email = Doctrine::getTable('AdministrationEmails')->getEmails();\n\n\n //create admin email query\n $admin_email_query = Doctrine_Query::create()\n ->select('sgu.email_address')\n ->from('sfGuardUser sgu')\n ->leftJoin('sgu.sfGuardUserPermission sgup')\n ->whereNotIn('sgu.email_address', $administration_email)\n ->andWhere('sgup.user_id IS NOT NULL');\n $admin_email_record = $admin_email_query->fetchArray();\n $administration_email_array = array('Dirección de correo electrónico Selecte');\n foreach ($admin_email_record as $index => $email) {\n $administration_email_array[$email['email_address']] = $email['email_address'];\n }\n return $administration_email_array;\n }", "public function get_checklist_approval_data() {\n\n $approval_data = array();\n\n $query = db_select('checklist_inspections', 'c')\n ->fields('c', array('order_num','category','unit_id','nid','approved','inspected_by','repair_data','date_submitted','follow_up_alert','comments'))\n ->condition('approved', NULL);\n $results = $query->execute();\n\n foreach ($results as $val) {\n $approval_data[] = (array) $val;\n }\n return $approval_data;\n }", "function cp_do_view_supplier_emails($adata) {\n\t# Get security vars\n\t\t$_SEC \t= get_security_flags();\n\t\t$_PERMS\t= do_decode_perms_admin($_SEC['_sadmin_perms']);\n\n\t# Dim some Vars:\n\t\tglobal $_CCFG, $_TCFG, $_DBCFG, $db_coin, $_LANG, $_SERVER, $_nl, $_sp;\n\n\t# Get all email addresses for a supplier\n\t\t$sinfo\t= get_contact_supplier_info($adata['s_id']);\n\t\t$s_emails\t= get_contact_supplier_info_alias($adata['s_id'], 1);\n\t\t$x\t\t= sizeof($s_emails);\n\n\t# Set Query parameters for select.\n\t\t$query\t = 'SELECT *';\n\t\t$_from\t = ' FROM '.$_DBCFG['mail_archive'];\n\t\tIF ($_CCFG['_PKG_SAFE_EMAIL_ADDRESS']) {\n\t\t\t$_where\t = ' WHERE '.$_DBCFG['mail_archive'].\".ma_fld_from='\".$sinfo['s_email'].\"'\";\n\t\t\t$_where\t.= ' OR '.$_DBCFG['mail_archive'].\".ma_fld_recip='\".$sinfo['s_email'].\"'\";\n\t\t} ELSE {\n\t\t\t$_where\t = ' WHERE '.$_DBCFG['mail_archive'].\".ma_fld_from LIKE '%<\".$sinfo['s_email'].\">%'\";\n\t\t\t$_where\t.= ' OR '.$_DBCFG['mail_archive'].\".ma_fld_recip LIKE '%<\".$sinfo['s_email'].\">%'\";\n\t\t}\n\t\tIF ($x) {\n\t\t\tFOR ($i=0; $i<=$x; $i++) {\n\t\t\t\tIF ($_CCFG['_PKG_SAFE_EMAIL_ADDRESS']) {\n\t\t\t\t\t$_where\t.= ' OR '.$_DBCFG['mail_archive'].\".ma_fld_from='\".$s_emails[$i]['c_email'].\"'\";\n\t\t\t\t\t$_where\t.= ' OR '.$_DBCFG['mail_archive'].\".ma_fld_recip='\".$s_emails[$i]['c_email'].\"'\";\n\t\t\t\t} ELSE {\n\t\t \t\t\t$_where\t.= ' OR '.$_DBCFG['mail_archive'].\".ma_fld_from LIKE '%<\".$s_emails[$i]['c_email'].\">%'\";\n\t\t\t\t\t$_where\t.= ' OR '.$_DBCFG['mail_archive'].\".ma_fld_recip LIKE '%<\".$s_emails[$i]['c_email'].\">%'\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$_order = ' ORDER BY '.$_DBCFG['mail_archive'].'.ma_time_stamp DESC';\n\n\t\tIF (!$_CCFG['IPL_SUPPLIERS'] > 0) {$_CCFG['IPL_SUPPLIERS'] = 5;}\n\t\t$_limit = ' LIMIT 0, '.$_CCFG['IPL_SUPPLIERS'];\n\n\t# Get count of rows total:\n\t\t$query_ttl = 'SELECT COUNT(*)';\n\t\t$query_ttl .= $_from;\n\t\t$query_ttl .= $_where;\n\t\t$result_ttl\t= $db_coin->db_query_execute($query_ttl);\n\t\twhile(list($cnt) = $db_coin->db_fetch_row($result_ttl)) {$numrows_ttl = $cnt;}\n\n\t# Do select listing records and return check\n\t\t$query\t.= $_from.$_where.$_order.$_limit;\n\t\t$result\t= $db_coin->db_query_execute($query);\n\t\t$numrows\t= $db_coin->db_query_numrows($result);\n\n\t# Build form output\n\t\t$_out .= '<div align=\"center\">'.$_nl;\n\t\t$_out .= '<table width=\"100%\" border=\"0\" bordercolor=\"'.$_TCFG['_TAG_TABLE_BRDR_COLOR'].'\" bgcolor=\"'.$_TCFG['_TAG_TRTD_BKGRND_COLOR'].'\" cellpadding=\"0\" cellspacing=\"1\">'.$_nl;\n\t\t$_out .= '<tr class=\"BLK_DEF_TITLE\"><td class=\"TP3MED_NC\" colspan=\"7\">'.$_nl;\n\n\t\t$_out .= '<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">'.$_nl;\n\t\t$_out .= '<tr class=\"BLK_IT_TITLE_TXT\">'.$_nl.'<td class=\"TP0MED_NL\">'.$_nl;\n\t\t$_out .= '<b>'.$_LANG['_ADMIN']['l_Email_Archive'];\n\t\t$_out .= ' ('.$numrows.$_sp.$_LANG['_ADMIN']['of'].$_sp.$numrows_ttl.$_sp.$_LANG['_ADMIN']['total_entries'].')</b><br>'.$_nl;\n\t\t$_out .= '</td>'.$_nl.'<td class=\"TP0MED_NR\">'.$_nl;\n\n\t\tIF ($_CCFG['_IS_PRINT'] != 1) {\n\t\t\tIF ($numrows_ttl > $_CCFG['IPL_SUPPLIERS']) {\n\t \t\t\t$_out .= do_nav_link('mod.php?mod=mail&mode=search&sw=archive&search_type=1&s_to='.$sinfo['s_email'].'&s_from='.$sinfo['s_email'], $_TCFG['_S_IMG_VIEW_S'],$_TCFG['_S_IMG_VIEW_S_MO'],'','');\n\t \t\t}\n\t\t\t$_out .= do_nav_link('mod.php?mod=mail&mode=search&sw=archive', $_TCFG['_S_IMG_SEARCH_S'],$_TCFG['_S_IMG_SEARCH_S_MO'],'','');\n\t\t} ELSE {\n\t\t\t$_out .= $_sp;\n\t\t}\n\t\t$_out .= '</td>'.$_nl.'</tr>'.$_nl.'</table>'.$_nl;\n\n\t\t$_out .= '</td></tr>'.$_nl;\n\t\t$_out .= '<tr class=\"BLK_DEF_ENTRY\">'.$_nl;\n\t\t$_out .= '<td class=\"TP3SML_BC\">'.$_LANG['_ADMIN']['l_Id'].'</td>'.$_nl;\n\t\t$_out .= '<td class=\"TP3SML_BC\">'.$_LANG['_ADMIN']['l_Date_Sent'].'</td>'.$_nl;\n\t\t$_out .= '<td class=\"TP3SML_BL\">'.$_LANG['_ADMIN']['l_Subject'].'</td>'.$_nl;\n\t\t$_out .= '<td class=\"TP3SML_BL\">'.$_LANG['_CCFG']['Actions'].'</td>'.$_nl;\n\t\t$_out .= '</tr>'.$_nl;\n\n\t# Process query results\n\t\tIF ($numrows) {\n\t\t\twhile ($row = $db_coin->db_fetch_array($result)) {\n\t\t\t\t$_out .= '<tr class=\"BLK_DEF_ENTRY\">'.$_nl;\n\t\t\t\t$_out .= '<td class=\"TP3SML_NC\">'.$row['ma_id'].'</td>'.$_nl;\n\t\t\t\t$_out .= '<td class=\"TP3SML_NC\">'.dt_make_datetime($row['ma_time_stamp'], $_CCFG['_PKG_DATE_FORMAT_SHORT_DT'] ).'</td>'.$_nl;\n\t\t\t\t$_out .= '<td class=\"TP3SML_NL\">'.htmlspecialchars($row['ma_fld_subject']).'</td>'.$_nl;\n\t\t\t\t$_out .= '<td class=\"TP3SML_NL\"><nobr>'.$_nl;\n\t\t\t\tIF ($_CCFG['_IS_PRINT'] != 1) {\n\t\t\t\t\t$_out .= do_nav_link('mod.php?mod=mail&mode=resend&obj=arch&ma_id='.$row['ma_id'], $_TCFG['_S_IMG_EMAIL_S'],$_TCFG['_S_IMG_EMAIL_S_MO'],'','');\n\t\t\t\t\t$_out .= do_nav_link('mod.php?mod=mail&mode=view&obj=arch&ma_id='.$row['ma_id'].'&_suser_id='.$adata['_suser_id'], $_TCFG['_S_IMG_VIEW_S'],$_TCFG['_S_IMG_VIEW_S_MO'],'','');\n\t\t\t\t\t$_out .= do_nav_link('mod_print.php?mod=mail&mode=view&obj=arch&ma_id='.$row['ma_id'], $_TCFG['_S_IMG_PRINT_S'],$_TCFG['_S_IMG_PRINT_S_MO'],'_new','');\n\t\t\t\t\tIF ($_PERMS['AP16'] == 1 || $_PERMS['AP05'] == 1) {\n\t\t\t\t\t\t$_out .= do_nav_link('mod.php?mod=mail&mode=delete&obj=arch&stage=2&ma_id='.$row['ma_id'], $_TCFG['_S_IMG_DEL_S'],$_TCFG['_S_IMG_DEL_S_MO'],'','');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$_out .= '</nobr></td>'.$_nl;\n\t\t\t\t$_out .= '</tr>'.$_nl;\n\t\t\t}\n\t\t}\n\n\t\t$_out .= '</table>'.$_nl;\n\t\t$_out .= '</div>'.$_nl;\n\t\t$_out .= '<br>'.$_nl;\n\n\t# Return results\n\t\treturn $_out;\n}", "abstract public function get_mailto();", "public function getNotificationEmail() {}", "function it_exchange_abandoned_carts_get_abandonment_emails( $args=array() ) {\n\n\t$defaults = array(\n\t\t'post_type' => 'it_ex_abandond_email',\n\t\t'post_status' => 'publish',\n\t\t'posts_per_page' => -1,\n\t);\n\t$args = wp_parse_args( $args, $defaults );\n\t$email_templates = get_posts( $args );\n\n\t$emails = array();\n\tforeach( (array) $email_templates as $template ) {\n\t\t$subject = get_the_title( $template->ID );\n\t\t$temp = $GLOBALS['post'];\n\t\t$GLOBALS['post'] = $template;\n\t\t$message = $template->post_content;\n\t\t$GLOBALS['post'] = $temp;\n\t\t$scheduling = get_post_meta( $template->ID, '_it_exchange_abandoned_cart_emails_scheduling_unix', true );\n\n\t\tif ( ! empty( $subject ) && ! empty( $message ) && ! empty( $scheduling ) )\n\t\t\t$emails[$template->ID] = array( 'title' => $subject, 'subject' => $subject, 'time' => $scheduling, 'content' => $message );\n\t}\n\n\tkrsort( $emails );\n\treturn $emails;\n}" ]
[ "0.6162441", "0.6011841", "0.5951873", "0.57714725", "0.57586396", "0.57302314", "0.56895614", "0.56131744", "0.5580726", "0.5572639", "0.5560343", "0.5549953", "0.55471253", "0.5484805", "0.5482486", "0.5413496", "0.5413269", "0.5413269", "0.5401683", "0.53975135", "0.538483", "0.53817225", "0.5367997", "0.5341762", "0.5320294", "0.5316393", "0.5310973", "0.5289682", "0.5288118", "0.52857757" ]
0.7495321
0
Get remove emails copy to
public function getCaRemoveCopyToEmails() { return $this->scopeConfig->getValue( self::XML_PATH_REMOVE_COPY_TO_EMAILS, ScopeInterface::SCOPE_STORE ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmailCopyTo()\n {\n $data = $this->getConfigValue(self::XML_PATH_EMAIL_COPY_TO, $this->getStore()->getStoreId());\n if (!empty($data)) {\n return array_map('trim', explode(',', $data));\n }\n return false;\n }", "public function removeAllEmails() {\n $this->emails = \"{}\";\n return $this;\n }", "function clearEmails() {\n\t\treturn $this->mailer->clearEmails();\n\t}", "function clearEmails() {\n\t\treturn $this->mailer->clearEmails();\n\t}", "protected function removeRecipient()\n\t{\n\t\t$arrChannels = $this->Input->post('channels');\n\n\t\t// Check selection\n\t\tif (!is_array($arrChannels) || count($arrChannels) < 1)\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['noChannels'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t// Validate e-mail address\n\t\tif (!preg_match('/^\\w+([!#\\$%&\\'\\*\\+\\-\\/=\\?^_`\\.\\{\\|\\}~]*\\w+)*@\\w+([_\\.-]*\\w+)*\\.[a-z]{2,6}$/i', $this->Input->post('email', true)))\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['email'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t$arrSubscriptions = array();\n\n\t\t// Get active subscriptions\n\t\t$objSubscription = $this->Database->prepare(\"SELECT pid FROM tl_newsletter_recipients WHERE email=? AND active=?\")\n\t\t\t\t\t\t\t\t\t\t ->execute($this->Input->post('email', true), 1);\n\n\t\tif ($objSubscription->numRows)\n\t\t{\n\t\t\t$arrSubscriptions = $objSubscription->fetchEach('pid');\n\t\t}\n\n\t\t$arrRemove = array_intersect($arrChannels, $arrSubscriptions);\n\n\t\t// Return if there are no subscriptions to remove\n\t\tif (!is_array($arrRemove) || count($arrRemove) < 1)\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['unsubscribed'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t// Remove subscriptions\n\t\t$this->Database->prepare(\"DELETE FROM tl_newsletter_recipients WHERE email=? AND pid IN(\" . implode(',', $arrRemove) . \")\")\n\t\t\t\t\t ->execute($this->Input->post('email', true));\n\t\t\t\t\t \n\t\t// Remove member\n\t\t$arrRetain = array_diff($arrSubscriptions, $arrChannels);\n\t\tif (count($arrRetain))\n\t\t{\n\t\t\t$this->Database->prepare(\"UPDATE tl_member SET newsletter=? WHERE email=?\")->execute(serialize($arrRetain), $this->Input->post('email'));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Delete only if member groups match\n\t\t\t$this->Database->prepare(\"DELETE FROM tl_member WHERE email=? AND groups=?\")->execute($this->Input->post('email'), $this->reg_groups);\n\t\t}\n\n\t\t// Confirmation e-mail\n\t\t$objEmail = new Email();\n\n\t\t// Get channels\n\t\t$objChannel = $this->Database->execute(\"SELECT title FROM tl_newsletter_channel WHERE id IN(\" . implode(',', $arrChannels) . \")\");\n\t\t\n\t\t// HOOK: post unsubscribe callback\n\t\tif (isset($GLOBALS['TL_HOOKS']['removeRecipient']) && is_array($GLOBALS['TL_HOOKS']['removeRecipient']))\n\t\t{\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['removeRecipient'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callback[0]);\n\t\t\t\t$this->$callback[0]->$callback[1]($this->Input->post('email', true), $arrRemove, $objChannel->fetchEach('title'));\n\t\t\t}\n\t\t}\n\n\t\t$strText = str_replace('##domain##', $this->Environment->host, $this->nl_unsubscribe);\n\t\t$strText = str_replace(array('##channel##', '##channels##'), implode(\"\\n\", $objChannel->fetchEach('title')), $strText);\n\n\t\t$objEmail->from = $GLOBALS['TL_ADMIN_EMAIL'];\n\t\t$objEmail->subject = sprintf($GLOBALS['TL_LANG']['MSC']['nl_subject'], $this->Environment->host);\n\t\t$objEmail->text = $strText;\n\n\t\t$objEmail->sendTo($this->Input->post('email', true));\n\t\tglobal $objPage;\n\n\t\t// Redirect to jumpTo page\n\t\tif (strlen($this->jumpTo) && $this->jumpTo != $objPage->id)\n\t\t{\n\t\t\t$objNextPage = $this->Database->prepare(\"SELECT id, alias FROM tl_page WHERE id=?\")\n\t\t\t\t\t\t\t\t\t\t ->limit(1)\n\t\t\t\t\t\t\t\t\t\t ->execute($this->jumpTo);\n\n\t\t\tif ($objNextPage->numRows)\n\t\t\t{\n\t\t\t\t$this->redirect($this->generateFrontendUrl($objNextPage->fetchAssoc()));\n\t\t\t}\n\t\t}\n\n\t\t$_SESSION['UNSUBSCRIBE_CONFIRM'] = $GLOBALS['TL_LANG']['MSC']['nl_removed'];\n\t\t$this->reload();\n\t}", "protected function removeRecipient()\n\t{\n\t\t$arrChannels = $this->Input->post('channels');\n\t\t$arrChannels = array_intersect($arrChannels, $this->nl_channels); // see #3240\n\n\t\t// Check the selection\n\t\tif (!is_array($arrChannels) || count($arrChannels) < 1)\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['noChannels'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t$arrSubscriptions = array();\n\t\t\n\t\t$email = \\Idna::encodeEmail($this->Input->post('email', true));\n\t\t\n\t\t$subscriber = new Subscriber($email);\n\n\t\t// Get active subscriptions\n\t\t$objSubscription = $this->Database->prepare(\"SELECT pid FROM tl_newsletter_recipients WHERE email=? AND active=1\")\n\t\t\t\t\t\t\t\t\t\t ->execute($email);\n\n\t\tif ($objSubscription->numRows)\n\t\t{\n\t\t\t$arrSubscriptions = $objSubscription->fetchEach('pid');\n\t\t}\n\n\t\t$arrRemove = array_intersect($arrChannels, $arrSubscriptions);\n\n\t\t// Return if there are no subscriptions to remove\n\t\tif (!is_array($arrRemove) || count($arrRemove) < 1)\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['unsubscribed'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t// check for cleverreach support\n\t\t$objChannel = $this->Database->execute(\"SELECT id FROM tl_newsletter_channel WHERE cleverreach_active = 1 AND id IN(\" . implode(',', array_map('intval', $arrRemove)) . \")\");\n\n\t\t// TODO: multiple channel unsubscription\n\t\t$subscriber->getByChannel($arrRemove[0]);\n\n\t\t// Remove subscriptions\n\t\t$subscriber->remove($arrRemove);\n\t\t\n\t\t// optional Cleverreach Deletion\n\t\tif($objChannel->numRows > 0)\n\t\t{\n\t\t\t$subscriber->removeFromCR($objChannel->fetchEach('id'));\n\t\t}\n\n\t\t// Get channels\n\t\t$objChannels = $this->Database->execute(\"SELECT title FROM tl_newsletter_channel WHERE id IN(\" . implode(',', array_map('intval', $arrRemove)) . \")\");\n\t\t$arrChannels = $objChannels->fetchEach('title');\n\n\t\t// HOOK: post unsubscribe callback\n\t\tif (isset($GLOBALS['TL_HOOKS']['removeRecipient']) && is_array($GLOBALS['TL_HOOKS']['removeRecipient']))\n\t\t{\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['removeRecipient'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callback[0]);\n\t\t\t\t$this->{$callback[0]}->{$callback[1]}($varInput, $arrRemove);\n\t\t\t}\n\t\t}\n\n\t\tglobal $objPage;\n\n\t\t// Redirect to jumpTo page\n\t\tif (strlen($this->jumpTo) && $this->jumpTo != $objPage->id)\n\t\t{\n\t\t\t$objNextPage = $this->Database->prepare(\"SELECT id, alias FROM tl_page WHERE id=?\")\n\t\t\t\t\t\t\t\t\t\t ->limit(1)\n\t\t\t\t\t\t\t\t\t\t ->execute($this->jumpTo);\n\n\t\t\tif ($objNextPage->numRows)\n\t\t\t{\n\t\t\t\t$this->redirect($this->generateFrontendUrl($objNextPage->fetchAssoc()));\n\t\t\t}\n\t\t}\n\n\t\tif($subscriber->sendUnSubscribeMail($arrRemove))\n\t\t{\n\t\t\t$this->reload();\n\t\t}\n\t}", "function clear_to () {\n $this->sendto = array();\n $this->all_emails = array();\n }", "public function scopeDeleteMails()\n {\n\n $input = Input::all();\n $emailsToDelete = array();\n $data = array();\n\n //TO clean the input received from\n foreach ( $input as $k => $v ) {\n if ( $k [0] == '|' ) {\n $emailsToDelete [\"$v\"] = $v;\n }\n }\n\n if ( !count( $emailsToDelete ) ) {\n $data ['deleted'] = false;\n\n return $data;\n }\n\n $data ['deleted'] = DB::table( 'tolists' )\n ->where( 'to_id', '=', Group::getUID() . '_' . $input ['gname'] )\n ->whereIn( 'email', $emailsToDelete )\n ->delete();\n $data ['emailsToDelete'] = $emailsToDelete;\n\n return $data;\n\n }", "public function removeCcEmail($string)\n {\n return $this->setCcEmails(\n array_diff($this->getCcEmails(), [$string])\n );\n }", "function removeemail($member){\n\t\t$f3=$this->f3; \n\t\t$uselog=$f3->get('uselog');\n\t\t$email_logger=$f3->new('email_log');\n\t\t$email_logger->write('in removeemail for member = '.$member->forename. ' '.$member->surname.'email was '.$member->email ,$uselog);\n\t\t\n\t\t// now check if its in use elsewhere other than this membnum\n\t\t$this->mailmanunsub($member);\n}", "public function getTo($isCopy)\n {\n return array_merge([\n $this->_user->email => $this->_user->full_name,\n ], $this->_additionalTo);\n }", "function removeEmail($email) {\n\t\tglobal $polarbear_db;\n\t\t$emailSafe = $polarbear_db->escape($email);\n\t\t$sql = \"DELETE FROM \" . POLARBEAR_DB_PREFIX . \"_emaillist_emails WHERE listID = '{$this->id}' AND email = '$emailSafe'\";\n\t\t$polarbear_db->query($sql);\n\t}", "public function unsubscribe_user($email) {\n if($json_file = file_get_contents($this->json_file)) {\n $this->subscribers_arr = json_decode($json_file, true);\n $return_value = 3;\n foreach($this->subscribers_arr as $key => $value) {\n if ($key !== $email) { // Save list without $email\n $this->subscribers_arr[\"$email\"] = $value;\n } else {\n $email_removed = true;\n }\n }\n if ($email_removed == true) {\n $return_value = $this->write_subscribers_to_file();\n }\n return $return_value;\n }\n }", "public static function getExportDestinationEmails() {\n\n return get_option( 'geb_gfe_export_destination_emails' );\n }", "public function remove_from_resend_to($address)\n\t{\n\t\t$stripped_resend_to_array = array();\n\t\t$rsta = $this->get_resend_to();\n\t\tforeach($rsta as $email)\n\t\t{\n\t\t\tif ($address != $email) \n\t\t\t{\n\t\t\t\t$stripped_resend_to_array[] = $email;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->log_state('Resender class. Stripped address from resend_to_array: '.$email);\n\t\t\t}\n\t\t}\n\t\t$this->set_resend_to($stripped_resend_to_array);\n\t}", "private function disposableEmailList()\n {\n return array(\n '[email protected]',\n '[email protected]',\n '[email protected]',\n '[email protected]',\n '[email protected]',\n );\n }", "public function getAllEmailAddresses() {\n $saveCurrentFolder = $this->folder;\n $emails = array();\n foreach($this->getFolders() as $folder) {\n $this->selectFolder($folder);\n foreach($this->getMessages(false) as $message) {\n $emails[] = $message['from'];\n $emails = array_merge($emails, $message['to']);\n if (isset($message['cc'])) {\n $emails = array_merge($emails, $message['cc']);\n }\n }\n }\n $this->selectFolder($saveCurrentFolder);\n return array_unique($emails);\n }", "public function getEmails()\n {\n if (!isset($this->options['keep'])) {\n throw new BadMethodCallException(\"This function only works with the `keep` option\");\n }\n \n return $this->emails;\n }", "public function originalRecipient()\n {\n $thread = $this;\n $creator = $thread->creator();\n\n // Filter out the original recipient\n $recipients = $thread->participants->filter(function ($participant, $key) use ($creator) {\n // If the userId doesn't equal the id of the sender\n // we can be sure this participant is the recipient\n return $participant->user->id !== $creator->id;\n });\n\n // Convert Participant to User\n $recipients = $recipients->map(function($participant) {\n return $participant->user;\n });\n\n // return $recipients;\n return $recipients->first();\n }", "function unsubscribe($email) {\n // We need to build the subscriber data structure.\n $email = array(\n \t\t 'EmailAddress' => $email \n );\n \n return $this->post_request($this->_subscribers_base_route.'/unsubscribe.json', $email);\n }", "function delete($email) {\n return $this->delete_request($this->_subscribers_base_route.'.json?email='.urlencode($email));\n }", "public function getUnseenEmails(): array\n {\n $emails = [];\n\n try {\n $imap = $this->loginToInbox();\n\n // We only want the emails we haven't fetched before.\n foreach ($imap->search(['UNSEEN']) as $id) {\n $data = $imap->fetch(['RFC822.HEADER', 'RFC822.TEXT'], $id);\n\n // We need to combine headers and text in order to have a full email.\n $emails[] = InboundEmail::fromMessage($data['RFC822.HEADER'].\"\\r\\n\".$data['RFC822.TEXT']);\n }\n\n $imap->logout();\n } catch (\\Exception $e) {\n // Just log the error and get on with the method execution.\n $this->logger->error($e->getMessage());\n }\n\n return $emails;\n }", "public function getCaApprovalCopyToEmails()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_APPROVAL_COPY_TO_EMAILS,\n ScopeInterface::SCOPE_STORE\n );\n }", "public function getDeleteObjectsUniqueInSink()\n {\n return $this->delete_objects_unique_in_sink;\n }", "public function getDeleteObjectsUniqueInSink()\n {\n return $this->delete_objects_unique_in_sink;\n }", "public function getEmailReferrers();", "public function getSubscriberEmails() {\n $stmt = $this->pdo->query(\"SELECT email\n FROM subscribers\n \");\n $subscribers = [];\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n $subscribers[] = $row['email'];\n }\n return $subscribers;\n }", "public function removeSubscribes();", "public function removeEmail($email)\n {\n $response = $this->post('user/email/remove', array('email' => $email));\n\n return $response['emails'];\n }", "public function getUnsubcribeUrl() {\n\t\treturn $this->getEmailActionLink(\"email/unsubscribeWeeklyNews\");\n\t}" ]
[ "0.6198424", "0.6091833", "0.59340054", "0.59340054", "0.59258306", "0.570302", "0.5543972", "0.55308", "0.55225223", "0.5480271", "0.5443662", "0.5438063", "0.54346883", "0.54150647", "0.5394309", "0.5379831", "0.53772235", "0.53754187", "0.537495", "0.53720045", "0.53700393", "0.53690153", "0.5359289", "0.53519446", "0.53519446", "0.5346515", "0.53347105", "0.5306908", "0.5297489", "0.52836233" ]
0.7314029
0
Register the given namespace in the passed XPath context
function xpath_register_ns($xpath_context, $prefix, $uri) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registerNamespace ($prefix, $namespaceURI) {}", "public function registerNamespace(string $prefix, string $namespaceURI): void {\n $this->_namespaces[$prefix] = $namespaceURI;\n if (NULL !== $this->_xpath && $prefix !== '#default') {\n $this->_xpath->registerNamespace($prefix, $namespaceURI);\n }\n }", "function addNamespace($namespace);", "abstract protected function registerNamespaces();", "public function registerNamespace($namespace, $path)\n\t{\n\t\t$this->namespaces[(string) $namespace] = (string) $path;\n\t}", "function setNamespace($namespace);", "public function registerNamespaces(Ns $ns): void;", "public function addNamespace($namespace, $hints);", "public function addNamespace(string $namespace, $hints);", "public function setNamespaceName($namespace);", "public function registerNamespace( $namespace ) {\n $this->namespaces[] = $namespace;\n return $this->namespaces;\n }", "public static function registerNamespace($namespace, $path)\n {\n Autoloader::$registeredNamespaces[$namespace] = $path;\n }", "public function addNamespace( $namespace )\n\t{\n\t\t$this->namespaces[] = $namespace;\n\t}", "function addNamespaces(array $namespaces);", "function setNamespace ($name);", "public function setFactoryNamespace($namespace);", "protected function registerNamespaces() {\n\t\t$this->registerNamespace(parent::getCode(), parent::getUsedNamespace(parent::getSupportedNamespaces())); // OWS\n\t\t$this->registerNamespace($this->getCode(), $this->getUsedNamespace()); // SOS\n\t\t$this->registerNamespace('gml', 'http://www.opengis.net/gml'); // GML\n\t}", "protected function registerNamespaces()\n {\n $this->app['themes']->registerNamespaces();\n }", "public function setDefaultNamespace($namespace);", "public static function addNamespace($namespace)\n {\n if (!in_array($namespace, static::$namespaces)) {\n static::$namespaces[] = $namespace;\n }\n }", "public static function addNamespacePath(string $namespace, string $root_path)\n {\n self::$ns_map[$namespace] = $root_path;\n }", "public function setNamespace($name);", "public function addNamespace( $namespace, $hint )\n\t{\n\t\t$this->hints[$namespace] = $hint;\n\t}", "public function add(string $path, string $namespace): self;", "public function replaceNamespace(string $namespace, $hints);", "public function getNamespace($namespaceName);", "public function setNamespace($namespace)\n {\n $this->namespace = $namespace;\n }", "public function setNamespace($namespace)\n {\n $this->_namespace = (string) $namespace;\n }", "public function addNamespace($namespace, $hint)\n {\n $this->loader->addNamespace($namespace, $hint);\n }", "public function set($namespace, $key, $value);" ]
[ "0.7240222", "0.6948519", "0.66960627", "0.6509639", "0.64782023", "0.63548946", "0.63254267", "0.61182374", "0.5955406", "0.5950569", "0.593465", "0.5925256", "0.5837292", "0.5617457", "0.5587428", "0.5489224", "0.5484517", "0.5478457", "0.5468809", "0.5454311", "0.54208034", "0.54189014", "0.54051", "0.5390993", "0.5326502", "0.53014976", "0.5295378", "0.5283982", "0.52818453", "0.5280118" ]
0.84279853
0
Upload requirements on with cURL
public static function uploadWithCurl(array $requirements, $syncToken);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function upload_file(){\n\t\t$file_title = explode(\"/\",$_GET['url']);\n\t\t$file_name = end($file_title);\n\n\t\t$my_file = $_GET['url'];\n\t\t$handle = fopen($my_file, 'r');\n\t\t$read_file = fread($handle,filesize($my_file));\n\n\t\t$upload_url = \"https://pod-000-1126-02.backblaze.com/b2api/v2/b2_upload_file/d184771c8d50b17b65ba0618/c002_v0001126_t0048\"; \n\t\t$upload_auth_token = \"4_002147cd01b5a680000000000_018d4c4a_2690fb_upld_YoK-yBz17Mj5QQS60UQ1bVwRtXw=\";\n\t\t$bucket_id = \"d184771c8d50b17b65ba0618\"; \n\t\t$content_type = \"text/plain\";\n\t\t$sha1_of_file_data = sha1_file($my_file);\n\n\t\t$session = curl_init($upload_url);\n\n\t\tcurl_setopt($session, CURLOPT_POSTFIELDS, $read_file); \n\n\t\t$headers = array();\n\t\t$headers[] = \"Authorization: \" . $upload_auth_token;\n\t\t$headers[] = \"X-Bz-File-Name: \" . $file_name;\n\t\t$headers[] = \"Content-Type: \" . $content_type;\n\t\t$headers[] = \"X-Bz-Content-Sha1: \" . $sha1_of_file_data;\n\t\tcurl_setopt($session, CURLOPT_HTTPHEADER, $headers); \n\n\t\tcurl_setopt($session, CURLOPT_POST, true); \n\t\tcurl_setopt($session, CURLOPT_RETURNTRANSFER, true); \n\t\t$server_output = curl_exec($session); \n\t\tcurl_close ($session); \n\t\techo ($server_output); \n\t}", "function post_files($url,$file) {\n // path to a file. $files can be array (multiple) or string (one file).\n // Data will be posted in a series of POST vars named $file0, $file1...\n // $fileN\n $data=array();\n $data['uploadedfile']=\"@\".$file;\n \n\t$ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data); \n $response = curl_exec($ch);\n return $response;\n}", "function cURL($type, $url, $header, $postfields, $authorization){\r\n\tglobal $refid;\r\n\t$ch = curl_init($url);\r\n\tif($type == \"POST\") {curl_setopt($ch, CURLOPT_POST, TRUE);}\r\n\tif($type == \"PATCH\") {curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');}\r\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\r\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\r\n\tif($authorization != NULL) {curl_setopt($ch, CURLOPT_USERPWD, $authorization);}\r\n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $header);\r\n\tif($type == \"POST\" or $type == \"PATCH\") {curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);}\r\n\t$response = curl_exec($ch);\r\n\t$error_no = curl_errno($ch);\r\n\t$error_message = curl_error($ch);\r\n\tcurl_close($ch);\r\n\t$error = \"cURL error #{$error_no} for asset {$refid} - {$error_message}\";\r\n\tif($error_no != 0){\r\n\t\ttrigger_error($error);\r\n\t}\r\n\treturn $response;\r\n}", "function AWSUpload($filename, $file){\n\t$username = \"USERNAME\";\n\t$password = \"PASSWORD\";\n\t$url = \"http://dummyurl.com/aws_api/upload\";\n\t$cfile = new CURLFile($filename,'image/png','file_name');\n\t$postfields = array(\n\t 'file_name' => $filename,\n\t 'file' => curl_file_create($file) \n\t //...\n\t);\n\t$ch = curl_init();\n\n\tcurl_setopt($ch, CURLOPT_URL,$url);\n\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t$headers = array(\"Content-Type:multipart/form-data\"); // cURL headers for file uploading\n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $headers); \n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);\n\n\t// receive server response ...\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\tcurl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);\n\tcurl_setopt($ch, CURLOPT_USERPWD, \"$username:$password\");\n\t//Ignore SSL certificate verification\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\t//echo $ch;die;\n\t$server_output = curl_exec ($ch);\n\n\tcurl_close ($ch);\n\treturn $server_output;\n}", "function uploadFile($apiEndPoint,$data,$token){\n$ch = curl_init();\ncurl_setopt($ch, CURLOPT_URL, $apiEndPoint);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: multipart/form-data','Authorization: '.$token.''));\ncurl_setopt($ch, CURLOPT_POST, 1);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n$response = curl_exec($ch);\ncurl_close($ch);\nreturn $response;\n\t\n}", "function copy_file($url_origem, $arquivo_destino){\r\n\t$minha_curl = curl_init($url_origem);\r\n\t$fs_arquivo = fopen($arquivo_destino, \"w\");\r\n\tcurl_setopt($minha_curl, CURLOPT_FILE, $fs_arquivo);\r\n\tcurl_setopt($minha_curl, CURLOPT_HEADER, 0);\r\n\tcurl_exec($minha_curl);\r\n\tcurl_close($minha_curl);\r\n\treturn fclose($fs_arquivo);\r\n}", "function http_upload($url, $method, $postfields = NULL, $headers = array()) {\n\t\t$this->http_info = array();\n\t\t//$url=\"http://222.44.51.34:1234\";\n\t\t$ci = curl_init();\n\t\t/* Curl settings */\n\t\tcurl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\n\t\tcurl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);\n\t\tcurl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\n\t\tcurl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);\n\t\tcurl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE);\n\t\tcurl_setopt($ci, CURLOPT_ENCODING, \"\");\n\t\tcurl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);\n\t\tcurl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 1);\n\t\tcurl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\n\t\tcurl_setopt($ci, CURLOPT_HEADER, FALSE);\n\n\t\tswitch ($method) {\n\t\t\tcase 'POST':\n\t\t\t\tcurl_setopt($ci, CURLOPT_POST, TRUE);\n\t\t\t\tif (!empty($postfields)) {\n\t\t\t\t\tcurl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\n\t\t\t\t\t$this->postdata = $postfields;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'DELETE':\n\t\t\t\tcurl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\n\t\t\t\tif (!empty($postfields)) {\n\t\t\t\t\t$url = \"{$url}?{$postfields}\";\n\t\t\t\t}\n\t\t}\n\n\t\tif ( isset($this->Token['access_token']) && $this->Token['access_token'] )\n\t\t\t$headers[] = \"Authorization: OAuth2 \".$this->Token['access_token'];\n\n\t\tif ( !empty($this->remote_ip) ) {\n\t\t\tif ( defined('SAE_ACCESSKEY') ) {\n\t\t\t\t$headers[] = \"SaeRemoteIP: \" . $this->remote_ip;\n\t\t\t} else {\n\t\t\t\t$headers[] = \"API-RemoteIP: \" . $this->remote_ip;\n\t\t\t}\n\t\t} else {\n\t\t\tif ( !defined('SAE_ACCESSKEY') ) {\n\t\t\t\t$headers[] = \"API-RemoteIP: \" . $_SERVER['REMOTE_ADDR'];\n\t\t\t}\n\t\t}\n\t\tcurl_setopt($ci, CURLOPT_URL, $url );\n\t\tcurl_setopt($ci, CURLOPT_HTTPHEADER, $headers );\n\t\tcurl_setopt($ci, CURLINFO_HEADER_OUT, TRUE );\n\n\t\t$response = curl_exec($ci);\n\t\t$this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\n\t\t$this->http_info = array_merge($this->http_info, curl_getinfo($ci));\n\t\t$this->url = $url;\n\n\t\tif ($this->debug) {\n\t\t\techo \"=====post data======\\r\\n\";\n\t\t\tvar_dump($postfields);\n\n\t\t\techo \"=====headers======\\r\\n\";\n\t\t\tprint_r($headers);\n\n\t\t\techo '=====request info====='.\"\\r\\n\";\n\t\t\tprint_r( curl_getinfo($ci) );\n\n\t\t\techo '=====response====='.\"\\r\\n\";\n\t\t\tprint_r( $response );\n\t\t}\n\t\tcurl_close ($ci);\n\t\treturn $response;\n\t}", "function image_upload($img_path)\n{\n $pvars = array(\"content_type\" => 1, \"img\" => \"@\".$img_path);\n\n // initialize curl and set parameters\n $curl = curl_init();\n curl_setopt($curl, CURLOPT_URL, 'http://www.pixhost.org/api');\n curl_setopt($curl, CURLOPT_TIMEOUT, 30);\n curl_setopt($curl, CURLOPT_POST, 1);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $pvars);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n\n // execute, get information and close connection\n $response = curl_exec($curl);\n $info = curl_getinfo($curl);\n curl_close ($curl);\n\n // check if the http-code is 200\n if($info['http_code'] != 200) {\n exit(\"OAuth error: \".$response);\n }\n\n // decode the json-encoded response\n $response_array = json_decode($response);\n\n return $response_array;\n}", "private function submitFile()\n {\n\n $encoded_url = urlencode($this->getFileUrl());\n\n wp_remote_get(self::GOOGLE_WEBMASTER_TOOLS_URL . $encoded_url);\n wp_remote_get(self::BING_WEBMASTER_TOOLS_URL . $encoded_url);\n\n }", "private function initCurlRequest() {\n $method = strtoupper($this->method);\n\n // Construct request\n $curlRequest = curl_init($this->finalUrl);\n curl_setopt($curlRequest, CURLOPT_RETURNTRANSFER, 1); // Return contents instead of boolean on exec\n curl_setopt($curlRequest, CURLOPT_BINARYTRANSFER, 1);\n curl_setopt($curlRequest, CURLOPT_HEADER, 1); // Return headers in response\n if ($this->followRedirects)\n curl_setopt($curlRequest, CURLOPT_FOLLOWLOCATION, true); // Follow redirects\n\n // Timeouts\n if ($this->connectTimeout !== null)\n curl_setopt($curlRequest, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout);\n if ($this->executeTimeout !== null)\n curl_setopt($curlRequest, CURLOPT_TIMEOUT, $this->executeTimeout);\n\n // Method-specific\n $acceptsBody = false;\n if ($method === 'POST') {\n curl_setopt($curlRequest, CURLOPT_POST, 1);\n $acceptsBody = true;\n }\n\n // BUG: curl will attempt to set \"Transfer-Encoding: chunked\" header if doing a PUT\n // the workaround is to POST, using an X-HTTP-Method-Override instead.\n // BEWARE: This also requires the server to know how to handle this header.\n if (in_array($method, array('PUT', 'PATCH'))) {\n $this->headers[] = \"X-HTTP-Method-Override: $method\";\n curl_setopt($curlRequest, CURLOPT_POST, 1);\n $acceptsBody = true;\n }\n\n if ($method === 'DELETE')\n curl_setopt($curlRequest, CURLOPT_DELETE, 1);\n\n // Body\n $sendBlankExpect = false;\n if ($acceptsBody) {\n if ($this->files !== null && count($this->files) > 0) {\n $files = [];\n foreach ($this->files as $fileKey => $localPath)\n $files[$fileKey] = '@' . $localPath;\n \n curl_setopt($curlRequest, CURLOPT_POSTFIELDS, $files);\n\n // Workaround for CURL issue where curl_exec() returns both 100/CONTINUE and 200/OK separated by\n // blank line when using multipart form data.\n $sendBlankExpect = true;\n }\n elseif ($this->body) {\n // Default content-type of POST body\n if ($this->json && count(preg_grep('/content-type:/i', $this->headers)) === 0)\n $this->headers[] = 'Content-Type: application/json';\n\n // Seems to implicitly set CURLOPT_POST=1\n curl_setopt($curlRequest, CURLOPT_POSTFIELDS, $this->body);\n }\n }\n\n // Add headers\n $headers = $this->headers;\n if (!$headers)\n $headers = [];\n\n if ($this->json && count(preg_grep('/accept:/i', $headers)) === 0)\n $headers[] = 'Accept: application/json';\n if ($sendBlankExpect)\n $headers[] = 'Expect:';\n\n if (count($headers) > 0)\n curl_setopt($curlRequest, CURLOPT_HTTPHEADER, $headers);\n\n // Authenticate request\n if ($this->username) {\n curl_setopt($curlRequest, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n curl_setopt($curlRequest, CURLOPT_USERPWD, $this->username . ':' . $this->password);\n }\n\n return $curlRequest;\n }", "function quick_curl( $url, $user_auth = null, $rest = 'GET', $input = null, $type = 'JSON'){\n if( function_exists('curl_init') ){\n\n $ch = curl_init();\n curl_setopt( $ch, CURLOPT_URL, $url ); // The URL we're using to get/send data\n\n if( $user_auth ){\n curl_setopt( $ch, CURLOPT_USERPWD, $user_auth ); // Add the authentication\n }\n\n if( $rest == 'POST' ){\n curl_setopt( $ch, CURLOPT_POST, true ); // Send a post request to the server\n } elseif( $rest == 'PATCH' ){\n curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'PATCH'); // Send a patch request to the server to update the listing\n } elseif( $rest == 'PUT'){\n curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'PUT'); // Send a put request to the server to update the listing\n } // If POST or PATCH isn't set then we're using a GET request, which is the default\n\n curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 15 ); // Timeout when connecting to the server\n curl_setopt( $ch, CURLOPT_TIMEOUT, 30 ); // Timeout when retrieving from the server\n curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); // We want to capture the data returned, so set this to true\n //curl_setopt( $ch, CURLOPT_HEADER, true ); // Get the HTTP headers sent with the data\n curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); // We don't want to force SSL incase a site doesn't use it\n\n if( $rest !== 'GET' ){\n\n curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: ' . mime_type( $type ), 'Content-Length: ' . strlen( $input ) ) ); // Tell server to expect the right content type and the content length\n curl_setopt( $ch, CURLOPT_POSTFIELDS, $input ); // Send the actual data\n }\n\n // Get the response\n $response = curl_exec( $ch );\n\n // Check if there's an error in the header\n $httpcode = curl_getinfo( $ch, CURLINFO_HTTP_CODE );\n\n // If there's any cURL errors\n if( curl_errno( $ch ) || ( $httpcode < 200 || $httpcode >= 300 ) ){\n $data = 'error';\n } else {\n \n // Turn response into stuff we can use\n if( $type == 'JSON' ){\n $data = json_decode( $response, true );\n } elseif( $type == 'csv' ){\n $data = csv_to_array( $response );\n } else {\n $data = $response;\n }\n\n }\n\n // Close curl\n curl_close( $ch );\n \n // Send the data back to the function calling the cURL\n return $data;\n \n } else {\n \n // cURL not installed so leave\n return false;\n \n }\n\n\t\n}", "public function checkUpload() {}", "function file_get_curl($url, $post_params = '') \r\n\t{\r\n\t\t$interfaces = array('10.1.77.47');\r\n\t\t$interface = $interfaces[mt_rand(0, count($interfaces) - 1)];\r\n\t\t\r\n\t\t$ch = curl_init();\r\n\t\t\r\n\t\tcurl_setopt($ch, CURLOPT_AUTOREFERER, true);\r\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\r\n\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); \r\n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36\");\r\n\t\tcurl_setopt($ch, CURLOPT_HEADER, 0);\r\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 15);\r\n\t\t\r\n\t\tcurl_setopt($ch, CURLOPT_COOKIEJAR, (__DIR__).'/cookies.txt');\r\n\t\tcurl_setopt($ch, CURLOPT_COOKIEFILE, (__DIR__).'/cookies.txt');\r\n\t\t\r\n\t\tif(!empty($post_params))\r\n\t\t{\r\n\t\t\tcurl_setopt($ch, CURLOPT_POST, true);\r\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $post_params);\r\n\t\t}\r\n\t\t\r\n\t\tif(!empty($interface))\r\n\t\t{\r\n\t\t\tcurl_setopt($ch, CURLOPT_INTERFACE, $interface);\r\n\t\t}\r\n\t\t\r\n\t\t$data = curl_exec($ch);\r\n\t\tcurl_close($ch);\r\n\t\t\r\n\t\treturn $data;\r\n\t}", "public function test_upload_file() {\n $target_url = \"http://localhost:9111/src/upload.php\";\n // test1.txt is just a file\n $file_with_full_path = realpath(\"../_files/test1.txt\");\n $post = array(\"username\"=>\"ddd\", \"password\"=>\"123456\", \"file\"=>'@'.$file_with_full_path);\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $target_url);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post);\n $result=curl_exec ($ch);\n curl_close ($ch);\n $this->assertEquals(1, $result);\n }", "function upload($file, $end_path) {\n $auth = '';\n $date= getdate();\n $size = filesize($file);\n $path = $end_path.'/'.$date['year'].'-'.$date['mon'].'-'.$date['mday'].'/'.$file;\n $fp = fopen($file, 'r');\n $cheaders = array('Authorization: Bearer ' .$auth.'jMxNU5Ezc-gAAAAAAAAAAQLxvI0If8AV4wHpthpOmIRTKJr0otk_cUH7YiGw-_SU',\n 'Content-Type: application/octet-stream',\n 'Dropbox-API-Arg: {\"path\":\"/'.$path.'\", \"mode\":\"add\"}');\n\n $ch = curl_init('https://content.dropboxapi.com/2/files/upload');\n curl_setopt($ch, CURLOPT_HTTPHEADER, $cheaders);\n curl_setopt($ch, CURLOPT_PUT, true);\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');\n curl_setopt($ch, CURLOPT_INFILE, $fp);\n curl_setopt($ch, CURLOPT_INFILESIZE, $size);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $response = curl_exec($ch);\n\n curl_close($ch);\n fclose($fp);\n }", "private function curl_put($url, $data)\n {\n $json_str = file_get_contents($this->cil_config_file);\n $json = json_decode($json_str);\n \n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n //curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Content-Length: ' . strlen($doc)));\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');\n curl_setopt($ch, CURLOPT_POSTFIELDS,$data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_USERPWD, $json->readonly_unit_tester);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n $response = curl_exec($ch);\n curl_close($ch);\n return $response;\n }", "public function init_req( string $url ) {\t\n\t\t$curl = null;\n\t\tself::$agents = self::parse_agents( 'u-agents.dat' );\n\t\tswitch ( $url ) \n\t\t{\n\t\t\tcase ((object) self::$URLS)->download:\n\t\t\t\tif( (strcmp( self::$api_option, \"download\" ) === 0) && (strcmp( self::$download_path, \"\" ) !== 0) && (strcmp( self::$api_paste_key, \"\" ) !== 0) )\n\t\t\t\t{\n\t\t\t\t\tself::$download_url = $url . self::$api_paste_key;\n\t\t\t\t\t$curl = curl_init();\n\t\t\t\t\t$curl_opts = array(\n\t\t\t\t\t\t\t\tCURLOPT_FILE => @fopen( self::$download_path . self::$api_paste_key, \"w\" ),\n\t\t\t\t\t\t\t\tCURLOPT_USERAGENT => self::$agents[ mt_rand( 0, sizeof( self::$agents ) - 1 ) ],\n\t\t\t\t\t\t\t\tCURLOPT_TIMEOUT => 28800,\n\t\t\t\t\t\t\t\tCURLOPT_HTTPHEADER => array(\"Referer: https://pastebin.com/\".self::$api_paste_key),\n\t\t\t\t\t\t\t\tCURLOPT_URL => self::$download_url\n\t\t\t\t\t);\n\t\t\t\t\tcurl_setopt_array( $curl, $curl_opts );\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tarray_push( self::$errors, \"[DOWNLOAD-INITIALIZATION-ERROR] - There was an error initializing the request! Maybe some parameters are either missing, invalid or expired!\" );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase ((object) self::$URLS)->post:\n\t\t\t\tif( (strcmp( self::$api_option, \"delete\" ) === 0) && (strcmp( self::$api_paste_key, \"\" ) !== 0) )\n\t\t\t\t{\t\n\t\t\t\t\t$query = http_build_query( [\n\t\t\t\t\t\t\t\t'api_option' => self::$api_option, \n\t\t\t\t\t\t\t\t'api_user_key' => self::$api_user_key, \n\t\t\t\t\t\t\t\t'api_dev_key' => self::$api_dev_key,\n\t\t\t\t\t\t\t\t'api_paste_key' => self::$api_paste_key ] );\n\t\t\t\t\t$curl = curl_init();\n\t\t\t\t\t$curl_opts = array(\n\t\t\t\t\t\t\tCURLOPT_POST => true,\n\t\t\t\t\t\t\tCURLOPT_POSTFIELDS => $query,\n\t\t\t\t\t\t\tCURLOPT_RETURNTRANSFER => 1,\n\t\t\t\t\t\t\tCURLOPT_NOBODY => 0,\n\t\t\t\t\t\t\tCURLOPT_USERAGENT => self::$agents[ mt_rand( 0, sizeof( self::$agents ) - 1 ) ],\n\t\t\t\t\t\t\tCURLOPT_TIMEOUT => 28800,\n\t\t\t\t\t\t\tCURLOPT_URL => ((object) self::$URLS)->post\n\t\t\t\t\t);\n\t\t\t\t\tcurl_setopt_array( $curl, $curl_opts );\n\t\t\t\t}\n\t\t\t\telse if( strcmp( self::$api_option, \"paste\" ) === 0 )\n\t\t\t\t{\n\t\t\t\t\t$query = http_build_query( [\n\t\t\t\t\t\t\t\t'api_option' => self::$api_option, \n\t\t\t\t\t\t\t\t'api_dev_key' => self::$api_dev_key,\n\t\t\t\t\t\t\t\t'api_user_key' => self::$api_user_key,\n\t\t\t\t\t\t\t\t'api_paste_code' => urlencode( self::$api_paste_code ),\n\t\t\t\t\t\t\t\t'api_paste_name' => urlencode( self::$api_paste_name ),\n\t\t\t\t\t\t\t\t'api_paste_private' => self::$api_paste_private,\n\t\t\t\t\t\t\t\t'api_paste_expire_date' => self::$api_paste_expire_date,\n\t\t\t\t\t\t\t\t'api_paste_format' => self::$api_paste_format ] );\n\n\t\t\t\t\t$curl = curl_init();\n\t\t\t\t\t$curl_opts = array(\n\t\t\t\t\t\t\t CURLOPT_POST => true,\n\t\t\t\t\t\t\t CURLOPT_POSTFIELDS => $query,\n\t\t\t\t\t\t\t CURLOPT_RETURNTRANSFER => 1,\n\t\t\t\t\t\t\t CURLOPT_NOBODY => 0,\n\t\t\t\t\t\t\t CURLOPT_USERAGENT => self::$agents[ mt_rand( 0, sizeof( self::$agents ) - 1 ) ],\n\t\t\t\t\t\t\t CURLOPT_TIMEOUT => 28800,\n\t\t\t\t\t\t\t CURLOPT_URL => ((object) self::$URLS)->post\n\t\t\t\t\t);\n\t\t\t\t\tcurl_setopt_array( $curl, $curl_opts );\n\t\t\t\t}\n\t\t\t\telse if( strcmp( self::$api_option, \"list\" ) === 0 )\n\t\t\t\t{\n\t\t\t\t\t$query = http_build_query( [\n\t\t\t\t\t\t\t\t'api_option' => self::$api_option, \n\t\t\t\t\t\t\t\t'api_dev_key' => self::$api_dev_key,\n\t\t\t\t\t\t\t\t'api_user_key' => self::$api_user_key,\n\t\t\t\t\t\t\t\t'api_results_limit' => self::$api_results_limit ] );\n\n\t\t\t\t\t$curl = curl_init();\n\t\t\t\t\t$curl_opts = array(\n\t\t\t\t\t\t\t CURLOPT_POST => true,\n\t\t\t\t\t\t\t CURLOPT_POSTFIELDS => $query,\n\t\t\t\t\t\t\t CURLOPT_RETURNTRANSFER => 1,\n\t\t\t\t\t\t\t CURLOPT_NOBODY => 0,\n\t\t\t\t\t\t\t CURLOPT_USERAGENT => self::$agents[ mt_rand( 0, sizeof( self::$agents ) - 1 ) ],\n\t\t\t\t\t\t\t CURLOPT_TIMEOUT => 28800,\n\t\t\t\t\t\t\t CURLOPT_URL => ((object) self::$URLS)->post\n\t\t\t\t\t);\n\t\t\t\t\tcurl_setopt_array( $curl, $curl_opts );\n\t\t\t\t}\n\t\t\t\telse if( strcmp( self::$api_option, \"userdetails\" ) === 0 )\n\t\t\t\t{\n\t\t\t\t\t$query = http_build_query( [\n\t\t\t\t\t\t\t\t'api_option' => self::$api_option, \n\t\t\t\t\t\t\t\t'api_dev_key' => self::$api_dev_key,\n\t\t\t\t\t\t\t\t'api_user_key' => self::$api_user_key ] );\n\n\t\t\t\t\t$curl = curl_init();\n\t\t\t\t\t$curl_opts = array(\n\t\t\t\t\t\t\t CURLOPT_POST => true,\n\t\t\t\t\t\t\t CURLOPT_POSTFIELDS => $query,\n\t\t\t\t\t\t\t CURLOPT_RETURNTRANSFER => 1,\n\t\t\t\t\t\t\t CURLOPT_NOBODY => 0,\n\t\t\t\t\t\t\t CURLOPT_USERAGENT => self::$agents[ mt_rand( 0, sizeof( self::$agents ) - 1 ) ],\n\t\t\t\t\t\t\t CURLOPT_TIMEOUT => 28800,\n\t\t\t\t\t\t\t CURLOPT_URL => ((object) self::$URLS)->post\n\t\t\t\t\t);\n\t\t\t\t\tcurl_setopt_array( $curl, $curl_opts );\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tarray_push( self::$errors, \"[REQUEST-INITIALIZATION-ERROR] - There was an error initializing the request! Make sure that api_option or other important parameters are set!\" );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase ((object) self::$URLS)->get_raw:\n\t\t\t\tif( (strcmp( self::$api_option, \"show_paste\" ) === 0) && ( strcmp( self::$api_paste_key, \"\" ) !== 0 ) )\n\t\t\t\t{\n\t\t\t\t\t$query = http_build_query([\n\t\t\t\t\t\t\t\t'api_option' => self::$api_option,\n\t\t\t\t\t\t\t\t'api_dev_key' => self::$api_dev_key,\n\t\t\t\t\t\t\t\t'api_user_key' => self::$api_user_key,\n\t\t\t\t\t\t\t\t'api_paste_key' => self::$api_paste_key\n\t\t\t\t\t]);\n\t\t\t\t\t$curl = curl_init();\n\t\t\t\t\t$curl_opts = array(\n\t\t\t\t\t\t\t CURLOPT_POST => true,\n\t\t\t\t\t\t\t CURLOPT_POSTFIELDS => $query,\n\t\t\t\t\t\t\t CURLOPT_RETURNTRANSFER => 1,\n\t\t\t\t\t\t\t CURLOPT_NOBODY => 0,\n\t\t\t\t\t\t\t CURLOPT_USERAGENT => self::$agents[ mt_rand( 0, sizeof( self::$agents ) - 1 ) ],\n\t\t\t\t\t\t\t CURLOPT_TIMEOUT => 28800,\n\t\t\t\t\t\t\t CURLOPT_URL => ((object) self::$URLS)->get_raw\n\t\t\t\t\t);\n\t\t\t\t\tcurl_setopt_array( $curl, $curl_opts );\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tarray_push( self::$errors, \"[GET-RAW-INITIALIZATION-ERROR] - There was an error initializing the request! Make sure that api_option or other important parameters are set!\" );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase ((object) self::$URLS )->login:\n\t\t\t\t\t$query = http_build_query([\n\t\t\t\t\t\t\t\t'api_dev_key' => self::$api_dev_key,\n\t\t\t\t\t\t\t\t'api_user_name' => self::$api_user_name,\n\t\t\t\t\t\t\t\t'api_user_password' => self::$api_user_password\n\t\n\t\t\t\t\t]);\n\t\t\t\t\t$curl = curl_init();\n\t\t\t\t\t$curl_opts = array(\n\t\t\t\t\t\t\t CURLOPT_POST => true,\n\t\t\t\t\t\t\t CURLOPT_POSTFIELDS => $query,\n\t\t\t\t\t\t\t CURLOPT_RETURNTRANSFER => 1,\n\t\t\t\t\t\t\t CURLOPT_NOBODY => 0,\n\t\t\t\t\t\t\t CURLOPT_USERAGENT => self::$agents[ mt_rand( 0, sizeof( self::$agents ) - 1 ) ],\n\t\t\t\t\t\t\t CURLOPT_TIMEOUT => 28800,\n\t\t\t\t\t\t\t CURLOPT_URL => ((object) self::$URLS)->login\n\t\t\t\t\t);\n\t\t\t\t\tcurl_setopt_array( $curl, $curl_opts );\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $curl;\n\t}", "private function curl_post($url, $data)\n {\n $json_str = file_get_contents($this->cil_config_file);\n $json = json_decode($json_str);\n \n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n //curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Content-Length: ' . strlen($doc)));\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');\n curl_setopt($ch, CURLOPT_POSTFIELDS,$data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_USERPWD, $json->readonly_unit_tester);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n $response = curl_exec($ch);\n curl_close($ch);\n return $response;\n }", "function put($url, $fields, $headers)\n{\n $ch = curl_init($url); //initialize and set url\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\"); //set as put request\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); //set fields, ensure they are properly encoded\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); // set headers pass encoding here and tokens.\n $response = curl_exec($ch); // save the response\n curl_close ($ch);\n return $response;\n}", "public function get_uploaded_url(){\n\t\t$api_url \t= \"https://api002.backblazeb2.com\"; // From b2_authorize_account call\n\t\t$auth_token = \"4_002147cd01b5a680000000000_018d4c36_d47af5_acct_8SQ4r2LRCypwp1wl0rPo1ySwDm4=\"; // From b2_authorize_account call\n\t\t$bucket_id \t= \"d184771c8d50b17b65ba0618\"; // The ID of the bucket you want to upload to\n\n\t\t$session = curl_init($api_url . \"/b2api/v2/b2_get_upload_url\");\n\n\t\t// Add post fields\n\t\t$data = array(\"bucketId\" => $bucket_id);\n\t\t$post_fields = json_encode($data);\n\t\tcurl_setopt($session, CURLOPT_POSTFIELDS, $post_fields); \n\n\t\t// Add headers\n\t\t$headers = array();\n\t\t$headers[] = \"Authorization: \" . $auth_token;\n\t\tcurl_setopt($session, CURLOPT_HTTPHEADER, $headers); \n\n\t\tcurl_setopt($session, CURLOPT_POST, true); // HTTP POST\n\t\tcurl_setopt($session, CURLOPT_RETURNTRANSFER, true); // Receive server response\n\t\t$server_output = curl_exec($session); // Let's do this!\n\t\tcurl_close ($session); // Clean up\n\t\techo ($server_output); // Tell me about the rabbits, George!\n\n\t\t/*\n\t\t{ \t\n\t\t\t\"authorizationToken\": \"4_002147cd01b5a680000000000_018d4c4a_2690fb_upld_YoK-yBz17Mj5QQS60UQ1bVwRtXw=\", \n\t\t\t\"bucketId\": \"d184771c8d50b17b65ba0618\", \n\t\t\t\"uploadUrl\": \"https://pod-000-1126-02.backblaze.com/b2api/v2/b2_upload_file/d184771c8d50b17b65ba0618/c002_v0001126_t0048\" \n\t\t} \n\t\t*/\n\t}", "public function upload();", "public function sendFile($url, $fields) {\n\n $this->_error = NULL;\n $this->_rc = NULL;\n\n curl_setopt($this->_cm, CURLOPT_USERPWD, $this->_username.\":\".$this->_password);\n curl_setopt($this->_cm, CURLOPT_POSTFIELDS, $fields);\n curl_setopt($cm, CURLOPT_URL, $url);\n\n $res = curl_exec($this->_cm);\n if ($res == FALSE) {\n $this->_error = curl_error($this->_cm);\n $res = -1;\n } else {\n $this->_rc = curl_getinfo($this->_cm, CURLINFO_HTTP_CODE);\n $res = $this->_rc;\n }\n curl_close($this->_cm);\n return $res;\n }", "public function checkOperationalityForCurlTrait()\n {\n if (!extension_loaded('curl')) {\n throw new SystemRequirementsNotMetException('Required cURL extension is not available.');\n }\n\n if (!function_exists('curl_init')) {\n throw new SystemRequirementsNotMetException('Required url_init() function is not available.');\n }\n\n if (!function_exists('curl_file_create')) {\n throw new SystemRequirementsNotMetException(\n 'Required curl_file_create() function is not available (requires PHP > 5.5).'\n );\n }\n }", "public function images_upload()\n\t{\n\t\t$args = phpSmug::processArgs( func_get_args() );\n\t\tif ( !array_key_exists( 'File', $args ) ) {\n\t\t\tthrow new PhpSmugException( 'No upload file specified.' );\n\t\t}\n\t\t\n\t\t// Set FileName, if one isn't provided in the method call\n\t\tif ( !array_key_exists( 'FileName', $args ) ) {\n\t\t\t$args['FileName'] = basename( $args['File'] );\n\t\t}\n\n\t\t// Ensure the FileName is phpSmug::urlencodeRFC3986 encoded - caters for stange chars and spaces\n\t\t$args['FileName'] = phpSmug::urlencodeRFC3986( $args['FileName'] );\n\n\t\t// OAuth Stuff\n\t\tif ( $this->OAuthSecret ) {\n\t\t\t$sig = $this->generate_signature( 'Upload', array( 'FileName' => $args['FileName'] ) );\n\t\t}\n\t\t\n\t\tif ( is_file( $args['File'] ) ) {\n\t\t\t$fp = fopen( $args['File'], 'r' );\n\t\t\t$data = fread( $fp, filesize( $args['File'] ) );\n\t\t\tfclose( $fp );\n\t\t} else {\n\t\t\tthrow new PhpSmugException( \"File doesn't exist: {$args['File']}\" );\n\t\t}\n\n\t\t// Create a new object as we still need the other request object\n\t\t$upload_req = new httpRequest();\n $upload_req->setMethod( 'PUT' );\n\t\t$upload_req->setConfig( array( 'follow_redirects' => TRUE, 'max_redirects' => 3, 'ssl_verify_peer' => FALSE, 'ssl_verify_host' => FALSE, 'connect_timeout' => 60 ) );\n\t\t$upload_req->setAdapter( $this->adapter );\n\t\t\n\t\t// Set the proxy if one has been set earlier\n\t\tif ( isset( $this->proxy ) && is_array( $this->proxy ) ) {\n\t\t\t$upload_req->setConfig(array('proxy_host' => $this->proxy['server'],\n\t\t\t\t\t\t\t 'proxy_port' => $this->proxy['port'],\n\t\t\t\t\t\t\t\t\t 'proxy_user' => $this->proxy['user'],\n\t\t\t\t\t\t\t\t\t 'proxy_password' => $this->proxy['password']));\n\t\t}\n\n\t\t$upload_req->setHeader( array( 'User-Agent' => \"{$this->AppName} using phpSmug/\" . phpSmug::$version,\n\t\t\t\t\t\t\t\t\t 'Content-MD5' => md5_file( $args['File'] ),\n\t\t\t\t\t\t\t\t\t 'Connection' => 'keep-alive') );\n\n\t\tif ( $this->loginType == 'authd' ) {\n\t\t\t$upload_req->setHeader( 'X-Smug-SessionID', $this->SessionID );\n\t\t} else {\n\t\t\t$upload_req->setHeader( 'Authorization', 'OAuth realm=\"http://api.smugmug.com/\",'\n\t\t\t\t.'oauth_consumer_key=\"'.$this->APIKey.'\",'\n\t\t\t\t.'oauth_token=\"'.$this->oauth_token.'\",'\n\t\t\t\t.'oauth_signature_method=\"'.$this->oauth_signature_method.'\",'\n\t\t\t\t.'oauth_signature=\"'.urlencode( $sig ).'\",'\n\t\t\t\t.'oauth_timestamp=\"'.$this->oauth_timestamp.'\",'\n\t\t\t\t.'oauth_version=\"1.0\",'\n\t\t\t\t.'oauth_nonce=\"'.$this->oauth_nonce.'\"' );\n\t\t}\n\t\t\t\n\t\t$upload_req->setHeader( array( 'X-Smug-Version' => $this->APIVer,\n\t\t\t\t\t\t\t\t\t 'X-Smug-ResponseType' => 'PHP',\n\t\t\t\t\t\t\t\t\t 'X-Smug-AlbumID' => $args['AlbumID'],\n\t\t\t\t\t\t\t\t\t 'X-Smug-Filename'=> basename($args['FileName'] ) ) ); // This is actually optional, but we may as well use what we're given\n\t\t\n\t\t/* Optional Headers */\n\t\tforeach( $args as $arg => $value ) {\n\t\t\tif ( $arg == 'File' ) continue;\n\t\t\t$upload_req->setHeader( 'X-Smug-' . $arg, $value );\n\t\t}\n\n\t\t//$proto = ( $this->oauth_signature_method == 'PLAINTEXT' || $this->secure ) ? 'https' : 'http';\t// No secure uploads at this time.\n\t\t//$upload_req->setURL( $proto . '://upload.smugmug.com/'.$args['FileName'] );\n\t\t$upload_req->setURL( 'http://upload.smugmug.com/'.$args['FileName'] );\n\t\t$upload_req->setBody( $data );\n\n //Send Requests \n\t\t$upload_req->execute();\n\t\t\n\t\t$this->response = $upload_req->getBody();\n\t\t\n\t\t// For some reason the return string is formatted with \\n and extra space chars. Remove these.\n\t\t$replace = array( '\\n', '\\t', ' ' );\n\t\t$this->response = str_replace( $replace, '', $this->response );\n\t\t$this->parsed_response = unserialize( trim( $this->response ) );\n\t\t\n\t\tif ( $this->parsed_response['stat'] == 'fail' ) {\n\t\t\t$this->error_code = $this->parsed_response['code'];\n $this->error_msg = $this->parsed_response['message'];\n\t\t\t$this->parsed_response = FALSE;\n\t\t\tthrow new PhpSmugException( \"SmugMug API Error for method image_upload: {$this->error_msg}\", $this->error_code );\n\t\t} else {\n\t\t\t$this->error_code = FALSE;\n $this->error_msg = FALSE;\n\t\t}\n\t\treturn $this->parsed_response ? $this->parsed_response['Image'] : FALSE;\n\t}", "function test(){\n\t\t// See http://www.atk14.net/api/en/file_uploads/create_new/\n\n\t\t$adf = new ApiDataFetcher(\"http://www.atk14.net/api/\",array(\n\t\t\t\"logger\" => new Logger()\n\t\t));\n\t\t$data = $adf->postFile(\"file_uploads/create_new\",\"sandokan.jpg\");\n\n\t\t$this->assertEquals(201,$adf->getStatusCode());\n\t\t$this->assertEquals(\"POST\",$adf->getMethod());\n\t\t$this->assertEquals(\"http://www.atk14.net/api/en/file_uploads/create_new/?format=json\",$adf->getUrl());\n\t\t$this->assertEquals(\"sandokan.jpg\",$data[\"filename\"]);\n\t\t$this->assertEquals(\"image/jpeg\",$data[\"mime_type\"]);\n\t\t$this->assertEquals(\"d5d4599e3586064e0524d18e8ee8bce5\",$data[\"md5sum\"]);\n\t}", "abstract protected function doUpload();", "public function upload_file() {\n $csv = $this->create_csv();\n\n if(!empty($csv)) {\n\n // upload to sharefile\n $this->token = $this->get_token();\n\n if($this->token) {\n $uri = \"https://\".$this->get_hostname().\"/sf/v3/Items(\".self::RECEIVED_PATIENT_FORMS_FOLDER_ID.\")/Upload\";\n //echo \"GET \".$uri.\"\\n\";\n\n $headers = $this->get_authorization_header();\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $uri);\n curl_setopt($ch, CURLOPT_TIMEOUT, 300);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_VERBOSE, FALSE);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n\n $curl_response = curl_exec($ch);\n\n $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n $curl_error_number = curl_errno($ch);\n $curl_error = curl_error($ch);\n\n $upload_config = json_decode($curl_response);\n\n if ($http_code == 200) {\n $post[\"File1\"] = new CurlFile($this->local_path, 'application/csv', $this->filename);\n curl_setopt ($ch, CURLOPT_URL, $upload_config->ChunkUri);\n curl_setopt ($ch, CURLOPT_POST, true);\n curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);\n curl_setopt ($ch, CURLOPT_VERBOSE, FALSE);\n curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt ($ch, CURLOPT_HEADER, true);\n\n $upload_response = curl_exec($ch);\n\n //echo \"<br /><br />\";\n //echo $upload_response.\"\\n\";\n\n curl_close($ch);\n\n header('Content-Type: application/json');\n echo json_encode(array(\"status\" => \"success\"));\n die();\n }\n\n }\n } else {\n echo json_encode(array(\"status\" => \"error\", \"error\" => \"CSV not created\"));\n die();\n }\n }", "public function upload()\n {\n if (!Request::hasPost('requestToken') || !RequestToken::validate(Request::getPost('requestToken'))) {\n $objResponse = new ResponseError();\n $objResponse->setMessage('Invalid Request Token!');\n $objResponse->output();\n }\n\n if (!Request::getInstance()->files->has($this->name)) {\n return;\n }\n\n $objTmpFolder = new \\Folder(MultiFileUpload::UPLOAD_TMP);\n\n // contao 4 support, create tmp dir symlink\n if (version_compare(VERSION, '4.0', '>=')) {\n // tmp directory is not public, mandatory for preview images\n if (!file_exists(System::getContainer()->getParameter('contao.web_dir') . DIRECTORY_SEPARATOR . MultiFileUpload::UPLOAD_TMP)) {\n $objTmpFolder->unprotect();\n $command = new SymlinksCommand();\n $command->setContainer(System::getContainer());\n $input = new ArrayInput([]);\n $output = new NullOutput();\n $command->run($input, $output);\n }\n }\n\n $strField = $this->name;\n $varFile = Request::getInstance()->files->get($strField);\n // Multi-files upload at once\n if (is_array($varFile)) {\n // prevent disk flooding\n if (count($varFile) > $this->maxFiles) {\n $objResponse = new ResponseError();\n $objResponse->setMessage('Bulk file upload violation.');\n $objResponse->output();\n }\n\n /**\n * @var UploadedFile $objFile\n */\n foreach ($varFile as $strKey => $objFile) {\n $arrFile = $this->uploadFile($objFile, $objTmpFolder->path, $strField);\n $varReturn[] = $arrFile;\n\n if (\\Validator::isUuid($arrFile['uuid'])) {\n $arrUuids[] = $arrFile['uuid'];\n }\n }\n } // Single-file upload\n else {\n /**\n * @var UploadedFile $varFile\n */\n $varReturn = $this->uploadFile($varFile, $objTmpFolder->path, $strField);\n\n if (\\Validator::isUuid($varReturn['uuid'])) {\n $arrUuids[] = $varReturn['uuid'];\n }\n }\n\n if ($varReturn !== null) {\n $this->varValue = $arrUuids;\n $objResponse = new ResponseSuccess();\n $objResult = new ResponseData();\n $objResult->setData($varReturn);\n $objResponse->setResult($objResult);\n\n return $objResponse;\n }\n }", "public function testUploadFile()\n {\n // initialize the API client\n $config = (new Configuration())->setHost('http://petstore.swagger.io/v2');\n $api_client = new ApiClient($config);\n $pet_api = new Api\\PetApi($api_client);\n // upload file\n $pet_id = 10001;\n $response = $pet_api->uploadFile($pet_id, \"test meta\", \"./composer.json\");\n // return ApiResponse\n $this->assertInstanceOf('Swagger\\Client\\Model\\ApiResponse', $response);\n }", "public function covers_upload(): void\n {\n $response = $this->check_request('Add cover');\n if (!$response) {\n $count_success = 0;\n $count_error = 0;\n $count_rename = 0;\n $last_success = '';\n foreach ($_FILES as $key => $file) {\n $cover = $file['name'];\n $newname = $cover;\n $parts = pathinfo($cover);\n $renumber = 0;\n do {\n $exists = file_exists(folder_covers() . $newname);\n if ($exists) {\n ++$renumber;\n $newname = $parts['filename'] . \" ($renumber).\" .\n $parts['extension'];\n }\n } while($exists);\n $success = move_uploaded_file($file['tmp_name'],\n folder_covers() . $newname);\n if ($success) {\n $last_success = $newname;\n ++$count_success;\n if ($renumber) {\n ++$count_rename;\n }\n $this->log_info(\"Cover uploaded \\\"$newname\\\"\");\n } else {\n ++$count_error;\n $this->log_error(\"Cover upload \\\"$newname\\\" FAILED\");\n }\n }\n if ($count_success) {\n $message = \"Successful uploads: $count_success\";\n if ($count_rename) {\n $message = $message . \" ($count_rename renamed)\";\n }\n if ($count_error) {\n $message = $message . \", failed: $count_error\";\n }\n } else {\n $message = \"Upload failed - $count_error file(s)\";\n }\n $response = $this->get_response(0 == $count_success, $message);\n $response['cover'] = $last_success;\n }\n exit(json_encode($response));\n }" ]
[ "0.61543715", "0.60701174", "0.5948267", "0.5945059", "0.58919954", "0.5717904", "0.56484485", "0.56256074", "0.5514251", "0.5505587", "0.54381335", "0.54052305", "0.5356295", "0.5325793", "0.53239566", "0.5304575", "0.5302475", "0.5291958", "0.52697706", "0.52444404", "0.5204824", "0.51741165", "0.51703656", "0.5164932", "0.51591116", "0.51563597", "0.51376265", "0.51199836", "0.5104963", "0.51042974" ]
0.65039
0
Escapes characters that work as wildcard characters in a LIKE pattern.
public function escapeLike($string);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function escapeLikePattern($text){\r\n\t\t\t$text = str_replace('\\\\', '', $text);//apparently a backslash is ignored when using the LIKE operator\r\n\t\t\t$text = self::escape($text);\r\n\t\t\tif($text !==false){\r\n\t\t\t\t$text = str_replace('%', '\\%', $text);\r\n\t\t\t\t$text = str_replace('_', '\\_', $text);\r\n\t\t\t\tif(mb_strlen($text)>=3) $text .= '%';\r\n\t\t\t}\r\n\t\t\treturn $text;\r\n\t\t}", "abstract public function escapeStr($str, $like = false);", "protected static function _escapeChar($matches) {}", "function esc_like($text)\n{\n return addcslashes($text, '_%\\\\');\n}", "function like_escape($text)\n {\n }", "function escapeSQL($string, $wildcard=false)\n{\n\t$db = &atkGetDb();\n\treturn $db->escapeSQL($string, $wildcard);\n}", "function escapeForRegex($pattern)\n{\n\t$escaped='';\n\t$escapechars = array(\"/\",\"?\",'\"', \"(\", \")\", \"'\",\"*\",\".\",\"[\",\"]\");\n\tfor ($counter = 0; $counter<strlen($pattern);$counter++)\n\t{\n\t\t$curchar = substr($pattern, $counter, 1);\n\t\tif (in_array($curchar,$escapechars))\n\t\t$escaped .= \"\\\\\";\n\t\t$escaped.=$curchar;\n\t}\n\treturn $escaped;\n}", "public static function escapeMatchPattern($text){\r\n\t\t$text = str_replace('*', '', trim($text));\r\n\t\tif(mb_strlen($text)>=3){\r\n\t\t\tif(!strstr($text,'\"')){\r\n\t\t\t\tif(!strstr($text,\"'\")){\r\n\t\t\t\t\t//not exact phrase\r\n\t\t\t\t\tif(!strstr($text,' ')){\r\n\t\t\t\t\t\t//one word\r\n\t\t\t\t\t\t$text.='*';//truncation\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn self::escape($text);\r\n\t}", "public static function safe_sql_like($string){\n global $wpdb;\n\n // safe\n $string = $wpdb->prepare(\"%s\", $string);\n // trim '\n $tmp = explode(\"'\", $string);\n array_shift($tmp);\n array_pop($tmp);\n $string = implode(\"'\", $tmp);\n\n // Safe for LIKE'...'\n $string = str_replace( array(\"%\", \"[\", \"]\", \"^\", \"_\"), array(\"\\%\", \"\\[\", \"\\]\", \"\\^\", \"\\_\"), $string);\n\n return $string;\n }", "public function escapeLikeStringDirect($str)\n\t{\n\t\t//log_message('error', 'escapeLikeStringDirect');\n\n\t\tif (is_array($str))\n\t\t{\n\t\t\tforeach ($str as $key => $val)\n\t\t\t{\n\t\t\t\t$str[$key] = $this->escapeLikeStringDirect($val);\n\t\t\t}\n\n\t\t\treturn $str;\n\t\t}\n\n\t\t$str = $this->_escapeString($str);\n\n\t\t// Escape LIKE condition wildcards\n\t\treturn str_replace([\n\t\t\t$this->likeEscapeChar,\n\t\t\t'%',\n\t\t\t'_',\n\t\t], [\n\t\t\t'\\\\' . $this->likeEscapeChar,\n\t\t\t'\\\\' . '%',\n\t\t\t'\\\\' . '_',\n\t\t], $str\n\t\t);\n\t}", "function preg_wildcard($pat) {\n return str_replace(array('*', '?', '/'),array('.*', '.', '\\/'), $pat);\n}", "protected function escapeLike(string $str): string {\n return addcslashes($str, '_%');\n }", "function wildcardify($s, $wrap = '%') {\n\n\n $result = '';\n $escape = false;\n $len = strlen($s);\n $foundWildcard = false;\n\n for($i = 0; $i < $len; $i++) {\n\n $c = substr($s, $i, 1);\n\n if ($escape) {\n $result .= $c;\n $escape = false;\n continue;\n } else if ($c === '\\\\') {\n $escape = true;\n continue;\n }\n\n if ($c === '%') $c = '\\\\%';\n if ($c === '_') $c = '\\\\_';\n\n $foundWildcard = $foundWildcard || ($c === '*' || $c === '?');\n\n if ($c === '*') $c = '%';\n if ($c === '?') $c = '_';\n\n $result .= $c;\n }\n\n if ($wrap && !$foundWildcard) {\n $result = \"{$wrap}{$result}{$wrap}\";\n }\n\n return $result;\n }", "public function anyString() {\n\t\treturn new LikeMatch( '%' );\n\t}", "protected function _escape($text)\n {\n static $list;\n if (! $list) {\n $list = array(\n '%' => '%%',\n );\n \n for ($i = 0; $i < 32; $i ++) {\n $list[chr($i)] = \"\\\\$i\";\n }\n \n $list[chr(127)] = \"\\\\127\";\n }\n \n return strtr($text, $list);\n }", "function escapeSQL($string, $wildcard=false)\n\t{\n\t\tif ($this->connect('r') === DB_SUCCESS)\n\t\t{\n\t\t\tif ($wildcard == true)\n\t\t\t{\n\t\t\t\t$string = str_replace('%', '\\%', $string);\n\t\t\t}\n\t\t\treturn mysqli_real_escape_string($this->m_link_id, $string);\n\t\t}\n\n\t\treturn null;\n\t}", "function ldap_filterescape($string){\n return preg_replace_callback(\n '/([\\x00-\\x1F\\*\\(\\)\\\\\\\\])/',\n function ($matches) {\n return \"\\\\\" . implode(\"\", unpack(\"H2\", $matches[1]));\n },\n $string\n );\n}", "protected function escape($value): string\n {\n $value = strtr(\n $value,\n [\n '%' => '\\%',\n '_' => '\\_',\n '\\\\' => '\\\\\\\\',\n ]\n );\n\n return '%' . $value . '%';\n }", "function like($pattern, $subject)\t{\n\t\t$pattern = str_replace('%', '.*', preg_quote($pattern));\n\t\treturn (bool) preg_match(\"/^{$pattern}$/i\", $subject);\n\t}", "protected function toLikeSearchString($text)\n {\n $str = preg_replace('#[\\s%]+#', '%', $text);\n\n // Remove all wildcard character at the head and tail\n $str = preg_replace('#^%+#', '', $str);\n $str = preg_replace('#%+$#', '', $str);\n \n return $str;\n }", "public function bindLikeValue($value)\n {\n return '%' . $value . '%';\n }", "public function likeEscape(string $keyword): string;", "public function like($stringWithWildCardCharacter){\n $this->debugBacktrace();\n\n $value = $this->_real_escape_string($stringWithWildCardCharacter);\n\n if($this->last_call_where_or_having == \"where\"){\n $this->whereClause .= \" LIKE $value\";\n }\n else{\n $this->havingClause .= \" LIKE $value\";\n }\n return $this;\n }", "function checkRealEscapeString($value);", "function LikeWhereClause ($field, $value)\n\t{\n\t\t$this->field = $field;\n\t\t$this->regexp = '/^' . str_replace('%','.*', preg_quote($value)) . '$/i';\n\t}", "public function escapeString($stringToEscape);", "protected function _wildcardize($field) {\r\n // TODO: Need to be improve, protection caracter should be found \r\n\t\t$where = array();\r\n\t\tif (strpos($value, '*') !== false) {\r\n\t\t\t$where[\"{$field} LIKE ?\"] = str_replace('*', '%', $value);\r\n\t\t} \r\n\t\telse {\r\n\t\t\t$where[\"{$column} = ?\"] = $value;\r\n\t\t}\r\n \t\r\n\t\treturn $where;\r\n }", "abstract protected function _escape($s);", "public function placeholder_escape()\n {\n }", "public function anyChar() {\n\t\treturn new LikeMatch( '_' );\n\t}" ]
[ "0.7615724", "0.6679104", "0.64715123", "0.6388895", "0.63864124", "0.6353176", "0.6335272", "0.631977", "0.6205899", "0.6171898", "0.6113325", "0.60980946", "0.6023556", "0.5989543", "0.5975944", "0.5967675", "0.5912313", "0.58984905", "0.57821065", "0.577939", "0.576991", "0.5763595", "0.57352304", "0.5732939", "0.5716451", "0.5695214", "0.5680009", "0.56583774", "0.5644973", "0.56354225" ]
0.72575366
1
Escapes a field name string. Force all field names to be strictly alphanumericplusunderscore. For some database drivers, it may also wrap the field name in databasespecific escape characters.
public function escapeField($string);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function escapeField(string $field)\n {\n $field = trim($field);\n\n // do not backtick if a MySQL Function is called\n if (stripos($field, '(') !== false && stripos($field, ')') !== false) {\n return $field;\n }\n\n // do not backtick if a comma ', ' exists in the field\n if (stripos($field, ',') !== false) {\n return $field;\n }\n\n // do not backtick if a backtick '`' exists in the field\n if (stripos($field, '`') !== false) {\n return $field;\n }\n\n // split the field and alias if the field is aliased\n if (stripos($field, ' as ') != false) {\n list($field, $alias) = preg_split('/ as /i', $field);\n }\n\n if (stripos($field, '.') === false) {\n $field = '`' . $field . '`';\n } else {\n list($table, $field) = explode('.', $field);\n $field = '`' . $table . '`.`' . $field . '`';\n }\n\n if (isset($alias)) {\n $field = $field . ' as ' . $alias;\n }\n\n return $field;\n }", "public static function format_field_name(string $field_name)\n {\n }", "public static function SqlEscString($str)\n {\n try {\n $ret = str_replace([ '%', '_' ], [ '\\%', '\\_' ], DB::getPdo()->quote($str));\n return $ret && strlen($ret) >= 2 ? substr($ret, 1, strlen($ret)-2) : $ret;\n } catch (Exception $e) {\n return $str;\n }\n }", "public function testEscapeField() {\n\t\t$TestModel = new Test();\n\t\t$db = $TestModel->getDataSource();\n\n\t\t$result = $TestModel->escapeField('test_field');\n\t\t$expected = $db->name('Test.test_field');\n\t\t$this->assertEquals($expected, $result);\n\n\t\t$result = $TestModel->escapeField('TestField');\n\t\t$expected = $db->name('Test.TestField');\n\t\t$this->assertEquals($expected, $result);\n\n\t\t$result = $TestModel->escapeField('DomainHandle', 'Domain');\n\t\t$expected = $db->name('Domain.DomainHandle');\n\t\t$this->assertEquals($expected, $result);\n\n\t\tConnectionManager::create('mock', array('datasource' => 'DboMock'));\n\t\t$TestModel->setDataSource('mock');\n\t\t$db = $TestModel->getDataSource();\n\n\t\t$result = $TestModel->escapeField('DomainHandle', 'Domain');\n\t\t$expected = $db->name('Domain.DomainHandle');\n\t\t$this->assertEquals($expected, $result);\n\t\tConnectionManager::drop('mock');\n\t}", "public function EscapeString($argString, $argEscapeUnderscorePercentCharacters = false)\r\n {\r\n $this->checkDatabaseManager();\r\n $escapedString = $this->_DatabaseHandler->real_escape_string($argString);\r\n if($argEscapeUnderscorePercentCharacters)\r\n {\r\n $escapedString = addcslashes($escapedString, '%_');\r\n }\r\n return $escapedString;\r\n }", "function db_escape($input)\n{\n\tglobal $db;\n\treturn $db->real_escape_string($input);\n}", "function _fixName($field_or_value_name) {\r\n if ($field_or_value_name == \"\")\r\n return \"\";\r\n // convert space into underscore\r\n $result = preg_replace(\"/ /\", \"_\", strtolower($field_or_value_name));\r\n // strip all non alphanumeric chars\r\n $result = preg_replace(\"/\\W/\", \"\", $result);\r\n return $result;\r\n }", "function safe_name($name) {\n return preg_replace(\"/\\W/\", \"_\", $name);\n }", "public function escapeDbIdentifier($string)\n {\n $string = str_replace('`', '``', $string);\n if (preg_match('/[^a-z0-9_]+/i', $string) || in_array(strtoupper($string), $this->KEYWORDS)) {\n $string = \"`$string`\";\n }\n return $string;\n }", "function escape($str) {\n $str = get_magic_quotes_gpc()?stripslashes($str):$str;\n $str = $this->db->escape($str);\n return $str;\n }", "public function escField($key,$default_val = null){\n return new Escape($this->getField($key,$default_val));\n }", "abstract public function escape_string( $str );", "public function preventAddSlashes( $fields=array() );", "public static function prep($str = '', $field_name = '')\n {\n static $prepped_fields = array();\n\n // if the field name is an array we do this recursively\n if (is_array($str)) {\n foreach ($str as $key => $val) {\n $str[$key] = self::prep($val);\n }\n return $str;\n }\n\n if ($str === '') {\n return '';\n }\n\n // we've already prepped a field with this name\n // @todo need to figure out a way to namespace this so\n // that we know the *exact* field and not just one with\n // the same name\n if (isset($prepped_fields[$field_name])) {\n return $str;\n }\n\n $str = htmlspecialchars($str);\n\n // In case htmlspecialchars misses these.\n $str = str_replace(array(\"'\", '\"'), array(\"&#39;\", \"&quot;\"), $str);\n\n if ($field_name != '') {\n $prepped_fields[$field_name] = $field_name;\n }\n\n return $str;\n }", "public function escapeString($stringToEscape);", "public static function quote_name($key)\n {\n if (is_object($key))\n return '('.strval($key).')';\n\n if (preg_match('/^[a-zA-Z]+[a-zA-Z0-9_]*$/', $key))\n return sprintf('`%s`', trim($key));\n\n return trim($key);\n }", "function db_driver_escape($data)\n{\n global $_db;\n\n return '\\'' . str_replace('\\'', '\\'\\'', $data) . '\\'';\n}", "private function _prepareName($name)\n {\n return urlencode($name);\n\n }", "static public function real_escape_string($s) { return self::escape($s); }", "public abstract function escape($string);", "function make_fieldname_text($fieldname) {\n\t$fieldname=str_replace(\"_\", \" \",$fieldname);\n\t$fieldname=ucfirst($fieldname);\n\treturn $fieldname;\t\t\n}", "public function preventAddSlashes( $fields=array() )\n\t{\n\t\t$this->no_escape_fields = $fields;\n\t}", "function graphql_format_field_name($field_name)\n {\n }", "abstract public function escapeString($string);", "abstract protected function _escape($s);", "protected abstract function escape($string);", "function prepare_field($field)\n{\n return trim(preg_replace(\"/[<>&=%:'“]/i\", \"\", $field));\n}", "public function getDbFieldName($field_name);", "function removeSpecial($field)\n{\n\t$in_str = str_replace(array('<', '>', '&', '{', '}', '*', '/', '(', '[', ']', '@', '!', ')', '&', '*', '#', '$', '%', '^', '|', '?', '+', '=',\n\t\t'\"', ','), array(''), $field);\n\t$cur_encoding = mb_detect_encoding($in_str);\n\tif ($cur_encoding == 'UTF-8' && mb_check_encoding($in_str, 'UTF-8'))\n\t\t$name = $in_str;\n\telse\n\t\t$name = utf8_encode($in_str);\n\tif (!Validate::isName($name))\n\t{\n\t\t$len = Tools::strlen($name);\n\t\t$return_val = '';\n\t\tfor ($i = 0; $i < $len; $i++)\n\t\t{\n\t\t\tif (ctype_alpha($name[$i]))\n\t\t\t\t$return_val .= $name[$i];\n\t\t}\n\t\t$name = $return_val;\n\t\tif (empty($name))\n\t\t{\n\t\t\t$letters = range('a', 'z');\n\t\t\tfor ($i = 0; $i < 5; $i++)\n\t\t\t\t$name .= $letters[rand(0, 26)];\n\t\t}\n\t}\n\treturn $name;\n}", "private function escapeColumn($name)\n {\n if (strpos($name, '.') || strpos($name, '`') || strpos($name, ' ')) {\n return $name;\n }\n\n if ($name == '*') {\n return $name;\n }\n\n return '`'.$name.'`';\n }" ]
[ "0.66678315", "0.63153297", "0.63135165", "0.62421423", "0.62020165", "0.598713", "0.59577703", "0.5862742", "0.5858427", "0.58363247", "0.57445717", "0.5736223", "0.56559825", "0.56531894", "0.5618645", "0.56140554", "0.5601697", "0.5594234", "0.5554159", "0.5548157", "0.55473155", "0.554646", "0.55443895", "0.5517067", "0.5479627", "0.54761523", "0.5457091", "0.54532266", "0.54529893", "0.5445472" ]
0.7223695
0
Add multiple fields from the same table to be SELECTed. This method does not return the aliases set for the passed fields. In the majority of cases that is not a problem, as the alias will be the field name. However, if you do need to know the alias you can call getFields() and examine the result to determine what alias was created. Alternatively, simply use addField() for the few fields you care about and this method for the rest.
public function fields($table_alias, array $fields = []);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fields($alias, $fields = array('*'))\t{\n\n\t\tif (!is_string($alias) || empty($alias)) {\n\t\t\tthrow new InvalidArgumentException('Invalid table alias.');\n\t\t}\n\t\tif (!is_array($fields) || empty($fields)) {\n\t\t\tthrow new InvalidArgumentException('Invalid fields list.');\n\t\t}\n\n\t\tforeach ($fields as $name) {\n\t\t\t$this->fields[] = \"$alias.$name\";\n\t\t}\n\t\treturn $this;\n\t}", "public function addField($table_alias, $field, $alias = NULL);", "private function addFields( array $aFields )\n\t{\n\t\t// FIELDS\n\t\t$this->query .= \" (\";\n\t\t$i = 1;\n\t\tforeach ($aFields as $field)\n\t\t{\n\t\t\t$this->query .= \" \" . $field;\n\t\t\tif ($i < count( $aFields ))\n\t\t\t{\n\t\t\t\t$this->query .= \",\"; // last fields should not end with a ,\n\t\t\t}\n\t\t\t\n\t\t\t$i ++;\n\t\t}\n\t\t$this->query .= \")\";\n\t\t\n\t\t// VALUES\n\t\t$this->query .= \" VALUES(\";\n\t\t$i = 1;\n\t\tforeach ($aFields as $field)\n\t\t{\n\t\t\t$this->query .= \":\".$field;\n\t\t\tif ($i < count( $aFields ))\n\t\t\t{\n\t\t\t\t$this->query .= \",\"; // last fields should not end with a ,\n\t\t\t}\n\t\t\t\n\t\t\t$i ++;\n\t\t}\n\t\t$this->query .= \")\";\n\t}", "public function addSelect($fields)\n {\n if (func_num_args() > 1) {\n $fields = func_get_args();\n } elseif (!is_array($fields)) {\n $fields = [$fields];\n }\n foreach ($fields as $idx => $field) {\n $this->selectField($field, is_numeric($idx) ? null : $idx);\n }\n\n return $this;\n }", "public function testBuildSelectWithFieldsAndAlias()\n {\n $query = $this->getQuery()\n ->alias('alias')\n ->fields('id', 'name', 'email')\n ;\n\n $this->assertSame(\n 'alias.id AS alias__id, alias.name AS alias__name, alias.email AS alias__email',\n $query->buildSelectFields()\n );\n }", "public function add(...$fields): self\n {\n foreach ($fields as $field) {\n $this->fields[] = $field;\n }\n\n return $this;\n }", "public function fields($fields) {\n $this->_active_query->fields($fields);\n }", "public function addFields($fields ) {\n foreach( $fields as $field ) {\n $this->addField( $field );\n }\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 function field($columns)\n {\n if (!is_array($columns)) {\n $columns = func_get_args();\n }\n foreach ($columns as $column) {\n $field = new SugarQuery_Builder_Field_Select($column, $this->query);\n $key = empty($field->alias) ? $field->field : $field->alias;\n if(!$field->isNonDb()) {\n $this->select[$key] = $field;\n $this->fieldsByTable[$field->table][$field->field] = true;\n }\n }\n return $this;\n }", "public function setFields($fields) {\r\n if( is_array($fields) ) {\r\n $this->sqlFields = array_merge($this->sqlFields, $fields);\r\n } elseif( is_string($fields) ) {\r\n $this->sqlFields[] = $fields;\r\n }\r\n return $this;\r\n }", "public function setSelectFields()\r\n\t{\r\n\t\t$fields = func_get_args();\r\n\t\tif (empty($fields))\r\n\t\t{\r\n\t\t\tthrow new \\Exception('Select fields list is not an array or empty.');\r\n\t\t}\r\n\t\r\n\t\t// Check if fields exist in fields collection\r\n\t\tforeach($fields as &$item)\r\n\t\t{\r\n\t\t\t$found = false;\r\n\t\t\tforeach ($this->fields as &$field)\r\n\t\t\t{\r\n\t\t\t\tif ($item == $field->name)\r\n\t\t\t\t{\r\n\t\t\t\t\t$found = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\tif (!$found)\r\n\t\t\t{\r\n\t\t\t\tthrow new \\Exception('There is no field \"' . $item . '\" in table ' . $this->name . '.');\r\n\t\t\t}\r\n\t\r\n\t\t\t// Add to list\r\n\t\t\tif ($this->hasForeignFields())\r\n\t\t\t{\r\n\t\t\t\t$item = 't1.`' . $item . '`';\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$item = '`' . $this->name . '`.`' . $item . '`';\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t$this->selectFields = $fields;\r\n\t}", "public function testBuildSelectWithAddField()\n {\n $query = $this->getQuery()\n ->addField('user@email', 'email')\n ;\n\n $this->assertSame(\n \"*, 'user@email' AS email\",\n $query->buildSelectFields()\n );\n }", "public function testBuildSelectWithAddFieldAndAlias()\n {\n $query = $this->getQuery()\n ->alias('alias')\n ->addField(Expression::apishka('NOW()'), 'current_time')\n ;\n\n $this->assertSame(\n 'alias.*, NOW() AS alias__current_time',\n $query->buildSelectFields()\n );\n }", "public function aliasFields(array $fields, ?string $defaultAlias): array;", "public function addFields($fields)\n {\n if( !is_array( $fields ) )\n $fields = func_get_args();\n \n if( count( $fields ) === 1 && is_array( $fields[0] ) )\n \t$fields = $fields[0];\n \n foreach( $fields as &$field )\n $this->addField( $field );\n\n return $this;\n }", "public function setSelect($fields)\n {\n $this->select = [];\n if (func_num_args() > 1) {\n $fields = func_get_args();\n } elseif (!is_array($fields)) {\n $fields = [$fields];\n }\n return $this->addSelect($fields);\n }", "public function addFields($fields)\r\n {\r\n if (is_string($fields)) {\r\n $fields = explode(',', $fields);\r\n }\r\n\r\n foreach ($fields as $field) {\r\n $this->addField($field);\r\n }\r\n\r\n return $this;\r\n }", "public function fields($fields, $merge = false) {\n if (!is_array($fields)) {\n $fields = func_get_args();\n $merge = false;\n }\n\n if ($merge) {\n $fields = array_merge($this->_fields, $fields);\n }\n\n // When doing a select, unique the field list\n if ($this->getType() === self::SELECT) {\n $fields = array_values(array_unique($fields, SORT_REGULAR)); // SORT_REGULAR allows for objects\n }\n\n $this->_fields = $fields;\n\n return $this;\n }", "public function fields($fields = NULL)\n {\n if(isset($fields))\n {\n $fields = (is_array($fields)) ? implode(',',$fields) : $fields;\n $this->_database->select($fields);\n }\n return $this;\n }", "public function fields(array $fields)\n {\n $this->unsafeAppendSQLPart('field', $this->asTickedList($fields));\n return $this;\n }", "public function select($fields = [], $overwrite = false);", "abstract public function getAllFieldsAliases(): array;", "public function getAddFieldsDDL($fields)\n {\n $ret = '';\n $pattern = \"\nALTER TABLE %s ADD %s;\n\";\n foreach ($fields as $field) {\n $ret .= sprintf($pattern,\n $this->quoteIdentifier($field->getEntity()->getFQTableName()),\n $this->getFieldDDL($field)\n );\n }\n\n return $ret;\n }", "public function select($fields) {\n\n $fields = self::check_fields_of_table_list(array_map('trim', explode(',', $fields)));\n\n // varsayılan olarak ekle, objeler yüklenirken her zaman id olmalıdır.\n $table_and_primary_key = $this->_table . \".id\";\n if (!in_array($table_and_primary_key, $fields))\n array_push($fields, $table_and_primary_key);\n\n $this->_select = $fields; // [\"User.first_name\", \"User.last_name\", \"Comment.name\"]\n return $this;\n }", "private function makeSelectAndFrom()\r\n\t{\r\n\t\t// Build SQL\r\n\t\t$sql = 'SELECT ';\r\n\t\r\n\t\t// Add custom fields (subqueries)\r\n\t\tif ($this->hasCustomFields())\r\n\t\t{\r\n\t\t\t// Find custom fields\r\n\t\t\tforeach ($this->fields as $field)\r\n\t\t\t{\r\n\t\t\t\tif ($field instanceOf CustomField)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql .= '(' . $field->query . ') AS `' . $field->name . '`, ';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tif (!$this->hasForeignFields())\r\n\t\t{\r\n\t\t\tif (isset($this->selectFields))\r\n\t\t\t{\r\n\t\t\t\t// Use custom field selection\r\n\t\t\t\t$sql .= implode(', ', $this->selectFields) . ' ';\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Take all fields\r\n\t\t\t\t$sql .= '`'.$this->name.'`.* ';\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t$sql .= 'FROM `'.$this->name.'` ';\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Get foreign fields\r\n\t\t\t$cols = array();\r\n\t\r\n\t\t\tif (isset($this->selectFields))\r\n\t\t\t{\r\n\t\t\t\t// Use custom field selection\r\n\t\t\t\tforeach ($this->selectFields as $field)\r\n\t\t\t\t{\r\n\t\t\t\t\t$cols[] = $field;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Take all fields\r\n\t\t\t\t$cols[] = 't1.*';\r\n\t\t\t}\r\n\t\r\n\t\t\t$from_sql = 'FROM `'.$this->name.'` t1 ';\r\n\t\t\t$joined = array();\r\n\t\t\t$joins = array();\r\n\t\t\t$alias_no = 2;\r\n\t\t\t$tables[] = array('table' => $this->name, 'alias' => 't1');\r\n\t\r\n\t\t\t// Iterate over fields\r\n\t\t\tforeach ($this->fields as &$field)\r\n\t\t\t{\r\n\t\t\t\t$use_alias = false;\r\n\t\r\n\t\t\t\tif ($field instanceof ForeignField)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Check if foreign field should be included, if select fields were set\r\n\t\t\t\t\tif (isset($this->selectFields))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$found = false;\r\n\t\t\t\t\t\tforeach ($this->selectFields as $sel_field)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (str_contains($sel_field, $field->name))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$found = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!$found)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// Find out what kind of join it should be (INNER or LEFT)\r\n\t\t\t\t\t$join_type = strtoupper($field->joinType);\r\n\t\r\n\t\t\t\t\t// Check if it's a join between two foreign tables\r\n\t\t\t\t\tif ($field->joinFromTable == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Join between this table and other table\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Check if we need to make a new join\r\n\t\t\t\t\t\t$this_join = array(\r\n\t\t\t\t\t\t\t'from_table' => $this->name, \r\n\t\t\t\t\t\t\t'to_table' => $field->table,\r\n\t\t\t\t\t\t\t'from' => $field->joinFrom, \r\n\t\t\t\t\t\t\t'to' => $field->joinTo\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tif (!$this->CheckJoinExists($this_join, $joins))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$from_sql .= $join_type.' JOIN `'.$field->table .'` t'.$alias_no.' ON t1.`'.$field->joinFrom.'` = t'.$alias_no.'.`'.$field->joinTo.'` ';\r\n\t\t\t\t\t\t\t$joins[] = $this_join;\r\n\t\t\t\t\t\t\t$use_alias = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Join between two other tables\r\n\t\r\n\t\t\t\t\t\t// Check if we need to make a new join\r\n\t\t\t\t\t\t$this_join = array(\r\n\t\t\t\t\t\t\t'from_table' \t=> $this->table_name, \r\n\t\t\t\t\t\t\t'to_table' \t\t=> $field->foreign_field->table,\r\n\t\t\t\t\t\t\t'from' \t\t\t=> $field->foreign_field->join_from, \r\n\t\t\t\t\t\t\t'to' \t\t\t=> $field->foreign_field->join_to\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tif (!$this->checkJoinExists($this_join, $joins)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (($alias = $this->tableHasAlias($field->table, $tables)) !== false) \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$from_sql .= $join_type.' JOIN `'.$field->table.'` t'.$alias_no.' ON '.$alias.'.`'.$field->joinFrom.'` = t'.$alias_no.'.`'.$field->joinTo.'` ';\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$from_sql .= $join_type.' JOIN `'.$field->table.'` t'.$alias_no.' ON `'.$field->joinFromTable.'`.`'.$field->joinFrom.'` = t'.$alias_no.'.`'.$field->joinTo.'` ';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$joins[] = $this_join;\r\n\t\t\t\t\t\t\t$use_alias = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tif ($use_alias)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$cols[] = 't'.$alias_no.'.`'.$field->foreignFieldName .'` AS `'.$field->name.'`';\r\n\t\t\t\t\t\t$tables[] = array('table' => $field->table, 'alias' => 't'.$alias_no);\r\n\t\t\t\t\t\t$alias_no++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Check if table has alias\r\n\t\t\t\t\t\tif (($alias = $this->tableHasAlias($field->table, $tables)) !== false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$cols[] = $alias.'.`'.$field->foreignFieldName.'` AS `'.$field->name .'`';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$cols[] = '`'.$field->table.'`.`'.$field->foreignFieldName.'` AS `'.$field->name.'`';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->tableAliases = $tables;\r\n\t\r\n\t\t\t$sql .= implode(', ', $cols).' '.$from_sql;\r\n\t\r\n\t\t\t$this->table_aliases = $tables;\r\n\t\t}\r\n\t\r\n\t\treturn $sql;\r\n\t}", "public static function selectOverlayFields($table, $selectFields) {\n\t\t$additionalFields = self::selectOverlayFieldsArray($table, $selectFields);\n\t\tif (count($additionalFields) > 0) {\n\t\t\tforeach ($additionalFields as $aField) {\n\t\t\t\t$selectFields .= ', ' . $table . '.' . $aField;\n\t\t\t}\n\t\t}\n\t\treturn $selectFields;\n\t}", "public function addParamsSelected($fields = null, $props = null)\n {\n if (is_array($fields) && !empty($fields))\n {\n $this->arParams['SELECT_FIELDS'] = array_merge($this->arParams['SELECT_FIELDS'], $fields);\n }\n\n if (is_array($props) && !empty($props))\n {\n $this->arParams['SELECT_PROPS'] = array_merge($this->arParams['SELECT_PROPS'], $props);\n }\n }", "public function select(string $fields): QueryBuilderInterface\n\t{\n\t\t// Split fields by comma\n\t\t$fieldsArray = explode(',', $fields);\n\t\t$fieldsArray = array_map('mb_trim', $fieldsArray);\n\n\t\t// Split on 'As'\n\t\tforeach ($fieldsArray as $key => $field)\n\t\t{\n\t\t\tif (stripos($field, 'as') !== FALSE)\n\t\t\t{\n\t\t\t\t$fieldsArray[$key] = preg_split('` as `i', $field);\n\t\t\t\t$fieldsArray[$key] = array_map('mb_trim', $fieldsArray[$key]);\n\t\t\t}\n\t\t}\n\n\t\t// Quote the identifiers\n\t\t$safeArray = $this->driver->quoteIdent($fieldsArray);\n\n\t\tunset($fieldsArray);\n\n\t\t// Join the strings back together\n\t\tfor($i = 0, $c = count($safeArray); $i < $c; $i++)\n\t\t{\n\t\t\tif (\\is_array($safeArray[$i]))\n\t\t\t{\n\t\t\t\t$safeArray[$i] = implode(' AS ', $safeArray[$i]);\n\t\t\t}\n\t\t}\n\n\t\t$this->state->appendSelectString(implode(', ', $safeArray));\n\n\t\treturn $this;\n\t}", "public function fields(string ...$fields): static\n {\n return $this->withPropertyItem('opts', new FieldsOption($fields));\n }" ]
[ "0.64746785", "0.63453346", "0.6126913", "0.6121657", "0.5990967", "0.5975487", "0.5907302", "0.59042746", "0.5858502", "0.5830783", "0.5812014", "0.5801033", "0.57887346", "0.5742645", "0.5711914", "0.5651747", "0.5630977", "0.5619376", "0.55957603", "0.5575508", "0.55608964", "0.5559922", "0.55419564", "0.5541103", "0.553333", "0.54791236", "0.5462921", "0.54624516", "0.54567313", "0.54547197" ]
0.6792545
0
Default Join against another table in the database. This method is a convenience method for innerJoin().
public function join($table, $alias = NULL, $condition = NULL, $arguments = []);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function innerJoin($table);", "public function join($table, $on, $field = null, $comparitor = null);", "public function join($table, $key, ?string $operator = null, $foreign = null, string $type = self::INNER_JOIN);", "public function join($table, $one, $operator = null, $two = null, $type = 'inner', $where = false)\n {\n throw new NotImplementedException('Joins are not implemented in Crate');\n }", "public function fullOuterJoin($table);", "public function joinOn($tableJoin, $columnJoin, $tableOn, $columnOn);", "public function testBuildJoinDefault()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->joinOn('id', 'id')\n )\n ;\n\n $this->assertSame(\n 'LEFT JOIN table2 ON table1.id = table2.id',\n $query->buildJoin()\n );\n }", "public function innerJoin($table, $alias = NULL, $condition = NULL, $arguments = []);", "public function join(Select $table, $alias, $on)\n {\n return $this->innerJoin($table, $alias, $on);\n }", "public function rightOuterJoin($table);", "public function testBuildJoinDefaultWithTwoJoinOn()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->joinOn('id', 'id')\n ->joinOn('user_id', 'type_id')\n )\n ;\n\n $this->assertSame(\n 'LEFT JOIN table2 ON table1.id = table2.id AND table1.user_id = table2.type_id',\n $query->buildJoin()\n );\n }", "public function leftOuterJoin($table);", "public function innerJoin($table, $conditions = []);", "public function innerJoin() {\r\n\t\t$args = func_get_args();\r\n\t\t$name = array_shift($args);\r\n\t\t$joined = array_shift($args);\r\n\t\tif (!$name) $name = '___' . $joined;\r\n\t\t//if (count(array_keys(self::$_joinStack, $joined)) > 1) {\r\n\t\tif (get_class($this) == $joined || in_array($joined, self::$_joinStack)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tself::$_joinStack[] = get_class($this);\r\n\t\tself::$_joinStack[] = $joined;\r\n\t\t$model = null;\r\n\t\tif (is_string($joined)) {\r\n\t\t\tif (is_subclass_of($joined, 'Dbi_Model')) {\r\n\t\t\t\t$model = new $joined();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (is_subclass_of($joined, 'Dbi_Model')) {\r\n\t\t\t\t$model = $joined;\r\n\t\t\t}\r\n\t\t}\r\n\t\tarray_pop(self::$_joinStack);\r\n\t\tarray_pop(self::$_joinStack);\r\n\t\tif (is_null($model)) {\r\n\t\t\tthrow new Exception('Queries can only join models.');\r\n\t\t}\r\n\t\t$this->_innerJoins[] = array(\r\n\t\t\t'name' => $name,\r\n\t\t\t'model' => $model,\r\n\t\t\t'args' => $args\r\n\t\t);\r\n\t}", "public function join($table, $condition = [], $join = '')\n\t{\n\t\tif(count($condition) == 3)\n\t\t\t$this->_query .= strtoupper($join) . // convert $join to upper case (left -> LEFT)\n\t\t\t\t\" JOIN {$table} ON {$condition[0]} {$condition[1]} {$condition[2]}\";\n\n\t\t// that's it now return object from this class\n\t\treturn $this;\n }", "final public static function innerJoin(string $table, string $primaryKey, string $foreignKey)\n {\n //inicia o select\n self::$query .= \" INNER JOIN \" . $table . \" ON $table.$primaryKey = \" . self::tableName() . \".$foreignKey \";\n return (new static);\n }", "function joinQuery()\n {\n }", "public function naturalJoin($table);", "protected function joining_table()\n {\n return $this->connection()->table($this->joining);\n }", "private static function sqlJoining() : string {\n $relations = self::getsRelationsHasOne();\n\n $baseTable = static::tableName();\n $baseProperties = self::getProperties();\n foreach ($baseProperties as &$property) {\n $property = $baseTable . '.' . $property;\n }\n $colsFromBaseTabel = implode(', ', $baseProperties);\n $colsFromJoinedTables = '';\n foreach ($relations as $relation) {\n $modelNamespace = '\\\\' . $relation['model'];\n $modelTableName = $modelNamespace::tableName();\n $modelProperties = $modelNamespace::getProperties();\n foreach ($modelProperties as $key => &$value) {\n $value = $modelTableName . '.' . $value . ' AS ' . $modelTableName . '_' . $value;\n }\n $colsFromJoinedTables .= ', ' . implode(', ', $modelProperties);\n\n }\n $sql = 'SELECT ' . $colsFromBaseTabel . ' ' . $colsFromJoinedTables . ' FROM ' . $baseTable;\n\n foreach ($relations as $relation) {\n $modelNamespace = '\\\\' . $relation['model'];\n $modelTableName = $modelNamespace::tableName();\n $sql .= ' INNER JOIN ' . $modelTableName . ' ON ' . $baseTable . '.' . $relation['column'] . ' = ' . $modelTableName . '.' . $relation['joined-table-column'];\n }\n\n return $sql . ' WHERE ' . $baseTable . '.';\n }", "protected function innerJoin() {\n return \" INNER JOIN ImageDetails ON MainPostImage = ImageID\n INNER JOIN Users ON Posts.UserID = Users.UserID\"; }", "function joinClause( $join ) {\n\t global $wpdb;\n\t $join .= \" INNER JOIN $wpdb->postmeta dm ON (dm.post_id = $wpdb->posts.ID AND dm.meta_key = '$this->orderby') \";\n\t return $join;\n\t}", "public function testBuildJoinDefaultWithAliases()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->alias('table1_alias')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->alias('table2_alias')\n ->joinOn('id', 'id')\n )\n ;\n\n $this->assertSame(\n 'LEFT JOIN table2 AS table2_alias ON table1_alias.id = table2_alias.id',\n $query->buildJoin()\n );\n }", "protected function getJoinTable(): string\n {\n return \"{$this->define(SchemaInterface::TABLE)} AS {$this->getAlias()}\";\n }", "public function constructInnerJoinSql(Table $fromTable, $usingThrough=false, $alias=null)\n\t{\n\t\tif ($usingThrough)\n\t\t{\n\t\t\t$joinTable = $fromTable;\n\t\t\t$joinTableName = $fromTable->getFullyQualifiedTableName();\n\t\t\t$fromTableName = Table::load($this->className)->getFullyQualifiedTableName();\n \t\t}\n\t\telse\n\t\t{\n\t\t\t$joinTable = Table::load($this->className);\n\t\t\t$joinTableName = $joinTable->getFullyQualifiedTableName();\n\t\t\t$fromTableName = $fromTable->getFullyQualifiedTableName();\n\t\t}\n\n\t\t// need to flip the logic when the key is on the other table\n\t\tif ($this instanceof HasMany || $this instanceof HasOne)\n\t\t{\n\t\t\t$this->setKeys($fromTable->class->getName());\n\n\t\t\tif ($usingThrough)\n\t\t\t{\n\t\t\t\t$foreignKey = $this->primaryKey[0];\n\t\t\t\t$joinPrimaryKey = $this->foreignKey[0];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$joinPrimaryKey = $this->foreignKey[0];\n\t\t\t\t$foreignKey = $this->primaryKey[0];\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$foreignKey = $this->foreignKey[0];\n\t\t\t$joinPrimaryKey = $this->primaryKey[0];\n\t\t}\n\n\t\tif (!is_null($alias))\n\t\t{\n\t\t\t$aliasedJoinTableName = $alias = $this->getTable()->conn->quoteName($alias);\n\t\t\t$alias .= ' ';\n\t\t}\n\t\telse\n\t\t\t$aliasedJoinTableName = $joinTableName;\n\n\t\treturn \"INNER JOIN $joinTableName {$alias}ON($fromTableName.$foreignKey = $aliasedJoinTableName.$joinPrimaryKey)\";\n\t}", "function innerJoin($conditions)\n\t{\n\t\treturn $this->join('INNER', $conditions);\n\t}", "function join($table, &$query) {\r\n $left = $query->get_table_info($this->left_table);\r\n $output = \" $this->type JOIN {\" . $this->table . \"} $table[alias] ON ($this->left_query) = $table[alias].$this->field\";\r\n\r\n // Tack on the extra.\r\n if (isset($this->extra)) {\r\n if (is_array($this->extra)) {\r\n $extras = array();\r\n foreach ($this->extra as $info) {\r\n $extra = '';\r\n // Figure out the table name. Remember, only use aliases provided\r\n // if at all possible.\r\n $join_table = '';\r\n if (!array_key_exists('table', $info)) {\r\n $join_table = $table['alias'] . '.';\r\n }\r\n elseif (isset($info['table'])) {\r\n $join_table = $info['table'] . '.';\r\n }\r\n\r\n // And now deal with the value and the operator. Set $q to\r\n // a single-quote for non-numeric values and the\r\n // empty-string for numeric values, then wrap all values in $q.\r\n $raw_value = $this->db_safe($info['value']);\r\n $q = (empty($info['numeric']) ? \"'\" : '');\r\n\r\n if (is_array($raw_value)) {\r\n $operator = !empty($info['operator']) ? $info['operator'] : 'IN';\r\n // Transform from IN() notation to = notation if just one value.\r\n if (count($raw_value) == 1) {\r\n $value = $q . array_shift($raw_value) . $q;\r\n $operator = $operator == 'NOT IN' ? '!=' : '=';\r\n }\r\n else {\r\n $value = \"($q\" . implode(\"$q, $q\", $raw_value) . \"$q)\";\r\n }\r\n }\r\n else {\r\n $operator = !empty($info['operator']) ? $info['operator'] : '=';\r\n $value = \"$q$raw_value$q\";\r\n }\r\n $extras[] = \"$join_table$info[field] $operator $value\";\r\n }\r\n\r\n if ($extras) {\r\n if (count($extras) == 1) {\r\n $output .= ' AND ' . array_shift($extras);\r\n }\r\n else {\r\n $output .= ' AND (' . implode(' ' . $this->extra_type . ' ', $extras) . ')';\r\n }\r\n }\r\n }\r\n else if ($this->extra && is_string($this->extra)) {\r\n $output .= \" AND ($this->extra)\";\r\n }\r\n }\r\n return $output;\r\n }", "public function join()\n {\n $this->defaultjoinsetted = true;\n if (!empty($this->entity_link_list)) {\n foreach ($this->entity_link_list as $entity_link) {\n $this->defaultjoin .= \" left join `\" . strtolower(get_class($entity_link)) . \"` on \" . strtolower(get_class($entity_link)) . \".id = \" . $this->table . \".\" . strtolower(get_class($entity_link)) . \"_id\";\n }\n }\n return $this;\n }", "public static function doInnerJoin($table2, $params=NULL, $fields=array()) {\n\t\t$conn = parent::_initwgConnector($params, self::PRIMARY_KEY);\n\t\t$what = parent::_getSelectFields($fields);\n\t\t$conn->innerJoin(self::TABLE_NAME, $table2, $what);\n\t\treturn DbModel::doSelect($conn, new ProjectsListingsModel());\n\t}", "function buildJoin()\n\t{\n\t\tif ($this->table_obj_reference)\n\t\t{\n\t\t\t// Use inner join instead of left join to improve performance\n\t\t\treturn \"JOIN \".$this->table_obj_reference.\" ON \".$this->table_tree.\".child=\".$this->table_obj_reference.\".\".$this->ref_pk.\" \".\n\t\t\t\t \"JOIN \".$this->table_obj_data.\" ON \".$this->table_obj_reference.\".\".$this->obj_pk.\"=\".$this->table_obj_data.\".\".$this->obj_pk.\" \";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Use inner join instead of left join to improve performance\n\t\t\treturn \"JOIN \".$this->table_obj_data.\" ON \".$this->table_tree.\".child=\".$this->table_obj_data.\".\".$this->obj_pk.\" \";\n\t\t}\n\t}" ]
[ "0.7320104", "0.689887", "0.68611526", "0.66816366", "0.6673843", "0.66419625", "0.66364264", "0.6623377", "0.6588677", "0.6577466", "0.65542626", "0.6542131", "0.6534982", "0.6523109", "0.65183616", "0.6515419", "0.649044", "0.6484886", "0.6457852", "0.63942474", "0.6372787", "0.6300184", "0.6293934", "0.6248392", "0.62336683", "0.620172", "0.61983585", "0.6178353", "0.617276", "0.61486775" ]
0.69065106
1
Inner Join against another table in the database.
public function innerJoin($table, $alias = NULL, $condition = NULL, $arguments = []);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function innerJoin($table);", "public function innerJoin($table, $conditions = []);", "final public static function innerJoin(string $table, string $primaryKey, string $foreignKey)\n {\n //inicia o select\n self::$query .= \" INNER JOIN \" . $table . \" ON $table.$primaryKey = \" . self::tableName() . \".$foreignKey \";\n return (new static);\n }", "public static function doInnerJoin($table2, $params=NULL, $fields=array()) {\n\t\t$conn = parent::_initwgConnector($params, self::PRIMARY_KEY);\n\t\t$what = parent::_getSelectFields($fields);\n\t\t$conn->innerJoin(self::TABLE_NAME, $table2, $what);\n\t\treturn DbModel::doSelect($conn, new ProjectsListingsModel());\n\t}", "public function innerJoin($table, array $fields = [], array $on = []) {\n return $this->_addJoin(Join::INNER, $table, $fields, $on);\n }", "protected function innerJoin() {\n return \" INNER JOIN ImageDetails ON MainPostImage = ImageID\n INNER JOIN Users ON Posts.UserID = Users.UserID\"; }", "public function fullOuterJoin($table);", "public function innerJoin() {\r\n\t\t$args = func_get_args();\r\n\t\t$name = array_shift($args);\r\n\t\t$joined = array_shift($args);\r\n\t\tif (!$name) $name = '___' . $joined;\r\n\t\t//if (count(array_keys(self::$_joinStack, $joined)) > 1) {\r\n\t\tif (get_class($this) == $joined || in_array($joined, self::$_joinStack)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tself::$_joinStack[] = get_class($this);\r\n\t\tself::$_joinStack[] = $joined;\r\n\t\t$model = null;\r\n\t\tif (is_string($joined)) {\r\n\t\t\tif (is_subclass_of($joined, 'Dbi_Model')) {\r\n\t\t\t\t$model = new $joined();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (is_subclass_of($joined, 'Dbi_Model')) {\r\n\t\t\t\t$model = $joined;\r\n\t\t\t}\r\n\t\t}\r\n\t\tarray_pop(self::$_joinStack);\r\n\t\tarray_pop(self::$_joinStack);\r\n\t\tif (is_null($model)) {\r\n\t\t\tthrow new Exception('Queries can only join models.');\r\n\t\t}\r\n\t\t$this->_innerJoins[] = array(\r\n\t\t\t'name' => $name,\r\n\t\t\t'model' => $model,\r\n\t\t\t'args' => $args\r\n\t\t);\r\n\t}", "public function innerJoin(Select $table, $alias, $on)\n {\n $this->joins[] = array(\"subject\"=>$table, \"ali\"=>$alias, \"on\"=>$on, \"join\"=>\"INNER JOIN\");\n //var_dump($this);\n return $this;\n \n }", "public function innerJoin($table, $on = null)\n {\n $this->joinTokens[$this->activeJoin = $table] = ['type' => 'INNER', 'on' => []];\n\n return call_user_func_array([$this, 'on'], array_slice(func_get_args(), 1));\n }", "public function rightOuterJoin($table);", "function innerJoin($conditions)\n\t{\n\t\treturn $this->join('INNER', $conditions);\n\t}", "public function constructInnerJoinSql(Table $fromTable, $usingThrough=false, $alias=null)\n\t{\n\t\tif ($usingThrough)\n\t\t{\n\t\t\t$joinTable = $fromTable;\n\t\t\t$joinTableName = $fromTable->getFullyQualifiedTableName();\n\t\t\t$fromTableName = Table::load($this->className)->getFullyQualifiedTableName();\n \t\t}\n\t\telse\n\t\t{\n\t\t\t$joinTable = Table::load($this->className);\n\t\t\t$joinTableName = $joinTable->getFullyQualifiedTableName();\n\t\t\t$fromTableName = $fromTable->getFullyQualifiedTableName();\n\t\t}\n\n\t\t// need to flip the logic when the key is on the other table\n\t\tif ($this instanceof HasMany || $this instanceof HasOne)\n\t\t{\n\t\t\t$this->setKeys($fromTable->class->getName());\n\n\t\t\tif ($usingThrough)\n\t\t\t{\n\t\t\t\t$foreignKey = $this->primaryKey[0];\n\t\t\t\t$joinPrimaryKey = $this->foreignKey[0];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$joinPrimaryKey = $this->foreignKey[0];\n\t\t\t\t$foreignKey = $this->primaryKey[0];\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$foreignKey = $this->foreignKey[0];\n\t\t\t$joinPrimaryKey = $this->primaryKey[0];\n\t\t}\n\n\t\tif (!is_null($alias))\n\t\t{\n\t\t\t$aliasedJoinTableName = $alias = $this->getTable()->conn->quoteName($alias);\n\t\t\t$alias .= ' ';\n\t\t}\n\t\telse\n\t\t\t$aliasedJoinTableName = $joinTableName;\n\n\t\treturn \"INNER JOIN $joinTableName {$alias}ON($fromTableName.$foreignKey = $aliasedJoinTableName.$joinPrimaryKey)\";\n\t}", "protected function innerJoinImages(){\n return ' INNER JOIN ImageDetails ON PostImages.ImageID = ImageDetails.ImageID';\n }", "function sql_inner_join_statement(string $table_name, string $coloum_name, int $count)\n {\n $sql = \" FROM \" . $table_name . \" AS T1 \";\n for($i = 1; $i < $count; $i++){\n\n $t_index = $i + 1;\n $t_name = \"T$t_index\";\n \n $sql .= \"INNER JOIN $table_name AS $t_name USING ( \" . $coloum_name . \" ) \";\n }\n return $sql;\n }", "private function joins()\r\n {\r\n /* SELECT* FROM DOCUMENT WHERE DOCUMENT.\"id\" IN ( SELECT ID FROM scholar WHERE user_company_id = 40 )*/\r\n\r\n $query = EyufScholar::find()\r\n ->select('id')\r\n ->where([\r\n 'user_company_id' => 40\r\n ])\r\n ->sql();\r\n\r\n $table = EyufDocument::find()\r\n ->where('\"id\" IN ' . $query)\r\n ->all();\r\n\r\n $second = EyufDocument::findAll(EyufScholar::find()\r\n ->select('id')\r\n ->where([\r\n 'user_company_id' => 40\r\n ])\r\n );\r\n\r\n vdd($second);\r\n }", "function joinQuery()\n {\n }", "public function naturalJoin($table);", "public function join($table, $key, ?string $operator = null, $foreign = null, string $type = self::INNER_JOIN);", "public function join($table, $on, $field = null, $comparitor = null);", "public function joinLeasedOutUser() {\n $sqlSelect = $this->tableGateway->getSql()->select();\n\t\t$sqlSelect\n ->columns(array('Id','requestedTime','returnedTime','userId','returnedTime','assetId'));\n $sqlSelect\n ->join('UserInfoTable', 'UserInfoTable.Id = leasedoutuserTable.userId', array('firstname','email'), 'inner');\n $sqlSelect\n ->join('AssetInfoTable', 'AssetInfoTable.AssetId = leasedoutuserTable.assetId', array('AssetName','AssetStatus','AssetDesc'), 'inner');\n $statement \n = $this->tableGateway->getSql()->prepareStatementForSqlObject($sqlSelect);\n\t\t$resultSet = $statement->execute();\n\t\treturn $resultSet;\n\n }", "public function crossJoin($table);", "protected function joining_table()\n {\n return $this->connection()->table($this->joining);\n }", "public function leftOuterJoin($table);", "private static function sqlJoining() : string {\n $relations = self::getsRelationsHasOne();\n\n $baseTable = static::tableName();\n $baseProperties = self::getProperties();\n foreach ($baseProperties as &$property) {\n $property = $baseTable . '.' . $property;\n }\n $colsFromBaseTabel = implode(', ', $baseProperties);\n $colsFromJoinedTables = '';\n foreach ($relations as $relation) {\n $modelNamespace = '\\\\' . $relation['model'];\n $modelTableName = $modelNamespace::tableName();\n $modelProperties = $modelNamespace::getProperties();\n foreach ($modelProperties as $key => &$value) {\n $value = $modelTableName . '.' . $value . ' AS ' . $modelTableName . '_' . $value;\n }\n $colsFromJoinedTables .= ', ' . implode(', ', $modelProperties);\n\n }\n $sql = 'SELECT ' . $colsFromBaseTabel . ' ' . $colsFromJoinedTables . ' FROM ' . $baseTable;\n\n foreach ($relations as $relation) {\n $modelNamespace = '\\\\' . $relation['model'];\n $modelTableName = $modelNamespace::tableName();\n $sql .= ' INNER JOIN ' . $modelTableName . ' ON ' . $baseTable . '.' . $relation['column'] . ' = ' . $modelTableName . '.' . $relation['joined-table-column'];\n }\n\n return $sql . ' WHERE ' . $baseTable . '.';\n }", "public function joinOn($tableJoin, $columnJoin, $tableOn, $columnOn);", "public function join(Select $table, $alias, $on)\n {\n return $this->innerJoin($table, $alias, $on);\n }", "public function join($table, $one, $operator = null, $two = null, $type = 'inner', $where = false)\n {\n throw new NotImplementedException('Joins are not implemented in Crate');\n }", "public function join($table, $alias = NULL, $condition = NULL, $arguments = []);", "public function addInnerJoinOn($table, $where)\n {\n //argument test\n Argument::i()\n //Argument 1 must be a string\n ->test(1, 'string')\n //Argument 2 must be a string\n ->test(2, 'string');\n \n $where = func_get_args();\n $table = array_shift($where);\n \n $this->join[] = array(self::INNER, $table, $where, false);\n \n return $this;\n }" ]
[ "0.7855616", "0.69143456", "0.6906889", "0.6693231", "0.6540781", "0.6399488", "0.6365789", "0.62832123", "0.61936826", "0.6154552", "0.61103463", "0.61045766", "0.6093693", "0.6091997", "0.607035", "0.6068486", "0.60190237", "0.59645736", "0.5866002", "0.5849044", "0.5828236", "0.5811383", "0.57701486", "0.5702071", "0.5680053", "0.5662528", "0.5633718", "0.5624465", "0.56207633", "0.55707526" ]
0.696181
1
Orders the result set by a given field. If called multiple times, the query will order by each specified field in the order this method is called. If the query uses DISTINCT or GROUP BY conditions, fields or expressions that are used for the order must be selected to be compatible with some databases like PostgreSQL. The PostgreSQL driver can handle simple cases automatically but it is suggested to explicitly specify them. Additionally, when ordering on an alias, the alias must be added before orderBy() is called.
public function orderBy($field, $direction = 'ASC');
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function orderBy($field) {\n\t$this->parseQuery->orderBy($field);\n }", "public function orderBy(string $field, string $direction): self;", "public function order($field, $order = 'desc');", "public function orderByAscending($field) {\n\t$this->parseQuery->orderByAscending($field);\n }", "public function orderBy($field, $asc = true)\n {\n if ($asc) {\n $this->order[] = \"$this->alias.$field ASC\";\n } else {\n $this->order[] = \"$this->alias.$field DESC\";\n }\n\n return $this;\n\n }", "public function orderByAsc($field, $overwrite = false);", "private function sql_orderBy()\n {\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n // Short var\n $arr_order = null;\n $arr_order = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ][ 'order.' ];\n\n // Order field\n switch ( true )\n {\n case( $arr_order[ 'field' ] == 'uid' ):\n $orderField = $this->sql_filterFields[ $this->curr_tableField ][ 'uid' ];\n break;\n case( $arr_order[ 'field' ] == 'value' ):\n default:\n $orderField = $this->sql_filterFields[ $this->curr_tableField ][ 'value' ];\n break;\n }\n // Order field\n // Order flag\n switch ( true )\n {\n case( $arr_order[ 'orderFlag' ] == 'DESC' ):\n $orderFlag = 'DESC';\n break;\n case( $arr_order[ 'orderFlag' ] == 'ASC' ):\n default:\n $orderFlag = 'ASC';\n break;\n }\n // Order flag\n // Get ORDER BY statement\n $orderBy = $orderField . ' ' . $orderFlag;\n\n // RETURN ORDER BY statement\n return $orderBy;\n }", "public function orderBy($field, $direction = 'ASC')\n {\n $this->orderBy = $field;\n $this->orderByDirection = $direction;\n return $this;\n }", "protected static function _orderby($field, $order)\n {\n if ($field == \"\") {\n self::$orderby = null;\n } else {\n self::$orderby = sprintf(\" ORDER BY %s %s\", $field, $order);\n }\n }", "public function order($field, $direction = Operator::SORT_DESC)\n {\n if (empty($field)) {\n $this->order_str = '';\n return $this;\n }\n if (!empty($direction)){\n $direction = ltrim($direction, '$');\n }\n if (is_array($field)) {\n $output = array();\n foreach ($field as $item) {\n $output[] = \"`{$item}`\";\n }\n $field = implode(', ', $field);\n }\n else {\n $field = $this->escapeString($field);\n }\n $this->order_str = \"{$field} {$direction}\";\n return $this;\n }", "public function orderBy(array $fields, $order = null);", "public function orderBy($sField, $sOrder = Db::ASC)\n {\n $this->clause('ORDER BY', \"$sField $sOrder\");\n\n return $this;\n }", "public function addAscendingOrderBy($field)\n\t{\n\t\tparent::orderBy($field, self::ASC);\n\t\treturn $this;\n\t}", "public function orderBy(string $field, string $direction = null): static\n {\n if ($direction === null) {\n $direction = 'ASC';\n } else {\n $direction = strtoupper($direction);\n }\n\n $this->orderBy[] = [\n 'field' => $field,\n 'direction' => $direction\n ];\n\n return $this;\n }", "public function orderBy($field, $direction = self::DESC) {\n if (is_array($field)) {\n foreach ($field as $key => $dir) {\n $this->orderBy($key, $dir);\n }\n\n } else if ($field === 'RAND') {\n $this->_orderBy[] = $this->func('RAND');\n\n } else if ($field instanceof Func) {\n $this->_orderBy[] = $field;\n\n } else {\n $direction = strtolower($direction);\n\n if ($direction != self::ASC && $direction != self::DESC) {\n throw new InvalidArgumentException(sprintf('Invalid order direction %s for field %s', $direction, $field));\n }\n\n $this->_orderBy[$field] = $direction;\n }\n\n return $this;\n }", "public function orderBy(string $field, string $type=''): QueryBuilderInterface\n\t{\n\t\t// When ordering by random, do an ascending order if the driver\n\t\t// doesn't support random ordering\n\t\tif (stripos($type, 'rand') !== FALSE)\n\t\t{\n\t\t\t$rand = $this->driver->getSql()->random();\n\t\t\t$type = $rand ?? 'ASC';\n\t\t}\n\n\t\t// Set fields for later manipulation\n\t\t$field = $this->driver->quoteIdent($field);\n\t\t$this->state->setOrderArray($field, $type);\n\n\t\t$orderClauses = [];\n\n\t\t// Flatten key/val pairs into an array of space-separated pairs\n\t\tforeach($this->state->getOrderArray() as $k => $v)\n\t\t{\n\t\t\t$orderClauses[] = $k . ' ' . strtoupper($v);\n\t\t}\n\n\t\t// Set the final string\n\t\t$orderString = ! isset($rand)\n\t\t\t? \"\\nORDER BY \".implode(', ', $orderClauses)\n\t\t\t: \"\\nORDER BY\".$rand;\n\n\t\t$this->state->setOrderString($orderString);\n\n\t\treturn $this;\n\t}", "public function orderby($field, $direction = 'ASC')\n\t\t{\n\t\t\t$this->order[] = \"$field $direction\";\n\t\t\treturn $this;\n\t\t}", "public function orderBy() {\n $this->_orderBy = \"\";\n foreach ($this->_columns as $tableName => $table) {\n if (array_key_exists('order_bys', $table)) {\n foreach ($table['order_bys'] as $fieldName => $field) {\n $this->_orderBy[] = $field['dbAlias'];\n }\n }\n }\n $this->_orderBy = \"ORDER BY \" . implode(', ', $this->_orderBy) . \" \";\n }", "public function andThenAscendingBy(string $field): ExtensibleSorting;", "public function orders($field, $reversive = false) {\n\t\t\t$sort = ($reversive) ? 'DESC' : 'ASC';\n\t\t\t$this->order = \"ORDER BY `$field` $sort\";\n\t\t\treturn $this;\n\t\t}", "public static function order( $column, $order, $use_alias = true ) {\n\t\t\tif( self::$query_open ) {\n self::$current_query->order( $column, $order, $use_alias );\n }\n\t\t}", "public function orderBy($field, $direction = 'asc'): self\n\t{\n\t\t$this->orders[] = [\n\t\t\t$field => strtolower($direction) === 'asc' ? 'asc' : 'desc',\n\t\t];\n\n\t\treturn $this;\n\t}", "public function it_sorts_by_field_in_ascending_order(): void\n {\n $results = Client::filter([\n 'sorts' => [\n [\n 'column' => 'name',\n 'direction' => 'asc',\n ],\n ],\n ])->get();\n\n self::assertEquals($results->sortBy('name')->pluck('id'), $results->pluck('id'));\n }", "public function orderBy(string $field, string $order='ASC', string $condition = '', $included = false, array $parameters = [ ], bool $useCache = false): array {\n return DAO::orderBy($this->getModel(), $field, $order, $condition, $included, $parameters, $useCache);\n }", "public function orderBy($field, $direction = self::ASC)\n {\n if (!array_key_exists('orderby', $this->options)) {\n $this->options['orderby'] = [];\n }\n $this->options['orderby'][] = $field . ' ' . $direction;\n\n return $this;\n }", "public function orderByDescending($field) {\n\t$this->parseQuery->orderByDescending($field);\n }", "public function sort_asc($field)\n {\n return $this->sort($field,self::ASC);\n }", "function orderByClause( $orderby ) {\n\t global $wpdb;\n\t return \"dm.meta_value+0 {$this->order}, $wpdb->posts.post_title ASC\";\n\t}", "public static function order_field($title_field,$field_select, $field_sorting = '', $sort_direct ='')\n\t{\n\t\t$url = $_SERVER['REQUEST_URI'];\n\t\t$url = trim(preg_replace('/&sortby=[a-zA-Z0-9_]+/i', '', $url)); // field\n\t\t$url = trim(preg_replace('/&sort=[a-z]+/i', '', $url)); // direct\n\t\t\n\t\t$sort_direct = $sort_direct?$sort_direct:'asc';\n\t\t$sort_direct_continue = $sort_direct == 'asc' ? 'desc' : 'asc';\n\t\t$link = $url.'&sortby='.$field_select.'&sort='.$sort_direct_continue;\n\t\tif($field_select == $field_sorting)\n\t\t{\n\t\t\t$html = \"<a title=\\\"Click to sort by this column\\\" href=\\\"$link\\\">\";\n\t\t\t$html .= $title_field ;\n\t\t\t$html .= \"<img alt=\\\"$sort_direct\\\" src=\\\"templates/default/images/sort_$sort_direct.png\\\">\";\n\t\t\t$html .= \"</a>\";\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$html = \"<a title=\\\"Click to sort by this column\\\" href=\\\"$link\\\">$title_field</a>\";\n\t\t}\n\t\treturn $html ; \n\t}", "public function order($field, $dir = 'ASC', $reset = false) {\n\t\tif($reset == 'reset' || $reset)\n\t\t\t$this->_order_cond = array();\n\t\t\n\t\t$field = ctype_alnum($field) ? \"`$field`\" : $field;\n\t\tif(!$field) return $this;\n\t\t$dir = ctype_alnum($dir) ? strtoupper($dir) : 'ASC';\n\t\t$this->_order_cond[] = \"$field $dir\";\n\t\treturn $this;\n\t\t\n\t}" ]
[ "0.73414195", "0.7023737", "0.68529433", "0.65752697", "0.6446628", "0.641468", "0.6392131", "0.6306023", "0.6282514", "0.62677413", "0.61999613", "0.6189228", "0.6186102", "0.60662365", "0.60408", "0.6035906", "0.60312444", "0.6020376", "0.6008956", "0.59658694", "0.5945983", "0.594381", "0.59414095", "0.5935962", "0.59108114", "0.5818767", "0.57897717", "0.5773584", "0.5751107", "0.57133645" ]
0.7079249
1
Orders the result set by a random value. This may be stacked with other orderBy() calls. If so, the query will order by each specified field, including this one, in the order called. Although this method may be called multiple times on the same query, doing so is not particularly useful. Note: The method used by most drivers may not scale to very large result sets. If you need to work with extremely large data sets, you may create your own database driver by subclassing off of an existing driver and implementing your own randomization mechanism. See for an example of such an alternate sorting mechanism.
public function orderRandom();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function orderRand(Varien_Db_Select $select, $field = null)\n {\n $this->_getReadAdapter()->orderRand($select, $field);\n return $this;\n }", "public function orderRand($seed = null)\n {\n $this->orderBy(NULL, $this->driver->sqlRandom($seed));\n return $this;\n }", "public function orderBy(string $field, string $type=''): QueryBuilderInterface\n\t{\n\t\t// When ordering by random, do an ascending order if the driver\n\t\t// doesn't support random ordering\n\t\tif (stripos($type, 'rand') !== FALSE)\n\t\t{\n\t\t\t$rand = $this->driver->getSql()->random();\n\t\t\t$type = $rand ?? 'ASC';\n\t\t}\n\n\t\t// Set fields for later manipulation\n\t\t$field = $this->driver->quoteIdent($field);\n\t\t$this->state->setOrderArray($field, $type);\n\n\t\t$orderClauses = [];\n\n\t\t// Flatten key/val pairs into an array of space-separated pairs\n\t\tforeach($this->state->getOrderArray() as $k => $v)\n\t\t{\n\t\t\t$orderClauses[] = $k . ' ' . strtoupper($v);\n\t\t}\n\n\t\t// Set the final string\n\t\t$orderString = ! isset($rand)\n\t\t\t? \"\\nORDER BY \".implode(', ', $orderClauses)\n\t\t\t: \"\\nORDER BY\".$rand;\n\n\t\t$this->state->setOrderString($orderString);\n\n\t\treturn $this;\n\t}", "function order_by($order_by, $direction = 'ASC')\n {\n // Make an exception for the rand() method\n $order_by = preg_replace(\"/rand\\\\(\\\\s*\\\\)/\", 'rand', $order_by);\n if (in_array($order_by, $this->object->_get_querable_table_columns())) {\n $this->object->_query_args['orderby'] = $order_by;\n } else {\n // ordering by a meta value\n $this->object->_query_args['orderby'] = 'meta_value';\n $this->object->_query_args['meta_key'] = $order_by;\n }\n $this->object->_query_args['order'] = $direction;\n return $this->object;\n }", "function order_by($order_by, $direction = 'ASC')\n {\n // We treat the rand() function as an exception\n if (preg_match(\"/rand\\\\(\\\\s*\\\\)/\", $order_by)) {\n $order = 'rand()';\n } else {\n $order_by = $this->object->_clean_column($order_by);\n // If the order by clause is a column, then it should be backticked\n if ($this->object->has_column($order_by)) {\n $order_by = \"`{$order_by}`\";\n }\n $direction = $this->object->_clean_column($direction);\n $order = \"{$order_by} {$direction}\";\n }\n $this->object->_order_clauses[] = $order;\n return $this->object;\n }", "public function orderBy($field, $direction = 'ASC');", "public function orderBy(string $field, string $direction): self;", "public function random()\n {\n $values = [];\n $priorities = [];\n foreach ($this->values as $columns) {\n foreach ($columns as $column) {\n $values[] = $column[0];\n $priorities[] = $column[1];\n }\n }\n\n $key = 0;\n $sum = array_sum($priorities);\n $random = mt_rand(0, $sum);\n foreach ($priorities as $key => $priority) {\n if ($random <= $priority) break;\n $random -= $priority;\n }\n\n return $values[$key];\n }", "public function order($field, $order = 'desc');", "public function getRandomValue()\n {\n if ($this->isNativeField()) {\n switch ($this->getDataType()) {\n case DField::DATA_TYPE_TINYINT:\n case DField::DATA_TYPE_SMALLINT:\n case DField::DATA_TYPE_MEDIUMINT:\n case DField::DATA_TYPE_INT:\n case DField::DATA_TYPE_BIGINT:\n $value = rand(0, 100);\n break;\n case DField::DATA_TYPE_FLOAT:\n $value = rand(10, 1000) / 10;\n break;\n default:\n $value = null;\n break;\n }\n } else {\n $value = null;\n }\n\n return $value;\n }", "public function it_sorts_by_field_in_ascending_order(): void\n {\n $results = Client::filter([\n 'sorts' => [\n [\n 'column' => 'name',\n 'direction' => 'asc',\n ],\n ],\n ])->get();\n\n self::assertEquals($results->sortBy('name')->pluck('id'), $results->pluck('id'));\n }", "private function select_random() {\n $ad = $this->db_wrapper->select_data($this->table_name, '*', null, 1, 'RAND()');\n if($ad) {\n $ad = array_flat($ad);\n \n $this->ad_code = $ad['adcode'];\n $this->ad_id = $ad['ad_id'];\n $this->ad_title = $ad['ad_title'];\n }\n }", "public function orderBy($column, $direction = 'asc') {\n if($column == 'rand') {\n $this->order_by[] = 'rand';\n } else {\n if(!is_array($column)) {\n $column = array($column => $direction);\n }\n foreach($column as $col => $d) {\n $this->order_by[] = array($col, $d);\n }\n }\n return $this;\n }", "public function randomQuestion() {\n return\n $this->createQueryBuilder('qb')\n ->orderBy('RAND()')\n ->setMaxResults($this->maxResult)\n ->getQuery()\n ->getResult()\n ;\n }", "public function orderBy($field, $direction = self::DESC) {\n if (is_array($field)) {\n foreach ($field as $key => $dir) {\n $this->orderBy($key, $dir);\n }\n\n } else if ($field === 'RAND') {\n $this->_orderBy[] = $this->func('RAND');\n\n } else if ($field instanceof Func) {\n $this->_orderBy[] = $field;\n\n } else {\n $direction = strtolower($direction);\n\n if ($direction != self::ASC && $direction != self::DESC) {\n throw new InvalidArgumentException(sprintf('Invalid order direction %s for field %s', $direction, $field));\n }\n\n $this->_orderBy[$field] = $direction;\n }\n\n return $this;\n }", "public function random($num = 10) {\n if ($this->count() < $num) {\n return $this->getAll();\n }\n return $this->model->all()->random($num);\n }", "function fixtures_fetch_random_value( string $table ,\n string $field ) : mixed\n{\n // Fetch an entry in the database\n $drand = mysqli_fetch_array(query(\" SELECT $table.$field AS 'u_value'\n FROM $table\n ORDER BY RAND()\n LIMIT 1 \"));\n\n // Return the ID\n return $drand['u_value'];\n}", "public function orderBy(array $fields, $order = null);", "public static function random(){\n $conexion = StorianDB::connectDB();\n $query = $conexion->query(\"SELECT * FROM cuento ORDER BY RAND() LIMIT 1\");\n return $tabla = $query->fetchObject();\n }", "public function orderByAsc($field, $overwrite = false);", "public function orderBy($field) {\n\t$this->parseQuery->orderBy($field);\n }", "function getAllPlayersOrderBy($field){\n\t$query = \"SELECT * FROM aquigaza_fsutt_local.players ORDER by \".$field;\n $resource = runQuery($query);\n\treturn ozRunQuery($resource);\n}", "public function random()\n {\n return $this->items[array_rand($this->items)];\n }", "public function findRandom()\n {\n return $this->createQueryBuilder('q')\n ->select('q', 'COUNT(l) AS nbLikes')\n ->leftJoin('q.likes', 'l')\n ->orderBy('RAND()')\n ->groupBy('q')\n ->setMaxResults(1)\n ->getQuery()\n ->getOneOrNullResult();\n }", "private function sql_orderBy()\n {\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n // Short var\n $arr_order = null;\n $arr_order = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ][ 'order.' ];\n\n // Order field\n switch ( true )\n {\n case( $arr_order[ 'field' ] == 'uid' ):\n $orderField = $this->sql_filterFields[ $this->curr_tableField ][ 'uid' ];\n break;\n case( $arr_order[ 'field' ] == 'value' ):\n default:\n $orderField = $this->sql_filterFields[ $this->curr_tableField ][ 'value' ];\n break;\n }\n // Order field\n // Order flag\n switch ( true )\n {\n case( $arr_order[ 'orderFlag' ] == 'DESC' ):\n $orderFlag = 'DESC';\n break;\n case( $arr_order[ 'orderFlag' ] == 'ASC' ):\n default:\n $orderFlag = 'ASC';\n break;\n }\n // Order flag\n // Get ORDER BY statement\n $orderBy = $orderField . ' ' . $orderFlag;\n\n // RETURN ORDER BY statement\n return $orderBy;\n }", "public function fetchRandomQuote()\n {\n $idArray = $this->fetchQuoteId();\n // shuffle the array \n shuffle($idArray);\n $randomId = $idArray[0];\n return $this->fetchQuoteDetails($randomId);\n }", "public function orderby(){\n\n $rows = $this\n ->db\n ->order_by(\"title\", \"asc\")\n ->order_by(\"id\", \"random\")\n ->get(\"personel\")\n ->result();\n\n print_r($rows);\n\n }", "function orderByClause( $orderby ) {\n\t global $wpdb;\n\t return \"dm.meta_value+0 {$this->order}, $wpdb->posts.post_title ASC\";\n\t}", "protected function _getRandomAuthor()\n {\n $sth = $this->_dbObj->prepare('SELECT author FROM ' . $this->_quotesTable)->execute();\n $authors = $sth->fetchAllAssoc();\n\n $randomKey = array_rand($authors);\n\n return $authors[$randomKey]['author'];\n }", "public function findAllOverruleOrderBy()\n {\n $mockResult = $this->getMock('stubDatabaseResult');\n $this->mockConnection->expects($this->any())->method('query')->will($this->returnValue($mockResult));\n $mockResult->expects($this->once())\n ->method('fetchAll')\n ->will($this->returnValue(array(array('bar' => 'Here is bar.', 'default' => 'And this is default.'))));\n $finderResult = $this->dbFinder->findAll($this->mockConnection, new stubReflectionClass('MockSinglePrimaryKeyEntity'), 'blub DESC');\n $this->assertEquals(1, $finderResult->count());\n $data = $finderResult->current();\n $this->assertEquals('Here is bar.', $data->withAnnotation());\n $this->assertEquals('And this is default.', $data->withDefaultValue());\n $select = $this->mockQueryBuilder->getSelect();\n $this->assertEquals('foo', $select->getBaseTableName());\n $this->assertEquals('blub DESC', $select->getOrderedBy());\n $this->assertFalse($select->hasLimit());\n $this->assertNull($select->getOffset());\n $this->assertNull($select->getAmount());\n $this->assertFalse($select->hasCriterion());\n }" ]
[ "0.6473308", "0.58857995", "0.55334693", "0.54911256", "0.5489703", "0.53941774", "0.5365472", "0.53504586", "0.5336028", "0.53231394", "0.5315397", "0.528806", "0.5263116", "0.52027005", "0.51631474", "0.5136113", "0.51301306", "0.5130011", "0.5097016", "0.5090266", "0.507067", "0.50436246", "0.49946547", "0.4978458", "0.49502194", "0.49254632", "0.49173984", "0.49153778", "0.4912772", "0.49107456" ]
0.62790257
1
Add another Select query to UNION to this one. Union queries consist of two or more queries whose results are effectively concatenated together. Queries will be UNIONed in the order they are specified, with this object's query coming first. Duplicate columns will be discarded. All forms of UNION are supported, using the second '$type' argument. Note: All queries UNIONed together must have the same field structure, in the same order. It is up to the caller to ensure that they match properly. If they do not, an SQL syntax error will result.
public function union(SelectInterface $query, $type = '');
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addQueryToUnion() {\n if (empty($this->query)) {\n throw new \\Exception('Cannot add an empty query to union', 500);\n }\n\n $this->union[] = $this->query;\n // Reset all vars\n $this->query = '';\n $this->where = '';\n $this->sort = '';\n\n return $this;\n }", "public function union($sql)\n\t{\n\t\t$this->query->union[] = $sql;\n\t\treturn $this->query;\n\t}", "public function union($query, $overwrite = false);", "public function buildUnionQuery($type = 'DISTINCT') {\n if (empty($this->union)) {\n throw new \\Exception('Cannot build a union query', 500);\n }\n\n $this->query = implode(\" UNION {$type} \", $this->union);\n $this->union = [];\n\n return $this;\n }", "public function union(AbstractQueryBuilder $select, $isUnionAll = false)\n {\n $this->builderCache->store(($isUnionAll\n ? 'union_all'\n : 'union'), $select->getSqlStatement());\n\n return $this;\n }", "public function union($query, $all);", "public function union(): self;", "public function unionAll($query, $overwrite = false);", "function mUNION(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$UNION;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:206:3: ( 'union' ) \n // Tokenizer11.g:207:3: 'union' \n {\n $this->matchString(\"union\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "protected abstract function get_union();", "function union($table){\n\t\t$this->union[] = $table;\t\n\t\treturn $this;\t\n\t}", "public function union(Builder $subquery)\n {\n array_push($this->union, $this->syntax->selectSyntax($subquery));\n $this->parameters = array_merge($this->parameters, $subquery->getParameters());\n \n return $this;\n }", "public function union($query, $distinct = null)\n\t{\n\t\tif (!$query instanceof JDatabaseQuery) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Apply the distinct flag to the union if set.\n\t\tif ($distinct !== null) {\n\t\t\t$query->unionDistinct = (bool) $distinct;\n\t\t}\n\n\t\t// Clear the ORDER BY clause in unioned query.\n\t\t$query->clear('order');\n\n\t\t// Add the query to union.\n\t\t$this->_union[] = $query;\n\n\t\treturn $this;\n\t}", "public function union(Query $query, $flag = null) {\n if ($flag === Dialect::ALL || $flag === Dialect::DISTINCT) {\n $query->attribute('flag', $flag);\n }\n\n return $this->_addCompound(Dialect::UNION, $query);\n }", "public function addSelect($select = null)\n {\n $this->_type = self::SELECT;\n\n if (empty($select)) {\n return $this;\n }\n\n $selects = is_array($select) ? $select : func_get_args();\n\n return $this->add('select', $selects, true);\n }", "public function union($query, $all = false)\n {\n throw new NotImplementedException('Joins are not implemented in Crate');\n }", "public function select( $select ) {\n $args = func_get_args();\n\n $this->_type = self::TYPE_SELECT;\n\n foreach( $args AS $arg ) {\n $this->_select[] = $arg;\n }\n\n return $this;\n }", "public function addObj($_select, $_where = array(), $_order = \"\", $_limit = 30, $_offset = 0)\n {\n if (!$_select) {\n return false;\n }\n if ($_where) {\n $_select->where($_where);\n }\n if ($_order) {\n $_select->order($_order);\n }\n $_select->limit($_limit);\n $_select->offset($_offset);\n return $_select;\n }", "public function addSelect($select = null)\n {\n return $this->queryBuilder->addSelect($select);\n }", "protected function _transformQuery()\n {\n if (!$this->_dirty || $this->_type !== 'select') {\n return;\n }\n\n if (empty($this->_parts['from'])) {\n $this->from([$this->_repository->getAlias() => $this->_repository->table()]);\n }\n $this->_addDefaultFields();\n $this->getEagerLoader()->attachAssociations($this, $this->_repository, !$this->_hasFields);\n $this->_addDefaultSelectTypes();\n }", "protected function appendSql($string)\n {\n $this->selectSQL .= $string;\n return $this;\n }", "public function joinSelect(Query $other, $fieldOrExpr, $operator, $valueOrExpr, $type = 'INNER') {\r\n\t\t$this->addJoin($other, $fieldOrExpr, $operator, $valueOrExpr, $type, '( '.$other->toSQL().' ) '.$other->_salt_alias, FALSE);\r\n\t}", "private function _select(){\n $this->debugBacktrace();\n $parameter = $this->selectParam; //transfer to local variable.\n $this->selectParam = \"\"; //reset updateParam.\n\n \n \n $sql = \"\";\n if($this->hasRawSql){\n $sql = $parameter;\n $this->hasRawSql = false;\n }\n else{\n $tableName = $this->tableName;\n $this->tableName = \"\"; //reset.\n\n $columns = \"\";\n if(!isset($parameter) || empty($parameter)){\n $columns = \"*\";\n $sql = $this->_prepare_select_sql($columns,$tableName);\n }\n else{\n //first check whether it has 'select' keyword\n $parameter = trim($parameter);\n $keyWord = substr($parameter,0,6);\n if(strtoupper($keyWord)==\"SELECT\") {\n $sql = $parameter;\n }\n else{\n $columns = $parameter;\n $sql = $this->_prepare_select_sql($columns,$tableName);\n }\n }\n }\n\n \n $queryObject = $this->_perform_mysql_query($sql);\n \n if(empty($this->selectModifier)){\n //No select modifier (first, firstOrDefault, single, singleOrDefault) found ---->\n $quantity = 0;\n $rows = array();\n switch ($this->fetchType){\n case \"fetch_object\":\n while ($row = mysqli_fetch_object($queryObject)) {\n if(isset($tableName)){\n $meta = new stdClass();\n $meta->type = $tableName;\n $row->__meta = $meta;\n }\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_assoc\":\n while ($row = mysqli_fetch_assoc($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_array\":\n while ($row = mysqli_fetch_array($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_row\":\n while ($row = mysqli_fetch_row($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_field\":\n while ($row = mysqli_fetch_field($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n }\n\n if($quantity>0){\n mysqli_free_result($queryObject);\n }\n\n return $rows;\n //<----No select modifier (first, firstOrDefault, single, singleOrDefault) found \n }\n else{ \n //select modifier (first, firstOrDefault, single, singleOrDefault) found ---->\n $selectModifier = $this->selectModifier;\n $this->selectModifier = \"\";\n $row;\n switch($selectModifier){\n case \"first\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n throw new ZeroException(\"No data found.\");\n }\n break;\n \n case \"firstOrNull\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n return NULL;\n }\n break;\n\n case \"single\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n throw new ZeroException(\"No data found.\");\n }\n if($numRows > 1){\n throw new ZeroException(\"Multiple records found.\");\n }\n break;\n\n case \"singleOrNull\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n return NULL;\n }\n if($numRows > 1){\n return NULL;\n }\n break;\n }\n\n return $this->_prepareSingleRecord($queryObject);\n //<---- select modifier (first, firstOrDefault, single, singleOrDefault) found *212*062#\n }\n }", "public function mergeQuery(array $queryToBeAppended);", "public function addSelect(string ...$columns)\n {\n $this->select = array_merge($this->select, $columns);\n\n return $this;\n }", "public function union(Statement $statement)\n\t\t{\n\t\t\t$this->unions[] = $statement;\n\t\t\treturn $this;\n\t\t}", "public function assemble()\n {\n $queryString = array();\n\n $queryString[] = $this->query['type'];\n\n // Select query\n if ($this->query['type'] == \"SELECT\"\n or $this->query['type'] == \"SELECT DISTINCT\") {\n // Build columns to select\n $queryString[] = $this->buildSelectColumns();\n\n // From\n $queryString[] = \"FROM `{$this->query['table']}`\";\n\n // Joins\n if (array_key_exists('joins', $this->query)) {\n $queryString[] = $this->buildJoins();\n }\n\n // Where\n $queryString[] = $this->buildWhere();\n\n // Custom SQL\n if (array_key_exists('sql', $this->query)) {\n $queryString[] = $this->query['sql'];\n }\n\n // Order by\n if (array_key_exists('order_by', $this->query)) {\n $queryString[] = \"ORDER BY \" . implode(\", \", $this->query['order_by']);\n }\n }\n // Insert\n elseif ($this->query['type'] == \"INSERT INTO\") {\n // Table\n $queryString[] = \"`{$this->query['table']}`\";\n\n // Get the columns and values\n $columns = $values = array();\n foreach ($this->query['data'] as $column => $value) {\n $columns[] = $this->columnName($column);\n $values[] = $this->processValue($value);\n }\n\n // Add columns and values to query\n $queryString[] = \"(\" . implode(',', $columns) . \")\";\n $queryString[] = \"VALUES (\" . implode(',', $values) . \")\";\n }\n // Update\n elseif ($this->query['type'] == \"UPDATE\") {\n // Table\n $queryString[] = \"`{$this->query['table']}`\";\n\n // Set values\n $values = array();\n foreach ($this->query['data'] as $column => $value) {\n // Process column name\n $column = $this->columnName($column);\n\n // Add value to bind queue\n $valueBindKey = \"new_\" . str_replace(array('.', '`'), array('_', ''), $column);\n $this->valuesToBind[$valueBindKey] = $value;\n\n // Add to values\n $values[] = $column . \" = :{$valueBindKey}\";\n }\n\n // Add values to query\n $queryString[] = \"SET \" . implode(\", \", $values);\n\n $queryString[] = $this->buildWhere();\n }\n // Delete from\n elseif ($this->query['type'] == \"DELETE\") {\n // Table\n $queryString[] = \"FROM `{$this->query['table']}`\";\n\n // Where\n $queryString[] = $this->buildWhere();\n }\n\n return implode(\" \", str_replace(\"{prefix}\", $this->prefix, $queryString));\n }", "private function makeSelectAndFrom()\r\n\t{\r\n\t\t// Build SQL\r\n\t\t$sql = 'SELECT ';\r\n\t\r\n\t\t// Add custom fields (subqueries)\r\n\t\tif ($this->hasCustomFields())\r\n\t\t{\r\n\t\t\t// Find custom fields\r\n\t\t\tforeach ($this->fields as $field)\r\n\t\t\t{\r\n\t\t\t\tif ($field instanceOf CustomField)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql .= '(' . $field->query . ') AS `' . $field->name . '`, ';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tif (!$this->hasForeignFields())\r\n\t\t{\r\n\t\t\tif (isset($this->selectFields))\r\n\t\t\t{\r\n\t\t\t\t// Use custom field selection\r\n\t\t\t\t$sql .= implode(', ', $this->selectFields) . ' ';\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Take all fields\r\n\t\t\t\t$sql .= '`'.$this->name.'`.* ';\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t$sql .= 'FROM `'.$this->name.'` ';\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Get foreign fields\r\n\t\t\t$cols = array();\r\n\t\r\n\t\t\tif (isset($this->selectFields))\r\n\t\t\t{\r\n\t\t\t\t// Use custom field selection\r\n\t\t\t\tforeach ($this->selectFields as $field)\r\n\t\t\t\t{\r\n\t\t\t\t\t$cols[] = $field;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Take all fields\r\n\t\t\t\t$cols[] = 't1.*';\r\n\t\t\t}\r\n\t\r\n\t\t\t$from_sql = 'FROM `'.$this->name.'` t1 ';\r\n\t\t\t$joined = array();\r\n\t\t\t$joins = array();\r\n\t\t\t$alias_no = 2;\r\n\t\t\t$tables[] = array('table' => $this->name, 'alias' => 't1');\r\n\t\r\n\t\t\t// Iterate over fields\r\n\t\t\tforeach ($this->fields as &$field)\r\n\t\t\t{\r\n\t\t\t\t$use_alias = false;\r\n\t\r\n\t\t\t\tif ($field instanceof ForeignField)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Check if foreign field should be included, if select fields were set\r\n\t\t\t\t\tif (isset($this->selectFields))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$found = false;\r\n\t\t\t\t\t\tforeach ($this->selectFields as $sel_field)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (str_contains($sel_field, $field->name))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$found = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!$found)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// Find out what kind of join it should be (INNER or LEFT)\r\n\t\t\t\t\t$join_type = strtoupper($field->joinType);\r\n\t\r\n\t\t\t\t\t// Check if it's a join between two foreign tables\r\n\t\t\t\t\tif ($field->joinFromTable == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Join between this table and other table\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Check if we need to make a new join\r\n\t\t\t\t\t\t$this_join = array(\r\n\t\t\t\t\t\t\t'from_table' => $this->name, \r\n\t\t\t\t\t\t\t'to_table' => $field->table,\r\n\t\t\t\t\t\t\t'from' => $field->joinFrom, \r\n\t\t\t\t\t\t\t'to' => $field->joinTo\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tif (!$this->CheckJoinExists($this_join, $joins))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$from_sql .= $join_type.' JOIN `'.$field->table .'` t'.$alias_no.' ON t1.`'.$field->joinFrom.'` = t'.$alias_no.'.`'.$field->joinTo.'` ';\r\n\t\t\t\t\t\t\t$joins[] = $this_join;\r\n\t\t\t\t\t\t\t$use_alias = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Join between two other tables\r\n\t\r\n\t\t\t\t\t\t// Check if we need to make a new join\r\n\t\t\t\t\t\t$this_join = array(\r\n\t\t\t\t\t\t\t'from_table' \t=> $this->table_name, \r\n\t\t\t\t\t\t\t'to_table' \t\t=> $field->foreign_field->table,\r\n\t\t\t\t\t\t\t'from' \t\t\t=> $field->foreign_field->join_from, \r\n\t\t\t\t\t\t\t'to' \t\t\t=> $field->foreign_field->join_to\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tif (!$this->checkJoinExists($this_join, $joins)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (($alias = $this->tableHasAlias($field->table, $tables)) !== false) \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$from_sql .= $join_type.' JOIN `'.$field->table.'` t'.$alias_no.' ON '.$alias.'.`'.$field->joinFrom.'` = t'.$alias_no.'.`'.$field->joinTo.'` ';\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$from_sql .= $join_type.' JOIN `'.$field->table.'` t'.$alias_no.' ON `'.$field->joinFromTable.'`.`'.$field->joinFrom.'` = t'.$alias_no.'.`'.$field->joinTo.'` ';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$joins[] = $this_join;\r\n\t\t\t\t\t\t\t$use_alias = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tif ($use_alias)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$cols[] = 't'.$alias_no.'.`'.$field->foreignFieldName .'` AS `'.$field->name.'`';\r\n\t\t\t\t\t\t$tables[] = array('table' => $field->table, 'alias' => 't'.$alias_no);\r\n\t\t\t\t\t\t$alias_no++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Check if table has alias\r\n\t\t\t\t\t\tif (($alias = $this->tableHasAlias($field->table, $tables)) !== false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$cols[] = $alias.'.`'.$field->foreignFieldName.'` AS `'.$field->name .'`';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$cols[] = '`'.$field->table.'`.`'.$field->foreignFieldName.'` AS `'.$field->name.'`';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->tableAliases = $tables;\r\n\t\r\n\t\t\t$sql .= implode(', ', $cols).' '.$from_sql;\r\n\t\r\n\t\t\t$this->table_aliases = $tables;\r\n\t\t}\r\n\t\r\n\t\treturn $sql;\r\n\t}", "protected function wrapUnion($sql): string\n {\n return '('.$sql.')';\n }", "protected function _compile_select($select_override = FALSE)\r\n\t{\r\n // Combine any cached components with the current statements\r\n $this->_merge_cache();\r\n\r\n // Write the \"select\" portion of the query\r\n if ($select_override !== FALSE)\r\n {\r\n $sql = $select_override;\r\n }\r\n else\r\n {\r\n $sql = ( ! $this->qb_distinct) ? 'SELECT ' : 'SELECT DISTINCT ';\r\n\r\n if (count($this->qb_select) === 0)\r\n {\r\n $sql .= '*';\r\n }\r\n else\r\n {\r\n // Cycle through the \"select\" portion of the query and prep each column name.\r\n // The reason we protect identifiers here rather then in the select() function\r\n // is because until the user calls the from() function we don't know if there are aliases\r\n foreach ($this->qb_select as $key => $val)\r\n {\r\n $no_escape = isset($this->qb_no_escape[$key]) ? $this->qb_no_escape[$key] : NULL;\r\n $this->qb_select[$key] = $this->protect_identifiers($val, FALSE, $no_escape);\r\n }\r\n\r\n $sql .= implode(', ', $this->qb_select);\r\n }\r\n }\r\n\r\n // Write the \"FROM\" portion of the query\r\n if (count($this->qb_from) > 0)\r\n {\r\n $sql .= \"\\nFROM \".$this->_from_tables();\r\n }\r\n\r\n // Write the \"JOIN\" portion of the query\r\n if (count($this->qb_join) > 0)\r\n {\r\n $sql .= \"\\n\".implode(\"\\n\", $this->qb_join);\r\n }\r\n\r\n $sql .= $this->_compile_wh('qb_where')\r\n .$this->_compile_group_by()\r\n .$this->_compile_wh('qb_having')\r\n .$this->_compile_order_by(); // ORDER BY\r\n\r\n // LIMIT\r\n if ($this->qb_limit)\r\n {\r\n $sql = $this->_limit($sql.\"\\n\");\r\n }\r\n\r\n // ----------------------------------------------------------------\r\n\r\n // Write the \"LOCK IN SHARE MODE\" portion of the query\r\n\r\n if ($this->qb_lock_in_share_mode)\r\n {\r\n $sql .= \"\\nLOCK IN SHARE MODE\";\r\n }\r\n\r\n // ----------------------------------------------------------------\r\n\r\n // Write the \"LOCK IN SHARE MODE\" portion of the query\r\n\r\n if ($this->qb_for_update)\r\n {\r\n $sql .= \"\\nFOR UPDATE\";\r\n }\r\n\r\n return $sql;\r\n\t}" ]
[ "0.69111943", "0.6452777", "0.6250641", "0.60823727", "0.5732522", "0.56662065", "0.5457898", "0.5451955", "0.5384053", "0.53327525", "0.52996564", "0.52422047", "0.52264607", "0.51364875", "0.50841165", "0.50020045", "0.5000878", "0.49943078", "0.4994071", "0.49846807", "0.4879333", "0.48514012", "0.48355117", "0.4791701", "0.47897965", "0.47812593", "0.47610566", "0.47323793", "0.47256765", "0.47038496" ]
0.7199377
0
Groups the result set by the specified field.
public function groupBy($field);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function groupby($field)\n\t\t{\n\t\t\t$this->groupby[] = $field;\n\t\t\treturn $this;\n\t\t}", "public function groupBy($field)\n {\n $this->groupBy = $field;\n return $this;\n }", "public function groupBy($field): QueryBuilderInterface\n\t{\n\t\tif ( ! is_scalar($field))\n\t\t{\n\t\t\t$newGroupArray = array_map([$this->driver, 'quoteIdent'], $field);\n\t\t\t$this->state->setGroupArray(\n\t\t\t\tarray_merge($this->state->getGroupArray(), $newGroupArray)\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->state->appendGroupArray($this->driver->quoteIdent($field));\n\t\t}\n\n\t\t$this->state->setGroupString(' GROUP BY ' . implode(',', $this->state->getGroupArray()));\n\n\t\treturn $this;\n\t}", "function get_group_by($field, $match = null)\n\t{\n\t\treturn get_instance()->kbcore->groups->get_by($field, $match);\n\t}", "public function addGroupBy($field)\n\t{\n\t\tparent::addGroupBy($field);\n\t\treturn $this;\n\t}", "public function getGroupsByField($field,$value){\n\t\t$query = \"SELECT * FROM people_group WHERE $field = '$value'\";\n\t\t$result = $this->mysqli->query($query);\n\t\t$data = FALSE;\n\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t$data [] = array(\n\t\t\t\t'id' => $row['id'], \n\t\t\t\t'person_id' => $row['person_id'], \n\t\t\t\t'group_name' => $row['group_name'], \n\t\t\t);\n\t\t}\n\n\t\treturn $data;\n\n\t}", "public function group($field)\n {\n if (empty($field)) {\n $this->group_str = '';\n return $this;\n }\n if (is_array($field)) {\n $output = array();\n foreach ($field as $item) {\n $output[] = \"`{$item}`\";\n }\n $field = implode(', ', $field);\n }\n else {\n $field = $this->escapeString($field);\n }\n $this->group_str = $field;\n return $this;\n }", "public function getGroupByFieldResultItems()\n {\n return $this->group_by_field_result_items;\n }", "public function groupBy(array $fields, $order = null);", "#[@arg(position= 0)]\n public function setField($field= 'bz_id') {\n $this->criteria= create(new Criteria())\n ->setProjection(Projections::projectionList(array(\n Projections::property(Person::column($field)), \n Projections::count()\n )))\n ->addGroupBy($field)\n ;\n }", "public function groupBy($fields, $overwrite = false);", "function get_groups($field = null, $match = null, $limit = 0, $offset = 0)\n\t{\n\t\treturn get_instance()->kbcore->groups->get_many($field, $match, $limit, $offset);\n\t}", "protected function getGroupFilterFieldDef($reportDef, $field)\n {\n $pos = strrpos($field, ':');\n if ($pos !== false) {\n $field_name = substr($field, $pos + 1);\n $table_key = substr($field, 0, $pos);\n } else {\n $table_key = 'self';\n $field_name = $field;\n }\n if (is_array($reportDef['group_defs'])) {\n $report = null;\n foreach ($reportDef['group_defs'] as $groupColumn) {\n if ($groupColumn['table_key'] === $table_key && $groupColumn['name'] === $field_name) {\n if (empty($groupColumn['type'])) {\n if (!$report) {\n $report = new Report($reportDef);\n }\n if (!empty($report->full_bean_list[$table_key])) {\n $bean = $report->full_bean_list[$table_key];\n $fieldDef = $bean->getFieldDefinition($field_name);\n if (!empty($fieldDef['type'])) {\n $groupColumn['type'] = $fieldDef['type'];\n }\n }\n }\n return $groupColumn;\n }\n }\n }\n return false;\n }", "public function &getGroupBy();", "function restore_group_by($field, $match = null)\n\t{\n\t\treturn get_instance()->kbcore->groups->restore_by($field, $match);\n\t}", "public function groupBy($fieldOrExpr) {\r\n\t\t$absoluteField = $this->resolveFieldName(ClauseType::GROUP, $fieldOrExpr);\r\n\t\t$this->_salt_groups[]=$absoluteField;\r\n\t}", "function scan_field_groups()\n {\n }", "function get_grouping_fields() {\n //field that is used to compare one record from the next\n $compare_field = sql_concat('user.lastname', \"'_'\", 'user.firstname', \"'_'\", 'user.id');\n\n //field used to order for groupings\n $order_field = sql_concat('lastname', \"'_'\", 'firstname', \"'_'\", 'userid');\n\n $cluster_label = get_string('grouping_cluster', 'rlreport_course_completion_by_cluster');\n $cluster_grouping = new table_report_grouping('cluster', 'cluster.id', $cluster_label, 'ASC',\n array('cluster.name'), 'above', 'path');\n \n $user_grouping_fields = array(\n 'user.idnumber AS useridnumber', 'user.firstname');\n $user_grouping = new table_report_grouping('groupuseridnumber', $compare_field, '', 'ASC', \n $user_grouping_fields, 'below', $order_field);\n\n //these groupings will always be used\n $result = array(\n $cluster_grouping, $user_grouping);\n\n //determine whether or not we should use the curriculum grouping\n $preferences = php_report_filtering_get_active_filter_values($this->get_report_shortname(),\n 'columns'.'_curriculum', $this->filter);\n\n $show_curriculum = true;\n if (isset($preferences['0']['value'])) {\n $show_curriculum = $preferences['0']['value'];\n }\n\n if ($show_curriculum) {\n $curriculum_label = get_string('grouping_curriculum', 'rlreport_course_completion_by_cluster');\n $result[] = new table_report_grouping('groupcurriculumid', 'curriculum.id', $curriculum_label, 'ASC', array(),\n 'below', 'curriculumname, curriculumid');\n }\n\n return $result;\n }", "public function groupBy($field, $escape = null)\n {\n is_bool($escape) || $escape = $this->conn->protectIdentifiers;\n\n if (is_string($field)) {\n $field = ($escape === true)\n ? explode(',', $field)\n : [$field];\n }\n\n foreach ($field as $fieldName) {\n $fieldName = trim($fieldName);\n\n if ($fieldName !== '') {\n $fieldName = ['field' => $fieldName, 'escape' => $escape];\n\n $this->builderCache->groupBy[] = $fieldName;\n }\n }\n\n return $this;\n }", "public static function groupBy($list, $fieldName, $article_grouping_direction, $fieldNameToKeep = null)\n\t{\n\t\t$grouped = array();\n\n\t\tif (!is_array($list))\n\t\t{\n\t\t\tif ($list == '')\n\t\t\t{\n\t\t\t\treturn $grouped;\n\t\t\t}\n\n\t\t\t$list = array($list);\n\t\t}\n\n\t\tforeach ($list as $key => $item)\n\t\t{\n\t\t\tif (!isset($grouped[$item->$fieldName]))\n\t\t\t{\n\t\t\t\t$grouped[$item->$fieldName] = array();\n\t\t\t}\n\n\t\t\tif (is_null($fieldNameToKeep))\n\t\t\t{\n\t\t\t\t$grouped[$item->$fieldName][$key] = $item;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$grouped[$item->$fieldName][$key] = $item->$fieldNameToKeep;\n\t\t\t}\n\n\t\t\tunset($list[$key]);\n\t\t}\n\n\t\t$article_grouping_direction($grouped);\n\n\t\treturn $grouped;\n\t}", "public function groupBy($sql);", "public function Group($field,$group){\n $this->_groups[$field] = array_merge($group,array(\"currentGroup\" => \"?\", \"currentMsg\" => \"\"));\n }", "public function group($column)\n {\n // Make column name safe\n $column = $this->san($column);\n \n // GROUP BY .. \n $this->query .= 'GROUP BY ' . $column . ' ';\n \n // Return a ref. to this object for chainability\n return $this;\n }", "public function sum($field) {\n return $this->getRepository()->aggregate($this, __FUNCTION__, $field);\n }", "function ydgdict_group_search_results_by_entry( $groupby, $wp_query ) \n{\n if ( ! $wp_query->is_archive( 'entry' ) || ! $wp_query->is_search() || is_admin() ) return $groupby; // unchanged\n\n global $wpdb;\n\n return \" {$wpdb->posts}.ID \";\n}", "public function groupBy($field, $asc = true)\n {\n if ($asc) {\n $this->groupBy[] = \" $this->alias.$field ASC\";\n } else {\n $this->groupBy[] = \" $this->alias.$field DESC\";\n }\n \n return $this;\n }", "function acf_prepare_field_group_for_export($field_group = array())\n{\n}", "public function groupBy($property)\n {\n $this->group[] = $this->dbFieldName($property);\n }", "public function statisticItineraryBy($field) {\n $q = \"SELECT DATE_FORMAT(created_at,'%Y-%m') as month, COUNT(DATE_FORMAT(created_at,'%Y-%m')) as number \n FROM itinerary GROUP BY DATE_FORMAT(created_at,'%Y-%m')\";\n \n $stmt = $this->conn->prepare($q);\n //$stmt->bind_param(\"i\",$customer_id);\n $stmt->execute();\n $results = $stmt->get_result();\n\n $stats = array();\n // looping through result and preparing tasks array\n while ($stat = $results->fetch_assoc()) {\n $tmp = array();\n\n $tmp[\"month\"] = $stat[\"month\"];\n $tmp[\"number\"] = $stat[\"number\"];\n\n array_push($stats, $tmp);\n }\n\n $stmt->close();\n return $stats;\n }", "function acf_get_field_groups($filter = array())\n{\n}" ]
[ "0.7004244", "0.65770024", "0.6551445", "0.65145576", "0.6369502", "0.63546884", "0.63137305", "0.6152158", "0.608925", "0.59699535", "0.5914712", "0.59047854", "0.58912283", "0.5886462", "0.58660424", "0.5859383", "0.58371377", "0.5814556", "0.5753937", "0.57474047", "0.5683865", "0.56498003", "0.5548986", "0.55430937", "0.5540406", "0.5499217", "0.54698366", "0.5435374", "0.5428134", "0.5410883" ]
0.7834335
1
Helper function to build most common HAVING conditional clauses. This method can take a variable number of parameters. If called with two parameters, they are taken as $field and $value with $operator having a value of IN if $value is an array and = otherwise.
public function havingCondition($field, $value = NULL, $operator = NULL);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function having(\n Closure | string $column,\n string $operator,\n Closure | float | int | string | null ...$values\n ) : static {\n return $this->addHaving('AND', $column, $operator, $values);\n }", "public function having($clause, array $params);", "public function buildHaving(array $having = null, array &$values = [])\n {\n if ($having === null) {\n return '';\n }\n\n return 'HAVING ' . $this->buildCondition($having, $values);\n }", "private function buildHaving(): void {\r\n\r\n if(count($this -> having) > 0) {\r\n\r\n $this -> query[] = 'HAVING';\r\n $this -> query[] = sprintf('(%s)', implode(' AND ', $this -> having));\r\n }\r\n }", "public static function having($prop, $value = PDODBNULL, $operator = '=', $cond = 'AND'){\r\n return self::$PDO->having($prop,$value,$operator,$cond);\r\n }", "public function having()\n {\n $args = func_get_args();\n $count = count($args);\n \n if ($count == 1) {\n $this->having[] = $args[0];\n } else {\n $this->having[] = array_shift($args);\n \n if ($count == 2 && is_array($args[0]))\n $args = $args[0];\n \n if ($args)\n $this->having_params = array_merge($this->having_params, $args);\n }\n return $this;\n }", "public function makeGroupByWithHaving( $options ) {\n\t\t$sql = '';\n\t\tif ( isset( $options['GROUP BY'] ) ) {\n\t\t\t$gb = is_array( $options['GROUP BY'] )\n\t\t\t\t? implode( ',', $options['GROUP BY'] )\n\t\t\t\t: $options['GROUP BY'];\n\t\t\t$sql .= ' GROUP BY ' . $gb;\n\t\t}\n\t\tif ( isset( $options['HAVING'] ) ) {\n\t\t\t$having = is_array( $options['HAVING'] )\n\t\t\t\t? $this->makeList( $options['HAVING'], LIST_AND )\n\t\t\t\t: $options['HAVING'];\n\t\t\t$sql .= ' HAVING ' . $having;\n\t\t}\n\n\t\treturn $sql;\n\t}", "public function orHaving(\n Closure | string $column,\n string $operator,\n Closure | float | int | string | null ...$values\n ) : static {\n return $this->addHaving('OR', $column, $operator, $values);\n }", "private function addHaving(\n string $glue,\n array | Closure | string $column,\n string $operator,\n array $values\n ) : static {\n return $this->addWhere($glue, $column, $operator, $values, 'having');\n }", "public function and_having($column, $op = null, $value = null)\n {\n if(func_num_args() === 2)\n {\n $value = $op;\n $op = '=';\n }\n\n $this->_having[] = array('AND' => array($column, $op, $value));\n\n return $this;\n }", "public function andWhere($field, $operator, $value);", "public function having($field, $value = null, $comparitor = null);", "private function buildWhere ($array) {\n\n // Only do anything if the array contains anything\n if($array){ \n\n // Loop through the array where $key is the column name and $value are the \n // array containing the operator [0] and values [1]\n foreach($array as $key => $value){ \n\n // We set each element of the where clause to $this->where before setting it to\n // $this->show_where. If it already exists we must have already have something\n // in the where clause so set $preSql to ' AND ' otherwise set it to ' WHERE '\n $preSql = (isset($this->where)) ? ' AND ' : ' WHERE ';\n\n // As we need different ways of building the where clause elements, depending on\n // the operator ($value[0]), we run a switch statement to call the function to\n // build the correct type of element, passing in the field name ($key) and the\n // operator and criteria ($value array)\n switch($value[0]) {\n case '>':\n case '<':\n case '=':\n case '<=':\n case '>=':\n case '!=':\n case '<>':\n case 'LIKE':\n $this->where = $this->whereElementStandard ($key, $value);\n break;\n\n case 'IN':\n $this->where = $this->whereElementIn ($key, $value); \n break;\n\n case 'BETWEEN':\n $this->where = $this->whereElementBetween ($key, $value); \n break;\n case 'NULL':\n case 'NOT NULL':\n $this->where = $this->whereElementNull ($key, $value); \n break;\n\n default:\n $this->where = $this->whereElementStandard ($key, $value);\n break;\n } // End switch\n\n \n // Add the created where clause elements to $this->show_where\n $this->show_where .= $preSql.$this->where;\n } // End foreach\n } // End if $array\n }", "public function getHavingParameterised(&$parameters)\n {\n $this->splitQueryParameters($this->having, $conditions, $parameters);\n return $conditions;\n }", "public function condition()\n {\n $op = $this->getDefaultOperator();\n $params = func_get_args();\n \n switch (count($params)) {\n case 1:\n if (is_string($params[0])) {\n $this->addCondition('literal', [$params[0]]);\n } elseif (is_array($params[0])) {\n $combination = $this->getDefaultOperator();\n \n /**\n * The code within the foreach is an extraction of Zend\\Db\\Sql\\Select::where()\n */\n foreach ($params[0] as $pkey => $pvalue) {\n if (is_string($pkey) && strpos($pkey, '?') !== false) {\n # ['id = ?' => 1]\n # ['id IN (?, ?, ?)' => [1, 3, 4]]\n $predicate = new ZfPredicate\\Expression($pkey, $pvalue);\n } elseif (is_string($pkey)) {\n if ($pvalue === null) {\n # ['name' => null] -> \"ISNULL(name)\"\n $predicate = new ZfPredicate\\IsNull($pkey, $pvalue);\n } elseif (is_array($pvalue)) {\n # ['id' => [1, 2, 3]] -> \"id IN (1, 2, 3)\"\n $predicate = new ZfPredicate\\In($pkey, $pvalue);\n } else {\n # ['id' => $id] -> \"id = 15\"\n $predicate = new ZfPredicate\\Operator($pkey, ZfPredicate\\Operator::OP_EQ, $pvalue);\n }\n } elseif ($pvalue instanceof ZfPredicate\\PredicateInterface) {\n $predicate = $pvalue;\n } else {\n # ['id = ?'] -> \"id = ''\"\n # ['id = 1'] -> literal.\n $predicate = (strpos($pvalue, Expression::PLACEHOLDER) !== false)\n ? new ZfPredicate\\Expression($pvalue) : new ZfPredicate\\Literal($pvalue);\n }\n $this->getCurrentPredicate()->addPredicate($predicate, $combination);\n }\n }\n break;\n \n case 2:\n # $rel->where('foo = ? AND id IN (?) AND bar = ?', [true, [1, 2, 3], false]);\n # If passing a non-array value:\n # $rel->where('foo = ?', 1);\n # But if an array is to be passed, must be inside another array\n # $rel->where('id IN (?)', [[1, 2, 3]]);\n if (!is_array($params[1])) {\n $params[1] = [$params[1]];\n }\n $this->expandPlaceholders($params[0], $params[1]);\n $this->addCondition('expression', [$params[0], $params[1]]);\n break;\n \n case 3:\n # $rel->where('id', '>', 2);\n $this->getCurrentPredicate()->addPredicate(\n new ZfPredicate\\Operator($params[0], $params[1], $params[2])\n );\n break;\n \n default:\n throw new Exception\\BadMethodCallException(\n sprintf(\n \"One to three arguments are expected, %s passed\",\n count($params)\n )\n );\n }\n \n return $this;\n }", "public function having(array $clauseProps){\r\n\r\n foreach ($clauseProps as $key => $value) {\r\n if(is_array($value)){\r\n if(count($value) > 0){\r\n # check that HAVING clause operator supplied is allowed !!\r\n if(!(in_array(strtoupper($value[0]), $this->allowedOperators))){\r\n throw new UnexpectedValueException();\r\n }\r\n }\r\n }\r\n }\r\n\r\n $this->queryString .= (\" HAVING \" . implode(', ', $this->prepareSelectPlaceholder($clauseProps)));\r\n\r\n return $this;\r\n }", "public function where()\n {\n $args = func_get_args();\n $count = count($args);\n \n if ($count == 1) {\n if (is_array($args[0])) {\n # This is expected to be a column => value associated array.\n # In this case, the array is stored as is.\n $this->where[] = $args[0];\n } else {\n # This is expected to be a string.\n $this->where[] = $args[0];\n }\n } elseif ($count) {\n # Case: $query->where(\"foo\", true, \"bar_baz\", $bar);\n if ($count >= 2 && is_int($count / 2) && (!is_array($args[1]) || Toolbox\\ArrayTools::isIndexed($args[1])) && is_bool(strpos($args[0], ' '))) {\n $where = [];\n foreach ($args as $key => $value) {\n $key++;\n if ($key && !($key % 2)) {\n $where[$next_key] = $value;\n } else {\n $next_key = $value;\n }\n }\n $this->where[] = $where;\n } else {\n $this->where[] = array_shift($args);\n \n # Case: $query->where('foo => :foo', ['foo' => $foo]);\n if ($count == 2 && is_array($args[0]) && !Toolbox\\ArrayTools::isIndexed($args[0]))\n $args = $args[0];\n \n if ($args)\n $this->where_params = array_merge($this->where_params, $args);\n }\n }\n return $this;\n }", "public function orHavingIn(\n Closure | string $column,\n Closure | float | int | string | null $value,\n Closure | float | int | string | null ...$values\n ) : static {\n return $this->orHaving($column, 'IN', ...[$value, ...$values]);\n }", "protected function constructWhereClausePart($queryPart, $values) {\n \n $parameters = array(); \n \n// $where = 'WHERE $X{IN,hs_hr_employee.emp_firstname,firstName} AND $X{IN,hs_hr_employee.emp_lastname,lastName}';\n $pattern = '/\\$X\\{(.*?)\\}/';\n\n $callback = function($matches) use ($values, &$parameters) {\n $val = explode(\",\", $matches[1]);\n \n // $X{VAR,name}\n \n if ((count($val) == 2 && $val[0] == 'VAR')) {\n \n $operator = $val[0];\n $name = $val[1]; \n } else {\n \n if (count($val) < 3) { \n throw new ReportException('Invalid filter definition: ' . $matches[0]);\n }\n \n $operator = $val[0];\n $field = $val[1];\n $name = $val[2]; \n }\n \n // If no value defined for this filter, ignore it (filter is set to true)\n if (!isset($values[$name]) || is_null($values[$name])) {\n return \"true\";\n }\n if ($operator == 'IN') {\n \n $valueArray = $values[$name];\n \n if (!is_array($valueArray) && is_string($valueArray)) {\n $valueArray = explode(',', $valueArray);\n }\n if (!is_array($valueArray) || count($valueArray) == 0) {\n return \"true\";\n } \n\n $placeHolders = rtrim(str_repeat('?,', count($valueArray)), ',');\n $clause = $field . \" IN (\" . $placeHolders . \")\";\n \n $parameters = array_merge($parameters, $valueArray);\n\n } else if ($operator == '=') {\n $clause = $field . ' = ?';\n $parameters[] = $values[$name];\n \n } else if ($operator == 'BETWEEN') {\n $clause = $field . ' BETWEEN ? AND ?';\n $parameters[] = $values[$name]['from'];\n $parameters[] = $values[$name]['to'];\n } else if ($operator == '>') {\n $clause = $field . ' > ?';\n $parameters[] = $values[$name];\n } else if ($operator == '<') {\n $clause = $field . ' < ?';\n $parameters[] = $values[$name];\n } else if ($operator == '>=') {\n $clause = $field . ' >= ?';\n $parameters[] = $values[$name];\n } else if ($operator == '<=') {\n $clause = $field . ' <= ?';\n $parameters[] = $values[$name];\n } else if ($operator == 'IS NOT NULL') {\n if ($values[$name] == 'TRUE') {\n $clause = $field . ' IS NOT NULL';\n } else {\n $clause = 'true';\n }\n } else if ($operator == 'IS NULL') {\n if ($values[$name] == 'TRUE') {\n $clause = $field . ' IS NULL';\n } else {\n $clause = 'true';\n }\n } else if ($operator == 'VAR') {\n $clause = $values[$name];\n } \n\n return $clause;\n };\n\n $str = preg_replace_callback($pattern, $callback, $queryPart);\n\n return array($str, $parameters);\n }", "public function orHaving($prop, $value = PDODBNULL, $operator = '='){\r\n return $this->where($prop,$value,$operator,'OR');\r\n }", "public static function orHaving($prop, $value = PDODBNULL, $operator = '='){\r\n return self::$PDO->orHaving($prop,$value,$operator);\r\n }", "public function having($prop, $value = PDODBNULL, $operator = '=', $cond = 'AND'){\r\n $this->_having[] = array($prop,$value,$operator,$cond);\r\n return $this;\r\n }", "function where( ...$getwherekeys) { \n $whereorhaving = ($this->iswhere) ? 'WHERE' : 'HAVING';\n $this->iswhere = true;\n \n\t\tif (!empty($getwherekeys)){\n\t\t\tif (is_string($getwherekeys[0])) {\n\t\t\t\tforeach ($getwherekeys as $makearray) \n\t\t\t\t\t$wherekeys[] = explode(' ',$makearray);\t\n\t\t\t} else \n\t\t\t\t$wherekeys = $getwherekeys;\t\t\t\n\t\t} else \n\t\t\treturn '';\n\t\t\n\t\tforeach ($wherekeys as $values) {\n\t\t\t$operator[] = (isset($values[1])) ? $values[1]: '';\n\t\t\tif (!empty($values[1])){\n\t\t\t\tif (strtoupper($values[1]) == 'IN') {\n\t\t\t\t\t$wherekey[ $values[0] ] = array_slice($values,2);\n\t\t\t\t\t$combiner[] = (isset($values[3])) ? $values[3]: _AND;\n\t\t\t\t\t$extra[] = (isset($values[4])) ? $values[4]: null;\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t$wherekey[ (isset($values[0])) ? $values[0] : '1' ] = (isset($values[2])) ? $values[2] : '' ;\n\t\t\t\t\t$combiner[] = (isset($values[3])) ? $values[3]: _AND;\n\t\t\t\t\t$extra[] = (isset($values[4])) ? $values[4]: null;\n\t\t\t\t}\t\t\t\t\n\t\t\t} else {\n $this->setParamaters();\n\t\t\t\treturn false;\n } \n\t\t}\n \n $where='1'; \n if (! isset($wherekey['1'])) {\n $where='';\n $i=0;\n $needtoskip=false;\n foreach($wherekey as $key=>$val) {\n $iscondition = strtoupper($operator[$i]);\n\t\t\t\t$combine = $combiner[$i];\n\t\t\t\tif ( in_array(strtoupper($combine), array( 'AND', 'OR', 'NOT', 'AND NOT' )) || isset($extra[$i])) \n\t\t\t\t\t$combinewith = (isset($extra[$i])) ? $combine : strtoupper($combine);\n\t\t\t\telse \n\t\t\t\t\t$combinewith = _AND;\n if (! in_array( $iscondition, array( '<', '>', '=', '!=', '>=', '<=', '<>', 'IN', 'LIKE', 'NOT LIKE', 'BETWEEN', 'NOT BETWEEN', 'IS', 'IS NOT' ) )) {\n $this->setParamaters();\n return false;\n } else {\n if (($iscondition=='BETWEEN') || ($iscondition=='NOT BETWEEN')) {\n\t\t\t\t\t\t$value = $this->escape($combinewith);\n\t\t\t\t\t\tif (in_array(strtoupper($extra[$i]), array( 'AND', 'OR', 'NOT', 'AND NOT' ))) \n\t\t\t\t\t\t\t$mycombinewith = strtoupper($extra[$i]);\n\t\t\t\t\t\telse \n $mycombinewith = _AND;\n\t\t\t\t\t\tif ($this->getPrepare()) {\n\t\t\t\t\t\t\t$where.= \"$key \".$iscondition.' '._TAG.\" AND \"._TAG.\" $mycombinewith \";\n\t\t\t\t\t\t\t$this->setParamaters($val);\n\t\t\t\t\t\t\t$this->setParamaters($combinewith);\n\t\t\t\t\t\t} else \n\t\t\t\t\t\t\t$where.= \"$key \".$iscondition.\" '\".$this->escape($val).\"' AND '\".$value.\"' $mycombinewith \";\n\t\t\t\t\t\t$combinewith = $mycombinewith;\n\t\t\t\t\t} elseif ($iscondition=='IN') {\n\t\t\t\t\t\t$value = '';\n\t\t\t\t\t\tforeach ($val as $invalues) {\n\t\t\t\t\t\t\tif ($this->getPrepare()) {\n\t\t\t\t\t\t\t\t$value .= _TAG.', ';\n\t\t\t\t\t\t\t\t$this->setParamaters($invalues);\n\t\t\t\t\t\t\t} else \n\t\t\t\t\t\t\t\t$value .= \"'\".$this->escape($invalues).\"', \";\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t$where.= \"$key \".$iscondition.\" ( \".rtrim($value, ', ').\" ) $combinewith \";\n\t\t\t\t\t} elseif(((strtolower($val)=='null') || ($iscondition=='IS') || ($iscondition=='IS NOT'))) {\n $iscondition = (($iscondition=='IS') || ($iscondition=='IS NOT')) ? $iscondition : 'IS';\n $where.= \"$key \".$iscondition.\" NULL $combinewith \";\n } elseif((($iscondition=='LIKE') || ($iscondition=='NOT LIKE')) && ! preg_match('/[_%?]/',$val)) return false;\n else {\n\t\t\t\t\t\tif ($this->getPrepare()) {\n\t\t\t\t\t\t\t$where.= \"$key \".$iscondition.' '._TAG.\" $combinewith \";\n\t\t\t\t\t\t\t$this->setParamaters($val);\n\t\t\t\t\t\t} else \n\t\t\t\t\t\t\t$where.= \"$key \".$iscondition.\" '\".$this->escape($val).\"' $combinewith \";\n\t\t\t\t\t}\n $i++;\n }\n }\n $where = rtrim($where, \" $combinewith \");\n }\n\t\t\n if (($this->getPrepare()) && !empty($this->getParamaters()) && ($where!='1'))\n\t\t\treturn \" $whereorhaving \".$where.' ';\n\t\telse\n\t\t\treturn ($where!='1') ? \" $whereorhaving \".$where.' ' : ' ' ;\n }", "function custom_conds( $conds = array()) {\n\n\t}", "public function resolveConditionData($params)\n {\n $dataWhere = \"\";\n\n $lowerKeyd = array_change_key_case($params, CASE_LOWER);\n $glue = strtoupper(isset($lowerKeyd[self::OPERATOR_PREFIX . 'operator']) && strtolower($lowerKeyd[self::OPERATOR_PREFIX . 'operator']) == \"or\" ? \"OR\" : \"AND\");\n unset($lowerKeyd);\n\n foreach ($params as $k => $v) {\n if (strpos($k, self::OPERATOR_PREFIX) === 0) {\n continue;\n }\n if (is_numeric($k)) {\n if (is_array($v)) {\n $dataWhere .= ($dataWhere ? \" {$glue} (\" : \"(\") . $this->resolveConditionData($v) . \")\";\n }\n else { // raw\n $dataWhere .= ($dataWhere ? \" {$glue} \" : \"\") . $v;\n }\n }\n else {\n $expl = explode(\" \", $k, 2);\n $operator = count($expl) > 1 ? $expl[1] : \"=\";\n if ($operator == \"=\" && (is_array($v))) {\n $operator = \"IN\";\n }\n if ($operator == \"!=\" && (is_array($v))) {\n $operator = \"NOT IN\";\n }\n if ($operator == \"=\" && ($v === NULL)) {\n $operator = \"IS\";\n }\n if ($operator == \"!=\" && ($v === NULL)) {\n $operator = \"IS NOT\";\n }\n $dontQuote = false;\n if ($v === NULL) {\n $v = \"NULL\";\n $dontQuote = true;\n }\n if ($v === TRUE) {\n $v = 1;\n }\n if ($v === FALSE) {\n $v = 0;\n }\n $column = $expl[0];\n if (strpos($column, self::DONT_QUOTE_VALUE_PREFIX) === 0) {\n $column = substr($column, 1);\n $dontQuote = true;\n }\n $dataWhere .= ($dataWhere ? \" {$glue} \" : \"\") . $this->quoteColumn($column) . \" {$operator} \" . $this->_quoteVal($v, $dontQuote);\n }\n }\n\n return $dataWhere;\n }", "public function whereHas($relation, $field, $operator, $value);", "public function and_having($column, $op, $value = NULL){\n $this->_having[] = array('AND' => array($column, $op, $value));\n\n return $this;\n }", "public function testBuildWhereWithTwoArguments()\n {\n $query = $this->getQuery()\n ->where('param1', 'value1')\n ->where('param2', 'in', ['value2', 'value3'])\n ;\n\n $this->assertSame(\n \"WHERE param1 = 'value1' AND param2 IN ('value2', 'value3')\",\n $query->buildWhere()\n );\n }", "public function orWhereIn()\n {\n list($field, $value) = $this->extractQueryToFieldAndValue(func_get_args());\n if (!is_array($value)) {\n $value = [$value];\n }\n return $this->addOrWhereStack([$field => [self::OPERATORS['in'] => $value]]); \n }", "public function addHavingWithVariables($condition, array $variables) {\n $condition = $this->parseVariables($condition, $variables);\n\n parent::addHavingWithVariables($condition, array());\n }" ]
[ "0.64402515", "0.61656153", "0.58997965", "0.5772756", "0.5764759", "0.5713066", "0.569427", "0.5676686", "0.5672715", "0.5637114", "0.56330264", "0.5619707", "0.5615368", "0.561336", "0.5597413", "0.55853784", "0.55828106", "0.5576727", "0.55762625", "0.55587834", "0.5532104", "0.5518757", "0.5502411", "0.5496707", "0.54870296", "0.5471366", "0.54708385", "0.5457049", "0.54293215", "0.54185295" ]
0.6670852
0
Gets a list of all conditions in the HAVING clause. This method returns by reference. That allows alter hooks to access the data structure directly and manipulate it before it gets compiled.
public function &havingConditions();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHaving() {\n return $this->_having ?: new Predicate(Predicate::ALSO);\n }", "public function &getConditions() {\n return $this->conditions;\n }", "public function getHaving()\n\t\t{\n\t\t\treturn $this->havings;\n\t\t}", "public function having($conditions) {\n $this->having = !empty($conditions) ? ('HAVING ' . implode(',', $conditions)) : null;\n return $this;\n }", "public function getHaving()\n {\n return $this->having;\n }", "public function get_conditions()\n {\n return $this->conditions;\n }", "public function getHavingParameterised(&$parameters)\n {\n $this->splitQueryParameters($this->having, $conditions, $parameters);\n return $conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function having(string ...$conditions): self {\r\n\r\n $this -> having = array_merge($this -> having, $conditions);\r\n return $this;\r\n }", "function having(...$having)\n {\n $this->iswhere = false;\n return $this->where( ...$having);\n }", "public function getConditions()\n\t{\n\t\treturn $this->conditions;\n\t}", "public function getConditions()\n\t{\n\t\treturn $this->conditions;\n\t}", "public function having(): Having\n {\n if (!isset($this->having)){\n $this->having = new Query\\Having($this, $this->driver, $this->topQuery);\n }\n return $this->having; \n }", "public function getConditions(): array\n\t{\n\t\treturn $this->conditions;\n\t}", "public function having(){\r\n \t$tb = call_user_func_array(array($this->mask(), 'having'), func_get_args());\r\n\t\treturn $this;\r\n }", "private function buildHaving(): void {\r\n\r\n if(count($this -> having) > 0) {\r\n\r\n $this -> query[] = 'HAVING';\r\n $this -> query[] = sprintf('(%s)', implode(' AND ', $this -> having));\r\n }\r\n }", "public function and_having_close(){\n $this->_having[] = array('AND' => ')');\n\n return $this;\n }", "public function having()\n {\n $this->having = $expr = new Expression;\n $expr->driver = $this->driver;\n $expr->builder = $this;\n $expr->parent = $this;\n return $expr;\n }", "public function and_having_close()\n {\n $this->_having[] = array('AND' => ')');\n\n return $this;\n }", "public function getConditions();", "public function getConditions();", "public function getConditions();", "public function getWheres()\n {\n return $this->wheres;\n }", "public function and_having_open(){\n $this->_having[] = array('AND' => '(');\n\n return $this;\n }", "function condition_values() {\n return array();\n }", "public function addHaving(array $criterion)\n {\n $criterion = new Criterion($criterion);\n $this->criteria->add(\n $criterion->setType('having')\n );\n\n return $this;\n }", "public function getConditionsHook()\n\t{\n\t\t$conditions = array();\n\t\t\n\t\t$conditions['select'] = '`bid` AS id, `cid`, `type`, `name`, `alias`, `imptotal`, `impmade`, '\n\t\t\t\t\t\t\t\t\t\t\t\t\t.'`clicks`, `imageurl`, `clickurl`, `date`, `showBanner` AS state, `checked_out`, '\n\t\t\t\t\t\t\t\t\t\t\t\t\t.'`checked_out_time`, `editor`, `custombannercode`, `catid`, `description`, '\n\t\t\t\t\t\t\t\t\t\t\t\t\t.'`sticky`, `ordering`, `publish_up`, `publish_down`, `tags`, `params`'\t;\n\t\t\n\t\t$conditions['where'] = array();\n\t\t\n\t\treturn $conditions;\n\t}" ]
[ "0.66103774", "0.659002", "0.65707505", "0.6563108", "0.64636767", "0.6456111", "0.6393219", "0.63529795", "0.63529795", "0.63529795", "0.63529795", "0.6327125", "0.6206203", "0.6202713", "0.6202713", "0.6190177", "0.6163314", "0.615114", "0.61052394", "0.60361916", "0.60053784", "0.59651834", "0.5960285", "0.5960285", "0.5960285", "0.5928507", "0.5907742", "0.59057426", "0.58939135", "0.5887987" ]
0.6714822
0
Sets a condition in the HAVING clause that the specified field be NULL.
public function havingIsNull($field);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function havingIsNotNull($field);", "public function havingIsNull(Closure | string $column) : static\n {\n return $this->having($column, 'IS NULL');\n }", "public function orHavingIsNull(Closure | string $column) : static\n {\n return $this->orHaving($column, 'IS NULL');\n }", "public static function whereNull($column);", "public function isNullCond(string $field, string $connector = \"AND\", bool $not = false);", "public function __null ( $sField )\n {\n return \"$sField IS NULL\";\n }", "public function whereNull($fields);", "public function havingIsNotNull(Closure | string $column) : static\n {\n return $this->having($column, 'IS NOT NULL');\n }", "public function havingCondition($field, $value = NULL, $operator = NULL);", "public static function whereIsNull($parameter);", "private function cek_null($val,$field)\n { if (isset($val)){ return $this->ci->db->where($field, $val); } }", "public function orHavingIsNotNull(Closure | string $column) : static\n {\n return $this->orHaving($column, 'IS NOT NULL');\n }", "public function clearCondition(){\n\t\t$this->where=\"\";\n\t}", "public function whereNull(String $col){\r\n $this->where->add($colName.\" IS NULL\");\r\n\r\n }", "public function whereNotNull($field)\n {\n return $this->makeModel()->whereNotNull($field);\n\n }", "public function orHavingNotEqual(\n Closure | string $column,\n Closure | float | int | string | null $value\n ) : static {\n return $this->orHaving($column, '!=', $value);\n }", "protected function whereNull(Builder $query, $where)\n {\n return $this->wrap($where['column']).' is null';\n }", "public function havingNotEqual(\n Closure | string $column,\n Closure | float | int | string | null $value\n ) : static {\n return $this->having($column, '!=', $value);\n }", "protected function _emptyFieldsToNull(&$field, $key)\n {\n if ($this->_metadata[$key]['NULLABLE'] && empty($field)) {\n $field = null;\n }\n }", "public function isNull() {\n $this->_action = 'IS NULL';\n $this->_value = '';\n \n return $this;\n }", "protected function whereNull(Builder $query, array $where)\n {\n return $this->wrap($where['column']) . ' is null';\n }", "public function notNull($column)\n {\n $this->addCondition($this->db->escapeIdentifier($column).' IS NOT NULL');\n }", "public function having($field, $value = null, $comparitor = null);", "public static function whereNotNull($column);", "public function where_null($name, $state=true)\n {\n $this->where[] = sprintf('%s %s null', self::quote_name($name), $state ? 'is': 'is not');\n return $this;\n }", "public function __notnull ( $sField )\n {\n return \"$sField IS NOT NULL\";\n }", "public function null(): FluidColumnOptions\n {\n $this->column->setNotnull(false);\n return $this;\n }", "public function whereNone($operand, $operatorOrValue=null, $value=null);", "public function whereNotExists($field) {\n\t$this->parseQuery->whereDoesNotExist($field);\n }", "public function not_having($having) \n {\n $this->sql .= \" NOT HAVING \". $this->clean($having);\n return $this;\n }" ]
[ "0.625018", "0.59701", "0.5928521", "0.5795825", "0.57617235", "0.57091147", "0.56600934", "0.5634498", "0.56288326", "0.56081384", "0.5589795", "0.5502315", "0.5385832", "0.5377742", "0.53713465", "0.53582776", "0.53570306", "0.53266454", "0.5301143", "0.52739", "0.5167355", "0.5150008", "0.51469994", "0.5145675", "0.5133894", "0.5108633", "0.50924546", "0.5087649", "0.506398", "0.5036334" ]
0.7071005
0
Sets a condition in the HAVING clause that the specified field be NOT NULL.
public function havingIsNotNull($field);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function havingIsNull($field);", "public function isNullCond(string $field, string $connector = \"AND\", bool $not = false);", "public function orHavingIsNull(Closure | string $column) : static\n {\n return $this->orHaving($column, 'IS NULL');\n }", "public function havingIsNotNull(Closure | string $column) : static\n {\n return $this->having($column, 'IS NOT NULL');\n }", "public function orHavingIsNotNull(Closure | string $column) : static\n {\n return $this->orHaving($column, 'IS NOT NULL');\n }", "public function notNull($column)\n {\n $this->addCondition($this->db->escapeIdentifier($column).' IS NOT NULL');\n }", "public function havingIsNull(Closure | string $column) : static\n {\n return $this->having($column, 'IS NULL');\n }", "public function __notnull ( $sField )\n {\n return \"$sField IS NOT NULL\";\n }", "public function orHavingNotEqual(\n Closure | string $column,\n Closure | float | int | string | null $value\n ) : static {\n return $this->orHaving($column, '!=', $value);\n }", "public static function whereNull($column);", "public function __null ( $sField )\n {\n return \"$sField IS NULL\";\n }", "public function havingCondition($field, $value = NULL, $operator = NULL);", "public function havingNotEqual(\n Closure | string $column,\n Closure | float | int | string | null $value\n ) : static {\n return $this->having($column, '!=', $value);\n }", "public function whereNotNull($field)\n {\n return $this->makeModel()->whereNotNull($field);\n\n }", "public static function whereNotNull($column);", "public function whereNull($fields);", "public static function whereIsNull($parameter);", "public function notNull() {\n $this->_action = 'IS NOT NULL';\n $this->_value = '';\n \n return $this;\n }", "protected function whereNotNull(Builder $query, $where)\n {\n return $this->wrap($where['column']).' is not null';\n }", "private function cek_null($val,$field)\n { if (isset($val)){ return $this->ci->db->where($field, $val); } }", "public function whereNull(String $col){\r\n $this->where->add($colName.\" IS NULL\");\r\n\r\n }", "public function whereNotNull($fields);", "public function neq(): WhereCondition\n {\n\n $this->_op = self::OP_TYPE_NEQ;\n\n return $this;\n\n }", "public function notNull(): FluidColumnOptions\n {\n $this->column->setNotnull(true);\n return $this;\n }", "public function having($field, $value = null, $comparitor = null);", "public static function null(string $column, $not = false): Condition\n {\n $self = (new Condition())->column($column);\n return $not ? $self->isNotNull() : $self->isNull();\n }", "protected function whereNull(Builder $query, $where)\n {\n return $this->wrap($where['column']).' is null';\n }", "protected function whereNotNull(Builder $query, array $where)\n {\n return $this->wrap($where['column']) . ' is not null';\n }", "public function testWhereNotEqualsNull()\n {\n $query = (new WhereBuilder($this->mockConnection))->where('field', '!=', null);\n $array = $query->toArray();\n\n $this->assertInstanceOf(WhereBuilder::class, $query);\n $this->assertEquals([\n 'where' => [\n [\n 'column' => 'field',\n 'operator' => 'is not',\n 'value' => 'NULL',\n 'boolean' => 'and',\n ]\n ]\n ], $array);\n\n $query = (new WhereBuilder($this->mockConnection))->where('field', '<>', null);\n $array = $query->toArray();\n\n $this->assertInstanceOf(WhereBuilder::class, $query);\n $this->assertEquals([\n 'where' => [\n [\n 'column' => 'field',\n 'operator' => 'is not',\n 'value' => 'NULL',\n 'boolean' => 'and',\n ]\n ]\n ], $array);\n }", "public function fieldCondition($field, $column = NULL, $value = NULL, $operator = NULL, $delta_group = NULL, $language_group = NULL) {\n $this->invokeEntityFieldQuery('fieldCondition', array($field, $column, $value, $operator, $delta_group, $language_group));\n return $this;\n }" ]
[ "0.7127565", "0.61121035", "0.59569556", "0.5917542", "0.5905032", "0.58895427", "0.5878509", "0.5789669", "0.5731488", "0.57148075", "0.56641495", "0.5654133", "0.5649552", "0.56284004", "0.5625691", "0.56141627", "0.56012565", "0.558496", "0.5424437", "0.5379684", "0.53490376", "0.53435785", "0.5334311", "0.53274316", "0.5297083", "0.52841073", "0.52705306", "0.5217614", "0.519409", "0.5191038" ]
0.6621382
1
Fetch the correctly formatted internal encryption algorithm method name.
abstract protected function fetchAlgorithmMethodName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAlgorithm() : string\n {\n return self::ALGORITHM;\n }", "public function getAlgorithm(): string\n {\n return $this->getHeaderClaim('alg');\n }", "function mcrypt_enc_get_algorithms_name($td)\n{\n}", "abstract public function getAlgorithmType(): string;", "final protected static function getMethod(): string\n {\n return Application::getConfig('application')->getArrayItem('security', 'openssl_default_method') ?? self::DEFAULT_METHOD;\n }", "public function getMethod() {\n\t\tif (isset($_GET[$this->config->get('methodParam')]))\n\t\t\t$method = urldecode($_GET[$this->config->get('methodParam')]);\n\t\telse\n\t\t\t$method = $this->config->get('defaultMethod');\n\t\t\n\t\treturn strtolower($method);\n\t}", "protected function algorithm(): string\r\n {\r\n return PASSWORD_ARGON2ID;\r\n }", "public function getAlgorithm()\n {\n return $this->algorithm;\n }", "public function getAlgorithm()\n {\n return $this->algorithm;\n }", "private function getHashAlgorithm(string $algorithm) : string\n {\n switch ($algorithm) {\n case Algorithms::SHA256:\n return 'sha256';\n case Algorithms::SHA384:\n return 'sha384';\n case Algorithms::SHA512:\n return 'sha512';\n default:\n throw new InvalidArgumentException(\"Algorithm \\\"$algorithm\\\" is not a hash algorithm\");\n }\n }", "public static function getCamelCaseEncryption() {\n return ucfirst(strtolower(IPlayerConfiguration::CRYPTOGRAPHY_ALGORITHM_NAME . IPlayerConfiguration::CRYPTOGRAPHY_ALGORITHM_VERSION));\n }", "public function getAlgorithm()\n {\n return $this->_algorithm;\n }", "public function method() {\n\t\treturn strtoupper($this->getMethod());\n\t}", "public function getInputMethod()\n {\n global $db, $langs;\n\n if ($this->methode_commande_id > 0)\n {\n $sql = \"SELECT rowid, code, libelle as label\";\n $sql.= \" FROM \".MAIN_DB_PREFIX.'c_input_method';\n $sql.= \" WHERE active=1 AND rowid = \".$db->escape($this->methode_commande_id);\n\n $resql = $db->query($sql);\n if ($resql)\n {\n if ($db->num_rows($query))\n {\n $obj = $db->fetch_object($query);\n\n $string = $langs->trans($obj->code);\n if ($string == $obj->code)\n {\n $string = $obj->label != '-' ? $obj->label : '';\n }\n return $string;\n }\n }\n else dol_print_error($db);\n }\n\n return '';\n }", "public function getMethodName() {\r\n\t\treturn($this->method_name);\r\n\t}", "public function getSignAlgorithm() : string\n {\n return $this->signAlgorithm;\n }", "public function getMethodName()\n {\n return PhandArr::last(explode('@', $this->getMethodInvokerName()));\n }", "abstract protected function getMethodName();", "abstract protected static function getHashAlgorithm() : string;", "protected function getHashMethod()\r\n {\r\n return $this->processor_data['processor_params']['hash_method'];\r\n }", "public function getCrypterSuffix() : string\n {\n return $this->shouldBeEncrypted() ? '.' . $this->crypter->getSuffix() : '';\n }", "public function getAlgorithm() {\n $signer = $this->header->getSigner();\n if ($signer !== false) {\n return $signer->getAlgorithm();\n }\n return false;\n }", "public static function getAlgo()\n {\n return 'HS256';\n }", "public static function getAlgo()\n {\n return 'HS256';\n }", "protected function getAlgorithm()\r\n {\r\n return 'SHA256';\r\n }", "public function getMethodName();", "public function getMethodName();", "public function getMethodName();", "private function getOpenSslDigestAlgo(int $algo): string\n {\n switch ($algo) {\n case OPENSSL_ALGO_SHA1:\n return 'sha1';\n case OPENSSL_ALGO_SHA224:\n return 'sha224';\n case OPENSSL_ALGO_SHA256:\n return 'sha256';\n case OPENSSL_ALGO_SHA384:\n return 'sha384';\n case OPENSSL_ALGO_SHA512:\n return 'sha512';\n default:\n throw new XmlSignatureValidatorException(\n \"Cannot verify: Unsupported Algorithm <$algo>\"\n );\n }\n }", "protected function getHashAlgo()\n {\n return self::INTERNAL_ALGORITHM;\n }" ]
[ "0.7152099", "0.70413315", "0.64654076", "0.62949866", "0.6262322", "0.6220159", "0.61349803", "0.6116348", "0.6116348", "0.60968924", "0.60564005", "0.60387033", "0.6007145", "0.5967294", "0.5890867", "0.5862219", "0.5857976", "0.58487624", "0.58473474", "0.58312756", "0.58222777", "0.580053", "0.57962966", "0.57962966", "0.5795744", "0.57892936", "0.57892936", "0.57892936", "0.57764447", "0.5753986" ]
0.7499706
0
Internal method for the validation of plain data used at encryption operations.
abstract protected function validatePlainDataForEncryption($plainData);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function validatePlainData($plainData)\n {\n if (!is_string($plainData)) {\n throw new \\InvalidArgumentException(\"The data for encryption must be a string or a binary string.\");\n } elseif ($this->useChunks === false) {\n $chunkSize = (int)ceil(static::KEY_SIZE / 8) - $this->getPaddingReservedSize();\n\n if (strlen($plainData) > $chunkSize) {\n throw new \\InvalidArgumentException(\n \"The data for encryption must be less or equal of $chunkSize bytes. Another option is \" .\n \"to allow chunk processing via the `enableChunkProcessing` method, which is not recommended.\"\n );\n }\n }\n }", "abstract protected function validateCipherDataForDecryption($cipherData);", "public function testValidationCaseForNonStringInputDataPassedForEncryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::encryptData('', ['wrong']);\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::encryptData('', ['wrong']);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "abstract public function validateData();", "public function validate(array $data) : bool\n {\n // If we dont have all the required parts for decryption exit.\n if (! isset( $data['iv'], $data['data'], $data['mac'])) {\n return false;\n }\n\n // If the extracted iv is invalid exit.\n $iv = base64_decode($data['iv']);\n\n if (strlen( $iv ) !== SODIUM_CRYPTO_SECRETBOX_NONCEBYTES) {\n return false;\n }\n\n return hash_equals($this->hash(base64_decode($data['data']), $iv), $data['mac']);\n }", "abstract public function validateData($data);", "public function testValidationCaseForNonStringSecretKeyPassedForEncryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::encryptData(['wrong'], '');\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::encryptData(['wrong'], '');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "function isDataValid() \n {\n return true;\n }", "function validate_password($plain, $encrypted) {\n if ($plain != \"\" && $encrypted != \"\") {\n// split apart the hash / salt\n $stack = explode(':', $encrypted);\n\n if (sizeof($stack) != 2) return false;\n\n if (md5($stack[1] . $plain) == $stack[0]) {\n return true;\n }\n }\n\n return false;\n }", "public function testValidationCaseForNonStringInputDataPassedForDecryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::decryptData('', ['wrong']);\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::decryptData('', ['wrong']);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "abstract protected function validate($data);", "private function invalidPayload($data)\n {\n return ! is_array($data) || ! isset($data['iv']) || ! isset($data['str']) || ! isset($data['mac']);\n }", "function validate_password($plain, $encrypted) {\n if (!is_null($plain) && !is_null($encrypted)) {\n // split apart the hash / salt\n $stack = explode(':', $encrypted);\n\n if (sizeof($stack) != 2)\n return false;\n\n if (md5($stack[1] . $plain) == $stack[0]) {\n return true;\n }\n }\n\n return false;\n }", "public function isDataValid(): bool;", "private function validateInputParameters($data)\n {\n }", "protected function validateChecksum() {\n\t}", "abstract public function isValid($data);", "public function testValidationCaseForSettingWrongFormattedStringForPublicKey()\n {\n $protocol = $this->getCryptographicProtocolForTesting();\n\n $exchangeInformation = $protocol->generateExchangeRequestInformation();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $protocol->computeSharedSecret('яяяя', $exchangeInformation->private);\n } else {\n $hasThrown = null;\n\n try {\n $protocol->computeSharedSecret('яяяя', $exchangeInformation->private);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "private function _validData($data){\n\t\t$columnsLen = array(\n\t\t\t\t\t\t\t'nro_pedido' => 6,\n\t\t\t\t\t\t\t'id_factura_pagos' => 1,\n\t\t\t\t\t\t\t'valor' => 1,\n\t\t\t\t\t\t\t'concepto' => 1,\n\t\t\t\t\t\t\t'fecha_inicio' => 0,\n\t\t\t\t\t\t\t'fecha_fin' => 0,\n\t\t\t\t\t\t\t'id_user' => 1\n\t\t);\n\t\treturn $this->_checkColumnsData($columnsLen, $data);\n\t}", "public function testPlainPassword()\n {\n $user = new User();\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_GROUP_PLAIN_PASSWORD]);\n Assert::assertEquals('plainPassword', $constraintViolationList->get(0)->getPropertyPath());\n\n $user->setPlainPassword('dd');\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_GROUP_PLAIN_PASSWORD]);\n Assert::assertEquals('plainPassword', $constraintViolationList->get(0)->getPropertyPath());\n\n\n $user->setPlainPassword($this->createString(128));\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_GROUP_PLAIN_PASSWORD]);\n Assert::assertEquals('plainPassword', $constraintViolationList->get(0)->getPropertyPath());\n\n }", "public function testValidationCaseForNonStringSecretKeyPassedForDecryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::decryptData(['wrong'], '');\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::decryptData(['wrong'], '');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "abstract public function valid();", "public function validateData($data): void;", "public function encryptData($plainData)\n {\n $this->checkIfThePublicKeyIsSet();\n $this->validatePlainData($plainData);\n\n $publicKeyResource = openssl_pkey_get_public(base64_decode($this->publicKey));\n\n // @codeCoverageIgnoreStart\n if ($publicKeyResource === false) {\n throw new \\RuntimeException(\n 'Failed to use the current public key, probably because of ' .\n 'a misconfigured OpenSSL library or an invalid key.'\n );\n }\n // @codeCoverageIgnoreEnd\n\n $chunkSize = (int)ceil(static::KEY_SIZE / 8) - $this->getPaddingReservedSize();\n $needsOnePass = ($plainData === '');\n $cipherData = '';\n\n while ($plainData || $needsOnePass) {\n $dataChunk = substr($plainData, 0, $chunkSize);\n $plainData = substr($plainData, $chunkSize);\n $encryptedChunk = '';\n\n if (!openssl_public_encrypt($dataChunk, $encryptedChunk, $publicKeyResource, $this->padding)) {\n throw new \\InvalidArgumentException('The data encryption failed because of a wrong format');\n }\n\n $cipherData .= $encryptedChunk;\n $needsOnePass = false;\n }\n\n // Free the public key (resource cleanup)\n @openssl_free_key($publicKeyResource);\n $publicKeyResource = null;\n\n return $this->changeOutputFormat($cipherData, true);\n }", "protected function _validate() {\n\t}", "public function valid()\n {\n\n if (strlen($this->container['virtual_operator']) > 60) {\n return false;\n }\n if (strlen($this->container['event_type']) > 100) {\n return false;\n }\n if (strlen($this->container['result_status']) > 100) {\n return false;\n }\n if (strlen($this->container['username']) > 100) {\n return false;\n }\n if (strlen($this->container['property_value']) > 450) {\n return false;\n }\n return true;\n }", "private function validate_input() {\n\t\t$fields = array_merge( array( $this->range_field ), $this->key_fields, $this->checksum_fields );\n\n\t\t$this->validate_fields( $fields );\n\t\t$this->validate_fields_against_table( $fields );\n\t}", "public function validate()\n {\n // generate Token String\n $idTokenString = $this->getTokenString($this->_key);\n return ($idTokenString == $this->_tokenString);\n }" ]
[ "0.7045691", "0.6626759", "0.6406262", "0.6373728", "0.6133701", "0.60577077", "0.6043969", "0.6041955", "0.6041955", "0.5992711", "0.5856533", "0.58358836", "0.5796604", "0.5782164", "0.5779227", "0.57707155", "0.5724287", "0.5719811", "0.565119", "0.56397414", "0.5616948", "0.56120515", "0.56104434", "0.5531062", "0.5508429", "0.5490124", "0.5488138", "0.54757035", "0.5470695", "0.5463613" ]
0.8719335
0
Internal method for the validation of cipher data used at decryption operations.
abstract protected function validateCipherDataForDecryption($cipherData);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function validatePlainDataForEncryption($plainData);", "public function testValidationCaseForNonStringInputDataPassedForDecryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::decryptData('', ['wrong']);\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::decryptData('', ['wrong']);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testValidationCaseForNonStringSecretKeyPassedForDecryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::decryptData(['wrong'], '');\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::decryptData(['wrong'], '');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function validate(array $data) : bool\n {\n // If we dont have all the required parts for decryption exit.\n if (! isset( $data['iv'], $data['data'], $data['mac'])) {\n return false;\n }\n\n // If the extracted iv is invalid exit.\n $iv = base64_decode($data['iv']);\n\n if (strlen( $iv ) !== SODIUM_CRYPTO_SECRETBOX_NONCEBYTES) {\n return false;\n }\n\n return hash_equals($this->hash(base64_decode($data['data']), $iv), $data['mac']);\n }", "public function testValidationCaseForNonStringInputDataPassedForEncryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::encryptData('', ['wrong']);\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::encryptData('', ['wrong']);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testValidationCaseForNonStringSecretKeyPassedForEncryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::encryptData(['wrong'], '');\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::encryptData(['wrong'], '');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "abstract public function validateData();", "protected function validateCipherOrSignatureData($cipherOrSignatureData)\n {\n if (!is_string($cipherOrSignatureData)) {\n throw new \\InvalidArgumentException(\"The data for decryption must be a string or a binary string.\");\n } elseif ($cipherOrSignatureData === '') {\n throw new \\InvalidArgumentException(\"The string is empty and there is nothing to decrypt from it.\");\n }\n\n $chunkSize = (int)ceil(static::KEY_SIZE / 8);\n $rawDataSize = strlen($this->changeOutputFormat($cipherOrSignatureData, false));\n\n if ($this->useChunks === false && $rawDataSize > $chunkSize) {\n throw new \\InvalidArgumentException(\n \"The data for decryption must be less or equal of $chunkSize bytes. Another option is \" .\n \"to allow chunk processing via the `enableChunkProcessing` method, which is not recommended.\"\n );\n } elseif ($rawDataSize % $chunkSize !== 0) {\n throw new \\InvalidArgumentException(\n \"The data length for decryption must dividable by $chunkSize byte blocks.\"\n );\n }\n }", "abstract public function decrypt($data);", "private function invalidPayload($data)\n {\n return ! is_array($data) || ! isset($data['iv']) || ! isset($data['str']) || ! isset($data['mac']);\n }", "function isDataValid() \n {\n return true;\n }", "abstract public function validateData($data);", "protected function _decrypt() {}", "protected function _decrypt() {}", "private function validateInputParameters($data)\n {\n }", "private function _validData($data){\n\t\t$columnsLen = array(\n\t\t\t\t\t\t\t'nro_pedido' => 6,\n\t\t\t\t\t\t\t'id_factura_pagos' => 1,\n\t\t\t\t\t\t\t'valor' => 1,\n\t\t\t\t\t\t\t'concepto' => 1,\n\t\t\t\t\t\t\t'fecha_inicio' => 0,\n\t\t\t\t\t\t\t'fecha_fin' => 0,\n\t\t\t\t\t\t\t'id_user' => 1\n\t\t);\n\t\treturn $this->_checkColumnsData($columnsLen, $data);\n\t}", "protected function validatePlainData($plainData)\n {\n if (!is_string($plainData)) {\n throw new \\InvalidArgumentException(\"The data for encryption must be a string or a binary string.\");\n } elseif ($this->useChunks === false) {\n $chunkSize = (int)ceil(static::KEY_SIZE / 8) - $this->getPaddingReservedSize();\n\n if (strlen($plainData) > $chunkSize) {\n throw new \\InvalidArgumentException(\n \"The data for encryption must be less or equal of $chunkSize bytes. Another option is \" .\n \"to allow chunk processing via the `enableChunkProcessing` method, which is not recommended.\"\n );\n }\n }\n }", "public function valid()\n {\n return $this->key() < $this->filesize;\n }", "private function validateLicenseData()\n {\n\n // error_log('LicenseEmail : '.print_r($this->getLicenseEmail(), 1));\n // error_log('LicenseProduct : '.print_r($this->getLicenseProduct(), 1));\n // error_log('LicenseSecretKey : '.print_r($this->getLicenseSecretKey(), 1));\n }", "public function DataIsValid()\n {\n $bDataIsValid = parent::DataIsValid();\n if ($this->HasContent() && $bDataIsValid) {\n if (intval($this->data) < 12 && intval($this->data) >= -11) {\n $bDataIsValid = true;\n } else {\n $bDataIsValid = false;\n $oMessageManager = TCMSMessageManager::GetInstance();\n $sConsumerName = TCMSTableEditorManager::MESSAGE_MANAGER_CONSUMER;\n $sFieldTitle = $this->oDefinition->GetName();\n $oMessageManager->AddMessage($sConsumerName, 'TABLEEDITOR_FIELD_TIMEZONE_NOT_VALID', array('sFieldName' => $this->name, 'sFieldTitle' => $sFieldTitle));\n }\n }\n\n return $bDataIsValid;\n }", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "protected function validateChecksum() {\n\t}", "abstract protected function validate($data);", "public function valid()\n {\n\n if (strlen($this->container['bookingReferenceNumber']) > 15) {\n return false;\n }\n if (strlen($this->container['carrierName']) > 15) {\n return false;\n }\n if (strlen($this->container['ticketNumber']) > 15) {\n return false;\n }\n if (strlen($this->container['checkDigit']) > 1) {\n return false;\n }\n if (strlen($this->container['extendedPaymentCode']) > 3) {\n return false;\n }\n if (strlen($this->container['passengerName']) > 42) {\n return false;\n }\n if (strlen($this->container['customerCode']) > 40) {\n return false;\n }\n if (strlen($this->container['documentType']) > 1) {\n return false;\n }\n if (strlen($this->container['documentNumber']) > 14) {\n return false;\n }\n if (strlen($this->container['invoiceNumber']) > 25) {\n return false;\n }\n if (strlen($this->container['additionalCharges']) > 20) {\n return false;\n }\n if (strlen($this->container['totalFeeAmount']) > 12) {\n return false;\n }\n if (strlen($this->container['clearingSequence']) > 2) {\n return false;\n }\n if (strlen($this->container['clearingCount']) > 2) {\n return false;\n }\n if (strlen($this->container['totalClearingAmount']) > 20) {\n return false;\n }\n if (strlen($this->container['reservationSystemCode']) > 4) {\n return false;\n }\n if (strlen($this->container['processIdentifier']) > 3) {\n return false;\n }\n if (strlen($this->container['ticketIssueDate']) > 8) {\n return false;\n }\n if (strlen($this->container['originalTicketNumber']) > 14) {\n return false;\n }\n if (strlen($this->container['purchaseType']) > 3) {\n return false;\n }\n if (strlen($this->container['creditReasonIndicator']) > 1) {\n return false;\n }\n if (strlen($this->container['ticketChangeIndicator']) > 1) {\n return false;\n }\n if (strlen($this->container['planNumber']) > 1) {\n return false;\n }\n if (strlen($this->container['arrivalDate']) > 8) {\n return false;\n }\n if (strlen($this->container['restrictedTicketDesciption']) > 20) {\n return false;\n }\n if (strlen($this->container['exchangeTicketAmount']) > 12) {\n return false;\n }\n if (strlen($this->container['exchangeTicketFeeAmount']) > 12) {\n return false;\n }\n if (strlen($this->container['reservationType']) > 32) {\n return false;\n }\n if (strlen($this->container['boardingFeeAmount']) > 12) {\n return false;\n }\n return true;\n }", "abstract public function isValid($data);", "public function isDataValid(): bool;", "function decryptData($data, $key) {\r\n $chiper = \"des-ede3\"; //Algorthim used to decrypt\r\n $data = $this->hex2ByteArray($data);\r\n $data = $this->byteArray2String($data);\r\n $data = base64_encode($data);\r\n $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($chiper));\r\n $decrypted = openssl_decrypt($data, $chiper, $key, OPENSSL_ZERO_PADDING,$iv);\r\n return $decrypted;\r\n}", "function ValidateData()\n\t\t{\n\t\t\t$theValidator = new CValidator();\n\t\t\tif(!$this->arrValidator || !is_array($this->arrValidator) )\n\t\t\t{\n\t\t\t\t$this->arrValidator = array();\n\t\t\t}\n\t\t\tforeach($this->arrValidator as $key=>$value)\n\t\t\t{\n\t\t\t\tif($this->$key == '')\n\t\t\t\t{\n\t\t\t\t\t// Kiem tra xem co phai bat buoc khong?\n\t\t\t\t\tif(isset($this->arrRequired[$key]) && ($this->arrRequired[$key] == 1))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!$theValidator->CheckPatt($value, $this->$key))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn(true);\n\t\t}", "public function validate()\n {\n // generate Token String\n $idTokenString = $this->getTokenString($this->_key);\n return ($idTokenString == $this->_tokenString);\n }" ]
[ "0.7728111", "0.662747", "0.65892667", "0.6566636", "0.632465", "0.6242262", "0.6176424", "0.6146964", "0.6042639", "0.5946525", "0.5943229", "0.59191275", "0.5764247", "0.5764247", "0.57420397", "0.5724901", "0.5697322", "0.56938076", "0.5684154", "0.56604636", "0.565735", "0.565735", "0.5630979", "0.56153405", "0.55900276", "0.55602425", "0.553551", "0.55254644", "0.5516808", "0.5502485" ]
0.8284532
0
This method is responsible for validating the values passed to the setPersonal_Info_Data method This method is willingly generated in order to preserve the oneline inline validation within the setPersonal_Info_Data method
public static function validatePersonal_Info_DataForArrayConstraintsFromSetPersonal_Info_Data(array $values = array()) { $message = ''; $invalidValues = []; foreach ($values as $employee_DataTypePersonal_Info_DataItem) { // validation for constraint: itemType if (!$employee_DataTypePersonal_Info_DataItem instanceof \WorkdayWsdl\\StructType\Personal_Info_DataType) { $invalidValues[] = is_object($employee_DataTypePersonal_Info_DataItem) ? get_class($employee_DataTypePersonal_Info_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypePersonal_Info_DataItem), var_export($employee_DataTypePersonal_Info_DataItem, true)); } } if (!empty($invalidValues)) { $message = sprintf('The Personal_Info_Data property can only contain items of type \WorkdayWsdl\\StructType\Personal_Info_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues))); } unset($invalidValues); return $message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function validateData();", "public function sanitiseData(): void\n {\n $this->firstLine = self::sanitiseString($this->firstLine);\n self::validateExistsAndLength($this->firstLine, 1000);\n $this->secondLine = self::sanitiseString($this->secondLine);\n self::validateExistsAndLength($this->secondLine, 1000);\n $this->town = self::sanitiseString($this->town);\n self::validateExistsAndLength($this->town, 255);\n $this->postcode = self::sanitiseString($this->postcode);\n self::validateExistsAndLength($this->postcode, 10);\n $this->county = self::sanitiseString($this->county);\n self::validateExistsAndLength($this->county, 255);\n $this->country = self::sanitiseString($this->country);\n self::validateExistsAndLength($this->country, 255);\n }", "function personal_info() {\n if (!$this->session->userdata('logged_in')) {\n redirect('logout');\n }\n\n $data1 = $this->show_User_data();\n $data4 = $this->applifinan_data();\n $data2 = $this->show_user_history();\n $data3 = $this->referee_spon_data();\n $data = $data2 + $data1 + $data3 + $data4;\n $data['active2'] = TRUE;\n\n $this->form_validation->set_rules('surname', 'surname', 'required|max_length[20]|alpha|xss_clean');\n $this->form_validation->set_rules('other_name', 'Other name', 'required|max_length[40]|alpha|xss_clean');\n $this->form_validation->set_rules('title', 'title', 'required|max_length[10]|xss_clean');\n $this->form_validation->set_rules('datebirth', 'Date of birth', 'trim|required|exact_length[10]|xss_clean');\n $this->form_validation->set_rules('disab', 'disable', 'required|max_length[20]|xss_clean');\n $this->form_validation->set_rules('perm_address', 'Permanet Address', 'required|max_length[30]|xss_clean');\n $this->form_validation->set_rules('landline', 'landline', 'trim|exact_length[10]|numeric|xss_clean|callback_landline_check');\n $this->form_validation->set_rules('mobile', 'mobile', 'required|exact_length[10]|numeric|xss_clean');\n $this->form_validation->set_rules('fax', 'fax', 'min_length[14]|max_length[16]|alpha_dash|xss_clean|callback_fax_check');\n $this->form_validation->set_rules('email', 'email', 'required|max_length[40]|valid_email|xss_clean');\n $this->form_validation->set_rules('coun_birth', 'country', 'required|max_length[80]|xss_clean');\n $this->form_validation->set_rules('nation', 'nationality', 'required|max_length[40]|xss_clean');\n $this->form_validation->run();\n\n if (isset($_POST['savcont'])) {\n $datebirth= $this->input->post('datebirth');\n if ($this->form_validation->run() == FALSE || substr($datebirth, 6)>= date('Y')) {\n $data['error']='<p>Your date of birth cant be that day please try again.</p>';\n $this->load->view('application/capplication', $data);\n } else {\n\n $data['active3'] = TRUE;\n unset($data['active2']);\n $this->load->model('Application_form');\n Application_form::insert_other_info($datebirth);\n $this->load->view('application/capplication', $data);\n }\n } elseif (isset($_POST['save'])) {\n $datebirth= $this->input->post('datebirth');\n if($this->form_validation->run() == FALSE ||substr($datebirth, 6) >= date('Y')){\n $data['error']='<p>Your date of birth cant be that day please try again.</p>';\n $this->load->view('application/capplication', $data); \n } else {\n $this->load->model('Application_form');\n Application_form::insert_other_info($datebirth);\n $this->load->view('application/capplication', $data);\n }\n } elseif(isset($_POST['back'])){\n $data['active1'] = TRUE;\n unset($data['active2']);\n $this->load->view('application/capplication', $data);\n }else {\n $this->load->view('application/capplication', $data);\n }\n }", "protected function validate_data_fields(){\n\t\tif(empty($this->RESPONSE)){throw new Exception(\"Response field not found\", 5);}\n\t\t\n\t\t// The remote IP address is also required\n\t\tif($this->validate_ip($this->REMOTE_ADDRESS)){throw new Exception(\"Renote IP address not set correctly\", 6);}\n\t}", "function isDataValid() \n {\n return true;\n }", "function validation($data, $files) {\n $errors = parent::validation($data, $files);\n \n if(empty($data['ukprn'])) {\n $errors['ukprn'] = get_string('error_missing_school_name', 'enrol_ukfilmnet');\n }\n if($data['contact_email'] && strpos( $data['contact_email'], '@') === false) {\n $errors['contact_email'] = get_string('error_invalid_email', 'enrol_ukfilmnet');\n }\n if(!array_key_exists('school_consent_to_contact', $data)) {\n $errors['school_consent_to_contact'] = get_string('error_missing_school_consent_to_contact', 'enrol_ukfilmnet');\n }\n \n return $errors;\n }", "function ValidateData()\n\t\t{\n\t\t\t$theValidator = new CValidator();\n\t\t\tif(!$this->arrValidator || !is_array($this->arrValidator) )\n\t\t\t{\n\t\t\t\t$this->arrValidator = array();\n\t\t\t}\n\t\t\tforeach($this->arrValidator as $key=>$value)\n\t\t\t{\n\t\t\t\tif($this->$key == '')\n\t\t\t\t{\n\t\t\t\t\t// Kiem tra xem co phai bat buoc khong?\n\t\t\t\t\tif(isset($this->arrRequired[$key]) && ($this->arrRequired[$key] == 1))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!$theValidator->CheckPatt($value, $this->$key))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn(true);\n\t\t}", "private function validateData()\n {\n if (empty($this->nome)) {\n $this->errors->addMessage(\"O nome é obrigatório\");\n }\n\n if (!filter_var($this->email, FILTER_VALIDATE_EMAIL)) {\n $this->errors->addMessage(\"O e-mail é inválido\");\n }\n\n if (strlen($this->senha) < 6) {\n $this->errors->addMessage(\"A senha deve ter no minímo 6 caracteres!\");\n }\n if ($this->emailExiste($this->email, 'email')) {\n $this->errors->addMessage(\"Esse e-mail já está cadastrado\");\n }\n if ($this->emailExiste($this->usuario, 'usuario')) {\n $this->errors->addMessage(\"Esse usuário já está cadastrado\");\n }\n\n return $this->errors->hasError();\n }", "private function validateFormData() {\n\n $this->firstName = $this->generalFieldValidation($this->firstName, \"firstName\", \"First name\", 40, false);\n $this->lastName = $this->generalFieldValidation($this->lastName, \"lastName\", \"Last name\", 40, false);\n $this->email = $this->generalFieldValidation($this->email, \"email\", \"E-mail\", 60, false);\n $this->address = $this->generalFieldValidation($this->address, \"address\", \"Address\", 255);\n $this->city = $this->generalFieldValidation($this->city, \"city\", \"City\", 60);\n $this->state = $this->generalFieldValidation($this->state, \"state\", \"State\", 2);\n $this->zip = $this->generalFieldValidation($this->zip, \"zip\", \"Zip code\", 5);\n $this->phone = $this->generalFieldValidation($this->phone, \"phone\", \"Phone number\", 10, false);\n $this->notes = $this->generalFieldValidation($this->notes, \"notes\", \"Notes\", -1, false);\n if ($this->phone !== \"\") {\n if (!is_numeric($this->phone)) {\n $this->errorArray[\"phone\"] = \"Phone number may only contain digits.\";\n } else {\n if (strlen($this->phone) < 10) {\n $this->errorArray[\"phone\"] = \"Phone number must contain 10 digits.\";\n }\n }\n }\n if ($this->zip !== \"\") {\n if (!is_numeric($this->zip)) {\n $this->errorArray[\"zip\"] = \"Zip code may only contain digits.\";\n } else {\n if (strlen($this->zip) !== 5) {\n $this->errorArray[\"zip\"] = \"Five digit zip code required.\";\n }\n }\n }\n if ($this->email !== \"\") {\n if (!preg_match(\"/^\\S+@\\S+\\.\\S+$/\", $this->email)) {\n $this->errorArray[\"email\"] = \"E-mail address is not valid.\";\n }\n }\n if (count($this->errorArray) === 0) {\n $this->passedValidation = true;\n }\n }", "function validateData($array){\n\t\t$errorFlag=true;\n\t\t$currentDate = getdate(); //get current date\n\t\tif (trim($array['FName'])==''){\n\t\t\t$this->appendErrorMsg(\"First Name is required\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['LName'])==''){\n\t\t\t$this->appendErrorMsg(\"Last Name is required\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['License_No'])==''){\n\t\t\t$this->appendErrorMsg(\"License number is required\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['Birthdate'])==''){\n\t\t\t$this->appendErrorMsg(\"Birthdate cannot be blank\");\n\t\t\t$errorFlag = false;\n\t\t} else if (!preg_match(\"/^[0-9]{4,4}[-][0-1]{1,2}?[0-9]{1,2}[-][0-3]{1,2}?[0-9]{1,2}$/\", $array['Birthdate'])){\n\t\t\t$this->appendErrorMsg(\"Date should be in the format yyyy-mm-dd\");\n\t\t\t$errorFlag = false;\n\t\t} else if (getAge($array['Birthdate'])<16 || getAge($array['Birthdate'])> 100){\n\t\t\t$this->appendErrorMsg(\"Sorry, we do not provide coverage to drivers under the age of 16 or over the age of 100\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['PostalCode'])==''){\n\t\t\t$this->appendErrorMsg(\"Postal Code is required\");\n\t\t\t$errorFlag = false;\n\t\t} else if (!preg_match(\"/^[A-Za-z]{1}\\d{1}[A-Za-z]{1}\\d{1}[A-Za-z]{1}\\d{1}$/\",$array['PostalCode'])){\n\t\t\t$this->appendErrorMsg(\"Postal Code should be in the format A1B2C3\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['Phone'])==''){\n\t\t\t$this->appendErrorMsg(\"Phone number is required\");\n\t\t\t$errorFlag = false;\n\t\t} else if (!preg_match(\"/^[0-9]{10}$/\",$array['Phone'])){\n\t\t\t$this->appendErrorMsg(\"Phone number must be in the format xxx-xxx-xxxx or xxxxxxxxx\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (!preg_match(\"/^[0-9]{1,}$/\", $array['Years_Exp'])){\n\t\t\t$this->appendErrorMsg(\"Please input the number of Years of Experience\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\treturn $errorFlag;\n\t}", "protected function validationData() {\n\t\t$input = [];\n\n\t\t/**\n\t\t * Decode institute and ref_by id and merge to request input\n\t\t */\n\t\tif ( $this->has('institute_id') ) {\n\t\t\t$input['institute_id'] = GeneralHelpers::decode($this->input('institute_id'));\n\t\t}\n\n\t\tif ( $this->has('ref_by') ) {\n\t\t\t$input['ref_by'] = GeneralHelpers::decode($this->get('ref_by'));\n\t\t}\n\n\t\t$this->merge($input);\n\n\t\treturn parent::validationData(); // TODO: Change the autogenerated stub\n\t}", "private function writeDataValidity(): void\n {\n // Datavalidation collection\n $dataValidationCollection = $this->phpSheet->getDataValidationCollection();\n\n // Write data validations?\n if (!empty($dataValidationCollection)) {\n // DATAVALIDATIONS record\n $record = 0x01B2; // Record identifier\n $length = 0x0012; // Bytes to follow\n\n $grbit = 0x0000; // Prompt box at cell, no cached validity data at DV records\n $horPos = 0x00000000; // Horizontal position of prompt box, if fixed position\n $verPos = 0x00000000; // Vertical position of prompt box, if fixed position\n $objId = 0xFFFFFFFF; // Object identifier of drop down arrow object, or -1 if not visible\n\n $header = pack('vv', $record, $length);\n $data = pack('vVVVV', $grbit, $horPos, $verPos, $objId, count($dataValidationCollection));\n $this->append($header . $data);\n\n // DATAVALIDATION records\n $record = 0x01BE; // Record identifier\n\n foreach ($dataValidationCollection as $cellCoordinate => $dataValidation) {\n // options\n $options = 0x00000000;\n\n // data type\n $type = CellDataValidation::type($dataValidation);\n\n $options |= $type << 0;\n\n // error style\n $errorStyle = CellDataValidation::errorStyle($dataValidation);\n\n $options |= $errorStyle << 4;\n\n // explicit formula?\n if ($type == 0x03 && preg_match('/^\\\".*\\\"$/', $dataValidation->getFormula1())) {\n $options |= 0x01 << 7;\n }\n\n // empty cells allowed\n $options |= $dataValidation->getAllowBlank() << 8;\n\n // show drop down\n $options |= (!$dataValidation->getShowDropDown()) << 9;\n\n // show input message\n $options |= $dataValidation->getShowInputMessage() << 18;\n\n // show error message\n $options |= $dataValidation->getShowErrorMessage() << 19;\n\n // condition operator\n $operator = CellDataValidation::operator($dataValidation);\n\n $options |= $operator << 20;\n\n $data = pack('V', $options);\n\n // prompt title\n $promptTitle = $dataValidation->getPromptTitle() !== '' ?\n $dataValidation->getPromptTitle() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($promptTitle);\n\n // error title\n $errorTitle = $dataValidation->getErrorTitle() !== '' ?\n $dataValidation->getErrorTitle() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($errorTitle);\n\n // prompt text\n $prompt = $dataValidation->getPrompt() !== '' ?\n $dataValidation->getPrompt() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($prompt);\n\n // error text\n $error = $dataValidation->getError() !== '' ?\n $dataValidation->getError() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($error);\n\n // formula 1\n try {\n $formula1 = $dataValidation->getFormula1();\n if ($type == 0x03) { // list type\n $formula1 = str_replace(',', chr(0), $formula1);\n }\n $this->parser->parse($formula1);\n $formula1 = $this->parser->toReversePolish();\n $sz1 = strlen($formula1);\n } catch (PhpSpreadsheetException $e) {\n $sz1 = 0;\n $formula1 = '';\n }\n $data .= pack('vv', $sz1, 0x0000);\n $data .= $formula1;\n\n // formula 2\n try {\n $formula2 = $dataValidation->getFormula2();\n if ($formula2 === '') {\n throw new WriterException('No formula2');\n }\n $this->parser->parse($formula2);\n $formula2 = $this->parser->toReversePolish();\n $sz2 = strlen($formula2);\n } catch (PhpSpreadsheetException $e) {\n $sz2 = 0;\n $formula2 = '';\n }\n $data .= pack('vv', $sz2, 0x0000);\n $data .= $formula2;\n\n // cell range address list\n $data .= pack('v', 0x0001);\n $data .= $this->writeBIFF8CellRangeAddressFixed($cellCoordinate);\n\n $length = strlen($data);\n $header = pack('vv', $record, $length);\n\n $this->append($header . $data);\n }\n }\n }", "private function isValidProfileInformation($user_fulldata,$application){\n $validation_array = $this->getValidationArray($application);\n\n $user_reg_validation = $validation_array['users_reg'];\n $guardian_validation = $validation_array['guardian'];\n $qualifications_validation = $validation_array['qualifications'];\n $qualification_error_msg = $validation_array['qualifications']['DEGREE_ID_MSG'];\n $or_qualifications_validation = $validation_array['or_qualifications']['OR_DEGREE_ID'];\n $or_qualification_error_msg = $validation_array['or_qualifications']['OR_DEGREE_ID_MSG'];\n\n $users_reg = $user_fulldata['users_reg'];\n $guardian = $user_fulldata['guardian'];\n $qualifications = $user_fulldata['qualifications'];\n\n\n\n if($users_reg['IS_CNIC_PASS']=='P'){\n $user_reg_validation = array_merge($user_reg_validation,$validation_array['PASSPORT']);\n }else{\n $user_reg_validation = array_merge($user_reg_validation,$validation_array['CNIC']);\n }\n\n $error = \"\";\n foreach($user_reg_validation as $column=>$value){\n\n\n if(preg_match(\"/\".$value['regex'].\"/\", $users_reg[$column])){\n\n }else{\n $error.=\"<div class='text-danger'>{$value['error_msg']}</div>\";\n\n }\n }\n\n foreach($guardian_validation as $column=>$value){\n\n\n if(preg_match(\"/\".$value['regex'].\"/\", $guardian[$column])){\n\n }else{\n $error.=\"<div class='text-danger'>{$value['error_msg']}</div>\";\n }\n }\n \n foreach($qualifications as $qual){\n\n foreach($qualifications_validation['DEGREE_ID'] as $k=>$val){\n if($qual['DEGREE_ID']==$val){\n unset($qualifications_validation['DEGREE_ID'][$k]);\n unset($qualification_error_msg[$k]);\n\n break;\n }\n }\n }\n foreach ($qualification_error_msg as $error_msg){\n $error.=\"<div class='text-danger'>{$error_msg}</div>\";\n }\n\n\n if(is_array($or_qualifications_validation)){\n $bool = true;\n foreach($qualifications as $qual){\n\n foreach($or_qualifications_validation as $val){\n if($qual['DEGREE_ID']==$val){\n $bool = false;\n break;\n }\n }\n }\n\n if($bool){\n $error.=\"<div class='text-danger'>{$or_qualification_error_msg}</div>\";\n }\n\n }\n return $error;\n //prePrint($qualification_error_msg);\n\n }", "private function checkData(){\n $this->datavalidator->addValidation('article_title','req',$this->text('e10'));\n $this->datavalidator->addValidation('article_title','maxlen=250',$this->text('e11'));\n $this->datavalidator->addValidation('article_prologue','req',$this->text('e12'));\n $this->datavalidator->addValidation('article_prologue','maxlen=3000',$this->text('e13'));\n $this->datavalidator->addValidation('keywords','regexp=/^[^,\\s]{3,}(,? ?[^,\\s]{3,})*$/',$this->text('e32'));\n $this->datavalidator->addValidation('keywords','maxlen=500',$this->text('e33'));\n if($this->data['layout'] != 'g' && $this->data['layout'] != 'h'){ //if article is gallery dont need content\n $this->datavalidator->addValidation('article_content','req',$this->text('e14'));\n }\n $this->datavalidator->addValidation('id_menucategory','req',$this->text('e15'));\n $this->datavalidator->addValidation('id_menucategory','numeric',$this->text('e16'));\n $this->datavalidator->addValidation('layout','req',$this->text('e17'));\n $this->datavalidator->addValidation('layout','maxlen=1',$this->text('e18'));\n if($this->languager->getLangsCount() > 1){\n $this->datavalidator->addValidation('lang','req',$this->text('e19'));\n $this->datavalidator->addValidation('lang','numeric',$this->text('e20'));\n }\n //if user cannot publish articles check publish values\n if($_SESSION[PAGE_SESSIONID]['privileges']['articles'][2] == '1') {\n $this->datavalidator->addValidation('published','req',$this->text('e21'));\n $this->datavalidator->addValidation('published','numeric',$this->text('e22'));\n $this->datavalidator->addValidation('publish_date','req',$this->text('e23'));\n }\n $this->datavalidator->addValidation('topped','req',$this->text('e24'));\n $this->datavalidator->addValidation('topped','numeric',$this->text('e25'));\n $this->datavalidator->addValidation('homepage','req',$this->text('e30'));\n $this->datavalidator->addValidation('homepage','numeric',$this->text('e31'));\n $this->datavalidator->addValidation('showsocials','req',$this->text('e26'));\n $this->datavalidator->addValidation('showsocials','numeric',$this->text('e27'));\n \n $result = $this->datavalidator->ValidateData($this->data);\n if(!$result){\n $errors = $this->datavalidator->GetErrors();\n return array('state'=>'error','data'=> reset($errors));\n }else{\n return true;\n }\n }", "public static function validateData(): array\n {\n\n $data = self::sanitizeData();\n\n // check for name\n if (empty($data['fname'])) {\n $data['errorName'] = 'First name is blank';\n } elseif(strlen($data['fname']) < 2 || strlen($data['fname']) > 20) {\n $data['errorName'] = 'First name must be in range of 2-20 char...';\n }\n\n // check for lname\n if (empty($data['lname'])) {\n $data['errorLastName'] = 'Last name is blank';\n } elseif(strlen($data['lname']) < 2 || strlen($data['lname']) > 30) {\n $data['errorLastName'] = 'Last name must be in range of 2-30 char...';\n }\n\n // check for email\n if (empty($data['email'])) {\n $data['errorEmail'] = 'Email cannot be blank';\n }\n\n // check for gender\n if (empty($data['gender'])) {\n $data['errorGender'] = 'Gender must be selected';\n }\n\n // check for passwords\n\n if (empty($data['password']) || empty($data['cpassword'])) {\n $data['errorPassword'] = 'Password cannot be empty';\n } elseif(strlen($data['password']) < 5 || strlen($data['cpassword']) < 5) {\n $data['errorPassword'] = 'Password must be longer than 5 char...';\n }\n\n if ($data['password'] !== $data['cpassword']) {\n $data['errorPassword'] = 'Passowrd must be a same';\n } \n\n // check birtth\n if (empty($data['birthDate'])) {\n $data['errorBirth'] = 'Birth Date cannot be empty';\n }\n\n if (empty($data['profilePic'])) {\n $data['profilePic'] = '/images/profile.jpg';\n }\n\n if (empty($data['coverPic'])) {\n $data['coverPic'] = 'images/cover.png';\n }\n\n return $data;\n }", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "public function validateData(){\n\t\tif (!self::isEmailValid($this->email))\n\t\t\tthrow new Exception(\"Email address {$this->email} is not a valid email address.\");\n\n\t\tparent::validateData();\n\t}", "public function validate() {\r\n // Name - this is required\r\n if ($this->description == '') {\r\n $this->errors[] = 'Description is required';\r\n } \r\n \r\n // Category number - must be a number\r\n if (!is_numeric($this->category)) {\r\n $this->category = 0;\r\n } \r\n \r\n // Item number - must be a number\r\n if (!is_numeric($this->item)) {\r\n $this->item = 0;\r\n } \r\n }", "public function isDataValid() {\n if ($this->userExists())\n $this->_errors[] = 'username already taken';\n // username and password must match pattern\n else if (empty($this->_username) || !preg_match('/^[a-zA-Z0-9]{5,16}$/', $this->_username))\n $this->_errors[] = 'invalid username must be between 5 and 16 characters';\n else if (empty($this->_password) || !preg_match('/^[a-zA-Z0-9]{6,18}$/', $this->_password))\n $this->_errors[] = 'invalid password must be between 6 and 18 characters';\n\t\t else if (empty($this->_password) || $this->_password != $this->_password_confirm)\n $this->_errors[] = \"Password didn't match X\";\n // names must be between 2 and 22 characters\n else if (empty($this->_first_name) || !preg_match('/^[a-zA-Z0-9]{2,22}$/', $this->_first_name))\n $this->_errors[] = 'invalid first name must be between 2 and 22 characters';\n else if (empty($this->_last_name) || !preg_match('/^[a-zA-Z0-9]{2,22}$/', $this->_last_name))\n $this->_errors[] = 'invalid last name must be between 2 and 22 characters';\n //restricts day to 01-31, month to 01-12 and year to 1900-2099 (also allowing / - or . between the parts of the date) \n else if (empty($this->_dob) || !preg_match('/^(0?[1-9]|[12][0-9]|3[01])[\\/\\ ](0?[1-9]|1[0-2])[\\/\\ ](19|20)\\d{2}$/', $this->_dob))\n $this->_errors[] = 'invalid dod | must be DD/MM/YYYY format';\n else if (empty($this->_address))\n $this->_errors[] = 'invalid address';\n // checks if valid postal code\n else if (empty($this->_postcode) || !preg_match('/^(([A-PR-UW-Z]{1}[A-IK-Y]?)([0-9]?[A-HJKS-UW]?[ABEHMNPRVWXY]?|[0-9]?[0-9]?))\\s?([0-9]{1}[ABD-HJLNP-UW-Z]{2})$/', $this->_postcode))\n $this->_errors[] = 'invalid postcode | must be AA11 9AA format';\n // checks is valid email using regular expression\n else if (empty($this->_email) || !preg_match('/^[_\\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\\.)+[a-zA-Z]{2,6}$/', $this->_email))\n $this->_errors[] = 'invalid email';\n\n\n // return true or false \n return count($this->_errors) ? 0 : 1;\n }", "public function validate_fields() {\n \n\t\t\n \n\t\t}", "public function validateData(){\n return true;\n }", "private function validateCustomerInfoFields()\n {\n if (!method_exists($this, 'getCustomerInfo')) {\n throw new InvalidArgumentException(\"Please make sure to add getCustomerInfo that return an array\");\n }\n\n $fields = ['name', 'address', 'zip_code', 'city', 'state', 'country_code', 'phone', 'email'];\n\n foreach ($fields as $field) {\n if (! array_key_exists($field, $this->getCustomerInfo())) {\n throw new InvalidArgumentException(\"Please make sure to add {$field} key to the array that returned by getCustomerInfo\");\n }\n }\n }", "public function validateData(){\n if(substr($this->user_id,0,5)!=$this->office_id){\n return false;\n }\n if(in_array($this->email,$this->getEmails())){\n return false;\n }\n return true; \n }", "function validateInput()\r\n\t{\r\n\t\tif(preg_match('/^[a-zA-Z ]*$/', $this->name) != 1)\r\n\t\t{\r\n\t\t\t$this->err = true;\r\n\t\t\t$this->errMsgBeg .= \"-> Error in name $this->name. Only alphabets allowed.<br>\";\r\n\t\t}\r\n\r\n\t\tif(preg_match('/^[a-zA-Z ]*$/', $this->desg) != 1)\r\n\t\t{\r\n\t\t\t$this->err = true;\r\n\t\t\t$this->errMsgBeg .= \"-> Error in designation $this->desg. Only alphabets allowed.<br>\";\r\n\t\t}\r\n\r\n\t\tif(empty($this->addr))\r\n\t\t{\r\n\t\t\t$this->err = true;\r\n\t\t\t$this->errMsgBeg .= \"-> Error in address entered. Please fill correct address field as per gender: Office address for Male user, and Residential address for Female user.<br>\";\t\r\n\t\t}\r\n\r\n\t\tforeach($this->emails as $ele)\r\n\t\t{\r\n\t\t\tif(!filter_var($ele, FILTER_VALIDATE_EMAIL))\r\n\t\t\t{\r\n\t\t\t\t$this->err = true;\r\n\t\t\t\t$this->errMsgBeg .= \"-> Invalid email-id $ele. Enter correctly.<br>\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "protected function localValidation()\n\t\t{\n\t\t}", "public function validate_fields() {\n \n\t\t//...\n \n }", "private function validateData() {\r\n\r\n $requiredFields = array(\"v_code\" => \"Verification code not supplied\",\r\n \"psw1\" => \"Password field is empty\",\r\n \"psw2\" => \"Password field is empty\",);\r\n\r\n\r\n //0 means there is no error\r\n $error_status = \\VAL_NO_ERROR;\r\n\r\n /*\r\n Initialize error object that will be returned by this function\r\n */\r\n $error_obj = new stdClass();\r\n $error_obj->msg = \"\";\r\n $error_obj->field = \"\";\r\n $error_obj->code = 0;\r\n $error_obj->type = \\VAL_NO_ERROR;\r\n\r\n //check if required variables are defined\r\n foreach ($requiredFields as $key => $value) {\r\n $value = $this->request->request->get($key);\r\n if (empty( $value )) {\r\n $error_obj->field = $key;\r\n $error_obj->msg = $requiredFields[$key];\r\n $error_obj->type = \\VAL_FIELD_ERROR;\r\n\r\n //return after each field that is found wrong\r\n return $error_obj;\r\n }\r\n }\r\n\r\n $pass_1 = $this->request->request->get('psw1');\r\n $pass_2 = $this->request->request->get('psw2');\r\n\r\n //Check if emails match\r\n if (strcmp($pass_1, $pass_2) != 0) {\r\n $error_obj->field = \"psw2\";\r\n $error_obj->msg = \"Passwords are different\";\r\n $error_obj->type = \\VAL_FIELD_ERROR;\r\n\r\n return $error_obj;\r\n }\r\n\r\n /*\r\n Only check one password. If both passwords are thesame, we only need to check one of them.\r\n */\r\n if (!preg_match('/^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$/', $pass_1)) {\r\n $error_obj->field = \"psw1\";\r\n $error_obj->msg = \"Password must have a digit, lower and upper case charters. Min lenght is 6\";\r\n $error_obj->type = \\VAL_FIELD_ERROR;\r\n\r\n return $error_obj;\r\n }\r\n\r\n return $error_obj;\r\n }", "protected function validationData() {\n\t\t$input = [];\n\n\t\t/**\n\t\t * If source and target institute id is available in input decode it and merge with input\n\t\t */\n\t\tif ( $this->has('source_institute_id') ) {\n\t\t\t$input['source_institute_id'] = GeneralHelpers::decode($this->input('source_institute_id'));\n\t\t}\n\n\t\tif ( $this->has('target_institute_id') ) {\n\t\t\t$input['target_institute_id'] = GeneralHelpers::decode($this->input('target_institute_id'));\n\t\t}\n\n\t\t$this->merge($input);\n\n\t\treturn parent::validationData();\n\t}", "public function validateDataInvoice(): void\n {\n $this->validarDatos($this->datos, $this->getRules('fe'));\n\n $this->validarDatosArray($this->datos->arrayOtrosTributos, 'tributos');\n\n /** @phpstan-ignore-next-line */\n if (property_exists($this->datos, 'arraySubtotalesIVA')) {\n $this->validarDatosArray((array) $this->datos->arraySubtotalesIVA, 'iva');\n }\n\n $this->validarDatosArray($this->datos->comprobantesAsociados, 'comprobantesAsociados');\n\n if ($this->ws === 'wsfe') {\n if (property_exists($this->datos, 'arrayOpcionales')) {\n $this->validarDatosArray((array) $this->datos->arrayOpcionales, 'opcionales');\n }\n } elseif ($this->ws === 'wsmtxca') {\n $this->validarDatosArray($this->datos->items, 'items');\n }\n }" ]
[ "0.6391842", "0.63317466", "0.62318915", "0.6230617", "0.62305", "0.6225306", "0.62060606", "0.61750716", "0.61457795", "0.6134435", "0.61237514", "0.60112745", "0.6010478", "0.5972876", "0.5967445", "0.59263355", "0.59263355", "0.59182805", "0.59120226", "0.5875252", "0.58736956", "0.58556294", "0.58468986", "0.5845659", "0.58207", "0.5815567", "0.58119893", "0.57975364", "0.5785386", "0.5767427" ]
0.6616691
0
Add item to Personal_Info_Data value
public function addToPersonal_Info_Data(\WorkdayWsdl\\StructType\Personal_Info_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Personal_Info_DataType) { throw new \InvalidArgumentException(sprintf('The Personal_Info_Data property can only contain items of type \WorkdayWsdl\\StructType\Personal_Info_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); } $this->Personal_Info_Data[] = $item; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addItemDetails(&$item) \r\n\t{\r\n\t\t//$item->totals = KTBTrackerHelper::getUserTotals($item);\r\n\t\t$this->getUserInfo($item);\r\n\t}", "public function add_info($info)\r\n { \r\n }", "public function addToPerson_Identification_Data(\\WorkdayWsdl\\\\StructType\\Person_Identification_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Person_Identification_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Person_Identification_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Person_Identification_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Person_Identification_Data[] = $item;\n return $this;\n }", "function addItem2DB($data = null)\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $result = $_POST['itemInfo'];\n echo $this->user_model->add($result);\n }\n }", "public function addToPetInfoPref($item)\n {\n // validation for constraint: itemType\n if (!false) {\n throw new \\InvalidArgumentException(sprintf('The PetInfoPref property can only contain items of anyType, \"%s\" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);\n }\n $this->PetInfoPref[] = $item;\n return $this;\n }", "public function add_information() \r\n {}", "public function add_information() \r\n {}", "function setItemSystemFields($data, $item){\n if ($this->debug_mode)\n echo $this->ClassName . \"setItemSystemFields();\" . \"<HR>\";\n foreach ($item as $key => $value) {\n \tif($key == '_lastmodified'){\n \t\tcontinue;\n \t}\n if ((substr($key, 0, 1) == \"_\") && (! isset($data[$key]))) {\n $data[$key] = $value;\n }\n }\n if (isset($data['_lastmodified'])) {\n \tunset ($data['_lastmodified']);\n }\n }", "function addMetadataValueToItem(&$item, $md) {\n $value = $this->getMetadataValue($item, $md);\n $md->setValue($value);\n $item->addMetadata($md);\n }", "public function add($item)\n {\n $this->manuallyAddedData[] = $item;\n }", "function PreProcessItemData()\n {\n $this->Sql_Table_Column_Rename(\"Candidate\",\"Friend\");\n\n \n array_unshift($this->ItemDataPaths,\"../EventApp/System/Inscriptions\");\n\n $unitid=$this->ApplicationObj->Unit(\"ID\");\n $eventid=$this->ApplicationObj->Event(\"ID\");\n\n $this->AddDefaults[ \"Unit\" ]=$unitid;\n $this->AddFixedValues[ \"Unit\" ]=$unitid;\n $this->ItemData[ \"Unit\" ][ \"Default\" ]=$unitid;\n\n $this->AddDefaults[ \"Event\" ]=$eventid;\n $this->AddFixedValues[ \"Event\" ]=$eventid;\n $this->ItemData[ \"Event\" ][ \"Default\" ]=$eventid;\n }", "abstract public function add_item();", "function OnAfterAdd(){\n //get keyfield value\n if (intval($this->item_id) == 0)\n $data = $this->Storage->GetRecord(null, array(\n $this->key_field => \"\"));\n $this->item_id = $data[$this->key_field];\n }", "function add($itemInfo)\n {\n// if (isset($itemInfo['userid'])) {\n// $item = $this->getItemById($itemInfo['userid']);\n// } else {\n// $item = $this->getItemByNumber($itemInfo['email']);\n// }\n// if (count($item) > 0) {\n// $itemInfo['update_time'] = date(\"Y-m-d\");\n// $insert_id = $this->update($itemInfo, $item->userid);\n// } else {\n// $itemInfo['created_time'] = date(\"Y-m-d\");\n// $this->db->trans_start();\n// $this->db->insert('tbl_userinfo', $itemInfo);\n// $insert_id = $this->db->insert_id();\n// $this->db->trans_complete();\n// }\n\n $this->db->where('id', $itemInfo['id']);\n $insert_id = $this->db->update('tbl_userinfo', $itemInfo);\n\n return $insert_id;\n }", "protected function saveInfoValues() {\r\n\t\tif(is_a($this->infoValueCollection, 'tx_ptgsaconfmgm_infoValueCollection')) {\r\n\t\t\t\r\n\t\t\tif($this->tableName=='tx_ptconference_domain_model_persdata') {\r\n\t\t\t\t$persArticleUid = $this->rowUid;\r\n\t\t\t\t$relArticleUid = 0;\r\n\t\t\t} else {\r\n\t\t\t\t$persArticleUid = $this->get_persdata();\r\n\t\t\t\t$relArticleUid = $this->rowUid;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tforeach($this->infoValueCollection as $infoValue) {\r\n\t\t\t\t$infoValue->set_persdata($persArticleUid);\r\n\t\t\t\t$infoValue->set_relarticle($relArticleUid);\r\n\t\t\t\t$infoValue->save();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function writeItem($item)\n {\n $this->data[] = $item;\n }", "function addItem2DB()\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $result = $_POST['itemInfo'];\n echo $this->carousel_model->add($result);\n }\n }", "public function getPersonalInfo(){\r\n\t $this->_personalInfo;\r\n\t}", "public function add($info, $meta)\r\n {\r\n\r\n }", "public function addItem($key, $value);", "function add_info($page, $add) {\r\n \r\n $this->db->insert($page, $add);\r\n }", "public function addDatas(\\RO\\Cmd\\ItemData $value){\n return $this->_add(5, $value);\n }", "public function saveAddedFieldData($inputData) {\n\n\t\t\t$group_id = $inputData['group-id'];\n\t\t\t$type_id = $inputData['type-id'];\n\n\t\t\t$info = getRequest('data');\n\n\t\t\t$title = getArrayKey($info, 'title');\n\t\t\t$name = getArrayKey($info, 'name');\n\t\t\t$is_visible = getArrayKey($info, 'is_visible');\n\t\t\t$field_type_id = getArrayKey($info, 'field_type_id');\n\t\t\t$guide_id = getArrayKey($info, 'guide_id');\n\t\t\t$in_search = getArrayKey($info, 'in_search');\n\t\t\t$in_filter = getArrayKey($info, 'in_filter');\n\t\t\t$tip = getArrayKey($info, 'tip');\n\t\t\t$isRequired = getArrayKey($info, 'is_required');\n\t\t\t$restrictionId = getArrayKey($info, 'restriction_id');\n\t\t\t$isImportant = getArrayKey($info, 'is_important');\n\n\t\t\t$objectTypes = umiObjectTypesCollection::getInstance();\n\t\t\t$fields = umiFieldsCollection::getInstance();\n\t\t\t$fieldTypes = umiFieldTypesCollection::getInstance();\n\n\t\t\t//Check for non-unique field name\n\t\t\t$type = $objectTypes->getType($type_id);\n\t\t\tif($type instanceof umiObjectType) {\n\t\t\t\tif($type->getFieldId($name)) {\n\t\t\t\t\tthrow new publicAdminException(getLabel('error-non-unique-field-name'));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$field_type_obj = $fieldTypes->getFieldType($field_type_id);\n\t\t\t$field_data_type = $field_type_obj->getDataType();\n\n\t\t\tif($field_data_type == \"relation\" && $guide_id == 0) {\n\t\t\t\t$guide_id = self::getAutoGuideId($title);\n\t\t\t}\n\n\t\t\tif($field_data_type == \"optioned\" && $guide_id == 0) {\n\t\t\t\t$parent_guide_id = $objectTypes->getTypeIdByGUID('emarket-itemoption');\n\t\t\t\t$guide_id = self::getAutoGuideId($title, $parent_guide_id);\n\t\t\t}\n\n\t\t\t$field_id = $fields->addField($name, $title, $field_type_id, $is_visible, false, false);\n\n\t\t\t$field = $fields->getField($field_id);\n\t\t\t$field->setGuideId($guide_id);\n\t\t\t$field->setIsInSearch($in_search);\n\t\t\t$field->setIsInFilter($in_filter);\n\t\t\t$field->setTip($tip);\n\t\t\t$field->setIsRequired($isRequired);\n\t\t\t$field->setRestrictionId($restrictionId);\n\t\t\t$field->setImportanceStatus($isImportant);\n\t\t\t$field->commit();\n\n\t\t\tif($type instanceof umiObjectType) {\n\t\t\t\t$group = $type->getFieldsGroup($group_id);\n\t\t\t\tif($group instanceof umiFieldsGroup) {\n\t\t\t\t\t$group->attachField($field_id);\n\t\t\t\t\t$group_name = $group->getName();\n\n\t\t\t\t\t$childs = $objectTypes->getChildTypeIds($type_id);\n\t\t\t\t\t$sz = count($childs);\n\n\t\t\t\t\tfor($i = 0; $i < $sz; $i++) {\n\t\t\t\t\t\t$child_type_id = $childs[$i];\n\t\t\t\t\t\t$child_type = $objectTypes->getType($child_type_id);\n\n\t\t\t\t\t\tif($child_type instanceof umiObjectType) {\n\n\t\t\t\t\t\t\tif($child_type->getFieldId($name) == $field_id) continue;\n\n\t\t\t\t\t\t\t$child_group = $child_type->getFieldsGroupByName($group_name);\n\t\t\t\t\t\t\tif($child_group instanceof umiFieldsGroup) {\n\t\t\t\t\t\t\t\t$child_group->attachField($field_id, true);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$ignoreChildGroup = getRequest('ignoreChildGroup');\n\t\t\t\t\t\t\t\tif ($ignoreChildGroup) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tthrow new publicAdminException(getLabel(\"error-no-child-group\", false, $group_name, $child_type->getName()));\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 publicAdminException(getLabel(\"error-no-object-type\", false, $child_type_id));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn $field_id;\n\t\t\t\t} else {\n\t\t\t\t\tthrow new coreException(getLabel(\"error-no-fieldgroup\", false, $group_id));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new coreException(getLabel(\"error-no-object-type\", false, $type_id));\n\t\t\t}\n\t\t}", "function addItem2DB($data = null)\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $result = $_POST['itemInfo'];\n echo $this->coupon_model->add($result);\n }\n }", "function addItem2DB($data = null)\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $result = $_POST['itemInfo'];\n echo $this->order_model->add($result);\n }\n }", "public function addItem(Array $item)\n {\n $this->item[] = $item;\n }", "public function addItem($item){\n $this->items[] = $item;\n }", "public function add($item);", "public function add($item);", "private function add_info(\\StdClass $parsed, $proj) {\n $key = $this->_basic($parsed);\n $this->_basic_item($parsed, $proj, $key);\n }" ]
[ "0.6281816", "0.624835", "0.5833373", "0.5772086", "0.57477057", "0.57307374", "0.57307374", "0.5715001", "0.5685597", "0.56725395", "0.5660738", "0.5629426", "0.5616938", "0.5613185", "0.5565619", "0.55552506", "0.5544828", "0.5526423", "0.5525993", "0.5518383", "0.5500519", "0.5465077", "0.5459958", "0.5454519", "0.54487324", "0.54401237", "0.54271233", "0.5420279", "0.5420279", "0.54151237" ]
0.68782574
0
This method is responsible for validating the values passed to the setWorker_Status_Data method This method is willingly generated in order to preserve the oneline inline validation within the setWorker_Status_Data method
public static function validateWorker_Status_DataForArrayConstraintsFromSetWorker_Status_Data(array $values = array()) { $message = ''; $invalidValues = []; foreach ($values as $employee_DataTypeWorker_Status_DataItem) { // validation for constraint: itemType if (!$employee_DataTypeWorker_Status_DataItem instanceof \WorkdayWsdl\\StructType\Worker_Status_DataType) { $invalidValues[] = is_object($employee_DataTypeWorker_Status_DataItem) ? get_class($employee_DataTypeWorker_Status_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypeWorker_Status_DataItem), var_export($employee_DataTypeWorker_Status_DataItem, true)); } } if (!empty($invalidValues)) { $message = sprintf('The Worker_Status_Data property can only contain items of type \WorkdayWsdl\\StructType\Worker_Status_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues))); } unset($invalidValues); return $message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getStatus(){\n\t\t$this->valid=$this->checkDatesValidity();\n\t\tif($this->usage==\"once\" && $this->usageCount) $this->valid = false;\n\t\tif($this->usage==\"count\" && $this->usageCount>=$this->maxUsage) $this->valid = false;\n\t\tif($this->type==\"fixed\" && $this->value<=0) $this->valid = false;\n\t\tif($this->type==\"grid\" && !count($this->grid)) $this->valid = false;\n\t}", "protected function prepareForValidation() {\n\t\t$this->importStatus = [\n\t\t\tContentUserReportViewHelper::COPY_CONTENT_JOB_NOT_STARTED,\n\t\t\tContentUserReportViewHelper::COPY_CONTENT_JOB_RUNNING,\n\t\t\tContentUserReportViewHelper::COPY_CONTENT_JOB_COMPLETED,\n\t\t\tContentUserReportViewHelper::COPY_CONTENT_JOB_FAILED,\n\t\t];\n\t}", "abstract public function validateData();", "private function set_current_health_status($arr){\r\n\t\t$qno = $this->getFirstQuestionNo('current_health_status');\r\n\t\t$err=null;\r\n\t\ttry{\r\n \t\t$v=$this->vc->exists('q4',$arr,\"enum\",array(\"values\"=>array(1,2,3,4,5)),false,false);\r\n \t\t$this->data['current_health_status']['q4']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please give your opinion of your overall health\";\r\n \t\t$eob->name = \"Question \" . $qno;\r\n \t\t$err[] = $eob;\r\n \t}\r\n\r\n\t\t\t$qno += 1;\r\n \tfor($x=0;$x<=15;$x++){\r\n \t\ttry{\r\n \t\t\t$v=$this->vc->exists('q5_'.$x,$arr,\"enum\",array(\"values\"=>array(1,2,3,4,5)),false,false);\r\n \t\t\t$this->data['current_health_status']['q5_'.$x]=($v==\"\")?0:$v;\r\n \t\t}catch(ValidationException $e){\r\n \t\t\t$eb=$e->createErrorObject();\r\n \t\t\t$eb->message = \"Be sure to select an answer for all conditions\";\r\n \t\t\t$eb->name = \"Question \" . $qno;\r\n \t\t}\r\n \t}\r\n \tif (isset($eb)) {\r\n \t\t$err[] = $eb;\r\n \t}\r\n/* \t\r\n\t\t\t$qno += 1;\r\n \ttry{\r\n \t\t$v=$this->vc->exists('q6',$arr,\"enum\",array(\"values\"=>array(1,2)),false,false);\r\n \t\t$this->data['current_health_status']['q6']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please answer if you have medical condition that requires you to use your medical benefits\";\r\n \t\t$eob->name = \"Question \" . $qno;\r\n \t}\r\n*/\r\n\t\t\t$qno += 1;\r\n \ttry{\r\n \t\t$v=$this->vc->exists('q7',$arr,\"enum\",array(\"values\"=>array(1,2)),false,false);\r\n \t\t$this->data['current_health_status']['q7']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please express if you understand your medical benefits\";\r\n \t\t$eob->name = \"Question \" . $qno;\r\n \t\t$err[] = $eob;\r\n \t}\r\n/*\r\n\t\t\t$qno += 1;\r\n \ttry{\r\n \t\t$v=$this->vc->exists('q8',$arr,\"enum\",array(\"values\"=>array(1,2,3)),false,false);\r\n \t\t$this->data['current_health_status']['q8']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please answer if you get a yearly physical examination\";\r\n \t\t$eob->name = \"Question \" . $qno;\r\n \t\t$err[] = $eob;\r\n \t}\r\n*/\r\n\t\t\t$qno += 1;\r\n \ttry{\r\n \t\t$v=$this->vc->exists('q9',$arr,\"enum\",array(\"values\"=>array(1,2)),false,false);\r\n \t\t$this->data['current_health_status']['q9']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please answer whether you can care for a minor injury\";\r\n \t\t$eob->name = \"Question \" . $qno;\r\n \t\t$err[] = $eob;\r\n \t} \t\r\n \treturn ($err)?$err:false; \t\r\n }", "public function check_data()\n {\n parent::check_data();\n\n if(empty($this->build_notifications))\n {\n throw new exception('<strong>Data missing: Notifications</strong>');\n }\n\n if(empty($this->build_batch_reference))\n {\n throw new exception('<strong>Data missing: Batch References</strong>');\n }\n }", "private function __validate_bwsched() {\n if (isset($this->initial_data[\"bwsched\"])) {\n if ($this->is_firewall_schedule($this->initial_data[\"bwsched\"])) {\n $this->validated_data[\"bwsched\"] = $this->initial_data[\"bwsched\"];\n } else {\n $this->errors[] = APIResponse\\get(4150);\n }\n } else {\n $this->validated_data[\"bwsched\"] = \"none\";\n }\n }", "protected function validate_data_fields(){\n\t\tif(empty($this->RESPONSE)){throw new Exception(\"Response field not found\", 5);}\n\t\t\n\t\t// The remote IP address is also required\n\t\tif($this->validate_ip($this->REMOTE_ADDRESS)){throw new Exception(\"Renote IP address not set correctly\", 6);}\n\t}", "private function writeDataValidity(): void\n {\n // Datavalidation collection\n $dataValidationCollection = $this->phpSheet->getDataValidationCollection();\n\n // Write data validations?\n if (!empty($dataValidationCollection)) {\n // DATAVALIDATIONS record\n $record = 0x01B2; // Record identifier\n $length = 0x0012; // Bytes to follow\n\n $grbit = 0x0000; // Prompt box at cell, no cached validity data at DV records\n $horPos = 0x00000000; // Horizontal position of prompt box, if fixed position\n $verPos = 0x00000000; // Vertical position of prompt box, if fixed position\n $objId = 0xFFFFFFFF; // Object identifier of drop down arrow object, or -1 if not visible\n\n $header = pack('vv', $record, $length);\n $data = pack('vVVVV', $grbit, $horPos, $verPos, $objId, count($dataValidationCollection));\n $this->append($header . $data);\n\n // DATAVALIDATION records\n $record = 0x01BE; // Record identifier\n\n foreach ($dataValidationCollection as $cellCoordinate => $dataValidation) {\n // options\n $options = 0x00000000;\n\n // data type\n $type = CellDataValidation::type($dataValidation);\n\n $options |= $type << 0;\n\n // error style\n $errorStyle = CellDataValidation::errorStyle($dataValidation);\n\n $options |= $errorStyle << 4;\n\n // explicit formula?\n if ($type == 0x03 && preg_match('/^\\\".*\\\"$/', $dataValidation->getFormula1())) {\n $options |= 0x01 << 7;\n }\n\n // empty cells allowed\n $options |= $dataValidation->getAllowBlank() << 8;\n\n // show drop down\n $options |= (!$dataValidation->getShowDropDown()) << 9;\n\n // show input message\n $options |= $dataValidation->getShowInputMessage() << 18;\n\n // show error message\n $options |= $dataValidation->getShowErrorMessage() << 19;\n\n // condition operator\n $operator = CellDataValidation::operator($dataValidation);\n\n $options |= $operator << 20;\n\n $data = pack('V', $options);\n\n // prompt title\n $promptTitle = $dataValidation->getPromptTitle() !== '' ?\n $dataValidation->getPromptTitle() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($promptTitle);\n\n // error title\n $errorTitle = $dataValidation->getErrorTitle() !== '' ?\n $dataValidation->getErrorTitle() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($errorTitle);\n\n // prompt text\n $prompt = $dataValidation->getPrompt() !== '' ?\n $dataValidation->getPrompt() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($prompt);\n\n // error text\n $error = $dataValidation->getError() !== '' ?\n $dataValidation->getError() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($error);\n\n // formula 1\n try {\n $formula1 = $dataValidation->getFormula1();\n if ($type == 0x03) { // list type\n $formula1 = str_replace(',', chr(0), $formula1);\n }\n $this->parser->parse($formula1);\n $formula1 = $this->parser->toReversePolish();\n $sz1 = strlen($formula1);\n } catch (PhpSpreadsheetException $e) {\n $sz1 = 0;\n $formula1 = '';\n }\n $data .= pack('vv', $sz1, 0x0000);\n $data .= $formula1;\n\n // formula 2\n try {\n $formula2 = $dataValidation->getFormula2();\n if ($formula2 === '') {\n throw new WriterException('No formula2');\n }\n $this->parser->parse($formula2);\n $formula2 = $this->parser->toReversePolish();\n $sz2 = strlen($formula2);\n } catch (PhpSpreadsheetException $e) {\n $sz2 = 0;\n $formula2 = '';\n }\n $data .= pack('vv', $sz2, 0x0000);\n $data .= $formula2;\n\n // cell range address list\n $data .= pack('v', 0x0001);\n $data .= $this->writeBIFF8CellRangeAddressFixed($cellCoordinate);\n\n $length = strlen($data);\n $header = pack('vv', $record, $length);\n\n $this->append($header . $data);\n }\n }\n }", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "public function _validate()\n {\n\t\t$data = array();\n\t\t$data['error_string'] = array();\n\t\t$data['inputerror'] = array();\n\t\t$data['status'] = TRUE;\n\n\t\tif($this->input->post('status') === 'SelecteerStatus')\n\t\t{\n $data['inputerror'][] = 'status';\n $data['error_string'][] = 'Status is verplicht!';\n $data['status'] = FALSE;\n\t\t}\n\t\t\n\t\tif($this->input->post('prioriteit') === 'SelecteerPrioriteit')\n\t\t{\n\t\t\t$data['inputerror'][] = 'prioriteit';\n\t\t\t$data['error_string'][] = 'Prioriteit is verplicht!';\n\t\t\t$data['status'] = FALSE;\n\t\t}\n\n\t\tif(empty($this->input->post('Categorie')))\n\t\t{\n\t\t\t$data['inputerror'][] = 'categorie';\n\t\t\t$data['error_string'][] = 'Categorie is verplicht!';\n\t\t\t$data['status'] = FALSE;\n\t\t}\n if($this->input->post('werkman') === 'Selecteer')\n {\n $data['inputerror'][] = 'werkman';\n $data['error_string'][] = 'Werkman toewijzen is verplicht!';\n $data['status'] = FALSE;\n }\n\n\t\tif($data['status'] === FALSE)\n\t\t{\n\t\t\techo json_encode($data);\n\t\t\texit();\n\t\t}\n }", "public function checkDataSubmission() {\n\t\t$this->main('', array());\n }", "protected function _validate() {\n\t}", "public function checkValidity()\r\n {\r\n if (!parent::checkValidity())\r\n return false;\r\n\r\n if (!$this->checkUniqueCode())\r\n return false;\r\n \r\n if ($this->workflowState && strlen($this->workflowState) > 64)\r\n {\r\n $this->lastErrorMsg = _ERROR_WORKFLOWSTATE_TOO_LONG;\r\n return false;\r\n }\r\n \r\n if (trim($this->name . ' ') == '')\r\n {\r\n $this->lastErrorMsg = _ERROR_NAME_IS_MANDATORY;\r\n return false;\r\n }\r\n \r\n if (strlen($this->name) > 255)\r\n {\r\n $this->lastErrorMsg = _ERROR_NAME_TOO_LONG;\r\n return false;\r\n }\r\n \r\n if (trim($this->code . ' ') == '')\r\n {\r\n $this->lastErrorMsg = _ERROR_CODE_IS_MANDATORY;\r\n return false;\r\n }\r\n \r\n if (strlen($this->code) > 64)\r\n {\r\n $this->lastErrorMsg = _ERROR_CODE_TOO_LONG;\r\n return false;\r\n }\r\n \r\n if ($this->fromState && strlen($this->fromState) > 64)\r\n {\r\n $this->lastErrorMsg = _ERROR_CODE_TOO_LONG;\r\n return false;\r\n }\r\n \r\n if ($this->toState && strlen($this->toState) > 64)\r\n {\r\n $this->lastErrorMsg = _ERROR_CODE_TOO_LONG;\r\n return false;\r\n } \r\n \r\n return true;\r\n }", "protected function localValidation()\n\t\t{\n\t\t}", "public function rules()\n\t{\n return array(\n array('label, status_id', 'required'),\n array('label, status_id, template_name', 'safe')\n );\n\t}", "public function validate()\n {\n parent::validate();\n if ( ! $this->getRelease()\n || in_array($this->getRelease()->getState(), [\n array_search('failed', config('projects.states')),\n array_search('destroyed', config('projects.states'))\n ])\n ) {\n $this->failedValidation($this->getValidatorInstance());\n }\n }", "function validate() {\n\t\t\n\t\tif(is_array($this->value)) { // If array\n\t\t\tforeach($this->value as $k => $value){\n\t\t\t\t$this->value[$k] = $this->validate_color_rgba($value);\n\t\t\t}//foreach\n\t\t} else { // not array\n\t\t\t$this->value = $this->validate_color_rgba($this->value);\n\t\t} // END array check\n\t\t\n\t}", "public function validate_feedback_data(){\n \n // validate step 1 data.\n \n // rating should be 1-5.\n if( ! in_array($this->post_data->get('rating'), range(1, 5)) ) $this->error_msg[] = 'Rating should be 1 to 5';\n \n // title should not be blank.\n if( trim($this->post_data->get('title')) == '' ) $this->error_msg[] = 'Title should not be blank';\n \n // feedback should not be blank.\n if( trim($this->post_data->get('feedback')) == '' ) $this->error_msg[] = 'Feedback should not be blank';\n \n // recommendation should be 1 or 0.\n if( ! in_array($this->post_data->get('recommend'), range(0, 1)) ) $this->error_msg[] = 'Invalid recommendation option';\n \n \n \n // validate step 2 data.\n \n // first name should not be blank.\n if( trim($this->post_data->get('first_name')) == '' ) $this->error_msg[] = 'First name should not be blank';\n \n // last name should not be blank.\n if( trim($this->post_data->get('last_name')) == '' ) $this->error_msg[] = 'Last name should not be blank';\n \n // email should not be blank.\n if( trim($this->post_data->get('email')) == '' ) $this->error_msg[] = 'Email should not be blank';\n \n // email should be valid.\n if( ! preg_match('/^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$/', $this->post_data->get('email')) ) $this->error_msg[] = 'Email should not be valid';\n \n // city should not be blank.\n if( trim($this->post_data->get('city')) == '' ) $this->error_msg[] = 'City should not be blank';\n \n // country should be somewhere from earth.\n $country = DB::table('Country')->where('code', '=', $this->post_data->get('country'))->get();\n if( empty( $country ) ) $this->error_msg[] = 'Invalid country';\n \n // permission shoulbe be 1 or 0.\n if( ! in_array($this->post_data->get('permission'), range(0, 1)) ) $this->error_msg[] = 'Invalid permission option';\n \n \n \n // validate hidden data.\n \n $company = new \\Company\\Repositories\\DBCompany;\n $company = $company->get_company_info( Config::get('application.subdomain') );\n \n // company id should be valid.\n if( $company->companyid != $this->post_data->get('company_id') ) $this->error_msg[] = 'Invalid company id';\n \n // site id should be valid.\n if( $company->siteid != $this->post_data->get('site_id') ) $this->error_msg[] = 'Invalid site id';\n \n \n \n // return true if thre's no error, false otherwise.\n return ( empty($this->error_msg) ? true : false );\n }", "public function rules()\n {\n $rules = [\n $this->csvHeader() => sprintf('required|in:%s', $this->validActivityStatus())\n ];\n\n (!is_array(getVal($this->data, ['activity_status']))) ?: $rules[$this->csvHeader()] .= '|size:1';\n\n return $rules;\n }", "public function getStatusData()\r\n\t{\r\n\t\t$data = array(\r\n\t\t\t'source' => array(\r\n\t\t\t\t'a' => array(\r\n\t\t\t\t\t'selected' => false,\r\n\t\t\t\t\t'preferred' => false,\r\n\t\t\t\t\t'voltage' => false,\r\n\t\t\t\t\t'frequency' => false,\r\n\t\t\t\t\t'status' => false,\r\n\t\t\t\t),\r\n\t\t\t\t'b' => array(\r\n\t\t\t\t\t'selected' => false,\r\n\t\t\t\t\t'preferred' => false,\r\n\t\t\t\t\t'voltage' => false,\r\n\t\t\t\t\t'frequency' => false,\r\n\t\t\t\t\t'status' => false,\r\n\t\t\t\t),\r\n\t\t\t),\r\n\t\t\t'phaseSynchronization' => false,\r\n\t\t\t'totalLoad' => false,\r\n\t\t\t'totalPower' => false,\r\n\t\t\t'peakLoad' => false,\r\n\t\t\t'energy' => false,\r\n\t\t\t'powerSupplyStatus' => false,\r\n\t\t\t'communicationStatus' => false,\r\n\t\t);\r\n\r\n\t\t$this->hr->get('/status_update.html');\r\n\r\n\t\tif ($this->hr->result) {\r\n\t\t\t// selected source\r\n\t\t\tif (preg_match('/selected source<\\/span>\\s*<span class=\"txt\">source\\s+([a-z])/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$source = strtolower($matches[1]);\r\n\t\t\t\t$data['source'][$source]['selected'] = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// preferred source\r\n\t\t\tif (preg_match('/preferred source<\\/span>\\s*<span class=\"txt\">source\\s+([a-z])/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$source = strtolower($matches[1]);\r\n\t\t\t\t$data['source'][$source]['preferred'] = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// source voltage\r\n\t\t\tif (preg_match('/source voltage \\(a\\/b\\)<\\/span>\\s*<span class=\"txt\">([0-9\\.]+)\\s*\\/?\\s*([0-9\\.]*)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['source']['a']['voltage'] = $matches[1];\r\n\t\t\t\t$data['source']['b']['voltage'] = $matches[2];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// frequency\r\n\t\t\tif (preg_match('/source frequency \\(a\\/b\\)<\\/span>\\s*<span class=\"txt\">([0-9\\.]+)\\s*\\/?\\s*([0-9\\.]*)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['source']['a']['frequency'] = $matches[1];\r\n\t\t\t\t$data['source']['b']['frequency'] = $matches[2];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// status\r\n\t\t\tif (preg_match('/source status \\(a\\/b\\)<\\/span>\\s*<span class=\"txt\">([a-z]+)\\s*\\/?\\s*([a-z]*)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['source']['a']['status'] = ($matches[1] == 'OK') ? true : false;\r\n\t\t\t\t$data['source']['b']['status'] = ($matches[2] == 'OK') ? true : false;\r\n\t\t\t}\r\n\r\n\t\t\t// phase sync\r\n\t\t\tif (preg_match('/phase synchronization<\\/span>\\s*<span class=\"txt\">([a-z]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['phaseSynchronization'] = ($matches[1] == 'No') ? false : true;\r\n\t\t\t}\r\n\r\n\t\t\t// total load\r\n\t\t\tif (preg_match('/total\\s+load<\\/span>\\s*<span class=\"txt\">([0-9\\.]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['totalLoad'] = floatval($matches[1]);\r\n\t\t\t}\r\n\r\n\t\t\t// total power\r\n\t\t\tif (preg_match('/total\\s+power<\\/span>\\s*<span class=\"txt\">([0-9\\.]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['totalPower'] = floatval($matches[1]);\r\n\t\t\t}\r\n\r\n\t\t\t// peak load\r\n\t\t\tif (preg_match('/peak\\s+load<\\/span>\\s*<span class=\"l2b txt\">([0-9\\.]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['peakLoad'] = floatval($matches[1]);\r\n\t\t\t}\r\n\r\n\t\t\t// energy\r\n\t\t\tif (preg_match('/energy<\\/span>\\s*<span class=\"l2b txt\">([0-9\\.]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['energy'] = floatval($matches[1]);\r\n\t\t\t}\r\n\r\n\t\t\t// PS status\r\n\t\t\tif (preg_match('/power supply status<\\/span>\\s*<span class=\"txt\">([a-z]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['powerSupplyStatus'] = ($matches[1] == 'OK') ? true : false;\r\n\t\t\t}\r\n\r\n\t\t\t// comm status\r\n\t\t\tif (preg_match('/communication status<\\/span>\\s*<span class=\"txt\">([a-z]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['communicationStatus'] = ($matches[1] == 'OK') ? true : false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $data;\r\n\t}", "public function validate()\n {\n $messages = array();\n\n // ID\n if (!Validator::validateField($this->id, 'intVal')) {\n $messages[] = 'ID is invalid.';\n }\n\n // Email\n if (!Validator::validateField($this->email, 'email', array('notEmpty' => array(), 'required' => true))) {\n $messages[] = 'Email address is invalid.';\n }\n\n // Password - no need to validate as it is validated on set and isn't required for an update\n\n // First name\n if (!Validator::validateField($this->first_name, 'stringType', array(\n 'notEmpty' => array(),\n 'length' => array(1, 35),\n 'required' => true\n ))) {\n $messages[] = 'First name is required.';\n }\n\n // Last name\n if (!Validator::validateField($this->last_name, 'stringType', array(\n 'notEmpty' => array(),\n 'length' => array(1, 35),\n 'required' => true\n ))) {\n $messages[] = 'Last name is required.';\n }\n\n // Role\n if (!Validator::validateField($this->role, 'stringType', array(\n 'notEmpty' => array(),\n 'length' => array(1, 35),\n 'required' => true\n ))) {\n $messages[] = 'Role is required.';\n }\n\n // Status\n if (!Validator::validateField($this->status, 'slug', array(\n 'notEmpty' => array(),\n 'length' => array(1, 20),\n 'required' => true\n ))) {\n $messages[] = 'Status is not valid.';\n }\n\n if (!empty($messages)) {\n throw new ValidationException($messages);\n }\n }", "abstract public function runValidation();", "public function validation($data, $files) {\r\n\r\n // // Check open and close times are consistent.\r\n // if ($data['timeopen'] != 0 && $data['timeclose'] != 0 &&\r\n // $data['timeclose'] < $data['timeopen']) {\r\n // $errors['timeclose'] = get_string('closebeforeopen', 'quiz');\r\n // }\r\n\r\n // // Check that the grace period is not too short.\r\n // if ($data['overduehandling'] == 'graceperiod') {\r\n // $graceperiodmin = get_config('quiz', 'graceperiodmin');\r\n // if ($data['graceperiod'] <= $graceperiodmin) {\r\n // $errors['graceperiod'] = get_string('graceperiodtoosmall', 'quiz', format_time($graceperiodmin));\r\n // }\r\n // }\r\n\r\n // if (array_key_exists('completion', $data) && $data['completion'] == COMPLETION_TRACKING_AUTOMATIC) {\r\n // $completionpass = isset($data['completionpass']) ? $data['completionpass'] : $this->current->completionpass;\r\n\r\n // // Show an error if require passing grade was selected and the grade to pass was set to 0.\r\n // if ($completionpass && (empty($data['gradepass']) || grade_floatval($data['gradepass']) == 0)) {\r\n // if (isset($data['completionpass'])) {\r\n // $errors['completionpassgroup'] = get_string('gradetopassnotset', 'quiz');\r\n // } else {\r\n // $errors['gradepass'] = get_string('gradetopassmustbeset', 'quiz');\r\n // }\r\n // }\r\n // }\r\n\r\n // // Check the boundary value is a number or a percentage, and in range.\r\n // $i = 0;\r\n // while (!empty($data['feedbackboundaries'][$i] )) {\r\n // $boundary = trim($data['feedbackboundaries'][$i]);\r\n // if (strlen($boundary) > 0) {\r\n // if ($boundary[strlen($boundary) - 1] == '%') {\r\n // $boundary = trim(substr($boundary, 0, -1));\r\n // if (is_numeric($boundary)) {\r\n // $boundary = $boundary * $data['grade'] / 100.0;\r\n // } else {\r\n // $errors[\"feedbackboundaries[$i]\"] =\r\n // get_string('feedbackerrorboundaryformat', 'quiz', $i + 1);\r\n // }\r\n // } else if (!is_numeric($boundary)) {\r\n // $errors[\"feedbackboundaries[$i]\"] =\r\n // get_string('feedbackerrorboundaryformat', 'quiz', $i + 1);\r\n // }\r\n // }\r\n // if (is_numeric($boundary) && $boundary <= 0 || $boundary >= $data['grade'] ) {\r\n // $errors[\"feedbackboundaries[$i]\"] =\r\n // get_string('feedbackerrorboundaryoutofrange', 'quiz', $i + 1);\r\n // }\r\n // if (is_numeric($boundary) && $i > 0 &&\r\n // $boundary >= $data['feedbackboundaries'][$i - 1]) {\r\n // $errors[\"feedbackboundaries[$i]\"] =\r\n // get_string('feedbackerrororder', 'quiz', $i + 1);\r\n // }\r\n // $data['feedbackboundaries'][$i] = $boundary;\r\n // $i += 1;\r\n // }\r\n // $numboundaries = $i;\r\n\r\n // // Check there is nothing in the remaining unused fields.\r\n // if (!empty($data['feedbackboundaries'])) {\r\n // for ($i = $numboundaries; $i < count($data['feedbackboundaries']); $i += 1) {\r\n // if (!empty($data['feedbackboundaries'][$i] ) &&\r\n // trim($data['feedbackboundaries'][$i] ) != '') {\r\n // $errors[\"feedbackboundaries[$i]\"] =\r\n // get_string('feedbackerrorjunkinboundary', 'quiz', $i + 1);\r\n // }\r\n // }\r\n // }\r\n // for ($i = $numboundaries + 1; $i < count($data['feedbacktext']); $i += 1) {\r\n // if (!empty($data['feedbacktext'][$i]['text']) &&\r\n // trim($data['feedbacktext'][$i]['text'] ) != '') {\r\n // $errors[\"feedbacktext[$i]\"] =\r\n // get_string('feedbackerrorjunkinfeedback', 'quiz', $i + 1);\r\n // }\r\n // }\r\n\r\n // // If CBM is involved, don't show the warning for grade to pass being larger than the maximum grade.\r\n // if (($data['preferredbehaviour'] == 'deferredcbm') OR ($data['preferredbehaviour'] == 'immediatecbm')) {\r\n // unset($errors['gradepass']);\r\n // }\r\n // // Any other rule plugins.\r\n // $errors = quiz_access_manager::validate_settings_form_fields($errors, $data, $files, $this);\r\n\r\n // return $errors;\r\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}", "private function validateData() {\r\n\r\n $requiredFields = array(\"v_code\" => \"Verification code not supplied\",\r\n \"psw1\" => \"Password field is empty\",\r\n \"psw2\" => \"Password field is empty\",);\r\n\r\n\r\n //0 means there is no error\r\n $error_status = \\VAL_NO_ERROR;\r\n\r\n /*\r\n Initialize error object that will be returned by this function\r\n */\r\n $error_obj = new stdClass();\r\n $error_obj->msg = \"\";\r\n $error_obj->field = \"\";\r\n $error_obj->code = 0;\r\n $error_obj->type = \\VAL_NO_ERROR;\r\n\r\n //check if required variables are defined\r\n foreach ($requiredFields as $key => $value) {\r\n $value = $this->request->request->get($key);\r\n if (empty( $value )) {\r\n $error_obj->field = $key;\r\n $error_obj->msg = $requiredFields[$key];\r\n $error_obj->type = \\VAL_FIELD_ERROR;\r\n\r\n //return after each field that is found wrong\r\n return $error_obj;\r\n }\r\n }\r\n\r\n $pass_1 = $this->request->request->get('psw1');\r\n $pass_2 = $this->request->request->get('psw2');\r\n\r\n //Check if emails match\r\n if (strcmp($pass_1, $pass_2) != 0) {\r\n $error_obj->field = \"psw2\";\r\n $error_obj->msg = \"Passwords are different\";\r\n $error_obj->type = \\VAL_FIELD_ERROR;\r\n\r\n return $error_obj;\r\n }\r\n\r\n /*\r\n Only check one password. If both passwords are thesame, we only need to check one of them.\r\n */\r\n if (!preg_match('/^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$/', $pass_1)) {\r\n $error_obj->field = \"psw1\";\r\n $error_obj->msg = \"Password must have a digit, lower and upper case charters. Min lenght is 6\";\r\n $error_obj->type = \\VAL_FIELD_ERROR;\r\n\r\n return $error_obj;\r\n }\r\n\r\n return $error_obj;\r\n }", "public function validateStatus()\n {\n if (!$this->hasErrors()) {\n $user = $this->getUser();\n\n if ($user->status==User::STATUS_BLOCKED || $user->status==User::STATUS_DELETED) {\n $this->addError('password', Yii::t('app','Your account is blocked, please contact support.'));\n }\n\n if ($user->status==User::STATUS_EMAIL_VALIDATION) {\n $this->addError('password', Yii::t('app','Du hast Deine Registrierung noch nicht abgeschlossen. Prüfe Deine E-Mails, dort findest Du eine E-Mail mit dem Bestätigungslink. Bitte klicke auf diesen Link um Deine Registrierung abzuschliessen.'));\n }\n\n }\n }", "public function validate() {\r\n // Name - this is required\r\n if ($this->description == '') {\r\n $this->errors[] = 'Description is required';\r\n } \r\n \r\n // Category number - must be a number\r\n if (!is_numeric($this->category)) {\r\n $this->category = 0;\r\n } \r\n \r\n // Item number - must be a number\r\n if (!is_numeric($this->item)) {\r\n $this->item = 0;\r\n } \r\n }", "function required_validate() {\n if ($this->required) {\n if (array_key_exists('NOT_NULL', $this->condition)) \n {\n if ($this->value == '' || $this->value == NULL) {\n $this->errors->add_msj(NOT_NULL_PRE.$this->name.NOT_NULL_POS);\n }\n }\n\n if (array_key_exists('IS_INT', $this->condition)) \n {\n if (!field_is_int($this->value))\n {\n $this->errors->add_msj(IS_INT_PRE.$this->name.IS_INT_POS);\n }\n }\n\n }\n }", "public function isValid($data) {\n //Remove Commas \n $data = str_replace(\",\", \"\", $data);\n \n $data['heatLossMethod']='percent';\n \n $precision = $this->mS->masterConversionList['temperature'][1][$this->mS->selected['temperature']][4];\n $iapws = new Steam_IAPWS();\n $maxTemp = $this->mS->ceil_dec($this->mS->localize($iapws->saturatedTemperature($this->mS->standardize($data['daPressure'], 'pressure')),'temperature'),$precision); \n \n if ($data['condReturnTemp']>=$maxTemp or $data['condReturnTemp']<=$this->mS->minTemperature()){\n $this->getElement('condReturnTemp')->addValidator('between', true, array('min' => $this->mS->minTemperature(), 'max' => $maxTemp, 'inclusive' => false));\n }\n \n \n $precision = $this->mS->masterConversionList['temperature'][1][$this->mS->selected['temperature']][4];\n $iapws = new Steam_IAPWS();\n $minTemp = $this->mS->ceil_dec($this->mS->localize($iapws->saturatedTemperature($this->mS->standardize($data['highPressure'],'pressure')),'temperature'),$precision);\n if ($data['boilerTemp']<$minTemp){\n $this->getElement('boilerTemp')\n ->addValidator('greaterThan', true, array('min' => $minTemp, 'messages' => '%value% is below the boiling temperature [%min%] for boiler pressure.'));\n }\n \n \n if ($data['headerCount']<3){\n $data['turbineHpMpOn'] = null;\n $data['turbineMpLpOn'] = null;\n $data['desuperHeatHpMp']=='No';\n if ($data['mpCondReturnRate']=='') $data['mpCondReturnRate'] = 0;\n if ($data['lpCondReturnRate']=='') $data['lpCondReturnRate'] = 0;\n }\n if ($data['headerCount']<2){\n $data['turbineHpLpOn'] = null;\n $data['desuperHeatMpLp']=='No';\n }\n \n if ($data['headerCount']==3){\n if($data['desuperHeatHpMp']=='Yes'){ \n $this->getElement('desuperHeatHpMpTemp')\n ->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => $this->mS->minTemperature(), 'max' => $this->mS->maxTemperature(), 'inclusive' => true));\n }\n }\n if ($data['headerCount']>=2){\n if($data['desuperHeatMpLp']=='Yes'){ \n $this->getElement('desuperHeatMpLpTemp')\n ->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => $this->mS->minTemperature(), 'max' => $this->mS->maxTemperature(), 'inclusive' => true)); \n }\n }\n\n \n if($data['blowdownHeatX']=='Yes'){ \n $this->getElement('blowdownHeatXTemp')\n ->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('greaterThan', true, array('min' => 0, 'max' => $this->mS->maxTemperature(), 'inclusive' => true));\n }\n \n foreach(Steam_Support::steamTurbineCodes() as $turbine){\n if ($data['turbine'.$turbine.'On']==1){\n $this->getElement('turbine'.$turbine.'IsoEff')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('Between', true, array('min' => ISOEFF_MIN, 'max' => ISOEFF_MAX));\n $this->getElement('turbine'.$turbine.'GenEff')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('Between', true, array('min' => GENEFF_MIN, 'max' => GENEFF_MAX));\n \n if ($turbine=='Cond'){\n $this->getElement('turbineCondOutletPressure')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => $this->mS->minVacuum(), 'max' => $this->mS->condVacuum(), 'inclusive' => true));\n }\n \n switch($data['turbine'.$turbine.'Method']){\n case 'fixedFlow':\n $this->getElement('turbine'.$turbine.'FixedFlow')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => false)); \n break;\n case 'flowRange':\n $this->getElement('turbine'.$turbine.'MinFlow')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $data['turbine'.$turbine.'MaxFlow'])); \n \n $this->getElement('turbine'.$turbine.'MaxFlow')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => false));\n break;\n\n case 'fixedPower':\n $this->getElement('turbine'.$turbine.'FixedPower')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('greaterThan', true, array('min' => 0)); \n break;\n case 'powerRange':\n $this->getElement('turbine'.$turbine.'MinPower')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('between', true, array('min' => 0, 'max' => $data['turbine'.$turbine.'MaxPower'])); \n \n $this->getElement('turbine'.$turbine.'MaxPower')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('greaterThan', true, array('min' => 0)); \n break;\n\n case 'balanceHeader':\n break;\n }\n }\n }\n \n $this->getElement('hpSteamUsage')->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => true));\n \n $this->getElement('hpHeatLossPercent')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => HEATLOST_PERCENT_MIN, 'max' => HEATLOST_PERCENT_MAX, 'inclusive' => true));\n \n \n if ($data['headerCount']==3){\n $tmp = $this->getElement('mediumPressure')->setRequired(true)\n ->addValidator($this->isFloat,true);\n if (isset($data['highPressure'])) $tmp->addValidator('lessThan', true, array('max' => $data['highPressure'], 'messages' => 'Must be less than High Pressure.'));\n $tmp->addValidator('greaterThan', true, array('min' => $this->mS->minPressure()));\n $tmp = $this->getElement('lowPressure')->setRequired(true)\n ->addValidator($this->isFloat,true);\n if (isset($data['mediumPressure'])) $tmp->addValidator('lessThan', true, array('max' => $data['mediumPressure'], 'messages' => 'Must be less than Medium Pressure.'));\n $tmp->addValidator('greaterThan', true, array('min' => $this->mS->minPressure())); \n if (isset($data['lowPressure'])) $this->getElement('daPressure')->addValidator('lessThan', true, array('max' => $data['lowPressure'], 'messages' => 'Must be below lowest steam header pressure.'));\n \n \n $this->getElement('mpSteamUsage')->setRequired(true)\n ->addValidator($this->isFloat,true);\n $this->getElement('mpSteamUsage')->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => true)); \n \n $this->getElement('mpCondReturnRate')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => 0, 'max' => 100, 'inclusive' => true));\n \n $this->getElement('mpHeatLossPercent')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => HEATLOST_PERCENT_MIN, 'max' => HEATLOST_PERCENT_MAX, 'inclusive' => true)); \n }\n \n if ($data['headerCount']==2){\n \n $tmp = $this->getElement('lowPressure')->setRequired(true)\n ->addValidator($this->isFloat,true);\n if (isset($data['highPressure'])) $tmp->addValidator('lessThan', true, array('max' => $data['highPressure'], 'messages' => 'Must be less than High Pressure.'));\n $tmp->addValidator('greaterThan', true, array('min' => $this->mS->minPressure())); \n if (isset($data['lowPressure'])) $this->getElement('daPressure')->addValidator('lessThan', true, array('max' => $data['lowPressure'], 'messages' => 'Must be below lowest steam header pressure.'));\n \n }\n \n if ($data['headerCount']>=2){\n \n $this->getElement('lpSteamUsage')->setRequired(true)\n ->addValidator($this->isFloat,true);\n \n $this->getElement('lpSteamUsage')->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => true)); \n \n $this->getElement('lpCondReturnRate')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => 0, 'max' => 100, 'inclusive' => true));\n \n $this->getElement('lpHeatLossPercent')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => HEATLOST_PERCENT_MIN, 'max' => HEATLOST_PERCENT_MAX, 'inclusive' => true)); \n }\n \n if ($data['headerCount']==1){ \n if (isset($data['highPressure'])) $this->getElement('daPressure')->addValidator('lessThan', true, array('max' => $data['highPressure'], 'messages' => 'Must be below lowest steam header pressure.')); \n \n } \n return parent::isValid($data);\n }" ]
[ "0.63312685", "0.59636194", "0.59624165", "0.5851447", "0.580899", "0.5765033", "0.5756305", "0.5708719", "0.56713504", "0.56713504", "0.5663364", "0.56542486", "0.5636632", "0.5626314", "0.56138957", "0.5583534", "0.5575395", "0.5544729", "0.5523626", "0.5497691", "0.54857343", "0.5474844", "0.54709095", "0.5449121", "0.54457396", "0.5423642", "0.5421119", "0.54144526", "0.5407563", "0.53909737" ]
0.64021975
0
Add item to Worker_Status_Data value
public function addToWorker_Status_Data(\WorkdayWsdl\\StructType\Worker_Status_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Worker_Status_DataType) { throw new \InvalidArgumentException(sprintf('The Worker_Status_Data property can only contain items of type \WorkdayWsdl\\StructType\Worker_Status_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); } $this->Worker_Status_Data[] = $item; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addStatus($status);", "function add_status($vStatus, $index = 0) {\n\t\tif ($this->get_multiple_values()) {\n\t\t\tif (!isset($this->statuses[$index])) {\n\t\t\t\t$this->statuses[$index] = Array();\n\t\t\t}\t\n\t\t\tif (!in_array($vStatus, $this->statuses[$index])) {\n\t\t\t\tarray_push($this->statuses[$index], $vStatus);\n\t\t\t}\n\t\t} else {\n\t\t\tif (!in_array($vStatus, $this->statuses)) {\n\t\t\t\tarray_push($this->statuses, $vStatus);\n\t\t\t}\n\t\t}\n\t}", "function add() {\n if(!$this->request->isApiCall() && !$this->request->isAsyncCall()) {\n $this->httpError(HTTP_ERR_BAD_REQUEST);\n } // if\n \n $this->wireframe->print_button = false;\n \n if($this->request->isSubmitted()) {\n $status_data = $this->request->post('status');\n \n $status = new StatusUpdate();\n \n $status->setAttributes($status_data);\n $status->setCreatedById($this->logged_user->getId());\n $status->setCreatedByName($this->logged_user->getName());\n $status->setCreatedByEmail($this->logged_user->getEmail());\n \n $save = $status->save();\n if(!$save || is_error($save)) {\n if($this->request->isApiCall()) {\n $this->serveData($save);\n } else {\n $this->httpError(HTTP_ERR_OPERATION_FAILED);\n } // if\n } // if\n \n if($this->request->isApiCall()) {\n $this->serveData($status, 'message');\n } else {\n UserConfigOptions::setValue('status_update_last_visited', new DateTimeValue(), $this->logged_user);\n \n $this->smarty->assign('status_update', $status);\n print $this->smarty->fetch(get_template_path('_status_row', $this->controller_name, STATUS_MODULE));\n die();\n } // if\n } else {\n $this->httpError(HTTP_ERR_BAD_REQUEST);\n } // if\n }", "function addItemForUpdate($item) {\n $this->_update[$item->getId()] = $item;\n }", "public function addStatuses(\\google\\rpc\\Status $value){\n return $this->_add(1, $value);\n }", "public function addWorker($data){\n $result=$this->db->insert('workers',$data);\n return $result;\n }", "function cb_wc_add_status( $wc_statuses_arr ) {\n\t$new_statuses_arr = array();\n\n\t// Add new order status after payment pending.\n\tforeach ( $wc_statuses_arr as $id => $label ) {\n\t\t$new_statuses_arr[ $id ] = $label;\n\n\t\tif ( 'wc-pending' === $id ) { // after \"Payment Pending\" status.\n\t\t\t$new_statuses_arr['wc-blockchainpending'] = __( 'Blockchain Pending', 'coinbase' );\n\t\t}\n\t}\n\n\treturn $new_statuses_arr;\n}", "function statuses_saveData() {\n\n\t// Get array with new data\n\t$fields = statuses_getData();\n\t$count = sizeof($fields); // count items\n\n\t// Construct URL\n\t$url = BASEURL . \"v1/statuses?count=\" . $count . \"&token=\" . getToken(1);\n\n\t// Get existing data\n\t$response = array_reverse(doGetRequest($url));\n\n\t// Iterate through all new items and if their ID isn't found in the request with the latest data, add them\n\tfor ($i=0; $i < 50; $i++) { \n\n\t\t$newId = $fields[$i]['org_id']; // original ID of a new item\n\t\t\n\t\tif($response['code'] == 404) {\n\t\t\tdoPostRequest($url, $fields[$i]);\n\t\t}\n\t\telseif(!in_array_r($newId, $response)) {\n\t\t\tdoPostRequest($url, $fields[$i]);\n\t\t}\n\t\n\t}\n\n}", "protected function statusUpdate($data)\n {\n // DB::table('status_update')->insert(['date' => Carbon::now(),\n // 'status' => $data['status'],\n // 'booking_id' => $data['id'],\n // 'created_at' => Carbon::now()\n // ]);\n }", "public function updateStatus($data)\n {\n $systemJobModel = $this->getSystemJob();\n $json = ($systemJobModel->data) ? json_decode($systemJobModel->data, true) : [ 'log' => $this->getLog() ];\n $systemJobModel->data = json_encode(array_merge($json, $data));\n $systemJobModel->save();\n }", "private function concat_existing_queue_items($queue_status, $file_data, $stage, $migration_state_id) {\n //attempt to load queue status\n $stored_queue = $this->transfer_util->get_queue_status($stage, $migration_state_id);\n if (false !== $stored_queue) {\n $queue_status = $stored_queue;\n $queue_status['total'] += $file_data['meta']['count'];\n $queue_status['size'] += $file_data['meta']['size'];\n $queue_status['manifest'] = array_merge($file_data['meta']['manifest'], $queue_status['manifest']);\n }\n\n return $queue_status;\n }", "public function add(Xend_Response_Status_Interface $data)\n {\n array_push($this->_data, $data);\n return $this;\n }", "function PKG_addJob($client,$packageName,$priority,$params)\n{\n\tPKG_addStatusJob($client,$packageName,$priority,$params,\"waiting\");\n}", "public function run()\n {\n Status::insert($this->statusLists);\n }", "public function\tAddWorkerAtWorkshop()\n {\n if(Request::ajax()) \n {\n // Getting all post data\n $data = Input::all();\n\n try\n { \n $worker = Worker::find($data[\"worker_id\"]);\n //first checks if the worker is already doing something at this moment\n $isFree = true;\n\n foreach ($worker->workshop_level_3 as $task)\n { \n if($task->pivot->date == $data[\"date\"] && $task->pivot->isMorning == $data[\"ismorning\"])\n $isFree = false;\n }\n\n if($isFree)\n { \n $worker->workshop_level_3()->attach($data[\"workshop_id\"], ['date' => $data[\"date\"],'isMorning' => $data[\"ismorning\"]]);\n\n return response(200);\n }\n else\n {\n return response(\" Le travailleur semble déjà faire quelque chose...\" ,400);\n }\n }\n catch(\\Exception $er)\n { \n return response(\" Veuillez vérifier que le nom d'utilisateur est correct\" ,400);\n } \n }\n else\n return response($default_general_error_message,500);\n \n }", "private function updateSpoolStatus ()\n {\n\n $oAppMessage = (new AppMessage())->retrieveByPK ($this->spool_id);\n if ( is_array ($this->fileData['attachments']) )\n {\n $attachment = implode (\",\", $this->fileData['attachments']);\n $oAppMessage->setappMsgAttach ($attachment);\n }\n $oAppMessage->setappMsgstatus ($this->status);\n $oAppMessage->setappMsgsenddate (date ('Y-m-d H:i:s'));\n $oAppMessage->save ();\n }", "protected function _saveStatus()\n {\n try {\n\n /**\n * update task statuses with completion days\n */\n foreach( $this->_status as $key => $val ) {\n\n if ( in_array( $key, $this->_tasks ) ) {\n $task = Mage::getModel('jirafe_analytics/install')\n ->getCollection()\n ->addFieldToFilter( 'task', $key )\n ->getFirstItem();\n\n $task->setCompletedDt( $val );\n $task->save();\n }\n }\n\n /**\n * refresh status values in cache\n *\n */\n $this->_saveStatusToCache();\n\n return true;\n\n } catch (Exception $e) {\n Mage::helper('jirafe_analytics')->log('ERROR', 'Jirafe_Analytics_Model_Installer::_saveStatus()', $e->getMessage(), $e);\n return false;\n }\n }", "public function save() {\r\n /** probably we should add a timestamp, Item ID and stuff */\r\n $stored_data = json_encode(array($this->name, $this->status), JSON_UNESCAPED_UNICODE);\r\n $this->db_write(\"objects\", \"Item_s11n\", $stored_data);\r\n print ($stored_data);\r\n }", "public function assignStuff()\n {\n $itemId = Input::get('item_id');\n $stuffId = Input::get('job_manager');\n \n $orderItem = OrderItem::find($itemId);\n $status = $orderItem->saveAsWorking($stuffId, $this->current_user->id);\n \n if($status)\n {\n $stuff = Admin::find($stuffId);\n \n $params = [\n 'stuff' => $stuff,\n 'item' => $orderItem \n ];\n $this->sendMail('emails.orders.assignJob', $stuff->email, $stuff->full_name(), $params, 'Rock Design Notification');\n \n $result = array();\n $result['stuffName'] = $stuff->full_name();\n $result['msg'] = sprintf('The job is assigned to %s.', $stuff->full_name());\n $result['orderStatus'] = $orderItem->order->statusLang();\n \n echo json_encode($result);\n exit; \n }\n }", "protected function _updateStatus()\n {\n $this->_writeStatusFile(\n array(\n 'time' => time(),\n 'done' => ($this->_currentItemCount == $this->_totalFeedItems),\n 'count' => $this->_currentItemCount,\n 'total' => $this->_totalFeedItems,\n 'message' => \"Importing content. Item \" . $this->_currentItemCount\n . \" of \" . $this->_totalFeedItems . \".\"\n )\n );\n }", "private static function set_addon_status( &$addon ) {\n\t\tif ( ! empty( $addon['activate_url'] ) ) {\n\t\t\t$addon['status'] = array(\n\t\t\t\t'type' => 'installed',\n\t\t\t\t'label' => __( 'Installed', 'formidable' ),\n\t\t\t);\n\t\t} elseif ( $addon['installed'] ) {\n\t\t\t$addon['status'] = array(\n\t\t\t\t'type' => 'active',\n\t\t\t\t'label' => __( 'Active', 'formidable' ),\n\t\t\t);\n\t\t} else {\n\t\t\t$addon['status'] = array(\n\t\t\t\t'type' => 'not-installed',\n\t\t\t\t'label' => __( 'Not Installed', 'formidable' ),\n\t\t\t);\n\t\t}\n\t}", "public function register_status() {\n register_post_status( self::$status, array(\n 'label' => __( 'Limbo', 'fu-events-calendar' ),\n 'label_count' => _nx_noop( 'Limbo <span class=\"count\">(%s)</span>', 'Limbo <span class=\"count\">(%s)</span>', 'event status', 'fu-events-calendar' ),\n 'show_in_admin_all_list' => false,\n 'show_in_admin_status_list' => true,\n 'public' => false,\n 'internal' => false,\n ) );\n }", "public function add_ppe_inspection_worker($idPPEInspection) \n\t\t{\n\t\t\t//add the new workers\n\t\t\t$query = 1;\n\t\t\tif ($workers = $this->input->post('workers')) {\n\t\t\t\t$tot = count($workers);\n\t\t\t\tfor ($i = 0; $i < $tot; $i++) {\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t'fk_id_ppe_inspection' => $idPPEInspection,\n\t\t\t\t\t\t'fk_id_user' => $workers[$i],\n\t\t\t\t\t\t'date_issue' => date(\"Y-m-d G:i:s\") \n\t\t\t\t\t);\n\t\t\t\t\t$query = $this->db->insert('ppe_inspection_workers', $data);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($query) {\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 addStatus($status)\r\n {\r\n if($this->statusModel->isExistStatus($status['id']))\r\n {\r\n $this->statusModel->updateExistingStatus($status);\r\n }\r\n else\r\n {\r\n //IF status not exist then add new status\r\n $this->statusModel->addNewStatus($status);\r\n }\r\n }", "public function append($item)\n {\n array_push($this->activeValue, $item);\n }", "private function get_additional_entry_item( $addon_meta_data ) {\n\n\t\tif ( ! isset( $addon_meta_data['value'] ) || ! is_array( $addon_meta_data['value'] ) ) {\n\t\t\treturn array();\n\t\t}\n\t\t$status = $addon_meta_data['value'];\n\t\t$additional_entry_item = array(\n\t\t\t'label' => __( 'Google Sheets Integration', Forminator::DOMAIN ),\n\t\t\t'value' => '',\n\t\t);\n\n\n\t\t$sub_entries = array();\n\t\tif ( isset( $status['connection_name'] ) ) {\n\t\t\t$sub_entries[] = array(\n\t\t\t\t'label' => __( 'Integration Name', Forminator::DOMAIN ),\n\t\t\t\t'value' => $status['connection_name'],\n\t\t\t);\n\t\t}\n\n\t\tif ( isset( $status['is_sent'] ) ) {\n\t\t\t$is_sent = true === $status['is_sent'] ? __( 'Yes', Forminator::DOMAIN ) : __( 'No', Forminator::DOMAIN );\n\t\t\t$sub_entries[] = array(\n\t\t\t\t'label' => __( 'Sent To Google Sheets', Forminator::DOMAIN ),\n\t\t\t\t'value' => $is_sent,\n\t\t\t);\n\t\t}\n\n\t\tif ( isset( $status['description'] ) ) {\n\t\t\t$sub_entries[] = array(\n\t\t\t\t'label' => __( 'Info', Forminator::DOMAIN ),\n\t\t\t\t'value' => $status['description'],\n\t\t\t);\n\t\t}\n\n\t\t$additional_entry_item['sub_entries'] = $sub_entries;\n\n\t\t// return single array\n\t\treturn $additional_entry_item;\n\t}", "private function write_status(string $field_name, string $status)\n {\n $this->status[$field_name] = $status;\n }", "function updatestatus() {\n global $_lib;\n\n $dataH = array();\n $dataH['ID'] = $this->transaction->ID;\n $dataH['RemittanceSequence'] = $this->transaction->RemittanceSequence;\n $dataH['RemittanceDaySequence'] = $this->transaction->RemittanceDaySequence;\n $dataH['RemittanceSendtDateTime'] = $_lib['sess']->get_session('Datetime');\n $dataH['RemittanceSendtPersonID'] = $_lib['sess']->get_person('PersonID');\n $dataH['RemittanceStatus'] = 'sent';\n \n #Disse mŒ fjernes nŒr vi har en godkjenningsprosess\n $dataH['RemittanceApprovedDateTime'] = $_lib['sess']->get_session('Datetime');\n $dataH['RemittanceApprovedPersonID'] = $_lib['sess']->get_person('PersonID');\n\n $_lib['storage']->store_record(array('data' => $dataH, 'table' => 'invoicein', 'debug' => false));\n }", "public function updateStatus() {\n $ref = ORM::forTable('referrals')\n ->findOne($this->data['id']);\n if ($this->data['status'] == 'Assigned' && $this->data['route_id']) {\n $route = ORM::forTable('estimate_routes')\n ->findOne($this->data['route_id']);\n $assignedReferralsCount = ORM::forTable('referrals')\n ->select('id')\n ->where('route_id', $route->id)\n ->count();\n $ref->route_id = $this->data['route_id'];\n $ref->status = 'Assigned';\n $ref->route_order = $assignedReferralsCount;\n\n } elseif ($this->data['status'] == 'Pending') {\n $ref->status = 'Pending';\n $ref->route_order = 0;\n $ref->route_id = NULL;\n } else {\n $ref->status = $this->data['status'];\n }\n if ($ref->save()) {\n $this->renderJson([\n 'success' => true,\n 'message' => 'Job request status updated successfully'\n ]);\n } else {\n $this->renderJson([\n 'success' => false,\n 'message' => 'An error has occurred while saving job request'\n ]);\n }\n }", "public function save_status_info($data) {\n extract($data);\n $sql=\"INSERT INTO tbl_status (status_name, publication_status) VALUES ('$status_name', '$publication_status' )\";\n if(mysqli_query($this->link, $sql)) {\n $message=\"Status info save successfully\";\n return $message;\n } else {\n die('Query problem'.mysqli_error($this->link) );\n }\n }" ]
[ "0.5700343", "0.55176336", "0.5473545", "0.5324831", "0.5256279", "0.5216933", "0.52050316", "0.51999325", "0.5192786", "0.5173823", "0.50788814", "0.5069913", "0.505924", "0.505686", "0.50449306", "0.50345826", "0.50078946", "0.49951497", "0.49807838", "0.49698597", "0.4967887", "0.49633077", "0.49621215", "0.49619132", "0.49572968", "0.49569187", "0.49462354", "0.4931272", "0.4905789", "0.48848704" ]
0.68905354
0
This method is responsible for validating the values passed to the setWorker_Position_Data method This method is willingly generated in order to preserve the oneline inline validation within the setWorker_Position_Data method
public static function validateWorker_Position_DataForArrayConstraintsFromSetWorker_Position_Data(array $values = array()) { $message = ''; $invalidValues = []; foreach ($values as $employee_DataTypeWorker_Position_DataItem) { // validation for constraint: itemType if (!$employee_DataTypeWorker_Position_DataItem instanceof \WorkdayWsdl\\StructType\Worker_Position_DataType) { $invalidValues[] = is_object($employee_DataTypeWorker_Position_DataItem) ? get_class($employee_DataTypeWorker_Position_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypeWorker_Position_DataItem), var_export($employee_DataTypeWorker_Position_DataItem, true)); } } if (!empty($invalidValues)) { $message = sprintf('The Worker_Position_Data property can only contain items of type \WorkdayWsdl\\StructType\Worker_Position_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues))); } unset($invalidValues); return $message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function validateData();", "private function writeDataValidity(): void\n {\n // Datavalidation collection\n $dataValidationCollection = $this->phpSheet->getDataValidationCollection();\n\n // Write data validations?\n if (!empty($dataValidationCollection)) {\n // DATAVALIDATIONS record\n $record = 0x01B2; // Record identifier\n $length = 0x0012; // Bytes to follow\n\n $grbit = 0x0000; // Prompt box at cell, no cached validity data at DV records\n $horPos = 0x00000000; // Horizontal position of prompt box, if fixed position\n $verPos = 0x00000000; // Vertical position of prompt box, if fixed position\n $objId = 0xFFFFFFFF; // Object identifier of drop down arrow object, or -1 if not visible\n\n $header = pack('vv', $record, $length);\n $data = pack('vVVVV', $grbit, $horPos, $verPos, $objId, count($dataValidationCollection));\n $this->append($header . $data);\n\n // DATAVALIDATION records\n $record = 0x01BE; // Record identifier\n\n foreach ($dataValidationCollection as $cellCoordinate => $dataValidation) {\n // options\n $options = 0x00000000;\n\n // data type\n $type = CellDataValidation::type($dataValidation);\n\n $options |= $type << 0;\n\n // error style\n $errorStyle = CellDataValidation::errorStyle($dataValidation);\n\n $options |= $errorStyle << 4;\n\n // explicit formula?\n if ($type == 0x03 && preg_match('/^\\\".*\\\"$/', $dataValidation->getFormula1())) {\n $options |= 0x01 << 7;\n }\n\n // empty cells allowed\n $options |= $dataValidation->getAllowBlank() << 8;\n\n // show drop down\n $options |= (!$dataValidation->getShowDropDown()) << 9;\n\n // show input message\n $options |= $dataValidation->getShowInputMessage() << 18;\n\n // show error message\n $options |= $dataValidation->getShowErrorMessage() << 19;\n\n // condition operator\n $operator = CellDataValidation::operator($dataValidation);\n\n $options |= $operator << 20;\n\n $data = pack('V', $options);\n\n // prompt title\n $promptTitle = $dataValidation->getPromptTitle() !== '' ?\n $dataValidation->getPromptTitle() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($promptTitle);\n\n // error title\n $errorTitle = $dataValidation->getErrorTitle() !== '' ?\n $dataValidation->getErrorTitle() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($errorTitle);\n\n // prompt text\n $prompt = $dataValidation->getPrompt() !== '' ?\n $dataValidation->getPrompt() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($prompt);\n\n // error text\n $error = $dataValidation->getError() !== '' ?\n $dataValidation->getError() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($error);\n\n // formula 1\n try {\n $formula1 = $dataValidation->getFormula1();\n if ($type == 0x03) { // list type\n $formula1 = str_replace(',', chr(0), $formula1);\n }\n $this->parser->parse($formula1);\n $formula1 = $this->parser->toReversePolish();\n $sz1 = strlen($formula1);\n } catch (PhpSpreadsheetException $e) {\n $sz1 = 0;\n $formula1 = '';\n }\n $data .= pack('vv', $sz1, 0x0000);\n $data .= $formula1;\n\n // formula 2\n try {\n $formula2 = $dataValidation->getFormula2();\n if ($formula2 === '') {\n throw new WriterException('No formula2');\n }\n $this->parser->parse($formula2);\n $formula2 = $this->parser->toReversePolish();\n $sz2 = strlen($formula2);\n } catch (PhpSpreadsheetException $e) {\n $sz2 = 0;\n $formula2 = '';\n }\n $data .= pack('vv', $sz2, 0x0000);\n $data .= $formula2;\n\n // cell range address list\n $data .= pack('v', 0x0001);\n $data .= $this->writeBIFF8CellRangeAddressFixed($cellCoordinate);\n\n $length = strlen($data);\n $header = pack('vv', $record, $length);\n\n $this->append($header . $data);\n }\n }\n }", "protected function validate_data_fields(){\n\t\tif(empty($this->RESPONSE)){throw new Exception(\"Response field not found\", 5);}\n\t\t\n\t\t// The remote IP address is also required\n\t\tif($this->validate_ip($this->REMOTE_ADDRESS)){throw new Exception(\"Renote IP address not set correctly\", 6);}\n\t}", "private function validate(){\n\t\t$row = $this->row;\n\t\t$col = $this->col;\n\t\tfor($i=0;$i<$row;$i++)\n\t\t\tfor($j=0;$j<$col;$j++)\n\t\t\t$this->sanitzeRow($i,$j);\n\n\t\tfor($i=0;$i<$row;$i++)\n\t\t\tfor($j=0;$j<$col;$j++)\n\t\t\t$this->sanitzeCol($i,$j);\n\n\t}", "function ValidateData()\n\t\t{\n\t\t\t$theValidator = new CValidator();\n\t\t\tif(!$this->arrValidator || !is_array($this->arrValidator) )\n\t\t\t{\n\t\t\t\t$this->arrValidator = array();\n\t\t\t}\n\t\t\tforeach($this->arrValidator as $key=>$value)\n\t\t\t{\n\t\t\t\tif($this->$key == '')\n\t\t\t\t{\n\t\t\t\t\t// Kiem tra xem co phai bat buoc khong?\n\t\t\t\t\tif(isset($this->arrRequired[$key]) && ($this->arrRequired[$key] == 1))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!$theValidator->CheckPatt($value, $this->$key))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn(true);\n\t\t}", "public function DataIsValid()\n {\n $bDataIsValid = parent::DataIsValid();\n if ($this->HasContent() && $bDataIsValid) {\n if (intval($this->data) < 12 && intval($this->data) >= -11) {\n $bDataIsValid = true;\n } else {\n $bDataIsValid = false;\n $oMessageManager = TCMSMessageManager::GetInstance();\n $sConsumerName = TCMSTableEditorManager::MESSAGE_MANAGER_CONSUMER;\n $sFieldTitle = $this->oDefinition->GetName();\n $oMessageManager->AddMessage($sConsumerName, 'TABLEEDITOR_FIELD_TIMEZONE_NOT_VALID', array('sFieldName' => $this->name, 'sFieldTitle' => $sFieldTitle));\n }\n }\n\n return $bDataIsValid;\n }", "function isDataValid() \n {\n return true;\n }", "public function valid()\n {\n if (!parent::valid()) {\n return false;\n }\n\n $allowedValues = $this->getRelativeHorizontalPositionAllowableValues();\n if (!in_array($this->container['relative_horizontal_position'], $allowedValues)) {\n return false;\n }\n\n $allowedValues = $this->getRelativeVerticalPositionAllowableValues();\n if (!in_array($this->container['relative_vertical_position'], $allowedValues)) {\n return false;\n }\n\n $allowedValues = $this->getWrapTypeAllowableValues();\n if (!in_array($this->container['wrap_type'], $allowedValues)) {\n return false;\n }\n\n\n return true;\n }", "public function sanitiseData(): void\n {\n $this->firstLine = self::sanitiseString($this->firstLine);\n self::validateExistsAndLength($this->firstLine, 1000);\n $this->secondLine = self::sanitiseString($this->secondLine);\n self::validateExistsAndLength($this->secondLine, 1000);\n $this->town = self::sanitiseString($this->town);\n self::validateExistsAndLength($this->town, 255);\n $this->postcode = self::sanitiseString($this->postcode);\n self::validateExistsAndLength($this->postcode, 10);\n $this->county = self::sanitiseString($this->county);\n self::validateExistsAndLength($this->county, 255);\n $this->country = self::sanitiseString($this->country);\n self::validateExistsAndLength($this->country, 255);\n }", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "protected function _validate() {\n\t}", "public function validateData(){\n\t\tif (!self::isEmailValid($this->email))\n\t\t\tthrow new Exception(\"Email address {$this->email} is not a valid email address.\");\n\n\t\tparent::validateData();\n\t}", "public function check_data()\n {\n parent::check_data();\n\n if(empty($this->build_notifications))\n {\n throw new exception('<strong>Data missing: Notifications</strong>');\n }\n\n if(empty($this->build_batch_reference))\n {\n throw new exception('<strong>Data missing: Batch References</strong>');\n }\n }", "protected function localValidation()\n\t\t{\n\t\t}", "public function validate()\r\n {\r\n if(($this->length_n>=MIN_LENGTH AND $this->length_n<MAX_LENGTH) AND ($this->width_m>=MIN_WIDTH AND $this->width_m<MAX_WIDTH))\r\n {\r\n return true;\r\n }else {\r\n return false;\r\n }\r\n\r\n \r\n }", "public function checkCoordinates() : void\n {\n $this->checkLatitudes();\n $this->checkLongitudes();\n }", "private function validate_input() {\n\t\t$fields = array_merge( array( $this->range_field ), $this->key_fields, $this->checksum_fields );\n\n\t\t$this->validate_fields( $fields );\n\t\t$this->validate_fields_against_table( $fields );\n\t}", "private function validateData()\n {\n if (empty($this->nome)) {\n $this->errors->addMessage(\"O nome é obrigatório\");\n }\n\n if (!filter_var($this->email, FILTER_VALIDATE_EMAIL)) {\n $this->errors->addMessage(\"O e-mail é inválido\");\n }\n\n if (strlen($this->senha) < 6) {\n $this->errors->addMessage(\"A senha deve ter no minímo 6 caracteres!\");\n }\n if ($this->emailExiste($this->email, 'email')) {\n $this->errors->addMessage(\"Esse e-mail já está cadastrado\");\n }\n if ($this->emailExiste($this->usuario, 'usuario')) {\n $this->errors->addMessage(\"Esse usuário já está cadastrado\");\n }\n\n return $this->errors->hasError();\n }", "public function validate() {\r\n \r\n if (is_null($this->bbcode_uid)) {\r\n $this->bbcode_uid = \"sausages\";\r\n }\r\n \r\n if (is_null($this->lat)) {\r\n $this->lat = 0;\r\n }\r\n \r\n if (is_null($this->lon)) {\r\n $this->lon = 0;\r\n }\r\n \r\n if (is_null($this->edit_timestamp)) {\r\n $this->edit_timestamp = 0;\r\n }\r\n \r\n if (is_null($this->edit_count)) {\r\n $this->edit_count = 0;\r\n }\r\n \r\n if (empty($this->uid) && $this->Author instanceof User) {\r\n $this->uid = $this->Author->id;\r\n }\r\n \r\n if (empty($this->uid)) {\r\n throw new Exception(\"No post author specified\");\r\n }\r\n \r\n if (empty($this->ip)) {\r\n $this->ip = filter_input(INPUT_SERVER, \"REMOTE_ADDR\", FILTER_SANITIZE_URL); #$_SERVER['REMOTE_ADDR'];\r\n }\r\n \r\n if ($this->ip == null) {\r\n $this->ip = \"\";\r\n }\r\n \r\n if (empty($this->url_slug)) {\r\n $this->createSlug();\r\n }\r\n \r\n if (empty($this->url_slug)) {\r\n $this->url_slug = \"\";\r\n }\r\n \r\n if (!filter_var($this->timestamp)) {\r\n $this->timestamp = time(); \r\n }\r\n \r\n if (empty($this->text)) {\r\n throw new Exception(\"No post text was submitted\"); \r\n }\r\n \r\n \r\n return true;\r\n }", "public function validate()\n {\n $validator = Validator::make($this->data, $this->fieldValidationArray());\n if ($validator->fails()) {\n throw $this->validationException(join(\", \", $validator->errors()->all()));\n }\n\n /* if there's a script, check that the script will return the right type .*/\n if (isset($this->data[\"script\"])) {\n if ($this->recordType == null) {\n throw $this->validationException(\"Script can't be tested because the field doesn't belong to a record type.\");\n }\n try {\n $script = $this->getScript($this->recordType);\n if ($script->type() != $this->data[\"type\"]) {\n throw $this->validationException(\"Script should return a '\" . $this->data[\"type\"] . \"' but returned a \" . $script->type());\n }\n } catch (ScriptException $e) {\n throw $this->validationException(\"Script has a problem: \" . $e->getMessage());\n }\n }\n }", "protected function postValidation()\n {\n $errors = array();\n\n // \"Length of reference\" field.\n if (!($length = Tools::getValue('ORDERREF_LENGTH'))) {\n $errors[] = $this->l('The \"Length of reference\" field is required.');\n }\n elseif (!Validate::isInt($length)) {\n $errors[] = $this->l('The \"Length of reference\" field must be an integer number.');\n }\n elseif (!($length >= self::ORDERREF_LENGTH_MIN && $length <= self::ORDERREF_LENGTH_MAX)) {\n $errors[] = $this->l('The \"Length of reference\" field limits exceed. Value must be between')\n . ' ' . self::ORDERREF_LENGTH_MIN . ' '\n . $this->l('and')\n . ' ' . self::ORDERREF_LENGTH_MAX;\n }\n \n // \"How to generate\" field.\n if (!($mode = Tools::getValue('ORDERREF_MODE'))) {\n $errors[] = $this->l('The \"How to generate order references\" field is required.');\n }\n elseif (!(Validate::isInt($mode) &&\n ($mode == self::ORDERREF_MODE_RANDOM\n || $mode == self::ORDERREF_MODE_CONSEQUENT\n || $mode == self::ORDERREF_MODE_PS))) {\n $errors[] = $this->l('The \"How to generate order references\" field has illegal value.');\n }\n\n return $errors;\n }", "function validate() {\n\t\t\t$this->field['msg'] = ( isset( $this->field['msg'] ) ) ? $this->field['msg'] : esc_html__( 'You must provide a comma separated list of numerical values for this option.', 'redux-framework' );\n\n\t\t\tif ( ! is_numeric( str_replace( ',', '', $this->value ) ) || strpos( $this->value, ',' ) == false ) {\n\t\t\t\t$this->value = ( isset( $this->current ) ) ? $this->current : '';\n\t\t\t\t$this->field['current'] = $this->value;\n\n\t\t\t\t$this->error = $this->field;\n\t\t\t}\n\t\t}", "abstract public function validateData($data);", "protected function prepareValidations() {}", "function valid() {\r\n return isset($this->_data[$this->_position]);\r\n }", "public function validate() {\n if (!$this->_data) {\n return false;\n }\n\n $fields = $this->getFields();\n $messages = $this->getMessages();\n\n foreach ($this->_data as $field => $value) {\n if (empty($this->_rules[$field])) {\n continue;\n }\n\n foreach ($this->_rules[$field] as $rule => $params) {\n $options = $params['options'];\n $arguments = $options;\n array_unshift($arguments, $value);\n\n // Use G11n if it is available\n if (class_exists('Titon\\G11n\\Utility\\Validate')) {\n $class = 'Titon\\G11n\\Utility\\Validate';\n } else {\n $class = 'Titon\\Utility\\Validate';\n }\n\n if (!call_user_func(array($class, 'hasMethod'), $rule)) {\n throw new InvalidValidationRuleException(sprintf('Validation rule %s does not exist', $rule));\n }\n\n // Prepare messages\n $message = $params['message'];\n\n if (!$message && isset($messages[$rule])) {\n $message = $messages[$rule];\n }\n\n if ($message) {\n $message = String::insert($message, array_map(function($value) {\n return is_array($value) ? implode(', ', $value) : $value;\n }, $options + array(\n 'field' => $field,\n 'title' => $fields[$field]\n )));\n } else {\n throw new InvalidValidationRuleException(sprintf('Error message for rule %s does not exist', $rule));\n }\n\n if (!call_user_func_array(array($class, $rule), $arguments)) {\n $this->addError($field, $message);\n break;\n }\n }\n }\n\n return empty($this->_errors);\n }", "protected function checkStructure()\n {\n $structure = $this->getStructure();\n\n foreach ($structure as $field => $opt) {\n if (!array_key_exists($field, $this->data)) {\n continue;\n }\n\n $value = Arr::get($this->data, $field);\n if (is_array($value)) {\n $this->errors[$field][] = Translate::get('validate_wrong_type_data');\n continue;\n }\n\n $value = trim($value);\n $length = (int)$opt->length;\n\n if (!empty($length)) {\n $len = mb_strlen($value);\n if ($len > $length) {\n $this->errors[$field][] = Translate::getSprintf('validate_max_length', $length);\n continue;\n }\n }\n\n if (!$opt->autoIncrement && $opt->default === NULL && !$opt->allowNull && $this->isEmpty($value)) {\n $this->errors[$field][] = Translate::get('validate_not_empty');\n continue;\n }\n\n switch ($opt->dataType) {\n case 'int':\n case 'bigint':\n if (!$this->isEmpty($value) && (filter_var($value, FILTER_VALIDATE_INT) === false)) {\n $this->errors[$field][] = Translate::get('validate_int');\n continue 2;\n }\n break;\n\n case 'double':\n if (!is_float($value) && !$this->isEmpty($value)) {\n $this->errors[$field][] = Translate::get('validate_double');\n continue 2;\n }\n break;\n\n case 'float':\n if (!is_numeric($value) && !$this->isEmpty($value)) {\n $this->errors[$field][] = Translate::get('validate_float');\n continue 2;\n }\n break;\n\n case 'date':\n case 'datetime':\n case 'timestamp':\n if (!$this->isEmpty($value) && !Validate::dateSql($value)) {\n $this->errors[$field][] = Translate::get('validate_sql_date');\n continue 2;\n }\n break;\n\n default:\n continue 2;\n break;\n\n }\n }\n }", "function validate() {\n\t\t\n\t\tif(is_array($this->value)) { // If array\n\t\t\tforeach($this->value as $k => $value){\n\t\t\t\t$this->value[$k] = $this->validate_color_rgba($value);\n\t\t\t}//foreach\n\t\t} else { // not array\n\t\t\t$this->value = $this->validate_color_rgba($this->value);\n\t\t} // END array check\n\t\t\n\t}", "protected function preValidate() {}" ]
[ "0.6250665", "0.6239848", "0.5929916", "0.59119207", "0.58686876", "0.5863896", "0.58303034", "0.5780146", "0.5732594", "0.56591696", "0.56591696", "0.56431615", "0.56187326", "0.5604051", "0.55439454", "0.5518377", "0.5507813", "0.54950297", "0.5478772", "0.54693526", "0.546767", "0.542322", "0.54199696", "0.5417708", "0.53904504", "0.5384681", "0.5370413", "0.5359247", "0.5354876", "0.533029" ]
0.6669201
0
Add item to Worker_Position_Data value
public function addToWorker_Position_Data(\WorkdayWsdl\\StructType\Worker_Position_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Worker_Position_DataType) { throw new \InvalidArgumentException(sprintf('The Worker_Position_Data property can only contain items of type \WorkdayWsdl\\StructType\Worker_Position_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); } $this->Worker_Position_Data[] = $item; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addItemForUpdate($item) {\n $this->_update[$item->getId()] = $item;\n }", "public function addToWorker_Status_Data(\\WorkdayWsdl\\\\StructType\\Worker_Status_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Worker_Status_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Worker_Status_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Worker_Status_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Worker_Status_Data[] = $item;\n return $this;\n }", "function addstock($uketoru_item, $uketoru_num){\n\tglobal $item;\n\tglobal $num_item;\n\t// echo $uketoru_item, '<br />', $uketoru_num, '<br />';\n\t// echo gettype($item), '<br />';\n\t# checking whether or not the item is in the data and its position\n\t$yes_no = in_array($uketoru_item, $item);\n\t$position = array_search($uketoru_item, $item);\n\t\n\t// echo 'in_array', '<br />' ,(boolean) $yes_no , '<br />','<br />';\n\t// echo 'position', '<br />', $position , '<br />';\n\n\t//echo $address;\n\tif($yes_no == 0){\n\t// $uketoru_item is not in array data \n\techo \"the item is not in the data.\",'<br />';\n\t# add the item in the data\n\tarray_push($item, $uketoru_item);\n\tarray_push($num_item, $uketoru_num);\n\t// echo $item[0],'<br />', $num_item[0],'<br />';\n\n\t}else{\n\t# $uketoru_item\n\t\"the item is in the data and is stocked.\";\n\t# add the stock on the item\n\t// echo \"yes_no\", '<br />', $yes_no, '<br />';\n\t$num_item[$position] = $num_item[$position] + $uketoru_num;\n\n\t}\n}", "public function addToPosition(string $item): self\n {\n // validation for constraint: enumeration\n if (!\\EnumType\\EwsEmailPositionType::valueIsValid($item)) {\n throw new InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \\EnumType\\EwsEmailPositionType', is_array($item) ? implode(', ', $item) : var_export($item, true), implode(', ', \\EnumType\\EwsEmailPositionType::getValidValues())), __LINE__);\n }\n $this->Position[] = $item;\n \n return $this;\n }", "public function insertItem($item){\n\t\t$hour = date ( 'H', strtotime ( $item->list_time ) );\n\t\t$this->hours[$hour][DayShelfStrategy::HOUR_FIELD_ITEMLIST][] = $item;\n\t}", "function wpcp_add_custom_data_to_order($item, $cart_item_key, $values, $order)\n{\n foreach ($item as $cart_item_key => $values) {\n if (isset($values['wpcp_location'])) {\n $item->add_meta_data(__('wpcp_location', 'wpcp'), $values['wpcp_location'], true);\n }\n }\n}", "function wpcp_add_custom_field_item_data($cart_item_data, $product_id, $variation_id, $quantity)\n{\n if (!empty($_POST['wpcp_location'])) {\n // Add the item data\n $cart_item_data['wpcp_location'] = $_POST['wpcp_location'];\n }\n return $cart_item_data;\n}", "abstract public function add_item();", "public function addResult(RaceResultItem $result)\n {\n if ($result->getParticipation()->getId() != $this->participation->getId()) {\n throw new \\Exception('Invalid player');\n }\n\n $this->pos_abs[] = $result->getPosAbs();\n $this->pos_rel[] = $result->getPosRel();\n $this->pts_abs[] = $result->getPtsAbs();\n $this->pts_rel[] = $result->getPtsRel();\n }", "public function addWorker($data){\n $result=$this->db->insert('workers',$data);\n return $result;\n }", "function addLocation($data) {\r\n\r\n\r\n\t\t$this->query('INSERT INTO locations (`id`, `created`, `modified`, `name`) \r\n\t\t\t\t\t\t\t VALUES (NULL, CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP(), \"'. $data['name'] .'\");');\r\n\r\n\t}", "public function addPos( $value){\n return $this->_add(1, $value);\n }", "public function add( $data, $shard = NULL );", "function OnAfterAdd(){\n //get keyfield value\n if (intval($this->item_id) == 0)\n $data = $this->Storage->GetRecord(null, array(\n $this->key_field => \"\"));\n $this->item_id = $data[$this->key_field];\n }", "public function addToLives_With_Worker_Data(\\WorkdayWsdl\\\\StructType\\Lives_With_Worker_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Lives_With_Worker_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Lives_With_Worker_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Lives_With_Worker_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Lives_With_Worker_Data[] = $item;\n return $this;\n }", "function location_tagid_db_save($data)\n\t {\n\t foreach($data['data_id'] as $key=>$location_items)\n\t {\n\t\t foreach($location_items as $location_item)\n\t\t {\n\t $location_item['nId'] = $data['node_id'];\n\t\t\t print_r($location_item).\"<br/>\";\n\t $this->db->insert('question_location',$location_item);\n\t\t\t}\n\t }\n\t }", "public function updateData($data_obj, $item_id)\n {\n\t\t$em = $this->controller_obj->getDoctrine()->getManager();\n\t\t$item = $em->getRepository(\"WebManagementBundle:location\")->find($item_id);\n\t\t$item->setLatitude($data_obj->getLatitude());\n\t\t$item->setLongitude($data_obj->getLongitude());\n\t\t$address_repo = $em->getRepository(\"WebManagementBundle:address\");\n\t\t$address = $address_repo->find($data_obj->getSelectAddress());\n\t\t$item->setAddress($address);\n\t\t$item->setDescription($data_obj->getDescription());\t\t\n\t\t$em->flush();\n\t}", "private function addItemToCollection()\n {\n $this->collection->items[$this->cart_hash] = $this;\n\n }", "public function addDatas(\\RO\\Cmd\\ItemData $value){\n return $this->_add(5, $value);\n }", "function addToBatch($item, $values) {\n $item['rowValues'] = $values;\n $item['allowUpdate'] = $this->_allowEntityUpdate;\n $item['ignoreCase'] = $this->_ignoreCase;\n $this->_importQueueBatch[] = $item;\n }", "abstract function incrementPosition();", "abstract public function addCoord(array $coord);", "public function writeItem($item)\n {\n $this->data[] = $item;\n }", "function addItemForInsert($item, $batch_id=null) {\n if($batch_id != null) {\n $this->_insert[$batch_id] = $item;\n } else {\n $this->_insert[] = $item;\n }\n }", "function PostProcessItemData()\n {\n $this->AddEventQuestDatas();\n $this->ItemDataGroups();\n }", "public function offsetSet($offset,$item)\n\t{\n\t\t$this->add($offset,$item);\n\t}", "abstract protected function onBeforeAdd($oItem);", "protected function tempPosition()\n {\n $this->{$this->getPositionColumn()} = static::$insanePosition;\n $this->save();\n }", "public function insertItem($userId, $data)\n {\n\n $orm = $this->getOrm();\n\n $itemNode = $orm->newEntity(\"WbfsysAddressItem\");\n\n $itemNode->vid = $userId;\n\n $itemNode->use_for_contact = $data->use_for_contact;\n $itemNode->flag_private = $data->flag_private;\n $itemNode->name = $data->name;\n $itemNode->address_value = $data->address_value;\n $itemNode->id_type = $data->id_type;\n $itemNode->description = $data->description;\n\n $itemNode = $orm->insert($itemNode);\n\n return $itemNode;\n\n }", "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}" ]
[ "0.5231292", "0.5206924", "0.5104459", "0.50767857", "0.5028276", "0.5020101", "0.49048936", "0.4889565", "0.48665488", "0.48301995", "0.48181653", "0.48165485", "0.481629", "0.47600394", "0.47438157", "0.47194618", "0.47158635", "0.47026443", "0.47001815", "0.46973503", "0.46802163", "0.46730882", "0.46520922", "0.4644063", "0.46405622", "0.46251315", "0.46233067", "0.46003318", "0.45930365", "0.45549914" ]
0.6830623
0
This method is responsible for validating the values passed to the setCompensation_Data method This method is willingly generated in order to preserve the oneline inline validation within the setCompensation_Data method
public static function validateCompensation_DataForArrayConstraintsFromSetCompensation_Data(array $values = array()) { $message = ''; $invalidValues = []; foreach ($values as $employee_DataTypeCompensation_DataItem) { // validation for constraint: itemType if (!$employee_DataTypeCompensation_DataItem instanceof \WorkdayWsdl\\StructType\Compensation_DataType) { $invalidValues[] = is_object($employee_DataTypeCompensation_DataItem) ? get_class($employee_DataTypeCompensation_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypeCompensation_DataItem), var_export($employee_DataTypeCompensation_DataItem, true)); } } if (!empty($invalidValues)) { $message = sprintf('The Compensation_Data property can only contain items of type \WorkdayWsdl\\StructType\Compensation_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues))); } unset($invalidValues); return $message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function validateCompensation_Detail_DataForArrayConstraintsFromSetCompensation_Detail_Data(array $values = array())\n {\n $message = '';\n $invalidValues = [];\n foreach ($values as $employee_DataTypeCompensation_Detail_DataItem) {\n // validation for constraint: itemType\n if (!$employee_DataTypeCompensation_Detail_DataItem instanceof \\WorkdayWsdl\\\\StructType\\Compensation_Detail_DataType) {\n $invalidValues[] = is_object($employee_DataTypeCompensation_Detail_DataItem) ? get_class($employee_DataTypeCompensation_Detail_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypeCompensation_Detail_DataItem), var_export($employee_DataTypeCompensation_Detail_DataItem, true));\n }\n }\n if (!empty($invalidValues)) {\n $message = sprintf('The Compensation_Detail_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Compensation_Detail_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));\n }\n unset($invalidValues);\n return $message;\n }", "private function writeDataValidity(): void\n {\n // Datavalidation collection\n $dataValidationCollection = $this->phpSheet->getDataValidationCollection();\n\n // Write data validations?\n if (!empty($dataValidationCollection)) {\n // DATAVALIDATIONS record\n $record = 0x01B2; // Record identifier\n $length = 0x0012; // Bytes to follow\n\n $grbit = 0x0000; // Prompt box at cell, no cached validity data at DV records\n $horPos = 0x00000000; // Horizontal position of prompt box, if fixed position\n $verPos = 0x00000000; // Vertical position of prompt box, if fixed position\n $objId = 0xFFFFFFFF; // Object identifier of drop down arrow object, or -1 if not visible\n\n $header = pack('vv', $record, $length);\n $data = pack('vVVVV', $grbit, $horPos, $verPos, $objId, count($dataValidationCollection));\n $this->append($header . $data);\n\n // DATAVALIDATION records\n $record = 0x01BE; // Record identifier\n\n foreach ($dataValidationCollection as $cellCoordinate => $dataValidation) {\n // options\n $options = 0x00000000;\n\n // data type\n $type = CellDataValidation::type($dataValidation);\n\n $options |= $type << 0;\n\n // error style\n $errorStyle = CellDataValidation::errorStyle($dataValidation);\n\n $options |= $errorStyle << 4;\n\n // explicit formula?\n if ($type == 0x03 && preg_match('/^\\\".*\\\"$/', $dataValidation->getFormula1())) {\n $options |= 0x01 << 7;\n }\n\n // empty cells allowed\n $options |= $dataValidation->getAllowBlank() << 8;\n\n // show drop down\n $options |= (!$dataValidation->getShowDropDown()) << 9;\n\n // show input message\n $options |= $dataValidation->getShowInputMessage() << 18;\n\n // show error message\n $options |= $dataValidation->getShowErrorMessage() << 19;\n\n // condition operator\n $operator = CellDataValidation::operator($dataValidation);\n\n $options |= $operator << 20;\n\n $data = pack('V', $options);\n\n // prompt title\n $promptTitle = $dataValidation->getPromptTitle() !== '' ?\n $dataValidation->getPromptTitle() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($promptTitle);\n\n // error title\n $errorTitle = $dataValidation->getErrorTitle() !== '' ?\n $dataValidation->getErrorTitle() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($errorTitle);\n\n // prompt text\n $prompt = $dataValidation->getPrompt() !== '' ?\n $dataValidation->getPrompt() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($prompt);\n\n // error text\n $error = $dataValidation->getError() !== '' ?\n $dataValidation->getError() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($error);\n\n // formula 1\n try {\n $formula1 = $dataValidation->getFormula1();\n if ($type == 0x03) { // list type\n $formula1 = str_replace(',', chr(0), $formula1);\n }\n $this->parser->parse($formula1);\n $formula1 = $this->parser->toReversePolish();\n $sz1 = strlen($formula1);\n } catch (PhpSpreadsheetException $e) {\n $sz1 = 0;\n $formula1 = '';\n }\n $data .= pack('vv', $sz1, 0x0000);\n $data .= $formula1;\n\n // formula 2\n try {\n $formula2 = $dataValidation->getFormula2();\n if ($formula2 === '') {\n throw new WriterException('No formula2');\n }\n $this->parser->parse($formula2);\n $formula2 = $this->parser->toReversePolish();\n $sz2 = strlen($formula2);\n } catch (PhpSpreadsheetException $e) {\n $sz2 = 0;\n $formula2 = '';\n }\n $data .= pack('vv', $sz2, 0x0000);\n $data .= $formula2;\n\n // cell range address list\n $data .= pack('v', 0x0001);\n $data .= $this->writeBIFF8CellRangeAddressFixed($cellCoordinate);\n\n $length = strlen($data);\n $header = pack('vv', $record, $length);\n\n $this->append($header . $data);\n }\n }\n }", "public function isValid($data) {\n //Remove Commas \n $data = str_replace(\",\", \"\", $data);\n \n $data['heatLossMethod']='percent';\n \n $precision = $this->mS->masterConversionList['temperature'][1][$this->mS->selected['temperature']][4];\n $iapws = new Steam_IAPWS();\n $maxTemp = $this->mS->ceil_dec($this->mS->localize($iapws->saturatedTemperature($this->mS->standardize($data['daPressure'], 'pressure')),'temperature'),$precision); \n \n if ($data['condReturnTemp']>=$maxTemp or $data['condReturnTemp']<=$this->mS->minTemperature()){\n $this->getElement('condReturnTemp')->addValidator('between', true, array('min' => $this->mS->minTemperature(), 'max' => $maxTemp, 'inclusive' => false));\n }\n \n \n $precision = $this->mS->masterConversionList['temperature'][1][$this->mS->selected['temperature']][4];\n $iapws = new Steam_IAPWS();\n $minTemp = $this->mS->ceil_dec($this->mS->localize($iapws->saturatedTemperature($this->mS->standardize($data['highPressure'],'pressure')),'temperature'),$precision);\n if ($data['boilerTemp']<$minTemp){\n $this->getElement('boilerTemp')\n ->addValidator('greaterThan', true, array('min' => $minTemp, 'messages' => '%value% is below the boiling temperature [%min%] for boiler pressure.'));\n }\n \n \n if ($data['headerCount']<3){\n $data['turbineHpMpOn'] = null;\n $data['turbineMpLpOn'] = null;\n $data['desuperHeatHpMp']=='No';\n if ($data['mpCondReturnRate']=='') $data['mpCondReturnRate'] = 0;\n if ($data['lpCondReturnRate']=='') $data['lpCondReturnRate'] = 0;\n }\n if ($data['headerCount']<2){\n $data['turbineHpLpOn'] = null;\n $data['desuperHeatMpLp']=='No';\n }\n \n if ($data['headerCount']==3){\n if($data['desuperHeatHpMp']=='Yes'){ \n $this->getElement('desuperHeatHpMpTemp')\n ->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => $this->mS->minTemperature(), 'max' => $this->mS->maxTemperature(), 'inclusive' => true));\n }\n }\n if ($data['headerCount']>=2){\n if($data['desuperHeatMpLp']=='Yes'){ \n $this->getElement('desuperHeatMpLpTemp')\n ->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => $this->mS->minTemperature(), 'max' => $this->mS->maxTemperature(), 'inclusive' => true)); \n }\n }\n\n \n if($data['blowdownHeatX']=='Yes'){ \n $this->getElement('blowdownHeatXTemp')\n ->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('greaterThan', true, array('min' => 0, 'max' => $this->mS->maxTemperature(), 'inclusive' => true));\n }\n \n foreach(Steam_Support::steamTurbineCodes() as $turbine){\n if ($data['turbine'.$turbine.'On']==1){\n $this->getElement('turbine'.$turbine.'IsoEff')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('Between', true, array('min' => ISOEFF_MIN, 'max' => ISOEFF_MAX));\n $this->getElement('turbine'.$turbine.'GenEff')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('Between', true, array('min' => GENEFF_MIN, 'max' => GENEFF_MAX));\n \n if ($turbine=='Cond'){\n $this->getElement('turbineCondOutletPressure')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => $this->mS->minVacuum(), 'max' => $this->mS->condVacuum(), 'inclusive' => true));\n }\n \n switch($data['turbine'.$turbine.'Method']){\n case 'fixedFlow':\n $this->getElement('turbine'.$turbine.'FixedFlow')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => false)); \n break;\n case 'flowRange':\n $this->getElement('turbine'.$turbine.'MinFlow')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $data['turbine'.$turbine.'MaxFlow'])); \n \n $this->getElement('turbine'.$turbine.'MaxFlow')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => false));\n break;\n\n case 'fixedPower':\n $this->getElement('turbine'.$turbine.'FixedPower')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('greaterThan', true, array('min' => 0)); \n break;\n case 'powerRange':\n $this->getElement('turbine'.$turbine.'MinPower')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('between', true, array('min' => 0, 'max' => $data['turbine'.$turbine.'MaxPower'])); \n \n $this->getElement('turbine'.$turbine.'MaxPower')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('greaterThan', true, array('min' => 0)); \n break;\n\n case 'balanceHeader':\n break;\n }\n }\n }\n \n $this->getElement('hpSteamUsage')->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => true));\n \n $this->getElement('hpHeatLossPercent')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => HEATLOST_PERCENT_MIN, 'max' => HEATLOST_PERCENT_MAX, 'inclusive' => true));\n \n \n if ($data['headerCount']==3){\n $tmp = $this->getElement('mediumPressure')->setRequired(true)\n ->addValidator($this->isFloat,true);\n if (isset($data['highPressure'])) $tmp->addValidator('lessThan', true, array('max' => $data['highPressure'], 'messages' => 'Must be less than High Pressure.'));\n $tmp->addValidator('greaterThan', true, array('min' => $this->mS->minPressure()));\n $tmp = $this->getElement('lowPressure')->setRequired(true)\n ->addValidator($this->isFloat,true);\n if (isset($data['mediumPressure'])) $tmp->addValidator('lessThan', true, array('max' => $data['mediumPressure'], 'messages' => 'Must be less than Medium Pressure.'));\n $tmp->addValidator('greaterThan', true, array('min' => $this->mS->minPressure())); \n if (isset($data['lowPressure'])) $this->getElement('daPressure')->addValidator('lessThan', true, array('max' => $data['lowPressure'], 'messages' => 'Must be below lowest steam header pressure.'));\n \n \n $this->getElement('mpSteamUsage')->setRequired(true)\n ->addValidator($this->isFloat,true);\n $this->getElement('mpSteamUsage')->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => true)); \n \n $this->getElement('mpCondReturnRate')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => 0, 'max' => 100, 'inclusive' => true));\n \n $this->getElement('mpHeatLossPercent')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => HEATLOST_PERCENT_MIN, 'max' => HEATLOST_PERCENT_MAX, 'inclusive' => true)); \n }\n \n if ($data['headerCount']==2){\n \n $tmp = $this->getElement('lowPressure')->setRequired(true)\n ->addValidator($this->isFloat,true);\n if (isset($data['highPressure'])) $tmp->addValidator('lessThan', true, array('max' => $data['highPressure'], 'messages' => 'Must be less than High Pressure.'));\n $tmp->addValidator('greaterThan', true, array('min' => $this->mS->minPressure())); \n if (isset($data['lowPressure'])) $this->getElement('daPressure')->addValidator('lessThan', true, array('max' => $data['lowPressure'], 'messages' => 'Must be below lowest steam header pressure.'));\n \n }\n \n if ($data['headerCount']>=2){\n \n $this->getElement('lpSteamUsage')->setRequired(true)\n ->addValidator($this->isFloat,true);\n \n $this->getElement('lpSteamUsage')->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => true)); \n \n $this->getElement('lpCondReturnRate')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => 0, 'max' => 100, 'inclusive' => true));\n \n $this->getElement('lpHeatLossPercent')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => HEATLOST_PERCENT_MIN, 'max' => HEATLOST_PERCENT_MAX, 'inclusive' => true)); \n }\n \n if ($data['headerCount']==1){ \n if (isset($data['highPressure'])) $this->getElement('daPressure')->addValidator('lessThan', true, array('max' => $data['highPressure'], 'messages' => 'Must be below lowest steam header pressure.')); \n \n } \n return parent::isValid($data);\n }", "function ValidateData()\n\t\t{\n\t\t\t$theValidator = new CValidator();\n\t\t\tif(!$this->arrValidator || !is_array($this->arrValidator) )\n\t\t\t{\n\t\t\t\t$this->arrValidator = array();\n\t\t\t}\n\t\t\tforeach($this->arrValidator as $key=>$value)\n\t\t\t{\n\t\t\t\tif($this->$key == '')\n\t\t\t\t{\n\t\t\t\t\t// Kiem tra xem co phai bat buoc khong?\n\t\t\t\t\tif(isset($this->arrRequired[$key]) && ($this->arrRequired[$key] == 1))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!$theValidator->CheckPatt($value, $this->$key))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn(true);\n\t\t}", "abstract public function validateData();", "function isDataValid() \n {\n return true;\n }", "private function validateLicenseData()\n {\n\n // error_log('LicenseEmail : '.print_r($this->getLicenseEmail(), 1));\n // error_log('LicenseProduct : '.print_r($this->getLicenseProduct(), 1));\n // error_log('LicenseSecretKey : '.print_r($this->getLicenseSecretKey(), 1));\n }", "protected function validate() {\r\n if ($this->getBaseAmount() <= 0)\r\n $this->errors->add(\"The base amount of alicuota must be greater than 0.\");\r\n// \t\t\telse\r\n// \t\t\t{\r\n// \t\t\t\t$relativeError = (($this->getTaxAmount() / $this->getBaseAmount() * 100) - $this->getTaxPercent());\r\n// \t\t\t\t$relativeError = $relativeError / $this->getTaxPercent();\r\n// \t\t\t\t$relativeError = NumberDataTypeHelper::truncate($relativeError, 2);\r\n// \t\t\t\tif (abs($relativeError) > 0.01)\r\n// \t\t\t\t\t$this->errors->add(\"The base and tax amount do not match with the alicuota ({$this->getName()}). Diference: $relativeError\");\r\n// \t\t\t}\r\n }", "function addValidationRules(){\n\t\t$this->registerRule('validDate','function','validDate');\n\t\t$this->registerRule('validPeriod','function','validPeriod');\n\t\t$this->registerRule('existe','function','existe');\n\t\t$this->registerRule('number_range','function','number_range');\n\t\t$this->registerRule('validInterval','function','validInterval');\n\t\t$this->registerRule('couple_not_null','function','couple_not_null');\n\t\t$this->registerRule('validParam','function','validParam');\n\t\t$this->registerRule('validUnit_existe','function','validUnit_existe');\n\t\t$this->registerRule('validUnit_required','function','validUnit_required');\n\t\t$this->addRule('dats_title','Data description: Metadata informative title is required','required');\n\t\t$this->addRule('dats_title','Data description: Dataset name exceeds the maximum length allowed (100 characters)','maxlength',100);\t\n\t\t$this->addRule('dats_date_begin','Temporal coverage: Date begin is not a date','validDate');\n\t\t$this->addRule('dats_date_end','Temporal coverage: Date end is not a date','validDate');\n\t\t$this->addRule(array('dats_date_begin','dats_date_end'),'Temporal coverage: Date end must be after date begin','validPeriod');\n\t\tif ($this->dataset->dats_id == 0){\n\t\t\t$this->addRule('dats_title','Data description: A dataset with the same title exists in the database','existe',array('dataset','dats_title'));\n\t\t}\n\t\t\n\t\tif (isset($this->dataset->data_policy) && !empty($this->dataset->data_policy) && $this->dataset->data_policy->data_policy_id > 0){\n\t\t\t$this->getElement('new_data_policy')->setAttribute('onfocus','blur()');\n\t\t}\n\t\t$this->addRule('new_data_policy','Data use information: Data policy exceeds the maximum length allowed (100 characters)','maxlength',100);\t\n\t\t$attrs = array();\n\t\tif (isset($this->dataset->database) && !empty($this->dataset->database) && $this->dataset->database->database_id > 0){\n\t\t\t//$this->getElement('new_database')->setAttribute('onfocus','blur()');\n\t\t\t//$this->getElement('new_db_url')->setAttribute('onfocus','blur()');\n\t\t\t$this->disableElement('new_database');\n\t\t\t$this->disableElement('new_db_url');\n\t\t}\n\t\t/*else {\n\t\t\t//$this->addRule('new_database','A database with the same title already exists','existe',array('database','database_name'));\n\t\t}*/\n\t\t$this->addRule('new_database','Data use information: Database name exceeds the maximum length allowed (250 characters)','maxlength',250);\n\t\t$this->addRule('new_db_url','Data use information: Database url exceeds the maximum length allowed (250 characters)','maxlength',250);\t\n\t\t//Formats\n\t\tfor ($i = 0; $i < $this->dataset->nbFormats; $i++){\n\t\t\t$this->addRule('data_format_'.$i,'Data use information: Format name '.($i+1).' exceeds the maximum length allowed (100 characters)','maxlength',100);\n\t\t\tif (isset($this->dataset->data_formats[$i]) && !empty($this->dataset->data_formats[$i]) && $this->dataset->data_formats[$i]->data_format_id > 0){\n\t\t\t\t//$this->getElement('new_data_format_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t$this->disableElement('new_data_format_'.$i);\n\t\t\t}\n\t\t\t/*else{\n\t\t\t\t//$this->addRule('new_data_format_'.$i,'Data format '.($i+1).': This format already exists in the database','existe',array('data_format','data_format_name'));\n\t\t\t}*/\n\t\t}\n\t\t//Contacts\n\t\t$this->addRule('pi_0','Contact 1 is required','couple_not_null',array($this,'pi_name_0'));\n\t\t$this->addRule('organism_0','Contact 1: organism is required','couple_not_null',array($this,'org_sname_0'));\n\t\t$this->addRule('email1_0','Contact 1: email1 is required','required');\t\n\t\tfor ($i = 0; $i < $this->dataset->nbPis; $i++){\n\t\t\t$this->addRule('pi_name_'.$i,'Contact '.($i+1).': Name exceeds the maximum length allowed (250 characters)','maxlength',250);\n\t\t\t$this->addRule('email1_'.$i,'Contact '.($i+1).': email1 is incorrect','email');\n\t\t\t$this->addRule('email2_'.$i,'Contact '.($i+1).': email2 is incorrect','email');\n\t\t\t$this->addRule('org_fname_'.$i,'Contact '.($i+1).': Organism full name exceeds the maximum length allowed (250 characters)','maxlength',250);\n\t\t\t$this->addRule('org_sname_'.$i,'Contact '.($i+1).': Organism short name exceeds the maximum length allowed (50 characters)','maxlength',50);\n\t\t\t$this->addRule('org_url_'.$i,'Contact '.($i+1).': Organism url exceeds the maximum length allowed (250 characters)','maxlength',250);\n\t\t\t$this->addRule('email1_'.$i,'Contact '.($i+1).': email1 exceeds the maximum length allowed (250 characters)','maxlength',250);\n\t\t\t$this->addRule('email2_'.$i,'Contact '.($i+1).': email2 exceeds the maximum length allowed (250 characters)','maxlength',250);\n\t\t\tif (isset($this->dataset->originators[$i]) && !empty($this->dataset->originators[$i]) && $this->dataset->originators[$i]->pers_id > 0){\n\t\t\t\t//$this->getElement('pi_name_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t//$this->getElement('email1_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t//$this->getElement('email2_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t//$this->getElement('organism_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t$this->disableElement('pi_name_'.$i);\n\t\t\t\t$this->disableElement('email1_'.$i);\n\t\t\t\t$this->disableElement('email2_'.$i);\n\t\t\t\t$this->disableElement('organism_'.$i);\n\t\t\t}\n\t\t\t/*else{\n\t\t\t\t//$this->addRule('pi_name_'.$i,'Contact '.($i+1).': A contact with the same name is already present in the database. Select it in the drop-down list.','existe',array('personne','pers_name'));\n\t\t\t}*/\n\t\t\tif (isset($this->dataset->originators[$i]->organism) && !empty($this->dataset->originators[$i]->organism) && $this->dataset->originators[$i]->organism->org_id > 0){\n\t\t\t\t//$this->getElement('org_sname_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t//$this->getElement('org_fname_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t//$this->getElement('org_url_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t$this->disableElement('org_sname_'.$i);\n\t\t\t\t$this->disableElement('org_fname_'.$i);\n\t\t\t\t$this->disableElement('org_url_'.$i);\n\t\t\t}\n\t\t\tif ($i != 0){\n\t\t\t\t$this->addRule('pi_name_'.$i,'Contact '.($i+1).': email1 is required','contact_email_required',array($this,$i));\n\t\t\t\t$this->addRule('pi_name_'.$i,'Contact '.($i+1).': organism is required','contact_organism_required',array($this,$i));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Add validation rules\n\t\t$this->AddModValidationRules();\n\t\t$this->AddSatValidationRules();\n\t\t$this->AddInstruValidationRules();\n\n\t\t//$this->addRule('grid_type','Coverage: Grid type exceeds the maximum length allowed (100 characters)','maxlength',100);\n\t\t$this->addVaValidationRulesResolution('Coverage');\n\t\t//$this->addRule('sensor_resol_temp','Coverage: Temporal resolution is incorrect','validDate');\n\t\t$this->addRule('sensor_resol_tmp','Coverage: temporal resolution is incorrect','regex',\"/^[0-9]{2}[:][0-9]{2}[:][0-9]{2}$/\");\n\t\t$this->addValidationRulesGeoCoverage();\n\t\t//PARAMETER\n\t\tfor ($i = 0; $i < $this->dataset->nbVars; $i++){\n\t\t\t$this->addValidationRulesVariable($i,$i,'Parameter '.($i+1));\n\t\t}\n\t\t\n\t}", "public static function validateCOBRA_Eligibility_DataForArrayConstraintsFromSetCOBRA_Eligibility_Data(array $values = array())\n {\n $message = '';\n $invalidValues = [];\n foreach ($values as $dependent_Coverage_DataTypeCOBRA_Eligibility_DataItem) {\n // validation for constraint: itemType\n if (!$dependent_Coverage_DataTypeCOBRA_Eligibility_DataItem instanceof \\WorkdayWsdl\\\\StructType\\COBRA_Eligibility_DataType) {\n $invalidValues[] = is_object($dependent_Coverage_DataTypeCOBRA_Eligibility_DataItem) ? get_class($dependent_Coverage_DataTypeCOBRA_Eligibility_DataItem) : sprintf('%s(%s)', gettype($dependent_Coverage_DataTypeCOBRA_Eligibility_DataItem), var_export($dependent_Coverage_DataTypeCOBRA_Eligibility_DataItem, true));\n }\n }\n if (!empty($invalidValues)) {\n $message = sprintf('The COBRA_Eligibility_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\COBRA_Eligibility_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));\n }\n unset($invalidValues);\n return $message;\n }", "public function validateDataInvoice(): void\n {\n $this->validarDatos($this->datos, $this->getRules('fe'));\n\n $this->validarDatosArray($this->datos->arrayOtrosTributos, 'tributos');\n\n /** @phpstan-ignore-next-line */\n if (property_exists($this->datos, 'arraySubtotalesIVA')) {\n $this->validarDatosArray((array) $this->datos->arraySubtotalesIVA, 'iva');\n }\n\n $this->validarDatosArray($this->datos->comprobantesAsociados, 'comprobantesAsociados');\n\n if ($this->ws === 'wsfe') {\n if (property_exists($this->datos, 'arrayOpcionales')) {\n $this->validarDatosArray((array) $this->datos->arrayOpcionales, 'opcionales');\n }\n } elseif ($this->ws === 'wsmtxca') {\n $this->validarDatosArray($this->datos->items, 'items');\n }\n }", "protected function prepareValidations() {}", "private function checkData(){\n $this->datavalidator->addValidation('article_title','req',$this->text('e10'));\n $this->datavalidator->addValidation('article_title','maxlen=250',$this->text('e11'));\n $this->datavalidator->addValidation('article_prologue','req',$this->text('e12'));\n $this->datavalidator->addValidation('article_prologue','maxlen=3000',$this->text('e13'));\n $this->datavalidator->addValidation('keywords','regexp=/^[^,\\s]{3,}(,? ?[^,\\s]{3,})*$/',$this->text('e32'));\n $this->datavalidator->addValidation('keywords','maxlen=500',$this->text('e33'));\n if($this->data['layout'] != 'g' && $this->data['layout'] != 'h'){ //if article is gallery dont need content\n $this->datavalidator->addValidation('article_content','req',$this->text('e14'));\n }\n $this->datavalidator->addValidation('id_menucategory','req',$this->text('e15'));\n $this->datavalidator->addValidation('id_menucategory','numeric',$this->text('e16'));\n $this->datavalidator->addValidation('layout','req',$this->text('e17'));\n $this->datavalidator->addValidation('layout','maxlen=1',$this->text('e18'));\n if($this->languager->getLangsCount() > 1){\n $this->datavalidator->addValidation('lang','req',$this->text('e19'));\n $this->datavalidator->addValidation('lang','numeric',$this->text('e20'));\n }\n //if user cannot publish articles check publish values\n if($_SESSION[PAGE_SESSIONID]['privileges']['articles'][2] == '1') {\n $this->datavalidator->addValidation('published','req',$this->text('e21'));\n $this->datavalidator->addValidation('published','numeric',$this->text('e22'));\n $this->datavalidator->addValidation('publish_date','req',$this->text('e23'));\n }\n $this->datavalidator->addValidation('topped','req',$this->text('e24'));\n $this->datavalidator->addValidation('topped','numeric',$this->text('e25'));\n $this->datavalidator->addValidation('homepage','req',$this->text('e30'));\n $this->datavalidator->addValidation('homepage','numeric',$this->text('e31'));\n $this->datavalidator->addValidation('showsocials','req',$this->text('e26'));\n $this->datavalidator->addValidation('showsocials','numeric',$this->text('e27'));\n \n $result = $this->datavalidator->ValidateData($this->data);\n if(!$result){\n $errors = $this->datavalidator->GetErrors();\n return array('state'=>'error','data'=> reset($errors));\n }else{\n return true;\n }\n }", "public function validate()\n {\n if ($this->amount <= 0) {\n $this->errors[0] = 'Wpisz poprawną kwotę!';\n }\n \n if (!isset($this->payment)) {\n $this->errors[1] = 'Wybierz sposób płatności!';\n }\n \n if (!isset($this->category)) {\n $this->errors[2] = 'Wybierz kategorię!';\n }\n }", "private function validRow($arrayToCheck) {\n if (isset($arrayToCheck) && !empty($arrayToCheck)) {\n //check number values\n if (count($arrayToCheck) == COUNT_VALUES) {\n //check values needed to put in database\n \n //Check subscriber\n if (!intval($arrayToCheck[2])) {\n $this->arrMsgError[] = array(\n 'data' => $arrayToCheck,\n 'error' => 'Subscriber is not an integer'\n );\n return false;\n }\n\n //Check date\n list($day, $month, $year) = explode('/', $arrayToCheck[3]);\n if(!checkdate($month,$day,$year)) {\n $this->arrMsgError[] = array(\n 'data' => $arrayToCheck,\n 'error' => 'Date is wrong'\n );\n return false;\n }\n\n //Check hour\n if (!preg_match(\"/^(?:2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$/\", $arrayToCheck[4])) {\n $this->arrMsgError[] = array(\n 'data' => $arrayToCheck,\n 'error' => 'Time is wrong'\n );\n return false;\n }\n\n //Check Consumption\n if (preg_match(\"/^(?:2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$/\", $arrayToCheck[5])) {\n $type = 'call';\n $parsed = date_parse($arrayToCheck[5]);\n $consumption = $parsed['hour'] * 3600 + $parsed['minute'] * 60 + $parsed['second'];\n }\n elseif ($arrayToCheck[6] == '0.0' || intval($arrayToCheck[6])) {\n $type = 'data';\n $consumption = intval($arrayToCheck[6]);\n }\n elseif ($arrayToCheck[5]=='' || $arrayToCheck[6]=='') {\n $type = 'sms';\n $consumption = '';\n }\n else {\n $this->arrMsgError[] = array(\n 'data' => $arrayToCheck,\n 'error' => 'Consumption values are not good'\n );\n return false;\n }\n\n //return array to insert in database \n //array(subscriber, datetime, consumption, $type)\n $date = date(\"Y-m-d H:i:s\", strtotime(str_replace('/', '-', $arrayToCheck[3]).' '.$arrayToCheck[4]));\n return array(\n 'subscriber' => $arrayToCheck[2],\n 'date' => $date,\n 'consumption' => $consumption,\n 'type' => $type);\n } \n else\n return false;\n }\n else {\n return false;\n }\n }", "protected function prepareForValidation() {\n\n // converting date and hour to datetime\n if ($this->has(['start_date', 'start_time'])) {\n $start_datetime = Carbon::createFromFormat('Y-m-d H:i', $this->input('start_date').\" \".$this->input('start_time'));\n $start_datetime->setTimezone('Europe/London');\n $this->merge(['start_date' => $start_datetime]);\n }\n\n if ($this->has(['end_date', 'end_time'])) {\n $end_datetime = Carbon::createFromFormat('Y-m-d H:i', $this->input('end_date').\" \".$this->input('end_time'));\n $this->merge(['end_date' => $end_datetime]);\n }\n\n if ($this->has('starting_bid')) {\n $this->merge(['starting_bid' => ceil($this->input('starting_bid') * 100)]);\n }\n\n // determine if minimum increment is percentage or fixed\n if ($this->has('increment_val')) {\n if ($this->has('percent_check') && $this->input('percent_check')) // percentual\n $this->merge(['increment_percent' => $this->input('increment_val')]);\n else // fixed\n $this->merge(['increment_fixed' => ceil($this->input('increment_val') * 100)]);\n }\n }", "function validateData($array){\n\t\t$errorFlag=true;\n\t\t$currentDate = getdate(); //get current date\n\t\tif (trim($array['FName'])==''){\n\t\t\t$this->appendErrorMsg(\"First Name is required\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['LName'])==''){\n\t\t\t$this->appendErrorMsg(\"Last Name is required\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['License_No'])==''){\n\t\t\t$this->appendErrorMsg(\"License number is required\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['Birthdate'])==''){\n\t\t\t$this->appendErrorMsg(\"Birthdate cannot be blank\");\n\t\t\t$errorFlag = false;\n\t\t} else if (!preg_match(\"/^[0-9]{4,4}[-][0-1]{1,2}?[0-9]{1,2}[-][0-3]{1,2}?[0-9]{1,2}$/\", $array['Birthdate'])){\n\t\t\t$this->appendErrorMsg(\"Date should be in the format yyyy-mm-dd\");\n\t\t\t$errorFlag = false;\n\t\t} else if (getAge($array['Birthdate'])<16 || getAge($array['Birthdate'])> 100){\n\t\t\t$this->appendErrorMsg(\"Sorry, we do not provide coverage to drivers under the age of 16 or over the age of 100\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['PostalCode'])==''){\n\t\t\t$this->appendErrorMsg(\"Postal Code is required\");\n\t\t\t$errorFlag = false;\n\t\t} else if (!preg_match(\"/^[A-Za-z]{1}\\d{1}[A-Za-z]{1}\\d{1}[A-Za-z]{1}\\d{1}$/\",$array['PostalCode'])){\n\t\t\t$this->appendErrorMsg(\"Postal Code should be in the format A1B2C3\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['Phone'])==''){\n\t\t\t$this->appendErrorMsg(\"Phone number is required\");\n\t\t\t$errorFlag = false;\n\t\t} else if (!preg_match(\"/^[0-9]{10}$/\",$array['Phone'])){\n\t\t\t$this->appendErrorMsg(\"Phone number must be in the format xxx-xxx-xxxx or xxxxxxxxx\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (!preg_match(\"/^[0-9]{1,}$/\", $array['Years_Exp'])){\n\t\t\t$this->appendErrorMsg(\"Please input the number of Years of Experience\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\treturn $errorFlag;\n\t}", "protected function prepareForValidation()\n {\n $merge = [];\n\n if ($this->valtotal) {\n $merge['valtotal'] = Format::strToFloat($this->valtotal);\n }\n\n $this->merge($merge);\n }", "function validate() {\n\t\t\n\t\tif(is_array($this->value)) { // If array\n\t\t\tforeach($this->value as $k => $value){\n\t\t\t\t$this->value[$k] = $this->validate_color_rgba($value);\n\t\t\t}//foreach\n\t\t} else { // not array\n\t\t\t$this->value = $this->validate_color_rgba($this->value);\n\t\t} // END array check\n\t\t\n\t}", "public function validate() {\r\n // Name - this is required\r\n if ($this->description == '') {\r\n $this->errors[] = 'Description is required';\r\n } \r\n \r\n // Category number - must be a number\r\n if (!is_numeric($this->category)) {\r\n $this->category = 0;\r\n } \r\n \r\n // Item number - must be a number\r\n if (!is_numeric($this->item)) {\r\n $this->item = 0;\r\n } \r\n }", "public function validation($data, $files) {\r\n\r\n // // Check open and close times are consistent.\r\n // if ($data['timeopen'] != 0 && $data['timeclose'] != 0 &&\r\n // $data['timeclose'] < $data['timeopen']) {\r\n // $errors['timeclose'] = get_string('closebeforeopen', 'quiz');\r\n // }\r\n\r\n // // Check that the grace period is not too short.\r\n // if ($data['overduehandling'] == 'graceperiod') {\r\n // $graceperiodmin = get_config('quiz', 'graceperiodmin');\r\n // if ($data['graceperiod'] <= $graceperiodmin) {\r\n // $errors['graceperiod'] = get_string('graceperiodtoosmall', 'quiz', format_time($graceperiodmin));\r\n // }\r\n // }\r\n\r\n // if (array_key_exists('completion', $data) && $data['completion'] == COMPLETION_TRACKING_AUTOMATIC) {\r\n // $completionpass = isset($data['completionpass']) ? $data['completionpass'] : $this->current->completionpass;\r\n\r\n // // Show an error if require passing grade was selected and the grade to pass was set to 0.\r\n // if ($completionpass && (empty($data['gradepass']) || grade_floatval($data['gradepass']) == 0)) {\r\n // if (isset($data['completionpass'])) {\r\n // $errors['completionpassgroup'] = get_string('gradetopassnotset', 'quiz');\r\n // } else {\r\n // $errors['gradepass'] = get_string('gradetopassmustbeset', 'quiz');\r\n // }\r\n // }\r\n // }\r\n\r\n // // Check the boundary value is a number or a percentage, and in range.\r\n // $i = 0;\r\n // while (!empty($data['feedbackboundaries'][$i] )) {\r\n // $boundary = trim($data['feedbackboundaries'][$i]);\r\n // if (strlen($boundary) > 0) {\r\n // if ($boundary[strlen($boundary) - 1] == '%') {\r\n // $boundary = trim(substr($boundary, 0, -1));\r\n // if (is_numeric($boundary)) {\r\n // $boundary = $boundary * $data['grade'] / 100.0;\r\n // } else {\r\n // $errors[\"feedbackboundaries[$i]\"] =\r\n // get_string('feedbackerrorboundaryformat', 'quiz', $i + 1);\r\n // }\r\n // } else if (!is_numeric($boundary)) {\r\n // $errors[\"feedbackboundaries[$i]\"] =\r\n // get_string('feedbackerrorboundaryformat', 'quiz', $i + 1);\r\n // }\r\n // }\r\n // if (is_numeric($boundary) && $boundary <= 0 || $boundary >= $data['grade'] ) {\r\n // $errors[\"feedbackboundaries[$i]\"] =\r\n // get_string('feedbackerrorboundaryoutofrange', 'quiz', $i + 1);\r\n // }\r\n // if (is_numeric($boundary) && $i > 0 &&\r\n // $boundary >= $data['feedbackboundaries'][$i - 1]) {\r\n // $errors[\"feedbackboundaries[$i]\"] =\r\n // get_string('feedbackerrororder', 'quiz', $i + 1);\r\n // }\r\n // $data['feedbackboundaries'][$i] = $boundary;\r\n // $i += 1;\r\n // }\r\n // $numboundaries = $i;\r\n\r\n // // Check there is nothing in the remaining unused fields.\r\n // if (!empty($data['feedbackboundaries'])) {\r\n // for ($i = $numboundaries; $i < count($data['feedbackboundaries']); $i += 1) {\r\n // if (!empty($data['feedbackboundaries'][$i] ) &&\r\n // trim($data['feedbackboundaries'][$i] ) != '') {\r\n // $errors[\"feedbackboundaries[$i]\"] =\r\n // get_string('feedbackerrorjunkinboundary', 'quiz', $i + 1);\r\n // }\r\n // }\r\n // }\r\n // for ($i = $numboundaries + 1; $i < count($data['feedbacktext']); $i += 1) {\r\n // if (!empty($data['feedbacktext'][$i]['text']) &&\r\n // trim($data['feedbacktext'][$i]['text'] ) != '') {\r\n // $errors[\"feedbacktext[$i]\"] =\r\n // get_string('feedbackerrorjunkinfeedback', 'quiz', $i + 1);\r\n // }\r\n // }\r\n\r\n // // If CBM is involved, don't show the warning for grade to pass being larger than the maximum grade.\r\n // if (($data['preferredbehaviour'] == 'deferredcbm') OR ($data['preferredbehaviour'] == 'immediatecbm')) {\r\n // unset($errors['gradepass']);\r\n // }\r\n // // Any other rule plugins.\r\n // $errors = quiz_access_manager::validate_settings_form_fields($errors, $data, $files, $this);\r\n\r\n // return $errors;\r\n }", "public function validate($data) {\n\n\t\t$this->validationErrors = [];\n\n\t\t$amount = (float)$data['amount'];\n\t\tif ($amount <= 0) {\n\t\t\t$this->validationErrors['error_amount'] = true;\n\t\t}\n\n\t\t// Personal data should be either all blank or all set:\n\t\tif ($this->wantsReceipt($data)) {\n\t\t\tif (empty($data['data_privacy_statement_accepted'])) {\n\t\t\t\t$this->validationErrors['error_data_privacy_statement_accepted'] = true;\n\t\t\t}\n\t\t\tif ($amount < 50) {\n\t\t\t\t$this->validationErrors['error_donation_too_small_for_receipt'] = true;\n\t\t\t}\n\t\t\tif (empty($data['donation_firstname'])) {\n\t\t\t\t$this->validationErrors['error_donation_firstname'] = true;\n\t\t\t}\n\t\t\tif (empty($data['donation_lastname'])) {\n\t\t\t\t$this->validationErrors['error_donation_lastname'] = true;\n\t\t\t}\n\t\t\tif (empty($data['donation_street_address'])) {\n\t\t\t\t$this->validationErrors['error_donation_street_address'] = true;\n\t\t\t}\n\t\t\tif (!preg_match('/^[0-9]{5}$/', $data['donation_zip'])) {\n\t\t\t\t$this->validationErrors['error_donation_zip'] = true;\n\t\t\t}\n\t\t\tif (empty($data['donation_city'])) {\n\t\t\t\t$this->validationErrors['error_donation_city'] = true;\n\t\t\t}\n\t\t\tif (empty($data['donation_country'])) {\n\t\t\t\t$this->validationErrors['error_donation_country'] = true;\n\t\t\t}\n\t\t}\n\n\t\treturn empty($this->validationErrors);\n\t}", "public function validate($configData);", "public function check_data()\n {\n parent::check_data();\n\n if(empty($this->build_notifications))\n {\n throw new exception('<strong>Data missing: Notifications</strong>');\n }\n\n if(empty($this->build_batch_reference))\n {\n throw new exception('<strong>Data missing: Batch References</strong>');\n }\n }", "private function proccess()\n {\n foreach ($this->validate as $name => $value) {\n $rules = $this->rules[$name];\n \n /* Let's see is this value a required, e.g not empty */\n if (preg_match('~req~', $rules)) {\n if ($this->isEmpty($value)) {\n $this->errors[] = $this->filterName($name) . ' can\\'t be empty, please enter required data.';\n continue; // We will display only one error per input\n }\n }\n \n /**\n * Let's see is this value needs to be integer\n */\n if (preg_match('~int~', $rules)) {\n if (!$this->isInt($value)) {\n $this->errors[] = $this->filterName($name) . ' is not number, please enter number.';\n continue; // We will display only one error per input\n }\n }\n \n /**\n * Let's see is this value needs to be text\n */\n if (preg_match('~text~', $rules)) {\n if (!$this->isText($value)) {\n $this->errors[] = $this->filterName($name) . ' is not text, please enter only letters.';\n continue; // We will display only one error per input\n }\n }\n \n /* This is good input */\n $this->data[$name] = $value;\n }\n }", "public function formValidation($dataSet){\n\t\t\t$error=FALSE; $data=array();\n\t\t\tforeach ($dataSet as $aData) {\n\t\t\t\tif($aData['validationString']=='name'){\n\t\t\t\t\t$data[$aData['dataName']]=$this->getValidatedName(trim($aData['dataValue']));\n\t\t\t\t}\n\t\t\t\tif($aData['validationString']=='number'){\n\t\t\t\t\t$data[$aData['dataName']]=$this->getNumericData(trim($aData['dataValue']));\n\t\t\t\t}\n\t\t\t\tif($aData['validationString']=='integer'){\n\t\t\t\t\t$data[$aData['dataName']]=$this->getIntegerData(trim($aData['dataValue']));\n\t\t\t\t}\n\t\t\t\tif($aData['validationString']=='non empty'){\n\t\t\t\t\t$data[$aData['dataName']]=$this->getNonEmptyData(trim($aData['dataValue']));\n\t\t\t\t}\n\t\t\t\tif($aData['validationString']=='sanitize'){\n\t\t\t\t\t$data[$aData['dataName']]=$this->getSanitizeData(trim($aData['dataValue']));\n\t\t\t\t}\n\t\t\t\tif($aData['validationString']=='gsm phone'){\n\t\t\t\t\t$data[$aData['dataName']]=$this->getValidated080GSMNo(trim($aData['dataValue']));\n\t\t\t\t}\n\t\t\t\tif($aData['validationString']=='email'){\n\t\t\t\t\t$data[$aData['dataName']]=$this->getValidatedEmail(trim($aData['dataValue']));\n\t\t\t\t}\n\t\t\t\tif($aData['validationString']=='password rule'){\n\t\t\t\t\t$data[$aData['dataName']]=$this->enforceRulePassword(trim($aData['dataValue']));\n\t\t\t\t}\n\t\t\t\tif($aData['validationString']=='non empty textarea'){\n\t\t\t\t\t$data[$aData['dataName']]=$this->getNonEmptyTextField(trim($aData['dataValue']));\n\t\t\t\t}\n\t\t\t\tif($aData['validationString']=='in list'){\n\t\t\t\t\t$data[$aData['dataName']]=$this->checkInList($aData['dataValue'],$aData['dataList']);\n\t\t\t\t} \n\t\t\t}\n\t\t\tforeach ($data as $aData) {\n\t\t\t\tif($aData===FALSE) $error=TRUE;\n\t\t\t}\n\t\t\t$validedDataSet=array('error'=>$error, 'data'=>$data);\n\t\t\treturn $validedDataSet;\n\t\t}", "public function sanitiseData(): void\n {\n $this->firstLine = self::sanitiseString($this->firstLine);\n self::validateExistsAndLength($this->firstLine, 1000);\n $this->secondLine = self::sanitiseString($this->secondLine);\n self::validateExistsAndLength($this->secondLine, 1000);\n $this->town = self::sanitiseString($this->town);\n self::validateExistsAndLength($this->town, 255);\n $this->postcode = self::sanitiseString($this->postcode);\n self::validateExistsAndLength($this->postcode, 10);\n $this->county = self::sanitiseString($this->county);\n self::validateExistsAndLength($this->county, 255);\n $this->country = self::sanitiseString($this->country);\n self::validateExistsAndLength($this->country, 255);\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}", "public function doValidate(){\n if (!is_array($this->getValidates())){\n throw new \\Exception(\"dose this function must call setValidate() function first.\");\n }\n\n foreach($this->getValidates() as $k => $v){\n //$v = (ValidateData)$v;\n if (TextUtils::isEmpty($v->getInput()) && $v->getRequire() == true){\n $v->setResult(false);\n }else{\n $v->setResult(true);\n }\n\n if ($v->getResult() && !TextUtils::isEmpty($v->getInput())){\n switch($v->getValidator()){\n case ValidateData::VALIDATOR_CUSTOM:\n $v->setResult($this->check($v->getInput(),$v->getRegexp()));\n break;\n case ValidateData::VALIDATOR_COMPARE:\n $result = false;\n if (!TextUtils::isEmpty($v->getOperator())){\n switch ($v->getOperator()){\n case ValidateData::OPERATOR_EQUIVALENT:\n $result = $v->getInput() == $v->getTo();\n break;\n case ValidateData::OPERATOR_GREATER:\n $result = $v->getInput() > $v->getTo();\n break;\n case ValidateData::OPERATOR_LESS:\n $result = $v->getInput() < $v->getTo();\n break;\n case ValidateData::OPERATOR_EQUIVALENT_GREATER:\n $result = $v->getInput() >= $v->getTo();\n break;\n case ValidateData::OPERATOR_EQUIVALENT_LESS:\n $result = $v->getInput() <= $v->getTo();\n break;\n case ValidateData::OPERATOR_NOT_EQUIVALENT:\n $result = $v->getInput() != $v->getTo();\n break;\n }\n\n }\n $v->setResult($result);\n break;\n case ValidateData::VALIDATOR_LENGTH:\n $len = mb_strlen($v->getInput(),'UTF-8');\n $v->setResult($len >= $v->getMin());\n if ($v->getMax() > $v->getMin()){\n $v->setResult($len <= $v->getMax() && $len >= $v->getMin());\n }\n\n break;\n\n case ValidateData::VALIDATOR_RANGE:\n $v->setResult((int)$v->getInput() >= $v->getMin());\n if ($v->getMax() > $v->getMin()){\n $v->setResult((int)$v->getInput() <= $v->getMax() && (int)$v->getInput() >= $v->getMin());\n }\n\n break;\n default:\n $v->setResult($this->check($v->getInput(),$this->getValidator($v->getValidator())));\n break;\n }\n }\n }\n return $this->getError();\n }", "public function validate_feedback_data(){\n \n // validate step 1 data.\n \n // rating should be 1-5.\n if( ! in_array($this->post_data->get('rating'), range(1, 5)) ) $this->error_msg[] = 'Rating should be 1 to 5';\n \n // title should not be blank.\n if( trim($this->post_data->get('title')) == '' ) $this->error_msg[] = 'Title should not be blank';\n \n // feedback should not be blank.\n if( trim($this->post_data->get('feedback')) == '' ) $this->error_msg[] = 'Feedback should not be blank';\n \n // recommendation should be 1 or 0.\n if( ! in_array($this->post_data->get('recommend'), range(0, 1)) ) $this->error_msg[] = 'Invalid recommendation option';\n \n \n \n // validate step 2 data.\n \n // first name should not be blank.\n if( trim($this->post_data->get('first_name')) == '' ) $this->error_msg[] = 'First name should not be blank';\n \n // last name should not be blank.\n if( trim($this->post_data->get('last_name')) == '' ) $this->error_msg[] = 'Last name should not be blank';\n \n // email should not be blank.\n if( trim($this->post_data->get('email')) == '' ) $this->error_msg[] = 'Email should not be blank';\n \n // email should be valid.\n if( ! preg_match('/^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$/', $this->post_data->get('email')) ) $this->error_msg[] = 'Email should not be valid';\n \n // city should not be blank.\n if( trim($this->post_data->get('city')) == '' ) $this->error_msg[] = 'City should not be blank';\n \n // country should be somewhere from earth.\n $country = DB::table('Country')->where('code', '=', $this->post_data->get('country'))->get();\n if( empty( $country ) ) $this->error_msg[] = 'Invalid country';\n \n // permission shoulbe be 1 or 0.\n if( ! in_array($this->post_data->get('permission'), range(0, 1)) ) $this->error_msg[] = 'Invalid permission option';\n \n \n \n // validate hidden data.\n \n $company = new \\Company\\Repositories\\DBCompany;\n $company = $company->get_company_info( Config::get('application.subdomain') );\n \n // company id should be valid.\n if( $company->companyid != $this->post_data->get('company_id') ) $this->error_msg[] = 'Invalid company id';\n \n // site id should be valid.\n if( $company->siteid != $this->post_data->get('site_id') ) $this->error_msg[] = 'Invalid site id';\n \n \n \n // return true if thre's no error, false otherwise.\n return ( empty($this->error_msg) ? true : false );\n }" ]
[ "0.6410474", "0.62148154", "0.61932635", "0.6142784", "0.5984186", "0.5918877", "0.5875359", "0.58193713", "0.581505", "0.5740609", "0.5725442", "0.57217234", "0.5712102", "0.56930876", "0.56847066", "0.5679649", "0.5667135", "0.565881", "0.5657518", "0.5656773", "0.56491315", "0.56484634", "0.56171066", "0.559716", "0.559111", "0.55738914", "0.55716085", "0.55656815", "0.5561742", "0.55588573" ]
0.6550004
0
Add item to Compensation_Data value
public function addToCompensation_Data(\WorkdayWsdl\\StructType\Compensation_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Compensation_DataType) { throw new \InvalidArgumentException(sprintf('The Compensation_Data property can only contain items of type \WorkdayWsdl\\StructType\Compensation_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); } $this->Compensation_Data[] = $item; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addToCompensation_Detail_Data(\\WorkdayWsdl\\\\StructType\\Compensation_Detail_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Compensation_Detail_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Compensation_Detail_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Compensation_Detail_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Compensation_Detail_Data[] = $item;\n return $this;\n }", "public function append($item)\n {\n array_push($this->activeValue, $item);\n }", "public function addToCOBRA_Eligibility_Data(\\WorkdayWsdl\\\\StructType\\COBRA_Eligibility_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\COBRA_Eligibility_DataType) {\n throw new \\InvalidArgumentException(sprintf('The COBRA_Eligibility_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\COBRA_Eligibility_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->COBRA_Eligibility_Data[] = $item;\n return $this;\n }", "public function add() {\n $dataH['CustomerBankAccount'] = $_lib['sess']->get_companydef('BankAccount');\n $old_pattern = array(\"/[^0-9]/\");\n $new_pattern = array(\"\");\n $dataH['CustomerAccountPlanID'] = strtolower(preg_replace($old_pattern, $new_pattern , $_lib['sess']->get_companydef('OrgNumber')));\n }", "function addItemForUpdate($item) {\n $this->_update[$item->getId()] = $item;\n }", "public function addItem(Array $item)\n {\n $this->item[] = $item;\n }", "public function writeItem($item)\n {\n $this->data[] = $item;\n }", "public function onBeforeApplySave(&$data) {\n // require helper file\n JLoader::register('MdfuelHelperReceipts', JPATH_COMPONENT.'/helpers/receipts.php');\n $model = $this->getThisModel();\n $item = $model->getItem();\n\n $jinput = JFactory::getApplication()->input;\n $liters = $jinput->get('liters');\n $liter_prijs = $jinput->get('liter_prijs');\n $carid = $jinput->get('mdfuel_car_id');\n $fueltype = MdfuelHelperReceipts::getFuelType($carid);\n $tankbedrag = $liters * $liter_prijs;\n $data['tankbedrag'] = $tankbedrag;\n $data['fuel'] = $fueltype;\n return $data;\n}", "public function add($item)\n {\n $this->manuallyAddedData[] = $item;\n }", "public function add_deal($data_arr,&$validation_passed,&$new_transaction_id,&$err_arr){\n\t\tdie(\"NO LONGER USED\");\n \n }", "public function add()\n {\n $item = new stdClass();\n $item->item_id = null;\n $item->barcode = null;\n $item->price = null;\n $item->stock = null;\n $item->name = null;\n $item->category_id = null;\n $query_category = $this->categorys_m->get();\n $query_unit = $this->units_m->get();\n $unit[null] = '-Pilih-';\n foreach ($query_unit->result() as $u) {\n\n $unit[$u->unit_id] = $u->name;\n };\n $data = [\n 'page' => 'add',\n 'row' => $item,\n 'category' => $query_category,\n 'unit' => $unit,\n 'selectedunit' => null\n ];\n $this->template->load('template', 'product/item/item_add', $data);\n }", "function addToBatch($item, $values) {\n $item['rowValues'] = $values;\n $item['allowUpdate'] = $this->_allowEntityUpdate;\n $item['ignoreCase'] = $this->_ignoreCase;\n $this->_importQueueBatch[] = $item;\n }", "private function append($value)\n {\n \t$this->values[] = $value;\n }", "public function setModuleData(){\n\t\t/* variable initialization */\n\t\t$this->_strSchemaName\t.= \"_\".$this->getCompanyCode();\n\t\t$intRespone\t\t\t\t= \"\";\n\t\t\n\t\t/* Setting the Pokicy filed */\n\t\tif((isset($this->_strDataSet['policy'])) && (!empty($this->_strDataSet['policy']))){\n\t\t\t/* Iterating the loop */\n\t\t\tforeach($this->_strDataSet['policy'] as $strPlicyKey => $strPolicyValue){\n\t\t\t\t/* Decoding the value */\n\t\t\t\t$this->_strDataSet['policy'][$strPlicyKey]\t= getDecyptionValue($strPolicyValue);\n\t\t\t}\n\t\t\t/* Imploding the value */\n\t\t\t$this->_strDataSet['policy']\t\t= implode(\",\",$this->_strDataSet['policy']);\n\t\t}else{\n\t\t\t/* Setting the value */\n\t\t\t$this->_strDataSet['policy']\t= \"\";\n\t\t}\n\t\t\n\t\t/* Set the operation filter array */\n\t\t$strEventFilterArr \t= array(\n\t\t\t\t\t\t\t\t\t\t'table' \t=> $this->_strSchemaName,\n\t\t\t\t\t\t\t\t\t\t'data' \t\t=> $this->_strDataSet,\n\t\t\t\t\t\t\t\t\t\t'where' \t=> array('id' => $this->_strDataSet['foreign']),\n\t\t\t\t\t\t\t\t\t);\n\t\t/* removed unwanted variables */\n\t\tunset($strEventFilterArr['data']['foreign']);\n\t\t\n\t\t/* Perfomaning the addition operation */\n\t\tif($this->_strDataSet['foreign'] == 0){\n\t\t\t/* add new records */\n\t\t\t$intResultStatus = $this->_objDataOperation->setDataInTable($strEventFilterArr);\n\t\t/* Perfomaning the update operation */\n\t\t}else{\n\t\t\t/* update the existing records */\n\t\t\t$intResultStatus = $this->_objDataOperation->setUpdateData($strEventFilterArr);\n\t\t}\n\t\t/* removed used variables */\n\t\tunset($strResultArr);\n\t\t\n\t\t/* return the operation status */\n\t\treturn $intResultStatus;\n\t}", "private function cObjDataAddArray( $keyValue )\n {\n foreach ( $keyValue as $key => $value )\n {\n if ( empty( $key ) )\n {\n continue;\n }\n\n $this->pObj->cObj->data[ $key ] = $value;\n\n if ( !( $this->pObj->b_drs_map || $this->pObj->b_drs_warn ) )\n {\n continue;\n }\n\n if ( $value === null )\n {\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = $key . ' is null. Maybe this is an error!';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 2 );\n }\n }\n else\n {\n if ( $this->pObj->b_drs_map )\n {\n $prompt = 'Added to cObject[' . $key . ']: ' . $value;\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n $prompt = 'You can use the content in TypoScript with: field = ' . $key;\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n }\n }\n }\n }", "public function addToHas_Health_Insurance_Data(\\WorkdayWsdl\\\\StructType\\Has_Health_Insurance_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Has_Health_Insurance_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Has_Health_Insurance_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Has_Health_Insurance_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Has_Health_Insurance_Data[] = $item;\n return $this;\n }", "public function addDiscount(AdjustmentDataInterface $discount)\n {\n $this->discounts[] = $discount;\n }", "function addItem2DB($data = null)\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $result = $_POST['itemInfo'];\n echo $this->coupon_model->add($result);\n }\n }", "public function append($table, $item) {\r\n saprfc_table_append($this->fce, $table, array(\"LINE\" => \"\" . $item . \"\"));\r\n $this->arrayDebug['APPEND'][$table][] = $item;\r\n }", "public function addToResponse_Group(\\WorkdayWsdl\\\\StructType\\Workers_Compensation_Code_Response_GroupType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Workers_Compensation_Code_Response_GroupType) {\n throw new \\InvalidArgumentException(sprintf('The Response_Group property can only contain items of type \\WorkdayWsdl\\\\StructType\\Workers_Compensation_Code_Response_GroupType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Response_Group[] = $item;\n return $this;\n }", "public function appendEquipmentingItem($value)\n {\n return $this->append(self::EQUIPMENTING_ITEM, $value);\n }", "public function addDatas(\\RO\\Cmd\\ItemData $value){\n return $this->_add(5, $value);\n }", "private function addData ()\n {\n foreach ($this->data as $key=>$value)\n {\n $keys[] = $key;\n $values[] = $value;\n \n }\n $cols = implode($keys, \",\");\n $dataValues = \"'\".implode($values, \"','\").\"'\";\n $query = \"INSERT INTO `$this->tablename`($cols)VALUES($dataValues);\";\n \n $conn = $this->DB->conn;\n \n $sql = $conn->query($query);\n \n if($sql == TRUE) return TRUE;\n else \n {\n \n throw new Exception(\"Error : Data Not inserted to database :( \".$conn->error);\n \n }\n \n }", "public function AddData ($key, $value) {\n\t\t$this->data[$key] = $value;\t\t\t\t\n\t}", "public function addExpense($table, $data)\n {\n\n if (isset($data)) {\n $result=$this->dynamicInsert($table, $data);\n }\n }", "function addstock($uketoru_item, $uketoru_num){\n\tglobal $item;\n\tglobal $num_item;\n\t// echo $uketoru_item, '<br />', $uketoru_num, '<br />';\n\t// echo gettype($item), '<br />';\n\t# checking whether or not the item is in the data and its position\n\t$yes_no = in_array($uketoru_item, $item);\n\t$position = array_search($uketoru_item, $item);\n\t\n\t// echo 'in_array', '<br />' ,(boolean) $yes_no , '<br />','<br />';\n\t// echo 'position', '<br />', $position , '<br />';\n\n\t//echo $address;\n\tif($yes_no == 0){\n\t// $uketoru_item is not in array data \n\techo \"the item is not in the data.\",'<br />';\n\t# add the item in the data\n\tarray_push($item, $uketoru_item);\n\tarray_push($num_item, $uketoru_num);\n\t// echo $item[0],'<br />', $num_item[0],'<br />';\n\n\t}else{\n\t# $uketoru_item\n\t\"the item is in the data and is stocked.\";\n\t# add the stock on the item\n\t// echo \"yes_no\", '<br />', $yes_no, '<br />';\n\t$num_item[$position] = $num_item[$position] + $uketoru_num;\n\n\t}\n}", "final public function addItemGroupTechInCharge() {\n if (!empty($this->target_object)) {\n foreach ($this->target_object as $val) {\n if ($val->fields['groups_id_tech'] > 0) {\n $this->addForGroup(0, $val->fields['groups_id_tech']);\n }\n }\n }\n }", "function add()\n\t{\n\t\t$this->_updatedata();\n\t}", "function appendAllListOfValuesToItem(&$item) {\n $iter = $item->getMetadataIterator();\n $this->appendAllListOfValues($iter);\n }", "public function addData()\r\n {\r\n\r\n $this->datecreated = time();\r\n $sql = 'INSERT INTO ' . TABLE_PREFIX . 'stat_productstock (\r\n p_barcode,\r\n sd_value,\r\n sd_month,\r\n sd_year,\r\n day_1,\r\n day_2,\r\n day_3,\r\n day_4,\r\n day_5,\r\n day_6,\r\n day_7,\r\n day_8,\r\n day_9,\r\n day_10,\r\n day_11,\r\n day_12,\r\n day_13,\r\n day_14,\r\n day_15,\r\n day_16,\r\n day_17,\r\n day_18,\r\n day_19,\r\n day_20,\r\n day_21,\r\n day_22,\r\n day_23,\r\n day_24,\r\n day_25,\r\n day_26,\r\n day_27,\r\n day_28,\r\n day_29,\r\n day_30,\r\n day_31,\r\n sd_datecreated,\r\n sd_datemodified\r\n )\r\n VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';\r\n $rowCount = $this->db3->query($sql, array(\r\n (string)$this->pbarcode,\r\n (string)$this->value,\r\n (int)$this->month,\r\n (int)$this->year,\r\n (string)$this->day_1,\r\n (string)$this->day_2,\r\n (string)$this->day_3,\r\n (string)$this->day_4,\r\n (string)$this->day_5,\r\n (string)$this->day_6,\r\n (string)$this->day_7,\r\n (string)$this->day_8,\r\n (string)$this->day_9,\r\n (string)$this->day_10,\r\n (string)$this->day_11,\r\n (string)$this->day_12,\r\n (string)$this->day_13,\r\n (string)$this->day_14,\r\n (string)$this->day_15,\r\n (string)$this->day_16,\r\n (string)$this->day_17,\r\n (string)$this->day_18,\r\n (string)$this->day_19,\r\n (string)$this->day_20,\r\n (string)$this->day_21,\r\n (string)$this->day_22,\r\n (string)$this->day_23,\r\n (string)$this->day_24,\r\n (string)$this->day_25,\r\n (string)$this->day_26,\r\n (string)$this->day_27,\r\n (string)$this->day_28,\r\n (string)$this->day_29,\r\n (string)$this->day_30,\r\n (string)$this->day_31,\r\n (int)$this->datecreated,\r\n (int)$this->datemodified\r\n ))->rowCount();\r\n\r\n $this->id = $this->db3->lastInsertId();\r\n return $this->id;\r\n }" ]
[ "0.6699705", "0.55794066", "0.5439293", "0.5117364", "0.50710636", "0.50562865", "0.5034741", "0.49769795", "0.4965951", "0.49514467", "0.49439436", "0.49334455", "0.4895031", "0.48946083", "0.4886936", "0.48747206", "0.48504317", "0.4843837", "0.4838966", "0.48289162", "0.48129404", "0.48127496", "0.48047426", "0.480308", "0.479154", "0.47904706", "0.47820994", "0.47776878", "0.47732633", "0.47700456" ]
0.7193161
0
This method is responsible for validating the values passed to the setCompensation_Detail_Data method This method is willingly generated in order to preserve the oneline inline validation within the setCompensation_Detail_Data method
public static function validateCompensation_Detail_DataForArrayConstraintsFromSetCompensation_Detail_Data(array $values = array()) { $message = ''; $invalidValues = []; foreach ($values as $employee_DataTypeCompensation_Detail_DataItem) { // validation for constraint: itemType if (!$employee_DataTypeCompensation_Detail_DataItem instanceof \WorkdayWsdl\\StructType\Compensation_Detail_DataType) { $invalidValues[] = is_object($employee_DataTypeCompensation_Detail_DataItem) ? get_class($employee_DataTypeCompensation_Detail_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypeCompensation_Detail_DataItem), var_export($employee_DataTypeCompensation_Detail_DataItem, true)); } } if (!empty($invalidValues)) { $message = sprintf('The Compensation_Detail_Data property can only contain items of type \WorkdayWsdl\\StructType\Compensation_Detail_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues))); } unset($invalidValues); return $message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function writeDataValidity(): void\n {\n // Datavalidation collection\n $dataValidationCollection = $this->phpSheet->getDataValidationCollection();\n\n // Write data validations?\n if (!empty($dataValidationCollection)) {\n // DATAVALIDATIONS record\n $record = 0x01B2; // Record identifier\n $length = 0x0012; // Bytes to follow\n\n $grbit = 0x0000; // Prompt box at cell, no cached validity data at DV records\n $horPos = 0x00000000; // Horizontal position of prompt box, if fixed position\n $verPos = 0x00000000; // Vertical position of prompt box, if fixed position\n $objId = 0xFFFFFFFF; // Object identifier of drop down arrow object, or -1 if not visible\n\n $header = pack('vv', $record, $length);\n $data = pack('vVVVV', $grbit, $horPos, $verPos, $objId, count($dataValidationCollection));\n $this->append($header . $data);\n\n // DATAVALIDATION records\n $record = 0x01BE; // Record identifier\n\n foreach ($dataValidationCollection as $cellCoordinate => $dataValidation) {\n // options\n $options = 0x00000000;\n\n // data type\n $type = CellDataValidation::type($dataValidation);\n\n $options |= $type << 0;\n\n // error style\n $errorStyle = CellDataValidation::errorStyle($dataValidation);\n\n $options |= $errorStyle << 4;\n\n // explicit formula?\n if ($type == 0x03 && preg_match('/^\\\".*\\\"$/', $dataValidation->getFormula1())) {\n $options |= 0x01 << 7;\n }\n\n // empty cells allowed\n $options |= $dataValidation->getAllowBlank() << 8;\n\n // show drop down\n $options |= (!$dataValidation->getShowDropDown()) << 9;\n\n // show input message\n $options |= $dataValidation->getShowInputMessage() << 18;\n\n // show error message\n $options |= $dataValidation->getShowErrorMessage() << 19;\n\n // condition operator\n $operator = CellDataValidation::operator($dataValidation);\n\n $options |= $operator << 20;\n\n $data = pack('V', $options);\n\n // prompt title\n $promptTitle = $dataValidation->getPromptTitle() !== '' ?\n $dataValidation->getPromptTitle() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($promptTitle);\n\n // error title\n $errorTitle = $dataValidation->getErrorTitle() !== '' ?\n $dataValidation->getErrorTitle() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($errorTitle);\n\n // prompt text\n $prompt = $dataValidation->getPrompt() !== '' ?\n $dataValidation->getPrompt() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($prompt);\n\n // error text\n $error = $dataValidation->getError() !== '' ?\n $dataValidation->getError() : chr(0);\n $data .= StringHelper::UTF8toBIFF8UnicodeLong($error);\n\n // formula 1\n try {\n $formula1 = $dataValidation->getFormula1();\n if ($type == 0x03) { // list type\n $formula1 = str_replace(',', chr(0), $formula1);\n }\n $this->parser->parse($formula1);\n $formula1 = $this->parser->toReversePolish();\n $sz1 = strlen($formula1);\n } catch (PhpSpreadsheetException $e) {\n $sz1 = 0;\n $formula1 = '';\n }\n $data .= pack('vv', $sz1, 0x0000);\n $data .= $formula1;\n\n // formula 2\n try {\n $formula2 = $dataValidation->getFormula2();\n if ($formula2 === '') {\n throw new WriterException('No formula2');\n }\n $this->parser->parse($formula2);\n $formula2 = $this->parser->toReversePolish();\n $sz2 = strlen($formula2);\n } catch (PhpSpreadsheetException $e) {\n $sz2 = 0;\n $formula2 = '';\n }\n $data .= pack('vv', $sz2, 0x0000);\n $data .= $formula2;\n\n // cell range address list\n $data .= pack('v', 0x0001);\n $data .= $this->writeBIFF8CellRangeAddressFixed($cellCoordinate);\n\n $length = strlen($data);\n $header = pack('vv', $record, $length);\n\n $this->append($header . $data);\n }\n }\n }", "public static function validateCompensation_DataForArrayConstraintsFromSetCompensation_Data(array $values = array())\n {\n $message = '';\n $invalidValues = [];\n foreach ($values as $employee_DataTypeCompensation_DataItem) {\n // validation for constraint: itemType\n if (!$employee_DataTypeCompensation_DataItem instanceof \\WorkdayWsdl\\\\StructType\\Compensation_DataType) {\n $invalidValues[] = is_object($employee_DataTypeCompensation_DataItem) ? get_class($employee_DataTypeCompensation_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypeCompensation_DataItem), var_export($employee_DataTypeCompensation_DataItem, true));\n }\n }\n if (!empty($invalidValues)) {\n $message = sprintf('The Compensation_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Compensation_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));\n }\n unset($invalidValues);\n return $message;\n }", "public function validateDataInvoice(): void\n {\n $this->validarDatos($this->datos, $this->getRules('fe'));\n\n $this->validarDatosArray($this->datos->arrayOtrosTributos, 'tributos');\n\n /** @phpstan-ignore-next-line */\n if (property_exists($this->datos, 'arraySubtotalesIVA')) {\n $this->validarDatosArray((array) $this->datos->arraySubtotalesIVA, 'iva');\n }\n\n $this->validarDatosArray($this->datos->comprobantesAsociados, 'comprobantesAsociados');\n\n if ($this->ws === 'wsfe') {\n if (property_exists($this->datos, 'arrayOpcionales')) {\n $this->validarDatosArray((array) $this->datos->arrayOpcionales, 'opcionales');\n }\n } elseif ($this->ws === 'wsmtxca') {\n $this->validarDatosArray($this->datos->items, 'items');\n }\n }", "public function isValid($data) {\n //Remove Commas \n $data = str_replace(\",\", \"\", $data);\n \n $data['heatLossMethod']='percent';\n \n $precision = $this->mS->masterConversionList['temperature'][1][$this->mS->selected['temperature']][4];\n $iapws = new Steam_IAPWS();\n $maxTemp = $this->mS->ceil_dec($this->mS->localize($iapws->saturatedTemperature($this->mS->standardize($data['daPressure'], 'pressure')),'temperature'),$precision); \n \n if ($data['condReturnTemp']>=$maxTemp or $data['condReturnTemp']<=$this->mS->minTemperature()){\n $this->getElement('condReturnTemp')->addValidator('between', true, array('min' => $this->mS->minTemperature(), 'max' => $maxTemp, 'inclusive' => false));\n }\n \n \n $precision = $this->mS->masterConversionList['temperature'][1][$this->mS->selected['temperature']][4];\n $iapws = new Steam_IAPWS();\n $minTemp = $this->mS->ceil_dec($this->mS->localize($iapws->saturatedTemperature($this->mS->standardize($data['highPressure'],'pressure')),'temperature'),$precision);\n if ($data['boilerTemp']<$minTemp){\n $this->getElement('boilerTemp')\n ->addValidator('greaterThan', true, array('min' => $minTemp, 'messages' => '%value% is below the boiling temperature [%min%] for boiler pressure.'));\n }\n \n \n if ($data['headerCount']<3){\n $data['turbineHpMpOn'] = null;\n $data['turbineMpLpOn'] = null;\n $data['desuperHeatHpMp']=='No';\n if ($data['mpCondReturnRate']=='') $data['mpCondReturnRate'] = 0;\n if ($data['lpCondReturnRate']=='') $data['lpCondReturnRate'] = 0;\n }\n if ($data['headerCount']<2){\n $data['turbineHpLpOn'] = null;\n $data['desuperHeatMpLp']=='No';\n }\n \n if ($data['headerCount']==3){\n if($data['desuperHeatHpMp']=='Yes'){ \n $this->getElement('desuperHeatHpMpTemp')\n ->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => $this->mS->minTemperature(), 'max' => $this->mS->maxTemperature(), 'inclusive' => true));\n }\n }\n if ($data['headerCount']>=2){\n if($data['desuperHeatMpLp']=='Yes'){ \n $this->getElement('desuperHeatMpLpTemp')\n ->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => $this->mS->minTemperature(), 'max' => $this->mS->maxTemperature(), 'inclusive' => true)); \n }\n }\n\n \n if($data['blowdownHeatX']=='Yes'){ \n $this->getElement('blowdownHeatXTemp')\n ->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('greaterThan', true, array('min' => 0, 'max' => $this->mS->maxTemperature(), 'inclusive' => true));\n }\n \n foreach(Steam_Support::steamTurbineCodes() as $turbine){\n if ($data['turbine'.$turbine.'On']==1){\n $this->getElement('turbine'.$turbine.'IsoEff')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('Between', true, array('min' => ISOEFF_MIN, 'max' => ISOEFF_MAX));\n $this->getElement('turbine'.$turbine.'GenEff')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('Between', true, array('min' => GENEFF_MIN, 'max' => GENEFF_MAX));\n \n if ($turbine=='Cond'){\n $this->getElement('turbineCondOutletPressure')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => $this->mS->minVacuum(), 'max' => $this->mS->condVacuum(), 'inclusive' => true));\n }\n \n switch($data['turbine'.$turbine.'Method']){\n case 'fixedFlow':\n $this->getElement('turbine'.$turbine.'FixedFlow')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => false)); \n break;\n case 'flowRange':\n $this->getElement('turbine'.$turbine.'MinFlow')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $data['turbine'.$turbine.'MaxFlow'])); \n \n $this->getElement('turbine'.$turbine.'MaxFlow')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => false));\n break;\n\n case 'fixedPower':\n $this->getElement('turbine'.$turbine.'FixedPower')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('greaterThan', true, array('min' => 0)); \n break;\n case 'powerRange':\n $this->getElement('turbine'.$turbine.'MinPower')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('between', true, array('min' => 0, 'max' => $data['turbine'.$turbine.'MaxPower'])); \n \n $this->getElement('turbine'.$turbine.'MaxPower')->setRequired('true')\n ->addValidator($this->isFloat)\n ->addValidator('greaterThan', true, array('min' => 0)); \n break;\n\n case 'balanceHeader':\n break;\n }\n }\n }\n \n $this->getElement('hpSteamUsage')->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => true));\n \n $this->getElement('hpHeatLossPercent')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => HEATLOST_PERCENT_MIN, 'max' => HEATLOST_PERCENT_MAX, 'inclusive' => true));\n \n \n if ($data['headerCount']==3){\n $tmp = $this->getElement('mediumPressure')->setRequired(true)\n ->addValidator($this->isFloat,true);\n if (isset($data['highPressure'])) $tmp->addValidator('lessThan', true, array('max' => $data['highPressure'], 'messages' => 'Must be less than High Pressure.'));\n $tmp->addValidator('greaterThan', true, array('min' => $this->mS->minPressure()));\n $tmp = $this->getElement('lowPressure')->setRequired(true)\n ->addValidator($this->isFloat,true);\n if (isset($data['mediumPressure'])) $tmp->addValidator('lessThan', true, array('max' => $data['mediumPressure'], 'messages' => 'Must be less than Medium Pressure.'));\n $tmp->addValidator('greaterThan', true, array('min' => $this->mS->minPressure())); \n if (isset($data['lowPressure'])) $this->getElement('daPressure')->addValidator('lessThan', true, array('max' => $data['lowPressure'], 'messages' => 'Must be below lowest steam header pressure.'));\n \n \n $this->getElement('mpSteamUsage')->setRequired(true)\n ->addValidator($this->isFloat,true);\n $this->getElement('mpSteamUsage')->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => true)); \n \n $this->getElement('mpCondReturnRate')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => 0, 'max' => 100, 'inclusive' => true));\n \n $this->getElement('mpHeatLossPercent')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => HEATLOST_PERCENT_MIN, 'max' => HEATLOST_PERCENT_MAX, 'inclusive' => true)); \n }\n \n if ($data['headerCount']==2){\n \n $tmp = $this->getElement('lowPressure')->setRequired(true)\n ->addValidator($this->isFloat,true);\n if (isset($data['highPressure'])) $tmp->addValidator('lessThan', true, array('max' => $data['highPressure'], 'messages' => 'Must be less than High Pressure.'));\n $tmp->addValidator('greaterThan', true, array('min' => $this->mS->minPressure())); \n if (isset($data['lowPressure'])) $this->getElement('daPressure')->addValidator('lessThan', true, array('max' => $data['lowPressure'], 'messages' => 'Must be below lowest steam header pressure.'));\n \n }\n \n if ($data['headerCount']>=2){\n \n $this->getElement('lpSteamUsage')->setRequired(true)\n ->addValidator($this->isFloat,true);\n \n $this->getElement('lpSteamUsage')->addValidator('between', true, array('min' => $this->mS->minMassflow(), 'max' => $this->mS->maxMassflow(), 'inclusive' => true)); \n \n $this->getElement('lpCondReturnRate')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => 0, 'max' => 100, 'inclusive' => true));\n \n $this->getElement('lpHeatLossPercent')->setRequired(true)\n ->addValidator($this->isFloat,true)\n ->addValidator('between', true, array('min' => HEATLOST_PERCENT_MIN, 'max' => HEATLOST_PERCENT_MAX, 'inclusive' => true)); \n }\n \n if ($data['headerCount']==1){ \n if (isset($data['highPressure'])) $this->getElement('daPressure')->addValidator('lessThan', true, array('max' => $data['highPressure'], 'messages' => 'Must be below lowest steam header pressure.')); \n \n } \n return parent::isValid($data);\n }", "function validateData($array){\n\t\t$errorFlag=true;\n\t\t$currentDate = getdate(); //get current date\n\t\tif (trim($array['FName'])==''){\n\t\t\t$this->appendErrorMsg(\"First Name is required\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['LName'])==''){\n\t\t\t$this->appendErrorMsg(\"Last Name is required\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['License_No'])==''){\n\t\t\t$this->appendErrorMsg(\"License number is required\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['Birthdate'])==''){\n\t\t\t$this->appendErrorMsg(\"Birthdate cannot be blank\");\n\t\t\t$errorFlag = false;\n\t\t} else if (!preg_match(\"/^[0-9]{4,4}[-][0-1]{1,2}?[0-9]{1,2}[-][0-3]{1,2}?[0-9]{1,2}$/\", $array['Birthdate'])){\n\t\t\t$this->appendErrorMsg(\"Date should be in the format yyyy-mm-dd\");\n\t\t\t$errorFlag = false;\n\t\t} else if (getAge($array['Birthdate'])<16 || getAge($array['Birthdate'])> 100){\n\t\t\t$this->appendErrorMsg(\"Sorry, we do not provide coverage to drivers under the age of 16 or over the age of 100\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['PostalCode'])==''){\n\t\t\t$this->appendErrorMsg(\"Postal Code is required\");\n\t\t\t$errorFlag = false;\n\t\t} else if (!preg_match(\"/^[A-Za-z]{1}\\d{1}[A-Za-z]{1}\\d{1}[A-Za-z]{1}\\d{1}$/\",$array['PostalCode'])){\n\t\t\t$this->appendErrorMsg(\"Postal Code should be in the format A1B2C3\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (trim($array['Phone'])==''){\n\t\t\t$this->appendErrorMsg(\"Phone number is required\");\n\t\t\t$errorFlag = false;\n\t\t} else if (!preg_match(\"/^[0-9]{10}$/\",$array['Phone'])){\n\t\t\t$this->appendErrorMsg(\"Phone number must be in the format xxx-xxx-xxxx or xxxxxxxxx\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\tif (!preg_match(\"/^[0-9]{1,}$/\", $array['Years_Exp'])){\n\t\t\t$this->appendErrorMsg(\"Please input the number of Years of Experience\");\n\t\t\t$errorFlag = false;\n\t\t}\n\t\treturn $errorFlag;\n\t}", "public function actionMedicalindividualvalidation() {\n\t\tif (\\Yii::$app->SessionCheck->isclientLogged () == true) \t\t// checking logged session\n\t\t{\n\t\t\t/**\n\t\t\t * Declaring Session Variables**\n\t\t\t */\n\t\t\t$this->layout = 'main';\n\t\t\t$session = \\Yii::$app->session;\n\t\t\t$logged_user_id = $session ['client_user_id'];\n\t\t\t\n\t\t\t$encrypt_component = new EncryptDecryptComponent ();\n\t\t\t$common_validation_component = new CommonValidationsComponent ();\n\t\t\t$validation_rule_ids = array ();\n\t\t\t$element_ids = array ();\n\t\t\t$arrvalidation_errors = array ();\n\t\t\t$arrvalidations = array ();\n\t\t\t$arrperiodvalidation_errors = array ();\n\t\t\t$get_company_id = \\Yii::$app->request->get ();\n\t\t\t\n\t\t\tif (! empty ( $get_company_id )) {\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Encrypted company ID*\n\t\t\t\t */\n\t\t\t\t$encrypt_company_id = $get_company_id ['c_id'];\n\t\t\t\t$encrypt_medical_id = $get_company_id ['medical_id'];\n\t\t\t\t\n\t\t\t\tif (! empty ( $encrypt_company_id ) && ! empty ( $encrypt_medical_id )) {\n\t\t\t\t\t$company_id = $encrypt_component->decryptUser ( $encrypt_company_id ); // Decrypted company Id\n\t\t\t\t\t$medical_id = $encrypt_component->decryptUser ( $encrypt_medical_id ); // Decrypted payroll Id\n\t\t\t\t\t \n\t\t\t\t\t// / getting company details\n\t\t\t\t\t$company_details = TblAcaCompanies::find ()->select ( 'company_client_number,company_name' )->where ( 'company_id = :company_id', [ \n\t\t\t\t\t\t\t'company_id' => $company_id \n\t\t\t\t\t] )->one ();\n\t\t\t\t\t\n\t\t\t\t\t// / getting payroll details\n\t\t\t\t\t\n\t\t\t\t\t$medical_details = TblAcaMedicalData::find ()->where ( [ \n\t\t\t\t\t\t\t'employee_id' => $medical_id \n\t\t\t\t\t] )->One ();\n\t\t\t\t\t\n\t\t\t\t\tif (! empty ( $medical_details )) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// check for medical employee period\n\t\t\t\t\t\t\n\t\t\t\t\t\t$enrollment_periods = TblAcaMedicalEnrollmentPeriod::find ()->where ( [ \n\t\t\t\t\t\t\t\t'employee_id' => $medical_id \n\t\t\t\t\t\t] )->All ();\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*for($i = 104; $i <= 139; $i ++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$validation_rule_ids [] = $i;\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\n\t\t\t\t\t\t$validation_rule_ids = [ \n\t\t\t\t\t\t\t'104',\n\t\t\t\t\t\t\t'105',\n\t\t\t\t\t\t\t'106',\n\t\t\t\t\t\t\t'107',\n\t\t\t\t\t\t\t'108',\n\t\t\t\t\t\t\t'109',\n\t\t\t\t\t\t\t'110',\n\t\t\t\t\t\t\t'111',\n\t\t\t\t\t\t\t'112',\n\t\t\t\t\t\t\t'113',\n\t\t\t\t\t\t\t'114',\n\t\t\t\t\t\t\t'115',\n\t\t\t\t\t\t\t'116',\n\t\t\t\t\t\t\t'117',\n\t\t\t\t\t\t\t'118',\n\t\t\t\t\t\t\t'119',\n\t\t\t\t\t\t\t'120',\n\t\t\t\t\t\t\t'121',\n\t\t\t\t\t\t\t'122',\n\t\t\t\t\t\t\t'123',\n\t\t\t\t\t\t\t'124',\n\t\t\t\t\t\t\t'125',\n\t\t\t\t\t\t\t'126',\n\t\t\t\t\t\t\t'127',\n\t\t\t\t\t\t\t'128',\n\t\t\t\t\t\t\t'129',\n\t\t\t\t\t\t\t'130',\n\t\t\t\t\t\t\t'131',\n\t\t\t\t\t\t\t'132',\n\t\t\t\t\t\t\t'133',\n\t\t\t\t\t\t\t'134',\n\t\t\t\t\t\t\t'135',\n\t\t\t\t\t\t\t'136',\n\t\t\t\t\t\t\t'137',\n\t\t\t\t\t\t\t'138',\n\t\t\t\t\t\t\t'139',\n\t\t\t\t\t\t\t'153',\n\t\t\t\t\t\t\t'154',\n\t\t\t\t\t\t\t'155',\n\t\t\t\t\t\t\t'156'\n\t\t\t\t\t\t];\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor($i = 1; $i <= 15; $i ++) {\n\t\t\t\t\t\t\t$element_ids [] = $i;\n\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 * *Check for validation errors***\n\t\t\t\t\t\t */\n\t\t\t\t\t\t$validation_results = TblAcaMedicalValidationLog::find ()->select ( 'validation_rule_id, is_validated' )->where ( [ \n\t\t\t\t\t\t\t\t'company_id' => $company_id,\n\t\t\t\t\t\t\t\t'employee_id' => $medical_id,\n\t\t\t\t\t\t\t\t'validation_rule_id' => $validation_rule_ids,\n\t\t\t\t\t\t\t\t'is_validated' => 0 \n\t\t\t\t\t\t] )->All ();\n\t\t\t\t\t\t\n\t\t\t\t\t\t$validation_period_results = TblAcaMedicalEnrollmentPeriodValidationLog::find ()->select ( 'period_id, validation_rule_id, is_validated' )->where ( [ \n\t\t\t\t\t\t\t\t'company_id' => $company_id,\n\t\t\t\t\t\t\t\t'employee_id' => $medical_id,\n\t\t\t\t\t\t\t\t'validation_rule_id' => $validation_rule_ids,\n\t\t\t\t\t\t\t\t'is_validated' => 0 \n\t\t\t\t\t\t] )->All ();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (! empty ( $validation_results ) || ! empty ( $validation_period_results )) {\n\t\t\t\t\t\t\tif (! empty ( $validation_results )) {\n\t\t\t\t\t\t\t\tforeach ( $validation_results as $validations ) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$arrvalidations [] = $validations->validation_rule_id;\n\t\t\t\t\t\t\t\t\t$arrvalidation_errors [$validations->validation_rule_id] ['error_message'] = $validations->validationRule->error_message;\n\t\t\t\t\t\t\t\t\t$arrvalidation_errors [$validations->validation_rule_id] ['error_code'] = $validations->validationRule->error_code;\n\t\t\t\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\t\tif (! empty ( $validation_period_results )) {\n\t\t\t\t\t\t\t\tforeach ( $validation_period_results as $period_validations ) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$arrperiodvalidation_errors [$period_validations->period_id] [$period_validations->validation_rule_id] ['error_message'] = $period_validations->validationRule->error_message;\n\t\t\t\t\t\t\t\t\t$arrperiodvalidation_errors [$period_validations->period_id] [$period_validations->validation_rule_id] ['error_code'] = $period_validations->validationRule->error_code;\n\t\t\t\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\t\t$plan_classes = TblAcaPlanCoverageType::find ()->select ( 'plan_class_id, plan_class_number' )->where ( [ \n\t\t\t\t\t\t\t\t\t'company_id' => $company_id \n\t\t\t\t\t\t\t] )->all ();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * Get all errors for general info *\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t$get_post_validation_errors = TblAcaValidationRules::find ()->select ( 'rule_id, error_code, error_message' )->where ( [ \n\t\t\t\t\t\t\t\t\t'rule_id' => $validation_rule_ids \n\t\t\t\t\t\t\t] )->All ();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (! empty ( $get_post_validation_errors )) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tforeach ( $get_post_validation_errors as $errors ) {\n\t\t\t\t\t\t\t\t\t$post_validation_errors [$errors->rule_id] ['error_message'] = $errors->error_message;\n\t\t\t\t\t\t\t\t\t$post_validation_errors [$errors->rule_id] ['error_code'] = $errors->error_code;\n\t\t\t\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\t\t$person_type_Data = ArrayHelper::map ( TblAcaLookupOptions::find ()->where ( [ \n\t\t\t\t\t\t\t\t\t'=',\n\t\t\t\t\t\t\t\t\t'code_id',\n\t\t\t\t\t\t\t\t\t10 \n\t\t\t\t\t\t\t] )->andwhere ( [ \n\t\t\t\t\t\t\t\t\t'<>',\n\t\t\t\t\t\t\t\t\t'lookup_status',\n\t\t\t\t\t\t\t\t\t2 \n\t\t\t\t\t\t\t] )->all (), 'lookup_id', 'lookup_value' );\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$employee_post_details = \\Yii::$app->request->post ();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (! empty ( $employee_post_details )) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// begin transaction\n\t\t\t\t\t\t\t\t$transaction = \\Yii::$app->db->beginTransaction ();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$medical_details->attributes = $employee_post_details ['TblAcaMedicalData'];\n\t\t\t\t\t\t\t\t\t//$medical_details->dob =date('Y-m-d',strtotime($employee_post_details ['TblAcaMedicalData']['dob']));\n\t\t\t\t\t\t\t\t\tif(!empty($employee_post_details ['TblAcaMedicalData']['ssn']))\n\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$medical_details->ssn = preg_replace ( '/[^0-9\\']/', '', $employee_post_details ['TblAcaMedicalData']['ssn'] ); \n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t// checking for duplicate SSN\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$duplicate_ssn = TblAcaMedicalData::find ()->select ( 'ssn' )->where ('ssn='.$medical_details->ssn )->andWhere ( 'employee_id <> ' . $medical_id )->andWhere ( 'company_id='.$company_id )->All ();\n\t\t\t\t\t\t\t\t\t\tif(!empty($duplicate_ssn)){\n\t\t\t\t\t\t\t\t\t\t\tthrow new \\Exception ( 'SSN already exists' );\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\t\t//print_r($medical_details->attributes);die();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif ($medical_details->save () && $medical_details->validate ()) {\n\t\t\t\t\t\t\t\t\t\tif (! empty ( $employee_post_details ['TblAcaMedicalEnrollmentPeriod'] )) {\n\t\t\t\t\t\t\t\t\t\t\t$period_details = $employee_post_details ['TblAcaMedicalEnrollmentPeriod'];\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tforeach ( $period_details as $key => $details ) {\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$coverage_start_date = '';\n\t\t\t\t\t\t\t\t\t\t\t\t$coverage_end_date = '';\n\t\t\t\t\t\t\t\t\t\t\t\t$person_type = '';\n\t\t\t\t\t\t\t\t\t\t\t\t$ssn = '';\n\t\t\t\t\t\t\t\t\t\t\t\t$dob = '';\n\t\t\t\t\t\t\t\t\t\t\t\t$dependent_dob = '';\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\tif (! empty ( $details ['coverage_start_date'] )) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$coverage_start_date = $details ['coverage_start_date'];\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\t\tif (! empty ( $details ['coverage_end_date'] )) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$coverage_end_date = $details ['coverage_end_date'];\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\t\tif (! empty ( $details ['person_type'] )) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$person_type = $details ['person_type'];\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\t\tif (! empty ( $details ['ssn'] )) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$ssn = preg_replace ( '/[^0-9\\']/', '',$details ['ssn']);\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\t\tif (! empty ( $details ['dependent_dob'] )) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$dependent_dob = $details ['dependent_dob'];\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\t\tif (! empty ( $details ['dob'] )) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$dob = date('Y-m-d',strtotime($details ['dob']));\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\t\t$encrypted_period_id = $key;\n\t\t\t\t\t\t\t\t\t\t\t\t$decrypted_period_id = $encrypt_component->decryptUser ( $encrypted_period_id );\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$individual_period_details = TblAcaMedicalEnrollmentPeriod::find ()->where ( [ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'period_id' => $decrypted_period_id \n\t\t\t\t\t\t\t\t\t\t\t\t] )->One ();\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\tif (! empty ( $individual_period_details )) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$individual_period_details->coverage_start_date = $coverage_start_date;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$individual_period_details->coverage_end_date = $coverage_end_date;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$individual_period_details->person_type = $person_type;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$individual_period_details->ssn = $ssn;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$individual_period_details->dependent_dob = $dependent_dob;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$individual_period_details->dob = $dob;\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\tif ($individual_period_details->save () && $individual_period_details->validate ()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$period_result ['success'] = 'success';\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\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$arrerrors = $individual_period_details->getFirstErrors ();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$errorstring = '';\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 * *****Converting error into string*******\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\tforeach ( $arrerrors as $key => $value ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$errorstring .= $value . '<br>';\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\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthrow new \\Exception ( $errorstring );\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}\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// validate general plan info\n\t\t\t\t\t\t\t\t\t\t$validate_results = $common_validation_component->ValidateMedical ( $company_id, $medical_id, $element_ids );\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\tif (! empty ( $validate_results ['error'] )) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthrow new \\Exception ( $validate_results ['error'] );\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t$validation_success = $validate_results ['success'];\n\t\t\t\t\t\t\t\t\t\t\t$validation_period_success = $validate_results ['period_success'];\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif (empty ( $validation_success ) && empty ( $validation_period_success )) {\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\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tTblAcaMedicalValidationLog::deleteAll ( 'company_id = :company_id AND employee_id = :employee_id', [ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t':company_id' => $company_id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t':employee_id' => $medical_id \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\t\tTblAcaMedicalEnrollmentPeriodValidationLog::deleteAll ( 'company_id = :company_id AND employee_id = :employee_id', [ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t':company_id' => $company_id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t':employee_id' => $medical_id \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\t\t$model_company_validation_log =TblAcaCompanyValidationStatus::find()->where(['company_id'=>$company_id])->one();\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\tif(!empty($model_company_validation_log))\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$model_company_validation_log->created_by = $logged_user_id;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$model_company_validation_log->modified_by = $logged_user_id;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$model_company_validation_log->medical_info_date = date('Y-m-d H:i:s');\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$model_company_validation_log->save();\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\t\t$transaction->commit (); // commit the transaction\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\\Yii::$app->session->setFlash ( 'success', 'Value updated successfully' );\n\t\t\t\t\t\t\t\t\t\t\t\treturn $this->redirect ( array (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'/client/validateforms/medicalvalidation?c_id=' . $encrypt_company_id \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\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t$arrvalidation_errors = array ();\n\t\t\t\t\t\t\t\t\t\t\t\t$arrperiodvalidation_errors = array ();\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\tif (! empty ( $validation_success )) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tforeach ( $validation_success as $key => $value ) {\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\tif ($value == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$arrvalidation_errors [$key] ['error_message'] = $post_validation_errors [$key] ['error_message'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$arrvalidation_errors [$key] ['error_code'] = $post_validation_errors [$key] ['error_code'];\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}\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\t\tif (! empty ( $validation_period_success )) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tforeach ( $validation_period_success as $key => $validations ) {\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\tforeach ( $validations as $validation_rule_id => $is_validated ) {\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\tif ($is_validated == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$arrperiodvalidation_errors [$key] [$validation_rule_id] ['error_message'] = $post_validation_errors [$validation_rule_id] ['error_message'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$arrperiodvalidation_errors [$key] [$validation_rule_id] ['error_code'] = $post_validation_errors [$validation_rule_id] ['error_code'];\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}\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\t\t// check for payroll employee period\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$enrollment_periods = TblAcaMedicalEnrollmentPeriod::find ()->where ( [ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'employee_id' => $medical_id \n\t\t\t\t\t\t\t\t\t\t\t\t] )->All ();\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$transaction->rollBack ();\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} else {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$arrerrors = $medical_details->getFirstErrors ();\n\t\t\t\t\t\t\t\t\t\t$errorstring = '';\n\t\t\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t\t\t * *****Converting error into string*******\n\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\t\t\tforeach ( $arrerrors as $key => $value ) {\n\t\t\t\t\t\t\t\t\t\t\t$errorstring .= $value . '<br>';\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\tthrow new \\Exception ( $errorstring );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch ( \\Exception $e ) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$msg = $e->getMessage ();\n\t\t\t\t\t\t\t\t\t\\Yii::$app->session->setFlash ( 'error', $msg );\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// rollback transaction\n\t\t\t\t\t\t\t\t\t$transaction->rollback ();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\treturn $this->redirect ( array (\n\t\t\t\t\t\t\t\t\t\t\t'/client/validateforms/medicalindividualvalidation?c_id=' . $encrypt_company_id . '&medical_id=' . $encrypt_medical_id \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\t\n\t\t\t\t\t\t\treturn $this->render ( 'medicalindividualvalidation', array (\n\t\t\t\t\t\t\t\t\t'company_detals' => $company_details,\n\t\t\t\t\t\t\t\t\t'medical_details' => $medical_details,\n\t\t\t\t\t\t\t\t\t'encrypt_company_id' => $encrypt_company_id,\n\t\t\t\t\t\t\t\t\t'arrvalidations' => $arrvalidations,\n\t\t\t\t\t\t\t\t\t'arrvalidation_errors' => $arrvalidation_errors,\n\t\t\t\t\t\t\t\t\t'enrollment_periods' => $enrollment_periods,\n\t\t\t\t\t\t\t\t\t'arrperiodvalidation_errors' => $arrperiodvalidation_errors,\n\t\t\t\t\t\t\t\t\t'plan_classes' => $plan_classes,\n\t\t\t\t\t\t\t\t\t'encoded_company_id' => $encrypt_company_id,\n\t\t\t\t\t\t\t\t\t'encrypt_medical_id' => $encrypt_medical_id,\n\t\t\t\t\t\t\t\t\t'person_type_Data' => $person_type_Data \n\t\t\t\t\t\t\t) );\n\t\t\t\t\t\t}else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\\Yii::$app->session->setFlash ( 'success', 'No issues in the employee.' );\n\t\t\t\t\t\t\treturn $this->redirect ( array (\n\t\t\t\t\t\t\t'/client/validateforms/medicalvalidation?c_id='.$encrypt_company_id \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} else {\n\t\t\t\t\treturn $this->redirect ( array (\n\t\t\t\t\t\t\t'/client/companies' \n\t\t\t\t\t) );\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t\\Yii::$app->SessionCheck->clientlogout (); // client logout\n\t\t\t\n\t\t\treturn $this->goHome ();\n\t\t}\n\t}", "public function sanitiseData(): void\n {\n $this->firstLine = self::sanitiseString($this->firstLine);\n self::validateExistsAndLength($this->firstLine, 1000);\n $this->secondLine = self::sanitiseString($this->secondLine);\n self::validateExistsAndLength($this->secondLine, 1000);\n $this->town = self::sanitiseString($this->town);\n self::validateExistsAndLength($this->town, 255);\n $this->postcode = self::sanitiseString($this->postcode);\n self::validateExistsAndLength($this->postcode, 10);\n $this->county = self::sanitiseString($this->county);\n self::validateExistsAndLength($this->county, 255);\n $this->country = self::sanitiseString($this->country);\n self::validateExistsAndLength($this->country, 255);\n }", "private function validRow($arrayToCheck) {\n if (isset($arrayToCheck) && !empty($arrayToCheck)) {\n //check number values\n if (count($arrayToCheck) == COUNT_VALUES) {\n //check values needed to put in database\n \n //Check subscriber\n if (!intval($arrayToCheck[2])) {\n $this->arrMsgError[] = array(\n 'data' => $arrayToCheck,\n 'error' => 'Subscriber is not an integer'\n );\n return false;\n }\n\n //Check date\n list($day, $month, $year) = explode('/', $arrayToCheck[3]);\n if(!checkdate($month,$day,$year)) {\n $this->arrMsgError[] = array(\n 'data' => $arrayToCheck,\n 'error' => 'Date is wrong'\n );\n return false;\n }\n\n //Check hour\n if (!preg_match(\"/^(?:2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$/\", $arrayToCheck[4])) {\n $this->arrMsgError[] = array(\n 'data' => $arrayToCheck,\n 'error' => 'Time is wrong'\n );\n return false;\n }\n\n //Check Consumption\n if (preg_match(\"/^(?:2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$/\", $arrayToCheck[5])) {\n $type = 'call';\n $parsed = date_parse($arrayToCheck[5]);\n $consumption = $parsed['hour'] * 3600 + $parsed['minute'] * 60 + $parsed['second'];\n }\n elseif ($arrayToCheck[6] == '0.0' || intval($arrayToCheck[6])) {\n $type = 'data';\n $consumption = intval($arrayToCheck[6]);\n }\n elseif ($arrayToCheck[5]=='' || $arrayToCheck[6]=='') {\n $type = 'sms';\n $consumption = '';\n }\n else {\n $this->arrMsgError[] = array(\n 'data' => $arrayToCheck,\n 'error' => 'Consumption values are not good'\n );\n return false;\n }\n\n //return array to insert in database \n //array(subscriber, datetime, consumption, $type)\n $date = date(\"Y-m-d H:i:s\", strtotime(str_replace('/', '-', $arrayToCheck[3]).' '.$arrayToCheck[4]));\n return array(\n 'subscriber' => $arrayToCheck[2],\n 'date' => $date,\n 'consumption' => $consumption,\n 'type' => $type);\n } \n else\n return false;\n }\n else {\n return false;\n }\n }", "abstract public function validateData();", "function ValidateData()\n\t\t{\n\t\t\t$theValidator = new CValidator();\n\t\t\tif(!$this->arrValidator || !is_array($this->arrValidator) )\n\t\t\t{\n\t\t\t\t$this->arrValidator = array();\n\t\t\t}\n\t\t\tforeach($this->arrValidator as $key=>$value)\n\t\t\t{\n\t\t\t\tif($this->$key == '')\n\t\t\t\t{\n\t\t\t\t\t// Kiem tra xem co phai bat buoc khong?\n\t\t\t\t\tif(isset($this->arrRequired[$key]) && ($this->arrRequired[$key] == 1))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!$theValidator->CheckPatt($value, $this->$key))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn(true);\n\t\t}", "function addValidationRules(){\n\t\t$this->registerRule('validDate','function','validDate');\n\t\t$this->registerRule('validPeriod','function','validPeriod');\n\t\t$this->registerRule('existe','function','existe');\n\t\t$this->registerRule('number_range','function','number_range');\n\t\t$this->registerRule('validInterval','function','validInterval');\n\t\t$this->registerRule('couple_not_null','function','couple_not_null');\n\t\t$this->registerRule('validParam','function','validParam');\n\t\t$this->registerRule('validUnit_existe','function','validUnit_existe');\n\t\t$this->registerRule('validUnit_required','function','validUnit_required');\n\t\t$this->addRule('dats_title','Data description: Metadata informative title is required','required');\n\t\t$this->addRule('dats_title','Data description: Dataset name exceeds the maximum length allowed (100 characters)','maxlength',100);\t\n\t\t$this->addRule('dats_date_begin','Temporal coverage: Date begin is not a date','validDate');\n\t\t$this->addRule('dats_date_end','Temporal coverage: Date end is not a date','validDate');\n\t\t$this->addRule(array('dats_date_begin','dats_date_end'),'Temporal coverage: Date end must be after date begin','validPeriod');\n\t\tif ($this->dataset->dats_id == 0){\n\t\t\t$this->addRule('dats_title','Data description: A dataset with the same title exists in the database','existe',array('dataset','dats_title'));\n\t\t}\n\t\t\n\t\tif (isset($this->dataset->data_policy) && !empty($this->dataset->data_policy) && $this->dataset->data_policy->data_policy_id > 0){\n\t\t\t$this->getElement('new_data_policy')->setAttribute('onfocus','blur()');\n\t\t}\n\t\t$this->addRule('new_data_policy','Data use information: Data policy exceeds the maximum length allowed (100 characters)','maxlength',100);\t\n\t\t$attrs = array();\n\t\tif (isset($this->dataset->database) && !empty($this->dataset->database) && $this->dataset->database->database_id > 0){\n\t\t\t//$this->getElement('new_database')->setAttribute('onfocus','blur()');\n\t\t\t//$this->getElement('new_db_url')->setAttribute('onfocus','blur()');\n\t\t\t$this->disableElement('new_database');\n\t\t\t$this->disableElement('new_db_url');\n\t\t}\n\t\t/*else {\n\t\t\t//$this->addRule('new_database','A database with the same title already exists','existe',array('database','database_name'));\n\t\t}*/\n\t\t$this->addRule('new_database','Data use information: Database name exceeds the maximum length allowed (250 characters)','maxlength',250);\n\t\t$this->addRule('new_db_url','Data use information: Database url exceeds the maximum length allowed (250 characters)','maxlength',250);\t\n\t\t//Formats\n\t\tfor ($i = 0; $i < $this->dataset->nbFormats; $i++){\n\t\t\t$this->addRule('data_format_'.$i,'Data use information: Format name '.($i+1).' exceeds the maximum length allowed (100 characters)','maxlength',100);\n\t\t\tif (isset($this->dataset->data_formats[$i]) && !empty($this->dataset->data_formats[$i]) && $this->dataset->data_formats[$i]->data_format_id > 0){\n\t\t\t\t//$this->getElement('new_data_format_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t$this->disableElement('new_data_format_'.$i);\n\t\t\t}\n\t\t\t/*else{\n\t\t\t\t//$this->addRule('new_data_format_'.$i,'Data format '.($i+1).': This format already exists in the database','existe',array('data_format','data_format_name'));\n\t\t\t}*/\n\t\t}\n\t\t//Contacts\n\t\t$this->addRule('pi_0','Contact 1 is required','couple_not_null',array($this,'pi_name_0'));\n\t\t$this->addRule('organism_0','Contact 1: organism is required','couple_not_null',array($this,'org_sname_0'));\n\t\t$this->addRule('email1_0','Contact 1: email1 is required','required');\t\n\t\tfor ($i = 0; $i < $this->dataset->nbPis; $i++){\n\t\t\t$this->addRule('pi_name_'.$i,'Contact '.($i+1).': Name exceeds the maximum length allowed (250 characters)','maxlength',250);\n\t\t\t$this->addRule('email1_'.$i,'Contact '.($i+1).': email1 is incorrect','email');\n\t\t\t$this->addRule('email2_'.$i,'Contact '.($i+1).': email2 is incorrect','email');\n\t\t\t$this->addRule('org_fname_'.$i,'Contact '.($i+1).': Organism full name exceeds the maximum length allowed (250 characters)','maxlength',250);\n\t\t\t$this->addRule('org_sname_'.$i,'Contact '.($i+1).': Organism short name exceeds the maximum length allowed (50 characters)','maxlength',50);\n\t\t\t$this->addRule('org_url_'.$i,'Contact '.($i+1).': Organism url exceeds the maximum length allowed (250 characters)','maxlength',250);\n\t\t\t$this->addRule('email1_'.$i,'Contact '.($i+1).': email1 exceeds the maximum length allowed (250 characters)','maxlength',250);\n\t\t\t$this->addRule('email2_'.$i,'Contact '.($i+1).': email2 exceeds the maximum length allowed (250 characters)','maxlength',250);\n\t\t\tif (isset($this->dataset->originators[$i]) && !empty($this->dataset->originators[$i]) && $this->dataset->originators[$i]->pers_id > 0){\n\t\t\t\t//$this->getElement('pi_name_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t//$this->getElement('email1_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t//$this->getElement('email2_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t//$this->getElement('organism_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t$this->disableElement('pi_name_'.$i);\n\t\t\t\t$this->disableElement('email1_'.$i);\n\t\t\t\t$this->disableElement('email2_'.$i);\n\t\t\t\t$this->disableElement('organism_'.$i);\n\t\t\t}\n\t\t\t/*else{\n\t\t\t\t//$this->addRule('pi_name_'.$i,'Contact '.($i+1).': A contact with the same name is already present in the database. Select it in the drop-down list.','existe',array('personne','pers_name'));\n\t\t\t}*/\n\t\t\tif (isset($this->dataset->originators[$i]->organism) && !empty($this->dataset->originators[$i]->organism) && $this->dataset->originators[$i]->organism->org_id > 0){\n\t\t\t\t//$this->getElement('org_sname_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t//$this->getElement('org_fname_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t//$this->getElement('org_url_'.$i)->setAttribute('onfocus','blur()');\n\t\t\t\t$this->disableElement('org_sname_'.$i);\n\t\t\t\t$this->disableElement('org_fname_'.$i);\n\t\t\t\t$this->disableElement('org_url_'.$i);\n\t\t\t}\n\t\t\tif ($i != 0){\n\t\t\t\t$this->addRule('pi_name_'.$i,'Contact '.($i+1).': email1 is required','contact_email_required',array($this,$i));\n\t\t\t\t$this->addRule('pi_name_'.$i,'Contact '.($i+1).': organism is required','contact_organism_required',array($this,$i));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Add validation rules\n\t\t$this->AddModValidationRules();\n\t\t$this->AddSatValidationRules();\n\t\t$this->AddInstruValidationRules();\n\n\t\t//$this->addRule('grid_type','Coverage: Grid type exceeds the maximum length allowed (100 characters)','maxlength',100);\n\t\t$this->addVaValidationRulesResolution('Coverage');\n\t\t//$this->addRule('sensor_resol_temp','Coverage: Temporal resolution is incorrect','validDate');\n\t\t$this->addRule('sensor_resol_tmp','Coverage: temporal resolution is incorrect','regex',\"/^[0-9]{2}[:][0-9]{2}[:][0-9]{2}$/\");\n\t\t$this->addValidationRulesGeoCoverage();\n\t\t//PARAMETER\n\t\tfor ($i = 0; $i < $this->dataset->nbVars; $i++){\n\t\t\t$this->addValidationRulesVariable($i,$i,'Parameter '.($i+1));\n\t\t}\n\t\t\n\t}", "private function checkData(){\n $this->datavalidator->addValidation('article_title','req',$this->text('e10'));\n $this->datavalidator->addValidation('article_title','maxlen=250',$this->text('e11'));\n $this->datavalidator->addValidation('article_prologue','req',$this->text('e12'));\n $this->datavalidator->addValidation('article_prologue','maxlen=3000',$this->text('e13'));\n $this->datavalidator->addValidation('keywords','regexp=/^[^,\\s]{3,}(,? ?[^,\\s]{3,})*$/',$this->text('e32'));\n $this->datavalidator->addValidation('keywords','maxlen=500',$this->text('e33'));\n if($this->data['layout'] != 'g' && $this->data['layout'] != 'h'){ //if article is gallery dont need content\n $this->datavalidator->addValidation('article_content','req',$this->text('e14'));\n }\n $this->datavalidator->addValidation('id_menucategory','req',$this->text('e15'));\n $this->datavalidator->addValidation('id_menucategory','numeric',$this->text('e16'));\n $this->datavalidator->addValidation('layout','req',$this->text('e17'));\n $this->datavalidator->addValidation('layout','maxlen=1',$this->text('e18'));\n if($this->languager->getLangsCount() > 1){\n $this->datavalidator->addValidation('lang','req',$this->text('e19'));\n $this->datavalidator->addValidation('lang','numeric',$this->text('e20'));\n }\n //if user cannot publish articles check publish values\n if($_SESSION[PAGE_SESSIONID]['privileges']['articles'][2] == '1') {\n $this->datavalidator->addValidation('published','req',$this->text('e21'));\n $this->datavalidator->addValidation('published','numeric',$this->text('e22'));\n $this->datavalidator->addValidation('publish_date','req',$this->text('e23'));\n }\n $this->datavalidator->addValidation('topped','req',$this->text('e24'));\n $this->datavalidator->addValidation('topped','numeric',$this->text('e25'));\n $this->datavalidator->addValidation('homepage','req',$this->text('e30'));\n $this->datavalidator->addValidation('homepage','numeric',$this->text('e31'));\n $this->datavalidator->addValidation('showsocials','req',$this->text('e26'));\n $this->datavalidator->addValidation('showsocials','numeric',$this->text('e27'));\n \n $result = $this->datavalidator->ValidateData($this->data);\n if(!$result){\n $errors = $this->datavalidator->GetErrors();\n return array('state'=>'error','data'=> reset($errors));\n }else{\n return true;\n }\n }", "public function _getValidationErrors()\n {\n $errs = parent::_getValidationErrors();\n $validationRules = $this->_getValidationRules();\n if (null !== ($v = $this->getAccident())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ACCIDENT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getAccidentType())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ACCIDENT_TYPE] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getAdditionalMaterials())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_ADDITIONAL_MATERIALS, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getCondition())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_CONDITION, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getCoverage())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_COVERAGE, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getCreated())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_CREATED] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getDiagnosis())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_DIAGNOSIS, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getEnterer())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ENTERER] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getException())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_EXCEPTION, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getFacility())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_FACILITY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getFundsReserve())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_FUNDS_RESERVE] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getIdentifier())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_IDENTIFIER, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getInterventionException())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_INTERVENTION_EXCEPTION, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getItem())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_ITEM, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getMissingTeeth())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_MISSING_TEETH, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getOrganization())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ORGANIZATION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getOriginalPrescription())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ORIGINAL_PRESCRIPTION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getOriginalRuleset())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ORIGINAL_RULESET] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPatient())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PATIENT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPayee())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PAYEE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPrescription())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PRESCRIPTION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPriority())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PRIORITY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getProvider())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PROVIDER] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getReferral())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_REFERRAL] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getRuleset())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_RULESET] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSchool())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SCHOOL] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getTarget())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_TARGET] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getType())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_TYPE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getUse())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_USE] = $fieldErrs;\n }\n }\n if (isset($validationRules[self::FIELD_ACCIDENT])) {\n $v = $this->getAccident();\n foreach($validationRules[self::FIELD_ACCIDENT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ACCIDENT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ACCIDENT])) {\n $errs[self::FIELD_ACCIDENT] = [];\n }\n $errs[self::FIELD_ACCIDENT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ACCIDENT_TYPE])) {\n $v = $this->getAccidentType();\n foreach($validationRules[self::FIELD_ACCIDENT_TYPE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ACCIDENT_TYPE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ACCIDENT_TYPE])) {\n $errs[self::FIELD_ACCIDENT_TYPE] = [];\n }\n $errs[self::FIELD_ACCIDENT_TYPE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ADDITIONAL_MATERIALS])) {\n $v = $this->getAdditionalMaterials();\n foreach($validationRules[self::FIELD_ADDITIONAL_MATERIALS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ADDITIONAL_MATERIALS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ADDITIONAL_MATERIALS])) {\n $errs[self::FIELD_ADDITIONAL_MATERIALS] = [];\n }\n $errs[self::FIELD_ADDITIONAL_MATERIALS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CONDITION])) {\n $v = $this->getCondition();\n foreach($validationRules[self::FIELD_CONDITION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_CONDITION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CONDITION])) {\n $errs[self::FIELD_CONDITION] = [];\n }\n $errs[self::FIELD_CONDITION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_COVERAGE])) {\n $v = $this->getCoverage();\n foreach($validationRules[self::FIELD_COVERAGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_COVERAGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_COVERAGE])) {\n $errs[self::FIELD_COVERAGE] = [];\n }\n $errs[self::FIELD_COVERAGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CREATED])) {\n $v = $this->getCreated();\n foreach($validationRules[self::FIELD_CREATED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_CREATED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CREATED])) {\n $errs[self::FIELD_CREATED] = [];\n }\n $errs[self::FIELD_CREATED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DIAGNOSIS])) {\n $v = $this->getDiagnosis();\n foreach($validationRules[self::FIELD_DIAGNOSIS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_DIAGNOSIS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DIAGNOSIS])) {\n $errs[self::FIELD_DIAGNOSIS] = [];\n }\n $errs[self::FIELD_DIAGNOSIS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ENTERER])) {\n $v = $this->getEnterer();\n foreach($validationRules[self::FIELD_ENTERER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ENTERER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ENTERER])) {\n $errs[self::FIELD_ENTERER] = [];\n }\n $errs[self::FIELD_ENTERER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXCEPTION])) {\n $v = $this->getException();\n foreach($validationRules[self::FIELD_EXCEPTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_EXCEPTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXCEPTION])) {\n $errs[self::FIELD_EXCEPTION] = [];\n }\n $errs[self::FIELD_EXCEPTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_FACILITY])) {\n $v = $this->getFacility();\n foreach($validationRules[self::FIELD_FACILITY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_FACILITY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_FACILITY])) {\n $errs[self::FIELD_FACILITY] = [];\n }\n $errs[self::FIELD_FACILITY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_FUNDS_RESERVE])) {\n $v = $this->getFundsReserve();\n foreach($validationRules[self::FIELD_FUNDS_RESERVE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_FUNDS_RESERVE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_FUNDS_RESERVE])) {\n $errs[self::FIELD_FUNDS_RESERVE] = [];\n }\n $errs[self::FIELD_FUNDS_RESERVE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IDENTIFIER])) {\n $v = $this->getIdentifier();\n foreach($validationRules[self::FIELD_IDENTIFIER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_IDENTIFIER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IDENTIFIER])) {\n $errs[self::FIELD_IDENTIFIER] = [];\n }\n $errs[self::FIELD_IDENTIFIER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_INTERVENTION_EXCEPTION])) {\n $v = $this->getInterventionException();\n foreach($validationRules[self::FIELD_INTERVENTION_EXCEPTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_INTERVENTION_EXCEPTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_INTERVENTION_EXCEPTION])) {\n $errs[self::FIELD_INTERVENTION_EXCEPTION] = [];\n }\n $errs[self::FIELD_INTERVENTION_EXCEPTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ITEM])) {\n $v = $this->getItem();\n foreach($validationRules[self::FIELD_ITEM] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ITEM, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ITEM])) {\n $errs[self::FIELD_ITEM] = [];\n }\n $errs[self::FIELD_ITEM][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MISSING_TEETH])) {\n $v = $this->getMissingTeeth();\n foreach($validationRules[self::FIELD_MISSING_TEETH] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_MISSING_TEETH, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MISSING_TEETH])) {\n $errs[self::FIELD_MISSING_TEETH] = [];\n }\n $errs[self::FIELD_MISSING_TEETH][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ORGANIZATION])) {\n $v = $this->getOrganization();\n foreach($validationRules[self::FIELD_ORGANIZATION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ORGANIZATION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ORGANIZATION])) {\n $errs[self::FIELD_ORGANIZATION] = [];\n }\n $errs[self::FIELD_ORGANIZATION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ORIGINAL_PRESCRIPTION])) {\n $v = $this->getOriginalPrescription();\n foreach($validationRules[self::FIELD_ORIGINAL_PRESCRIPTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ORIGINAL_PRESCRIPTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ORIGINAL_PRESCRIPTION])) {\n $errs[self::FIELD_ORIGINAL_PRESCRIPTION] = [];\n }\n $errs[self::FIELD_ORIGINAL_PRESCRIPTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ORIGINAL_RULESET])) {\n $v = $this->getOriginalRuleset();\n foreach($validationRules[self::FIELD_ORIGINAL_RULESET] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ORIGINAL_RULESET, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ORIGINAL_RULESET])) {\n $errs[self::FIELD_ORIGINAL_RULESET] = [];\n }\n $errs[self::FIELD_ORIGINAL_RULESET][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PATIENT])) {\n $v = $this->getPatient();\n foreach($validationRules[self::FIELD_PATIENT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PATIENT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PATIENT])) {\n $errs[self::FIELD_PATIENT] = [];\n }\n $errs[self::FIELD_PATIENT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PAYEE])) {\n $v = $this->getPayee();\n foreach($validationRules[self::FIELD_PAYEE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PAYEE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PAYEE])) {\n $errs[self::FIELD_PAYEE] = [];\n }\n $errs[self::FIELD_PAYEE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PRESCRIPTION])) {\n $v = $this->getPrescription();\n foreach($validationRules[self::FIELD_PRESCRIPTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PRESCRIPTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PRESCRIPTION])) {\n $errs[self::FIELD_PRESCRIPTION] = [];\n }\n $errs[self::FIELD_PRESCRIPTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PRIORITY])) {\n $v = $this->getPriority();\n foreach($validationRules[self::FIELD_PRIORITY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PRIORITY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PRIORITY])) {\n $errs[self::FIELD_PRIORITY] = [];\n }\n $errs[self::FIELD_PRIORITY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PROVIDER])) {\n $v = $this->getProvider();\n foreach($validationRules[self::FIELD_PROVIDER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PROVIDER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PROVIDER])) {\n $errs[self::FIELD_PROVIDER] = [];\n }\n $errs[self::FIELD_PROVIDER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_REFERRAL])) {\n $v = $this->getReferral();\n foreach($validationRules[self::FIELD_REFERRAL] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_REFERRAL, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_REFERRAL])) {\n $errs[self::FIELD_REFERRAL] = [];\n }\n $errs[self::FIELD_REFERRAL][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_RULESET])) {\n $v = $this->getRuleset();\n foreach($validationRules[self::FIELD_RULESET] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_RULESET, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_RULESET])) {\n $errs[self::FIELD_RULESET] = [];\n }\n $errs[self::FIELD_RULESET][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SCHOOL])) {\n $v = $this->getSchool();\n foreach($validationRules[self::FIELD_SCHOOL] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_SCHOOL, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SCHOOL])) {\n $errs[self::FIELD_SCHOOL] = [];\n }\n $errs[self::FIELD_SCHOOL][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TARGET])) {\n $v = $this->getTarget();\n foreach($validationRules[self::FIELD_TARGET] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_TARGET, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TARGET])) {\n $errs[self::FIELD_TARGET] = [];\n }\n $errs[self::FIELD_TARGET][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TYPE])) {\n $v = $this->getType();\n foreach($validationRules[self::FIELD_TYPE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_TYPE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TYPE])) {\n $errs[self::FIELD_TYPE] = [];\n }\n $errs[self::FIELD_TYPE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_USE])) {\n $v = $this->getUse();\n foreach($validationRules[self::FIELD_USE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_USE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_USE])) {\n $errs[self::FIELD_USE] = [];\n }\n $errs[self::FIELD_USE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CONTAINED])) {\n $v = $this->getContained();\n foreach($validationRules[self::FIELD_CONTAINED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_CONTAINED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CONTAINED])) {\n $errs[self::FIELD_CONTAINED] = [];\n }\n $errs[self::FIELD_CONTAINED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXTENSION])) {\n $v = $this->getExtension();\n foreach($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXTENSION])) {\n $errs[self::FIELD_EXTENSION] = [];\n }\n $errs[self::FIELD_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n $v = $this->getModifierExtension();\n foreach($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_MODIFIER_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n $errs[self::FIELD_MODIFIER_EXTENSION] = [];\n }\n $errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TEXT])) {\n $v = $this->getText();\n foreach($validationRules[self::FIELD_TEXT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_TEXT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TEXT])) {\n $errs[self::FIELD_TEXT] = [];\n }\n $errs[self::FIELD_TEXT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ID])) {\n $v = $this->getId();\n foreach($validationRules[self::FIELD_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ID])) {\n $errs[self::FIELD_ID] = [];\n }\n $errs[self::FIELD_ID][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IMPLICIT_RULES])) {\n $v = $this->getImplicitRules();\n foreach($validationRules[self::FIELD_IMPLICIT_RULES] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_IMPLICIT_RULES, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IMPLICIT_RULES])) {\n $errs[self::FIELD_IMPLICIT_RULES] = [];\n }\n $errs[self::FIELD_IMPLICIT_RULES][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_LANGUAGE])) {\n $v = $this->getLanguage();\n foreach($validationRules[self::FIELD_LANGUAGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_LANGUAGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_LANGUAGE])) {\n $errs[self::FIELD_LANGUAGE] = [];\n }\n $errs[self::FIELD_LANGUAGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_META])) {\n $v = $this->getMeta();\n foreach($validationRules[self::FIELD_META] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_META, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_META])) {\n $errs[self::FIELD_META] = [];\n }\n $errs[self::FIELD_META][$rule] = $err;\n }\n }\n }\n return $errs;\n }", "function _prepare_validation()\n\t{\n\t\t$this->load->library('form_validation');\t\n\t\t$this->form_validation->set_error_delimiters('<div class=\"error\">', '</div>');\n\t\t//Setting Validation Rule\t\n\t\t$this->form_validation->set_rules('samity_id','Code','trim|required|xss_clean|max_length[100]');\n\t\t$this->form_validation->set_rules('cbo_samity_day','Samity Day','trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('txt_effective_date','Effective Date','trim|required|max_length[10]|is_date|xss_clean|callback_check_samity_effective_date');\t\n\t}", "function isDataValid() \n {\n return true;\n }", "public function validateDetails($attribute,$params)\n {\n if (count($this->orderDetails) == 0) {\n $this->addError('orderDetails', 'Order Details need to be entered');\n }\n }", "protected function prepareForValidation()\n {\n $merge = [];\n\n if ($this->valtotal) {\n $merge['valtotal'] = Format::strToFloat($this->valtotal);\n }\n\n $this->merge($merge);\n }", "private function validateDescriptiveRecord()\n {\n if (! preg_match($this->bsbRegex, $this->bsb)) {\n throw new Exception('Descriptive record bsb is invalid. Required format is 000-000.');\n }\n\n if (! preg_match('/^[\\d]{0,9}$/', $this->accountNumber)) {\n throw new Exception('Descriptive record account number is invalid. Must be up to 9 digits only.');\n }\n\n if (! preg_match('/^[A-Z]{3}$/', $this->bankName)) {\n throw new Exception('Descriptive record bank name is invalid. Must be capital letter abbreviation of length 3.');\n }\n\n if (! preg_match('/^[A-Za-z\\s+]{0,26}$/', $this->userName)) {\n throw new Exception('Descriptive record user name is invalid. Must be letters only and up to 26 characters long.');\n }\n\n if (! preg_match('/^[\\d]{6}$/', $this->directEntryUserId)) {\n throw new Exception('Descriptive record direct entiry user ID is invalid. Must be 6 digits long.');\n }\n\n if (! preg_match('/^[A-Za-z\\s]{0,12}$/', $this->description)) {\n throw new Exception('Descriptive record description is invalid. Must be letters only and up to 12 characters long.');\n }\n }", "public function check_data()\n {\n parent::check_data();\n\n if(empty($this->build_notifications))\n {\n throw new exception('<strong>Data missing: Notifications</strong>');\n }\n\n if(empty($this->build_batch_reference))\n {\n throw new exception('<strong>Data missing: Batch References</strong>');\n }\n }", "protected function validate() {\r\n if ($this->getBaseAmount() <= 0)\r\n $this->errors->add(\"The base amount of alicuota must be greater than 0.\");\r\n// \t\t\telse\r\n// \t\t\t{\r\n// \t\t\t\t$relativeError = (($this->getTaxAmount() / $this->getBaseAmount() * 100) - $this->getTaxPercent());\r\n// \t\t\t\t$relativeError = $relativeError / $this->getTaxPercent();\r\n// \t\t\t\t$relativeError = NumberDataTypeHelper::truncate($relativeError, 2);\r\n// \t\t\t\tif (abs($relativeError) > 0.01)\r\n// \t\t\t\t\t$this->errors->add(\"The base and tax amount do not match with the alicuota ({$this->getName()}). Diference: $relativeError\");\r\n// \t\t\t}\r\n }", "private function validateLicenseData()\n {\n\n // error_log('LicenseEmail : '.print_r($this->getLicenseEmail(), 1));\n // error_log('LicenseProduct : '.print_r($this->getLicenseProduct(), 1));\n // error_log('LicenseSecretKey : '.print_r($this->getLicenseSecretKey(), 1));\n }", "public function validate() {\r\n // Name - this is required\r\n if ($this->description == '') {\r\n $this->errors[] = 'Description is required';\r\n } \r\n \r\n // Category number - must be a number\r\n if (!is_numeric($this->category)) {\r\n $this->category = 0;\r\n } \r\n \r\n // Item number - must be a number\r\n if (!is_numeric($this->item)) {\r\n $this->item = 0;\r\n } \r\n }", "public function rules()\n {\n return array(\n array('pagination, bundleSize, publicationDate, deliveryDate', 'required'),\n array('pagination, bundleSize', 'numerical'),\n array('orderDetails', 'validateDetails'),\n );\n }", "public function normalizeData()\n {\n if (is_numeric($this->Streetname2)) {\n $this->HouseNumber = $this->Streetname2;\n $this->Streetname2 = \"\";\n }\n\n// Sometimes people will input - To mean Idfk why are you asking me to input this?\n if ($this->Phone && strlen($this->Phone) < 3) {\n $this->addMessage($this->getFormatedMessage(\"Invalid Phone [$this->Phone] ignoring\"));\n $this->Phone = '';\n }\n\n if ($this->State && strlen($this->State) < 2) {\n $this->addMessage($this->getFormatedMessage(\"Invalid State [$this->State] ignoring\"));\n $this->State = '';\n }\n\n if ($this->CompanyName && strlen($this->CompanyName) < 3) {\n $this->addMessage($this->getFormatedMessage(\"Invalid CompanyName[$this->CompanyName] ignoring \"));\n $this->CompanyName = '';\n }\n\n $this->Description = $this->escapeTextData($this->Description);\n if ($this->Description && strlen($this->Description) > 255) {\n $this->Description = substr($this->Description, 0, 255);\n\n //Make sure we are not sending a broken special char\n $descChars = str_split($this->Description); \n for ($i = 254; $i > 251; --$i) {\n if ($descChars[$i] == '&') {\n $this->Description = substr($this->Description, 0, $i);\n }\n }\n }\n\n if($this->Description && strlen($this->Description) < 3) {\n $this->addMessage($this->getFormatedMessage(\"Invalid description $this->Description ignoring \"));\n $this->Description = ''; \n }\n }", "public function validationData()\n {\n $all = parent::validationData();\n $all['bank-info'] = Purifier::clean($all['bank-info']);\n $all['delivery'] = Purifier::clean($all['delivery']);\n return $all;\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}", "public function validate($data) {\n\n\t\t$this->validationErrors = [];\n\n\t\t$amount = (float)$data['amount'];\n\t\tif ($amount <= 0) {\n\t\t\t$this->validationErrors['error_amount'] = true;\n\t\t}\n\n\t\t// Personal data should be either all blank or all set:\n\t\tif ($this->wantsReceipt($data)) {\n\t\t\tif (empty($data['data_privacy_statement_accepted'])) {\n\t\t\t\t$this->validationErrors['error_data_privacy_statement_accepted'] = true;\n\t\t\t}\n\t\t\tif ($amount < 50) {\n\t\t\t\t$this->validationErrors['error_donation_too_small_for_receipt'] = true;\n\t\t\t}\n\t\t\tif (empty($data['donation_firstname'])) {\n\t\t\t\t$this->validationErrors['error_donation_firstname'] = true;\n\t\t\t}\n\t\t\tif (empty($data['donation_lastname'])) {\n\t\t\t\t$this->validationErrors['error_donation_lastname'] = true;\n\t\t\t}\n\t\t\tif (empty($data['donation_street_address'])) {\n\t\t\t\t$this->validationErrors['error_donation_street_address'] = true;\n\t\t\t}\n\t\t\tif (!preg_match('/^[0-9]{5}$/', $data['donation_zip'])) {\n\t\t\t\t$this->validationErrors['error_donation_zip'] = true;\n\t\t\t}\n\t\t\tif (empty($data['donation_city'])) {\n\t\t\t\t$this->validationErrors['error_donation_city'] = true;\n\t\t\t}\n\t\t\tif (empty($data['donation_country'])) {\n\t\t\t\t$this->validationErrors['error_donation_country'] = true;\n\t\t\t}\n\t\t}\n\n\t\treturn empty($this->validationErrors);\n\t}", "protected function fine_validation()\n {\n if (is_superadmin_loggedin()) {\n $this->form_validation->set_rules('branch_id', translate('branch'), 'required');\n }\n $this->form_validation->set_rules('group_id', translate('group_name'), 'trim|required');\n $this->form_validation->set_rules('fine_type_id', translate('fees_type'), 'trim|required|callback_check_feetype');\n $this->form_validation->set_rules('fine_type', translate('fine_type'), 'trim|required');\n $this->form_validation->set_rules('fine_value', translate('fine') . \" \" . translate('value'), 'trim|required|numeric|greater_than[0]');\n $this->form_validation->set_rules('fee_frequency', translate('late_fee_frequency'), 'trim|required');\n }", "private function isValidProfileInformation($user_fulldata,$application){\n $validation_array = $this->getValidationArray($application);\n\n $user_reg_validation = $validation_array['users_reg'];\n $guardian_validation = $validation_array['guardian'];\n $qualifications_validation = $validation_array['qualifications'];\n $qualification_error_msg = $validation_array['qualifications']['DEGREE_ID_MSG'];\n $or_qualifications_validation = $validation_array['or_qualifications']['OR_DEGREE_ID'];\n $or_qualification_error_msg = $validation_array['or_qualifications']['OR_DEGREE_ID_MSG'];\n\n $users_reg = $user_fulldata['users_reg'];\n $guardian = $user_fulldata['guardian'];\n $qualifications = $user_fulldata['qualifications'];\n\n\n\n if($users_reg['IS_CNIC_PASS']=='P'){\n $user_reg_validation = array_merge($user_reg_validation,$validation_array['PASSPORT']);\n }else{\n $user_reg_validation = array_merge($user_reg_validation,$validation_array['CNIC']);\n }\n\n $error = \"\";\n foreach($user_reg_validation as $column=>$value){\n\n\n if(preg_match(\"/\".$value['regex'].\"/\", $users_reg[$column])){\n\n }else{\n $error.=\"<div class='text-danger'>{$value['error_msg']}</div>\";\n\n }\n }\n\n foreach($guardian_validation as $column=>$value){\n\n\n if(preg_match(\"/\".$value['regex'].\"/\", $guardian[$column])){\n\n }else{\n $error.=\"<div class='text-danger'>{$value['error_msg']}</div>\";\n }\n }\n \n foreach($qualifications as $qual){\n\n foreach($qualifications_validation['DEGREE_ID'] as $k=>$val){\n if($qual['DEGREE_ID']==$val){\n unset($qualifications_validation['DEGREE_ID'][$k]);\n unset($qualification_error_msg[$k]);\n\n break;\n }\n }\n }\n foreach ($qualification_error_msg as $error_msg){\n $error.=\"<div class='text-danger'>{$error_msg}</div>\";\n }\n\n\n if(is_array($or_qualifications_validation)){\n $bool = true;\n foreach($qualifications as $qual){\n\n foreach($or_qualifications_validation as $val){\n if($qual['DEGREE_ID']==$val){\n $bool = false;\n break;\n }\n }\n }\n\n if($bool){\n $error.=\"<div class='text-danger'>{$or_qualification_error_msg}</div>\";\n }\n\n }\n return $error;\n //prePrint($qualification_error_msg);\n\n }", "private function PREPARE_VALIDATION_RESULTS()\r\r {\r\r $this->PREPARE_OBJECT_VARIABLE_METHOD(); \r\r $this->READ_FIELDS();\r\r \r\r foreach($this->_ready_fields as $key => $fields)\r\r {\r\r # SET THE ALIAS FOR EACH FIELD\r\r $this->_object[$key]['ALIAS'] = (isset($fields['ALIAS'])) ? $fields['ALIAS'] : $key; \r\r \r\r # IF VALUE IS NOT NULL\r\r if(isset($fields['REQUIRED']) && $this->_object[$key]['VALUE']===''){\r\r $this->_results[$key]['REQUIRED'] = (strlen($fields['REQUIRED']) > 1 ) ? $fields['REQUIRED'] : $this->_object[$key]['ALIAS'].' '.$this->_error['REQUIRED'];\r\r }\r\r \r\r # IF VALUE IS NOT NUMERIC\r\r if( isset($fields['NUMERIC']) && !is_numeric($this->_object[$key]['VALUE']) ){\r\r $this->_results[$key]['NUMERIC'] = (strlen($fields['NUMERIC'])>1 ? $fields['NUMERIC'] :$this->_object[$key]['ALIAS'].' '.$this->_error['NUMERIC']);\r\r }\r\r \r\r # IF VALUE IS A VALID EMAIL\r\r if(isset($fields['EMAIL']) && !$this->checkEmail($this->_object[$key]['VALUE'])){\r\r $this->_results[$key]['EMAIL'] = (strlen($fields['EMAIL'])>1 ? $fields['EMAIL'] :$this->_object[$key]['ALIAS'].' '.$this->_error['EMAIL']);\r\r }\r\r \r\r # IF VALUE HAS A SPECIFIC LENGTH\r\r if(isset($fields['LENGTH'])){\r\r \r\r if(array_key_exists('EQUAL', $fields['LENGTH']) && !(($fields['LENGTH']['EQUAL']) == strlen($this->_object[$key]['VALUE'])))\r\r {\r\r $this->_results[$key]['LENGTH'] =isset($fields['LENGTH']['ERROR'])? $fields['LENGTH']['ERROR']:$this->_object[$key]['ALIAS'].' '.$this->_error['LENGTH']['EQUAL'].' '.$fields['LENGTH']['EQUAL'].' characters';\r\r }\r\r # GREATER THAN \r\r else if(array_key_exists('GREAT', $fields['LENGTH']) && !(strlen($this->_object[$key]['VALUE']) > ($fields['LENGTH']['GREAT'])))\r\r {\r\r $this->_results[$key]['LENGTH'] =isset($fields['LENGTH']['ERROR'])? $fields['LENGTH']['ERROR'] :$this->_object[$key]['ALIAS'].' '.$this->_error['LENGTH']['GREAT'].' '.$fields['LENGTH']['GREAT'].' characters';\r\r }\r\r # GREATER THAN EQUAL TO \r\r else if(array_key_exists('GREAT_E', $fields['LENGTH']) && !(strlen($this->_object[$key]['VALUE'])>=($fields['LENGTH']['GREAT_E'])))\r\r {\r\r $this->_results[$key]['LENGTH'] =isset($fields['LENGTH']['ERROR'])? $fields['LENGTH']['ERROR'] :$this->_object[$key]['ALIAS'].' '.$this->_error['LENGTH']['GREAT_E'].' '.$fields['LENGTH']['GREAT_E'].' characters';\r\r }\r\r # LESS THAN \r\r else if(array_key_exists('LESS', $fields['LENGTH']) && !(strlen($this->_object[$key]['VALUE'])<($fields['LENGTH']['LESS'])))\r\r {\r\r $this->_results[$key]['LENGTH'] =isset($fields['LENGTH']['ERROR'])? $fields['LENGTH']['ERROR'] :$this->_object[$key]['ALIAS'].' '.$this->_error['LENGTH']['LESS'].' '.$fields['LENGTH']['LESS'].' characters';\r\r }\r\r # LESS THAN EQUAL TO \r\r else if(array_key_exists('LESS_E', $fields['LENGTH']) && !(strlen($this->_object[$key]['VALUE'])<=($fields['LENGTH']['LESS_E'])))\r\r {\r\r $this->_results[$key]['LENGTH'] =isset($fields['LENGTH']['ERROR'])? $fields['LENGTH']['ERROR'] :$this->_object[$key]['ALIAS'].' '.$this->_error['LENGTH']['LESS_E'].' '.$fields['LENGTH']['LESS_E'].' characters';\r\r }\r\r }\r\r \r\r # IF A FIELD IS EQUAL TO ANOTHER FIELD \r\r if(isset($fields['COMPARE'])){\r\r \r\r if(is_array($fields['COMPARE']))\r\r {\r\r if($this->_object[$key]['VALUE']!==$this->_object[$fields['COMPARE']['WITH']]['VALUE']){ \r\r $this->_results[$key]['COMPARE'] = isset($fields['COMPARE']['ERROR']) ? $fields['COMPARE']['ERROR'] : $this->_object[$key]['ALIAS'] .' and '. $this->_ready_fields[$fields['COMPARE']['WITH']]['ALIAS'].' '. $this->_error['COMPARE'];\r\r }\r\r } \r\r else\r\r {\r\r if($this->_object[$key]['VALUE']!==$this->_object[$fields['COMPARE']]['VALUE']){\r\r $this->_results[$key]['COMPARE'] = $this->_object[$key]['ALIAS'] .' and '. $this->_ready_fields[$fields['COMPARE']]['ALIAS'].' '. $this->_error['COMPARE'];\r\r }\r\r }\r\r }\r\r \r\r } \r\r }" ]
[ "0.587873", "0.5781418", "0.5681975", "0.5645212", "0.5590447", "0.5590342", "0.54932827", "0.5486492", "0.54830337", "0.5476842", "0.5471194", "0.54674745", "0.54629385", "0.5422629", "0.5418839", "0.54139113", "0.54067004", "0.5404779", "0.5389906", "0.53889024", "0.533098", "0.53138834", "0.529748", "0.5277047", "0.52678406", "0.5267269", "0.5254514", "0.52499586", "0.522469", "0.522352" ]
0.68135285
0
Add item to Compensation_Detail_Data value
public function addToCompensation_Detail_Data(\WorkdayWsdl\\StructType\Compensation_Detail_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Compensation_Detail_DataType) { throw new \InvalidArgumentException(sprintf('The Compensation_Detail_Data property can only contain items of type \WorkdayWsdl\\StructType\Compensation_Detail_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); } $this->Compensation_Detail_Data[] = $item; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addToCompensation_Data(\\WorkdayWsdl\\\\StructType\\Compensation_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Compensation_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Compensation_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Compensation_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Compensation_Data[] = $item;\n return $this;\n }", "private function addDetailRecord(DetailRecord $detailRecord, DescriptiveRecord $descriptiveRecord)\n {\n // Record Type\n $line = $detailRecord->getRecordType();\n\n // BSB\n $line .= $detailRecord->getBsb();\n\n // Account Number\n $line .= str_pad($detailRecord->getAccountNumber(), 9, ' ', STR_PAD_LEFT);\n\n // Indicator\n $line .= $detailRecord->getIndicator() ?: ' ';\n\n // Transaction Code\n $line .= $detailRecord->getTransactionCode();\n\n // Transaction Amount\n $line .= str_pad($detailRecord->getAmount(), 10, '0', STR_PAD_LEFT);\n\n // Account Name\n $line .= str_pad($detailRecord->getAccountName(), 32, ' ', STR_PAD_RIGHT);\n\n // Lodgement Reference\n $line .= str_pad($detailRecord->getReference(), 18, ' ', STR_PAD_RIGHT);\n\n // Trace BSB\n $line .= $descriptiveRecord->getBsb();\n\n // Trace Account Number\n $line .= str_pad($descriptiveRecord->getAccountNumber(), 9, ' ', STR_PAD_LEFT);\n\n // Remitter Name\n $line .= str_pad($detailRecord->getRemitter(), 16, ' ', STR_PAD_RIGHT);\n\n // Withholding amount\n $line .= str_pad($detailRecord->getTaxWithholding(), 8, '0', STR_PAD_LEFT);\n\n $this->addLine($line);\n }", "public function addDetail($data) {\r\n /* FILTER KELENGKAPAN TRANSAKSI BY JENIS ACCOUNT */\r\n if ($this->isValidCoa(array(\r\n 'coa' => $data['dkst_coa'],\r\n 'cbid' => ses_cabang)) == FALSE)\r\n return FALSE;\r\n\r\n if ($this->db->insert(\"ksr_dtrans\", $data) == FALSE) {\r\n return FALSE;\r\n } else {\r\n return TRUE;\r\n }\r\n }", "public function addDetailData($data,$parent) {\n if($data && is_array($data) && $parent) {\n foreach($data as $fbKey => $fbVal) {\n $this->getAdapter()->query(\"INSERT INTO tmw_wire_comp_details(playerId,detailsField,detailsData) VALUES ('$parent','$fbKey','$fbVal');\");\n }\n return true;\n } else {\n throw new Exception('Could not insert data');\n }\t\n }", "public function addToDetail($item)\n {\n // validation for constraint: itemType\n if (!is_string($item)) {\n throw new \\InvalidArgumentException(sprintf('The Detail property can only contain items of string, \"%s\" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);\n }\n $this->Detail[] = $item;\n return $this;\n }", "public function add()\n {\n $item = new stdClass();\n $item->item_id = null;\n $item->barcode = null;\n $item->price = null;\n $item->stock = null;\n $item->name = null;\n $item->category_id = null;\n $query_category = $this->categorys_m->get();\n $query_unit = $this->units_m->get();\n $unit[null] = '-Pilih-';\n foreach ($query_unit->result() as $u) {\n\n $unit[$u->unit_id] = $u->name;\n };\n $data = [\n 'page' => 'add',\n 'row' => $item,\n 'category' => $query_category,\n 'unit' => $unit,\n 'selectedunit' => null\n ];\n $this->template->load('template', 'product/item/item_add', $data);\n }", "public function simpan_data_detail($data)\n\t{\n\t\t$this->db->insert('detail_pros', $data);\n\t}", "public function append($item)\n {\n array_push($this->activeValue, $item);\n }", "public function add() {\n $dataH['CustomerBankAccount'] = $_lib['sess']->get_companydef('BankAccount');\n $old_pattern = array(\"/[^0-9]/\");\n $new_pattern = array(\"\");\n $dataH['CustomerAccountPlanID'] = strtolower(preg_replace($old_pattern, $new_pattern , $_lib['sess']->get_companydef('OrgNumber')));\n }", "private function cObjDataAddArray( $keyValue )\n {\n foreach ( $keyValue as $key => $value )\n {\n if ( empty( $key ) )\n {\n continue;\n }\n\n $this->pObj->cObj->data[ $key ] = $value;\n\n if ( !( $this->pObj->b_drs_map || $this->pObj->b_drs_warn ) )\n {\n continue;\n }\n\n if ( $value === null )\n {\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = $key . ' is null. Maybe this is an error!';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 2 );\n }\n }\n else\n {\n if ( $this->pObj->b_drs_map )\n {\n $prompt = 'Added to cObject[' . $key . ']: ' . $value;\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n $prompt = 'You can use the content in TypoScript with: field = ' . $key;\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n }\n }\n }\n }", "public static function insert_new_product_details($data)\n {\n try{\n \n $session = Yii::$app->session;\n foreach($data as $key=>$val) \n {\n if($key == 'hire_price' || $key == 'sale_price'){\n if($val != '')\n {\n $val=str_replace(',', '', $val );\n if (strpos($val, '.') !== false) {\n $val=substr($val,0,strpos($val, '.')+3);\n }\n }\n else\n {\n $val = 0;\n }\n }\n if($key == 'life_tax_details')\n {\n if(sizeof($val)>0){\n\n $val=implode(\",\",$val);\n }\n }\n if($key == 'exact_location')\n {\n if(sizeof($val)>0){\n\n $val=implode(\",\",$val);\n }\n }\n $$key=get_magic_quotes_gpc()?$val:addslashes($val);\n $insertdata[$key] = $$key;\n\n }\n \n if($insertdata['hire_price_range'] == 'crore')\n {\n \n $insertdata['hire_price'] = $insertdata['hire_price'] * 10000000;\n }\n else if($insertdata['hire_price_range'] == 'lack')\n {\n $insertdata['hire_price'] = $insertdata['hire_price'] * 100000;\n }\n else if($insertdata['hire_price_range'] == 'thousand')\n {\n $insertdata['hire_price'] = $insertdata['hire_price'] * 1000;\n }\n else if($insertdata['hire_price_range'] == 'por')\n {\n $insertdata['hire_price'] = -1;\n }\n \n if($insertdata['sale_price_range'] == 'crore')\n {\n $insertdata['sale_price'] = $insertdata['sale_price'] * 10000000;\n }\n else if($insertdata['sale_price_range'] == 'lack')\n {\n $insertdata['sale_price'] = $insertdata['sale_price'] * 100000;\n }\n else if($insertdata['sale_price_range'] == 'thousand')\n {\n $insertdata['sale_price'] = $insertdata['sale_price'] * 1000;\n }\n else if($insertdata['sale_price_range'] == 'por')\n {\n $insertdata['sale_price'] = -1;\n }\n \n unset($insertdata['hire_price_range']);\n unset($insertdata['sale_price_range']);\n \n\n $capacity = $insertdata['capacity'];\n $insertdata['capacity'] = $insertdata['capacity'].' '.$insertdata['capacity_metric']; \n unset($insertdata['capacity_metric']);\n\n if(!isset($model_other)) $insertdata['model_other']=''; \n $insertdata['product_status'] = 0; //update this when control panel complete\n\n $remove_keys = ['email','user_name','phone_number','password','regrepassword','company_name','designation','company_email','address','otp'];\n foreach($remove_keys as $removekey) unset($insertdata[$removekey]);\n\n //save equipment current location to productloaction array\n $productlocation = array();\n $current_location_keys = ['latitude','longitude','city','state','country','google_place_id','location_type']; \n foreach($current_location_keys as $key)\n {\n if($key == 'location_type')\n {\n $location[$key] = 1;\n }\n else\n {\n $location[$key] = $insertdata[$key];\n unset($insertdata[$key]);\n }\n }\n $productlocation[] = $location;\n unset($insertdata['street']);\n unset($insertdata['route']);\n unset($insertdata['zipcode']);\n\n //save equipment serving location to productloaction array\n if(isset($insertdata['exact_location']))\n {\n $exact_locations = explode(',',$insertdata['exact_location']);\n foreach($exact_locations as $exact_location)\n {\n $get_url_data=file_get_contents(\"http://maps.google.com/maps/api/geocode/json?address=\".urlencode($exact_location).\"&sensor=false\");\n $url_data=(array)json_decode($get_url_data);\n $url_data=$url_data['results'];\n $components=array_reverse($url_data[0]->address_components);\n $country\t=@$components[0]->long_name;\n $state\t\t=@$components[1]->long_name;\n $city\t\t=@$components[2]->long_name;\n $place_id=$url_data[0]->place_id;\n $lat=$url_data[0]->geometry->location->lat;\n $lng=$url_data[0]->geometry->location->lng;\n $location['latitude'] = $lat;\n $location['longitude'] = $lng;\n $location['city'] = $city;\n $location['state'] = $state;\n $location['country'] = $country;\n $location['google_place_id'] = $place_id;\n $location['location_type'] = 2;\n $productlocation[] = $location;\n }\n }\n unset($insertdata['exact_location']);\n unset($insertdata['_csrf']);\n unset($insertdata['product_type_check']);\n \n if ($insertdata['length'] == \"\"){ \n $insertdata['length'] =0; \n } \n if ($insertdata['width'] == \"\"){\n $insertdata['width'] =0; \n } \n if ($insertdata['height'] == \"\"){ \n $insertdata['height'] =0; \n } \n $insertdata['dimensions'] = $insertdata['length'].'x'.$insertdata['width'].'x'.$insertdata['height']; \n unset($insertdata['length']); \n unset($insertdata['width']); \n unset($insertdata['height']);\n \n //update amount if package type is free\n if($data['package_type'] != 2) { $data['package_amount'] = 0; }\n \n\n\n //get current user id\n $insertdata['user_id']=Yii::$app->user->getId(); \n \n $insertdata['updated_by'] = Yii::$app->user->id;\n $insertdata['date_updated'] = date('Y-m-d H:i:s');\n \n //insert data into database core_prodcuts table and get inserted product id\n Yii::$app->db->createCommand()->insert('core_products', $insertdata)->execute();\n $product_id = Yii::$app->db->getLastInsertID();\n\n $session->set('current_product_id', $product_id);\n\n //generate unique code for product and update\n //new logic start\n $categories = array('1'=>'C','2'=>'D','3'=>'E','4'=>'G','5'=>'P');//C-crane,D-dumper,E-excavator,G-generator,P-piling rigs\n $manual_product_code = $categories[$insertdata['category_id']];\n \n $subcategorycode = Productsubcategory::get_sub_category_code_by_id($insertdata['sub_category_id']);\n $manual_product_code .= $subcategorycode;\n \n if(strlen($capacity)>4)\n $manual_product_code .= substr($capacity, 0,4);\n else if(strlen($capacity)<=4)\n $manual_product_code .= str_pad($capacity, 4, '0', STR_PAD_LEFT);\n \n $producttype = array('0'=>'H','1'=>'S','2'=>'B'); //H-hire,S-sale,B-both\n $manual_product_code .=$producttype[$insertdata['product_type']];\n \n $manual_product_code .= strtoupper(str_pad(dechex($product_id), 5, '0', STR_PAD_LEFT));\n \n \n //new logic end\n Yii::$app->db->createCommand()->update('core_products', ['manual_product_code' => $manual_product_code], \"product_id = '$product_id'\")->execute();\n\n\n //save product current and serving locations using product id \n foreach($productlocation as $location)\n {\n $location['product_id'] = $product_id;\n Yii::$app->db->createCommand()->insert('core_product_locations', $location)->execute();\n }\n\n //get category name by id to get full path of the images & load charts upload for product\n $category_id = $insertdata['category_id'];\n $category_names = Productcategory::select_fields_by_category_id($category_id);\n $category_name= str_replace(' ', '_', $category_names[0]['category_name']);\n\n //save product images\n if(is_array($session->get('product_images')))\n {\n $product_images = $session->get('product_images');\n $original_image_name=$session->get('product_images_names');\n foreach($product_images as $index=>$product_image)\n {\n $images_data['product_id'] = $product_id;\n $images_data['image_name'] = $original_image_name[$index];\n $images_data['image_url'] = Yii::$app->params['SITE_URL'].'uploads/'.date('Y').'/'.$category_name.'/'.$product_image;\n $images_data['image_type'] = 1;\n $images_data['image_status'] = 1;\n \n //insert image details to database table.\n Yii::$app->db->createCommand()->insert('core_product_images', $images_data)->execute();\n\n }\n $session->remove('product_images');\n $session->remove('product_images_names');\n }\n //save product load_charts\n if(is_array($session->get('product_loadcharts')))\n {\n $product_load_charts = $session->get('product_loadcharts');\n $original_load_chart_name=$session->get('product_loadcharts_names');\n foreach($product_load_charts as $index=>$load_chart)\n {\n $load_charts_data['product_id'] = $product_id;\n $load_charts_data['image_name'] = $original_load_chart_name[$index];\n $load_charts_data['image_url'] = Yii::$app->params['SITE_URL'].'uploads/'.date('Y').'/'.$category_name.'/'.$load_chart;\n $load_charts_data['image_type'] = 2;\n $load_charts_data['image_status'] = 1;\n //insert load_charts details to database table.\n Yii::$app->db->createCommand()->insert('core_product_images', $load_charts_data)->execute();\n }\n $session->remove('product_loadcharts');\n $session->remove('product_loadcharts_names');\n }\n\n $response ['status'] = 200;\n $response ['message'] = \"Product added successfully\";\n\n \n /*//get current user email\n $email = User::select_user_email_by_id();\n $subject=\"Big Equipments India | Registration Of Equipment\";\n //get what message to send after creating product\n $message = Mail_settings::get_product_add_message($manual_product_code,$product_id);\n \n //send email to current user\n Mail_settings::send_email_notification($email,$subject,$message);*/\n\n return json_encode($response);\n \n } catch (ErrorException $ex) {\n Yii::warning('Error while adding new product.');\n Yii::warning($ex->getMessage());\n }\n \n }", "public function simpan_sub_detail($data)\n\t{\n\t\t$this->db->insert('sub_detail_pros', $data);\n\t}", "private function addDetail()\n { \n $params = array();\n $params['db_link'] = $this->db;\n $params['ticket_id'] = $_REQUEST['ticket_id'];\n $Tickets = new Tickets($params);\n \n if($_REQUEST['changed_status'] != 0)\n {\n \n $Tickets->setStatus($_REQUEST['changed_status']);\n $Tickets->update();\n //save log \n $this->saveLog($_REQUEST['changed_status'], $_REQUEST['ticket_id'], null);\n }\n \n $data = array();\n $data['subject'] = stripslashes(trim($_REQUEST['subject']));\n $data['notes'] = stripslashes(trim($_REQUEST['notes']));\n $data['user_id'] = $_SESSION['LOGIN_USER']['userId'];\n \n //$Tickets = new Tickets($params);\n $details_id = $Tickets->addDetails($data);\n\n if($details_id)\n {\n $files = $this->getUploadedFiles();\n $this->saveAttachments($files, $_REQUEST['ticket_id'], $details_id);\n }\n \n //Send Email To resolvers, source, etc.\n $this->sendEmail($_REQUEST['ticket_id'], $data['subject']);\n \n \n \n echo '[{\"isError\":0, \"message\":\"Details added Successfully.\"}]';\n exit;\n }", "public function addNewStructureRow(){\n\t\t$map_id = $this->Generic_model->general_fetch_array_return_row('map_attributes_values', array('attribute_id'=>$this->input->post('newStructureAttr'), 'value'=>$this->input->post('newStructureValue')))->map_id;\n\t\t$onSale = '1';\n\t\tif($this->input->post('onSaleStruct') == ''){\n\t\t\t$onSale = '0';\n\t\t}\n\t\t$details = array(\n\t\t\t'pid' => $this->uri->segment(4),\n\t\t\t'map_id' => $map_id,\n\t\t\t'retail_price' => $this->input->post('price'),\n\t\t\t'retail_price_tax' => $this->input->post('priceTax'),\n\t\t\t'cost_price' => $this->input->post('costPrice'),\n\t\t\t'on_sale_status' => $onSale\n\t\t);\n\t\t$response = $this->Generic_model->general_insert('pricing_structure', $details);\n\t\tif($response){\n\t\t\t$this->session->set_flashdata('success', 'Product Updated successfully with new pricing structure.');\n\t\t}else{\n\t\t\t$this->session->set_flashdata('failure', 'Oops!! Something went wrong. Try again...');\n\t\t}\n\t\tredirect('admin/product/editProduct/'.$this->uri->segment(4));\n\t}", "function AfterAdd(&$values,&$keys,$inline,&$pageObject)\n{\n\n\t\tglobal $conn;\n$proid= $keys['proid'];\n$bill_date=$values['bill_date'];\n$amount_bill=$values['amount'];\n$bill_no=$values['bill_no'];\n$item=$values['item'];\n$ProgramID = $values['ProgramID'];\n$BatchID = $values['BatchID'];\n\n//get related student according to intake , branch, and program\n$sql_student = \"select StudentID from student_info where DipID='$ProgramID' AND BatchID='$BatchID' AND Status='Active'\";\n$q_student = db_query($sql_student,$conn);\n\n//insert all program billing item to related student program bill\nwhile($row_student=db_fetch_array($q_student))\n{ \n$studentID=$row_student['StudentID'];\n$sql_insert=\"INSERT INTO student_billing (proid,date,amount,amount_balance,bill_no,item,studentID,status)\nVALUES ('$proid','$bill_date','$amount_bill','$amount_bill','$bill_no','$item','$studentID','Pending')\";\ndb_exec($sql_insert,$conn);\t\n}\n\n\n;\t\t\n}", "public function addToAdditionalDetail(\\Sabre\\UpdateReservation\\StructType\\AdditionalDetailType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\Sabre\\UpdateReservation\\StructType\\AdditionalDetailType) {\n throw new \\InvalidArgumentException(sprintf('The AdditionalDetail property can only contain items of \\Sabre\\UpdateReservation\\StructType\\AdditionalDetailType, \"%s\" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);\n }\n $this->AdditionalDetail[] = $item;\n return $this;\n }", "function add_billing_data($billObj) {\n\n $item = new stdClass();\n $item->trans_id = $billObj->transId;\n $item->cardholder = $billObj->billTo->firstName . ' ' . $billObj->billTo->lastName;\n $item->type = 'a';\n $item->address = $billObj->billTo->address;\n $item->state = $billObj->billTo->state;\n $item->city = $billObj->billTo->city;\n $item->zip = $billObj->billTo->zip;\n $item->pdate = time();\n\n $exists = $this->is_billing_data_exists($item->trans_id);\n if ($exists == 0) {\n $query = \"insert into mdl_billing_data \"\n . \"(transaction_id,\"\n . \"cardholder,\"\n . \"type,\"\n . \"address,\"\n . \"state,\"\n . \"city,\"\n . \"zip,\"\n . \"pdate) \"\n . \"values ('$item->trans_id',\"\n . \"'\" . addslashes($item->cardholder) . \"',\"\n . \"'$item->type',\"\n . \"'\" . addslashes($item->address) . \"',\"\n . \"'$item->state',\"\n . \"'\" . addslashes($item->city) . \"',\"\n . \"'$item->zip',\"\n . \"'$item->pdate')\";\n $this->db->query($query);\n } // end if $exists == 0\n }", "private function addDetailsInRows()\n\t{\n\t\tforeach ($this->data_show as &$row)\n\t\t\tforeach ($this->data as $row_original)\n\t\t\t{\n\t\t\t\t$is_group = true;\n\t\t\t\t\n\t\t\t\tforeach ($this->col_group as $key)\n\t\t\t\t\tif($row[$key] != $row_original[$key])\n\t\t\t\t\t\t$is_group = false;\n\t\t\t\t\n\t\t\t\tif($is_group)\n\t\t\t\t{\n\t\t\t\t\t// total amount\n\t\t\t\t\tif($this->col_aggr_sum)\n\t\t\t\t\t\t$row[$this->col_aggr_sum] += $row_original[$this->col_aggr_sum];\n\t\t\t\t\t\n\t\t\t\t\t// add details\n\t\t\t\t\t$row_tmp = array();\n\t\t\t\t\t\n\t\t\t\t\tforeach ($this->data[0] as $col => $val)\n\t\t\t\t\t\tif(!in_array($col, $this->col_show) || $col == $this->col_aggr_sum)\n\t\t\t\t\t\t\t$row_tmp[$col] = $row_original[$col];\n\t\t\t\t\t\n\t\t\t\t\t$row['details'][] = $row_tmp;\n\t\t\t\t}\n\t\t\t}\n\t}", "protected function addItemDetails(&$item) \r\n\t{\r\n\t\t//$item->totals = KTBTrackerHelper::getUserTotals($item);\r\n\t\t$this->getUserInfo($item);\r\n\t}", "public function add_deal($data_arr,&$validation_passed,&$new_transaction_id,&$err_arr){\n\t\tdie(\"NO LONGER USED\");\n \n }", "function OnAfterAdd(){\n //get keyfield value\n if (intval($this->item_id) == 0)\n $data = $this->Storage->GetRecord(null, array(\n $this->key_field => \"\"));\n $this->item_id = $data[$this->key_field];\n }", "function updateCompanyIdOrContactIdToListElem(&$arFields){\n\n if($arFields['IBLOCK_ID'] == 125 /*&& $arFields['PROPERTY_VALUES']['592']['n0']['VALUE'] == ''*/){\n $arFields['PROPERTY_VALUES']['592']['n0']['VALUE'];\n //file_put_contents($file, $arFields['PROPERTY_VALUES']['593']['n0']['VALUE'], FILE_APPEND | LOCK_EX);\n\n foreach ($arFields['PROPERTY_VALUES']['593'] as $number => $dealId){\n $ID = $dealId['VALUE'];\n $key = $number;\n }\n\n //Берем данные сделки по id\n //$dealData = CCrmDeal::GetByID($arFields['PROPERTY_VALUES']['593']['43585']['VALUE']);\n $dealData = CCrmDeal::GetByID($ID);\n if($dealData['COMPANY_ID'] != '') {\n $arFields['PROPERTY_VALUES']['592'][$key]['VALUE'] = 'CO_'.$dealData['COMPANY_ID'];\n }\n if($dealData['COMPANY_ID'] == 0 && $dealData['CONTACT_ID'] != '') {\n $arFields['PROPERTY_VALUES']['592'][$key]['VALUE'] = 'C_'.$dealData['CONTACT_ID'];\n }\n\n /* $file = $_SERVER['DOCUMENT_ROOT'].'/local/testLogger3.log';\n file_put_contents($file, print_r($arFields,true), FILE_APPEND | LOCK_EX);*/\n\n return true;\n\n }\n\n}", "public function pushDetailsItem($fields)\n {\n $defaults = array(\n 'id' => '',\n 'name' => ''\n );\n $this->data['ecommerce']['detail']['products'][] = $this->getDefaults($fields, $defaults);\n }", "public function prepareDetailTransactionData() \n {\n $header = array_flip(array_shift($this->data));\n $headerKeys = array_keys($header);\n $count = 0;\n foreach ($this->data as $data) {\n foreach ($data as $key => $value) {\n $value = trim($value);\n if (in_array($headerKeys[$key], $this->ignoredHeaders)) continue;\n if (empty($headerKeys[$key])) continue;\n\n $parent = strstr($headerKeys[$key], '-', true);\n $child = preg_replace('/-/', '', strstr($headerKeys[$key], '-'), 1);\n \n if ($parent == \"Transaction\") { \n $this->elementData[$count][$child] = $value;\n } else {\n $this->elementData[$count][$parent][$child] = $value;\n }\n }\n\n $this->checkRequiredFields($count, $this->elementData[$count]);\n $count++;\n }\n\n $this->checkRefDuplication();\n return $count;\n }", "public function addDatas(\\RO\\Cmd\\ItemData $value){\n return $this->_add(5, $value);\n }", "function Add($name, $value)\r\n\t{\r\n\t\tif (is_array($this->Data))\r\n\t\t{\r\n\t\t\t$this->Data[$name] = $value;\t\r\n\t\t}\t\r\n\t\telse if (is_object($this->Data))\r\n\t\t{\r\n\t\t\t$this->Data->$name = $value;\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttrigger_error(\"A DataRow of base type, cannot have fields added.\",E_USER_ERROR);\t\r\n\t\t}\r\n\t\t\r\n\t}", "function add() {\r\n\r\n\r\n $item_data = array(\r\n \"master_warehouse_id\" => $this->input->post('master_warehouse_id'),\r\n \"master_items_id\" => $this->input->post('master_items_id'),\r\n \"stock_on_hand\" => $this->input->post('stock_on_hand'),\r\n \"date_adjusment\" => $this->input->post('date_adjusment'),\r\n \"description\" => $this->input->post('description'),\r\n \"created_by\" => $this->session->userdata('user_name'),\r\n \"created_at\" => get_current_utc_time(),\r\n \"updated_by\" => $this->session->userdata('user_name'),\r\n \"updated_at\" => get_current_utc_time(),\r\n \"deleted\" =>0\r\n );\r\n\r\n $data = $this->Master_Stock_model->save($item_data);\r\n if ($data) {\r\n $item_info = $this->Master_Stock_model->get_details()->row();\r\n echo json_encode(array(\"success\" => true, \"id\" => $item_info->id, \"data\" => $this->_make_item_row($item_info), 'message' => lang('record_saved')));\r\n } else {\r\n echo json_encode(array(\"success\" => false, 'message' => lang('error_occurred')));\r\n }\r\n }", "public function add() {\t\n CheckAdminLoginSession();\t\t\n\t\t$post_data = $this->input->post();\n\t\t\n\t\tif(!empty($post_data)) { \n\t\t\t$this->form_validation->set_error_delimiters('<span class=\"text-danger\">', '</span>');\n\t\t\t$this->form_validation->set_rules('name', ' Name', 'required|trim');\t\t\t\t\n\t\t\tif($this->form_validation->run() == FALSE) { } else {\n\t\tforeach ($this->input->post('company_id') as $key => $company_id) {\n\t\t\tforeach ($company_id as $insurance_type_id) {\n\t\t\t\t$data = array(\t\t\t\t\t\t\t\n\t\t\t\t'name' => $this->input->post('name'),\t\t\t\t\n\t\t\t\t'company_id' => $key,\t\t\t\t\n\t\t\t\t'insurance_type_id' => $insurance_type_id,\t\t\t\t\n\t\t\t\t'created_date' => date('Y-m-d H:i:s'),\n\t\t\t\t'modified_date' => date('Y-m-d H:i:s'),\n\t\t\t\t'status' => $this->input->post('status')\t \n\t\t\t\t); \n\t\t\t\t$id = $this->admin_model->setInsertData($this->optional_warranty,$data);\n\t\t\t}\n\t\t}\n\t\t\t\t$this->session->set_flashdata('message','Your Optional Warranty has been added successfully');\n\t\t redirect('admin/optional-warranty/lists','refresh');\n\t\t }\n }\n $data='';\n $data['companyProvidingInsurance'] = $this->admin_model->getCompanyProvidingInsurance($this->company_insurance);\n\t\t$this->load->view('admin/include/head');\n\t\t$this->load->view('admin/include/header');\n\t\t$this->load->view('admin/include/sidebar');\n\t\t$this->load->view('admin/optional_warranty/add',$data);\n\t\t$this->load->view('admin/include/footer');\n\t\t$this->load->view('admin/include/foot');\n\t}", "function addItem2DB($data = null)\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $result = $_POST['itemInfo'];\n echo $this->coupon_model->add($result);\n }\n }", "public function pushDetailsList($list)\n {\n $this->data['ecommerce']['detail']['actionField']['list'] = $list;\n }" ]
[ "0.6132607", "0.5467399", "0.5360926", "0.52197987", "0.5216997", "0.52087444", "0.51678056", "0.51663333", "0.5139879", "0.51351756", "0.51181453", "0.51178575", "0.51080304", "0.5090842", "0.5080605", "0.5041717", "0.5007385", "0.49704885", "0.49491113", "0.49209148", "0.49071994", "0.49013686", "0.48991305", "0.48809522", "0.48783386", "0.4876451", "0.48735285", "0.48707378", "0.48501402", "0.48479396" ]
0.7190778
0
Get the value of otp
public function getOtp() : string { return $this->otp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function otp()\n {\n return $this->otp;\n }", "public function getCreatedOTP()\n {\n return $this->getOTPHandler()->getOtp();\n }", "public function getValidOtp()\n {\n $otp = $this->isOtpValid();\n if(!$otp){\n $otp = random_int(100000, 900000);\n $this->updateOtpCode($otp);\n }\n return $otp;\n }", "public function getOTPCode(){\n\t\t\t\treturn $this->_CODE;\n\t\t\t}", "public function c_getHitosOtp() {\r\n $idOtp = $this->input->post('idOtp');\r\n $hitosotp = $this->Dao_ot_padre_model->getHitosOtp($idOtp);\r\n echo json_encode($hitosotp);\r\n }", "public function getCurrentOtp(\n #[\\SensitiveParameter]\n $secret\n ) {\n return $this->oathTotp($secret, $this->getTimestamp());\n }", "static function generateOtp()\n {\n $code = rand(1001, 9999);\n $otp = new Otp();\n $otp->otp = $code; \n $otp->valid_till = Carbon::now()\n ->addMinutes(env('OTP_VALID_MINUTES'))\n ->toDateTimeString(); \n $otp->save();\n \n return [\n 'otp' => $code,\n 'txn_id' => $otp->id\n ];\n }", "public function retrieveOTP() {\n\t\tif ( ! wp_verify_nonce( HTTP_Helper::retrieveGet( 'nonce' ), 'defRetrieveOTP' ) ) {\n\t\t\twp_send_json_error( array() );\n\t\t}\n\t\t\n\t\t$token = HTTP_Helper::retrieveGet( 'token' );\n\t\t$query = new \\WP_User_Query( array(\n\t\t\t'meta_key' => 'defOTPLoginToken',\n\t\t\t'meta_value' => $token,\n\t\t\t'blog_id' => 0\n\t\t) );\n\t\t$res = $query->get_results();\n\t\tif ( empty( $res ) ) {\n\t\t\t//no user\n\t\t\twp_send_json_error( array(\n\t\t\t\t'message' => __( \"Your token is invalid\", \"defender-security\" )\n\t\t\t) );\n\t\t}\n\t\t\n\t\t$user = $res[0];\n\t\t//create a backup code for this user\n\t\t$code = Auth_API::createBackupCode( $user->ID );\n\t\t//send email\n\t\t$backupEmail = Auth_API::getBackupEmail( $user->ID );\n\t\t\n\t\t$settings = Auth_Settings::instance();\n\t\t$subject = ! empty( $settings->email_subject ) ? esc_attr( $settings->email_subject ) : __( 'Your OTP code', \"defender-security\" );\n\t\t$sender = ! empty( $settings->email_sender ) ? esc_attr( $settings->email_sender ) : false;\n\t\t$body = ! empty( $settings->email_body ) ? $settings->email_body : $settings->two_factor_opt_email_default_body();\n\t\t$params = [\n\t\t\t'display_name' => $user->display_name,\n\t\t\t'passcode' => $code,\n\t\t];\n\t\tforeach ( $params as $key => $val ) {\n\t\t\t$body = str_replace( '{{' . $key . '}}', $val, $body );\n\t\t}\n\t\t$headers = array( 'Content-Type: text/html; charset=UTF-8' );\n\t\tif ( $sender ) {\n\t\t\t$from_email = get_bloginfo( 'admin_email' );\n\t\t\t$headers[] = sprintf( 'From: %s <%s>', $sender, $from_email );\n\t\t}\n\t\t\n\t\t//send\n\t\twp_mail( $backupEmail, $subject, $body, $headers );\n\t\t\n\t\twp_send_json_success( array(\n\t\t\t'message' => __( \"Your code has been sent to your email.\", \"defender-security\" )\n\t\t) );\n\t}", "public function generateOtp()\n {\n $digit = 4;\n $otpNumber = rand(pow(10, $digit - 1), pow(10, $digit) - 1);\n return $otpNumber;\n }", "public function mp_hook_otp_ajax(){\n\t\treturn $this->mp_hook_payment_ajax('otp');\n\t\t}", "public function generateOtp() \n {\n return rand(100000,999999);\n }", "public function isOTP(){\n return ($this->auth_type == \"1\");\n }", "public static function generateOtp()\n {\n $string = '0123456789';\n $string_shuffled = str_shuffle($string);\n $OTP = substr($string_shuffled, 1, 6);\n return $OTP;\n }", "public function getTel_user()\r\n {\r\n return $this->tel_user;\r\n }", "public function getOTP($mobile) {\n $userId='Actiknow_trans';\n $password='aBcPsso0';\n $clientId='AbcLtdst31';\n\n $stmt = $this->conn->prepare(\"SELECT random_otp from otp where mobile = ? && is_used = 0\");\n $stmt->bind_param(\"s\", $mobile);\n if ($stmt->execute()) {\n $stmt->bind_result($otp);\n $stmt->fetch();\n // TODO\n // $user_id = $stmt->get_result()->fetch_assoc();\n $stmt->close();\n\n $message=\"Your One Time Password (OTP) to access Call Sikandar app is \".$otp.\". The password will expire within 30 minutes.\";\n $message=urlencode($message);\n $uri = \"http://23.254.128.22:9080/urldreamclient/dreamurl?userName=\".$userId.\"&password=\".$password.\"&clientid=\".$clientId.\"&to=\".$mobile.\"&text=\".$message.\"\";\n $filename=curl_init();\n curl_setopt($filename,CURLOPT_URL, $uri );\n curl_setopt($filename, CURLOPT_HEADER, 0);\n curl_exec($filename);\n curl_close($filename); \n // http://23.254.128.22:9080/urldreamclient/dreamurl?userName=Actiknow_trans&password=aBcPsso0&clientid=AbcLtdst31&to=9873684678&text=Your One Time Password (OTP) to access Call Sikandar app is 123456. The password will expire within 30 minutes.\n return $otp;\n } else {\n return NULL;\n }\n }", "public function c_getOthOfOtp() {\r\n $idOtp = $this->input->post('idOtp');\r\n $listotps = $this->Dao_ot_padre_model->getothofothp($idOtp);\r\n echo json_encode($listotps);\r\n }", "public function createOTP()\n {\n return $this->getOTPHandler()->create();\n }", "public function gettitolo() {\n if (isset($_REQUEST['Titolo']))\n return $_REQUEST['Titolo'];\n else\n return false;\n }", "protected static function getFacadeAccessor()\n {\n return 'otp';\n }", "private function getTX()\n {\n return $this->getRemote($this->RemoteQuery['ip'], \".1.3.6.1.2.1.10.127.1.2.2.1.3.2\", $this->RemoteQuery['community']);\n }", "public function c_getProductByOtp() {\r\n $idOtp = $this->input->post('id_otp');\r\n $numServicio = $this->input->post('num_servicio');\r\n $res = $this->Dao_ot_padre_model->getProductByOtp($idOtp, $numServicio);\r\n echo json_encode($res);\r\n }", "function getTimeOrderPay(){\n\treturn campo('config_system','id','1','time_in_minutes_pending_order_payable');\n}", "function getTimeOrderPay(){\n\treturn campo('config_system','id','1','time_in_minutes_pending_order_payable');\n}", "function generate_otp()\n {\n return substr(hexdec(bin2hex(openssl_random_pseudo_bytes(3))), 0, 4);\n }", "public function c_get_otp_by_id_user() {\r\n $inge_id = $this->input->post('iduser');\r\n $ots = $this->Dao_ot_padre_model->get_otp_by_id_user($inge_id);\r\n echo json_encode($ots);\r\n }", "public function getCreatedOTPUuid()\n {\n return $this->getOTPHandler()->getUuid();\n }", "public function getMobileNumberForSendingOTP()\n {\n return $this->mobile;\n }", "public function getAuthToken()\n {\n $value = $this->get(self::auth_token);\n return $value === null ? (string)$value : $value;\n }", "public function sendOtp(Request $request)\n {\n \n $user = $request->auth_user;\n\n if($user->full_mobile_number == '') {\n return $this->api->json(false, 'ADD_MOBILE_NUMBER', 'Add mobile number first. Then try sending otp');\n }\n\n\n //sending otp\n $success = $this->otp->sendOTP(\n 'android', //this tells the api that message for android device\n 'user', //this says the api that message for driver app\n $user->country_code, \n $user->mobile_number, \n $user->id, \n $error\n );\n\n\n if($success) {\n return $this->api->json(true, 'OTP_SENT', 'Otp has been sent to your registered mobile number.');\n } else {\n return $this->api->json(false, 'OTP_SEND_FAILED', 'Failed to send otp. Try again.');\n }\n\n\n }", "public function otp($email)\n {\n \n return true;\n }" ]
[ "0.80576015", "0.67913", "0.6516268", "0.6425945", "0.6328358", "0.6219699", "0.60361826", "0.60216004", "0.5990709", "0.5983676", "0.58427536", "0.5760973", "0.5749077", "0.5740738", "0.5738802", "0.5720269", "0.56975245", "0.5680637", "0.5669431", "0.5667203", "0.56660604", "0.56554407", "0.56554407", "0.5648087", "0.5647117", "0.5610424", "0.55763036", "0.55330914", "0.5526106", "0.5515807" ]
0.7664657
1
Get the value of createddate
public function getCreateddate() { return $this->createddate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_date_created();", "public function getDateCreated()\n {\n return $this->date_created;\n }", "public function getDateCreated()\n {\n return $this->date_created;\n }", "public function getDateCreated() {\r\n return $this->_date_created;\r\n }", "public function getCreatedDate();", "public function getCreatedDate()\n {\n return $this->created_date;\n }", "public function getCreatedDate() {\n return $this->get('created_date', 'user');\n }", "public function getDateCreated();", "public function getDateCreated()\n {\n return $this->dateCreated;\n }", "public function getDateCreated()\n {\n return $this->dateCreated;\n }", "public function getCreate_date(){\n return $this->create_date;\n }", "public function getDateCreated() {\n return $this->dateCreated;\n }", "public function getDateCreated() {\n return($this->dateCreated);\n }", "public function getCreateDate(): string\n {\n return $this->create_date;\n }", "public function getDateCreated()\n {\n return $this->_DateCreated;\n }", "function getCreatedDate() {\n\t\treturn $this->_CreatedDate;\n\t}", "public function getCreateDate()\n {\n return $this->create_date;\n }", "public function getDateCreated()\n {\n $rtn = $this->data['date_created'];\n\n if (!empty($rtn)) {\n $rtn = new \\DateTime($rtn);\n }\n\n return $rtn;\n }", "public function getCarCreated(){\r\n\t\t$this->car_created = getValue(\"SELECT CAST(created AS DATE) AS DATEONLY FROM tbl_car WHERE car_id=\".$this->car_id);\r\n\t\treturn $this->car_created;\r\n\t}", "public function getDate()\n {\n return $this->getData('created_at');\n }", "public function getDateCreate()\n {\n return $this->date_create;\n }", "public function getDateCreate()\n {\n return $this->date_create;\n }", "public function getDate_creation()\n {\n return $this->date_creation;\n }", "public function getCreatedDate()\r\n\t\t{\r\n\t\t\treturn date('m/d/Y', strtotime($this->_created_date));\r\n\t\t}", "public function get_date_create()\n\t{\n\t\treturn $this->date_create;\n\t}", "public function getCreatedDate()\n {\n return isset($this->CreatedDate) ? $this->CreatedDate : null;\n }", "function get_creation_date()\n\t{\n\t\treturn $this->creation_date;\n\t}", "public function getDate()\n\t\t{\n\t\t\t$date = new \\DateTime($this->created_at);\n\t\t\treturn $date->format('jS M Y');\n\t\t}", "public function getCreateDate() {\n\t\treturn $this->createDate;\n\t}", "public function getCreateDate() {\n\t\treturn $this->createDate;\n\t}" ]
[ "0.8287308", "0.8039385", "0.8039385", "0.8028678", "0.8009091", "0.79696393", "0.7950722", "0.7914252", "0.78919524", "0.78919524", "0.7880056", "0.78777224", "0.7831243", "0.78251636", "0.7813254", "0.78037477", "0.7763138", "0.7716699", "0.7708515", "0.7707672", "0.76845294", "0.76845294", "0.7671696", "0.7645418", "0.7641551", "0.76278573", "0.7594633", "0.75639826", "0.75578135", "0.75578135" ]
0.8082222
1