query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
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 }", "public function silent()\n {\n return $this->disableNotification();\n }", "function getPromote()\n\t{\n\t\treturn $this->doPromote;\n\t}", "public function getPromoted()\n {\n return $this->promoted;\n }", "public function HienThiDmsp(){\n\n\t\treturn $this -> db -> get('b_dmsp');\n\t}", "public function getUrlSuspend()\n {\n return isset($this->transaction['urlSuspend']) ? $this->transaction['urlSuspend'] : '';\n }", "public function getSwtCallOff()\n {\n return isset($this->swtCallOff) ? $this->swtCallOff : null;\n }", "public function get_profil()\n {\n return $this->_profil;\n }", "public function getSwtSample()\n {\n return isset($this->swtSample) ? $this->swtSample : null;\n }", "public function getPresident()\n {\n return $this->get(self::_PRESIDENT);\n }", "public function getInstitucion(): Institucion\n {\n return $this->institucion;\n }", "public function get_motdepasse()\n {\n return $this->_motdepasse;\n }", "public function getPrenotazioniMedico() {\n return $this->_prenotazioni;\n }", "public function getIdpension(){\n return $this->idpension;\n }", "public function getRequisitionListProduct()\n {\n $item = $this->getItem();\n\n if (!$this->requisitionListItemProduct->isProductAttached($item) && !$this->isOptionsUpdated()) {\n return null;\n }\n\n try {\n $product = $this->requisitionListItemProduct->getProduct($item);\n return $product;\n } catch (\\Magento\\Framework\\Exception\\NoSuchEntityException $e) {\n return null;\n }\n }", "public function getPromId()\n {\n return $this->prom_id;\n }", "public function getdowloadPhotoPetSitter()\n {\n return $this->dowloadPhotoPetSitter;\n }", "public function setIsMuted(){\n\n return 'hey';\n //get all reminders\n //$last_reminder = $this->symbol->reminders->pop();\n\n //dd($last_reminder);\n\n }", "public function getHaltDelay()\n {\n return $this->_haltDelay;\n }", "public function getMp()\n {\n return $this->Mp;\n }", "public function getProf(){\n return $this->prof;\n }", "public function get_imsi(): string\n {\n // $res is a string;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::IMSI_INVALID;\n }\n }\n $res = $this->_imsi;\n return $res;\n }", "public function getNotification()\n\t{\n\t\treturn $this->notification;\n\t}", "public function getRemediation()\n {\n return $this->remediation;\n }", "public function getSweep()\n {\n return $this->get(self::_SWEEP);\n }", "public function getTraining()\n {\n return Wrapper\\Player\\Senior::training($this->getId());\n }", "public function getMedia()\n {\n if (! isset($this->media)) {\n $this->media = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getMediaQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->media;\n }", "public function getInstrument()\n {\n return $this->instrument;\n }", "public function getNotification()\n {\n return $this->notification;\n }", "public function getPazientiMedico() {\n return $this->_pazienti;\n }", "public function getUnspsc(): ?string\n {\n return $this->unspsc;\n }", "public function getMink()\n {\n return $this->mink;\n }", "public function getUnidadeMedida()\n {\n return $this->unidadeMedida;\n }", "public function getIdProf()\n {\n return $this->idProf;\n }", "public function getFirstPlayExpiration()\n {\n return $this->_firstPlayExpiration;\n }", "public function get_mute(): int\n {\n // $res is a enumBOOL;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::MUTE_INVALID;\n }\n }\n $res = $this->_mute;\n return $res;\n }", "public function getServeMeasurement()\n\t{\n\t\t$this->loadManyToOne('serveMeasurement');\n\t\treturn $this->serveMeasurement;\n\t}", "public function getMediaPlayer()\n {\n return $this->_mediaPlayer;\n }", "public function schedulePresentationD()\n {\n return $this->mailer->schedulePresentationD($this->data);\n }", "function get_current_motif_id_from_loop_id($id)\n {\n // deprecated as of November 2022\n\n\n // get current motif release id\n $this->db->select('ml_release_id')\n ->from('ml_releases')\n ->order_by('date','desc')\n ->where('type',substr($id, 0, 2))\n ->limit(1);\n $query = $this->db->get();\n $release = $query->row();\n\n // get motif id\n $this->db->select('motif_id','ml_release_id')\n ->from('ml_loops')\n ->where('loop_id',$id);\n\n $query = $this->db->get();\n\n if ($query->num_rows() > 0) {\n $motif = $query->row();\n return array('motif_id' => $motif->motif_id,\n 'release_id' => $release->ml_release_id);\n } else {\n return NULL;\n }\n\n }", "public function getMedia()\n {\n return $this->media;\n }", "public function getPDif()\n {\n return $this->pDif;\n }", "public function getThumbSmAttribute()\n {\n return $this->present()->thumbSrc(240, 240, ['resize'], 'name');\n }", "public function getSlides(){\r\n\t\treturn $this->getModel()->getSlides();\r\n\t}", "public static function getFlash() {\n if(self::hasFlash()) {\n $flash = $_SESSION['Flash'][0];\n self::clearBuffer();\n return $flash;\n }\n return null;\n }", "public function getDelay()\n {\n return $this->delay;\n }", "public function getLocalMiniature() \n {\n return $this->localMiniature;\n }", "public function getInterface()\n {\n return $this->predis;\n }", "public function getPrologue()\n {\n return $this->prologue;\n }", "public function getParticipation()\n {\n return $this->participation;\n }", "public function getParticipation()\n {\n return $this->participation;\n }", "public function getDispute(): ?Dispute\n {\n return $this->dispute;\n }", "public function getRemediationScriptContent()\n {\n if (array_key_exists(\"remediationScriptContent\", $this->_propDict)) {\n if (is_a($this->_propDict[\"remediationScriptContent\"], \"\\GuzzleHttp\\Psr7\\Stream\") || is_null($this->_propDict[\"remediationScriptContent\"])) {\n return $this->_propDict[\"remediationScriptContent\"];\n } else {\n $this->_propDict[\"remediationScriptContent\"] = \\GuzzleHttp\\Psr7\\Utils::streamFor($this->_propDict[\"remediationScriptContent\"]);\n return $this->_propDict[\"remediationScriptContent\"];\n }\n }\n return null;\n }", "public function getSpectate(): string\n {\n return $this->spectate;\n }", "public function isResumed()\n {\n return $this->resumed;\n }", "public function getMediaFileUnwrapped()\n {\n return $this->readWrapperValue(\"media_file\");\n }", "public function getCurrentInterpretation()\n {\n if (!$this->viaCurrent) {\n return null;\n }\n\n return $this->owner->{$this->viaCurrent};\n }", "public function getWinger()\n {\n if ($this->isSkillsAvailable()) {\n return $this->getXml()->getElementsByTagName('WingerSkill')->item(0)->nodeValue;\n }\n return null;\n }", "public function getBroadcast()\n {\n return $this->broadcast ?: session('broadcast', null);\n }", "public function getPromisedDeliveryPeriod()\n {\n return $this->promisedDeliveryPeriod;\n }", "public function getDelayCapture(): ?bool\n {\n if (count($this->delayCapture) == 0) {\n return null;\n }\n return $this->delayCapture['value'];\n }", "public function notResponsive()\n {\n return $this->breakpoint();\n }", "public function getPresentationById($id)\n\t{\n\t\treturn $this->find((int) $id)->current();\n\t}", "public function getPlayer()\n {\n return $this->participation->getPlayer();\n }", "public function getTravailEffectif(): ?float {\n return $this->travailEffectif;\n }", "public function getMutualiteit() {\n\t\treturn $this->mutualiteit;\n\t}", "public function getReplay()\n {\n return $this->get(self::_REPLAY);\n }", "public function getRealisePar(): ?string {\n return $this->realisePar;\n }", "public function getNoInterrumpir( ) {\n return $this->noInterrumpir;\n }", "public function getTelevision()\n {\n return $this->television;\n }", "public function get_delay_export() { // Declare \\Markguyver\\LivefyreImporter\\Data\\Livefyre\\Conversation->get_delay_export() function\n\t\t\treturn $this->delay_export;\n\t\t}" ]
[ "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.48176128", "0.48144683", "0.47928685", "0.47915167", "0.47612053", "0.47581008", "0.47561985", "0.47406572", "0.47187507", "0.47168976", "0.47092497", "0.46870205", "0.46841702", "0.46803892", "0.4673683", "0.46695256", "0.46674344", "0.46614343", "0.4651373", "0.46454534", "0.46448565", "0.4644359", "0.4640292", "0.46395987", "0.46332946", "0.46313462", "0.46299005", "0.46293288", "0.4620957", "0.46177", "0.46096113", "0.46007195", "0.45998597", "0.45942944", "0.45864072", "0.4585056", "0.45778444", "0.45755297", "0.45742714", "0.4560181", "0.45567665", "0.45434576", "0.45385173", "0.45380473", "0.45370367", "0.45365742", "0.4527279", "0.45233583", "0.4519282", "0.4519282", "0.45179343", "0.4508459", "0.45083946", "0.4503098", "0.45030594", "0.45013806", "0.44994506", "0.44980082", "0.44965884", "0.4496287", "0.44903487", "0.44881207", "0.44863424", "0.44849637", "0.44828773", "0.4477339", "0.4473055", "0.4471951", "0.44715774", "0.44706005" ]
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() {}", "public function getTmpName()\n {\n return $this->tmpName;\n }", "public static function get_current_completed_tmp_returns() {\n return new external_single_structure(\n array(\n 'feedback' => feedback_completedtmp_exporter::get_read_structure(),\n 'warnings' => new external_warnings(),\n )\n );\n }", "public function get_temperature($port_num)\n {\n $current_temp = floatval($this->xml->ports->port[$port_num]->condition[0]->currentReading);\n \n return $current_temp;\n }", "function read_temperater()\n{\n $path = '/sys/bus/w1/devices/28-000008e54110/w1_slave';\n\t$lines = file($path);\n\t$temp = explode('=', $lines[1]);\n $temp = number_format($temp[1] / 1000,2,'.','');\n \n\treturn $temp;\n\t\n}", "public function getTmpFolder() {\n\t\treturn $this->_tmp;\n\t}", "public function getCodeMedecineTravail() {\n return $this->codeMedecineTravail;\n }", "public function getTiers()\n {\n return $this->tiers;\n }", "public function getCostPerTraveledHour()\n {\n return $this->cost_per_traveled_hour;\n }", "public function getTmpName()\n\t{\n\t\treturn $this->tmpName;\n\t}", "public function getTempFolderPath()\n {\n return $this->tempFolderPath;\n }", "public function getTempFolderPath()\n {\n return $this->tempFolderPath;\n }", "public function getTempFolderPath()\n {\n return $this->tempFolderPath;\n }", "public function getTempFolderPath()\n {\n return $this->tempFolderPath;\n }", "public function getTicket()\n {\n return $this->ticket;\n }", "public function getTicket()\n {\n return $this->ticket;\n }", "public function getTempAttribute()\n {\n return $this->addresses()->where('type', 'temp')->first();\n }", "public function getTempFileName()\n {\n return $this->_tempFileName;\n }", "public function getTempatCuciTangan()\n {\n return $this->tempat_cuci_tangan;\n }", "function getTemporaryLink()\n {\n return $this->_temporaryLink;\n }", "public function getMontantTtc() {\n return $this->montantTtc;\n }", "function tripId()\n\t{\n\t\treturn $this->_tour_voucher_contents['trip_id'];\n\t}", "public function getEmpTel() {\n return $this->empTel;\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 getTmpName()\n {\n return $this->file['tmp_name'];\n }", "public function getTel()\n {\n return $this->Tel;\n }", "function get_tmp_file() {\n\tglobal $g;\n\treturn \"{$g['tmp_path']}/tmp-\" . time();\n}", "public function getVTotTrib()\n {\n return $this->vTotTrib;\n }", "public function obtenerTemperaturas()\n {\n $db = Db::conectar();\n $select = $db->prepare('SELECT * FROM TEMPERATURAS');\n $select->execute();\n $result = $select->fetch();\n //TODO RECORRER RESULT Y DEVOLVER UNA LISTA DE OBJETOS TEMPERATURA\n return $result;\n }", "public function getTiers()\n {\n return $this->arrTiers;\n }", "public function getTiers()\n {\n return $this->arrTiers;\n }", "public function getTripTeam()\n {\n return $this->trip_team;\n }", "public function getTempsRestant()\n {\n $today = new DateTime(date(\"d-m-Y\"));\n $fin = new DateTime($this->dateFinPrevue);\n $interval = $today->diff($fin);\n\n return $interval;\n }", "private function getTempExtremsToday() {\n //get last update date\n $update = explode(\" \", $this->lastUpdateStr())[0];\n\n $statement = $this->db->prepare('SELECT max(\"amount\") as \"high\", min(\"amount\") as \"low\" FROM \"temperature\" WHERE date(\"created\") = ?');\n $statement->bindValue(1, $update);\n $result = $statement->execute();\n return $result->fetchArray(SQLITE3_ASSOC);\n }", "public function getTemporaryFile()\n {\n return $this->files[] = new TemporaryFile($this);\n }", "public function getTelevision()\n {\n return $this->television;\n }", "public function getTourInfo()\n {\n return $this->tourInfo;\n }", "public function getTxDetails()\n {\n return $this->txDetails;\n }", "public function getTees() {\n\t\treturn $this->registration ? $this->registration->tees : $this->practice->tees;\n\t}", "public function getTemp($host = null, $limit = 25) {\r\n\t\ttry {\r\n\t\t\t$pdo = $this->db->generatePDO();\r\n\r\n\t\t\t$sql = $host ? \"SELECT * FROM temperature WHERE client_addr = '$host' ORDER BY id DESC LIMIT $limit\" : \"SELECT * FROM temperature ORDER BY id DESC LIMIT $limit\";\r\n\r\n\t\t\t$getTemp = $pdo->prepare($sql);\r\n\t\t\t$getTemp->execute();\r\n\t\t\t$data = $getTemp->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t\treturn $data;\r\n\r\n\t\t} catch (PDOException $e) {\r\n\t\t\t$this->throwError($e->getMessage());\r\n\t\t}\r\n\r\n\t}", "public static function getSystemTempDir() {\n $dir = sys_get_temp_dir() . \"/\";\n return $dir;\n }", "static function _getTempDir()\n {\n }", "public function getTmpFolderInstance()\n {\n return $this->tmpFolder;\n }", "public function getTempatCuciTanganRusak()\n {\n return $this->tempat_cuci_tangan_rusak;\n }", "public function getTicketid()\n {\n return $this->ticketid;\n }", "function tp ()\n{\n return TPL;\n}", "public function getTravelTime()\n {\n return isset($this->TravelTime) ? $this->TravelTime : null;\n }", "protected function getTypo3TempStatistics() {}", "function darkSky_getTemp($latlong) {\n\tglobal $client;\n\ttry {\n\t\t$response = $client->request('get',\"$latlong\");\n\t} catch (Exception $e) {\n\t\tprint \"error on get temp from dark web $lat $long\\n\";\n\t\t$a=print_r($e,true);\n\t\terror_log($a);\n\t\treturn \"Temperature Error on fetch\";\n\t}\n\t$body = (string) $response->getBody();\n\t$jbody = json_decode($body);\n\tif (!$jbody) {\n\t\treturn \"error on decoding json\";\n\t}\n\n\treturn $jbody->currently->temperature;\n}", "protected function tempPath() {\n if ($nonce = $this->getNonce()) {\n return sys_get_temp_dir() . DIRECTORY_SEPARATOR . $nonce;\n }\n }", "public function getIdLieuTravail() {\n return $this->idLieuTravail;\n }", "public function getPriceTransport()\n {\n return isset($this->priceTransport) ? $this->priceTransport : null;\n }", "private function sensorsReadTemp()\n {\n // python's script using to read data from sensors\n $cmd = \"python /home/eker/Pulpit/tmp.py \";\n // read pin numbers for each room\n foreach ($this->rooms as $key => $value) {\n $cmd .= (string)$value[0] . ' ';\n }\n // var_dump($cmd);\n // exec return string, getFloats changes it to floats array\n // $temps = $this->getFloats(exec($cmd));\n $temps = [20, 21, 22, 19, 19];\n $i = 0;\n // for each room set current temperature\n foreach ($this->rooms as $key => $value) {\n $this->rooms[$key][1] = $temps[$i++];\n }\n }", "public function getTemplate() \n {\n return $_SESSION['template'];\n \n }", "private function calcTemp()\n\t{\n#\t\t#define CCS811_R_NTC 10000 // resistance of NTC at a reference temperature\n#\t\t#define CCS811_R_NTC_TEMP 25 // reference temperature for NTC\n#\t\t#define CCS811_BCONSTANT 3380 // B constant\n#\n#\t\t// get NTC resistance\n#\t\tuint32_t r_ntc = ccs811_get_ntc_resistance (sensor, CCS811_R_REF);\n#\n#\t\t// calculation of temperature from application note ams AN000372\n#\t\tdouble ntc_temp;\n#\t\tntc_temp = log((double)r_ntc / self::R_NTC); // 1\n#\t\tntc_temp /= self::B; // 2\n#\t\tntc_temp += 1.0 / (self::R_NTC_TEMP + 273.15); // 3\n#\t\tntc_temp = 1.0 / ntc_temp; // 4\n#\t\tntc_temp -= 273.15; // 5\n\t}", "public function getShntpickticket()\n {\n return $this->shntpickticket;\n }", "public function getSiretLieuTrav() {\n return $this->siretLieuTrav;\n }", "public function getTId()\n {\n return $this->t_id;\n }", "public function getPrixTtc()\n {\n return $this->prixTtc;\n }", "public function getTailles(){\n return $this->db->get($this->taille)->result();\n }", "public function getCodeTravail(): ?string {\n return $this->codeTravail;\n }", "protected function getTemplateData() {\r\n return $this->templateData;\r\n }", "public function transporter() {\n if(is_null($this->transporter)){\n $this->transporter = Transporter::getByIdentifier($this->transporter_id);\n }\n return $this->transporter;\n }", "public function getTipRtbus() {\n return $this->get(self::TIP_RTBUS);\n }", "public function getTmpDirRoot() : string {\n return $this->tmpRootDir;\n }", "public function getPosCurTmp()\n {\n return $this->pos_cur_tmp;\n }", "public function get_etat(){ return $this->_etat;}", "public function getTiD() {\n\t\treturn $this->tiD;\n\t}" ]
[ "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.5573469", "0.55439705", "0.5504797", "0.54925966", "0.5484618", "0.54767025", "0.5461811", "0.5455645", "0.5431048", "0.5413471", "0.5413471", "0.5413471", "0.5413471", "0.54060763", "0.54060763", "0.53935146", "0.5370833", "0.53694254", "0.5358619", "0.5355388", "0.53320724", "0.53251266", "0.5314079", "0.5314079", "0.5314079", "0.5314079", "0.53136903", "0.5312849", "0.53098565", "0.5299568", "0.52899015", "0.52748495", "0.52748495", "0.526434", "0.52640545", "0.5263052", "0.5255942", "0.5251914", "0.5248321", "0.52471155", "0.52374405", "0.5237181", "0.5232691", "0.5219792", "0.52110493", "0.5210494", "0.5210081", "0.5208182", "0.52046454", "0.5199578", "0.5187117", "0.5185847", "0.51836395", "0.51779145", "0.51687497", "0.5165385", "0.5160962", "0.51601815", "0.5157449", "0.51556814", "0.51525706", "0.51501125", "0.514363", "0.51308185", "0.51307666", "0.51291466", "0.5122019", "0.5121972", "0.5106597", "0.51001936" ]
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() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "function type () {\r\n return $this->_type;\r\n }", "function getType()\n {\n return $this->getAttribute(\"type\");\n }", "function getType () {\n\t\treturn $this->type;\n\t}", "function getType() {\n return $this->type;\n }", "function getType() {\n\t\treturn $this->type;\n\t}", "private function get_type(){\n\t\treturn $this->_type;\n\t}", "public function getTestType()\n\t{\n\t\treturn $this->test_type;\n\t}", "public function getType()\n { return $this->get('type'); }", "public function getType()\n {\n return $this->getAttribute('type');\n }", "public function getType()\n {\n\treturn $this->type;\n }", "public function get_type() {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "function getType() { return $this->readType(); }", "public function get_type() {\n\t\treturn $this->type;\n\t}", "public function getType(){ }", "public function getType() {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType(){\n return $this->type;\n }", "public function getType(){\n return $this->type;\n }", "public function getType() {\n\t\treturn $this->type;\n\t}", "public function getType() {\n\t\treturn $this->type;\n\t}", "public function getType() {\n\t\treturn $this->type;\n\t}", "public function getType() {\n\t\treturn $this->type;\n\t}", "function getType() {\n\t\treturn $this->_type;\n\t}", "public function getType()\n\t{\n\t\treturn $this->get('type');\n\t}", "public function getType()\r\n {\r\n return $this->_type;\r\n }", "public function get_type(){\n\t\treturn $this->_type;\n\t}", "public function getType()\n {\n return isset($this->type) ? $this->type : 0;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }" ]
[ "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.6732681", "0.6732681", "0.6732681", "0.6732681", "0.671465", "0.66847086", "0.668346", "0.6678454", "0.66691905", "0.6668248", "0.6662678", "0.66517377", "0.664808", "0.66451603", "0.66373813", "0.6617166", "0.6616139", "0.6611453", "0.66108114", "0.66064924", "0.66064924", "0.66064924", "0.66064924", "0.6603125", "0.6603125", "0.66012746", "0.6566923", "0.6566923", "0.65635383", "0.65635383", "0.65635383", "0.65635383", "0.6560767", "0.65560776", "0.6549014", "0.65458184", "0.65448", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054" ]
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 }", "public function setCrc($crc)\n {\n if (is_bool($crc)) {\n $this->useCrc($crc);\n } else {\n $this->_crc = $crc;\n }\n }", "public function setCae(): Documents\r\n {\r\n if (defined('DOCUMENT_SET_CAE_ID')) {\r\n $this->caeId = (int)DOCUMENT_SET_CAE_ID;\r\n } else {\r\n $this->caeId = 0;\r\n }\r\n\r\n return $this;\r\n }", "function set_est_alcoolisee($est_alcoolisee){\n if($est_alcoolisee == true || $est_alcoolisee == false){\n $this->est_alcoolisee = $est_alcoolisee;\n }else{\n $this->erreur(\"La type de boisson doit être : true ou false. Or c'est : \".$est_alcoolisee.\"<br>\");\n }\n }", "public function __construct($post_type = '', $taxs = array(), $meta_data = array(), $localize = array()){\n $this->post_type = 'mjob_agreement';\n parent::__construct( $this->post_type, $taxs, $meta_data, $localize);\n $this->meta = array(\n 'is_consumer_right_statement',\n 'is_notice_cancellation'\n );\n $this->post_type_singular = 'Agreement';\n $this->post_type_regular = 'Agreements';\n $this->taxs = array(\n 'mjob_category'\n );\n }", "protected static function _set_cookie()\n\t{\n\t\t/** @var Cookie::$salt string */\n\t\tCookie::$salt = Config::get('cookie.salt');\n\n\t\t/** @var Cookie::$expiration string */\n\t\tCookie::$expiration = Config::get('cookie.lifetime');\n\t}", "private function setCurl($is_https = false)\n {\n // Init\n $this->curl = curl_init();\n // Sets basic parameters\n curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($this->curl, CURLOPT_TIMEOUT, isset($this->request->settings['timeout']) ? $this->request->settings['timeout'] : 100);\n // Set parameters to maintain cookies across sessions\n curl_setopt($this->curl, CURLOPT_COOKIESESSION, true);\n curl_setopt($this->curl, CURLOPT_COOKIEFILE, sys_get_temp_dir() . '/cookies_file');\n curl_setopt($this->curl, CURLOPT_COOKIEJAR, sys_get_temp_dir() . '/cookies_file');\n curl_setopt($this->curl, CURLOPT_USERAGENT, 'OLEGNAX-PURCHASE-VERIFY');\n if ($is_https) {\n $this->setSSL();\n }\n }", "protected function setOrganization() {}", "public function set_opt($custom_options = array()) {\r\n\t\t$debug_backtrace = debug_backtrace();\r\n\t\t$this_file = __FILE__;\r\n\t\tif (!empty($debug_backtrace[0][\"file\"]) && !empty($this_file) && ($debug_backtrace[0][\"file\"] == $this_file)) { $internal = true; } else { $internal = false; }\r\n\t\tforeach ($custom_options as $key => $value) {\r\n\t\t\tif (!is_string($key)) { trigger_error(\"curl option name must be string instead of default php constant\", E_USER_WARNING); }\r\n\t\t\telseif (!defined($key)) {\r\n\t\t\t\t$curl_version = curl_version();\r\n\t\t\t\ttrigger_error(\"'{$key}' is not a valid option in php v\".phpversion().\" or curl library v\".$curl_version[\"version\"], E_USER_WARNING);\r\n\t\t\t}\r\n\t\t\telseif ($key == \"CURLOPT_COOKIEFILE\") { $this->set_cookiefile($value); }\r\n\t\t\telseif ($key == \"CURLOPT_COOKIEJAR\") { $this->set_cookiejar($value); }\r\n\t\t\telseif (!$internal && in_array($key, array(\"CURLOPT_SAFE_UPLOAD\", \"CURLOPT_PROTOCOLS\", \"CURLOPT_RETURNTRANSFER\", \"CURLOPT_HEADERFUNCTION\", \"CURLINFO_HEADER_OUT\"))) {\r\n\t\t\t\ttrigger_error(\"'{$key}' option is locked in this class to ensure functionalities\", E_USER_WARNING);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (curl_setopt($this->ch, constant($key), $value)) { $this->options[$key] = $value; }\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected function _setGenerationFlags() {\n $this->generateCN = ($this->generateCN && array_key_exists('FirstName', $this->sforceData) && array_key_exists('LastName', $this->sforceData)) ? true : false;\n \n $this->generateUid = ($this->generateUid && array_key_exists('FirstName', $this->sforceData) && array_key_exists('LastName', $this->sforceData)) ? true : false;\n \n }", "public function action_general_settings()\n\t{\n\t\tglobal $context, $scripturl, $txt;\n\n\t\t$context['SPortal']['themes'] = sp_general_load_themes();\n\n\t\t// These are very likely to come in handy! (i.e. without them we're doomed!)\n\t\trequire_once(ADMINDIR . '/ManagePermissions.controller.php');\n\t\trequire_once(ADMINDIR . '/ManageServer.controller.php');\n\t\trequire_once(SUBSDIR . '/SettingsForm.class.php');\n\n\t\t// Initialize the form\n\t\t$this->_initGeneralSettingsForm();\n\n\t\tif (isset($_GET['save']))\n\t\t{\n\t\t\tcheckSession();\n\n\t\t\tif (!empty($_POST['sp_portal_mode']))\n\t\t\t{\n\t\t\t\tupdateSettings(array('front_page' => 'PortalMain_Controller'));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tupdateSettings(array('front_page' => 'MessageIndex_Controller'));\n\t\t\t}\n\n\t\t\t$this->_generalSettingsForm->setConfigValues($_POST);\n\t\t\t$this->_generalSettingsForm->save();\n\t\t\tredirectexit('action=admin;area=portalconfig;sa=generalsettings');\n\t\t}\n\n\t\t$context['post_url'] = $scripturl . '?action=admin;area=portalconfig;sa=generalsettings;save';\n\t\t$context['settings_title'] = $txt['sp-adminGeneralSettingsName'];\n\t\t$context['page_title'] = $txt['sp-adminGeneralSettingsName'];\n\t\t$context['sub_template'] = 'show_settings';\n\n\t\t$this->_generalSettingsForm->prepare();\n\t}", "public function setMetaboxes() {\n $metaboxTemp = new Metabox();\n\n $args = array(\n // ## Certification ##\n array(\n 'id' => self::MTB_CERT,\n 'title' => 'Certification Type',\n 'callback' => array($metaboxTemp, 'certification'),\n 'screen' => self::POST_TYPE_BADGES,\n 'context' => 'side',\n 'priority' => 'high',\n ),\n // ## Target ##\n array(\n 'id' => self::MTB_TARGET,\n 'title' => 'Target Type',\n 'callback' => array($metaboxTemp, 'target'),\n 'screen' => self::POST_TYPE_BADGES,\n 'context' => 'side',\n 'priority' => 'high',\n ),\n );\n\n $this->settings->loadMetaBoxes($args);\n }", "function setAuthType($authtype){\r\n\t\t$this->authType=$authtype;\r\n\t}", "function construction_realestate_posttype_cs_custom_meta() {\n add_meta_box( 'cs_meta', __( 'Settings', 'construction-realestate-posttype' ), 'construction_realestate_posttype_cs_meta_callback' , 'agents');\n}", "function checkboxes(){\n if($this->ChkReal->Checked){\n $this->avance_real = 'Si';\n }else{\n $this->avance_real = 'No';\n }\n if($this->ChkProg->Checked){\n $this->avance_prog = 'Si';\n }else{\n $this->avance_prog = 'No';\n }\n if($this->ChkComent->Checked){\n $this->comentario = 'Si';\n }else{\n $this->comentario = 'No';\n }\n if($this->ChkPermiso->Checked){\n $this->permiso = 'Si';\n }else{\n $this->permiso = 'No';\n }\n if($this->ChkTipoA->Checked){\n $this->tipo_admon = 'Si';\n }else{\n $this->tipo_admon = 'No';\n }\n }", "protected function __setCookie()\n\t{\n\t\t$this->Cookie->type('cipher');\n\t\t$this->Cookie->name = 'Stats';\n\t\t$this->Cookie->time = '90 days';\n\t\t$this->Cookie->path = '/';\n\n\t\t# Dev or production server\n\t\tif (empty($_SERVER['APPLICATION_ENV'])) {\n\t\t\t$domain = get_domain(env('HTTP_HOST'));\n\t\t\t$domain = \"cms.muoriginfree.com\";\n\t\t\t#$domain = '45.117.77.125';\n\t\t} else {\n\t\t\t$domain = env('HTTP_HOST');\n\t\t}\n\t\t$this->Cookie->domain = $domain;\n\t\t\n\t\t$this->Cookie->key = 'quanvh_qSdd%ddId2121232xdddddxqADYhG93b0qyJfIxfs1232guVoUubWwvaniR2G0FgaC9mis*&saX6Owsd121!';\n\t}", "function vw_hospital_cs_custom_meta() {\n add_meta_box( 'cs_meta', __( 'Settings', 'vw-hospital' ), 'vw_hospital_cs_meta_callback' , 'doctors','normal', 'high' ); \n\n}", "public function set_authority($authority, $clear_cache = \\false)\n {\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 autoSet()\n {\n $this->setInfo();\n $this->setParams();\n $this->extractRoutingInfo();\n }", "public function setCar($id, $for, $des, $cos, $int, $sag, $car){\n\t\t\t$fieldList = array();\n\t\t\t\n\t\t\t$query = new Query();\n\n\t\t\t$query->tables('tblcar');\n\t\t\t$query->fields('SiglaCar');\n\t\t\tif ($query->Open()){\n\t\t\t\twhile ($row = $query->GetNextRecord()){\n\t\t\t\t\t$fieldList[]=$row;\n\t\t\t\t}\n\t\t\t\t//per non avere \"effetti memoria\" strani\n\t\t\t\t$query->Close();\n\t\t\t\tunset($query);\n\n\t\t\t\t$query2 = new Query();\n\t\t\t\t$query2->tables = array ('tblpg_car');\n\n\t\t\t\tforeach ($fieldList as $item){\n\t\t\t\t\t$query2->fields[]= $item[0];\n\t\t\t\t}\n\t\t\t\t$query2->fields[] = 'IdPg';\n\n\t\t\t\t$query2->values = array($for, $des, $cos, $int, $sag, $car, $id);\n\n\t\t\t\treturn ($query2->DoInsert())?true:false;\n\t\t\t}else{\n\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t}", "public function getCiomsSeriousValue($caseId,$field_id,$set_num){\n $choice=$this->getCiomsDirectValue($caseId,$field_id,$set_num);\n if(substr($choice,0,1)==1){\n $this->set('patientDied','checked');\n };\n if(substr($choice,1,1)==1){\n $this->set('lifeThreatening','checked');\n };\n if(substr($choice,2,1)==1){\n $this->set('disability','checked');\n };\n if(substr($choice,3,1)==1){\n $this->set('hospitalization','checked');\n };\n if(substr($choice,4,1)==1){\n $this->set('congenital','checked');\n };\n if(substr($choice,5,1)==1){\n $this->set('otherSerious','checked');\n };\n }", "public function setcsrf() {\n //Records a token to check that any SUBMITTED FORM WAS GENERATED BY THIS APPL. (not by hacker)\n //Aid CSRF protection in HTML forms, see section CSRF example on page 9-5 in Chapter 9, \"Inserting Data.\"\n $this->getp('pp1')->cncts->csrftoken = mt_rand(); // not sufficient f or production systems\n //??? $this->i nisetses();\n }", "public function setAnalitics($cad) { $this->analitics = $cad; }", "public function setRealations(){\n\n }", "function setVerificarValidez($GenerarAvisos = false, $CorreccionAutomatica = false){\n\t\t$D\t\t\t\t= $this->mDatosInArray;\n\t\t$msg\t\t\t= getSucursal();\n\t\t$presidenta\t\t= $this->mRepSocio;\n\t\t$vocal\t\t\t= $this->mVocalSocio;\n\t\t$tmpSucursal\t= \"\";\n\n\t\t$arrUpdate\t\t= array();\n\t\t//$DGrupo\n\t\tif ( $presidenta == DEFAULT_SOCIO ){\t\t$msg\t.= \"ERROR\\tLa Presidenta del Grupo tiene un Numero Invalido\\r\\n\";\t\t}\n\t\tif ( $vocal == DEFAULT_SOCIO ){\t\t$msg\t.= \"ERROR\\tLa Vocal del Grupo tiene un Numero Invalido\\r\\n\";\t\t}\n\t\t//Verificar si la Presidenta existe\n\t\tif ( $presidenta != DEFAULT_SOCIO ){\n\t\t\t$xPred\t\t\t= new cSocio($presidenta, true);\n\t\t\t$xPred->init();\n\t\t\t$DPred\t\t\t= $xPred->getDatosInArray();\n\t\t\t$nombre\t\t\t= trim( $xPred->getNombreCompleto() );\n\t\t\t$tmpSucursal\t= $DPred[\"sucursal\"];\n\t\t\tif ( !isset($tmpSucursal) ){\t\t$tmpSucursal\t= getSucursal();\t\t}\n\t\t\tif ( $nombre == \"\" ){\t\t\n\t\t\t\t$msg\t.= \"ERROR\\tLa Presidenta del Grupo no Existe\\r\\n\";\t\t\n\t\t\t} else {\n\t\t\t\tif ( $CorreccionAutomatica == true ){\n\t\t\t\t\t$arrUpdate[\"representante_nombrecompleto\"]\t= $nombre;\n\t\t\t\t\t$msg\t\t.= \"ACTUAL\\tLa Presidenta del Grupo se actualiza a $nombre \\r\\n\";\n\t\t\t\t\t//Actualiza la Colonia a Codigo Postal\n\t\t\t\t\t$xDom\t\t= $xPred->getDatosDomicilio();\n\t\t\t\tif (!isset($xDom[\"codigo_postal\"]) OR empty($xDom[\"codigo_postal\"]) ){ \t$xDom[\"codigo_postal\"] = DEFAULT_CODIGO_POSTAL; }\n\t\t\t\t\t$arrUpdate[\"colonia_gruposolidario\"]\t= $xDom[\"codigo_postal\"];\n\t\t\t\t\t$arrUpdate[\"direccion_gruposolidario\"]\t= trim($xPred->getDomicilio());\n\t\t\t\t\t$msg\t\t.= \"ACTUAL\\tEl Codigo Postal del Grupo se actualiza a \" . $xDom[\"codigo_postal\"] . \" \\r\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Verificar si la Vocal de Vigilancia Existe\n\t\tif ( $vocal != DEFAULT_SOCIO ){\n\t\t\t$xVocal\t= new cSocio($vocal, true);\n\t\t\t$xVocal->init();\n\t\t\t$nombre\t= trim( $xVocal->getNombreCompleto() );\n\t\t\tif ( $nombre == \"\" ){\n\t\t\t\t$msg\t.= \"ERROR\\tLa Vocal de Vigilancia del Grupo no Existe\\r\\n\";\n\t\t\t} else {\n\t\t\t\tif ( $CorreccionAutomatica == true ){\n\t\t\t\t\t$arrUpdate[\"vocalvigilancia_nombrecompleto\"]\t= $nombre;\n\t\t\t\t\t$msg\t.= \"ERROR\\tLa Vocal de Vigilancia del Grupo se actualiza a $nombre\\r\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Verificar si la Sucursal actual\n\t\tif ( ($this->mSucursal != $tmpSucursal) AND ( $vocal != DEFAULT_SOCIO ) ){\n\t\t\t$msg\t.= \"ERROR\\tLa Sucursal del Grupo(\" . $this->mSucursal . \") no es el mismo que el de la Presidenta del Grupo($tmpSucursal)\\r\\n\";\n\t\t\tif ( $CorreccionAutomatica == true ){ $arrUpdate[\"sucursal\"]\t= $tmpSucursal; }\n\t\t}\n\t\t//Actualizar\n\t\tif ( $CorreccionAutomatica == true ){\t$this->setUpdate($arrUpdate);\t}\n\t\treturn $msg;\n\t}", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "function onInit(&$man) {\r\n\t\t$config = $man->getConfig();\r\n\r\n\t\t// Override option\r\n\t\t$config['somegroup.someoption'] = true;\r\n\r\n\t\treturn true;\r\n\t}", "private function configureSslValidation()\n {\n if ($this->config[ 'cas_validation' ] == 'self') {\n phpCAS::setCasServerCert($this->config[ 'cas_cert' ]);\n } else {\n if ($this->config[ 'cas_validation' ] == 'ca') {\n phpCAS::setCasServerCACert($this->config[ 'cas_cert' ]);\n } else {\n phpCAS::setNoCasServerValidation();\n }\n }\n }", "public function changedefaults($meta) {\n\t\tif ($this->req ['auth_type'] == 'oauth') {\n\t\t\t$oPropData = false;\n\t\t\tif (isset ( $_REQUEST ['properties'] ) && is_object ( json_decode ( $_REQUEST ['properties'] ) )) {\n\t\t\t\t$oPropData = json_decode ( $_REQUEST ['properties'] );\n\t\t\t\t\n\t\t\t\tif (is_string ( $meta ) || ( int ) $meta > 0) {\n\t\t\t\t\t$oMeta = $aResponse = $this->oMetas->getById ( $meta );\n\t\t\t\t\tif (is_array ( $oMeta )) {\n\t\t\t\t\t\tif ($this->isChangeable ()) {\n\t\t\t\t\t\t\t$aChanges = array ();\n\t\t\t\t\t\t\t$aCompsAffected = 0;\n\t\t\t\t\t\t\tforeach ( $oPropData as $sKey => $sDefault ) {\n\t\t\t\t\t\t\t\t$sDefault = Preprocessor_String::apiStringSafe ( $sDefault );\n\t\t\t\t\t\t\t\t$oRowCurrent = $this->oMetavalue->fetchRow ( 'metas_idmeta=' . $oMeta ['idmeta'] . ' AND valname=\"' . $sKey . '\"' );\n\t\t\t\t\t\t\t\tif (is_object ( $oRowCurrent )) {\n\t\t\t\t\t\t\t\t\tif ($oRowCurrent->valdef != $sDefault) {\n\t\t\t\t\t\t\t\t\t\t$mWasUpdated = $this->oMetavalue->update ( array ('valdef' => $sDefault ), 'metas_idmeta=' . $oMeta ['idmeta'] . ' AND valname=\"' . $sKey . '\"' );\n\t\t\t\t\t\t\t\t\t\tif (( int ) $mWasUpdated) {\n\t\t\t\t\t\t\t\t\t\t\t$aChanges [$sKey] = Preprocessor_String::apiStringSafe ( $sDefault, true );\n\t\t\t\t\t\t\t\t\t\t\tif (isset ( $_REQUEST ['restrictive'] ) && $_REQUEST ['restrictive'] == 'yes') {\n\t\t\t\t\t\t\t\t\t\t\t\tif (! isset ( $oCompMeta )) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$oCompMeta = new Application_Model_Table ();\n\t\t\t\t\t\t\t\t\t\t\t\t\t$oCompMeta->setTable ( 'comp_metas' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t$oCompMeta->setPrimary ( 'idcomp_meta' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t$oCompMetaValue = new Application_Model_Table ();\n\t\t\t\t\t\t\t\t\t\t\t\t\t$oCompMetaValue->setTable ( 'comp_meta_values' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t$oCompMetaValue->setPrimary ( 'idcomp_meta_value' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t$oMetaUsed = $oCompMeta->fetchAll ( 'metas_idmeta=' . $oMeta ['idmeta'] );\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 (is_object ( $oMetaUsed )) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tforeach ( $oMetaUsed as $oCompMetaMatch ) {\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 ($oRowCurrent->valdef === null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$mValDef = new Zend_Db_Expr ( 'valdef IS NULL' );\n\t\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\t$mValDef = 'valdef=\"' . $oRowCurrent->valdef . '\"';\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$iCompChangeMade = $oCompMetaValue->update ( array ('valdef' => $sDefault ), 'comp_metas_idcomp_meta=' . $oCompMetaMatch->idcomp_meta . ' AND valname=\"' . $sKey . '\" AND ' . $mValDef );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (( int ) $iCompChangeMade > 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$aCompsAffected ++;\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}\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$aChanges [$sKey] = 'DEFAULT_VALUE_ALREADY_SET';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$aChanges [$sKey] = 'PROPERTY_NOT_FOUND';\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$aResponse = array ('changes' => $aChanges );\n\t\t\t\t\t\t\tif (isset ( $_REQUEST ['restrictive'] ) && $_REQUEST ['restrictive'] == 'yes') {\n\t\t\t\t\t\t\t\t$aResponse ['comps_affected'] = $aCompsAffected;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->addEntry ( 'response', $aResponse );\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->addEntry ( 'response', $this->oError->throwError ( 'META_NOT_FOUND' ) );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->addEntry ( 'response', $this->oError->throwError ( 'INVALID_META_IDENTIFIER' ) );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->addEntry ( 'response', $this->oError->throwError ( 'Got no properties to change' ) );\n\t\t\t}\n\t\t} else {\n\t\t\t$this->addEntry ( 'response', $this->oError->throwError ( 'OAUTH_ONLY' ) );\n\t\t}\n\t\treturn $this->getResponse ();\n\t}", "function setAsForm($collection,$primary_table,$formname,$manager = \"\",$parent_collection = null) {\n\t\t$this->is_form = true;\n\t\t$this->manager = $manager;\n\t\t$this->primary_tablename = $primary_table;\n\t\t$this->collection = $collection;\n\t\t$this->form_name = $formname;\n\t\tif (!is_null($this->primary_key) && !isset($this->datafields[$this->primary_key]))\n\t\t\t$this->addDataFieldElement($this->primary_key,new HiddenField($this->primary_key,$this->primary_key_value),true,$this->primary_tablename, $parent_collection);\n\t\t$this->initDataFields();\n\t\t\n\t\tif (!isset($this->datafields[$this->primary_key]))\n\t\t\t$this->addDataFieldElement($this->primary_key,new HiddenField($this->primary_key,0),true,$this->primary_tablename,$parent_collection);\n\t}", "function initFox() { \n\t\t\t$this->getAdminOptions();\n\t\t}", "public static function setLang($lang) \n\t{\n\t\tacPhpCas::setReporting();\n\t\tphpCAS::setLang($lang);\t\t\n\t}", "function setAuthType($authtype){\n $this->authType=$authtype;\n }", "function setAuthType($authtype){\n $this->authType=$authtype;\n }", "protected function setDefaultOptions()\n {\n $this->unsigned = false;\n }", "public function setC($x) { $this->c = $x; }", "function __set($name , $value )\r\n {\r\n \tif (key_exists($name, $this->definicionCampos))\r\n \t{\r\n \t $this->campos[$name] = $value;\r\n \t return true;\r\n \t}\r\n \treturn false;\r\n \t\r\n }", "public function GeneralSettingsView(){\n\t\t//Meta is usually not setup yet, so we manually do this before loading css file\n\t\t$this->meta = new Meta();\n\t\t\n\t\t//This class requires an extra css file\n\t\t$this->getMeta()->addExtra('<link href=\"core/fragments/css/admin.css\" rel=\"stylesheet\" type=\"text/css\" />');\n\t}", "public function setCollection(Collection $collection): void\n {\n $this->collection = $collection;\n\n // Map the properties of the base collection\n $this->mapProperties($this->collection);\n\n $this->setUsers();\n }", "public static function set()\r\n\t\t{\r\n\t\t\t\r\n\t\t\t// Get the section.\r\n\t\t\t$section = Legato_Stage::$section;\r\n\t\t\t\r\n\t\t\t// If this isn't the default section and it hasn't been initialized\r\n\t\t\t// yet, carry over the default section's setting.\r\n\t\t\tif ( $section != 'default' && !self::$_loaded[$section] )\r\n\t\t\t{\r\n\t\t\t\tself::$_settings[$section] = self::$_settings['default'];\r\n\t\t\t\tself::$_loaded[$section] = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Get the arguments passed in.\r\n\t\t\t$args = func_get_args();\r\n\t\t\t\r\n\t\t\t// Setting a category or key?\r\n\t\t\tif ( count( $args ) == 3 )\r\n\t\t\t{\r\n\t\t\t\tself::$_settings[$section][$args[0]][$args[1]] = $args[2];\r\n\t\t\t\tself::$_setting_sections[$args[0]][$args[1]] = $section;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif ( !is_array( self::$_settings[$section][$args[0]] ) )\r\n\t\t\t\t\tself::$_settings[$section][$args[0]] = array();\r\n\t\t\t\t\t\r\n\t\t\t\tself::$_settings[$section][$args[0]] = array_merge( self::$_settings[$section][$args[0]], $args[1] );\r\n\t\t\t\t\r\n\t\t\t\t// We have to overwrite which settings belong to which sections.\r\n\t\t\t\tif ( !self::$_setting_sections[$args[0]] )\r\n\t\t\t\t\tself::$_setting_sections[$args[0]] = array();\r\n\t\t\t\t\t\r\n\t\t\t\tself::$_setting_sections[$args[0]] = array_merge( self::$_setting_sections[$args[0]], array_fill_keys( array_keys( $args[1] ), $section ) );\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Success.\r\n\t\t\treturn true;\r\n\t\t\t\r\n\t\t}", "public function testSetGeneContig() {\n\t\techo (\"\\n********************Test SetGeneContig()****************************************************\\n\");\n\t\t\n\t\t$this->gene->setGeneContig ( 'setGeneContig' );\n\t\t$this->assertEquals ( 'setGeneContig', $this->gene->getGeneContig () );\n\t}", "public function __set($_name,$_value) {\n\t\tif (array_key_exists($_name,$this->fields)) {\n\t\t\t$this->fields[$_name]=is_string($_value)?\n\t\t\t\tF3::resolve($_value):$_value;\n\t\t\tif (!is_null($_value))\n\t\t\t\t// Axon is now hydrated\n\t\t\t\t$this->empty=FALSE;\n\t\t\treturn;\n\t\t}\n\t\tif (array_key_exists($_name,$this->virtual)) {\n\t\t\ttrigger_error(self::TEXT_AxonReadOnly);\n\t\t\treturn;\n\t\t}\n\t\tF3::$global['CONTEXT']=$_name;\n\t\ttrigger_error(self::TEXT_AxonNotMapped);\n\t}", "function setAdmin() {\n\t\t$this->_extension_high = \"\";\n\t\t$this->_extension_low = \"\";\n\t\t$this->_deptname = \"\";\n\t\t$this->_sections = array(\"*\");\n\t}", "public function GetGeneral(){\r\r\n\t\treturn self::$general;\r\r\n\t}", "public function set_cookie()\n {\n }", "protected function setMemberDefaults(){\n parent::setMemberDefaults();\n if(!$this->id) $this->id = UniqId::get(\"faq-\");\n }", "public function setFlexFormRelations() {}", "private function _setCompanyConfig(){\n\t\t/* Loading the company configuration file */\n\t\t$this->config->load('company'.DIRECTORY_SEPARATOR.$this->getCompanyCode().DIRECTORY_SEPARATOR.'config');\n\t}", "protected function setOptions($curl)\n {\n if(!curl_setopt($curl, CURLOPT_POST, $this->options->post))\n {\n throw new Exception('Could not set option [post]');\n }\n \n if(!curl_setopt($curl, CURLOPT_HEADER, $this->options->header))\n {\n throw new Exception('Could not set option [header]');\n }\n \n if(!curl_setopt($curl, CURLOPT_RETURNTRANSFER, $this->options->returnTransfer))\n {\n throw new Exception('Could not set option [return transfer]');\n }\n }", "public function setGeneralOption( $name, $value ) {\n\t\tif(!ctype_alpha(str_replace(' ', '', $name))) {\n\t\t\tthrow new \\InvalidArgumentException(sprintf('The name \"%s\" is invalid.', $name));\n\t\t}\n\t\t$this->config['general'][$name] = $value;\n\t}", "public function testSetCasPartSs() {\n\n $obj = new Employes();\n\n $obj->setCasPartSs(true);\n $this->assertEquals(true, $obj->getCasPartSs());\n }", "public function setCC()\n {\n }", "public function setContact($contact)\r\n {\r\n $this->contact= array();\r\n if (is_array($contact)) {\r\n foreach ($contact as $key => $value) \r\n\t\t\t{\r\n $this->contact[$key] = $value;\r\n }\r\n }\r\n }", "public static function setHTMLHeader($header) \n\t{\n\t\tacPhpCas::setReporting();\n\t\tphpCAS::setHTMLHeader($header);\t\t\n\t}", "protected\tfunction\tsetDefinition() {}", "protected\tfunction\tsetDefinition() {}", "public function setCirculante_A(){\n\t\t$this->Circulante_A = $this->getCaixa_e_Equivalentes_de_Caixa()\n\t\t+ $this->getContas_a_Receber_C()\n\t\t+ $this->getEstoques()\n\t\t+ $this->getOutros_Creditos()\n\t\t+ $this->getDespesas_do_Exercicio_Seguinte();\n\t}", "protected function setMacros()\n {\n Meta::mixin(new ValidationMeta);\n BaseModel::mixin(new ValidationModel);\n BaseField::mixin(new ValidationField);\n }", "function setNuevaCuenta($origen, $subproducto, $socio,\n\t\t\t\t\t\t\t$observaciones = \"\", $credito = 1,\n\t\t\t\t\t\t\t$mancomunado1 = \"\", $mancomunado2 = \"\",\n\t\t\t\t\t\t\t$grupo = false, $fecha_de_alta = false,\n\t\t\t\t\t\t\t$tipo_de_cuenta = CAPTACION_TIPO_VISTA, $tipo_de_titulo = 99, $DiasInvertidos = false,\n\t\t\t\t\t\t\t$tasa = false, $CuentaDeInteres\t= false, $FechaVencimiento = false\n\t\t\t\t\t\t\t){\n\n\n\t\t$xT\t\t\t\t= new cTipos(0);\n\t\t$xF\t\t\t\t= new cFecha();\n\t\t$xLog\t\t\t= new cCoreLog();\n\t\t$socio\t\t\t= setNoMenorQueCero($socio);\n\t\t$ready\t\t\t= true;\n\t\t$tipo_de_cuenta\t= setNoMenorQueCero($tipo_de_cuenta);\n\t\t$tipo_de_titulo\t= setNoMenorQueCero($tipo_de_titulo);\n\t\t$credito\t\t= setNoMenorQueCero($credito);\n\t\t$grupo\t\t\t= setNoMenorQueCero($grupo);\n\t\t$DiasInvertidos\t= setNoMenorQueCero($DiasInvertidos);\n\t\t$tasa\t\t\t= setNoMenorQueCero($tasa, 4);\n\t\t$CuentaDeInteres= setNoMenorQueCero($CuentaDeInteres);\n\t\t$estado\t\t\t= 10;\n\t\t//Corrige el numero de persona\n\t\tif($socio <= DEFAULT_SOCIO AND $this->mSocioTitular > DEFAULT_SOCIO ){\n\t\t\t$xLog->add(\"WARN\\tCAMBIO Persona $socio a \" . $this->mSocioTitular . \"\\r\\n\", $xLog->DEVELOPER);\n\t\t\t$socio\t\t= $this->mSocioTitular;\n\t\t}\n\t\t$xSoc\t\t\t\t= new cSocio($socio);\n\t\tif($xSoc->init() == true){\n\t\t\t//$cuenta\t\t\t= $xSoc->getIDNuevoDocto($tipo_de_cuenta, $subproducto);\n\t\t\t$cuenta\t\t\t= $xSoc->getIDNuevoDocto(iDE_CAPTACION);\n\t\t\t$CuentaDeInteres= $xSoc->getCuentaDeCaptacionPrimaria(CAPTACION_TIPO_VISTA, CAPTACION_PRODUCTO_INTERESES);\n\t\t\tif($grupo == DEFAULT_GRUPO OR $grupo == 0){ $grupo = $xSoc->getClaveDeGrupo(); }\n\t\t} else {\n\t\t\t$xLog->add(\"ERROR\\tAl cargar la Persona $socio\\r\\n\", $xLog->DEVELOPER);\n\t\t\t$ready\t\t\t= false; //el socio existe\n\t\t}\n\t\t$xLog->add($xSoc->getMessages(), $xLog->DEVELOPER);\n\t\t//corrige la Cuenta de Intereses\n\t\t$CuentaDeInteres\t= ($CuentaDeInteres <= 0) ? DEFAULT_CUENTA_CORRIENTE : $CuentaDeInteres;\n\n\t\t$fecha_de_alta\t\t\t= $xF->getFechaISO($fecha_de_alta);\n\t\t$FechaVencimiento\t\t= $xF->getFechaISO($FechaVencimiento);\n\t\tif($tipo_de_cuenta == CAPTACION_TIPO_PLAZO){\n\t\t\t$DiasInvertidos\t\t= ($DiasInvertidos <=0 ) ? $this->mDiasInvertidos : $DiasInvertidos;\n\t\t\t$tasa\t\t\t\t= ($tasa <= 0) ? $this->mTasaInteres : $tasa;\n\t\t\t$FechaVencimiento\t= ($xF->getInt($FechaVencimiento) <= $xF->getInt($fecha_de_alta) ) ? $xF->setSumarDias($DiasInvertidos, $fecha_de_alta) : $FechaVencimiento;\n\t\t\t$estado\t\t\t\t= 20;\n\t\t\t$xLog->add(\"WARN\\tInversion Dias $DiasInvertidos Tasa $tasa Vencimiento $FechaVencimiento\\r\\n\", $xLog->DEVELOPER);\n\t\t\tif($xF->setRestarFechas($FechaVencimiento, $fecha_de_alta) != $DiasInvertidos){\n\t\t\t\t$DiasInvertidos\t= $xF->setRestarFechas($FechaVencimiento, $fecha_de_alta);\n\t\t\t\t$xLog->add(\"WARN\\tCAMBIO Inversion Dias $DiasInvertidos ($FechaVencimiento, $fecha_de_alta)\\r\\n\", $xLog->DEVELOPER);\n\t\t\t}\n\t\t} else {\n\t\t\t$xLog->add(\"WARN\\tVista $socio Producto $tipo_de_cuenta sub-producto $subproducto Origen $origen\\r\\n\", $xLog->DEVELOPER);\n\t\t}\n\t\t\n\t\t$xCta\t\t= new cCaptacion_cuentas();\n\t\t$xCta->cuenta_de_intereses($CuentaDeInteres);\n\t\t$xCta->dias_invertidos($DiasInvertidos);\n\t\t$xCta->eacp(EACP_CLAVE);\n\t\t$xCta->estatus_cuenta($estado);\n\t\t$xCta->fecha_afectacion($fecha_de_alta);\n\t\t$xCta->fecha_apertura($fecha_de_alta);\n\t\t$xCta->fecha_baja($xF->getFechaMaximaOperativa());\n\t\t$xCta->fecha_conciliada($fecha_de_alta);\n\t\t$xCta->idusuario(getUsuarioActual());\n\t\t$xCta->inversion_fecha_vcto($FechaVencimiento);\n\t\t$xCta->inversion_periodo(0);\n\t\t$xCta->minimo_mancomunantes(0);\n\t\t$xCta->nombre_mancomunado1($mancomunado1);\n\t\t$xCta->nombre_mancomunado2($mancomunado2);\n\t\t$xCta->numero_cuenta($cuenta);\n\t\t$xCta->numero_grupo($grupo);\n\t\t$xCta->numero_socio($socio);\n\t\t$xCta->numero_solicitud($credito);\n\t\t$xCta->observacion_cuenta($observaciones);\n\t\t$xCta->oficial_de_captacion(getUsuarioActual());\n\t\t$xCta->origen_cuenta($origen);\n\t\t$xCta->saldo_conciliado(0);\n\t\t$xCta->saldo_cuenta(0);\n\t\t$xCta->sucursal(getSucursal());\n\t\t$xCta->tasa_otorgada($tasa);\n\t\t$xCta->tipo_cuenta($tipo_de_cuenta);\n\t\t$xCta->tipo_titulo($tipo_de_titulo);\n\t\t$xCta->tipo_subproducto($subproducto);\n\t\t$xCta->ultimo_sdpm(0);\n\t\tif($ready == true){ \n\t\t\t$rs \t= $xCta->query()->insert()->save();\n\t\t\t$ready \t= ($rs == false) ? false : true;\n\t\t}\n\t\t//Asignar valores cargados\n\t\tif ( $ready == true) {\n\t\t\t$xLog->add(\"OK\\tSe Agrego Existosamente la Cuenta $cuenta del subproducto $subproducto \\r\\n\");\n\t\t\t$this->mSucess \t\t\t\t= true;\n\t\t\t$this->mSocioTitular\t\t= $socio;\n\t\t\t$this->mGrupoAsociado\t\t= $grupo;\n\t\t\t$this->mCreditoAsoc\t\t\t= $credito;\n\t\t\t$this->mNumeroCuenta\t\t= $cuenta;\n\t\t\t$this->mDiasInvertidos\t\t= $DiasInvertidos;\n\t\t\t$this->mFechaVencimiento\t= $FechaVencimiento;\n\t\t\t$this->mTasaInteres\t\t\t= $tasa;\n\t\t\t$this->mFechaOperacion\t\t= $fecha_de_alta;\n\t\t\t$this->init();\t\n\t\t} else {\n\t\t\t$xLog->add(\"ERROR\\tError al agregar la Cuenta $cuenta del subproducto $subproducto\\r\\n\");\n\t\t\t$this->mSucess \t\t\t\t= false;\n\t\t}\n\t\t//setLog($xLog->getMessages());\n\t\t$this->mMessages\t\t\t\t.= $xLog->getMessages();\n\t\treturn $this->mNumeroCuenta;\n\t}", "public function genc()\n {\n $this->genc = true;\n }", "abstract protected function getEntitySetWithDefaults();", "public function testSetSignAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignAutre(\"signAutre\");\n $this->assertEquals(\"signAutre\", $obj->getSignAutre());\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->st_usuario = true;\n\t}", "private function __setAuthUser()\n {\n $authUser = $this->request->session()->read('Auth');\n\n $accountType = 'FREE';\n if (!empty($authUser)) {\n $accountType = $authUser['User']['account_type'];\n }\n\n $this->set(compact('authUser', 'accountType'));\n }", "public function setAll(array $all)\n\t{\n\t\t$this->all = $all;\n\n\t\tforeach ($this->setters as $key => $setter)\n\t\t{\n\t\t\tif (!array_key_exists($key, $all))\n\t\t\t{\n\t\t\t\tthrow new MissingRequiredConfigOptionException(\"Missing key '{$key}' when trying to mass assign Generator Config.\");\n\t\t\t}\n\n\t\t\t$this->set($key, $all[$key]);\n\t\t}\n\t}", "public static function setMaster (){\n self::$master = 1;\n }", "public function set_meta( $meta, $single = false ) {\n\t\t$this->meta = wp_parse_args( $meta, $this->meta );\n\n\t\tif ( $single ) {\n\t\t\tupdate_comment_meta( $this->id, key( $meta ), $meta[ key( $meta ) ] );\n\t\t} else {\n\t\t\tupdate_comment_meta( $this->id, APP_REPORTS_C_DATA_KEY, $this->meta );\n\t\t}\n\t}", "function gs_set_keys() {\r\n\tif ( !get_option('acf_options_page_ac') && defined('ACF_OPTIONS_KEY') )\r\n\t\tupdate_option('acf_options_page_ac', ACF_OPTIONS_KEY);\r\n\r\n\tif ( !get_option('acf_repeater_ac') && defined('ACF_REPEATER_KEY') )\r\n\t\tupdate_option('acf_repeater_ac', ACF_REPEATER_KEY);\r\n}", "function setAccessControl( $section, $value=null ) {\n\t\t$this->_acoSection = $section;\n\t\t$this->_acoSectionValue = $value;\n\t}", "public function form_set($form) {\n\t\t\t\t$this->form = $form;\n\t\t\t}" ]
[ "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.43680948", "0.43510088", "0.4346053", "0.4343662", "0.4334584", "0.43266904", "0.43242404", "0.43240586", "0.43168774", "0.43112665", "0.4309771", "0.43079787", "0.43064013", "0.42863485", "0.42859367", "0.42809525", "0.42789596", "0.42788768", "0.42678273", "0.4266523", "0.42631352", "0.42624107", "0.42618892", "0.42598686", "0.4257665", "0.42568266", "0.42539412", "0.4242191", "0.42407185", "0.42402202", "0.42398116", "0.42360494", "0.4236042", "0.4236042", "0.42291003", "0.422803", "0.42135373", "0.42129123", "0.4211416", "0.42074177", "0.4205066", "0.41998285", "0.41981885", "0.41852018", "0.41829836", "0.41821304", "0.41755816", "0.41752937", "0.41752073", "0.41732386", "0.41731036", "0.4168629", "0.4162187", "0.41595167", "0.4153137", "0.4153137", "0.41511482", "0.41443166", "0.4140594", "0.41377687", "0.41318718", "0.41254947", "0.41244373", "0.41212845", "0.4118756", "0.41178408", "0.4117081", "0.41101876", "0.41086215", "0.410852" ]
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 }", "public function testSetControleur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setControleur(\"controleur\");\n $this->assertEquals(\"controleur\", $obj->getControleur());\n }", "public function testSetAnnulationChantier() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationChantier(true);\n $this->assertEquals(true, $obj->getAnnulationChantier());\n }", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\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 setLafiliere_idlafiliere(int $lafiliere_idlafiliere):void\n {\n $lafiliere_idlafiliere = (int)$lafiliere_idlafiliere;\n //checking is empty\n if(empty($lafiliere_idlafiliere)){\n trigger_error(\"The foreign key session is not valid\",E_USER_NOTICE);\n }else{\n $this->lafiliere_idlafiliere = $lafiliere_idlafiliere;\n }\n }", "public function setCodice($codice) \n\t{\n $this->codice = $codice;\n }", "public function setInitiator(?IdentitySet $value): void {\n $this->getBackingStore()->set('initiator', $value);\n }", "public function set_saida(Saida $object)\n {\n $this->saida = $object;\n $this->ref_saida = $object->id;\n }", "public function setCrit()\n {\n $this->_role->crit = 100;\n }", "public function testSetModifChantier() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifChantier(\"modifChantier\");\n $this->assertEquals(\"modifChantier\", $obj->getModifChantier());\n }", "public function &setCreditActief($creditActief) {\n\t\t$this->notifyChanged(self::FIELD_CREDITACTIEF,$this->creditActief,$creditActief);\n\t\t$this->creditActief=$creditActief;\n\t\treturn $this;\n\t}", "function SetOtherObjectClient($Resource) {\n\t\t\t$this->ObjClientSide = $Resource;\n\t\t\tif (is_uploaded_file($this->GetFileTempName())) {\n\t\t\t\t$this->SetReplaceMode(0);\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\t$this->RollbackUpload();\n\t\t\t\tdie('El cambio de recurso es erroneo: se ha procedido al rollback de todas las operaciones');\n\t\t\t}\n\t\t}", "function setReference( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->Reference = $value;\n }", "public function setCirculante_A(){\n\t\t$this->Circulante_A = $this->getCaixa_e_Equivalentes_de_Caixa()\n\t\t+ $this->getContas_a_Receber_C()\n\t\t+ $this->getEstoques()\n\t\t+ $this->getOutros_Creditos()\n\t\t+ $this->getDespesas_do_Exercicio_Seguinte();\n\t}", "public function testSetCodeCollaborateurEntrant() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurEntrant(\"codeCollaborateurEntrant\");\n $this->assertEquals(\"codeCollaborateurEntrant\", $obj->getCodeCollaborateurEntrant());\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 testSetInterdireModifAffCli() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifAffCli(true);\n $this->assertEquals(true, $obj->getInterdireModifAffCli());\n }", "public function __set( $name, $value )\n {\n\t\t\tif( property_exists( \"UserSVC\", $name ) )\n\t\t\t\t$this->$name = $value;\n }", "public function beforeSet() {\n $name = $this->getProperty('name');\n if (empty($name)) {\n $this->addFieldError('name',$this->modx->lexicon('required'));\n }\n\n $test = $this->getProperty('test');\n if (empty($test)) {\n $this->addFieldError('name','Required parameter test is not specified.');\n }\n\n $testObject = $this->modx->getObject('sabTest', $test);\n if (!$testObject) {\n $this->addFieldError('name','Parent test not found.');\n }\n\n $element = $this->getProperty('element');\n $elementType = $testObject->get('type');\n $elementObj = $this->modx->getObject($elementType, $element);\n if (!$elementObj) {\n $this->addFieldError('element', 'Element does not exist.');\n }\n\n /* Set checkbox */\n $this->setCheckbox('active', true);\n return parent::beforeSet();\n }", "public function testSetFicheContradictoire() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setFicheContradictoire(true);\n $this->assertEquals(true, $obj->getFicheContradictoire());\n }", "function __set($name,$value){\r\n try{\r\n return parent::__set($name,$value);\r\n }catch(exception $e){\r\n return $this->_options[$name]=$value;\r\n }\r\n }", "public function setCrit()\n {\n $this->_role->crit = 0;\n }", "public function set_cookie()\n {\n }", "protected function setCc() {}", "public function testSetCodeVehicule() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVehicule(\"codeVehicule\");\n $this->assertEquals(\"codeVehicule\", $obj->getCodeVehicule());\n }", "public function setVoiture($voiture){\n $this->$voiture = $voiture;\n }", "public function testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }", "public function setRoleSupervisor()\n {\n // $role = Role::where('name', 'supervisor')->first();\n // $permissions = Permission::where('name', 'like', 'blog-%')->get();\n // $role->syncPermissions($permissions);\n }", "public function setChoix($choix)\n {\n $this->choix = $this->recupValeur($choix);\n }", "abstract public function setAuthor($author);", "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 setClave($clave){\n\t\t$this->clave = $clave;\n\t}", "public function addCollectionCookie( $specimen)\n {\n\t $this->getResponse()->setCookie('collection_ref_session',$specimen->getCollectionRef());\n $this->getResponse()->setCookie('institution_ref_session',$specimen->getCollections()->getInstitutionRef());\n\t \n }", "public function testSetCodeClient() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetTypeControle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setTypeControle(\"typeControle\");\n $this->assertEquals(\"typeControle\", $obj->getTypeControle());\n }", "public function testSetCodeAffaire() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeAffaire(\"codeAffaire\");\n $this->assertEquals(\"codeAffaire\", $obj->getCodeAffaire());\n }", "public function testSetComplement() {\n\n $obj = new Employes();\n\n $obj->setComplement(\"complement\");\n $this->assertEquals(\"complement\", $obj->getComplement());\n }", "function __set($name,$value){\n try{\n return parent::__set($name,$value);\n }catch(exception $e){\n return $this->_options[$name]=$value;\n }\n }", "private function _setIdentity(){\n $this->_setUserData($this->getClassUser()->getIdentity());\n }", "private function setCourse()\n {\n return $this->Course = \"Biology\";\n }", "public function __set($name, $value){\r\n echo \"You are trying to direct set property \".$name.\" to value \".$value.\" and thats not possible use set\".$name.\"(\\$value) method.\";\r\n echo \"<br/> At line \".__LINE__.\" in file \".__FILE__;\r\n }", "public function testSetCreationChantier() {\n\n $obj = new Collaborateurs();\n\n $obj->setCreationChantier(true);\n $this->assertEquals(true, $obj->getCreationChantier());\n }", "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 function set_user_fundraiser()\n {\n global $_COOKIE, $woocommerce;\n\n // If current request is for a fundraiser, set the ID of the\n // the fundraiser as a cookie.\n if( is_singular( self::POST_TYPE ) ) {\n\n // Get the ID of the fundraiser we're on.\n $fundraiserId = get_the_ID();\n\n // If the fundraiser is already set, we may need to do things.\n if( isset( $_COOKIE[ 'rwc_fundraiser' ] ) )\n {\n /*\n * If the fundraiser being viewed is different than the\n * fundraiser that's set, we need to clear the cart.\n */\n if( $_COOKIE[ 'rwc_fundraiser' ] != $fundraiserId )\n {\n $woocommerce->cart->empty_cart();\n }\n }\n\n // Set cookie for 1 day, and store in an option. It will not\n // be available in _COOKIES on first set.\n $this->set_option( 'userFundraiser', $fundraiserId );\n\n setcookie( 'rwc_fundraiser', $fundraiserId,\n time() + ( 60 * 60 * 24 ), '/' );\n\n } else {\n\n\n global $_COOKIE;\n\n // If the user fundraiser is set, use it.\n if( isset( $_COOKIE[ 'rwc_fundraiser' ] ) ) {\n\n $this->set_option( 'userFundraiser',\n $_COOKIE[ 'rwc_fundraiser' ] );\n }\n }\n }", "public function set_cidade(Cidade $object)\n {\n $this->cidade = $object;\n $this->cidade_id = $object->id;\n }", "public function testSetCodeCollaborateur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeCollaborateur(\"codeCollaborateur\");\n $this->assertEquals(\"codeCollaborateur\", $obj->getCodeCollaborateur());\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}", "public function testSetJour() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setJour(\"jour\");\n $this->assertEquals(\"jour\", $obj->getJour());\n }", "public function setContact($contact): void\n {\n $this->_contact = $contact;\n }", "public function testSetDernLieuTravail() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernLieuTravail(\"dernLieuTravail\");\n $this->assertEquals(\"dernLieuTravail\", $obj->getDernLieuTravail());\n }", "public function setOtherSide($value) {\r\n $this->otherSide = $this->setBooleanProperty($this->otherSide, $value);\r\n }", "public function testSetTypeContrat() {\n\n $obj = new Employes();\n\n $obj->setTypeContrat(\"typeContrat\");\n $this->assertEquals(\"typeContrat\", $obj->getTypeContrat());\n }", "function set_est_alcoolisee($est_alcoolisee){\n if($est_alcoolisee == true || $est_alcoolisee == false){\n $this->est_alcoolisee = $est_alcoolisee;\n }else{\n $this->erreur(\"La type de boisson doit être : true ou false. Or c'est : \".$est_alcoolisee.\"<br>\");\n }\n }", "public function setCollection()\n {\n $cl = $this->nameCollection;\n $this->collection = self::$database->$cl;\n }", "protected function doSet($value)\n {\n }", "public function setCompactor(Closure $compactor)\n {\n $this->compactor = $compactor;\n }", "public function setCACert(?string $cacert): void\n {\n }", "public function testSetInterdireEnvoiPostit() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireEnvoiPostit(true);\n $this->assertEquals(true, $obj->getInterdireEnvoiPostit());\n }", "function __set($name , $value )\r\n {\r\n \tif (key_exists($name, $this->definicionCampos))\r\n \t{\r\n \t $this->campos[$name] = $value;\r\n \t return true;\r\n \t}\r\n \treturn false;\r\n \t\r\n }", "function setAccessControl( $section, $value=null ) {\n\t\t$this->_acoSection = $section;\n\t\t$this->_acoSectionValue = $value;\n\t}", "public function setCompte($compte)\n {\n $this->compte = $compte;\n\n return $this;\n }", "public function testSetCodeCollaborateurRedir() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurRedir(\"codeCollaborateurRedir\");\n $this->assertEquals(\"codeCollaborateurRedir\", $obj->getCodeCollaborateurRedir());\n }", "public function testSetHandicape() {\n\n $obj = new Employes();\n\n $obj->setHandicape(true);\n $this->assertEquals(true, $obj->getHandicape());\n }", "public function __set($name,$value)\r\n {\r\n $this->set($name,$value);\r\n }", "public function setIsContractor(bool $isContractor) : self\n {\n $this->isContractor = $isContractor;\n return $this;\n }", "public function setAuthor(UserInterface $author)\n {\n $this->author = $author;\n }", "protected function setTo() {}", "public function cas($cas, $key, $value, $expiry = 0) {}", "function setPlace( &$value )\n {\n $this->Place = $value;\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.4894253", "0.4888502", "0.48815724", "0.48769987", "0.48720896", "0.48700935", "0.48683688", "0.48650464", "0.485503", "0.48508456", "0.48498014", "0.4848594", "0.48482835", "0.4840953", "0.48268256", "0.48231", "0.4819395", "0.4816507", "0.48155913", "0.48056713", "0.48056415", "0.48048213", "0.47987294", "0.47949773", "0.4788644", "0.47872615", "0.47845683", "0.4783075", "0.4781925", "0.4781367", "0.4779382", "0.47730768", "0.47708508", "0.4765542", "0.4764719", "0.4764707", "0.47643602", "0.47564644", "0.47547212", "0.4752164", "0.47519842", "0.47468224", "0.47462684", "0.47433499", "0.4742981", "0.47423887", "0.474203", "0.47403586", "0.47393984", "0.4738978", "0.47335008", "0.47289586", "0.47286415", "0.47272918", "0.4726573", "0.4720513", "0.4719986", "0.4716699", "0.47154006", "0.4712291", "0.47064415", "0.4705945", "0.47057685", "0.47012585", "0.46963853", "0.46923947", "0.4684943", "0.46840507", "0.46786195", "0.46780485" ]
0.58338654
0
Set the categorie sal.
public function setCategorieSal($categorieSal) { $this->categorieSal = $categorieSal; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_categorie($categorie){\n if($categorie == \"vin\" || $categorie == \"eau\" || $categorie == \"jus\"){\n $this->categorie = $categorie;\n }else{\n $this->erreur(\"La categorie doit être : vin, eau ou jus. Or c'est : \".$categorie.\"<br>\");\n }\n }", "public function testSetSousCategorie() {\n\n $obj = new Materiels();\n\n $obj->setSousCategorie(\"sousCategorie\");\n $this->assertEquals(\"sousCategorie\", $obj->getSousCategorie());\n }", "public function testSetCategSalarie() {\n\n $obj = new Employes();\n\n $obj->setCategSalarie(\"categSalarie\");\n $this->assertEquals(\"categSalarie\", $obj->getCategSalarie());\n }", "public function testSetCategorie() {\n\n $obj = new Materiels();\n\n $obj->setCategorie(\"categorie\");\n $this->assertEquals(\"categorie\", $obj->getCategorie());\n }", "public function setCategory() {\n /**\n *\n * @todo make a separate config file for the default category ?!\n */\n $defaultCategory = 1;\n $category = Category::find()->all();\n $newCat = $this->strProcessing($this->category);\n $k = NULL;\n if (!empty($newCat)) {\n foreach ($category as $value) {\n $cat = explode(',', $value['synonyms']);\n $cat = array_map(array($this, 'strProcessing'), $cat);\n $k = array_search($newCat, $cat);\n if ($k !== NULL && $k !== FALSE) {\n $k = $value['id'];\n break;\n }\n }\n }\n if ($k) {\n $this->category = $k;\n } else {\n $this->category = $defaultCategory;\n }\n return TRUE;\n }", "public function HM_CategoCuentas()\n {\n }", "public function getCategorieSal() {\n return $this->categorieSal;\n }", "public function setCategoria($categoria)\n {\n $this->categoria = $categoria;\n }", "public function categorie()\n {\n $data[\"categories\"]=$this->categories->list();\n $this->template_admin->displayad('categories' , $data);\n }", "public function setCategoryAttribute($value)\n {\n $this->attributes['category'] = strtoupper($value);\n }", "function alterarCategoria() {\n\n\t\t$codigoParaAlterar = $_POST['textCodigoCategoria'];\n\t\t$nomeEdicaoCategoria = $_POST['textCategoria'];\n\n\t\tif (true){\n\n\t\t\techo '<div class=\"alert alert-success\"><strong> A categoria \"'.$nomeEdicaoCategoria.'\" editado com sucesso!'.$codigoParaAlterar.'</strong> </div>';\n\n\t\t}else{\n\n\t\t\techo \"<div class='alert alert-danger espacoForm'><strong>Edição não realizada!</strong> Ocorreu um erro.</div>\";\n\n\t\t}\n\n\n\t}", "public function testSetCategoriePermis() {\n\n $obj = new Employes();\n\n $obj->setCategoriePermis(\"categoriePermis\");\n $this->assertEquals(\"categoriePermis\", $obj->getCategoriePermis());\n }", "public function set($cat,$arr){\r\n\t\tif($cat==\"demographics\"){\r\n\t\t\treturn $this->set_demographics($arr);\r\n\t\t}\r\n \tif (isset($this->categories[$cat])){\r\n \t\t$fn=\"set_\".$cat;\r\n \t\t$v=$this->$fn($arr);\r\n \t\tif($v==false){\r\n \t\t\t$this->update($cat);\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\treturn $v;\r\n \t}\r\n \tthrow new Exception(\"Invalid category!\");\r\n\t}", "function sensible_category() {\n wp_update_term(1, 'category', array(\n 'name' => 'News',\n 'slug' => 'news', \n 'description' => 'News'\n ));\n }", "public function getCategoria()\n {\n return $this->categoria;\n }", "public function _construct(Categoria $categoria){\n\n\t\t$this->categoria = $categoria;\n\t}", "function __construct() {\n\t\t$this -> modelo = new categoriaBss();\n\t}", "protected function fijarId(){\n return \"cod_categoria\";\n }", "function getCodigoCategoria()\n {\n return $this->CodigoCategoria;\n }", "public function getCategoria()\n {\n return $this->categoria;\n }", "public function getCategoria()\n {\n return $this->categoria;\n }", "private function set_categorieId(int $categorieId)\n {\n $this->_categorieId = $categorieId;\n }", "public function AddCategorieToSelect($data){\n \n for ($i = 0; $i < sizeof($data); $i++) {\n $this->categorie_select->addMultiOption($data[$i]['Nome'], $data[$i]['Nome']);\n }\n\n }", "public function getCategoria()\n {\n return \"Cliente com Risco\";\n }", "public function testSetCategoriePrixKm() {\n\n $obj = new Collaborateurs();\n\n $obj->setCategoriePrixKm(\"categoriePrixKm\");\n $this->assertEquals(\"categoriePrixKm\", $obj->getCategoriePrixKm());\n }", "public function testSetCategPopulation() {\n\n $obj = new Employes();\n\n $obj->setCategPopulation(\"categPopulation\");\n $this->assertEquals(\"categPopulation\", $obj->getCategPopulation());\n }", "public function category(){\n\n Excel::import(new ComponentsImport,'/imports/categories.csv');\n $cats = array_values(array_unique(Cache::get('category')));\n for($i=0;$i<count($cats);$i++){\n $sub = new Category();\n $sub->name = $cats[$i];\n $sub->save();\n }\n }", "function makeCategory($ar_kat)\r\n\t{\r\n\t\tforeach($ar_kat as $val)\r\n\t\t{\r\n\t\t\t$this->trainNewCategory($val, $val);\r\n\t\t}\r\n\t\t\r\n\t\t/*isi word probability*/\r\n\t\tforeach($ar_kat as $val) //untuk setiap kategori\r\n\t\t{\r\n\t\t\tforeach ($this->arr_wc[$val]->vocab as $key => $row)\r\n\t\t\t{\r\n\t\t\t\t$prob = (1 + $row) / ($this->ctgrmgr->listCategory[$val]->jumWordInCategory + $this->arr_wc[$val]->jumVocab);\r\n\t\t\t\t//echo \"$row \";\r\n\t\t\t\t$this->ctgrmgr->listCategory[$val]->addWordProb($key, $prob);\r\n\t\t\t}\r\n\t\t\tif ($this->debug)\r\n\t\t\t{\r\n\t\t\t\techo \"<br/>\";\r\n\t\t\t\techo \"jum in category : \"; echo $this->ctgrmgr->listCategory[$val]->jumWordInCategory; echo \"<br/>\";\r\n\t\t\t\techo \"jum vocab : \"; echo $this->arr_wc[$val]->jumVocab; echo \"<br/>\";\r\n\t\t\t\techo \"get cat prob $val : \"; echo $this->ctgrmgr->getCatProb($val); echo \"<br/>\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->serializeCat();\r\n\t}", "public function setId($id){\n $this->_sub_cat_id = $id;\n }", "public function ActualizarCategorias()\n\t{\n\n\t\tself::SetNames();\n\t\tif(empty($_POST[\"codcategoria\"]) or empty($_POST[\"nomcategoria\"]))\n\t\t{\n\t\t\techo \"1\";\n\t\t\texit;\n\t\t}\n\t\t$sql = \" select nomcategoria from categorias where codcategoria != ? and nomcategoria = ? \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->execute( array($_POST[\"codcategoria\"], $_POST[\"nomcategoria\"]) );\n\t\t$num = $stmt->rowCount();\n\t\tif($num == 0)\n\t\t{\n\t\t\t$sql = \" update categorias set \"\n\t\t\t.\" nomcategoria = ? \"\n\t\t\t.\" where \"\n\t\t\t.\" codcategoria = ?;\n\t\t\t\";\n\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t$stmt->bindParam(1, $nomcategoria);\n\t\t\t$stmt->bindParam(2, $codcategoria);\n\n\t\t\t$codcategoria = strip_tags(strtoupper($_POST[\"codcategoria\"]));\n\t\t\t$nomcategoria = strip_tags(strtoupper($_POST[\"nomcategoria\"]));\n\t\t\t$stmt->execute();\n\n\t\t\techo \"<div class='alert alert-info'>\";\n\t\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\t\techo \"<span class='fa fa-check-square-o'></span> LA CATEGORIA DE PRODUCTO FUE ACTUALIZADA EXITOSAMENTE\";\n\t\t\techo \"</div>\";\t\t\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo \"2\";\n\t\t\texit;\n\t\t}\n\t}", "public function setCategory($category)\n {\n if(strlen($category) <= 25 && strlen($category) > 0 && preg_match('#^[a-zA-Z- ]*$#', $category)) {\n $this->category = $category;\n }\n }", "public function set_category_class($class = 'SimplePie_Category')\n {\n }", "function setCategory($value) \n {\n return $this->instance->setcategory($value);\n }", "public function getCategoria()\n {\n return \"Cliente com alta credibilidade\";\n }", "public function setAxis($category)\n {\n parent::setAttr(\"axis\", $category);\n }", "public function alterarCategoria($id, $nome){\r\n $conector = new Conector();\r\n $banco = new BancoCategoria();\r\n try{\r\n if($banco->alterarCategoria($conector->getConexao(), new Categoria($id, $nome))){\r\n $_SESSION['success'] = \"Categoria criada com sucesso\";\r\n } else {\r\n $_SESSION['danger'] = \"Falha ao criar categoria, tente novamente.\";\r\n }\r\n } catch (Exception $e) {\r\n $_SESSION['danger'] = \"Falha ao criar categoria, tente novamente.\";\r\n }\r\n header(\"Location: ../php/categorias.php\");\r\n }", "public function getCategoria_id()\n {\n return $this->categoria_id;\n }", "private function set_accessory_catid_arr()\n {\n $this->accessory_catid_arr = $this->sc['complementaryAccModel']->getAccessoryCatidArr();\n }", "public function addCathegory($values)\n\t{\n\t\treturn $this->getTable('kategoria')->insert(array(\n\t\t\t'Nazov' => $values->nazov,\n\t\t));\n\t}", "function categoria($productos) {\r\n $opciones = array(); \r\n foreach($productos->producto as $producto) {\r\n $opciones[] = $producto->categoria;\r\n }\r\n //eliminar los duplicados para mostrar el select con las opciones\r\n $opciones = array_unique($opciones);\r\n\r\n //crear las opciones del select sin repetidos\r\n for ($i=0; $i < count($opciones); $i++) { \r\n echo \"<option value='\" . $opciones[$i] . \"'>\" . ucwords($opciones[$i]) . \"</option>\";\r\n }\r\n }", "public function setCategory($val)\n {\n $this->_propDict[\"category\"] = $val;\n return $this;\n }", "public function AddCategorieToSelect($data)\n {\n for ($i = 0; $i < sizeof($data); $i++) {\n $this->categorie_select->addMultiOption($data[$i]['id_categoria'], $data[$i]['nome']);\n }\n }", "public function testSetClassification() {\n\n $obj = new Employes();\n\n $obj->setClassification(\"classification\");\n $this->assertEquals(\"classification\", $obj->getClassification());\n }", "public function getIdCategoria()\n {\n return $this->id_categoria;\n }", "public function getIdCategoria()\n {\n return $this->id_categoria;\n }", "public function setClassification(string $value, string $catalogId): void\n {\n // hack to later set the `catalog-id=\"$catalogId\"` attribute within `createElement()`\n $this->catalog = $catalogId;\n\n $this->elements['classification-category'] = $value;\n }", "public function getCategorie()\n {\n return $this->categorie;\n }", "public function atualizarCategoria($idcategoria, $categoria, $habilitado){\n //$conexao = $c->conexao();\n\n $sql = \"SELECT count(*) as total from tbcategorias where nome='$categoria' \";\n $sql = $this->conexao->query($sql);\n\n if(empty($categoria)) {\n return 2;\n }else{\n\n $sql = \"UPDATE tbcategorias SET nome = '$categoria', habilitado = '$habilitado' WHERE idcategoria = '$idcategoria' \";\n\n echo $this->conexao->query($sql);\n \n }\n\n }", "public function testSetStatutJuridique() {\n\n $obj = new AttestationCacm();\n\n $obj->setStatutJuridique(\"statutJuridique\");\n $this->assertEquals(\"statutJuridique\", $obj->getStatutJuridique());\n }", "public function get_categorie(){\n\t\treturn $this->search_categorie;\n\t}", "public function getIdcategoria()\n {\n return $this->idcategoria;\n }", "public function setAnalitics($cad) { $this->analitics = $cad; }", "public function __construct() {\n $this->message = \"Problema ao listar categorias alfabeticamente.\";\n }", "public function run()\n {\n $categorie = config('database.categories');\n\n foreach ($categorie as $value) {\n $nuova_categoria = new Category();\n $nuova_categoria->name = $value['name'];\n $nuova_categoria->slug = Str::slug($value['slug']);\n //$nuovo_libro->fill($value);\n $nuova_categoria->save();\n }\n }", "function set_acl_category($category)\n {\n $this->acl_category = $category;\n foreach ($this->plugins as $name => $obj) {\n $this->plugins[$name]->set_acl_category($category);\n }\n }", "public function getIdKategoria() {\n return $this->idKategoria;\n }", "public function actualizarCategorias($datos){\n $con= new conectar();\n $conexion= $con->conexion();\n $sql= \"UPDATE categoria set nombre='$datos[0]' WHERE id='$datos[1]'\";\n return $result= mysqli_query($conexion, $sql);\n }", "protected function fijarTabla(){\n \n return \"categorias\";\n \n }", "public function __construct() {\n $this->data['title'] = 'Category';\n }", "public function categoria()\n {\n return $this->belongsTo(Categoria::class);\n }", "public function setCategory($value)\n {\n $this->setItemValue('category', ['id' => (int)$value]);\n }", "public function run()\n {\n foreach (self::CATEGORIAS as $value) {\n Categoria::create([\n 'nombre' => $value\n ]);\n }\n }", "public function shtikliraniKategorii($attribute)\n {\n if (!is_array($this->$attribute)){\n $this->addError($attribute, 'Nemate stiklirano kategorii');\n }\n }", "public function traitementCategorie() {\n\n $this->data .= '<div class=\"boutique-droite\">';\n if(isset($_GET['categorie']))\n {\n $donnees = Database::query(\"SELECT id_produit,reference,titre,photo,prix FROM produit WHERE categorie=?\", array($_GET['categorie']));\n foreach($donnees as $key2 =>$produit)\n {\n $this->data .= '<div class=\"boutique-produit\">';\n $this->data .= \"<h3>$produit[titre]</h3>\";\n $this->data .= \"<a href=\\\"fiche_produit.php?id_produit=$produit[id_produit]\\\"><img src=\\\"$produit[photo]\\\" width=\\\"130\\\" height=\\\"100\\\" /></a>\";\n $this->data .= \"<p>$produit[prix] €</p>\";\n $this->data .= '<a href=\"fiche_produit.php?id_produit=' . $produit['id_produit'] . '\">Voir la fiche</a>';\n $this->data .= '</div>';\n }\n }\n $this->data .= '</div></div>';\n }", "public function getCategoria()\n {\n return \"Cliente padrão\";\n }", "public function set_category_base($category_base)\n {\n }", "function setCategory($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n}", "public function get_categoria() {\n $conectar=parent::conexion();\n parent::set_names();\n $sql=\"SELECT * FROM tm_categoria WHERE est=1\";\n $sql=$conectar->prepare($sql);\n $sql->execute();\n // IMPORTANTE AGREGARLE EL PDO::FETCH_ASSOC PARA QUE HAGA BIEN LA CONSULTA\n return $resultado=$sql->fetchAll(PDO::FETCH_ASSOC);\n\n }", "public function getCodeStatutCateg() {\n return $this->codeStatutCateg;\n }", "public function categoria()\n {\n return $this->belongsTo(Categoria::class, 'fk_id_categoria');\n }", "public function __construct()\n {\n $cats = get_categories();\n if(class_exists('Category'))\n {\n if( is_array($cats) && count($cats)>0 ){\n $idC = 0;\n foreach($cats as &$cat)\n {\n $category = new Category($cat->term_id, $cat->name, $cat->slug, $cat->parent);\n $this->lstCat[$idC] = $category->convertToArray(array('id', 'name', 'slug', 'parent'));\n $this->lstCat[$idC]['aff']=true;\n $idC++;\n }unset($cat);\n }\n }\n }", "public function updateCategory()\n {\n Category::findOrFail($this->category_id)->update([\n 'category_name' => $this->categoryName,\n 'slug' => Str::slug($this->categoryName),\n 'class' => $this->class,\n\n ]);\n }", "public function getIdCategorie(): int\n {\n return $this->id_categorie;\n }", "public function testSetCategorieTicketResto() {\n\n $obj = new Collaborateurs();\n\n $obj->setCategorieTicketResto(\"categorieTicketResto\");\n $this->assertEquals(\"categorieTicketResto\", $obj->getCategorieTicketResto());\n }", "protected function setupCategories()\n {\n static $done;\n\n if (!empty($done)) {\n return;\n }\n\n $c = new Categories();\n $c->setContext('G_Access');\n $c->setIsActive(true);\n $c->save();\n\n $ci = new CategoriesI18n();\n $ci->setId($c->getId());\n $ci->setTitle('Girl Accessories');\n $ci->setLocale('da_DK');\n $ci->setContent('test 1.2.3');\n $ci->save();\n\n $c = new Categories();\n $c->setContext('LG_Access');\n $c->setIsActive(true);\n $c->save();\n\n $ci = new CategoriesI18n();\n $ci->setId($c->getId());\n $ci->setTitle('Little Girl Accessories');\n $ci->setLocale('da_DK');\n $ci->setContent('test 1.2.3');\n $ci->save();\n\n $done = true;\n }", "private function setCategoryDefaultValues()\n {\n if($this->formMode === 'add')\n {\n $this->data['category_title'] = '';\n }\n else if(empty($_POST['category_submit']))\n {\n // Retrieve data from database if NOT POST request\n $data = $this->post_categories_model->getByID($this->data['category_id']);\n $this->data['category_title'] = $data['Post_Category_Title'];\n }\n }", "public function categorie()\n {\n return $this->belongsTo(Categorie::class);\n }", "public function __construct() {\n parent::__construct( 'categories' );\n\n // We want to make sure they match\n if ( isset( $this->category_id ) )\n $this->id = $this->category_id;\n }", "public function categoria()\n {\n //return $this->belongsTo(Categoria::class, 'id_categoria');\n }", "public function setCategory1($val)\n {\n $this->_propDict[\"category1\"] = $val;\n return $this;\n }", "function EditarCategoria($params=null){\n $id_categoria= $params[':ID'];\n $this->modelo->GetCategoria($id_categoria);\n $this->vista->mostrarCategoriaEdit($id_categoria); \n }", "public function getId_categorie()\n {\n return $this->id_categorie;\n }", "public function store(StoreCategoriaRequest $request)\r\n {\r\n try {\r\n $categoria = new Categoria();\r\n $categoria->nombre = $request->input('nombre');\r\n $categoria->save();\r\n } catch (\\Exception $error) {\r\n // manejar\r\n }\r\n }", "public function setAppliedCategories($val)\n {\n $this->_propDict[\"appliedCategories\"] = $val;\n return $this;\n }", "public function set__categories($categories)\n\t{\n\t\t// Currently cannot get multiple category groups through relationships\n\t\t$cat_groups = array();\n\n\t\tif ($this->Channel->cat_group)\n\t\t{\n\t\t\t$cat_groups = explode('|', $this->Channel->cat_group);\n\t\t}\n\n\t\tif ($this->isNew() OR empty($categories))\n\t\t{\n\t\t\t$this->Categories = NULL;\n\t\t}\n\n\t\tif (empty($categories))\n\t\t{\n\t\t\tforeach ($cat_groups as $cat_group)\n\t\t\t{\n\t\t\t\t$this->setRawProperty('cat_group_id_'.$cat_group, '');\n\t\t\t\t$this->getCustomField('categories[cat_group_id_'.$cat_group.']')->setData('');\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t$set_cats = array();\n\n\t\t// Set the data on the fields in case we come back from a validation error\n\t\tforeach ($cat_groups as $cat_group)\n\t\t{\n\t\t\tif (array_key_exists('cat_group_id_'.$cat_group, $categories))\n\t\t\t{\n\t\t\t\t$group_cats = $categories['cat_group_id_'.$cat_group];\n\n\t\t\t\t$cats = implode('|', $group_cats);\n\n\t\t\t\t$this->setRawProperty('cat_group_id_'.$cat_group, $cats);\n\t\t\t\t$this->getCustomField('categories[cat_group_id_'.$cat_group.']')->setData($cats);\n\n\t\t\t\t$group_cat_objects = $this->getModelFacade()\n\t\t\t\t\t->get('Category')\n\t\t\t\t\t->filter('site_id', ee()->config->item('site_id'))\n\t\t\t\t\t->filter('cat_id', 'IN', $group_cats)\n\t\t\t\t\t->all();\n\n\t\t\t\tforeach ($group_cat_objects as $cat)\n\t\t\t\t{\n\t\t\t\t\t$set_cats[] = $cat;\n\t\t\t\t}\n\n\t\t\t\t$cat_ids = $group_cat_objects->pluck('cat_id');\n\t\t\t\tif (ee()->config->item('auto_assign_cat_parents') == 'y')\n\t\t\t\t{\n\t\t\t\t\tforeach ($set_cats as $cat)\n\t\t\t\t\t{\n\t\t\t\t\t\twhile ($cat->Parent !== NULL)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$cat = $cat->Parent;\n\t\t\t\t\t\t\tif ( ! in_array($cat->getId(), $cat_ids))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$set_cats[] = $cat;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$this->Categories = $set_cats;\n\t}", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "function saveCategories($product_id)\n {\n //var_dump(Category::$cats); exit;\n if(is_null($this->categories) || sizeof($this->categories) < 1){\n return;\n }\n \n foreach ($this->categories as $ids) {\n if(empty($ids)){\n continue;\n }\n \tif(isset(Category::$cats[$ids]) && is_object(Category::$cats[$ids])){\n\t $names[] = array('name'=>Category::$cats[$ids]->name);\n\t $cids[] = array('name'=>Category::$cats[$ids]->cid);\n\t $i = 0;\n\t $parent_id = $ids;\n\t \n\t while(($parent_id = Category::$cats[$parent_id]->parent_id) != 0){\n\t \n\t $names[] = array('name'=>Category::$cats[$parent_id]->name);\n\t $cids[] = array('name'=>Category::$cats[$parent_id]->cid);\n\t $i++;\n\t if($i > 7 ){ $i = 0; break; }\n\t }\n\t \t\n\t // \t\n\t \t$this->saveWords(Category::$cats[$ids]->name, $product_id, 2);\n\t \t $this->saveWords(Category::$cats[$ids]->description, $product_id, 1);\n\t\t//\t\t}\n\t\t\t}\n } \n\t\tif(isset($names)){\n \t$this->options['category'] = array('name'=>'category','value'=>$names);\n \t$this->options['category_id'] = array('name'=>'category_id','value'=>$cids);\n\t\t}\n }", "function modificar_Categoria(){\n $conexion = Conexion();\n $sql = \"UPDATE tbl_categoria SET id_categoria = '$this->id_categoria', nombre = '$this->nombre' WHERE id_categoria = '$this->id';\";\n $conexion->query($sql);\n echo\"<script type=\\\"text/javascript\\\">alert('Modificacion Exitosa'); window.location='../Vista/Categoria.php';</script>\";\n }", "protected function fijarAtributos(){\n \n return array(\"cod_categoria\",\"nombre\");\n \n }", "function __construct($nombre,$id_categoria,$id){\n $this->nombre= $nombre;\n $this->id_categoria=$id_categoria;\n $this->id=$id;\n }", "public function setUp() {\n $this->kb_category = new KnowledgeBaseCategory( KnowledgeBaseCategory::SECTION_ADMIN );\n\n // Define\n $this->phactory->define( 'kb_category', array( 'section' => KnowledgeBaseCategory::SECTION_ADMIN, 'name' => self::NAME ) );\n $this->phactory->recall();\n }", "public function setSettingCategory($val)\n {\n $this->_propDict[\"settingCategory\"] = $val;\n return $this;\n }", "public function setCategory($userId, $category)\n {\n $User = $this->find()->select(['id' => $userId])->first();\n if (!$User) {\n throw new \\InvalidArgumentException(\n \"Can't find user with id $userId.\",\n 1420807691\n );\n }\n\n if ($category === 'all') {\n //=if show all cateogries\n $active = -1;\n } elseif (is_array($category)) {\n //=if set a custom set of categories\n $active = 0;\n\n $availableCats = $this->Entries->Categories->find('list')->toArray(\n );\n $categories = array_intersect_key($category, $availableCats);\n if (count($categories) === 0) {\n throw new \\InvalidArgumentException();\n }\n $newCats = [];\n foreach ($categories as $cat => $v) {\n $newCats[$cat] = ($v === true || $v === 1 || $v === '1');\n }\n $User->set('user_category_custom', $newCats);\n } else {\n //=if set a single category\n $category = (int)$category;\n if (\n $category > 0 && $this->Entries->Categories->exists((int)$category)\n ) {\n $active = $category;\n } else {\n throw new \\InvalidArgumentException();\n }\n }\n\n $User->set('user_category_active', $active);\n $this->save($User);\n }", "public function adicionarCategoria($nome){\r\n $conector = new Conector();\r\n $banco = new BancoCategoria();\r\n try{\r\n if($banco->adicionarCategoria($conector->getConexao(), new Categoria(0, $nome))){\r\n $_SESSION['success'] = \"Categoria criada com sucesso\";\r\n } else {\r\n $_SESSION['danger'] = \"Falha ao criar categoria, tente novamente.\";\r\n }\r\n } catch (Exception $e) {\r\n $_SESSION['danger'] = \"Falha ao criar categoria, tente novamente.\";\r\n }\r\n header(\"Location: ../php/categorias.php\");\r\n }", "public function setKlasse($set, ...$klassen) : self {\n if($set) {\n return $this->addKlasse(...$klassen);\n }\n return $this->removeKlasse(...$klassen);\n }", "public function categoria()\r\n {\r\n return $this->belongsTo('App\\Categoria')->first();\r\n }", "public function get_categorieId()\n {\n return $this->_categorieId;\n }", "public function get_category()\n {\n return 'Fun and Games';\n }", "public function get_category()\n {\n return 'Fun and Games';\n }", "public function get_category()\n {\n return 'Fun and Games';\n }" ]
[ "0.73704594", "0.6372971", "0.6353671", "0.62727827", "0.62563443", "0.6228173", "0.61624515", "0.59612256", "0.5882725", "0.58469105", "0.5788867", "0.5752363", "0.56909734", "0.5604994", "0.55942947", "0.5524895", "0.5523681", "0.5487802", "0.54799265", "0.5461424", "0.5461424", "0.54395366", "0.54362315", "0.54258204", "0.54247355", "0.5400854", "0.53905493", "0.53882277", "0.53830045", "0.5379411", "0.5374061", "0.536913", "0.5360972", "0.5347584", "0.5320678", "0.5302778", "0.52926564", "0.52876085", "0.5275671", "0.5245867", "0.52423894", "0.5225178", "0.52107096", "0.51764965", "0.51764965", "0.5175678", "0.5171228", "0.5164369", "0.5151621", "0.5145108", "0.5143662", "0.5143121", "0.5118829", "0.5116464", "0.5106797", "0.5105053", "0.51018023", "0.5092885", "0.50892895", "0.5073368", "0.5062541", "0.5052111", "0.5043311", "0.50364727", "0.5028577", "0.5028005", "0.5022166", "0.5017091", "0.50088173", "0.5007535", "0.5001262", "0.49949214", "0.4987284", "0.49810392", "0.49764", "0.49703705", "0.49678934", "0.49655432", "0.49632165", "0.49594864", "0.49568078", "0.4950935", "0.49508548", "0.4948252", "0.49360615", "0.4931752", "0.49313602", "0.4930739", "0.49207863", "0.49199367", "0.49180228", "0.49116963", "0.4904324", "0.4904165", "0.49019164", "0.49007168", "0.48961186", "0.48935723", "0.48935723", "0.48935723" ]
0.58229893
10
Set the code etablissement.
public function setCodeEtablissement($codeEtablissement) { $this->codeEtablissement = $codeEtablissement; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCode($code);", "public function setCode($code);", "public function setCode($code)\n {\n $this->code = $code;\n }", "public function setCode($code)\n {\n // set the code\n $this->_code = $code;\n \n // reset the strings\n $this->trans = array();\n }", "public function setCode($code)\n\t{\n\t\t$this->code = (int) $code;\n\t}", "function setAmocrmCode(string $code): void {\n\t}", "function setCode($code) {\n\t\tif (empty ($code)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ($this->code != $code) {\n\t\t\t$this->messages= null;\n\t\t\t/*\n\t\t\t\t\t\tif (isset ($this->Session)) {\n\t\t\t\t\t\t\t$this->Session->write('Lang.Code', $code);\n\t\t\t\t\t\t}\n\t\t\t*/\n\t\t\t$this->code= $code;\n\t\t\t$this->controller->set('Lang_Code', $code);\n\t\t\tif (function_exists('setlocale')) {\n\t\t\t\tsetlocale(LC_COLLATE | LC_CTYPE | LC_TIME, $this->getLanguageFromTld($code));\n\t\t\t}\n\t\t}\n\t}", "public function setCode($Code)\n {\n $this->__set(\"code\", $Code);\n }", "public function testSetCodeEtablissement() {\n\n $obj = new Employes();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function testSetCodeEtablissement() {\n\n $obj = new AttestationCacm();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function setCode($code) { $this->code = (int)$code; return $this; }", "public function setEventCode($value) \n {\n $this->_fields['EventCode']['FieldValue'] = $value;\n return $this;\n }", "function code($code=null)\n {\n if (isset($code)) $this->code = $code;\n return $this->code;\n }", "public function setCode($value)\n {\n $this->set(self::ENTRY_CODE, (string) $value);\n }", "public function setCode(?string $value): void {\n $this->getBackingStore()->set('code', $value);\n }", "public function testSetCode() {\n\n $obj = new Collaborateurs();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "public function setCodeAttribute($value)\n {\n $this->attributes['code']=mb_strtoupper($value);\n }", "public function code($code)\n {\n return $this->setProperty('code', $code);\n }", "public function code($code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function setCode($value) {\n return $this->set(self::CODE, $value);\n }", "public function setCode($code, $message);", "public function setCode($code)\n {\n $this->code = (int) $code;\n\n return $this->mergeData([static::codeKey() => $this->code]);\n }", "public function setCode($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->code !== $v) {\n $this->code = $v;\n $this->modifiedColumns[] = EventPeer::CODE;\n }\n\n\n return $this;\n }", "public function setCode($code) {\n\t\t$this->code = $code;\n\t\treturn $this;\n\t}", "public function testSetCode() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "public function setCode(string $code): self\n {\n $this->code = $code;\n return $this;\n }", "public function setCode($value, $desc = \"\")\n {\n $this->setValueObject('code', $value, $desc);\n }", "public function setCode(string $code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function setEventCode($code)\n {\n $this->_eventcode = (string) $code;\n return $this;\n }", "public function setCode($code)\n {\n $this->data[1] = (string)$code;\n return $this->data[1];\n }", "public function setCode($code)\n {\n $this->code = $this->getApiErrorCode($code);\n }", "public function setProtectCode($code);", "public function setHtmlFinalCode($code)\n\t{\n\t\t$this->finalCode = $code;\n\t}", "public function setCode(string $code): self\n {\n $this->code = $code;\n\n return $this;\n }", "public function testSetCodeModele() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setCodeModele(\"codeModele\");\n $this->assertEquals(\"codeModele\", $obj->getCodeModele());\n }", "public function code($code)\n {\n return $this->setCode($code);\n }", "public function code($code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function setCode(?string $code): self\n {\n $this->code = $code;\n\n return $this;\n }", "public function setContentCode($content_code)\n {\n $this->content_code = $content_code;\n }", "public function setCodeOriginal($value)\n {\n $this->codeOriginal = $value;\n }", "public function edit(Code $code)\n {\n //\n }", "public function setCode($code)\r\n {\r\n $this->code = (int) $code;\r\n return $this;\r\n }", "function setCodeStat($encode){\n\t\t$this->encodestat=$encode;\n\t}", "public function testSetCode() {\n\n $obj = new TestIntegerCodeTrait();\n\n $obj->setCode(1);\n $this->assertEquals(1, $obj->getCode());\n }", "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "public function setCodeName( $name );", "private function codeField()\n {\n $mode = false;\n if (isset($this->jsonData['language'])) {\n if ($this->jsonData['language'] == 'json') {\n $mode = 'application/json';\n } else {\n $mode = $this->jsonData['language'];\n }\n }\n\n $newData = [\n 'mode' => $mode,\n 'vue' => $this->getCorrectVueComponent('form-code-field'),\n ];\n\n $this->data = array_merge($this->data, $newData);\n }", "public function setCode($code)\n\t{\n\t\t$this->code = $code;\n\n\t\treturn $this;\n\t}", "public function setCODE($cODE)\n {\n $this->cODE = $cODE;\n return $this;\n }", "public function storeCode() {\n if(!empty($_GET['code'])) {\n $this->code = $_GET['code'];\n update_option(self::CODE_OPTION_NAME, $_GET['code']);\n }\n }", "public function testSetCodeEmploye() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "public function getCode() {return $this->code;}", "public function setCodeAttribute($value)\n {\n $this->attributes['code'] = str_slug(trim($value));\n\n if (empty($value)) {\n $this->attributes['code'] = str_slug(trim($this->attributes['name']));\n }\n }", "public function testSetCodeTypeSal() {\n\n $obj = new Employes();\n\n $obj->setCodeTypeSal(\"codeTypeSal\");\n $this->assertEquals(\"codeTypeSal\", $obj->getCodeTypeSal());\n }", "public function getCode() { return $this->code; }", "public function setCode($code)\n {\n $this->setProperty(self::CODE, $code);\n\n return $this;\n }", "private function setLanguageCode( $code ) {\n\t\t$ttsService = TTSServiceFactory::build( $this->config );\n\t\tif ( !$ttsService->isValidLangCode( $code ) ) {\n\t\t\tthrow new LanguageException(\n\t\t\t\t'The language code ' . $code .\n\t\t\t\t' can not be handled by the currently configured TTS service.' );\n\t\t}\n\n\t\t$this->languagCode = $code;\n\t}", "function withCode($code) {\n $this->code = $code;\n return $this;\n }", "public function setCode($code) {\n $code = (string) $code;\n $this->fields[\"code\"] = $code;\n\n return $this;\n }", "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "public function __construct($code)\n {\n $this->code = $code;\n }", "public function __construct($code)\n {\n $this->code = $code;\n }", "public function testSetAndGetCode()\r\n {\r\n $testObj = $this->_createMockModel();\r\n $baseObj = $this->_createMockModel();\r\n\r\n // Set the Code\r\n $testObj->setCode('GroupCode');\r\n\r\n // Assert that a change occurred in the test object\r\n $this->assertNotEquals($testObj, $baseObj);\r\n\r\n // Assert that the Code field was updated\r\n $this->assertEquals('GroupCode', $testObj->getCode());\r\n\r\n // Assert that no other return values were affected\r\n $this->_assertModelsSameExcept($testObj, $baseObj, 'Code');\r\n }", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "function setXCode($x_code) {\r\r\n\t\t$this->x_code = $x_code;\r\r\n\t}", "function getCode()\n {\n return $this->code;\n }", "public function testSetCodeVehicule() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVehicule(\"codeVehicule\");\n $this->assertEquals(\"codeVehicule\", $obj->getCodeVehicule());\n }", "public function __construct($code)\n\t{\n\t\t$this->code = $code;\n\t}", "public function testSetCodeEmploye() {\n\n $obj = new PointBonTrav();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "public function setCode($var)\n {\n GPBUtil::checkString($var, True);\n $this->code = $var;\n\n return $this;\n }", "public function setCode($var)\n {\n GPBUtil::checkString($var, True);\n $this->code = $var;\n\n return $this;\n }", "public function setCode($var)\n {\n GPBUtil::checkString($var, True);\n $this->code = $var;\n\n return $this;\n }", "function __construct($code = 0)\r\n {\r\n $this->code = $code;\r\n }", "public function testSetCodeAt() {\n\n $obj = new Employes();\n\n $obj->setCodeAt(10);\n $this->assertEquals(10, $obj->getCodeAt());\n }", "public function setCodeEtablissement(?int $codeEtablissement): DeclarationCafat {\n $this->codeEtablissement = $codeEtablissement;\n return $this;\n }", "public function getCode() {\n return $this->code;\n }", "public function getCode() {\n return $this->code;\n }", "function getCode()\r\n {\r\n return $this->code;\r\n }", "public function setAccountCode($value);", "public function getCode()\r\n {\r\n return $this->code;\r\n }", "public function testSetCodeVentilCompta() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVentilCompta(\"codeVentilCompta\");\n $this->assertEquals(\"codeVentilCompta\", $obj->getCodeVentilCompta());\n }", "public function setCode(int $code)\n{\n self::$stored['codes'][] = $code;\n http_response_code($code);\n}", "public function testSetCodeOfficielCommune() {\n\n $obj = new Employes();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }" ]
[ "0.7755713", "0.7755713", "0.74788314", "0.74504834", "0.7243256", "0.7135392", "0.71273434", "0.7114547", "0.6889257", "0.68691427", "0.6833201", "0.6807466", "0.6799851", "0.67494434", "0.6709172", "0.66769475", "0.66764724", "0.66380304", "0.659861", "0.6585336", "0.6541564", "0.6537581", "0.64523315", "0.6446235", "0.64426035", "0.64322835", "0.64284104", "0.64220625", "0.6401185", "0.6400269", "0.6391405", "0.6382878", "0.6379531", "0.6372928", "0.6363797", "0.63612306", "0.6357924", "0.6344696", "0.6344547", "0.6342195", "0.63276917", "0.6324412", "0.6312787", "0.6276371", "0.62716824", "0.62716824", "0.62716824", "0.626633", "0.62574023", "0.62448925", "0.62339634", "0.6231724", "0.6226738", "0.62194216", "0.6217907", "0.6199679", "0.6198086", "0.61963296", "0.61961406", "0.61654234", "0.6149576", "0.614041", "0.614041", "0.614041", "0.614041", "0.614041", "0.614041", "0.614041", "0.614041", "0.614041", "0.614041", "0.61371076", "0.61371076", "0.60577977", "0.60484946", "0.6041104", "0.60327643", "0.6031423", "0.6031301", "0.60284346", "0.60164756", "0.60164756", "0.60164756", "0.5996478", "0.5990597", "0.59885585", "0.5983362", "0.5983362", "0.59670365", "0.5932725", "0.59118754", "0.59020257", "0.5881636", "0.5877479", "0.5857599", "0.5857599", "0.5857599", "0.5857599", "0.5857599" ]
0.6107189
74
Set the date debut paternite.
public function setDateDebutPaternite(DateTime $dateDebutPaternite = null) { $this->dateDebutPaternite = $dateDebutPaternite; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function setDateFormatDay()\n {\n self::$settings[0] = 'Y-m-d';\n }", "public function setDate($date);", "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($value) {\n\t\t$this->_date = $value;\n\t}", "public function setDebut(string $debut)\n {\n //preparation verification with regex format date\n $regex = preg_grep(\"/^(\\d{4})-(\\d{2})-([\\d]{2})$/\",[$debut]);\n //checking is not empty\n if(empty($regex)){\n trigger_error(\"Invalid date format\",E_USER_NOTICE);\n }\n else{\n $this->debut = $debut;\n }\n\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 setDateDuJour()\n{\n$this->setDateSysteme(date(\"Y-m-d\"));\n$this->setDateUtilisateur(date(\"d/m/Y\"));\n}", "public function setDate($p)\n {\n if ($p !== null && trim($p) !== \"\") {\n $this->appendCommandArgument(\"-D\");\n $this->appendCommandArgument($p);\n }\n }", "public function setDate($date){\n\t\t$this->date = $date;\n\t}", "public function setDate($date)\n\t{\n\t\t$this->date = $date;\n\t}", "protected function setDateUtilisateur($date)\n{\n$this->dateUtilisateur = $date;\t\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 setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date) {\n $this->date = $date;\n }", "public function setModDate($date) {}", "function setFecha($fecha) {\r\n $this->fecha = $fecha;\r\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}", "public function setDoDate($value)\n {\n if (!array_key_exists('do_date', $this->fieldsModified)) {\n $this->fieldsModified['do_date'] = $this->data['fields']['do_date'];\n } elseif ($value === $this->fieldsModified['do_date']) {\n unset($this->fieldsModified['do_date']);\n }\n\n $this->data['fields']['do_date'] = $value;\n }", "public function setFecha($n)\n {\n $this->c_fecha=$n;\n }", "public function setDateFormat($date){\n\t\t$this->_dateFormat = $date;\n\t}", "function setData($data)\n {\n $this->date=$data;\n }", "public function testSetDtDebutEmploi() {\n\n // Set a Date/time mock.\n $dtDebutEmploi = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtDebutEmploi($dtDebutEmploi);\n $this->assertSame($dtDebutEmploi, $obj->getDtDebutEmploi());\n }", "function set($value){\n if(!$value)return parent::set($value);\n list($d,$m,$y)=explode('/',$value);\n if($y)$value=join('/',array($m,$d,$y));\n elseif($m)$value=join('/',array($m,$d));\n $value=date('Y-m-d',strtotime($value));\n return parent::set($value);\n }", "public function setDateFormat($value)\n\t{\n\t\t$this->setViewState('DateFormat',$value,'dd-MM-yyyy');\n\t}", "public function getDateDebutPaternite() {\n return $this->dateDebutPaternite;\n }", "public function setDMY($EUdate)\r\n\t{\r\n\t\t// Put day, month and year in an array\r\n $dateParts = preg_split('{[-/ :.]}', $EUdate);\r\n \r\n // Check the array for values\r\n // And the year has 4 digits\r\n if (!is_array($dateParts) || count($dateParts) != 3)\r\n {\r\n throw new Exception('setDMY() expects a date as DD/MM/YYYY');\r\n }\r\n elseif (strlen($dateParts[2]) != 4)\r\n {\r\n \tthrow new Exception('setDMY() expects a year in 4-digits format');\r\n }\r\n \r\n // Pass the values to setDate method\r\n $this->setDate($dateParts[2], $dateParts[1], $dateParts[0]);\r\n\t}", "public function set_taplicacion_procesos_fecha_desde(string $taplicacion_procesos_fecha_desde): void {\n $this->taplicacion_procesos_fecha_desde = $taplicacion_procesos_fecha_desde;\n }", "public function setDate($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "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 setUseDate($use_date) \n \t{\n \t\t$this->use_date = $use_date;\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->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "public function setDate($date = false)\n {\n $date = explode('-', $date);\n\n $day = @$date[2] ? : date('d');\n $month = @$date[1] ? : date('m');\n $year = @$date[0] ? : date('Y');\n\n $this->day = @$day;\n $this->month = @$month;\n $this->year = @$year;\n # return Calendar instance\n return $this;\n }", "public function getDateDebut();", "function setLocalDate($loca,$dat){\n $this->local = $loca;\n $this->dates = $dat;\n }", "public function setFecha($fecha) {\n $date = Funciones::gConvertirFecha($fecha, TRUE);\n $orden = $this->orden;\n if ($date && $date != $this->fecha) {\n // Si cambia la fecha, recarga los datos.\n $this->cargarAsistentes($date, $orden);\n }\n }", "function SetInitialDate ($date)\r\n {\r\n if ($date)\r\n {\r\n $this->_dti = $date; \r\n }\r\n }", "private function _init_date()\n\t{\n\t\t$this->date->init($this->EE->TMPL->fetch_param('date'));\n\t\t$this->_log(sprintf(\"Working date set to %s %s\", $this->date->date(), $this->date->time()));\n\t}", "public function testSetDateRedir() {\n\n // Set a Date/time mock.\n $dateRedir = new DateTime(\"2018-09-10\");\n\n $obj = new AppelsEnCours();\n\n $obj->setDateRedir($dateRedir);\n $this->assertSame($dateRedir, $obj->getDateRedir());\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}", "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 }", "private function _consolideDate(){\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n \n return $this;\n }", "public function setDate( $sDate ) {\n\t\t$this->sDate = $sDate;\n\t}", "public static function setDateFormatMonth()\n {\n self::$settings[0] = 'Y-m';\n }", "public function setDates($dates);", "public function set_duedate_from_monthrefdate() {\n $this->duedate = $this->monthrefdate->copy()->addMonths(1)->day(10);\n // TO-DO take out the 10 hardcoded when possible !!!\n //$this->duedate->day(10);\n //$this->duedate->addMonths(1);\n }", "public function setDateFormat($value)\n\t{\n\t\t$this->setViewState('DateFormat', $value, '');\n\t}", "public function setDateFormat($value)\n\t{\n\t\t$this->setViewState('DateFormat', $value, '');\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 setDate($date_string = null)\n {\n\n if ($this->is_date() == 1) {\n $this->now = getdate(strtotime($date_string));\n } else {\n $this->now = getdate();\n }\n }", "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 }", "public function setArticle_date($t)\n {\n if(is_string($t))\n $this->_article_date = $t;\n }", "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 setDateOfBirth()\n {\n $dateOfBirth = request('dob_year') . '-' . request('dob_month') . '-' . request('dob_day');\n\n $this->date_of_birth = $dateOfBirth;\n $this->save();\n }", "private function setCurDate(DateTime $date):void\n\t{\n\t\t$this->curDate = clone $date;\n\t\tif($this->isVocation($this->curDate)){\n\t\t\t$this->nextDay();\n\t\t}\n\t}", "public function testSetDateVisiteReprise() {\n\n // Set a Date/time mock.\n $dateVisiteReprise = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateVisiteReprise($dateVisiteReprise);\n $this->assertSame($dateVisiteReprise, $obj->getDateVisiteReprise());\n }", "public function testSetDateValidationNdF() {\n\n // Set a Date/time mock.\n $dateValidationNdF = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateValidationNdF($dateValidationNdF);\n $this->assertSame($dateValidationNdF, $obj->getDateValidationNdF());\n }", "public function setDay($day)\n {\n $this->day = $day;\n }", "public function setDateFormat(?string $value): void {\n $this->getBackingStore()->set('dateFormat', $value);\n }", "public function setDate($year, $month, $day)\r\n\t{\r\n\t\t// Perform the numeric check\r\n\t\tif (!is_numeric($year) || !is_numeric($month) || !is_numeric($day))\r\n\t\t{\r\n\t\t\tthrow new Exception('setDate() expects three numbers in this order: year, month, day');\r\n\t\t}\r\n\t\t\r\n\t\t// Perform the date validation check\r\n\t\tif (!checkdate($month, $day, $year))\r\n\t\t{\r\n\t\t\tthrow new Exception('Non-existent date');\r\n\t\t}\r\n\t\t\r\n\t\t// Set the date\r\n\t\tparent::setDate($year, $month, $day);\r\n\r\n\t\t// Set the internal variables\r\n\t\t$this->_year = $year;\r\n\t\t$this->_month = $month;\r\n\t\t$this->_day = $day; \r\n\t}", "public function setFilingDate($value) {\n\t\t$value = date('d-M-Y', strtotime($value));\n\t\tself::$_filingDate = $value;\n\t}", "public function testSetDtDebPreavisEffectue() {\n\n // Set a Date/time mock.\n $dtDebPreavisEffectue = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtDebPreavisEffectue($dtDebPreavisEffectue);\n $this->assertSame($dtDebPreavisEffectue, $obj->getDtDebPreavisEffectue());\n }", "public function setToDate($toDate)\n {\n // $this->toDate = $newDate->format('c');\n $this->toDate = $toDate;\n }", "public function testSetDatePaiement() {\n\n // Set a Date/time mock.\n $datePaiement = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDatePaiement($datePaiement);\n $this->assertSame($datePaiement, $obj->getDatePaiement());\n }", "public function setDateTime(\\DateTimeInterface $dt)\n {\n $this->value = $dt->format('Ymd');\n }", "function setDueDate( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->DueDate = $value;\n }", "public function testSetDateVisiteMedicale() {\n\n // Set a Date/time mock.\n $dateVisiteMedicale = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateVisiteMedicale($dateVisiteMedicale);\n $this->assertSame($dateVisiteMedicale, $obj->getDateVisiteMedicale());\n }", "public function testSetDateValidationTp() {\n\n // Set a Date/time mock.\n $dateValidationTp = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateValidationTp($dateValidationTp);\n $this->assertSame($dateValidationTp, $obj->getDateValidationTp());\n }", "public function setStartDate(string $date);", "public static function setDateTimeFormat($val) {\n self::$_sDateTimeFormat = $val;\n }", "public function testSetDateLicenciement() {\n\n // Set a Date/time mock.\n $dateLicenciement = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateLicenciement($dateLicenciement);\n $this->assertSame($dateLicenciement, $obj->getDateLicenciement());\n }", "function setParam()\n {\n $this->rFromDate = '0000-00-00';\n $this->rToDate = date('Y-m-d');\n $this->rAllDate = false;\n $this->rColumns = array();\n }", "public function setDueDate($val)\n {\n $this->_propDict[\"dueDate\"] = $val;\n return $this;\n }", "public function setContactDate($date) {\n $this->date = $date;\n }", "public function setDtEmis($value,$options=array('required'=>true)){ \n $this->_data['dt_emis'] = new ZendT_Type_Date($value,'Date');\n if ($options['db'])\n $this->_data['dt_emis']->setValueFromDb($value);\n \n if (!$options['db']){\n \n }\n return $this;\n }", "public function setDate($date)\n {\n $this->values['Date'] = $date;\n return $this;\n }", "public function setPropertyDate($date=true)\n {\n if($date === false)\n {\n $this->date =false;\n }\n elseif($date !== true)\n {\n $this->date =$date;\n }\n }", "public function set_due_day( $value ) {\n\t\tif ( ! is_numeric( $value ) || $value < 1 || $value > 28 ) {\n\t\t\tthrow new Exception( __( 'Invalid due day of month.', 'credits-for-woocommerce' ) ) ;\n\t\t}\n\n\t\t$this->set_prop( 'due_day', absint( $value ) ) ;\n\t}", "public function setDate($value){\n return $this->setParameter('date', $value);\n }", "public function setData($dtData) {\n $this->dtData = $dtData;\n }", "public function setDate($date){\r\n\t\t$this->wishDate = $date;\r\n\t}", "public function setToDate($toDate)\n {\n if (stristr($toDate, \"-\")) {\n $toDate = strtotime($toDate);\n }\n $this->toDate = $toDate;\n }", "public function setNearday(){\n\t\n\t$this_month_day=$this->getMonth_day();\n\t\n\tif($this->day!=1 && $this->day!=$this_month_day){\n\t\t\n\t\t$this->predate=$this->makeDate($this->month,$this->day-1);\n\t\t\n\t\t$this->nextdate=$this->makeDate($this->month,$this->day+1);\n\t\t\n\t\t\n\t\t\n\t}elseif($this->day==1){\n\t\t\n\t\t$pre_month=$this->month==1?12:($this->month-1);\n\t\t\n\t\t$pre_month_day=$this->getMonth_day($pre_month);\n\t\t\n\t\t$this->predate=$this->makeDate($pre_month,$pre_month_day);\n\t\t\n\t\t$this->nextdate=$this->makeDate($this->month,2);\n\t\t\n\t}else{\n\t\t\n\t\t$this->predate=$this->makeDate($this->month,$this->day-1);\n\t\t\n\t\t$next_month=$this->month==12?1:($this->month+1);\n\t\t\n\t\t$this->nextdate=$this->makeDate($next_month,1);\n\n\t\t}\n\t\t\n\treturn;\n\n\t}", "public function setTransactionDate($value) {\n\t\tself::$_transactionDate = $value;\n\t}", "protected function setstartdate(string $startdate)\r\n\t{\r\n\t\t$this->startdate = $startdate;\r\n\t}", "function setExpireDate($ed) {\n\t\tif ($ed) {\n\t\t\t$newtime = dateTimeConvert($ed);\n\t\t\tif ($newtime === false) return;\n\t\t\t$this->set('expiredate', $newtime);\n\t\t} else {\n\t\t\t$this->set('expiredate', NULL);\n\t\t}\n\t}", "public\n\tfunction setPostDate($newPostDate = null): void {\n\t\t// base case: if the date is null, use the current date and time\n\t\tif($newPostDate === null) {\n\t\t\t$this->postDate = new \\DateTime();\n\t\t\treturn;\n\t\t}\n\n\n\n\t//store the like date using the ValidateDate trait\n\ttry {\n\t\t$newPostDate = self::validateDateTime($newPostDate);\n\t} catch(\\InvalidArgumentException |\\RangeException $exception) {\n\t\t$exceptionType = get_class($exception);\n\t\tthrow(new $exceptionType($exception->getMessage(), 0, $exception));\n\t}\n\t$this->postDate = $newPostDate;\n\n}", "public function setDateEcriture(DateTime $date_ecriture): void\n {\n $this->date_ecriture = $date_ecriture;\n }", "public function setMDY($USdate)\r\n\t{\r\n\t\t// Put month, day and year in an array\r\n\t\t$dateParts = preg_split('{[-/ :.]}', $USdate);\r\n\t\t\r\n\t\t// Check the array for values\r\n\t\tif (!is_array($dateParts) || count($dateParts) != 3)\r\n\t\t{\r\n\t\t\tthrow new Exception('setMDY expects a date as MM/DD/YYYY');\r\n\t\t}\r\n\t\tif (strlen($dateParts[2]) != 4)\r\n\t\t{\r\n\t\t\tthrow new Exception('setMDY() expects a year in 4-digit format');\r\n\t\t}\r\n\t\t\r\n\t\t// Pass the values to setDate method\r\n\t\t$this->setDate($dateParts[2], $dateParts[0], $dateParts[1]);\r\n\t}", "public function setDateFormat($date_format)\n\t{\n\t\tself::$__date_format = $date_format;\n\t}", "public function save_dates() {\n\t\t// Nothing to do here.\n\t}", "public function setDateAttribute($value)\n {\n $this->attributes['date'] = Carbon::parse($value)->format(self::DATE_FORMAT_SET);\n }", "public function setDataReferenciaAttribute($value)\n {\n $this->attributes['data_referencia'] = date('Y-m-d H:i:s', strtotime(str_replace(\"/\", \"-\", $value)));\n }", "public function setDateAttribute($value)\n {\n $this->attributes['date'] = Carbon::parse($value)->format('Y-m-d');\n }", "function modifyDate($mode, $date, $amount);", "public function testSetDtFinEmploi() {\n\n // Set a Date/time mock.\n $dtFinEmploi = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtFinEmploi($dtFinEmploi);\n $this->assertSame($dtFinEmploi, $obj->getDtFinEmploi());\n }", "public function testSetDtDebPreavisNonEffectue() {\n\n // Set a Date/time mock.\n $dtDebPreavisNonEffectue = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtDebPreavisNonEffectue($dtDebPreavisNonEffectue);\n $this->assertSame($dtDebPreavisNonEffectue, $obj->getDtDebPreavisNonEffectue());\n }" ]
[ "0.72494143", "0.71314543", "0.71057945", "0.7058785", "0.70165825", "0.69737184", "0.69503087", "0.692148", "0.6881239", "0.67546695", "0.6751658", "0.6705154", "0.67023784", "0.67023784", "0.6698466", "0.6694255", "0.6662851", "0.6624011", "0.6572274", "0.6541395", "0.65178466", "0.6491496", "0.6380293", "0.6339508", "0.6260474", "0.62417346", "0.62308747", "0.62111926", "0.61727893", "0.61605453", "0.6158961", "0.6146594", "0.60996914", "0.6071221", "0.60627365", "0.6056791", "0.60547715", "0.605151", "0.6047147", "0.6032018", "0.60197264", "0.60155547", "0.59878373", "0.5986301", "0.5975284", "0.5971964", "0.5962453", "0.5957428", "0.5944182", "0.5944182", "0.5917253", "0.589897", "0.5885824", "0.5869613", "0.5866452", "0.5866452", "0.5859713", "0.5851102", "0.5848723", "0.583988", "0.5835816", "0.58296734", "0.58295435", "0.58279586", "0.58039707", "0.5790354", "0.57865393", "0.5767003", "0.576197", "0.57557416", "0.5754275", "0.5753975", "0.57529026", "0.57296723", "0.57255113", "0.57156897", "0.57097554", "0.5706738", "0.570541", "0.57044286", "0.569479", "0.5691282", "0.56852776", "0.56660575", "0.56640494", "0.5650669", "0.5639209", "0.56362045", "0.563032", "0.5626531", "0.56167686", "0.5604881", "0.5604709", "0.55986106", "0.55984694", "0.55936885", "0.55900806", "0.55855495", "0.55846006", "0.55836993" ]
0.65738904
18
Set the date dern j mens.
public function setDateDernJMens(DateTime $dateDernJMens = null) { $this->dateDernJMens = $dateDernJMens; 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 static function setDateFormatDay()\n {\n self::$settings[0] = 'Y-m-d';\n }", "public function setDate($date){\n\t\t$this->date = $date;\n\t}", "public function setDate($date)\n\t{\n\t\t$this->date = $date;\n\t}", "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 setDate($value) {\n\t\t$this->_date = $value;\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 setDateDuJour()\n{\n$this->setDateSysteme(date(\"Y-m-d\"));\n$this->setDateUtilisateur(date(\"d/m/Y\"));\n}", "public static function setDateFormatMonth()\n {\n self::$settings[0] = 'Y-m';\n }", "public function setFecha($n)\n {\n $this->c_fecha=$n;\n }", "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 setArticle_date($t)\n {\n if(is_string($t))\n $this->_article_date = $t;\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}", "private function _init_date()\n\t{\n\t\t$this->date->init($this->EE->TMPL->fetch_param('date'));\n\t\t$this->_log(sprintf(\"Working date set to %s %s\", $this->date->date(), $this->date->time()));\n\t}", "protected function setDateUtilisateur($date)\n{\n$this->dateUtilisateur = $date;\t\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($p)\n {\n if ($p !== null && trim($p) !== \"\") {\n $this->appendCommandArgument(\"-D\");\n $this->appendCommandArgument($p);\n }\n }", "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 setDate()\n\t{\n\t\tif ($this->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "public function setDateFormat($date){\n\t\t$this->_dateFormat = $date;\n\t}", "function SetInitialDate ($date)\r\n {\r\n if ($date)\r\n {\r\n $this->_dti = $date; \r\n }\r\n }", "public function setModDate($date) {}", "public function setDate($date){\r\n\t\t$this->wishDate = $date;\r\n\t}", "public function setDate( $sDate ) {\n\t\t$this->sDate = $sDate;\n\t}", "function setFecha($fecha) {\r\n $this->fecha = $fecha;\r\n }", "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 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 setDate($date_string = null)\n {\n\n if ($this->is_date() == 1) {\n $this->now = getdate(strtotime($date_string));\n } else {\n $this->now = getdate();\n }\n }", "function setData($data)\n {\n $this->date=$data;\n }", "public function setDate($date = false)\n {\n $date = explode('-', $date);\n\n $day = @$date[2] ? : date('d');\n $month = @$date[1] ? : date('m');\n $year = @$date[0] ? : date('Y');\n\n $this->day = @$day;\n $this->month = @$month;\n $this->year = @$year;\n # return Calendar instance\n return $this;\n }", "public function setDate($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "public function setFormattedDate():self\n {\n $date = mb_substr($this->getAnswerDate(), 0, 10);\n $time = mb_substr($this->getAnswerDate(), 11, 19);\n\n $m = (int)mb_substr($date, 5,2);\n $month = Requestor::monthOfADate($m);\n $parts = array_reverse(explode('-', $date));\n unset($parts[1]);\n $date = implode(' '.$month.' ', $parts);\n\n $t = new DateTime($time);\n $h = $t->format('H');\n $m = $t->format('i');\n \n\n $this->dateFormatted = \"Postée le \".$date. \" à \".$hour = $h.\"h \".$m.\"'\"; \n\n return $this;\n }", "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($year, $month, $day)\r\n\t{\r\n\t\t// Perform the numeric check\r\n\t\tif (!is_numeric($year) || !is_numeric($month) || !is_numeric($day))\r\n\t\t{\r\n\t\t\tthrow new Exception('setDate() expects three numbers in this order: year, month, day');\r\n\t\t}\r\n\t\t\r\n\t\t// Perform the date validation check\r\n\t\tif (!checkdate($month, $day, $year))\r\n\t\t{\r\n\t\t\tthrow new Exception('Non-existent date');\r\n\t\t}\r\n\t\t\r\n\t\t// Set the date\r\n\t\tparent::setDate($year, $month, $day);\r\n\r\n\t\t// Set the internal variables\r\n\t\t$this->_year = $year;\r\n\t\t$this->_month = $month;\r\n\t\t$this->_day = $day; \r\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n \n return $this;\n }", "public function setToDate($toDate)\n {\n if (stristr($toDate, \"-\")) {\n $toDate = strtotime($toDate);\n }\n $this->toDate = $toDate;\n }", "public function setDoDate($value)\n {\n if (!array_key_exists('do_date', $this->fieldsModified)) {\n $this->fieldsModified['do_date'] = $this->data['fields']['do_date'];\n } elseif ($value === $this->fieldsModified['do_date']) {\n unset($this->fieldsModified['do_date']);\n }\n\n $this->data['fields']['do_date'] = $value;\n }", "public function setToDate($toDate)\n {\n // $this->toDate = $newDate->format('c');\n $this->toDate = $toDate;\n }", "private function dateDuJour(){\n return date(\"Y-m-d\");\n }", "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 }", "public function setArticleDate($newArticleDate = null): void {\n\t\t// base case: if the date is null, use the current date and time\n\t\tif($newArticleDate === null) {\n\t\t\t$this->articleDate = new \\DateTime();\n\t\t\treturn;\n\t\t}\n\n\t\t// store the like date using the ValidateDate trait\n\t\ttry {\n\t\t\t$newArticleDate = self::validateDateTime($newArticleDate);\n\t\t} catch(\\InvalidArgumentException | \\RangeException $exception) {\n\t\t\t$exceptionType = get_class($exception);\n\t\t\tthrow(new $exceptionType($exception->getMessage(), 0, $exception));\n\t\t}\n\t\t$this->articleDate = $newArticleDate;\n\t}", "public function date($date=null)\n {\n if(is_null($date)) { \t\n\t\t\t$date = $this->publication; \n }\n\n return $date;\n //date_format($date, 'g:ia \\o\\n l jS F Y');;\n }", "public function setDateFormat($value)\n\t{\n\t\t$this->setViewState('DateFormat',$value,'dd-MM-yyyy');\n\t}", "function set_event_date_time() {\r\n\t\t\t$dateobj = date_create($this->date . \" \" . $this->time);\r\n\t\t\t\r\n\t\t\t//we can format the date object string to exactly what we want. Leading zeros, etc.\r\n\t\t\t$this->event_date_time = date_format($dateobj, \"Y-m-d H:i:s\");\r\n\t\t}", "public function setDate($date)\n {\n $this->values['Date'] = $date;\n return $this;\n }", "public function setContactDate($date) {\n $this->date = $date;\n }", "public function setPropertyDate($date=true)\n {\n if($date === false)\n {\n $this->date =false;\n }\n elseif($date !== true)\n {\n $this->date =$date;\n }\n }", "private function _consolideDate(){\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public function setUseDate($use_date) \n \t{\n \t\t$this->use_date = $use_date;\n \t}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "public function setDateMiseEnLigne($dateMiseEnLigne) \n\t{\n\t\t\n $this ->dateMiseEnLigne = empty($dateMiseEnLigne) ? \"\" : $dateMiseEnLigne;\t\n\t}", "public function setTransactionDate($value) {\n\t\tself::$_transactionDate = $value;\n\t}", "public function setDateFormat($date_format)\n\t{\n\t\tself::$__date_format = $date_format;\n\t}", "public function set_date_created( $date = null ) {\n\t\tglobal $wpdb;\n\n\t\tif ( ! is_null( $date ) ) {\n\n\t\t\t$datetime_string = wcs_get_datetime_utc_string( wcs_get_datetime_from( $date ) );\n\n\t\t\t// Don't use wp_update_post() to avoid infinite loops here\n\t\t\t$wpdb->query( $wpdb->prepare( \"UPDATE $wpdb->posts SET post_date = %s, post_date_gmt = %s WHERE ID = %d\", get_date_from_gmt( $datetime_string ), $datetime_string, $this->get_id() ) );\n\n\t\t\t$this->post->post_date = get_date_from_gmt( $datetime_string );\n\t\t\t$this->post->post_date_gmt = $datetime_string;\n\t\t}\n\t}", "public function testSetDate()\n {\n $month = new Month();\n\n $date = date_create('now');\n $month->setDate($date);\n\n $this->assertEquals($date, $month->getDate());\n }", "public function setDate($date) {\n $this->date = $date;\n $this->updateData();\n return $this;\n }", "public function setEntryDate($entry_date)\n {\n $this->entry_date = $entry_date;\n }", "function setMonth($m)\r\n {\r\n if($m < 1 || $m > 12) {\r\n $this->mes = 1;\r\n } else {\r\n $this->mes = $m;\r\n }\r\n }", "public function setAppEvnActionDate ($v)\n {\n if ( $v !== null && !is_int ($v) )\n {\n $ts = strtotime ($v);\n //Date/time accepts null values\n if ( $v == '' )\n {\n $ts = null;\n }\n if ( $ts === -1 || $ts === false )\n {\n throw new Exception (\"Unable to parse date/time value for [app_evn_action_date] from input: \");\n }\n }\n else\n {\n $ts = $v;\n }\n if ( $this->app_evn_action_date !== $ts )\n {\n $this->app_evn_action_date = date (\"Y-m-d H:i:s\", $ts);\n }\n }", "function setExpireDate($ed) {\n\t\tif ($ed) {\n\t\t\t$newtime = dateTimeConvert($ed);\n\t\t\tif ($newtime === false) return;\n\t\t\t$this->set('expiredate', $newtime);\n\t\t} else {\n\t\t\t$this->set('expiredate', NULL);\n\t\t}\n\t}", "public\n\tfunction setPostDate($newPostDate = null): void {\n\t\t// base case: if the date is null, use the current date and time\n\t\tif($newPostDate === null) {\n\t\t\t$this->postDate = new \\DateTime();\n\t\t\treturn;\n\t\t}\n\n\n\n\t//store the like date using the ValidateDate trait\n\ttry {\n\t\t$newPostDate = self::validateDateTime($newPostDate);\n\t} catch(\\InvalidArgumentException |\\RangeException $exception) {\n\t\t$exceptionType = get_class($exception);\n\t\tthrow(new $exceptionType($exception->getMessage(), 0, $exception));\n\t}\n\t$this->postDate = $newPostDate;\n\n}", "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 }", "public function setDMY($EUdate)\r\n\t{\r\n\t\t// Put day, month and year in an array\r\n $dateParts = preg_split('{[-/ :.]}', $EUdate);\r\n \r\n // Check the array for values\r\n // And the year has 4 digits\r\n if (!is_array($dateParts) || count($dateParts) != 3)\r\n {\r\n throw new Exception('setDMY() expects a date as DD/MM/YYYY');\r\n }\r\n elseif (strlen($dateParts[2]) != 4)\r\n {\r\n \tthrow new Exception('setDMY() expects a year in 4-digits format');\r\n }\r\n \r\n // Pass the values to setDate method\r\n $this->setDate($dateParts[2], $dateParts[1], $dateParts[0]);\r\n\t}", "function setDueDate( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->DueDate = $value;\n }", "public function setDate($date)\n {\n $this->date = $date;\n\n return $this;\n }", "public function setDate(string $date)\r\n {\r\n $this->date = $date;\r\n\r\n return $this;\r\n }", "function setCommentDate($newCommentDate = null) {\n\tif($newCommentDate === null) {\n\t\t$this->commentDate = new \\DateTime();\n\t\treturn;\n\t}\n\n\t// store the comment date\n\ttry {\n\t\t$newCommentDate = self::validateDateTime($newCommentDate);\n\t} catch(\\InvalidArgumentException $invalidArgument)\n\t{\n\t\tthrow(new \\InvalidArgumentException($invalidArgument->getMessage(), 0, $invalidArgument));\n\t} catch(\\RangeException $range) {\n\tthrow(new \\RangeException($range->getMessage(), 0, $range));\n\t}\n\t$this->commentDate = $newCommentDate;\n}", "public function setStartDate(string $date);", "public function setDate(int $year, int $month, int $day) : self\n {\n $this->y = $year;\n $this->m = $month;\n $this->d = $day;\n\n return $this;\n }", "function set_date_to_now()\n {\n $this->timestamp=time();\n }", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setCreated($date) \n\t{\n\t\t$this->created = $this->parseDate($date);\n\t}", "public function setStrDate($v)\n { $this->getCurrentTranslation()->setStrDate($v);\n\n return $this;\n }", "public function getDateFormat(){\n\t\t$this->_dateFormat = $date;\n\t}", "public function post_date( $key ) {\n\t\t$this->data['post_date'] = $key;\n\t}", "public function setDateFormat($value)\n\t{\n\t\t$this->setViewState('DateFormat', $value, '');\n\t}", "public function setDateFormat($value)\n\t{\n\t\t$this->setViewState('DateFormat', $value, '');\n\t}", "protected function _parse_date( $date = null )\n\t{\n\t\tif( ! $date )\n\t\t\t$date = date( 'Y-m-d', current_time( 'timestamp', false ) ); \n \n\t\t// Jour selectionné\n\t\t$this->selected\t= new \\DateTime( $date );\n\t\t// Aujourd'hui\n\t\t$this->today \t= new \\DateTime();\n\t\t// Premier jour du mois\n\t\t$this->first\t= new \\DateTime( $this->selected->format( 'Y-m-d' ) ); \n\t\t$this->first \t= $this->first->modify( 'first day of this month' );\n\t\t// Dernier jour du mois\n\t\t$this->last\t\t= new \\DateTime( $this->selected->format( 'Y-m-d' ) );\n\t\t$this->last \t= $this->last->modify( 'last day of this month' );\n\t\t// Premier jour du calendrier\n\t\t$this->start\t= new \\DateTime( $this->first->format( 'Y-m-d' ) );\n\t\tif( ! $this->start->format( 'w' ) ) \n\t\t\t$this->start->modify( 'monday last week' );\t\n\t\telse \n\t\t\t$this->start->modify( 'monday this week' );\t\n\n\t\t// Dernier jour du calendrier\t\n\t\t$this->end \t\t= new \\DateTime( $this->last->format( 'Y-m-d' ) );\n\t\tif( $this->end->format( 'w' ) ) \n\t\t\t$this->end->modify( 'sunday this week' );\n\t\t// Mois précédent\n\t\t$this->prev \t= new \\DateTime( $this->selected->format( 'Y-m-d' ) );\n\t\t$this->prev->modify( '-1 month' )->modify( 'first day of this month' );\n\t\t// Mois suivant\n\t\t$this->next \t= new \\DateTime( $this->selected->format( 'Y-m-d' ) );\n\t\t$this->next->modify( '+1 month' )->modify( 'first day of this month' );\n\t}", "function _putDateConvGtJDate(&$pdf, $src, $x, $height, $font)\n {\n $year = date('Y', strtotime($src));\n $month = date('n', strtotime($src));\n $day = date('j', strtotime($src));\n// list($year, $month, $day) = explode('-', $src);\n $date = str_replace('-', '', $src);\n if ($date >= 19890108) {\n $gengo = '平成';\n $wayear = $year - 1988;\n } elseif ($date >= 19261225) {\n $gengo = '昭和';\n $wayear = $year - 1925;\n } elseif ($date >= 19120730) {\n $gengo = '大正';\n $wayear = $year - 1911;\n } else {\n $gengo = '明治';\n $wayear = $year - 1868;\n }\n //Set x y month day\n $pdf->SetXY($x + 2.5, $height + 0.7);\n $pdf->MultiCell(20, 5, $wayear, 0, 'C');\n $pdf->SetXY($x + 10.0, $height + 0.7);\n $pdf->MultiCell(20, 5, $month, 0, 'C');\n $pdf->SetFont($font, null, 14, true);\n\n if ($gengo == '昭和') {\n $pdf->SetXY($x - 8.8, $height - 2.5);\n $pdf->MultiCell(28, 2, '◯', 0, 'C');\n }\n if ($gengo == '平成') {\n $pdf->SetXY($x - 8.8, $height + 1.6);\n $pdf->MultiCell(28, 2, '◯', 0, 'C');\n }\n }", "public function setOrderDate($date)\n {\n $this->order_date = $date;\n }", "public function set_duedate_from_monthrefdate() {\n $this->duedate = $this->monthrefdate->copy()->addMonths(1)->day(10);\n // TO-DO take out the 10 hardcoded when possible !!!\n //$this->duedate->day(10);\n //$this->duedate->addMonths(1);\n }", "public function setCreatedDate($date)\r\n\t\t{\r\n\t\t\t$this->_created_date = $date;\r\n\t\t}", "public function setMonth($month){\n\t\tif($month>12){\n\t\t\t$this->_month = $month%12;\n\t\t\t$this->_year += ((int)($month/12));\n\t\t} else {\n\t\t\tif($month<1){\n\t\t\t\t$this->_month = 13-(abs($month)%12);\n\t\t\t\t$this->_year -= (((int)(abs($month)/12))+1);\n\t\t\t} else {\n\t\t\t\t$this->_month = (int) $month;\n\t\t\t}\n\t\t}\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 setMDY($USdate)\r\n\t{\r\n\t\t// Put month, day and year in an array\r\n\t\t$dateParts = preg_split('{[-/ :.]}', $USdate);\r\n\t\t\r\n\t\t// Check the array for values\r\n\t\tif (!is_array($dateParts) || count($dateParts) != 3)\r\n\t\t{\r\n\t\t\tthrow new Exception('setMDY expects a date as MM/DD/YYYY');\r\n\t\t}\r\n\t\tif (strlen($dateParts[2]) != 4)\r\n\t\t{\r\n\t\t\tthrow new Exception('setMDY() expects a year in 4-digit format');\r\n\t\t}\r\n\t\t\r\n\t\t// Pass the values to setDate method\r\n\t\t$this->setDate($dateParts[2], $dateParts[0], $dateParts[1]);\r\n\t}", "public function setDay($day)\n {\n $this->day = $day;\n }", "public function setCreatedDate(NostoDate $date)\n {\n $this->createdDate = $date;\n }", "public function setFecha($fecha) {\n $date = Funciones::gConvertirFecha($fecha, TRUE);\n $orden = $this->orden;\n if ($date && $date != $this->fecha) {\n // Si cambia la fecha, recarga los datos.\n $this->cargarAsistentes($date, $orden);\n }\n }", "function CIR_setDateAndTimeTemorarily()\n{\n\t$date = date('mdHiY.s');\n\techo(\"\\ndate $date\\n\");\n}", "protected function setDueDate($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText(date(\"d/m/Y\", strtotime($value)), 436, 57, 'UTF-8');\n\t\t}\n\t}", "public function setDueDate($val)\n {\n $this->_propDict[\"dueDate\"] = $val;\n return $this;\n }", "function setDatePosted($val) {\n $this->identifier = $this->updateDB('identifier', $val);\n }", "function setDateNotified($dateNotified) {\n\t\t$this->setData('dateNotified', $dateNotified);\n\t}", "function _webform_datelist_date_date_callback(array &$element, FormStateInterface $form_state, $date) {\n $no_abbreviate = (isset($element['#date_abbreviate']) && $element['#date_abbreviate'] === FALSE);\n if ($no_abbreviate && isset($element['month']) && isset($element['month']['#options'])) {\n // Load translated date part labels from the appropriate calendar plugin.\n $date_helper = new DateHelper();\n $element['month']['#options'] = $date_helper->monthNames($element['#required']);;\n }\n}", "public function setDebut(string $debut)\n {\n //preparation verification with regex format date\n $regex = preg_grep(\"/^(\\d{4})-(\\d{2})-([\\d]{2})$/\",[$debut]);\n //checking is not empty\n if(empty($regex)){\n trigger_error(\"Invalid date format\",E_USER_NOTICE);\n }\n else{\n $this->debut = $debut;\n }\n\n }" ]
[ "0.7707061", "0.72616184", "0.7190156", "0.71417964", "0.713163", "0.7131001", "0.70884126", "0.70672816", "0.70632863", "0.70632863", "0.69408566", "0.6872899", "0.6851489", "0.6840197", "0.68193805", "0.6796673", "0.6758024", "0.6731103", "0.6729875", "0.67038304", "0.6678669", "0.6631411", "0.66259015", "0.6551676", "0.65512556", "0.64989996", "0.64821243", "0.6459518", "0.6450778", "0.6450778", "0.64213586", "0.63822836", "0.6344107", "0.6334585", "0.6323055", "0.6298901", "0.6297868", "0.6264765", "0.6179857", "0.61786956", "0.6161471", "0.61484987", "0.61240804", "0.61201566", "0.60874146", "0.6074253", "0.60726804", "0.60629725", "0.6040353", "0.60207564", "0.60149294", "0.59400153", "0.59389603", "0.5929863", "0.5929863", "0.5929863", "0.591793", "0.59078544", "0.58789617", "0.5857849", "0.58502704", "0.5843983", "0.5841171", "0.584051", "0.5839244", "0.58381647", "0.5823873", "0.5814998", "0.5808882", "0.57905126", "0.5786592", "0.5779091", "0.5775335", "0.57727027", "0.57660437", "0.5758638", "0.574953", "0.574953", "0.5749448", "0.5749243", "0.57295513", "0.5723894", "0.5722254", "0.5722254", "0.5702538", "0.56869495", "0.56847", "0.5672264", "0.5671699", "0.56685656", "0.5667296", "0.56657594", "0.5657401", "0.5647392", "0.5645504", "0.5644944", "0.5640966", "0.56267715", "0.5624796", "0.5623636", "0.5623032" ]
0.0
-1
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 }", "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->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "public function setDateEcriture(DateTime $date_ecriture): void\n {\n $this->date_ecriture = $date_ecriture;\n }", "public function setEndDate($date)\n\t\t{\n\t\t\t$this->end_date = $date;\n\t\t}", "public function setNearday(){\n\t\n\t$this_month_day=$this->getMonth_day();\n\t\n\tif($this->day!=1 && $this->day!=$this_month_day){\n\t\t\n\t\t$this->predate=$this->makeDate($this->month,$this->day-1);\n\t\t\n\t\t$this->nextdate=$this->makeDate($this->month,$this->day+1);\n\t\t\n\t\t\n\t\t\n\t}elseif($this->day==1){\n\t\t\n\t\t$pre_month=$this->month==1?12:($this->month-1);\n\t\t\n\t\t$pre_month_day=$this->getMonth_day($pre_month);\n\t\t\n\t\t$this->predate=$this->makeDate($pre_month,$pre_month_day);\n\t\t\n\t\t$this->nextdate=$this->makeDate($this->month,2);\n\t\t\n\t}else{\n\t\t\n\t\t$this->predate=$this->makeDate($this->month,$this->day-1);\n\t\t\n\t\t$next_month=$this->month==12?1:($this->month+1);\n\t\t\n\t\t$this->nextdate=$this->makeDate($next_month,1);\n\n\t\t}\n\t\t\n\treturn;\n\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}", "function setDueDate( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->DueDate = $value;\n }", "function SetInitialDate ($date)\r\n {\r\n if ($date)\r\n {\r\n $this->_dti = $date; \r\n }\r\n }", "public function setDMY($EUdate)\r\n\t{\r\n\t\t// Put day, month and year in an array\r\n $dateParts = preg_split('{[-/ :.]}', $EUdate);\r\n \r\n // Check the array for values\r\n // And the year has 4 digits\r\n if (!is_array($dateParts) || count($dateParts) != 3)\r\n {\r\n throw new Exception('setDMY() expects a date as DD/MM/YYYY');\r\n }\r\n elseif (strlen($dateParts[2]) != 4)\r\n {\r\n \tthrow new Exception('setDMY() expects a year in 4-digits format');\r\n }\r\n \r\n // Pass the values to setDate method\r\n $this->setDate($dateParts[2], $dateParts[1], $dateParts[0]);\r\n\t}", "public function testSetDateValidationNdF() {\n\n // Set a Date/time mock.\n $dateValidationNdF = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateValidationNdF($dateValidationNdF);\n $this->assertSame($dateValidationNdF, $obj->getDateValidationNdF());\n }", "public function setEndDate(string $date);", "public function testSetDtDebutEmploi() {\n\n // Set a Date/time mock.\n $dtDebutEmploi = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtDebutEmploi($dtDebutEmploi);\n $this->assertSame($dtDebutEmploi, $obj->getDtDebutEmploi());\n }", "function setDateDue($dateDue) {\n\t\t$this->setData('dateDue', $dateDue);\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n \n return $this;\n }", "public function testSetDateLicenciement() {\n\n // Set a Date/time mock.\n $dateLicenciement = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateLicenciement($dateLicenciement);\n $this->assertSame($dateLicenciement, $obj->getDateLicenciement());\n }", "function setDateNotified($dateNotified) {\n\t\t$this->setData('dateNotified', $dateNotified);\n\t}", "public function setContactDate($date) {\n $this->date = $date;\n }", "public function testSetDateAncien() {\n\n // Set a Date/time mock.\n $dateAncien = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateAncien($dateAncien);\n $this->assertSame($dateAncien, $obj->getDateAncien());\n }", "public function testSetDtFinEmploi() {\n\n // Set a Date/time mock.\n $dtFinEmploi = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtFinEmploi($dtFinEmploi);\n $this->assertSame($dtFinEmploi, $obj->getDtFinEmploi());\n }", "public function setDateNaiss($dateNaiss)\n {\n $this->dateNaiss = $dateNaiss;\n\n return $this;\n }", "private function _init_date()\n\t{\n\t\t$this->date->init($this->EE->TMPL->fetch_param('date'));\n\t\t$this->_log(sprintf(\"Working date set to %s %s\", $this->date->date(), $this->date->time()));\n\t}", "public function setDateEmprunt($dateEmprunt)\n {\n $this->dateEmprunt = $dateEmprunt;\n\n return $this;\n }", "public function testSetDateEntree() {\n\n // Set a Date/time mock.\n $dateEntree = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateEntree($dateEntree);\n $this->assertSame($dateEntree, $obj->getDateEntree());\n }", "public function testSetDateEntree() {\n\n // Set a Date/time mock.\n $dateEntree = new DateTime(\"2018-09-10\");\n\n $obj = new AppelsEnCours();\n\n $obj->setDateEntree($dateEntree);\n $this->assertSame($dateEntree, $obj->getDateEntree());\n }", "public function setEntryDate($entry_date)\n {\n $this->entry_date = $entry_date;\n }", "public function setDate($date){\r\n\t\t$this->wishDate = $date;\r\n\t}", "public function setDate($date = false)\n {\n $date = explode('-', $date);\n\n $day = @$date[2] ? : date('d');\n $month = @$date[1] ? : date('m');\n $year = @$date[0] ? : date('Y');\n\n $this->day = @$day;\n $this->month = @$month;\n $this->year = @$year;\n # return Calendar instance\n return $this;\n }", "public function testSetDateEntree1() {\n\n // Set a Date/time mock.\n $dateEntree1 = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateEntree1($dateEntree1);\n $this->assertSame($dateEntree1, $obj->getDateEntree1());\n }", "public function setDueDateAttribute($value)\n {\n $this->attributes['due_date'] = $value;\n }", "public function setDate( $sDate ) {\n\t\t$this->sDate = $sDate;\n\t}", "function setDateAssigned($dateAssigned) {\n\t\t$this->setData('dateAssigned', $dateAssigned);\n\t}", "public function setEmissao(DBDate $oDaTaEmissao){\n $this->oEmissao = $oDaTaEmissao;\n }", "public function set_due_day( $value ) {\n\t\tif ( ! is_numeric( $value ) || $value < 1 || $value > 28 ) {\n\t\t\tthrow new Exception( __( 'Invalid due day of month.', 'credits-for-woocommerce' ) ) ;\n\t\t}\n\n\t\t$this->set_prop( 'due_day', absint( $value ) ) ;\n\t}", "public function setEndDate($date)\n {\n\t\tif($date==null){\n\t\t\t$this->complete_at = null;\n\t\t\t$this->save();\n\t\t\t$this->fireModelEvent('end-refreshed');\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif($this->complete_at){\n\t\t\tif($model->complete_at->greaterThan($date)){\n\t\t\t\t$this->complete_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('end-delayed');\n\t\t\t}else{\n\t\t\t\t$this->complete_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('end-forwarded');\n\t\t\t}\n\t\t}else{\n\t\t\t$this->complete_at = $date;\n \t$this->save();\n\t\t\t$this->fireModelEvent('end-inited');\n\t\t}\n }", "public function setArticle_date($t)\n {\n if(is_string($t))\n $this->_article_date = $t;\n }", "public function setEndDateAttribute($date)\n {\n $this->attributes['end_date'] = $date ? Carbon::parse($date) : null;\n }", "function setEndDate(&$oDate)\n {\n if (is_a($oDate, 'date')) {\n $oDate->setHour(23);\n $oDate->setMinute(59);\n $oDate->setSecond(59);\n $oDate->subtractSeconds(25200);\n }\n }", "public function testSetDateVisiteReprise() {\n\n // Set a Date/time mock.\n $dateVisiteReprise = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateVisiteReprise($dateVisiteReprise);\n $this->assertSame($dateVisiteReprise, $obj->getDateVisiteReprise());\n }", "public function testSetDtFinPreavisNonEffectue() {\n\n // Set a Date/time mock.\n $dtFinPreavisNonEffectue = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtFinPreavisNonEffectue($dtFinPreavisNonEffectue);\n $this->assertSame($dtFinPreavisNonEffectue, $obj->getDtFinPreavisNonEffectue());\n }", "public function testSetDtDebPreavisNonEffectue() {\n\n // Set a Date/time mock.\n $dtDebPreavisNonEffectue = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtDebPreavisNonEffectue($dtDebPreavisNonEffectue);\n $this->assertSame($dtDebPreavisNonEffectue, $obj->getDtDebPreavisNonEffectue());\n }", "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 set_end_date($end_date)\n\t{\n\t\tif (is_null($end_date)) {\n\t\t\tthrow new InvalidArgumentException(\"Project End Date Invalid!\");\n\t\t}\n\t\t$this->end_date = $end_date;\n\t}", "public function setDatenaissance($date_naissance)\n {\n $this->date_naissance = $date_naissance;\n\n return $this;\n }", "public function testSetPeriodeEmploiFin() {\n\n // Set a Date/time mock.\n $periodeEmploiFin = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setPeriodeEmploiFin($periodeEmploiFin);\n $this->assertSame($periodeEmploiFin, $obj->getPeriodeEmploiFin());\n }", "function change_date_orno( $sy_id,$student_id,$date,$orno,$new_date,$new_orno ) {\n\t\t// check if new date is valid\n\t\tif( $new_date=='' ) {\n\t\t\t$this->set_error('Date is required');\n\t\t\treturn false;\n\t\t}\n\t\t// begin transaction\n\t\tif( $this->begin_transaction()==false ) return false;\n\t\t// update extra information\n\t\tif( $orno!=$new_orno && $orno!='' && $new_orno!='' ) {\n\t\t\t$cmd = \"UPDATE tblpayment_extrainfo SET orno='$new_orno' WHERE orno='$orno'\";\n\t\t\tif( $this->query( $cmd )==false ) return $this->rollback();\n\t\t}\n\t\t// update\n\t\tif( $this->update_cond(\n\t\t\t\tarray( 'sy_id'=>$sy_id, 'student_id'=>$student_id, 'orno'=>($orno=='' ? 'NULL' : $orno), 'date'=>$date ),\n\t\t\t\tarray( 'date'=>$new_date, 'orno'=>($new_orno=='' ? 'NULL' : $new_orno) )\n\t\t\t)==false ) return $this->rollback();\n\t\t// end transaction\n\t\treturn $this->end_transaction();\n\t}", "public function set_date_livraison($user, $date_livraison, $notrigger = 0)\n {\n // phpcs:enable\n if ($user->rights->fournisseur->commande->creer)\n {\n \t$error=0;\n\n \t$this->db->begin();\n\n \t$sql = \"UPDATE \".MAIN_DB_PREFIX.\"commande_fournisseur\";\n $sql.= \" SET date_livraison = \".($date_livraison ? \"'\".$this->db->idate($date_livraison).\"'\" : 'null');\n $sql.= \" WHERE rowid = \".$this->id;\n\n \tdol_syslog(__METHOD__, LOG_DEBUG);\n \t$resql=$this->db->query($sql);\n \tif (!$resql)\n \t{\n \t\t$this->errors[]=$this->db->error();\n \t\t$error++;\n \t}\n\n \tif (! $error)\n \t{\n \t\t$this->oldcopy= clone $this;\n \t\t$this->date_livraison = $date_livraison;\n \t}\n\n \tif (! $notrigger && empty($error))\n \t{\n \t\t// Call trigger\n \t\t$result=$this->call_trigger('ORDER_SUPPLIER_MODIFY', $user);\n \t\tif ($result < 0) $error++;\n \t\t// End call triggers\n \t}\n\n \tif (! $error)\n \t{\n \t\t$this->db->commit();\n \t\treturn 1;\n \t}\n \telse\n \t{\n \t\tforeach($this->errors as $errmsg)\n \t\t{\n \t\t\tdol_syslog(__METHOD__.' Error: '.$errmsg, LOG_ERR);\n \t\t\t$this->error.=($this->error?', '.$errmsg:$errmsg);\n \t\t}\n \t\t$this->db->rollback();\n \t\treturn -1*$error;\n \t}\n }\n else\n {\n return -2;\n }\n }", "public function setRequesteDateAttribute($date)\n {\n $this->attributes['request_date'] = Carbon::parse($date);\n }", "public function setToDate($toDate)\n {\n // $this->toDate = $newDate->format('c');\n $this->toDate = $toDate;\n }", "function setDateConfirmed($dateConfirmed) {\n\t\t$this->setData('dateConfirmed', $dateConfirmed);\n\t}", "public function setDateEnd($dateEnd)\n {\n $this->dateEnd = VT::toDateTimeImmutable($dateEnd);\n }", "public function setDtEmis($value,$options=array('required'=>true)){ \n $this->_data['dt_emis'] = new ZendT_Type_Date($value,'Date');\n if ($options['db'])\n $this->_data['dt_emis']->setValueFromDb($value);\n \n if (!$options['db']){\n \n }\n return $this;\n }", "public function testSetDtDebPreavisEffectue() {\n\n // Set a Date/time mock.\n $dtDebPreavisEffectue = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtDebPreavisEffectue($dtDebPreavisEffectue);\n $this->assertSame($dtDebPreavisEffectue, $obj->getDtDebPreavisEffectue());\n }", "public function testSetDateEmbauche() {\n\n // Set a Date/time mock.\n $dateEmbauche = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateEmbauche($dateEmbauche);\n $this->assertSame($dateEmbauche, $obj->getDateEmbauche());\n }", "function modifyDate($mode, $date, $amount);", "public function testSetDtFinPreavisEffectue() {\n\n // Set a Date/time mock.\n $dtFinPreavisEffectue = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtFinPreavisEffectue($dtFinPreavisEffectue);\n $this->assertSame($dtFinPreavisEffectue, $obj->getDtFinPreavisEffectue());\n }", "public function setIdentificationDateAttribute($date)\n {\n $this->attributes['identification_date'] = ($date != \"\") ? Carbon::parse($date) : null;\n }", "public function setdueDateAttribute($value)\n {\n\n $this->attributes['due_date'] = UserHelper::parseDateFromString($value);\n }", "public function setDate($year, $month, $day)\r\n\t{\r\n\t\t// Perform the numeric check\r\n\t\tif (!is_numeric($year) || !is_numeric($month) || !is_numeric($day))\r\n\t\t{\r\n\t\t\tthrow new Exception('setDate() expects three numbers in this order: year, month, day');\r\n\t\t}\r\n\t\t\r\n\t\t// Perform the date validation check\r\n\t\tif (!checkdate($month, $day, $year))\r\n\t\t{\r\n\t\t\tthrow new Exception('Non-existent date');\r\n\t\t}\r\n\t\t\r\n\t\t// Set the date\r\n\t\tparent::setDate($year, $month, $day);\r\n\r\n\t\t// Set the internal variables\r\n\t\t$this->_year = $year;\r\n\t\t$this->_month = $month;\r\n\t\t$this->_day = $day; \r\n\t}", "public\n\tfunction setPostDate($newPostDate = null): void {\n\t\t// base case: if the date is null, use the current date and time\n\t\tif($newPostDate === null) {\n\t\t\t$this->postDate = new \\DateTime();\n\t\t\treturn;\n\t\t}\n\n\n\n\t//store the like date using the ValidateDate trait\n\ttry {\n\t\t$newPostDate = self::validateDateTime($newPostDate);\n\t} catch(\\InvalidArgumentException |\\RangeException $exception) {\n\t\t$exceptionType = get_class($exception);\n\t\tthrow(new $exceptionType($exception->getMessage(), 0, $exception));\n\t}\n\t$this->postDate = $newPostDate;\n\n}", "public function setArticleDate($newArticleDate = null): void {\n\t\t// base case: if the date is null, use the current date and time\n\t\tif($newArticleDate === null) {\n\t\t\t$this->articleDate = new \\DateTime();\n\t\t\treturn;\n\t\t}\n\n\t\t// store the like date using the ValidateDate trait\n\t\ttry {\n\t\t\t$newArticleDate = self::validateDateTime($newArticleDate);\n\t\t} catch(\\InvalidArgumentException | \\RangeException $exception) {\n\t\t\t$exceptionType = get_class($exception);\n\t\t\tthrow(new $exceptionType($exception->getMessage(), 0, $exception));\n\t\t}\n\t\t$this->articleDate = $newArticleDate;\n\t}", "function setLocalDate($loca,$dat){\n $this->local = $loca;\n $this->dates = $dat;\n }", "function setDateResponseDue($dateResponseDue) {\n\t\t$this->setData('dateResponseDue', $dateResponseDue);\n\t}", "public function setSaldo($nuevo_saldo, $id_empresa){\n }", "protected function set_date_prop( $date_type, $value ) {\n\t\t$datetime = wcs_get_datetime_from( $value );\n\t\t$date = ! is_null( $datetime ) ? wcs_get_datetime_utc_string( $datetime ) : 0;\n\n\t\t$this->set_prop( $this->get_date_prop_key( $date_type ), $date );\n\t\t$this->schedule->{$date_type} = $date;\n\t}", "public function setFechaNacimientoAttribute($value)\n {\n if(!empty($value))\n {\n $this->attributes['fecha_nacimiento'] = date_format(date_create(substr($value, 3, 2) . '/' . substr($value, 0, 2) . '/' . substr($value, 6, 4)), 'Y-m-d');\n }\n }", "public function testSetDatePaiement() {\n\n // Set a Date/time mock.\n $datePaiement = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDatePaiement($datePaiement);\n $this->assertSame($datePaiement, $obj->getDatePaiement());\n }", "public function setDate($date_string = null)\n {\n\n if ($this->is_date() == 1) {\n $this->now = getdate(strtotime($date_string));\n } else {\n $this->now = getdate();\n }\n }", "public function save()\n {\n if ( ! $start_date = $this->getData(\"start_date\"))\n {\n $start_date = time();\n }\n\n $start_date = strtotime($start_date);\n $this->setData(\"start_date\", date(\"Y-m-d\", $start_date));\n\n // We only need to do end dates if they are provided.\n if ($end_date = $this->getData(\"end_date\"))\n {\n $end_date = strtotime($end_date);\n $this->setData(\"end_date\", date(\"Y-m-d\", $end_date));\n }\n else\n {\n $this->setData(\"end_date\", NULL);\n }\n\n parent::save();\n }", "function set_employee($emp)\n\t\t{\n\t\t\t$this->employee = $emp;\n\t\t}" ]
[ "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.6094677", "0.60856307", "0.6078793", "0.60681474", "0.6045946", "0.6039132", "0.6039132", "0.60363257", "0.6033013", "0.599642", "0.59933716", "0.5991613", "0.5991533", "0.59909815", "0.5977494", "0.5974341", "0.5972344", "0.597045", "0.59642226", "0.5962105", "0.5961874", "0.5951888", "0.59257686", "0.5887536", "0.58786905", "0.58706313", "0.58659136", "0.58509284", "0.5833364", "0.58306795", "0.58292633", "0.5823075", "0.582061", "0.5804029", "0.580369", "0.57961565", "0.5793574", "0.5791063", "0.57905614", "0.5784359", "0.5777932", "0.57706094", "0.5767302", "0.57540053", "0.57498765", "0.5729736", "0.5729112", "0.57273465", "0.5727264", "0.5711651", "0.5711487", "0.5710751", "0.5707336", "0.5706013", "0.57032853", "0.57001555", "0.56977856", "0.569596", "0.5684505", "0.5683103", "0.5665369", "0.5663041", "0.56593037", "0.564591", "0.56455684", "0.5638741", "0.5638501", "0.56275856", "0.56249285", "0.5618301" ]
0.69560844
1
Set the date naissance enfant.
public function setDateNaissanceEnfant(DateTime $dateNaissanceEnfant = null) { $this->dateNaissanceEnfant = $dateNaissanceEnfant; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFecha($n)\n {\n $this->c_fecha=$n;\n }", "public function setDateDuJour()\n{\n$this->setDateSysteme(date(\"Y-m-d\"));\n$this->setDateUtilisateur(date(\"d/m/Y\"));\n}", "public function setDate($date);", "protected function setDateUtilisateur($date)\n{\n$this->dateUtilisateur = $date;\t\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($date){\n\t\t$this->date = $date;\n\t}", "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}", "function setFecha($fecha) {\r\n $this->fecha = $fecha;\r\n }", "public function setDate($value) {\n\t\t$this->_date = $value;\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 setDateMiseEnLigne($dateMiseEnLigne) \n\t{\n\t\t\n $this ->dateMiseEnLigne = empty($dateMiseEnLigne) ? \"\" : $dateMiseEnLigne;\t\n\t}", "public static function setDateFormatDay()\n {\n self::$settings[0] = 'Y-m-d';\n }", "public function setDateNaiss($dateNaiss)\n {\n $this->dateNaiss = $dateNaiss;\n\n return $this;\n }", "public function getDateNaissanceEnfant() {\n return $this->dateNaissanceEnfant;\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 setDatenaissance($date_naissance)\n {\n $this->date_naissance = $date_naissance;\n\n return $this;\n }", "public function setDate($date){\r\n\t\t$this->wishDate = $date;\r\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 }", "public function setArticle_date($t)\n {\n if(is_string($t))\n $this->_article_date = $t;\n }", "public function setDate($date)\n {\n $this->date = $date;\n \n return $this;\n }", "public function setDate($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "public function setDateNaiss(DateTime $dateNaiss = null) {\n $this->dateNaiss = $dateNaiss;\n return $this;\n }", "public function setFechaNacimientoAttribute($value)\n {\n if(!empty($value))\n {\n $this->attributes['fecha_nacimiento'] = date_format(date_create(substr($value, 3, 2) . '/' . substr($value, 0, 2) . '/' . substr($value, 6, 4)), 'Y-m-d');\n }\n }", "public function setDateNaissanceEmploye(DateTime $dateNaissanceEmploye = null) {\n $this->dateNaissanceEmploye = $dateNaissanceEmploye;\n return $this;\n }", "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 }", "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 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 setModDate($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 testSetDateValidationNdF() {\n\n // Set a Date/time mock.\n $dateValidationNdF = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateValidationNdF($dateValidationNdF);\n $this->assertSame($dateValidationNdF, $obj->getDateValidationNdF());\n }", "public function setUseDate($use_date) \n \t{\n \t\t$this->use_date = $use_date;\n \t}", "public function setArticleDate($newArticleDate = null): void {\n\t\t// base case: if the date is null, use the current date and time\n\t\tif($newArticleDate === null) {\n\t\t\t$this->articleDate = new \\DateTime();\n\t\t\treturn;\n\t\t}\n\n\t\t// store the like date using the ValidateDate trait\n\t\ttry {\n\t\t\t$newArticleDate = self::validateDateTime($newArticleDate);\n\t\t} catch(\\InvalidArgumentException | \\RangeException $exception) {\n\t\t\t$exceptionType = get_class($exception);\n\t\t\tthrow(new $exceptionType($exception->getMessage(), 0, $exception));\n\t\t}\n\t\t$this->articleDate = $newArticleDate;\n\t}", "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 }", "function setData($data)\n {\n $this->date=$data;\n }", "public function setCreatedDate(NostoDate $date)\n {\n $this->createdDate = $date;\n }", "function SetInitialDate ($date)\r\n {\r\n if ($date)\r\n {\r\n $this->_dti = $date; \r\n }\r\n }", "public function setDate($date = false)\n {\n $date = explode('-', $date);\n\n $day = @$date[2] ? : date('d');\n $month = @$date[1] ? : date('m');\n $year = @$date[0] ? : date('Y');\n\n $this->day = @$day;\n $this->month = @$month;\n $this->year = @$year;\n # return Calendar instance\n return $this;\n }", "public function testSetDateEntree() {\n\n // Set a Date/time mock.\n $dateEntree = new DateTime(\"2018-09-10\");\n\n $obj = new AppelsEnCours();\n\n $obj->setDateEntree($dateEntree);\n $this->assertSame($dateEntree, $obj->getDateEntree());\n }", "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 }", "public function setDateEncaisseAttribute($input)\n {\n if ($input != null && $input != '') {\n $this->attributes['date_encaisse'] = Carbon::createFromFormat(config('app.date_format') . ' H:i:s', $input)->format('Y-m-d H:i:s');\n } else {\n $this->attributes['date_encaisse'] = null;\n }\n }", "public function setFechaIngresoAttribute($value)\n {\n if(!empty($value))\n {\n $this->attributes['fecha_ingreso'] = date_format(date_create(substr($value, 3, 2) . '/' . substr($value, 0, 2) . '/' . substr($value, 6, 4)), 'Y-m-d');\n }\n }", "function setFechaNoSQL($FE_FechaNac)\n\t{\n\t\t$partes = explode(\"-\", $FE_FechaNac);\n\t\t$FE_FechaNac = $partes[2].'/'.$partes[1].'/'.$partes[0];\n\t\treturn $FE_FechaNac;\n\t}", "public function testSetDateEntree() {\n\n // Set a Date/time mock.\n $dateEntree = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateEntree($dateEntree);\n $this->assertSame($dateEntree, $obj->getDateEntree());\n }", "public function setDate($date)\n {\n $this->values['Date'] = $date;\n return $this;\n }", "public function setContactDate($date) {\n $this->date = $date;\n }", "public function setFechaNacimiento($fechaNacimiento) {\n\t\t$this->fechaNacimiento = $fechaNacimiento;\n\t}", "public function setDate()\n\t{\n\t\tif ($this->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "public function testSetDateEmbauche() {\n\n // Set a Date/time mock.\n $dateEmbauche = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateEmbauche($dateEmbauche);\n $this->assertSame($dateEmbauche, $obj->getDateEmbauche());\n }", "public function setFecha($fecha) {\n $date = Funciones::gConvertirFecha($fecha, TRUE);\n $orden = $this->orden;\n if ($date && $date != $this->fecha) {\n // Si cambia la fecha, recarga los datos.\n $this->cargarAsistentes($date, $orden);\n }\n }", "public function setDateEcriture(DateTime $date_ecriture): void\n {\n $this->date_ecriture = $date_ecriture;\n }", "public function setDate($date) {\n $this->date = $date;\n $this->updateData();\n return $this;\n }", "public function setDMY($EUdate)\r\n\t{\r\n\t\t// Put day, month and year in an array\r\n $dateParts = preg_split('{[-/ :.]}', $EUdate);\r\n \r\n // Check the array for values\r\n // And the year has 4 digits\r\n if (!is_array($dateParts) || count($dateParts) != 3)\r\n {\r\n throw new Exception('setDMY() expects a date as DD/MM/YYYY');\r\n }\r\n elseif (strlen($dateParts[2]) != 4)\r\n {\r\n \tthrow new Exception('setDMY() expects a year in 4-digits format');\r\n }\r\n \r\n // Pass the values to setDate method\r\n $this->setDate($dateParts[2], $dateParts[1], $dateParts[0]);\r\n\t}", "public function setEndDate(string $date);", "public function setDateAttribute($date)\n {\n \t$this->attributes['date'] = Carbon::parse($date);\n }", "public function testSetDateAncien() {\n\n // Set a Date/time mock.\n $dateAncien = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateAncien($dateAncien);\n $this->assertSame($dateAncien, $obj->getDateAncien());\n }", "public function setDate($date)\n {\n $this->date = $date;\n\n return $this;\n }", "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 setFechaInicialAttribute($value)\n {\n return $this->attributes['fecha_inicial'] = date($this->setDateFormatTarifasVehiculo,strtotime(Carbon::createFromFormat('d/m/Y', $value)->toDateTimeString()));\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 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}", "function setDateNotified($dateNotified) {\n\t\t$this->setData('dateNotified', $dateNotified);\n\t}", "public\n\tfunction setPostDate($newPostDate = null): void {\n\t\t// base case: if the date is null, use the current date and time\n\t\tif($newPostDate === null) {\n\t\t\t$this->postDate = new \\DateTime();\n\t\t\treturn;\n\t\t}\n\n\n\n\t//store the like date using the ValidateDate trait\n\ttry {\n\t\t$newPostDate = self::validateDateTime($newPostDate);\n\t} catch(\\InvalidArgumentException |\\RangeException $exception) {\n\t\t$exceptionType = get_class($exception);\n\t\tthrow(new $exceptionType($exception->getMessage(), 0, $exception));\n\t}\n\t$this->postDate = $newPostDate;\n\n}", "public function setDate( $sDate ) {\n\t\t$this->sDate = $sDate;\n\t}", "public function setPublishedAtAttribute($date){ //guarda el campo published_at como si fuera una instancia de Carbon para que se guarde con hora\n \t$this->attributes['published_at']=Carbon::parse($date); \n }", "function setEndDate($end_date = \"\") \n\t{\n\t\t$this->end_date = $end_date;\n\t}", "public function testSetDtFinPreavisNonEffectue() {\n\n // Set a Date/time mock.\n $dtFinPreavisNonEffectue = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtFinPreavisNonEffectue($dtFinPreavisNonEffectue);\n $this->assertSame($dtFinPreavisNonEffectue, $obj->getDtFinPreavisNonEffectue());\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 setLocalDate($loca,$dat){\n $this->local = $loca;\n $this->dates = $dat;\n }", "public function setRequesteDateAttribute($date)\n {\n $this->attributes['request_date'] = Carbon::parse($date);\n }", "public function setFormattedDate():self\n {\n $date = mb_substr($this->getAnswerDate(), 0, 10);\n $time = mb_substr($this->getAnswerDate(), 11, 19);\n\n $m = (int)mb_substr($date, 5,2);\n $month = Requestor::monthOfADate($m);\n $parts = array_reverse(explode('-', $date));\n unset($parts[1]);\n $date = implode(' '.$month.' ', $parts);\n\n $t = new DateTime($time);\n $h = $t->format('H');\n $m = $t->format('i');\n \n\n $this->dateFormatted = \"Postée le \".$date. \" à \".$hour = $h.\"h \".$m.\"'\"; \n\n return $this;\n }", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setDateSeance($dateSeance) {\r\n $this->dateSeance = $dateSeance;\r\n return $this;\r\n }", "public function getDateNaissance() \n {\n return $this->dateNaissance;\n }", "public function getDateNaiss()\n {\n return $this->dateNaiss;\n }", "public function setPropertyDate($date=true)\n {\n if($date === false)\n {\n $this->date =false;\n }\n elseif($date !== true)\n {\n $this->date =$date;\n }\n }", "public function setDate($date = null): object\n\t{\n\t\tif (null !== $date && !($date instanceof FHIRDateTime)) {\n\t\t\t$date = new FHIRDateTime($date);\n\t\t}\n\t\t$this->_trackValueSet($this->date, $date);\n\t\t$this->date = $date;\n\t\treturn $this;\n\t}", "public function setToDate($toDate)\n {\n // $this->toDate = $newDate->format('c');\n $this->toDate = $toDate;\n }", "public function testSetDtDebPreavisNonEffectue() {\n\n // Set a Date/time mock.\n $dtDebPreavisNonEffectue = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtDebPreavisNonEffectue($dtDebPreavisNonEffectue);\n $this->assertSame($dtDebPreavisNonEffectue, $obj->getDtDebPreavisNonEffectue());\n }", "public function getDateNaissance()\n {\n return $this->date_naissance;\n }", "public function setDate_naissance_user($date_naissance_user)\r\n {\r\n $this->date_naissance_user = $date_naissance_user;\r\n\r\n return $this;\r\n }", "private function _consolideDate(){\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public function setNearday(){\n\t\n\t$this_month_day=$this->getMonth_day();\n\t\n\tif($this->day!=1 && $this->day!=$this_month_day){\n\t\t\n\t\t$this->predate=$this->makeDate($this->month,$this->day-1);\n\t\t\n\t\t$this->nextdate=$this->makeDate($this->month,$this->day+1);\n\t\t\n\t\t\n\t\t\n\t}elseif($this->day==1){\n\t\t\n\t\t$pre_month=$this->month==1?12:($this->month-1);\n\t\t\n\t\t$pre_month_day=$this->getMonth_day($pre_month);\n\t\t\n\t\t$this->predate=$this->makeDate($pre_month,$pre_month_day);\n\t\t\n\t\t$this->nextdate=$this->makeDate($this->month,2);\n\t\t\n\t}else{\n\t\t\n\t\t$this->predate=$this->makeDate($this->month,$this->day-1);\n\t\t\n\t\t$next_month=$this->month==12?1:($this->month+1);\n\t\t\n\t\t$this->nextdate=$this->makeDate($next_month,1);\n\n\t\t}\n\t\t\n\treturn;\n\n\t}", "public function setStartDate(string $date);", "public function setDateAttribute($value)\n {\n $this->attributes['date'] = Carbon::parse($value)->format('Y-m-d');\n }", "public function setDate($date = null): object\n {\n if (null !== $date && !($date instanceof FHIRDate)) {\n $date = new FHIRDate($date);\n }\n $this->_trackValueSet($this->date, $date);\n $this->date = $date;\n return $this;\n }", "public function setDate($date_string = null)\n {\n\n if ($this->is_date() == 1) {\n $this->now = getdate(strtotime($date_string));\n } else {\n $this->now = getdate();\n }\n }", "public function setEndDate($date)\n\t\t{\n\t\t\t$this->end_date = $date;\n\t\t}", "public function setDataNascimento($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_nascimento !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_nascimento !== null && $tmpDt = new DateTime($this->data_nascimento)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_nascimento = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_NASCIMENTO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function setFechaCargueAttribute($value)\n {\n $string_date = ($value instanceof DateTime) ? $value->format('Y-m-d') : $value;\n $this->attributes['fecha_cargue'] = date('Y-m-d', strtotime($string_date === NULL ? '' : $string_date));\n }", "private function _init_date()\n\t{\n\t\t$this->date->init($this->EE->TMPL->fetch_param('date'));\n\t\t$this->_log(sprintf(\"Working date set to %s %s\", $this->date->date(), $this->date->time()));\n\t}", "public function testSetDtFinPreavisEffectue() {\n\n // Set a Date/time mock.\n $dtFinPreavisEffectue = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtFinPreavisEffectue($dtFinPreavisEffectue);\n $this->assertSame($dtFinPreavisEffectue, $obj->getDtFinPreavisEffectue());\n }", "public function testSetDateTransfert() {\n\n // Set a Date/time mock.\n $dateTransfert = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setDateTransfert($dateTransfert);\n $this->assertSame($dateTransfert, $obj->getDateTransfert());\n }", "public function setEndDateAttribute($date)\n {\n $this->attributes['end_date'] = $date ? Carbon::parse($date) : null;\n }", "public function getDateNaissanceEmploye() {\n return $this->dateNaissanceEmploye;\n }", "function setDateConfirmed($dateConfirmed) {\n\t\t$this->setData('dateConfirmed', $dateConfirmed);\n\t}" ]
[ "0.7808628", "0.76014775", "0.73596144", "0.7293775", "0.72299474", "0.7221829", "0.71103597", "0.7086874", "0.7086874", "0.70699203", "0.69747514", "0.6901402", "0.68776083", "0.68331146", "0.6762945", "0.6733524", "0.6708349", "0.6687354", "0.6683494", "0.66243535", "0.6582131", "0.655378", "0.65392965", "0.64790285", "0.64782584", "0.64183915", "0.6414485", "0.64122117", "0.6352759", "0.63451487", "0.6334648", "0.63106936", "0.6309766", "0.6304041", "0.6293762", "0.62934", "0.6293009", "0.6265556", "0.6237588", "0.623302", "0.6230721", "0.62045515", "0.61865455", "0.61863744", "0.61855215", "0.61854917", "0.61788785", "0.6172676", "0.6163705", "0.6159662", "0.61359245", "0.6130605", "0.6128858", "0.61232615", "0.6117979", "0.6117512", "0.6115365", "0.6107424", "0.61066365", "0.6100856", "0.6096562", "0.60900444", "0.6078948", "0.6078948", "0.6071385", "0.6064797", "0.6058346", "0.6048812", "0.60476464", "0.60435057", "0.6042291", "0.6041821", "0.60403574", "0.60366917", "0.6034312", "0.6034312", "0.60284775", "0.602327", "0.60207945", "0.59976184", "0.5993281", "0.59922963", "0.59840304", "0.5976934", "0.5976339", "0.597109", "0.5969467", "0.59657466", "0.594895", "0.5936507", "0.59274197", "0.5923147", "0.59198064", "0.5917244", "0.5912087", "0.59063286", "0.5901902", "0.58908117", "0.589068", "0.5879541" ]
0.7120383
6
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 }", "public function setNom($nom){\n if(empty($nom)){\n //on redirige\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable nom puis on appelle la varibale prive nom\n $this->_nom = $nom;\n }", "function getJulianDate()\r\n {\r\n return Data_Calc::dataJuliana($this->dia, $this->mes, $this->ano);\r\n }", "public function setOrd($ord) {\n $this->ord = $ord;\n }", "public function setOrden($orden) {\n $ord = ($orden != 0 && $orden != 1 && $orden != 2) ? 0 : $orden;\n if ($ord != $this->orden) {\n // Si cambia el orden, recarga los datos.\n $fecha = $this->fecha;\n $this->cargarAsistentes($fecha, $ord);\n }\n }", "public function testSetDernLieuTravail() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernLieuTravail(\"dernLieuTravail\");\n $this->assertEquals(\"dernLieuTravail\", $obj->getDernLieuTravail());\n }", "public function testSetTds59() {\n\n $obj = new Employes();\n\n $obj->setTds59(\"tds59\");\n $this->assertEquals(\"tds59\", $obj->getTds59());\n }", "public function init(){\n $this->documento='760';\n }", "function setColor($color_coche, $nombre_coche){\r\n\t\t\t$this->color=$color_coche;\r\n\t\t\techo \"El color del \" . $nombre_coche . \" es: \" . $this->color . \"<br/>\";\r\n\t\t}", "public function testSetGestionMajJf() {\n\n $obj = new Employes();\n\n $obj->setGestionMajJf(\"gestionMajJf\");\n $this->assertEquals(\"gestionMajJf\", $obj->getGestionMajJf());\n }", "public function setEdad($valor){\n\t\t\t$this->edad = $valor;\n\t\t}", "public function setSLDatum($datum) {\n\t\t$this->data['var SLDatum'] = '\"'.$datum.'\"';\n\t}", "function set_luaspersegipanjang($p, $l){\n \t\t$this->panjang = $p;\n \t\t$this->lebar = $l;\n \t}", "public function testSetNumeroCarteSejour() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteSejour(\"numeroCarteSejour\");\n $this->assertEquals(\"numeroCarteSejour\", $obj->getNumeroCarteSejour());\n }", "static function hijriToJulian($month, $day, $year) {\n return ($day + ceil(29.5 * ($month - 1)) + ($year - 1) * 354 + floor((3 + (11 * $year)) / 30) + HIJRI_EPOCH) - 1;\n }", "function setMargemDireita($iNumCol = 4) {\n\n $sComando = chr(27) . chr(81) . \" $iNumCol\";\n parent::addComando($sComando);\n }", "private function setCodigoOrdem($iCodigoOrdem){\n $this->iCodigoOrdem = $iCodigoOrdem;\n }", "public function getJind()\n {\n return $this->hasOne(JerarquiaIndicador::className(), ['jind_id' => 'jind_id']);\n }", "public function setX($ord)\r\n {\r\n $this->x=$ord;\r\n }", "public function mort()\n\t{\n\t\tif ( $this->vie <= 0 ) {\n\t\t\techo $this->nom . \" est mort <br>\";\n\t\t} else {\n\t\t\techo $this->nom . \" est vivant ! <br>\";\n\t\t}\n\t}", "public function setCi($_ci)\n {\n $this->ci = $_ci;\n }", "public function testSetNumeroOrdre() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setNumeroOrdre(10);\n $this->assertEquals(10, $obj->getNumeroOrdre());\n }", "public function testSetTds93() {\n\n $obj = new Employes();\n\n $obj->setTds93(10.092018);\n $this->assertEquals(10.092018, $obj->getTds93());\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 }", "public function setDateDernJMens(DateTime $dateDernJMens = null) {\n $this->dateDernJMens = $dateDernJMens;\n return $this;\n }", "function islamic_to_jd($mo,$da,$yr) {\n\t\treturn ( $da + ceil(29.5*($mo-1)) + ($yr-1)*354 +\n\t\t\tfloor((3+(11*$yr))/30)+ ISLAMIC_EPOCH - 1);\n\t}", "public function setDn($dn);", "function _putDateConvGtJDate(&$pdf, $src, $x, $height, $font)\n {\n $year = date('Y', strtotime($src));\n $month = date('n', strtotime($src));\n $day = date('j', strtotime($src));\n// list($year, $month, $day) = explode('-', $src);\n $date = str_replace('-', '', $src);\n if ($date >= 19890108) {\n $gengo = '平成';\n $wayear = $year - 1988;\n } elseif ($date >= 19261225) {\n $gengo = '昭和';\n $wayear = $year - 1925;\n } elseif ($date >= 19120730) {\n $gengo = '大正';\n $wayear = $year - 1911;\n } else {\n $gengo = '明治';\n $wayear = $year - 1868;\n }\n //Set x y month day\n $pdf->SetXY($x + 2.5, $height + 0.7);\n $pdf->MultiCell(20, 5, $wayear, 0, 'C');\n $pdf->SetXY($x + 10.0, $height + 0.7);\n $pdf->MultiCell(20, 5, $month, 0, 'C');\n $pdf->SetFont($font, null, 14, true);\n\n if ($gengo == '昭和') {\n $pdf->SetXY($x - 8.8, $height - 2.5);\n $pdf->MultiCell(28, 2, '◯', 0, 'C');\n }\n if ($gengo == '平成') {\n $pdf->SetXY($x - 8.8, $height + 1.6);\n $pdf->MultiCell(28, 2, '◯', 0, 'C');\n }\n }", "public function setDW($dw) {}", "public function testSetMontant4() {\n\n $obj = new Employes();\n\n $obj->setMontant4(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant4());\n }", "public function __set($name, $value)\n {\n $this->m_current_clusternode->$name = $value;\n }", "public function getFrmCode($j)\n {\n // elseif ($j == 2) $kode_frm = 'FRM-09b' ;\n // elseif ($j == 3) $kode_frm = 'FRM-10' ;\n // elseif ($j == 4) $kode_frm = 'FRM-11' ;\n // elseif ($j == 5) $kode_frm = 'FRM-12' ;\n // elseif ($j == 6) $kode_frm = 'FRM-13' ;\n // elseif ($j == 7) $kode_frm = 'FRM-14' ;\n // elseif ($j == 8) $kode_frm = 'FRM-15' ;\n // elseif ($j == 9) $kode_frm = 'FRM-16' ;\n // elseif ($j == 10) $kode_frm = 'FRM-17' ;\n // return $kode_frm;\n echo \"2\";\n }", "function SetInitialDate ($date)\r\n {\r\n if ($date)\r\n {\r\n $this->_dti = $date; \r\n }\r\n }", "public function testSetNbJourBaseCp() {\n\n $obj = new Employes();\n\n $obj->setNbJourBaseCp(10.092018);\n $this->assertEquals(10.092018, $obj->getNbJourBaseCp());\n }", "function gregorian_to_jalali ($g_y, $g_m, $g_d)\n\t{\n\t\t$g_days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);\n\t\t$j_days_in_month = array(31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29);\n\t\t$gy = $g_y-1600;\n\t\t$gm = $g_m-1;\n\t\t$gd = $g_d-1;\n\t\t$g_day_no = 365*$gy+$this->div($gy+3,4)-$this->div($gy+99,100)+$this->div($gy+399,400);\n\n\t\tfor ($i=0; $i < $gm; ++$i)\n\t\t\t$g_day_no += $g_days_in_month[$i];\n\t\t\n\t\tif ($gm>1 && (($gy%4==0 && $gy%100!=0) || ($gy%400==0)))\n\t\t\t$g_day_no++; /* leap and after Feb */\n\t\t\n\t\t$g_day_no += $gd;\n\t\t$j_day_no = $g_day_no-79;\n\t\t$j_np = $this->div($j_day_no, 12053); /* 12053 = 365*33 + 32/4 */\n\t\t$j_day_no = $j_day_no % 12053;\n\t\t$jy = 979+33*$j_np+4*$this->div($j_day_no,1461); /* 1461 = 365*4 + 4/4 */\n\t\t$j_day_no %= 1461;\n\t\t\n\t\tif($j_day_no >= 366)\n\t\t{\n\t\t\t$jy += $this->div($j_day_no-1, 365);\n\t\t\t$j_day_no = ($j_day_no-1)%365;\n\t\t}\n\t\t\n\t\tfor($i = 0; $i < 11 && $j_day_no >= $j_days_in_month[$i]; ++$i)\n\t\t\t$j_day_no -= $j_days_in_month[$i];\n\t\t\n\t\t$jm = $i+1;\n\t\t$jd = $j_day_no+1;\n\t\t\n\t\treturn array($jy, $jm, $jd);\n\t}", "function divorced() \n { \n $this->marsta_id=\"D\";\n $this->marsta_name=\"Divorced\";\n return($this->marsta_id);\n }", "function setMonth($m)\r\n {\r\n if($m < 1 || $m > 12) {\r\n $this->mes = 1;\r\n } else {\r\n $this->mes = $m;\r\n }\r\n }", "public function\t\t\t\t\tset_section_js(array $_d) {\n\n\t\t$this->section_js=$_d;\n\t}", "public function jalan() {\n return \"Hewan ini berjalan<br/>\";\n }", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "public function jalan() {\n echo \"method jalan() berisi : Hewan ini terbang\";\n }", "public function getJambanDifabel()\n {\n return $this->jamban_difabel;\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 setDoorId()\n {\n if(isset($_GET['doorId']))\n {\n echo 'const doorId = '.$_GET['doorId'].';';\n }\n else\n {\n $config = new Config;\n echo 'const doorId = '.$config->defaultDoor.';';\n }\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 setDateDuJour()\n{\n$this->setDateSysteme(date(\"Y-m-d\"));\n$this->setDateUtilisateur(date(\"d/m/Y\"));\n}", "function getJname()\n {\n return 'phpbb31';\n }", "function replace_journo() {\n $this->add_journo(TRUE);\n }", "function setModificarJugador($id,$nombre,$url_img){\n\t$this->nombre = $nombre;\n\t$this->id = $id;\n\t$this->url_img = $url_img;\n}", "private function dateDuJour(){\n return date(\"Y-m-d\");\n }", "public function setVida($valor){\n $this->vida=$valor;\n }", "public function setY($y) {}", "public function setJambanDifabel($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->jamban_difabel !== $v) {\n $this->jamban_difabel = $v;\n $this->modifiedColumns[] = SanitasiPeer::JAMBAN_DIFABEL;\n }\n\n\n return $this;\n }", "function setNom($nom) { if (is_string($nom)) {\r\n $this->_nom = $nom;\r\n }\r\n }", "function getDateJour()\n {\n return $this->formatDateDBversLocal(date('Y-m-d'));\n }", "protected function setDNINumber($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\t$value = number_format($value,\"0\",\"\",\".\");\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 298, 623, 'UTF-8');\n\t\t}\n\t\t\n\t}", "public function testSetTds92() {\n\n $obj = new Employes();\n\n $obj->setTds92(10.092018);\n $this->assertEquals(10.092018, $obj->getTds92());\n }", "public function testSetJoursRttAcquis() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setJoursRttAcquis(10.092018);\n $this->assertEquals(10.092018, $obj->getJoursRttAcquis());\n }", "public function setEditorial1($v)\n\t{\n\n\t\tif ($this->editorial1 !== $v || $v === false) {\n\t\t\t$this->editorial1 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL1;\n\t\t}\n\n\t}", "function getDateJhjjmmtt() {\n\t\n\t$date \t= getdate();\n\t$year \t= $date['year'];\n\t$mon \t= $date['mon'];\n $day\t\t= $date['mday'];\n \n\tif( $mon < \"10\" ) \t\t$mon = \"0\".$mon;\n\tif( $day < \"10\" )\t\t$day = \"0\".$day;\n\t\n\t$moddate \t= $year.$mon.$day;\n\n\treturn $moddate;\n}", "function setNumAnz($wert) {$this->PhoneNumAnz = trim($wert);}", "public function setTampilPeriode($kd_klasifikasi) {\n\t\t$this->kd_klasifikasi = $kd_klasifikasi;\n\t}", "protected function setDateUtilisateur($date)\n{\n$this->dateUtilisateur = $date;\t\n}", "public function setCodcaj($codcaj){\n\t\t$this->codcaj = $codcaj;\n\t}", "function j_jj($h1) {\r\n if ($h1 === 'o') {\r\n $duplo1 = 'j';\r\n return $duplo1;\r\n }\r\n }", "public function setC($x) { $this->c = $x; }", "public function testSetNumero() {\n\n $obj = new Collaborateurs();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }", "function setCity($city) {\r\r\n\t\t$this->city = $city;\r\r\n\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 testSetTds136() {\n\n $obj = new Employes();\n\n $obj->setTds136(10.092018);\n $this->assertEquals(10.092018, $obj->getTds136());\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\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.4671342", "0.46483207", "0.4612901", "0.460314", "0.45854098", "0.45694247", "0.45679986", "0.45611155", "0.45309588", "0.45287436", "0.45258075", "0.45188817", "0.45169935", "0.45125234", "0.4505377", "0.45043632", "0.44923127", "0.44791874", "0.446807", "0.44612068", "0.44611683", "0.44608957", "0.44382393", "0.44375208", "0.4434482", "0.44330573", "0.442605", "0.44228974", "0.4408089", "0.4402757", "0.44016504", "0.43997386", "0.4398717", "0.43979377", "0.43928918", "0.43850395", "0.43848068", "0.43695667", "0.43644446", "0.43565416", "0.43546367", "0.43528837", "0.43345687", "0.43272462", "0.43253383", "0.43161473", "0.43157953", "0.4311753", "0.43084797", "0.4306644", "0.43030453", "0.4300593", "0.42921698", "0.42893985", "0.42864746", "0.42859417", "0.42843738", "0.42831653", "0.4279428", "0.4278968", "0.42788032", "0.42785206", "0.4269285", "0.42682967", "0.42671388", "0.42651525", "0.4264568", "0.42565185", "0.4253554", "0.42522952" ]
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 }", "public function testSetAnnulationBonsTravaux() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationBonsTravaux(true);\n $this->assertEquals(true, $obj->getAnnulationBonsTravaux());\n }", "public function setoran_tunai()\n\t{\n\t\t$data['container'] = 'transaction/setoran_tunai';\n\t\t$data['rembugs'] = $this->model_cif->get_cm_data();\n\t\t$data['current_date'] = $this->format_date_detail($this->current_date(),'id',false,'/');\n\t\t$data['account_cash'] = $this->model_transaction->get_account_cash();\n\t\t$this->load->view('core',$data);\n\t}", "public function testSetTauxCommission() {\n\n $obj = new Collaborateurs();\n\n $obj->setTauxCommission(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxCommission());\n }", "protected function setOfferValue ()\n {\n $this->request->coupon_benefits[ $this->offerNature ] = $this->offer->rate;\n }", "public function testSetNbHeureTrav() {\n\n $obj = new Employes();\n\n $obj->setNbHeureTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureTrav());\n }", "public function setTicket($ticket)\n {\n $this->ticket = $ticket;\n }", "public function testSetCompteTiers() {\n\n $obj = new Employes();\n\n $obj->setCompteTiers(\"compteTiers\");\n $this->assertEquals(\"compteTiers\", $obj->getCompteTiers());\n }", "public function testSetAccesAutoriseBonsTravaux() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesAutoriseBonsTravaux(true);\n $this->assertEquals(true, $obj->getAccesAutoriseBonsTravaux());\n }", "public function set_etat(BOOL $_etat){\n $this->_etat = $_etat;\n\n return $this;\n }", "public function testSetPrixVente() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente());\n }", "public function testSetValideMob() {\n\n $obj = new PointBonTrav();\n\n $obj->setValideMob(true);\n $this->assertEquals(true, $obj->getValideMob());\n }", "public function testSetTelPortable1() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPortable1(\"telPortable1\");\n $this->assertEquals(\"telPortable1\", $obj->getTelPortable1());\n }", "public function setPriceNettoAttribute($value)\n\t{\n\t\t$this->attributes['price_netto'] = str_replace(',', '.', $value);\n\t}", "protected function setOfferNature ()\n {\n $this->offerNature = $this->offer->rate_nature->value;\n }", "function setTo($to_set){\n\t\t\t$this->to=$to_set;\n\t\t}", "public function testSetPourcentAct() {\n\n $obj = new Employes();\n\n $obj->setPourcentAct(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentAct());\n }", "public function testSetTelPerso() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPerso(\"telPerso\");\n $this->assertEquals(\"telPerso\", $obj->getTelPerso());\n }", "public function setTaxInfo(KCommandContext $context)\n\t{\n\t\t$vats = $context->data->federal_tax;\n \n\t\t$this->getItem()->setFederalTax( KConfig::unbox( $vats ) );\n\t}", "public function testSetEtblSiret() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblSiret(\"etblSiret\");\n $this->assertEquals(\"etblSiret\", $obj->getEtblSiret());\n }", "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 setNerve($value)\n {\n $this->nerve = $value;\n }", "public function setAttackSpeed()\n {\n $this->_role->attack_speed = 2.50;\n }", "protected function setTo() {}", "public function setTitolareClinica($titolare) {\r\n $this->_titolareClinica = $titolare;\r\n }", "public function setAttackSpeed()\n {\n $this->_role->attack_speed = 0.75;\n }", "public function testSetTelPortable2() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPortable2(\"telPortable2\");\n $this->assertEquals(\"telPortable2\", $obj->getTelPortable2());\n }", "protected function setFeatPost()\n {\n $this->feat_post = new Cltvo_Post( $this->feat_post );\n }", "public function reprova()\n {\n $this -> estadoAtual -> reprova($this);\n }", "public function cortesia()\n {\n $this->costo = 0;\n }", "public function testSetMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setMotifRupture(\"motifRupture\");\n $this->assertEquals(\"motifRupture\", $obj->getMotifRupture());\n }", "public function setPower()\n {\n $this->_role->power = 200;\n }", "public function testSetTelDirect() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelDirect(\"telDirect\");\n $this->assertEquals(\"telDirect\", $obj->getTelDirect());\n }", "function setTaxes($taxes)\n {\n $this->taxes = $taxes;\n }", "public function set()\n {\n // to reflect the current bar.\n\n // Why?\n\n // Otherwise the bar count gets repeated. And that people notice.\n\n $this->variables->setVariable(\"count\", $this->bar_count);\n $this->variables->setVariable(\"max_bar_count\", $this->max_bar_count);\n\n $this->variables->setVariable(\"refreshed_at\", $this->current_time);\n }", "public function setFree($free)\n {\n $this->_setFree = (integer)$free;\n }", "public function setEtabLieuTravail($etabLieuTravail) {\n $this->etabLieuTravail = $etabLieuTravail;\n return $this;\n }", "public function testSetCodeDepot() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeDepot(\"codeDepot\");\n $this->assertEquals(\"codeDepot\", $obj->getCodeDepot());\n }", "function setPartnerTarget($account)\n {\n $this->target=$account;\n }", "function setIntestat($intestat)\n {\n $this->intestat = $intestat;\n }", "public function testSetControleSaisieTp() {\n\n $obj = new Collaborateurs();\n\n $obj->setControleSaisieTp(\"controleSaisieTp\");\n $this->assertEquals(\"controleSaisieTp\", $obj->getControleSaisieTp());\n }", "public function testSetCumJourTrav() {\n\n $obj = new Employes();\n\n $obj->setCumJourTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getCumJourTrav());\n }", "public function testSetAccesAutorisePlanTache() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesAutorisePlanTache(true);\n $this->assertEquals(true, $obj->getAccesAutorisePlanTache());\n }", "function setNiveau($niveau) { $niveau = (int) $niveau;\r\n if ($niveau >= 1 && $niveau <= 100) {\r\n $this->_niveau = $niveau;\r\n }\r\n }", "public function setToCart()\n\t{\n\t\t$this->cart->set($this->request->getInteger('record'), $this->request->getInteger('amount', 1), [\n\t\t\t'priceNetto' => (float) $this->request->get('priceNetto', 0.0),\n\t\t\t'priceGross' => (float) $this->request->get('priceGross', 0.0),\n\t\t]);\n\t\t$this->saveCart();\n\t}", "public function testSetAnnulationPlanTache() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationPlanTache(true);\n $this->assertEquals(true, $obj->getAnnulationPlanTache());\n }", "public function setExperience($tableau)\n\t{\n\t}", "protected function setTaxCondition($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 92, 623, 'UTF-8');\n\t\t}\n\t}", "public function testSetEtblTel() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblTel(\"etblTel\");\n $this->assertEquals(\"etblTel\", $obj->getEtblTel());\n }", "public function setSchedule ()\n {\n $this->loadComponent('DateTime');\n $this->loadModel('ScheduleTime');\n $data = $this->Auth->user();\n $id_fortune = $data['id'];\n $days = $this->DateTime->allDayInWeek();\n $months = $this->DateTime->allDayInMonth();\n $times = $this->ScheduleTime->getListTime();\n if ($this->Check->isId($id_fortune)) {\n $this->set([\n 'times' => $times,\n 'days' => $months,\n 'id' => $id_fortune\n ]);\n } else{\n $this->Flash->error(__('Id not found'));\n }\n }", "function setPrice($price)\n {\n $this->price = $price;\n }", "public function testSetModifPlanTache() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifPlanTache(\"modifPlanTache\");\n $this->assertEquals(\"modifPlanTache\", $obj->getModifPlanTache());\n }", "public function setExpired()\n {\n $this->attributes['status'] = 'expired';\n self::save();\n }", "public function setExpired()\n {\n $this->attributes['status'] = 'expired';\n self::save();\n }", "public function setDueAtAttribute($param) {\n $this->attributes['due_at'] = $param ? (new Carbon($param)) : null;\n }", "public function set_telefone($telefone) : void\n {\n try {\n $this->obj_contato_anunciante->set_telefone(Validador::Contato_Anunciante()::validar_telefone($telefone));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['telefone'] = \"erro\";\n }\n }", "public function setTelefono($_telefono)\n {\n $this->telefono = $_telefono;\n }", "public function set_data($r){\n if($r->stn_number == ''){ $this->complete = false; }\n\n //setting trip_id\n $this->trip_id = $r->trip_id;\n //calculating total_freight\n $this->total_freight += ($r->product_quantity * $r->freight_unit);\n //calculating total_freight_for_company\n $this->total_freight_for_company += ($r->company_freight_unit * $r->product_quantity);\n //setting tip_unique_data (this class variables)\n $this->customerId = $r->customer_id;\n $this->customerName = $r->customerName;\n\n $this->contractorId = $r->contractor_id ;\n $this->contractorName = $r->contractorName ;\n\n $this->companyId = $r->company_id ;\n $this->companyName = $r->companyName ;\n\n $this->tanker_id = $r->tanker_id ;\n $this->tanker_number = $r->tanker_number ;\n\n $this->entry_date = $r->entryDate ;\n $this->filling_date = $r->filling_date ;\n $this->receiving_date = $r->receiving_date ;\n $this->decanding_date = $r->decanding_date ;\n $this->stn_receiving_date = $r->stn_receiving_date ;\n $this->email_date = $r->email_date ;\n $this->invoice_date = $r->invoice_date ;\n\n $this->contractor_commission = $r->contractor_commission ;\n $this->contractor_commission_2 = $r->contractor_commission_2 ;\n $this->company_commission_1 = $r->company_commission_1 ;\n $this->company_commission_2 = $r->company_commission_2 ;\n $this->company_commission_3 = $r->company_commission_3 ;\n $this->company_freight = ($r->company_commission_1 +$r->company_commission_2+ $r->company_commission_3);\n\n $this->customer_freight = 100 - $this->contractor_commission;\n\n $this->driver_id_1 = $r->driver_id_1 ;\n $this->driver_name_1 = $r->driver_2_name ;\n\n $this->driver_id_2 = $r->driver_id_2 ;\n $this->driver_name_2 = $r->driver_2_name ;\n\n $this->driver_id_3 = $r->driver_id_3 ;\n $this->driver_name_3 = $r->driver_3_name ;\n\n $this->invoice_number = $r->invoice_number;\n\n $this->paid_to_customer = ($r->paid_to_customer != '')?$r->paid_to_customer:0;\n $this->payment_to_customer_date = $r->payment_to_customer_date;\n }", "public function setTelefonoClinica($tel) {\r\n $this->_telefono = $tel;\r\n }", "public function setShippingPrice() {\n if ($this->price > 200) {\n $this->shippingPrice = 0;\n }\n }", "public function set_view_contato_anunciante(View_Contato_Anunciante $view_contato_anunciante) : void\r\n {\r\n self::$view_contato_anunciante = $view_contato_anunciante;\r\n }", "public function testSetDeptNaissance() {\n\n $obj = new Employes();\n\n $obj->setDeptNaissance(\"deptNaissance\");\n $this->assertEquals(\"deptNaissance\", $obj->getDeptNaissance());\n }", "public function show(accidentsTravail $accidentsTravail)\n {\n //\n }", "public function setDueDateAttribute($value)\n {\n $this->attributes['due_date'] = $value;\n }", "public function setIdLieuTravail($idLieuTravail) {\n $this->idLieuTravail = $idLieuTravail;\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 setTicketPrice($value) {\n return $this->set(self::TICKETPRICE, $value);\n }", "public function _set($number)\n {\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 testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }", "function setPrice($price, $taxPercentage = 25)\n {\n $this->taxPercentage = $taxPercentage;\n $this->taxA = $price / 100 * 100;\n $this->price = $price;\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.49143478", "0.4883538", "0.4853401", "0.4846744", "0.4829709", "0.4826257", "0.4795678", "0.47953498", "0.47908607", "0.47864488", "0.47839892", "0.47713336", "0.47687992", "0.47595614", "0.47591606", "0.47485262", "0.47474837", "0.47418573", "0.4739335", "0.47271037", "0.47127134", "0.47066903", "0.47028872", "0.4698464", "0.4695462", "0.4675672", "0.46660852", "0.4665918", "0.46624774", "0.4639051", "0.46351928", "0.46326405", "0.46290052", "0.46156713", "0.46137303", "0.4613527", "0.46117702", "0.45910597", "0.4583085", "0.45781338", "0.4576526", "0.4566719", "0.45625037", "0.4560491", "0.45596462", "0.455855", "0.4558284", "0.4551459", "0.45511448", "0.45419726", "0.45403293", "0.45369765", "0.45369765", "0.45368838", "0.45289755", "0.45270252", "0.45260847", "0.45245248", "0.45242736", "0.45231053", "0.4521321", "0.45194492", "0.45182464", "0.45156693", "0.4513767", "0.4513307", "0.45114556", "0.4510305", "0.45083007", "0.4507768" ]
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}", "public function edit(TempTier1Link $tempTier1Link)\n {\n //\n }", "public function setRef1($ref1) {\n $this->_ref1 = $ref1;\n }", "function &street1( )\n {\n return $this->Street1;\n }", "public function setAdresse($adresse)\n {\n $this->adresse = $adresse;\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 setAddress(string $address):void\n {\n $this->address = $address;\n }", "public function setEventAddress($value) \n {\n $this->_fields['EventAddress']['FieldValue'] = $value;\n return;\n }", "public function setAddress2($address2)\r\n {\r\n $this->_address2 = $address2;\r\n }", "public function getEtblAdresse3() {\n return $this->etblAdresse3;\n }", "public function getAddress1()\n {\n return parent::getValue('address1');\n }", "function setEntireAddress($address1, $address2, $city, $state, $zipCode)\n\t{\n\t\t$this->setAddress1($address1);\n\t\t$this->setAddress2($address2);\n\t\t$this->setCity($city);\n\t\t$this->setState($state);\n\t\t$this->setZipCode($zipCode);\n\t}", "protected function setAddress($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 80, 640, 'UTF-8');\n\t\t}\n\t}", "public function getAddress1()\n {\n return $this->address1;\n }", "public function getAddress1()\n {\n return $this->address1;\n }", "public function setAddress1(string $address_1 = null) : CNabuDataObject\n {\n $this->setValue('nb_icontact_prospect_address_1', $address_1);\n \n return $this;\n }", "public function getEmpAdresse1() {\n return $this->empAdresse1;\n }", "public function setAddress(?string $value): void {\n $this->getBackingStore()->set('address', $value);\n }", "public function setAddr($value)\n {\n return $this->set(self::_ADDR, $value);\n }", "public function setAddress($address) {\n\t\t$this->address = $address;\n\t}", "public function setAddress($address);", "public function setAddress($address);", "public function setAddress(Address $address);", "public function setNumero1($num1) {\n\t\t$this->numero1 = $num1;\n\t}", "function setAddressTypeAdmin( $value )\n {\n $this->AddressTypeAdmin = $value;\n }", "public function setAddr($var)\n {\n GPBUtil::checkString($var, False);\n $this->addr = $var;\n\n return $this;\n }", "public function testSetTel1() {\n\n $obj = new Employes();\n\n $obj->setTel1(\"tel1\");\n $this->assertEquals(\"tel1\", $obj->getTel1());\n }", "public function setStreetAddress($value) {\n\t\tself::$_streetAddress = $value;\n\t}", "function setAddressType( &$value )\n {\n if( is_numeric( $value ) )\n {\n $this->AddressTypeID = $value;\n }\n \n if( get_class( $value ) == \"ezaddresstype\" )\n {\n $this->AddressTypeID = $value->id();\n }\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 }", "public function getStreetAddress1()\n {\n return $this->street_address_1;\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 setImAddress($value)\n {\n $this->setProperty(\"ImAddress\", $value, true);\n }", "public function setCorrespondentAddress($value) {\n\t\tself::$_correspondentAddress = $value;\n\t}", "public function setAddress1($address1)\n {\n $this->address1 = $address1;\n\n return $this;\n }", "public function _setLotNo1($lotNo1) {\n\t\t$this->_lotNo1 = $lotNo1;\n\t}", "public function setAddress($address)\n {\n $this->address = $address;\n }", "public function set_list_address($add)\n\t{\n\t\t$this->list_address = $add;\n\t\treturn TRUE;\n\t}", "public function setAddress2($address2)\n {\n $this->address2 = $address2;\n }", "public function setAddress($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->address !== $v) {\n $this->address = $v;\n $this->modifiedColumns[] = EventPeer::ADDRESS;\n }\n\n\n return $this;\n }", "public function setLine1($line1)\n {\n $this->json()->line1 = $line1;\n }", "public function set_adresse($_adresse)\n {\n $this->_adresse = $_adresse;\n\n return $this;\n }", "public function setAddress($address)\n {\n $this->set('address', $address);\n }", "public function renderAddress()\n {\n echo $this->getAddressStringSingleLine();\n }", "public function setLine1(?string $line1): self\n {\n $this->initialized['line1'] = true;\n $this->line1 = $line1;\n\n return $this;\n }", "public function setAddress($value)\n {\n \t$this->address = $value;\n \treturn $this;\n }", "public function getOrganizationAddress1() :string {\n\t\treturn($this->organizationAddress1);\n\t}", "public function street1($street1) {\n $this->data['attachment']['payload']['address']['street_1'] = $street1;\n\n return $this;\n }", "public function setAddressFromEsd($addr, esdAddress $esdAddress) {\n for ($i = 0; isset($esdAddress->street[$i]) && $i < 3; $i++)\n if ($i == 0)\n $addr->address->street[$i] = $esdAddress->street[$i]; // fixme: multiple?\n else \n $addr->address->street[] = $esdAddress->street[$i];\n \n $addr->address->city = $esdAddress->city;\n $addr->address->state = $esdAddress->state;\n if ($esdAddress->country)\n $addr->address->country = $esdAddress->country;\n $addr->address->postcode = $esdAddress->zip;\n $addr->phone = $esdAddress->telephone;\n }", "function eZAddress( $id = \"\" )\n {\n if ( $id != \"\" )\n {\n $this->ID = $id;\n $this->get( $this->ID );\n }\n }", "public function setNumero1($numero1) {\n\t\t$this->numero1 = $numero1;\n\t}", "public function getAddress1()\n {\n return $this->getValue('nb_icontact_prospect_address_1');\n }", "public function setAddress($address) {\n\n $this->address = htmlspecialchars(strip_tags($address), ENT_QUOTES, 'utf-8');\n \n if (empty(trim($this->address))) {\n $this->valid = false;\n }\n\n }", "public function get_address_1( $context = 'view' ) {\n\t\treturn $this->get_prop( 'address_1', $context );\n\t}", "public function setFrom($address, $name = '', $auto = true)\n {\n }", "public function setLine1(?string $line1): self\n {\n $this->line1 = $line1;\n\n return $this;\n }", "public function testSetEtblTel() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblTel(\"etblTel\");\n $this->assertEquals(\"etblTel\", $obj->getEtblTel());\n }", "public static function addressExtendedAddress()\n {\n return new TextNode('address_extended_address');\n }", "public function set_telefone($telefone) : void\n {\n try {\n $this->obj_contato_anunciante->set_telefone(Validador::Contato_Anunciante()::validar_telefone($telefone));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['telefone'] = \"erro\";\n }\n }", "public function setAddress2($value)\n {\n parent::setValue('address2', $value);\n\n return $this;\n }", "public function setAddress(Ipagare_PagSeguroDireto_Domain_Address $address) {\n $this->address = $address;\n }", "public function __construct($addr) {\n $this->addr = $addr;\n }", "public function setKodeEselon1($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->kode_eselon1 !== $v) {\n $this->kode_eselon1 = $v;\n $this->modifiedColumns[] = BangunanPeer::KODE_ESELON1;\n }\n\n\n return $this;\n }", "public function setAddress1($value)\n {\n $this->setParameter('billingAddress1', $value);\n $this->setParameter('shippingAddress1', $value);\n\n return $this;\n }", "public function setAddress($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->address !== $v) {\n\t\t\t$this->address = $v;\n\t\t\t$this->modifiedColumns[] = UserPeer::ADDRESS;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setAutoResponderToAddressField($value) { $this->_autoResponderToAddressField = $value; }", "public function setReqAddress1($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->req_address1 !== $v) {\n\t\t\t$this->req_address1 = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::REQ_ADDRESS1;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setAddress($value)\n {\n return $this->set('Address', $value);\n }", "public function setAddress($value)\n {\n return $this->set('Address', $value);\n }" ]
[ "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.5250225", "0.52427506", "0.52249384", "0.52167416", "0.5213675", "0.5192762", "0.5189127", "0.51783335", "0.51783186", "0.5168523", "0.5156561", "0.5151137", "0.51276994", "0.51276994", "0.5125973", "0.5125901", "0.5122173", "0.50923514", "0.5064594", "0.5062587", "0.5062587", "0.5050434", "0.50320244", "0.5028963", "0.50114554", "0.5011041", "0.4995312", "0.49744898", "0.49739859", "0.4965478", "0.49645692", "0.49645692", "0.49631122", "0.4949387", "0.49330196", "0.492719", "0.49152434", "0.49034303", "0.48938903", "0.48926416", "0.48844546", "0.48812705", "0.48807698", "0.48648128", "0.48539376", "0.48479217", "0.48478803", "0.48473132", "0.48440534", "0.48417148", "0.48300332", "0.48038912", "0.48007354", "0.47953457", "0.47882807", "0.47809744", "0.4757861", "0.47536102", "0.47472066", "0.47460517", "0.4740787", "0.47057852", "0.4705139", "0.46998104", "0.46875915", "0.46702465", "0.4666394", "0.46628305", "0.46625793" ]
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 }", "public function getAddress2()\n {\n return $this->address2;\n }", "public function setAddress2($value)\n {\n $this->setParameter('billingAddress2', $value);\n $this->setParameter('shippingAddress2', $value);\n\n return $this;\n }", "public function setLlx($llx) {}", "public function get_address_2( $context = 'view' ) {\n\t\treturn $this->get_prop( 'address_2', $context );\n\t}", "public function setAddress($value)\n {\n $this->_address = $value;\n }", "public function setAddress1($address1)\r\n {\r\n $this->_address1 = $address1;\r\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 getEtblAdresse3() {\n return $this->etblAdresse3;\n }", "public function getEmpAdresse2() {\n return $this->empAdresse2;\n }", "public function setAddress($val)\n {\n $this->_propDict[\"address\"] = $val;\n return $this;\n }", "function setEntireAddress($address1, $address2, $city, $state, $zipCode)\n\t{\n\t\t$this->setAddress1($address1);\n\t\t$this->setAddress2($address2);\n\t\t$this->setCity($city);\n\t\t$this->setState($state);\n\t\t$this->setZipCode($zipCode);\n\t}", "public function setLine2($line2)\n {\n $this->json()->line2 = $line2;\n }", "public function getStreetAddress2()\n {\n return $this->street_address_2;\n }", "public function setShippingAddress2($value)\n {\n return $this->setParameter('shippingAddress2', $value);\n }", "public function setLocalAddress(string $address): void {}", "public function setLine2(?string $line2): self\n {\n $this->initialized['line2'] = true;\n $this->line2 = $line2;\n\n return $this;\n }", "public function setAdresse($adresse)\n {\n $this->adresse = $adresse;\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 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 setBilladdress2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->billaddress2 !== $v) {\n $this->billaddress2 = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_BILLADDRESS2] = true;\n }\n\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 }", "public function _setLotNo2($lotNo2) {\n\t\t$this->_lotNo2 = $lotNo2;\n\t}", "public function setLine2(?string $line2): self\n {\n $this->line2 = $line2;\n\n return $this;\n }", "public function setAddress(?string $value): void {\n $this->getBackingStore()->set('address', $value);\n }", "public function setReqAddress2($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->req_address2 !== $v) {\n\t\t\t$this->req_address2 = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::REQ_ADDRESS2;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function street2($street2) {\n $this->data['attachment']['payload']['address']['street_2'] = $street2;\n\n return $this;\n }", "public function setAddress1($address1)\n {\n $this->address1 = $address1;\n }", "public function getAddress2()\n {\n return $this->getValue('nb_icontact_prospect_address_2');\n }", "public function setAddress2(string $address_2 = null) : CNabuDataObject\n {\n $this->setValue('nb_icontact_prospect_address_2', $address_2);\n \n return $this;\n }", "public function setEditorial2($v)\n\t{\n\n\t\tif ($this->editorial2 !== $v || $v === false) {\n\t\t\t$this->editorial2 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL2;\n\t\t}\n\n\t}", "public function 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}", "public function setAddress($address);", "public function setAddress($address);", "public function setBillingAddress2($value)\n {\n return $this->setParameter('billingAddress2', $value);\n }", "public function setAddress(string $address):void\n {\n $this->address = $address;\n }", "function setAddressTypeAdmin( $value )\n {\n $this->AddressTypeAdmin = $value;\n }", "public static function addressExtendedAddress()\n {\n return new TextNode('address_extended_address');\n }", "public function setAddress2($address2)\n {\n $this->address2 = $address2;\n\n return $this;\n }", "public function setAddressFromEsd($addr, esdAddress $esdAddress) {\n for ($i = 0; isset($esdAddress->street[$i]) && $i < 3; $i++)\n if ($i == 0)\n $addr->address->street[$i] = $esdAddress->street[$i]; // fixme: multiple?\n else \n $addr->address->street[] = $esdAddress->street[$i];\n \n $addr->address->city = $esdAddress->city;\n $addr->address->state = $esdAddress->state;\n if ($esdAddress->country)\n $addr->address->country = $esdAddress->country;\n $addr->address->postcode = $esdAddress->zip;\n $addr->phone = $esdAddress->telephone;\n }", "function setFieldLinks2($fieldLinks2) {\n if ($fieldLinks2 !== ($oldFieldLinks2 = $this->fieldLinks2)) {\n if ($this->immutable) throw self::immutableException();\n if (is_array($fieldLinks2)) {\n if (!$fieldLinks2) throw new Ac_E_InvalidCall(\"\\$fieldLinks2 must not be empty\");\n $this->fieldLinksRev2 = array_flip($fieldLinks2);\n } elseif ($fieldLinks2 === false) {\n $this->fieldLinksRev2 = false;\n } else {\n throw Ac_E_InvalidCall::wrongType('fieldLinks2', $fieldLinks2, array('array', 'false'));\n }\n $this->destNNIdsRelation = false;\n $this->fieldLinks2 = $fieldLinks2;\n }\n }", "public function getAddress2()\n {\n return $this->getParameter('billingAddress2');\n }", "public function setEventAddress($value) \n {\n $this->_fields['EventAddress']['FieldValue'] = $value;\n return;\n }", "public function setAddress(Address $address);", "public function setTwoEnds()\n {\n $line = $this->getLine();\n $twoEnds[0] = $line[0][0];\n $twoEnds[1] = $line[count($line)-1][1];\n $this->twoEnds = $twoEnds;\n }", "public function getPayerAddressStreet2() {\n\t\treturn $this->_getField(self::$PAYER_ADDRESS_STREET_2);\n\t}", "public function setShipaddress2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->shipaddress2 !== $v) {\n $this->shipaddress2 = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_SHIPADDRESS2] = true;\n }\n\n return $this;\n }", "public function setAddr($value)\n {\n return $this->set(self::_ADDR, $value);\n }", "public function setAddress($address) {\n\t\t$this->address = $address;\n\t}", "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 setImAddress($value)\n {\n $this->setProperty(\"ImAddress\", $value, true);\n }", "function getFieldPortalAddressStreet($value1 = null, $value2 = null){\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_street');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_street');\n\t\t$tooltip = setToolTipNotification(\"street\");\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.(get_axl_req_fields('street') === 'street' ? '<span class=\"red\">*</span>' : '').$tooltip.\"</label><br><input type='text' name='streetNo' value='\".$value1.\"' id='streetNo' size='4' style='width:28%;'>\";\n\t\t\t$form_ret .= \"<input type='text' name='streetName' value='\".$value2.\"' id='streetName' size='12' class='srms-field \".(get_axl_req_fields('street') === 'street' ? 'input-text-required' : '').\"' style='width:70%;'></br>\";\n\t\t}\n\t\treturn $form_ret;\n\t}", "protected function setAddress($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 80, 640, 'UTF-8');\n\t\t}\n\t}", "public function getShippingAddress2()\n {\n return $this->getParameter('shippingAddress2');\n }", "public function set_adresse($_adresse)\n {\n $this->_adresse = $_adresse;\n\n return $this;\n }", "function setAddressType( &$value )\n {\n if( is_numeric( $value ) )\n {\n $this->AddressTypeID = $value;\n }\n \n if( get_class( $value ) == \"ezaddresstype\" )\n {\n $this->AddressTypeID = $value->id();\n }\n }", "public function setEmpAdresse1($empAdresse1) {\n $this->empAdresse1 = $empAdresse1;\n return $this;\n }", "public function setAddress($street1, $street2, $city, $state, $countrycode, $zip)\n {\n $this->street1 = rawurlencode($street1);\n $this->street2 = rawurlencode($street2);\n $this->city = rawurlencode($city);\n //Paypal wants iso state codes like CA or FL\n if($countrycode == \"US\" || $countrycode == \"CA\")\n {\n if(States::getStateByCode($state) == null)\n {\n //Check if it's a valid state name\n $stateInfo = States::getCodeByState($state);\n if($stateInfo != null)\n {\n $this->state = $stateInfo->stateCode;\n }\n else\n {\n $this->state = null;\n }\n }\n else\n {\n //Matched a valid state, we can use it\n $this->state = $state;\n }\n }\n $this->countrycode = strtoupper($countrycode);\n $this->zip = rawurlencode($zip);\n }", "public function setAddress($value)\n {\n \t$this->address = $value;\n \treturn $this;\n }", "public function setAddress($address)\n {\n $this->set('address', $address);\n }", "public function getShipaddress2()\n {\n return $this->shipaddress2;\n }", "public function getAddressLine2(): ?string;", "public function setAddress($address)\n {\n $this->address = $address;\n }", "public function setCorrespondentAddress($value) {\n\t\tself::$_correspondentAddress = $value;\n\t}", "public function setAddress1($value)\n {\n parent::setValue('address1', $value);\n\n return $this;\n }", "function &street1( )\n {\n return $this->Street1;\n }", "public function set_list_address($add)\n\t{\n\t\t$this->list_address = $add;\n\t\treturn TRUE;\n\t}", "public function setStreetAddress($value) {\n\t\tself::$_streetAddress = $value;\n\t}", "public function getBillingAddress2()\n {\n return $this->getParameter('billingAddress2');\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.5403925", "0.5400279", "0.53986686", "0.53542644", "0.53458726", "0.53323174", "0.5330274", "0.53297955", "0.53259194", "0.52868146", "0.52861935", "0.5282125", "0.5272236", "0.52539176", "0.5245193", "0.52369696", "0.5231384", "0.52162045", "0.52098715", "0.5189217", "0.51312524", "0.51059747", "0.50954455", "0.5082852", "0.5070479", "0.5069982", "0.5057886", "0.5050116", "0.5048533", "0.5005155", "0.49902388", "0.4984081", "0.4984081", "0.49652848", "0.4959272", "0.49441057", "0.49199128", "0.491321", "0.4907785", "0.48988903", "0.489667", "0.48940772", "0.4878091", "0.48705414", "0.48596898", "0.48570538", "0.48536733", "0.4852434", "0.4849392", "0.4849392", "0.4846927", "0.48440877", "0.48096693", "0.4800625", "0.47867334", "0.47683656", "0.47624737", "0.47465897", "0.47358468", "0.47202343", "0.471883", "0.47167954", "0.47125924", "0.471204", "0.47052172", "0.4704216", "0.4702193", "0.46995223", "0.46866208" ]
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}", "public function setAddress(string $address):void\n {\n $this->address = $address;\n }", "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 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 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}", "public function setAddress($address);", "public function setAddress($address);", "public function setAddress($address) {\n\t\t$this->address = $address;\n\t}", "public function testSetEtblTel() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblTel(\"etblTel\");\n $this->assertEquals(\"etblTel\", $obj->getEtblTel());\n }", "protected function set_url_this_edit($val){ $this->input ['edit_url'] = $val ; }", "public function setAddressFromEsd($addr, esdAddress $esdAddress) {\n for ($i = 0; isset($esdAddress->street[$i]) && $i < 3; $i++)\n if ($i == 0)\n $addr->address->street[$i] = $esdAddress->street[$i]; // fixme: multiple?\n else \n $addr->address->street[] = $esdAddress->street[$i];\n \n $addr->address->city = $esdAddress->city;\n $addr->address->state = $esdAddress->state;\n if ($esdAddress->country)\n $addr->address->country = $esdAddress->country;\n $addr->address->postcode = $esdAddress->zip;\n $addr->phone = $esdAddress->telephone;\n }", "public function useAdminLte3()\n {\n $this->presets = Presets::ADMIN_LTE_3;\n\n return $this;\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 setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "public function setAddress(Address $address);", "public function getAddressLine3(): ?string;", "private function setAttributeDataProvider(Template $block): void\n {\n $attributeData = Bootstrap::getObjectManager()->get(AddressAttributeData::class);\n $block->setAttributeData($attributeData);\n }", "function alterar($id_n3, $id_tema, $id_n2, $publicado, $n3_perfil, $ordem, $dbhw) {\n\tglobal $esquemaadmin;\n\t$dataCol = array(\n\t\t\t\"publicado\" => $publicado,\n\t\t\t\"id_tema\" => $id_tema,\n\t\t\t\"ordem\" => $ordem,\n\t\t\t\"n3_perfil\" => $n3_perfil\n\t);\n\t$resultado = i3GeoAdminUpdate($dbhw,\"i3geoadmin_n3\",$dataCol,\"WHERE id_n3 = $id_n3\");\n\tif ($resultado === false) {\n\t\treturn false;\n\t}\n\treturn $id_n3;\n}", "protected function setAddress($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 80, 640, 'UTF-8');\n\t\t}\n\t}", "public function __construct($addr) {\n $this->addr = $addr;\n }", "public function setAddress($address)\n {\n $this->address = $address;\n }", "public function setAddress1($address1)\r\n {\r\n $this->_address1 = $address1;\r\n }", "function setAddressTypeAdmin( $value )\n {\n $this->AddressTypeAdmin = $value;\n }", "public function setAddress($address)\n {\n $this->set('address', $address);\n }", "public function _setExpDate3($expDate3) {\n\t\t$this->_expDate3 = $expDate3;\n\t}", "public function setAddress(?string $value): void {\n $this->getBackingStore()->set('address', $value);\n }", "public function testSetGrilleAnc3() {\n\n $obj = new Employes();\n\n $obj->setGrilleAnc3(\"grilleAnc3\");\n $this->assertEquals(\"grilleAnc3\", $obj->getGrilleAnc3());\n }", "public function setAddr($var)\n {\n GPBUtil::checkString($var, False);\n $this->addr = $var;\n\n return $this;\n }", "public function setAddress2($address2)\r\n {\r\n $this->_address2 = $address2;\r\n }", "public function setEmail3($value)\n {\n return $this->set('Email3', $value);\n }", "public function setTelefone3($telefone3)\n {\n $this->telefone3 = $telefone3;\n\n return $this;\n }", "public function setDataArray($vals) {\n\t\tif (!is_array($vals) || sizeof($vals) != 1)\n\t\t\tthrow new exception(\"Illegal array set into data_address\");\n\t\t$as=explode('|',$vals[0]);\n\t\t$this->country=$as[0];\n\t\tif ($this->country == 'USA') {\n\t\t\tif (sizeof($as) != 6)\n\t\t\t\tthrow new exception(\"badly formatted us address: {$vals[0]}\");\n\t\t\tlist($this->country,$this->line1,$this->line2,$this->city,$this->state,$this->zip)=$as;\t\n\t\t} else {\n\t\t\tthrow new exception('international addresses not implemented yet');\n\t\t}\t\n\t}", "function setAddressType( &$value )\n {\n if( is_numeric( $value ) )\n {\n $this->AddressTypeID = $value;\n }\n \n if( get_class( $value ) == \"ezaddresstype\" )\n {\n $this->AddressTypeID = $value->id();\n }\n }", "public function setEventAddress($value) \n {\n $this->_fields['EventAddress']['FieldValue'] = $value;\n return;\n }", "public function setUseForLocalAddresses($val)\n {\n $this->_propDict[\"useForLocalAddresses\"] = $val;\n return $this;\n }", "public function setAddress($address) {\n\n $this->address = htmlspecialchars(strip_tags($address), ENT_QUOTES, 'utf-8');\n \n if (empty(trim($this->address))) {\n $this->valid = false;\n }\n\n }", "public function setImAddress($value)\n {\n $this->setProperty(\"ImAddress\", $value, true);\n }", "public function setUseIPAddress($use_ipaddr) \n \t{\n \t\t$this->use_ipaddr = $use_ipaddr;\n \t}", "protected function setUrl() {\r\n\t\t$this->url = htmlspecialchars(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'), ENT_QUOTES);\r\n\t}", "public function setAddr($value)\n {\n return $this->set(self::_ADDR, $value);\n }", "public function setStreetAddress($value) {\n\t\tself::$_streetAddress = $value;\n\t}", "protected function set_url_this_view($val){ $this->input ['table_url'] = $val ; }", "public function testSetTaux3() {\n\n $obj = new Employes();\n\n $obj->setTaux3(10.092018);\n $this->assertEquals(10.092018, $obj->getTaux3());\n }", "function setEntireAddress($address1, $address2, $city, $state, $zipCode)\n\t{\n\t\t$this->setAddress1($address1);\n\t\t$this->setAddress2($address2);\n\t\t$this->setCity($city);\n\t\t$this->setState($state);\n\t\t$this->setZipCode($zipCode);\n\t}", "public function setAddress($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->address !== $v) {\n $this->address = $v;\n $this->modifiedColumns[] = EventPeer::ADDRESS;\n }\n\n\n return $this;\n }", "public static function addressExtendedAddress()\n {\n return new TextNode('address_extended_address');\n }", "public function testSetAdresseEmploye() {\n\n $obj = new AttestationCacm();\n\n $obj->setAdresseEmploye(\"adresseEmploye\");\n $this->assertEquals(\"adresseEmploye\", $obj->getAdresseEmploye());\n }", "public function setAdresse($adresse)\n {\n $this->adresse = $adresse;\n }", "public function setEtblMail($etblMail) {\n $this->etblMail = $etblMail;\n return $this;\n }", "public function set_list_address($add)\n\t{\n\t\t$this->list_address = $add;\n\t\treturn TRUE;\n\t}", "public function renderAddress()\n {\n echo $this->getAddressStringSingleLine();\n }", "public function setMainAddress($data){\n\t\tglobal $dbh;\n\t\t$fields = array(\n\t\t\t\"nombre\",\n\t\t\t\"receptorNombre\",\n\t\t\t\"receptorApellido\",\n\t\t\t\"nombreEmpresa\",\n\t\t\t\"facturacion\",\n\t\t\t\"principal\",\n\t\t\t\"idCliente\",\n\t\t\t\"direccion\",\n\t\t\t\"fono\",\n\t\t\t\"cel\",\n\t\t\t\"idZona\",\n\t\t\t\"id\"\n\t\t);\n\t\t$query = \"UPDATE direccion SET nombre=?,receptorNombre=?,receptorApellido=?,nombreEmpresa=?,facturacion=?,principal=?,idCliente=?,direccion=?,fono=?,cel=?,idZona=? WHERE id=?;\";\n\t\t$update = array();\n\t\t$old = $this->getMainAddress();\n\t\tif( $data!=null && is_array($data) ){\n\t\t\tforeach( $fields as $field ){\n\t\t\t\t$update[$field] = null;\n\t\t\t\tif( isset($data[$field]) && !empty($data[$field]) ){\n\t\t\t\t\t$update[$field] = $data[$field];\n\t\t\t\t} else {\n\t\t\t\t\t$update[$field] = $old[$field];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$res = $dbh->query($query,$update);\n\t\t\treturn $res;\n\t\t}\n\t\treturn false;\n\t}", "public function setEtblCommune($etblCommune) {\n $this->etblCommune = $etblCommune;\n return $this;\n }", "public function setCorrespondentAddress($value) {\n\t\tself::$_correspondentAddress = $value;\n\t}", "public function setAddress($value)\n {\n \t$this->address = $value;\n \treturn $this;\n }", "public function setAddress(Ipagare_PagSeguroDireto_Domain_Address $address) {\n $this->address = $address;\n }", "public function setAddress($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->address !== $v) {\n\t\t\t$this->address = $v;\n\t\t\t$this->modifiedColumns[] = UserPeer::ADDRESS;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setEtblCodePostal($etblCodePostal) {\n $this->etblCodePostal = $etblCodePostal;\n return $this;\n }", "public function getBilladdress3()\n {\n return $this->billaddress3;\n }", "public function setAddress1($address1)\n {\n $this->address1 = $address1;\n }", "public function withLineAddress($type, $line1, $line2, $line3, $city, $region, $postalCode, $country)\n {\n $li = $this->getMostRecentLineIndex();\n $this->_model['lines'][$li]['addresses'][$type] = [\n 'line1' => $line1,\n 'line2' => $line2,\n 'line3' => $line3,\n 'city' => $city,\n 'region' => $region,\n 'postalCode' => $postalCode,\n 'country' => $country\n ];\n return $this;\n }", "public static function setHost($val) \n { \n emailSettings::$host = $val; \n }", "public function setData( $data ) {\n\t\t$this->data = $data;\n\t\t$this->addField( new ACHRecordField([4,83], $data) );\n\t}", "public function setUdl($udl)\n\t{\n\t\t$this->_udl = $udl;\n\t}", "public function setEtabLieuTravail($etabLieuTravail) {\n $this->etabLieuTravail = $etabLieuTravail;\n return $this;\n }", "public function setAddressSrc( /*string*/$Email )// : void\n\t{\n\t\t$this -> addressSrc = $Email;\n\t}", "public function testSetPrixVente3() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente3());\n }", "public function setAddress($type, $street, $number, $district, $city, $state, $zip, $complement = null, $country = self::ADDRESS_COUNTRY)\n\t{\n\t\t$address = new stdClass();\n\t\t$address->street = $street;\n\t\t$address->streetNumber = $number;\n\t\t$address->complement = $complement;\n\t\t$address->district = $district;\n\t\t$address->city = $city;\n\t\t$address->state = $state;\n\t\t$address->country = $country;\n\t\t$address->zipCode = $zip;\n\n\t\t$this->data->billingAddress = $address;\n\n\t\treturn $this;\n\t}", "public function setIpReferenceData(?array $value): void {\n $this->getBackingStore()->set('ipReferenceData', $value);\n }", "public function edit(Address $address)\n\t{\n\t\t//\n\t}", "public function set($param, $id)\n {\n $sentence = new SentenceUtil();\n $sentence->addCommand(\"/ip/address/set\");\n foreach ($param as $name => $value) {\n $sentence->setAttribute($name, $value);\n }\n $sentence->where(\".id\", \"=\", $id);\n $this->talker->send($sentence);\n return \"Sucsess\";\n }" ]
[ "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.48095414", "0.4791483", "0.47905406", "0.4765051", "0.47381827", "0.47381827", "0.4725015", "0.4717989", "0.4634442", "0.46270403", "0.4617335", "0.46037695", "0.46031165", "0.45983714", "0.45978907", "0.4595314", "0.45859635", "0.45858932", "0.4567779", "0.4566708", "0.4560035", "0.45179772", "0.45174116", "0.4516203", "0.45153928", "0.45138896", "0.4510777", "0.4510183", "0.4506806", "0.44902048", "0.44854027", "0.44833055", "0.44830433", "0.44798097", "0.44716954", "0.44714534", "0.4466611", "0.44556358", "0.4446688", "0.44454443", "0.4439411", "0.44318324", "0.44089755", "0.4401884", "0.43956903", "0.4392686", "0.43885607", "0.4365142", "0.43493757", "0.43475637", "0.43448305", "0.43243563", "0.43234715", "0.43190208", "0.43165103", "0.43150324", "0.43142182", "0.43017408", "0.4297798", "0.42873946", "0.42778856", "0.42751414", "0.4273445", "0.4272152", "0.4269753", "0.4257834", "0.42556944", "0.42460215", "0.4237533", "0.42338845" ]
0.7314218
0
Set the etbl raison sociale.
public function setEtblRaisonSociale($etblRaisonSociale) { $this->etblRaisonSociale = $etblRaisonSociale; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setUry($ury) {}", "public function setR($r) {}", "public function getEtblRaisonSociale() {\n return $this->etblRaisonSociale;\n }", "public function getEtblRaisonSociale() {\n return $this->etblRaisonSociale;\n }", "public function setRdate($rdate) {\n $this->rdate = $rdate;\n }", "public function setPR($r) {}", "public function testSetSignRaisonSociale() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignRaisonSociale(\"signRaisonSociale\");\n $this->assertEquals(\"signRaisonSociale\", $obj->getSignRaisonSociale());\n }", "public function testSetRib() {\n\n $obj = new Collaborateurs();\n\n $obj->setRib(\"rib\");\n $this->assertEquals(\"rib\", $obj->getRib());\n }", "public function setResaca($resaca){\n $this->resaca=$resaca;\n }", "public function testSetRib() {\n\n $obj = new Employes();\n\n $obj->setRib(\"rib\");\n $this->assertEquals(\"rib\", $obj->getRib());\n }", "public function setRB($rb)\n {\n $this->rb = $rb;\n\n return $this;\n }", "public function setLr($a, $b = null) {}", "public function setIdarl($idarl){\n $this->idarl = $idarl;\n }", "public function setSRAttributes($manID = 0, $tmID = 0, $evntID = 0, $sex ='', $exp = 0, $reg = 0)\n {\n $this->id_user = $manID;\n $this->id_team = $tmID;\n $this->id_event = $evntID; \n $this->sex_needed = $sex;\n $this->experience_needed = $exp;\n $this->id_region = $reg;\n }", "public function setRealations(){\n\n }", "public function SetRI(SetRI $parameters)\n {\n return $this->__soapCall('SetRI', array($parameters));\n }", "private function _setIrt($irt)\n {\n $this->_irt = $irt;\n\n return $this;\n }", "public function setUrx($urx) {}", "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}", "function setTrattativaRiservata(){\n\t\n\tglobal $wpdb;\n\t\n\t$t = 0;\n\t\n\t// nome tabella post meta\n\t$tbl = $wpdb->prefix.'postmeta';\n\t\n\t// IMPORTA XML\n\t$path = ABSPATH . \"import/\";\t\n\t$file = FILE_XML_IMMOBILI;\n\t$xml = @simplexml_load_file($path.$file);\n\t\n\t$dbg2 = array();\n\n\tif($xml){\t\t\n\n\t\t$offerte = $xml->Offerte;\n\n\t\tif($offerte){\n\n\t\t\tforeach($offerte as $offerta){\n\t\t\t\t\n\t\t\t\t$trattativa = (string) $offerta->TrattativaRiservata;\n\t\t\t\t\n\t\t\t\tif($trattativa == '1'){\n\t\t\t\t\t\n\t\t\t\t\t$prezzo = (string) $offerta->Prezzo;\n\t\t\t\t\t$fave_private_note = \"Prezzo richiesto €\".$prezzo;\t\n\t\t\t\t\t$rif = (string) $offerta->Riferimento;\n\t\t\t\t\t\n\t\t\t\t\t$prepare_qry = $wpdb->prepare( \"SELECT post_id FROM \".$tbl.\" WHERE meta_key = 'fave_property_id' AND meta_value = '%s'\", $rif );\n\t\t\t\t\t$post_id = $wpdb->get_col( $prepare_qry, 0 );\n\n\t\t\t\t\tif(!empty($post_id)){\n\t\t\t\t\t\t$dbg2[] = $rid.\" (\".$post_id.\")\";\n\t\t\t\t\t\tupdate_post_meta( $post_id[0], \"fave_property_price\", \"Trattativa Riservata\" );\t\t\t\t\n\t\t\t\t\t\tupdate_post_meta( $post_id[0], \"fave_private_note\", $fave_private_note );\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} // end foreach\n\t\t\t$dbgtratt = implode(\", \", $dbg2);\n\t\t\tcc_import_immobili_error_log(\"DBG-TRATT: \".$dbgtratt);\n\t\t\t\n\t\t} // end if offerte\n\t\t\n\t} // end if xml\n\n\t\n\t\n}", "public function setUr($a, $b = null) {}", "public function setTrasient($attribute){\n\t\tEntityManager::addTrasientAttribute(get_class($this), $attribute);\n\t}", "public function setLibelleEcr($libelleEcr) {\n $this->libelleEcr = $libelleEcr;\n return $this;\n }", "public function setId_recette($id_recette)\n {\n $id_recette = (int) $id_recette;\n $this->_id_recette = $id_recette;\n }", "public function setToDefault() {\n $this->addType(ResidentType::all);\n }", "function LoadRowValues(&$rs) {\n\t\tglobal $responsable;\n\t\t$responsable->idResponsable->setDbValue($rs->fields('idResponsable'));\n\t\t$responsable->idGerente->setDbValue($rs->fields('idGerente'));\n\t\t$responsable->idMer->setDbValue($rs->fields('idMer'));\n\t\t$responsable->fecha->setDbValue($rs->fields('fecha'));\n\t\t$responsable->habilitado->setDbValue($rs->fields('habilitado'));\n\t}", "function setDateForRapport($idsRoy){\n \t\t\n //récupère les royalty pour les livres sélectionnés\n $sql = \"SELECT \n COUNT(DISTINCT r.id_royalty) nbRoy\n ,SUM(v.montant_livre) rMtVente, SUM(v.nombre) unit, v.type typeVente\n ,SUM(r.montant_livre) rMtRoy\n ,MIN(r.taxe_taux) taux, MIN(r.taxe_deduction) deduction, MIN(r.pourcentage) pc\n ,l.id_livre, l.titre_en, l.titre_fr, l.titre_es\n ,c.type typeContrat\n ,com.id_comite, com.titre_fr, com.titre_en, com.titre_es\n FROM iste_royalty r \n INNER JOIN iste_vente v ON v.id_vente = r.id_vente\n INNER JOIN iste_isbn i ON i.id_isbn = v.id_isbn\n INNER JOIN iste_livre l ON l.id_livre = i.id_livre\n INNER JOIN iste_comitexlivre cl ON cl.id_livre = l.id_livre\n INNER JOIN iste_auteurxcontrat ac ON ac.id_auteurxcontrat = r.id_auteurxcontrat AND ac.id_comite = cl.id_comite\n INNER JOIN iste_comite com ON c.id_comite = ac.id_comite\n INNER JOIN iste_contrat c ON c.id_contrat = ac.id_contrat\n WHERE r.id_royalty IN (\".$idsRoy.\")\n GROUP BY com.id_comite\";\n //echo $sql;\n $stmt = $this->_db->query($sql);\n \n return $stmt->fetchAll(); \n \n }", "protected function setOrganization() {}", "public function setForAuteur()\n {\n //met à jour les proposition qui n'ont pas de base contrat et qui ne sont pas null\n /*PLUS BESOIN DE BASE CONTRAT\n \t\t$dbP = new Model_DbTable_Iste_proposition();\n \t\t$dbP->update(array(\"base_contrat\"=>null), \"base_contrat=''\");\n */\n\t \t//récupère les vente qui n'ont pas de royalty\n\t \t$sql = \"SELECT \n ac.id_auteurxcontrat, ac.id_livre\n , ac.id_isbn, ac.pc_papier, ac.pc_ebook\n , a.prenom, a.nom, c.type, IFNULL(a.taxe_uk,'oui') taxe_uk\n ,i.num\n , v.id_vente, v.date_vente, v.montant_livre, v.id_boutique, v.type typeVente\n , i.id_editeur, i.type typeISBN\n , impF.conversion_livre_euro\n FROM iste_vente v\n INNER JOIN iste_isbn i ON v.id_isbn = i.id_isbn \n INNER JOIN iste_importdata impD ON impD.id_importdata = v.id_importdata\n INNER JOIN iste_importfic impF ON impF.id_importfic = impD.id_importfic\n INNER JOIN iste_auteurxcontrat ac ON ac.id_isbn = v.id_isbn\n INNER JOIN iste_contrat c ON c.id_contrat = ac.id_contrat\n INNER JOIN iste_auteur a ON a.id_auteur = ac.id_auteur\n INNER JOIN iste_livre l ON l.id_livre = i.id_livre \n LEFT JOIN iste_royalty r ON r.id_vente = v.id_vente AND r.id_auteurxcontrat = ac.id_auteurxcontrat\n WHERE pc_papier is not null AND pc_ebook is not null AND pc_papier != 0 AND pc_ebook != 0\n AND r.id_royalty is null \";\n\n $stmt = $this->_db->query($sql);\n \n \t\t$rs = $stmt->fetchAll(); \n \t\t$arrResult = array();\n \t\tforeach ($rs as $r) {\n\t\t\t//calcule les royalties\n \t\t\t//$mtE = floatval($r[\"montant_euro\"]) / intval($r[\"nbA\"]);\n \t\t\t//$mtE *= floatval($r[\"pc_papier\"])/100;\n \t\t\tif($r[\"typeVente\"]==\"ebook\")$pc = $r[\"pc_ebook\"];\n \t\t\telse $pc = $r[\"pc_papier\"];\n $mtL = floatval($r[\"montant_livre\"])*floatval($pc)/100;\n //ATTENTION le taux de conversion est passé en paramètre à l'import et le montant des ventes est calculé à ce moment\n \t\t\t//$mtD = $mtL*floatval($r[\"taux_livre_dollar\"]);\n \t\t\t$mtE = $mtL*floatval($r['conversion_livre_euro']);\n //ajoute les royalties pour l'auteur et la vente\n //ATTENTION les taxes de déduction sont calculer lors de l'édition avec le taux de l'année en cours\n $dt = array(\"pourcentage\"=>$pc,\"id_vente\"=>$r[\"id_vente\"]\n ,\"id_auteurxcontrat\"=>$r[\"id_auteurxcontrat\"],\"montant_euro\"=>$mtE,\"montant_livre\"=>$mtL\n ,\"conversion_livre_euro\"=>$r['conversion_livre_euro']);\n\t \t\t$arrResult[]= $this->ajouter($dt\n ,true,true);\n //print_r($dt);\n \t\t}\n \t\t\n \t\treturn $arrResult;\n }", "private function _loadFromRS($r)\n {\n $pk = self::PK;\n $this->_id = (int)$r->$pk;\n $this->_date = $r->date_enreg;\n $this->_amount = $r->montant_cotis;\n //save original amount, we need it for transactions parts calulations\n $this->_orig_amount = $r->montant_cotis;\n $this->_payment_type = $r->type_paiement_cotis;\n $this->_info = $r->info_cotis;\n $this->_begin_date = $r->date_debut_cotis;\n $enddate = $r->date_fin_cotis;\n //do not work with knows bad dates...\n //the one with BC comes from 0.63/pgsl demo... Why the hell a so\n //strange date? dont know :(\n if ( $enddate !== '0000-00-00'\n && $enddate !== '1901-01-01'\n && $enddate !== '0001-01-01 BC'\n ) {\n $this->_end_date = $r->date_fin_cotis;\n }\n $adhpk = Adherent::PK;\n $this->_member = (int)$r->$adhpk;\n\n $transpk = Transaction::PK;\n if ( $r->$transpk != '' ) {\n $this->_transaction = new Transaction((int)$r->$transpk);\n }\n\n $this->_type = new ContributionsTypes((int)$r->id_type_cotis);\n if ( $this->_type->extension == 1 ) {\n $this->_is_cotis = true;\n } else {\n $this->_is_cotis = false;\n }\n }", "Public function set_requete($requete = null){\n\n\n\n\n }", "public function set_Race($race){\n\n\t\t$this->race=$race;\n\n\t\tif($race==\"Ork\"){\n\t\t\t$this->life_p -= 10;\n\t\t\t$this->attack_p += 2;\n\t\t\t$this->defend_p += 2;\n\t\t\techo \"Ork power\";\n\t\t}\n\t\telseif($race==\"Human\"){\n\t\t\techo \"Human Armory\";\n\t\t}\n\t\telseif($race==\"Elf\"){\n\t\t\t$this->defend_p -= 2;\n\t\t\techo 'Elf Vivacity';\n\t\t}\n\n\t}", "public function setEdad($valor){\n\t\t\t$this->edad = $valor;\n\t\t}", "public function setRise($rise) {}", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function testSetEtblSiret() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblSiret(\"etblSiret\");\n $this->assertEquals(\"etblSiret\", $obj->getEtblSiret());\n }", "public function setRoe($roe)\n {\n $this->roe = $roe;\n\n return $this;\n }", "public function testSetDernLieuTravail() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernLieuTravail(\"dernLieuTravail\");\n $this->assertEquals(\"dernLieuTravail\", $obj->getDernLieuTravail());\n }", "public function setRisk($newRisk) {\r\n\t\t$this->ldlRisk = $newRisk;\r\n\t\t$this->cholRisk = $newRisk;\r\n\t}", "protected function setVida() {\n $this->vida = 200;\n }", "public function setRdn(array $rdn)\n {\n $this->rdn = $rdn;\n\n return $this;\n }", "public function edit(Corral $corral)\n {\n //\n }", "public function set_nomR($_nomR)\n {\n $this->_nomR = $_nomR;\n\n return $this;\n }", "function assign_rs()\n {\n $this->assign('student', $this->rs);\n }", "public function set_instR($_instR)\n {\n $this->_instR = $_instR;\n\n return $this;\n }", "public function edit(retiro $retiro)\n {\n //\n }", "public function set_persR($_persR)\n {\n $this->_persR = $_persR;\n\n return $this;\n }", "public function setRevision($rid) ;", "public function SetRIByID(SetRIByID $parameters)\n {\n return $this->__soapCall('SetRIByID', array($parameters));\n }", "public function setSlr($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->slr !== $v) {\n $this->slr = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_SLR] = true;\n }\n\n return $this;\n }", "public function actualizaEstado(){\n $this->estado = 'Completo';\n // $this->cotiza = $this->generarCustomID();\n $this->save();\n }", "public function testSetOrphelin() {\n\n $obj = new Employes();\n\n $obj->setOrphelin(true);\n $this->assertEquals(true, $obj->getOrphelin());\n }", "public function setRubrique(?string $rubrique): self\n {\n $this->rubrique = $rubrique;\n\n return $this;\n }", "public function setRound( $rx )\n {\n $this->addAttribute('rx', $rx );\n }", "protected function set_iri($iri)\n {\n }", "protected function _setRay()\n {\n $this->_rayId = md5(uniqid(__FILE__, true));\n }", "function set($ARBITRO_data=array()) {\n\t\tif(array_key_exists('identificacion', $ARBITRO_data)) {\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t$this->get($ARBITRO_data);\n\t\t\t\tif($ARBITRO_data['identificacion'] != $this->getIdentificacion()) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setIdentificacion($ARBITRO_data['identificacion']);\n\t\t\t\t\t\t\t$id = $this->getIdentificacion();\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setNombre($ARBITRO_data['nombre']);\n\t\t\t\t\t\t\t$nombre =$this->getNombre();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setApellido($ARBITRO_data['apellido']);\n\t\t\t\t\t\t\t$apellido =$this->getApellido();\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setEmail($ARBITRO_data['email']);\t\t\n\t\t\t\t\t\t\t$email =$this->getEmail();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setTelefono($ARBITRO_data['telefono']);\t\t\n\t\t\t\t\t\t\t$telefono =$this->getTelefono();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setDireccion($ARBITRO_data['direccion']);\t\t\n\t\t\t\t\t\t\t$direccion =$this->getDireccion();\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setTipoArbitro($ARBITRO_data['tipo']);\t\t\n\t\t\t\t\t\t\t$tipo =$this->getTipoArbitro();\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$Disponibilidad = 'Si';\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t$this->query = \"\n\t\t\t\t\t\t\t\t\t\tINSERT INTO arbitros\n\t\t\t\t\t\t\t\t\t\t(Identificacion, Nombre, Apellido, Email,TipoArbitro,Direccion,Telefono,Disponible)\n\t\t\t\t\t\t\t\t\t\tVALUES\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t('$id','$nombre', '$apellido', '$email','$tipo','$direccion','$telefono','$Disponibilidad')\n\t\t\t\t\t\t\t\t\t\t\";\t\t\t\t\t\t\n\t\t\t\t\t\t$this->execute_single_query();\t\t\t\t\t\t\n\t\t\t\t\t\t$this->mensaje = 'arbitro agregado exitosamente';\n\t\t\t\t\t\t\n\t\t\t } else \n\t\t\t\t\t\t$this->mensaje = 'El arbitro ya existe';\n\t\t\t\t\t \n\t\t} else \n\t\t\t\t$this->mensaje = 'Error al Agregar arbitro';\t\t\t\t\n\t}", "public function setEncendidoPizarra( $encendido ) {\n $this->pizarra_on=$encendido;\n $this->enviarComandoEstado();\n //$this->activarPantalla();\n }", "public function setLlx($llx) {}", "function UpdateBaseValuesFromRA( $p_ra ) { $this->prot_getBaseValuesFromRA( $p_ra, false, KFRECORD_DATASOURCE_RA_NONGPC ); }", "public function setIdRedesSociales($idRedesSociales){\n $this->idRedesSociales = $idRedesSociales;\n }", "public function set($rowData)\n {\n $this->rawRowData = $rowData;\n }", "public function testSetEmailRedirAuto() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailRedirAuto(true);\n $this->assertEquals(true, $obj->getEmailRedirAuto());\n }", "public function setRTS($rts){\n \treturn ser_setRTS($rts);\n }", "public function setRang($rang)\n\t{\n\t\t// Si c'en était déjà un, rien ne changera.\n\t\t// Sinon, la conversion donnera le nombre 0 (à quelques exceptions près, mais rien d'important ici).\n\t\t$rang = (int) $rang;\n \n\t\t// On vérifie ensuite si ce nombre est bien strictement positif.\n\t\tif ($rang > 0)\n\t\t{\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->rang = $rang;\n\t\t}\n\t}", "public function setDataRescisao($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_rescisao !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_rescisao !== null && $tmpDt = new DateTime($this->data_rescisao)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_rescisao = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_RESCISAO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function setConexaoOrigem($rsConexaoOrigem) {\n $this->rsConexaoOrigem = $rsConexaoOrigem;\n }", "public function setOrden($orden) {\n $ord = ($orden != 0 && $orden != 1 && $orden != 2) ? 0 : $orden;\n if ($ord != $this->orden) {\n // Si cambia el orden, recarga los datos.\n $fecha = $this->fecha;\n $this->cargarAsistentes($fecha, $ord);\n }\n }", "public function istorijaRezultata() {\n $rModel = new RezultatModel();\n $igrac = $this->session->get('igrac');\n $rezultati = $rModel->nadji_rezultateigraca($igrac['idKI']);\n $this->prikaz(\"mod_istorijarezultata\", ['rezultati' => $rezultati]);\n }", "public function setNestedSetRightKey($nsrk)\n {\n $this->isNestedSetRightKey = (boolean) $nsrk;\n }", "public function _setEntregable($data)\n {\n try {\n $id = (int)$data['entregableid'];\n if ($id == 0) {\n $sql = $this->_db->query(\"select codigo_prop_proy from proyecto where\n proyectoid = '\".$data['proyectoid'].\"'\");\n $codigo = $sql->fetch();\n $ent = $this->createRow();\n $ent->codigo_prop_proy = $codigo['codigo_prop_proy'];\n $ent->proyectoid = $data['proyectoid'];\n $ent->revision_entregable = 'A';\n $ent->edt = '000';\n $ent->tipo_documento = $data['tipo_documento'];\n $ent->disciplina = $data['disciplina'];\n $ent->codigo_anddes = $data['codigo_anddes'];\n $ent->codigo_cliente = $data['codigo_cliente'];\n $ent->descripcion_entregable = $data['descripcion'];\n $ent->estado = 'Ultimo';\n $ent->clase = $data['clase'];\n $ent->revision_documento = $data['revision'];\n $ent->estado_entregable = 9;\n $ent->save();\n $resp['resultado'] = 'guardado';\n return $resp;\n } else {\n $ent = $this->fetchRow('cod_le = '.$id);\n $ent->tipo_documento = $data['tipo_documento'];\n $ent->disciplina = $data['disciplina'];\n $ent->codigo_anddes = $data['codigo_anddes'];\n $ent->codigo_cliente = $data['codigo_cliente'];\n $ent->descripcion_entregable = $data['descripcion'];\n $ent->save();\n $resp['resultado'] = 'guardado';\n return $resp;\n }\n return $id;\n } catch (Exception $e) {\n print $e->getMessage();\n }\n }", "function setParam()\n {\n $this->rFromDate = '0000-00-00';\n $this->rToDate = date('Y-m-d');\n $this->rAllDate = false;\n $this->rColumns = array();\n }", "public function setRState($r_state)\n {\n $this->r_state = $r_state;\n\n return $this;\n }", "public function setId_recette($id) {\n\n\t\t$id = (int) $id;\n\n \tif ($id>0) {\n\n \t\t$this->_id_recette = $id;\n\n \t}\n\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $planilla;\n\t\t$planilla->idPlanilla->setDbValue($rs->fields('idPlanilla'));\n\t\t$planilla->Nombre->setDbValue($rs->fields('Nombre'));\n\t}", "public function getRoe()\n {\n return $this->roe;\n }", "public function getRaisonSocLieuTrav() {\n return $this->raisonSocLieuTrav;\n }", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $financial_year;\n\t\t$financial_year->financial_year_id->setDbValue($rs->fields('financial_year_id'));\n\t\t$financial_year->year_name->setDbValue($rs->fields('year_name'));\n\t\t$financial_year->date_start->setDbValue($rs->fields('date_start'));\n\t\t$financial_year->date_end->setDbValue($rs->fields('date_end'));\n\t}", "function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }", "public function setTurmaId(int $turma_id)\n {\n $this->turma_id = $turma_id;\n \n }", "public function setSaldo($saldo){\n\t\t\t$this->saldo = $saldo;\n\t\t}", "public function rne(){return $this->_rne;}", "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 getLr() {}", "public function setAsActual(Race $race)\n {\n $actual = $this->findActualRace();\n if($actual)\n $actual->setActual(false);\n\n $race->setActual(true);\n $this->em->flush();\n }", "public function setRbi($rbi)\n {\n $this->rbi = $rbi;\n\n return $this;\n }", "public function set_leitor($_leitor)\n {\n $this->_leitor = $_leitor;\n\n return $this;\n }", "public function setRTERootBlockElement()\n\t{\n\t}", "public function setLafiliere_idlafiliere(int $lafiliere_idlafiliere):void\n {\n $lafiliere_idlafiliere = (int)$lafiliere_idlafiliere;\n //checking is empty\n if(empty($lafiliere_idlafiliere)){\n trigger_error(\"The foreign key session is not valid\",E_USER_NOTICE);\n }else{\n $this->lafiliere_idlafiliere = $lafiliere_idlafiliere;\n }\n }", "public function testSetNivConfEmpPropreteRestreint() {\n\n $obj = new Collaborateurs();\n\n $obj->setNivConfEmpPropreteRestreint(true);\n $this->assertEquals(true, $obj->getNivConfEmpPropreteRestreint());\n }", "public function set_imgR($_imgR)\n {\n $this->_imgR = $_imgR;\n\n return $this;\n }", "public function setRELIGION($RELIGION)\r\n {\r\n $this->RELIGION = $RELIGION;\r\n\r\n return $this;\r\n }", "public function getIdarl(){\n return $this->idarl;\n }", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->Id_tercero->setDbValue($rs->fields('Id_tercero'));\n\t\t$this->nombre_tercero->setDbValue($rs->fields('nombre_tercero'));\n\t\t$this->direccion_tercero->setDbValue($rs->fields('direccion_tercero'));\n\t\t$this->telefono1_tercero->setDbValue($rs->fields('telefono1_tercero'));\n\t\t$this->telefono2_tercero->setDbValue($rs->fields('telefono2_tercero'));\n\t\t$this->fax_tercero->setDbValue($rs->fields('fax_tercero'));\n\t\t$this->nit_tercero->setDbValue($rs->fields('nit_tercero'));\n\t\t$this->tipo_tercero->setDbValue($rs->fields('tipo_tercero'));\n\t\t$this->e_mail_tercero->setDbValue($rs->fields('e_mail_tercero'));\n\t\t$this->Contacto_tercero->setDbValue($rs->fields('Contacto_tercero'));\n\t\t$this->gran_contrib_tercero->setDbValue($rs->fields('gran_contrib_tercero'));\n\t\t$this->autoretenedor_tercero->setDbValue($rs->fields('autoretenedor_tercero'));\n\t\t$this->activo_tercero->setDbValue($rs->fields('activo_tercero'));\n\t\t$this->tercero__registrado_por->setDbValue($rs->fields('tercero_ registrado_por'));\n\t\t$this->reg_comun_tercero->setDbValue($rs->fields('reg_comun_tercero'));\n\t\t$this->responsable_materiales_tercero->setDbValue($rs->fields('responsable_materiales_tercero'));\n\t\t$this->grupo_nomina_tercero->setDbValue($rs->fields('grupo_nomina_tercero'));\n\t\t$this->tercero__lider_Obra->setDbValue($rs->fields('tercero_ lider_Obra'));\n\t\t$this->tercero_nombre_lider->setDbValue($rs->fields('tercero_nombre_lider'));\n\t\t$this->empresa_tercero->setDbValue($rs->fields('empresa_tercero'));\n\t}", "public function setRaisonSociale(?string $raisonSociale): DeclarationCafat {\n $this->raisonSociale = $raisonSociale;\n return $this;\n }", "function setRole($name) \n\t{\n\t\t$this->db->where('roleName',$name);\n\t\t$queryResult = $this->db->get('roles',1);\n\t\t$value = $queryResult->result();\n\t\tif ($queryResult->num_rows() > 0)\t{\n \t$this->roleID \t= $value[0]->roleID;\n \t$this->roleName = $value[0]->roleName;\n \t$this->roleDesc = $value[0]->roleDesc;\n \t$this->rstatus = $value[0]->rstatus;\n\t\t} else {\n\t\t\t$this->roleID \t= \"\";\n \t$this->roleName = \"\";\n \t$this->roleDesc = \"\";\n \t$this->rstatus = \"\";\n\t\t}\n\t}", "public function testSetParcCodeRemorque() {\n\n $obj = new Collaborateurs();\n\n $obj->setParcCodeRemorque(\"parcCodeRemorque\");\n $this->assertEquals(\"parcCodeRemorque\", $obj->getParcCodeRemorque());\n }", "public function getRutEmisor()\n {\n return $this->rutEmisor;\n }", "function carregaValors($id,$autor){\t\r\n\t\t\t\t$this->set_aut_idautor($id);\r\n\t\t\t\t$this->set_aut_autor($autor);\r\n\t\t}" ]
[ "0.6086399", "0.5993933", "0.58973724", "0.58973724", "0.5655131", "0.5647879", "0.56254107", "0.55026907", "0.5475808", "0.5467594", "0.53350335", "0.532129", "0.52988094", "0.5240007", "0.52399606", "0.5178686", "0.51748174", "0.5141888", "0.51304823", "0.51167506", "0.5098099", "0.5078061", "0.5039917", "0.5034307", "0.5010936", "0.49956262", "0.49943566", "0.49761215", "0.49739864", "0.4970904", "0.49610752", "0.4957993", "0.49575898", "0.4955533", "0.49468035", "0.4943401", "0.49256095", "0.4875215", "0.48742372", "0.487177", "0.48605874", "0.4853628", "0.48506936", "0.4849791", "0.48398438", "0.48357955", "0.48350665", "0.48341012", "0.48281178", "0.48119447", "0.48018098", "0.4798301", "0.47929388", "0.4792624", "0.4790721", "0.4790346", "0.47893006", "0.4788874", "0.47859696", "0.47849035", "0.47754303", "0.47672227", "0.47613996", "0.4756353", "0.47555044", "0.47552928", "0.4752694", "0.47485375", "0.47467098", "0.47464284", "0.4746212", "0.4744291", "0.47411135", "0.47404605", "0.4737493", "0.47329402", "0.47311744", "0.4729917", "0.4728098", "0.47252607", "0.47236362", "0.47232738", "0.47095728", "0.47063532", "0.46969333", "0.46969122", "0.46967176", "0.46916416", "0.4686779", "0.46849233", "0.46824154", "0.46788308", "0.46751708", "0.4672031", "0.46695054", "0.46676752", "0.46658048", "0.46640408", "0.4661216" ]
0.59500504
3
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}", "public function setEtblFax($etblFax) {\n $this->etblFax = $etblFax;\n return $this;\n }", "public function ov_tel($name, $value = ''){\n $args = func_get_args(); array_shift($args); array_shift($args);\n return $this->generate_input('tel', $name, $value, true, $args);\n }", "public function setTelefone($value,$options=array('required'=>true)){ \n $this->_data['telefone'] = new ZendT_Type_String($value,array('mask'=>array (\n 0 => '99 9.9999-9999',\n 1 => '99 9999-9999',\n 2 => '9999-9999',\n 3 => '9.9999-9999',\n)\n ,'charMask'=>'9'\n ,'filterDb'=>array (\n 0 => '',\n)\n ,'filter'=>array('trim', 'strtoupper', 'removeAccent', )));\n if ($options['db'])\n $this->_data['telefone']->setValueFromDb($value);\n \n if (!$options['db']){\n \n $valid = new Zend_Validate_StringLength(array ( 'max' => 45, ) );\n $valueValid = $this->_data['telefone']->getValueToDb();\n if ($valueValid && !$valid->isValid($valueValid)){\n throw new ZendT_Exception_Business(implode(\"\\n\",$valid->getMessages()));\n }\n \n }\n return $this;\n }", "public function setTelefono($telefono)\n\t\t{\n\t\t$this->telefono = $telefono;\n\t\t}", "public function getTelEnseignantRef()\n {\n return $this->telEnseignantRef;\n }", "public function setTelephone($telephone) {\n\t\t$this->telephone = $telephone;\n\t}", "public function setTelefono($telefono) {\n\t\t$this->telefono = $telefono;\n\t}", "public function set_telefone($telefone) : void\n {\n try {\n $this->obj_contato_anunciante->set_telefone(Validador::Contato_Anunciante()::validar_telefone($telefone));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['telefone'] = \"erro\";\n }\n }", "public function setEtblMail($etblMail) {\n $this->etblMail = $etblMail;\n return $this;\n }", "public function setTelContact($telContact) {\n $this->telContact = $telContact;\n return $this;\n }", "public function setEtabLieuTravail($etabLieuTravail) {\n $this->etabLieuTravail = $etabLieuTravail;\n return $this;\n }", "public function testSetTelDirect() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelDirect(\"telDirect\");\n $this->assertEquals(\"telDirect\", $obj->getTelDirect());\n }", "public function setTelephone($telephone)\n {\n $this->telephone = $telephone;\n }", "public function setEtat($etat)\n {\n $this->etat = $etat;\n\n return $this;\n }", "public function setTelNr($TelNr = null, $countryCode = null)\n {\n if (is_null($TelNr)) {\n $this->TelNr = null;\n } else {\n if ($countryCode && class_exists(PhoneNumberUtil::class)) {\n $phoneUtil = PhoneNumberUtil::getInstance();\n $parsedNumber = $phoneUtil->parse($TelNr, $countryCode);\n $TelNr = $phoneUtil->format($parsedNumber, PhoneNumberFormat::E164);\n }\n\n $this->TelNr = $TelNr;\n }\n\n return $this;\n }", "function setEol($eol)\n\t{\n\t\t$this->eol = $eol;\n\t}", "function minorite_phone($variables) {\n $element = $variables['element'];\n $element['#attributes']['type'] = 'tel';\n element_set_attributes($element, array('id', 'name', 'value', 'size', 'maxlength'));\n _form_set_class($element, array('form-tel'));\n\n // Adds attributes required and readonly.\n if (!empty($element['#required'])) {\n $element['#attributes']['required'] = '';\n }\n if (!empty($element['#readonly'])) {\n $element['#attributes']['readonly'] = 'readonly';\n }\n\n return '<input' . drupal_attributes($element['#attributes']) . ' />';\n}", "public function testSetTelPortable1() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPortable1(\"telPortable1\");\n $this->assertEquals(\"telPortable1\", $obj->getTelPortable1());\n }", "function setPhone($newPhone){\n //check if the phone number is numeric\n if(is_numeric($newPhone)) {\n $this->phone = $newPhone;\n }\n //if not set to default, 0000000000\n $this->phone = \"0000000000\";\n }", "public function setLlx($llx) {}", "public function testSetTelConjoint() {\n\n $obj = new Employes();\n\n $obj->setTelConjoint(\"telConjoint\");\n $this->assertEquals(\"telConjoint\", $obj->getTelConjoint());\n }", "public function setTelefone($ddd, $numero) {\n\t\t$this->checkoutTransparente['cliente']['senderAreaCode'] = $ddd;\n\t\t$this->checkoutTransparente['cliente']['senderPhone'] = $numero;\n\n\t\t$this->checkoutTransparente['cartao']['creditCardHolderAreaCode'] = $ddd;\n\t\t$this->checkoutTransparente['cartao']['creditCardHolderPhone'] = $numero;\n\n\t\treturn $this;\n\t}", "public function testSetTds139() {\n\n $obj = new Employes();\n\n $obj->setTds139(\"tds139\");\n $this->assertEquals(\"tds139\", $obj->getTds139());\n }", "public function getTelContact() {\n return $this->telContact;\n }", "public function testSetNumeroCarteTravail() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteTravail(\"numeroCarteTravail\");\n $this->assertEquals(\"numeroCarteTravail\", $obj->getNumeroCarteTravail());\n }", "public function setFiltroTelefono($fil='') {\n $this->filtroTelefono = $this->arreglarFiltro($fil);\n $this->filtrarPersonas();\n }", "public function getTel_user()\r\n {\r\n return $this->tel_user;\r\n }", "public function setTelefone($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->telefone !== $v) {\n\t\t\t$this->telefone = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::TELEFONE;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setTelefono($_telefono)\n {\n $this->_telefono = $_telefono;\n\n return $this;\n }", "public function getTel_partner()\n {\n return $this->tel_partner;\n }", "public static function phone()\n {\n return new TextNode('phone');\n }", "public function setTelnyxCode($telnyxCode)\n {\n $this->telnyxCode = $telnyxCode;\n }", "public function setTel_partner($tel_partner)\n {\n $this->tel_partner = $tel_partner;\n\n return $this;\n }", "public function set_telephone_number( $number ) {\n\t\treturn $this->set_field( 'OWNERTELNO', $number );\n\t}", "function setDesc_teleco($sdesc_teleco = '')\n {\n $this->sdesc_teleco = $sdesc_teleco;\n }", "public function setTelEnseignantRef($telEnseignantRef)\n {\n $this->telEnseignantRef = $telEnseignantRef;\n\n return $this;\n }", "public function setTelefone($telefone)\n {\n $this->telefone = $telefone;\n\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 testSetTelPortable2() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPortable2(\"telPortable2\");\n $this->assertEquals(\"telPortable2\", $obj->getTelPortable2());\n }", "public function testSetEtblFax() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblFax(\"etblFax\");\n $this->assertEquals(\"etblFax\", $obj->getEtblFax());\n }", "public function testSetTelPerso() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPerso(\"telPerso\");\n $this->assertEquals(\"telPerso\", $obj->getTelPerso());\n }", "function SetPort($namePort = \"\") {\n $archivo = 'C:\\IntTFHKA\\Puerto.dat';\n $fp = fopen($archivo, \"w\");\n $string = \"\";\n $write = fputs($fp, $string);\n $string = $namePort;\n $write = fputs($fp, $string);\n fclose($fp);\n\n $this->NamePort = $namePort;\n }", "public function setTipRtbus($value) {\n return $this->set(self::TIP_RTBUS, $value);\n }", "function changeNumber() {\r\n\t\r\n\t\t//set phone number as is, with () and - in it.\r\n\t\t$phoneNumber = $this->phone_number;\r\n\r\n\t\t//seperate phone number into 3 parts\r\n\t\t$phoneNum1 = substr($phoneNumber, -13, 3);\r\n\t\t$phoneNum2 = substr($phoneNumber, -8, 3);\r\n\t\t$phoneNum3 = substr($phoneNumber, -4, 4);\r\n\t\t\r\n\t\t//combine three parts of phone number into one.\r\n\t\t$phoneNumberFull = $phoneNum1 . $phoneNum2 . $phoneNum3;\r\n\r\n\t\t//change phoneNumber data for specific carrier\r\n\t\t$phoneCarrier = $this->carrier;\r\n\t\t\r\n\t\tswitch($phoneCarrier) {\r\n\t\t\t//Verizon\r\n\t\t\tcase \"verizon\":\r\n\t\t\t\t$phoneNumberFull .= \"@vtext.com\";\r\n\t\t\t\tbreak;\r\n\t\t\t//AT & T\r\n\t\t\tcase \"at&t\":\r\n\t\t\t\t$phoneNumberFull .= \"@txt.att.net\";\r\n\t\t\t\tbreak;\r\n\t\t\t//Sprint\r\n\t\t\tcase \"sprint\":\r\n\t\t\t\t$phoneNumberFull .= \"@messaging.sprintpcs.com\";\r\n\t\t\t\tbreak;\r\n\t\t\t//T-Mobile\r\n\t\t\tcase \"tmobile\":\r\n\t\t\t\t$phoneNumberFull .= \"@tmomail.net\";\r\n\t\t\t\tbreak;\r\n\t\t\t//Default case where error occurred.\r\n\t\t\tdefault:\r\n\t\t\t\tdie(\"Converting phoneNumber failed.<br />\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t//assigns phone number to event class\r\n\t\t$this->phone_number = $phoneNumberFull;\r\n\t\r\n\t}", "public function setEtblCommune($etblCommune) {\n $this->etblCommune = $etblCommune;\n return $this;\n }", "protected function set_url_this_edit($val){ $this->input ['edit_url'] = $val ; }", "public function setRound( $rx )\n {\n $this->addAttribute('rx', $rx );\n }", "public function getTelefone()\n {\n return $this->telefone;\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 static function setPassword($val) \n { \n emailSettings::$password = $val; \n }", "protected function setTo() {}", "public function setEtblCodePostal($etblCodePostal) {\n $this->etblCodePostal = $etblCodePostal;\n return $this;\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 getTelefone()\n\t{\n\t\treturn $this->telefone;\n\t}", "public function setLenumero(int $lenumero)\n {\n $lenumero= (int)$lenumero;\n //checking numero is empty\n if(empty($lenumero)){ \n trigger_error('The number is not correct');\n }else{\n $this->lenumero = $lenumero;\n }\n }", "function setTo($to_set){\n\t\t\t$this->to=$to_set;\n\t\t}", "public function setTelevision($television)\n {\n $this->television = $television;\n\n return $this;\n }", "function telto($phone) {\n\treturn str_replace(['+', '(', ')', '-', ' '], '', $phone);\n}", "public function getTelephone()\n {\n return $this->telephone;\n }", "public function setPort( $port )\n\t{\n\t\t$this->port = $port;\n\t\t$this->modified = true;\n\t}", "public function testSetTelPersAPrevenir() {\n\n $obj = new Employes();\n\n $obj->setTelPersAPrevenir(\"telPersAPrevenir\");\n $this->assertEquals(\"telPersAPrevenir\", $obj->getTelPersAPrevenir());\n }", "public function setTelephone(string $telephone)\n {\n $this->telephone = $telephone;\n\n return $this;\n }", "public function getTelephone()\n {\n return $this->telephone;\n }", "public function getTelephone()\n {\n return $this->telephone;\n }", "public function getTelephone()\n {\n return $this->telephone;\n }", "public function getTelephone()\n {\n return $this->telephone;\n }", "public function getTelephone()\n {\n return $this->telephone;\n }", "public function getTelephone()\n {\n return $this->telephone;\n }" ]
[ "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.53327364", "0.529646", "0.527985", "0.5226652", "0.5194718", "0.51660347", "0.5156126", "0.5138578", "0.5126837", "0.51044226", "0.5056663", "0.50405765", "0.50344247", "0.50224394", "0.50070935", "0.49821794", "0.49504748", "0.4948106", "0.4940148", "0.49053624", "0.48853558", "0.48740116", "0.48656622", "0.48625046", "0.4832658", "0.48266017", "0.48216322", "0.4816381", "0.48116025", "0.47986054", "0.47709993", "0.47676155", "0.47590405", "0.47181976", "0.4705851", "0.4702082", "0.46964937", "0.4690879", "0.4678513", "0.4675887", "0.4671104", "0.4652755", "0.4643888", "0.4626308", "0.46014574", "0.4591245", "0.45904136", "0.45884928", "0.45837557", "0.45788684", "0.4572601", "0.4572126", "0.45705324", "0.45705324", "0.45651916", "0.45609683", "0.45543748", "0.45542806", "0.45527777", "0.4544938", "0.45439363", "0.45343015", "0.45334008", "0.4524201", "0.4524201", "0.4524201", "0.4524201", "0.4524201", "0.4524201" ]
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 }", "public function setIdCompra($idCompra)\r\n {\r\n $this->idCompra = $idCompra;\r\n\r\n return $this;\r\n }", "public function getIdCompra()\r\n {\r\n return $this->idCompra;\r\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 static function fcomptage(){\n\t\tglobal $comptage;\n\t\t$comptage++;\n\t}", "public function testSetParcCodeVehicule() {\n\n $obj = new Collaborateurs();\n\n $obj->setParcCodeVehicule(\"parcCodeVehicule\");\n $this->assertEquals(\"parcCodeVehicule\", $obj->getParcCodeVehicule());\n }", "public function testSetCodeChantier() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeChantier(\"codeChantier\");\n $this->assertEquals(\"codeChantier\", $obj->getCodeChantier());\n }", "function setColor($color_coche, $nombre_coche){\r\n\t\t\t$this->color=$color_coche;\r\n\t\t\techo \"El color del \" . $nombre_coche . \" es: \" . $this->color . \"<br/>\";\r\n\t\t}", "public function testSetCodeVehicule() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVehicule(\"codeVehicule\");\n $this->assertEquals(\"codeVehicule\", $obj->getCodeVehicule());\n }", "public function testSetInterdictionVueFacturation() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdictionVueFacturation(true);\n $this->assertEquals(true, $obj->getInterdictionVueFacturation());\n }", "public function testSetCodeModele() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setCodeModele(\"codeModele\");\n $this->assertEquals(\"codeModele\", $obj->getCodeModele());\n }", "public function edit(Compra $compra)\n {\n //\n }", "public function edit(Compra $compra)\n {\n //\n }", "public function testSetModifEnVue() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifEnVue(true);\n $this->assertEquals(true, $obj->getModifEnVue());\n }", "public function initSetPageLayoutForm()\n\t{\n\t\tglobal $lng, $ilCtrl;\n\t\n\t\tinclude_once(\"Services/Form/classes/class.ilPropertyFormGUI.php\");\n\t\t$this->form = new ilPropertyFormGUI();\n\t\t\n\t\tif (is_array($_POST[\"id\"]))\n\t\t{\n\t\t\tforeach ($_POST[\"id\"] as $id)\n\t\t\t{\n\t\t\t\t$hi = new ilHiddenInputGUI(\"id[]\");\n\t\t\t\t$hi->setValue($id);\n\t\t\t\t$this->form->addItem($hi);\n\t\t\t}\n\t\t}\n\t\t$layout = ilObjContentObjectGUI::getLayoutOption($lng->txt(\"cont_layout\"), \"layout\",\n\t\t\t$this->content_object->getLayout());\n\n\t\t$this->form->addItem($layout);\n\t\n\t\t$this->form->addCommandButton(\"savePageLayout\", $lng->txt(\"save\"));\n\t\t$this->form->addCommandButton(\"showHierarchy\", $lng->txt(\"cancel\"));\n\t\t\n\t\t$this->form->setTitle($lng->txt(\"cont_set_layout\"));\n\t\t$this->form->setFormAction($ilCtrl->getFormAction($this));\n\t \n\t}", "public function setCompte() {\n $id = Session::get('id');\n $identite = Request::input('identite');\n $adresse = Request::input('adresse');\n $login = Request::input('login');\n $pwd = Request::input('pwd');\n $id_categorie = Request::input('cbCategorie');\n\n\n $client = new Client();\n try{\n $client->updateClient($id, $identite, $adresse, $login, $pwd, $id_categorie);\n\n } catch (Exception $ex) {\n return $this->getCompte($erreur = '');\n }\n return redirect('/');\n\n }", "public function testSetCodeCollaborateurRedir() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurRedir(\"codeCollaborateurRedir\");\n $this->assertEquals(\"codeCollaborateurRedir\", $obj->getCodeCollaborateurRedir());\n }", "public function testSetCompteTiers() {\n\n $obj = new Employes();\n\n $obj->setCompteTiers(\"compteTiers\");\n $this->assertEquals(\"compteTiers\", $obj->getCompteTiers());\n }", "public static function style_set() {\n\t\t global $I2_USER;\n\t\t if (self::$style == NULL) {\n\t\t\t if (isset($I2_USER)) {\n\t\t\t\t\t self::$style = ($I2_USER->style);\n\t\t\t }\n\t\t\t else {\n\t\t\t\t\t self::$style = 'default';\n\t\t\t }\n\t\t\t d('Style set to '.self::$style,7);\n\t\t }\n\t }", "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 init(){\n parent::init();\n $this->_editor = $this->_helper->layoutEditor();\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 testSetControleSaisieTp() {\n\n $obj = new Collaborateurs();\n\n $obj->setControleSaisieTp(\"controleSaisieTp\");\n $this->assertEquals(\"controleSaisieTp\", $obj->getControleSaisieTp());\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function testSetSelCliCollab() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelCliCollab(true);\n $this->assertEquals(true, $obj->getSelCliCollab());\n }", "public function testSetIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLegale(true);\n $this->assertEquals(true, $obj->getIndemnLegale());\n }", "public function testSetInterdireEnvoiPostit() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireEnvoiPostit(true);\n $this->assertEquals(true, $obj->getInterdireEnvoiPostit());\n }", "function setMode($mode){\n\t\t//Switches the operating mode of\n\t\t//'ScaleTool'.\n\n\t\tif($mode == 'fit' || $mode == 'fill')\n\t\t\t$this->mode = $mode;\n\t}", "public function init()\r\n {\r\n parent::init();\r\n $this->visible = true;\r\n $this->descriptionashint = true;\r\n $this->active = false;\r\n }", "public function testSetTypeContrat() {\n\n $obj = new AttestationCacm();\n\n $obj->setTypeContrat(10);\n $this->assertEquals(10, $obj->getTypeContrat());\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 testSetInterdireEditionValoriseJrnTemps() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireEditionValoriseJrnTemps(true);\n $this->assertEquals(true, $obj->getInterdireEditionValoriseJrnTemps());\n }", "public function testSetIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnAutre(true);\n $this->assertEquals(true, $obj->getIndemnAutre());\n }", "protected function init()\n {\n $this->setTitle('core_layout.edit_layout');\n $this->addElement([\n 'plugin' => 'hidden',\n 'name' => 'base_script',\n 'value' => 'view'\n ]);\n $this->addElement([\n 'plugin' => 'hidden',\n 'name' => 'item_script',\n 'value' => 'view',\n ]);\n }", "public function testSetIndemnLic() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLic(true);\n $this->assertEquals(true, $obj->getIndemnLic());\n }", "public function testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\n }", "public function testSetAutreStatut() {\n\n $obj = new AttestationCacm();\n\n $obj->setAutreStatut(\"autreStatut\");\n $this->assertEquals(\"autreStatut\", $obj->getAutreStatut());\n }", "function setMode($cMode) {\n debugPrint(\"vpView::setMode: setting mode \".$cMode);\n $this->cMode = $cMode;\n }", "public function testSetAnnulationChantier() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationChantier(true);\n $this->assertEquals(true, $obj->getAnnulationChantier());\n }", "public function setIdContCliVend($value,$options=array('required'=>true)){ \n $this->_data['id_cont_cli_vend'] = new ZendT_Type_Number($value,array('numDecimal'=>null));\n if ($options['db'])\n $this->_data['id_cont_cli_vend']->setValueFromDb($value);\n \n if (!$options['db']){\n \n }\n return $this;\n }", "protected function set_type() {\n\n\t\t\t$this->type = 'kirki-editor';\n\n\t\t}", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "function setIntestat($intestat)\n {\n $this->intestat = $intestat;\n }", "public static function getCompteur() {\n return self::$_compteur;\n }", "public function setActive()\n\t\t{\n\t\t\t$this->_state = 1;\n\t\t}", "public function setElement($element)\n\t{\n\t\t$props = array(\n\t\t\t\"encType:'\" . $element->getAttrib('enctype') .\"'\",\n\t\t\t\"formName:'\" . $element->getName() . \"'\",\n\t\t\t\"action:'\" . $element->getAction() . \"'\",\n\t\t\t\"method:'\" . $element->getMethod() . \"'\"\n\t\t);\n\t\tforeach ($element->getDojoProps() as $key => $val) {\n\t\t\t$props[] = \"$key: '$val'\";\n\t\t}\n\t\t$element->setAttrib('data-dojo-props', join(',', $props));\n\t\t$element->setAttrib('id', '');\n\t\t\n\t\treturn parent::setElement($element);\n\t}", "public function setActive() {}", "public function testSetLibelle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "function setColor( $c ) {\n $this->currentColor = $c;\n}", "public function testSetNumero() {\n\n $obj = new Collaborateurs();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }", "public function setCompact()\n {\n parent::setAttr(\"compact\");\n }", "public function testSetTypeControle() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setTypeControle(\"typeControle\");\n $this->assertEquals(\"typeControle\", $obj->getTypeControle());\n }", "public function setCodigo($codigo){\n $this->codigo = $codigo;\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "function setTieColor($tiecolor) {\n $this->tiecolor = $tiecolor;\n }", "public function actionSetCiudad()\r\n {\r\n require_once Yii::app()->basePath . '/extensions/booster/widgets/TbActiveForm.php';\r\n $ciudad = new ProgramaHasCiudad();\r\n $form = new TbActiveForm();\r\n $i = Yii::app()->request->getParam('i');\r\n $i++;\r\n\r\n Yii::app()->clientScript->scriptMap['jquery.js'] = false;\r\n Yii::app()->clientScript->scriptMap['jquery.min.js'] = false;\r\n header(\"Content-type: application/json\");\r\n echo CJSON::encode(array(\r\n 'div'=>$this->renderPartial('_ciudad',array('ciudad'=>$ciudad,'i'=>$i,'form'=>$form),true,true)\r\n ));\r\n exit;\r\n }", "public function testSetVisualisationFicheCabinet() {\n\n $obj = new Collaborateurs();\n\n $obj->setVisualisationFicheCabinet(true);\n $this->assertEquals(true, $obj->getVisualisationFicheCabinet());\n }", "public function setCustomerSkin()\n {\n $this->skin = null;\n $this->locale = null;\n $this->currentInterface = \\XLite::CUSTOMER_INTERFACE;\n\n $this->setOptions();\n }", "public function edit(CompteUtilisateur $compteUtilisateur)\n {\n //\n }", "public function setIde($ide)\n {\n $this->ide = $ide;\n }", "public function testSetCptAccompte() {\n\n $obj = new Employes();\n\n $obj->setCptAccompte(10);\n $this->assertEquals(10, $obj->getCptAccompte());\n }", "protected function set_type() {\n\t\t$this->type = 'kirki-color';\n\t}", "public function testSetStatutJuridique() {\n\n $obj = new AttestationCacm();\n\n $obj->setStatutJuridique(\"statutJuridique\");\n $this->assertEquals(\"statutJuridique\", $obj->getStatutJuridique());\n }", "public function setInteractive($value)\n {\n $this->interactive = $value;\n }", "function setITipo($iTipo) {\n $this->iTipo = $iTipo;\n }", "public function init()\n {\n\n $this->minWidth = 300;\n $this->minHeight = 200;\n $this->width = 950;\n $this->height = 650;\n $this->resizable = true;\n $this->movable = true;\n $this->closable = true;\n\n $this->models = new TArray();\n\n }", "public function compteenattente()\n {\n $this->utils->Restreindre($this->userConnecter->admin, $this->utils->Est_autoriser(37, $this->userConnecter->profil));\n $data['lang'] = $this->lang->getLangFile($this->getSession()->getAttribut('lang'));\n $params = array('view' => 'compte/compteenattente');\n $this->view($params, $data);\n }", "public function __construct(ClientCompte $compte,float $solde, int $taux)\n {\n parent::__construct($compte,$solde);\n $this->tauxInterets = $taux;\n }", "function __construct() {\n\n parent::addCheckBox(\"table\");\n\n $user = $this->getLoggedUser();\n\n /**\n * Definicion de tipos de campos\n */\n $this->assignType(\"id\", \"ID\", BaseView::HIDDEN);\n $this->assignType(\"name\", JText::_(\"COM_CTC_NAME\"), BaseView::STRING);\n $this->assignType(\"description\", JText::_(\"COM_CTC_DESCRIPTION\"), BaseView::BIG_STRING);\n $this->assignType(\"identification\", JText::_(\"COM_CTC_IDENFIFICATION\"), BaseView::STRING);\n $this->assignType(\"location\", \"Localización\", BaseView::STRING);\n $this->assignType(\"code\", JText::_(\"COM_CTC_CODE\"), BaseView::HIDDEN);\n $this->assignType(\"activation_date\", JText::_(\"COM_CTC_ACTIVATION_DATE\"), BaseView::DATE);\n $this->assignType(\"expiration_date\", JText::_(\"COM_CTC_EXPIRATION_DATE\"), BaseView::DATE);\n\n $this->assignType(\"device_type_id\", \"Tipo de Unidad Biométrica\", BaseView::PICKLIST, array(\n DeviceType::ENROLLER_ATT => \"Enroladora y Marcadora\",\n DeviceType::ENROLLER_ONLY => \"Solo Enroladora\",\n DeviceType::ATT_ONLY => \"Solo Marcadora\",\n BaseView::TOOLTIP => \"Determina el comportamiento del sistema cuando llega una marcación de éste dispositivo.\"));\n\n //$this->assignType(\"STATE\", \"Conexión\", BaseView::STRING,array(\n // BaseView::TOOLTIP => \"Estado de Conexión del dispositivo con el servidor.\" ));\n\n $funcRes = function($obj) {\n $coler = \"red\";\n if ($obj->STATE !== \"OFFLINE\") {\n $coler = \"green\";\n }\n $textOLINE = <<<TE\n\t\t\t<p style=\"color:$coler\">$obj->STATE</p>\nTE;\n return $textOLINE;\n };\n $this->assignType(\"STATE\", \"Conexión\", BaseView::FUNC, $funcRes);\n\n $this->assignType(\"status_id\", JText::_(\"COM_CTC_STATUS\"), BaseView::ENTITY, array(\n BaseView::ENT_VAR_NAME => \"status\",\n BaseView::ENT_CLASS => \"Status\",\n BaseView::ENT_FIELD => \"name\",\n BaseView::ENT_FILTER => null));\n\n $this->addAuthFields();\n\n // Informativo\n $this->assignType(\"ip_address\", \"Dirección IP\", BaseView::STRING);\n $this->assignType(\"ip_address_wan\", \"Dirección IP WAN\", BaseView::STRING);\n $this->assignType(\"pushver\", \"Versión\", BaseView::STRING);\n $this->assignType(\"language\", \"Lenguaje\", BaseView::STRING);\n $this->assignType(\"numDevAtts\", \"Marcaciones\", BaseView::STRING, array(\n BaseView::TOOLTIP => \"Número de Marcaciones en dispositivo.\"));\n $this->assignType(\"numDevFPs\", JText::_(\"COM_CTC_NUMFP\"), BaseView::STRING, array(\n BaseView::TOOLTIP => \"Número de Huellas en dispositivo.\"));\n $this->assignType(\"numDevUsers\", \"Empleados\", BaseView::STRING, array(\n BaseView::TOOLTIP => \"Número de Empleados en dispositivo.\"));\n $this->assignType(\"LastActivity\", \"Last Activity\", BaseView::STRING);\n\n if ($user->hasPermission(\"modify-device\")) {\n $this->assignType(\"auto_process\", \"Automático\", BaseView::PICKLIST, array(\n 'F' => JText::_(\"COM_CTC_NOT\"),\n 'T' => JText::_(\"COM_CTC_YES\")\n ));\n $this->assignType(\"cmdPermissions\", \"Comandos Permitidos\", BaseView::STRING);\n $this->assignType(\"TransTimes\", \"Trans Times\", BaseView::STRING);\n $this->assignType(\"TransInterval\", \"Trans Interval\", BaseView::STRING);\n $this->assignType(\"LogStamp\", \"Log Stamp\", BaseView::STRING);\n $this->assignType(\"UpdateDB\", \"Update Db\", BaseView::STRING);\n $this->assignType(\"OpLogStamp\", \"Op Log Stamp\", BaseView::STRING);\n $this->assignType(\"PhotoStamp\", \"Photo Stamp\", BaseView::STRING);\n $this->assignType(\"TZAdj\", \"Tzadj\", BaseView::PICKLIST, array(\n -12 => JText::_('UTC__12_00__INTERNATIONAL_DATE_LINE_WEST'),\n -11 => JText::_('UTC__11_00__MIDWAY_ISLAND__SAMOA'),\n -10 => JText::_('UTC__10_00__HAWAII'),\n -9.5 => JText::_('UTC__09_30__TAIOHAE__MARQUESAS_ISLANDS'),\n -9 => JText::_('UTC__09_00__ALASKA'),\n -8 => JText::_('UTC__08_00__PACIFIC_TIME__US__AMP__CANADA_'),\n -7 => JText::_('UTC__07_00__MOUNTAIN_TIME__US__AMP__CANADA_'),\n -6 => JText::_('UTC__06_00__CENTRAL_TIME__US__AMP__CANADA___MEXICO_CITY'),\n -5 => JText::_('UTC__05_00__EASTERN_TIME__US__AMP__CANADA___BOGOTA__LIMA'),\n -4 => JText::_('UTC__04_00__ATLANTIC_TIME__CANADA___CARACAS__LA_PAZ'),\n -4.5 => JText::_('UTC__04_30__VENEZUELA'),\n -3.5 => JText::_('UTC__03_30__ST__JOHN_S__NEWFOUNDLAND__LABRADOR'),\n -3 => JText::_('UTC__03_00__BRAZIL__BUENOS_AIRES__GEORGETOWN'),\n -2 => JText::_('UTC__02_00__MID_ATLANTIC'),\n -1 => JText::_('UTC__01_00__AZORES__CAPE_VERDE_ISLANDS'),\n 0 => JText::_('UTC_00_00__WESTERN_EUROPE_TIME__LONDON__LISBON__CASABLANCA'),\n 1 => JText::_('UTC__01_00__AMSTERDAM__BERLIN__BRUSSELS__COPENHAGEN__MADRID__PARIS'),\n 2 => JText::_('UTC__02_00__ISTANBUL__JERUSALEM__KALININGRAD__SOUTH_AFRICA'),\n 3 => JText::_('UTC__03_00__BAGHDAD__RIYADH__MOSCOW__ST__PETERSBURG'),\n 3.5 => JText::_('UTC__03_30__TEHRAN'),\n 4 => JText::_('UTC__04_00__ABU_DHABI__MUSCAT__BAKU__TBILISI'),\n 4.5 => JText::_('UTC__04_30__KABUL'),\n 5 => JText::_('UTC__05_00__EKATERINBURG__ISLAMABAD__KARACHI__TASHKENT'),\n 5.5 => JText::_('UTC__05_30__BOMBAY__CALCUTTA__MADRAS__NEW_DELHI__COLOMBO'),\n 5.75 => JText::_('UTC__05_45__KATHMANDU'),\n 6 => JText::_('UTC__06_00__ALMATY__DHAKA'),\n 6.5 => JText::_('UTC__06_30__YAGOON'),\n 7 => JText::_('UTC__07_00__BANGKOK__HANOI__JAKARTA__PHNOM_PENH'),\n 8 => JText::_('UTC__08_00__BEIJING__PERTH__SINGAPORE__HONG_KONG'),\n 8.75 => JText::_('UTC__08_00__WESTERN_AUSTRALIA'),\n 9 => JText::_('UTC__09_00__TOKYO__SEOUL__OSAKA__SAPPORO__YAKUTSK'),\n 9.5 => JText::_('UTC__09_30__ADELAIDE__DARWIN__YAKUTSK'),\n 10 => JText::_('UTC__10_00__EASTERN_AUSTRALIA__GUAM__VLADIVOSTOK'),\n 10.5 => JText::_('UTC__10_30__LORD_HOWE_ISLAND__AUSTRALIA_'),\n 11 => JText::_('UTC__11_00__MAGADAN__SOLOMON_ISLANDS__NEW_CALEDONIA'),\n 11.5 => JText::_('UTC__11_30__NORFOLK_ISLAND'),\n 12 => JText::_('UTC__12_00__AUCKLAND__WELLINGTON__FIJI__KAMCHATKA'),\n 12.75 => JText::_('UTC__12_45__CHATHAM_ISLAND'),\n 13 => JText::_('UTC__13_00__TONGA'),\n 14 => JText::_('UTC__14_00__KIRIBATI')\n ));\n $this->assignType(\"error_delay\", \"Retraso ante Error\", BaseView::STRING, array(\n BaseView::TOOLTIP => \"Indica el Intervalo en segundos entre intentos de reconexión al servidor despues una conexión fallida.\"));\n $this->assignType(\"delay\", \"Retraso\", BaseView::STRING, array(\n BaseView::TOOLTIP => \"Indica el Intervalo en segundos entre intentos de conexión\"));\n $this->assignType(\"realtime\", \"Sincronización\", BaseView::PICKLIST, array(\n 0 => \"En los Tiempos específicados en Trans Times.\",\n 1 => \"En cuanto ocurra la marcación.\",\n BaseView::TOOLTIP => \"Indica si se transfieren nuevos registros en tiempo real. Opción 1 Indica que las marcaciones solo se envian en los tiempos Indicados en Trans Times y Trans Interval. Opción 2 Indica que se envian las marcaciones en cuanto ocurran. \"));\n $this->assignType(\"encrypt\", \"Encripción\", BaseView::PICKLIST, array(\n 0 => JText::_(\"COM_CTC_NOT\"),\n 1 => JText::_(\"COM_CTC_YES\"),\n BaseView::TOOLTIP => \"Indica si el dispositivo encripta los datos enviados.\"));\n $this->assignType(\"numAtts\", \"Marcaciones Servidor\", BaseView::STRING, array(\n BaseView::TOOLTIP => \"Número de Marcaciones Sincronizadas.\"));\n $this->assignType(\"numFPs\", \"Huellas Servidor\", BaseView::STRING, array(\n BaseView::TOOLTIP => \"Número de Huellas Sincronizadas.\"));\n $this->assignType(\"numUsers\", \"Empleados Servidor\", BaseView::STRING, array(\n BaseView::TOOLTIP => \"Número de Empleados Sincronizadas.\"));\n }\n\n\n /**\n * Definicion de vistas y sus acciones\n */\n $this->addViewEx(\"form\", array(\"STATE\", \"numAtts\",\n \"numFPs\",\n \"numUsers\"));\n $this->addAction(\"form\", \"device_form_submit\", JText::_(\"COM_CTC_SAVE\"), \"save.png\");\n $this->addAction(\"form\", \"device_form_cancel\", JText::_(\"COM_CTC_CANCEL\"), \"remove.png\");\n\n //TODO agregar device_status_id\n $this->addView(\"table\", array(\"name\",\n \"identification\",\n \"status_id\",\n \"STATE\",\n \"numDevAtts\",\n \"numDevFPs\",\n \"numDevUsers\"));\n $this->addAction(\"table\", \"device_table_edit\", JText::_(\"COM_CTC_EDIT\"), \"edit.png\");\n $this->addAuthView(\"table\");\n\n\n if ($user->hasPermission(\"modify-device\")) {\n $this->addAction(\"table\", \"resyncDevice\", \"Sincronizar Con Dispositivo\", \"repeat.png\");\n $this->addAction(\"table\", \"device_table_remove\", JText::_(\"COM_CTC_DELETE\"), \"delete.png\");\n }\n $this->addAction(\"table\", \"rebootDevice\", \"Reiniciar Dispositivo\", \"shut-down.png\");\n\n $this->addView(\"dialog\", array());\n $this->addAction(\"dialog\", \"device_dialog_ok\", JText::_(\"COM_CTC_OK\"), \"accept.png\");\n $this->addAction(\"dialog\", \"device_dialog_cancel\", JText::_(\"COM_CTC_CANCEL\"), \"remove.png\");\n\n $this->addView(\"aud\", array(\n \"name\",\n \"identification\",\n \"status_id\",\n \"STATE\"));\n }", "public function setInit($init)\n {\n\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.5039224", "0.5025832", "0.5023539", "0.50012064", "0.4999481", "0.4992057", "0.49804443", "0.49802363", "0.4968339", "0.495787", "0.49159095", "0.49159095", "0.49145445", "0.4913132", "0.49129036", "0.4904653", "0.4901666", "0.49000844", "0.48893535", "0.48848912", "0.48777542", "0.48774794", "0.4867453", "0.4850089", "0.48499298", "0.4848701", "0.48424274", "0.483381", "0.48322514", "0.48301747", "0.4826248", "0.48199067", "0.4818696", "0.48183966", "0.48177907", "0.48153892", "0.48133078", "0.4812403", "0.48085585", "0.48062465", "0.48047101", "0.4802914", "0.47959566", "0.4795424", "0.47950375", "0.47927287", "0.47925535", "0.4791185", "0.47889453", "0.47879308", "0.47875512", "0.47861347", "0.47848266", "0.4781336", "0.4781101", "0.4778882", "0.47773883", "0.4777299", "0.47759894", "0.47722837", "0.4768262", "0.47646534", "0.47635058", "0.47621164", "0.4760534", "0.47601363", "0.47493574", "0.47462758", "0.47428828", "0.47411278" ]
0.63653183
0
Set the lien document.
public function setLienDocument($lienDocument) { $this->lienDocument = $lienDocument; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setDocument() \n\t{\n\t\t$isNew = $this->item->id == 0;\n\t\t$document = JFactory::getDocument();\n\t\t$document->setTitle($isNew ? JText::_('COM_HELLOWORLD_HELLOWORLD_CREATING') : JText::_('COM_HELLOWORLD_HELLOWORLD_EDITING'));\n\t\t$document->addScript(JURI::root() . $this->script);\n\t\t$document->addScript(JURI::root() . \"/administrator/components/com_sportsmanagement/views/sportsmanagement/submitbutton.js\");\n\t\tJText::script('COM_HELLOWORLD_HELLOWORLD_ERROR_UNACCEPTABLE');\n\t}", "protected function setDocument()\n\t{\n\t\t$document = JFactory::getDocument();\n\t\t$document->setTitle(JText::_('COM_HELLOWORLD_ADMINISTRATION'));\n\t}", "protected function setDocument()\n\t{\n\t\t$isNew = ($this->item->id < 1);\n\t\t$document = JFactory::getDocument();\n\t\t$document->setTitle($isNew ? JText::_('JBS_TITLE_MEDIA_FILES_CREATING') : JText::sprintf('JBS_TITLE_MEDIA_FILES_EDITING', $this->item->filename));\n\t}", "protected function setDocument()\n\t{\n\t\t$isNew = ($this->item->id < 1);\n\t\t$document = Factory::getDocument();\n\t\t$document->setTitle($isNew ? \\JText::_('COM_BOOKINGMANAGER_CUSTOMEREDITOR_CREATING') :\n\t\t\t\\JText::_('COM_BOOKINGMANAGER_CUSTOMEREDITOR_EDITING'));\n\t}", "protected function setDocument() \r\n\t{\r\n\t\t$document = JFactory::getDocument();\r\n\t\t//$document->setTitle(JText::_('Angelgirls Manager - Administrator'));\r\n\t}", "protected function setDocument()\n {\n $document = JFactory::getDocument();\n $document->setTitle(JText::_('COM_HELLOWORLD_ADMINISTRATION'));\n }", "protected function setDocument() {\n $document = JFactory::getDocument();\n $document->setTitle(JText::_('COM_LAJVIT_ADMINISTRATION'));\n }", "private function setDocument(&$document) {\n\t\t$this->document = $document;\n\t}", "protected function setDocument()\r\n {\r\n \t$document = JFactory::getDocument();\r\n \t$document->setTitle(JText::_('COM_JEA_EXPORT_ADMINISTRATION_ANNONCE'));\r\n }", "public function testSetLienDocument() {\n\n $obj = new AttestationCacm();\n\n $obj->setLienDocument(\"lienDocument\");\n $this->assertEquals(\"lienDocument\", $obj->getLienDocument());\n }", "protected function setDocument()\n\t{\n\n\t\t$document = JFactory::getDocument();\n $document->setTitle(JText::_('COM_WIMTVPRO_ADMINISTRATION'));\n\n\t\t$document->addStyleSheet(JURI::base() . \"components/com_wimtvpro/assets/css/wimtvpro.css\");\n\t\t$document->addScript(JURI::base() . \"components/com_wimtvpro/assets/js/jquery-2.0.2.min.js\");\n\t\t$document->addScript(JURI::base() . \"components/com_wimtvpro/assets/js/wimtvpro.js\");\n\t\t\n\t}", "public function testSetLienDocument() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLienDocument(\"lienDocument\");\n $this->assertEquals(\"lienDocument\", $obj->getLienDocument());\n }", "public function init(){\n $this->documento='760';\n }", "protected function setDocument() \r\n {\r\n $doc = JFactory::getDocument();\r\n $doc->addStyleSheet(JURI::base().'components/com_odyssey/odyssey.css');\r\n }", "public function setRedirectDocument($value) { $this->_redirectDocument = $value; }", "public function setDocument(Document $document): void\n {\n $this->document = $document;\n }", "public function setLienDocument(?string $lienDocument): DeclarationCafat {\n $this->lienDocument = $lienDocument;\n return $this;\n }", "function document_set ($id_document, $c=false) {\n\n\t// champs normaux\n\t$champs = array();\n\tforeach (array(\n\t\t'titre', 'descriptif', 'date', 'taille', 'largeur','hauteur','mode','credits',\n\t\t'fichier','distant','extension', 'id_vignette',\n\t ) as $champ)\n\t\tif (($a = _request($champ,$c)) !== null)\n\t\t\t$champs[$champ] = $a;\n\n\t// Si le document est publie, invalider les caches et demander sa reindexation\n\t$t = sql_getfetsel(\"statut\", \"spip_documents\", 'id_document='.intval($id_document));\n\tif ($t == 'publie') {\n\t\t$invalideur = \"id='id_document/$id_document'\";\n\t\t$indexation = true;\n\t}\n\t\n\t$ancien_fichier = \"\";\n\t// si le fichier est modifie, noter le nom de l'ancien pour faire le menage\n\tif (isset($champs['fichier'])){\n\t\t$ancien_fichier = sql_getfetsel('fichier','spip_documents','id_document='.intval($id_document));\n\t}\n\n\tinclude_spip('inc/modifier');\n\tmodifier_contenu('document', $id_document,\n\t\tarray(\n\t\t\t'invalideur' => $invalideur,\n\t\t\t'indexation' => $indexation\n\t\t),\n\t\t$champs);\n\n\t// nettoyer l'ancien fichier si necessaire\n\tif ($champs['fichier'] // un plugin a pu interdire la modif du fichier en virant le champ\n\t AND $ancien_fichier // on avait bien note le nom du fichier avant la modif\n\t AND $ancien_fichier!==$champs['fichier'] // et il a ete modifie\n\t AND @file_exists($f = get_spip_doc($ancien_fichier)))\n\t \tspip_unlink($f);\n\n\t// Changer le statut du document ?\n\t// le statut n'est jamais fixe manuellement mais decoule de celui des objets lies\n\tif(instituer_document($id_document,array('parents'=>_request('parents',$c),'ajout_parents'=>_request('ajout_parents',$c)))) {\n\n\t\t//\n\t\t// Post-modifications\n\t\t//\n\t\n\t\t// Invalider les caches\n\t\tinclude_spip('inc/invalideur');\n\t\tsuivre_invalideur(\"id='id_document/$id_document'\");\t\n\t}\n\n}", "private function setContent()\n {\n $this->setTag();\n $this->openRoot();\n $this->setParam(ModulesInterface::KEY_NAME, ApiInterface::RAML_TYPE_STRING, ucfirst($this->generator->version));\n $this->setParam(ConfigInterface::ATTRIBUTES_CASE, ApiInterface::RAML_TYPE_STRING, ConfigInterface::DEFAULT_CASE);\n $this->setQueryParams();\n $this->setTrees();\n $this->setJwtContent();\n $this->setConfigEntities();\n $this->closeRoot();\n }", "function setDocumentID($iNewValue) {\n\t\t$this->iDocumentID = $iNewValue;\n\t}", "protected function initDocument() {\n\t\tif ($this->format !== 'html') return;\n\t\t$this->initFileLoader();\n\t\t$config\t= $this->generateConfigData();\n\t\t$doc\t= Document::get();\n\t\tif (!isset($config)) {\n\t\t\treturn;\n\t\t}\n\t\tforeach ($config['meta'] as $arr) {\n\t\t\t$doc->addMetaTag($arr);\n\t\t}\n\t\tforeach ($config['css'] as $path) {\n\t\t\t$this->appendFile($doc, $path, \"css\");\n\t\t}\n\t\tforeach ($config['js'] as $path) {\n\t\t\t$this->appendFile($doc, $path, \"js\");\n\t\t}\n\t\tif (isset($config['favicon'])) {\n\t\t\t$doc->addFavicon($config['favicon']['href']);\n\t\t}\n\t}", "public function getLienDocument() {\n return $this->lienDocument;\n }", "public function getLienDocument() {\n return $this->lienDocument;\n }", "public function getLienDocument() {\n return $this->lienDocument;\n }", "public function getLienDocument() {\n return $this->lienDocument;\n }", "public function Documentos()\r\n\t\t{\r\n\t\t\t\r\n\t\t}", "public function setHandle(XMLDocument $document) {\n\n\t\t$this->document = $document;\n\t}", "public function setDocumento( $documento ){\n\t\t\t$this->documento = $documento;\n\t\t}", "function setDocFileName($docfile)\n\t\t{\n\t\t\t$this->docFile=$docfile;\n\t\t\tif(!preg_match(\"/\\.doc$/i\",$this->docFile))\n\t\t\t\t$this->docFile.=\".doc\";\n\t\t\treturn;\t\t\n\t\t}", "public function __construct($doc) {\n $this->doc = $doc;\n }", "protected function setContent() {}", "abstract function setContent();", "public function setDocumento($documento){\n\t\t$this->documento = $documento;\n\t}", "public function setDocumentTutorial($contents)\n {\n $this->projectinfo['docToutorial'] = $contents;\n }", "protected\tfunction\tsetDefinition() {}", "protected\tfunction\tsetDefinition() {}", "public function setDocProp($prop,$val){\n\t\t$this->doc_prop[$prop] = $val;\n\t}", "function xh_createDocument()\r\n\t{\r\n\t}", "function setDOMDocument(&$doc) \n\t{\t\n $this->_helper->setDOMDocument($doc);\n\t\t$this->type = null;\n\t\t$this->title = null;\t\t\n\t\t$this->datasources = new VDBIQueryType_Datasources($this);\n\t\t$this->tables = new VDBIQueryType_Tables($this);\n\t\t$this->table_relationships = new VDBIQueryType_RelationshipGroupList($this);\t\t\n\t\t$this->input_filters = new VDBIQueryType_FilterList($this,'input_filters');\n\t\t$this->summary_options = new VDBIQueryType_SummaryOptions($this);\n\t\t$this->groupings = new VDBIQueryType_FieldList($this,'groupings');\t\t\t\t\n\t\t$this->output_filters = new VDBIQueryType_FilterList($this,'output_filters');\n\t\t$this->labels = new VDBIQueryType_LabelList($this);\n\t\t$this->values = new VDBIQueryType_ValueList($this);\t\t\t\n\t}", "protected function initDocumentTemplate()\n {\n $bodyDataAttributes = array_merge(\n $this->getBParamDataAttributes(),\n $this->getBodyTagAttributes()\n );\n foreach ($bodyDataAttributes as $attributeName => $value) {\n $this->doc->bodyTagAdditions .= ' ' . $attributeName . '=\"' . htmlspecialchars($value) . '\"';\n }\n\n // unset the default jumpToUrl() function as we ship our own\n unset($this->doc->JScodeArray['jumpToUrl']);\n }", "public function setDocumentData($data)\n {\n $this->id = $data['_id'];\n\n if (isset($data['rev'])) {\n $this->data['fields']['rev'] = (int) $data['rev'];\n }\n if (isset($data['cover'])) {\n $this->data['fields']['cover'] = (string) $data['cover'];\n }\n if (isset($data['wiki_id'])) {\n $this->data['fields']['wiki_id'] = (int) $data['wiki_id'];\n }\n if (isset($data['title'])) {\n $this->data['fields']['title'] = (string) $data['title'];\n }\n if (isset($data['html_cache'])) {\n $this->data['fields']['html_cache'] = (string) $data['html_cache'];\n }\n if (isset($data['content'])) {\n $this->data['fields']['content'] = (string) $data['content'];\n }\n if (isset($data['tags'])) {\n $this->data['fields']['tags'] = $data['tags'];\n }\n if (isset($data['comment_tags'])) {\n $this->data['fields']['comment_tags'] = $data['comment_tags'];\n }\n if (isset($data['model'])) {\n $this->data['fields']['model'] = (string) $data['model'];\n }\n if (isset($data['has_video'])) {\n $this->data['fields']['has_video'] = (int) $data['has_video'];\n }\n if (isset($data['like_num'])) {\n $this->data['fields']['like_num'] = (int) $data['like_num'];\n }\n if (isset($data['dislike_num'])) {\n $this->data['fields']['dislike_num'] = (int) $data['dislike_num'];\n }\n if (isset($data['watched_num'])) {\n $this->data['fields']['watched_num'] = (int) $data['watched_num'];\n }\n if (isset($data['admin_id'])) {\n $this->data['fields']['admin_id'] = (int) $data['admin_id'];\n }\n if (isset($data['do_date'])) {\n $date = new \\DateTime(); $date->setTimestamp($data['do_date']->sec); $this->data['fields']['do_date'] = $date;\n }\n if (isset($data['source'])) {\n $this->data['fields']['source'] = $data['source'];\n }\n if (isset($data['tvsou_id'])) {\n $this->data['fields']['tvsou_id'] = (string) $data['tvsou_id'];\n }\n if (isset($data['first_letter'])) {\n $this->data['fields']['first_letter'] = (string) $data['first_letter'];\n }\n if (isset($data['douban_id'])) {\n $this->data['fields']['douban_id'] = (string) $data['douban_id'];\n }\n if (isset($data['verify'])) {\n $this->data['fields']['verify'] = (int) $data['verify'];\n }\n if (isset($data['created_at'])) {\n $date = new \\DateTime(); $date->setTimestamp($data['created_at']->sec); $this->data['fields']['created_at'] = $date;\n }\n if (isset($data['updated_at'])) {\n $date = new \\DateTime(); $date->setTimestamp($data['updated_at']->sec); $this->data['fields']['updated_at'] = $date;\n }\n\n\n \n }", "public function editAction()\n {\n $traineedocId = $this->getRequest()->getParam('id');\n $traineedoc = $this->_initTraineedoc();\n if ($traineedocId && !$traineedoc->getId()) {\n $this->_getSession()->addError(\n Mage::helper('bs_traineedoc')->__('This trainee document no longer exists.')\n );\n $this->_redirect('*/*/');\n return;\n }\n $data = Mage::getSingleton('adminhtml/session')->getTraineedocData(true);\n if (!empty($data)) {\n $traineedoc->setData($data);\n }\n Mage::register('traineedoc_data', $traineedoc);\n $this->loadLayout();\n $this->_title(Mage::helper('bs_traineedoc')->__('Trainee Document'))\n ->_title(Mage::helper('bs_traineedoc')->__('Trainee Document'));\n if ($traineedoc->getId()) {\n $this->_title($traineedoc->getTraineeDocName());\n } else {\n $this->_title(Mage::helper('bs_traineedoc')->__('Add trainee document'));\n }\n if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {\n $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);\n }\n $this->renderLayout();\n }", "public function __construct() {\n $this->modelData = new MasterDocumentation();\n $this->setTitle(lang('master.documentation'));\n $this->setBreadCrumb(array(lang('master.master') => \"\", lang('master.documentation') => URL()));\n $this->search_filter = array(\"code\" => lang('general.code'), \"name\" => lang('general.name'));\n $this->indexUrl = IURLConstant::DOCUMENTATION_INDEX_URL;\n $this->unsetAutoData = array('description');\n// $this->issetAutoData = array('documentation_image_url'=>lang('general.documentation_image_url'));\n $this->autoData = true;\n $this->setAutoCrud();\n\n\n parent::__construct();\n }", "public function setDoc($doc): Pessoa\n {\n $this->doc = $doc;\n return $this;\n }", "function setDocumentLang($lang)\n {\n $this->documentLang = $lang;\n }", "public function startDocument($mode = 'sitemap');", "function setDocumentFieldID($iNewVale) {\n\t\t$this->iDocumentFieldID = $iNewValue;\n\t}", "public function testSetInterdirePubliDocWeb() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdirePubliDocWeb(true);\n $this->assertEquals(true, $obj->getInterdirePubliDocWeb());\n }", "public function init()\n {\n parent::init();\n\n // **************************\n // Initializing\n // **************************\n /** @var \\TYPO3\\CMS\\Backend\\Template\\DocumentTemplate doc */\n $this->doc = GeneralUtility::makeInstance('TYPO3\\\\CMS\\Backend\\\\Template\\\\DocumentTemplate');\n $this->doc->setModuleTemplate('EXT:restructure_redirect/mod/redirects.html');\n\n $this->doc->form = '<form action=\"\" method=\"post\">';\n }", "protected function setSourceDocument(): void\n {\n $jsonArray = $this->requestHandler->getRequestBodyArray();\n $this->requestSource = $this->ser($jsonArray);\n }", "public function doc()\n {\n }", "public function setContent()\n {\n }", "protected function setUp() {\n \n $this->object = new Document($this->docType, $this->docTitle, $this->docExtension, $this->docSize, $this->docUploadDate);\n }", "function __construct(&$doc) {\r\n\t\t\tparent::__construct('a',$doc);\r\n\t\t}", "public function setDocuments($documents) {\n $this->_documents = $documents;\n }", "protected function initDocumentTemplate() {}", "protected function initDocumentTemplate() {}", "protected function initDocumentTemplate() {}", "protected function initDocumentTemplate() {}", "private function setLanguage()\n\t{\n\t\tif (isset($_GET['language']))\n\t\t\t$id_lang = (int)($_GET['language'])>0 ? $_GET['language'] : 0;\n\t\tif (!isset($id_lang))\n\t\t\t$id_lang = ($this->getIdByHAL());\n\t\t$this->lang = $this->xml_file->lang[(int)($id_lang)];\n\t}", "public function setDocument($document)\n {\n if (is_array($document) || is_object($document)) {\n $this->document = json_encode($document);\n }\n\n return $this;\n }", "public function setDocBlock($docBlock)\n {\n $this->docBlock = $docBlock;\n }", "public function __construct()\n {\n if (1 == func_num_args()) {\n $this->doc = func_get_arg(0);\n }\n }", "function initialize () {\n $this->set_openingtag(\"<OL[attributes]>\");\n\t$this->set_closingtag(\"</OL>\");\n }", "public function document(string $document)\n {\n $this->document = $document;\n\n return $this;\n }", "public function __construct()\n\t{\n\t\t$doc = FDocument::getConfig();\n\t\t$this->base_dir = $doc->get('base_dir').$this->baseTemplate.DS.$doc->get('template');\n\t\t$this->base_url = $doc->get('base').$this->baseTemplate.DS.$doc->get('template').DS;\n\t\t$this->title\t= $doc->get('title');\n\t}", "public function setDocument($document)\n {\n $this->document = $document;\n\n return $this;\n }", "public function openDocument();", "public function init() {\n $this->xml = new DomDocument($this->version, $this->encoding);\n }", "public function SetDocument(SetDocument $parameters)\n {\n return $this->__soapCall('SetDocument', array($parameters));\n }", "function footnote_open() {\n\n // move current content to store and record footnote\n $this->store = $this->doc;\n $this->doc = '';\n }", "public function setId($docId);", "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 setDocumentData($data, $clean = false)\n {\n if ($clean) {\n $this->data = array();\n $this->fieldsModified = array();\n }\n\n if (isset($data['_query_hash'])) {\n $this->addQueryHash($data['_query_hash']);\n }\n if (isset($data['_id'])) {\n $this->setId($data['_id']);\n $this->setIsNew(false);\n }\n if (isset($data['artist'])) {\n $this->data['fields']['artist'] = (string) $data['artist'];\n } elseif (isset($data['_fields']['artist'])) {\n $this->data['fields']['artist'] = null;\n }\n if (isset($data['title'])) {\n $this->data['fields']['title'] = (string) $data['title'];\n } elseif (isset($data['_fields']['title'])) {\n $this->data['fields']['title'] = null;\n }\n\n return $this;\n }", "public function SaveDocumentosFase() {\n\t\t\ttry {\n\t\t\t\t// Update any fields for controls that have been created\n\t\t\t\tif ($this->lstDOCUMENTOIdDOCUMENTOObject) $this->objDocumentosFase->DOCUMENTOIdDOCUMENTO = $this->lstDOCUMENTOIdDOCUMENTOObject->SelectedValue;\n\t\t\t\tif ($this->lstFASEIdFASEObject) $this->objDocumentosFase->FASEIdFASE = $this->lstFASEIdFASEObject->SelectedValue;\n\n\t\t\t\t// Update any UniqueReverseReferences (if any) for controls that have been created for it\n\n\t\t\t\t// Save the DocumentosFase object\n\t\t\t\t$this->objDocumentosFase->Save();\n\n\t\t\t\t// Finally, update any ManyToManyReferences (if any)\n\t\t\t} catch (QCallerException $objExc) {\n\t\t\t\t$objExc->IncrementOffset();\n\t\t\t\tthrow $objExc;\n\t\t\t}\n\t\t}", "public function setMyDocs($value)\n {\n return $this->set('MyDocs', $value);\n }", "public function createDocu() {\n $data = Input::all();\n if ($data[\"path\"] == \"\") {\n $validator = Validator::make($data, ['name' => 'required|max:255']);\n } else {\n $validator = Validator::make($data, ['name' => 'required|max:255', 'path' => 'required|max:255|unique:documents',]);\n }\n if ($validator->fails()) {\n return redirect('/document/new/')->withErrors($validator)->withInput();\n }\n\n $data[\"path\"] = \"/var/www/sphinx/\" . count(document::all()) . \"_\" . $data[\"name\"];\n\n $document = new document;\n\n $document->name = $data[\"name\"];\n $document->path = $data[\"path\"];\n $document->layout = $data[\"layout\"];\n $document->user_id = \\Auth::user()->id;\n $document->save();\n\n $this->createSphinxDoc($document->path, $document->name, \\Auth::user()->username);\n $this->changeRechte();\n $this->changeValueInConf(\"default\", $document->layout, $document->path);\n $this->changeValueInConf(\"#language = None\", \"language =\\\"de\\\"\", $document->path);\n $this->makeHTML($document->path);\n\n $this->addNewNews($document->id, 0, 1, \"Neues Dokument angelegt mit dem namen\" . $document->name);\n return redirect('/document/private/' . $document->id);\n }", "public function edit(Document $document)\n {\n //\n }", "public function edit(Document $document)\n {\n //\n }", "public function edit(Document $document)\n {\n //\n }", "public function edit(Document $document)\n {\n //\n }", "public function edit(Document $document)\n {\n //\n }", "function setDocumentTypeID($iNewValue) {\n\t\t$this->iDocumentTypeID = $iNewValue;\n\t}", "public function UpdateDocente() {\n\t\t\ttry {\n\t\t\t\t// Update any fields for controls that have been created\n\t\t\t\tif ($this->lstDocente) $this->objDocente->DocenteId = $this->lstDocente->SelectedValue;\n\n\t\t\t\tif ($this->txtCreateby) $this->objDocente->Createby = $this->txtCreateby->Text;\n\n\t\t\t\tif ($this->calCreated) $this->objDocente->Created = $this->calCreated->DateTime;\n\n\t\t\t\tif ($this->txtUpdateby) $this->objDocente->Updateby = $this->txtUpdateby->Text;\n\n\t\t\t\tif ($this->calUpdated) $this->objDocente->Updated = $this->calUpdated->DateTime;\n\n\t\t\t\tif ($this->txtActive) $this->objDocente->Active = $this->txtActive->Text;\n\n\n\t\t\t\t// Update any UniqueReverseReferences for controls that have been created for it\n\n\t\t\t} catch (QCallerException $objExc) {\n\t\t\t\t$objExc->IncrementOffset();\n\t\t\t\tthrow $objExc;\n\t\t\t}\n\t\t}", "function cl_conhistdoc() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"conhistdoc\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function saveAction()\n {\n if ($data = $this->getRequest()->getPost('traineedoc')) {\n try {\n $data = $this->_filterDates($data, array('trainee_doc_date'));\n\n $traineedoc = $this->_initTraineedoc();\n $traineedoc->addData($data);\n $traineeDocFileName = $this->_uploadAndGetName(\n 'trainee_doc_file',\n Mage::helper('bs_traineedoc/traineedoc')->getFileBaseDir(),\n $data\n );\n $traineedoc->setData('trainee_doc_file', $traineeDocFileName);\n $trainees = $this->getRequest()->getPost('trainees', -1);\n if ($trainees != -1) {\n $traineedoc->setTraineesData(Mage::helper('adminhtml/js')->decodeGridSerializedInput($trainees));\n }else {\n if(isset($data['hidden_trainee_id']) && $data['hidden_trainee_id'] > 0){\n $traineedoc->setTraineesData(\n array(\n $data['hidden_trainee_id'] => array(\n 'position' => \"\"\n )\n )\n );\n }\n }\n $traineedoc->save();\n\n $add = '';\n if($this->getRequest()->getParam('popup')){\n $add = '<script>window.opener.location.reload(); window.close()</script>';\n }\n\n Mage::getSingleton('adminhtml/session')->addSuccess(\n Mage::helper('bs_traineedoc')->__('Trainee Document was successfully saved %s', $add)\n );\n Mage::getSingleton('adminhtml/session')->setFormData(false);\n if ($this->getRequest()->getParam('back')) {\n $this->_redirect('*/*/edit', array('id' => $traineedoc->getId()));\n return;\n }\n $this->_redirect('*/*/');\n return;\n } catch (Mage_Core_Exception $e) {\n if (isset($data['trainee_doc_file']['value'])) {\n $data['trainee_doc_file'] = $data['trainee_doc_file']['value'];\n }\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n Mage::getSingleton('adminhtml/session')->setTraineedocData($data);\n $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));\n return;\n } catch (Exception $e) {\n Mage::logException($e);\n if (isset($data['trainee_doc_file']['value'])) {\n $data['trainee_doc_file'] = $data['trainee_doc_file']['value'];\n }\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_traineedoc')->__('There was a problem saving the trainee document.')\n );\n Mage::getSingleton('adminhtml/session')->setTraineedocData($data);\n $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));\n return;\n }\n }\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_traineedoc')->__('Unable to find trainee document to save.')\n );\n $this->_redirect('*/*/');\n }", "public function set_content() {\n\n\t\t$this->content = get_the_term_list( $this->data, $this->taxonomy, $this->prepend, $this->delimiter, $this->append );\n\t}", "public function __construct() {\n $this->_index = explode(\"\\n\", file_get_contents(ROOT . '/data/1984-chapter-1.txt'));\n }", "function setAsStartPageObject()\n\t{\n\t\tglobal $ilCtrl, $lng;\n\n\t\t$this->checkPermission(\"write\");\n\n\t\tif (!is_array($_POST[\"imp_page_id\"]) || count($_POST[\"imp_page_id\"]) != 1)\n\t\t{\n\t\t\tilUtil::sendInfo($lng->txt(\"wiki_select_one_item\"), true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->object->removeImportantPage((int) $_POST[\"imp_page_id\"][0]);\n\t\t\t$this->object->setStartPage(ilWikiPage::lookupTitle((int) $_POST[\"imp_page_id\"][0]));\n\t\t\t$this->object->update();\n\t\t\tilUtil::sendSuccess($this->lng->txt(\"msg_obj_modified\"),true);\n\t\t}\n\t\t$ilCtrl->redirect($this, \"editImportantPages\");\n\t}", "public function set_up()\n {\n $this->filePointer = fopen($this->filePointer, 'r');\n $this->xml = new XMLWriter();\n }", "function listcontent_open() {\n $this->doc .= '<div class=\"li\">';\n }", "function referentiel_get_liens_documents($activite_id, $userid, $context){\r\n// Cadre d'affichage des liens vers les documents\r\n $links_documents='';\r\n $s='';\r\n\t// Recuperer les documents associes à l'activite\r\n\t$records_document = referentiel_get_documents($activite_id);\r\n\tif ($records_document){\r\n // afficher\r\n\t\t// DEBUG\r\n\t\t// echo \"<br/>DEBUG<br />\\n\";\r\n\t\t// print_r($records_document);\r\n $nbressource=count($records_document);\r\n $s='<p><span class=\"bold\">'.\"\\n\";\r\n\t\tif ($nbressource>1){\r\n $s.=get_string('ressources_associees','referentiel',$nbressource);\r\n }\r\n else{\r\n $s.=get_string('ressource_associee','referentiel',$nbressource);\r\n }\r\n\r\n\r\n\t\t$compteur_document=0;\r\n\t\tforeach ($records_document as $record_d){\r\n if ($compteur_document%2==0)\r\n $bgcolor=\"#afefee\";\r\n else\r\n $bgcolor=\"#faefee\";\r\n\t\t\t$compteur_document++;\r\n \t$document_id=$record_d->id;\r\n\t\t\t$type_document = stripslashes($record_d->type_document);\r\n\t\t\t$description_document = stripslashes($record_d->description_document);\r\n\t\t\t$url_document = stripslashes($record_d->url_document);\r\n\t\t\t$ref_activite = $record_d->ref_activite;\r\n\t\t\t$cible_document = $record_d->cible_document; // fenêtre cible\r\n\t\t\t$etiquette_document = $record_d->etiquette_document; // etiquette\r\n\t\t\t// affichage de l'url\r\n\t\t\tif (preg_match('/moddata\\/referentiel/',$url_document)){\r\n\t\t\t // l'URL doit être transformée\r\n $data_r=new Object();\r\n\t\t\t\t$data_r->id = $document_id;\r\n\t\t\t\t$data_r->userid = $userid;\r\n\t\t\t\t$data_r->author = referentiel_get_user_info($userid);\r\n\t\t\t\t$data_r->url = $url_document;\r\n\t\t\t\t$data_r->filearea = 'document';\r\n \t\t$url_document = referentiel_m19_to_m2_file($data_r, $context, false, true);\r\n\t\t\t}\r\n\r\n\t\t\t$link=referentiel_affiche_url($url_document, $etiquette_document, $cible_document);\r\n\t\t\t$links_documents.='<li>'.$link.'</li>'.\"\\n\";\r\n }\r\n if ($links_documents){\r\n $s.= '<ul>'.$links_documents.'</ul>'.\"\\n\";\r\n }\r\n }\r\n $s.= '</p>'.\"\\n\";\r\n return $s;\r\n}", "public function getLsDoc(): LsDoc\n {\n return $this->lsDoc;\n }", "function initialize() {\n $this->set_openingtag(\"<DL[attributes]>\");\n $this->set_closingtag(\"</DL>\");\n }", "public function setNumberOfDocuments(int $value)\n {\n\n $this->numberofDocuments = $value;\n\n }", "public function _beforeSaveCallback(\\SetaPDF_Core_Document $document) {}", "public function setIdentifier(){\n\n \t$this->fileIdentifier = $this->getIdentifier();\n }" ]
[ "0.69454867", "0.68084556", "0.67812395", "0.6767501", "0.6765976", "0.66636884", "0.66559184", "0.65910226", "0.64469105", "0.63934296", "0.63872635", "0.62832487", "0.6121061", "0.60397047", "0.6028623", "0.59924865", "0.5944835", "0.5913729", "0.58659846", "0.58619297", "0.5740264", "0.56958276", "0.56958276", "0.56958276", "0.56958276", "0.5691088", "0.5660462", "0.55826783", "0.55279404", "0.5487702", "0.54706424", "0.5462722", "0.5427502", "0.54026365", "0.53828675", "0.53828675", "0.53688025", "0.5363134", "0.53503877", "0.5343015", "0.5336094", "0.5314471", "0.5314349", "0.5310661", "0.5305974", "0.5284245", "0.5283683", "0.524386", "0.5232109", "0.522712", "0.5224712", "0.5220088", "0.52048033", "0.5202006", "0.51938754", "0.5193596", "0.5193596", "0.5193596", "0.5193596", "0.51897347", "0.51810396", "0.5173281", "0.5166403", "0.51620936", "0.5159803", "0.51469254", "0.5145607", "0.51441234", "0.5122988", "0.5103198", "0.5100889", "0.50894654", "0.5059693", "0.50535625", "0.50441635", "0.5031377", "0.50111806", "0.5009381", "0.5009381", "0.5009381", "0.5009381", "0.5009381", "0.50044346", "0.49977663", "0.4993241", "0.49890554", "0.4987465", "0.49866754", "0.49841163", "0.49776012", "0.49721217", "0.497136", "0.49677804", "0.4961867", "0.49529618", "0.49463645", "0.4940703" ]
0.57789713
23
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 }", "public function testSetMontant4() {\n\n $obj = new Employes();\n\n $obj->setMontant4(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant4());\n }", "public function testSetMontant3() {\n\n $obj = new Employes();\n\n $obj->setMontant3(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant3());\n }", "abstract public function set();", "public function setMontantHtCde($montantHtCde) {\n $this->montantHtCde = $montantHtCde;\n return $this;\n }", "public function getMontacargasCiclosmant()\n {\n\n return $this->montacargas_ciclosmant;\n }", "public function testSetEtiqMasque() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setEtiqMasque(true);\n $this->assertEquals(true, $obj->getEtiqMasque());\n }", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "public function setMontantAnnuel1(?float $montantAnnuel1): Assurances {\n $this->montantAnnuel1 = $montantAnnuel1;\n return $this;\n }", "public function setDormant(bool $value = true): void\n {\n $this->dormant = $value;\n }", "public function set_motdepasse($_motdepasse)\n {\n $this->_motdepasse = $_motdepasse;\n\n return $this;\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 }", "function setNombre_materia($nombre_materia){\n\t\t\n\t\t$this->nombre_materia = $nombre_materia;\n\t\t$this->cambios = true;\n\t}", "function setVariable($v) {\n ecrire_meta('antispam_'.$v, $_POST[$v]);\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 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 setPromotion($first,$second)\n {\n $this->promotion->setPromotion($first,$second);\n //product Id for identify products\n $this->promotion->setProductId($this->id);\n }", "public function setCantidad($cantidad){\n\t\t $this->cantidad = $cantidad;\n\t\t }", "public function testSetSatisfactionGenerale() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setSatisfactionGenerale(\"satisfactionGenerale\");\n $this->assertEquals(\"satisfactionGenerale\", $obj->getSatisfactionGenerale());\n }", "public function setMetaboxes() {\n $metaboxTemp = new Metabox();\n\n $args = array(\n // ## Certification ##\n array(\n 'id' => self::MTB_CERT,\n 'title' => 'Certification Type',\n 'callback' => array($metaboxTemp, 'certification'),\n 'screen' => self::POST_TYPE_BADGES,\n 'context' => 'side',\n 'priority' => 'high',\n ),\n // ## Target ##\n array(\n 'id' => self::MTB_TARGET,\n 'title' => 'Target Type',\n 'callback' => array($metaboxTemp, 'target'),\n 'screen' => self::POST_TYPE_BADGES,\n 'context' => 'side',\n 'priority' => 'high',\n ),\n );\n\n $this->settings->loadMetaBoxes($args);\n }", "public function setMataPelajaran($mata_pelajaran);", "public function testSetGestionMajDim() {\n\n $obj = new Employes();\n\n $obj->setGestionMajDim(\"gestionMajDim\");\n $this->assertEquals(\"gestionMajDim\", $obj->getGestionMajDim());\n }", "public function testSetMtIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnAutre(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnAutre());\n }", "public function setAntagonist($value)\n {\n $this->antagonist = $value;\n }", "public function setMontantBudget($montantBudget) {\n $this->montantBudget = $montantBudget;\n return $this;\n }", "public function setPazientiMedico($pazienti) {\n $this->_pazienti = $pazienti;\n }", "public function set_nom($_nom) {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function __construct ($nomPersonnage) {\n parent::__construct($nomPersonnage);\n $this->_constitution = 250;\n }", "public function setMdp_admin($_mdp_admin){\n if(!is_string($_mdp_admin)){\n //on redirige\n header(\"Location:../vu/formulaire_connexion_admin.php\");\n return;\n }\n //on declare de la variable mdp_admin puis on appelle la varibale prive mdp_admin\n $this->_mdp_admin = $_mdp_admin;\n }", "public function set_dataGraf(){\n\n }", "private function setCalculate() {\n\n if($this->getType() == 2) {\n $det = new CalculateTwo($this->array);\n $this->result = $det->getResult();\n $this->rule = $det->getRule();\n $this->ruleExplanation = $det->getRuleExplanation();\n }\n elseif($this->getType() == 3) {\n\n $det = new CalculateThree($this->array);\n $this->result = $det->getResult();\n $this->rule = $det->getRule();\n $this->ruleExplanation = $det->getRuleExplanation();\n }\n else {\n $this->getPivot();\n $this->result = $this->setResult();\n $this->rule = $this->getPivotRule();\n $this->ruleExplanation = $this->process;\n }\n }", "public function getMontantTes() {\n return $this->montantTes;\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 testSetMtSalaireBrut() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtSalaireBrut(10.092018);\n $this->assertEquals(10.092018, $obj->getMtSalaireBrut());\n }", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\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 testSetValideMob() {\n\n $obj = new PointBonTrav();\n\n $obj->setValideMob(true);\n $this->assertEquals(true, $obj->getValideMob());\n }", "public function set( $atributo = '', $valor ) {\n $this->$atributo = $atributo;\n return $this;\n }", "public function setmnem($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->mnem !== $v) {\n $this->mnem = $v;\n $this->modifiedColumns[] = ActionTypePeer::MNEM;\n }\n\n\n return $this;\n }", "public function setMateria($value){\n\t\tif($this->validateAlphanumeric($value,1,50)){\n\t\t\t$this->materia = $value;\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function setMontantAnnuel5(?float $montantAnnuel5): Assurances {\n $this->montantAnnuel5 = $montantAnnuel5;\n return $this;\n }", "function SeteoCampos(){\n\t\t// Campos que van en en detalle, deben empezar su nombre con 'C'\n\t\t$this->addField('C1', 99999,\t0, 15);\n $this->addField('C2', 99999,\t0, 15);\n $this->addField('C3', 99999,\t0, 40);\t\t\n $this->addField('C4', 99999,\t0, 65);\t\t\n $this->addField('C5', 99999,\t0, 40);\n $this->addField('C6', 99999,\t0, 25);\t\t\n $this->addField('C7', 99999,\t0, 65);\t\t\n\t\t\n\t\t$this->addField('HG1', 0,\t0,\t160);\n\t\t\t\t\n\t}", "public function getMontantTtc() {\n return $this->montantTtc;\n }", "public function setMinDamage(){ $this->minDamage = 10; }", "function setMonth($m)\r\n {\r\n if($m < 1 || $m > 12) {\r\n $this->mes = 1;\r\n } else {\r\n $this->mes = $m;\r\n }\r\n }", "public function getMontant_vente()\n {\n return $this->montant_vente;\n }", "public function setTeksti($var){\n\t\t$this->teksti=$var;\n\t}", "public function testSetMtIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnLegale(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnLegale());\n }", "function setReal($real) {/*{{{*/\n $this->real = floatval($real);\n }", "public function promotional();", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "public function setMontantFixe(?bool $montantFixe): Assurances {\n $this->montantFixe = $montantFixe;\n return $this;\n }", "function CalculMontantArticle($numserie, $prix, $qte) {\n\n $this->article[$numserie]['montantHT'] += $prix * $qte;\n $this->article[$numserie]['montantTTC'] += $prix * $qte * (1 + ($this->TVA / 100));\n\n }", "public function testSetAutreStatut() {\n\n $obj = new AttestationCacm();\n\n $obj->setAutreStatut(\"autreStatut\");\n $this->assertEquals(\"autreStatut\", $obj->getAutreStatut());\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function getMvat()\n {\n return $this->mvat;\n }", "public function set_nom($_nom)\n {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function set_nom($_nom)\n {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function setMother($mother)\n {\n $this->mother = $mother;\n }", "public function setMag($mag_)\n\t{\n\t\t$s = $mag_ / $this->mag();\n\t\t$this->scale($s);\n\t}", "public function set_nom(string $_nom){\n $this->_nom = $_nom;\n\n return $this;\n }", "public function set_view_contato_anunciante(View_Contato_Anunciante $view_contato_anunciante) : void\r\n {\r\n self::$view_contato_anunciante = $view_contato_anunciante;\r\n }", "public function getMaitre()\n {\n return $this->maitre;\n }", "public function __conctruct($Matricule=\"\",$Nom=\"\",$Prenom=\"\",$Email=\"\",$Tel=\"\",$Naiss=\"\"){\n $this->Matricule=$Matricule;\n $this->Nom=$Nom;\n $this->Prenom=$Prenom;\n $this->Email=$Email;\n $this->Tel=$Tel;\n $this->Naiss=$Naiss;\n }", "public function setPromotion($promotion)\n {\n $this->promotion = $promotion;\n }", "public function testSetVrpMulticarte() {\n\n $obj = new Employes();\n\n $obj->setVrpMulticarte(true);\n $this->assertEquals(true, $obj->getVrpMulticarte());\n }", "protected function calidadImagenDefaut(){\r\n\t\t$this->calidadImagen=100;\r\n\t}", "public function setNumCivicoMedico($numCiv) {\n $this->_numeroCivico = $numCiv;\n }", "function FicheMemo()\n{\n\t$this->type_moi = \"fiche_memo\";\n}", "public function setTauxMaladie(?float $tauxMaladie): DeclarationCafat {\n $this->tauxMaladie = $tauxMaladie;\n return $this;\n }", "function set_gender($gender='*')\r\n{\r\n\t$this->gender = 0;\t\t// return\r\n\r\n\t// normalize gender\r\n\tif ( is_string($gender) )\r\n\t{\r\n\t\t$gender = substr($gender,0,1);\r\n\t\t$gender = strtoupper($gender);\r\n\t}\r\n\r\n\t// validity check\r\n\tif ( $gender != '*' && !in_array($gender, $this->VALID['GENDER']) )\r\n\t{\r\n\t\ttrigger_error('invalid value -- gender will be picked at random', E_USER_NOTICE);\r\n\t\t$gender = '*';\r\n\t}\r\n\t\r\n\t// random gender\r\n\tif ( $gender == '*' )\r\n\t{\r\n\t\t$this->gender = mt_rand(1,2);\r\n\t\t$this->_normalize_gender($this->gender);\r\n\t}\r\n\telseif ( is_numeric($gender) )\r\n\t{\r\n\t\t$this->gender = $gender;\r\n\t\t$this->_normalize_gender($this->gender);\r\n\t}\r\n\telse\r\n\t{\r\n\t\t$this->gender_name = $gender;\r\n\t\t$this->_normalize_gender($this->gender_name);\r\n\t}\r\n\r\n\treturn $this->gender;\r\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.50011915", "0.49936283", "0.499124", "0.4990946", "0.4988449", "0.49847767", "0.4953716", "0.49248168", "0.49236417", "0.49064016", "0.49033424", "0.4897875", "0.48670122", "0.484343", "0.48413828", "0.48058257", "0.4802434", "0.47947305", "0.4793249", "0.4792016", "0.47879463", "0.4784954", "0.47815752", "0.4777513", "0.477687", "0.47713277", "0.4767273", "0.47528318", "0.47415364", "0.4738603", "0.47311226", "0.4719397", "0.4711221", "0.47063386", "0.4694025", "0.46841535", "0.4681829", "0.46810776", "0.4677607", "0.46763182", "0.46692616", "0.4663704", "0.4658962", "0.4646661", "0.4632346", "0.4614824", "0.4608165", "0.46052024", "0.46016264", "0.4601527", "0.45961258", "0.4592825", "0.4589343", "0.45872036", "0.45870528", "0.45818552", "0.45818552", "0.45780647", "0.4577942", "0.45750564", "0.4575007", "0.4574546", "0.4571485", "0.4568256", "0.4566238", "0.45611084", "0.4560753", "0.45575076", "0.45567822", "0.45504898" ]
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; }", "public function setRealations(){\n\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 testSetMtIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnLegale(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnLegale());\n }", "public function testSetChargesMensuelles() {\n\n $obj = new Collaborateurs();\n\n $obj->setChargesMensuelles(10.092018);\n $this->assertEquals(10.092018, $obj->getChargesMensuelles());\n }", "public function setMontantAnnuel1(?float $montantAnnuel1): Assurances {\n $this->montantAnnuel1 = $montantAnnuel1;\n return $this;\n }", "abstract public function set();", "public function testSetMtPrimeForfait() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMtPrimeForfait(10.092018);\n $this->assertEquals(10.092018, $obj->getMtPrimeForfait());\n }", "public function testSetAnnulationChantier() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationChantier(true);\n $this->assertEquals(true, $obj->getAnnulationChantier());\n }", "public function set_nom($_nom) {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function testSetPrime1Mai() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime1Mai(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime1Mai());\n }", "public function setMereEnfant(?Enfant $mereEnfant): self\n {\n if ($mereEnfant === null && $this->mereEnfant !== null) {\n $this->mereEnfant->setMere(null);\n }\n\n // set the owning side of the relation if necessary\n if ($mereEnfant !== null && $mereEnfant->getMere() !== $this) {\n $mereEnfant->setMere($this);\n }\n\n $this->mereEnfant = $mereEnfant;\n\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 }", "public function testSetMtSalaireBrut() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtSalaireBrut(10.092018);\n $this->assertEquals(10.092018, $obj->getMtSalaireBrut());\n }", "function setMonth($m)\r\n {\r\n if($m < 1 || $m > 12) {\r\n $this->mes = 1;\r\n } else {\r\n $this->mes = $m;\r\n }\r\n }", "public function testSetTauxPensionCivile() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionCivile(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionCivile());\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_motdepasse($_motdepasse)\n {\n $this->_motdepasse = $_motdepasse;\n\n return $this;\n }", "public function testSetEtiqMasque() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setEtiqMasque(true);\n $this->assertEquals(true, $obj->getEtiqMasque());\n }", "function setMateria($materia){\n\t\t\n\t\t$this->materia = $materia;\n\t\t$this->cambios = true;\n\t}", "public function testSetMensualisation() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMensualisation(10.092018);\n $this->assertEquals(10.092018, $obj->getMensualisation());\n }", "public function testSetYaEuSaisieManuelle() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setYaEuSaisieManuelle(true);\n $this->assertEquals(true, $obj->getYaEuSaisieManuelle());\n }", "public function testSetIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLegale(true);\n $this->assertEquals(true, $obj->getIndemnLegale());\n }", "public function testSetMtPrime2Chantier() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMtPrime2Chantier(10.092018);\n $this->assertEquals(10.092018, $obj->getMtPrime2Chantier());\n }", "public function getMontant_vente()\n {\n return $this->montant_vente;\n }", "public function setTotRealise(?float $totRealise): PrepaPaie {\n $this->totRealise = $totRealise;\n return $this;\n }", "public function setMontantBudget($montantBudget) {\n $this->montantBudget = $montantBudget;\n return $this;\n }", "public function testSetNbHeureMois() {\n\n $obj = new Employes();\n\n $obj->setNbHeureMois(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMois());\n }", "public function testSetPrixKm() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixKm(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixKm());\n }", "private function setPrevMonth (DateTime $date)\n\t{\n\t\t$tempDate = clone $date;\n\t\t$this->prevMonth = $tempDate->sub(DateInterval::createFromDateString('1 month'));\n\t\tunset($tempDate);\n\t}", "public function testSetValideMob() {\n\n $obj = new PointBonTrav();\n\n $obj->setValideMob(true);\n $this->assertEquals(true, $obj->getValideMob());\n }", "public function testSetMinGaranti() {\n\n $obj = new Employes();\n\n $obj->setMinGaranti(10.092018);\n $this->assertEquals(10.092018, $obj->getMinGaranti());\n }", "public function testSetDernNumPrime() {\n\n $obj = new Employes();\n\n $obj->setDernNumPrime(10);\n $this->assertEquals(10, $obj->getDernNumPrime());\n }", "protected function setDateUtilisateur($date)\n{\n$this->dateUtilisateur = $date;\t\n}", "public function setMinistryAttribute($value)\n {\n $this->attributes['ministry'] = $value ? $value : null;\n }", "public function testSetMtIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnAutre(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnAutre());\n }", "public function set_nom($_nom)\n {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function set_nom($_nom)\n {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function setRise($rise) {}", "public function getMontantTva() {\n return $this->montantTva;\n }", "public function testSetModifChantier() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifChantier(\"modifChantier\");\n $this->assertEquals(\"modifChantier\", $obj->getModifChantier());\n }", "public function testSetMatricule() {\n\n $obj = new Employes();\n\n $obj->setMatricule(\"matricule\");\n $this->assertEquals(\"matricule\", $obj->getMatricule());\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function testSetPourcentEffectifDucs() {\n\n $obj = new Employes();\n\n $obj->setPourcentEffectifDucs(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentEffectifDucs());\n }", "function setMiles($new_miles)\n {\n $this->miles = $new_miles;\n }", "public function setMontantAnnuel5(?float $montantAnnuel5): Assurances {\n $this->montantAnnuel5 = $montantAnnuel5;\n return $this;\n }", "public function mort()\n\t{\n\t\tif ( $this->vie <= 0 ) {\n\t\t\techo $this->nom . \" est mort <br>\";\n\t\t} else {\n\t\t\techo $this->nom . \" est vivant ! <br>\";\n\t\t}\n\t}", "public function testSetInterdireModifDepot() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifDepot(true);\n $this->assertEquals(true, $obj->getInterdireModifDepot());\n }", "public function setSemestre($semestre) {\n $this->semestre = $semestre;\n }", "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 testSetMtPrime3Chantier() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMtPrime3Chantier(10.092018);\n $this->assertEquals(10.092018, $obj->getMtPrime3Chantier());\n }", "public function testSetMtIndemnSupp() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnSupp(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnSupp());\n }", "function setPremission(&$old, $new) {\n switch ($old) {\n case 0:\n break;\n case 1:\n if ($new == 0) {\n $old = (int) $new;\n }\n break;\n case -1:\n default:\n if ($old) {\n $old = (int) $new;\n }\n break;\n }\n }", "public function testSetEtiqDeFront() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setEtiqDeFront(10);\n $this->assertEquals(10, $obj->getEtiqDeFront());\n }", "public function setFlexiTare($flexiTare = null)\n {\n // validation for constraint: float\n if (!is_null($flexiTare) && !(is_float($flexiTare) || is_numeric($flexiTare))) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a float value, %s given', var_export($flexiTare, true), gettype($flexiTare)), __LINE__);\n }\n if (is_null($flexiTare) || (is_array($flexiTare) && empty($flexiTare))) {\n unset($this->flexiTare);\n } else {\n $this->flexiTare = $flexiTare;\n }\n return $this;\n }", "public function setMtPrev(?float $mtPrev): AffaireMtPrevisionnel {\n $this->mtPrev = $mtPrev;\n return $this;\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 setVille($valeur)\n {\n $this->ville = $valeur;\n }", "public function testSetPrimeHComplMaj() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHComplMaj(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHComplMaj());\n }", "public function testSetAllegParticulier() {\n\n $obj = new Employes();\n\n $obj->setAllegParticulier(true);\n $this->assertEquals(true, $obj->getAllegParticulier());\n }", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\n }", "public function testSetIndiceAff() {\n\n $obj = new Materiels();\n\n $obj->setIndiceAff(10);\n $this->assertEquals(10, $obj->getIndiceAff());\n }", "public function set()\n {\n if ( ! $this->value ) {\n $this->generate();\n }\n }", "public function &setMutualiteit($mutualiteit) {\n\t\t$this->notifyChanged(self::FIELD_MUTUALITEIT,$this->mutualiteit,$mutualiteit);\n\t\t$this->mutualiteit=$mutualiteit;\n\t\treturn $this;\n\t}", "public function setPersonne($valeur)\n {\n $this->id_personne = $valeur;\n }", "public function set_stupidly_fast($set = \\false)\n {\n }", "public function set_telefone($telefone) : void\n {\n try {\n $this->obj_contato_anunciante->set_telefone(Validador::Contato_Anunciante()::validar_telefone($telefone));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['telefone'] = \"erro\";\n }\n }", "public function testSetMasquerFournisseurs() {\n\n $obj = new Collaborateurs();\n\n $obj->setMasquerFournisseurs(true);\n $this->assertEquals(true, $obj->getMasquerFournisseurs());\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 testSetTauxCommission() {\n\n $obj = new Collaborateurs();\n\n $obj->setTauxCommission(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxCommission());\n }", "public function setChemin($chemin)\n {\n $this->chemin = $chemin;\n \n return $this;\n }" ]
[ "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.52712196", "0.52653813", "0.52320105", "0.52161413", "0.5193043", "0.51734585", "0.51546264", "0.51535994", "0.515164", "0.51457804", "0.51314765", "0.5124377", "0.5122234", "0.5119443", "0.51064086", "0.51060015", "0.5098978", "0.5096641", "0.5091648", "0.5084578", "0.5062501", "0.50607973", "0.50603306", "0.5059038", "0.5053061", "0.50406843", "0.50403154", "0.50329244", "0.50327456", "0.5029148", "0.5028807", "0.5023382", "0.50213265", "0.5011978", "0.50099814", "0.4997318", "0.4997318", "0.49965852", "0.4989095", "0.49754396", "0.49728408", "0.49665678", "0.49664629", "0.4962214", "0.49618533", "0.4957158", "0.49485496", "0.49450123", "0.49338517", "0.49235663", "0.49130106", "0.4908194", "0.49058813", "0.4894594", "0.48910522", "0.48877326", "0.4884674", "0.4874445", "0.48739016", "0.4868143", "0.4865321", "0.48636702", "0.48633996", "0.48551488", "0.48546717", "0.48509958", "0.48462552", "0.48446023", "0.48337555", "0.483317" ]
0.64189845
1
Set the mt cg euro ou franc.
public function setMtCgEuroOuFranc($mtCgEuroOuFranc) { $this->mtCgEuroOuFranc = $mtCgEuroOuFranc; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMtCgEuroOuFranc() {\n return $this->mtCgEuroOuFranc;\n }", "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}", "function set_gender($gender='*')\r\n{\r\n\t$this->gender = 0;\t\t// return\r\n\r\n\t// normalize gender\r\n\tif ( is_string($gender) )\r\n\t{\r\n\t\t$gender = substr($gender,0,1);\r\n\t\t$gender = strtoupper($gender);\r\n\t}\r\n\r\n\t// validity check\r\n\tif ( $gender != '*' && !in_array($gender, $this->VALID['GENDER']) )\r\n\t{\r\n\t\ttrigger_error('invalid value -- gender will be picked at random', E_USER_NOTICE);\r\n\t\t$gender = '*';\r\n\t}\r\n\t\r\n\t// random gender\r\n\tif ( $gender == '*' )\r\n\t{\r\n\t\t$this->gender = mt_rand(1,2);\r\n\t\t$this->_normalize_gender($this->gender);\r\n\t}\r\n\telseif ( is_numeric($gender) )\r\n\t{\r\n\t\t$this->gender = $gender;\r\n\t\t$this->_normalize_gender($this->gender);\r\n\t}\r\n\telse\r\n\t{\r\n\t\t$this->gender_name = $gender;\r\n\t\t$this->_normalize_gender($this->gender_name);\r\n\t}\r\n\r\n\treturn $this->gender;\r\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 testSetMtIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnAutre(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnAutre());\n }", "public function testSetMtIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnLegale(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnLegale());\n }", "public function testSetMtIndemnSupp() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnSupp(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnSupp());\n }", "public function setMtCpEuroOuFranc($mtCpEuroOuFranc) {\n $this->mtCpEuroOuFranc = $mtCpEuroOuFranc;\n return $this;\n }", "public function testSetMtIndemnLic() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnLic(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnLic());\n }", "public function setCC()\n {\n }", "function setCurrencyCode(){\n switch($this->Currency){\n case \"USD\": $this->CurrencyCode = 840;\n break;\n case \"EUR\": $this->CurrencyCode = 978;\n break;\n case \"AUD\": $this->CurrencyCode = 036;\n break;\n case \"CAD\": $this->CurrencyCode = 124;\n break;\n case \"GBP\": $this->CurrencyCode = 826;\n break;\n case \"JPY\": $this->CurrencyCode = 392;\n break;\n }// end switch\n }", "public function choMuonTien() {\n\t\treturn $this->getMoney();\n\t}", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "public function testSetSignAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignAutre(\"signAutre\");\n $this->assertEquals(\"signAutre\", $obj->getSignAutre());\n }", "private function SetCulture()\n {\n \tif($_SESSION['LANGUAGE'] == \"fr\" )\n \t{\n \t\t$this->lang_name_field = \"subscription_name_fr\";\n\t\t\t$this->lang_desc_field = \"subscription_desc_fr\";\n \t}\n \telse\n \t{\n \t\t$this->lang_name_field = \"subscription_name_en\";\n\t\t\t$this->lang_desc_field = \"subscription_desc_en\";\n \t}\n }", "public function setCurrency($c)\n {\n $this->setOption('currency',$c);\n }", "public function setGeneral() // Attribuer une valeur générale à un attaquant\n {\n $this->_general = round($this->attaqueCalcul());\n }", "private function setGenderValue()\n {\n $value = $this->getData(self::$genderAttributeCode);\n \n if (!$value) {\n $this->setCustomAttribute(self::$genderAttributeCode, 'N/A');\n return;\n }\n\n try {\n $attributeMetadata = $this->customerMetadata->getAttributeMetadata(self::$genderAttributeCode);\n $option = $attributeMetadata->getOptions()[$value];\n $this->setCustomAttribute(self::$genderAttributeCode, $option->getLabel());\n } catch (NoSuchEntityException $e) {\n $this->setCustomAttribute(self::$genderAttributeCode, 'N/A');\n }\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 setGlobalCurrencyCode($code);", "public function testSetCumBaseGmp() {\n\n $obj = new Employes();\n\n $obj->setCumBaseGmp(10.092018);\n $this->assertEquals(10.092018, $obj->getCumBaseGmp());\n }", "public function setIdUsuAlt($value,$options=array('required'=>true)){ \n $this->_data['id_usu_alt'] = new ZendT_Type_Number($value,array('numDecimal'=>null));\n if ($options['db'])\n $this->_data['id_usu_alt']->setValueFromDb($value);\n \n if (!$options['db']){\n \n }\n return $this;\n }", "public function testSetSignNom() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignNom(\"signNom\");\n $this->assertEquals(\"signNom\", $obj->getSignNom());\n }", "function fix_terr_unit (&$terr_unit, &$country) {\n\t\t//\tnew values\n\t\tswitch ($terr_unit) {\n\t\t\n\t\t\tcase 'WTF':\n\t\t\tcase 'XX':\n\t\t\t\t$terr_unit=null;\n\t\t\t\tbreak;\n\t\t\tcase 'GA':\n\t\t\t//\tWho even did this?\n\t\t\tcase 'Atlanta':\n\t\t\t\t$terr_unit='Georgia';\n\t\t\t\t$country='United States of America';\n\t\t\t\tbreak;\n\t\t\tcase 'SK':\n\t\t\t\t$terr_unit='Saskatchewan';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'BC':\n\t\t\t\t$terr_unit='British Columbia';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'ON':\n\t\t\t\t$terr_unit='Ontario';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'AB':\n\t\t\t\t$terr_unit='Alberta';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'QC':\n\t\t\t\t$terr_unit='Quebec';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'YK':\n\t\t\t\t$terr_unit='Yukon';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'NT':\n\t\t\t\t$terr_unit='Northwest Territories';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'NF':\n\t\t\t\t$terr_unit='Newfoundland and Labrador';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'MB':\n\t\t\t\t$terr_unit='Manitoba';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'CA':\n\t\t\t\t$terr_unit='California';\n\t\t\t\t$country='United States of America';\n\t\t\t\tbreak;\n\t\t\tcase 'NU':\n\t\t\t\t$terr_unit='Nunavut';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'NB':\n\t\t\t\t$terr_unit='New Brunswick';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'MA':\n\t\t\t\t$terr_unit='Massachusetts';\n\t\t\t\t$country='United States of America';\n\t\t\t\tbreak;\n\t\t\tdefault:break;\n\t\t\n\t\t}\n\t\n\t}", "public function setTempFahrenheit() {\n\t\t$this->unit = 'fahrenheit';\n\t}", "public function testSetCodeMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setCodeMotifRupture(\"codeMotifRupture\");\n $this->assertEquals(\"codeMotifRupture\", $obj->getCodeMotifRupture());\n }", "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}", "public function setFornecedor(CgmBase $oCgm) {\n $this->oCgm = $oCgm;\n }", "public function settingLocale() {}", "static function setEUmemberstates()\n\t{\n\t\tif (!isset ($GLOBALS[\"UIDvalidationATglobalvars\"][\"arr_eu_memberstates\"]) )\n\t\t{\n\t\t\t/***************************************************************************************************************************************************************************** */\n\t\t\t$GLOBALS[\"UIDvalidationATglobalvars\"][\"arr_eu_memberstates\"] = array( \n\t\t\t// QUELLE: http://ec.europa.eu/taxation_customs/tedb/taxSearch.html per 13.07.2015 (advanced search: Type of TAX = VAT)\n\t\t\t// Zusaetzliche Quellen: http://www.vatlive.com/vat-rates/european-vat-rates/eu-vat-rates/\n\t\t\t// Zusaetzliche Quellen: http://publications.europa.eu/code/de/de-370100.htm per 01.03.2013\n\t\t\t// Zusaetzliche Quellen: http://portal.wko.at/wk/format_detail.wk?angid=1&stid=730695&dstid=0&titel=EU-Beitritt%2CKroatiens%2Cam%2C1.7.2013\n\t\t\t// ISO\t\t\t\tLändername (Beitrittsjahr)\t\t\t\tVATstd,\tVATred,\tVATred2,\tVATred3\n\t\t\t\t'BE' => array ('Belgien (1952)',\t\t\t\t\t\t21.00,\t12.00,\t06.00\t\t\t\t\t\t),\n\t\t\t\t'BG' => array ('Bulgarien (2007)',\t\t\t\t\t\t20.00,\t09.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'DK' => array ('D&auml;nemark (1973)',\t\t\t\t\t25.00\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t'DE' => array ('Deutschland (1952)',\t\t\t\t\t19.00,\t07.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'EE' => array ('Estland (2004)',\t\t\t\t\t\t20.00,\t09.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'FI' => array ('Finnland (1995)',\t\t\t\t\t\t24.00,\t14.00,\t10.00\t\t\t\t\t\t),\n\t\t\t\t'FR' => array ('Frankreich (1952)',\t\t\t\t\t\t20.00,\t10.00,\t05.50,\t\t02.10\t\t\t),\n\t\t\t\t'GR' => array ('Griechenland (1981)',\t\t\t\t\t23.00,\t13.00,\t06.00\t\t\t\t\t\t),\t// ISO code\t//'EL' => array ('Griechenland (1981)',// EU code\n\t\t\t\t'HR' => array ('Kroatien (2013)',\t\t\t\t\t\t25.00,\t13.00,\t05.00\t\t\t\t\t\t),\n\t\t\t\t'IE' => array ('Irland (1973)',\t\t\t\t\t\t\t23.00,\t13.50,\t09.00, 04.80\t\t\t),\t// ISO Code\t//'IR' => array ('Irland (1973)',// EU Code\n\t\t\t\t'IT' => array ('Italien (1952)',\t\t\t\t\t\t22.00,\t10.00,\t04.00\t\t\t\t\t\t),\n\t\t\t\t'LV' => array ('Lettland (2004)',\t\t\t\t\t\t21.00,\t12.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'LT' => array ('Litauen (2004)',\t\t\t\t\t\t21.00,\t09.00,\t05.00\t\t\t\t\t\t),\n\t\t\t\t'LU' => array ('Luxemburg (1952)',\t\t\t\t\t\t17.00,\t14.00, 08.00, 03.00\t\t\t),\n\t\t\t\t'MT' => array ('Malta (2004)',\t\t\t\t\t\t\t18.00,\t07.00, 05.00 \t\t\t\t\t\t),\n\t\t\t\t'NL' => array ('Niederlande (1952)',\t\t\t\t\t21.00,\t06.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'PL' => array ('Polen (2004)',\t\t\t\t\t\t\t23.00,\t08.00,\t05.00\t\t\t\t\t\t),\t// ISO Code\t//'PO' => array ('Polen (2004)',// EU Code\n\t\t\t\t'PT' => array ('Portugal (1986)',\t\t\t\t\t\t23.00,\t13.00, 06.00\t\t\t\t\t\t),\n\t\t\t\t'RO' => array ('Rum&auml;nien (2007)',\t\t\t\t\t20.00,\t09.00,\t05.00\t\t\t\t\t\t),\n\t\t\t\t'SE' => array ('Schweden (1995)',\t\t\t\t\t\t25.00,\t12.00,\t06.00\t\t\t\t\t\t),\n\t\t\t\t'SK' => array ('Slowakei (2004)',\t\t\t\t\t\t20.00,\t10.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'SI' => array ('Slowenien (2004)',\t\t\t\t\t\t22.00,\t09.50\t\t\t\t\t\t\t\t),\n\t\t\t\t'ES' => array ('Spanien (1986)',\t\t\t\t\t\t21.00,\t10.00,\t04.00\t\t\t\t\t\t),\n\t\t\t\t'CZ' => array ('Tschechische Republik (2004)',\t\t\t21.00,\t15.00, 10.00\t\t\t\t\t\t),\n\t\t\t\t'HU' => array ('Ungarn (2004)',\t\t\t\t\t\t\t27.00,\t18.00,\t05.00\t\t\t\t\t\t),\t// ISO Code\t//'HR' => array ('Ungarn (2004)',// EU code\n\t\t\t\t'GB' => array ('Vereinigtes K&ouml;nigreich (1973)',\t20.00,\t05.00\t\t\t\t\t\t\t\t),\t// EU code\n\t\t\t\t'UK' => array ('Vereinigtes K&ouml;nigreich (1973)',\t20.00,\t05.00\t\t\t\t\t\t\t\t),\t// ISO Code sanitized to GB\n\t\t\t\t'CY' => array ('Zypern (2004)',\t\t\t\t\t\t\t19.00,\t09.00,\t05.00\t\t\t\t\t\t),\n// Lösung suchen:\t'PT-20' => array ('Autonome Region Azoren (PT)',\t\t18.00,\t09.00,\t04.00\t\t\t\t\t\t),\n\t\t\t/* Bewerberlaender: \n\t\t\t\t'ME' => array ('Montenegro (????)',\t\t\t\t\t\t00.00,\t00.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'IS' => array ('Island (????)',,\t\t\t\t\t\t00.00,\t00.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'MK' => array ('Ehem. jug. Republik Mazedonien (????)',\t00.00,\t00.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'RS' => array ('Serbien (????)',\t\t\t\t\t\t00.00,\t00.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'TR' => array ('T&uuml;rkei (????)',\t\t\t\t\t00.00,\t00.00\t\t\t\t\t\t\t\t),\n\t\t\t*/\n\t\t\t// INLAND !!!!\t\n\t\t\t\t'AT' => array ('&Ouml;sterreich (1995)',\t\t\t\t20.00, 13.00, 10.00\t\t\t\t\t\t),\n\t\t\t);\n\t\t\t/****************************************************************************************************************************************************************************** */\t\t\n\t\t\t$currentDate = date('Y-m-d h:i:s');\n\t\t\t// ACHTUNG: Zuweisungen und Semikolon!\n\t\t\t//if ($currentDate > '2016-01-01 00:00:00')\n\t\t\t//{\n\t\t\t//\t$GLOBALS[\"UIDvalidationATglobalvars\"][\"arr_eu_memberstates\"]['RO'] = array ('Rum&auml;nien (2007)',\t\t\t20.00,\t09.00,\t05.00\t);\n\t\t\t//}\n\t\t\t/****************************************************************************************************************************************************************************** */\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// EU memberstates array already exists!\n\t\t}\n\t}", "public function testSetCumBaseCsg() {\n\n $obj = new Employes();\n\n $obj->setCumBaseCsg(10.092018);\n $this->assertEquals(10.092018, $obj->getCumBaseCsg());\n }", "function set_random_us_phone($state='*')\r\n{\r\n\t// get random state\r\n\tif ( $state == '*' )\r\n\t{\r\n\t\t$_ZIP_DATA = $this->_get_random_zip_data();\r\n\t\t$state = $_ZIP_DATA[1];\r\n\t}\r\n\t\r\n\t// get random phone\r\n\t$phone = $this->_get_random_us_phone($state, 1);\r\n\t\r\n\t// set prop\r\n\t$this->phone = $phone;\r\n\treturn;\r\n}", "public function testSetSignMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignMotifRupture(\"signMotifRupture\");\n $this->assertEquals(\"signMotifRupture\", $obj->getSignMotifRupture());\n }", "public function getUf(){\n return $this->uf;\n }", "public function testSetMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setMotifRupture(\"motifRupture\");\n $this->assertEquals(\"motifRupture\", $obj->getMotifRupture());\n }", "public function testSetChargesMensuelles() {\n\n $obj = new Collaborateurs();\n\n $obj->setChargesMensuelles(10.092018);\n $this->assertEquals(10.092018, $obj->getChargesMensuelles());\n }", "public function testSetCodeFamilleFrn() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeFamilleFrn(\"codeFamilleFrn\");\n $this->assertEquals(\"codeFamilleFrn\", $obj->getCodeFamilleFrn());\n }", "public function setMagia6Attribute($value) {\n $this->attributes['magia6'] = $this->verificaAtributo($value, true);\n }", "public function setCustomGiftcardAmount($value);", "protected function convertirMayuscula(){\n $cadena=strtoupper($this->tipo);\n $this->tipo=$cadena;\n }", "public function getMtAutreDeduction(): ?float {\n return $this->mtAutreDeduction;\n }", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\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 }", "public function setGesamtmietenetto(\\MediaStoreNet\\OpenImmo\\Classes\\Gesamtmietenetto $gesamtmietenetto)\n {\n $this->gesamtmietenetto = $gesamtmietenetto;\n return $this;\n }", "public function getageEu()\n {\n return $this->age_eu;\n }", "public function setTauxRuammTr2(?float $tauxRuammTr2): DeclarationCafat {\n $this->tauxRuammTr2 = $tauxRuammTr2;\n return $this;\n }", "private function setLocale() {\n if ($this->_language == 'french')\n setlocale (LC_ALL, 'fr_FR.iso88591', 'fr_FR@euro', 'fr_FR', 'french', 'fra');\n else if ($this->_language == 'english')\n setlocale (LC_ALL, 'en_GB.iso88591', 'en_GB', 'english', 'eng');\n }", "public function getNumeroCgm() {\n return $this->iNumeroCgm;\n }", "public function getMaitre()\n {\n return $this->maitre;\n }", "function _normalize_gender($value)\r\n{\r\n\t// normalize gender\r\n\tif ( is_string($value) )\r\n\t{\r\n\t\t$gender = substr($value,0,1);\r\n\t\t$gender = strtoupper($value);\r\n\t}\r\n\t\r\n\t// validity check\r\n\tif ( !in_array($value, $this->VALID['GENDER']) )\r\n\t{\r\n\t\t$list = print_r($this->VALID['GENDER'],1);\r\n\t\ttrigger_error(\"invalid gender value -- must set to one of following: $list\", E_USER_WARNING);\r\n\t\treturn 0;\r\n\t}\r\n\t\r\n\t// set gender number and abbreviation\r\n\tif ( is_numeric($value) )\r\n\t{\r\n\t\t$this->gender = $value;\r\n\t\tif ( $value == $this->m_val ) $this->gender_name = $this->m_abr;\r\n\t\telse $this->gender_name = $this->f_abr;\r\n\t}\r\n\telse\r\n\t{\r\n\t\t$this->gender_name = $value;\r\n\t\tif ( $value == $this->m_abr ) $this->gender = $this->m_val;\r\n\t\telse $this->gender = $this->f_val;\r\n\t}\r\n\t\r\n\treturn;\r\n}", "public function setMiAttribute($value)\n {\n $this->attributes['mi'] = strtoupper(str_replace('.', '', trim($value)));\n }", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "protected function setCountry(): void\n {\n Config::set('butik.country', 'DE');\n }", "public function testSetGrilleAnc3() {\n\n $obj = new Employes();\n\n $obj->setGrilleAnc3(\"grilleAnc3\");\n $this->assertEquals(\"grilleAnc3\", $obj->getGrilleAnc3());\n }", "function setChambrehospi($chambre){\n $this->chambre = $chambre;\n }", "public function testSetPrixKm() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixKm(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixKm());\n }", "public function setBaseCurrencyCode($code);", "function setCC($cc){\n\t\t\t$this->cc = $cc;\n\t\t}", "public function getGender(){ // fungsi get untuk mengambil nilai dari gender\n printNumC();//\n return $this->gender;\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}", "public function setGesamtmietebrutto($gesamtmietebrutto)\n {\n $this->gesamtmietebrutto = $gesamtmietebrutto;\n return $this;\n }", "public function setMtAutreDeduction(?float $mtAutreDeduction): DeclarationCafat {\n $this->mtAutreDeduction = $mtAutreDeduction;\n return $this;\n }", "public function getMontant_taxe()\n {\n return $this->montant_taxe;\n }", "function utilgsmnumber($number){\n return $number;\n }", "public function setValue($value) {\n // this is an improvise\n // detect the currency by symbol,\n $currencySign = mb_substr($value, 0, 1, 'utf-8');\n // seperated out amount from currecy symbol, although this is not \n // correct but since data is missing from csv\n $this->value = (float) mb_substr($value, 1, mb_strlen($value) - 1, 'utf-8');\n $this->detectCurrencyBySign($currencySign);\n }", "protected function setOfferNature ()\n {\n $this->offerNature = $this->offer->rate_nature->value;\n }", "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 convertir($devisefrom, $montant)\n\n//verifie sie le montant est numerique sinon il me faut un nombre\n\n{\n\n if(!is_numeric(($montant))) return 'il me faut un nombre';\n if($devisefrom = \"EUR\"){\n $total=$montant*1.15023; //1 EUR =1,15023USD\n }\n else {\n $total=$montant*0.869310; //1 USD = 0,869310 EUR\n }\n return ($total);\n}", "public function setMateria($value){\n\t\tif($this->validateAlphanumeric($value,1,50)){\n\t\t\t$this->materia = $value;\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function set_atletas_sexo($atletas_sexo) {\n if ($atletas_sexo != 'M' && $atletas_sexo != 'm') {\n $this->atletas_sexo = 'F';\n } else {\n $this->atletas_sexo = 'M';\n }\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "public static function 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 changeFormat() {\r\n\t\tif($this->get_vl_jogo() != 0.0) {\r\n\t\t\treturn 'R$ '. number_format($this->get_vl_jogo(), 2, ',', '.');\r\n\t\t}\r\n\t\treturn 'Gratuito';\r\n\t\t\t\t\r\n\t}", "public function getGRUPO_ETNICO()\r\n {\r\n return $this->GRUPO_ETNICO;\r\n }", "private function setPremiumCode(){\n for($i = 0; $i < 7; $i++) {\n $this->premiumCode .= rand(1,9);\n };\n $this->discount = 10;\n }", "public function setMag($mag_)\n\t{\n\t\t$s = $mag_ / $this->mag();\n\t\t$this->scale($s);\n\t}", "function change_mobile_number() {\n\n\t\t$this->authentication->is_user_logged_in(TRUE, 'user/login');\n\n\t\tloadTemplate('user/add_mobile_number');\n\t}", "public function setGiftcardAmount($value);", "function valore_costo_maggiorazione_mio_gas($id_ordine,$id_user){\r\n \r\n $id_gas=id_gas_user($id_user);\r\n $maggiorazione_percentuale_mio_gas = valore_percentuale_maggiorazione_mio_gas($id_ordine,$id_gas);\r\n $valore_personale_attuale_netto_qarr = valore_totale_mio_ordine($id_ordine,$id_user);\r\n $valore_maggiorazione_mio_gas = ($valore_personale_attuale_netto_qarr / 100) * $maggiorazione_percentuale_mio_gas;\r\n return (float)$valore_maggiorazione_mio_gas;\r\n}", "public function getGRUPOETNICO()\r\n {\r\n return $this->GRUPO_ETNICO;\r\n }", "public function testSetCodeCentreUrssaf() {\n\n $obj = new Employes();\n\n $obj->setCodeCentreUrssaf(\"codeCentreUrssaf\");\n $this->assertEquals(\"codeCentreUrssaf\", $obj->getCodeCentreUrssaf());\n }", "function setGender( $gender )\n {\n\t if (is_int($gender)) {\n\t\t \n\t\t switch ( $gender ) {\n\t\t\t \n\t\t\t case RowManager_PersonManager::GENDER_MALE:\n\t\t\t \t$this->setValueByFieldName( 'gender_id', RowManager_PersonManager::GENDER_MALE );\n\t\t\t \tbreak;\n\t\t\t \t\n\t\t\t case RowManager_PersonManager::GENDER_FEMALE:\n\t\t\t \t$this->setValueByFieldName( 'gender_id', RowManager_PersonManager::GENDER_FEMALE );\n\t\t\t \tbreak;\n\t\t\t default:\n\t\t\t \t$this->setValueByFieldName( 'gender_id', RowManager_PersonManager::GENDER_UNKNOWN );\n\t\t }\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$gender = mb_convert_case($gender, MB_CASE_UPPER);\n\t \tswitch( $gender ) {\n\t\t \n\t\t \tcase 'M':\n\t\t \tcase 'MALE':\n \t\t\t$this->setValueByFieldName( 'gender_id', RowManager_PersonManager::GENDER_MALE );\n \t\t\tbreak;\n \t\tcase 'F':\n \t\tcase 'FEMALE':\n \t\t\t$this->setValueByFieldName( 'gender_id', RowManager_PersonManager::GENDER_FEMALE );\n \t\t\tbreak; \n\t\t \tdefault:\n\t\t\t \t$this->setValueByFieldName( 'gender_id', RowManager_PersonManager::GENDER_UNKNOWN ); \t\t\t \t\t\n \t\t}\n \t\t}\n \t\t\n return;\n }", "function _wpsc_fix_latvia_currency() {\n\t$country = new WPSC_Country( array(\n\t\t'isocode' => 'LV',\n\t\t'currency' => __( 'Euro', 'wpsc' ),\n\t\t'symbol' => __( '€', 'wpsc' ),\n\t\t'symbol_html' => __( '&#8364;', 'wpsc' ),\n\t\t'code' => __( 'EUR', 'wpsc' )\n\t) );\n\n}", "public function testSetSignQualite() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignQualite(10);\n $this->assertEquals(10, $obj->getSignQualite());\n }", "protected function setNameCurrencyMinMaxAmount()\n {\n $minAmount = &$this->in_min_amount;\n $maxAmount = &$this->in_max_amount;\n if ($this->flagAddNameCurrencyToMinMaxAmount) {\n $minAmount = $minAmount . ' ' . $this->from;\n $maxAmount = $maxAmount . ' ' . $this->from;\n }\n }", "public function testSetNumeroGrilleType() {\n\n $obj = new Employes();\n\n $obj->setNumeroGrilleType(10);\n $this->assertEquals(10, $obj->getNumeroGrilleType());\n }", "public function testSetSignPrenom() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignPrenom(\"signPrenom\");\n $this->assertEquals(\"signPrenom\", $obj->getSignPrenom());\n }", "function setNum_teleco($snum_teleco = '')\n {\n $this->snum_teleco = $snum_teleco;\n }", "protected function setInitCurrencyFormatter(){\n # $fmt = new NumberFormatter('en_US', NumberFormatter::CURRENCY);\n $fmt = new NumberFormatter('en_US', NumberFormatter::DECIMAL );\n $fmt->setAttribute(NumberFormatter::MIN_FRACTION_DIGITS ,2 );\n # $fmt->setAttribute(NumberFormatter::MAX_SIGNIFICANT_DIGITS ,25 );\n #$fmt->setAttribute(NumberFormatter::DECIMAL_SEPARATOR_SYMBOL ,'.');\n $fmt->setAttribute(NumberFormatter::MAX_FRACTION_DIGITS,100); #// by default some locales got max 2 fraction digits, so if there are more digi fractions these will be dropped\n $this->currencyFormatter=$fmt;\n }", "public function testSetCumPlafondGmp() {\n\n $obj = new Employes();\n\n $obj->setCumPlafondGmp(10.092018);\n $this->assertEquals(10.092018, $obj->getCumPlafondGmp());\n }", "protected function setAmount()\n {\n if ( ! isset( $_POST['amount'] ) ) {\n $this->error = true;\n $this->data['error']['amount'] = 'Please enter a donation amount.';\n return;\n }\n \n $amount = trim( $_POST['amount'] );\n\n // Remove illegal characters\n $regex = '/[[^0-9.]]/';\n $value = preg_replace( $regex, '', $amount );\n \n \tif ( $value && is_numeric( $value ) && $value > 0 ) {\n $value = floor( $value * 100 ); // Set the amount in cents.\n \t\t$this->data['amount'] = $value;\n \t} else {\n \t\t$this->data['amount'] = 0;\n \t}\n }", "public function getMvat()\n {\n return $this->mvat;\n }", "public function testSetCumBrutAl() {\n\n $obj = new Employes();\n\n $obj->setCumBrutAl(10.092018);\n $this->assertEquals(10.092018, $obj->getCumBrutAl());\n }", "function setDegats($degats) { $degats = (int) $degats;\r\n if ($degats >= 0 && $degats <= 100) {\r\n $this->_degats = $degats;\r\n }\r\n }", "public function random_value($name, $fm, $to) {\n\t\tif(isset($this->values[$name])) {\n\t\t\treturn $this->values[$name];\n\t\t}\n\t\t\n\t\t$r = mt_rand($fm, $to);\n\t\t$this->values[$name] = $r;\n\t\treturn $r;\n\t}", "public function testSetCodeFamille() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeFamille(\"codeFamille\");\n $this->assertEquals(\"codeFamille\", $obj->getCodeFamille());\n }", "public function set($value = null)\r\n {\r\n return parent::set((float)$value);\r\n }" ]
[ "0.68803185", "0.6214315", "0.54466486", "0.5380652", "0.5363453", "0.5346744", "0.52931046", "0.52660614", "0.52432215", "0.5242173", "0.51806986", "0.5153001", "0.51450866", "0.5100916", "0.503469", "0.5032983", "0.50122964", "0.5003443", "0.4996376", "0.49860215", "0.49691778", "0.4856369", "0.48475108", "0.4846435", "0.48360518", "0.48346397", "0.48251182", "0.48117343", "0.48065895", "0.48039022", "0.47871232", "0.47812864", "0.47675097", "0.47650462", "0.47566986", "0.4743147", "0.4727788", "0.4717724", "0.47077414", "0.4705193", "0.4696275", "0.46948326", "0.46932635", "0.46915928", "0.46915928", "0.46870357", "0.46743864", "0.46711904", "0.46604425", "0.4658081", "0.46448693", "0.46421394", "0.46365586", "0.46357423", "0.4628594", "0.4622832", "0.4618443", "0.46040705", "0.4602785", "0.45986718", "0.45954764", "0.45840883", "0.4582174", "0.45771515", "0.45753637", "0.4572349", "0.45572487", "0.45572016", "0.45468855", "0.45467153", "0.45441243", "0.45423108", "0.4531796", "0.4531796", "0.4530346", "0.45296288", "0.45294842", "0.45189703", "0.45153272", "0.45120052", "0.4511632", "0.45113426", "0.44945127", "0.4489999", "0.44859838", "0.44850463", "0.44793612", "0.44788244", "0.4475286", "0.44740993", "0.44709876", "0.44665116", "0.44630423", "0.4462778", "0.4459153", "0.44503263", "0.44490337", "0.44445315", "0.44429278", "0.44396353" ]
0.610418
2
Set the mt cp euro ou franc.
public function setMtCpEuroOuFranc($mtCpEuroOuFranc) { $this->mtCpEuroOuFranc = $mtCpEuroOuFranc; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMtCpEuroOuFranc() {\n return $this->mtCpEuroOuFranc;\n }", "public function setCP($cp) {\n\t\t$this->cp = $cp;\n\t}", "public function getMtCgEuroOuFranc() {\n return $this->mtCgEuroOuFranc;\n }", "function sapi_windows_cp_set(int $cp): bool {}", "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 testSetMtSalaireBrut() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtSalaireBrut(10.092018);\n $this->assertEquals(10.092018, $obj->getMtSalaireBrut());\n }", "public function setCC()\n {\n }", "public function setCapitaleSocialeClinica($cp) {\r\n $this->_capitaleSociale = $cp;\r\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 setMtCgEuroOuFranc($mtCgEuroOuFranc) {\n $this->mtCgEuroOuFranc = $mtCgEuroOuFranc;\n return $this;\n }", "public function testSetMtIndemnSupp() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnSupp(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnSupp());\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 testSetMtIndemnLic() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnLic(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnLic());\n }", "public function testSetTelPoste() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPoste(\"telPoste\");\n $this->assertEquals(\"telPoste\", $obj->getTelPoste());\n }", "function setCurrencyCode(){\n switch($this->Currency){\n case \"USD\": $this->CurrencyCode = 840;\n break;\n case \"EUR\": $this->CurrencyCode = 978;\n break;\n case \"AUD\": $this->CurrencyCode = 036;\n break;\n case \"CAD\": $this->CurrencyCode = 124;\n break;\n case \"GBP\": $this->CurrencyCode = 826;\n break;\n case \"JPY\": $this->CurrencyCode = 392;\n break;\n }// end switch\n }", "private function SetCulture()\n {\n \tif($_SESSION['LANGUAGE'] == \"fr\" )\n \t{\n \t\t$this->lang_name_field = \"subscription_name_fr\";\n\t\t\t$this->lang_desc_field = \"subscription_desc_fr\";\n \t}\n \telse\n \t{\n \t\t$this->lang_name_field = \"subscription_name_en\";\n\t\t\t$this->lang_desc_field = \"subscription_desc_en\";\n \t}\n }", "function _wpsc_fix_latvia_currency() {\n\t$country = new WPSC_Country( array(\n\t\t'isocode' => 'LV',\n\t\t'currency' => __( 'Euro', 'wpsc' ),\n\t\t'symbol' => __( '€', 'wpsc' ),\n\t\t'symbol_html' => __( '&#8364;', 'wpsc' ),\n\t\t'code' => __( 'EUR', 'wpsc' )\n\t) );\n\n}", "public function testSetCumProvCp() {\n\n $obj = new Employes();\n\n $obj->setCumProvCp(10.092018);\n $this->assertEquals(10.092018, $obj->getCumProvCp());\n }", "function fix_terr_unit (&$terr_unit, &$country) {\n\t\t//\tnew values\n\t\tswitch ($terr_unit) {\n\t\t\n\t\t\tcase 'WTF':\n\t\t\tcase 'XX':\n\t\t\t\t$terr_unit=null;\n\t\t\t\tbreak;\n\t\t\tcase 'GA':\n\t\t\t//\tWho even did this?\n\t\t\tcase 'Atlanta':\n\t\t\t\t$terr_unit='Georgia';\n\t\t\t\t$country='United States of America';\n\t\t\t\tbreak;\n\t\t\tcase 'SK':\n\t\t\t\t$terr_unit='Saskatchewan';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'BC':\n\t\t\t\t$terr_unit='British Columbia';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'ON':\n\t\t\t\t$terr_unit='Ontario';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'AB':\n\t\t\t\t$terr_unit='Alberta';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'QC':\n\t\t\t\t$terr_unit='Quebec';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'YK':\n\t\t\t\t$terr_unit='Yukon';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'NT':\n\t\t\t\t$terr_unit='Northwest Territories';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'NF':\n\t\t\t\t$terr_unit='Newfoundland and Labrador';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'MB':\n\t\t\t\t$terr_unit='Manitoba';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'CA':\n\t\t\t\t$terr_unit='California';\n\t\t\t\t$country='United States of America';\n\t\t\t\tbreak;\n\t\t\tcase 'NU':\n\t\t\t\t$terr_unit='Nunavut';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'NB':\n\t\t\t\t$terr_unit='New Brunswick';\n\t\t\t\t$country='Canada';\n\t\t\t\tbreak;\n\t\t\tcase 'MA':\n\t\t\t\t$terr_unit='Massachusetts';\n\t\t\t\t$country='United States of America';\n\t\t\t\tbreak;\n\t\t\tdefault:break;\n\t\t\n\t\t}\n\t\n\t}", "public function testSetCumMtCpPris() {\n\n $obj = new Employes();\n\n $obj->setCumMtCpPris(10.092018);\n $this->assertEquals(10.092018, $obj->getCumMtCpPris());\n }", "public function setCurrency($c)\n {\n $this->setOption('currency',$c);\n }", "public function setPostalCodeOrigin($cep)\n {\n $this->attributes[\"cep_origem\"] = (string)$cep;\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 setTempCelsius() {\n\t\t$this->unit = 'celsius';\n\t}", "public function choMuonTien() {\n\t\treturn $this->getMoney();\n\t}", "public function testSetMtIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnAutre(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnAutre());\n }", "public function setCPF($cpf) {\n\t\t//CNPJ passado ao invés de CPF\n\t\tif (strlen($cpf) == 14) return $this->setCNPJ($cpf);\n\t\t\n\t\t$this->checkoutTransparente['cliente']['senderCPF'] = $cpf;\n\t\t$this->checkoutTransparente['cartao']['creditCardHolderCPF'] = $cpf;\n\t\treturn $this;\n\t}", "public function setCpfAttribute($value) {\n $this->attributes['cpf'] = str_replace('.', '', $value);\n }", "public function testSetMtIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnLegale(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnLegale());\n }", "protected function setCc() {}", "public function testSetLocalPere() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLocalPere(\"localPere\");\n $this->assertEquals(\"localPere\", $obj->getLocalPere());\n }", "public function settingLocale() {}", "public function setPerPersonEquivFareCurrency(string $value): self\n {\n $this->PerPersonEquivFareCurrency = $value;\n\n return $this;\n }", "protected function setCountry(): void\n {\n Config::set('butik.country', 'DE');\n }", "public function testSetCumCpDus() {\n\n $obj = new Employes();\n\n $obj->setCumCpDus(10.092018);\n $this->assertEquals(10.092018, $obj->getCumCpDus());\n }", "function setCC($cc){\n\t\t\t$this->cc = $cc;\n\t\t}", "private function setEC(EC $ec) {\n $this->ec = $ec;\n }", "public function setCity($fv_city)\n {\n \tif(!empty($fv_city))\n \t{\n \t\treturn $this->fv_city = $fv_city;\t\n \t}\n $this->fv_error_message = $this->fv_error_message .'<br> - Ciudad '.ERROR_NULL;\n return $this->fv_city = null;\n }", "protected function setOfferNature ()\n {\n $this->offerNature = $this->offer->rate_nature->value;\n }", "public function testSetPrixKm() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixKm(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixKm());\n }", "public function setCpf($cpf)\n {\n $this->cpf = $cpf;\n }", "public function setCelular($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->celular !== $v) {\n\t\t\t$this->celular = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::CELULAR;\n\t\t}\n\n\t\treturn $this;\n\t}", "function set_cc($direcciones = array())\n\t{\n\t\t$this->cc = $direcciones;\n\t}", "public function setGlobalCurrencyCode($code);", "public function testSeteWsMdp() {\n\n $obj = new Collaborateurs();\n\n $obj->seteWsMdp(\"eWsMdp\");\n $this->assertEquals(\"eWsMdp\", $obj->geteWsMdp());\n }", "protected function convertirMayuscula(){\n $cadena=strtoupper($this->tipo);\n $this->tipo=$cadena;\n }", "public function setTelefono($_telefono)\n {\n $this->telefono = $_telefono;\n }", "public function setTempFahrenheit() {\n\t\t$this->unit = 'fahrenheit';\n\t}", "public function testSetCumProvCp1() {\n\n $obj = new Employes();\n\n $obj->setCumProvCp1(10.092018);\n $this->assertEquals(10.092018, $obj->getCumProvCp1());\n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "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 testSetDestinatairesCc() {\n\n $obj = new AppelsEnCours();\n\n $obj->setDestinatairesCc(\"destinatairesCc\");\n $this->assertEquals(\"destinatairesCc\", $obj->getDestinatairesCc());\n }", "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}", "public function testSetNbJourBaseCp() {\n\n $obj = new Employes();\n\n $obj->setNbJourBaseCp(10.092018);\n $this->assertEquals(10.092018, $obj->getNbJourBaseCp());\n }", "public function setCity($value) {\n\t\tself::$_city = $value;\n\t}", "private function setLocale() {\n if ($this->_language == 'french')\n setlocale (LC_ALL, 'fr_FR.iso88591', 'fr_FR@euro', 'fr_FR', 'french', 'fra');\n else if ($this->_language == 'english')\n setlocale (LC_ALL, 'en_GB.iso88591', 'en_GB', 'english', 'eng');\n }", "public function testSetCodeMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setCodeMotifRupture(\"codeMotifRupture\");\n $this->assertEquals(\"codeMotifRupture\", $obj->getCodeMotifRupture());\n }", "public function testSetCodeFamilleFrn() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeFamilleFrn(\"codeFamilleFrn\");\n $this->assertEquals(\"codeFamilleFrn\", $obj->getCodeFamilleFrn());\n }", "public function testSetCumMtCpPris1() {\n\n $obj = new Employes();\n\n $obj->setCumMtCpPris1(10.092018);\n $this->assertEquals(10.092018, $obj->getCumMtCpPris1());\n }", "public function testSetNumeroNoeudLocal() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setNumeroNoeudLocal(10);\n $this->assertEquals(10, $obj->getNumeroNoeudLocal());\n }", "public function testSetTauxCommission() {\n\n $obj = new Collaborateurs();\n\n $obj->setTauxCommission(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxCommission());\n }", "public function setTeksti($var){\n\t\t$this->teksti=$var;\n\t}", "public function setMarca($marca)\n {\n $this->marca = $marca;\n }", "function _wpsc_set_legacy_country_meta() {\n\tif ( $wpsc_country = WPSC_Countries::get_country( 'YU' ) ) {\n\t\t$wpsc_country->set( '_is_country_legacy', true );\n\t}\n\n\tif ( $wpsc_country = WPSC_Countries::get_country( 'AN' ) ) {\n\t\t$wpsc_country->set( '_is_country_legacy', true );\n\t}\n\n\tif ( $wpsc_country = WPSC_Countries::get_country( 'TP' ) ) {\n\t\t$wpsc_country->set( '_is_country_legacy', true );\n\t}\n}", "public function testSetTelPerso() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPerso(\"telPerso\");\n $this->assertEquals(\"telPerso\", $obj->getTelPerso());\n }", "public function testSetSignPrenom() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignPrenom(\"signPrenom\");\n $this->assertEquals(\"signPrenom\", $obj->getSignPrenom());\n }", "static function setEUmemberstates()\n\t{\n\t\tif (!isset ($GLOBALS[\"UIDvalidationATglobalvars\"][\"arr_eu_memberstates\"]) )\n\t\t{\n\t\t\t/***************************************************************************************************************************************************************************** */\n\t\t\t$GLOBALS[\"UIDvalidationATglobalvars\"][\"arr_eu_memberstates\"] = array( \n\t\t\t// QUELLE: http://ec.europa.eu/taxation_customs/tedb/taxSearch.html per 13.07.2015 (advanced search: Type of TAX = VAT)\n\t\t\t// Zusaetzliche Quellen: http://www.vatlive.com/vat-rates/european-vat-rates/eu-vat-rates/\n\t\t\t// Zusaetzliche Quellen: http://publications.europa.eu/code/de/de-370100.htm per 01.03.2013\n\t\t\t// Zusaetzliche Quellen: http://portal.wko.at/wk/format_detail.wk?angid=1&stid=730695&dstid=0&titel=EU-Beitritt%2CKroatiens%2Cam%2C1.7.2013\n\t\t\t// ISO\t\t\t\tLändername (Beitrittsjahr)\t\t\t\tVATstd,\tVATred,\tVATred2,\tVATred3\n\t\t\t\t'BE' => array ('Belgien (1952)',\t\t\t\t\t\t21.00,\t12.00,\t06.00\t\t\t\t\t\t),\n\t\t\t\t'BG' => array ('Bulgarien (2007)',\t\t\t\t\t\t20.00,\t09.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'DK' => array ('D&auml;nemark (1973)',\t\t\t\t\t25.00\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t'DE' => array ('Deutschland (1952)',\t\t\t\t\t19.00,\t07.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'EE' => array ('Estland (2004)',\t\t\t\t\t\t20.00,\t09.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'FI' => array ('Finnland (1995)',\t\t\t\t\t\t24.00,\t14.00,\t10.00\t\t\t\t\t\t),\n\t\t\t\t'FR' => array ('Frankreich (1952)',\t\t\t\t\t\t20.00,\t10.00,\t05.50,\t\t02.10\t\t\t),\n\t\t\t\t'GR' => array ('Griechenland (1981)',\t\t\t\t\t23.00,\t13.00,\t06.00\t\t\t\t\t\t),\t// ISO code\t//'EL' => array ('Griechenland (1981)',// EU code\n\t\t\t\t'HR' => array ('Kroatien (2013)',\t\t\t\t\t\t25.00,\t13.00,\t05.00\t\t\t\t\t\t),\n\t\t\t\t'IE' => array ('Irland (1973)',\t\t\t\t\t\t\t23.00,\t13.50,\t09.00, 04.80\t\t\t),\t// ISO Code\t//'IR' => array ('Irland (1973)',// EU Code\n\t\t\t\t'IT' => array ('Italien (1952)',\t\t\t\t\t\t22.00,\t10.00,\t04.00\t\t\t\t\t\t),\n\t\t\t\t'LV' => array ('Lettland (2004)',\t\t\t\t\t\t21.00,\t12.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'LT' => array ('Litauen (2004)',\t\t\t\t\t\t21.00,\t09.00,\t05.00\t\t\t\t\t\t),\n\t\t\t\t'LU' => array ('Luxemburg (1952)',\t\t\t\t\t\t17.00,\t14.00, 08.00, 03.00\t\t\t),\n\t\t\t\t'MT' => array ('Malta (2004)',\t\t\t\t\t\t\t18.00,\t07.00, 05.00 \t\t\t\t\t\t),\n\t\t\t\t'NL' => array ('Niederlande (1952)',\t\t\t\t\t21.00,\t06.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'PL' => array ('Polen (2004)',\t\t\t\t\t\t\t23.00,\t08.00,\t05.00\t\t\t\t\t\t),\t// ISO Code\t//'PO' => array ('Polen (2004)',// EU Code\n\t\t\t\t'PT' => array ('Portugal (1986)',\t\t\t\t\t\t23.00,\t13.00, 06.00\t\t\t\t\t\t),\n\t\t\t\t'RO' => array ('Rum&auml;nien (2007)',\t\t\t\t\t20.00,\t09.00,\t05.00\t\t\t\t\t\t),\n\t\t\t\t'SE' => array ('Schweden (1995)',\t\t\t\t\t\t25.00,\t12.00,\t06.00\t\t\t\t\t\t),\n\t\t\t\t'SK' => array ('Slowakei (2004)',\t\t\t\t\t\t20.00,\t10.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'SI' => array ('Slowenien (2004)',\t\t\t\t\t\t22.00,\t09.50\t\t\t\t\t\t\t\t),\n\t\t\t\t'ES' => array ('Spanien (1986)',\t\t\t\t\t\t21.00,\t10.00,\t04.00\t\t\t\t\t\t),\n\t\t\t\t'CZ' => array ('Tschechische Republik (2004)',\t\t\t21.00,\t15.00, 10.00\t\t\t\t\t\t),\n\t\t\t\t'HU' => array ('Ungarn (2004)',\t\t\t\t\t\t\t27.00,\t18.00,\t05.00\t\t\t\t\t\t),\t// ISO Code\t//'HR' => array ('Ungarn (2004)',// EU code\n\t\t\t\t'GB' => array ('Vereinigtes K&ouml;nigreich (1973)',\t20.00,\t05.00\t\t\t\t\t\t\t\t),\t// EU code\n\t\t\t\t'UK' => array ('Vereinigtes K&ouml;nigreich (1973)',\t20.00,\t05.00\t\t\t\t\t\t\t\t),\t// ISO Code sanitized to GB\n\t\t\t\t'CY' => array ('Zypern (2004)',\t\t\t\t\t\t\t19.00,\t09.00,\t05.00\t\t\t\t\t\t),\n// Lösung suchen:\t'PT-20' => array ('Autonome Region Azoren (PT)',\t\t18.00,\t09.00,\t04.00\t\t\t\t\t\t),\n\t\t\t/* Bewerberlaender: \n\t\t\t\t'ME' => array ('Montenegro (????)',\t\t\t\t\t\t00.00,\t00.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'IS' => array ('Island (????)',,\t\t\t\t\t\t00.00,\t00.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'MK' => array ('Ehem. jug. Republik Mazedonien (????)',\t00.00,\t00.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'RS' => array ('Serbien (????)',\t\t\t\t\t\t00.00,\t00.00\t\t\t\t\t\t\t\t),\n\t\t\t\t'TR' => array ('T&uuml;rkei (????)',\t\t\t\t\t00.00,\t00.00\t\t\t\t\t\t\t\t),\n\t\t\t*/\n\t\t\t// INLAND !!!!\t\n\t\t\t\t'AT' => array ('&Ouml;sterreich (1995)',\t\t\t\t20.00, 13.00, 10.00\t\t\t\t\t\t),\n\t\t\t);\n\t\t\t/****************************************************************************************************************************************************************************** */\t\t\n\t\t\t$currentDate = date('Y-m-d h:i:s');\n\t\t\t// ACHTUNG: Zuweisungen und Semikolon!\n\t\t\t//if ($currentDate > '2016-01-01 00:00:00')\n\t\t\t//{\n\t\t\t//\t$GLOBALS[\"UIDvalidationATglobalvars\"][\"arr_eu_memberstates\"]['RO'] = array ('Rum&auml;nien (2007)',\t\t\t20.00,\t09.00,\t05.00\t);\n\t\t\t//}\n\t\t\t/****************************************************************************************************************************************************************************** */\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// EU memberstates array already exists!\n\t\t}\n\t}", "public function testSetDernLieuTravail() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernLieuTravail(\"dernLieuTravail\");\n $this->assertEquals(\"dernLieuTravail\", $obj->getDernLieuTravail());\n }", "public function testSetSignNom() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignNom(\"signNom\");\n $this->assertEquals(\"signNom\", $obj->getSignNom());\n }", "public function setCountry($value) {\n\t\tself::$_country = $value;\n\t}", "public function setMarca($marca)\n {\n $this->marca = $marca;\n }", "public function setBaseCurrencyCode($code);", "public function setElUnit($elUnit) {\n $this->cElUnit = $elUnit;\n \n }", "protected function giveCity()\n {\n return \"Luanda minha CIDADE\";\n }", "public function setIndemniteCp(?float $indemniteCp): ChargesPaie {\n $this->indemniteCp = $indemniteCp;\n return $this;\n }", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "function setNum_teleco($snum_teleco = '')\n {\n $this->snum_teleco = $snum_teleco;\n }", "public function testSetMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setMotifRupture(\"motifRupture\");\n $this->assertEquals(\"motifRupture\", $obj->getMotifRupture());\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 setEAN ($ean){\n\t\tif($ean) {\n\t\t\t$this->Item['ean'] = substr($ean, 0,100);\n\t\t}\n\t}", "public function setMiAttribute($value)\n {\n $this->attributes['mi'] = strtoupper(str_replace('.', '', trim($value)));\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 setMarca($marca)\n {\n $this->marca = $marca;\n\n }", "public function set_admin_langguage($uid = 0)\n {\n $user_storage = $this->entityTypeManager->getStorage('user');\n \n if ($uid === 0) {\n $users = $user_storage->getQuery()->condition('preferred_admin_langcode', null, 'is')\n ->accessCheck()\n ->execute();\n } else {\n $users = [ $uid ];\n }\n \n foreach ($users as $uid) {\n $user = $user_storage->load($uid);\n $user_email = $user->get('mail')->__get('value');\n $user_pal = $user->get('preferred_admin_langcode')->__get('value');\n \n if ($user_pal === null) {\n $user = $user->set('preferred_admin_langcode', 'en');\n $user->save();\n $user_pal = $user->get('preferred_admin_langcode')->__get('value');\n }\n echo \"Admin language for $user_email set to $user_pal\\n\";\n }\n }", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "protected function setAmount()\n {\n if ( ! isset( $_POST['amount'] ) ) {\n $this->error = true;\n $this->data['error']['amount'] = 'Please enter a donation amount.';\n return;\n }\n \n $amount = trim( $_POST['amount'] );\n\n // Remove illegal characters\n $regex = '/[[^0-9.]]/';\n $value = preg_replace( $regex, '', $amount );\n \n \tif ( $value && is_numeric( $value ) && $value > 0 ) {\n $value = floor( $value * 100 ); // Set the amount in cents.\n \t\t$this->data['amount'] = $value;\n \t} else {\n \t\t$this->data['amount'] = 0;\n \t}\n }", "function set_random_us_phone($state='*')\r\n{\r\n\t// get random state\r\n\tif ( $state == '*' )\r\n\t{\r\n\t\t$_ZIP_DATA = $this->_get_random_zip_data();\r\n\t\t$state = $_ZIP_DATA[1];\r\n\t}\r\n\t\r\n\t// get random phone\r\n\t$phone = $this->_get_random_us_phone($state, 1);\r\n\t\r\n\t// set prop\r\n\t$this->phone = $phone;\r\n\treturn;\r\n}", "public function setCoti_total($coti_total){\n $this->coti_total = $coti_total;\n }", "public function setCentrosEmergencia(\\Atezate\\Model\\Raw\\CentrosEmergencia $data)\n {\n $this->_CentrosEmergencia = $data;\n\n $primaryKey = $data->getPrimaryKey();\n if (is_array($primaryKey)) {\n $primaryKey = $primaryKey['id'];\n }\n\n if (!is_null($primaryKey)) {\n $this->setCentrosEmergenciaId($primaryKey);\n }\n\n $this->_setLoaded('CubosIbfk6');\n return $this;\n }", "public function setIdUsuAlt($value,$options=array('required'=>true)){ \n $this->_data['id_usu_alt'] = new ZendT_Type_Number($value,array('numDecimal'=>null));\n if ($options['db'])\n $this->_data['id_usu_alt']->setValueFromDb($value);\n \n if (!$options['db']){\n \n }\n return $this;\n }", "public function testSetNiveauConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setNiveauConfidentialiteQp(\"niveauConfidentialiteQp\");\n $this->assertEquals(\"niveauConfidentialiteQp\", $obj->getNiveauConfidentialiteQp());\n }", "public function testSetCodeCentreUrssaf() {\n\n $obj = new Employes();\n\n $obj->setCodeCentreUrssaf(\"codeCentreUrssaf\");\n $this->assertEquals(\"codeCentreUrssaf\", $obj->getCodeCentreUrssaf());\n }", "public function setTelefonoClinica($tel) {\r\n $this->_telefono = $tel;\r\n }", "public function testSetEtblTel() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblTel(\"etblTel\");\n $this->assertEquals(\"etblTel\", $obj->getEtblTel());\n }", "function configure() {\n\t\tif($GLOBALS['TSFE']->config['config']['locale_all'])\n\t\t\tsetlocale(LC_ALL, $GLOBALS['TSFE']->config['config']['locale_all']);\n\n $this->pi_setPiVarDefaults();\n\t\t$this->pi_loadLL();\n\t}", "public function testSetParcCodeRemorque() {\n\n $obj = new Collaborateurs();\n\n $obj->setParcCodeRemorque(\"parcCodeRemorque\");\n $this->assertEquals(\"parcCodeRemorque\", $obj->getParcCodeRemorque());\n }", "public function setCf($_cf)\n {\n $this->cf = $_cf;\n }", "function toigian_ps()\n {\n $uscln = $this->USCLN($this->tuso, $this->mauso);\n $this->tuso = $this->tuso/$uscln;\n $this->mauso = $this->mauso/$uscln;\n }", "public function testSetPrixVente() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente());\n }", "private function setPostalCode()\n {\n \tif ( ! isset( $_POST['postal_code'] ) ) {\n \t\t$this->data['error']['postal_code'] = 'Please provide your postal or zip code.';\n $this->error = true;\n return;\n }\n \n $pc = trim( $_POST['postal_code'] );\n\t\n \n // Make sure the country is set\n if ( ! isset( $this->data['country'] ) ) {\n $pc_obj = new PostalCode( $pc );\n if ( $pc_obj->isValid() ) {\n $this->data['postal_code'] = $pc_obj->get();\n return;\n }\n \n $zip_obj = new ZipCode( $pc );\n if ( $zip_obj->isValid() ) {\n $this->data['postal_code'] = $zip_obj->get();\n return;\n }\n }\n \n if ( $this->data['country'] == 'CA' ) {\n $pc_obj = new PostalCode( $pc );\n if ( ! $pc_obj->isValid() ) {\n\t\t\t\t$this->data['error']['postal_code'] = 'Please provide a valid postal code.';\n $this->error = true;\n return;\n }\n $this->data['postal_code'] = $pc_obj->get();\n }\n elseif ( $this->data['country'] == 'US' ) {\n $zip_obj = new ZipCode( $pc );\n if ( ! $zip_obj->isValid() ) {\n\t\t\t\t$this->data['error']['postal_code'] = 'Please provide a valid zip code.';\n $this->error = true;\n return;\n }\n $this->data['postal_code'] = $zip_obj->get();\n }\n }" ]
[ "0.6561021", "0.61093473", "0.60807765", "0.5537584", "0.5362319", "0.5359126", "0.53511244", "0.5285817", "0.5281944", "0.5276307", "0.52614063", "0.5159761", "0.51539123", "0.5145291", "0.5144673", "0.5135426", "0.5125458", "0.51205313", "0.5103345", "0.506436", "0.5059493", "0.5052474", "0.50440824", "0.49962762", "0.49789378", "0.49650997", "0.49635726", "0.4957773", "0.4928819", "0.49278438", "0.4921981", "0.49191353", "0.49186435", "0.4907538", "0.48868197", "0.48751125", "0.48625797", "0.48422992", "0.4806508", "0.47838822", "0.47771192", "0.47762004", "0.47610354", "0.47564876", "0.4753378", "0.47489342", "0.47417742", "0.47357866", "0.47276554", "0.47223568", "0.47158363", "0.47075775", "0.46967033", "0.4678098", "0.4673505", "0.46669027", "0.46654212", "0.4663219", "0.46622893", "0.46528092", "0.4652316", "0.4648137", "0.4639923", "0.4635706", "0.46334127", "0.46328372", "0.46223783", "0.46120465", "0.4610746", "0.461028", "0.46101272", "0.4608073", "0.46034253", "0.46009064", "0.45852047", "0.45835254", "0.45831224", "0.4581327", "0.45764405", "0.45748013", "0.45724156", "0.4569522", "0.45684302", "0.45628473", "0.4562304", "0.45565674", "0.45549983", "0.45515156", "0.4549325", "0.4548365", "0.45476386", "0.4547026", "0.45435405", "0.45399302", "0.45376524", "0.45353958", "0.45314127", "0.4529079", "0.45290166", "0.45271063" ]
0.5743844
3
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 }", "public function setPower()\n {\n $this->_role->power = 200;\n }", "public function setAttackSpeed()\n {\n $this->_role->attack_speed = 2.50;\n }", "public function set_hth(){\n\t\t$gbr = array('image/png','image/JPG','image/jpeg','image/GIF','image/jpg','image/PNG','image/gif');\n\t\t$judul=$_POST['judul'];\n\t\t$isi=$_POST['teks'];\n\t\t$tm=date('Y-m-d',strtotime($_POST['tanggal_mulai']));\n\t\t$ta=date('Y-m-d',strtotime('+ 10 days'.$tm));\n\t\tif ($_POST['tanggal_akhir']!=\"\") {\n\t\t\t$ta=date('Y-m-d',strtotime($_POST['tanggal_akhir']));\n\t\t}\n\t\t\n\n\t\tif (in_array($_FILES['foto']['type'],$gbr)) {\n\t\t\t# code...\n\t\t\t$temp = explode(\".\", $_FILES['foto']['name']);\n\t\t\t$nambar = date('Hisdmy').'HTH.'.end($temp);\n\t\t\tmove_uploaded_file($_FILES['foto']['tmp_name'],'../File_BMKG/Iklim/Informasi_iklim/Informasi_HTH/'.$nambar);\n\n\t\t\techo $this->Cuaca_model->set_hth($judul,$isi, $nambar,$tm,$ta, $this->session->userdata('nama'),$this->waktu);\n\n\t\t}\n\t}", "public function __construct(){\n $this->name = \"hobbits\";\n $this->description = \"Shorter than dwarfs. Some are stronger, some faster\";\n $this->picture = \"hobbit.jpg\";\n $this->minmax_life = [60, 80];\n $this->minmax_power = [80, 95];\n $this->minmax_resistance = [60, 80];\n $this->minmax_speed = [80, 100];\n $this->proportions = [\n \"life\" => 1,\n \"power\" => 1,\n \"resistance\" => 1,\n \"speed\" => -1\n ];\n }", "function set_sizes($mw, $mh, $img_c = 1){\r\n\r\n $this->max_width = $mw;\r\n $this->max_height = $mh;\r\n $this->is_crop_img = $img_c;\r\n }", "public function setMinDamage(){ $this->minDamage = 10; }", "public function setHr($hr)\n {\n $this->hr = $hr;\n\n return $this;\n }", "abstract public function setMetas();", "function setSecondsElapsedHMS( $hour, $minute, $second )\r\n {\r\n $this->SecondsElapsed = ( ( $hour * 3600 ) + ( $minute * 60 ) + $second );\r\n setType( $this->SecondsElapsed, \"integer\" );\r\n }", "function setSwimMeet($swimmeet)\r\n {\r\n $this->_swimmeet = $swimmeet ;\r\n }", "public function H990()\n {\n $this->Sped->criarEncerramentoBloco('0', 'H990', \"H990\");\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}", "function getTotalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->totalHT));\n else return 0;\n }", "public function setRandomSpacing($min, $max)\n {\n $this->fixedSpacing = false;\n $this->minSpacing = (int) $min;\n $this->maxSpacing = $this->spacing = (int) $max;\n }", "public function setHeight($height) {\n $this->h = $height;\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 testSetHSurcroit() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHSurcroit(10.092018);\n $this->assertEquals(10.092018, $obj->getHSurcroit());\n }", "public function setAttackSpeed()\n {\n $this->_role->attack_speed = 0.75;\n }", "public function testSetPourcentRemuHor() {\n\n $obj = new Employes();\n\n $obj->setPourcentRemuHor(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentRemuHor());\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 testSetPrixKm() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixKm(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixKm());\n }", "public function getMontant_ht()\n {\n return $this->montant_ht;\n }", "public function set_bodylength($bodylength) {\n if ($bodylength < 0.5 || $bodylength > 2.75) {\n echo \"Bij deze lengte kunnen we geen BMI berekenen omdat het geen betekenis heeft\";\n } else {\n $this->bodylength = $bodylength;\n }\n }", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "public function setMink(Mink $mink)\n {\n $this->mink = $mink;\n }", "public function testSetHc() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHc(10.092018);\n $this->assertEquals(10.092018, $obj->getHc());\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 }", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "public function testSetTauxHSup() {\n\n $obj = new Employes();\n\n $obj->setTauxHSup(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxHSup());\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 setSnow( $snow ) {\n\n $this->snow = $snow;\n }", "public function testSetTds59() {\n\n $obj = new Employes();\n\n $obj->setTds59(\"tds59\");\n $this->assertEquals(\"tds59\", $obj->getTds59());\n }", "public function setSecond($second)\n {\n $this->second = $second;\n }", "function setSize($size) {\n\t\t$this->size = $size;\n\t}", "function SetFontSize($size)\n\t\t{\n\t\t\t/*if($this->FontSizePt==$size) return;\n\t\t\t$this->FontSizePt=$size;\n\t\t\t$this->FontSize=$size/$this->k;\n\t\t\tif($this->page>0)\n\t\t\t\t$this->_out(sprintf('BT /F%d %.2f Tf ET',$this->CurrentFont['i'],$this->FontSizePt));*/\n\t\t}", "public function setVoiture($voiture){\n $this->$voiture = $voiture;\n }", "public function setMinuteStepSize($a_step_size)\n\t{\n\t \t$this->minute_step_size = $a_step_size;\n\t}", "public function setNumberOfHMetrics($value) {}", "public function testSetHeaterState()\n {\n }", "function setSize($size)\n {\n $this->size = $size;\n }", "function getHhRent(){\n\t\treturn $this->hhRentAmount;\n\t}", "public function setNbreHMardi(?float $nbreHMardi): HoraireTheorique {\n $this->nbreHMardi = $nbreHMardi;\n return $this;\n }", "public function testSetHabs5() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHabs5(10.092018);\n $this->assertEquals(10.092018, $obj->getHabs5());\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 setHeight($height = 40)\n {\n $this->height = $height;\n $this->setAttributes(\"Height\");\n }", "public function set($key, $value, $minutes = 30);", "public function setMieteinnahmenSoll(\\MediaStoreNet\\OpenImmo\\Classes\\MieteinnahmenSoll $mieteinnahmenSoll)\n {\n $this->mieteinnahmenSoll = $mieteinnahmenSoll;\n return $this;\n }", "#[@fromDia(xpath= 'dia:attribute[@name=\"height\"]/dia:real/@val', value= 'real')]\n public function setHeight($height) {\n $this->setReal('height', $height);\n }", "public function setSize($size) {\n $this->size = $size;\n }", "public function setSize($size) {\n $this->size = $size;\n }", "public function testSetNbHeureTrav() {\n\n $obj = new Employes();\n\n $obj->setNbHeureTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureTrav());\n }", "public function setSize($size)\n {\n $this->size = $size;\n }", "private function changesku(){\t \r\n\t $this->chartValue(); //adding to output\r\n\t $this->idleStHealthChk(); //adding to output\r\n\t}", "private function setHue()\r\n {\r\n echo \"Set Hue data...\\n\";\r\n\r\n $turnOnString = $this->turnedOn ? 'true' : 'false';\r\n $alertOnString = $this->alert ? 'lselect' : 'none';\r\n\r\n $data = \"{\\\"on\\\":$turnOnString, \\\"sat\\\":$this->S, \\\"bri\\\":$this->B,\\\"hue\\\":$this->H, \\\"alert\\\":\\\"$alertOnString\\\"}\";\r\n\r\n //echo \"Hue Data JSON: $data\\n\";\r\n\r\n $headers = array('Content-Type: application/json');\r\n\r\n $ch = curl_init($this->url);\r\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\r\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\r\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\r\n \r\n echo \"\\n\";\r\n echo \"\\n-------------------------------\\n\";\r\n curl_exec($ch);\r\n echo \"\\n-------------------------------\\n\";\r\n echo \"\\n\";\r\n }", "function setSecond( $value )\r\n {\r\n $value = min( $value, 59 );\r\n $this->SecondsElapsed = ( ( $this->hour() * 3600 ) + ( $this->minute() * 60 ) + $value );\r\n }", "function setWeight($minweight = 50) {\n echo \"The height is : $minweight <br>\";\n}", "function set_subheading()\n {\n $args = func_get_args();\n $this->subheading = (is_array($args[0])) ? $args[0] : $args;\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 testSetMensualisationTache() {\n\n $obj = new Employes();\n\n $obj->setMensualisationTache(\"mensualisationTache\");\n $this->assertEquals(\"mensualisationTache\", $obj->getMensualisationTache());\n }", "public function setSize($size) {\n $this->_size = $size;\n }", "public function setPower()\n {\n $this->_role->power = 100;\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 AddBig5hwFont($family='Big5-hw',$name='MSungStd-Light-Acro')\n{\n\tfor($i=32;$i<=126;$i++)\n\t\t$cw[chr($i)]=500;\n\t$CMap='ETen-B5-H';\n\t$registry=array('ordering'=>'CNS1','supplement'=>0);\n\t$this->AddCIDFonts($family,$name,$cw,$CMap,$registry);\n}", "public function testSetMtIndemnSupp() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnSupp(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnSupp());\n }", "function setMake_model($new_make_model)\n {\n $this->price = $new_make_model;\n }", "public function testSetHeightProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setHeight($value);\n $this->assertEquals($value, $product->getHeight());\n }", "public function setMag($mag_)\n\t{\n\t\t$s = $mag_ / $this->mag();\n\t\t$this->scale($s);\n\t}", "public function setWeight() {\n }", "function set_weight($weight) {\n $this->weight = $weight;\n }", "public function testSetMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setMotifRupture(\"motifRupture\");\n $this->assertEquals(\"motifRupture\", $obj->getMotifRupture());\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.47364652", "0.47311646", "0.4721035", "0.47140557", "0.46991354", "0.4676938", "0.46746302", "0.46744812", "0.46724293", "0.46699533", "0.46419996", "0.4641981", "0.46380585", "0.4633968", "0.46275485", "0.46261376", "0.46248695", "0.46229002", "0.46114406", "0.46064618", "0.45999116", "0.45991933", "0.4590418", "0.45867303", "0.45837003", "0.45771244", "0.45676672", "0.45539433", "0.45434117", "0.45395184", "0.45097786", "0.45079637", "0.45033443", "0.44894746", "0.4488563", "0.44868273", "0.44803685", "0.44759017", "0.44735482", "0.44714916", "0.44679114", "0.44651958", "0.44644392", "0.44611892", "0.44567028", "0.44558161", "0.44555354", "0.44501957", "0.4450146", "0.4450146", "0.4448646", "0.44464773", "0.44410807", "0.4434411", "0.44312808", "0.44299474", "0.44277078", "0.44256133", "0.44213033", "0.4410146", "0.44056496", "0.44018558", "0.43970588", "0.4391081", "0.4388715", "0.4384537", "0.43841785", "0.4381413", "0.4380104", "0.43763277" ]
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 }", "public function testSetTds60() {\n\n $obj = new Employes();\n\n $obj->setTds60(true);\n $this->assertEquals(true, $obj->getTds60());\n }", "public function setPower()\n {\n $this->_role->power = 200;\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}", "function setHour( $value )\r\n {\r\n $value = min( $value, 23 );\r\n $this->SecondsElapsed = ( ( $value * 3600 ) + ( $this->minute() * 60 ) + $this->second() );\r\n setType( $this->SecondsElapsed, \"integer\" );\r\n }", "public function getMontant_ht()\n {\n return $this->montant_ht;\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}", "#[@fromDia(xpath= 'dia:attribute[@name=\"height\"]/dia:real/@val', value= 'real')]\n public function setHeight($height) {\n $this->setReal('height', $height);\n }", "public function setAttackSpeed()\n {\n $this->_role->attack_speed = 2.50;\n }", "public function setHeight($height) {\n $this->h = $height;\n }", "abstract public function setMetas();", "function setSecond( $value )\r\n {\r\n $value = min( $value, 59 );\r\n $this->SecondsElapsed = ( ( $this->hour() * 3600 ) + ( $this->minute() * 60 ) + $value );\r\n }", "function setSwimMeet($swimmeet)\r\n {\r\n $this->_swimmeet = $swimmeet ;\r\n }", "function SetFontSize($size)\n\t\t{\n\t\t\t/*if($this->FontSizePt==$size) return;\n\t\t\t$this->FontSizePt=$size;\n\t\t\t$this->FontSize=$size/$this->k;\n\t\t\tif($this->page>0)\n\t\t\t\t$this->_out(sprintf('BT /F%d %.2f Tf ET',$this->CurrentFont['i'],$this->FontSizePt));*/\n\t\t}", "public function setHPMPTP($String)\n {\n $this->Stats['core']['hp'] = trim($String[0]);\n $this->Stats['core']['mp'] = trim($String[1]);\n $this->Stats['core']['tp'] = trim($String[2]);\n }", "private function GENModulation() {\n\n\t\t$this->modulation = 'LORA';\n\n\t\t// set the LORA data rate\n\t\tif ( 'LORA' == $this->modulation ) {\n\t\t\t$dataRates = [\n\t\t\t\t'SF12BW125',\n\t\t\t\t'SF11BW125',\n\t\t\t\t'SF10BW125',\n\t\t\t\t'SF9BW125',\n\t\t\t\t'SF8BW125',\n\t\t\t\t'SF7BW125',\n\t\t\t\t'SF7BW250'\n\t\t\t];\n\n\t\t\t$this->data_rate = $dataRates[mt_rand(0,(sizeof($dataRates)-1))];\n\t\t} else {\n\t\t\t// set the FSK bit rate\n\n\t\t}\n\t}", "public function setWeight() {\n }", "public function setSecond($second)\n {\n $this->second = $second;\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}", "function setMonth($m)\r\n {\r\n if($m < 1 || $m > 12) {\r\n $this->mes = 1;\r\n } else {\r\n $this->mes = $m;\r\n }\r\n }", "protected function _getUnitsPerEm() {}", "public function convertMetrePerSecondToMilesPerHour($value) {\n\t\tif(is_numeric($value)) {\n\t\t\treturn round( ($value * 2.2369), 0);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\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 set_hth(){\n\t\t$gbr = array('image/png','image/JPG','image/jpeg','image/GIF','image/jpg','image/PNG','image/gif');\n\t\t$judul=$_POST['judul'];\n\t\t$isi=$_POST['teks'];\n\t\t$tm=date('Y-m-d',strtotime($_POST['tanggal_mulai']));\n\t\t$ta=date('Y-m-d',strtotime('+ 10 days'.$tm));\n\t\tif ($_POST['tanggal_akhir']!=\"\") {\n\t\t\t$ta=date('Y-m-d',strtotime($_POST['tanggal_akhir']));\n\t\t}\n\t\t\n\n\t\tif (in_array($_FILES['foto']['type'],$gbr)) {\n\t\t\t# code...\n\t\t\t$temp = explode(\".\", $_FILES['foto']['name']);\n\t\t\t$nambar = date('Hisdmy').'HTH.'.end($temp);\n\t\t\tmove_uploaded_file($_FILES['foto']['tmp_name'],'../File_BMKG/Iklim/Informasi_iklim/Informasi_HTH/'.$nambar);\n\n\t\t\techo $this->Cuaca_model->set_hth($judul,$isi, $nambar,$tm,$ta, $this->session->userdata('nama'),$this->waktu);\n\n\t\t}\n\t}", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "public function setRandomSpacing($min, $max)\n {\n $this->fixedSpacing = false;\n $this->minSpacing = (int) $min;\n $this->maxSpacing = $this->spacing = (int) $max;\n }", "public function setHour($hour)\n {\n $this->hour = $hour;\n }", "public function setMinuteStepSize($a_step_size)\n\t{\n\t \t$this->minute_step_size = $a_step_size;\n\t}", "public function testSetMensualisationTache() {\n\n $obj = new Employes();\n\n $obj->setMensualisationTache(\"mensualisationTache\");\n $this->assertEquals(\"mensualisationTache\", $obj->getMensualisationTache());\n }", "public function testSetTds59() {\n\n $obj = new Employes();\n\n $obj->setTds59(\"tds59\");\n $this->assertEquals(\"tds59\", $obj->getTds59());\n }", "public function setStructureRightBackMetalDust($value) {\n switch ($value) {\n case 0 : // Sin da�o\n return 0;\n break;\n case 7 : // Deformacion Fuerte\n return 14;\n break;\n case 8 : // Deformacion medio\n return 12;\n break;\n case 6 : // Malo\n return 20;\n break;\n case 9 : // Golpe\n return 0;\n break;\n case 10 : // Rayon\n return 1;\n break;\n case 11 : // Reparacion Buena\n return 0;\n break;\n case 12 : // Reparacion Mala\n return 10;\n break;\n case 13 : // Sumido\n return 2;\n break;\n }\n }", "public function testSetTauxHSup() {\n\n $obj = new Employes();\n\n $obj->setTauxHSup(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxHSup());\n }", "public function setSmallVClock($smallVClock) {}", "public function testSetTauxPensionMilitaire() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionMilitaire(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionMilitaire());\n }", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "function setMGFHash($hash)\n {\n // \\phpseclib\\Crypt\\Hash supports algorithms that PKCS#1 doesn't support. md5-96 and sha1-96, for example.\n switch ($hash) {\n case 'md2':\n case 'md5':\n case 'sha1':\n case 'sha256':\n case 'sha384':\n case 'sha512':\n $this->mgfHash = new Hash($hash);\n break;\n default:\n $this->mgfHash = new Hash('sha1');\n }\n $this->mgfHLen = $this->mgfHash->getLength();\n }", "public function convertKilometrePerHourToMilesPerHour($value) {\n\t\tif(is_numeric($value)) {\n\t\t\treturn round( ($value * 0.6214), 0);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function testSetHc() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHc(10.092018);\n $this->assertEquals(10.092018, $obj->getHc());\n }", "public function set_bodylength($bodylength) {\n if ($bodylength < 0.5 || $bodylength > 2.75) {\n echo \"Bij deze lengte kunnen we geen BMI berekenen omdat het geen betekenis heeft\";\n } else {\n $this->bodylength = $bodylength;\n }\n }", "public function setAttackSpeed()\n {\n $this->_role->attack_speed = 0.75;\n }", "public function setPower()\n {\n $this->_role->power = 100;\n }", "function set_weight($weight) {\n $this->weight = $weight;\n }", "public function set($key, $value, $minutes = 30);", "function getTotalFinalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", ($this->totalHT+$this->port)));\n else return 0;\n }", "function setWeight($minweight = 50) {\n echo \"The height is : $minweight <br>\";\n}", "public function testSetPourcentRemuHor() {\n\n $obj = new Employes();\n\n $obj->setPourcentRemuHor(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentRemuHor());\n }", "public function setHeight($height) {\n\t\t$height = (int) $height;\n\t\t$this->height = (($height > 0) && ($height <= self::MAX_HEIGHT)) ? $height : self::DEFAULT_HEIGHT;\n\t}", "public function testSetPrixKm() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixKm(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixKm());\n }", "public function get_bodymass() {\n return \"Gewicht = \" . $this->bodymass . \"kg\";\n }", "function getHhRent(){\n\t\treturn $this->hhRentAmount;\n\t}", "public function setHeight($height)\r\n {\r\n if (is_numeric($height))\r\n {\r\n $this->height = (int)$height;\r\n }\r\n }", "public function setTime($time)\n {\n return $this->buildCommand($this->instruction['lcdTime'], $this->timeToHex($time));\n }", "function set_time($newhour, $newminute, $newday, $newmonth, $newyear)\n {\n //sets the Date object given the hour, minute, day, month, and year\n $newtimestamp=mktime( $newhour, $newminute, 0, $newmonth, $newday, $newyear);\n $this->timestamp=$newtimestamp;\n }", "public function testSetMtIndemnSupp() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnSupp(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnSupp());\n }", "function dienTichHT(int $a, int $b, float $h) : void\n\t{\n\t\t// ham bat buoc phai co return\n\t\t//$t = (($a+$b)*$h)/2;\n\t\t//$t = (string)$t;\n\t\t//return 100;\n\t\techo 100;\n\t}", "private function setHypotenuse($height, $base)\n {\n \n $this->sideC = hypot($height, $base);\n }", "public function setTime($time=0){\n\t\t\t$this->_time = $time;\n\t\t}", "public function set_spacing_sizes()\n {\n }", "public function testSetCum30Ss() {\n\n $obj = new Employes();\n\n $obj->setCum30Ss(10.092018);\n $this->assertEquals(10.092018, $obj->getCum30Ss());\n }", "public function set_height($height, $hpp) {\n if (is_numeric($height) && $height > 0) {\n $hpp = strtolower($hpp);\n if ($hpp == 'px' || $hpp == '%') {\n $this->_height = abs($height);\n $this->_hpp = $hpp;\n }\n }\n }", "function hieu($p_tuso, $p_mauso)\n {\n $ps = new PHAN_SO();\n $ps->khoitao_ps($p_tuso, $p_mauso);\n $ps->tuso = ($this->tuso*$ps->mauso) - ($ps->tuso*$this->mauso);\n $ps->mauso = $this->mauso*$ps->mauso;\n // $ps->toigian_ps();\n return $ps;\n }", "public function testSetHSurcroit() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHSurcroit(10.092018);\n $this->assertEquals(10.092018, $obj->getHSurcroit());\n }", "public function setW($dw) {}", "public function setMileage($value) {\n return $this->set(self::MILEAGE, $value);\n }", "public function __construct(){\n $this->name = \"hobbits\";\n $this->description = \"Shorter than dwarfs. Some are stronger, some faster\";\n $this->picture = \"hobbit.jpg\";\n $this->minmax_life = [60, 80];\n $this->minmax_power = [80, 95];\n $this->minmax_resistance = [60, 80];\n $this->minmax_speed = [80, 100];\n $this->proportions = [\n \"life\" => 1,\n \"power\" => 1,\n \"resistance\" => 1,\n \"speed\" => -1\n ];\n }", "function toM($s) { \n $t = explode(\":\", $s); \n $h = settype($t[0], integer);\n $m = settype($t[1], integer);\n $mm = ($h * 60) + $m;\n return $mm;\n\t\t}", "public function testSetHeightProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setHeight($value);\n $this->assertEquals($value, $product->getHeight());\n }", "public function testSetNbHeuresTp() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbHeuresTp(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeuresTp());\n }", "protected function set_default_value(){\n $this->set_view('sarung/admin/index');\n $this->set_min_power( 100 );\n\t\t$this->set_title('Session');\n\t\t$this->set_body_attribute( \" class='admin admin_sarung_body' \" );\n $this->set_table_name('session');\n \n $this->set_perkiraan_santri_name( 'perkiraan_santri' );\n $this->set_session_name ( 'session_name');\n $this->set_awal_name ( 'awal_name');\n $this->set_akhir_name ( 'akhir_name' );\n $this->set_nilai_name ( 'nilai_name') ;\n $this->set_model_name ( 'model_name');\n \n }", "public function setMinorTickCount($value) {\r\n $this->minorTickCount = $this->setIntegerProperty($this->minorTickCount, $value);\r\n }", "public function testSetHeaterState()\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.47084573", "0.4686488", "0.46833354", "0.4659344", "0.46577716", "0.4656246", "0.4644848", "0.4626112", "0.4621587", "0.460232", "0.45872948", "0.45778382", "0.4569824", "0.4557705", "0.45572945", "0.45536697", "0.45523068", "0.45470592", "0.45458877", "0.45424855", "0.45404798", "0.45305747", "0.45302618", "0.45300415", "0.4528644", "0.45261657", "0.4522053", "0.45218915", "0.45126998", "0.45115903", "0.45112905", "0.45092258", "0.45066926", "0.4506419", "0.45062986", "0.45024905", "0.44861293", "0.44849727", "0.4483806", "0.4478947", "0.44758365", "0.44717598", "0.44707182", "0.4460858", "0.4458725", "0.44538832", "0.4451333", "0.44442618", "0.4442706", "0.4440469", "0.4435451", "0.44294947", "0.44238195", "0.44222346", "0.44208258", "0.44169247", "0.43936", "0.43920538", "0.4386817", "0.43844646", "0.43829235", "0.4380093", "0.4379749", "0.43754843", "0.43684977", "0.43659487", "0.43651107", "0.43614143", "0.43598285", "0.43560663" ]
0.7526913
0
Set the nb enfants a charge.
public function setNbEnfantsACharge($nbEnfantsACharge) { $this->nbEnfantsACharge = $nbEnfantsACharge; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNbEnfantsACharge() {\n return $this->nbEnfantsACharge;\n }", "public function setNbHt(?float $nbHt): ChargesPaie {\n $this->nbHt = $nbHt;\n return $this;\n }", "function setNiveau($niveau) { $niveau = (int) $niveau;\r\n if ($niveau >= 1 && $niveau <= 100) {\r\n $this->_niveau = $niveau;\r\n }\r\n }", "public function setNbHBase(?float $nbHBase): ChargesPaie {\n $this->nbHBase = $nbHBase;\n return $this;\n }", "public function setNbHn(?float $nbHn): ChargesPaie {\n $this->nbHn = $nbHn;\n return $this;\n }", "protected function setOfferValue ()\n {\n $this->request->coupon_benefits[ $this->offerNature ] = $this->offer->rate;\n }", "protected function setOfferNature ()\n {\n $this->offerNature = $this->offer->rate_nature->value;\n }", "public static function setNumberMaxBlocked($nb){\n Configuration::where('id', 1)\n ->update(['nb_max_times_bloked' => $nb]);\n }", "public function setCharge($Charge){\n $this->Charge = $Charge;\n }", "public function setNbPerPage($nbPerPage)\n {\n $this->nbPerPage = $nbPerPage;\n $this->calcNbPages();\n }", "public function setNerve($value)\n {\n $this->nerve = $value;\n }", "function setNum($num)\n {\n $this->num = $num;\n }", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "public function setAmount()\n {\n $exact = $this->getOriginalPurgeValue('amount_exact');\n $percentage = $this->getOriginalPurgeValue('amount_percentage');\n\n $this->amount = $this->is_percentage\n ? $percentage\n : $exact;\n }", "public function setChargesAttribute($amount)\n {\n $this->attributes['charges'] = formatAmount($amount);\n }", "public function SetNumPages()\n\t\t{\n\t\t\t$this->_pricenumpages = ceil($this->GetNumProducts() / GetConfig('CategoryProductsPerPage'));\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 setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }", "public function setNumcompte($numcompte)\n {\n $this->numcompte = $numcompte;\n }", "public function setIndemniteCp(?float $indemniteCp): ChargesPaie {\n $this->indemniteCp = $indemniteCp;\n return $this;\n }", "public function setCharges($charges)\n {\n $this->charges = $charges;\n }", "public function setNbrarticle($nbrarticle)\n{\n$this->nbrarticle = $nbrarticle;\n\nreturn $this;\n}", "public function testSetNbAppelsEnCours() {\n\n $obj = new AppelsEnCours();\n\n $obj->setNbAppelsEnCours(10);\n $this->assertEquals(10, $obj->getNbAppelsEnCours());\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 setNbEleves($nbEleves)\n {\n $this->nbEleves = $nbEleves;\n\n return $this;\n }", "public function setNbLane(int $nbLane) : void\n {\n $this->nbLane = $nbLane;\n }", "function set_num_items($num){\n $this -> num_of_items = $num;\n }", "public function setCharges($charges);", "public function setNumagence($numagence)\n {\n $this->numagence = $numagence;\n }", "public function setNumber($number);", "protected function setCount($count) {\r\n $this->count = $count;\r\n }", "public function setNValue($nVal) {}", "public function setNumero_chambre($numero_chambre)\n{\n$this->numero_chambre = $numero_chambre;\n\nreturn $this;\n}", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "private function _set_nb_qcm() {\n $sql = \"SELECT COUNT(id_qcm) FROM qcm WHERE qcm.id_test = $this->_id_test;\";\n $select = connect_db()->prepare($sql);\n $select->execute();\n $this->_nb_qcm = $select->fetch();\n $select->closeCursor();\n }", "public function setDefaults($nb_elt_per_page = 25)\n {\n if ($nb_elt_per_page !== null) {\n $this->nb_elt_per_page = $nb_elt_per_page;\n }\n return $this;\n }", "public function _set($number)\n {\n }", "public function setAmount($value) {\n if(strlen($value) > 8 ){\n throw new ValueException(\"Value \".$value.\" is higher than 8\");\n }\n $this->Importe = number_format($value,$this->Exponente,'','');\n }", "public function setBlockNumberAttribute($value) {\n $this->attributes['block_number'] = ($value === null ? null : (int)$value);\n }", "public function setUpgradeEligibleDeviceCount($val)\n {\n $this->_propDict[\"upgradeEligibleDeviceCount\"] = intval($val);\n return $this;\n }", "public function setNbHRc(?float $nbHRc): ChargesPaie {\n $this->nbHRc = $nbHRc;\n return $this;\n }", "public function testSetNumeroCasPartSecu() {\n\n $obj = new Employes();\n\n $obj->setNumeroCasPartSecu(10);\n $this->assertEquals(10, $obj->getNumeroCasPartSecu());\n }", "public function testSetNumeroFiche() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setNumeroFiche(10);\n $this->assertEquals(10, $obj->getNumeroFiche());\n }", "protected function setDNINumber($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\t$value = number_format($value,\"0\",\"\",\".\");\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 298, 623, 'UTF-8');\n\t\t}\n\t\t\n\t}", "public function setNumber(/*int*/ $value) /*: this*/ {\n $this->number = $value;\n return $this;\n }", "function modificarNumFilhos($numFilhos) {\r\n $this->numFilhos = $numFilhos;\r\n }", "public function setCount(int $count)\n {\n $this->count = $count;\n }", "public function setInvoiceNumber()\n { \n // get next number according to invoicetype\n return $this->bean->name = $this->bean->invoicetype()->nextSerial();\n }", "public static function setNumberAttemptAllowed($nbAttempts){\n Configuration::where('id', 1)\n ->update(['number_attempt_allowed' => $nbAttempts]);\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 setCharge($value)\n {\n $this->_fields['Charge']['FieldValue'] = $value;\n return $this;\n }", "public function setFree($free)\n {\n $this->_setFree = (integer)$free;\n }", "public function setFabricQuantity($quantity) {\r\n \r\n $this->quantity = intVal(100*$quantity);\r\n }", "public function testSetNbHeureSup() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSup(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSup());\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "public function testSetNumeroAvenant() {\n\n $obj = new PointBonTrav();\n\n $obj->setNumeroAvenant(10);\n $this->assertEquals(10, $obj->getNumeroAvenant());\n }", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "private function setNumberOfPages(): void\n {\n $this->number_of_pages = (int)ceil($this->number_of_records / $this->per_page);\n }", "public function setGiftcardAmount($value);", "public function setCantidad($cantidad){\n\t\t $this->cantidad = $cantidad;\n\t\t }", "public function setCount($count)\n {\n $this->count = $count;\n }", "public function setCount($count)\n {\n $this->count = $count;\n }", "protected function initializeBenefit ()\n {\n if ( !isset($this->request->coupon_benefits[ $this->offerNature ]) )\n $this->request->coupon_benefits[ $this->offerNature ] = 0;\n }", "public function setSizeInGB(?int $value): void {\n $this->getBackingStore()->set('sizeInGB', $value);\n }", "public function setNombre($n){\n\t\t$this->nombre = $n;\n\t}", "function MyMod_Paging_NItemsPerPage_Set()\n {\n $val=$this->CGI_VarValue($this->ModuleName.\"_NItemsPerPage\");;\n if (!empty($val) && preg_match('/^\\d+$/',$val))\n {\n $this->NItemsPerPage=$val;\n }\n }", "public function setAmount($intAmount);", "public static function fcomptage(){\n\t\tglobal $comptage;\n\t\t$comptage++;\n\t}", "public function testSetNbJourBaseCp() {\n\n $obj = new Employes();\n\n $obj->setNbJourBaseCp(10.092018);\n $this->assertEquals(10.092018, $obj->getNbJourBaseCp());\n }", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "public function testSetNbPoints() {\n\n $obj = new Employes();\n\n $obj->setNbPoints(10);\n $this->assertEquals(10, $obj->getNbPoints());\n }", "function MyMod_Paging_NPages_Set()\n {\n if ($this->NumberOfItems>$this->NItemsPerPage)\n {\n $this->MyMod_Paging_N=intval($this->NumberOfItems/$this->NItemsPerPage);\n $res=$this->NumberOfItems % $this->NItemsPerPage;\n if ($res>0) { $this->MyMod_Paging_N++; }\n }\n elseif ($this->NumberOfItems>0)\n {\n $this->MyMod_Paging_N=1;\n }\n else\n {\n $this->MyMod_Paging_N=0;\n }\n }", "function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }", "public function setCount(int $count): void\n {\n $this->count = $count;\n }", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "public function setQuota($value) {\n $this->_quota = $value;\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 setNumber(?string $value): void {\n $this->getBackingStore()->set('number', $value);\n }", "public function setAmount($amount){\n\n $this->amount = $amount;\n\n }", "public function cortesia()\n {\n $this->costo = 0;\n }", "function setNapetiKlima(int $napetiKlima):int {\n $this->napetiKlima = $napetiKlima;\n }", "private function _setCount($count)\n\t{\n\t\t$this->_count = $count;\n\t}", "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 }", "function setBankReceiptNumber($num)\n {\n $this->bank_receipt = $num;\n }", "public function setNumber($number) {\n $this->_number = $number;\n }", "public function setC($x) { $this->c = $x; }", "public function setNumber($number)\n {\n $this->_number = $number;\n }", "public function setItens($itens) {\n $this->itens = $itens;\n }", "function setDegats($degats) { $degats = (int) $degats;\r\n if ($degats >= 0 && $degats <= 100) {\r\n $this->_degats = $degats;\r\n }\r\n }", "public function setOperationNumber($value) {\n if(strlen($value) > 50 ){\n throw new ValueException(\"Value \".$value.\" is higher than 8\");\n }\n $this->Num_operacion = $value;\n }", "public function setMemberCount($newValue) {\r\n $this->cached_member_count = $newValue;\r\n }", "public function setNbHSup1(?float $nbHSup1): ChargesPaie {\n $this->nbHSup1 = $nbHSup1;\n return $this;\n }", "private function refreshNbPages()\n {\n $this->_nbPages = $this->_limit ? ceil($this->_count/$this->_limit) : 0;\n }", "public function setAmount($amount);", "public function setAmount()\n\t {\n\t \tthrow new OutOfBoundsException(\"Reversal request does not support amount parameter\");\n\t }", "public function setIndemnitePrecarite(?float $indemnitePrecarite): ChargesPaie {\n $this->indemnitePrecarite = $indemnitePrecarite;\n return $this;\n }", "public function setNumber($number)\n {\n $this->number = $number;\n }", "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.625188", "0.5971702", "0.5909876", "0.5869632", "0.57938373", "0.55552125", "0.55450517", "0.5531046", "0.5510818", "0.5505596", "0.545007", "0.5437025", "0.5385211", "0.537321", "0.5366477", "0.5346514", "0.5336223", "0.5321567", "0.5321108", "0.53200847", "0.5312196", "0.5295815", "0.5261395", "0.5247013", "0.5237396", "0.5236207", "0.5218608", "0.5214967", "0.5166792", "0.51658", "0.5142466", "0.51314694", "0.51177466", "0.51034456", "0.5091347", "0.5051675", "0.5034389", "0.50305974", "0.5018238", "0.5016754", "0.5005022", "0.49946892", "0.4984245", "0.49832934", "0.49831197", "0.49820483", "0.49811596", "0.4980456", "0.4973746", "0.4967359", "0.49622923", "0.4953782", "0.49536532", "0.49494892", "0.49410877", "0.49410877", "0.4939686", "0.4929282", "0.4929282", "0.49255735", "0.49230215", "0.490245", "0.48931456", "0.48931456", "0.48892447", "0.48835418", "0.48809314", "0.48765966", "0.4871672", "0.4870351", "0.48682684", "0.48658183", "0.48601836", "0.48450547", "0.4844042", "0.48416132", "0.48327914", "0.48322725", "0.48290315", "0.48279268", "0.4827798", "0.48258585", "0.48173392", "0.4812879", "0.48071596", "0.48047677", "0.4795312", "0.47942767", "0.4793202", "0.47871396", "0.47637877", "0.47613862", "0.47588658", "0.4751945", "0.47495043", "0.47464913", "0.47434705", "0.47406363", "0.47378537", "0.47370595" ]
0.57006013
5
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}", "function setCC($cc){\n\t\t\t$this->cc = $cc;\n\t\t}", "public function testSetNbHeuresRs() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbHeuresRs(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeuresRs());\n }", "public function hsetnx($hash, $key, $value)\n {\n return (int) $this->command('hsetnx', [$hash, $key, $value]);\n }", "public function setHash($_hash)\n\t{\n\t\t$this->_hash = $_hash ;\n\t}", "public function testSetNbHeuresTp() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbHeuresTp(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeuresTp());\n }", "function setHash($hash) {\n $this->h = pack('H*', $hash);\n }", "function setChambrehospi($chambre){\n $this->chambre = $chambre;\n }", "public function setNbHNuit(?float $nbHNuit): PrepaPaie {\n $this->nbHNuit = $nbHNuit;\n return $this;\n }", "public function setNbHSup1(?float $nbHSup1): ChargesPaie {\n $this->nbHSup1 = $nbHSup1;\n return $this;\n }", "function set_heading()\n\t{\n\t\t$args = func_get_args();\n\t\t$this->heading = $this->_prep_args($args);\n\t}", "private function _set_nb_qcm() {\n $sql = \"SELECT COUNT(id_qcm) FROM qcm WHERE qcm.id_test = $this->_id_test;\";\n $select = connect_db()->prepare($sql);\n $select->execute();\n $this->_nb_qcm = $select->fetch();\n $select->closeCursor();\n }", "public function setNumcompte($numcompte)\n {\n $this->numcompte = $numcompte;\n }", "public function _set($number)\n {\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}", "public function setHash($hash)\n {\n $this->hash = $hash;\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 testSetPrimeHDimNormal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHDimNormal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHDimNormal());\n }", "public function setHeader(PoHeader $header) {\n }", "public function setHeadings($headings){\n\t\t\t$this->headings = $headings;\n\t\t}", "function setHeadings($headings){\n\t\t\tglobal $tableHeadings;\n\t\t\t\n\t\t\t$tableHeadings = $headings;\n\t\t\t\n\t\t}", "function setHeadings($headings){\n\t\t\tglobal $tableHeadings;\n\t\t\t\n\t\t\t$tableHeadings = $headings;\n\t\t\t\n\t\t}", "public function setColspan($num)\n {\n parent::setAttr(\"colspan\", $num);\n }", "function headSpecial($body,$coment){\r\n\t\t$this->Head[$coment] = $body;\r\n\t}", "public function hset(string $key, string $field, mixed $value): void\n {\n }", "public function setHeadline($headline = NULL, $mode = self::RENDER_TEXT)\n\t{\n\t\tif ($mode == self::RENDER_TEXT) {\n\t\t\t$headline = strip_tags((string) $headline);\n\t\t}\n\t\tif (!is_string($headline)) {\n\t\t\tthrow new L8M_MailV2_Part_Exception('Headline needs to be a string.');\n\t\t}\n\t\t$headline = trim($headline);\n\t\tif ($mode == self::RENDER_HTML) {\n\t\t\t$this->_headline_html = $headline;\n\t\t} else {\n\t\t\t$this->_headline = $headline;\n\t\t}\n\t\treturn $this;\n\t}", "function setHaFlag($name, $value = true)\n {\n switch ($name) {\n case \"CAN_CREATE\":\n case \"CLOSE_CURSORS_AT_COMMIT\":\n case \"ALTER_NOT_SUPPORTED\":\n case \"CAN_RECREATE\":\n case \"HIDDEN\":\n case \"FLUSH_AFTER_RENAME\":\n case \"NOT_USER_SELECTABLE\":\n if (isset($this->haFlags[\"HTON_\".$name])) {\n return PEAR::raiseError(\"handlerton flag '$name' set twice\");\n }\n $this->haFlags[\"HTON_\".$name] = $value;\n return true;\n default: \n return PEAR::raiseError(\"unknown handlerton flag '$name'\");\n }\n }", "function setSectionID( $value )\r\n {\r\n $this->SectionID = $value;\r\n }", "private function writeHcenter(): void\n {\n $record = 0x0083; // Record identifier\n $length = 0x0002; // Bytes to follow\n\n $fHCenter = $this->phpSheet->getPageSetup()->getHorizontalCentered() ? 1 : 0; // Horizontal centering\n\n $header = pack('vv', $record, $length);\n $data = pack('v', $fHCenter);\n\n $this->append($header . $data);\n }", "public function setNumero_chambre($numero_chambre)\n{\n$this->numero_chambre = $numero_chambre;\n\nreturn $this;\n}", "function gen_webguileftcolumnhyper_field(&$section, $value) {\n\n\t$section->addInput(new Form_Checkbox(\n\t\t'webguileftcolumnhyper',\n\t\t'Left Column Labels',\n\t\t'Active',\n\t\t$value\n\t))->setHelp('If selected, clicking a label in the left column will select/toggle the first item of the group.');\n}", "public function _set($number) {\n\t\t$this->number = $number;\n\t\t$this->id = $this->id_base . '-' . $number;\n\t}", "public function testSetHeaterState()\n {\n }", "public function setNumeroFiche(?int $numeroFiche): FichesControlesSupprimees {\n $this->numeroFiche = $numeroFiche;\n return $this;\n }", "public function testSetNbHeureMois() {\n\n $obj = new Employes();\n\n $obj->setNbHeureMois(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMois());\n }", "protected\tfunction\tsetDefinition() {}", "protected\tfunction\tsetDefinition() {}", "public function setHeaderHeightProps() {\n\t\t$this->heightOfTransparency = $this->calculateHeightOfTransparency();\n\t\t$this->heightOfCompleteTransparency = $this->calculateHeightOfCompleteTransparency();\n\t\t$this->headerHeight = $this->calculateHeaderHeight();\n\t}", "public function set($index, $value)\n {\n $value = $this->cube($value);\n parent::set($index, $value);\n }", "public static function setHTMLHeader($header) \n\t{\n\t\tacPhpCas::setReporting();\n\t\tphpCAS::setHTMLHeader($header);\t\t\n\t}", "public function setNbHAbs(?float $nbHAbs): ChargesPaie {\n $this->nbHAbs = $nbHAbs;\n return $this;\n }", "public function set_height($height, $hpp) {\n if (is_numeric($height) && $height > 0) {\n $hpp = strtolower($hpp);\n if ($hpp == 'px' || $hpp == '%') {\n $this->_height = abs($height);\n $this->_hpp = $hpp;\n }\n }\n }", "public function setBasis($basis);", "public function setEmailHeadHtml($value) { $this->_emailHeadHtml = $value; }", "public function setHSupBonif(?float $hSupBonif): PrepaPaie {\n $this->hSupBonif = $hSupBonif;\n return $this;\n }", "function setHeadLanguage($var)\n\t{\n\t\t$this -> head_language = $var;\n\t}", "public function setHeadings($headings);", "public function setHeader( $call )\r\n\t{\r\n\t\t// Find the end head tag first\r\n\t\t$parts\t\t=\texplode( '</head>', $call->htmlheader );\r\n\t\t$body\t\t=\tarray_pop( $parts );\r\n\t\t$body\t\t.=\t\"\\r\\n\"\r\n\t\t\t\t\t.\t'<!-- Begin setHeader -->'\r\n\t\t\t\t\t.\t'<div id=\"jblestawrapper\">';\r\n\t\t$this->htmlheader =\t$body;\r\n\t}", "public function setNbHSup3(?float $nbHSup3): ChargesPaie {\n $this->nbHSup3 = $nbHSup3;\n return $this;\n }", "public function setCustomHead($customHead) {\n $this->_customHead = $customHead;\n }", "private function set($part, $value)\n {\n if (null === $value && isset(self::$defaults[$part])) {\n $value = self::$defaults[$part];\n }\n $this->parts[$part] = $value;\n return $this;\n }", "public static function set_huser($huser)\n\t{\n\t\t// Sets the history table name\n\t\tif ( bbn\\str::is_number($huser) ){\n\t\t\tself::$huser = $huser;\n\t\t}\n\t}", "function setNum($num)\n {\n $this->num = $num;\n }", "private function cObjData_setFlagDisplayInCaseOfNoCounting()\n {\n static $bool_DRSprompt = true;\n\n if ( !$this->ts_getDisplayInCaseOfNoCounting() )\n {\n return;\n }\n\n // Set key and value for treeview field\n $key = $this->pObj->prefixId . '.flag_displayInCaseOfNoCounting';\n $value = 1;\n\n // Set treeview field\n $this->pObj->cObj->data[ $key ] = $value;\n\n // DRS\n if ( $this->pObj->b_drs_cObjData && $bool_DRSprompt )\n {\n $prompt = 'cObj->data[ ' . $key . '] = ' . $value;\n t3lib_div::devlog( '[INFO/COBJ] ' . $prompt, $this->pObj->extKey, 0 );\n $bool_DRSprompt = false;\n }\n // DRS\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 }", "abstract public function set();", "public function setNbreHSamedi(?float $nbreHSamedi): HoraireTheorique {\n $this->nbreHSamedi = $nbreHSamedi;\n return $this;\n }", "public function setHijoContent($vectorContent){\n $vectorCadena = $this->scrapePadresHijosNietos($vectorContent);\n $this->hijoContent = $vectorCadena;\n }", "public function setT3Hashes() {}", "public function testSetHeuresRcAcquises() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHeuresRcAcquises(10.092018);\n $this->assertEquals(10.092018, $obj->getHeuresRcAcquises());\n }", "public function setNbreHMardi(?float $nbreHMardi): HoraireTheorique {\n $this->nbreHMardi = $nbreHMardi;\n return $this;\n }", "public function testSetNbHeureTrav() {\n\n $obj = new Employes();\n\n $obj->setNbHeureTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureTrav());\n }", "public function testSetPrimeHNuitNormal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHNuitNormal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHNuitNormal());\n }", "public function setHCenter($value) {\n\t}", "function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }", "public function setSequenceNumber($number) {\n\t\t$this->sequence = $number;\n\t\t// create the field\n\t\t$field = new ACHRecordField([84,87], $this->sequence);\n\t\t\n\t\t// add padding to the number\n\t\t$field->addPadding('0');\n\n\t\t// add the field.\n\t\t$this->addField( $field );\n\t}", "public function setNamaChallenge($nama_challenge);", "public function setNbreH(?float $nbreH): HoraireTheorique {\n $this->nbreH = $nbreH;\n return $this;\n }", "public function setKbArticleId(?string $value): void {\n $this->getBackingStore()->set('kbArticleId', $value);\n }", "public function setKieKelasHaid($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->kie_kelas_haid !== $v) {\n $this->kie_kelas_haid = $v;\n $this->modifiedColumns[] = SanitasiPeer::KIE_KELAS_HAID;\n }\n\n\n return $this;\n }", "public function h($value)\n {\n $this->args = array_merge($this->args, ['h' => $value]);\n\n return $this;\n }" ]
[ "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.46811366", "0.46781605", "0.46779874", "0.46687442", "0.46646485", "0.46597913", "0.46422753", "0.46337494", "0.46159106", "0.46158516", "0.46070433", "0.45837817", "0.45742074", "0.4562842", "0.45588", "0.45488954", "0.4545883", "0.45421383", "0.4537521", "0.45297235", "0.45297235", "0.45087615", "0.4500724", "0.44878647", "0.44854832", "0.44779772", "0.44766593", "0.44723806", "0.44695964", "0.4449278", "0.4447971", "0.443564", "0.4434217", "0.44304428", "0.4426443", "0.4426443", "0.44177905", "0.44118148", "0.4411614", "0.4410742", "0.440723", "0.44032517", "0.440122", "0.43971944", "0.43844807", "0.43794227", "0.43764195", "0.43712807", "0.43669233", "0.43654537", "0.43649736", "0.43637383", "0.4361914", "0.43513015", "0.43505242", "0.43418932", "0.43364823", "0.43306246", "0.4329697", "0.43196073", "0.43115467", "0.4310791", "0.430491", "0.4300471", "0.4297482", "0.4294399", "0.42864102", "0.4286026", "0.42838648", "0.42818716" ]
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}", "public function setNbLane(int $nbLane) : void\n {\n $this->nbLane = $nbLane;\n }", "public function setHeaderHeightProps() {\n\t\t$this->heightOfTransparency = $this->calculateHeightOfTransparency();\n\t\t$this->heightOfCompleteTransparency = $this->calculateHeightOfCompleteTransparency();\n\t\t$this->headerHeight = $this->calculateHeaderHeight();\n\t}", "function setNiveau($niveau) { $niveau = (int) $niveau;\r\n if ($niveau >= 1 && $niveau <= 100) {\r\n $this->_niveau = $niveau;\r\n }\r\n }", "public function setNbHNuit(?float $nbHNuit): PrepaPaie {\n $this->nbHNuit = $nbHNuit;\n return $this;\n }", "public function SetNumPages()\n\t\t{\n\t\t\t$this->_pricenumpages = ceil($this->GetNumProducts() / GetConfig('CategoryProductsPerPage'));\n\t\t}", "public function setGeneral() // Attribuer une valeur générale à un attaquant\n {\n $this->_general = round($this->attaqueCalcul());\n }", "public function setNbHCasPart($nbHCasPart) {\n $this->nbHCasPart = $nbHCasPart;\n return $this;\n }", "function MyMod_Paging_NPages_Set()\n {\n if ($this->NumberOfItems>$this->NItemsPerPage)\n {\n $this->MyMod_Paging_N=intval($this->NumberOfItems/$this->NItemsPerPage);\n $res=$this->NumberOfItems % $this->NItemsPerPage;\n if ($res>0) { $this->MyMod_Paging_N++; }\n }\n elseif ($this->NumberOfItems>0)\n {\n $this->MyMod_Paging_N=1;\n }\n else\n {\n $this->MyMod_Paging_N=0;\n }\n }", "public function setWeight() {\n }", "function setHeadTitel($var)\n\t{\n\t\t$this -> head_titel = $var;\n\t}", "public function setNValue($nVal) {}", "public function setNbreHMini(?float $nbreHMini): HoraireTheorique {\n $this->nbreHMini = $nbreHMini;\n return $this;\n }", "public function setNbreHMax(?float $nbreHMax): HoraireTheorique {\n $this->nbreHMax = $nbreHMax;\n return $this;\n }", "public function setNbreHMaxiJeudi(?float $nbreHMaxiJeudi): HoraireTheorique {\n $this->nbreHMaxiJeudi = $nbreHMaxiJeudi;\n return $this;\n }", "public function getNumberOfHMetrics() {}", "public function setNbreHMaxiSamedi(?float $nbreHMaxiSamedi): HoraireTheorique {\n $this->nbreHMaxiSamedi = $nbreHMaxiSamedi;\n return $this;\n }", "private function setNumRows($num_rows)\r\n\t{\t\t\r\n\t\t$this->num_rows = $num_rows;\t\t\r\n\t}", "function header (){\n\t\t$this->setfont('Arial','B', 16);\n\t\t$this->settextcolor(0, 0, 0);\n\t\t$this->cell(0, 10, 'WANANCHI', 0, 0, 'C');\n\t\t$this->Ln(10);\n\t\t$this->setfont('Arial','',12);\n\t\t$this->settextcolor(0, 0, 0);\n\t\t$this->cell(0, 10, 'INFORMATION',0, 0, 'C');\n\t\t$this->Ln(30);\n\t}", "public function getNbHComp(): ?float {\n return $this->nbHComp;\n }", "public function getNbreHMini(): ?float {\n return $this->nbreHMini;\n }", "public function init(){\n $this->documento='760';\n }", "function admin_setting_heading($name, $heading, $information) {\n parent::admin_setting($name, $heading, $information, '');\n }", "function set_height($height) {\n $this->height = $height;\n }", "public function getNbHt(): ?float {\n return $this->nbHt;\n }", "function size()\n\t{\n\t\treturn $this->nb;\n\t}", "public function set_hth(){\n\t\t$gbr = array('image/png','image/JPG','image/jpeg','image/GIF','image/jpg','image/PNG','image/gif');\n\t\t$judul=$_POST['judul'];\n\t\t$isi=$_POST['teks'];\n\t\t$tm=date('Y-m-d',strtotime($_POST['tanggal_mulai']));\n\t\t$ta=date('Y-m-d',strtotime('+ 10 days'.$tm));\n\t\tif ($_POST['tanggal_akhir']!=\"\") {\n\t\t\t$ta=date('Y-m-d',strtotime($_POST['tanggal_akhir']));\n\t\t}\n\t\t\n\n\t\tif (in_array($_FILES['foto']['type'],$gbr)) {\n\t\t\t# code...\n\t\t\t$temp = explode(\".\", $_FILES['foto']['name']);\n\t\t\t$nambar = date('Hisdmy').'HTH.'.end($temp);\n\t\t\tmove_uploaded_file($_FILES['foto']['tmp_name'],'../File_BMKG/Iklim/Informasi_iklim/Informasi_HTH/'.$nambar);\n\n\t\t\techo $this->Cuaca_model->set_hth($judul,$isi, $nambar,$tm,$ta, $this->session->userdata('nama'),$this->waktu);\n\n\t\t}\n\t}", "public function set_block($bi) {\n $this->theblock = $bi;\n\n switch (@$this->theblock->config->gaugerenderer) {\n case 'html': {\n $this->gaugerendererfunc = 'progress_bar_html';\n break;\n }\n\n case 'flash': {\n $this->gaugerendererfunc = 'progress_bar_flash';\n break;\n }\n\n case 'gd': {\n $this->gaugerendererfunc = 'progress_bar_html_gd';\n break;\n }\n\n default:\n $this->gaugerendererfunc = 'progress_bar_html_jqw';\n }\n\n }", "public function setMemberDefaults(){\n parent::setMemberDefaults();\n \n $this->id = $this->id ? $this->id : UniqId::get(\"rbn-\");\n if (!$this->collarTriangleWidth) {\n $this->collarTriangleWidth = StyleUtil::getHalf($this->collarWidth);\n }\n if (!$this->collarColor) {\n if ($this->barColor){\n $this->collarColor = $this->barColor;\n }\n else if( $this->barGradient ){\n $this->collarColor = GradientInfo::getLastColor($this->barGradient);\n }\n }\n }", "public function getNbreHMax(): ?float {\n return $this->nbreHMax;\n }", "public function setNbreHVendredi(?float $nbreHVendredi): HoraireTheorique {\n $this->nbreHVendredi = $nbreHVendredi;\n return $this;\n }", "public function testSetPrimeHDim2Normal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHDim2Normal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHDim2Normal());\n }", "private function headings() {\n\t\t$this->section_data['general_h_tags'] = array(\n\t\t\t'name' \t\t\t\t\t=> 'general_h_tags',\n\t\t\t'label' \t\t\t\t=> __( 'Headings', 'fixedtoc' ),\n\t\t\t'default' \t\t\t=> array( 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ),\n\t\t\t'type' \t\t\t\t\t=> 'multi_checkbox',\n\t\t\t'choices'\t\t\t\t=> array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'h1' => 'Heading 1',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'h2' => 'Heading 2',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'h3' => 'Heading 3',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'h4' => 'Heading 4',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'h5' => 'Heading 5',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'h6' => 'Heading 6',\n\t\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t'des'\t\t\t\t\t\t=> __( 'Check which HTML headings automatically generated table of contents.', 'fixedtoc' )\n\t\t);\n\t}", "public function getNbHBase(): ?float {\n return $this->nbHBase;\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 __construct(){\n $this->name = \"hobbits\";\n $this->description = \"Shorter than dwarfs. Some are stronger, some faster\";\n $this->picture = \"hobbit.jpg\";\n $this->minmax_life = [60, 80];\n $this->minmax_power = [80, 95];\n $this->minmax_resistance = [60, 80];\n $this->minmax_speed = [80, 100];\n $this->proportions = [\n \"life\" => 1,\n \"power\" => 1,\n \"resistance\" => 1,\n \"speed\" => -1\n ];\n }", "public function __construct($hall_id)\n {\n $this->max = 3;\n $this->hall_id = $hall_id;\n }", "function set_weight($weight) {\n $this->weight = $weight;\n }", "function MyMod_Paging_NItemsPerPage_Set()\n {\n $val=$this->CGI_VarValue($this->ModuleName.\"_NItemsPerPage\");;\n if (!empty($val) && preg_match('/^\\d+$/',$val))\n {\n $this->NItemsPerPage=$val;\n }\n }", "public function _set($number)\n {\n }", "public function testSetNbHeureMois() {\n\n $obj = new Employes();\n\n $obj->setNbHeureMois(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMois());\n }", "public function testSetTotalHAnal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setTotalHAnal(10.092018);\n $this->assertEquals(10.092018, $obj->getTotalHAnal());\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 initEmptyGrille() : void\n {\n \n for($i = 0 ; $i < self::NB_MAX_NUMERO ; $i++){\n $this->emptyGrille[\"numeros\"][] = \"\";\n \n if($i < self::NB_MAX_ETOILE){\n $this->emptyGrille[\"etoiles\"][] = \"\";\n }\n }\n }", "private function setNumberOfPages(): void\n {\n $this->number_of_pages = (int)ceil($this->number_of_records / $this->per_page);\n }", "public function H990()\n {\n $this->Sped->criarEncerramentoBloco('0', 'H990', \"H990\");\n }", "public static function setNumberMaxBlocked($nb){\n Configuration::where('id', 1)\n ->update(['nb_max_times_bloked' => $nb]);\n }", "public function testSetPrimeHNuitNormal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHNuitNormal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHNuitNormal());\n }", "public function getNbreHMardi(): ?float {\n return $this->nbreHMardi;\n }", "function set_heading()\n\t{\n\t\t$args = func_get_args();\n\t\t$this->heading = $this->_prep_args($args);\n\t}", "function initialize () {\n $this->set_openingtag ( \"<H6[attributes]>\" );\n\t$this->set_closingtag ( \"</H6>\" );\n }", "protected function setHTMLVar() {\r\n $this->htmlVar = array(\r\n 'htmlTitle' => HTML_TITLE,\r\n 'htmlTitleSuffix' => ''\r\n );\r\n }", "public function setNumber($number);", "public function __construct()\n {\n //$this->setH1('');\n }", "public function __construct($n)\n {\n $this->n = $n;\n }", "public function set_typeNum()\n {\n // init the map\n $this->initVarTypeNum();\n }", "public function init_config_data($host) {\n\t\t\t$this->host->test_mode = true;\n\t\t\t$this->host->min_weight = 1;\n\t\t\t$this->host->max_weight = 150;\n\t\t}", "public function set_height($height, $hpp) {\n if (is_numeric($height) && $height > 0) {\n $hpp = strtolower($hpp);\n if ($hpp == 'px' || $hpp == '%') {\n $this->_height = abs($height);\n $this->_hpp = $hpp;\n }\n }\n }", "public function setNbreHMaxiDimanche(?float $nbreHMaxiDimanche): HoraireTheorique {\n $this->nbreHMaxiDimanche = $nbreHMaxiDimanche;\n return $this;\n }", "public function getNbreHSamedi(): ?float {\n return $this->nbreHSamedi;\n }", "public function setNbreHMaxiMardi(?float $nbreHMaxiMardi): HoraireTheorique {\n $this->nbreHMaxiMardi = $nbreHMaxiMardi;\n return $this;\n }", "public function set_spacing_sizes()\n {\n }", "public function getNumerTaryfyHs()\n {\n return $this->numerTaryfyHs;\n }", "public function setNbreHMiniDimanche(?float $nbreHMiniDimanche): HoraireTheorique {\n $this->nbreHMiniDimanche = $nbreHMiniDimanche;\n return $this;\n }", "function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }", "public function set_hp(Int $_hp){\n $this->_hp = $_hp;\n\n return $this;\n }", "public function setBreadth($breadth) {\r\n $this->breadth = $breadth;\r\n }", "public function setHSupBonif(?float $hSupBonif): PrepaPaie {\n $this->hSupBonif = $hSupBonif;\n return $this;\n }", "protected function SetGridDimensions()\n {\n $this->g_height = $this->height - $this->pad_top - $this->pad_bottom;\n $this->g_width = $this->width - $this->pad_left - $this->pad_right;\n }", "function initialize () {\n $this->set_openingtag ( \"<H7[attributes]>\" );\n\t$this->set_closingtag ( \"</H7>\" );\n }", "public function testSetHRempl() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHRempl(10.092018);\n $this->assertEquals(10.092018, $obj->getHRempl());\n }" ]
[ "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.49365535", "0.49304557", "0.49218306", "0.4919283", "0.49097124", "0.4897537", "0.48902225", "0.4882543", "0.48664683", "0.48580655", "0.48575625", "0.48530638", "0.4832991", "0.4814621", "0.48136023", "0.47907314", "0.47880548", "0.47778127", "0.47758615", "0.47574636", "0.4751985", "0.47494218", "0.4745983", "0.47418478", "0.47316098", "0.4720793", "0.4714724", "0.4710713", "0.47093853", "0.4708291", "0.4703912", "0.4700357", "0.46984935", "0.46927255", "0.46858457", "0.4685805", "0.46855658", "0.46823594", "0.46744773", "0.46729708", "0.46722186", "0.4669343", "0.46658468", "0.46657103", "0.4663084", "0.46396708", "0.46359974", "0.46327144", "0.46320993", "0.46298656", "0.46281683", "0.46173868", "0.4616765", "0.4613074", "0.46079278", "0.45970935", "0.45944735", "0.45927843", "0.45887882", "0.45882326", "0.45867342", "0.4582037", "0.4578601", "0.4560179", "0.45579714", "0.45576894", "0.45572165", "0.45481715", "0.45478013", "0.45466512" ]
0.703059
0
Set the nom employe.
public function setNomEmploye($nomEmploye) { $this->nomEmploye = $nomEmploye; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNom($nom){\n if(empty($nom)){\n //on redirige\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable nom puis on appelle la varibale prive nom\n $this->_nom = $nom;\n }", "public function setNom($value)\n\t{\n\t\t$this -> _nom = $value;\n\t}", "public function setNom($param)\n\t\t{\n\t\t\t$this->autnom = $param;\n\t\t}", "function setNom($nom) { if (is_string($nom)) {\r\n $this->_nom = $nom;\r\n }\r\n }", "public function setName($name){\n\t$this->nom = $name;\n}", "public function setNom($nom) {\n $this->nom = $nom;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n }", "public function set_nom(string $_nom){\n $this->_nom = $_nom;\n\n return $this;\n }", "public function set_nom($_nom) {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function testSetNomNaissance() {\n\n $obj = new Employes();\n\n $obj->setNomNaissance(\"nomNaissance\");\n $this->assertEquals(\"nomNaissance\", $obj->getNomNaissance());\n }", "function setId_nom($iid_nom)\n {\n $this->iid_nom = $iid_nom;\n }", "function setId_nom($iid_nom)\n {\n $this->iid_nom = $iid_nom;\n }", "public function set_nom($_nom)\n {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function set_nom($_nom)\n {\n $this->_nom = $_nom;\n\n return $this;\n }", "function setId_nom_new($iid_nom_new = '')\n {\n $this->iid_nom_new = $iid_nom_new;\n }", "public function setNom($nom)\n {\n if (strlen($nom) < 3) {\n $this->erreur[] = 'Entrer un nom valide';\n }else {\n $this->nom = $nom;\n return $this;\n }\n }", "public function setNombre($nom)\n {\n $this->nombre = $nom;\n }", "function setNombre_materia($nombre_materia){\n\t\t\n\t\t$this->nombre_materia = $nombre_materia;\n\t\t$this->cambios = true;\n\t}", "public function setNombre($n){\n\t\t$this->nombre = $n;\n\t}", "public function setEmpleado_idemp($empleado_idemp){\n $this->empleado_idemp = $empleado_idemp;\n }", "public function set_nome($nome) : void\n {\n try {\n $this->obj_contato_anunciante->set_nome(Validador::Contato_Anunciante()::validar_nome($nome));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['nome'] = \"erro\";\n }\n }", "public function getNom_employeur()\n {\n return $this->nom_employeur;\n }", "public function setNomeArea($nome) {\n $this->_nome = $nome; \n }", "public function setNome($nome){$this->nome = $nome;}", "public function setNome($nome)\n\t\t{\n\t\t\t\t$this->nome = $nome;\n\t\t}", "public function setNome($nome)\n {\n $this->nome = $nome;\n\n \n }", "public function setNome(string $nome)\n {\n $this->nome = $nome;\n }", "public function testSetNomVille() {\n\n $obj = new Employes();\n\n $obj->setNomVille(\"nomVille\");\n $this->assertEquals(\"nomVille\", $obj->getNomVille());\n }", "public function setNit_empresa($nit_empresa){\n $this->nit_empresa = $nit_empresa;\n }", "public function setName()\n {\n $this->_role->name = '奥巴马';\n }", "function set_uname($name){\n $this -> uname = $name;\n }", "public function setNome($nome)\n {\n $this->nome = $nome;\n }", "public function getNomEmploye() {\n return $this->nomEmploye;\n }", "public function getNomEmploye() {\n return $this->nomEmploye;\n }", "public function setNomUsuario($nomUsuario) {\n $this->nomUsuario = $nomUsuario;\n }", "public function testSetNumeroEmploye() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroEmploye(\"numeroEmploye\");\n $this->assertEquals(\"numeroEmploye\", $obj->getNumeroEmploye());\n }", "final protected function setNome(string $Nome){\n $this->Nome = $Nome;\n }", "public function setNomOpe(string $nomOpe)\n {\n $this->nomOpe = $nomOpe;\n\n return $this;\n }", "public function setNome($valor){\n\t\t\t$this->nome = $valor;\n\t\t}", "public function get_nomPersonnage()\n {\n $this->_nomPersonnage;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function testSetNom() {\n\n $obj = new Collaborateurs();\n\n $obj->setNom(\"nom\");\n $this->assertEquals(\"nom\", $obj->getNom());\n }", "function setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }", "public function testSetNomVoie() {\n\n $obj = new Employes();\n\n $obj->setNomVoie(\"nomVoie\");\n $this->assertEquals(\"nomVoie\", $obj->getNomVoie());\n }", "public function setNom($nom)\n\t{\n\t\treturn $this->nom = $nom;\n\t}", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function testSetNomConjoint() {\n\n $obj = new Employes();\n\n $obj->setNomConjoint(\"nomConjoint\");\n $this->assertEquals(\"nomConjoint\", $obj->getNomConjoint());\n }", "public function testSetNomNaissance() {\n\n $obj = new AttestationCacm();\n\n $obj->setNomNaissance(\"nomNaissance\");\n $this->assertEquals(\"nomNaissance\", $obj->getNomNaissance());\n }", "public function setNom(string $nom)\r\n {\r\n $this->nom = $nom;\r\n\r\n return $this;\r\n }", "function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }", "public function getNomOpe()\n {\n return $this->nomOpe;\n }", "public function setNameEdit($name = NULL ){\n\t\t$this->nameEdit = $name ? $name : \"Editar \".$this->name;\n\t}", "public function __set($nome, $valor) {\n $this->nome = $valor;\n }", "public function testSetNumero() {\n\n $obj = new Employes();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }", "function set_employee($emp)\n\t\t{\n\t\t\t$this->employee = $emp;\n\t\t}", "public function setidExamen($Valor){\r\n $this->idExamen = trim($Valor);\r\n }", "public function testSetNomMarital() {\n\n $obj = new Employes();\n\n $obj->setNomMarital(\"nomMarital\");\n $this->assertEquals(\"nomMarital\", $obj->getNomMarital());\n }", "public function setNombre($nombre){\n $this->nombre = $nombre;\n }", "public function setNombre($nombre){\n $this->nombre = $nombre;\n }", "function setName($name){\n\t\t$this->name=$name;\n\t}", "public function setNombre_empresa($nombre_empresa){\n $this->nombre_empresa = $nombre_empresa;\n }", "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 setName()\n {\n $this->_role->name = '伊泽瑞尔';\n }", "function setNombre($nombre){\n\t\tif (is_string($nombre)){\n\t\t\t$this->nombre=$nombre;\n\t\t}else{\n\t\t\tthrow new Exception(\"Debe establecer una cadena para el nombre\");\n\t\t}\t\t\n\t}", "public function setName($name){\n $this->__set('name',$name);\n }", "function berinamaTeman($teman){\r\n\t\t\t$this->nama_teman = $teman;\r\n\t\t}", "public function setName($x) { $this->name = $x; }", "public function getnom() {\n\t\treturn $this->nom;\n\t}", "function setName($value) {\n $this->name = $value;\n }", "public function setNomeMedico($nome) {\n $this->_nome = $nome;\n }", "public function setName($name){\n $this->_name = $name;\n }", "public function getNom() { return $this->nom; }", "public function testSetGestionMajNuit() {\n\n $obj = new Employes();\n\n $obj->setGestionMajNuit(\"gestionMajNuit\");\n $this->assertEquals(\"gestionMajNuit\", $obj->getGestionMajNuit());\n }", "public function setNom(string $nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom(string $nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\r\n {\r\n $this->nom = $nom;\r\n\r\n return $this;\r\n }", "public function setNom($nom)\r\n {\r\n $this->nom = $nom;\r\n\r\n return $this;\r\n }", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "private function SetName() {\n $where = (!empty($this->eventoID) ? \"e.id != {$this->eventoID} AND \" : '');\n\n $query = $this->createQueryBuilder('e')\n ->where(\"{$where} e.titulo = :n\")\n ->setParameter('n', $this->data->getTitulo())\n ->getQuery();\n\n $resEvento = $query->getResult();\n if ($resEvento) {\n $this->data->setName($this->data->getName() . \"-\" . count($resEvento));\n }\n }", "function setLname($name){\n $this->lname = $name;\n }", "function setName( $value )\n {\n $this->Name = $value;\n }", "public function setEps_nombre($eps_nombre){\n $this->eps_nombre = $eps_nombre;\n }", "public function testSetNomVille() {\n\n $obj = new Collaborateurs();\n\n $obj->setNomVille(\"nomVille\");\n $this->assertEquals(\"nomVille\", $obj->getNomVille());\n }", "public function getAutNom(){\n\t\t\treturn $this->autnom;\n\t\t}", "public function getNit_empresa(){\n return $this->nit_empresa;\n }", "function getId_nom()\n {\n if (!isset($this->iid_nom) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_nom;\n }", "function getId_nom()\n {\n if (!isset($this->iid_nom) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_nom;\n }", "public function setNom_employeur($nom_employeur)\n {\n $this->nom_employeur = $nom_employeur;\n\n return $this;\n }", "public function getNom() \n {\n return $this->nom;\n }", "function setNum_teleco($snum_teleco = '')\n {\n $this->snum_teleco = $snum_teleco;\n }", "private function set_nameApp($_nameApp)\n {\n if (!$_nameApp) {\n throw new MonaeException('Le nom de l\\'application est obligatoire.');\n }\n $this->_nameApp = $_nameApp;\n }", "public function testSetNumeroNoeudLocal() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setNumeroNoeudLocal(10);\n $this->assertEquals(10, $obj->getNumeroNoeudLocal());\n }", "public function setIdEdificio($n)\n {\n echo $this->getContenido();\n $this->c_id_edificio = $n;\n }", "public function setPersonne($valeur)\n {\n $this->id_personne = $valeur;\n }", "public function setnombrePaciente($value){\n\n\t\t$this->_nombrePaciente = $value;\n\t}", "function setName($value) {\n $this->name = $value;\n }", "public final function asigNombre($nombre){\r\n $this->nombre=$nombre;\r\n }" ]
[ "0.7084568", "0.7038877", "0.6918272", "0.6835988", "0.68253696", "0.6779115", "0.6755676", "0.6601818", "0.656953", "0.64854044", "0.6459416", "0.6459416", "0.63839495", "0.63839495", "0.63710505", "0.6339373", "0.6321955", "0.6274037", "0.62723845", "0.6261735", "0.6261485", "0.62566614", "0.6243707", "0.6236437", "0.61999524", "0.6177794", "0.61409175", "0.6091695", "0.60896397", "0.608088", "0.6071174", "0.6069686", "0.6038964", "0.6038964", "0.6030997", "0.60220504", "0.6013137", "0.60086215", "0.60032743", "0.59988713", "0.5983578", "0.59690344", "0.5957683", "0.5943734", "0.59337556", "0.5930118", "0.5930118", "0.58983475", "0.5862607", "0.5858981", "0.5856354", "0.585363", "0.58369136", "0.58331156", "0.5829488", "0.5827698", "0.58270466", "0.5826103", "0.5821932", "0.5821932", "0.5819787", "0.5819741", "0.5813947", "0.5811052", "0.5792722", "0.5775517", "0.5738706", "0.57339144", "0.5726802", "0.5705601", "0.56953186", "0.56896377", "0.56861603", "0.56840396", "0.568243", "0.568243", "0.5679731", "0.5679731", "0.56783956", "0.56783956", "0.5678367", "0.5665171", "0.56640375", "0.5661638", "0.5650686", "0.5648937", "0.5632152", "0.5631104", "0.5631104", "0.5628042", "0.5624501", "0.56211215", "0.5617128", "0.56146264", "0.56146246", "0.5613947", "0.5606285", "0.56054854", "0.55982906" ]
0.6080575
31
Set the nom marital.
public function setNomMarital($nomMarital) { $this->nomMarital = $nomMarital; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetNomMarital() {\n\n $obj = new AttestationCacm();\n\n $obj->setNomMarital(\"nomMarital\");\n $this->assertEquals(\"nomMarital\", $obj->getNomMarital());\n }", "public function testSetNomMarital() {\n\n $obj = new Employes();\n\n $obj->setNomMarital(\"nomMarital\");\n $this->assertEquals(\"nomMarital\", $obj->getNomMarital());\n }", "public function getNomMarital() {\n return $this->nomMarital;\n }", "public function setNom($value)\n\t{\n\t\t$this -> _nom = $value;\n\t}", "function setNombre_materia($nombre_materia){\n\t\t\n\t\t$this->nombre_materia = $nombre_materia;\n\t\t$this->cambios = true;\n\t}", "public function set_nom($_nom) {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function set_nom(string $_nom){\n $this->_nom = $_nom;\n\n return $this;\n }", "public function setNom($nom){\n if(empty($nom)){\n //on redirige\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable nom puis on appelle la varibale prive nom\n $this->_nom = $nom;\n }", "function setNom($nom) { if (is_string($nom)) {\r\n $this->_nom = $nom;\r\n }\r\n }", "public function setNom($nom) {\n $this->nom = $nom;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n }", "public function set_nom($_nom)\n {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function set_nom($_nom)\n {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function setNom($param)\n\t\t{\n\t\t\t$this->autnom = $param;\n\t\t}", "public function getMarName()\n {\n return $this->mar_name;\n }", "public function setNom($nom)\n {\n if (strlen($nom) < 3) {\n $this->erreur[] = 'Entrer un nom valide';\n }else {\n $this->nom = $nom;\n return $this;\n }\n }", "public function setName()\n {\n $this->_role->name = '奥巴马';\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setName($name){\n\t$this->nom = $name;\n}", "public function setNM($nM)\n {\n $this->nm = $nM;\n\n return $this;\n }", "public function testSetNomNaissance() {\n\n $obj = new AttestationCacm();\n\n $obj->setNomNaissance(\"nomNaissance\");\n $this->assertEquals(\"nomNaissance\", $obj->getNomNaissance());\n }", "function setId_nom($iid_nom)\n {\n $this->iid_nom = $iid_nom;\n }", "function setId_nom($iid_nom)\n {\n $this->iid_nom = $iid_nom;\n }", "public function setNom($nom)\n\t{\n\t\treturn $this->nom = $nom;\n\t}", "public function setNom(string $nom)\r\n {\r\n $this->nom = $nom;\r\n\r\n return $this;\r\n }", "public function setNombre($n){\n\t\t$this->nombre = $n;\n\t}", "function berinamaTeman($teman){\r\n\t\t\t$this->nama_teman = $teman;\r\n\t\t}", "public function setNombre($nom)\n {\n $this->nombre = $nom;\n }", "public function set_nomR($_nomR)\n {\n $this->_nomR = $_nomR;\n\n return $this;\n }", "public function setNom($nom)\r\n {\r\n $this->nom = $nom;\r\n\r\n return $this;\r\n }", "public function setNom($nom)\r\n {\r\n $this->nom = $nom;\r\n\r\n return $this;\r\n }", "function setMonth($m)\r\n {\r\n if($m < 1 || $m > 12) {\r\n $this->mes = 1;\r\n } else {\r\n $this->mes = $m;\r\n }\r\n }", "public function testSetNomNaissance() {\n\n $obj = new Employes();\n\n $obj->setNomNaissance(\"nomNaissance\");\n $this->assertEquals(\"nomNaissance\", $obj->getNomNaissance());\n }", "public function setNom(string $nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom(string $nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setMiAttribute($value)\n {\n $this->attributes['mi'] = strtoupper(str_replace('.', '', trim($value)));\n }", "function berinamateman($teman){\n\t\t$this->nama_teman=$teman;\n\t}", "public function setNomeMedico($nome) {\n $this->_nome = $nome;\n }", "public function testSetNom() {\n\n $obj = new Collaborateurs();\n\n $obj->setNom(\"nom\");\n $this->assertEquals(\"nom\", $obj->getNom());\n }", "function setId_nom_new($iid_nom_new = '')\n {\n $this->iid_nom_new = $iid_nom_new;\n }", "function setMateria($materia){\n\t\t\n\t\t$this->materia = $materia;\n\t\t$this->cambios = true;\n\t}", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setNom($nom)\n {\n $this->nom = $nom;\n\n return $this;\n }", "public function setMarca($marca)\n {\n $this->marca = $marca;\n }", "public function setMateria($value){\n\t\tif($this->validateAlphanumeric($value,1,50)){\n\t\t\t$this->materia = $value;\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function setNomeMappaArea($nome) {\n $this->_nomeMappa = $nome; \n }", "function berinamateman ($teman) {\n $this->nama_teman=$teman;\n }", "public function setName()\n {\n $this->_role->name = '伊泽瑞尔';\n }", "public function mort()\n\t{\n\t\tif ( $this->vie <= 0 ) {\n\t\t\techo $this->nom . \" est mort <br>\";\n\t\t} else {\n\t\t\techo $this->nom . \" est vivant ! <br>\";\n\t\t}\n\t}", "public function set_nome($nome) : void\n {\n try {\n $this->obj_contato_anunciante->set_nome(Validador::Contato_Anunciante()::validar_nome($nome));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['nome'] = \"erro\";\n }\n }", "public function setNome($valor){\n\t\t\t$this->nome = $valor;\n\t\t}", "function setNumAnz($wert) {$this->PhoneNumAnz = trim($wert);}", "protected function setNomTable($pNomTable) {\n\t\t\t$this-> nomTable= $pNomTable;\n\t\t}", "public function setMarca($marca)\n {\n $this->marca = $marca;\n }", "public function setMarca($marca)\n {\n $this->marca = $marca;\n\n }", "public function setNom($nom): self\n {\n $this->nom = $nom;\n\n return $this;\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 testSetNomPrenom() {\n\n $obj = new PointBonTrav();\n\n $obj->setNomPrenom(\"nomPrenom\");\n $this->assertEquals(\"nomPrenom\", $obj->getNomPrenom());\n }", "public function testSetNomVille() {\n\n $obj = new Collaborateurs();\n\n $obj->setNomVille(\"nomVille\");\n $this->assertEquals(\"nomVille\", $obj->getNomVille());\n }", "public function get_nomPersonnage()\n {\n $this->_nomPersonnage;\n }", "public function getMaterno()\n {\n return $this->materno;\n }", "public function setNome($nome){$this->nome = $nome;}", "public function getMarcaNombre()\n {\n return $this->marcaNombre;\n }", "public function getMarca()\n {\n return $this->marca;\n }", "public function getMarca()\n {\n return $this->marca;\n }", "public function setNameMenuSingular( $name = NULL ){\n\t\t$this->nameMenuSingular = $name ? $name : $this->name;\n\t}", "public function setNom($Nom)\n\t{\n\t $this->nom = $Nom;\n\t return $this;\n\t}", "public function setNomeArea($nome) {\n $this->_nome = $nome; \n }", "public function setNome($nome)\n\t\t{\n\t\t\t\t$this->nome = $nome;\n\t\t}", "private function setName()\n {\n $countries = array('Croatia', 'Serbia', 'Slovenia', 'Italia', 'England', 'Scotland', 'Spain', 'Portugal', 'Mexico', 'Brazil', 'Chile', 'Argentina', 'China');\n $this->_name = $countries[rand(0, count($countries) - 1)];\n }", "public function setNomUsuario($nomUsuario) {\n $this->nomUsuario = $nomUsuario;\n }", "public function __set($nome, $valor) {\n $this->nome = $valor;\n }", "public function setNomNaissance($nomNaissance) {\n $this->nomNaissance = $nomNaissance;\n return $this;\n }", "public function getMarca() {\n return $this->iMarca;\n }", "function setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }", "public function setMarName($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->mar_name !== $v) {\n $this->mar_name = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_MAR_NAME] = true;\n }\n\n return $this;\n }", "public function getMarca(){ return $this->marca;}", "public function testSetNomVille() {\n\n $obj = new Employes();\n\n $obj->setNomVille(\"nomVille\");\n $this->assertEquals(\"nomVille\", $obj->getNomVille());\n }", "public function setmnem($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->mnem !== $v) {\n $this->mnem = $v;\n $this->modifiedColumns[] = ActionTypePeer::MNEM;\n }\n\n\n return $this;\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 setNom_user($nom_user)\r\n {\r\n $this->nom_user = $nom_user;\r\n\r\n return $this;\r\n }", "public function setNome(string $nome)\n {\n $this->nome = $nome;\n }", "public function setNome($nome)\n {\n $this->nome = $nome;\n\n \n }", "public function setNamaAttribute($nama)\n {\n $this->attributes['nama'] = trim(strtolower($nama));\n }", "function married() \n { \n $this->marsta_id=\"C\";\n $this->marsta_name=\"Married\";\n return($this->marsta_id);\n }", "public function setPrenom($prenom)\n {\n if (is_string($prenom) && strlen($prenom) >= 3 && strlen($prenom) <= 20){\n\n $this->prenom = $prenom;\n }\n\n return $this;\n }", "function setNombre_region($snombre_region = '')\n {\n $this->snombre_region = $snombre_region;\n }" ]
[ "0.6962476", "0.68306285", "0.6810426", "0.670402", "0.6604578", "0.6409496", "0.63891613", "0.6377793", "0.63755137", "0.6363655", "0.634634", "0.62914294", "0.62914294", "0.6280248", "0.62223494", "0.60001725", "0.5956149", "0.5922789", "0.5922789", "0.5919287", "0.590084", "0.5887811", "0.5887714", "0.5884455", "0.5884455", "0.5847157", "0.58425987", "0.5832194", "0.578724", "0.5777312", "0.5749926", "0.57115877", "0.57115877", "0.56978756", "0.5673881", "0.567372", "0.567372", "0.5671671", "0.56669605", "0.5652658", "0.5613572", "0.56088996", "0.5563315", "0.55491364", "0.55491364", "0.55491364", "0.55491364", "0.55491364", "0.55491364", "0.55491364", "0.55491364", "0.55491364", "0.55491364", "0.55491364", "0.5540438", "0.5539303", "0.5529801", "0.5529524", "0.55220664", "0.55138254", "0.5481543", "0.5464415", "0.54578596", "0.5438647", "0.5429179", "0.54251164", "0.5418141", "0.53870183", "0.53870183", "0.53870183", "0.53617954", "0.53557235", "0.5331311", "0.5319888", "0.5315634", "0.53131855", "0.5307503", "0.5307503", "0.52962446", "0.5295044", "0.5288838", "0.5287111", "0.5278759", "0.5272065", "0.5260538", "0.52523917", "0.5239858", "0.52331823", "0.52318597", "0.5228462", "0.5227999", "0.5227934", "0.52259487", "0.52237767", "0.5218337", "0.5208919", "0.51989925", "0.5194589", "0.51905984", "0.51866394" ]
0.6494307
5
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 }", "public function setFormatNonEtendu(?bool $formatNonEtendu): HistoTauxRetraiteMetier {\n $this->formatNonEtendu = $formatNonEtendu;\n return $this;\n }", "public function noProrate() : self\n {\n $this->prorate = false;\n\n return $this;\n }", "public final function setImmutable()\n {\n $this->isImmutable = true;\n }", "public function setNoCopy(?bool $noCopy) : self\n {\n $this->noCopy = $noCopy;\n return $this;\n }", "public function get_nonces()\n {\n }", "public function testSetTxComInvisible() {\n\n $obj = new Collaborateurs();\n\n $obj->setTxComInvisible(true);\n $this->assertEquals(true, $obj->getTxComInvisible());\n }", "public function setOverprintControlNonStroking($overprintControl) {}", "public function preview_no_relation()\n\t{\n\t\t$this->preview_no_relation = true;\n\t\treturn $this;\n\t}", "public function setNotaAttribute($value)\n {\n $this->attributes['nota'] = (trim($value) !== '' ? $value : ' ');\n }", "function setNoBreak() {\t \r\n\t \t$this->noBreak = true;\r\n\t}", "public function setNoRender($flag = true)\n {\n $this->_noRender = ($flag) ? true : false;\n return $this;\n }", "final static public function restoreDisplayOptions( ){\n\t\t\t\tstatic::$_displayOptions = self::ERRALL & ~self::ERRTRC;\n\t\t\t\treturn;\n\t\t\t}", "function outputEntitiesOff()\n\t{\n\t\t$this->bOutputEntities = false;\n\t}", "public function videoconferenciaNoInterrumpirOFF( ) {\n $this->setNoInterrumpir(\"ON\");\n// $this->setNoInterrumpir(\"AUTOANSWER\");\n }", "public function getNonOptions()\n {\n return $this->nonOptions;\n }", "function setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }", "public function setNerve($value)\n {\n $this->nerve = $value;\n }", "function setNoPrint($no_print) {\n $this->fields['no_print'] = $no_print;\n return $this;\n }", "public function setEstaNoti($value) {\n\t\t$this->esta_noti = $value;\n\t\treturn true;\n\t}", "public function setNeverRender($flag = true)\n {\n $this->_neverRender = ($flag) ? true : false;\n return $this;\n }", "function setNoModify($no_modify) {\n $this->fields['no_modify'] = $no_modify;\n return $this;\n }", "public function setNoSave()\n {\n $this->no_save = true;\n\n return $this;\n }", "public function setUTF()\n {\n return false;\n }", "public function resetSpecial()\n {\n return $this->special = (PHP_VERSION_ID < 50400 or $this->newline !== \"\\n\");\n }", "public function setNonProfitAddress(array $nonProfitAddress)\n {\n $this->nonProfitAddress = $nonProfitAddress;\n return $this;\n }", "public static function setNoHideSecrets (){\n self::$hideSecrets = null;\n }", "public function setNoWrap() // Deprecated\n {\n parent::setAttr(\"nowrap\", \"nowrap\");\n }", "public function testSetNotForPaymentDisabledFields()\n {\n $this->slipData->setWithReferenceNumber(false);\n $this->slipData->setWithBankingCustomerId(false);\n\n $this->slipData->setNotForPayment(true);\n }", "private function cObjData_unsetFlagDisplayInCaseOfNoCounting()\n {\n static $bool_DRSprompt = true;\n\n if ( !$this->ts_getDisplayInCaseOfNoCounting() )\n {\n return;\n }\n\n // Unset the treeview field\n $key = $this->pObj->prefixId . '.flag_displayInCaseOfNoCounting';\n unset( $this->pObj->cObj->data[ $key ] );\n\n // DRS\n if ( $this->pObj->b_drs_cObjData && $bool_DRSprompt )\n {\n $prompt = 'cObj->data[ ' . $key . '] is unset.';\n t3lib_div::devlog( '[INFO/COBJ] ' . $prompt, $this->pObj->extKey, 0 );\n $bool_DRSprompt = false;\n }\n // DRS\n }", "public function setHidden($value = TRUE);", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setNivel_stgr('');\n $this->setDesc_nivel('');\n $this->setDesc_breve('');\n $this->setOrden('');\n $this->setPrimary_key($aPK);\n }", "public function testSetReferenceNumberWhenDisabled()\n {\n $this->slipData->setWithReferenceNumber(false);\n $this->slipData->setReferenceNumber('');\n }", "public function setIsNillable($isNillable)\n {\n $this->isNillable = $isNillable;\n return $this;\n }", "function setNotCreated() \n {\n $this->setValueByFieldName( 'statevar_isCreated', 0 );\n $this->updateDBTable();\n }", "function __construct($value) {\n if ($value != self::ADDR_NOMEN_FULL && $value != self::ADDR_NOMEN_PARTIAL ) {\n $this->_value = self::ADDR_NOMEN_NO;\n } else {\n $this->_value = $value;\n }\n }", "public function setNonStrokingColor($color) {}", "public function setNonStrokingColor($color) {}", "public function setNoInterrumpir( $comando ) {\n $this->noInterrumpir=$comando;\n $this->enviarNoInterrumpir();\n $this->activarPantalla();\n //activar y enviar comando\n }", "function disablePadding()\r\n {\r\n $this->padding = false;\r\n }", "public function setNoViewFlag($noView = true) {}", "public function setNoValidateYes()\n\t{\n\t\t$this->setAttribute( \"novalidate\");\n\t}", "public function testSetStyleWithNonNovelDuplicateValuesAndUnsetRowValues()\n {\n\n // Create a record.\n $exhibit = $this->_createNeatline();\n\n // Set.\n $this->assertFalse($exhibit->setStyle('vector_color', get_option('vector_color')));\n $this->assertFalse($exhibit->setStyle('vector_opacity', get_option('vector_opacity')));\n $this->assertFalse($exhibit->setStyle('stroke_color', get_option('stroke_color')));\n $this->assertFalse($exhibit->setStyle('stroke_opacity', get_option('stroke_opacity')));\n $this->assertFalse($exhibit->setStyle('stroke_width', get_option('stroke_width')));\n $this->assertFalse($exhibit->setStyle('point_radius', get_option('point_radius')));\n\n // Check.\n $this->assertNull($exhibit->default_vector_color);\n $this->assertNull($exhibit->default_vector_opacity);\n $this->assertNull($exhibit->default_stroke_color);\n $this->assertNull($exhibit->default_stroke_opacity);\n $this->assertNull($exhibit->default_stroke_width);\n $this->assertNull($exhibit->default_point_radius);\n\n }", "public function testSetPaInvisible() {\n\n $obj = new Collaborateurs();\n\n $obj->setPaInvisible(true);\n $this->assertEquals(true, $obj->getPaInvisible());\n }", "public function setNoZoomFlag($noZoom = true) {}", "public function videoconferenciaNoInterrumpir( ) {\n $this->setNoInterrumpir(\"OFF\");\n //$this->setNoInterrumpir(\"ALLOCATED\");\n }", "public function setNoBlock($noBlock)\n {\n $this->noBlock = (bool) $noBlock;\n return $this;\n }", "function reset() {\n\t\tparent::_resetSet();\n\t}", "public function negados(): void\n {\n $dados['title'] = 'Negados';\n $dados['procedimentos'] = $this->Procedimentos->porPaciente(['negado_por !=' => NULL]);\n\n $this->view('regulacao/procedimentos/Negados_view', $dados);\n }", "public function setNoWrap($noWrap)\n {\n if (!is_bool($noWrap) && ($noWrap !== null)) {\n throw BaseException::invalidCoordinateNoWrap();\n }\n\n $this->noWrap = $noWrap;\n }", "public function setNoticias($noticias)\n {\n if (!is_null($noticias))\n $this->noticias = $noticias;\n }", "protected function reset()\n {\n $this->escapingEnabled = true;\n $this->pointerLineNumber = 1;\n $this->pointerLineCharacter = 1;\n }", "public function setCompact()\n {\n parent::setAttr(\"compact\");\n }", "protected function setDefaultOptions()\n {\n $this->unsigned = false;\n }", "public function setDoNotSpellCheck()\n {\n if (!in_array(23, $this->flagBits)) {\n $this->flagBits[] = 23;\n }\n return $this;\n }", "public function disable_autorum()\n\t{\n\t\tnewrelic_disable_autorum();\n\t}", "public function getInvisibleFlag() {}", "public function setNota($nota)\n {\n $this->nota = $nota;\n\n return $this;\n }", "public function testSetNotForPayment()\n {\n $returned = $this->slipData->setNotForPayment(true);\n $this->assertInstanceOf('SwissPaymentSlip\\SwissPaymentSlip\\OrangePaymentSlipData', $returned);\n $this->assertTrue($this->slipData->getNotForPayment());\n\n $this->assertEquals('XXXXXXXXXXXXXXXXXXXX', $this->slipData->getReferenceNumber());\n $this->assertEquals('XXXXXXXXXXXXXXXXXXXXXXXXXXX', $this->slipData->getCompleteReferenceNumber(false));\n $this->assertEquals('XX XXXXX XXXXX XXXXX XXXXX XXXXX', $this->slipData->getCompleteReferenceNumber());\n\n $this->assertEquals('XXXXXXXXXXXXX>XXXXXXXXXXXXXXXXXXXXXXXXXXX+ XXXXXXXXX>', $this->slipData->getCodeLine());\n }", "public function markUnchanged();", "public function setNoEffectAttribute($value)\n {\n $this->attributes['no_effect'] = $this->makeCollection($value);\n }", "public function setReadOnly()\n {\n $this->_allowModifications = false;\n foreach ($this->_data as $key => $value) {\n if ($value instanceof Zend_Config) {\n $value->setReadOnly();\n }\n }\n }", "public function setReadOnly ()\n {\n $this->resetNeedsSaving();\n $this->readOnly = true;\n }", "function ne ($value) {\n return '!=\\''.$value.'\\'';\n }", "public function setIgnoreValidation() {\r\n\t\t$this->getOnepage()->getQuote()->getBillingAddress()->setShouldIgnoreValidation(true);\r\n\t\t$this->getOnepage()->getQuote()->getShippingAddress()->setShouldIgnoreValidation(true);\r\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_dl('');\n $this->setDl('');\n $this->setRegion('');\n $this->setNombre_dl('');\n $this->setGrupo_estudios('');\n $this->setRegion_stgr('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "public function noValidate()\n {\n $this->attribute['novalidate'] = false;\n return $this;\n }", "public function setNullRights() {\n $this->canView = false;\n $this->canRule = false;\n $this->canDeal = false;\n\n return $this;\n }", "function debugOff()\n\t{\n\t\t$this->bDebug = false;\n\t}", "public function getNegocio();", "public function resetHidden($value = '')\n {\n $this->ansi(28);\n $this->raw($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.5463883", "0.54636276", "0.5462568", "0.5461651", "0.545009", "0.54444516", "0.5408409", "0.5403631", "0.5377051", "0.53749704", "0.5373622", "0.53625864", "0.53475004", "0.53444475", "0.532576", "0.5300053", "0.5284397", "0.52813756", "0.5279021", "0.5268197", "0.5264016", "0.52598923", "0.5256792", "0.52486974", "0.5244014", "0.52424926", "0.5241179", "0.5240287", "0.5238316", "0.52301514", "0.52297056", "0.5219523", "0.52131724", "0.5196285", "0.5191521", "0.51850295", "0.51850295", "0.51840144", "0.51759624", "0.51743376", "0.51723915", "0.51639664", "0.5162223", "0.5160657", "0.51595753", "0.5133257", "0.51271296", "0.5120251", "0.5092462", "0.50820065", "0.50705856", "0.50679624", "0.50645393", "0.5064528", "0.5063055", "0.5062001", "0.5061703", "0.5058516", "0.5057127", "0.505336", "0.5052119", "0.5044549", "0.5041261", "0.5040077", "0.5038404", "0.50310445", "0.5030441", "0.50293505", "0.5021247", "0.5018078" ]
0.71935844
0
Set the numero attestation.
public function setNumeroAttestation($numeroAttestation) { $this->numeroAttestation = $numeroAttestation; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetNumeroAttestation() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroAttestation(\"numeroAttestation\");\n $this->assertEquals(\"numeroAttestation\", $obj->getNumeroAttestation());\n }", "function setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }", "function setNum($num)\n {\n $this->num = $num;\n }", "public function setNumber($number);", "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 setNumber($number)\n {\n $this->number = $number;\n }", "public function setNumber($number) {\n $this->_number = $number;\n }", "public function _set($number)\n {\n }", "public function setNumber($number)\n {\n $this->_number = $number;\n }", "function setNiveau($niveau) { $niveau = (int) $niveau;\r\n if ($niveau >= 1 && $niveau <= 100) {\r\n $this->_niveau = $niveau;\r\n }\r\n }", "public function setAno($iAno) {\n $this->iAno = $iAno;\n }", "public function setAno($iAno) {\n $this->iAno = $iAno;\n }", "function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }", "public function testSetNumero() {\n\n $obj = new Collaborateurs();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }", "public function testSetNumeroAvenant() {\n\n $obj = new PointBonTrav();\n\n $obj->setNumeroAvenant(10);\n $this->assertEquals(10, $obj->getNumeroAvenant());\n }", "public function _set($number) {\n\t\t$this->number = $number;\n\t\t$this->id = $this->id_base . '-' . $number;\n\t}", "public function testSetNumero() {\n\n $obj = new Employes();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }", "function setIntestat($intestat)\n {\n $this->intestat = $intestat;\n }", "public function setStart($number)\n {\n parent::setAttr(\"start\", $number);\n }", "public function getNumeroAttestation() {\n return $this->numeroAttestation;\n }", "public function getNumeroAttestation() {\n return $this->numeroAttestation;\n }", "public function setAdvance($number);", "function modificarNumFilhos($numFilhos) {\r\n $this->numFilhos = $numFilhos;\r\n }", "public function setOperationNumber($value) {\n if(strlen($value) > 50 ){\n throw new ValueException(\"Value \".$value.\" is higher than 8\");\n }\n $this->Num_operacion = $value;\n }", "public function setNumagence($numagence)\n {\n $this->numagence = $numagence;\n }", "public function setPageNum($num) {\n\t\t$this->pageNum = (int) $num;\t\n\t}", "function setNapetiKlima(int $napetiKlima):int {\n $this->napetiKlima = $napetiKlima;\n }", "public function setNumcompte($numcompte)\n {\n $this->numcompte = $numcompte;\n }", "public function testSetNumeroEmploye() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroEmploye(\"numeroEmploye\");\n $this->assertEquals(\"numeroEmploye\", $obj->getNumeroEmploye());\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "public function setNumeroIP( $numero ) {\n $this->numero_ip=$numero;\n $this->enviarNumero();\n $this->activarPantalla();\n //activar y enviar numero\n }", "public function setNumber($number)\n {\n if (1 <= $number && $number <= 12) {\n $this->_number = $number;\n } else {\n throw new Exception(\n 'Month numbers should be between 1 and 12'\n );\n }\n }", "public function testSetNumeroFiche() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setNumeroFiche(10);\n $this->assertEquals(10, $obj->getNumeroFiche());\n }", "public function testSetNumeroPermis() {\n\n $obj = new Employes();\n\n $obj->setNumeroPermis(\"numeroPermis\");\n $this->assertEquals(\"numeroPermis\", $obj->getNumeroPermis());\n }", "public function setDayNumberAttribute($value) {\n $this->attributes['day_number'] = ($value === null ? null : (int)$value);\n }", "public function testSetIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnAutre(true);\n $this->assertEquals(true, $obj->getIndemnAutre());\n }", "public function testSetNumeroOrdre() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setNumeroOrdre(10);\n $this->assertEquals(10, $obj->getNumeroOrdre());\n }", "public function setNumber(?int $number): self\n {\n $this->initialized['number'] = true;\n $this->number = $number;\n\n return $this;\n }", "public function setNumberAttribute($input)\n {\n $this->attributes['number'] = $input ? $input : null;\n }", "public function testSetNumeroCarteTravail() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteTravail(\"numeroCarteTravail\");\n $this->assertEquals(\"numeroCarteTravail\", $obj->getNumeroCarteTravail());\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function setAno($ano)\n {\n $this->ano = $ano;\n }", "public function setNumber(/*int*/ $value) /*: this*/ {\n $this->number = $value;\n return $this;\n }", "public function setNumber(int $number) : self\n {\n $this->initialized['number'] = true;\n $this->number = $number;\n return $this;\n }", "public function setNumber(?int $number)\n {\n $this->number = $number;\n\n return $this;\n }", "public function testSetNumeroInsee() {\n\n $obj = new Employes();\n\n $obj->setNumeroInsee(\"numeroInsee\");\n $this->assertEquals(\"numeroInsee\", $obj->getNumeroInsee());\n }", "public function setIdEdificio($n)\n {\n echo $this->getContenido();\n $this->c_id_edificio = $n;\n }", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "public function setNerve($value)\n {\n $this->nerve = $value;\n }", "public function setSequenceNumber($number) {\n\t\t$this->sequence = $number;\n\t\t// create the field\n\t\t$field = new ACHRecordField([84,87], $this->sequence);\n\t\t\n\t\t// add padding to the number\n\t\t$field->addPadding('0');\n\n\t\t// add the field.\n\t\t$this->addField( $field );\n\t}", "public function set(int $value): void {}", "public function setNumero1($num1) {\n\t\t$this->numero1 = $num1;\n\t}", "public function setNumber($number)\n {\n if(!is_string($number) || strlen(trim($number)) == 0)\n throw new InvalidArgumentException(__METHOD__ . '; Invalid number, must be a non empty string');\n \n $this->number = $number;\n }", "function setPonum($ponum) {\n\t\tif ((strlen($ponum)>=1 and strlen($ponum)<=60) or !preg_match(\"/ /\", $ponum)) {\n\t\t\t$this->ponum = $ponum;\n\t\t} else {\n\t\t\t$this->error[] = \"Invalid Purchase Order Number\";\n\t\t}\n\t}", "function setPonum($ponum) {\n\t\tif ((strlen($ponum)>=1 and strlen($ponum)<=60) or !preg_match(\"/ /\", $ponum)) {\n\t\t\t$this->ponum = $ponum;\n\t\t} else {\n\t\t\t$this->error[] = \"Invalid Purchase Order Number\";\n\t\t}\n\t}", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "public function setNumber(?string $value): void {\n $this->getBackingStore()->set('number', $value);\n }", "function setValorNota($nValorNota) {\n \n $this->nValorNota = $nValorNota;\n }", "public function testSetNumeroNoeudLocal() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setNumeroNoeudLocal(10);\n $this->assertEquals(10, $obj->getNumeroNoeudLocal());\n }", "public function testSetNumDevis() {\n\n $obj = new DevisZbe();\n\n $obj->setNumDevis(\"numDevis\");\n $this->assertEquals(\"numDevis\", $obj->getNumDevis());\n }", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "public function setNValue($nVal) {}", "public function testSetNumeroLigne() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setNumeroLigne(10);\n $this->assertEquals(10, $obj->getNumeroLigne());\n }", "public function set_apn(string $newval): int\n {\n $rest_val = $newval;\n return $this->_setAttr(\"apn\", $rest_val);\n }", "public function set_idnumber($value) {\r\n $this->idnumber = $value;\r\n data::add(\"idnumber\", $this->idnumber == \"\" ? NODATA : input::santize($this->idnumber), $this->table_fields);\r\n }", "public function testSetNumeroCarteSejour() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteSejour(\"numeroCarteSejour\");\n $this->assertEquals(\"numeroCarteSejour\", $obj->getNumeroCarteSejour());\n }", "function setNum_teleco($snum_teleco = '')\n {\n $this->snum_teleco = $snum_teleco;\n }", "public function setNumero1($numero1) {\n\t\t$this->numero1 = $numero1;\n\t}", "public function setNumeroDemande($numeroDemande)\n\t{\n\t\t$this->_numero_demande = $numeroDemande;\n\t}", "protected function setDNINumber($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\t$value = number_format($value,\"0\",\"\",\".\");\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 298, 623, 'UTF-8');\n\t\t}\n\t\t\n\t}", "public function testSetNumBt() {\n\n $obj = new PointBonTrav();\n\n $obj->setNumBt(10);\n $this->assertEquals(10, $obj->getNumBt());\n }", "public function testSetMtIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnAutre(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnAutre());\n }", "public function setNumeroPj(?int $numeroPj): Assurances {\n $this->numeroPj = $numeroPj;\n return $this;\n }", "public function setNumber($var)\n {\n GPBUtil::checkInt32($var);\n $this->number = $var;\n }", "public function setNumber($val)\n {\n $this->_propDict[\"number\"] = $val;\n return $this;\n }", "public function transactionNum($value) {\n $this->annotations['transaction_num'] = $value;\n return $this;\n }", "public function setNit_empresa($nit_empresa){\n $this->nit_empresa = $nit_empresa;\n }", "public function testSetNumVoie() {\n\n $obj = new Employes();\n\n $obj->setNumVoie(\"numVoie\");\n $this->assertEquals(\"numVoie\", $obj->getNumVoie());\n }", "private function setSequence(): void\n {\n $this->sequence = $this->getSequence();\n }", "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 setNumberParallel($number)\n {\n if ($number < 1) {\n throw new \\InvalidArgumentException('Number has to be > 0.');\n }\n $this->number_parallel = (integer)$number;\n }", "public function setIdNum(int $idNum)\n {\n $this->idNum = $idNum;\n }", "public function setCantidad($cantidad){\n\t\t $this->cantidad = $cantidad;\n\t\t }", "public function testSetNomNaissance() {\n\n $obj = new AttestationCacm();\n\n $obj->setNomNaissance(\"nomNaissance\");\n $this->assertEquals(\"nomNaissance\", $obj->getNomNaissance());\n }", "public function setGanadorOnFichas($number, $id){\n\t\t$target = 'ganador';\n\t\t$update = \"UPDATE fichas SET value = $number WHERE target = '\".$target.\"' AND usuario_id = '\".$id.\"'\";\n\t\t$this->connection->query($update);\n }", "public function __construct($number)\n {\n $this->value = $number;\n }", "public function setNumber(int $number)\n {\n $this->number = $number;\n\n return $this;\n }", "public function set($number)\n {\n $this->number = $number;\n\n return $this;\n }", "public function setNumber(?string $number): self\n {\n $this->initialized['number'] = true;\n $this->number = $number;\n\n return $this;\n }", "public function setVatIdNo($vatin);", "private function setNumberOfPages(): void\n {\n $this->number_of_pages = (int)ceil($this->number_of_records / $this->per_page);\n }", "public function testSetNumVoie() {\n\n $obj = new Collaborateurs();\n\n $obj->setNumVoie(\"numVoie\");\n $this->assertEquals(\"numVoie\", $obj->getNumVoie());\n }", "public function setIncrementing($value);", "function set_num_items($num){\n $this -> num_of_items = $num;\n }", "public function setPage(int $page)\n {\n $this->page = $page;\n }", "public function setPage(int $page): void\n {\n $this->page = $page;\n }", "public function setIneligibleStepsCount(?int $value): void {\n $this->getBackingStore()->set('ineligibleStepsCount', $value);\n }" ]
[ "0.7269072", "0.6971353", "0.68026376", "0.65445244", "0.6496827", "0.6386084", "0.6370564", "0.63603365", "0.6334254", "0.6205171", "0.6151522", "0.6151522", "0.61320525", "0.6095881", "0.6055644", "0.6046729", "0.60197306", "0.59876096", "0.5970618", "0.5964431", "0.5964431", "0.59209394", "0.591571", "0.58786255", "0.5847808", "0.5826785", "0.57919043", "0.57830703", "0.57801807", "0.5777715", "0.5777715", "0.57745165", "0.57582885", "0.57480747", "0.5739865", "0.57113177", "0.5703228", "0.56946975", "0.56818604", "0.56551486", "0.5645169", "0.5633007", "0.5619072", "0.56173855", "0.5603569", "0.5590326", "0.5579754", "0.55789125", "0.5575456", "0.5575456", "0.5550865", "0.55360097", "0.55157125", "0.55023396", "0.5498903", "0.5498891", "0.5498891", "0.5494685", "0.5493504", "0.54929996", "0.54869765", "0.5472405", "0.54677284", "0.5464086", "0.54411256", "0.5439648", "0.54242456", "0.5420516", "0.5415205", "0.54151094", "0.54074246", "0.5399647", "0.5383528", "0.53792655", "0.5347219", "0.53447187", "0.5334335", "0.5312813", "0.5308698", "0.53075594", "0.53031415", "0.5280664", "0.5263415", "0.5262623", "0.52601975", "0.52551985", "0.5251329", "0.5247488", "0.5247397", "0.5230157", "0.5219742", "0.5202527", "0.51980907", "0.5194061", "0.5192773", "0.5191238", "0.5190054", "0.5179189", "0.51776725" ]
0.66018647
4
Set the numero employe.
public function setNumeroEmploye($numeroEmploye) { $this->numeroEmploye = $numeroEmploye; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetNumeroEmploye() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroEmploye(\"numeroEmploye\");\n $this->assertEquals(\"numeroEmploye\", $obj->getNumeroEmploye());\n }", "public function testSetNumero() {\n\n $obj = new Employes();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\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 setNumeroEmploye(?string $numeroEmploye): RetraitesEmp {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "public function testSetNumeroInsee() {\n\n $obj = new Employes();\n\n $obj->setNumeroInsee(\"numeroInsee\");\n $this->assertEquals(\"numeroInsee\", $obj->getNumeroInsee());\n }", "public function testSetNumeroCasPartSecu() {\n\n $obj = new Employes();\n\n $obj->setNumeroCasPartSecu(10);\n $this->assertEquals(10, $obj->getNumeroCasPartSecu());\n }", "public function testSetNumero() {\n\n $obj = new Collaborateurs();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }", "public function testSetNumeroCarteSejour() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteSejour(\"numeroCarteSejour\");\n $this->assertEquals(\"numeroCarteSejour\", $obj->getNumeroCarteSejour());\n }", "public function setNumeroEmploye(?string $numeroEmploye): PrepaPaie {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "public function testSetNumeroPermis() {\n\n $obj = new Employes();\n\n $obj->setNumeroPermis(\"numeroPermis\");\n $this->assertEquals(\"numeroPermis\", $obj->getNumeroPermis());\n }", "function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }", "function modificarNumFilhos($numFilhos) {\r\n $this->numFilhos = $numFilhos;\r\n }", "public function testSetNumVoie() {\n\n $obj = new Employes();\n\n $obj->setNumVoie(\"numVoie\");\n $this->assertEquals(\"numVoie\", $obj->getNumVoie());\n }", "function setNum($num)\n {\n $this->num = $num;\n }", "public function testSetNumeroOrdre() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setNumeroOrdre(10);\n $this->assertEquals(10, $obj->getNumeroOrdre());\n }", "function set_employee($emp)\n\t\t{\n\t\t\t$this->employee = $emp;\n\t\t}", "public function setNit_empresa($nit_empresa){\n $this->nit_empresa = $nit_empresa;\n }", "public function testSetNumeroCarteTravail() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteTravail(\"numeroCarteTravail\");\n $this->assertEquals(\"numeroCarteTravail\", $obj->getNumeroCarteTravail());\n }", "public function setEmpId($val){\n\t\tif(intval($val) > 0){\n\t\t\t$this->employeeId = intval($val);\n\t\t}\t\t\n\t\treturn $this;\n\t}", "public function setNumeroEmploye(?string $numeroEmploye): LignesBulletinCompl {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "public function testSetCodeEmploye() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "function setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }", "public function setLenumero(int $lenumero)\n {\n $lenumero= (int)$lenumero;\n //checking numero is empty\n if(empty($lenumero)){ \n trigger_error('The number is not correct');\n }else{\n $this->lenumero = $lenumero;\n }\n }", "public function setIdEdificio($n)\n {\n echo $this->getContenido();\n $this->c_id_edificio = $n;\n }", "public function testSetDernNumPrime() {\n\n $obj = new Employes();\n\n $obj->setDernNumPrime(10);\n $this->assertEquals(10, $obj->getDernNumPrime());\n }", "public function setidExamen($Valor){\r\n $this->idExamen = trim($Valor);\r\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 setNumcompte($numcompte)\n {\n $this->numcompte = $numcompte;\n }", "public function testSetNumeroFiche() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setNumeroFiche(10);\n $this->assertEquals(10, $obj->getNumeroFiche());\n }", "public function setNumber($number);", "public function setEmpleado_idemp($empleado_idemp){\n $this->empleado_idemp = $empleado_idemp;\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 setInvoiceNumber()\n { \n // get next number according to invoicetype\n return $this->bean->name = $this->bean->invoicetype()->nextSerial();\n }", "public function getNumIdccEmployeur() {\n return $this->numIdccEmployeur;\n }", "public function setSaldo($nuevo_saldo, $id_empresa){\n }", "public function _set($number)\n {\n }", "public function testLineaEmpresaNumero() {\n\t\t$linea = \"143 Roja\";\n\t\t$numero = 13;\n\t\t$empresa = \"Rosario Bus\";\n\n\t\t$colectivo = new Colectivo( $linea, $empresa, $numero );\n\n\t\t$this->assertEquals( $linea, $colectivo->linea() );\n\t\t$this->assertEquals( $numero, $colectivo->numero() );\n\t\t$this->assertEquals( $empresa, $colectivo->empresa() );\n\t}", "public function testSetCodeEmploye() {\n\n $obj = new PointBonTrav();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }", "public function testSetNumeroLigne() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setNumeroLigne(10);\n $this->assertEquals(10, $obj->getNumeroLigne());\n }", "public function testSetNumeroNoeudLocal() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setNumeroNoeudLocal(10);\n $this->assertEquals(10, $obj->getNumeroNoeudLocal());\n }", "public function _set($number) {\n\t\t$this->number = $number;\n\t\t$this->id = $this->id_base . '-' . $number;\n\t}", "public function setIdUsuario($n)\n {\n $this->c_id_usuario = $n;\n }", "function setid_exp($val)\n { $this->id_exp=$val;}", "function setNum_teleco($snum_teleco = '')\n {\n $this->snum_teleco = $snum_teleco;\n }", "public function setIdEmpresa($value,$options=array('required'=>true)){ \n $this->_data['id_empresa'] = new ZendT_Type_Number($value,array('numDecimal'=>null));\n if ($options['db'])\n $this->_data['id_empresa']->setValueFromDb($value);\n \n if (!$options['db']){\n \n if ($options['required'])\n $this->isRequired($value,'id_empresa');\n \n }\n return $this;\n }", "protected function setMesto_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->mesto_id = $value; }\n\t}", "public function setNumeroSem(?int $numeroSem): HoraireTheorique {\n $this->numeroSem = $numeroSem;\n return $this;\n }", "function setid_exp($val)\n { $this->id_exp=$val;}", "function setid_exp($val)\n { $this->id_exp=$val;}", "public function testSetCodeEtablissement() {\n\n $obj = new Employes();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function setIdJeu(int $id_jeu) {\n $this->id_jeu = $id_jeu;\n }", "public function testSetEmploi() {\n\n $obj = new Employes();\n\n $obj->setEmploi(\"emploi\");\n $this->assertEquals(\"emploi\", $obj->getEmploi());\n }", "function setEmployeeID($employeeid) {\n $this->employeeid = $employeeid;\n }", "public function setNumOpe(int $numOpe)\n {\n $this->numOpe = $numOpe;\n\n return $this;\n }", "function setNiveau($niveau) { $niveau = (int) $niveau;\r\n if ($niveau >= 1 && $niveau <= 100) {\r\n $this->_niveau = $niveau;\r\n }\r\n }", "public function setEAN ($ean){\n\t\tif($ean) {\n\t\t\t$this->Item['ean'] = substr($ean, 0,100);\n\t\t}\n\t}", "public function setNumber($number)\n {\n $this->number = $number;\n }", "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 setNumber($number) {\n $this->_number = $number;\n }", "public function testSetNumVoie() {\n\n $obj = new Collaborateurs();\n\n $obj->setNumVoie(\"numVoie\");\n $this->assertEquals(\"numVoie\", $obj->getNumVoie());\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 setNumber($number)\n {\n $this->_number = $number;\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 testSetNumeroGrilleType() {\n\n $obj = new Employes();\n\n $obj->setNumeroGrilleType(10);\n $this->assertEquals(10, $obj->getNumeroGrilleType());\n }", "public function getFkEstudiantesNumeroIdentificacion()\n\t{\n\t\treturn $this->fkEstudiantesNumeroIdentificacion;\n\t}", "public function testSetCodeOfficielCommune() {\n\n $obj = new Employes();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\n }", "public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "public function setEid($eid) {\n $this->eid = $eid;\n }", "function getNumero() {\n return $this->numero;\n }", "public function getNit_empresa(){\n return $this->nit_empresa;\n }", "public function setNumIdccEmployeur($numIdccEmployeur) {\n $this->numIdccEmployeur = $numIdccEmployeur;\n return $this;\n }", "function setValorNota($nValorNota) {\n \n $this->nValorNota = $nValorNota;\n }", "public function setNerve($value)\n {\n $this->nerve = $value;\n }", "public function setNumeroIP( $numero ) {\n $this->numero_ip=$numero;\n $this->enviarNumero();\n $this->activarPantalla();\n //activar y enviar numero\n }", "function setNapetiKlima(int $napetiKlima):int {\n $this->napetiKlima = $napetiKlima;\n }", "public function setNomEmploye($nomEmploye) {\n $this->nomEmploye = $nomEmploye;\n return $this;\n }", "public function setNomEmploye($nomEmploye) {\n $this->nomEmploye = $nomEmploye;\n return $this;\n }", "public function setNumero1($num1) {\n\t\t$this->numero1 = $num1;\n\t}", "public function setAno($iAno) {\n $this->iAno = $iAno;\n }", "public function setAno($iAno) {\n $this->iAno = $iAno;\n }", "public function setLafiliere_idlafiliere(int $lafiliere_idlafiliere):void\n {\n $lafiliere_idlafiliere = (int)$lafiliere_idlafiliere;\n //checking is empty\n if(empty($lafiliere_idlafiliere)){\n trigger_error(\"The foreign key session is not valid\",E_USER_NOTICE);\n }else{\n $this->lafiliere_idlafiliere = $lafiliere_idlafiliere;\n }\n }", "public function setCentrosEmergenciaId($data)\n {\n\n if ($this->_centrosEmergenciaId != $data) {\n $this->_logChange('centrosEmergenciaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_centrosEmergenciaId = $data;\n } else if (!is_null($data)) {\n $this->_centrosEmergenciaId = (int) $data;\n } else {\n $this->_centrosEmergenciaId = $data;\n }\n return $this;\n }", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "public function setIdusuario($value){\n $this->idusuario = $value;\n }", "public function testSetNbHeureMois() {\n\n $obj = new Employes();\n\n $obj->setNbHeureMois(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMois());\n }", "public function setPrenomEmploye($prenomEmploye) {\n $this->prenomEmploye = $prenomEmploye;\n return $this;\n }", "public function setNumObjet($numObjet) {\n $this->numObjet = $numObjet;\n return $this;\n }", "public function setOperationNumber($value) {\n if(strlen($value) > 50 ){\n throw new ValueException(\"Value \".$value.\" is higher than 8\");\n }\n $this->Num_operacion = $value;\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 setNombre_empresa($nombre_empresa){\n $this->nombre_empresa = $nombre_empresa;\n }", "public function getNumero()\n {\n return $this->numero;\n }" ]
[ "0.71420723", "0.70451", "0.6846336", "0.6846336", "0.6846336", "0.66757107", "0.66350424", "0.65173405", "0.6441297", "0.6436283", "0.6435224", "0.6433659", "0.6415191", "0.62938696", "0.62887955", "0.6266699", "0.62031996", "0.618896", "0.61657405", "0.61638904", "0.6120768", "0.6119183", "0.61145365", "0.60973066", "0.60069686", "0.59867376", "0.597794", "0.5957161", "0.59279513", "0.59279513", "0.59279513", "0.5873472", "0.58575165", "0.5855586", "0.5849025", "0.58365226", "0.5784896", "0.5782717", "0.5763285", "0.575201", "0.5722029", "0.57046163", "0.56812537", "0.56721884", "0.5670924", "0.56587005", "0.5656133", "0.56497556", "0.5641685", "0.56290036", "0.5625941", "0.5623784", "0.56190807", "0.56190807", "0.5613063", "0.5611599", "0.56079924", "0.5605196", "0.5568553", "0.55623126", "0.55526245", "0.5551845", "0.55482197", "0.5548013", "0.5532151", "0.5525478", "0.5525245", "0.5520832", "0.5513449", "0.5510654", "0.55104566", "0.5480326", "0.54692084", "0.54647666", "0.5461089", "0.545877", "0.5454047", "0.54398304", "0.54303527", "0.5425734", "0.5384117", "0.53837454", "0.5379671", "0.5379671", "0.53712296", "0.536838", "0.536838", "0.53636515", "0.5353266", "0.53526765", "0.53457236", "0.53451055", "0.53439325", "0.5337581", "0.53201765", "0.53145677", "0.5312359", "0.5295769" ]
0.6642303
8
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 }", "public function setageEu($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->age_eu !== $v) {\n $this->age_eu = $v;\n $this->modifiedColumns[] = ActionTypePeer::AGE_EU;\n }\n\n\n return $this;\n }", "public function testSetPlafondGmp() {\n\n $obj = new Employes();\n\n $obj->setPlafondGmp(10.092018);\n $this->assertEquals(10.092018, $obj->getPlafondGmp());\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function setedadPaciente($value){\n\n\t\t$this->_edadPaciente = $value;\n\t}", "function getEstanteria(){\r\n return $this->estanteria;\r\n }", "public function testSetTypePaiement() {\n\n $obj = new Employes();\n\n $obj->setTypePaiement(\"typePaiement\");\n $this->assertEquals(\"typePaiement\", $obj->getTypePaiement());\n }", "public function testSetTransfertPaie() {\n\n $obj = new PointBonTrav();\n\n $obj->setTransfertPaie(\"transfertPaie\");\n $this->assertEquals(\"transfertPaie\", $obj->getTransfertPaie());\n }", "protected function setOfferNature ()\n {\n $this->offerNature = $this->offer->rate_nature->value;\n }", "public function deliveryPriceDhaka()\n {\n }", "public function testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }", "public function testSetTauxPensionCivile() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionCivile(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionCivile());\n }", "function setNiveau($niveau) { $niveau = (int) $niveau;\r\n if ($niveau >= 1 && $niveau <= 100) {\r\n $this->_niveau = $niveau;\r\n }\r\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 getEmenta()\n {\n return $this->ementa;\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function testSetEtage() {\n\n $obj = new DevisZbe();\n\n $obj->setEtage(\"etage\");\n $this->assertEquals(\"etage\", $obj->getEtage());\n }", "function updateEtat() {\r\n\r\n\t\t$this->connection = new Connection();\r\n\t\t$conn = $this->connection->openConnection();\r\n\r\n\t\t$insert = $conn->prepare(\"UPDATE `panier` SET `etat`=1 WHERE `id_internaute`=:id_internaute AND `id_nourriture`=:id_nourriture AND `datep`=:datep\");\r\n\t\ttry {\r\n\t\t\t$result = $insert->execute(array('id_internaute' => $this->getId_internaute(),'id_nourriture' => $this->getId_nourriture(),'datep' => $this->getDate()));\r\n\t\t} catch (PDOExecption $e) {\r\n\t\t\tprint \"Error!: \" . $e->getMessage() . \"</br>\";\r\n\t\t}\r\n\t\t$this->connection->closeConnection();\r\n\t}", "public function setAmount()\n {\n $exact = $this->getOriginalPurgeValue('amount_exact');\n $percentage = $this->getOriginalPurgeValue('amount_percentage');\n\n $this->amount = $this->is_percentage\n ? $percentage\n : $exact;\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 actualiser_etat() {\n try {\n $m = $_SESSION[\"mascotte\"];\n\n // Actualisation de base\n changer_etat($m->sante, -20);\n changer_etat($m->bonheur, -20);\n changer_etat($m->faim, 10);\n changer_etat($m->pourc_maladie, 10);\n\n // Actualisation selon l'environnement\n $decos = array();\n if (isset($_SESSION[\"mascotte\"]->decorations))\n $decos = $_SESSION[\"mascotte\"]->decorations;\n foreach ($decos as $d) {\n actualiser_etat_objet($d);\n }\n\n // Actualisation selon les vetements\n $vets = array();\n if (isset($_SESSION[\"mascotte\"]->vetements))\n $vets = $_SESSION[\"mascotte\"]->vetements;\n foreach ($vets as $v) {\n actualiser_etat_objet($v);\n }\n\n $m->sante = intval($m->sante);\n $m->bonheur = intval($m->bonheur);\n $m->faim = intval($m->faim);\n $m->pourc_maladie = intval($m->pourc_maladie);\n\n retourner_succes(array(\"sante\" => $m->sante,\n \"bonheur\" => $m->bonheur,\n \"faim\" => $m->faim,\n \"maladie\" => $m->pourc_maladie));\n }\n catch(Exception $ex) {\n retourner_erreur($ex->getMessage());\n }\n }", "public function edit(paiement $paiement)\n {\n //\n }", "public function setPaginaAtual($pagina){\n $this->PaginaAtual = $pagina;\n }", "public function setGeneral() // Attribuer une valeur générale à un attaquant\n {\n $this->_general = round($this->attaqueCalcul());\n }", "public function testSetBureauDistributeur() {\n\n $obj = new Employes();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "public function getPesoArea() {\n return $this->_peso; \n }", "public function testSetCumHeurePaye() {\n\n $obj = new Employes();\n\n $obj->setCumHeurePaye(10.092018);\n $this->assertEquals(10.092018, $obj->getCumHeurePaye());\n }", "public function setAmount($value) {\n if(strlen($value) > 8 ){\n throw new ValueException(\"Value \".$value.\" is higher than 8\");\n }\n $this->Importe = number_format($value,$this->Exponente,'','');\n }", "public function setEmenta($ementa)\n {\n $this->ementa = $ementa;\n\n return $this;\n }", "public function getEstudiante( ){\n\t\treturn $this->estudiante;\n\t}", "function setPrice($new_price)\n {\n $this->price = $new_price;\n }", "public function testSetPrixVente3() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente3());\n }", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "function update() {\r\n\r\n\t\t$this->connection = new Connection();\r\n\t\t$conn = $this->connection->openConnection();\r\n\r\n\t\t$insert = $conn->prepare(\"UPDATE `panier` SET `quantite`=:quantite WHERE id_internaute=:id_internaute AND id_nourriture=:id_nourriture AND datep=:datep\");\r\n\t\ttry {\r\n\t\t\t$result = $insert->execute(array('quantite' => $this->getQuantite(),'id_internaute' => $this->getId_internaute(),'id_nourriture' => $this->getId_nourriture(),'datep' => $this->getDate()));\r\n\t\t\t\r\n\t\t} catch (PDOExecption $e) {\r\n\t\t\tprint \"Error!: \" . $e->getMessage() . \"</br>\";\r\n\t\t}\r\n\t\t$this->connection->closeConnection();\r\n\t}", "public function setPrix($prix)\n {\n $prix = (float) $prix;\n // on vérifie que l id supérieur à zero\n if($prix > 0.0)\n {\n $this->_prix = $prix;\n }\n }", "public function testSetPourcentRemuHor() {\n\n $obj = new Employes();\n\n $obj->setPourcentRemuHor(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentRemuHor());\n }", "public function testSetCumProvCp() {\n\n $obj = new Employes();\n\n $obj->setCumProvCp(10.092018);\n $this->assertEquals(10.092018, $obj->getCumProvCp());\n }", "public function testSetPrixVente2() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente2(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente2());\n }", "public function setCurrency($currency){\n $this->currency = $currency;\n }", "public function setDateDuJour()\n{\n$this->setDateSysteme(date(\"Y-m-d\"));\n$this->setDateUtilisateur(date(\"d/m/Y\"));\n}", "function setCurrencyCode(){\n switch($this->Currency){\n case \"USD\": $this->CurrencyCode = 840;\n break;\n case \"EUR\": $this->CurrencyCode = 978;\n break;\n case \"AUD\": $this->CurrencyCode = 036;\n break;\n case \"CAD\": $this->CurrencyCode = 124;\n break;\n case \"GBP\": $this->CurrencyCode = 826;\n break;\n case \"JPY\": $this->CurrencyCode = 392;\n break;\n }// end switch\n }", "function setPrice( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->Price = $value;\n setType( $this->Price, \"double\" );\n }", "public function geraPauta()\n {\n $turmaId = $this->args[0];\n $pautaXls = $this->Turma->geraPautaExcel($turmaId);\n\n $objWriter = PHPExcel_IOFactory::createWriter($pautaXls, 'Excel2007');\n $objWriter->save(Configure::read('OpenSGA.save_path') . DS . $turmaId . '.xlsx');\n $this->Turma->id = $turmaId;\n $this->Turma->set('pauta_path', Configure::read('OpenSGA.save_path') . DS . $turmaId . '.xlsx');\n $this->Turma->save();\n\n }", "public function testSetMensualisation() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMensualisation(10.092018);\n $this->assertEquals(10.092018, $obj->getMensualisation());\n }", "public function setPerPersonEquivFareCurrency(string $value): self\n {\n $this->PerPersonEquivFareCurrency = $value;\n\n return $this;\n }", "public function setEncendidoPizarra( $encendido ) {\n $this->pizarra_on=$encendido;\n $this->enviarComandoEstado();\n //$this->activarPantalla();\n }", "public function testSetYaEuSaisieManuelle() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setYaEuSaisieManuelle(true);\n $this->assertEquals(true, $obj->getYaEuSaisieManuelle());\n }", "public function setUtente($utente) \n\t{\n $this->utente = $utente;\n }", "public function testSetEtat() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setEtat(\"etat\");\n $this->assertEquals(\"etat\", $obj->getEtat());\n }", "protected function setAmount()\n {\n if ( ! isset( $_POST['amount'] ) ) {\n $this->error = true;\n $this->data['error']['amount'] = 'Please enter a donation amount.';\n return;\n }\n \n $amount = trim( $_POST['amount'] );\n\n // Remove illegal characters\n $regex = '/[[^0-9.]]/';\n $value = preg_replace( $regex, '', $amount );\n \n \tif ( $value && is_numeric( $value ) && $value > 0 ) {\n $value = floor( $value * 100 ); // Set the amount in cents.\n \t\t$this->data['amount'] = $value;\n \t} else {\n \t\t$this->data['amount'] = 0;\n \t}\n }", "public function engordar($quilos){\n $this->peso = $this->peso + $quilos;\n}", "public function setPrix($Prix)\n{\n$this->Prix = $Prix;\nreturn $this;\n}", "public function setCep($cep): Pessoa\n {\n $this->cep = $cep;\n return $this;\n }", "public function testSetAvecPrixVente() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setAvecPrixVente(true);\n $this->assertEquals(true, $obj->getAvecPrixVente());\n }", "public function setEgoera($data)\n {\n\n if ($this->_egoera != $data) {\n $this->_logChange('egoera');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_egoera = $data;\n\n } else if (!is_null($data)) {\n $this->_egoera = (int) $data;\n\n } else {\n $this->_egoera = $data;\n }\n return $this;\n }", "public function setDateMiseEnLigne($dateMiseEnLigne) \n\t{\n\t\t\n $this ->dateMiseEnLigne = empty($dateMiseEnLigne) ? \"\" : $dateMiseEnLigne;\t\n\t}", "protected function setCountry(): void\n {\n Config::set('butik.country', 'DE');\n }", "function setPrice($price)\n {\n $this->price = $price;\n }", "public function setForAuteur()\n {\n //met à jour les proposition qui n'ont pas de base contrat et qui ne sont pas null\n /*PLUS BESOIN DE BASE CONTRAT\n \t\t$dbP = new Model_DbTable_Iste_proposition();\n \t\t$dbP->update(array(\"base_contrat\"=>null), \"base_contrat=''\");\n */\n\t \t//récupère les vente qui n'ont pas de royalty\n\t \t$sql = \"SELECT \n ac.id_auteurxcontrat, ac.id_livre\n , ac.id_isbn, ac.pc_papier, ac.pc_ebook\n , a.prenom, a.nom, c.type, IFNULL(a.taxe_uk,'oui') taxe_uk\n ,i.num\n , v.id_vente, v.date_vente, v.montant_livre, v.id_boutique, v.type typeVente\n , i.id_editeur, i.type typeISBN\n , impF.conversion_livre_euro\n FROM iste_vente v\n INNER JOIN iste_isbn i ON v.id_isbn = i.id_isbn \n INNER JOIN iste_importdata impD ON impD.id_importdata = v.id_importdata\n INNER JOIN iste_importfic impF ON impF.id_importfic = impD.id_importfic\n INNER JOIN iste_auteurxcontrat ac ON ac.id_isbn = v.id_isbn\n INNER JOIN iste_contrat c ON c.id_contrat = ac.id_contrat\n INNER JOIN iste_auteur a ON a.id_auteur = ac.id_auteur\n INNER JOIN iste_livre l ON l.id_livre = i.id_livre \n LEFT JOIN iste_royalty r ON r.id_vente = v.id_vente AND r.id_auteurxcontrat = ac.id_auteurxcontrat\n WHERE pc_papier is not null AND pc_ebook is not null AND pc_papier != 0 AND pc_ebook != 0\n AND r.id_royalty is null \";\n\n $stmt = $this->_db->query($sql);\n \n \t\t$rs = $stmt->fetchAll(); \n \t\t$arrResult = array();\n \t\tforeach ($rs as $r) {\n\t\t\t//calcule les royalties\n \t\t\t//$mtE = floatval($r[\"montant_euro\"]) / intval($r[\"nbA\"]);\n \t\t\t//$mtE *= floatval($r[\"pc_papier\"])/100;\n \t\t\tif($r[\"typeVente\"]==\"ebook\")$pc = $r[\"pc_ebook\"];\n \t\t\telse $pc = $r[\"pc_papier\"];\n $mtL = floatval($r[\"montant_livre\"])*floatval($pc)/100;\n //ATTENTION le taux de conversion est passé en paramètre à l'import et le montant des ventes est calculé à ce moment\n \t\t\t//$mtD = $mtL*floatval($r[\"taux_livre_dollar\"]);\n \t\t\t$mtE = $mtL*floatval($r['conversion_livre_euro']);\n //ajoute les royalties pour l'auteur et la vente\n //ATTENTION les taxes de déduction sont calculer lors de l'édition avec le taux de l'année en cours\n $dt = array(\"pourcentage\"=>$pc,\"id_vente\"=>$r[\"id_vente\"]\n ,\"id_auteurxcontrat\"=>$r[\"id_auteurxcontrat\"],\"montant_euro\"=>$mtE,\"montant_livre\"=>$mtL\n ,\"conversion_livre_euro\"=>$r['conversion_livre_euro']);\n\t \t\t$arrResult[]= $this->ajouter($dt\n ,true,true);\n //print_r($dt);\n \t\t}\n \t\t\n \t\treturn $arrResult;\n }", "public function testSetCumCpDus() {\n\n $obj = new Employes();\n\n $obj->setCumCpDus(10.092018);\n $this->assertEquals(10.092018, $obj->getCumCpDus());\n }", "public function testSetCumPlafondGmp() {\n\n $obj = new Employes();\n\n $obj->setCumPlafondGmp(10.092018);\n $this->assertEquals(10.092018, $obj->getCumPlafondGmp());\n }", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "public function setIndemniteCp(?float $indemniteCp): ChargesPaie {\n $this->indemniteCp = $indemniteCp;\n return $this;\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 setdia_semana($valor)\n {\n if (($valor <= 0) || ($valor > 7)) :\n echo \"Tentou atribuir {$valor} para dia da semana!\";\n die();\n endif;\n\n $this->data['dia_semana'] = $valor;\n }", "public function setValorAtual($nValorAtual) {\n $this->nValorAtual = $nValorAtual + $this->getValorResidual();\n }", "public function testSetPourcentEffectifDucs() {\n\n $obj = new Employes();\n\n $obj->setPourcentEffectifDucs(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentEffectifDucs());\n }", "public function actionEditPrecioUnitario()\r\n {\r\n Yii::import('booster.components.TbEditableSaver');\r\n $es = new TbEditableSaver('DetalleVenta');\r\n $es->scenario='update';\r\n// /$_cantidad= $es->value;\r\n $es->onBeforeUpdate= function($event) {\r\n\r\n $model=$this->loadModel(yii::app()->request->getParam('pk')); //obteniendo el Model de detalleCompra\r\n \r\n //incrementando el credito disponible para para el cliente\r\n Cliente::model()->actualizarCreditoDisponible($model, 0);\r\n \r\n $_precioUnitario= yii::app()->request->getParam('value');\r\n \r\n $_total= round($model->cantidad*$_precioUnitario,2);//calculando el subtotal\r\n $_subtotal= $_subtotal= Producto::model()->getSubtotal($_total); //round($_total/((int)Yii::app()->params['impuesto']*0.01+1),2); //calculando impuesto\r\n $_impuesto= round($_total-$_subtotal,2); //calculando total\r\n \r\n $event->sender->setAttribute('subtotal', $_subtotal);//Actualizando Cantidad\r\n $event->sender->setAttribute('impuesto', $_impuesto);//Actualizando impuesto\r\n $event->sender->setAttribute('total', $_total); //actualizando total\r\n \r\n };\r\n $es->onAfterUpdate=function($event){\r\n $model=$this->loadModel(yii::app()->request->getParam('pk'));\r\n //actualizando el credito disponible para el cliente.\r\n Cliente::model()->actualizarCreditoDisponible($model, 1);\r\n };\r\n \r\n $es->update();\r\n }", "public function setValorAttribute($value)\n {\n $this->attributes['valor'] = str_replace(\",\", \".\", str_replace(\".\", \"\", $value));\n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "public function setASediaPembalut($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->a_sedia_pembalut !== $v) {\n $this->a_sedia_pembalut = $v;\n $this->modifiedColumns[] = SanitasiPeer::A_SEDIA_PEMBALUT;\n }\n\n\n return $this;\n }" ]
[ "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.5350974", "0.5350587", "0.5345181", "0.5344572", "0.5341972", "0.53406256", "0.5324102", "0.5317688", "0.5316065", "0.5304246", "0.52937484", "0.5281263", "0.527564", "0.5271902", "0.5265803", "0.52564234", "0.52483034", "0.5237881", "0.5227224", "0.5223766", "0.5220679", "0.52158755", "0.52043205", "0.52017766", "0.518629", "0.518526", "0.51840526", "0.51816344", "0.5179505", "0.51763505", "0.5172569", "0.51713675", "0.51699716", "0.51648265", "0.51604986", "0.51555604", "0.5153342", "0.5152541", "0.5142524", "0.5138959", "0.5136966", "0.51368433", "0.5133758", "0.51320076", "0.5129234", "0.5128583", "0.5128479", "0.5127879", "0.5118815", "0.5115661", "0.51123416", "0.5111263", "0.5105101", "0.51012146", "0.50922966", "0.50899184", "0.5089243", "0.50886196", "0.5087837", "0.50829035", "0.5079404", "0.50756186", "0.50735456", "0.50710136", "0.50647867", "0.50645375", "0.5058127", "0.5055494", "0.50496775", "0.50451916" ]
0.6318065
1
Set the periode au.
public function setPeriodeAu(DateTime $periodeAu = null) { $this->periodeAu = $periodeAu; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }", "public function getPeriodeAu() {\n return $this->periodeAu;\n }", "public function setPesoArea($peso) {\n $this->_peso = $peso; \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}", "function ini__operacion (){\n \n //obtenemos el arreglo almacenado en la operacion \"aulas disponibles\". Su formato es :\n //Array ('id_aula'=>x 'hora_inicio'=>x 'hora_fin'=>x)\n $datos_ad=toba::memoria()->get_parametros();\n //esta condicion es fundamental para no quedarnos en la misma pantalla\n if(isset($datos_ad['id_aula'])){\n $this->s__accion=\"Vinculo\";\n $this->s__aula_disponible=$datos_ad;\n \n //eliminamos la informacion guardada en el arreglo $_SESSION\n toba::memoria()->limpiar_memoria();\n $this->set_pantalla('pant_persona');\n }\n }", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "private function mprofil() {\n\t\t\t$this->_ctrlAdmin = new ControleurAdmin();\n\t\t\t$this->_ctrlAdmin->userProfil();\n\t}", "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}", "function FotografiaControl(){\n\t\t$this->acceso=new AccesoDatos();\n\t}", "public function setAnoPortaria($iAnoPortaria) {\n $this->iAnoPortaria = $iAnoPortaria;\n }", "protected function setVida() {\n $this->vida = 200;\n }", "function setTipo_acta($itipo_acta = '')\n {\n $this->itipo_acta = $itipo_acta;\n }", "public function aprova()\n {\n $this -> estadoAtual -> aprova($this);\n }", "public function setedadPaciente($value){\n\n\t\t$this->_edadPaciente = $value;\n\t}", "function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }", "public function setEmpleado_idemp($empleado_idemp){\n $this->empleado_idemp = $empleado_idemp;\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 setTipo($itipo = '')\n {\n $this->itipo = $itipo;\n }", "public function setForAuteur()\n {\n //met à jour les proposition qui n'ont pas de base contrat et qui ne sont pas null\n /*PLUS BESOIN DE BASE CONTRAT\n \t\t$dbP = new Model_DbTable_Iste_proposition();\n \t\t$dbP->update(array(\"base_contrat\"=>null), \"base_contrat=''\");\n */\n\t \t//récupère les vente qui n'ont pas de royalty\n\t \t$sql = \"SELECT \n ac.id_auteurxcontrat, ac.id_livre\n , ac.id_isbn, ac.pc_papier, ac.pc_ebook\n , a.prenom, a.nom, c.type, IFNULL(a.taxe_uk,'oui') taxe_uk\n ,i.num\n , v.id_vente, v.date_vente, v.montant_livre, v.id_boutique, v.type typeVente\n , i.id_editeur, i.type typeISBN\n , impF.conversion_livre_euro\n FROM iste_vente v\n INNER JOIN iste_isbn i ON v.id_isbn = i.id_isbn \n INNER JOIN iste_importdata impD ON impD.id_importdata = v.id_importdata\n INNER JOIN iste_importfic impF ON impF.id_importfic = impD.id_importfic\n INNER JOIN iste_auteurxcontrat ac ON ac.id_isbn = v.id_isbn\n INNER JOIN iste_contrat c ON c.id_contrat = ac.id_contrat\n INNER JOIN iste_auteur a ON a.id_auteur = ac.id_auteur\n INNER JOIN iste_livre l ON l.id_livre = i.id_livre \n LEFT JOIN iste_royalty r ON r.id_vente = v.id_vente AND r.id_auteurxcontrat = ac.id_auteurxcontrat\n WHERE pc_papier is not null AND pc_ebook is not null AND pc_papier != 0 AND pc_ebook != 0\n AND r.id_royalty is null \";\n\n $stmt = $this->_db->query($sql);\n \n \t\t$rs = $stmt->fetchAll(); \n \t\t$arrResult = array();\n \t\tforeach ($rs as $r) {\n\t\t\t//calcule les royalties\n \t\t\t//$mtE = floatval($r[\"montant_euro\"]) / intval($r[\"nbA\"]);\n \t\t\t//$mtE *= floatval($r[\"pc_papier\"])/100;\n \t\t\tif($r[\"typeVente\"]==\"ebook\")$pc = $r[\"pc_ebook\"];\n \t\t\telse $pc = $r[\"pc_papier\"];\n $mtL = floatval($r[\"montant_livre\"])*floatval($pc)/100;\n //ATTENTION le taux de conversion est passé en paramètre à l'import et le montant des ventes est calculé à ce moment\n \t\t\t//$mtD = $mtL*floatval($r[\"taux_livre_dollar\"]);\n \t\t\t$mtE = $mtL*floatval($r['conversion_livre_euro']);\n //ajoute les royalties pour l'auteur et la vente\n //ATTENTION les taxes de déduction sont calculer lors de l'édition avec le taux de l'année en cours\n $dt = array(\"pourcentage\"=>$pc,\"id_vente\"=>$r[\"id_vente\"]\n ,\"id_auteurxcontrat\"=>$r[\"id_auteurxcontrat\"],\"montant_euro\"=>$mtE,\"montant_livre\"=>$mtL\n ,\"conversion_livre_euro\"=>$r['conversion_livre_euro']);\n\t \t\t$arrResult[]= $this->ajouter($dt\n ,true,true);\n //print_r($dt);\n \t\t}\n \t\t\n \t\treturn $arrResult;\n }", "public function setEditais($editais)\n {\n if (!is_null($editais))\n $this->editais = $editais;\n }", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function __construct($puerto) {\n\t\t$this->puerto = $puerto;\t\n\t}", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function setAUMENTOPERDIDA($AUMENTO_PERDIDA)\r\n {\r\n $this->AUMENTO_PERDIDA = $AUMENTO_PERDIDA;\r\n\r\n return $this;\r\n }", "public function setIdempresa($idempresa){\n $this->idempresa = $idempresa;\n }", "public function alto($alto){\r\n\t\tif ($alto>0) {\r\n\t\t\t$this->alto=$alto;\r\n\t\t}\r\n\t}", "protected function doEdicaoPeridoAcesso() {\r\n\t\t$editar = intval($this->system->input['editar']);\r\n\t\tif ($editar) {\t\t\t\r\n\t\t\t$erro_msg = $this->validarPeriodoAcesso();\r\n\t\t\t\r\n\t\t\tif ($erro_msg) {\r\n\t\t\t\t$this->system->view->assign('msg_alert', $erro_msg['msg']);\r\n\t\t\t\t$this->system->view->assign('periodo', $this->system->input);\r\n\t\t\t}else{\r\n\t\t\t\t$this->system->configuracoesgerais->atualizarPeriodoAcesso($this->system->input);\r\n\t\t\t\t$this->system->view->assign('msg_alert', 'Período de Acesso atualizado com sucesso!');\t\t\t\t\r\n\t\t\t\t$this->system->view->assign('periodo', $this->system->input);\r\n\t\t\t}\r\n\t\t} \t\t\r\n\t\t$this->system->view->assign('periodo',$this->system->configuracoesgerais->getPeriodoAcesso());\r\n\t\t\r\n\t\t$this->system->admin->topo(13);\r\n\t\t$this->system->view->display('administrador-geral/configuracoes_perido_acesso.tpl');\r\n\t\t$this->system->admin->rodape();\t\t\r\n\t}", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "public function setEstudiante( $estudiante ){\n\t\t\t$this->estudiante = $estudiante;\n\t\t}", "public function setTipo($tipo){\n\t\t$this->tipo = $tipo;\n\t}", "public function setTipo($tipo){\n\t\t$this->tipo = $tipo;\n\t}", "public function Perfil(){\n $pvd = new alumno();\n\n //Se obtienen los datos del alumno.\n if(isset($_REQUEST['persona_id'])){\n $pvd = $this->model->Obtener($_REQUEST['persona_id']);\n }\n\n //Llamado de las vistas.\n require_once '../Vista/Alumno/perfil-alumno.php';\n\t}", "public function __construct($portaria)\n {\n $this->portaria = $portaria;\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}", "function setUrlUIAnterior($url) {\n $this->urlUIAnterior = $url;\n }", "public function apagarPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"OFF\");\n $this->setEncendidoPizarra(0);\n\n }", "public function setEditorial($editorial)\n {\n $this->editorial = $editorial;\n }", "public function setEstudiante( $estudiante ){\n\t\t$this->estudiante = $estudiante;\n\t}", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "public function setUsp_Active($ac){\n $this->active = (int)$ac;\n }", "public function encenderPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"ON\");\n $this->setEncendidoPizarra(1);\n\n }", "public static function modificaProfiloAzienda()\n {\n $vd = new ViewDescriptor();\n $vd->setTitolo(\"SardiniaInFood: Profilo\");\n $vd->setLogoFile(\"../view/in/logo.php\");\n $vd->setMenuFile(\"../view/in/menu_modifica_profilo.php\");\n $vd->setContentFile(\"../view/in/azienda/modifica_profilo_azienda.php\");\n $vd->setErrorFile(\"../view/in/error_in.php\");\n $vd->setFooterFile(\"../view/in/footer_empty.php\");\n \n require_once \"../view/Master.php\";\n }", "public function setProyectorActivo( $proyector ) {\n $this->proyector_activo=$proyector;\n $proyecActual=new Properties();\n $proyecActual->load(file_get_contents(\"./pantallaActiva.properties\"));\n if(strcmp($proyector, \"\")==0)\n $this->proyector_activo=$proyecActual->getProperty(\"Proyector.activo\");\n $proyecActual->setProperty(\"Proyector.activo\",$this->proyector_activo);\n file_put_contents('./pantallaActiva.properties', $proyecActual->toString(true));\n }", "public function setComando( $comando, $atributo=null ) {\n $this->comando=$comando;\n $this->atributo=$atributo;\n $this->enviarComando();\n $this->activarPantalla();\n //activa y enviar comando\n }", "public function setAno($iAno) {\n $this->iAno = $iAno;\n }", "public function setAno($iAno) {\n $this->iAno = $iAno;\n }", "function setSuperada($bsuperada = 'f')\n {\n $this->bsuperada = $bsuperada;\n }", "public function init(){\n $this->documento='760';\n }", "function set_owner($owner)\n {\n $this->set_default_property(self :: PROPERTY_OWNER, $owner);\n }", "protected function setAcoVariables() {\n\n $this->set('plugin',\n isset($this->params['named']['plugin']) ? $this->params['named']['plugin'] : '');\n $this->set('controller_name', $this->params['named']['controller']);\n $this->set('action', $this->params['named']['action']);\n }", "public function setActiveEdit($active_edit){\n $this->active_edit = (int)$active_edit;\n }", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "public function setAutor($autor)\n {\n $this->autor = $autor;\n }", "function SeteoPdf(){\n\t\t$this->NameFile='../../docs/reportes/rpt'.rand(1000,1000000).'.pdf';\n\t\t\n\t\t/* Agrego las fuentes que voy a usar en el reporte */\n\t\t$this->addFont('bold', 'Arial', 'B', 8); // Esta fuente la uso para los títulos de los grupos\n\t\t$this->addFont('MyFont', 'Arial', '', 7); // Esta fuente la uso para los títulos de los grupos\n\n\t\t/* Seteo o configuro los campos que voy a usar en el reporte*/\n\t \t$this->SeteoCampos();\n\n\t\t/* Agrego los grupos que voy a tener */\n\t\t$this->CampoGrupo1='destino'; // Voy a tener el Grupo 1 agrupado por el campo dependencia\n\t \t\n\t\t/* Establezco mi área de impresión */\n\t\t/* Para A4 */ \n\t\t$this->setMaxWidth(297); // Por lo que ancho de A4 son 21cm=210mm\n\t\t$this->setMaxHeight(180); // Por lo que alto de A4 son 29.70=297mm . (La diferencia entre la altura real del papel y la altura de mi área de impresión, debe ser mínimo 30. Por ejm. 297-265=32)\n\t\t\t\t\t\t\t\t // Uso solo 265 porque considero mi area de impresión solo para el cuerpo del reporte, Sin considerar el Head y el footer\n\t \t\n\t\t// Establezco mi márgen izquierdo para que el cuerpo del reporte apareza centrado\n\t\t$this->SetLeftMargin((($this->maxWidth-$this->WidthTotalCampos)/2));\n\n\t\t// Modo de visualización. (real equivale a 100%)\n\t\t$this->SetDisplayMode('real');\n\n\t\t// Creo la primera página\n\t\t$this->Open(); \n\t\t$this->AddPage();\n\n\t}", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "private static function SetarFusorario(){\n date_default_timezone_set('America/Sao_paulo');\n }", "public function getPeriodeAttest() {\n return $this->periodeAttest;\n }", "public function setEncendidoPizarra( $encendido ) {\n $this->pizarra_on=$encendido;\n $this->enviarComandoEstado();\n //$this->activarPantalla();\n }", "public function testSetAnnulationDossierPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationDossierPaie(true);\n $this->assertEquals(true, $obj->getAnnulationDossierPaie());\n }", "public function activarPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"NO_MUTE\");\n $this->setPizarraMuteado(0);\n }", "public function setUtente($utente) \n\t{\n $this->utente = $utente;\n }", "public function set_view_contato_anunciante(View_Contato_Anunciante $view_contato_anunciante) : void\r\n {\r\n self::$view_contato_anunciante = $view_contato_anunciante;\r\n }", "public function setAno($ano)\n {\n $this->ano = $ano;\n }", "public function geraPauta()\n {\n $turmaId = $this->args[0];\n $pautaXls = $this->Turma->geraPautaExcel($turmaId);\n\n $objWriter = PHPExcel_IOFactory::createWriter($pautaXls, 'Excel2007');\n $objWriter->save(Configure::read('OpenSGA.save_path') . DS . $turmaId . '.xlsx');\n $this->Turma->id = $turmaId;\n $this->Turma->set('pauta_path', Configure::read('OpenSGA.save_path') . DS . $turmaId . '.xlsx');\n $this->Turma->save();\n\n }", "public function puestaACero() {\n $this -> horas = 0;\n $this -> minutos = 0;\n $this -> segundos = 0;\n }", "function cl_bensetiquetaimpressa() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"bensetiquetaimpressa\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function setDoorId()\n {\n if(isset($_GET['doorId']))\n {\n echo 'const doorId = '.$_GET['doorId'].';';\n }\n else\n {\n $config = new Config;\n echo 'const doorId = '.$config->defaultDoor.';';\n }\n }", "public function setIdAuteur($idauteur){\n\t\t$idauteur = (int) $idauteur;\n\t\t// On vérifie ensuite si ce nombre est bien strictement positif.\n\t\tif ($idauteur > 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->_idauteur = $idauteur;\n\t\t}\n\t}", "public function testSetAccesDossierPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesDossierPaie(\"accesDossierPaie\");\n $this->assertEquals(\"accesDossierPaie\", $obj->getAccesDossierPaie());\n }", "public function setCodope($codope){\n\t\t$this->codope = $codope;\n\t}", "public function edit(paiement $paiement)\n {\n //\n }", "function setMode($mode) {\n\t\t$this->_mode = $mode;\n\t}", "function setMode($mode) {\n\t\t$this->_mode = $mode;\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}", "public function setOperador($operador)\r\n {\r\n // $this->_myParameters = $myParameters;\r\n $this->_OPERADOR = $operador;\r\n \t//$this->_OPERADOR='1';\r\n \t//Zend_Registry::get('logger')->log(\"testeddd\", Zend_Log::INFO);\r\n \t$projeto= new Application_Model_DbTable_Projeto();\r\n \t//$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t$this->_PROJETOS=$projeto->getProjetosOperadorPermissao($operador);\r\n \t\r\n }", "public function setPropagationCollegamentiArea($collegamenti) {\n $this->_propagationCollegamenti = $collegamenti; \n }", "public function Perfil(){\n $pvd = new tutoria();\n\n //Se obtienen los datos del tutoria.\n if(isset($_REQUEST['persona_id'])){\n $pvd = $this->model->Obtener($_REQUEST['persona_id']);\n }\n\n //Llamado de las vistas.\n require_once '../Vista/Tutoria/perfil-tutoria.php';\n\t}", "public function SetPortEnvio($portEnvio){\n\t\t\t\n\t\t\t\t$this->portEnvio = $portEnvio;\n\t\t\n\t\t}", "public function getAUMENTOPERDIDA()\r\n {\r\n return $this->AUMENTO_PERDIDA;\r\n }", "function ieconfig_autoriser(){}", "function archobjet_autoriser() {\n}", "public function set_apelido(Apelido $object)\n {\n $this->apelido = $object;\n $this->apelido_id = $object->id;\n }", "function setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }", "function CPerfil($dper){\t$this->dper = $dper;\t}", "public function setOwner($owner) {\n\t\t$this->owner = $owner;\n\t}", "public function setOwner($owner) {\n\t\t$this->owner = $owner;\n\t}", "function setITipo($iTipo) {\n $this->iTipo = $iTipo;\n }", "function configurar() {\n //SOLO EL ADMINISTRADOR PUEDE MATRICULAR\n if(!$this->AppUser->isRoot())\n return $this->vista->acceso_restringido();\n\n $this->includeModel('TComponente');\n\n //TODO: actualizar el codigo del programa a matricular.\n $cod_programa = $this->params['cod_programa'];\n $this->vista->addJS('jquery.dataTable');\n\n $tiene_cursos = $this->TPrograma->tieneCursos($cod_programa);\n \n $this->vista->set('tiene_cursos', $tiene_cursos);\n if(!$tiene_cursos){\n if($this->TPersona == null)\n $this->TPersona = new TPersona();\n $tiene_participantes = $this->TPersona->hayAdmitidos();\n $this->vista->set('tiene_participantes', $tiene_participantes);\n }\n \n $this->vista->display();\n }", "function setMontoAhorroPreferente($monto){\n\t\t$xOP\t= new cPersonasCatalogoOtrosDatos();\n\t\t$this->addOtrosParametros($xOP->PERSONAS_MONTO_AHORRO_PREFERENTE, $monto);\n\t\t\n\t\t$this->setUpdate(array(\"descuento_preferente\" => $monto) );\n\t\t\n\t\tif(PERSONAS_COMPARTIR_CON_ASOCIADA == true){\n\t\t\t//ejecutar el url\n\t\t\t$this->getExportarAsociada(TPERSONAS_GENERALES);\n\t\t\t$this->getExportarAsociada(TPERSONAS_DIRECCIONES);\n\t\t\t$this->getExportarAsociada(TPERSONAS_ACTIVIDAD_ECONOMICA);\n\t\t\tif($this->getEsEmpresaConConvenio() == true){\n\t\t\t\t$this->getExportarAsociada(TCATALOGOS_EMPRESAS);\n\t\t\t}\n\t\t}\n\t}", "public function edit(periode $periode)\n {\n //\n }", "function setLeja($_leja){\r\n $this->leja=$_leja;\r\n }", "public function set_pa(Int $_pa){\n $this->_pa = $_pa;\n\n return $this;\n }", "function SeteoCampos(){\n\t\t// Campos que van en en detalle, deben empezar su nombre con 'C'\n\t\t$this->addField('C1', 99999,\t0, 15);\n $this->addField('C2', 99999,\t0, 15);\n $this->addField('C3', 99999,\t0, 40);\t\t\n $this->addField('C4', 99999,\t0, 65);\t\t\n $this->addField('C5', 99999,\t0, 40);\n $this->addField('C6', 99999,\t0, 25);\t\t\n $this->addField('C7', 99999,\t0, 65);\t\t\n\t\t\n\t\t$this->addField('HG1', 0,\t0,\t160);\n\t\t\t\t\n\t}", "public function setIde($ide)\n {\n $this->ide = $ide;\n }", "private function iniciar_perfil_mda(){\n\t\trequire_once 'inc/clases/procesos/fechas.class.php';\n\t\trequire_once 'inc/clases/procesos/sql_anuncios.class.php';\n\t\trequire_once 'inc/clases/mda/show_master.class.php';\n\t\trequire_once 'inc/clases/mda/pedidos.class.php';\n\t\trequire_once 'inc/clases/config/perfil_config.class.php';\n\n\t\t$this->Modulos = new Modulos();\n\t}", "public function testSetTypePaiement() {\n\n $obj = new Employes();\n\n $obj->setTypePaiement(\"typePaiement\");\n $this->assertEquals(\"typePaiement\", $obj->getTypePaiement());\n }", "public function getPorAtender() {\n return $this->por_atender;\n }", "public function setResaca($resaca){\n $this->resaca=$resaca;\n }", "public function setProducto($pro){ $this->producto = $pro;}" ]
[ "0.58586884", "0.58577055", "0.57261205", "0.56620455", "0.5537341", "0.5429177", "0.53952545", "0.5386963", "0.5375958", "0.536093", "0.53569627", "0.53023034", "0.5296972", "0.52951145", "0.5238498", "0.52192307", "0.52105576", "0.5207513", "0.51985854", "0.51975507", "0.5196877", "0.5186365", "0.518343", "0.5150922", "0.51406485", "0.5131252", "0.5116528", "0.51137406", "0.51097", "0.5108444", "0.50881314", "0.50881314", "0.5085338", "0.5076808", "0.5074834", "0.5069348", "0.50520384", "0.504983", "0.5049626", "0.5047912", "0.5047895", "0.5036132", "0.50233823", "0.5011236", "0.49910444", "0.49819615", "0.49819615", "0.4977457", "0.49752808", "0.4970572", "0.49661523", "0.49543193", "0.4950836", "0.49489382", "0.49438226", "0.49399462", "0.49277818", "0.48986524", "0.48927832", "0.48922354", "0.48901004", "0.48889095", "0.48865685", "0.4883719", "0.48671803", "0.48619047", "0.48612413", "0.48577717", "0.48549137", "0.48526126", "0.48524696", "0.48421723", "0.48412254", "0.48412254", "0.4840232", "0.48378822", "0.482911", "0.4827831", "0.4819245", "0.48183233", "0.4812835", "0.47995505", "0.47855067", "0.47853065", "0.4782899", "0.47828376", "0.47828376", "0.47629943", "0.47576195", "0.4756763", "0.47511253", "0.47429302", "0.47391304", "0.47347835", "0.4734168", "0.47332597", "0.4732664", "0.47326434", "0.47294834", "0.47288847" ]
0.5661623
4
Set the periode du.
public function setPeriodeDu(DateTime $periodeDu = null) { $this->periodeDu = $periodeDu; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPeriodeDu() {\n return $this->periodeDu;\n }", "function CPerfil($dper){\t$this->dper = $dper;\t}", "protected function setVida() {\n $this->vida = 200;\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 }", "public function setDDI(string $ddi)\n {\n $this->ddi = $ddi;\n }", "public function setDps($value)\n {\n return $this->set(self::_DPS, $value);\n }", "public function setPer($value)\n {\n return $this->set(self::_PER, $value);\n }", "public function setDps($value)\n {\n return $this->set(self::_DPS, $value);\n }", "public function setDps($value)\n {\n return $this->set(self::_DPS, $value);\n }", "public function setedadPaciente($value){\n\n\t\t$this->_edadPaciente = $value;\n\t}", "public function setTampilPeriode($kd_klasifikasi) {\n\t\t$this->kd_klasifikasi = $kd_klasifikasi;\n\t}", "public function testSetPasGestionPdp() {\n\n $obj = new Employes();\n\n $obj->setPasGestionPdp(true);\n $this->assertEquals(true, $obj->getPasGestionPdp());\n }", "public function testSetPasGestionPdp1() {\n\n $obj = new Employes();\n\n $obj->setPasGestionPdp1(true);\n $this->assertEquals(true, $obj->getPasGestionPdp1());\n }", "public function setDn($dn);", "public function testSetDossierPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setDossierPaie(\"dossierPaie\");\n $this->assertEquals(\"dossierPaie\", $obj->getDossierPaie());\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 }", "function setPID($pid) {\n\t\t$this->_pid = $pid;\n\t}", "function setAdmin() {\n\t\t$this->_extension_high = \"\";\n\t\t$this->_extension_low = \"\";\n\t\t$this->_deptname = \"\";\n\t\t$this->_sections = array(\"*\");\n\t}", "public function setDipartimento(Dipartimento $dipartimento) {\n $this->dipartimento = $dipartimento;\n }", "public function setConsecutivoPadrePD( $consecutivoPadrePD ){\n\t\t \t$this->consecutivoPadrePD = $consecutivoPadrePD;\n\t\t }", "public function set_pedido(Pedido $p){\n $this->pedido=$p;\n }", "public function setDI($di) {\n\t\t$this->di = $di;\n\t}", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "public function testSetVueDevisDroitSuppr() {\n\n $obj = new Collaborateurs();\n\n $obj->setVueDevisDroitSuppr(true);\n $this->assertEquals(true, $obj->getVueDevisDroitSuppr());\n }", "public function setNumeroDemande($numeroDemande)\n\t{\n\t\t$this->_numero_demande = $numeroDemande;\n\t}", "function _setDegreeTypeMenu() {\n\t\t$this->loadModel('DegreeType');\n\t\t$degrees = $this->DegreeType->find('threaded');\n\t\t$this->set('degrees', $degrees);\n\t}", "public function setDetalle($detalle){\n\t\t$this->detalle = $detalle;\n\t}", "public function setValorDiaria($valorDiaria)\n {\n $this->valorDiaria = $valorDiaria;\n\n \n\n }", "public function &setPiD($piD) {\n\t\t$this->piD=$piD;\n\t\treturn $this;\n\t}", "public function setDirector(string $dirlo) {\n $this->director = $dirlo;\n }", "public function setVida($valor){\n $this->vida=$valor;\n }", "public function setLede(string $lede): void\n {\n $this->lede = $lede;\n }", "public function testSetAnnulationDossierPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationDossierPaie(true);\n $this->assertEquals(true, $obj->getAnnulationDossierPaie());\n }", "public function setDireccion($direccion) {\n\t\t$this->direccion = $direccion;\n\t}", "public function setDeposit($deposit)\n {\n $this->deposit = $deposit;\n }", "private function carrega_direita() {\n if ($this->distribuidor->di_direita > 0) {\n $pontos_direita = $this->ci->db->query(\"\n\t\t\t SELECT SUM(co_total_pontos) as pontos FROM `distribuidor_ligacao` \n\t\t\t\t JOIN distribuidores ON di_id = `li_id_distribuidor`\n\t\t\t\t JOIN compras ON di_id = `co_id_distribuidor`\n\t\t\t\t WHERE `li_no` = \" . $this->distribuidor->di_direita . \"\n\t\t\t\t AND co_pago = 1\n\t\t\t\")->row();\n\n $this->pontos_direita = (int) $pontos_direita->pontos;\n } else {\n $this->pontos_direita = 0;\n }\n }", "public function getDpto()\n {\n return $this->dpto;\n }", "public function setNerve($value)\n {\n $this->nerve = $value;\n }", "public function setDepth($depth) {\n\t $this->d = $depth;\n }", "public function setDormant(bool $value = true): void\n {\n $this->dormant = $value;\n }", "public function setDepartment($department)\n {\n $this->department = array_search($department, $this->aDepartment);\n }", "public function setIde($ide)\n {\n $this->ide = $ide;\n }", "public function setDataProcesso($dDataProcesso) {\n $this->dDataProcesso = $dDataProcesso;\n }", "public function setPdfParent(&$pdf)\n {\n $this->_pdf = &$pdf;\n }", "public function setMdp_admin($_mdp_admin){\n if(!is_string($_mdp_admin)){\n //on redirige\n header(\"Location:../vu/formulaire_connexion_admin.php\");\n return;\n }\n //on declare de la variable mdp_admin puis on appelle la varibale prive mdp_admin\n $this->_mdp_admin = $_mdp_admin;\n }", "public function setPdo(\\PDO $pdo) {\n\t\t$this->pdo = $pdo;\n\t}", "public function testSetDroitCp() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setDroitCp(10.092018);\n $this->assertEquals(10.092018, $obj->getDroitCp());\n }", "public function setDir($dir) {\n $this->dir = $dir;\n }", "public function testSetDernNumPrime() {\n\n $obj = new Employes();\n\n $obj->setDernNumPrime(10);\n $this->assertEquals(10, $obj->getDernNumPrime());\n }", "public function setD($d)\n {\n $this->D = $d;\n return $this;\n }", "function setPersonTypeAdmin( $value )\n {\n $this->PersonTypeAdmin = $value;\n }", "public function setCodope($codope){\n\t\t$this->codope = $codope;\n\t}", "public function setDados($d){\n\t\t$this->dados = $d;\n\t}", "public function setEntityDun($value)\n {\n return $this->set('EntityDun', $value);\n }", "function setSoporte($soporte) {\r\n $this->soporte = $soporte;\r\n }", "function setDetalle($sdetalle = '')\n {\n $this->sdetalle = $sdetalle;\n }", "public function setcedulaPaciente($value){\n\n\t\t$this->_cedulaPaciente = $value;\n\t}", "public function getPiD() {\n\t\treturn $this->piD;\n\t}", "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 set_PDI_ID($int_PDI_ID) {\n $this->pdi_id = $int_PDI_ID;\n }", "public function setPid(int $pid){\n $this->pid = $pid;\n }", "function setDS_NO($DS_NO){ $this->DS_NO = $DS_NO; }", "private function defineDirPainelDLX(): void\n {\n // Previnir que o diretório seja alterado caso alguém tenha setado ele manualmente\n if (empty(self::$dir)) {\n $base_dir = dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR;\n $document_root = $this->request->getServerParams()['DOCUMENT_ROOT'];\n\n // Setar o path do PainelDLX\n self::$dir = trim(str_replace($document_root, '', $base_dir), DIRECTORY_SEPARATOR);\n\n // Garantir que os separadores de diretório estejam padronizados\n self::$dir = str_replace(DIRECTORY_SEPARATOR, '/', self::$dir);\n\n // Adicionar o path do PainelDLX no include_path\n $this->adicionarDiretorioInclusao($base_dir);\n }\n }", "public function setPid($pid)\n {\n $this->pid = $pid;\n }", "public function setIdDeuda($id_deuda)\n {\n $this->id_deuda = $id_deuda;\n\n return $this;\n }", "public function setDate($p)\n {\n if ($p !== null && trim($p) !== \"\") {\n $this->appendCommandArgument(\"-D\");\n $this->appendCommandArgument($p);\n }\n }", "function setCiudad ($ciudad) {\r\n $this->cicudad = $ciudad;\r\n }", "public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\n }", "public function setOperador($operador)\r\n {\r\n // $this->_myParameters = $myParameters;\r\n $this->_OPERADOR = $operador;\r\n \t//$this->_OPERADOR='1';\r\n \t//Zend_Registry::get('logger')->log(\"testeddd\", Zend_Log::INFO);\r\n \t$projeto= new Application_Model_DbTable_Projeto();\r\n \t//$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t$this->_PROJETOS=$projeto->getProjetosOperadorPermissao($operador);\r\n \t\r\n }", "function setSuperada($bsuperada = 'f')\n {\n $this->bsuperada = $bsuperada;\n }", "public function testSetDeptNaissance() {\n\n $obj = new Employes();\n\n $obj->setDeptNaissance(\"deptNaissance\");\n $this->assertEquals(\"deptNaissance\", $obj->getDeptNaissance());\n }", "public function testSetPrudLieuVote() {\n\n $obj = new Employes();\n\n $obj->setPrudLieuVote(\"prudLieuVote\");\n $this->assertEquals(\"prudLieuVote\", $obj->getPrudLieuVote());\n }", "public function set_taplicacion_procesos_fecha_desde(string $taplicacion_procesos_fecha_desde): void {\n $this->taplicacion_procesos_fecha_desde = $taplicacion_procesos_fecha_desde;\n }", "function setFueEliminado($usuario_eliminador){\n\t\t\t//COMPARA CON UNO Y NO CON CERO, PORQUE YA LO PERDIO PERO TODAVIA NO SE LO SAQUE\n\t\tif($this->cantidad_paises == 1){\n\t\t\t$this->usuario_eliminador=$usuario_eliminador;\n\t\t}\n\t\t\n\t}", "public function setDepartamento(DBDepartamento $oDepartamento){\n $this->oDepartamento = $oDepartamento;\n }", "public function setDir($dir)\n {\n $this->dir = $dir;\n }", "public function setDir($dir)\n {\n $this->dir = $dir;\n }", "public function edit(periode $periode)\n {\n //\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 set_delicon($param)\n\t{\n\t\t$this->delicon = (string)$param;\n\t\treturn $this;\n\t}", "public function testSetDirNonSalarie() {\n\n $obj = new Employes();\n\n $obj->setDirNonSalarie(true);\n $this->assertEquals(true, $obj->getDirNonSalarie());\n }", "final function resetDpLiving()\n {\n $this->resetDpNpc();\n }", "public function testSetNumeroPermis() {\n\n $obj = new Employes();\n\n $obj->setNumeroPermis(\"numeroPermis\");\n $this->assertEquals(\"numeroPermis\", $obj->getNumeroPermis());\n }", "public function testSetAccesDossierPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesDossierPaie(\"accesDossierPaie\");\n $this->assertEquals(\"accesDossierPaie\", $obj->getAccesDossierPaie());\n }", "public function setEdad($valor){\n\t\t\t$this->edad = $valor;\n\t\t}", "function setMargemDireita($iNumCol = 4) {\n\n $sComando = chr(27) . chr(81) . \" $iNumCol\";\n parent::addComando($sComando);\n }", "function set_pm_defecto($punto)\n\t{\n\t\t$db = $this->get_db();\n\t\t$id_punto = $db->quote($punto->get_id());\n\t\t$sql = \"UPDATE apex_proyecto\n\t\t\t\tSET pm_impresion = $id_punto,\n\t\t\t\t\tpm_sesion = $id_punto,\n\t\t\t\t\tpm_contexto = $id_punto,\n\t\t\t\t\tpm_usuario = $id_punto\n\t\t\t\tWHERE proyecto = \".$db->quote($this->identificador);\n\t\t$db->ejecutar($sql);\n\t}", "public function testSetPension() {\n\n $obj = new Employes();\n\n $obj->setPension(true);\n $this->assertEquals(true, $obj->getPension());\n }", "public function setDoorId()\n {\n if(isset($_GET['doorId']))\n {\n echo 'const doorId = '.$_GET['doorId'].';';\n }\n else\n {\n $config = new Config;\n echo 'const doorId = '.$config->defaultDoor.';';\n }\n }", "public function setPDif($pDif)\n {\n $this->pDif = $pDif;\n return $this;\n }", "public function setDireccionUsuario($direccionUsuario){\n $this->direccionUsuario = $direccionUsuario;\n }", "protected function setPath ($p) {\n\t\t$path = realpath($p);\n\t\tif (!$path) throw new Spd_IOException('No target path: [' . $p . ']');\n\t\tif (!is_dir($path)) throw new Spd_IOException('Target path not dir: ' . var_export($p,1));\n\t\t$this->path = $path;\n\t}", "public static function setPdo($pdo)\n {\n }", "public function setDegAttribute(int $deg): void\n {\n $this->attributes['deg'] = $deg;\n }", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "public function setDiaCalendario($diaCalendario){\n $this->diaCalendario = $diaCalendario;\n }", "public function setDispute(?Dispute $dispute): void\n {\n $this->dispute = $dispute;\n }", "protected function setDNINumber($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\t$value = number_format($value,\"0\",\"\",\".\");\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 298, 623, 'UTF-8');\n\t\t}\n\t\t\n\t}", "function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }" ]
[ "0.6219781", "0.57568026", "0.5625337", "0.55510277", "0.5498643", "0.5462768", "0.54609346", "0.5460492", "0.5460492", "0.54181355", "0.5345777", "0.53418845", "0.5317055", "0.52955896", "0.5281206", "0.5244703", "0.52120703", "0.51887196", "0.5143903", "0.5142232", "0.5141244", "0.5127793", "0.51233333", "0.5091436", "0.5080466", "0.5074279", "0.50681335", "0.50380844", "0.50348914", "0.5005084", "0.49815854", "0.49708295", "0.4959349", "0.49455994", "0.49389383", "0.49302408", "0.49258593", "0.49191633", "0.49138585", "0.49113134", "0.49089205", "0.49077317", "0.49038723", "0.48951522", "0.48945367", "0.48937505", "0.4887243", "0.4875677", "0.4863586", "0.48613515", "0.48541537", "0.4848977", "0.48271242", "0.48261726", "0.48201236", "0.48160946", "0.48048443", "0.48016825", "0.4798107", "0.47943944", "0.47795847", "0.47775704", "0.47678006", "0.4764242", "0.47622618", "0.47547913", "0.4748031", "0.47477946", "0.47456998", "0.4734594", "0.4732735", "0.47243065", "0.47231352", "0.47198695", "0.47077948", "0.47054875", "0.47054875", "0.46951956", "0.4689288", "0.46871415", "0.46864676", "0.46780714", "0.46731272", "0.46660691", "0.46643502", "0.46586558", "0.46571067", "0.4653883", "0.4652133", "0.4651906", "0.4650808", "0.4646611", "0.46445042", "0.46431547", "0.464307", "0.4634323", "0.46285993", "0.46272227", "0.46185237", "0.46160778" ]
0.570453
2
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}", "function setHierId($a_hier_id)\n\t{\n\t\t$this->hier_id = $a_hier_id;\n\t}", "public function set_parentage($parent_file)\n {\n }", "function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\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 setParent($parent)\n {\n $this->parent = $parent;\n }", "public function setParent($parent)\n {\n $this->parent = $parent;\n }", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "function setMainNode($nombre){\n\t\t$this->nodeppal=$nombre;\n\t\treturn 0;\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 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 set_superficie(int $_superficie){\n $this->_superficie = $_superficie;\n\n return $this;\n }", "public function setVida($valor){\n $this->vida=$valor;\n }", "public function setCodope($codope){\n\t\t$this->codope = $codope;\n\t}", "public function setTipo($tipo){\n\t\t$this->tipo = $tipo;\n\t}", "public function setTipo($tipo){\n\t\t$this->tipo = $tipo;\n\t}", "function setPeriod($_period){\n\t\t$this->period=$_period;\n\t}", "function setSubtotal($subtotal)\n {\n $this->subtotal = $subtotal;\n }", "public function setResaca($resaca){\n $this->resaca=$resaca;\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 setRoleSupervisor()\n {\n // $role = Role::where('name', 'supervisor')->first();\n // $permissions = Permission::where('name', 'like', 'blog-%')->get();\n // $role->syncPermissions($permissions);\n }", "protected function setTo() {}", "abstract public function set();", "function set_parent($value) {\n $this->set_mapped_property('parent', $value);\n }", "public function setSubEvent($value)\n {\n $this->subEvent = $value;\n }", "public function setProducto($pro){ $this->producto = $pro;}", "function set_par($p,$v)\n {\n $this->__par[$p] = $v;\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}", "function set_base($val) {\n\t\t$this->base = $val;\n\t}", "public function aprova()\n {\n $this -> estadoAtual -> aprova($this);\n }", "function setPID($pid) {\n\t\t$this->_pid = $pid;\n\t}", "public function setPermissions($a_parent_node_id, $a_node_id)\r\n\t{\r\n\t\t// nothing to do as owner has irrefutable rights to any portfolio object\r\n\t}", "public function setUry($ury) {}", "function setParent($parent) {\n parent::setParent($parent);\n $this->component = $parent->getComponent();\n $suffix = '/' . $this->id;\n if ($parent instanceof ChtNodeCategory) {\n $suffix = '/' . $this->component .':'. $this->id;\n // instead of pseudopath, insert component into first rofpath component\n }\n $this->path = $parent->getPath() . $suffix;\n $this->absolutePath = $parent->getAbsolutePath() . $suffix;\n return $this;\n }", "public function testSetVrpMulticarte() {\n\n $obj = new Employes();\n\n $obj->setVrpMulticarte(true);\n $this->assertEquals(true, $obj->getVrpMulticarte());\n }", "public function setSubpasta($subpasta)\r\n\t{\r\n\t\t$this->subpasta=$subpasta;\r\n\t}", "public static function menu_subpage_settings(){\n \t\t\n\t\t\tadd_submenu_page('edit.php?post_type='.self::$post_type, \n\t\t\t\t\t\t\t self::$page_title_settings, \n\t\t\t\t\t\t\t 'Settings', \n\t\t\t\t\t\t\t self::$capability,\n\t\t\t\t\t\t\t 'menu_settings',\n array( __CLASS__, 'menu_generator_settings'));\n\t\t\n\t\t}", "public function reprova()\n {\n $this -> estadoAtual -> reprova($this);\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 setRTERootBlockElement()\n\t{\n\t}", "public function setRischioArea($rischio) {\n $this->_rischio = $rischio; \n }", "public function setParent(Tx_Wpj_Domain_Model_place $parent) {\n\t\t$this->parent = $parent;\n\t\t$this->accuracy = count( $this->pathToRoot($this) );\t\n\t}", "public function setCarpetadestino($param) {\n if (!$param) {\n $this->error = 2.1;\n return;\n } else {\n $permitidos = \"ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyz ÁÉÍÓÚáéíóú123456789\";\n for ($i = 0; $i < strlen($param); $i++) {\n if (strpos($permitidos, substr($param, $i, 1)) === false) {\n $this->error = 2.2;\n return;\n }\n }\n }\n $this->carpetadestino = Ruta::getRutaPadre(Ruta::getRutaServidor()).Configuracion::CARPETA. $param;\n//crear carpeta si no existe\n if (!file_exists($this->carpetadestino)) {\n mkdir($this->carpetadestino, 0777, true);\n }\n $param = \"/\";\n $this->carpetadestino .= $param;\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "function set_subsite_root() {\n\t\t$this->is_subsite_root = true;\n\t}", "public function setCirculante_P(){\n\t\t$this->Circulante_P = $this->getFornecedores() \n\t\t+ $this->getEmprestimos_Bancarios() \n\t\t+ $this->getObrigacoes_Sociais_e_Impostos_a_Recolher() \n\t\t+ $this->getContas_a_Pagar_C() \n\t\t+ $this->getLucros_a_Distribuir() \n\t\t+ $this->getProvisoes();\n\t}", "public function setPeriodeAu(DateTime $periodeAu = null) {\n $this->periodeAu = $periodeAu;\n return $this;\n }", "public function setDataRoot($r){\n $this->data_root = $r;\n }", "function setNuevaCuenta($origen, $subproducto, $socio,\n\t\t\t\t\t\t\t$observaciones = \"\", $credito = 1,\n\t\t\t\t\t\t\t$mancomunado1 = \"\", $mancomunado2 = \"\",\n\t\t\t\t\t\t\t$grupo = false, $fecha_de_alta = false,\n\t\t\t\t\t\t\t$tipo_de_cuenta = CAPTACION_TIPO_VISTA, $tipo_de_titulo = 99, $DiasInvertidos = false,\n\t\t\t\t\t\t\t$tasa = false, $CuentaDeInteres\t= false, $FechaVencimiento = false\n\t\t\t\t\t\t\t){\n\n\n\t\t$xT\t\t\t\t= new cTipos(0);\n\t\t$xF\t\t\t\t= new cFecha();\n\t\t$xLog\t\t\t= new cCoreLog();\n\t\t$socio\t\t\t= setNoMenorQueCero($socio);\n\t\t$ready\t\t\t= true;\n\t\t$tipo_de_cuenta\t= setNoMenorQueCero($tipo_de_cuenta);\n\t\t$tipo_de_titulo\t= setNoMenorQueCero($tipo_de_titulo);\n\t\t$credito\t\t= setNoMenorQueCero($credito);\n\t\t$grupo\t\t\t= setNoMenorQueCero($grupo);\n\t\t$DiasInvertidos\t= setNoMenorQueCero($DiasInvertidos);\n\t\t$tasa\t\t\t= setNoMenorQueCero($tasa, 4);\n\t\t$CuentaDeInteres= setNoMenorQueCero($CuentaDeInteres);\n\t\t$estado\t\t\t= 10;\n\t\t//Corrige el numero de persona\n\t\tif($socio <= DEFAULT_SOCIO AND $this->mSocioTitular > DEFAULT_SOCIO ){\n\t\t\t$xLog->add(\"WARN\\tCAMBIO Persona $socio a \" . $this->mSocioTitular . \"\\r\\n\", $xLog->DEVELOPER);\n\t\t\t$socio\t\t= $this->mSocioTitular;\n\t\t}\n\t\t$xSoc\t\t\t\t= new cSocio($socio);\n\t\tif($xSoc->init() == true){\n\t\t\t//$cuenta\t\t\t= $xSoc->getIDNuevoDocto($tipo_de_cuenta, $subproducto);\n\t\t\t$cuenta\t\t\t= $xSoc->getIDNuevoDocto(iDE_CAPTACION);\n\t\t\t$CuentaDeInteres= $xSoc->getCuentaDeCaptacionPrimaria(CAPTACION_TIPO_VISTA, CAPTACION_PRODUCTO_INTERESES);\n\t\t\tif($grupo == DEFAULT_GRUPO OR $grupo == 0){ $grupo = $xSoc->getClaveDeGrupo(); }\n\t\t} else {\n\t\t\t$xLog->add(\"ERROR\\tAl cargar la Persona $socio\\r\\n\", $xLog->DEVELOPER);\n\t\t\t$ready\t\t\t= false; //el socio existe\n\t\t}\n\t\t$xLog->add($xSoc->getMessages(), $xLog->DEVELOPER);\n\t\t//corrige la Cuenta de Intereses\n\t\t$CuentaDeInteres\t= ($CuentaDeInteres <= 0) ? DEFAULT_CUENTA_CORRIENTE : $CuentaDeInteres;\n\n\t\t$fecha_de_alta\t\t\t= $xF->getFechaISO($fecha_de_alta);\n\t\t$FechaVencimiento\t\t= $xF->getFechaISO($FechaVencimiento);\n\t\tif($tipo_de_cuenta == CAPTACION_TIPO_PLAZO){\n\t\t\t$DiasInvertidos\t\t= ($DiasInvertidos <=0 ) ? $this->mDiasInvertidos : $DiasInvertidos;\n\t\t\t$tasa\t\t\t\t= ($tasa <= 0) ? $this->mTasaInteres : $tasa;\n\t\t\t$FechaVencimiento\t= ($xF->getInt($FechaVencimiento) <= $xF->getInt($fecha_de_alta) ) ? $xF->setSumarDias($DiasInvertidos, $fecha_de_alta) : $FechaVencimiento;\n\t\t\t$estado\t\t\t\t= 20;\n\t\t\t$xLog->add(\"WARN\\tInversion Dias $DiasInvertidos Tasa $tasa Vencimiento $FechaVencimiento\\r\\n\", $xLog->DEVELOPER);\n\t\t\tif($xF->setRestarFechas($FechaVencimiento, $fecha_de_alta) != $DiasInvertidos){\n\t\t\t\t$DiasInvertidos\t= $xF->setRestarFechas($FechaVencimiento, $fecha_de_alta);\n\t\t\t\t$xLog->add(\"WARN\\tCAMBIO Inversion Dias $DiasInvertidos ($FechaVencimiento, $fecha_de_alta)\\r\\n\", $xLog->DEVELOPER);\n\t\t\t}\n\t\t} else {\n\t\t\t$xLog->add(\"WARN\\tVista $socio Producto $tipo_de_cuenta sub-producto $subproducto Origen $origen\\r\\n\", $xLog->DEVELOPER);\n\t\t}\n\t\t\n\t\t$xCta\t\t= new cCaptacion_cuentas();\n\t\t$xCta->cuenta_de_intereses($CuentaDeInteres);\n\t\t$xCta->dias_invertidos($DiasInvertidos);\n\t\t$xCta->eacp(EACP_CLAVE);\n\t\t$xCta->estatus_cuenta($estado);\n\t\t$xCta->fecha_afectacion($fecha_de_alta);\n\t\t$xCta->fecha_apertura($fecha_de_alta);\n\t\t$xCta->fecha_baja($xF->getFechaMaximaOperativa());\n\t\t$xCta->fecha_conciliada($fecha_de_alta);\n\t\t$xCta->idusuario(getUsuarioActual());\n\t\t$xCta->inversion_fecha_vcto($FechaVencimiento);\n\t\t$xCta->inversion_periodo(0);\n\t\t$xCta->minimo_mancomunantes(0);\n\t\t$xCta->nombre_mancomunado1($mancomunado1);\n\t\t$xCta->nombre_mancomunado2($mancomunado2);\n\t\t$xCta->numero_cuenta($cuenta);\n\t\t$xCta->numero_grupo($grupo);\n\t\t$xCta->numero_socio($socio);\n\t\t$xCta->numero_solicitud($credito);\n\t\t$xCta->observacion_cuenta($observaciones);\n\t\t$xCta->oficial_de_captacion(getUsuarioActual());\n\t\t$xCta->origen_cuenta($origen);\n\t\t$xCta->saldo_conciliado(0);\n\t\t$xCta->saldo_cuenta(0);\n\t\t$xCta->sucursal(getSucursal());\n\t\t$xCta->tasa_otorgada($tasa);\n\t\t$xCta->tipo_cuenta($tipo_de_cuenta);\n\t\t$xCta->tipo_titulo($tipo_de_titulo);\n\t\t$xCta->tipo_subproducto($subproducto);\n\t\t$xCta->ultimo_sdpm(0);\n\t\tif($ready == true){ \n\t\t\t$rs \t= $xCta->query()->insert()->save();\n\t\t\t$ready \t= ($rs == false) ? false : true;\n\t\t}\n\t\t//Asignar valores cargados\n\t\tif ( $ready == true) {\n\t\t\t$xLog->add(\"OK\\tSe Agrego Existosamente la Cuenta $cuenta del subproducto $subproducto \\r\\n\");\n\t\t\t$this->mSucess \t\t\t\t= true;\n\t\t\t$this->mSocioTitular\t\t= $socio;\n\t\t\t$this->mGrupoAsociado\t\t= $grupo;\n\t\t\t$this->mCreditoAsoc\t\t\t= $credito;\n\t\t\t$this->mNumeroCuenta\t\t= $cuenta;\n\t\t\t$this->mDiasInvertidos\t\t= $DiasInvertidos;\n\t\t\t$this->mFechaVencimiento\t= $FechaVencimiento;\n\t\t\t$this->mTasaInteres\t\t\t= $tasa;\n\t\t\t$this->mFechaOperacion\t\t= $fecha_de_alta;\n\t\t\t$this->init();\t\n\t\t} else {\n\t\t\t$xLog->add(\"ERROR\\tError al agregar la Cuenta $cuenta del subproducto $subproducto\\r\\n\");\n\t\t\t$this->mSucess \t\t\t\t= false;\n\t\t}\n\t\t//setLog($xLog->getMessages());\n\t\t$this->mMessages\t\t\t\t.= $xLog->getMessages();\n\t\treturn $this->mNumeroCuenta;\n\t}", "function asignar_valores2(){\n\t\t$this->id=$_POST['id_link'];\n\t\t$this->prioridad=$_POST['id_sublink'];\n\t\t$this->etiqueta=$_POST['etiqueta'];\n\t}", "public function setOperador($operador)\r\n {\r\n // $this->_myParameters = $myParameters;\r\n $this->_OPERADOR = $operador;\r\n \t//$this->_OPERADOR='1';\r\n \t//Zend_Registry::get('logger')->log(\"testeddd\", Zend_Log::INFO);\r\n \t$projeto= new Application_Model_DbTable_Projeto();\r\n \t//$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t$this->_PROJETOS=$projeto->getProjetosOperadorPermissao($operador);\r\n \t\r\n }", "public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\n }", "public function setChild($child)\n {\n $this->child = $child;\n }", "public function testSetSuperviseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSuperviseur(true);\n $this->assertEquals(true, $obj->getSuperviseur());\n }", "public static function setRuolo($pagina) {\r\n $operatore = $_SESSION[\"op\"];\r\n $ruolo = $operatore->getFunzione();\r\n\r\n switch ($ruolo) {\r\n case OperatoreFactory::admin():\r\n $pagina->setLeftBarFile(\"./view/amministratore/menuAmministratore.php\");\r\n break;\r\n case OperatoreFactory::operatore():\r\n $pagina->setLeftBarFile(\"./view/operatore/menuOperatore.php\");\r\n break;\r\n case OperatoreFactory::protocollo():\r\n $pagina->setLeftBarFile(\"./view/protocollo/menuProtocollo.php\");\r\n break;\r\n case OperatoreFactory::responsabile():\r\n $pagina->setLeftBarFile(\"./view/responsabile/menuResponsabile.php\");\r\n break;\r\n default :\r\n $pagina->setLeftBarFile(\"./view/errorMenu.php\");\r\n }\r\n }", "function setMode($mode){\n\t\t//Switches the operating mode of\n\t\t//'ScaleTool'.\n\n\t\tif($mode == 'fit' || $mode == 'fill')\n\t\t\t$this->mode = $mode;\n\t}", "public function testSetAnnulationDossierPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationDossierPaie(true);\n $this->assertEquals(true, $obj->getAnnulationDossierPaie());\n }", "function ini__operacion (){\n \n //obtenemos el arreglo almacenado en la operacion \"aulas disponibles\". Su formato es :\n //Array ('id_aula'=>x 'hora_inicio'=>x 'hora_fin'=>x)\n $datos_ad=toba::memoria()->get_parametros();\n //esta condicion es fundamental para no quedarnos en la misma pantalla\n if(isset($datos_ad['id_aula'])){\n $this->s__accion=\"Vinculo\";\n $this->s__aula_disponible=$datos_ad;\n \n //eliminamos la informacion guardada en el arreglo $_SESSION\n toba::memoria()->limpiar_memoria();\n $this->set_pantalla('pant_persona');\n }\n }", "public function setChild($type, $path = NULL, $data = array())\n {\n ($path) ? $this->{\"_$type\"}['path'] = VPATH . $path . EXT : $this->{\"_$type\"}['path'] = VPATH . $this->{\"_$type\"}['path'] . EXT;\n $this->{\"_$type\"}['data'] = $data;\n return $this;\n }", "function setSublinhado($lSublinhado = true) {\n\n if ($lSublinhado) {\n $sComando = chr(27) . chr(45) . \"1\";\n } else {\n $sComando = chr(27) . chr(45) . \"0\";\n }\n return $sComando;\n \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 setUsp_Active($ac){\n $this->active = (int)$ac;\n }", "function asignar_valores2(){\n $this->id=$_POST['id_link'];\n $this->prioridad=$_POST['id_sublink'];\n $this->etiqueta=$_POST['etiqueta'];\n }", "public function testSetInterdireEnvoiPostit() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireEnvoiPostit(true);\n $this->assertEquals(true, $obj->getInterdireEnvoiPostit());\n }", "function AssignPage($subpage = 0)\n\t{\treturn new AdminPageContent($subpage);\n\t}", "public function testSetDossierPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setDossierPaie(\"dossierPaie\");\n $this->assertEquals(\"dossierPaie\", $obj->getDossierPaie());\n }", "function setLeja($_leja){\r\n $this->leja=$_leja;\r\n }", "abstract public function set($in): void;", "public function setEAN ($ean){\n\t\tif($ean) {\n\t\t\t$this->Item['ean'] = substr($ean, 0,100);\n\t\t}\n\t}", "public function __set($prop, $valor){\n\t\tif( !property_exists($this, $prop))\t{\n\t\t\tthrow new exception(\"la propiedad $prop no existe\"); \t\t\t\n\t\t}\t\t\n\t\t$this->$prop = $valor;\n\t\t//$this->(\"set\".ucfirst($prop))($valor);\n\t\t\n\t}", "public function edit(Subasta $subasta)\n {\n //\n }" ]
[ "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.48687908", "0.48670647", "0.48530012", "0.48393255", "0.4827487", "0.4827487", "0.48218337", "0.4817362", "0.48154372", "0.48047084", "0.47924182", "0.4789605", "0.478337", "0.47829506", "0.47829506", "0.477382", "0.47594577", "0.47563058", "0.47546127", "0.47456256", "0.47393572", "0.47389737", "0.47364834", "0.47318617", "0.4728352", "0.47269326", "0.47234023", "0.47127596", "0.47056615", "0.4705022", "0.46993732", "0.46905604", "0.46850508", "0.46819553", "0.4675508", "0.4669737", "0.46633443", "0.4660384", "0.4657355", "0.46535012", "0.46514606", "0.464999", "0.4645507", "0.46425405", "0.46422333", "0.46354434", "0.46294418", "0.4625532", "0.4620896", "0.4618014", "0.4615635", "0.46144605", "0.4612161", "0.460831", "0.46079746", "0.46041226", "0.45962", "0.45885512", "0.45830175", "0.458071", "0.4577404", "0.45772403", "0.45732474", "0.4566495", "0.45531887", "0.4550567", "0.45484623", "0.4538625", "0.4537354", "0.4532968" ]
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) {}", "public function reSetInheritedParentId()\n\t{\n\t\tif($this->getInheritanceType() != InheritanceType::INHERIT)\n\t\t\t$this->setInheritedParentId(null);\n\t\telse\n\t\t\t$this->setInheritedParentId($this->getActuallInheritedParentId());\n\t}", "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 }", "public function setPid(int $pid){\n $this->pid = $pid;\n }", "public function testSetSuperviseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSuperviseur(true);\n $this->assertEquals(true, $obj->getSuperviseur());\n }", "public function setConsecutivoPadrePD( $consecutivoPadrePD ){\n\t\t \t$this->consecutivoPadrePD = $consecutivoPadrePD;\n\t\t }", "public function testSetVueDevisDroitSuppr() {\n\n $obj = new Collaborateurs();\n\n $obj->setVueDevisDroitSuppr(true);\n $this->assertEquals(true, $obj->getVueDevisDroitSuppr());\n }", "public function setChild($type, $path = NULL, $data = array())\n {\n ($path) ? $this->{\"_$type\"}['path'] = VPATH . $path . EXT : $this->{\"_$type\"}['path'] = VPATH . $this->{\"_$type\"}['path'] . EXT;\n $this->{\"_$type\"}['data'] = $data;\n return $this;\n }", "public function setPer($value)\n {\n return $this->set(self::_PER, $value);\n }", "public function setKodeSubSatker($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->kode_sub_satker !== $v) {\n $this->kode_sub_satker = $v;\n $this->modifiedColumns[] = BangunanPeer::KODE_SUB_SATKER;\n }\n\n\n return $this;\n }", "function setHierId($a_hier_id)\n\t{\n\t\t$this->hier_id = $a_hier_id;\n\t}", "public function setPdfParent(&$pdf)\n {\n $this->_pdf = &$pdf;\n }", "public function setPid($pid, $reassign = false);", "function setSubtotal($subtotal)\n {\n $this->subtotal = $subtotal;\n }", "public function setRoleSupervisor()\n {\n // $role = Role::where('name', 'supervisor')->first();\n // $permissions = Permission::where('name', 'like', 'blog-%')->get();\n // $role->syncPermissions($permissions);\n }", "public function setParent($parent) {\n\t\t$this->parent = $parent;\n\t}", "public function setSubdomain($subdomain)\n {\n $this->subdomain = $subdomain;\n }", "function set_base($val) {\n\t\t$this->base = $val;\n\t}", "function setPeriod($_period){\n\t\t$this->period=$_period;\n\t}", "public function setSubEvent($value)\n {\n $this->subEvent = $value;\n }", "function CPerfil($dper){\t$this->dper = $dper;\t}", "public function setNerve($value)\n {\n $this->nerve = $value;\n }", "public function setParent($parent)\n\t{\n\t\t$this->parent = $parent;\n\t}", "public function setPid($pid)\n {\n $this->pid = $pid;\n }", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "public function setUry($ury) {}", "public function testSetDossierPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setDossierPaie(\"dossierPaie\");\n $this->assertEquals(\"dossierPaie\", $obj->getDossierPaie());\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_parentage($parent_file)\n {\n }", "private function cObjData_setFlagTreeview()\n {\n // Set key and value for treeview field\n $key = $this->pObj->prefixId . '.flag_treeview';\n $value = 1;\n\n // Set treeview field\n $this->pObj->cObj->data[ $key ] = $value;\n\n // DRS\n if ( $this->pObj->b_drs_cObjData )\n {\n $prompt = 'cObj->data[ ' . $key . '] = ' . $value;\n t3lib_div::devlog( '[INFO/COBJ] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS\n }", "public function setParent($parent)\n {\n $this->parent = $parent;\n }", "public function setParent($parent)\n {\n $this->parent = $parent;\n }", "function set_parent($value) {\n $this->set_mapped_property('parent', $value);\n }", "public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\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 }", "function setReciboDeOperacion($recibo){ $this->mReciboDeOperacion\t= $recibo; }", "public function __set($name, $value)\n {\n $this->m_current_clusternode->$name = $value;\n }", "public function set_submenu($submenu) {\n $this->submenu = $submenu;\n }", "public function setPeriodeDu(DateTime $periodeDu = null) {\n $this->periodeDu = $periodeDu;\n return $this;\n }", "function setDepth($depth){\n\t\t$this->depth = $depth;\n\t}", "public function set_id_subclase($value = \"\"){ \n $this->_id_subclase= \\helpers\\Validator::valInt('f_id_subclase',$value,TRUE);\n}", "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 }", "private function tree_setOneDim( $uid_parent )\n {\n // Prompt the expired time to devlog\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n\n switch ( true )\n {\n case( count( $this->arr_rowsTablefield ) == 1 ):\n $this->tree_setOneDimOneRow( $uid_parent );\n break;\n default:\n $this->tree_setOneDimDefault( $uid_parent );\n break;\n }\n\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n }", "function SetTreeData($data){\n $this->InitControl($data);\n\n }", "public function setSuperLink(Down_SuperLink $value)\n {\n return $this->set(self::_SUPER_LINK, $value);\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 setUrx($urx) {}", "public function setSubtaskId($value)\n {\n return $this->set(self::SUBTASK_ID, $value);\n }", "public function setSubtaskId($value)\n {\n return $this->set(self::SUBTASK_ID, $value);\n }", "public function testSetDroitCp() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setDroitCp(10.092018);\n $this->assertEquals(10.092018, $obj->getDroitCp());\n }", "public function testSetInterdireModifDepot() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifDepot(true);\n $this->assertEquals(true, $obj->getInterdireModifDepot());\n }", "public function subdivision()\n {\n $city = $this->city;\n\n $this->subdivision = $city ? $city->subdivision : null;\n }", "function setOperationnode($node){\n\t\t$this->operationNode = $node;\n\t}", "public function setCarpetadestino($param) {\n if (!$param) {\n $this->error = 2.1;\n return;\n } else {\n $permitidos = \"ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyz ÁÉÍÓÚáéíóú123456789\";\n for ($i = 0; $i < strlen($param); $i++) {\n if (strpos($permitidos, substr($param, $i, 1)) === false) {\n $this->error = 2.2;\n return;\n }\n }\n }\n $this->carpetadestino = Ruta::getRutaPadre(Ruta::getRutaServidor()).Configuracion::CARPETA. $param;\n//crear carpeta si no existe\n if (!file_exists($this->carpetadestino)) {\n mkdir($this->carpetadestino, 0777, true);\n }\n $param = \"/\";\n $this->carpetadestino .= $param;\n }", "function set_subsite_root() {\n\t\t$this->is_subsite_root = true;\n\t}", "private function defineDirPainelDLX(): void\n {\n // Previnir que o diretório seja alterado caso alguém tenha setado ele manualmente\n if (empty(self::$dir)) {\n $base_dir = dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR;\n $document_root = $this->request->getServerParams()['DOCUMENT_ROOT'];\n\n // Setar o path do PainelDLX\n self::$dir = trim(str_replace($document_root, '', $base_dir), DIRECTORY_SEPARATOR);\n\n // Garantir que os separadores de diretório estejam padronizados\n self::$dir = str_replace(DIRECTORY_SEPARATOR, '/', self::$dir);\n\n // Adicionar o path do PainelDLX no include_path\n $this->adicionarDiretorioInclusao($base_dir);\n }\n }", "public function setSubtotal($amount);", "function _set_decendants ($parent, $to_add)\n {\n $parent = $parent ? $parent : 0;\n \n if (isset($this->data[ $parent ]['descendants']))\n {\n $this->data[ $parent ]['descendants'] = array_merge($this->data[ $parent ]['descendants'],$to_add);\n }\n else\n {\n $this->data[ $parent ]['descendants'] = $to_add;\n }\n\n if (isset($this->data[ $parent ]['parent']))\n {\n // One up the tree\n $this->_set_decendants($this->data[ $parent ]['parent'], $to_add);\n }\n }", "public function setBaseSubtotal($amount);", "public function testSetVrpMulticarte() {\n\n $obj = new Employes();\n\n $obj->setVrpMulticarte(true);\n $this->assertEquals(true, $obj->getVrpMulticarte());\n }", "protected function setPath ($p) {\n\t\t$path = realpath($p);\n\t\tif (!$path) throw new Spd_IOException('No target path: [' . $p . ']');\n\t\tif (!is_dir($path)) throw new Spd_IOException('Target path not dir: ' . var_export($p,1));\n\t\t$this->path = $path;\n\t}", "public function setSubrogationPartielle($subrogationPartielle) {\n $this->subrogationPartielle = $subrogationPartielle;\n return $this;\n }", "public function testSetVueDevisDroitReaffect() {\n\n $obj = new Collaborateurs();\n\n $obj->setVueDevisDroitReaffect(true);\n $this->assertEquals(true, $obj->getVueDevisDroitReaffect());\n }", "public function setPhadsubid($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->phadsubid !== $v) {\n $this->phadsubid = $v;\n $this->modifiedColumns[PhoneBookTableMap::COL_PHADSUBID] = true;\n }\n\n return $this;\n }", "public function setDirector(string $dirlo) {\n $this->director = $dirlo;\n }", "abstract public function set();", "public function getPhadsubid()\n {\n return $this->phadsubid;\n }", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "public function setSubReqID($srID)\n {\n $this->id_subrequest = $srID;\n }", "protected function setPid($pid)\n {\n $this->pid = $pid;\n }", "public function setElUnit($elUnit) {\n $this->cElUnit = $elUnit;\n \n }" ]
[ "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.4738984", "0.47348374", "0.47225827", "0.47154576", "0.46966153", "0.46846566", "0.4684123", "0.46728393", "0.46706203", "0.4669364", "0.46549466", "0.4653626", "0.46471846", "0.46425107", "0.46384457", "0.46330145", "0.4609809", "0.4607576", "0.4605404", "0.46034798", "0.45983657", "0.459709", "0.45814916", "0.4567494", "0.45619017", "0.45591322", "0.4556782", "0.45437706", "0.4534775", "0.45306993", "0.45306993", "0.4519713", "0.4514659", "0.45003712", "0.44921258", "0.448763", "0.44873396", "0.4476465", "0.44757488", "0.44624642", "0.44619754", "0.4461156", "0.44507372", "0.44500142", "0.44446412", "0.4436707", "0.4436461", "0.4436461", "0.44364384", "0.4434081", "0.44320026", "0.4421967", "0.44219616", "0.44200906", "0.44199333", "0.44177824", "0.44173646", "0.4416733", "0.4413414", "0.44028828", "0.44021466", "0.43941635", "0.43866292", "0.43831098", "0.43769345", "0.43742025", "0.43643397", "0.4362699", "0.4358602", "0.43583125" ]
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 }", "public function setCodeEmploye(?string $codeEmploye): ChargesPaie {\n $this->codeEmploye = $codeEmploye;\n return $this;\n }", "public function setSaldo($nuevo_saldo, $id_empresa){\n }", "public function testSetPrime() {\n\n $obj = new Employes();\n\n $obj->setPrime(true);\n $this->assertEquals(true, $obj->getPrime());\n }", "public function testSetPension() {\n\n $obj = new Employes();\n\n $obj->setPension(true);\n $this->assertEquals(true, $obj->getPension());\n }", "public function testSetParcCodeRemorque() {\n\n $obj = new Collaborateurs();\n\n $obj->setParcCodeRemorque(\"parcCodeRemorque\");\n $this->assertEquals(\"parcCodeRemorque\", $obj->getParcCodeRemorque());\n }", "public function testSetPourcentRemuHor() {\n\n $obj = new Employes();\n\n $obj->setPourcentRemuHor(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentRemuHor());\n }", "public function setEmpresa($value = false) {\n $this->_empresa = $value;\n return $this;\n }", "public function setEmpresa($value = false) {\n $this->_empresa = $value;\n return $this;\n }", "public function testSetPrenom() {\n\n $obj = new AttestationCacm();\n\n $obj->setPrenom(\"prenom\");\n $this->assertEquals(\"prenom\", $obj->getPrenom());\n }", "public function testSetPermisDelivrePar() {\n\n $obj = new Employes();\n\n $obj->setPermisDelivrePar(\"permisDelivrePar\");\n $this->assertEquals(\"permisDelivrePar\", $obj->getPermisDelivrePar());\n }", "public function testSetNumero() {\n\n $obj = new Employes();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }", "function set(Profesor $profesor){\n $parametrosSet=array();\n $parametrosSet['tel']=$profesor->getTelefono();\n $parametrosSet['nombre']=$profesor->getNombre();\n $parametrosSet['apellido']=$profesor->getApellido();\n $parametrosSet['clave']=$profesor->getClave();\n $parametrosSet['activo']=$profesor->getActivo();\n $parametrosSet['administrador']=$profesor->getAdministrador();\n $parametrosSet['email']=$profesor->getEmail();\n $parametrosWhere = array();\n $parametrosWhere['tel'] = $profesor->getTelefono();\n return $this->bd->update($this->tabla, $parametrosSet, $parametrosWhere);\n \n }", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\n }", "public function setIdempresa($idempresa){\n $this->idempresa = $idempresa;\n }", "public function setIdPROVEEDORES($idPROVEEDORES){\n $this->idPROVEEDORES = $idPROVEEDORES;\n }", "public function testSetEmploi() {\n\n $obj = new Employes();\n\n $obj->setEmploi(\"emploi\");\n $this->assertEquals(\"emploi\", $obj->getEmploi());\n }", "public function testSetNumeroCasPartSecu() {\n\n $obj = new Employes();\n\n $obj->setNumeroCasPartSecu(10);\n $this->assertEquals(10, $obj->getNumeroCasPartSecu());\n }", "public function setnombrePaciente($value){\n\n\t\t$this->_nombrePaciente = $value;\n\t}", "public function testSetNiveauConfidentialite() {\n\n $obj = new Employes();\n\n $obj->setNiveauConfidentialite(\"niveauConfidentialite\");\n $this->assertEquals(\"niveauConfidentialite\", $obj->getNiveauConfidentialite());\n }", "public function testSetVrpMulticarte() {\n\n $obj = new Employes();\n\n $obj->setVrpMulticarte(true);\n $this->assertEquals(true, $obj->getVrpMulticarte());\n }", "public function testSetNumeroCarteTravail() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteTravail(\"numeroCarteTravail\");\n $this->assertEquals(\"numeroCarteTravail\", $obj->getNumeroCarteTravail());\n }", "public function setNomEmploye($nomEmploye) {\n $this->nomEmploye = $nomEmploye;\n return $this;\n }", "public function setNomEmploye($nomEmploye) {\n $this->nomEmploye = $nomEmploye;\n return $this;\n }", "public function setCodope($codope){\n\t\t$this->codope = $codope;\n\t}", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "public function setProchaineLigne(?int $prochaineLigne): Centralisateur {\n $this->prochaineLigne = $prochaineLigne;\n return $this;\n }", "public function testSetTelPerso() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPerso(\"telPerso\");\n $this->assertEquals(\"telPerso\", $obj->getTelPerso());\n }", "function setEmployeeID($employeeid) {\n $this->employeeid = $employeeid;\n }", "public function setPesoArea($peso) {\n $this->_peso = $peso; \n }", "public function testSetLocalPere() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLocalPere(\"localPere\");\n $this->assertEquals(\"localPere\", $obj->getLocalPere());\n }", "public function testSetDossierPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setDossierPaie(\"dossierPaie\");\n $this->assertEquals(\"dossierPaie\", $obj->getDossierPaie());\n }", "public function testSetNumeroInsee() {\n\n $obj = new Employes();\n\n $obj->setNumeroInsee(\"numeroInsee\");\n $this->assertEquals(\"numeroInsee\", $obj->getNumeroInsee());\n }", "function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "public function testSetLieuTravailConjoint() {\n\n $obj = new Employes();\n\n $obj->setLieuTravailConjoint(\"lieuTravailConjoint\");\n $this->assertEquals(\"lieuTravailConjoint\", $obj->getLieuTravailConjoint());\n }", "function set_pm_defecto($punto)\n\t{\n\t\t$db = $this->get_db();\n\t\t$id_punto = $db->quote($punto->get_id());\n\t\t$sql = \"UPDATE apex_proyecto\n\t\t\t\tSET pm_impresion = $id_punto,\n\t\t\t\t\tpm_sesion = $id_punto,\n\t\t\t\t\tpm_contexto = $id_punto,\n\t\t\t\t\tpm_usuario = $id_punto\n\t\t\t\tWHERE proyecto = \".$db->quote($this->identificador);\n\t\t$db->ejecutar($sql);\n\t}", "public function setNOMBREEMPLEADO_PROVEEDORES($nOMBREEMPLEADO_PROVEEDORES){\n $this->NOMBREEMPLEADO_PROVEEDORES = $nOMBREEMPLEADO_PROVEEDORES;\n }", "public function setE($e)\n {\n $this->E = $e;\n return $this;\n }", "public function setEmployeRemplace(?string $employeRemplace): PointEmpHeuresAbsComplRempl {\n $this->employeRemplace = $employeRemplace;\n return $this;\n }", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "public function testSetQteEnt() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setQteEnt(true);\n $this->assertEquals(true, $obj->getQteEnt());\n }", "public function testSetAnnulationDossierPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationDossierPaie(true);\n $this->assertEquals(true, $obj->getAnnulationDossierPaie());\n }", "public function testSetPrudSection() {\n\n $obj = new Employes();\n\n $obj->setPrudSection(\"prudSection\");\n $this->assertEquals(\"prudSection\", $obj->getPrudSection());\n }", "public function testSetCodePenibilite() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setCodePenibilite(\"codePenibilite\");\n $this->assertEquals(\"codePenibilite\", $obj->getCodePenibilite());\n }", "public function testSetSexe() {\n\n $obj = new Employes();\n\n $obj->setSexe(\"sexe\");\n $this->assertEquals(\"sexe\", $obj->getSexe());\n }", "public function testSetAdresseEmploye() {\n\n $obj = new AttestationCacm();\n\n $obj->setAdresseEmploye(\"adresseEmploye\");\n $this->assertEquals(\"adresseEmploye\", $obj->getAdresseEmploye());\n }", "function setEditableManufacturerID($epmid)\n {\n// if ($this->isCorrectManufacturerId($epmid))\n// {\n $this->editableManufacturerID = $epmid;\n// }\n }", "public function setProyectorActivo( $proyector ) {\n $this->proyector_activo=$proyector;\n $proyecActual=new Properties();\n $proyecActual->load(file_get_contents(\"./pantallaActiva.properties\"));\n if(strcmp($proyector, \"\")==0)\n $this->proyector_activo=$proyecActual->getProperty(\"Proyector.activo\");\n $proyecActual->setProperty(\"Proyector.activo\",$this->proyector_activo);\n file_put_contents('./pantallaActiva.properties', $proyecActual->toString(true));\n }", "public function testSetATransfererEnP() {\n\n $obj = new Employes();\n\n $obj->setATransfererEnP(true);\n $this->assertEquals(true, $obj->getATransfererEnP());\n }", "public function testSetInterdireEnvoiPostit() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireEnvoiPostit(true);\n $this->assertEquals(true, $obj->getInterdireEnvoiPostit());\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Employes();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testSetRegleCalcul() {\n\n $obj = new Employes();\n\n $obj->setRegleCalcul(\"regleCalcul\");\n $this->assertEquals(\"regleCalcul\", $obj->getRegleCalcul());\n }", "protected function setOrganization() {}", "public function testSetNumeroCarteSejour() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteSejour(\"numeroCarteSejour\");\n $this->assertEquals(\"numeroCarteSejour\", $obj->getNumeroCarteSejour());\n }", "public function setNombre_empresa($nombre_empresa){\n $this->nombre_empresa = $nombre_empresa;\n }", "public function testSetCodePaysNaissance() {\n\n $obj = new Employes();\n\n $obj->setCodePaysNaissance(\"codePaysNaissance\");\n $this->assertEquals(\"codePaysNaissance\", $obj->getCodePaysNaissance());\n }", "public function setRoe($roe)\n {\n $this->roe = $roe;\n\n return $this;\n }", "public function setcedulaPaciente($value){\n\n\t\t$this->_cedulaPaciente = $value;\n\t}", "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 testSetPrudCollege() {\n\n $obj = new Employes();\n\n $obj->setPrudCollege(\"prudCollege\");\n $this->assertEquals(\"prudCollege\", $obj->getPrudCollege());\n }", "public function reprova()\n {\n $this -> estadoAtual -> reprova($this);\n }", "public function testSetQuePremiereAnnee() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setQuePremiereAnnee(true);\n $this->assertEquals(true, $obj->getQuePremiereAnnee());\n }", "public function setPoste(?string $poste)\n {\n $this->poste = $poste;\n\n return $this;\n }", "public function setPrenom($prenom)\n {\n $this->prenom = $prenom;\n }", "public function testSetPourcentAct() {\n\n $obj = new Employes();\n\n $obj->setPourcentAct(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentAct());\n }", "public function setNumeroEmploye(?string $numeroEmploye): LignesBulletinCompl {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "public function setEmpCommune($empCommune) {\n $this->empCommune = $empCommune;\n return $this;\n }", "public function setEmpId($val){\n\t\tif(intval($val) > 0){\n\t\t\t$this->employeeId = intval($val);\n\t\t}\t\t\n\t\treturn $this;\n\t}", "public function setPrenom($prenom)\n {\n $this->prenom = $prenom;\n\n return $this;\n }", "public function testSetPrixVente() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente());\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.5517859", "0.55103946", "0.54975486", "0.5488788", "0.54548955", "0.54458493", "0.5404344", "0.5404344", "0.53883743", "0.53744334", "0.53603643", "0.53424007", "0.53332114", "0.5331036", "0.532648", "0.53245777", "0.53132486", "0.528059", "0.5280361", "0.52734995", "0.5269591", "0.5260906", "0.5260906", "0.5260078", "0.5256106", "0.5255088", "0.5251172", "0.5249406", "0.5237659", "0.523059", "0.52285165", "0.52243185", "0.521516", "0.5211102", "0.5206339", "0.520602", "0.52035826", "0.51950556", "0.51854116", "0.5183114", "0.51800144", "0.5177735", "0.5174697", "0.51692927", "0.5167295", "0.5160535", "0.5151836", "0.51502556", "0.51445526", "0.5142215", "0.5136173", "0.5127419", "0.51235294", "0.5120592", "0.5112334", "0.51026845", "0.50999606", "0.50996405", "0.5081459", "0.5079304", "0.507217", "0.5066889", "0.5066709", "0.5064442", "0.5063999", "0.50585485", "0.50579727", "0.5055961", "0.5054482", "0.5045853" ]
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}", "public function setMotif($motif)\n {\n $this->motif = $motif;\n\n return $this;\n }", "public function set_imgR($_imgR)\n {\n $this->_imgR = $_imgR;\n\n return $this;\n }", "public function desligarMudo() {\n if ($this->getLigado() && $this->getVolume == 0) {\n $this->setVolume(50);\n }\n }", "function rekamMedis($nomor_pasien)\n\t{\n\n\t}", "public function setNumIscrizioneMedico($numIscrizione) {\n \n $this->_numIscrizione = $numIscrizione;\n }", "public function set_nomR($_nomR)\n {\n $this->_nomR = $_nomR;\n\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 setRemediation($var)\n {\n GPBUtil::checkString($var, True);\n $this->remediation = $var;\n\n return $this;\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 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 set_medico(Medicos $object)\n {\n $this->medico = $object;\n $this->medico_id = $object->id;\n }", "public function setMinDamage(){ $this->minDamage = 10; }", "public function testSetMtIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnAutre(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnAutre());\n }", "function setF_fin($f_fin){\n\t\t\n\t\t$this->f_fin = $f_fin;\n\t\t$this->cambios = true;\n\t}", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "public function testSetIdRecap() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setIdRecap(10);\n $this->assertEquals(10, $obj->getIdRecap());\n }", "private function __set_arm($arm) {\n # tau(r+1) - tau(r) episodes.\n $this->current_arm = $arm;\n $this->next_update += max(1.0, $this->__tau($this->r[$arm] + 1.0) - $this->__tau($this->r[$arm]));\n $this->r[$arm] += 1;\n }", "public function testSetDateVisiteMedicale() {\n\n // Set a Date/time mock.\n $dateVisiteMedicale = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateVisiteMedicale($dateVisiteMedicale);\n $this->assertSame($dateVisiteMedicale, $obj->getDateVisiteMedicale());\n }", "public function setFiltroSexoMujer($fil='') {\n $this->filtroMujer = $this->arreglarFiltro($fil);\n $this->filtrarPersonas();\n }", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "public function setMedianImpactInMs(?int $value): void {\n $this->getBackingStore()->set('medianImpactInMs', $value);\n }", "public function setIdempresa($idempresa){\n $this->idempresa = $idempresa;\n }", "public function setIdre($idre)\n {\n $this->idre = $idre;\n\n return $this;\n }", "public function set_persR($_persR)\n {\n $this->_persR = $_persR;\n\n return $this;\n }", "function modificaRuta()\r\n\t{\r\n\t\t$query = \"UPDATE \" . self::TABLA . \" SET Ruta='\".$this->Ruta.\"'\tWHERE IDRuta = \".$this->IdRuta.\";\";\r\n\t\treturn parent::modificaRegistro( $query);\r\n\t}", "public function alejarCamaraPresidencia() {\n\n self::$presidencia->alejarZoom();\n\n }", "public function setRepeat()\n {\n $this->repeat = true;\n }", "public function getMedida() {\n return $this->iMedida;\n }", "abstract public function setMetas();", "public function setCAPMedico($cap) {\n $this->_CAP = $cap;\n }", "public function set($mVal)\r\n {\r\n $this->mRetval = $mVal;\r\n }", "public function testSetInterim() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterim(true);\n $this->assertEquals(true, $obj->getInterim());\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 setNomeMedico($nome) {\n $this->_nome = $nome;\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 setMiAttribute($value)\n {\n $this->attributes['mi'] = strtoupper(str_replace('.', '', trim($value)));\n }", "function setValue($m)\n\t{\n\t\t$this->value = $m;\n\t\treturn $this;\n\t}", "public function testSetIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnAutre(true);\n $this->assertEquals(true, $obj->getIndemnAutre());\n }", "public function setPromotion($first,$second)\n {\n $this->promotion->setPromotion($first,$second);\n //product Id for identify products\n $this->promotion->setProductId($this->id);\n }", "public function setIdpension($idpension){\n $this->idpension = $idpension;\n }", "public function getMotif()\n {\n return $this->motif;\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 testSetValideMob() {\n\n $obj = new PointBonTrav();\n\n $obj->setValideMob(true);\n $this->assertEquals(true, $obj->getValideMob());\n }", "public function setMotives($motives)\n {\n $this->motives = $motives;\n }", "public function setIdRespuesta($idRespuesta)\n {\n $this->idRespuesta = $idRespuesta;\n \n }", "public function videoconferenciaNoInterrumpirOFF( ) {\n $this->setNoInterrumpir(\"ON\");\n// $this->setNoInterrumpir(\"AUTOANSWER\");\n }", "protected function set_iri($iri)\n {\n }", "public function setSetAvatarReply(Down_SetAvatarReply $value)\n {\n return $this->set(self::_SET_AVATAR_REPLY, $value);\n }", "public function setPromImg($prom_img)\n {\n $this->prom_img = $prom_img;\n\n return $this;\n }", "function setMiles($new_miles)\n {\n $this->miles = $new_miles;\n }", "public function _setAvatar($Avatar)\n {\n $this->Avatar = $Avatar;\n\n }", "public function setDeviceIMEI($val)\n {\n $this->_propDict[\"deviceIMEI\"] = $val;\n return $this;\n }", "public function setPath($path) { \n $this->__imageSavePath = $path; \n }", "public function set()\n {\n if ( ! $this->value ) {\n $this->generate();\n }\n }", "private function __setOptimalSizeByPortrait() {\n \n $ratio = $this->__originalImageWidth / $this->__originalImageHeight;\n $newWidth = $this->__requestedHeight * $ratio;\n \n $this->__optimalWidth = $newWidth; \n $this->__optimalHeight = $this->__requestedHeight;\n \n }", "function setReal($real) {/*{{{*/\n $this->real = floatval($real);\n }", "public function setImg($img)\n {\n $this->img = $img;\n\n \n }", "public function setMagneticFieldPeriod($period)\n {\n $payload = '';\n $payload .= pack('V', $period);\n\n $this->sendRequest(self::FUNCTION_SET_MAGNETIC_FIELD_PERIOD, $payload);\n }", "public function mort()\n\t{\n\t\tif ( $this->vie <= 0 ) {\n\t\t\techo $this->nom . \" est mort <br>\";\n\t\t} else {\n\t\t\techo $this->nom . \" est vivant ! <br>\";\n\t\t}\n\t}", "public function setImageRepetition($dir = self::N_REP){\n\t\ttry{\n\t\t\tif(is_null($this->imgResource)){\n\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t'to use this method first there has to be an image on the background');\n\t\t\t}\n\t\t\tif(self::checkRepetitionConst($dir)){\n\t\t\t\t$this->imgRepetition= $dir;\n\t\t\t}else{\n\t\t\t\tthrow new Exception('direction of repetition needs to be in repetition constant value'.\n\t\t\t\t\t\t\"value provided was, \".$dir);\n\t\t\t}\t\t\t\n\t\t}catch(Exception $e){\n\t\t\tthrow new Exception(ErrorHelper::formatMessage(__FUNCTION__,__CLASS__,$e));\n\t\t}\t\t\n\t}", "function setTrattativaRiservata(){\n\t\n\tglobal $wpdb;\n\t\n\t$t = 0;\n\t\n\t// nome tabella post meta\n\t$tbl = $wpdb->prefix.'postmeta';\n\t\n\t// IMPORTA XML\n\t$path = ABSPATH . \"import/\";\t\n\t$file = FILE_XML_IMMOBILI;\n\t$xml = @simplexml_load_file($path.$file);\n\t\n\t$dbg2 = array();\n\n\tif($xml){\t\t\n\n\t\t$offerte = $xml->Offerte;\n\n\t\tif($offerte){\n\n\t\t\tforeach($offerte as $offerta){\n\t\t\t\t\n\t\t\t\t$trattativa = (string) $offerta->TrattativaRiservata;\n\t\t\t\t\n\t\t\t\tif($trattativa == '1'){\n\t\t\t\t\t\n\t\t\t\t\t$prezzo = (string) $offerta->Prezzo;\n\t\t\t\t\t$fave_private_note = \"Prezzo richiesto €\".$prezzo;\t\n\t\t\t\t\t$rif = (string) $offerta->Riferimento;\n\t\t\t\t\t\n\t\t\t\t\t$prepare_qry = $wpdb->prepare( \"SELECT post_id FROM \".$tbl.\" WHERE meta_key = 'fave_property_id' AND meta_value = '%s'\", $rif );\n\t\t\t\t\t$post_id = $wpdb->get_col( $prepare_qry, 0 );\n\n\t\t\t\t\tif(!empty($post_id)){\n\t\t\t\t\t\t$dbg2[] = $rid.\" (\".$post_id.\")\";\n\t\t\t\t\t\tupdate_post_meta( $post_id[0], \"fave_property_price\", \"Trattativa Riservata\" );\t\t\t\t\n\t\t\t\t\t\tupdate_post_meta( $post_id[0], \"fave_private_note\", $fave_private_note );\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} // end foreach\n\t\t\t$dbgtratt = implode(\", \", $dbg2);\n\t\t\tcc_import_immobili_error_log(\"DBG-TRATT: \".$dbgtratt);\n\t\t\t\n\t\t} // end if offerte\n\t\t\n\t} // end if xml\n\n\t\n\t\n}", "public function setInRespaldoAutomatizado($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (boolean) $v;\n\t\t}\n\n\t\tif ($this->in_respaldo_automatizado !== $v) {\n\t\t\t$this->in_respaldo_automatizado = $v;\n\t\t\t$this->modifiedColumns[] = C060InventarioPeer::IN_RESPALDO_AUTOMATIZADO;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setRespondent($id) {\n\t\tif (0) deb(\"survey1.setRespondent(): id:\", $id);\n\t\t$this->person = new Person($id);\n\t\tif (0) deb(\"survey1.setRespondent(): Person data:\", $this->person);\n\t}", "function set_pm_defecto($punto)\n\t{\n\t\t$db = $this->get_db();\n\t\t$id_punto = $db->quote($punto->get_id());\n\t\t$sql = \"UPDATE apex_proyecto\n\t\t\t\tSET pm_impresion = $id_punto,\n\t\t\t\t\tpm_sesion = $id_punto,\n\t\t\t\t\tpm_contexto = $id_punto,\n\t\t\t\t\tpm_usuario = $id_punto\n\t\t\t\tWHERE proyecto = \".$db->quote($this->identificador);\n\t\t$db->ejecutar($sql);\n\t}", "public function setMidasReply(Down_MidasReply $value)\n {\n return $this->set(self::_MIDAS_REPLY, $value);\n }", "public function desactivarPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"MUTE\");\n $this->setPizarraMuteado(1);\n }", "function setSlider($slider=7){\n\t\t\t$this->slider = $slider;\n\t\t}", "function setInfo() {\n //Sanatize using Regex\n $santizied=$this->sanitize($this->rawTitle);\n \n \n //IMDB API Options\n $plot='full'; //Plot format Full or Simple\n $limit=1; //Number of results\n \n $reply=file_get_contents('http://imdbapi.org/?title='.$santizied.'&type=json&plot='.$plot.'&episode=0&limit='.$limit.'&yg=0&mt=M&lang=en-US&offset=&aka=simple&release=simple');\n $obj = json_decode($reply,true);\n\t\t\n\n \n if (@is_null($obj[0]['title'])) { \n $this->download=false;\n }\n else { \n $this->title=$obj[0]['title'];\n $this->time=$obj[0]['runtime'][0];\n $this->genres=$obj[0]['genres'];\n $this->rating=$obj[0]['rating'];\n $this->plot=$obj[0]['plot_simple'];\n $this->director=$obj[0]['directors'][0];\n $this->casts=$obj[0]['actors'];\n $this->year=$obj[0]['year'];\n\t\t\t $this->imdbid=$obj[0]['imdb_id'];\n //TODO: Uncomment this\n //$this->poster=$obj[0]['poster'];\n\t\t\t $this->poster=$this->thePoster($obj[0]['poster']);\n //$this->poster='http://localhost:8080/wordpress/wp-content/uploads/2013/01/d.jpg';\n \n $this->download=TRUE;\n\n } \n \n\n }", "public function presetCamaraPresidencia($posicion) {\n\n self::$presidencia->preset($posicion);\n\n }", "public function testSetReponse() {\n\n $obj = new AppelsEnCours();\n\n $obj->setReponse(\"reponse\");\n $this->assertEquals(\"reponse\", $obj->getReponse());\n }" ]
[ "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.4720422", "0.47040644", "0.47019354", "0.4694162", "0.46818513", "0.4668587", "0.46565226", "0.46557194", "0.46355382", "0.46299347", "0.46195742", "0.460929", "0.4607967", "0.45762175", "0.45739487", "0.45660374", "0.4563985", "0.45628104", "0.45570362", "0.4548545", "0.45480996", "0.4544016", "0.45419276", "0.4533803", "0.4533267", "0.45298764", "0.45197606", "0.45182204", "0.4516971", "0.45134097", "0.4506812", "0.44964415", "0.44908437", "0.44883183", "0.4486953", "0.44846833", "0.4474523", "0.44658354", "0.4463837", "0.4462954", "0.44603243", "0.44525307", "0.44503528", "0.44492376", "0.44395986", "0.4437312", "0.44324702", "0.4427761", "0.442565", "0.44227624", "0.4419554", "0.44161296", "0.44128123", "0.44050962", "0.44049945", "0.44015136", "0.4391203", "0.43898037", "0.43873876", "0.43826282", "0.43825415", "0.43782434", "0.43773985", "0.4374468", "0.43743768", "0.4367956", "0.4367592", "0.4361651", "0.43604442", "0.4359037" ]
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 }", "public function reprova()\n {\n $this -> estadoAtual -> reprova($this);\n }", "public function setAgents() {\n foreach ($this->rAgents as $value) {\n $this->agent[$value->id] = $value->id;\n }\n }", "public function setRates($rates)\n {\n $this->_rates = $rates;\n }", "public function setPresenter($presenter)\n\t{\n\t\t$this->presenter = $presenter;\n\t}", "public function setRemediationScriptParameters(?array $value): void {\n $this->getBackingStore()->set('remediationScriptParameters', $value);\n }", "public function setRespuestasByPregunta()\n {\n global $dbLink;\n\n $sql = \"SELECT idRespuesta FROM respuesta\n \t\t\t\t\tWHERE idPregunta=\" . $this->getIdPregunta();\n $res = mysqli_query($dbLink, $sql);\n $arrRespuestas = array();\n if ($res && mysqli_num_rows($res) > 0) {\n \n while ($row_inf = mysqli_fetch_assoc($res)) {\n \n $this->objRespuesta = new ModeloRespuesta();\n $this->objRespuesta->setIdRespuesta($row_inf['idRespuesta']);\n $arrRespuestas[] = $this->objRespuesta;\n }\n \n }\n $this->respuestas=$arrRespuestas;\n }", "protected function setOverrides()\n {\n $config = $this->app['config']->get('cartalyst.sentinel');\n\n $users = $config['users']['model'];\n\n $roles = $config['roles']['model'];\n\n $persistences = $config['persistences']['model'];\n\n if (class_exists($users)) {\n if (method_exists($users, 'setRolesModel')) {\n forward_static_call_array([$users, 'setRolesModel'], [$roles]);\n }\n\n if (method_exists($users, 'setPersistencesModel')) {\n forward_static_call_array([$users, 'setPersistencesModel'], [$persistences]);\n }\n\n if (method_exists($users, 'setPermissionsClass')) {\n forward_static_call_array([$users, 'setPermissionsClass'], [$config['permissions']['class']]);\n }\n }\n\n if (class_exists($roles) && method_exists($roles, 'setUsersModel')) {\n forward_static_call_array([$roles, 'setUsersModel'], [$users]);\n }\n\n if (class_exists($persistences) && method_exists($persistences, 'setUsersModel')) {\n forward_static_call_array([$persistences, 'setUsersModel'], [$users]);\n }\n }", "function UpdateBaseValuesFromRA( $p_ra ) { $this->prot_getBaseValuesFromRA( $p_ra, false, KFRECORD_DATASOURCE_RA_NONGPC ); }", "public function setResolution()\n\t{\n\t\t$args=func_get_args();\n\n\t\tif(count($args)==0 or count($args)>2) return;\n\n\t\t$this->resizeFlag=true;\n\n\t\t$this->width=$args[0];\n\t\t$this->height=$args[1];\n\n\t}", "public function set_instR($_instR)\n {\n $this->_instR = $_instR;\n\n return $this;\n }", "protected function _setRay()\n {\n $this->_rayId = md5(uniqid(__FILE__, true));\n }", "public function setRepriseMotifMed($repriseMotifMed) {\n $this->repriseMotifMed = $repriseMotifMed;\n return $this;\n }", "public function SetRI(SetRI $parameters)\n {\n return $this->__soapCall('SetRI', array($parameters));\n }", "public function setRotors(array $selectedRotors): self\n {\n $unknownRotor = false;\n foreach ($selectedRotors as $rotor) {\n if (!in_array($rotor, Rotor::availableRotors())) {\n $unknownRotor = true;\n break;\n }\n }\n\n if ($unknownRotor) {\n throw new EnigmaException('Unknown rotors');\n }\n\n $this->selectedRotors = $selectedRotors;\n return $this;\n }", "private function setTamanhoProporcional($r){\n\n if($r == 0){\n return;\n }\n $cont = 0;\n $tproporcional;\n while ($cont < sizeof($this -> tamanhosPadrao)) {\n $tproporcional = $this -> tamanhosPadrao[$cont] / $r;\n if($tproporcional < 10){\n $tproporcional = $this -> tamanhosPadrao[$cont] * $r;\n }\n array_push($this -> tamanhosProporcionais, $tproporcional);\n $cont++;\n }\n return $this -> tamanhosProporcionais;\n }", "public function setRang($rang)\n\t{\n\t\t// Si c'en était déjà un, rien ne changera.\n\t\t// Sinon, la conversion donnera le nombre 0 (à quelques exceptions près, mais rien d'important ici).\n\t\t$rang = (int) $rang;\n \n\t\t// On vérifie ensuite si ce nombre est bien strictement positif.\n\t\tif ($rang > 0)\n\t\t{\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->rang = $rang;\n\t\t}\n\t}", "public function setGenres(array $genres)\n {\n $this->genres = $genres;\n }", "private function _setIrt($irt)\n {\n $this->_irt = $irt;\n\n return $this;\n }", "function setPorc_asistencia($porc_asistencia){\n\t\t\n\t\t$this->porc_asistencia = $porc_asistencia;\n\t\t$this->cambios = true;\n\t}", "function setResultSet(/* SQL ResultSet */$rs){\n\t\t$this->main_rs = $rs;\n\t}", "public function setParameters(array $servers)\n {\n $this->servers = $servers;\n }", "public function setIdRedesSociales($idRedesSociales){\n $this->idRedesSociales = $idRedesSociales;\n }", "public function panRightCamaraPresidencia() {\n\n self::$presidencia->moverALaDerecha();\n\n }", "function setRotation( $r ) {\n\n // only 0,90,180,270\n if ( $r > 270 ) return;\n if ( $r % 90 != 0 ) return;\n\n $this->rotate = $r;\n $this->vertical = ( $r == 90 or $r == 270 );\n}", "public function setPlate($plate)\n{\n$this->plate = $plate;\n\nreturn $this;\n}", "public function encenderPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"ON\");\n $this->setEncendidoPizarra(1);\n\n }", "function LoadRowValues(&$rs) {\n\t\tglobal $responsable;\n\t\t$responsable->idResponsable->setDbValue($rs->fields('idResponsable'));\n\t\t$responsable->idGerente->setDbValue($rs->fields('idGerente'));\n\t\t$responsable->idMer->setDbValue($rs->fields('idMer'));\n\t\t$responsable->fecha->setDbValue($rs->fields('fecha'));\n\t\t$responsable->habilitado->setDbValue($rs->fields('habilitado'));\n\t}", "public function set_nomR($_nomR)\n {\n $this->_nomR = $_nomR;\n\n return $this;\n }", "function modificaRuta()\r\n\t{\r\n\t\t$query = \"UPDATE \" . self::TABLA . \" SET Ruta='\".$this->Ruta.\"'\tWHERE IDRuta = \".$this->IdRuta.\";\";\r\n\t\treturn parent::modificaRegistro( $query);\r\n\t}", "public function setPaniers($paniers)\n {\n $this->paniers = $paniers;\n\n return $this;\n }", "public function setRole() {\n\n $res= $_POST['link']->query(\"SELECT t2.perm_name FROM role_perm as t1\n JOIN permissions as t2 ON t1.perm_id = t2.perm_id\n WHERE t1.role_id = $this->rol_id\");\n\n\n foreach($res as $item)\n $this->role_perm[]= $item['perm_name'];\n }", "function setParam()\n {\n $this->rFromDate = '0000-00-00';\n $this->rToDate = date('Y-m-d');\n $this->rAllDate = false;\n $this->rColumns = array();\n }", "public function rifaiVetrine()\n\t\t{\n\t\t\tif( ($listaVetrine = array_keys($this->vetrine)) )\n\t\t\t\tforeach ($listaVetrine as $nomeVetrina)\n\t\t\t\t\tunset($this->vetrine[$nomeVetrina]['lastMod']);\n\t\t\t\n\t\t\t$this->salvaStatoInsiemeVetrine();\n\t\t}", "public function setReel(ReelInterface $reel)\n {\n $this->reel = $reel;\n }", "public function setRound( $rx )\n {\n $this->addAttribute('rx', $rx );\n }", "public function setEncendidoPizarra( $encendido ) {\n $this->pizarra_on=$encendido;\n $this->enviarComandoEstado();\n //$this->activarPantalla();\n }", "public function setAutor($autor)\n {\n $this->autor = $autor;\n }", "public function setRcPris(?float $rcPris): PrepaPaie {\n $this->rcPris = $rcPris;\n return $this;\n }", "public function rulersAction() {\n\t$rulers = new Rulers();\n\t$rulerList = $rulers->getRulerList($this->_getAllParams());\n\tif(in_array($this->_helper->contextSwitch()->getCurrentContext(),$this->_contexts)) {\n\t$data = array('pageNumber' => $rulerList->getCurrentPageNumber(),\n\t\t\t\t 'total' => number_format($rulerList->getTotalItemCount(),0),\n\t\t\t\t 'itemsReturned' => $rulerList->getCurrentItemCount(),\n\t\t\t\t 'totalPages' => number_format($rulerList->getTotalItemCount()/\n\t\t\t\t$rulerList->getCurrentItemCount(),0));\n\t$this->view->data = $data;\n\t$rulers = NULL;\n\n\tforeach($rulerList as $k){\n\n\t$action = $k['term'];\n\tswitch ($action) {\n\t\tcase $action == strtoupper('Roman'):\n\t\t\t$actionset = 'emperor';\n\t\t\t$module = 'romancoins';\n\t\t\tbreak;\n\t\tcase $action == strtoupper('Byzantine'):\n\t\t\t$module = 'byzantinecoins';\n\t\t\t$actionset = 'ruler';\n\t\t\tbreak;\n\t\tcase $action == strtoupper('Greek and Roman Provincial');\n\t\t\t$module = 'greekromancoins';\n\t\t\t$actionset = 'ruler';\n\t\t\tbreak;\n\t\tcase $action == strtoupper('Post Medieval'):\n\t\t\t$module = 'postmedievalcoins';\n\t\t\t$actionset = 'ruler';\n\t\t\tbreak;\n\t\tcase $action == strtoupper('Early Medieval'):\n\t\t\t$module = 'earlymedievalcoins';\n\t\t\t$actionset = 'ruler';\n\t\t\tbreak;\n\t\tcase $action == strtoupper('Iron Age'):\n\t\t\t$module = 'ironagecoins';\n\t\t\t$actionset = 'ruler';\n\t\t\tbreak;\n\t\tcase $action == strtoupper('medieval');\n\t\t\t$module = 'medievalcoins';\n\t\t\t$actionset = 'ruler';\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t$actionset = 'ruler';\n\t\t\t$module = 'medievalcoins';\n\n\t}\n\t$rulers[] = array(\n\t'id' => $k['id'],\n\t'name' => $k['issuer'],\n\t'period' => $k['term'],\n\t'dateFrom' => $k['date1'],\n\t'dateTo' => $k['date2'],\n\t'url' => $this->view->serverUrl() . $this->view->url(array('module' => $module,\n\t'controller' => $actionset . 's' ,'action' => $actionset,'id' => $k['id']),null,true)\n\t);\n\t}\n\n\t$this->view->rulers = $rulers;\n\t} else {\n\t$this->view->rulers = $rulerList;\n\t}\n\t}", "public function setReviewer($module = '')\n {\n $this->loadModel('user');\n if($_POST)\n {\n $settings = fixer::input('post')->get();\n\n if($settings->firstReviewer and $settings->secondReviewer and $settings->firstReviewer == $settings->secondReviewer) $this->send(array('result' => 'fail', 'message' => $this->lang->refund->uniqueReviewer));\n\n $this->loadModel('setting')->setItems('system.oa.refund', $settings);\n if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));\n $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'reload'));\n }\n\n if($module)\n {\n $this->lang->menuGroups->refund = $module;\n $this->lang->refund->menu = $this->lang->$module->menu;\n }\n\n $this->view->title = $this->lang->refund->reviewer; \n $this->view->firstReviewer = !empty($this->config->refund->firstReviewer) ? $this->config->refund->firstReviewer : '';\n $this->view->secondReviewer = !empty($this->config->refund->secondReviewer) ? $this->config->refund->secondReviewer : '';\n $this->view->firstReviewers = array('' => $this->lang->dept->moderators) + $this->user->getPairs('noempty,nodeleted,noforbidden,noclosed');\n $this->view->secondReviewers = $this->user->getPairs('nodeleted,noclosed,noforbidden');\n $this->view->module = $module;\n $this->display();\n }", "public function desactivarPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"MUTE\");\n $this->setPizarraMuteado(1);\n }", "function setDateRated($dateRated) {\n\t\t$this->setData('dateRated', $dateRated);\n\t}", "public function SetRIByID(SetRIByID $parameters)\n {\n return $this->__soapCall('SetRIByID', array($parameters));\n }", "function modificarPresupuesto(){\n\t\t$this->procedimiento='pre.ft_presupuesto_ime';\n\t\t$this->transaccion='PRE_PRE_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_presupuesto','id_presupuesto','int4');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('descripcion','descripcion','varchar');\n\t\t$this->setParametro('estado','estado','varchar');\n\t\t$this->setParametro('gestion','gestion','int4');\n\t\t$this->setParametro('codigo','codigo','varchar');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "public function setRegistry()\n {\n $reg = controllers\\Registry::getInstance();\n foreach ($this->config as $key => $value)\n {\n $reg->setResource($key, $value, true);\n }\n\n\n }", "public function SetRIRange(SetRIRange $parameters)\n {\n return $this->__soapCall('SetRIRange', array($parameters));\n }", "private function loadReptiles(array &$set)\n {\n $type = new AnimalClassification();\n $type->setName('Reptile');\n $type->setClassName(Reptile::class);\n\n for ($i = 0; $i < 3; $i++)\n {\n $reptile = new Reptile();\n $reptile->setScale(self::$scaleDescriptions[$i])\n ->setHiss(self::$hisses[$i])\n ->setName(next(self::$names))\n ->setType($type);\n\n $set[] = $reptile;\n }\n }", "function carregaValors($id,$autor){\t\r\n\t\t\t\t$this->set_aut_idautor($id);\r\n\t\t\t\t$this->set_aut_autor($autor);\r\n\t\t}", "public function SetRIsByID(SetRIsByID $parameters)\n {\n return $this->__soapCall('SetRIsByID', array($parameters));\n }", "public function getRomano(){\n\t\treturn $this->romano;\n\t}", "public function setImageRepetition($dir = self::N_REP){\n\t\ttry{\n\t\t\tif(is_null($this->imgResource)){\n\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t'to use this method first there has to be an image on the background');\n\t\t\t}\n\t\t\tif(self::checkRepetitionConst($dir)){\n\t\t\t\t$this->imgRepetition= $dir;\n\t\t\t}else{\n\t\t\t\tthrow new Exception('direction of repetition needs to be in repetition constant value'.\n\t\t\t\t\t\t\"value provided was, \".$dir);\n\t\t\t}\t\t\t\n\t\t}catch(Exception $e){\n\t\t\tthrow new Exception(ErrorHelper::formatMessage(__FUNCTION__,__CLASS__,$e));\n\t\t}\t\t\n\t}", "public function set_autor($_autor)\n {\n $this->_autor = $_autor;\n\n return $this;\n }", "function setMirrorMargins() {\t \r\n\t $this->mirrorMargins = true;\r\n\t}", "public function setImages(){\n\t\t// imagen destacada\n $this->thumbail_img = $this->getThumbnailImg();\n // imagenes\n $this->images = $this->getImages();\n\t}", "protected function setPager( $pager ){\n \n $this->pager = $pager;\n \n }", "function setReviewerFullName($reviewerFullName) {\n\t\t$this->setData('reviewerFullName', $reviewerFullName);\n\t}", "function rang_autoriser(){}", "public function setPersData($persArticleData) {\r\n\t\t\r\n\t\t$this->set_pid($this->getStoragePID());\r\n\t\t\r\n\t\t$this->set_company($persArticleData['firm']);\r\n\t\t$this->set_title($persArticleData['title']);\r\n\t\t$this->set_firstname($persArticleData['firstname']);\r\n\t\t$this->set_middlename($persArticleData['middlename']);\r\n\t\t$this->set_lastname($persArticleData['lastname']);\r\n\t\t$this->set_email($persArticleData['email']);\r\n\t\t$this->set_jobstatus($persArticleData['jobstatus']);\r\n\r\n\t\t$this->set_currenthash($this->generateHash());\r\n\t\t\r\n\t\t$this->setVoucherCode($persArticleData['vouchercode']);\r\n\r\n\t\t$this->setInfoValuesFromArray($persArticleData['info']);\r\n\t}", "public function setWebser($webser){\n\t\t$this->webser = $webser;\n\t}", "public function activarPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"NO_MUTE\");\n $this->setPizarraMuteado(0);\n }", "public function reset()\n {\n $this->values[self::RES] = array();\n }", "public function edit(Renters $renters)\n {\n //\n }", "public function set_papers($papers)\n\t{\n\t\tif (is_null($papers)) {\n\t\t\tthrow new InvalidArgumentException(\"Project Papers Invalid!\");\n\t\t}\n\t\t$this->papers = $papers;\n\t}", "function set_lrs_settings( $args, $assoc_args ) {\n\n if (!getenv('LRS_ENDPOINT') || !getenv('LRS_USER') || !getenv('LRS_PASSWORD')) {\n WP_CLI::error( \"Couldn't set the LRS settings\" );\n }\n\n update_option('grassblade_tincan_endpoint', getenv('LRS_ENDPOINT'));\n update_option('grassblade_tincan_user', getenv('LRS_USER'));\n update_option('grassblade_tincan_password', getenv('LRS_PASSWORD'));\n\n WP_CLI::success( \"Set the LRS settings\" );\n\n }", "public function setRecruter($recruter)\n {\n $this->recruter = $recruter;\n\n return $this;\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 }", "protected function setOptions()\n {\n $options = \\XLite::getInstance()->getOptions('skin_details');\n \n if (isset($options['skin']) && $options['skin'] === 'default') {\n $options['skin'] = 'customer';\n }\n\n foreach (array('skin', 'locale') as $name) {\n if (!isset($this->$name)) {\n $this->$name = $options[$name];\n }\n }\n\n $this->setPath();\n }", "public function setErors($erors)\n {\n $this->erors = $erors;\n\n return $this;\n }", "public function set($rowData)\n {\n $this->rawRowData = $rowData;\n }", "public function tiltUpCamaraPresidencia() {\n\n self::$presidencia->moverArriba();\n\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.4733776", "0.46981838", "0.4673225", "0.46685007", "0.46543038", "0.4644505", "0.46188092", "0.46151453", "0.45985377", "0.45811826", "0.45741424", "0.45719108", "0.4568005", "0.4561553", "0.455918", "0.4549735", "0.4518184", "0.45178667", "0.45091212", "0.450577", "0.44822317", "0.4479135", "0.4476054", "0.44750947", "0.44739598", "0.44659775", "0.44623822", "0.44574592", "0.44490287", "0.44486526", "0.4447746", "0.4444434", "0.4444352", "0.44438782", "0.44345024", "0.44290584", "0.44290152", "0.44267526", "0.44244775", "0.44161853", "0.4412251", "0.44070014", "0.44046736", "0.44044337", "0.43969437", "0.4392744", "0.4390996", "0.4389196", "0.4385907", "0.43838954", "0.43831316", "0.43671232", "0.4362823", "0.4362635", "0.4361027", "0.43596908", "0.43593225", "0.43579304", "0.43565607", "0.434675", "0.43461308", "0.43429127", "0.4340453", "0.43289518", "0.43270957", "0.43232334", "0.43212906", "0.43179718", "0.4317496", "0.4314197" ]
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}", "public function setCreatedDate($date)\r\n\t\t{\r\n\t\t\t$this->_created_date = $date;\r\n\t\t}", "public function setSignature($signature) {\n\t\t$this->signature = $signature;\n\t}", "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 setDate($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "function setDatePosted($val) {\n $this->identifier = $this->updateDB('identifier', $val);\n }", "public function setSignatureKey(?string $signatureKey): void\n {\n $this->signatureKey = $signatureKey;\n }", "public function setStartDate(?Date $value): void {\n $this->getBackingStore()->set('startDate', $value);\n }", "public function setPubDate($pubDate)\n {\n $this->_pubDate = $pubDate;\n }", "public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n }", "public function setSignatureFile($path)\n {\n $this->setSignatureFileFromPath($path);\n }", "public function setPubDate($pubDate);", "public function setCreationDate($date = true) {}", "public function setUseDate($use_date) \n \t{\n \t\t$this->use_date = $use_date;\n \t}", "public function setStartDate(string $date);", "public function setDate($date)\n {\n $this->date = $date;\n \n return $this;\n }", "public function setCreationTimestamp(?DateTime $value): void {\n $this->getBackingStore()->set('creationTimestamp', $value);\n }", "public function setPublishDateAttribute($value)\n {\n $this->attributes['publish_date'] = date(\"Y-m-d H:i:s\", strtotime($value));\n }", "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 }", "public function setGalleryDate($newGalleryDate = null) : void {\n\t\t// base case: if the date is null, use the current date and time\n\t\tif($newGalleryDate === null) {\n\t\t\t$this->galleryDate = new \\DateTime();\n\t\t\treturn;\n\t\t}\n\n\t\t// store the like date using the ValidateDate trait\n\t\ttry {\n\t\t\t$newGalleryDate = self::validateDateTime($newGalleryDate);\n\t\t} catch(\\InvalidArgumentException | \\RangeException $exception) {\n\t\t\t$exceptionType = get_class($exception);\n\t\t\tthrow(new $exceptionType($exception->getMessage(), 0, $exception));\n\t\t}\n\t\t$this->galleryDate = $newGalleryDate;\n\t}", "public function setReviewedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('reviewedDateTime', $value);\n }", "public function setCreateDate(string $create_date): void\n {\n $this->create_date = $create_date;\n }", "private function _consolideDate(){\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public function setPaymentDate($payment_date);", "public function setDate($value)\n {\n if ($value instanceof \\IntlCalendar)\n $value = $value->toDateTime();\n\n if (is_string($value))\n $value = new \\DateTime($value);\n\n if (is_int($value))\n {\n $lower_bound = time() - self::ALLOWABLE_DATE_WINDOW;\n $upper_bound = time() + self::ALLOWABLE_DATE_WINDOW;\n if ($value >= $lower_bound && $value <= $upper_bound)\n $value = new \\DateTime('@' . $value);\n }\n\n // Validate\n if (!($value instanceof \\DateTimeInterface))\n throw new \\InvalidArgumentException(\"Date must be DateTime, IntlCalendar, date string or valid Unix timestamp\");\n\n $this->header_fields['Date'] = $value;\n return $this;\n }", "public function setContactDate($date) {\n $this->date = $date;\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 }", "function setAuthSignature($AuthSignature)\n {\n \t$this->_authSignature =$AuthSignature;\n }", "function SetInitialDate ($date)\r\n {\r\n if ($date)\r\n {\r\n $this->_dti = $date; \r\n }\r\n }", "public function setDate($date)\n {\n $this->values['Date'] = $date;\n return $this;\n }", "public function setModDate($date) {}", "public function set_approved_date( $date ) {\n\t\t$this->set_prop( 'approved_date', $date ) ;\n\t}", "protected function setstartdate(string $startdate)\r\n\t{\r\n\t\t$this->startdate = $startdate;\r\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n\n return $this;\n }", "public function setDateSignature1(?DateTime $dateSignature1): Assurances {\n $this->dateSignature1 = $dateSignature1;\n return $this;\n }", "function setExpiryDate($expirydate) {\n $this->checkChange();\n\n if ($expirydate > 0 || $expirydate === 0 || $expirydate === NULL) {\n $this->expirydate = (int)$expirydate;\n }\n else {\n $this->abort();\n throw new UserpointsInvalidArgumentException(t('Expiration date must be an integer'));\n }\n return $this;\n }", "public function setCreationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('creationDateTime', $value);\n }", "public function setCreationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('creationDateTime', $value);\n }", "public function setUpRegisterDate()\n {\n $this->setRegisterDate(new \\DateTime());\n }", "public function setinvoiceDateAttribute($value)\n {\n\n $this->attributes['invoice_date'] = UserHelper::parseDateFromString($value);\n }", "public function setTokenValidDate()\n {\n $this->tokenValidDate = new DateTime('+ 2 hours');\n }", "function setExpireDate($ed) {\n\t\tif ($ed) {\n\t\t\t$newtime = dateTimeConvert($ed);\n\t\t\tif ($newtime === false) return;\n\t\t\t$this->set('expiredate', $newtime);\n\t\t} else {\n\t\t\t$this->set('expiredate', NULL);\n\t\t}\n\t}", "public\n\tfunction setPostDate($newPostDate = null): void {\n\t\t// base case: if the date is null, use the current date and time\n\t\tif($newPostDate === null) {\n\t\t\t$this->postDate = new \\DateTime();\n\t\t\treturn;\n\t\t}\n\n\n\n\t//store the like date using the ValidateDate trait\n\ttry {\n\t\t$newPostDate = self::validateDateTime($newPostDate);\n\t} catch(\\InvalidArgumentException |\\RangeException $exception) {\n\t\t$exceptionType = get_class($exception);\n\t\tthrow(new $exceptionType($exception->getMessage(), 0, $exception));\n\t}\n\t$this->postDate = $newPostDate;\n\n}", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setDateCreated($value)\n {\n $this->validateDate('DateCreated', $value);\n $this->validateNotNull('DateCreated', $value);\n\n if ($this->data['date_created'] === $value) {\n return;\n }\n\n $this->data['date_created'] = $value;\n $this->setModified('date_created');\n }", "public function setInvoiceDate($val)\n {\n $this->_propDict[\"invoiceDate\"] = $val;\n return $this;\n }", "function setFecha($fecha) {\r\n $this->fecha = $fecha;\r\n }", "function set_exif_date($filename) {\n echo \" Setting date for $filename\\n\";\n $cmd = \"/usr/bin/exiftool -overwrite_original '-datetimeoriginal<filename' '$filename' 2>&1 1> /dev/null\";\n $results = shell_exec($cmd);\n if(strpos($results, 'looks more like a PNG') !== false) {\n $results = shell_exec(\"/usr/bin/mogrify -format jpg '$filename'\");\n $results = shell_exec($cmd);\n }\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setDate($date) {\n $this->date = $date;\n $this->updateData();\n return $this;\n }", "public function setExpirationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('expirationDateTime', $value);\n }", "public function setExpirationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('expirationDateTime', $value);\n }", "function _sf_set_spot_expiry_date($post) {\n\t\t\n\t\t///// FIRSTLY LET'S ADD A METABOX FOR OUR EXPIRY DATE\n\t\t$exp_date = time() + (ddp('submission_days') * (60*60*24));\n\t\t\n\t\t$midnight_time = $exp_date;\n\t\t\n\t\tupdate_post_meta($post->ID, 'expiry_date', $midnight_time);\n\t\t\n\t\t///// SETS UP OUR CRON JOB\n\t\twp_schedule_single_event($midnight_time, 'expire_spot_submission', array($post->ID, $post->post_title, $post->post_author, ''.$midnight_time.''));\n\t\t\n\t}", "protected function setDateUtilisateur($date)\n{\n$this->dateUtilisateur = $date;\t\n}", "public function setStartDate($date)\n\t\t{\n\t\t\t$this->start_date = $date;\n\t\t}", "public function setDate($date = null): object\n\t{\n\t\tif (null !== $date && !($date instanceof FHIRDateTime)) {\n\t\t\t$date = new FHIRDateTime($date);\n\t\t}\n\t\t$this->_trackValueSet($this->date, $date);\n\t\t$this->date = $date;\n\t\treturn $this;\n\t}", "function set_date_to_now()\n {\n $this->timestamp=time();\n }", "public function setDate(string $date)\r\n {\r\n $this->date = $date;\r\n\r\n return $this;\r\n }", "public function setFormationDate($value)\n {\n return $this->set(self::FORMATIONDATE, $value);\n }", "public function setDate($date_string = null)\n {\n\n if ($this->is_date() == 1) {\n $this->now = getdate(strtotime($date_string));\n } else {\n $this->now = getdate();\n }\n }" ]
[ "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.6045106", "0.6045031", "0.60349107", "0.6007172", "0.599566", "0.59893125", "0.59874815", "0.5954986", "0.5943303", "0.587972", "0.5875854", "0.5849282", "0.5835386", "0.5819876", "0.5782433", "0.57778394", "0.57737726", "0.57335097", "0.57178813", "0.5703024", "0.57029784", "0.5692492", "0.5687133", "0.5686862", "0.5677011", "0.56764084", "0.56722707", "0.56722707", "0.56708735", "0.56634563", "0.56469214", "0.56325513", "0.56163204", "0.5616273", "0.5611573", "0.56102496", "0.56015396", "0.55903196", "0.55903196", "0.55896217", "0.55874485", "0.558251", "0.55802125", "0.55793726", "0.55783945", "0.55783945", "0.55734503", "0.55678254", "0.55652976", "0.5561514", "0.5542494", "0.5542494", "0.5542494", "0.5542494", "0.5542494", "0.5542494", "0.5542494", "0.5542494", "0.55362105", "0.55353206", "0.55353206", "0.5532158", "0.55299157", "0.5526761", "0.5523718", "0.5510614", "0.55012035", "0.5478007", "0.5468298" ]
0.71012825
1
Set the signature nom.
public function setSignatureNom($signatureNom) { $this->signatureNom = $signatureNom; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setSignature($signature)\n {\n $this->_signature = $signature;\n }", "public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n }", "protected function setSignature( $data ){\n $this->signature = $data;\n }", "public function setSignature($signature) {\n\t\t$this->signature = $signature;\n\t}", "public function getSignatureNom() {\n return $this->signatureNom;\n }", "public function getSignatureNom() {\n return $this->signatureNom;\n }", "function setSignatureMode($mode)\n {\n $this->signatureMode = $mode;\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 }", "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 setSignatureKey(?string $signatureKey): void\n {\n $this->signatureKey = $signatureKey;\n }", "function setAuthSignature($AuthSignature)\n {\n \t$this->_authSignature =$AuthSignature;\n }", "public function customize_preview_signature()\n {\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}", "function setSign( $value )\r\n {\r\n $this->Sign = $value;\r\n }", "public function setSig(string $sig)\n {\n $this->sig = $sig;\n\n return $this;\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 setSignature($signature = null)\n {\n $this->_signature = $signature;\n return $this;\n }", "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 setSignatureFile($path)\n {\n $this->setSignatureFileFromPath($path);\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 }", "private function signature(){\n\t\t\tif($this->get_request_method() != \"POST\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\t\t\t\n\t\t\t$first_name = $this->_request['first_name'];\t\t\n\t\t\t$last_name = $this->_request['last_name'];\t\n\t\t\t$data = $this->_request['data'];\n\t\t\t$current_datetime = new DateTime(); \n\t\t\t$sig_name = strtolower(preg_replace(\"/[\\W\\s+]/\",\"\", $first_name.'_'.$last_name.'_'.$current_datetime->format('Y-m-d_His')));\n\t\t\t$signature = base64_decode(str_replace(\"data:image/png;base64,\",\"\",$data));\n\t\t\t$result=file_put_contents(\"../signatures/\".$sig_name.\".png\",$signature);\t\n\t\t\tif($result){\n\t\t\t\t $this->response($sig_name.'.png', 200);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// If invalid inputs \"Bad Request\" status message and reason\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Signature Failed\");\n\t\t\t\t$this->response($this->json($error), 400);\t\t\t\t\t\t\n\t\t\t}\t\t\n\t\t}", "public static function resetSignature($signature)\n {\n if (class_exists('\\Comotive\\Firewall\\Defender')) {\n $firewall = new \\Comotive\\Firewall\\Defender();\n $firewall->resetIpSignature($signature);\n }\n }", "public function setSigner($val)\n {\n $this->_propDict[\"signer\"] = $val;\n return $this;\n }", "public function __construct(Signature $signature)\n {\n parent::__construct();\n $this->setChild('signature', $signature);\n }", "public function __construct(Signature $signature)\n {\n parent::__construct();\n $this->setChild('signature', $signature);\n }", "public function setIdentifier(){\n\n \t$this->fileIdentifier = $this->getIdentifier();\n }", "public function withSignature($signature);", "public function getSignature();", "public static function getSignature()\n {\n return ':meta';\n }", "public function testSetEmailModeSignature() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailModeSignature(10);\n $this->assertEquals(10, $obj->getEmailModeSignature());\n }", "public function setSignature(array $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function setSignaturePrenom($signaturePrenom) {\n $this->signaturePrenom = $signaturePrenom;\n return $this;\n }", "public function setDefaultsmssign()\n\t\t{\n\t\t\t$this->Checklogin();\n\t\t\t$signId=$this->input->post('signId');\n\t\t\n\t\t\tif(count($signId)>0)\n\t\t\t{\n\t\t\t\t$a=$this->setting_model->setDefaultsmssign($signId);\n\t\t\t\t\t\n\t\t\t\t$this->session->set_flashdata('success','Signature has been set to default successfully');\n\t\t\t\tsetAActivityLogs('Transaction_activity','AAsmssignature_default',\"Signature Default :-\".$signId);\n\t\t\t\techo true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('success','Something Went Wrong.......!');\n\t\t\t\techo true;\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t}", "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 }", "public function getSignaturePrenom() {\n return $this->signaturePrenom;\n }", "public function getSignature(): string\n {\n return $this->getName();\n }", "public function getSignature() : string\n {\n return $this->signature;\n }", "public function __construct()\n {\n $this->makeSignature();\n\n parent::__construct();\n }", "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 setSigla(string $sigla)\n {\n $this->sigla = $sigla;\n }", "public function testSetSignNom() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignNom(\"signNom\");\n $this->assertEquals(\"signNom\", $obj->getSignNom());\n }", "public function setSignatureVille($signatureVille) {\n $this->signatureVille = $signatureVille;\n return $this;\n }", "public function setSignatureVille($signatureVille) {\n $this->signatureVille = $signatureVille;\n return $this;\n }", "public function sign()\n {\n }", "public function setMarkIdentification($value) {\n\t\tself::$_markIdentification = $value;\n\t}", "public function getSignatureVille() {\n return $this->signatureVille;\n }", "public function getSignatureVille() {\n return $this->signatureVille;\n }", "public function loadSignatures(){\n $this->testFieldsSignature = [\n 'mandante' => 'teste',\n 'grupo' => 'xxx',\n ];\n }", "public function setSignatureName($signatureName)\n {\n $this->values['SignatureName'] = $signatureName;\n return $this;\n }", "public function getSignature(): string\n {\n return $this->signature;\n }", "public function getSignature(): string\n {\n return $this->signature;\n }", "function setNom($nom) { if (is_string($nom)) {\r\n $this->_nom = $nom;\r\n }\r\n }", "function handle_upload_signature(){\r\n\t\t$config = array();\r\n\t\t$config['upload_path'] = './assets/image_uploads/signature';\r\n\t\t$config['allowed_types'] = 'gif|jpg|png';\r\n\r\n\t\t$this->load->library('upload', $config);\r\n\t\t$this->upload->initialize($config);\r\n\t\tif (isset($_FILES['signature']) && !empty($_FILES['signature']['name'])){\r\n\t\t\tif ($this->upload->do_upload('signature')){\r\n\t\t\t\t// set a $_POST value for 'image' that we can use later\r\n\t\t\t\t$upload_data = $this->upload->data();\r\n\t\t\t\t$_POST['old_signature'] = $upload_data['file_name'];\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\t// possibly do some clean up ... then throw an error\r\n\t\t\t\t$this->form_validation->set_message('handle_upload_signature', $this->upload->display_errors());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function setNom($nom){\n if(empty($nom)){\n //on redirige\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable nom puis on appelle la varibale prive nom\n $this->_nom = $nom;\n }", "public function setSignatureFileContent($contentRaw)\n {\n $this->setSignatureFileFromContentRaw($contentRaw);\n }", "public function setSignatureHeader($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature_header = $var;\n\n return $this;\n }", "public function setNom($param)\n\t\t{\n\t\t\t$this->autnom = $param;\n\t\t}", "function getSignature()\n {\n return $this->_signature;\n }", "public function setName($name){\n\t$this->nom = $name;\n}", "protected function sign()\n {\n trigger_error(\"Not implemented\", E_ERROR);\n }", "public static function getSignature()\n\t{\n\t\treturn MHTTPD::$info['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 static function getSignature()\n {\n return ':originalData';\n }", "public function setSignatureDate(DateTime $signatureDate = null) {\n $this->signatureDate = $signatureDate;\n return $this;\n }", "public function setSignatureDate(DateTime $signatureDate = null) {\n $this->signatureDate = $signatureDate;\n return $this;\n }", "public function signature()\n {\n return 'Vero: ' . \\Vero\\Version::VERSION;\n }", "function signature()\r\n\t{\r\n\t\t$feelings = array(\r\n\t\t\t'Happy', 'Excited', 'Tired', 'Annoyed',\r\n\t\t\t'Scarstic', 'Blessed', 'Confused', 'Angry',\r\n\t\t\t'Bored', 'Sick', 'Awesome', 'Sleepy',\r\n\t\t\t'Guilty', 'Amused', 'Exhausted', 'Hopeful',\r\n\t\t\t'Alone', 'Tough', 'Lost', 'Relaxed',\r\n\t\t\t'Depressed', 'Accomplished', 'Curious',\r\n\t\t\t'Lost', 'Ignorant', 'Proud', 'Crawly',\r\n\t\t\t'Drunk', 'Wasted', 'Fresh', 'Stupid',\r\n\t\t\t'Lovely', 'Busy', 'Disappointed', 'Hungry',\r\n\t\t\t'Fool', 'Poor', 'Wealthy', 'Bossy', 'Cold',\r\n\t\t);\r\n\r\n\t\treturn '— ' . $feelings[array_rand($feelings)] . ' Crawler Agent あ';\r\n\t}", "public function mefSignature() {\r\n\t$encoded_header = base64_encode('{\"alg\": \"HS512\",\"typ\": \"JWT\"}');\r\n\t$iss = 'CISCAR';\r\n\tif(isset($_GET['annuaire']) && $_GET['annuaire'] == 2 )\r\n\t{\r\n\t\t\t$iss = 'GCR';\r\n\t}\r\n\t// base64 encodes the payload json\r\n\t$encoded_payload = base64_encode('{\r\n\t\t\t\"iat\": \"'.time().'\",\r\n\t\t\t\"iss\": \"'.$iss.'\",\r\n\t\t\t\"aud\": \"https://boxstva-client.stva.com\",\r\n\t\t\t\"sub\": \"'.$this->getIndividuID().'\",\r\n\t\t\t\"family_name\": \"'.utf8_encode($this->getNom()).'\",\r\n\t\t\t\"given_name\": \"'.utf8_encode($this->getPrenom()).'\",\r\n\t\t\t\"ordering_party\": \"'.$this->getRolePrinc().'\",\r\n\t\t\t\"entities\": \"'.$this->getRattachements().'\"\r\n\t\t}');\r\n\t\r\n\t// base64 strings are concatenated to one that looks like this\r\n\t$header_payload = $encoded_header . '.' . $encoded_payload;\r\n\t\r\n\t//Setting the secret key environnement de Pre-PROD\r\n\t//\"aud\": \"http://box-gcr-pp.stva.com.s3-website-eu-west-1.amazonaws.com\",\r\n\t//$secret_key = '+XgiH7AFTCCUSbuFyMiqYThoStVW7etx32VRhSAKvCrqZPK2rZ4r1gtXoBlZHEismbALi8KKdmdRd3MnoH/19nfwIOV0+tX8blaUy/cQLxCQmfL8BlWuDutdegs72js2zvGpbS1YxXgjWhd4RjsVPn0HSL7q3EBJBORwAELOpI4GZuqSCn1n/R/veZiq7giAv7Gxi+J1A+EOTXtOzZSiQa/tYvcm6xaPTNPzP9HdgxAeKMN4FV44dG+Q66wD14WYOBAo1IPHKvAdWSS53uwRVAb7HDDfflVLcib851LG7fLC6JXaUmdK0iTEU3qJV32wzlF5phax9t16GdJfmCqAxJDMHx0iIVtZYajZPHnPYzXoHHCSilHmPoPZZkmKjlC12L1m87QKVySqP9K3J9fORW+Tn3QIkIcvl+GA4vqomk7/eVP8NT9MwIOvV9pjMJl+cGIoIYYQZmqQ3+Pa7d1NjV0bx6I9WlJNAKYxC5zFvVzqlx5j/H5Wq91WLOrZZNGaE/kygrLmyCYWQiCNzNbwvEsAgCPUgGy0o9o2itVEL4zwzRWPrNDp4fivhMA87QzbzFkDvX9B6PBb1R/3EFy1uSAk22ovyK/fMmN6GRTNeDQdGRi/U64Ys9mA+UjzBi22gy8ZIgFfcnCfJIinMO5PCh2BJ2AQq3kKxe4AMEQmeno=';\r\n\r\n\t//Setting the secret key environnement de PRODUCTION\r\n\t//\"aud\": \"https://boxstva-client.stva.com\",\r\n\t$secret_key = 'Rn2ZvoU+dTOtpE/BOUEuMaf65G2l7lA1nDJV56hmLcl17Y6F2EPCSIrKRCCVWc/Zda7m5Bp/g9BYUIRVTvgmtlcghGRBtswGFwMjq0Ye4QVtmpa8qZBI0sTHGjnbwTvmqZmf1v2TAcJWsAIJsRcoX0IchGvhaEKUMnLAXAUQT4mBhSdUY7H/ZckUthciFveKtxvmKMfjOLJNqciD8fVapuzQBqSRzFhTifVceLG1EmouRnoE5vg3RERwEhpVqFmt0fo+VCOinAR0nHG5Nq0XWXUTmGGsbOcDljLxz+oLAN28cffMc+6OfxkRX3L5ILId3pHMvV+MJns9FCZSA6+u87s3K31fLARCvVP6aVXXRn+M6CGBLxjQtbGopeQCHBRaliNxGr5LJIAkLFusBeG7jqIpGToxqy+D87tiYrg1zG2iRFTkKtvMJRZxdEkCnwJx4jOmuVboKCdtAqCQNX9e4I6jKp+Gs8edSbbV+17TY422DqV+sOXIxMA6udZ1vWm9eDE25dVVoRfiQXC7U/BLEGkV3ocs5du15nD1+NEODqlrVW+2WceQ1yQcSF4hRsU7Wk1pJ+aMRvFkx6PV028nSLExxTTPkxw07BmmDU5W9E6KbLB1/NFtseSyzgxTacGlFEVxmS+Zq846NLcNTrwQuM15Bub4zAy1N8Qv2NeQs4I=';\r\n\t\r\n\t// Creating the signature, a hash with the s512 algorithm and the secret key. The signature is also base64 encoded.\r\n\t$signature = base64_encode(hash_hmac('sha512', $header_payload, $secret_key, true));\r\n\t//$signature = hash_hmac('sha512', $header_payload, $secret_key, true);\r\n\t\r\n\t// Creating the JWT token by concatenating the signature with the header and payload, that looks like this:\r\n\t$jwt_token = $header_payload . '.' . $signature;\r\n\t\r\n\t//listing the resulted JWT\r\n\t//echo $jwt_token;\r\n\t//print $jwt_token;\r\n\treturn $jwt_token;\r\n\t\r\n\t//$decoded_jwt = explode(\".\",$jwt_token);\r\n\t//$decoded_header = base64_decode($decoded_jwt[0]);\r\n\t//$decoded_payload = base64_decode($decoded_jwt[1]);\r\n\t//$decoded_signature = base64_decode($decoded_jwt[2]);\r\n\t//echo $decoded_signature;\r\n\t\r\n\t//die();\r\n\r\n\r\n//\t\t$data = 'my data';\r\n\t\t\r\n//\t\t//Crée une nouvelle clé privée et publique\r\n//\t\t$new_key_pair = openssl_pkey_new(array(\r\n//\t\t\t\t\"private_key_bits\" => 1024,\r\n//\t\t\t\t\"private_key_type\" => OPENSSL_KEYTYPE_RSA,\r\n//\t\t));\r\n//\t\topenssl_pkey_export($new_key_pair, $private_key_pem);\r\n\t\t\r\n//\t\t$details = openssl_pkey_get_details($new_key_pair);\r\n//\t\t$public_key_pem = $details['key'];\r\n\t\t\r\n//\t\t//Création de la signature\r\n//\t\topenssl_sign($data, $signature, $private_key_pem, OPENSSL_ALGO_SHA1);\r\n\t\t\r\n//\t\t//Sauvegarde pour utilisation ultérieur\r\n//\t\tfile_put_contents('private_key.pem', $private_key_pem);\r\n//\t\tfile_put_contents('public_key.pem', $public_key_pem);\r\n//\t\tfile_put_contents('signature.dat', $signature);\r\n//\t\tprint $private_key_pem;\r\n//\t\t//Vérification de la signature\r\n//\t\t$r = openssl_verify($data, $signature, $public_key_pem, \"sha1WithRSAEncryption\");\r\n//\t\tvar_dump($r);\r\n\t}", "function setSig() {\n if (sfConfig::get(\"sf_private_key\") !='') {\n \n $hash = md5(rand_str());\n $this -> context ->getLogger()->debug(\"{Theater Token Class} HASH:: \".$hash);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" | MESSAGE:: TOKEN HASH:: \".$hash);\n \n $expires = strtotime(now());\n $this -> context ->getLogger()->debug(\"{Theater Token Class} EXPIRES:: \".$expires);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" | MESSAGE:: TOKEN EXPIRES:: \".$expires);\n \n $code = setUserOrderTicket();\n $this -> seat -> setAudienceHmacKey( $code );\n $this -> seat -> save();\n $this -> context ->getLogger()->debug(\"{Theater Token Class} CODE:: \".$code);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" | MESSAGE:: TOKEN CODE:: \".$code);\n \n /*\n\t\t\t$enc_date = encryptCookie($code, $hash.\"=\".strtotime(now()));\n $this -> context ->getLogger()->debug(\"{Theater Token Class} HMAC_SIG:: \".$enc_date);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" - TOKEN HMAC_SIG:: \".$enc_date);\n \n $this -> token_raw = $hash . \"|\" . strtotime(now()) . \"|\" . $enc_date;\n $this -> context ->getLogger()->debug(\"{Theater Token Class} Set Token:: \".$this -> token_raw);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" - TOKEN RAW:: \".$this -> token_raw);\n \n $this -> token = encryptCookie($code,$this -> token_raw);\n $this -> context ->getLogger()->debug(\"{Theater Token Class} Set Coookie:: \".$this -> token);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" - SET COOKIE:: \".$this -> token);\n */\n \n $this -> setCookieVar( \"csth\", $code, 7 );\n return $this -> token;\n \n }\n \n }", "protected function signature(): void {\n\t\tif ($this->method == 'SEND') {\n\t\t\t$params = ['destinations', 'text'];\n\t\t}\n\n\t\tif (isset($params)) {\n\t\t\t$this->checkParams($params);\n\t\t}\n\t}", "public function setSignature(\\BankId\\Merchant\\Library\\Schemas\\ds\\Signature $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function setSignature(\\BankId\\Merchant\\Library\\Schemas\\ds\\Signature $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function signature() {\r\n\t\t$signature = \"\";\r\n\t\tif ($this->isFinal) {\r\n\t\t\t$signature .= \"final \";\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->isPublic) {\r\n\t\t\t$signature .= \"public \";\r\n\t\t}\r\n\t\telseif ($this->isPrivate) {\r\n\t\t\t$signature .= \"private \";\r\n\t\t}\r\n\t\telseif ($this->isProtected) {\r\n\t\t\t$signature .= \"protected \";\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->isStatic) {\r\n\t\t\t$signature .= \"static \";\r\n\t\t}\r\n\t\t$signature .= \"function \".$this->name.\" \";\r\n\t\t$signature .= \"(\";\r\n\t\t$params = array();\r\n\t\tforeach($this->parameters as $parameter) {\r\n\t\t\t$params[] = $parameter->signature();\r\n\t\t}\r\n\t\t$signature .= implode(\", \",$params);\r\n\t\t$signature .= \")\";\r\n\t\treturn $signature;\r\n\t}", "public function setNom($value)\n\t{\n\t\t$this -> _nom = $value;\n\t}", "public function getSignature() {\n\t\treturn $this->signature;\n\t}", "public function set_nonce() {\n\t\tif ( empty( $this->nonce ) ) {\n\t\t\t$this->nonce = wp_create_nonce( 'fffcf_submission_' . $this->id );\n\t\t}\n\t}", "function setId_nom($iid_nom)\n {\n $this->iid_nom = $iid_nom;\n }", "function setId_nom($iid_nom)\n {\n $this->iid_nom = $iid_nom;\n }", "function handle_upload_signature(){\r\n\t\t$config = array();\r\n\t\t$config['upload_path'] = './assets/image_uploads/signature';\r\n\t\t$config['allowed_types'] = 'gif|jpg|png';\r\n\t\t\r\n\t\t$this->load->library('upload', $config);\r\n\t\t$this->upload->initialize($config);\r\n\t\tif (isset($_FILES['bank_signature']) && !empty($_FILES['bank_signature']['name'])){\r\n\t\t\tif ($this->upload->do_upload('bank_signature')){\r\n\t\t\t\t// set a $_POST value for 'image' that we can use later\r\n\t\t\t\t$upload_data = $this->upload->data();\r\n\t\t\t\t$_POST['old_signature'] = $upload_data['file_name'];\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\t// possibly do some clean up ... then throw an error\r\n\t\t\t\t$this->form_validation->set_message('handle_upload_signature', $this->upload->display_errors());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} \r\n\t}", "public function editsmsSignature()\n\t{\n\t\n\t\t$this->Checklogin();\n\t\tif (isset($_POST ['btnSubmit']))\n\t\t{\n\t\n\t\t\t$data ['admin_section']='Sign';\n\t\t\t$id=$this->setting_model->editsmsSignature();\n\t\t\tif ($id)\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('success','Signature has been updated successfully.');\n\t\t\t\tredirect('admin/setting/smsSignature');\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('error','Unable to update signature.');\n\t\t\t\tredirect('admin/setting/smsSignature');\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tredirect('admin/setting/smsSignature');\n\t\t}\n\t\n\t}", "public function getSignatureQualite() {\n return $this->signatureQualite;\n }", "public function getSignatureQualite() {\n return $this->signatureQualite;\n }", "public function signature($keyname, $signature)\n {\n return $this->signTSIG($keyname, $signature);\n }", "public function DKIM_Sign($signHeader)\n {\n }", "function setIdentifier($val) {\n $this->identifier = $this->updateDB('identifier', $val);\n }", "private function getSignature(): string {\r\n return base64_encode(hash_hmac(\"sha1\", $this->buildSigningBase(), $this->buildSigningKey(), true));\r\n }", "public function setToken()\n\t{\n\t\t $args = phpSmug::processArgs( func_get_args() );\n\t\t $this->oauth_token = $args['id'];\n\t\t $this->oauth_token_secret = $args['Secret'];\n\t}", "public function getSignatureType(): string\n {\n return $this->type->getSignatureType();\n }", "public function setSignatureFileFromPath($path)\n {\n if (!file_exists($path)) {\n throw new \\Exception(\"The provided signature file was not found\");\n }\n $this->signatureFilePath = $path;\n }", "function setUID($uid) {\n\t\t$this->_uid = $uid;\n\t}", "protected function setAnonymity()\n {\n \tif ( isset( $_POST['anonymity'] ) && ! empty( $_POST['anonymity'] ) ) {\n \t\t$this->data['anonymity'] = 1;\n \t} else {\n \t\t$this->data['anonymity'] = 0;\n \t}\n }", "public function _setFirma($Firma)\n {\n $this->Firma = $Firma;\n\n }" ]
[ "0.69108033", "0.6769624", "0.67439985", "0.6633301", "0.65520185", "0.65520185", "0.6438699", "0.6408092", "0.6312609", "0.63100636", "0.63100636", "0.6043043", "0.60353273", "0.5914921", "0.5829719", "0.58012414", "0.5785282", "0.5766921", "0.5722799", "0.5718464", "0.5669884", "0.5669589", "0.56504923", "0.5588495", "0.55558515", "0.5447014", "0.54338783", "0.54338783", "0.5432374", "0.54276997", "0.5413227", "0.5354121", "0.5320482", "0.5305859", "0.5303981", "0.5293228", "0.52931845", "0.52919686", "0.5269302", "0.52450854", "0.5242714", "0.5224878", "0.5218373", "0.5211501", "0.52050006", "0.52050006", "0.51939654", "0.51892084", "0.51646036", "0.51646036", "0.5087206", "0.50834537", "0.5066913", "0.5066913", "0.5064849", "0.50371367", "0.5031583", "0.5023859", "0.5017375", "0.49859628", "0.4961551", "0.49521863", "0.49396318", "0.49374658", "0.4909093", "0.4909093", "0.4909093", "0.4909093", "0.4909093", "0.49081132", "0.48958778", "0.48958778", "0.48939997", "0.4875972", "0.48711", "0.48639476", "0.48594967", "0.48484", "0.48484", "0.48444906", "0.4835032", "0.48297554", "0.48257956", "0.4824126", "0.4824126", "0.48162284", "0.48148236", "0.4811237", "0.4811237", "0.48061752", "0.47926632", "0.4789443", "0.47812736", "0.47733122", "0.47613212", "0.47589704", "0.47546056", "0.47443894", "0.47327515" ]
0.6658335
4
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 }", "public function setEnforceSignatureCheck($val)\n {\n $this->_propDict[\"enforceSignatureCheck\"] = boolval($val);\n return $this;\n }", "public function setSignatureFileFromPath($path)\n {\n if (!file_exists($path)) {\n throw new \\Exception(\"The provided signature file was not found\");\n }\n $this->signatureFilePath = $path;\n }", "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 setSrcQualifier($srcQualifier) {\n if ($srcQualifier !== ($oldSrcQualifier = $this->srcQualifier)) {\n if ($this->immutable) throw self::immutableException();\n $this->srcQualifier = $srcQualifier;\n }\n }", "public function customize_preview_signature()\n {\n }", "public function __construct(Signature $signature)\n {\n parent::__construct();\n $this->setChild('signature', $signature);\n }", "public function __construct(Signature $signature)\n {\n parent::__construct();\n $this->setChild('signature', $signature);\n }", "public function setLicense(SetAlbumLicenseRequest $request): void\n\t{\n\t\t$request->album()->license = $request->license();\n\t\t$request->album()->save();\n\t}", "public function setSignature(\\BankId\\Merchant\\Library\\Schemas\\ds\\Signature $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function setSignature(\\BankId\\Merchant\\Library\\Schemas\\ds\\Signature $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function _setFirma($Firma)\n {\n $this->Firma = $Firma;\n\n }", "public function setSigner($val)\n {\n $this->_propDict[\"signer\"] = $val;\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 setSignatureDate(DateTime $signatureDate = null) {\n $this->signatureDate = $signatureDate;\n return $this;\n }", "public function setSignatureDate(DateTime $signatureDate = null) {\n $this->signatureDate = $signatureDate;\n return $this;\n }", "public function setSignaturePrenom($signaturePrenom) {\n $this->signaturePrenom = $signaturePrenom;\n return $this;\n }", "private function signature(){\n\t\t\tif($this->get_request_method() != \"POST\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\t\t\t\n\t\t\t$first_name = $this->_request['first_name'];\t\t\n\t\t\t$last_name = $this->_request['last_name'];\t\n\t\t\t$data = $this->_request['data'];\n\t\t\t$current_datetime = new DateTime(); \n\t\t\t$sig_name = strtolower(preg_replace(\"/[\\W\\s+]/\",\"\", $first_name.'_'.$last_name.'_'.$current_datetime->format('Y-m-d_His')));\n\t\t\t$signature = base64_decode(str_replace(\"data:image/png;base64,\",\"\",$data));\n\t\t\t$result=file_put_contents(\"../signatures/\".$sig_name.\".png\",$signature);\t\n\t\t\tif($result){\n\t\t\t\t $this->response($sig_name.'.png', 200);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// If invalid inputs \"Bad Request\" status message and reason\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Signature Failed\");\n\t\t\t\t$this->response($this->json($error), 400);\t\t\t\t\t\t\n\t\t\t}\t\t\n\t\t}", "protected function set_quality($quality) {\n\t\t\n\t\t$default\t= $this->get_quality_default();\n\t\t$ar_valid \t= $this->get_ar_quality();\n\t\t\n\t\tif(empty($quality)) {\n\t\t\t$this->quality = $default;\n\t\t\treturn $this->quality;\n\t\t}\n\t\t#dump($quality,\"QUALITY HERE\");\n\t\t#$quality \t= strtolower($quality);\t\t\t\n\t\t\n\t\tif(!is_array($ar_valid)) {\n\t\t\tthrow new Exception(\"config ar_valid is not defined!\", 1);\n\t\t}\n\t\t\n\t\tif(!in_array($quality,$ar_valid)) {\n\t\t\t$quality = $default ;\t\t#dump($ar_valid,\"$quality NO IS IN ARRAY !!!!!\");\n\t\t}\n\n\t\t$this->quality = $quality;\n\t\t\n\t\treturn $this->quality;\n\t}", "public function setSignatureAlgorithm($signatureAlgorithm)\n {\n $this->signatureAlgorithm = (int) $signatureAlgorithm;\n }", "public static function resetSignature($signature)\n {\n if (class_exists('\\Comotive\\Firewall\\Defender')) {\n $firewall = new \\Comotive\\Firewall\\Defender();\n $firewall->resetIpSignature($signature);\n }\n }", "public function setSignatureHeader($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature_header = $var;\n\n return $this;\n }", "public function setSignedSignature(string $signedSignature): self {\n\t\t$this->signedSignature = $signedSignature;\n\n\t\treturn $this;\n\t}", "public function setSigla(string $sigla)\n {\n $this->sigla = $sigla;\n }", "public function setSignatureName($signatureName)\n {\n $this->values['SignatureName'] = $signatureName;\n return $this;\n }", "public function setSignatureContentLength(int $signatureContentLength)\n {\n $this->signatureConentLength = $signatureContentLength;\n }", "public function setSignatureContentLength(int $signatureContentLength)\n {\n $this->signatureConentLength = $signatureContentLength;\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 qualifications($qualifications)\n {\n return $this->setProperty('qualifications', $qualifications);\n }", "public function testSetGeneSeq() {\n\t\techo (\"\\n********************Test SetGeneSeq()*******************************************************\\n\");\n\t\t\n\t\t$this->gene->setGeneSeq ( 'setGeneSeq' );\n\t\t$this->assertEquals ( 'setGeneSeq', $this->gene->getGeneSeq () );\n\t}", "public function addToSignature(\\horstoeko\\ubl\\entities\\cac\\Signature $signature)\n {\n $this->signature[] = $signature;\n return $this;\n }", "function handle_upload_signature(){\r\n\t\t$config = array();\r\n\t\t$config['upload_path'] = './assets/image_uploads/signature';\r\n\t\t$config['allowed_types'] = 'gif|jpg|png';\r\n\r\n\t\t$this->load->library('upload', $config);\r\n\t\t$this->upload->initialize($config);\r\n\t\tif (isset($_FILES['signature']) && !empty($_FILES['signature']['name'])){\r\n\t\t\tif ($this->upload->do_upload('signature')){\r\n\t\t\t\t// set a $_POST value for 'image' that we can use later\r\n\t\t\t\t$upload_data = $this->upload->data();\r\n\t\t\t\t$_POST['old_signature'] = $upload_data['file_name'];\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\t// possibly do some clean up ... then throw an error\r\n\t\t\t\t$this->form_validation->set_message('handle_upload_signature', $this->upload->display_errors());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function mefSignature() {\r\n\t$encoded_header = base64_encode('{\"alg\": \"HS512\",\"typ\": \"JWT\"}');\r\n\t$iss = 'CISCAR';\r\n\tif(isset($_GET['annuaire']) && $_GET['annuaire'] == 2 )\r\n\t{\r\n\t\t\t$iss = 'GCR';\r\n\t}\r\n\t// base64 encodes the payload json\r\n\t$encoded_payload = base64_encode('{\r\n\t\t\t\"iat\": \"'.time().'\",\r\n\t\t\t\"iss\": \"'.$iss.'\",\r\n\t\t\t\"aud\": \"https://boxstva-client.stva.com\",\r\n\t\t\t\"sub\": \"'.$this->getIndividuID().'\",\r\n\t\t\t\"family_name\": \"'.utf8_encode($this->getNom()).'\",\r\n\t\t\t\"given_name\": \"'.utf8_encode($this->getPrenom()).'\",\r\n\t\t\t\"ordering_party\": \"'.$this->getRolePrinc().'\",\r\n\t\t\t\"entities\": \"'.$this->getRattachements().'\"\r\n\t\t}');\r\n\t\r\n\t// base64 strings are concatenated to one that looks like this\r\n\t$header_payload = $encoded_header . '.' . $encoded_payload;\r\n\t\r\n\t//Setting the secret key environnement de Pre-PROD\r\n\t//\"aud\": \"http://box-gcr-pp.stva.com.s3-website-eu-west-1.amazonaws.com\",\r\n\t//$secret_key = '+XgiH7AFTCCUSbuFyMiqYThoStVW7etx32VRhSAKvCrqZPK2rZ4r1gtXoBlZHEismbALi8KKdmdRd3MnoH/19nfwIOV0+tX8blaUy/cQLxCQmfL8BlWuDutdegs72js2zvGpbS1YxXgjWhd4RjsVPn0HSL7q3EBJBORwAELOpI4GZuqSCn1n/R/veZiq7giAv7Gxi+J1A+EOTXtOzZSiQa/tYvcm6xaPTNPzP9HdgxAeKMN4FV44dG+Q66wD14WYOBAo1IPHKvAdWSS53uwRVAb7HDDfflVLcib851LG7fLC6JXaUmdK0iTEU3qJV32wzlF5phax9t16GdJfmCqAxJDMHx0iIVtZYajZPHnPYzXoHHCSilHmPoPZZkmKjlC12L1m87QKVySqP9K3J9fORW+Tn3QIkIcvl+GA4vqomk7/eVP8NT9MwIOvV9pjMJl+cGIoIYYQZmqQ3+Pa7d1NjV0bx6I9WlJNAKYxC5zFvVzqlx5j/H5Wq91WLOrZZNGaE/kygrLmyCYWQiCNzNbwvEsAgCPUgGy0o9o2itVEL4zwzRWPrNDp4fivhMA87QzbzFkDvX9B6PBb1R/3EFy1uSAk22ovyK/fMmN6GRTNeDQdGRi/U64Ys9mA+UjzBi22gy8ZIgFfcnCfJIinMO5PCh2BJ2AQq3kKxe4AMEQmeno=';\r\n\r\n\t//Setting the secret key environnement de PRODUCTION\r\n\t//\"aud\": \"https://boxstva-client.stva.com\",\r\n\t$secret_key = 'Rn2ZvoU+dTOtpE/BOUEuMaf65G2l7lA1nDJV56hmLcl17Y6F2EPCSIrKRCCVWc/Zda7m5Bp/g9BYUIRVTvgmtlcghGRBtswGFwMjq0Ye4QVtmpa8qZBI0sTHGjnbwTvmqZmf1v2TAcJWsAIJsRcoX0IchGvhaEKUMnLAXAUQT4mBhSdUY7H/ZckUthciFveKtxvmKMfjOLJNqciD8fVapuzQBqSRzFhTifVceLG1EmouRnoE5vg3RERwEhpVqFmt0fo+VCOinAR0nHG5Nq0XWXUTmGGsbOcDljLxz+oLAN28cffMc+6OfxkRX3L5ILId3pHMvV+MJns9FCZSA6+u87s3K31fLARCvVP6aVXXRn+M6CGBLxjQtbGopeQCHBRaliNxGr5LJIAkLFusBeG7jqIpGToxqy+D87tiYrg1zG2iRFTkKtvMJRZxdEkCnwJx4jOmuVboKCdtAqCQNX9e4I6jKp+Gs8edSbbV+17TY422DqV+sOXIxMA6udZ1vWm9eDE25dVVoRfiQXC7U/BLEGkV3ocs5du15nD1+NEODqlrVW+2WceQ1yQcSF4hRsU7Wk1pJ+aMRvFkx6PV028nSLExxTTPkxw07BmmDU5W9E6KbLB1/NFtseSyzgxTacGlFEVxmS+Zq846NLcNTrwQuM15Bub4zAy1N8Qv2NeQs4I=';\r\n\t\r\n\t// Creating the signature, a hash with the s512 algorithm and the secret key. The signature is also base64 encoded.\r\n\t$signature = base64_encode(hash_hmac('sha512', $header_payload, $secret_key, true));\r\n\t//$signature = hash_hmac('sha512', $header_payload, $secret_key, true);\r\n\t\r\n\t// Creating the JWT token by concatenating the signature with the header and payload, that looks like this:\r\n\t$jwt_token = $header_payload . '.' . $signature;\r\n\t\r\n\t//listing the resulted JWT\r\n\t//echo $jwt_token;\r\n\t//print $jwt_token;\r\n\treturn $jwt_token;\r\n\t\r\n\t//$decoded_jwt = explode(\".\",$jwt_token);\r\n\t//$decoded_header = base64_decode($decoded_jwt[0]);\r\n\t//$decoded_payload = base64_decode($decoded_jwt[1]);\r\n\t//$decoded_signature = base64_decode($decoded_jwt[2]);\r\n\t//echo $decoded_signature;\r\n\t\r\n\t//die();\r\n\r\n\r\n//\t\t$data = 'my data';\r\n\t\t\r\n//\t\t//Crée une nouvelle clé privée et publique\r\n//\t\t$new_key_pair = openssl_pkey_new(array(\r\n//\t\t\t\t\"private_key_bits\" => 1024,\r\n//\t\t\t\t\"private_key_type\" => OPENSSL_KEYTYPE_RSA,\r\n//\t\t));\r\n//\t\topenssl_pkey_export($new_key_pair, $private_key_pem);\r\n\t\t\r\n//\t\t$details = openssl_pkey_get_details($new_key_pair);\r\n//\t\t$public_key_pem = $details['key'];\r\n\t\t\r\n//\t\t//Création de la signature\r\n//\t\topenssl_sign($data, $signature, $private_key_pem, OPENSSL_ALGO_SHA1);\r\n\t\t\r\n//\t\t//Sauvegarde pour utilisation ultérieur\r\n//\t\tfile_put_contents('private_key.pem', $private_key_pem);\r\n//\t\tfile_put_contents('public_key.pem', $public_key_pem);\r\n//\t\tfile_put_contents('signature.dat', $signature);\r\n//\t\tprint $private_key_pem;\r\n//\t\t//Vérification de la signature\r\n//\t\t$r = openssl_verify($data, $signature, $public_key_pem, \"sha1WithRSAEncryption\");\r\n//\t\tvar_dump($r);\r\n\t}", "public function getSignature();", "public function testSetQualification() {\n\n $obj = new PointBonTrav();\n\n $obj->setQualification(\"qualification\");\n $this->assertEquals(\"qualification\", $obj->getQualification());\n }", "public function setQualifiers($qualifiers)\n {\n $this->qualifiers = $qualifiers;\n }", "public function setQuality($value) {\n\t\t$this->_quality = $value;\n\t}", "public function setDefaultsmssign()\n\t\t{\n\t\t\t$this->Checklogin();\n\t\t\t$signId=$this->input->post('signId');\n\t\t\n\t\t\tif(count($signId)>0)\n\t\t\t{\n\t\t\t\t$a=$this->setting_model->setDefaultsmssign($signId);\n\t\t\t\t\t\n\t\t\t\t$this->session->set_flashdata('success','Signature has been set to default successfully');\n\t\t\t\tsetAActivityLogs('Transaction_activity','AAsmssignature_default',\"Signature Default :-\".$signId);\n\t\t\t\techo true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('success','Something Went Wrong.......!');\n\t\t\t\techo true;\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t}", "public function sharedAccessSignature(string $signature): AzureBlobExternalAnalyticsLink\n {\n }", "public function sign()\n {\n }", "public function __construct()\n {\n $this->makeSignature();\n\n parent::__construct();\n }", "public function sign() : self\n {\n\n if ($this->is_signed()){\n return $this;\n }\n\n $signature = base64_encode(hash_hmac($this->algo, $this->getData(), $this->getKey(), true));\n\n $this->setSignature( $signature );\n\n $this->signed = true;\n\n \treturn $this;\n\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}", "public function setClearSignature(string $clearSignature): self {\n\t\t$this->clearSignature = $clearSignature;\n\n\t\treturn $this;\n\t}", "protected function sign()\n {\n trigger_error(\"Not implemented\", E_ERROR);\n }", "public function setSignatureFileFromContentRaw($contentRaw)\n {\n $tempFilePath = parent::createTempFile();\n file_put_contents($tempFilePath, $contentRaw);\n $this->signatureFilePath = $tempFilePath;\n }", "function getSignature()\n {\n return $this->_signature;\n }", "public function setProtectionPolicy(SetAlbumProtectionPolicyRequest $request, SetProtectionPolicy $setProtectionPolicy): void\n\t{\n\t\t$setProtectionPolicy->do(\n\t\t\t$request->album(),\n\t\t\t$request->albumProtectionPolicy(),\n\t\t\t$request->isPasswordProvided(),\n\t\t\t$request->password()\n\t\t);\n\t}", "public function getSignaturePrenom() {\n return $this->signaturePrenom;\n }", "public function setSignInAudience($val)\n {\n $this->_propDict[\"signInAudience\"] = $val;\n return $this;\n }", "public function set_Squad1($value)\n\t{\n\t\t$this->Squad1 = $value;\n\t}", "public function editsmsSignature()\n\t{\n\t\n\t\t$this->Checklogin();\n\t\tif (isset($_POST ['btnSubmit']))\n\t\t{\n\t\n\t\t\t$data ['admin_section']='Sign';\n\t\t\t$id=$this->setting_model->editsmsSignature();\n\t\t\tif ($id)\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('success','Signature has been updated successfully.');\n\t\t\t\tredirect('admin/setting/smsSignature');\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('error','Unable to update signature.');\n\t\t\t\tredirect('admin/setting/smsSignature');\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tredirect('admin/setting/smsSignature');\n\t\t}\n\t\n\t}", "public function setClaim(string $name, $value): void\n {\n $this->payload[$name] = $value;\n\n // Clear the generated hash since it's no longer valid\n $this->hash = null;\n }", "public function setShim(array $shim)\n {\n $this->shim = $shim;\n }", "public function getSignature() : string\n {\n return $this->signature;\n }", "public function set_origin($origin){\n \t$this->origin = $origin;\n }", "public function testAddSignature()\n {\n $data = array(\n 'foo' => 'baa'\n );\n\n $transaction = $this->client->transaction()->addSignature(655, $data);\n $this->assertEquals($data, get_object_vars($transaction->post), 'Passed variables are not correct');\n $this->assertEquals('POST', $transaction->request_method, 'The PHP Verb Is Incorrect');\n $this->assertEquals('/transactions/655/signature/capture', $transaction->path, 'The path is incorrect');\n\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 {\n return $this->signature;\n }", "public function testSetQualification() {\n\n $obj = new Employes();\n\n $obj->setQualification(\"qualification\");\n $this->assertEquals(\"qualification\", $obj->getQualification());\n }", "protected function assertSignature($value, $is_valid = TRUE) {\n // Must manually set hidden values because ::submitForm only set visible\n // element values and ignores hidden elements.\n // @see \\Drupal\\Tests\\UiHelperTrait::submitForm\n $this->drupalGet('/webform/test_element_signature');\n $field = $this->assertSession()->hiddenFieldExists('signature');\n $field->setValue($value);\n $this->submitForm([], 'Submit');\n if ($is_valid) {\n $this->assertNoRaw('signature contains an invalid signature.');\n }\n else {\n $this->assertRaw('signature contains an invalid signature.');\n }\n }", "public function testGetSignature()\n {\n\n }", "function setSensitivity($sensitive) {\n\t\t$this->_sensitive = $sensitive;\n\t}", "public function issetSignature($index)\n {\n return isset($this->signature[$index]);\n }", "function handle_upload_signature(){\r\n\t\t$config = array();\r\n\t\t$config['upload_path'] = './assets/image_uploads/signature';\r\n\t\t$config['allowed_types'] = 'gif|jpg|png';\r\n\t\t\r\n\t\t$this->load->library('upload', $config);\r\n\t\t$this->upload->initialize($config);\r\n\t\tif (isset($_FILES['bank_signature']) && !empty($_FILES['bank_signature']['name'])){\r\n\t\t\tif ($this->upload->do_upload('bank_signature')){\r\n\t\t\t\t// set a $_POST value for 'image' that we can use later\r\n\t\t\t\t$upload_data = $this->upload->data();\r\n\t\t\t\t$_POST['old_signature'] = $upload_data['file_name'];\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\t// possibly do some clean up ... then throw an error\r\n\t\t\t\t$this->form_validation->set_message('handle_upload_signature', $this->upload->display_errors());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} \r\n\t}" ]
[ "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.534493", "0.531162", "0.5216928", "0.5199199", "0.5195352", "0.51665366", "0.51406056", "0.51406056", "0.51405257", "0.51340765", "0.51340765", "0.5132565", "0.5100436", "0.51000494", "0.51000494", "0.5025364", "0.5025364", "0.49712926", "0.49640822", "0.49470383", "0.49452344", "0.4933996", "0.49317902", "0.4931467", "0.4905375", "0.4888502", "0.48729616", "0.48729616", "0.48653796", "0.48483092", "0.4838007", "0.48352388", "0.48152316", "0.48017073", "0.47648346", "0.47604945", "0.4739857", "0.4738806", "0.47246704", "0.47168308", "0.4715211", "0.4692744", "0.468839", "0.46659815", "0.46618617", "0.4661348", "0.46331754", "0.46330628", "0.4624293", "0.46190223", "0.4613782", "0.4608701", "0.4608648", "0.45724615", "0.45685616", "0.45635414", "0.45614925", "0.45585594", "0.45487076", "0.45487076", "0.45487076", "0.45487076", "0.45487076", "0.45441467", "0.4541415", "0.4540785", "0.4530809", "0.4519253", "0.4518367" ]
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 }", "protected function setVida() {\n $this->vida = 200;\n }", "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 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 }", "public function setSignature(array $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function setSignatureContentLength(int $signatureContentLength)\n {\n $this->signatureConentLength = $signatureContentLength;\n }", "public function setSignatureContentLength(int $signatureContentLength)\n {\n $this->signatureConentLength = $signatureContentLength;\n }", "public function setEnforceSignatureCheck($val)\n {\n $this->_propDict[\"enforceSignatureCheck\"] = $val;\n return $this;\n }", "public function withSignature($signature);", "public function setSigla(string $sigla)\n {\n $this->sigla = $sigla;\n }", "public function setSignatureFileFromPath($path)\n {\n if (!file_exists($path)) {\n throw new \\Exception(\"The provided signature file was not found\");\n }\n $this->signatureFilePath = $path;\n }", "public function sign()\n {\n }", "public function setSignatures($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Io\\Token\\Proto\\Common\\Security\\Signature::class);\n $this->signatures = $arr;\n\n return $this;\n }", "public function __construct(Signature $signature)\n {\n parent::__construct();\n $this->setChild('signature', $signature);\n }", "public function __construct(Signature $signature)\n {\n parent::__construct();\n $this->setChild('signature', $signature);\n }", "protected function sign()\n {\n trigger_error(\"Not implemented\", E_ERROR);\n }", "public function setSignature(\\BankId\\Merchant\\Library\\Schemas\\ds\\Signature $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function setSignature(\\BankId\\Merchant\\Library\\Schemas\\ds\\Signature $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function editsmsSignature()\n\t{\n\t\n\t\t$this->Checklogin();\n\t\tif (isset($_POST ['btnSubmit']))\n\t\t{\n\t\n\t\t\t$data ['admin_section']='Sign';\n\t\t\t$id=$this->setting_model->editsmsSignature();\n\t\t\tif ($id)\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('success','Signature has been updated successfully.');\n\t\t\t\tredirect('admin/setting/smsSignature');\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('error','Unable to update signature.');\n\t\t\t\tredirect('admin/setting/smsSignature');\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tredirect('admin/setting/smsSignature');\n\t\t}\n\t\n\t}", "public function setSignatureHeader($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature_header = $var;\n\n return $this;\n }", "public function setEnforceSignatureCheck($val)\n {\n $this->_propDict[\"enforceSignatureCheck\"] = boolval($val);\n return $this;\n }", "public function setDefaultsmssign()\n\t\t{\n\t\t\t$this->Checklogin();\n\t\t\t$signId=$this->input->post('signId');\n\t\t\n\t\t\tif(count($signId)>0)\n\t\t\t{\n\t\t\t\t$a=$this->setting_model->setDefaultsmssign($signId);\n\t\t\t\t\t\n\t\t\t\t$this->session->set_flashdata('success','Signature has been set to default successfully');\n\t\t\t\tsetAActivityLogs('Transaction_activity','AAsmssignature_default',\"Signature Default :-\".$signId);\n\t\t\t\techo true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('success','Something Went Wrong.......!');\n\t\t\t\techo true;\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t}", "public static function resetSignature($signature)\n {\n if (class_exists('\\Comotive\\Firewall\\Defender')) {\n $firewall = new \\Comotive\\Firewall\\Defender();\n $firewall->resetIpSignature($signature);\n }\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function loadSignatures(){\n $this->testFieldsSignature = [\n 'mandante' => 'teste',\n 'grupo' => 'xxx',\n ];\n }", "public function setFileVignette(string $fileVignette): self\n {\n $this->fileVignette = $fileVignette;\n\n return $this;\n }", "public function setSignatureAlgorithm($signatureAlgorithm)\n {\n $this->signatureAlgorithm = (int) $signatureAlgorithm;\n }", "private function signature(){\n\t\t\tif($this->get_request_method() != \"POST\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\t\t\t\n\t\t\t$first_name = $this->_request['first_name'];\t\t\n\t\t\t$last_name = $this->_request['last_name'];\t\n\t\t\t$data = $this->_request['data'];\n\t\t\t$current_datetime = new DateTime(); \n\t\t\t$sig_name = strtolower(preg_replace(\"/[\\W\\s+]/\",\"\", $first_name.'_'.$last_name.'_'.$current_datetime->format('Y-m-d_His')));\n\t\t\t$signature = base64_decode(str_replace(\"data:image/png;base64,\",\"\",$data));\n\t\t\t$result=file_put_contents(\"../signatures/\".$sig_name.\".png\",$signature);\t\n\t\t\tif($result){\n\t\t\t\t $this->response($sig_name.'.png', 200);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// If invalid inputs \"Bad Request\" status message and reason\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Signature Failed\");\n\t\t\t\t$this->response($this->json($error), 400);\t\t\t\t\t\t\n\t\t\t}\t\t\n\t\t}", "public function setVolumen( $volumen ) {\n $this->volumen=$volumen;\n $this->enviarVolumen();\n $this->activarPantalla();\n //activar y enviar volumen\n }", "public function _setFirma($Firma)\n {\n $this->Firma = $Firma;\n\n }", "public function setVerificationKey($value) {\n\t\tif(!check($value)) throw new Exception(lang('error_27'));\n\t\tif(!Validator::Number($value)) throw new Exception(lang('error_27'));\n\t\tif(!Validator::UnsignedNumber($value)) throw new Exception(lang('error_27'));\n\t\t\n\t\t$this->_verificationKey = $value;\n\t}", "function setSig() {\n if (sfConfig::get(\"sf_private_key\") !='') {\n \n $hash = md5(rand_str());\n $this -> context ->getLogger()->debug(\"{Theater Token Class} HASH:: \".$hash);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" | MESSAGE:: TOKEN HASH:: \".$hash);\n \n $expires = strtotime(now());\n $this -> context ->getLogger()->debug(\"{Theater Token Class} EXPIRES:: \".$expires);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" | MESSAGE:: TOKEN EXPIRES:: \".$expires);\n \n $code = setUserOrderTicket();\n $this -> seat -> setAudienceHmacKey( $code );\n $this -> seat -> save();\n $this -> context ->getLogger()->debug(\"{Theater Token Class} CODE:: \".$code);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" | MESSAGE:: TOKEN CODE:: \".$code);\n \n /*\n\t\t\t$enc_date = encryptCookie($code, $hash.\"=\".strtotime(now()));\n $this -> context ->getLogger()->debug(\"{Theater Token Class} HMAC_SIG:: \".$enc_date);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" - TOKEN HMAC_SIG:: \".$enc_date);\n \n $this -> token_raw = $hash . \"|\" . strtotime(now()) . \"|\" . $enc_date;\n $this -> context ->getLogger()->debug(\"{Theater Token Class} Set Token:: \".$this -> token_raw);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" - TOKEN RAW:: \".$this -> token_raw);\n \n $this -> token = encryptCookie($code,$this -> token_raw);\n $this -> context ->getLogger()->debug(\"{Theater Token Class} Set Coookie:: \".$this -> token);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" - SET COOKIE:: \".$this -> token);\n */\n \n $this -> setCookieVar( \"csth\", $code, 7 );\n return $this -> token;\n \n }\n \n }", "public function setMarkIdentification($value) {\n\t\tself::$_markIdentification = $value;\n\t}", "protected function assertSignature($value, $is_valid = TRUE) {\n // Must manually set hidden values because ::submitForm only set visible\n // element values and ignores hidden elements.\n // @see \\Drupal\\Tests\\UiHelperTrait::submitForm\n $this->drupalGet('/webform/test_element_signature');\n $field = $this->assertSession()->hiddenFieldExists('signature');\n $field->setValue($value);\n $this->submitForm([], 'Submit');\n if ($is_valid) {\n $this->assertNoRaw('signature contains an invalid signature.');\n }\n else {\n $this->assertRaw('signature contains an invalid signature.');\n }\n }", "public function __construct()\n {\n $this->makeSignature();\n\n parent::__construct();\n }", "public function setKaina($x) {\n $this->kaina = $x; //privati reiksme tai kaina\n }", "public function setSignatureDate(DateTime $signatureDate = null) {\n $this->signatureDate = $signatureDate;\n return $this;\n }", "public function setSignatureDate(DateTime $signatureDate = null) {\n $this->signatureDate = $signatureDate;\n return $this;\n }", "private function setVersion($v){\n\t\t$this->version = $v;\n\t}", "public function setVatility($value)\n {\n return $this->set(self::_VATILITY, $value);\n }", "function handle_upload_signature(){\r\n\t\t$config = array();\r\n\t\t$config['upload_path'] = './assets/image_uploads/signature';\r\n\t\t$config['allowed_types'] = 'gif|jpg|png';\r\n\r\n\t\t$this->load->library('upload', $config);\r\n\t\t$this->upload->initialize($config);\r\n\t\tif (isset($_FILES['signature']) && !empty($_FILES['signature']['name'])){\r\n\t\t\tif ($this->upload->do_upload('signature')){\r\n\t\t\t\t// set a $_POST value for 'image' that we can use later\r\n\t\t\t\t$upload_data = $this->upload->data();\r\n\t\t\t\t$_POST['old_signature'] = $upload_data['file_name'];\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\t// possibly do some clean up ... then throw an error\r\n\t\t\t\t$this->form_validation->set_message('handle_upload_signature', $this->upload->display_errors());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function testSetSignFormJuridique() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignFormJuridique(\"signFormJuridique\");\n $this->assertEquals(\"signFormJuridique\", $obj->getSignFormJuridique());\n }", "public function setVida($valor){\n $this->vida=$valor;\n }", "public function setVatIdNo($vatin);", "public function setSignaturePrenom($signaturePrenom) {\n $this->signaturePrenom = $signaturePrenom;\n return $this;\n }", "function setKeyoption($key_in) : void\n {\n $this->keyoption = $key_in;\n }", "public function setSignatureName($signatureName)\n {\n $this->values['SignatureName'] = $signatureName;\n return $this;\n }", "public function signature()\n {\n return 'Vero: ' . \\Vero\\Version::VERSION;\n }", "public function setVCenter($value) {\n\t}", "public function getSignaturePrenom() {\n return $this->signaturePrenom;\n }", "public function mefSignature() {\r\n\t$encoded_header = base64_encode('{\"alg\": \"HS512\",\"typ\": \"JWT\"}');\r\n\t$iss = 'CISCAR';\r\n\tif(isset($_GET['annuaire']) && $_GET['annuaire'] == 2 )\r\n\t{\r\n\t\t\t$iss = 'GCR';\r\n\t}\r\n\t// base64 encodes the payload json\r\n\t$encoded_payload = base64_encode('{\r\n\t\t\t\"iat\": \"'.time().'\",\r\n\t\t\t\"iss\": \"'.$iss.'\",\r\n\t\t\t\"aud\": \"https://boxstva-client.stva.com\",\r\n\t\t\t\"sub\": \"'.$this->getIndividuID().'\",\r\n\t\t\t\"family_name\": \"'.utf8_encode($this->getNom()).'\",\r\n\t\t\t\"given_name\": \"'.utf8_encode($this->getPrenom()).'\",\r\n\t\t\t\"ordering_party\": \"'.$this->getRolePrinc().'\",\r\n\t\t\t\"entities\": \"'.$this->getRattachements().'\"\r\n\t\t}');\r\n\t\r\n\t// base64 strings are concatenated to one that looks like this\r\n\t$header_payload = $encoded_header . '.' . $encoded_payload;\r\n\t\r\n\t//Setting the secret key environnement de Pre-PROD\r\n\t//\"aud\": \"http://box-gcr-pp.stva.com.s3-website-eu-west-1.amazonaws.com\",\r\n\t//$secret_key = '+XgiH7AFTCCUSbuFyMiqYThoStVW7etx32VRhSAKvCrqZPK2rZ4r1gtXoBlZHEismbALi8KKdmdRd3MnoH/19nfwIOV0+tX8blaUy/cQLxCQmfL8BlWuDutdegs72js2zvGpbS1YxXgjWhd4RjsVPn0HSL7q3EBJBORwAELOpI4GZuqSCn1n/R/veZiq7giAv7Gxi+J1A+EOTXtOzZSiQa/tYvcm6xaPTNPzP9HdgxAeKMN4FV44dG+Q66wD14WYOBAo1IPHKvAdWSS53uwRVAb7HDDfflVLcib851LG7fLC6JXaUmdK0iTEU3qJV32wzlF5phax9t16GdJfmCqAxJDMHx0iIVtZYajZPHnPYzXoHHCSilHmPoPZZkmKjlC12L1m87QKVySqP9K3J9fORW+Tn3QIkIcvl+GA4vqomk7/eVP8NT9MwIOvV9pjMJl+cGIoIYYQZmqQ3+Pa7d1NjV0bx6I9WlJNAKYxC5zFvVzqlx5j/H5Wq91WLOrZZNGaE/kygrLmyCYWQiCNzNbwvEsAgCPUgGy0o9o2itVEL4zwzRWPrNDp4fivhMA87QzbzFkDvX9B6PBb1R/3EFy1uSAk22ovyK/fMmN6GRTNeDQdGRi/U64Ys9mA+UjzBi22gy8ZIgFfcnCfJIinMO5PCh2BJ2AQq3kKxe4AMEQmeno=';\r\n\r\n\t//Setting the secret key environnement de PRODUCTION\r\n\t//\"aud\": \"https://boxstva-client.stva.com\",\r\n\t$secret_key = 'Rn2ZvoU+dTOtpE/BOUEuMaf65G2l7lA1nDJV56hmLcl17Y6F2EPCSIrKRCCVWc/Zda7m5Bp/g9BYUIRVTvgmtlcghGRBtswGFwMjq0Ye4QVtmpa8qZBI0sTHGjnbwTvmqZmf1v2TAcJWsAIJsRcoX0IchGvhaEKUMnLAXAUQT4mBhSdUY7H/ZckUthciFveKtxvmKMfjOLJNqciD8fVapuzQBqSRzFhTifVceLG1EmouRnoE5vg3RERwEhpVqFmt0fo+VCOinAR0nHG5Nq0XWXUTmGGsbOcDljLxz+oLAN28cffMc+6OfxkRX3L5ILId3pHMvV+MJns9FCZSA6+u87s3K31fLARCvVP6aVXXRn+M6CGBLxjQtbGopeQCHBRaliNxGr5LJIAkLFusBeG7jqIpGToxqy+D87tiYrg1zG2iRFTkKtvMJRZxdEkCnwJx4jOmuVboKCdtAqCQNX9e4I6jKp+Gs8edSbbV+17TY422DqV+sOXIxMA6udZ1vWm9eDE25dVVoRfiQXC7U/BLEGkV3ocs5du15nD1+NEODqlrVW+2WceQ1yQcSF4hRsU7Wk1pJ+aMRvFkx6PV028nSLExxTTPkxw07BmmDU5W9E6KbLB1/NFtseSyzgxTacGlFEVxmS+Zq846NLcNTrwQuM15Bub4zAy1N8Qv2NeQs4I=';\r\n\t\r\n\t// Creating the signature, a hash with the s512 algorithm and the secret key. The signature is also base64 encoded.\r\n\t$signature = base64_encode(hash_hmac('sha512', $header_payload, $secret_key, true));\r\n\t//$signature = hash_hmac('sha512', $header_payload, $secret_key, true);\r\n\t\r\n\t// Creating the JWT token by concatenating the signature with the header and payload, that looks like this:\r\n\t$jwt_token = $header_payload . '.' . $signature;\r\n\t\r\n\t//listing the resulted JWT\r\n\t//echo $jwt_token;\r\n\t//print $jwt_token;\r\n\treturn $jwt_token;\r\n\t\r\n\t//$decoded_jwt = explode(\".\",$jwt_token);\r\n\t//$decoded_header = base64_decode($decoded_jwt[0]);\r\n\t//$decoded_payload = base64_decode($decoded_jwt[1]);\r\n\t//$decoded_signature = base64_decode($decoded_jwt[2]);\r\n\t//echo $decoded_signature;\r\n\t\r\n\t//die();\r\n\r\n\r\n//\t\t$data = 'my data';\r\n\t\t\r\n//\t\t//Crée une nouvelle clé privée et publique\r\n//\t\t$new_key_pair = openssl_pkey_new(array(\r\n//\t\t\t\t\"private_key_bits\" => 1024,\r\n//\t\t\t\t\"private_key_type\" => OPENSSL_KEYTYPE_RSA,\r\n//\t\t));\r\n//\t\topenssl_pkey_export($new_key_pair, $private_key_pem);\r\n\t\t\r\n//\t\t$details = openssl_pkey_get_details($new_key_pair);\r\n//\t\t$public_key_pem = $details['key'];\r\n\t\t\r\n//\t\t//Création de la signature\r\n//\t\topenssl_sign($data, $signature, $private_key_pem, OPENSSL_ALGO_SHA1);\r\n\t\t\r\n//\t\t//Sauvegarde pour utilisation ultérieur\r\n//\t\tfile_put_contents('private_key.pem', $private_key_pem);\r\n//\t\tfile_put_contents('public_key.pem', $public_key_pem);\r\n//\t\tfile_put_contents('signature.dat', $signature);\r\n//\t\tprint $private_key_pem;\r\n//\t\t//Vérification de la signature\r\n//\t\t$r = openssl_verify($data, $signature, $public_key_pem, \"sha1WithRSAEncryption\");\r\n//\t\tvar_dump($r);\r\n\t}", "public function setProtect($value) {\n\t}", "public function setSigner(\\Diadoc\\Api\\Proto\\Invoicing\\Signer $value=null)\n {\n return $this->set(self::SIGNER, $value);\n }", "public function setLicense(SetAlbumLicenseRequest $request): void\n\t{\n\t\t$request->album()->license = $request->license();\n\t\t$request->album()->save();\n\t}", "function handle_upload_signature(){\r\n\t\t$config = array();\r\n\t\t$config['upload_path'] = './assets/image_uploads/signature';\r\n\t\t$config['allowed_types'] = 'gif|jpg|png';\r\n\t\t\r\n\t\t$this->load->library('upload', $config);\r\n\t\t$this->upload->initialize($config);\r\n\t\tif (isset($_FILES['bank_signature']) && !empty($_FILES['bank_signature']['name'])){\r\n\t\t\tif ($this->upload->do_upload('bank_signature')){\r\n\t\t\t\t// set a $_POST value for 'image' that we can use later\r\n\t\t\t\t$upload_data = $this->upload->data();\r\n\t\t\t\t$_POST['old_signature'] = $upload_data['file_name'];\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\t// possibly do some clean up ... then throw an error\r\n\t\t\t\t$this->form_validation->set_message('handle_upload_signature', $this->upload->display_errors());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} \r\n\t}", "public function setVerifiedPublisherId(?string $value): void {\n $this->getBackingStore()->set('verifiedPublisherId', $value);\n }", "public function setDataVencimento(string $dataVencimento)\n {\n $this->dataVencimento = $dataVencimento;\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 smsSignature()\n\t{\n\t\n\t\t$this->Checklogin();\n\t\tsetAActivityLogs('Transaction_activity','AAsmssignature_view');\n\t\t$data ['resultSignature']=$this->setting_model->getAllsignature();\n\t\t$data ['include']='admin/setting/smssignature';\n\t\t$data ['admin_section']='manage_signature';\n\t\t$this->load->view('backend/container',$data);\n\t\n\t}", "public function setSignatureKeyId($var)\n {\n GPBUtil::checkString($var, True);\n $this->signature_key_id = $var;\n\n return $this;\n }", "public function getSignature();", "public function setVersion($value){\n $this->version = $value;\n }", "public function setVerifyForm($tf)\n {\n $this->_verifyForm = $tf;\n }", "public function setToken()\n\t{\n\t\t $args = phpSmug::processArgs( func_get_args() );\n\t\t $this->oauth_token = $args['id'];\n\t\t $this->oauth_token_secret = $args['Secret'];\n\t}", "public function setTglSkPemakai($v)\n {\n $dt = PropelDateTime::newInstance($v, null, 'DateTime');\n if ($this->tgl_sk_pemakai !== null || $dt !== null) {\n $currentDateAsString = ($this->tgl_sk_pemakai !== null && $tmpDt = new DateTime($this->tgl_sk_pemakai)) ? $tmpDt->format('Y-m-d') : null;\n $newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n if ($currentDateAsString !== $newDateAsString) {\n $this->tgl_sk_pemakai = $newDateAsString;\n $this->modifiedColumns[] = BangunanPeer::TGL_SK_PEMAKAI;\n }\n } // if either are not null\n\n\n return $this;\n }", "public function setVoti(float $voto){\n if($voto>2 && $voto <= 10 ){\n \n $this->voti[] = $voto;\n \n } else {\n\n $messaggio = new Exception(\"Il valore $voto è errato\");\n throw $messaggio;\n\n }\n }", "public function setVersion($version) {}", "public function setVersion($version) {}", "public function setFingerprint(?string $value): void {\n $this->getBackingStore()->set('fingerprint', $value);\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.53282386", "0.52832663", "0.52727705", "0.52576214", "0.5237365", "0.5237365", "0.5227191", "0.5203342", "0.517597", "0.51537037", "0.51320004", "0.51093704", "0.5084263", "0.5084263", "0.5082899", "0.5057923", "0.5057923", "0.50218385", "0.50212425", "0.50046605", "0.4996753", "0.4946668", "0.49276927", "0.49175176", "0.49107027", "0.4845216", "0.48422796", "0.48399472", "0.48191938", "0.48038375", "0.47987643", "0.47956213", "0.4751583", "0.474884", "0.47441056", "0.47330165", "0.47330165", "0.47197348", "0.47147682", "0.4712437", "0.4682018", "0.46734753", "0.46684104", "0.46359596", "0.4631889", "0.46317255", "0.4627113", "0.46185264", "0.46148983", "0.46123168", "0.4604996", "0.46043304", "0.4604273", "0.45925722", "0.45873398", "0.4576363", "0.45686024", "0.45686024", "0.4563566", "0.4562537", "0.4542153", "0.453957", "0.4536527", "0.45320925", "0.45297846", "0.45242688", "0.4519376", "0.4519376", "0.45162058" ]
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 }", "function runkit_constant_add($constname, $value)\n{\n}", "public function database_set($data)\n\t{\n\t\tparent::database_set($data);\n\t\tregistry::set($this->get_env(), 'const', $this['key']->get(), $this['title']);\n\t}", "protected function _initInternVariables ()\n {\n parent::_initInternVariables();\n \n $this->levels = array ();\n $this->sep = $this->_element->getSeparator();\n $this->display_tag = $this->_element->getTagdisplay();\n $this->tag_label = $this->_element->getTaglabel();\n }", "public function setMemberDefaults(){\n parent::setMemberDefaults();\n \n $this->id = $this->id ? $this->id : UniqId::get(\"rbn-\");\n if (!$this->collarTriangleWidth) {\n $this->collarTriangleWidth = StyleUtil::getHalf($this->collarWidth);\n }\n if (!$this->collarColor) {\n if ($this->barColor){\n $this->collarColor = $this->barColor;\n }\n else if( $this->barGradient ){\n $this->collarColor = GradientInfo::getLastColor($this->barGradient);\n }\n }\n }", "private function __setSlovak() {\n\n\t\t\t// Set Slovak date and time settings\n\t\t\tSymphony::Configuration()->set('date_format', 'j.n.Y', 'region');\n\t\t\tSymphony::Configuration()->set('time_format', 'G:i', 'region');\n\t\t\tSymphony::Configuration()->set('datetime_separator', ', ', 'region');\n\t\t\tSymphony::Configuration()->write();\n\t\t}", "abstract public function processConstant ($const);", "abstract public function set();", "public function setSubClasses(array $subClasses): void;", "private function setConfig(string $suffix) : void {\n\n // Attributes of this class and their corresponding env constants\n $attributes = [\n [ \"name\" => \"name\", \"envConstant\" => \"AMAVIS_SERVER_$suffix\" ],\n [ \"name\" => \"ip\", \"envConstant\" => \"AMAVIS_SERVER_IP_$suffix\" ],\n [ \"name\" => \"sshPort\", \"envConstant\" => \"AMAVIS_SERVER_SSH_PORT_$suffix\" ],\n [ \"name\" => \"sshUser\", \"envConstant\" => \"AMAVIS_SERVER_SSH_USERNAME_$suffix\" ],\n [ \"name\" => \"sshPassword\", \"envConstant\" => \"AMAVIS_SERVER_SSH_PASSWORD_$suffix\" ],\n [ \"name\" => \"isolationPath\", \"envConstant\" => \"AMAVIS_SERVER_ISOLATION_PATH_$suffix\" ],\n [ \"name\" => \"email\", \"envConstant\" => \"AMAVIS_SERVER_EMAIL_$suffix\" ],\n [ \"name\" => \"emailRepresentationType\", \"envConstant\" => \"AMAVIS_SERVER_EMAIL_REPRESENTATION_$suffix\" ]\n ];\n\n foreach ($attributes as $attribute) {\n\n // Set the env value on the attribute\n $this->{$attribute[\"name\"]} = env($attribute[\"envConstant\"]);\n\n // Throw exception if at least one attribute not set\n if (strlen($this->{$attribute[\"name\"]}) <= 0) {\n $envConstant = $attribute[\"envConstant\"];\n throw new ExtendedException(\"Env constant '$envConstant' returned an empty value.\");\n }\n }\n }", "public function setC($x) { $this->c = $x; }", "public function wpl_toolskit_define_constants() {\n\n\t\tdefine( 'WPL_TOOLSKIT_NAME', \"Medical ToolsKit\" );\n\n\t\tdefine( 'WPL_TOOLSKIT_VERSION', \"1.0.0\" );\n\n\t\tdefine( 'WPL_TOOLSKIT_SLUG', \"wpl_toolskit_\" );\n\n\t\tdefine( 'WPL_TOOLSKIT_SLUG_SHORT', \"wpl_\" );\n\t\t\n\t\t/* Set constant URI */\n\t\tdefine( 'WPL_TOOLSKIT_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );\n\n\t\t/* Set constant path to the plugin directory. */\n\t\tdefine( 'WPL_TOOLSKIT_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );\n\n\t\t// Call custom post types\n\t\tdefine( 'WPL_TOOLSKIT_DOCTOR', true) ;\n\t\tdefine( 'WPL_TOOLSKIT_DEPARTMENTS', true );\n\t\tdefine( 'WPL_TOOLSKIT_TESTIMONIAL', true );\n\t\tdefine( 'WPL_TOOLSKIT_SLIDER', true );\n\t\tdefine( 'WPL_TOOLSKIT_SERVICES', true );\n\t}", "public function setBoundaries()\n {\n }", "public function test_constants($constant, $value)\n {\n }", "private function consts()\n\t{\n\t\tif (!defined('WP_PARSI_ROOT'))\n\t\t\tdefine('WP_PARSI_ROOT', __FILE__);\n\n\t\tif (!defined('WP_PARSI_DIR'))\n\t\t\tdefine('WP_PARSI_DIR', plugin_dir_path(WP_PARSI_ROOT));\n\n\t\tif (!defined('WP_PARSI_URL'))\n\t\t\tdefine('WP_PARSI_URL', plugin_dir_url(WP_PARSI_ROOT));\n\n\t\tif (!defined('WP_PARSI_VER'))\n\t\t\tdefine('WP_PARSI_VER', '2.2');\n\t}", "function runkit_constant_redefine(string $constname, $value, int $newVisibility = null) : bool {\n}", "function wpdev_make_constants() {\n \n define(\"BASE_PATH\",__DIR__);\n define(\"URL_SCHEME\",$_SERVER['REQUEST_SCHEME']);\n define(\"BASE_URL\",URL_SCHEME.'://'.$_SERVER['SERVER_NAME'].'/'.basename(BASE_PATH));\n define(\"ADMIN_URL\",BASE_URL.\"/admin\");\n define(\"ADMIN_PATH\",BASE_PATH.\"/admin\");\n \n }", "public function constants() {\n\n\t\t\t/**\n\t\t\t * Set the version number of the plugin.\n\t\t\t *\n\t\t\t * @since 1.0.0\n\t\t\t */\n\t\t\tdefine( 'CHERRY_SITE_SHORTCODES_VERSION', '1.0.0' );\n\n\t\t\t/**\n\t\t\t * Set constant path to the plugin directory.\n\t\t\t *\n\t\t\t * @since 1.0.0\n\t\t\t */\n\t\t\tdefine( 'CHERRY_SITE_SHORTCODES_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );\n\n\t\t\t/**\n\t\t\t * Set constant path to the plugin URI.\n\t\t\t *\n\t\t\t * @since 1.0.0\n\t\t\t */\n\t\t\tdefine( 'CHERRY_SITE_SHORTCODES_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );\n\t\t}", "public function setVariables()\n \t{\t\n \t\tif (isset($this->params->plugin)) {\n \t\t\t$this->setPlPath(App::pluginPath(Inflector::humanize($this->params->plugin)));\n \t\t}\n \t\t$this->setController($this->params->controller);\n \t\t$this->setAction($this->params->action);\n \t\t$this->setConstant(Configure::read('App'));\n \t\t\n \t}", "final protected static function initializeMembers()\n {\n try {\n $reflector = new ReflectionClass(static::CONSTANCE_CLASS);\n } catch (ReflectionException $e) {\n throw new Exception\\UndefinedClassException(\n static::CONSTANCE_CLASS,\n $e\n );\n }\n\n if (null === static::CONSTANCE_PATTERN) {\n foreach ($reflector->getConstants() as $key => $value) {\n new static($key, $value);\n }\n } else {\n foreach ($reflector->getConstants() as $key => $value) {\n if (preg_match(static::CONSTANCE_PATTERN, $key)) {\n new static($key, $value);\n }\n }\n }\n }", "public function constants() {\n\n /* Sets the framework version number. */\n define( 'DF_VERSION', '2.2.0' );\n\n /* Sets the path to the parent theme directory. */\n define( 'THEME_DIR', get_template_directory() );\n\n /* Sets the path to the parent theme directory URI. */\n define( 'THEME_URI', get_template_directory_uri() );\n\n /* Sets the path to the child theme directory. */\n define( 'CHILD_THEME_DIR', get_stylesheet_directory());\n\n /* Sets the path to the child theme directory URI. */\n define( 'CHILD_THEME_URI', get_stylesheet_directory_uri() );\n\n /* Sets the path to the core framework directory. */\n define( 'DF_CORE_DIR', trailingslashit( trailingslashit( get_template_directory() ) . 'dahz' ) );\n\n /* Sets the path to the core framework directory URI. */\n define( 'DF_CORE_URI', trailingslashit( trailingslashit( get_template_directory_uri() ) . 'dahz' ) );\n\n define( 'DF_CUSTOMIZER_CONTROL_DIR', trailingslashit( trailingslashit( DF_CORE_DIR ) . 'customizer' ));\n\n /* Sets the path to the core framework extensions directory. */\n define( 'DF_EXTENSION_DIR', trailingslashit( trailingslashit( DF_CORE_DIR ) . 'extensions' ));\n\n /* Sets the path to the core framework functions directory. */\n define( 'DF_FUNCTION_DIR', trailingslashit( trailingslashit( DF_CORE_DIR ) . 'functions' ));\n\n /* Sets the path to the core framework CSS directory URI. */\n define( 'DF_CORE_CSS_DIR', trailingslashit( trailingslashit( DF_CORE_URI ) . 'css' ));\n\n /* Sets the path to the core framework JavaScript directory URI. */\n define( 'DF_CORE_JS_DIR', trailingslashit( trailingslashit( DF_CORE_URI ) . 'js' ));\n\n /* Sets the path to the core framework images directory URI. */\n define( 'DF_CORE_IMG_DIR', trailingslashit( trailingslashit( DF_CORE_URI ) . 'images' ));\n\n }", "private function setQuantumVars() {\n \n if (!empty($_REQUEST['controller'])) {\n \n $this->controller = $_REQUEST['controller'];\n \n };\n \n if (!empty($_REQUEST['task'])) {\n \n $this->task = $_REQUEST['task'];\n \n }\n \n if (!empty($_REQUEST['object_id'])) {\n \n $this->object_id = $_REQUEST['object_id'];\n \n }\n \n \n }", "public static function init()\n {\n self::$FOO = new self('FOO', 10);\n self::$BAR = new self('BAR', 20);\n }", "function wp_initial_constants()\n {\n }", "function __construct () {\n\n $this -> ruedas = 8;\n $this -> color = \"gris\";\n $this -> motor = 1600;\n\n }", "protected function setMacros()\n {\n Meta::mixin(new ValidationMeta);\n BaseModel::mixin(new ValidationModel);\n BaseField::mixin(new ValidationField);\n }", "public function backendSetUC() {}", "protected function init()\n\t{\n\t\t$this->upVector = array();\n\t\t$this->downVector = array();\n\t\t$this->modifiedA = array();\n\t\t$this->modifiedB = array();\n\t}", "public static function getSubcatValues()\n\t{\n\t}", "public function __construct()\n {\n // get global configuration\n $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['roadworks']);\n if (is_array($extConf) && count($extConf)) {\n // call setter method foreach configuration entry\n foreach($extConf as $key => $value) {\n $methodName = 'set' . ucfirst($key);\n if (method_exists($this, $methodName)) {\n $this->$methodName($value);\n }\n }\n }\n }", "protected function _define_constants() {\r\n\t\t\tdefine( 'LP_ADDON_PAYIR_PAYMENT_PATH', dirname( LP_ADDON_PAYIR_PAYMENT_FILE ) );\r\n\t\t\tdefine( 'LP_ADDON_PAYIR_PAYMENT_INC', LP_ADDON_PAYIR_PAYMENT_PATH . '/inc/' );\r\n\t\t\tdefine( 'LP_ADDON_PAYIR_PAYMENT_URL', plugin_dir_url( LP_ADDON_PAYIR_PAYMENT_FILE ) );\r\n\t\t\tdefine( 'LP_ADDON_PAYIR_PAYMENT_TEMPLATE', LP_ADDON_PAYIR_PAYMENT_PATH . '/templates/' );\r\n\t\t}", "function setSuperada($bsuperada = 'f')\n {\n $this->bsuperada = $bsuperada;\n }", "public function setGeneral() // Attribuer une valeur générale à un attaquant\n {\n $this->_general = round($this->attaqueCalcul());\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 function setSwordlessCurtains() {\n $this->setValue($this::ROOM_DATA + 0x61, 0x80);\n $this->setValue($this::ROOM_DATA + 0x93, 0x80);\n }", "public static function setters();", "public function __construct() {\n parent::__construct();\n $this->setOdataType('#microsoft.graph.deviceManagementConfigurationWindowsSettingApplicability');\n }", "public function setup_constants() {\n\t\tself::$DIR = plugin_dir_path( __FILE__ );\n\t\tself::$URL = plugins_url( '/', __FILE__ );\n\t\tself::$FILE = __FILE__;\n\t}", "static public function setRelationCoef() {\n $link_db = Piwidict::getDatabaseConnection();\n \n $rk = array();\n $query = \"SELECT id, name FROM relation_type\";\n $res = $link_db -> query_e($query,\"Query failed in file <b>\".__FILE__.\"</b>, string <b>\".__LINE__.\"</b>\");\n\n while ($row = $res->fetch_object()){\n// if ($row->name == 'synonyms') \n if ($row->name != 'synonyms') \n\t $rk[$row->id] = 1;\n\t else \t\n\t $rk[$row->id] = 0.5;\n } \n return $rk;\n }", "function __construct() {\n parent::__construct();\n \n //INIT CONSTANTS\n $this->CONT_ROOT=$this->LIB_CONT_ROOT.'lessons/';\n }", "protected function setLimits()\n {\n if (!isset($this->settings->cpuLoad)) {\n $this->settings->cpuLoad = \"low\";\n }\n\n $memoryLimit = self::MAX_MEMORY_RATIO;\n $timeLimit = self::EXECUTION_TIME_RATIO;\n\n switch ($this->settings->cpuLoad) {\n case \"medium\":\n $timeLimit = $timeLimit / 2;\n break;\n case \"low\":\n $timeLimit = $timeLimit / 4;\n break;\n\n case \"fast\":\n default:\n break;\n }\n\n $this->memoryLimit = $this->maxMemoryLimit * $memoryLimit;\n $this->executionLimit = $this->maxExecutionTime * $timeLimit;\n }", "public function setCoefficients(BigInteger $a, BigInteger $b): void\n {\n if (!isset($this->factory)) {\n throw new RuntimeException('setModulo needs to be called before this method');\n }\n $this->a = $this->factory->newInteger($a);\n $this->b = $this->factory->newInteger($b);\n }", "abstract protected function define_my_settings();", "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 wpf_initial_constants() {\t\n\t// Sets the File path to the current parent theme's directory.\n\tdefine( 'PARENT_THEME_DIR', TEMPLATEPATH );\n\n\t// Sets the URI path to the current parent theme's directory.\n\tdefine( 'PARENT_THEME_URI', get_template_directory_uri() );\n\n\t// Sets the File path to the current parent theme's directory.\n\tdefine( 'CHILD_THEME_DIR', STYLESHEETPATH );\n\n\t// Sets the URI path to the current child theme's directory.\n\tdefine( 'CHILD_THEME_URI', get_stylesheet_directory_uri() );\n\n\t// Sets the file path to WP Framework\n\tdefine( 'WPF_DIR', PARENT_THEME_DIR . '/framework' );\n\n\t// Sets the URI path to WP Framework\n\tdefine( 'WPF_URI', PARENT_THEME_URI . '/framework' );\n\n\t// Sets the file path to extensions\n\tdefine( 'WPF_EXT_DIR', WPF_DIR . '/extensions' );\n\n\t// Sets the URI path to extensions\n\tdefine( 'WPF_EXT_URI', WPF_URI . '/extensions' );\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 __construct()\n {\n $this->name = \"Альбион\";\n $this->description = \"Центральная галактика, по слухам прародина предтеч.\";\n $this->color_test = \"#80787E\";\n $this->arraySistems = \n [\n [1,1,1],\n [1,1,1],\n [1,1,1]\n ];\n\n parent::__construct(); \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 }", "protected function setConcretes()\n {\n foreach ($this->concretes as $concrete) {\n\n $concrete->method = get_class_methods($concrete->qns);\n\n if (count($concrete->constructor_parameters) > 0) {\n foreach ($concrete->constructor_parameters as $parameter) {\n $this->setConcreteConstructorValues($parameter);\n }\n }\n }\n\n return $this;\n }", "public function setSubfolders($param) {\n\t\t$this->subfolders = $param;\n\t}", "public function init(): void\n {\n if (is_array($this->levels)) {\n $this->levelValues = $this->levels;\n return;\n }\n\n // Levels like 'notice,error'\n if (is_string($this->levels)) {\n $levelNames = explode(',', $this->levels);\n $this->levelValues = SwoftLogger::getLevelByNames($levelNames);\n }\n }", "public static function initConstants()\n\t{\n\n\t\tself::$columns = [\n\t\t\t'machineuuid' => [\n\t\t\t\t'op' => self::OP_NOMINAL,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'column' => true,\n\t\t\t],\n\t\t\t'macaddr' => [\n\t\t\t\t'op' => self::OP_NOMINAL,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'column' => true,\n\t\t\t],\n\t\t\t'firstseen' => [\n\t\t\t\t'op' => self::OP_ORDINAL,\n\t\t\t\t'type' => 'date',\n\t\t\t\t'column' => true,\n\t\t\t],\n\t\t\t'lastseen' => [\n\t\t\t\t'op' => self::OP_ORDINAL,\n\t\t\t\t'type' => 'date',\n\t\t\t\t'column' => true,\n\t\t\t],\n\t\t\t'logintime' => [\n\t\t\t\t'op' => self::OP_ORDINAL,\n\t\t\t\t'type' => 'date',\n\t\t\t\t'column' => true,\n\t\t\t],\n\t\t\t'realcores' => [\n\t\t\t\t'op' => self::OP_ORDINAL,\n\t\t\t\t'type' => 'int',\n\t\t\t\t'column' => true,\n\t\t\t],\n\t\t\t'systemmodel' => [\n\t\t\t\t'op' => self::OP_STRCMP,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'column' => true,\n\t\t\t],\n\t\t\t'cpumodel' => [\n\t\t\t\t'op' => self::OP_STRCMP,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'column' => true,\n\t\t\t],\n\t\t\t'hddgb' => [\n\t\t\t\t'op' => self::OP_ORDINAL,\n\t\t\t\t'type' => 'int',\n\t\t\t\t'column' => false,\n\t\t\t\t'map_sort' => 'id44mb'\n\t\t\t],\n\t\t\t'gbram' => [\n\t\t\t\t'op' => self::OP_ORDINAL,\n\t\t\t\t'type' => 'int',\n\t\t\t\t'map_sort' => 'mbram',\n\t\t\t\t'column' => false,\n\t\t\t],\n\t\t\t'kvmstate' => [\n\t\t\t\t'op' => self::OP_NOMINAL,\n\t\t\t\t'type' => 'enum',\n\t\t\t\t'column' => true,\n\t\t\t\t'values' => ['ENABLED', 'DISABLED', 'UNSUPPORTED']\n\t\t\t],\n\t\t\t'badsectors' => [\n\t\t\t\t'op' => self::OP_ORDINAL,\n\t\t\t\t'type' => 'int',\n\t\t\t\t'column' => true\n\t\t\t],\n\t\t\t'clientip' => [\n\t\t\t\t'op' => self::OP_NOMINAL,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'column' => true\n\t\t\t],\n\t\t\t'hostname' => [\n\t\t\t\t'op' => self::OP_STRCMP,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'column' => true\n\t\t\t],\n\t\t\t'subnet' => [\n\t\t\t\t'op' => self::OP_NOMINAL,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'column' => false\n\t\t\t],\n\t\t\t'currentuser' => [\n\t\t\t\t'op' => self::OP_NOMINAL,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'column' => true\n\t\t\t],\n\t\t\t'state' => [\n\t\t\t\t'op' => self::OP_NOMINAL,\n\t\t\t\t'type' => 'enum',\n\t\t\t\t'column' => true,\n\t\t\t\t'values' => ['occupied', 'on', 'off', 'idle', 'standby']\n\t\t\t],\n\t\t\t'live_swapfree' => [\n\t\t\t\t'op' => self::OP_ORDINAL,\n\t\t\t\t'type' => 'int',\n\t\t\t\t'column' => true\n\t\t\t],\n\t\t\t'live_memfree' => [\n\t\t\t\t'op' => self::OP_ORDINAL,\n\t\t\t\t'type' => 'int',\n\t\t\t\t'column' => true\n\t\t\t],\n\t\t\t'live_tmpfree' => [\n\t\t\t\t'op' => self::OP_ORDINAL,\n\t\t\t\t'type' => 'int',\n\t\t\t\t'column' => true\n\t\t\t],\n\t\t];\n\t\tif (Module::isAvailable('locations')) {\n\t\t\tself::$columns['location'] = [\n\t\t\t\t'op' => self::OP_STRCMP,\n\t\t\t\t'type' => 'enum',\n\t\t\t\t'column' => false,\n\t\t\t\t'values' => array_keys(Location::getLocationsAssoc()),\n\t\t\t];\n\t\t}\n\t}", "public static function definePathConstants() {\n if ( !defined('EFC_ROOT_PATH') ) {\n if (strpos(__FILE__, 'webapp/_lib' ) !== false) { // root is up 3 directories\n define('EFC_ROOT_PATH', str_replace(\"\\\\\",'/', dirname(dirname(dirname(__FILE__)))) .'/');\n } else { // root is up 2 directories\n define('EFC_ROOT_PATH', str_replace(\"\\\\\",'/', dirname(dirname(__FILE__))) .'/');\n }\n }\n if (!defined('EFC_WEBAPP_PATH') ) {\n if (file_exists(EFC_ROOT_PATH . 'webapp')) {\n define('EFC_WEBAPP_PATH', EFC_ROOT_PATH . 'webapp/');\n } else {\n define('EFC_WEBAPP_PATH', EFC_ROOT_PATH);\n }\n }\n }", "public function add(array $constants);", "private static function setup(){\r\n\t\tif(get_option(\"gf_constantcontact_version\") != self::$version)\r\n GFConstantContactData::update_table();\r\n\r\n update_option(\"gf_constantcontact_version\", self::$version);\r\n }", "public function __construct()\n {\n foreach ($this as $key => $property)\n if (is_array($property) && isset($property['path']))\n $this->{$key}['path'] = VPATH . $property['path'] . EXT;\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 }", "public function setCore($core) {\n $this->core = $core;\n }", "private function reduceSettings() {\r\n foreach ($this->settings_array as $setting => $setto) {\r\n $this->settings_array[$setting] = $this->$setting;\r\n }\r\n }", "public function __construct()\n {\n bcscale(0);\n }", "private function define_constants() {\n\t\tdefine( 'WPRMPRC_POST_TYPE', 'wprm_collection' );\n\t\tdefine( 'WPRMPRC_DIR', plugin_dir_path( dirname( __FILE__ ) ) );\n\t\tdefine( 'WPRMPRC_URL', plugin_dir_url( dirname( __FILE__ ) ) );\n\t}", "public function define_constants() {\n define( 'JWP_PE_VERSION', self::version );\n define( 'JWP_PE_FILE', __FILE__ );\n define( 'JWP_PE_PATH', __DIR__ );\n define( 'JWP_PE_URL', plugins_url( '', JWP_PE_FILE ) );\n define( 'JWP_PE_ASSETS', JWP_PE_URL . '/assets' );\n }", "public function setFixed() {\n }", "public function __construct()\n {\n parent::__construct();\n \n $this->m_define();\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\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.48852095", "0.48849708", "0.48547375", "0.4848923", "0.4840672", "0.48194182", "0.47939947", "0.47877964", "0.4771057", "0.47616827", "0.4703455", "0.46957356", "0.46939233", "0.46721563", "0.4666319", "0.46547782", "0.46443883", "0.46436903", "0.4642206", "0.46314183", "0.46246123", "0.46232948", "0.4621948", "0.46107027", "0.45971048", "0.4587288", "0.45707497", "0.45603", "0.45550492", "0.45493448", "0.45395872", "0.4537423", "0.45372579", "0.45320764", "0.453015", "0.4528488", "0.45272875", "0.45244244", "0.45107332", "0.45060578", "0.45009443", "0.44930017", "0.44851902", "0.44835663", "0.4480817", "0.4473823", "0.44736275", "0.4473065", "0.44721076", "0.44665018", "0.4461796", "0.4459054", "0.44482115", "0.44447833", "0.44360903", "0.44320673", "0.4430902", "0.44196653", "0.44194734", "0.4414221", "0.44100997", "0.44096947", "0.44094646", "0.4407982", "0.4407982", "0.4407982", "0.4407982", "0.4407982", "0.4407982", "0.4407982" ]
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 }", "public function testSetMtIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnLegale(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnLegale());\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 __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function testSetYaEuSaisieManuelle() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setYaEuSaisieManuelle(true);\n $this->assertEquals(true, $obj->getYaEuSaisieManuelle());\n }", "public function getMontant() {\n return $this->montant;\n }", "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 setMother($mother)\n {\n $this->mother = $mother;\n }", "public function testSetMtIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnAutre(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnAutre());\n }", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "public function setChild($child)\n {\n $this->child = $child;\n }", "public function testSetSignAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignAutre(\"signAutre\");\n $this->assertEquals(\"signAutre\", $obj->getSignAutre());\n }", "public function testSetVrpMulticarte() {\n\n $obj = new Employes();\n\n $obj->setVrpMulticarte(true);\n $this->assertEquals(true, $obj->getVrpMulticarte());\n }", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "public function setSubtotal($amount);", "public function testSetIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnAutre(true);\n $this->assertEquals(true, $obj->getIndemnAutre());\n }", "public function getMontant()\n {\n return $this->montant;\n }", "public function getMontant()\n {\n return $this->montant;\n }", "public function testSetNumeroAvenant() {\n\n $obj = new PointBonTrav();\n\n $obj->setNumeroAvenant(10);\n $this->assertEquals(10, $obj->getNumeroAvenant());\n }", "public function reprova()\n {\n $this -> estadoAtual -> reprova($this);\n }", "public function setSuperEffectiveAttribute($value)\n {\n $this->attributes['super_effective'] = $this->makeCollection($value);\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 setPromotion($first,$second)\n {\n $this->promotion->setPromotion($first,$second);\n //product Id for identify products\n $this->promotion->setProductId($this->id);\n }", "public function setSubquery()\n {\n $this->isSubQuery = true;\n return $this;\n }", "public function testSetSignPrenom() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignPrenom(\"signPrenom\");\n $this->assertEquals(\"signPrenom\", $obj->getSignPrenom());\n }", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "public function testSetMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setMotifRupture(\"motifRupture\");\n $this->assertEquals(\"motifRupture\", $obj->getMotifRupture());\n }", "public function setMain($main);", "public function set_id_subclase($value = \"\"){ \n $this->_id_subclase= \\helpers\\Validator::valInt('f_id_subclase',$value,TRUE);\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 testSetTauxCommission() {\n\n $obj = new Collaborateurs();\n\n $obj->setTauxCommission(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxCommission());\n }", "public function setSubMenu($subMenu){\n $this->subMenu = $subMenu;\n return $this;\n }", "public function testSetAnnulationChantier() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationChantier(true);\n $this->assertEquals(true, $obj->getAnnulationChantier());\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 testSetTauxPensionCivile() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionCivile(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionCivile());\n }", "public function setMontantHt($montantHt) {\n $this->montantHt = $montantHt;\n return $this;\n }", "public function setMontantTtc($montantTtc) {\n $this->montantTtc = $montantTtc;\n return $this;\n }", "public function setSubtotal($amount){\n return $this->setData(self::SUBTOTAL, $amount);\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function setKodeSubSatker($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->kode_sub_satker !== $v) {\n $this->kode_sub_satker = $v;\n $this->modifiedColumns[] = BangunanPeer::KODE_SUB_SATKER;\n }\n\n\n return $this;\n }", "function setIntestat($intestat)\n {\n $this->intestat = $intestat;\n }", "public function testSetSignMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignMotifRupture(\"signMotifRupture\");\n $this->assertEquals(\"signMotifRupture\", $obj->getSignMotifRupture());\n }", "public function scale($s_)\n\t{\n\t\t$this->setX( $this->x*$s_ );\n\t\t$this->setY( $this->y*$s_ );\n\t}", "public function setMataPelajaran($mata_pelajaran);", "public function setSuper($user, $super = true);", "public function testSetStatutParticulier() {\n\n $obj = new AttestationCacm();\n\n $obj->setStatutParticulier(10);\n $this->assertEquals(10, $obj->getStatutParticulier());\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 }", "public function setMontant_ht(float $montant_ht)\n {\n $this->montant_ht = $montant_ht;\n\n return $this;\n }", "public function testSetValideMob() {\n\n $obj = new PointBonTrav();\n\n $obj->setValideMob(true);\n $this->assertEquals(true, $obj->getValideMob());\n }", "public function testSetAvenantSigne() {\n\n $obj = new PointBonTrav();\n\n $obj->setAvenantSigne(true);\n $this->assertEquals(true, $obj->getAvenantSigne());\n }", "public function subdivision()\n {\n $city = $this->city;\n\n $this->subdivision = $city ? $city->subdivision : null;\n }", "public function set_submenu($submenu) {\n $this->submenu = $submenu;\n }", "public function testSetAutreStatut() {\n\n $obj = new AttestationCacm();\n\n $obj->setAutreStatut(\"autreStatut\");\n $this->assertEquals(\"autreStatut\", $obj->getAutreStatut());\n }", "public function subitDegats($degats){\n\n }", "public function setBaseSubtotal($amount);", "abstract public function set($in): void;", "public function setMontantTes($montantTes) {\n $this->montantTes = $montantTes;\n return $this;\n }", "public function testSetInterdireModifAffCli() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifAffCli(true);\n $this->assertEquals(true, $obj->getInterdireModifAffCli());\n }", "public function testSetMensualisation() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMensualisation(10.092018);\n $this->assertEquals(10.092018, $obj->getMensualisation());\n }", "public function &setMutualiteit($mutualiteit) {\n\t\t$this->notifyChanged(self::FIELD_MUTUALITEIT,$this->mutualiteit,$mutualiteit);\n\t\t$this->mutualiteit=$mutualiteit;\n\t\treturn $this;\n\t}", "public function setMontantHtCde($montantHtCde) {\n $this->montantHtCde = $montantHtCde;\n return $this;\n }", "public function testSetInterdireModifDepot() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifDepot(true);\n $this->assertEquals(true, $obj->getInterdireModifDepot());\n }", "public function testSetDernLieuTravail() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernLieuTravail(\"dernLieuTravail\");\n $this->assertEquals(\"dernLieuTravail\", $obj->getDernLieuTravail());\n }", "public function testSetCodeIntervenant() {\n\n $obj = new Materiels();\n\n $obj->setCodeIntervenant(\"codeIntervenant\");\n $this->assertEquals(\"codeIntervenant\", $obj->getCodeIntervenant());\n }", "public function setMontantBudget($montantBudget) {\n $this->montantBudget = $montantBudget;\n return $this;\n }", "public function setMain( Main $main ) {\n\n $this->main = $main;\n }", "public function setMinDamage(){ $this->minDamage = 10; }", "public function setX($x);", "public function testSetSatisfactionGenerale() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setSatisfactionGenerale(\"satisfactionGenerale\");\n $this->assertEquals(\"satisfactionGenerale\", $obj->getSatisfactionGenerale());\n }", "public function getMontantGeneral() {\n return $this->montantGeneral;\n }", "public function set_motdepasse($_motdepasse)\n {\n $this->_motdepasse = $_motdepasse;\n\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.48091918", "0.47952348", "0.478706", "0.47861445", "0.47818336", "0.4780223", "0.47652614", "0.4762156", "0.47328892", "0.4731515", "0.47257856", "0.47180933", "0.47061825", "0.46984184", "0.46969846", "0.4690217", "0.4690217", "0.4688053", "0.46773252", "0.46353108", "0.46291906", "0.46265867", "0.4620667", "0.4619613", "0.4615828", "0.46078938", "0.46021023", "0.4593584", "0.45886546", "0.45877385", "0.458465", "0.45839837", "0.4578216", "0.45685807", "0.45645595", "0.45531908", "0.45445052", "0.4538101", "0.45335072", "0.45177835", "0.45091957", "0.4505706", "0.44843054", "0.4482468", "0.44821823", "0.448159", "0.44644988", "0.44589823", "0.44578502", "0.4457788", "0.44567662", "0.444646", "0.44448084", "0.4439889", "0.4438999", "0.44347155", "0.4426443", "0.44253218", "0.4424248", "0.44202003", "0.44197375", "0.44100365", "0.44021305", "0.43959188", "0.43943438", "0.4387716", "0.43858266", "0.4380798", "0.43784642", "0.4377945" ]
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}", "function setSublinhado($lSublinhado = true) {\n\n if ($lSublinhado) {\n $sComando = chr(27) . chr(45) . \"1\";\n } else {\n $sComando = chr(27) . chr(45) . \"0\";\n }\n return $sComando;\n \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 setRealations(){\n\n }", "public function validateSubPrzesylkaForChoiceConstraintsFromSetSubPrzesylka($value)\n {\n $message = '';\n if (is_null($value)) {\n return $message;\n }\n $properties = [\n 'urzadWydaniaEPrzesylki',\n ];\n try {\n foreach ($properties as $property) {\n if (isset($this->{$property})) {\n throw new \\InvalidArgumentException(sprintf('The property subPrzesylka can\\'t be set as the property %s is already set. Only one property must be set among these properties: subPrzesylka, %s.', $property, implode(', ', $properties)), __LINE__);\n }\n }\n } catch (\\InvalidArgumentException $e) {\n $message = $e->getMessage();\n }\n\n return $message;\n }", "public function setKodeSubSatker($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->kode_sub_satker !== $v) {\n $this->kode_sub_satker = $v;\n $this->modifiedColumns[] = BangunanPeer::KODE_SUB_SATKER;\n }\n\n\n return $this;\n }", "function set_subtitle($subtitle) \r\n\t{\r\n\t\t//$this->subtitle = $subtitle;\r\n\t\t$this->data['subtitle_for_layout'] = $subtitle;\r\n\t\t$this;\r\n\t}", "public function setVoiture($voiture){\n $this->$voiture = $voiture;\n }", "public function setSubtotal($amount);", "public function substituteSubpartArrayDataProvider() {}", "function insertSubchapterClip()\n\t{\n\t\t$this->insertChapterClip(true);\n\t}", "public function testSetInterdireModifDepot() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifDepot(true);\n $this->assertEquals(true, $obj->getInterdireModifDepot());\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function setMarkerInSubpartWithinCompleteTemplate() {\n\t\t$this->subject->processTemplate(\n\t\t\t'Some text. '\n\t\t\t\t.'<!-- ###MY_SUBPART### -->'\n\t\t\t\t.'This is some template code. ###MARKER### More text.'\n\t\t\t\t.'<!-- ###MY_SUBPART### -->'\n\t\t\t\t.' Even more text.'\n\t\t);\n\t\t$this->subject->setMarker('marker', 'foo');\n\t\t$this->assertSame(\n\t\t\t'Some text. '\n\t\t\t\t.'This is some template code. foo More text.'\n\t\t\t\t.' Even more text.',\n\t\t\t$this->subject->render()\n\t\t);\n\t}", "public function testSetInterdireEnvoiPostit() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireEnvoiPostit(true);\n $this->assertEquals(true, $obj->getInterdireEnvoiPostit());\n }", "public function set_submenu($submenu) {\n $this->submenu = $submenu;\n }", "function setLeja($_leja){\r\n $this->leja=$_leja;\r\n }", "public function setSubMenu($subMenu){\n $this->subMenu = $subMenu;\n return $this;\n }", "public function setValue2($value){\n $this->_value2 = $value;\n }", "public function setSubCategory($val)\n {\n $this->_propDict[\"subCategory\"] = $val;\n return $this;\n }", "public function testSetInterdirePubliDocWeb() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdirePubliDocWeb(true);\n $this->assertEquals(true, $obj->getInterdirePubliDocWeb());\n }", "public function setValue($value): AbstractPart\n {\n if ($value instanceof AbstractPart) {\n $value = $value->getValue();\n }\n\n $this->value = $value;\n\n return $this;\n }", "public function testSetSaisiePvInterdite() {\n\n $obj = new Collaborateurs();\n\n $obj->setSaisiePvInterdite(true);\n $this->assertEquals(true, $obj->getSaisiePvInterdite());\n }", "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 }", "public function setMain($main);", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function edit(SubCourse $subCourse)\n {\n\n }", "function setSubLength($classId, $length) {\r\n $data['classSubLength'] = $length;\r\n $this->db->where('id', $classId);\r\n $this->db->update('class', $data);\r\n }", "public function testSetStatutParticulier() {\n\n $obj = new AttestationCacm();\n\n $obj->setStatutParticulier(10);\n $this->assertEquals(10, $obj->getStatutParticulier());\n }", "public function subFormat(?string $subFormat): self\n {\n $new = clone $this;\n $new->subFormat = $subFormat;\n\n return $new;\n }", "public function reprova()\n {\n $this -> estadoAtual -> reprova($this);\n }", "public function edit(Subasta $subasta)\n {\n //\n }", "function alta_subfamilia(){\n\t\t$u= new Subfamilia_producto();\n\t\t$u->fecha_alta=date(\"Y/m/d\");\n\t\t$u->usuario_id=$GLOBALS['usuarioid'];\n\t\t$related = $u->from_array($_POST);\n\n\t\t// save with the related objects\n\t\tif($u->save($related)){\n\t\t\techo \"<html> <script>alert(\\\"Se han registrado los datos de la Subfamilia de Productos.\\\"); window.location='\".base_url().\"index.php/\".$GLOBALS['ruta'].\"/productos_c/formulario/list_subfamilias';</script></html>\";\n\t\t} else\n\t\t\tshow_error(\"\".$u->error->string);\n\t}", "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 testSetSelectionFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelectionFournisseur(\"selectionFournisseur\");\n $this->assertEquals(\"selectionFournisseur\", $obj->getSelectionFournisseur());\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 function testSetVrpMulticarte() {\n\n $obj = new Employes();\n\n $obj->setVrpMulticarte(true);\n $this->assertEquals(true, $obj->getVrpMulticarte());\n }", "function subtrairSegundos($sec)\r\n {\r\n $this->subtrairIntervalo(new Data_Intervalo($sec));\r\n }", "protected function setElementPartialPath() {}", "abstract public function set($in): void;", "public function setSubEvents($value)\n {\n $this->subEvents = $value;\n }", "public function setOtherSide($value) {\r\n $this->otherSide = $this->setBooleanProperty($this->otherSide, $value);\r\n }", "public function setIsPartOf($value)\n {\n $this->isPartOf = $value;\n }", "public function set_id_subclase($value = \"\"){ \n $this->_id_subclase= \\helpers\\Validator::valInt('f_id_subclase',$value,TRUE);\n}", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "public function setProducto($pro){ $this->producto = $pro;}", "public function get_superficie(){ return $this->_superficie;}", "Function substituteSubpart($template, $subpart, $replace) {\n\t\tReturn t3lib_parsehtml::substituteSubpart($template, $subpart, $replace);\n\t}", "public function setSub_category($sub_category){\n $this->sub_category = $sub_category;\n return $this;\n }", "public function __set($prop, $valor){\n\t\tif( !property_exists($this, $prop))\t{\n\t\t\tthrow new exception(\"la propiedad $prop no existe\"); \t\t\t\n\t\t}\t\t\n\t\t$this->$prop = $valor;\n\t\t//$this->(\"set\".ucfirst($prop))($valor);\n\t\t\n\t}", "public function testSetInterdireModifAffCli() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifAffCli(true);\n $this->assertEquals(true, $obj->getInterdireModifAffCli());\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 testSetHSurcroit() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHSurcroit(10.092018);\n $this->assertEquals(10.092018, $obj->getHSurcroit());\n }", "public function setMain( Main $main ) {\n\n $this->main = $main;\n }", "public function setSubArray($setting, $subArray, $value)\n { \n //Extracts the key for this level of the subArray from the $setting array.\n $settingName = array_shift($setting);\n\n //Checks if the given $settingName is set and is an array.\n if (isset($subArray[$settingName]) && is_array($subArray[$settingName])) {\n //The given key is set, and it is an array.\n if (count($setting) > 0) {\n //In addition, there are more levels to drill down. Continue down deeper into the SubArray until we find the right key to set.\n $subArray[$settingName] = $this->setSubArray($setting, $subArray[$settingName], $value);\n return $subArray;\n }\n } \n\n //Either this is the lowest level of search, we didn't find a key at this level (making this the end of the search), \n //or we ran out of search levels. Set the value associated to our given key and return the $subArray.\n $subArray[$settingName] = $value;\n return $subArray;\n }", "public function init() {\n parent::init();\n $this->removeElement('staff_id');\n $this->getElement('sub')->setLabel('Save');\n }", "function set_subsite_root() {\n\t\t$this->is_subsite_root = true;\n\t}", "public function setSubrogationConstantes($subrogationConstantes) {\n $this->subrogationConstantes = $subrogationConstantes;\n return $this;\n }", "public function setSubtotal($amount){\n return $this->setData(self::SUBTOTAL, $amount);\n }", "public function updateBrokerSub($invoiceEntity, $subEntity)\r\n {\r\n $invoiceEntity->setInoviceStatus();\r\n $subEntity->setIsValid();\r\n }", "public function setSubquery()\n {\n $this->isSubQuery = true;\n return $this;\n }", "public function setRect(\\SetaPDF_Core_DataStructure_Rectangle $rect) {}", "public function setLoadControllerMenuSub()\r\n {\r\n add_submenu_page(\r\n $_SESSION['controller_data_sub']['page_slug_current'],\r\n $_SESSION['controller_data_sub']['page_title'], // Title of the page\r\n $_SESSION['controller_data_sub']['page_menu_text'], // Text to show on the menu link\r\n $_SESSION['controller_data_sub']['page_capability'], // Capability requirement to see the link\r\n $_SESSION['controller_data_sub']['page_slug'],\r\n $_SESSION['controller_data_sub']['page_render'],\r\n $_SESSION['controller_data_sub']['page_menu_position']\r\n );\r\n }", "function testProgramSubfield() {\n $this->assertFalse(isset($this->rels->program), \"program is not set from fixture\");\n $this->assertFalse(isset($this->rels->subfield), \"subfield is not set from fixture\");\n $this->rels->program = \"progid\";\n $this->assertEqual(\"progid\", $this->rels->program);\n $this->assertPattern(\"|<rel:program>progid</rel:program>|\", $this->rels->saveXML());\n $this->rels->subfield = \"subfldid\";\n $this->assertEqual(\"subfldid\", $this->rels->subfield);\n $this->assertPattern(\"|<rel:subfield>subfldid</rel:subfield>|\", $this->rels->saveXML());\n\n // when setting with #, # should be stripped off\n $this->rels->program = \"#progid\";\n $this->assertEqual(\"progid\", $this->rels->program);\n $this->rels->subfield = \"#subfldid\";\n $this->assertEqual(\"subfldid\", $this->rels->subfield);\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}", "abstract function setContent();", "public function setNamaSubSatker($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->nama_sub_satker !== $v) {\n $this->nama_sub_satker = $v;\n $this->modifiedColumns[] = BangunanPeer::NAMA_SUB_SATKER;\n }\n\n\n return $this;\n }", "public function setChild($type, $path = NULL, $data = array())\n {\n ($path) ? $this->{\"_$type\"}['path'] = VPATH . $path . EXT : $this->{\"_$type\"}['path'] = VPATH . $this->{\"_$type\"}['path'] . EXT;\n $this->{\"_$type\"}['data'] = $data;\n return $this;\n }", "function setId($id)\n\t{\n\t\t// Set suburb ID and wipe data\n\t\t$this->_id\t\t\t= $id;\n\t\t$this->_suburb\t= null;\n\t}", "public function setValeur($valeur)\n {\n $this->valeur = $this->recupValeur($valeur);\n }" ]
[ "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.50307065", "0.50295776", "0.49958435", "0.49929348", "0.49853772", "0.49638987", "0.49560255", "0.49405044", "0.49327675", "0.492881", "0.49154463", "0.49062288", "0.4902085", "0.48989293", "0.4894436", "0.48818007", "0.48772922", "0.48736715", "0.4869772", "0.4865454", "0.485543", "0.48492885", "0.48486915", "0.48480633", "0.4843486", "0.48416618", "0.48413327", "0.48395765", "0.4831172", "0.4825811", "0.48253003", "0.48115885", "0.48094648", "0.48034087", "0.47990918", "0.4795497", "0.47902122", "0.47872266", "0.47861615", "0.47780824", "0.47771683", "0.4773805", "0.47732252", "0.47727817", "0.47707263", "0.47642624", "0.47562176", "0.4755495", "0.47370443", "0.47341534", "0.47307804", "0.4727273", "0.4725695", "0.47217342", "0.47183928", "0.47179264", "0.47133225", "0.47110426", "0.47104004", "0.4706127", "0.4699979", "0.46995872", "0.46946043", "0.4685095", "0.4684705", "0.46823314", "0.4676502", "0.4673731", "0.46733677", "0.46730033" ]
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 }", "public function setExpirationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('expirationDateTime', $value);\n }", "public function setFilingDate($value) {\n\t\t$value = date('d-M-Y', strtotime($value));\n\t\tself::$_filingDate = $value;\n\t}", "function setDateNotified($dateNotified) {\n\t\t$this->setData('dateNotified', $dateNotified);\n\t}", "public function setExpiryDate($date)\n {\n $this->expiryDate = $date;\n }", "public function setDate( $sDate ) {\n\t\t$this->sDate = $sDate;\n\t}", "public function setEndDate(?Date $value): void {\n $this->getBackingStore()->set('endDate', $value);\n }", "public function setDate(Carbon $date) {\n\t\t$this->setDateRange($date, $to);\n\t}", "public function setDate(?TimeRange $date): void\n {\n $this->date = $date;\n }", "public function setStartDate($date)\n {\n\t\tif($date==null){\n\t\t\t$this->start_at = null;\n\t\t\t$this->save();\n\t\t\t$this->fireModelEvent('start-refreshed');\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif($this->start_at){\n\t\t\tif($model->start_at->greaterThan($date)){\n\t\t\t\t$this->start_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('start-delayed');\n\t\t\t}else{\n\t\t\t\t$this->start_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('start-forwarded');\n\t\t\t}\n\t\t}else{\n\t\t\t$this->start_at = $date;\n \t$this->save();\n\t\t\t$this->fireModelEvent('start-inited');\n\t\t}\n }", "public function setUpRegisterDate()\n {\n $this->setRegisterDate(new \\DateTime());\n }", "public function setDueDate(\\DateTime $value)\n {\n $this->setItemValue('due_date', (string)$value->getTimestamp());\n }", "function setExpireDate($ed) {\n\t\tif ($ed) {\n\t\t\t$newtime = dateTimeConvert($ed);\n\t\t\tif ($newtime === false) return;\n\t\t\t$this->set('expiredate', $newtime);\n\t\t} else {\n\t\t\t$this->set('expiredate', NULL);\n\t\t}\n\t}", "public function setRequestedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('requestedDateTime', $value);\n }", "private function updateUnPublishOnDate()\n {\n $this->owner->UnPublishOnDate = $this->owner->DesiredUnPublishDate;\n // Remove the DesiredUnPublishDate.\n $this->owner->DesiredUnPublishDate = null;\n }", "public function setReviewedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('reviewedDateTime', $value);\n }", "public function setAvailabilityStartDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('availabilityStartDateTime', $value);\n }", "public function setStartDate(DrupalDateTime $start_date);", "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 }", "public function setDate($date)\n {\n $this->date = $date;\n \n return $this;\n }", "public function setEndDate(string $date);", "public function setDate($p)\n {\n if ($p !== null && trim($p) !== \"\") {\n $this->appendCommandArgument(\"-D\");\n $this->appendCommandArgument($p);\n }\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 }", "public function setStartDate($startDate) {\n $this->startDate = $startDate;\n }", "public function setPublishedAtAttribute($date)\n\t{\n\t\t$this->attributes['published_at'] = Carbon::createFromFormat('Y-m-d', $date);\n\t}", "public function setDate($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "function setEndDate(&$oDate)\n {\n if (is_a($oDate, 'date')) {\n $oDate->setHour(23);\n $oDate->setMinute(59);\n $oDate->setSecond(59);\n $oDate->subtractSeconds(25200);\n }\n }", "function SetInitialDate ($date)\r\n {\r\n if ($date)\r\n {\r\n $this->_dti = $date; \r\n }\r\n }", "public function setReportedDate(\\DateTime $value)\n {\n $this->setItemValue('reported_date', (string)$value->getTimestamp());\n }", "public function setEndDate($date)\n\t\t{\n\t\t\t$this->end_date = $date;\n\t\t}", "public function setLaunchDateTime($val)\n {\n $this->_propDict[\"launchDateTime\"] = $val;\n return $this;\n }", "public function touch()\n\t{\n\t\t$this['last_dismiss_date'] = new \\DateTime();\n\t\t$this['last_email_date'] = new \\DateTime();\n\t}", "public function setDates($dates);", "protected function setDateUtilisateur($date)\n{\n$this->dateUtilisateur = $date;\t\n}", "private function setCurDate(DateTime $date):void\n\t{\n\t\t$this->curDate = clone $date;\n\t\tif($this->isVocation($this->curDate)){\n\t\t\t$this->nextDay();\n\t\t}\n\t}", "function setDateReminded($dateReminded) {\n\t\t$this->setData('dateReminded', $dateReminded);\n\t}", "static public function setTestingNow(\\DateTime $date = null)\n {\n self::$now = $date;\n }", "private function _init_date()\n\t{\n\t\t$this->date->init($this->EE->TMPL->fetch_param('date'));\n\t\t$this->_log(sprintf(\"Working date set to %s %s\", $this->date->date(), $this->date->time()));\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}", "function setDateAssigned($dateAssigned) {\n\t\t$this->setData('dateAssigned', $dateAssigned);\n\t}", "public function setPublishedAtAttribute($date){ //guarda el campo published_at como si fuera una instancia de Carbon para que se guarde con hora\n \t$this->attributes['published_at']=Carbon::parse($date); \n }", "function _sf_set_spot_expiry_date($post) {\n\t\t\n\t\t///// FIRSTLY LET'S ADD A METABOX FOR OUR EXPIRY DATE\n\t\t$exp_date = time() + (ddp('submission_days') * (60*60*24));\n\t\t\n\t\t$midnight_time = $exp_date;\n\t\t\n\t\tupdate_post_meta($post->ID, 'expiry_date', $midnight_time);\n\t\t\n\t\t///// SETS UP OUR CRON JOB\n\t\twp_schedule_single_event($midnight_time, 'expire_spot_submission', array($post->ID, $post->post_title, $post->post_author, ''.$midnight_time.''));\n\t\t\n\t}", "public function setDateTime($value)\n {\n $this->createdAt=$value;\n }", "public function setDate($date_string = null)\n {\n\n if ($this->is_date() == 1) {\n $this->now = getdate(strtotime($date_string));\n } else {\n $this->now = getdate();\n }\n }", "public function setEndDate($date)\n {\n\t\tif($date==null){\n\t\t\t$this->complete_at = null;\n\t\t\t$this->save();\n\t\t\t$this->fireModelEvent('end-refreshed');\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif($this->complete_at){\n\t\t\tif($model->complete_at->greaterThan($date)){\n\t\t\t\t$this->complete_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('end-delayed');\n\t\t\t}else{\n\t\t\t\t$this->complete_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('end-forwarded');\n\t\t\t}\n\t\t}else{\n\t\t\t$this->complete_at = $date;\n \t$this->save();\n\t\t\t$this->fireModelEvent('end-inited');\n\t\t}\n }", "public function setDate($date) {\n $this->date = $date;\n $this->updateData();\n return $this;\n }", "public function setFirstSeenDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('firstSeenDateTime', $value);\n }", "public function setFirstSeenDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('firstSeenDateTime', $value);\n }", "public function setStartDate(\\DateTime $value)\n {\n $this->setItemValue('start_date', (string)$value->getTimestamp());\n }", "protected function set_date_prop( $date_type, $value ) {\n\t\t$datetime = wcs_get_datetime_from( $value );\n\t\t$date = ! is_null( $datetime ) ? wcs_get_datetime_utc_string( $datetime ) : 0;\n\n\t\t$this->set_prop( $this->get_date_prop_key( $date_type ), $date );\n\t\t$this->schedule->{$date_type} = $date;\n\t}", "function setDateApproved($dateApproved) {\n\t\treturn $this->setData('dateApproved', $dateApproved);\n\t}", "public function setEvaluationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('evaluationDateTime', $value);\n }", "public function set_start_date($start_date)\n\t{\n\t\tif (is_null($start_date)) {\n\t\t\tthrow new InvalidArgumentException(\"Project Start Date Invalid!\");\n\t\t}\n\t\t$this->start_date = $start_date;\n\t}", "function setDateCompleted($dateCompleted) {\n\t\t$this->setData('dateCompleted', $dateCompleted);\n\t}", "public function setLockedAt($dateString = null)\n {\n $this->lockedAt = $this->decisionStamp($dateString);\n }", "public function setPublishDateAttribute($value)\n {\n $this->attributes['publish_date'] = date(\"Y-m-d H:i:s\", strtotime($value));\n }", "public function setContactDate($date) {\n $this->date = $date;\n }", "function setData($data)\n {\n $this->date=$data;\n }", "public function setDate($date)\n {\n $this->date = $date;\n\n return $this;\n }", "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}", "function setExpiryDate($expirydate) {\n $this->checkChange();\n\n if ($expirydate > 0 || $expirydate === 0 || $expirydate === NULL) {\n $this->expirydate = (int)$expirydate;\n }\n else {\n $this->abort();\n throw new UserpointsInvalidArgumentException(t('Expiration date must be an integer'));\n }\n return $this;\n }", "public function setReviewDate($newReviewDate = null) {\n\t\t\t\t// base case: if the date is null, use the current date and time\n\t\t\t\tif($newReviewDate = null) {\n\t\t\t\t\t$this->reviewDate = new \\DateTime();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// store the review date\n\t\t\t\ttry {\n\t\t\t\t\t$newReviewDate = self::validateDateTime($newReviewDate);\n\t\t\t\t} catch(\\InvalidArgumentException $invalidArgument) {\n//\t\t\t\t\t\tthrow(new \\InvalidArgumentException($invalidArgument->getMessage(), 0, $range));\n\t\t\t\t\tthrow(new \\InvalidArgumentException (\"No date specified\", 405));\n\t\t\t\t} catch(\\RangeException $range) {\n\t\t\t\t\tthrow(new \\RangeException($range->getMessage(), 0, $range));\n\t\t\t\t}\n\t\t\t\t$this->reviewDate = $newReviewDate;\n\t\t\t}", "public function setEntryDate($entry_date)\n {\n $this->entry_date = $entry_date;\n }", "function setStartDate($start_date = \"\") \n\t{\n\t\t$this->start_date = $start_date;\n\t}", "function set_date_to_now()\n {\n $this->timestamp=time();\n }", "public function setToDate($toDate)\n {\n if (stristr($toDate, \"-\")) {\n $toDate = strtotime($toDate);\n }\n $this->toDate = $toDate;\n }", "public function setProcessCreationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('processCreationDateTime', $value);\n }", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setDateEnd($dateEnd)\n {\n $this->dateEnd = VT::toDateTimeImmutable($dateEnd);\n }", "public function setSettleDate($var)\n {\n GPBUtil::checkInt64($var);\n $this->settle_date = $var;\n\n return $this;\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.5624129", "0.56179905", "0.5617449", "0.5615534", "0.56097454", "0.55999285", "0.5584753", "0.5579151", "0.5562021", "0.5539307", "0.55242026", "0.55137825", "0.5512357", "0.55093235", "0.5507777", "0.5497563", "0.5466804", "0.5455602", "0.544842", "0.5410606", "0.54089314", "0.5408314", "0.540812", "0.54054624", "0.5395029", "0.5388903", "0.5386288", "0.53683287", "0.53518975", "0.53487223", "0.5345778", "0.53420997", "0.5337596", "0.5336552", "0.53328514", "0.53320026", "0.53287756", "0.5308394", "0.5302878", "0.5302386", "0.52941716", "0.5289407", "0.5280074", "0.52779514", "0.5276519", "0.5274859", "0.5274859", "0.5273118", "0.5270744", "0.5263021", "0.52554625", "0.52487046", "0.5234687", "0.5229652", "0.52287453", "0.52220845", "0.5214533", "0.52142894", "0.5206329", "0.5204555", "0.5203373", "0.5200549", "0.52000296", "0.5190606", "0.51855177", "0.518548", "0.517403", "0.517403", "0.5173728", "0.51664" ]
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 }", "public function setMedia()\n {\n }", "public function setMedia()\n {\n }", "function setSilentMode(bool $isSilent);", "protected function setSwarmCookie()\n {\n $session = $this->getSession();\n // Visit the swarm host url before the cookie is set, so that the domain for the cookie gets set\n $session->visit($this->configParams['base_url']);\n // Set the cookie\n $session->setCookie('SwarmDataPath', $this->getP4Context()->getUUID());\n // Re-visit the swarm host url, after the cookie has been set\n $session->visit($this->configParams['base_url']);\n }", "public function setWake($wake) {\n $this->wakeNext = $wake;\n }", "private function set_device(){\n\t\n\t}", "public function isSuspend() {\n return $this->isSuspended;\n }", "public function setPromotion(?PromotionInterface $promotion): void\n {\n }", "function check_suspension($user_id) {\n\t\t$user = get_user_by('ID', $user_id);\n\t\tupdate_user_meta($user_id, 'suspended', $_POST['suspend']);\n\t}", "public function testUpdateBatchSuspensionState()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function set_mute(int $newval): int\n {\n $rest_val = strval($newval);\n return $this->_setAttr(\"mute\", $rest_val);\n }", "public function setProgressive($progressive = TRUE)\n {\n if(is_bool($progressive))\n {\n $this->progressive = $progressive;\n }\n else\n {\n trigger_error('Picture progressive mode must be boolean', E_USER_WARNING);\n }\n }", "public function enviarComandoMute( ) {\n $cmd = new ComandoFlash($this->getProyectorActivo(), $this->getEstadoMuteado($this->getProyectorActivo()), \"\");\n $this->enviarPeticion($cmd->getComando());\n }", "public function setSw($x) { $this->sw = $x; }", "public function activarPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"NO_MUTE\");\n $this->setPizarraMuteado(0);\n }", "public function suspend()\n {\n $this->cancelled = false;\n $this->ended = false;\n $this->resumed = false;\n $this->suspended = true;\n\n $this->saveToVariableHandlers();\n\n $keys = array_keys($this->variables);\n $count = count($keys);\n $handlers = $this->workflow->getVariableHandlers();\n\n for ($i = 0; $i < $count; $i++) {\n if (isset($handlers[$keys[$i]])) {\n unset($this->variables[$keys[$i]]);\n }\n }\n\n $this->doSuspend();\n\n foreach ($this->plugins as $plugin) {\n $plugin->afterExecutionSuspended($this);\n }\n }", "function setSwimMeet($swimmeet)\r\n {\r\n $this->_swimmeet = $swimmeet ;\r\n }", "public function set_current_screen()\n {\n }", "function unsuspend($office, $sale_id)\n {\n // $sale_id = $this->input->post('suspended_sale_id');\n $this->sale_lib->clear_all();\n $this->sale_ticket_lib->copy_entire_sale($sale_id, strtolower(get_class()));\n $this->sale_lib->set_suspended_sale_id($sale_id);\n $this->_reload(array(), false);\n }", "public function setInis($inis)\r\n {\r\n foreach ($inis as $name => $value) {\r\n ini_set('session.' . $name, $value);\r\n }\r\n $this->inis = $inis + $this->inis;\r\n return $this;\r\n }", "public function setInteractive($value)\n {\n $this->interactive = $value;\n }", "function setIntestat($intestat)\n {\n $this->intestat = $intestat;\n }", "public function setOneSlideMode( $data ) {\n\t\t$this->oneSlideMode = true;\n\t\t$this->oneSlideData = $data;\n\t}", "public function desactivarPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"MUTE\");\n $this->setPizarraMuteado(1);\n }", "public function setTravailEffectif(?float $travailEffectif): PrepaPaie {\n $this->travailEffectif = $travailEffectif;\n return $this;\n }", "public function setSuspensionDate(DateTime $suspensionDate = null) {\n $this->suspensionDate = $suspensionDate;\n return $this;\n }", "public function setSleepTime($time) {\n $this->sleepTime = $time;\n }", "public function setSuspended($suspended)\n {\n $this->suspended = $suspended;\n\n return $this;\n }", "public function setAutomationOverride(ContextInterface $ctx, SetAutomationOverrideRequest $request): void;", "public function resume();", "public function suspend($status = false)\n {\n if ($this->storedStatus === null) {\n $this->storedStatus = $this->isEnabled;\n $this->isEnabled = $status;\n }\n }", "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 }", "function setSyncWarranty()\n {\n }", "public function resume () {\n if ($this->started) {\n $this->run = true;\n $this->lapTmstmp = now();\n\n } else {\n $this->restart();\n }\n }", "public function setPromotions(bool $promotions):void\n {\n $this->promotions = $promotions;\n }", "public function setIsSpeakerOptional($val)\n {\n $this->_propDict[\"isSpeakerOptional\"] = $val;\n return $this;\n }", "public function muted($status = false);", "public function setDevMode($set=TRUE)\r\n\t{\r\n\t\t$this->_devMode = (bool) $set;\r\n\t}", "public function skip_device()\n\t{\n\t\tSession::Set('skip_loved_device', $_GET['skip']);\n\t}", "public function setPause($value)\n {\n return $this->set(self::PAUSE, $value);\n }", "public function pauseWorking(){\r\n\r\n }", "public function powerUp()\n {\n if ($this->motor_power)\n $this->motor_power->setValue(1);\n }", "public function pause();", "public function SetMute(\\Google\\Cloud\\SecurityCenter\\V1\\SetMuteRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.cloud.securitycenter.v1.SecurityCenter/SetMute',\n $argument,\n ['\\Google\\Cloud\\SecurityCenter\\V1\\Finding', 'decode'],\n $metadata, $options);\n }", "public function setRise($rise) {}", "function switchPromote()\n\t{\n\t\t$this->doPromote = true;\n\t}", "public function resume(): void\n {\n $this->tonClient->request(\n 'net.resume'\n )->wait();\n }", "public function actionPause($at=false,$in=false)\n {\n // Pause the competition $in number of seconds from now\n }", "public static function setFlash($pesan, $aksi, $tipe)\n {\n $_SESSION['flash'] = [\n 'pesan' => $pesan,\n 'aksi' => $aksi,\n 'tipe' => $tipe\n ];\n }", "public function setMedianImpactInMs(?int $value): void {\n $this->getBackingStore()->set('medianImpactInMs', $value);\n }", "public function setvol(int $vol): void\n {\n if ($vol > 100) {\n $vol = 100;\n }\n if ($vol < 0) {\n $vol = 0;\n }\n $this->client->execute(\"setvol {$vol}\");\n }", "public function ligarMudo() {\n if ($this->getLigado() && $this->getVolume() > 0) {\n $this->setVolume(0);\n }\n }", "function qa_suspend_event_reports($suspend = true)\n{\n\tglobal $qa_event_reports_suspended;\n\n\t$qa_event_reports_suspended += ($suspend ? 1 : -1);\n}", "public function setSilent($silent)\n {\n $this->silent = (bool) $silent;\n }", "function setSyncIdDev()\n {\n }", "function set_screen()\n {\n $screen = get_current_screen();\n if ($screen) {\n $screen->ngg = TRUE;\n } else {\n if (is_null($screen)) {\n $screen = WP_Screen::get($this->object->name);\n $screen->ngg = TRUE;\n set_current_screen($this->object->name);\n }\n }\n }", "public function setItens($itens) {\n $this->itens = $itens;\n }", "private function setProcess(Process $process): void\n {\n $this->process = $process;\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 static function setMonitor(int $monitor) {}", "public static function SetPlatEstActif($id) {\n\t\t$sql = 'CALL upd_plat_actif(:pID,:pActif)';\n\t\t$param = array(':pID' => $id, ':pActif' => 1);\n\t\tDatabaseHandler::Execute($sql, $param);\n\t}", "public function setCurrentPower($newValue) {\r\n $this->cached_current_power = $newValue;\r\n }", "public function setPromotion($first,$second)\n {\n $this->promotion->setPromotion($first,$second);\n //product Id for identify products\n $this->promotion->setProductId($this->id);\n }", "public function setCurrentAmmo($currentAmmo) {\n $this->currentAmmo = $currentAmmo;\n }", "public function setWelcomeScreenBlockAutomaticWakeUp(?bool $value): void {\n $this->getBackingStore()->set('welcomeScreenBlockAutomaticWakeUp', $value);\n }", "private function setSequence(): void\n {\n $this->sequence = $this->getSequence();\n }", "function setNotify($notify) {\r\r\n\t\t$this->notify = $notify;\r\r\n\t}", "public function setSnow( $snow ) {\n\n $this->snow = $snow;\n }", "public function setProcess( $process )\n {\n \n $this->process = $process;\n \n }", "public function propegate() : void\n {\n $this->event->sender->enabledForSite = in_array(\n $this->event->sender->siteId,\n $this->event->sender->getFieldValue('sites')\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.46036467", "0.46036467", "0.45969817", "0.45949045", "0.45779955", "0.45753616", "0.45724022", "0.4569058", "0.4562558", "0.45530412", "0.45518863", "0.4548852", "0.45477635", "0.45474213", "0.45399645", "0.4527766", "0.45254067", "0.45231527", "0.45041505", "0.45029402", "0.44900206", "0.44785085", "0.44724378", "0.44718707", "0.446755", "0.446219", "0.44608295", "0.44528344", "0.4447517", "0.44284555", "0.4428398", "0.44269127", "0.44243535", "0.44007686", "0.4398466", "0.4391468", "0.43810084", "0.43756416", "0.43590933", "0.4356686", "0.43548918", "0.43434212", "0.4341063", "0.43359846", "0.43356535", "0.43274668", "0.43269387", "0.4321171", "0.4316507", "0.4316303", "0.43147647", "0.43124598", "0.42900264", "0.4289865", "0.4283637", "0.42786705", "0.42649665", "0.42642978", "0.42628393", "0.42567223", "0.42566678", "0.42557335", "0.42527637", "0.42506278", "0.42493808", "0.4245162", "0.4243962", "0.42430773", "0.42404243", "0.42352173" ]
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 }", "protected function simulateFrontendEnvironment() {\n\t\t$this->tsfeBackup = isset($GLOBALS['TSFE']) ? $GLOBALS['TSFE'] : NULL;\n\t\t\t// set the working directory to the site root\n\t\t$this->workingDirectoryBackup = getcwd();\n\t\tchdir(PATH_site);\n\n\t\t$typoScriptSetup = $this->configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);\n\t\t$GLOBALS['TSFE'] = new stdClass();\n\t\t$template = t3lib_div::makeInstance('t3lib_TStemplate');\n\t\t$template->tt_track = 0;\n\t\t$template->init();\n\t\t$template->getFileName_backPath = PATH_site;\n\t\t$GLOBALS['TSFE']->tmpl = $template;\n\t\t$GLOBALS['TSFE']->tmpl->setup = $typoScriptSetup;\n\t\t$GLOBALS['TSFE']->config = $typoScriptSetup;\n\t}", "protected function setExportTmpAndLogSettings()\n {\n $this->setExportFolderPath(\n $this->directory->getPath(DirectoryList::TMP) . DS . 'shopgate' . DS . $this->getShopNumber()\n );\n $this->createFolderIfNotExist($this->getExportFolderPath());\n\n $this->setLogFolderPath(\n $this->directory->getPath(DirectoryList::LOG) . DS . 'shopgate' . DS . $this->getShopNumber()\n );\n $this->createFolderIfNotExist($this->getLogFolderPath());\n\n $this->setCacheFolderPath(\n $this->directory->getPath(DirectoryList::TMP) . DS . 'shopgate' . DS . $this->getShopNumber()\n );\n $this->createFolderIfNotExist($this->getCacheFolderPath());\n }", "private static function setTimeTracker()\n {\n if (!is_object($GLOBALS['TT'])) {\n $GLOBALS['TT'] = Tx_Smarty_Service_Compatibility::makeInstance('t3lib_TimeTrackNull');\n }\n }", "public function setTemp(string $key, mixed $value, int $ttl = 60) : static\n {\n $_SESSION['$']['temp'][$key] = [\n 'ttl' => \\time() + $ttl,\n 'data' => $value,\n ];\n return $this;\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 setInputTempUnit($inputTempUnit) {\n $this->cInputTempUnit = $inputTempUnit;\n $this->cLatestObservations.setInputTempUnit($inputTempUnit);\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 setterSetsTcemain() {\n\t\t\n\t\t$TCE = $this->controller->getTCE();\n\t\t\n\t\t$this->assertInstanceOf(t3lib_TCEmain, $TCE);\n\t}", "protected function setZpTprop($clave) {\n $this->zpTprop = $clave;\n }", "public function testSetTaux5() {\n\n $obj = new Employes();\n\n $obj->setTaux5(10.092018);\n $this->assertEquals(10.092018, $obj->getTaux5());\n }", "public function setTempFahrenheit() {\n\t\t$this->unit = 'fahrenheit';\n\t}", "public function setTimeStamp()\n\t{\n\t\t$this->_current_timestamp = time();\n\t}", "public function setT($t)\n {\n $this->t = $t;\n return $this;\n }", "function __construct()\n {\n $this->setTemporaryDirectory(sys_get_temp_dir());\n }", "private function setTimeTempnameKey() {\n\t\t$this->timeTempnameKey = time() . '_' . str_replace('_', '', $this->getInputFile()->getTempFilename());\n\t}", "public function setLeafIdTemp($value) {\r\n\t\t$this->leafIdTemp = $value;\r\n\t}", "public function set_task($task)\n {\n $task = asciiwords($task);\n\n if ($this->user && $this->user->ID)\n $task = !$task ? 'mail' : $task;\n else\n $task = 'login';\n\n $this->task = $task;\n $this->comm_path = $this->url(array('task' => $this->task));\n\n if ($this->output)\n $this->output->set_env('task', $this->task);\n }", "public function setTmpFolder($value) {\n\t\t$this->_tmp = $this->_checkTemporaryDirectory($value);\n\t\treturn $this;\n\t}", "protected function setCache()\n {\n if ($this->cache) {\n $cacheFile = $this->getCacheFile();\n $this->setupCachePath($cacheFile);\n file_put_contents($cacheFile, $this->templateOutput);\n }\n }", "protected function setTemporaryDbMounts()\n {\n $backendUser = $this->getBackendUser();\n\n // Clear temporary DB mounts\n $tmpMount = GeneralUtility::_GET('setTempDBmount');\n if (isset($tmpMount)) {\n $backendUser->setAndSaveSessionData('pageTree_temporaryMountPoint', (int)$tmpMount);\n }\n // Set temporary DB mounts\n $alternativeWebmountPoint = (int)$backendUser->getSessionData('pageTree_temporaryMountPoint');\n if ($alternativeWebmountPoint) {\n $alternativeWebmountPoint = GeneralUtility::intExplode(',', $alternativeWebmountPoint);\n $backendUser->setWebmounts($alternativeWebmountPoint);\n } else {\n // Setting alternative browsing mounts (ONLY local to browse_links.php this script so they stay \"read-only\")\n $alternativeWebmountPoints = trim($backendUser->getTSConfigVal('options.pageTree.altElementBrowserMountPoints'));\n $appendAlternativeWebmountPoints = $backendUser->getTSConfigVal('options.pageTree.altElementBrowserMountPoints.append');\n if ($alternativeWebmountPoints) {\n $alternativeWebmountPoints = GeneralUtility::intExplode(',', $alternativeWebmountPoints);\n $this->getBackendUser()->setWebmounts($alternativeWebmountPoints, $appendAlternativeWebmountPoints);\n }\n }\n }", "protected function setTemplateVariables() {}", "protected function settingTemporaryMountPoint($pageId)\n {\n // Setting temporary mount point ID:\n $this->getBackendUser()->setAndSaveSessionData('pageTree_temporaryMountPoint_orders', (int) $pageId);\n }", "public function set() {\n\t\t$this->token = uniqid(rand(), true);\n\n\t\t$this->time = time();\n\n\t\t$this->$referer = $_SERVER['HTTP_REFERER'];\n\n\t\tif ($this->isEnable()) {\n\t\t\t$_SESSION['token'] = $this->token;\n\t\t\t$_SESSION['token_time'] = $this->time;\n\t\t\t$_SESSION['token_referer'] = $this->$referer;\n\t\t}\n\t}", "public function set()\n\t{\n\t\t$this->created_at = date(TIMESTAMP_FORMAT);\n $user = new SessionUser();\n\t\t$this->created_by = $user->getID();\t\t\n\t}", "protected function setVarToTemplates()\n {\n $this->templates->set_tpl($this->varName, $this->checkNewCommondaty());\n }", "private function setRoundTripTime(string $rtt): void\n {\n $this->round_trip_time = $this->parseRoundTripTime($rtt);\n }", "public function setTempatLahirAttribute($tempat_lahir)\n {\n $this->attributes['tempat_lahir'] = trim(strtolower($tempat_lahir));\n }", "public function setTeksti($var){\n\t\t$this->teksti=$var;\n\t}", "protected function setUp() {\n\t\tparent::setUp();\n\n\t\t$this->object = new Transit($this->data);\n\t\t$this->object->setDirectory(TEMP_DIR);\n\t}", "public function testSetTaux1() {\n\n $obj = new Employes();\n\n $obj->setTaux1(10.092018);\n $this->assertEquals(10.092018, $obj->getTaux1());\n }", "public function testSetTaux3() {\n\n $obj = new Employes();\n\n $obj->setTaux3(10.092018);\n $this->assertEquals(10.092018, $obj->getTaux3());\n }", "public function getCodeUniteTempsTravail() {\n return $this->codeUniteTempsTravail;\n }", "public function testSetCompteTiers() {\n\n $obj = new Employes();\n\n $obj->setCompteTiers(\"compteTiers\");\n $this->assertEquals(\"compteTiers\", $obj->getCompteTiers());\n }", "protected function setTo() {}", "public function setoran_tunai()\n\t{\n\t\t$data['container'] = 'transaction/setoran_tunai';\n\t\t$data['rembugs'] = $this->model_cif->get_cm_data();\n\t\t$data['current_date'] = $this->format_date_detail($this->current_date(),'id',false,'/');\n\t\t$data['account_cash'] = $this->model_transaction->get_account_cash();\n\t\t$this->load->view('core',$data);\n\t}", "public function setEtabLieuTravail($etabLieuTravail) {\n $this->etabLieuTravail = $etabLieuTravail;\n return $this;\n }", "public function set()\n {\n // to reflect the current bar.\n\n // Why?\n\n // Otherwise the bar count gets repeated. And that people notice.\n\n $this->variables->setVariable(\"count\", $this->bar_count);\n $this->variables->setVariable(\"max_bar_count\", $this->max_bar_count);\n\n $this->variables->setVariable(\"refreshed_at\", $this->current_time);\n }", "public function setTemps($temps)\n {\n $this->temps = $temps;\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 testSetTelPoste() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPoste(\"telPoste\");\n $this->assertEquals(\"telPoste\", $obj->getTelPoste());\n }", "private function set_temp_value($key = '', $content = '', $TTL = NULL) {\n\n\n if (strlen($TTL) == 0) {\n /*\n * Set default TTL if none supplied\n */\n $TTL = self::TEMP_TTL;\n }\n\n /*\n * Set cache expire TS\n */\n $expiresAt = time() + $TTL;\n\n\n /*\n * We store TMP data within current session; feel free to move to another 'storage' target if you prefer (memcached, apc, ...)\n */\n $_SESSION[$key] = array(\n 'expiresAt' => $expiresAt,\n 'content' => $content\n );\n\n return TRUE;\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 testSetEtblTel() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblTel(\"etblTel\");\n $this->assertEquals(\"etblTel\", $obj->getEtblTel());\n }", "private function setVarToTemplate()\n\t{\n\t\t$this->view->set('grid', $this->gridState);\n\n\t\t// Set variable with shot message to template\n\t\t$this->view->set('shotMessage', $this->shotMessage);\n\n\t\t// Set variable with final message to template\n\t\t$this->view->set('finalMessage', $this->finalMessage);\n\n\t\t// Set variable with grid row count to template\n\t\t$this->view->set('gridRowCount', $this->gridRow);\n\n\t\t// Set variable with grid colum count to template\n\t\t$this->view->set('gridColCount', $this->gridCol);\n\t}", "public function testSetTaux4() {\n\n $obj = new Employes();\n\n $obj->setTaux4(10.092018);\n $this->assertEquals(10.092018, $obj->getTaux4());\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 setTicketSystem(?string $value): void {\n $this->getBackingStore()->set('ticketSystem', $value);\n }", "public function testSetTds125() {\n\n $obj = new Employes();\n\n $obj->setTds125(10.092018);\n $this->assertEquals(10.092018, $obj->getTds125());\n }", "protected function setTask(TM_Task_Task $value)\n {\n $this->_task = $value;\n\n }", "public function __construct(Teacher $teacher, $temp_pass)\n {\n $this->teacher = $teacher;\n $this->temp_pass = $temp_pass;\n }", "public function test_temporary_data_with_timeout() {\n\t\t$key = rand_str();\n\t\t$value = rand_str();\n\n\t\t$this->assertFalse( get_site_option( '_site_temporary_timeout_' . $key ) );\n\n\t\t$now = time();\n\n\t\t$this->assertTrue( WP_Temporary::set_site( $key, $value, 100 ) );\n\n\t\t// Ensure the temporary timeout is set for 100-101 seconds in the future.\n\t\t$this->assertGreaterThanOrEqual( $now + 100, get_site_option( '_site_temporary_timeout_' . $key ) );\n\t\t$this->assertLessThanOrEqual( $now + 101, get_site_option( '_site_temporary_timeout_' . $key ) );\n\n\t\t// Update the timeout to a second in the past and watch the temporary be invalidated.\n\t\t$this->assertEquals( $value, WP_Temporary::get_site( $key ) );\n\t\tupdate_site_option( '_site_temporary_timeout_' . $key, $now - 1 );\n\t\t$this->assertFalse( WP_Temporary::get_site( $key ) );\n\t}", "public function setData()\n {\n $this->data=new \\DateTime('now');\n\n }", "public function testSetNbHeureTrav() {\n\n $obj = new Employes();\n\n $obj->setNbHeureTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureTrav());\n }", "private function setTemplate(){\n if (isset($this->data['template']) && !empty($this->data['template'])){\n $template = APP_ROOT.'/app/templates/'.trim($this->data['template']).'.tpl';\n if (file_exists($template)){\n $this->template = $template;\n return;\n }\n }\n //default\n $this->template = APP_ROOT.'/app/templates/default.tpl';\n }", "public function set_data($r){\n if($r->stn_number == ''){ $this->complete = false; }\n\n //setting trip_id\n $this->trip_id = $r->trip_id;\n //calculating total_freight\n $this->total_freight += ($r->product_quantity * $r->freight_unit);\n //calculating total_freight_for_company\n $this->total_freight_for_company += ($r->company_freight_unit * $r->product_quantity);\n //setting tip_unique_data (this class variables)\n $this->customerId = $r->customer_id;\n $this->customerName = $r->customerName;\n\n $this->contractorId = $r->contractor_id ;\n $this->contractorName = $r->contractorName ;\n\n $this->companyId = $r->company_id ;\n $this->companyName = $r->companyName ;\n\n $this->tanker_id = $r->tanker_id ;\n $this->tanker_number = $r->tanker_number ;\n\n $this->entry_date = $r->entryDate ;\n $this->filling_date = $r->filling_date ;\n $this->receiving_date = $r->receiving_date ;\n $this->decanding_date = $r->decanding_date ;\n $this->stn_receiving_date = $r->stn_receiving_date ;\n $this->email_date = $r->email_date ;\n $this->invoice_date = $r->invoice_date ;\n\n $this->contractor_commission = $r->contractor_commission ;\n $this->contractor_commission_2 = $r->contractor_commission_2 ;\n $this->company_commission_1 = $r->company_commission_1 ;\n $this->company_commission_2 = $r->company_commission_2 ;\n $this->company_commission_3 = $r->company_commission_3 ;\n $this->company_freight = ($r->company_commission_1 +$r->company_commission_2+ $r->company_commission_3);\n\n $this->customer_freight = 100 - $this->contractor_commission;\n\n $this->driver_id_1 = $r->driver_id_1 ;\n $this->driver_name_1 = $r->driver_2_name ;\n\n $this->driver_id_2 = $r->driver_id_2 ;\n $this->driver_name_2 = $r->driver_2_name ;\n\n $this->driver_id_3 = $r->driver_id_3 ;\n $this->driver_name_3 = $r->driver_3_name ;\n\n $this->invoice_number = $r->invoice_number;\n\n $this->paid_to_customer = ($r->paid_to_customer != '')?$r->paid_to_customer:0;\n $this->payment_to_customer_date = $r->payment_to_customer_date;\n }", "public function isTemp($set = null) {\n\t\treturn $this->pagefiles->isTemp($this, $set); \n\t}", "protected function setUp(): void\n {\n $this->test_file = tempnam(sys_get_temp_dir(), 'php');\n }", "private function set_details() {\n if ($this->type != 'delivery') {\n $meetup = $this->retrieve([\n 'where' => [\n 'id' => $this->type,\n ],\n 'table' => 'meetups'\n ]);\n \n $this->time = \"{$meetup[0]['day']} {$meetup[0]['start_time']} - {$meetup[0]['end_time']}\";\n\n $this->update([\n 'time' => $this->time,\n ]);\n }\n }", "public function setSchedule ()\n {\n $this->loadComponent('DateTime');\n $this->loadModel('ScheduleTime');\n $data = $this->Auth->user();\n $id_fortune = $data['id'];\n $days = $this->DateTime->allDayInWeek();\n $months = $this->DateTime->allDayInMonth();\n $times = $this->ScheduleTime->getListTime();\n if ($this->Check->isId($id_fortune)) {\n $this->set([\n 'times' => $times,\n 'days' => $months,\n 'id' => $id_fortune\n ]);\n } else{\n $this->Flash->error(__('Id not found'));\n }\n }", "public function setTempDirManager( TempDirManager $manager ) {\n\t\t$this->tempDirManager = $manager;\n\t}", "protected function resetFrontendEnvironment() {\n\t\t$GLOBALS['TSFE'] = $this->tsfeBackup;\n\t\tchdir($this->workingDirectoryBackup);\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 setUseTime($use_time) \n \t{\n \t\t$this->use_time = $use_time;\n \t}", "public function testSetTxHoraireTp() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setTxHoraireTp(10.092018);\n $this->assertEquals(10.092018, $obj->getTxHoraireTp());\n }", "public function __construct(TempPassword $tempPassword)\n {\n $this->tempPassword = $tempPassword;\n }", "public function setTstamp($tstamp) {\n\t\t$this->tstamp = $tstamp;\n\t}", "public static function assignTemplate($key,$t) {\r\n\t\tself::assign($key,self::fetch($t));\r\n\t}", "private function set_env(){\n ini_set(\"memory_limit\", \"256M\");\n ini_set(\"max_execution_time\", 3000);\n }", "public function test_temporary_add_timeout() {\n\t\t$key = rand_str();\n\t\t$value = rand_str();\n\t\t$value2 = rand_str();\n\n\t\t$this->assertTrue( WP_Temporary::set_site( $key, $value ) );\n\t\t$this->assertEquals( $value, WP_Temporary::get_site( $key ) );\n\t\t$this->assertFalse( get_site_option( '_site_temporary_timeout_' . $key ) );\n\n\t\t$now = time();\n\n\t\t// Add timeout to existing timeout-less temporary.\n\t\t$this->assertTrue( WP_Temporary::set_site( $key, $value2, 1 ) );\n\t\t$this->assertGreaterThanOrEqual( $now, get_site_option( '_site_temporary_timeout_' . $key ) );\n\n\t\t$this->assertEquals( $value2, WP_Temporary::get_site( $key ) );\n\t\tupdate_site_option( '_site_temporary_timeout_' . $key, $now - 1 );\n\t\t$this->assertFalse( WP_Temporary::get_site( $key ) );\n\t}" ]
[ "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.4911975", "0.49067044", "0.49009985", "0.48978412", "0.48843575", "0.486747", "0.48642173", "0.48479575", "0.48422167", "0.4832859", "0.4831246", "0.48295027", "0.48217857", "0.48069036", "0.47892612", "0.47874144", "0.47827935", "0.4781388", "0.47644782", "0.4761218", "0.47545198", "0.4752109", "0.47510734", "0.47287285", "0.47176808", "0.47144943", "0.47094697", "0.47001037", "0.4698265", "0.46855825", "0.46582022", "0.46549562", "0.46497786", "0.4633894", "0.4631567", "0.46172547", "0.4611507", "0.460922", "0.46089643", "0.46085966", "0.4605526", "0.46045876", "0.46010742", "0.46004683", "0.45995998", "0.45989287", "0.45924625", "0.4592415", "0.45848343", "0.45815286", "0.45777652", "0.45714718", "0.45649266", "0.45640442", "0.45633903", "0.4558583", "0.4556424", "0.45515373", "0.45372164", "0.4537001", "0.45332995", "0.4528399", "0.4526081", "0.45237917", "0.4522163", "0.4517207", "0.45134282", "0.45132375", "0.45132002", "0.45059288" ]
0.6356814
0
Set the type attestation.
public function setTypeAttestation($typeAttestation) { $this->typeAttestation = $typeAttestation; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setType($type) {\n $this->type = $type;\n }", "public function setType($t){\n $this->type = $t;\n }", "public function setType($type) {}", "function setType($type) {\n\t\t$this->_type = $type;\n\t}", "function setType($type) {\n\t\t$this->_type = $type;\n\t}", "public function setType($type)\n {\n parent::setAttr(\"type\", $type);\n }", "public function setType($type) {\n $this->type = $type;\n }", "public function setType($type) {\n $this->type = $type;\n }", "public function setType($type) {\n $this->type = $type;\n }", "public function setType($type) {\n $this->type = $type;\n }", "public function setType($type) {\n $this->type = $type;\n }", "public function setType($type)\r\n {\r\n $this->type = $type;\r\n }", "public function setType($type){ }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n\t{\n\t\t$this->type = $type;\n\t}", "public function setType($type)\n\t{\n\t\t$this->type = $type;\n\t}", "public function setType($type);", "public function setType($type);", "public function setType($type);", "public function setType($type);", "public function setType($type);", "public function setType($type);", "public function setType($type);", "public function setType($type);", "public function setType( $type ) {\n\n\t\t$this->type = $type;\n\t}", "public function setType($type)\n\t{\n\t\t$this->_type = $type;\n\t}", "public function setType($type)\n\t{\n\t\t$this->_type = $type;\n\t}", "function setType($type = \"\")\n\t\t{\n\t\t\t$this->type = $type;\n\t\t}", "public function setType( $type )\n {\n }", "public function setTyp( $type );", "public function setType(?string $type): void\n {\n }", "public function setType(?string $type): void;", "public function SetType($type){\r\r\n\t\t$this->type = (string) $type;\r\r\n\t}", "public function SetType($type){\r\n\t\t$this->type = (string) $type;\r\n\t}", "public function setType(?string $type): void\n {\n $this->type = $type;\n }", "public function setType(?string $type): void\n {\n $this->type = $type;\n }", "public function setType($type) {\n\t\t$this->data['type'] = $type;\n\t}", "public function setType($type)\n {\n $this['type'] = $type;\n }", "protected function setType(int $type):void {\r\n\t\t$this->type = $type;\r\n\t}", "public function setType(string $type);", "public function setType(string $type): void\n {\n $this->type = $type;\n }", "public function setType(string $type): void\n {\n $this->type = $type;\n }", "function setType($a_type)\n\t{\n\t\t$this->il_type = $a_type;\n\t}", "protected function setType()\n {\n $this->client_type = $this->getType();\n }", "public function set_type( $type ) {\n\t\t$this->set_prop( 'type', sanitize_title( $type ) ) ;\n\t}", "public function setTypeAttribute($value)\n {\n $this->attributes['type'] = $value;\n }", "public function setType(string $type)\n {\n $this->type = $type;\n }", "function setInitiateType( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->InitiateType = $value;\n }", "public function setType(TM_Attribute_AttributeType $value)\n {\n $this->_type = $value;\n }", "public function set_type($type)\n {\n $this->set_default_property(self::PROPERTY_TYPE, $type);\n }", "function setType($type) {\n\t\treturn $this->type = $type;\n\t}", "public function setType($aType) {\n $this->type = $aType;\n }", "public function set_type($type) {\n $this->update([\n 'type' => $type\n ]);\n\n $this->type = $type;\n\n // finish configuring this OrderExchange\n $this->sync();\n }", "public function setType($Type) \n {\n $this->Type = $Type;\n }", "protected function set_type() {\n\n\t\t\t$this->type = 'kirki-editor';\n\n\t\t}", "public function setTypeAttribute($type)\n {\n $this->attributes['type'] = str_replace(array(' '),'_',$type);\n }", "protected function set_type() {\n\t\t$this->type = 'kirki-color';\n\t}", "public function setType($type)\n\t{\n\t\t$this->type = ky_assure_constant($type, $this, 'TYPE');\n\t\treturn $this;\n\t}", "public function setType($type) {\n\t\tif($type == self::TYPE_TEXT){\n\t\t\t$this->type = self::TYPE_TEXT;\n\t\t} else {\n\t\t\t$this->type = self::TYPE_HTML;\n\t\t}\n\t}", "function setType($value)\n {\n $this->setAttribute(\"type\", $value);\n return $this;\n }", "public function setInputType($value)\n {\n $this->_config->set('inputType', $value);\n }", "public function setDefaultType($type);", "function setAuthType($authtype){\n $this->authType=$authtype;\n }", "function setAuthType($authtype){\n $this->authType=$authtype;\n }", "public function setType($type)\n {\n $this->type = $type;\n\n return $this;\n }", "protected function assignType()\n {\n $this->type = 'master';\n }", "protected function assignType()\n {\n $this->type = 'master';\n }", "public function setType($string)\r\n {\r\n $this->_type = $string;\r\n }", "public function setUserType($type)\n\t{\n\t\t$this->type = $type;\n\t}", "public function setType($type)\r\n\t{\r\n\t\t// Check the type\r\n\t\t$type = strtolower($type);\r\n\t\tif(!in_array($type, $this->allowed_types))\r\n\t\t{\r\n\t\t\t$type = 'varchar'; // default to varchar\r\n\t\t}\r\n\t\t\r\n\t\t$name \t\t= 'tienda';\r\n\t\t$eav_suffix = 'eavvalues';\r\n\t\t$this->type = $type;\r\n\t\t\r\n\t\t// Set the correct suffix\r\n\t\t$this->set( '_suffix', $eav_suffix.$type );\r\n\t\t$tbl_name = \"#__{$name}_{$eav_suffix}{$type}\";\r\n\t\t$this->_tbl = $tbl_name;\r\n\t\t\r\n\t\t// Now set the properties!\r\n\t\t$this->setTableProperties();\r\n\t\t\r\n\t\t// Table Type defined: Activate the table\r\n\t\t$this->active = true;\r\n\t}", "function setAuthType($authtype){\r\n\t\t$this->authType=$authtype;\r\n\t}", "public function setAttribute($type, $value)\n {\n $this->attributes[$type] = $value;\n }", "public function setType(string $type): self;", "public function setType(string $type): self;", "public function setType($type = null)\n {\n $this->type = $type ?? $this->default_type;\n }", "public function setTypeAttribute($value)\n {\n if(!intval($value)){\n $this->attributes['type'] = self::typeToValue($value);\n }else{\n $this->attributes['type'] = $value;\n }\n }", "public function setType(?string $value): void {\n $this->getBackingStore()->set('type', $value);\n }", "public function setType(Type $type = null)\n {\n $this->type = $type;\n }", "public function setTypeAttribute($newValue) {\n $type = NodeType::get($newValue);\n $this->attributes['type'] = $type->getValue();\n }", "public function setAttackType($val)\n {\n $this->_propDict[\"attackType\"] = $val;\n return $this;\n }", "public function setType()\n {\n return;\n }", "function setTaxonomyType($setTaxType) {\n $this->taxonomyType = $setTaxType;\n }", "public function setTypeAttribute($value)\n\t{\n\t\t$this->attributes['type'] = ($value == 'Part' || $value == 'part') ? 'part' : 'product';\n\t}", "public function setType($type)\n {\n $this->type = $type;\n\n return $this;\n }", "public function setup_types()\n {\n }", "public function setType($type) {\n\t\t$this->type = substr($type, 0, 10);\n\t\treturn true;\n\t}", "public function set_type($type) {\n if (!is_string($type)) { return false; }\n $this->_type = $type;\n return true;\n }", "private function setType($type)\n\t\t{\n\t\t\tif(is_null($this->type) && is_int($type))\n\t\t\t{\n\t\t\t\t$this->type = $type;\n\t\t\t}\n\t\t\telseif(!is_int($type))\n\t\t\t{\n\t\t\t\tthrow new \\Exception('Statement.setType(): This method only accepts integer values. ' . $type . ' given.');\t\n\t\t\t}\n\t\t}", "public function setType($type)\n {\n $this->type = $type;\n\n return $this;\n }", "public function setDataType(?string $value): void {\n $this->getBackingStore()->set('dataType', $value);\n }", "private function _setApplicationTypeByDevice()\n {\n $_device = $this->_getObjectMobile_detector();\n\n if($_device->isTablet()){\n $this->_deviceType = DEVICE_TYPE_TABLET;\n }elseif($_device->isMobile()){\n $this->_deviceType = DEVICE_TYPE_MOBILE;\n }else{\n $this->_deviceType = DEVICE_TYPE_DESKTOP;\n }\n }", "public function getTypeAttestation() {\n return $this->typeAttestation;\n }" ]
[ "0.71422905", "0.71036786", "0.704833", "0.7044147", "0.7044147", "0.7034061", "0.7014683", "0.7014683", "0.7014683", "0.69794303", "0.69794303", "0.6978862", "0.69111586", "0.6901483", "0.6901483", "0.6901483", "0.6901483", "0.6901483", "0.6901483", "0.6901483", "0.6901483", "0.6901483", "0.68698925", "0.68698925", "0.68617356", "0.68617356", "0.68617356", "0.68617356", "0.68617356", "0.68617356", "0.68617356", "0.68617356", "0.6812532", "0.6800627", "0.6800627", "0.6792021", "0.6758451", "0.6755195", "0.6735855", "0.6732061", "0.67242247", "0.6698805", "0.66952306", "0.66952306", "0.6683012", "0.66635305", "0.6613324", "0.6571644", "0.6571374", "0.6571374", "0.6520939", "0.6491285", "0.6488425", "0.64721686", "0.64394647", "0.6409503", "0.639571", "0.6376682", "0.6293338", "0.62798756", "0.624109", "0.6235263", "0.62253267", "0.61716676", "0.61710024", "0.6127098", "0.6107994", "0.60736567", "0.60715055", "0.6047041", "0.6043636", "0.6043636", "0.60385996", "0.6015173", "0.6015173", "0.60059917", "0.5990996", "0.59878826", "0.598387", "0.5981995", "0.597579", "0.597579", "0.596718", "0.59598184", "0.5946339", "0.59434503", "0.592382", "0.5915913", "0.5906619", "0.58973634", "0.58881396", "0.5877638", "0.58581203", "0.585541", "0.58541006", "0.58435726", "0.5842266", "0.58387166", "0.58304155", "0.58288205" ]
0.6737146
38
Seed the application's database.
public static function likeUniqueSeeding(){ for ($i=0;$i = 10000; $i++){ try{ Like::factory()->create([ 'user_id' => User::pluck('id')->random(), 'post_id' => Post::pluck('id')->random(), 'vote_type' => 'up' ]); } catch(Exception $e){ DatabaseSeeder::likeUniqueSeeding(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function dbSeed(){\n\t\tif (App::runningUnitTests()) {\n\t\t\t//Turn foreign key checks off\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');// <- USE WITH CAUTION!\n\t\t\t//Seed tables\n\t\t\tArtisan::call('db:seed');\n\t\t\t//Turn foreign key checks on\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;');// <- SHOULD RESET ANYWAY BUT JUST TO MAKE SURE!\n\t\t}\n\t}", "protected function seedDB()\n {\n $ans = $this->ask('Seed your database?: ', 'y');\n\n // Check if the answer is true\n if (preg_match('/^y/', $ans))\n {\n $this->call('db:seed');\n $this->comment('');\n $this->comment('Database successfully seeded.');\n $this->comment('=====================================');\n echo \"Your app is now ready!\";\n }\n }", "protected function seedDatabase(): void\n {\n $this->seedProductCategories();\n $this->seedProducts();\n }", "public function setupDatabase()\n {\n Artisan::call('migrate:refresh');\n Artisan::call('db:seed');\n\n self::$setupDatabase = false;\n }", "public function run()\n {\n $this->seed('FormsMenuItemsTableSeeder');\n $this->seed('FormsDataTypesTableSeeder');\n $this->seed('FormsDataRowsTableSeeder');\n $this->seed('FormsPermissionsTableSeeder');\n $this->seed('FormsSettingsTableSeeder');\n $this->seed('FormsTableSeeder');\n }", "public function run()\n {\n if (defined('STDERR')) fwrite(STDERR, print_r(\"\\n--- Seeding ---\\n\", TRUE));\n\n if (App::environment('production')) {\n if (defined('STDERR')) fwrite(STDERR, print_r(\"--- ERROR: Seeding in Production is prohibited ---\\n\", TRUE));\n return;\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(ConfigsTableSeeder::class);\n $this->call(ConfigContentsTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n if (defined('STDERR')) fwrite(STDERR, print_r(\"Set FOREIGN_KEY_CHECKS=1 --- DONE\\n\", TRUE));\n\n // \\Artisan::call('command:regenerate-user-feeds');\n\n \\Cache::flush();\n\n if (defined('STDERR')) fwrite(STDERR, print_r(\"--- End Seeding ---\\n\\n\", TRUE));\n }", "protected function setupDatabase()\n {\n $this->call('migrate');\n $this->call('db:seed');\n\n $this->info('Database migrated and seeded.');\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function seedDatabase(): void\n {\n echo \"Running seeds\";\n\n // Folder where all the seeds are.\n $folder = __DIR__ . '/../seeds/';\n\n // Scan all files/folders inside database.\n $files = \\scandir($folder);\n\n $seeders = [];\n foreach ($files as $key => $file) {\n\n // All files that don't start with a dot.\n if ($file[0] !== '.') {\n\n // Load the file.\n require_once $folder . $file;\n\n // We have to call the migrations after because\n // some seeds are dependant from other seeds.\n $seeders[] = explode('.', $file)[0];\n }\n }\n\n // Run all seeds.\n foreach ($seeders as $seeder) {\n (new $seeder)->run();\n }\n }", "protected function seedDatabase()\n {\n //$this->app->make('db')->table(static::TABLE_NAME)->delete();\n\n TestExtendedModel::create([\n 'unique_field' => '999',\n 'second_field' => null,\n 'name' => 'unchanged',\n 'active' => true,\n 'hidden' => 'invisible',\n ]);\n\n TestExtendedModel::create([\n 'unique_field' => '1234567',\n 'second_field' => '434',\n 'name' => 'random name',\n 'active' => false,\n 'hidden' => 'cannot see me',\n ]);\n\n TestExtendedModel::create([\n 'unique_field' => '1337',\n 'second_field' => '12345',\n 'name' => 'special name',\n 'active' => true,\n 'hidden' => 'where has it gone?',\n ]);\n }", "public function initDatabase()\n {\n $this->call('migrate');\n\n $userModel = config('admin.database.users_model');\n\n if ($userModel::count() == 0) {\n $this->call('db:seed', ['--class' => AdminSeeder::class]);\n }\n }", "public function run ()\n {\n if (App::environment() === 'production') {\n exit('Seed should be run only in development/debug environment.');\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('role_user')->truncate();\n\n // Root user\n $user = User::find(1);\n $user->assignRole('owner');\n\n $user = User::find(2);\n $user->assignRole('admin');\n\n $user = User::find(3);\n $user->assignRole('admin');\n\n $user = User::find(4);\n $user->assignRole('moderator');\n\n $user = User::find(5);\n $user->assignRole('moderator');\n \n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n Model::unguard();\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(EntrustTableSeeder::class);\n\n $this->call(AccounttypeSeeder::class);\n $this->call(AppUserTableSeeder::class);\n $this->call(AppEmailUserTableSeeder::class);\n\n\n $this->call(CountryTableSeeder::class);\n $this->call(CityTableSeeder::class);\n\n\n $this->call(PostTypeTableSeeder::class);\n $this->call(PostSubTypeTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(AppPostSolvedTableSeeder::class);\n\n\n $this->call(AppCommentTypeTableSeeder::class);\n // $this->call(AppCommentTableSeeder::class);\n // $this->call(AppSubCommentTableSeeder::class);\n\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }\n\n Model::reguard();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('users')->truncate();\n DB::table('password_resets')->truncate();\n DB::table('domains')->truncate();\n DB::table('folders')->truncate();\n DB::table('bookmarks')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $this->seedUserAccount('[email protected]');\n $this->seedUserAccount('[email protected]');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n // $this->call(UsersTableSeeder::class);\n /* Schema::dropIfExists('employees');\n Schema::dropIfExists('users');\n Schema::dropIfExists('requests');\n Schema::dropIfExists('requeststatus');*/\n User::truncate();\n InstallRequest::truncate();\n RequestStatus::truncate();\n\n $cantidadEmployyes = 20;\n $cantidadUsers = 20;\n $cantidadRequestStatus = 3;\n $cantidadRequests = 200;\n\n factory(User::class, $cantidadUsers)->create();\n factory(RequestStatus::class, $cantidadRequestStatus)->create();\n factory(InstallRequest::class, $cantidadRequests)->create();\n }", "public function run()\n {\n Model::unguard();\n foreach (glob(__DIR__ . '/seeds/*.php') as $filename) {\n require_once($filename);\n }\n // $this->call(UserTableSeeder::class);\n //DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n// $this->call('CustomerTableSeeder');\n $this->call('PhotoTableSeeder');\n// $this->call('ProductTableSeeder');\n// $this->call('StaffTableSeeder');\n// $this->call('PasswordResetsTableSeeder');\n// $this->call('UsersTableSeeder');\n $this->call('CustomersTableSeeder');\n $this->call('EmployeesTableSeeder');\n $this->call('InventoryTransactionTypesTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n $this->call('OrderDetailsStatusTableSeeder');\n $this->call('OrdersTableSeeder');\n $this->call('InvoicesTableSeeder');\n $this->call('OrdersTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n $this->call('OrdersStatusTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n\n $this->call('OrdersTaxStatusTableSeeder');\n $this->call('PrivilegesTableSeeder');\n $this->call('EmployeePrivilegesTableSeeder');\n $this->call('ProductsTableSeeder');\n $this->call('InventoryTransactionsTableSeeder');\n $this->call('PurchaseOrderDetailsTableSeeder');\n\n $this->call('PurchaseOrderStatusTableSeeder');\n $this->call('PurchaseOrdersTableSeeder');\n $this->call('SalesReportsTableSeeder');\n $this->call('ShippersTableSeeder');\n $this->call('StringsTableSeeder');\n $this->call('SuppliersTableSeeder');\n //DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n Model::reguard();\n }", "public function run()\n\t{\n $this->cleanDatabase();\n\n Eloquent::unguard();\n\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('ProductsTableSeeder');\n\t\t$this->call('CartsTableSeeder');\n $this->call('StoreTableSeeder');\n $this->call('AdvertisementsTableSeeder');\n \n\t}", "public function run()\n {\n \tDB::table('seeds')->truncate();\n\n $seeds = array(\n array(\n 'name' => 'PreferencesTableSeeder_Update_11_18_2013',\n ),\n array(\n 'name' => 'PreferencesTableSeeder_Update_11_20_2013',\n ),\n );\n\n // Uncomment the below to run the seeder\n DB::table('seeds')->insert($seeds);\n }", "public function run()\n {\n $this->createDefaultPermissionSeeder(env('DB_CONNECTION', 'mysql'));\n }", "public function run()\n {\n $this->createDefaultPermissionSeeder(env('DB_CONNECTION', 'mysql'));\n }", "protected function setUp(): void\n {\n $db = new DB;\n\n $db->addConnection([\n 'driver' => 'sqlite',\n 'database' => ':memory:',\n ]);\n\n $db->bootEloquent();\n $db->setAsGlobal();\n\n $this->createSchema();\n }", "public function run()\n {\n //$this->call('UserTableSeeder');\n //$this->call('ProjectTableSeeder');\n //$this->call('TaskTableSeeder');\n\n /**\n * Prepare seeding\n */\n $faker = Faker::create();\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n Model::unguard();\n\n /**\n * Seeding user table\n */\n App\\User::truncate();\n factory(App\\User::class)->create([\n 'name' => 'KCK',\n 'email' => '[email protected]',\n 'password' => bcrypt('password')\n ]);\n\n /*factory(App\\User::class, 9)->create();\n $this->command->info('users table seeded');*/\n\n /**\n * Seeding roles table\n */\n Spatie\\Permission\\Models\\Role::truncate();\n DB::table('model_has_roles')->truncate();\n $superAdminRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '최고 관리자'\n ]);\n $adminRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '관리자'\n ]);\n $regularRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '정회원'\n ]);\n $associateRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '준회원'\n ]);\n\n App\\User::where('email', '!=', '[email protected]')->get()->map(function ($user) use ($regularRole) {\n $user->assignRole($regularRole);\n });\n\n App\\User::whereEmail('[email protected]')->get()->map(function ($user) use ($superAdminRole) {\n $user->assignRole($superAdminRole);\n });\n $this->command->info('roles table seeded');\n\n /**\n * Seeding articles table\n */\n App\\Article::truncate();\n $users = App\\User::all();\n\n $users->each(function ($user) use ($faker) {\n $user->articles()->save(\n factory(App\\Article::class)->make()\n );\n });\n $this->command->info('articles table seeded');\n\n /**\n * Seeding comments table\n */\n App\\Comment::truncate();\n $articles = App\\Article::all();\n\n $articles->each(function ($article) use ($faker, $users) {\n for ($i = 0; $i < 10; $i++) {\n $article->comments()->save(\n factory(App\\Comment::class)->make([\n 'author_id' => $faker->randomElement($users->pluck('id')->toArray()),\n //'parent_id' => $article->id\n ])\n );\n };\n });\n $this->command->info('comments table seeded');\n\n /**\n * Seeding tags table\n */\n App\\Tag::truncate();\n DB::table('article_tag')->truncate();\n $articles->each(function ($article) use ($faker) {\n $article->tags()->save(\n factory(App\\Tag::class)->make()\n );\n });\n $this->command->info('tags table seeded');\n\n /**\n * Seeding attachments table\n */\n App\\Attachment::truncate();\n if (!File::isDirectory(attachment_path())) {\n File::deleteDirectory(attachment_path(), true);\n }\n\n $articles->each(function ($article) use ($faker) {\n $article->attachments()->save(\n factory(App\\Attachment::class)->make()\n );\n });\n\n //$files = App\\Attachment::pluck('name');\n\n if (!File::isDirectory(attachment_path())) {\n File::makeDirectory(attachment_path(), 777, true);\n }\n\n /*\n foreach ($files as $file) {\n File::put(attachment_path($file), '');\n }\n */\n\n $this->command->info('attachments table seeded');\n\n /**\n * Close seeding\n */\n Model::reguard();\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(CountriesTableSeeder::class);\n $this->call(StatesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n\n factory(Group::class)->create();\n factory(Contact::class, 5000)->create();\n }", "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t// $this->call('AdminTableSeeder');\n\t\t// $this->call('UserTableSeeder');\n\t\t// $this->call('MenuTableSeeder');\n\t\t// $this->call('ProductTableSeeder');\n\t\t// $this->call('CategoryTableSeeder');\n\t\t// $this->call('OptionTableSeeder');\n\t\t// $this->call('OptionGroupTableSeeder');\n\t\t// $this->call('TypeTableSeeder');\n\t\t// $this->call('LayoutTableSeeder');\n\t\t// $this->call('LayoutDetailTableSeeder');\n\t\t// $this->call('BannerTableSeeder');\n\t\t// $this->call('ConfigureTableSeeder');\n\t\t// $this->call('PageTableSeeder');\n\t\t// $this->call('ImageTableSeeder');\n\t\t// $this->call('ImageableTableSeeder');\n\t\t// ======== new Seed =======\n\t\t$this->call('AdminsTableSeeder');\n\t\t$this->call('BannersTableSeeder');\n\t\t$this->call('CategoriesTableSeeder');\n\t\t$this->call('ConfiguresTableSeeder');\n\t\t$this->call('ImageablesTableSeeder');\n\t\t$this->call('ImagesTableSeeder');\n\t\t$this->call('LayoutsTableSeeder');\n\t\t$this->call('LayoutDetailsTableSeeder');\n\t\t$this->call('MenusTableSeeder');\n\t\t$this->call('OptionablesTableSeeder');\n\t\t$this->call('OptionsTableSeeder');\n\t\t$this->call('OptionGroupsTableSeeder');\n\t\t$this->call('PagesTableSeeder');\n\t\t$this->call('PriceBreaksTableSeeder');\n\t\t$this->call('ProductsTableSeeder');\n\t\t$this->call('ProductsCategoriesTableSeeder');\n\t\t$this->call('SizeListsTableSeeder');\n\t\t$this->call('TypesTableSeeder');\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('ContactsTableSeeder');\n\t\t$this->call('RolesTableSeeder');\n\t\t$this->call('PermissionsTableSeeder');\n\t\t$this->call('PermissionRoleTableSeeder');\n\t\t$this->call('AssignedRolesTableSeeder');\n\t\t$this->call('OrdersTableSeeder');\n\t\t$this->call('OrderDetailsTableSeeder');\n\t\tCache::flush();\n\t\t// BackgroundProcess::copyFromVI();\n\t}", "public function run()\n {\n Model::unguard();\n\n User::create([\n 'email' => '[email protected]',\n 'name' => 'admin',\n 'password' => Hash::make('1234'),\n 'email_verified_at' => Carbon::now()\n ]);\n\n factory(User::class, 200)->create();\n\n // $this->call(\"OthersTableSeeder\");\n }", "public function run()\n {\n $this->seedRegularUsers();\n $this->seedAdminUser();\n }", "public function run()\n {\n if (\\App::environment() === 'local') {\n\n // Delete existing data\n\n\n Eloquent::unguard();\n\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // Truncate all tables, except migrations\n $tables = array_except(DB::select('SHOW TABLES'), ['migrations']);\n foreach ($tables as $table) {\n $tables_in_database = \"Tables_in_\" . Config::get('database.connections.mysql.database');\n DB::table($table->$tables_in_database)->truncate();\n }\n\n // supposed to only apply to a single connection and reset it's self\n // but I like to explicitly undo what I've done for clarity\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n //get roles\n $this->call('AccountSeeder');\n $this->call('CountrySeeder');\n $this->call('StateSeeder');\n $this->call('CitySeeder');\n $this->call('OptionSeeder');\n $this->call('TagSeeder');\n $this->call('PrintTemplateSeeder');\n $this->call('SettingsSeeder');\n\n\n\n if(empty($web_installer)) {\n $admin = Sentinel::registerAndActivate(array(\n 'email' => '[email protected]',\n 'password' => \"admin\",\n 'first_name' => 'Admin',\n 'last_name' => 'Doe',\n ));\n $admin->user_id = $admin->id;\n $admin->save();\n\n $adminRole = Sentinel::findRoleById(1);\n $adminRole->users()->attach($admin);\n }\n else {\n $admin = Sentinel::findById(1);\n }\n\n //add dummy staff and customer\n $staff = Sentinel::registerAndActivate(array(\n 'email' => '[email protected]',\n 'password' => \"staff\",\n 'first_name' => 'Staff',\n 'last_name' => 'Doe',\n ));\n $admin->users()->save($staff);\n\n foreach ($this->getPermissions() as $permission) {\n $staff->addPermission($permission);\n }\n $staff->save();\n\n $customer = Sentinel::registerAndActivate(array(\n 'email' => '[email protected]',\n 'password' => \"customer\",\n 'first_name' => 'Customer',\n 'last_name' => 'Doe',\n ));\n Customer::create(array('user_id' => $customer->id, 'belong_user_id' => $staff->id));\n $staff->users()->save($customer);\n\n //add respective roles\n\n $staffRole = Sentinel::findRoleById(2);\n $staffRole->users()->attach($staff);\n $customerRole = Sentinel::findRoleById(3);\n $customerRole->users()->attach($customer);\n\n\n\n DB::table('sales_teams')->truncate();\n DB::table('opportunities')->truncate();\n\n //Delete existing seeded users except the first 4 users\n User::where('id', '>', 3)->get()->each(function ($user) {\n $user->forceDelete();\n });\n\n //Get the default ADMIN\n $user = User::find(1);\n $staffRole = Sentinel::getRoleRepository()->findByName('staff');\n $customerRole = Sentinel::getRoleRepository()->findByName('customer');\n\n //Seed Sales teams for default ADMIN\n foreach (range(1, 4) as $j) {\n $this->createSalesTeam($user->id, $j, $user);\n $this->createOpportunity($user, $user->id, $j);\n }\n\n\n //Get the default STAFF\n $staff = User::find(2);\n $this->createSalesTeam($staff->id, 1, $staff);\n $this->createSalesTeam($staff->id, 2, $staff);\n\n //Seed Sales teams for each STAFF\n foreach (range(1, 4) as $j) {\n $this->createSalesTeam($staff->id, $j, $staff);\n $this->createOpportunity($staff, $staff->id, $j);\n }\n\n foreach (range(1, 3) as $i) {\n $staff = $this->createStaff($i);\n $user->users()->save($staff);\n $staffRole->users()->attach($staff);\n\n $customer = $this->createCustomer($i);\n $staff->users()->save($customer);\n $customerRole->users()->attach($customer);\n $customer->customer()->save(factory(\\App\\Models\\Customer::class)->make());\n\n\n //Seed Sales teams for each STAFF\n foreach (range(1, 5) as $j) {\n $this->createSalesTeam($staff->id, $j, $staff);\n $this->createOpportunity($staff, $i, $j);\n }\n\n }\n\n //finally call it installation is finished\n file_put_contents(storage_path('installed'), 'Welcome to LCRM');\n }\n }", "public function run()\n {\n if (env('DB_DATABASE') == 'connection') {\n Connection::create([\n \"ruc\" => \"12312312312\",\n \"basedata\" => \"nbdata2018_1\",\n ]);\n \n Connection::create([\n \"ruc\" => \"12312312315\",\n \"basedata\" => \"nbdata2018_2\",\n ]);\n \n $this->call(ConnectionTableSeeder::class);\n } else {\n $this->call(AppSeeder::class);\n }\n }", "public function setupDatabase()\n {\n exec('rm ' . storage_path() . '/testdb.sqlite');\n exec('cp ' . 'database/database.sqlite ' . storage_path() . '/testdb.sqlite');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n # truncates tables before seeding\n foreach ($this->toTruncate as $table) {\n DB::table($table)->delete();\n }\n\n factory(App\\Models\\Product::class, 25)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n Post::truncate();\n Comment::truncate();\n // CommentReply::truncate();\n \n\n\n factory(User::class,10)->create();\n factory(Post::class,20)->create();\n factory(Comment::class,30)->create();\n // factory(CommentReply::class,30)->create();\n }", "public function run()\n\t{\n \n Eloquent::unguard();\n //DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\t\t$this->call('UserTableSeeder');\n\t $this->call('LayerTableSeeder');\n $this->call('UserLevelTableSeeder');\n $this->call('RoleUserTableSeeder');\n $this->call('RoleLayerTableSeeder');\n $this->call('BookmarkTableSeeder');\n \n //DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = [email protected]\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n DB::statement('SET foreign_key_checks = 0');\n DB::table('topics')->truncate();\n\n factory(\\App\\Topic::class, 100)->create();\n // ->each(function($topic) {\n\n // // Seed para a relação com group\n // $topic->group()->save(factory(App\\Group::class)->make());\n\n // // Seed para a relação com topicMessages\n // $topic->topicMessages()->save(factory(App\\TopicMessage::class)->make());\n\n // // Seed para a relação com user\n // $topic->user()->save(factory(App\\User::class)->make());\n // });\n \n DB::statement('SET foreign_key_checks = 1');\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n Categoria::truncate();\n Atractivo::truncate();\n Galeria::truncate();\n User::truncate();\n\n $this->call(CategoriasTableSeeder::class);\n $this->call(AtractivosTableSeeder::class);\n $this->call(GaleriasTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n }", "public function run(Faker $faker)\n {\n Schema::disableForeignKeyConstraints();\n DB::table('users')->insert([\n 'name' => $faker->name(),\n 'email' => '[email protected]',\n 'password' => Hash::make('12345678'),\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n\t $this->call(CategoryTableSeed::class);\n\t $this->call(ProductTableSeed::class);\n\t $this->call(UserTableSeed::class);\n }", "public function run()\n {\n $this->cleanDatabase();\n\n factory(User::class, 50)->create();\n factory(Document::class, 30)->create();\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n \t// DB::table('webapps')->delete();\n\n $webapps = array(\n\n );\n\n // Uncomment the below to run the seeder\n // DB::table('webapps')->insert($webapps);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $tables = array(\n 'users',\n 'companies',\n 'stands',\n 'events',\n 'visitors',\n 'api_keys'\n );\n\n if (!App::runningUnitTests()) {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n }\n\n foreach ($tables as $table) {\n DB::table($table)->truncate();\n }\n\n $this->call(UsersTableSeeder::class);\n $this->call(EventsTableSeeder::class);\n $this->call(CompaniesTableSeeder::class);\n $this->call(StandsTableSeeder::class);\n $this->call(VisitorsTableSeeder::class);\n\n if (!App::runningUnitTests()) {\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n $clear = $this->command->confirm('Wil je de database leegmaken? (Dit haalt alle DATA weg)');\n\n if ($clear):\n $this->command->callSilent('migrate:refresh');\n $this->command->info('Database Cleared, starting seeding');\n endif;\n\n $this->call([\n SeedSeeder::class,\n RoleSeeder::class,\n UserSeeder::class,\n // BoardgameSeeder::class,\n BoardgamesTableSeeder::class,\n StatusSeeder::class,\n TournamentSeeder::class,\n AchievementsSeeder::class,\n TournamentUsersSeeder::class,\n ]);\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n $this->call(PaisSeeder::class);\n $this->call(DepartamentoSeeder::class);\n $this->call(MunicipioSeeder::class);\n $this->call(PersonaSeeder::class);\n }", "public function run()\n {\n //\n if (App::environment() === 'production') {\n exit('Do not seed in production environment');\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // disable foreign key constraints\n\n DB::table('events')->truncate();\n \n Event::create([\n 'id' => 1,\n 'name' => 'Spot Registration For Throat Cancer',\n 'cancerId' => 1,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addMonths(12),\n 'eventType'\t\t=> 'register',\n 'formId'\t\t=> null,\n ]);\n\n Event::create([\n 'id' => 2,\n 'name' => 'Spot Screening For Throat Cancer',\n 'cancerId' => 1,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addMonths(12),\n 'eventType'\t\t=> 'screen',\n 'formId'\t\t=> 1,\n ]);\n \n Event::create([\n 'id' => 3,\n 'name' => 'Spot Registration For Skin Cancer',\n 'cancerId' => 2,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addMonths(12),\n 'eventType'\t\t=> 'register',\n 'formId'\t\t=> null,\n ]);\n\n\n Event::create([\n 'id' => 3,\n 'name' => 'Registration cum Screening camp for Throat Cancer',\n 'cancerId' => 1,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addWeeks(1),\n 'eventType'\t\t=> 'register_screen',\n 'formId'\t\t=> 1,\n ]);\n \n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // Para que no verifique el control de claves foráneas al hacer el truncate haremos:\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n\t\t// Primero hacemos un truncate de las tablas para que no se estén agregando datos\n\t\t// cada vez que ejecutamos el seeder.\n\t\t//Foto::truncate();\n\t\t//Album::truncate();\n\t\t//Usuario::truncate();\n DB::table('users')->delete();\n DB::table('ciudades')->delete();\n DB::table('tiendas')->delete();\n DB::table('ofertas')->delete();\n DB::table('ventas')->delete();\n\n\n\t\t// Es importante el orden de llamada.\n\t\t$this->call('UserSeeder');\n $this->call('CiudadSeeder');\n\t\t$this->call('TiendaSeeder');\n $this->call('OfertaSeeder');\n $this->call('VentaSeeder');\n }", "public function run()\n {\n $this->call(\\Database\\Seeders\\GroupByRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\SingleIndexRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\MultiIndexRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\JoinFiveTablesSeeder::class);\n\n// DB::table('users')->truncate();\n// DB::table('user_details')->truncate();\n//\n// // 試しに一回流す\n// $data = $this->makeData(0, 'userFactory', 1);\n// DB::table('users')->insert($data);\n// $data = $this->makeData(0, 'userDetailFactory', 1);\n// DB::table('user_details')->insert($data);\n//\n// // $this->call(UsersTableSeeder::class);\n// DB::table('users')->truncate();\n// DB::table('user_details')->truncate();\n//\n// for ($i = 0; $i < 40; $i++) {\n// $data = $this->makeData($i, 'userFactory', 2500);\n// DB::table('users')->insert($data);\n// }\n//\n// for ($i = 0; $i < 40; $i++) {\n// $data = $this->makeData($i, 'userDetailFactory', 2500);\n// DB::table('user_details')->insert($data);\n// }\n }", "public function run()\n {\n $this->truncateTables([\n 'users',\n 'categories',\n 'types',\n 'courses',\n 'classrooms',\n 'contents',\n 'companies',\n ]);\n\n $this->call(CompanyTableSeeder::class);\n $this->call(TypeTableSeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(CategoryTableSeeder::class);\n $this->call(CoursesTableSeeder::class);\n $this->call(PermissionTableSeeder::class);\n $this->call(ContentTableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(ClassroomTableSeeder::class);\n $this->call(TestTableSeeder::class);\n $this->call(BankTableSeeder::class);\n\n\n // factory(\\App\\User::class, 50)\n // ->create()\n // ->each(function ($user) {\n // // $user->companies()->save();\n // $company = \\App\\Company::inRandomOrder()->first();\n // $user->companies()->attach($company->id);\n // $user->assignRole(['participante']);\n // });\n /*\n factory(\\App\\User::class, 50)\n ->create()\n ->each(function ($user) {\n $user->assignRole(['participante']);\n });*/\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Question::truncate();\n Option::truncate();\n// Answer::truncate();\n Quiz::truncate();\n QuizQuestion::truncate();\n\n //for admin\n $admin = factory(User::class)->create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'is_admin' => 1,\n ]);\n\n //for user\n $user = factory(User::class)->create([\n 'name' => 'User',\n 'email' => '[email protected]',\n ]);\n\n factory(Question::class, 100)->create()->each(function ($question) {\n factory(Option::class, mt_rand(2, 4))->create([\n 'question_id' => $question->id,\n ]);\n });\n\n factory(Quiz::class, 10)->create()->each(function ($quiz) {\n\n factory(QuizQuestion::class, mt_rand(5, 10))->create();\n });\n\n\n }", "public function run()\n {\n $this->call([\n SiteSettingsSeeder::class,\n LaratrustSeeder::class,\n CountrySeeder::class,\n GovernorateSeeder::class,\n FaqSeeder::class,\n SitePageSeeder::class,\n UsersSeeder::class,\n ]);\n\n Country::whereiso(\"EG\")->update(['enable_shipping' => true]);\n\n factory(User::class, 400)->create();\n\n Category::create([\n 'en' => [\n 'name' => \"cake tools\"\n ]\n ]);\n\n Category::create([\n 'en' => [\n 'name' => \"Party Supplies\"\n ]\n ]);\n\n $this->call([\n ProductCategorySeeder::class,\n ProductSeeder::class\n ]);\n }", "public function run()\n {\n $this->call(PermissionsTableSeeder::class);\n\n if (App::environment('local')) {\n $this->call(FakeUsersTableSeeder::class);\n $this->call(FakeArticlesTableSeeder::class);\n $this->call(FakeEventsTableSeeder::class);\n }\n }", "public function run()\n {\n Model::unguard();\n\n $this->call(CategoryTypesTableSeeder::class);\n $this->call(CategoryTableSeeder::class);\n $this->call(AccountTypesTableSeeder::class);\n $this->call(TransactionTypesTableSeeder::class);\n\n if (App::environment() !== 'production') {\n $this->call(UserTableSeeder::class);\n $this->call(AccountBudgetTableSeeder::class);\n $this->call(TransactionTableSeeder::class);\n }\n\n Model::reguard();\n }", "public function run()\n {\n User::truncate();\n Product::truncate();\n User::forceCreate([\n 'name' => 'foo',\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n ]);\n factory(User::class, 5)->create();\n factory(Product::class, 5)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n {\n $this->call([UsersTableSeeder::class]);\n $this->call([ContratosTableSeeder::class]);\n $this->call([UsuariosTableSeeder::class]);\n $this->call([UnidadesTableSeeder::class]);\n $this->call([AtestadosTableSeeder::class]);\n }", "public function run()\n {\n Model::unguard();\n\n // $this->call(\"OthersTableSeeder\");\n\n // DB::table('locations')->insert([\n // 'id' => 1,\n // 'name' => 'Default',\n // 'name' => 'district',\n // 'district_id' => 1,\n // 'province_id' => 1,\n // ]);\n }", "public function run()\n {\n $data = include env('DATA_SEED');\n\n \\Illuminate\\Support\\Facades\\DB::table('endpoints')->insert((array)$data);\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('admins')->truncate();\n\n for ($i = 0; $i < 10; $i++)\n {\n $faker = Factory::create('en_US');\n $values = [\n 'name' => $faker->userName,\n 'email' => $faker->freeEmail,\n 'password' => bcrypt($faker->password),\n 'phone' => $faker->phoneNumber,\n 'status' => random_int(0,1)\n ];\n admin::create($values);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n DB::beginTransaction();\n// $this->seed();\n DB::commit();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n \\DB::table('provinces')->delete();\n \\DB::table('cities')->delete();\n \\DB::table('districts')->delete();\n // import provinces and cities from sql file\n $sqlFile = app_path() . '/../database/raw/administrative_indonesia_without_districts.sql';\n DB::unprepared(file_get_contents($sqlFile));\n $this->command->info('Successfully seed Provinces and Cities!');\n\n // import districts with latitude and longitude from csv file\n $csvFile = app_path() . '/../database/raw/administrative_indonesia_districts_with_lat_lng.csv';\n $districts = $this->csvToArray($csvFile);\n // check if lat lng exists\n foreach ($districts as $i => $d) {\n if ($d['latitude'] == '') $districts[$i]['latitude'] = 0;\n if ($d['longitude'] == '') $districts[$i]['longitude'] = 0;\n }\n // insert it\n $insert = District::insert($districts);\n if ($insert) $this->command->info('Successfully seed Districts!');\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(RegionsTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(SubDistrictsTableSeeder::class);\n $this->call(PostcodesTableSeeder::class);\n\n if (env('APP_ENV') !== 'production') {\n // Wipe up 5 churches, and each church has 5 cells, and each cell has 20 members associated with.\n // In other word, we wipe up 500 church members.\n for ($i = 0; $i < 2; $i++) {\n $church = factory(\\App\\Models\\Church::class)->create();\n\n $church->areas()->saveMany(factory(\\App\\Models\\Area::class, 2)->create([\n 'church_id' => $church->id\n ])->each(function($area) {\n $area->cells()->saveMany(factory(\\App\\Models\\Cell::class, 2)->create([\n 'area_id' => $area->id\n ])->each(function($cell) {\n $cell->members()->saveMany(factory(App\\Models\\Member::class, 10)->create([\n 'cell_id' => $cell\n ]));\n }));\n }));\n }\n }\n }", "public function run()\n {\n User::create([\n 'name' => 'Regynald',\n 'email' => '[email protected]',\n 'password' => Hash::make('123456789'),\n 'url' => 'http://zreyleo-code.com',\n ]);\n\n User::create([\n 'name' => 'Leonardo',\n 'email' => '[email protected]',\n 'password' => Hash::make('123456789')\n ]);\n\n // seed sin model\n /* DB::table('users')->insert([\n 'name' => 'Regynald',\n 'email' => '[email protected]',\n 'password' => Hash::make('123456789'),\n 'url' => 'http://zreyleo-code.com',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ]); */\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->environmentPath = env('APP_ENV') === 'production' ||\n env('APP_ENV') === 'qa' ||\n env('APP_ENV') === 'integration' ?\n 'Production':\n 'local';\n //disable FK\n Model::unguard();\n DB::statement(\"SET session_replication_role = 'replica';\");\n\n // $this->call(HrEmployeeTableSeeder::class);\n $this->call(\"Modules\\HR\\Database\\Seeders\\\\$this->environmentPath\\HrEmployeePosTableSeeder\");\n // $this->call(HrEmployeePresetsDiscountTableSeeder::class);\n\n // Enable FK\n DB::statement(\"SET session_replication_role = 'origin';\");\n Model::reguard();\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "protected static function seed()\n {\n foreach (self::fetch('database/seeds', false) as $file) {\n Bus::need($file);\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n $faker = F::create('App\\Proovedores');\n for($i=0; $i < 10; $i++){\n DB::table('users')->insert([\n 'usuario' => $i,\n 'password' => $i,\n 'email' => $faker->email,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Delete all records.\n DB::table('users')->delete();\n // Reset AUTO_INCREMENT.\n DB::table('users')->truncate();\n\n // Dev user.\n App\\Models\\User::create([\n 'email' => '[email protected]',\n 'password' => '$2y$10$t6q81nz.XrMrh20NHDvxUu/szwHBwgzPd.01e8uuP0qVy0mPa6H/e',\n 'first_name' => 'L5',\n 'last_name' => 'App',\n 'username' => 'l5-app',\n 'is_email_verified' => 1,\n ]);\n\n // Dummy users.\n TestDummy::times(10)->create('App\\Models\\User');\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n User::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // We did this for test purposes. Shouldn't be doing this for production\n $password = Hash::make('123456');\n\n User::create([\n 'name' => 'Administrator',\n 'email' => '[email protected]',\n 'password' => $password,\n ]);\n }", "public function run()\n {\n Model::unguard();\n \n factory('App\\User','admin')->create();\n factory('App\\Evento',100)->create();\n //factory('App\\User','miembro',10)->create();\n factory('App\\Telefono',13)->create();\n factory('App\\Notificacion',10)->create();\n factory('App\\Rubro',10)->create();\n factory('App\\Tecnologia',10)->create();\n factory('App\\Cultivo',10)->create();\n factory('App\\Etapa',10)->create();\n factory('App\\Variedad',10)->create();\n factory('App\\Caracteristica',10)->create();\n factory('App\\Practica',30)->create();\n factory('App\\Tag',15)->create();\n // $this->call(PracticaTableSeeder::class);\n $this->call(TrTableSeeder::class);\n $this->call(MesTableSeeder::class);\n $this->call(SemanasTableSeeder::class);\n $this->call(PsTableSeeder::class);\n $this->call(MsTableSeeder::class);\n $this->call(CeTableSeeder::class);\n $this->call(CvTableSeeder::class);\n $this->call(PtSeeder::class);\n \n\n Model::unguard();\n }", "public function run() {\n $this->call(UserSeeder::class);\n $this->call(PermissionSeeder::class);\n $this->call(CreateAdminUserSeeder::class);\n // $this->call(PhoneSeeder::class);\n // $this->call(AddressSeeder::class);\n\n $this->call(ContactFormSeeder::class);\n //$this->call(ContactSeeder::class);\n\n User::factory()->count(20)->create()->each(function ($user) {\n // Seed the relation with one address\n $address = Address::factory()->make();\n $user->address()->save($address);\n\n // Seed the relation with one phone\n $phone = Phone::factory()->make();\n $user->phone()->save($phone);\n\n // Seed the relation with 15 contacts\n $contact = Contact::factory()->count(25)->make();\n $user->contacts()->saveMany($contact);\n });\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n Activity::truncate();\n User::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n $this->call(UserTableSeeder::class);\n $this->call(ActivityTableSeeder::class);\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n \\App\\User::truncate();\n \\App\\Category::truncate();\n \\App\\Product::truncate();\n \\App\\Transaction::truncate();\n DB::table('category_product')->truncate();\n\n \\App\\User::flushEventListeners();\n \\App\\Category::flushEventListeners();\n \\App\\Product::flushEventListeners();\n \\App\\Transaction::flushEventListeners();\n\n\n $usersQuentity = 1000;\n $categoriesQuentity = 30;\n $productsQuentity = 1000;\n $transactionsQuentity = 1000;\n\n factory(\\App\\User::class, $usersQuentity)->create();\n factory(\\App\\Category::class, $categoriesQuentity)->create();\n factory(\\App\\Product::class, $productsQuentity)->create()->each(\n function ($product){\n $categories = \\App\\Category::all()->random(mt_rand(1, 5))->pluck('id');\n\n $product->categories()->attach($categories);\n }\n );\n factory(\\App\\Transaction::class, $transactionsQuentity)->create();\n\n }", "public function run()\n {\n Eloquent::unguard();\n \n $this->call('AdminMemberTableSeeder');\n $this->call('BankInfoTableSeeder');\n $this->call('LocationLookUpTableSeeder');\n $this->call('OrderStatusTableSeeder');\n $this->call('AdminRoleTableSeeder');\n\n }", "public static function setUpBeforeClass()\n {\n parent::setUpBeforeClass();\n $app = require __DIR__ . '/../../bootstrap/app.php';\n /** @var \\Pterodactyl\\Console\\Kernel $kernel */\n $kernel = $app->make(Kernel::class);\n $kernel->bootstrap();\n $kernel->call('migrate:fresh');\n\n \\Artisan::call('db:seed');\n }", "public function run()\n {\n Model::unguard();\n\n if( !User::where('email', '[email protected]')->count() ) {\n User::create([\n 'nombre'=>'Nick'\n ,'apellidos'=>'Palomino'\n ,'email'=>'[email protected]'\n ,'password'=> Hash::make('1234567u')\n ,'celular'=>'966463589'\n ]);\n }\n\n $this->call('CategoriaTableSeeder');\n $this->call('WhateverSeeder');\n $this->call('ProductTableSeeder');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n Model::unguard();\n\n $this->command->info('seed start!');\n\n // 省市县\n $this->call('RegionTableSeeder');\n // 用户、角色\n $this->call('UserTableSeeder');\n // 权限\n $this->call('PurviewTableSeeder');\n // 博文分类\n $this->call('CategoryTableSeeder');\n // 博文、评论、标签\n $this->call('ArticleTableSeeder');\n // 心情\n $this->call('MoodTableSeeder');\n // 留言\n $this->call('MessageTableSeeder');\n // 文件\n $this->call('StorageTableSeeder');\n\n $this->command->info('seed end!');\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n {\n $this->call(RolesDatabaseSeeder::class);\n $this->call(UsersDatabaseSeeder::class);\n $this->call(LocalesDatabaseSeeder::class);\n $this->call(MainDatabaseSeeder::class);\n }", "public function run()\n {\n\n Schema::disableForeignKeyConstraints(); //in order to execute truncate before seeding\n\n $this->call(UsersTableSeeder::class);\n $this->call(PostCategoriesSeeder::class);\n $this->call(TagsSeeder::class);\n $this->call(PostsSeeder::class);\n\n Schema::enableForeignKeyConstraints();\n\n\n }", "public function run()\n {\n // DB::table('users')->insert([\n // ['id'=>1, 'email'=>'nhat','password'=>bcrypt(1234), 'lever'=>0]\n // ]);\n // $this->call(UsersTableSeeder::class);\n // $this->call(CatTableSeeder::class);\n // $this->call(TypeTableSeeder::class);\n // $this->call(AppTableSeeder::class);\n // $this->call(GameTableSeeder::class);\n \n \n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n $this->seedUsers();\n $this->seedAdmins();\n $this->seedMeals();\n\n $this->seedOrder();\n $this->seedOrderlist();\n\n $this->seedReload();\n }", "public function run()\n\t{\n\t\t//composer require fzaninotto/faker\n\t\t\n\t\t$this->call(populateAllSeeder::class);\n\t\t\n\t}", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n Model::unguard();\n\n $faker =Faker\\Factory::create();\n\n // $this->call(UserTableSeeder::class);\n\n $this->seedTasks($faker);\n $this->seedTags($faker);\n\n Model::reguard($faker);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n\n $this->call([\n CountriesSeeder::class,\n ProvincesSeeder::class,\n SettingsSeeder::class,\n AdminsTableSeeder::class,\n ]);\n }" ]
[ "0.8064933", "0.7848158", "0.7674873", "0.724396", "0.7216743", "0.7132209", "0.70970356", "0.70752203", "0.704928", "0.699208", "0.6987078", "0.69839287", "0.6966499", "0.68990964", "0.6868679", "0.68468624", "0.68307716", "0.68206114", "0.6803113", "0.6803113", "0.6801801", "0.6789746", "0.6788733", "0.6788008", "0.6786291", "0.67765796", "0.67742485", "0.677106", "0.67651874", "0.6761959", "0.675823", "0.67337847", "0.6733437", "0.67295784", "0.67290515", "0.6724652", "0.67226326", "0.6722267", "0.6721339", "0.6715842", "0.67070943", "0.67060536", "0.67031103", "0.6702514", "0.6702361", "0.67017967", "0.6695973", "0.6693496", "0.66868156", "0.66837406", "0.6678434", "0.66755766", "0.66726524", "0.666599", "0.664943", "0.6640641", "0.663921", "0.66387916", "0.6636016", "0.6633116", "0.6629787", "0.6627134", "0.6625862", "0.661699", "0.66093796", "0.6602538", "0.65996546", "0.659914", "0.6596484", "0.6596383", "0.65922767", "0.65922284", "0.65913564", "0.65889347", "0.65812707", "0.65811145", "0.6579546", "0.6578819", "0.6575912", "0.65749073", "0.6574314", "0.657148", "0.65696406", "0.6568972", "0.65624833", "0.6560332", "0.6559092", "0.6557491", "0.65555155", "0.6554255", "0.65509576", "0.6548099", "0.65479296", "0.6545845", "0.65443295", "0.65434265", "0.65432936", "0.654295", "0.65426385", "0.6541781", "0.6539325" ]
0.0
-1
Check is url allow for useragent
public function testIsUrlAllow(array $rules, $url, $isAllowedExpected) { $robotsTxtValidator = new RobotsTxtValidator($rules); $this->assertEquals($isAllowedExpected, $robotsTxtValidator->isUrlAllow($url)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function url_check($url) { \n $hdrs = @get_headers($url); \n return is_array($hdrs) ? preg_match('/^HTTP\\\\/\\\\d+\\\\.\\\\d+\\\\s+2\\\\d\\\\d\\\\s+.*$/',$hdrs[0]) : false; \n}", "function robots_allowed($url, $useragent=false)\n {\n // parse url to retrieve host and path\n $parsed = parse_url($url);\n\n $agents = array(preg_quote('*'));\n if($useragent) $agents[] = preg_quote($useragent, '/');\n $agents = implode('|', $agents);\n\n // location of robots.txt file, only pay attention to it if the server says it exists\n if(function_exists('curl_init')) {\n $handle = curl_init(\"http://{$parsed['host']}/robots.txt\");\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);\n $response = curl_exec($handle);\n $httpCode = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n if($httpCode == 200) {\n $robotstxt = explode(\"\\n\", $response);\n } else {\n $robotstxt = false;\n }\n curl_close($handle);\n } else {\n $robotstxt = @file(\"http://{$parsed['host']}/robots.txt\");\n }\n\n // if there isn't a robots, then we're allowed in\n if(empty($robotstxt)) return true;\n\n $rules = array();\n $ruleApplies = false;\n foreach($robotstxt as $line) {\n // skip blank lines\n if(!$line = trim($line)) continue;\n\n // following rules only apply if User-agent matches $useragent or '*'\n if(preg_match('/^\\s*User-agent: (.*)/i', $line, $match)) {\n $ruleApplies = preg_match(\"/($agents)/i\", $match[1]);\n continue;\n }\n if($ruleApplies) {\n list($type, $rule) = explode(':', $line, 2);\n $type = trim(strtolower($type));\n // add rules that apply to array for testing\n $rules[] = array(\n 'type' => $type,\n 'match' => preg_quote(trim($rule), '/'),\n );\n }\n }\n\n $isAllowed = true;\n $currentStrength = 0;\n foreach($rules as $rule) {\n // check if page hits on a rule\n if(preg_match(\"/^{$rule['match']}/\", $parsed['path'])) {\n // prefer longer (more specific) rules and Allow trumps Disallow if rules same length\n $strength = strlen($rule['match']);\n if($currentStrength < $strength) {\n $currentStrength = $strength;\n $isAllowed = ($rule['type'] == 'allow') ? true : false;\n } elseif($currentStrength == $strength && $rule['type'] == 'allow') {\n $currentStrength = $strength;\n $isAllowed = true;\n }\n }\n }\n\n return $isAllowed;\n }", "function url_allowed ($url)\n{\n\trequire (\"url_handling_parameters.php\");\n\t\n\tif (eregiArray($url_forbidden,$url)) return false;\n\telse return true;\n}", "function urlOk ($url) {\r\n return filter_var($url, FILTER_VALIDATE_URL);\r\n }", "private static function validate(string $url, string $userAgent)\n {\n $parsed = parse_url($url);\n $url = \"http://{$parsed['host']}/robots.txt\";\n $file_headers = @get_headers($url);\n \n if($file_headers && (in_array('HTTP/1.0 200 OK', $file_headers) || in_array('HTTP/1.1 200 OK', $file_headers))){\n $robots = @file_get_contents($url);\n $parser = new RobotsTxtParser($robots);\n $validator = new RobotsTxtValidator($parser->getRules());\n return $validator->isUrlAllow($url, $userAgent);\n }\n return false;\n }", "function check_crawl_url($url) {\n\tforeach($GLOBALS['eregi_url_blacklist'] as $black_url) {\n\t\tif(eregi($black_url, $url)) return(0);\n\t}\n\tif(in_array($url, $GLOBALS['url_db'])) return(0);\n\tif(!file_size_check($url, $GLOBALS['maximum_file_size'])) return(0);\n\tforeach($GLOBALS['eregi_url_whitelist'] as $white_url) {\n\t\tif(eregi($white_url, $url)) return(1);\n\t}\n\treturn(1); //1 == disable whitelisting, 0 == enable whitelisting\n}", "function url_analyze ($url)\n{\n\trequire (\"url_handling_parameters.php\");\n\n\t// return-values:\n\t// 0 = url is not allowed, unable to handle\n\t// 1 = url is ok -> make picture\n\t// 2 = url is email\n\t// 3 = url is downloadable file\n\n\t\n\t// allowed?\n\tif (eregiArray($url_forbidden,$url)) return 0;\n\t// email\n\tif (eregiArray($url_email,$url)) return 2; \n\t// downloadable files\n\telseif (eregiArray($url_download,$url)) return 3;\n\t// allowed url\n\telseif (eregiArray($url_allowed,$url)) return 1;\n\t\n\telse return 0;\n}", "public function validateUserAgent()\n {\n $userAgent = $this->header('USER_AGENT');\n\n return ( ! empty($userAgent));\n }", "function checkURL($url) {\n\t\t\tif(!eregi(\"^http:\\/\\/\", $url)) {return false;}\n\t\t\treturn true;\n\t\t}", "private static function checkUrl($url)\n {\n if (filter_var($url, FILTER_VALIDATE_URL) !== false) {\n // TODO: check if URL gives 200 response code\n return true;\n }\n\n return false;\n }", "public function IsUrlAllowWithSpecificUserAgentProvider()\r\n {\r\n return array(\r\n array(\r\n array(\r\n '*' => array(\r\n 'disallow' => array(\r\n '/fr/'\r\n ),\r\n ),\r\n ),\r\n '/fr/page2',\r\n 'MyUserAgent',\r\n false\r\n ),\r\n );\r\n }", "protected function is_valid_url($url) {\r\n return true;\r\n }", "private static function _url_is_valid($url) {\n // Consulted https://www.w3schools.com/Php/php_form_url_email.asp\n return preg_match(\"/\\b(?:(?:https?|ftp):\\/\\/|www\\.)[-a-z0-9+&@#\\/%?=~_|!:,.;]*[-a-z0-9+&@#\\/%=~_|]/i\", $url);\n }", "public function validateRequest( $url ) {\n\t\t// Make sure it's from commons\n\t\tif ( strpos( $url, 'upload.wikimedia.org' ) > 0 ) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function is_valid_url()\r\n {\r\n return (!empty($this->url) && PiplApi_Utils::piplapi_is_valid_url($this->url));\r\n }", "public function is_valid_url()\r\n {\r\n return (!empty($this->url) && PiplApi_Utils::piplapi_is_valid_url($this->url));\r\n }", "public function is_valid_url()\n {\n return (!empty($this->url) && APIUtil::piplapi_is_valid_url($this->url));\n }", "function robots_allowed($robots_txt, $url, $agent_string) {\n $agents = join('|', [\n preg_quote('*'),\n preg_quote($agent_string),\n ]);\n\n // if there isn't a robots, then we're allowed in\n if (! trim($robots_txt)) {\n return true;\n }\n\n $rules = [];\n $ruleApplies = false;\n\n foreach (explode(\"\\n\", $robots_txt) as $line) {\n\n $line = trim($line);\n\n // skip blank lines\n if (! $line) {\n continue;\n }\n\n // following rules only apply if User-agent matches $useragent or '*'\n if (preg_match('`^\\s*User-agent:\\s*(.*)$`i', $line, $match)) {\n $ruleApplies = (bool) preg_match(\"`({$agents})`i\", $match[1]);\n }\n\n if ($ruleApplies && preg_match('`^\\s*Disallow:\\s*(.*)$`i', $line, $regs)) {\n // an empty rule implies full access - no further tests required\n if (! $regs[1]) {\n return true;\n }\n\n // add rules that apply to array for testing\n $rules[] = preg_quote(trim($regs[1]), '/');\n }\n }\n\n // parse url to retrieve host and path\n $parsed = parse_url($url);\n\n foreach ($rules as $rule) {\n // check if page is disallowed to us\n if (preg_match(\"/^{$rule}/\", $parsed['path'])) {\n return false;\n }\n }\n\n // page access is allowed\n return true;\n }", "function xss_check_url( $url )\n\t{\n\t\t$url = trim( urldecode( $url ) );\n\t\t\n\t\tif ( ! preg_match( \"#^https?://(?:[^<>*\\\"]+|[a-z0-9/\\._\\- !]+)$#iU\", $url ) )\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\treturn TRUE;\n\t}", "function isValidUrl($url){\n if(!$url || !is_string($url)){\n return false;\n }\n // quick check url is roughly a valid http request: ( http://blah/... )\n if( ! preg_match('/^http(s)?:\\/\\/[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(\\/.*)?$/i', $url) ){\n return false;\n }\n // the next bit could be slow:\n if($this->getHttpResponseCode_using_curl($url) != 200){\n // if(getHttpResponseCode_using_getheaders($url) != 200){ // use this one if you cant use curl\n return false;\n }\n return true;\n }", "function botDetected($user_agent=false) {\n\t\t$user_agent = $user_agent ?? $_SERVER['HTTP_USER_AGENT'] ?? false;\n \tif($user_agent != false && preg_match('/bot|crawl|slurp|spider|curl|mediapartners/i', $user_agent)) { return true; }\n\t\treturn false;\n\t}", "static public function isUrl($url)\n {\n return preg_match('/^[~:#%&_=\\(\\)\\.\\? \\+\\-@\\/a-zA-Z0-9]+$/', $url);\n }", "static function is_url($url) {\n return ($url && ($info=parse_url($url)) && $info['host']);\n }", "function urlOK($url)\n{\n $headers = @get_headers($url);\n if(strpos($headers[0],'200')===false){return false;}else{return true;}\n}", "public function validate($url);", "function url_exists($url){ \r\n $url_data = parse_url($url); // scheme, host, port, path, query\r\n if(!fsockopen($url_data['host'], isset($url_data['port']) ? $url_data['port'] : 80)){\r\n $this->set_message('url_exists', 'The URL you entered is not accessible.');\r\n return FALSE;\r\n } \r\n \r\n return TRUE;\r\n }", "private static function is_url( $url ) \n\t{\n\t\treturn ( ( strpos( $url, 'http://' ) === 0 || strpos( $url, 'https://' ) === 0 || strpos( $url, '//' ) === 0 || strpos( $url, '/' ) === 0 ) && strpos( $url, \"\\n\" ) === false );\n\t}", "function carousel_slider_is_url( $url ) {\n\t\tif ( filter_var( $url, FILTER_VALIDATE_URL ) ) {\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function isWebCrawler()\n {\n if ( ! isset($_SERVER['HTTP_USER_AGENT'])) {\n return true;\n }\n\n $userAgent = strtolower($_SERVER['HTTP_USER_AGENT']);\n\n if (preg_match('/google|yahoo|bing/', $userAgent) > 0) {\n return true;\n }\n\n return false;\n }", "function wp_http_validate_url($url)\n {\n }", "function _mc_is_url( $url ) {\n\n\treturn preg_match( '|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url );\n}", "function checkWhiteList($url = '')\n{\n global $modSettings;\n\n $whitelist = array_map('trim', explode(\"\\n\", $modSettings['redirector_whitelist']));\n $host = parse_url($url, PHP_URL_HOST);\n\n if (!empty($host) && is_array($whitelist) && in_array($host, $whitelist)) {\n return true;\n }\n\n return false;\n}", "public static function isAvailible() {\n $domain = self::SERVICE_URL;\n \n if(!filter_var($domain, FILTER_VALIDATE_URL)) {\n return false;\n }\n\n //initialize curl\n $curlInit = curl_init($domain);\n curl_setopt($curlInit,CURLOPT_CONNECTTIMEOUT,10);\n curl_setopt($curlInit,CURLOPT_HEADER,true);\n curl_setopt($curlInit,CURLOPT_NOBODY,true);\n curl_setopt($curlInit,CURLOPT_RETURNTRANSFER,true);\n\n //get answer\n $response = curl_exec($curlInit);\n\n curl_close($curlInit);\n\n if ($response) return true;\n\n return false;\n }", "function url_exist($url)\r\n\t\t{\r\n\t\t\r\n\t\t}", "public function test_url_exist($url) {\n\n\t\t$headers = @get_headers($url);\n\n\t\tif ($headers === FALSE) {\n\n\t\t\treturn FALSE;\n\t\t} else {\n\n\t\t\treturn TRUE;\n\t\t}\n\t}", "public function is_valid_url()\r\n {\r\n return (!empty($this->internal_params['url']) &&\r\n piplapi_is_valid_url($this->internal_params['url']));\r\n }", "function is_url($url){\r\n $url = substr($url,-1) == \"/\" ? substr($url,0,-1) : $url;\r\n if ( !$url || $url==\"\" ) return false;\r\n if ( !( $parts = @parse_url( $url ) ) ) return false;\r\n else {\r\n if ( $parts[scheme] != \"http\" && $parts[scheme] != \"https\" && $parts[scheme] != \"ftp\" && $parts[scheme] != \"gopher\" ) return false;\r\n else if ( !eregi( \"^[0-9a-z]([-.]?[0-9a-z])*.[a-z]{2,4}$\", $parts[host], $regs ) ) return false;\r\n else if ( !eregi( \"^([0-9a-z-]|[_])*$\", $parts[user], $regs ) ) return false;\r\n else if ( !eregi( \"^([0-9a-z-]|[_])*$\", $parts[pass], $regs ) ) return false;\r\n else if ( !eregi( \"^[0-9a-z/_.@~-]*$\", $parts[path], $regs ) ) return false;\r\n else if ( !eregi( \"^[0-9a-z?&=#,]*$\", $parts[query], $regs ) ) return false;\r\n }\r\n return true;\r\n}", "function canHandleCurrentUrl() ;", "function url_exists($pageURL){\n\t if ((strpos($pageURL, \"https\")) === false){ $pageURL = \"https://\" . $pageURL;} //pos8etei https an leipei\n\t\t \n\t\t \n\t\t \n\t if (is_array(@get_headers($pageURL)) && ((strpos($pageURL, \"facebook\")) !== false))\t//an to header request itan epituxes kai to page itan kapoio fb page\n\t return true;\n\t else\n\t\t {return true;}\n\t}", "public function shouldCrawl(Url $url);", "public function validUrl($url)\n\t{\n\t\tif (filter_var($url, FILTER_VALIDATE_URL) === FALSE) return false; else return true;\n\n\t}", "private function checkUrlStatus()\n {\n $request = curl_init($this->url);\n\n curl_setopt($request, CURLOPT_HEADER, true);\n curl_setopt($request, CURLOPT_NOBODY, true);\n curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($request, CURLOPT_TIMEOUT, 10);\n\n curl_exec($request);\n $httpCode = curl_getinfo($request, CURLINFO_HTTP_CODE);\n curl_close($request);\n\n if ($httpCode >= 200 && $httpCode < 400) {\n return true;\n }\n\n return false;\n }", "function heateor_ss_validate_url($url){\r\n\treturn filter_var(trim($url), FILTER_VALIDATE_URL);\r\n}", "private static function isValidUrl($url)\n {\n return preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url)\n || filter_var(filter_var($url, FILTER_SANITIZE_URL), FILTER_VALIDATE_URL);\n }", "public function checkIfCrawlable($url)\n {\n if (empty($url)) {\n return false;\n }\n $patterns = [\n '@^javascript\\:@',\n '@^#.*@',\n '@^void\\(0\\);$@'\n ];\n foreach ($patterns as $pattern) {\n if (preg_match($pattern, $url)) {\n return false;\n }\n }\n return true;\n }", "protected static function isValidUrl($url)\n {\n try {\n return Http::get('http://' . str_replace(['http://', 'https://'], '', $url))->status() < 300;\n } catch (Exception $e) {\n return false;\n }\n }", "static public function checkExternalUrl($url) {\n\t\treturn t3lib_div::isValidUrl($url);\n\t}", "public static function isUrl($url)\n {\n return preg_match('/^[~:#,%&_=\\(\\)\\.\\? \\+\\-@\\/a-zA-Z0-9]+$/', $url);\n }", "public function isAvailable($url) \n\t{\n\t\t$this->api->parseUrl($url);\n\t\treturn $this->api->call(['command' => 'check'])->response()['RRPCode'] == 210 ? true : false;\n\t}", "function oos_validate_is_url($sUrl) {\n if (strlen($sUrl) == 0) {\n return false;\n }\n\n return preg_match('!^http(s)?://[\\w-]+\\.[\\w-]+(\\S+)?$!i', $sUrl);\n }", "function isWhitelisted( $url ) {\n global $whitelistregex;\n foreach( $whitelistregex as $wregex ) if( preg_match($wregex, $url) ) return true;\n return false;\n}", "function isSiteAvailable($url){\n\t\t\tif(!filter_var($url, FILTER_VALIDATE_URL)){\n\t\t\t\t//return 'URL provided wasnt valid';\n\t\t\t\treturn 'invalid';\n\t\t\t}\n\t\t\t\n\t\t\t//make the connection with curl\n\t\t\t$cl = curl_init($url);\n\t\t\tcurl_setopt($cl,CURLOPT_CONNECTTIMEOUT,10);\n\t\t\tcurl_setopt($cl,CURLOPT_HEADER,true);\n\t\t\tcurl_setopt($cl,CURLOPT_NOBODY,true);\n\t\t\tcurl_setopt($cl,CURLOPT_RETURNTRANSFER,true);\n\t\t\t\n\t\t\t//get response\n\t\t\t$response = curl_exec($cl);\n\t\t\t\n\t\t\tcurl_close($cl);\n\t\t\t\n\t\t\t//if ($response) return 'Site seems to be up and running!';\n\t\t\tif ($response) return 'success';\n\t\t\t\n\t\t\t//return 'Oops nothing found, the site is either offline or the domain doesn\\'t exist';\n\t\t\treturn 'failed';\n\t\t}", "public function isValidURL($url)\n {\n if (substr($url, 0, 1) == '#') {\n $result = true;\n } else {\n $result = preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url);\n }\n \n return $result;\n }", "protected function enabled($url) {\n\t\t$web=\\Web::instance();\n\t\t$req=$web->request($url);\n\t\t$found=FALSE;\n\t\tif ($req['body']) {\n\t\t\t// Look for pingback header\n\t\t\tforeach ($req['headers'] as $header)\n\t\t\t\tif (preg_match('/^X-Pingback:\\h*(.+)/',$header,$href)) {\n\t\t\t\t\t$found=$href[1];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tif (!$found &&\n\t\t\t\t// Scan page for pingback link tag\n\t\t\t\tpreg_match('/<link\\h+(.+?)\\h*\\/?>/i',$req['body'],$parts) &&\n\t\t\t\tpreg_match('/rel\\h*=\\h*\"pingback\"/i',$parts[1]) &&\n\t\t\t\tpreg_match('/href\\h*=\\h*\"\\h*(.+?)\\h*\"/i',$parts[1],$href))\n\t\t\t\t$found=$href[1];\n\t\t}\n\t\treturn $found;\n\t}", "public function verifyContainsURL(): bool\n {\n $words = explode(' ', $this->input);\n foreach ($words as $word) {\n if (static::isValidURL($word)) {\n return true;\n }\n }\n \n return false;\n }", "function isValidURL($url)\n{\n if (! preg_match(\"/\\b(?:(?:https?|ftp):\\/\\/|www\\.)[-a-z0-9+&@#\\/%?=~_|!:,.;]*[-a-z0-9+&@#\\/%=~_|]/i\", $url)) {\n return false;\n }\n return true;\n}", "protected function isBotRequest() {\n return (\n isset($_SERVER['HTTP_USER_AGENT'])\n && preg_match('/bot|crawl|slurp|spider|mediapartners/i', $_SERVER['HTTP_USER_AGENT'])\n );\n }", "protected function validateUrl($url)\n {\n if (! parse_url($url) )\n {\n return false;\n }\n if (! ($this->startsWith($url, 'https://') || $this->startsWith($url, 'http://')))\n {\n return false;\n }\n\n return true;\n }", "private function checkUrl() {\n $career = $this->route('career');\n\n $url = $this->input('url');\n $prefix = trans('module-careerplugin::options.url_prefix');\n $language = $career->language ?? $this->getLanguage();\n\n $fullUrl = ($language->language_code ?? '') . '/' . $prefix . '/' . $url;\n\n $urlModel = Url::findUrl($fullUrl);\n\n if (!$urlModel) {\n return true;\n }\n\n return $career && $urlModel->model_id === $career->id && $urlModel->model === Career::class;\n }", "public function isViddler($url)\n {\n return strpos($url, 'viddler.com/') !== FALSE;\n\t}", "function is_valid_url($string) {\n\tif(is_url($string)){\n\t\t$ch = curl_init();\n\t\tcurl_setopt ($ch, CURLOPT_URL, str_replace('https://', 'http://', $string));\n\t\tcurl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt ($ch, CURLOPT_NOBODY, true);\n\t\tcurl_setopt ($ch, CURLOPT_FAILONERROR, false);\n\t\tcurl_setopt ($ch, CURLOPT_AUTOREFERER, true);\n\t\tcurl_setopt ($ch, CURLOPT_TIMEOUT, 120);\n\t\t$result = @curl_exec($ch);\n\t\tcurl_close($ch);\n\t\treturn ($result!==false) ? true : false;\n\t} else {\n\t\treturn false;\n\t}\n}", "public function check_user_agent() {\n if (SESSION_CHECK_USER_AGENT == 'True') {\n $http_user_agent = getenv('HTTP_USER_AGENT');\n if (!isset($_SESSION['SESSION_USER_AGENT'])) {\n $_SESSION['SESSION_USER_AGENT'] = $http_user_agent;\n }\n\n if ($_SESSION['SESSION_USER_AGENT'] != $http_user_agent) {\n tep_session_destroy();\n tep_redirect(tep_href_link('login.php'));\n }\n }\n }", "abstract public function mustFollowUrl(string $url): bool;", "private function isValidUrl(string $url): bool\n {\n return filter_var($url, FILTER_VALIDATE_URL) !== false;\n }", "public static function is_url( $url ) {\n\t\t\tif(preg_match( '/^(http|https):\\\\/\\\\/[a-z0-9_]+([\\\\-\\\\.]{1}[a-z_0-9]+)*\\\\.[_a-z]{2,5}'.'((:[0-9]{1,5})?\\\\/.*)?$/i' ,$url)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public function match()\n {\n $startWithHttp = strpos($this->userInput, 'http://') === 0 || strpos($this->userInput, 'https://') === 0;\n $validUrl = filter_var($this->userInput, FILTER_VALIDATE_URL);\n\n return $startWithHttp && $validUrl;\n }", "function check_url($url){\n\n $data = file_get_contents($url);\n\n if (empty($data)) {\n return \"false\";\n } else {\n return \"true\";\n }\n\n\n \n}", "protected function validateUrl($value){\n\t\treturn filter_var($value, FILTER_VALIDATE_URL) !== false;\n\t}", "private function __validateUrl($url)\n {\n if (empty($url) || !is_string($url) || strlen($url) > 512 ||\n !preg_match('/^http(s)?:\\/\\/[a-z0-9-]+(.[a-z0-9-]+)+(:[0-9]+)?(\\/.*)?$/i', $url) ||\n !filter_var($url, FILTER_VALIDATE_URL)\n ) {\n $this->error = 'invalid url format';\n return false;\n }\n return true;\n }", "public static function isUrl($url) {\n return preg_match('|^http(s)?://[a-z0-9-]+(\\.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url);\n }", "public static function checkUrl($url)\r\n {\r\n $ch = curl_init();\r\n curl_setopt($ch, CURLOPT_URL, $url);\r\n curl_setopt($ch, CURLOPT_NOBODY, true); // only make a HEAD request\r\n curl_setopt($ch, CURLOPT_FAILONERROR, true); // fail if response >= 400\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\r\n \r\n if (curl_exec($ch) !== false)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }", "function urlIsPublic() {\n $ip = gethostbyname($_SERVER['REMOTE_ADDR']);\n $long = ip2long($ip);\n if (($long >= 167772160 AND $long <= 184549375) OR ($long >= -1408237568 AND $long <= -1407188993) OR ($long >= -1062731776 AND $long <= -1062666241) OR ($long >= 2130706432 AND $long <= 2147483647) OR $long == -1) {\n return false;\n }\n return true;\n}", "function checkUrlString( $url )\t\n\t{\n\t\t$url = trim($url);\t\t\n\t\t\tif( 'http://' != strtolower( substr($url, 0, 7)) && 'https://' != strtolower(substr($url, 0, 8)) )\n\t\t\t\treturn false;\n\t\t\telse\t\t\t\t\t\n\t\t\t\treturn true;\n\t}", "public static function isBannedUrl($url)\n {\n $bannedUrls = array(\n $_SERVER['SERVER_NAME'],\n //'joke-domain.com',\n );\n $banned = array();\n foreach ($bannedUrls as $bannedUrl) {\n $banned[] = str_replace('.', '\\.', $bannedUrl);\n }\n if (count($banned)) {\n $regex = '^(https?:\\/\\/)('.implode($banned, '|').')(.+)?$^';\n\n return preg_match($regex, $url);\n }\n\n return false;\n }", "private static function verifyRequest()\n {\n if(isset($_SERVER['HTTP_USER_AGENT']) == false)\n {\n InvalidUserAgentResponse::executeResponse();\n exit();\n }\n\n if(strlen($_SERVER['HTTP_USER_AGENT']) == 0)\n {\n InvalidUserAgentResponse::executeResponse();\n exit();\n }\n\n if(strlen($_SERVER['HTTP_USER_AGENT']) > 624)\n {\n InvalidUserAgentResponse::executeResponse();\n exit();\n }\n\n $UnsupportedRequestMethod = true;\n\n if(strtoupper($_SERVER['REQUEST_METHOD']) == 'GET')\n {\n $UnsupportedRequestMethod = false;\n }\n\n if(strtoupper($_SERVER['REQUEST_METHOD']) == 'POST')\n {\n $UnsupportedRequestMethod = false;\n }\n\n if($UnsupportedRequestMethod)\n {\n UnsupportedVersion::executeResponse();\n exit();\n }\n }", "private function comesFromCrawler(Request $request): bool\n {\n return ! empty($request->userAgent())\n && Str::contains(\n strtolower($request->userAgent()),\n config('depictr.crawlers')\n );\n }", "public function isUrl()\n {\n return filter_var($this->_value, FILTER_VALIDATE_URL);\n }", "function check_url($url, $post=false) {\r\n $ch = curl_init($url);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\r\n curl_setopt($ch, CURLOPT_TIMEOUT,1);\r\n if ($post) {\r\n curl_setopt($ch, CURLOPT_POST, true);\r\n curl_setopt($ch, CURLOPT_HTTPHEADER, $_SESSION['plex_headers']);\r\n }\r\n /* Get the HTML or whatever is linked in $url. */\r\n $response = curl_exec($ch);\r\n\r\n /* Check for 404 (file not found). */\r\n $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\r\n curl_close($ch);\r\n\r\n /* If the document has loaded successfully without any redirection or error */\r\n if ($httpCode >= 200 && $httpCode < 300) {\r\n write_log(\"Connection is valid: \".$url);\r\n return true;\r\n } else {\r\n write_log(\"Connection failed with error code \".$httpCode.\": \".$url,\"ERROR\");\r\n return false;\r\n }\r\n }", "function is_invalid_request() {\n\t$http_referer = (isset($_SERVER['HTTP_REFERER'])) ? parse_url($_SERVER['HTTP_REFERER']) : NULL;\t\n\tif(!check_value($http_referer)) {\n\t\t$referal = HTTP_HOST;\n\t} else {\n\t\t$referal = (isset($http_referer['port']) && !empty($http_referer['port'])) ? $http_referer['host'].':'.$http_referer['port'] : $http_referer['host'];\n\t}\n\treturn ($referal !== HTTP_HOST) ? true : false;\t\n}", "public function isUrl($url)\r\n\t{\r\n\t\tif( empty($url))\r\n\t\t\treturn null;\r\n\r\n\t\t$url = trim($url);\r\n\r\n\t\t$regex = \"/(http|https|ftp|ftps)\\:\\/\\/[a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,3}(\\/\\S*)?/\";\r\n\r\n\t\treturn (bool) preg_match($regex,$url);\r\n\t}", "public function hasHostInfo($url) {\n\t\treturn !strncasecmp($url,'http://',7) || !strncasecmp($url,'https://',8); //same criterias as in CUrlRule\n\t}", "public function validate()\n {\n return filter_var($this->getValue(), FILTER_VALIDATE_URL) !== false;\n }", "static public function valid_url($url, $allow_user_pass=false) {\n\n if ($url == '') {\n return false;\n }\n if ($allow_user_pass !== true) {\n if (strstr($url, '@')) {\n // in the format http://user:[email protected] or http://[email protected]\n // but could easily be somebody incorrectly entering an email address in place of a URL\n return false;\n }\n }\n if ($parts = $this->safe_parse_url($url)) {\n if (($parts['scheme'] != 'http') && ($parts['scheme'] != 'https') && ($parts['scheme'] != 'ftp') && ($parts['scheme'] != 'gopher')) {\n return false;\n } elseif (!eregi(\"^[[:alnum:]]([-.]?[0-9a-z])*\\.[a-z]{2,3}$\", $parts['host'], $regs) && !IsValidDottedIP($parts['host'])) {\n return false;\n } elseif (!eregi(\"^([[:alnum:]-]|[\\_])*$\", $parts['user'], $regs)) {\n return false;\n } elseif (!eregi(\"^([[:alnum:]-]|[\\_])*$\", $parts['pass'], $regs)) {\n return false;\n } elseif (!eregi(\"^[[:alnum:]/_\\.@~-]*$\", $parts['path'], $regs)) {\n return false;\n } elseif (!eregi(\"^[[:alnum:]?&=+:;_()%#/,\\.-]*$\", $parts['query'], $regs)) {\n return false;\n } else {\n return true;\n }\n }\n return false;\n }", "private function _is_short_url($url)\n\t{\n\t\t$url_host = parse_url($url, PHP_URL_HOST);\n\t\treturn in_array($url_host, $this->shortener_services);\n\t}", "public function isTargetAllowed(string $targetUrl): bool;", "public static function validUrl($url) {\n if (! $info = parse_url($url)) {\n return false;\n }\n\n if (empty($info['host']) || $info['host'] === 'localhost') {\n return false;\n }\n\n if (empty($info['scheme']) || ! ($info['scheme'] === 'http' || $info['scheme'] === 'https')) {\n return false;\n }\n\n return true;\n }", "public function hasRemoteUrl();", "function ajax_action_check_url() {\n\n\t\t$hadError = true;\n\n\t\t$url = isset( $_REQUEST['url'] ) ? $_REQUEST['url'] : '';\n\n\t\tif ( strlen( $url ) > 0 && function_exists( 'get_headers' ) ) {\n\t\t\t\t\n\t\t\t$file_headers = @get_headers( $url );\n\t\t\t$exists = $file_headers && $file_headers[0] != 'HTTP/1.1 404 Not Found';\n\t\t\t$hadError = false;\n\t\t}\n\n\t\techo '{ \"exists\": '. ($exists ? '1' : '0') . ($hadError ? ', \"error\" : 1 ' : '') . ' }';\n\n\t\tdie();\n\t}", "function is_user_agent_banned($user_agent, $banned_user_agents)\n {\n foreach($banned_user_agents as $banned_user_agent)\n {\n #if(strpos(strtolower($user_agent),strtolower($banned_user_agent))!==false) // case insensitive\n #if($banned_user_agent!='' && (preg_match(\"/\".$banned_user_agent.\"/i\",$user_agent))) // case insensitive\n if(strpos($user_agent,$banned_user_agent)!==false) // case sensitive, faster\n {\n return true;\n }\n }\n return false;\n }", "function is_browser($http_user_agent) {\n\t\tif (strstr($http_user_agent, 'Opera Mini')) {\n\t\t\treturn false;\t\n\t\t}\n\t\telse {\n\t\t\tif (strstr($http_user_agent, 'Windows NT 6.0') || strstr($http_user_agent, 'Macintosh') || strstr($http_user_agent, 'i686') || strstr($http_user_agent, 'Konqueror') || strstr($http_user_agent, 'Wget') || strstr($http_user_agent, 'Lynx')) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (strstr($http_user_agent, 'Windows NT 5.1') && strstr($http_user_agent,'Mozilla')) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function checkIfExternal($url)\n {\n $baseUrlTrimmed = str_replace(['http://', 'https://'], '', $this->baseUrl);\n if (preg_match(\"@http(s)?\\://$baseUrlTrimmed@\", $url)) {\n return false;\n } else {\n return true;\n }\n }", "private static function isValidUrl($url)\n {\n if (strpos($url, '://') === false) {\n $url = 'http://' . $url;\n }\n \n return filter_var($url, FILTER_VALIDATE_URL) !== false;\n }", "public function checkURL($url)\n\t{\n\t\t$ret = false;\n\n\t\t$headers = get_headers(\n\t\t\t'http://gdata.youtube.com/feeds/api/videos/'.\n\t\t\t$this->getVideoId($url)\n\t\t);\n\n\t\tif (strpos($headers[0], '200')) \n\t\t{\n\t\t\t$ret = true;\n\t\t}\n\n\t\treturn $ret;\n\t}", "function _quail_server_page_can_be_crawled($website, $url, $page) {\n\tif(!is_array($url)) {\n\t\t$url = parse_url($url);\n\t}\n\tif(_quail_server_is_error_page($url, $page, $website)) {\n\t\treturn false;\n\t}\n\t$path = ltrim($url['path'], '/');\n\tif($website->ac_server['depth'] > 0 && \n\t\tsubstr_count(rtrim($path, '/'), '/') > $website->ac_server['depth'] - 1) {\n\t\treturn false;\t\n\t}\n\tif($website->ac_server['excluded_paths'] && drupal_match_path($path, $website->ac_server['excluded_paths'])) {\n\t\treturn false;\n\t}\n\treturn true;\n}", "function check($value)\r\n\t{\r\n\t\tif (!preg_match(\"~^(https?://[a-zA-Z\\.]+)?/?([a-zA-Z\\.]+/?)+(\\??[^\\?]*)#?[^#]*$~i\", $value))\r\n\t\t{\r\n\t\t\t$this->error('BAD_URL');\r\n\t\t} \r\n\r\n\t}", "protected function validateUrlFormat($url) \n\t{\n return filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_HOST_REQUIRED);\n }", "public function canHandleCurrentUrl() {}", "private function checkDataInURL() {\n $html = @file_get_contents($this->url);\n if ($html === FALSE) throw new Exception('Unable to get html from URL.');\n return strpos($html, $this->data) !== FALSE;\n }", "function is_browser(){\n\n\t\treturn (new user_agent)->is_browser();\n\n\t}", "private function _get($url) {\n\t\t$ch = curl_init ();\n\t\tcurl_setopt ( $ch, CURLOPT_URL, $url );\n\t\tcurl_setopt ( $ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)' );\n\t\tcurl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );\n\t\tcurl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 5 );\n\t\tcurl_setopt ( $ch, CURLOPT_TIMEOUT, 5 );\n\t\t$data = curl_exec ( $ch );\n\t\t$httpcode = curl_getinfo ( $ch, CURLINFO_HTTP_CODE );\n\t\tcurl_close ( $ch );\n\t\treturn ($httpcode >= 200 && $httpcode < 300) ? $data : false;\n\t}", "function wpcom_vip_check_site_url( $site_urls ) {\n _deprecated_function( __FUNCTION__, '2.0.0' );\n\n return false;\n}" ]
[ "0.70599777", "0.7048195", "0.6899427", "0.6887448", "0.6856862", "0.68561894", "0.6817258", "0.6816445", "0.66175884", "0.66160023", "0.6560934", "0.65259635", "0.65186954", "0.645818", "0.64455366", "0.64455366", "0.643893", "0.64380145", "0.6435357", "0.643116", "0.6395582", "0.63874453", "0.6371015", "0.6368799", "0.636473", "0.63532525", "0.6343838", "0.6338417", "0.63381636", "0.633136", "0.631482", "0.6310168", "0.6309285", "0.6278054", "0.6250697", "0.6243617", "0.62334865", "0.6232804", "0.6225908", "0.62258774", "0.6212313", "0.6206528", "0.6200194", "0.6176921", "0.6176402", "0.61744", "0.6167865", "0.6163626", "0.6163026", "0.61588943", "0.61560005", "0.6154042", "0.612698", "0.612266", "0.61210376", "0.6113538", "0.6108404", "0.6102888", "0.6094723", "0.60872966", "0.60790825", "0.6063243", "0.6058275", "0.60562634", "0.6055214", "0.6054549", "0.60525876", "0.6043782", "0.60320157", "0.60320103", "0.6027311", "0.6023557", "0.60149693", "0.6013397", "0.5988945", "0.597838", "0.59718055", "0.59513205", "0.5945567", "0.5942847", "0.5941264", "0.593716", "0.5934044", "0.592533", "0.59250474", "0.5924004", "0.59227514", "0.5917154", "0.5917029", "0.5915747", "0.59097147", "0.59062225", "0.5906042", "0.59056175", "0.58980143", "0.58961725", "0.5890378", "0.58827883", "0.58822376", "0.5876882", "0.58709806" ]
0.0
-1
Generate test case data
public function isUrlAllowRulesWithUrlsProvider() { return array( array( array(), '/url', true ), array( array( 'googleBot' => array( 'disallow' => array( '/url' ), ), ), '/url', true ), array( array( '*' => array(), ), '/url', true ), array( array( '*' => array( 'disallow' => array( '/url/2', ), ), ), '/url', true ), array( array( '*' => array( 'disallow' => array( '/url/2', ), ), ), '/url/2', false ), array( array( '*' => array( 'allow' => array( '/url/test2', ), 'disallow' => array( '/url', ), ), ), '/url', false ), array( array( '*' => array( 'allow' => array( '/url/test2', ), 'disallow' => array( '/url', ), ), ), '/url/any', false ), array( array( '*' => array( 'allow' => array( '/url/specificPath', ), 'disallow' => array( '/', ), ), ), '/url/specificPath', true ), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function createSampleData()\n\t{\n\t\tself::createSampleObject(1, \"Issue 1\", 1);\n\t\tself::createSampleObject(2, \"Issue 2\", 1);\n\t}", "public function dataProviderTestGenerate()\n {\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 10,\n 'format' => [\n [-1, -1],\n [-1, -1],\n ],\n ],\n ];\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 4,\n 'format' => [\n [-1, 2],\n [-1, -1],\n ],\n ],\n ];\n }", "public function testData()\n {\n $output = $this->primer->getPatterns(array('components/test-group/data-autoload'), false);\n\n $this->assertEquals($output, '1.2');\n }", "abstract protected function getTestData() : array;", "abstract public function getTestData(): array;", "protected function getTestData(){\n\t\treturn \"application/testdata/Pagers.php\" ;\n\t}", "public function provideTestData()\n {\n return [\n ['9141405', true],\n ['1709107983', true],\n ['0122116979', true],\n ['0121114867', true],\n ['9030101192', true],\n ['9245500460', true],\n\n ['9141406', false],\n ['1709107984', false],\n ['0122116970', false],\n ['0121114868', false],\n ['9030101193', false],\n ['9245500461', false],\n ];\n }", "public function provideTestData()\n {\n return [\n // variant one\n ['1197423162', true],\n ['1000000606', true],\n\n // variant one\n ['8137423260', false],\n ['600000606', false],\n ['51234309', false],\n\n // variant two\n ['1000000406', true],\n ['1035791538', true],\n ['1126939724', true],\n ['1197423460', true],\n\n // variant two\n ['1000000405', false],\n ['1035791539', false],\n ['8035791532', false],\n ['535791830', false],\n ['51234901', false],\n ];\n }", "public function provideTestData()\n {\n return [\n // variant 1\n ['1016', true],\n ['26260', true],\n ['242243', true],\n ['242248', true],\n ['18002113', true],\n ['1821200043', true],\n ['1011', false],\n ['26265', false],\n ['18002118', false],\n ['6160000024', false],\n\n // variant 2\n ['1015', true],\n ['26263', true],\n ['242241', true],\n ['18002116', true],\n ['1821200047', true],\n ['3456789012', true],\n ['242249', false],\n ['1234567890', false],\n ];\n }", "public function generateTestCases(): iterable\n {\n yield 'When arrays are same without fuzzy' => [\n 'actual' => ['key' => 'value'],\n 'expected' => ['key' => 'value'],\n 'exception' => null\n ];\n\n yield 'Test array same with fuzzy' =>\n [\n 'actual' => ['key' => 'value', 'date' => '2010-10-10T01:03:06Z'],\n 'expected' => ['key' => 'value', 'date' => ':fuzzy:'],\n 'exception' => null\n ];\n\n yield 'Test array same fails' =>\n [\n 'actual' => ['key' => 'value'],\n 'expected' => ['key' => 'missing'],\n 'exception' => new AssertionFailedError(\n 'Failed asserting that two arrays are identical.'\n ),\n 'comparisionCreated' => true\n ];\n\n yield 'Test when actual is not an array' =>\n [\n 'actual' => '',\n 'expected' => ['key' => 'value'],\n 'exception' => new AssertionFailedError('Failed asserting that string is an array.'),\n 'comparisionCreated' => false\n ];\n }", "public function getTestData()\n {\n return [\n 'user_id' => 1,\n 'status' => 1,\n 'created_at' => '2016-01-21 15:00:00',\n 'updated_at' => '2016-01-21 18:00:00'\n ];\n }", "public function provideTestData()\n {\n return [\n // Variant 1\n ['6100272324', true],\n ['6100273479', true],\n\n ['6100272885', false],\n ['6100273377', false],\n ['6100274012', false],\n\n // Variant 2\n ['5700000000', true],\n ['5700000001', true],\n ['5799999998', true],\n ['5799999999', true],\n\n ['5699999999', false],\n ['5800000000', false],\n ];\n }", "public function getTestData()\n {\n yield [false, false, '-5 days', '+5 days', true];\n // changing before last dockdown period is not allowed with grace permission\n yield [false, true, '-5 days', '+5 days', true];\n // changing before last dockdown period is allowed with full permission\n yield [true, true, '-5 days', '+5 days', false];\n yield [true, false, '-5 days', '+5 days', false];\n // changing a value in the last lockdown period is allowed during grace period\n yield [false, false, '+5 days', '+5 days', false];\n // changing outside grace period is not allowed\n yield [false, false, '+5 days', '+11 days', true];\n // changing outside grace period is allowed with grace and full permission\n yield [false, true, '+5 days', '+11 days', false];\n yield [true, false, '+5 days', '+11 days', false];\n yield [true, true, '+5 days', '+11 days', false];\n }", "public function getTestIterationData()\n {\n $cases = [];\n\n // Case #0 Standard iterator.\n $cases[] = [\n [\n 'hits' => [\n 'total' => 1,\n 'hits' => [\n [\n '_type' => 'content',\n '_id' => 'foo',\n '_score' => 0,\n '_source' => ['header' => 'Test header'],\n ],\n ],\n ],\n ],\n [\n [\n '_type' => 'content',\n '_id' => 'foo',\n '_score' => 0,\n '_source' => ['header' => 'Test header'],\n ],\n ],\n ];\n\n return $cases;\n }", "public function run()\n {\n $projectNum = Project::count();\n $faker = Faker::create();\n $project_limit=require('Config.php');\n for($i=1;$i<=$projectNum;$i++)\n {\n if($i%200 ==0)\n $this->command->info('Test Suite Seed :'.$i.' out of: '.$projectNum);\n $TestsTestArch = DB::table('project_assignments')->select('user_id','role_id')->\n where([['project_id','=',$i]])->\n whereIn('role_id',[7,8,9])->get();\n //let's say Tester, Test Lead and Test Architect together create around 20-40 folder per projects\n $numberOfTestSuites = rand($project_limit['projects']['min_test_suite'],$project_limit['projects']['max_test_suite']);\n for($j=0;$j<$numberOfTestSuites;++$j)\n {\n TestSuite::create(array(\n 'project_id'=>$i,\n 'name'=>$faker->sentence(4),\n //let's say only 90% of Test Suite have description\n 'description'=>rand(0,100)<80?$faker->paragraph(6):null,\n 'creator_id'=>$faker->randomElement($TestsTestArch)->user_id\n ));\n }\n }\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n\n for($i = 0; $i < 1000; $i++) {\n App\\TestData::create([\n 'username' => $faker->userName,\n 'name' => $faker->name,\n \n ]);\n }\n }", "public function provideTestCases()\n {\n return [\n ['time', ['time'], false],\n ['bar', null, true],\n ];\n }", "protected function fixtureData() {\n\t\t$rows = array();\n\t\tfor($i = 0; $i < 50; $i++) {\n\t\t\t$rows[] = array(\n\t\t\t\t\"name\" => \"Test Item \".$i,\n\t\t\t\t\"popularity\" => $i,\n\t\t\t\t\"author\" => \"Test Author \".$i,\n\t\t\t\t\"description\" => str_repeat(\"lorem ipsum dolor est \",rand(3,20)),\n\n\t\t\t);\n\t\t}\n\t\treturn $rows;\n\t}", "public function dataProviderTestInit()\n {\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 10,\n 'format' => [\n [-1, -1],\n [-1, -1],\n ],\n ],\n ];\n }", "public function test_scenario1() {\n\n $data = array(array(\"filename\"=> \"data/iris.csv\",\n\t \"local_file\" => \"tmp/if_then_rules_iris.txt\",\n\t\t\t \"expected_file\" => \"data/model/if_then_rules_iris.txt\"),\n array(\"filename\"=> \"data/iris_sp_chars.csv\",\n \"local_file\" => \"tmp/iris_sp_chars.txt\",\n \"expected_file\" => \"data/model/if_then_rules_iris_sp_chars.txt\"),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam.txt\"),\n array(\"filename\"=> \"data/grades.csv\",\n \"local_file\" => \"tmp/if_then_rules_grades.txt\",\n \"expected_file\" => \"data/model/if_then_rules_grades.txt\"),\n array(\"filename\"=> \"data/diabetes.csv\",\n \"local_file\" => \"tmp/if_then_rules_diabetes.txt\",\n \"expected_file\" => \"data/model/if_then_rules_diabetes.txt\"),\n array(\"filename\"=> \"data/iris_missing2.csv\",\n \"local_file\" => \"tmp/if_then_rules_iris_missing2.txt\",\n \"expected_file\" => \"data/model/if_then_rules_iris_missing2.txt\"),\n array(\"filename\"=> \"data/tiny_kdd.csv\",\n \"local_file\" => \"tmp/if_then_rules_tiny_kdd.txt\",\n \"expected_file\" => \"data/model/if_then_rules_tiny_kdd.txt\")\n\t );\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a model and translate the tree model into a set of IF-THEN rules\\n\";\n\t print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n\t $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n\t $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n\t $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the local source is ready\\n\";\n\t $resource = self::$api->_check_resource($source->resource, null, 3000, 30);\n\t $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create dataset with local source\\n\";\n\t $dataset = self::$api->create_dataset($source->resource);\n\t $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n\t $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n\t $resource = self::$api->_check_resource($dataset->resource, null, 3000, 30);\n\t $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n\t $model = self::$api->create_model($dataset->resource);\n\t $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wail until the model is ready\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n\t $local_model = new Model($model->resource, self::$api);\n print \"I translate the tree into IF_THEN rules\\n\";\n\n\t $fp = fopen($item[\"local_file\"], 'w');\n $local_model->rules($fp);\n fclose($fp);\n\t print \" Then I check the output is like \" . $item[\"expected_file\"] . \" expected file\\n\";\n $this->assertEquals(0, strcmp(trim(file_get_contents($item[\"local_file\"])), trim(file_get_contents($item[\"expected_file\"]))));\n\n }\n\n\n }", "public function actionGenerate()\n {\n \\bariew\\yii2Tools\\tests\\FixtureManager::init();\n }", "public function testSampleData()\n {\n $_SESSION['behat']['GenesisSqlExtension']['notQuotableKeywords'] = [];\n\n $types = [\n 'boolean' => 'false',\n 'integer' => self::INT_NUMBER,\n 'double' => self::INT_NUMBER,\n 'int' => self::INT_NUMBER,\n 'tinyint' => self::TINY_INT_NUMBER,\n 'string' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'text' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'varchar' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'character varying' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'tinytext' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'char' => \"'f'\",\n 'timestamp' => 'NOW()',\n 'timestamp with time zone' => 'NOW()',\n 'null' => null,\n 'longtext' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'randomness' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\"\n ];\n\n // Assert\n foreach ($types as $type => $val) {\n // Execute\n $result = $this->testObject->sampleData($type);\n\n $this->assertEquals($val, $result);\n }\n }", "public function run()\n {\n $faker = Faker::create();\n\n foreach (range(1, 92) as $index) {\n\t $data = new Eptparticipant;\n $data->id_user = $faker->unique()->numberBetween($min = 7, $max = 98);\n\t $data->id_major = $faker->numberBetween($min = 1, $max = 102);\n\t $data->idnumber_eptparticipant = $this->random10();\n\t $data->gender = $faker->randomElement($array = array ('Male','Female'));\n\t $data->place_of_birth = $faker->city;\n $data->date_of_birth = $faker->date($format = 'Y-m-d', $max = 'now');\n\t $data->address = $faker->streetAddress;\n\t $data->handphone_number = $faker->tollFreePhoneNumber;\n $data->created_at = Carbon::now();\n $data->updated_at = Carbon::now();\n $data->save();\n }\n }", "public function generateTestClass($testClass, $testCases);", "protected function createTestData()\n {\n // Cleanup any old objects\n $this->deleteTestData();\n \n // Get datamapper\n $dm = $this->account->getServiceManager()->get(\"Entity_DataMapper\");\n \n // Create a campaign for filtering\n $obj = $this->account->getServiceManager()->get(\"EntityLoader\")->create(\"marketing_campaign\");\n $obj->setValue(\"name\", \"Unit Test Aggregates\");\n $this->campaignId = $dm->save($obj);\n if (!$this->campaignId)\n throw new \\Exception(\"Could not create campaign\");\n\n // Create first opportunity\n $obj = $this->account->getServiceManager()->get(\"EntityLoader\")->create(\"opportunity\");\n $obj->setValue(\"name\", \"Website\");\n $obj->setValue(\"f_won\", false);\n $obj->setValue(\"probability_per\", 50);\n $obj->setValue(\"campaign_id\", $this->campaignId);\n $obj->setValue(\"amount\", 100);\n $oid = $dm->save($obj);\n \n // Create first opportunity\n $obj = $this->account->getServiceManager()->get(\"EntityLoader\")->create(\"opportunity\");\n $obj->setValue(\"name\", \"Application\");\n $obj->setValue(\"f_won\", true);\n $obj->setValue(\"probability_per\", 75);\n $obj->setValue(\"campaign_id\", $this->campaignId);\n $obj->setValue(\"amount\", 50);\n $oid = $dm->save($obj);\n }", "public function conversionTestingDataProvider() {}", "public function readTestData()\n {\n return $this->testData->get();\n }", "public static function get_tests()\n {\n }", "public function testData() {\n $subscription = $this->mockSubscription('[email protected]', (object) [\n 'fields' => [\n ['name' => 'FIRSTNAME'],\n ['name' => 'LASTNAME'],\n ],\n ]);\n\n // Test new item.\n list($cr, $api) = $this->mockProvider();\n $source1 = new ArraySource([\n 'firstname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source1);\n list($data, $fingerprint) = $cr->data($subscription, []);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n ], $data);\n\n // Test item with existing data.\n list($cr, $api) = $this->mockProvider();\n $source2 = new ArraySource([\n 'lastname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source2);\n list($data, $fingerprint) = $cr->data($subscription, $data);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n 'LASTNAME' => 'test',\n ], $data);\n }", "public function runTests()\n {\n $this->testCase(1, array (1, 1));\n $this->testCase(2, array (1, 2));\n $this->testCase(3, array (2, 2));\n $this->testCase(4, array (2, 2));\n $this->testCase(5, array (2, 3));\n $this->testCase(6, array (2, 3));\n $this->testCase(7, array (3, 3));\n $this->testCase(8, array (3, 3));\n $this->testCase(9, array (3, 3));\n $this->testCase(10, array(2, 5));\n $this->testCase(11, array(3, 4));\n $this->testCase(12, array(3, 4));\n $this->testCase(13, array(4, 4));\n $this->testCase(14, array(4, 4));\n $this->testCase(15, array(4, 4));\n $this->testCase(16, array(4, 4));\n $this->testCase(17, array(3, 6));\n $this->testCase(18, array(3, 6));\n $this->testCase(19, array(4, 5));\n $this->testCase(20, array(4, 5));\n $this->testCase(21, array(3, 7));\n $this->testCase(22, array(5, 5));\n $this->testCase(23, array(5, 5));\n $this->testCase(24, array(5, 5));\n $this->testCase(25, array(5, 5));\n $this->testCase(26, array(4, 7));\n $this->testCase(27, array(4, 7));\n $this->testCase(28, array(4, 7));\n $this->testCase(29, array(5, 6));\n $this->testCase(30, array(5, 6));\n $this->testCase(31, array(4, 8));\n $this->testCase(32, array(4, 8));\n $this->testCase(33, array(6, 6));\n $this->testCase(34, array(6, 6));\n $this->testCase(35, array(6, 6));\n $this->testCase(36, array(6, 6));\n $this->testCase(37, array(5, 8));\n $this->testCase(38, array(5, 8));\n $this->testCase(39, array(5, 8));\n $this->testCase(40, array(5, 8));\n $this->testCase(41, array(6, 7));\n $this->testCase(42, array(6, 7));\n $this->testCase(43, array(5, 9));\n $this->testCase(44, array(5, 9));\n $this->testCase(45, array(5, 9));\n $this->testCase(46, array(7, 7));\n $this->testCase(47, array(7, 7));\n $this->testCase(48, array(7, 7));\n $this->testCase(49, array(7, 7));\n $this->testCase(50, array(5, 10));\n $this->testCase(51, array(6, 9));\n $this->testCase(52, array(6, 9));\n $this->testCase(53, array(6, 9));\n $this->testCase(54, array(6, 9));\n $this->testCase(55, array(7, 8));\n $this->testCase(56, array(7, 8));\n $this->testCase(57, array(6, 10));\n $this->testCase(58, array(6, 10));\n $this->testCase(59, array(6, 10));\n $this->testCase(60, array(6, 10));\n $this->testCase(61, array(8, 8));\n $this->testCase(62, array(8, 8));\n $this->testCase(63, array(8, 8));\n $this->testCase(64, array(8, 8));\n $this->testCase(65, array(6, 11));\n $this->testCase(66, array(6, 11));\n $this->testCase(67, array(7, 10));\n $this->testCase(68, array(7, 10));\n $this->testCase(69, array(7, 10));\n $this->testCase(70, array(7, 10));\n $this->testCase(71, array(8, 9));\n $this->testCase(72, array(8, 9));\n $this->testCase(73, array(7, 11));\n $this->testCase(74, array(7, 11));\n $this->testCase(75, array(7, 11));\n $this->testCase(76, array(7, 11));\n $this->testCase(77, array(7, 11));\n $this->testCase(78, array(9, 9));\n $this->testCase(79, array(9, 9));\n $this->testCase(80, array(9, 9));\n $this->testCase(81, array(9, 9));\n $this->testCase(82, array(7, 12));\n $this->testCase(83, array(7, 12));\n $this->testCase(84, array(7, 12));\n $this->testCase(85, array(8, 11));\n $this->testCase(86, array(8, 11));\n $this->testCase(87, array(8, 11));\n $this->testCase(88, array(8, 11));\n $this->testCase(89, array(9, 10));\n $this->testCase(90, array(9, 10));\n $this->testCase(91, array(7, 13));\n $this->testCase(92, array(8, 12));\n $this->testCase(93, array(8, 12));\n $this->testCase(94, array(8, 12));\n $this->testCase(95, array(8, 12));\n $this->testCase(96, array(8, 12));\n $this->testCase(97, array(10, 10));\n $this->testCase(98, array(10, 10));\n $this->testCase(99, array(10, 10));\n $this->testCase(100, array(10, 10));\n }", "public function test_scenario1() {\n\n $data = array(\n array(\"model\" =>\n array(\"topic_model\" =>\n array(\"alpha\" => 0.08,\n \"beta\" => 0.1,\n \"hashed_seed\" => 0,\n \"language\" => \"en\",\n \"bigrams\" => True,\n \"case_sensitive\" => False,\n \"term_topic_assignments\" => array(array(0, 0, 1, 2),\n array(0, 1, 2, 0),\n array(1, 2, 0, 0),\n array(0, 0, 2, 0)),\n \"termset\" => array(\"cycling\", \"playing\", \"shouldn't\", \"uńąnimous court\"),\n \"options\" => [],\n \"topics\" => array(array(\"name\" => \"Topic 1\",\n \"id\" => \"000000\",\n \"top_terms\" => array(\"a\", \"b\"),\n \"probability\" => 0.1),\n array(\"name\" => \"Topic 2\",\n \"id\" => \"000001\",\n \"top_terms\" => array(\"c\", \"d\"),\n \"probability\" => 0.1),\n array(\"name\" => \"Topic 3\",\n \"id\" => \"000000\",\n \"top_terms\" => array(\"e\", \"f\"),\n \"probability\" => 0.1),\n array(\"name\" => \"Topic 4\",\n \"id\" => \"000000\",\n \"top_terms\" => array(\"g\", \"h\"),\n \"probability\" => 0.1)),\n \"fields\" => array(\"000001\" => array(\"datatype\" => \"string\",\n \"name\" => \"TEST TEXT\",\n \"optype\" => \"text\",\n \"order\" => 0,\n \"preferred\" => True,\n \"summary\" => [],\n \"term_analysis\" => []))),\n \"resource\" => \"topicmodel/aaaaaabbbbbbccccccdddddd\",\n \"status\" => array(\"code\" => 5)),\n \"text\" => array(\"TEST TEXT\" => \"uńąnimous court 'UŃĄNIMOUS COURT' `play``the plays PLAYing SHOULDN'T CYCLE cycling shouldn't uńąnimous or court's\"),\n \"expected\" => array(array(\"name\" => 'Topic 1', \"probability\" => 0.17068527918781726),\n array(\"name\" => 'Topic 2', \"probability\" => 0.1865482233502538),\n array(\"name\" => 'Topic 3', \"probability\" => 0.5157043147208121),\n array(\"name\" => 'Topic 4', \"probability\" => 0.12706218274111675))));\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a local distribution from a Topic Model\\n\";\n print \"I create a local topic model\\n\";\n $object = json_decode(json_encode($item[\"model\"]), FALSE);\n $local_topic_model = new TopicModel($object);\n\n print \"I create a distribution for local topic model\\n\";\n $distribution = $local_topic_model->distribution($item[\"text\"]);\n\n print \"And the distribution for local topic model equals the expected values.\\n\";\n $this->assertEquals($distribution, $item[\"expected\"]);\n }\n }", "public function getTests();", "function getTestCaseData($testCaseID, $theSubjectID, $roundID, $studyID, $clientID) {\n global $definitions;\n\n $testCaseParentTestCategoryPropertyID = getClientPropertyID_RelatedWith_byName($definitions['testcasesFolderID'], $clientID);\n\n $theTestCase = array();\n $theTestCase['TC_ID'] = $testCaseID;\n $theTestCase['ROUND_ID'] = $roundID;\n $theTestCase['STUDY_ID'] = $studyID;\n $theTestCase['SUBJECT_ID'] = $theSubjectID;\n\n //Also, get the parent testCategory for the test case\n $theTestCase['PARENT_TC_ID'] = getItemPropertyValue($testCaseID, $testCaseParentTestCategoryPropertyID, $clientID);\n\n //Get the steps for this testCase\n $theSteps = array();\n\n $theSteps = getStepsScriptsForTestCase($testCaseID, $theSubjectID, $roundID, $studyID, $clientID);\n //print(\"Steps scritps details for testCase $testCaseID and subject $theSubjectID\\n\\r\" );\n //print_r($theSteps);\n $stepsCount = 0;\n //Only returns the testcase if any step of the test case is automated and has the type passed (TODO this last)\n $hasAutomatedSteps = \"NO\";\n\n //Add the steps to the result\n for ($i = 0; $i < count($theSteps); $i++) {\n if ($theSteps[$i]['scriptAppValue'] == 'steps.types.php') {\n //print(\"found automated step\\n\\r\");\n $theTestCase['STEP_ID_' . $stepsCount] = $theSteps[$i]['ID'];\n $theTestCase['STEP_TYPE_' . $stepsCount] = $theSteps[$i]['stepType'];\n $theTestCase['STEP_APPTYPE_' . $stepsCount] = $theSteps[$i]['scriptAppValue'];\n $theTestCase['STEP_RESULT_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_Result_ID'];\n //Get the stepUnits values\n\n if (isset($theSteps[$i]['stepUnit_SELENIUMRESULT_ID'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULT_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUMRESULT_ID'];\n }\n if (isset($theSteps[$i]['stepUnit_SELENIUMRESULT_DESCRIPTION_ID'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULT_DESCRIPTION_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUMRESULT_DESCRIPTION_ID'];\n }\n if (isset($theSteps[$i]['stepUnit_SELENIUM_LASTRESULT_ID'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULT_LASTRESULT_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUM_LASTRESULT_ID'];\n\n }\n if (isset($theSteps[$i]['stepUnit_SELENIUMDESCRIPTION_LASTRESULT_ID'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULTDESCRIPTION_LASTRESULT_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUMDESCRIPTION_LASTRESULT_ID'];\n\n }\n if (isset($theSteps[$i]['stepUnit_SELENIUMRESULT_EXECVALUE'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULTEXECVALUE_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUMRESULT_EXECVALUE'];\n\n }\n\n $stepsCount++;\n $hasAutomatedSteps = \"YES\";\n }\n }\n\n if ($hasAutomatedSteps == \"YES\") {\n //And return the test case\n //print (\"Return automated testCase: $testCaseID\\n\\r\");\n return $theTestCase;\n } else {\n //print (\"Not automated testCase $testCaseID. Return null\\n\\r\");\n return null;\n }\n\n}", "public function run()\n {\n $table_count = env('TABLE_COUNT');\n $grant_count = Grant::all()->count();\n $counter = 0;\n $faker = Faker::create();\n\n for ($i = 1; $i <= env('MAJOR_TABLE_COUNT'); $i++) {\n factory(Sample::class)->create([\n 'user_id' => rand(1, $table_count),\n 'analysis_id' => (++$counter < $table_count) ? rand(0, 1) ? $faker->unique()->numberBetween(1, $table_count) : NULL : NULL,\n 'spectrometer_id' => rand(1, $table_count),\n 'solvent_id' => rand(1, $table_count),\n // Not all samples need to be marked as analysed\n // neither belong to grant\n 'grant_id' => rand(0, 1) ? rand(1, $grant_count) : NULL,\n ]);\n }\n }", "public function testAllData()\n {\n Runner::truncate();\n Runner::factory()->count(15)->create();\n\n $headers['Accept'] = 'application/json';\n\n $response = $this->get('/api/v1/runner/1/form-data', $headers);\n\n $response->assertStatus(200)->assertJsonStructure(['success', 'data', 'status']);\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n $data = [];\n foreach (range( 1, 10 ) as $key => $value) {\n $data[] = [ 'name' => 'tag' . $faker->randomNumber(),\n 'hot'=>$faker->randomNumber(),\n 'create_at'=>\\Carbon\\Carbon::now()->toDateTimeString(),\n 'update_at'=>\\Carbon\\Carbon::now()->toDateTimeString()\n ];\n }\n }", "public function unitTestDataProvider()\n {\n\n return [\n 'test1' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL,\n ],\n\n 'test2' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n $fav->add('<abc2>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL\n .'<abc2>'.PHP_EOL,\n ],\n\n 'test3' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n $fav->add('<abc>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL,\n ],\n ];\n }", "public function testCanBeCreatedFromGetData(): void\n {\n $this->assertEquals(\n 'C:\\Documents\\Word\\Work\\Current\\1\\2\\3<br>',\n (new Read)->getData('current')\n );\n $this->assertIsString((new Read)->getData('current'));\n\n $this->assertEquals(\n 'C:\\Documents\\Software Engineer\\Projects\\AnnualReport.xls<br>',\n (new Read)->getData('software engineer')\n );\n $this->assertIsString((new Read)->getData('software engineer'));\n\n $this->assertEquals(\n 'C:\\Documents\\Salary\\Accounting\\Accounting.xls<br>',\n (new Read)->getData('accounting')\n );\n $this->assertIsString((new Read)->getData('accounting'));\n }", "abstract public function generateData(array $data);", "public function run()\n {\n // $faker = \\Faker\\Factory::create();\n // Assessment::create([\n // 'teacher_id' => rand(0, 10),\n // 'pupil_id' => rand(0, 10),\n // 'test_id' => rand(0, 10),\n // 'assessment_no' => rand(0, 120),\n // 'assessment_date' => $faker->date,\n // ]);\n factory(App\\Models\\Assessment::class, 10)->create();\n }", "public function run()\n {\n $count = CountString::$countTests;\n $ar = $this->getAr();\n for ($i = 1, $ii = 1; $i <= $count; $i++, $ii++) {\n if ($ii > 3) {\n $ii = 1;\n }\n\n if ((Test::where('id', '=', $i)->first()) === null) {\n $Test = Test::create([\n 'user_id' => '1',\n 'grade_id' => $ii ,\n 'subject_id' => $ii,\n 'page_id' => $ii,\n 'name' => ($i) . '-й тест',\n 'slug' => str_slug(($i) . '-й тест', '_', 'en'),\n\n\n 'text_input' => $ar['input'][$ii-1],\n 'text_html' => $ar['html'][$ii-1],\n\n 'difficulty' => 0,\n 'difficulty_2' => 0,\n 'difficulty_3' => 0,\n\n\n 'comment' => 'comment - ' . $i,\n 'description' => 'description - ' . $i,\n\n\n 'active' => 1,\n 'published_at' => now()\n\n ]);\n\n $Test->save();\n }\n }\n }", "public function generateSampleCode() {\n\t\t$sampleCode = new SampleCode();\n\t\treturn array($sampleCode);\n\t}", "public function providerTestGeneration() {\n return [\n 1 => [1, \"I\"],\n 2 => [2, \"II\"],\n 3 => [3, \"III\"],\n 4 => [4, \"IV\"],\n 5 => [5, \"V\"],\n 6 => [6, \"VI\"],\n 9 => [9, \"IX\"],\n 27 => [27, \"XXVII\"],\n 48 => [48, \"XLVIII\"],\n 59 => [59, \"LIX\"],\n 93 => [93, \"XCIII\"],\n 141 => [141, \"CXLI\"],\n 163 => [163, \"CLXIII\"],\n 402 => [402, \"CDII\"],\n 575 => [575, \"DLXXV\"],\n 911 => [911, \"CMXI\"],\n 1024 => [1024, \"MXXIV\"],\n 3000 => [3000, \"MMM\"]\n ];\n }", "public function test_scenario6() {\n $data = array(array('filename' => 'data/iris.csv', 'expected_file' => 'data/model/summarize_iris.txt', 'local_file' => 'tmp/summarize_iris.txt'),\n array('filename' => 'data/iris_sp_chars.csv', 'expected_file' => 'data/model/summarize_iris_sp_chars.txt', 'local_file' => 'tmp/summarize_iris_sp_chars.txt'),\n array('filename' => 'data/spam.csv', 'expected_file' => 'data/model/summarize_spam.txt', 'local_file' => 'tmp/summarize_spam.txt'),\n array('filename' => 'data/grades.csv', 'expected_file' => 'data/model/summarize_grades.txt', 'local_file' => 'tmp/summarize_grades.txt'),\n array('filename' => 'data/diabetes.csv', 'expected_file' => 'data/model/summarize_diabetes.txt', 'local_file' => 'tmp/summarize_diabetes.txt'),\n array('filename' => 'data/iris_missing2.csv', 'expected_file' => 'data/model/summarize_iris_missing2.txt', 'local_file' => 'tmp/summarize_iris_missing2.txt'),\n array('filename' => 'data/tiny_kdd.csv', 'expected_file' => 'data/model/summarize_tiny_kdd.txt', 'local_file' => 'tmp/summarize_tiny_kdd.txt')\n );\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a model and check its summary information:\\n\";\n print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the source is ready\\n\";\n $resource = self::$api->_check_resource($source->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create dataset with local source\\n\";\n $dataset = self::$api->create_dataset($source->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n $resource = self::$api->_check_resource($dataset->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n $model = self::$api->create_model($dataset->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wait until the model is ready \". $model->resource . \"\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n $local_model = new Model($model->resource, self::$api);\n print \"And I translate the tree into IF_THEN rules\\n\";\n\t $local_model->summarize(fopen($item[\"local_file\"],'w'));\n print \"Then I check the predictions distribution with \". $item[\"expected_file\"] . \" file\\n\";\n\t $this->assertEquals(0, strcmp(trim(file_get_contents($item[\"local_file\"])), trim(file_get_contents($item[\"expected_file\"]))));\n\n }\n\n }", "public function test_scenario5() {\n\n $data = array(array('filename' => 'data/iris.csv', 'expected_file' => 'data/model/predictions_distribution_iris.txt'),\n array('filename' => 'data/iris_sp_chars.csv', 'expected_file' => 'data/model/predictions_distribution_iris_sp_chars.txt'),\n array('filename' => 'data/spam.csv', 'expected_file' => 'data/model/predictions_distribution_spam.txt'),\n array('filename' => 'data/grades.csv', 'expected_file' => 'data/model/predictions_distribution_grades.txt'),\n array('filename' => 'data/diabetes.csv', 'expected_file' => 'data/model/predictions_distribution_diabetes.txt'),\n array('filename' => 'data/iris_missing2.csv', 'expected_file' => 'data/model/predictions_distribution_iris_missing2.txt'),\n array('filename' => 'data/tiny_kdd.csv', 'expected_file' => 'data/model/predictions_distribution_tiny_kdd.txt')\n );\n\n foreach($data as $item) {\n print \"\\n Successfully creating a model and check its predictions distribution\\n\";\n\n print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the source is ready\\n\";\n $resource = self::$api->_check_resource($source->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create dataset with local source\\n\";\n $dataset = self::$api->create_dataset($source->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n $resource = self::$api->_check_resource($dataset->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n $model = self::$api->create_model($dataset->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wait until the model is ready \". $model->resource . \"\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n $local_model = new Model($model->resource, self::$api);\n print \"Then I check the predictions distribution with \". $item[\"expected_file\"] . \" file\\n\";\n\n $file_distribution = file_get_contents($item[\"expected_file\"]);\n $distribution = $local_model->get_prediction_distribution();\n $distribution_str='';\n\n foreach($distribution as $key => $value) {\n $distribution_str= $distribution_str . \"[\" . $key . \",\" . $value . \"]\\n\";\n }\n\n $this->assertEquals(trim($distribution_str), trim($file_distribution));\n\n }\n }", "public function run()\n {\n $faker= \\Faker\\Factory::create();\n for ($i=0; $i < 20; $i++)\n {\n \tHuongDanVien::create([\n \t\t'tenhdv'=> $faker->name,\n \t\t'phai'=> $faker->word,\n \t\t'diachi'=> $faker->word,\n \t\t'sdt'=> $faker->number_format(0122000000),\n \t\t]);\n }\n }", "public function jsonViewTestData() {}", "protected function createTests()\n {\n $name = $this->getNameInput();\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Store{$name}Test\",\n '--model' => $name,\n '--type' => 'store',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Update{$name}Test\",\n '--model' => $name,\n '--type' => 'update',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/View{$name}Test\",\n '--model' => $name,\n '--type' => 'view',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Delete{$name}Test\",\n '--model' => $name,\n '--type' => 'delete',\n ]);\n }", "function deploytestdata() {\n $this->auth(SUPER_ADM_LEVEL);\n $this->load->model('m_testdata');\n if(!$this->m_step->isTestDataLoaded()){\n // inserts from file\n $docRoot = getenv(\"DOCUMENT_ROOT\");\n $filename = $docRoot . '/db/initial_data.sql';\n $lines = file($filename);\n $row_id = 0;\n $success = TRUE;\n foreach ($lines as $line_num => $line) {\n if(!strstr($line, '--')){\n $row_id = $this->m_testdata->runSqlInsert($line);\n }\n if($row_id < 0){\n echo \"problem with file $filename at row $line_num <br/> $line <br/>\";\n $success = FALSE;\n break;\n }\n }\n //create some more users\n $data = array('Filippa', 'Mimmi', 'Tobbe', 'Carlfelix', 'Simpan', 'Mogge', 'janbanan', 'BigRed', 'bigbird', 'Bjork', 'johanna', 'jwalker','Lapen', 'greengreen', 'M', 'tomtekalendern', 'loffe', 'Klaas', 'Kaniin');\n $this->m_testdata->creteUsers($data);\n // insert random steps\n // simulation of user is required to insert steps\n $users = $this->m_user->getAll(400);\n foreach ($users as $user) {\n $d = new JDate();\n $this->_simulate($user->id);\n for($i = 0; $i < 31; $i++ ){\n $this->m_step->create_x($user->id, 1, $this->_randomSteps(), $d->getDate());\n $d->subDays(1);\n }\n $this->_stopsimulate();\n }\n\n echo $success ? 'Success! hopefully ;)': '';\n } else {\n echo 'Testdata allready run';\n }\n }", "protected function getTestcaseFilenames() {\n\t\t$packageManager = $this->objectManager->getObject('F3\\FLOW3\\Package\\PackageManagerInterface');\n\t\t$packages = array();\n\t\t$testcaseFilenames = array(self::TYPE_UNIT => array(), self::TYPE_INTEGRATION => array(), self::TYPE_SYSTEM => array());\n\n\t\t$testcaseClassNameMatches = array();\n\t\tpreg_match('/F3\\\\\\\\([^\\\\\\\\]*)\\\\\\\\(.*)/', $this->testcaseClassName, $testcaseClassNameMatches);\n\t\tif (count($testcaseClassNameMatches) === 3) {\n\t\t\t$this->testcaseClassName = $testcaseClassNameMatches[2];\n\t\t\tif ($testcaseClassNameMatches[1] === '.*') {\n\t\t\t\t$packages = $packageManager->getActivePackages();\n\t\t\t} elseif ($packageManager->isPackageActive($testcaseClassNameMatches[1])) {\n\t\t\t\t$packages = array($packageManager->getPackage($testcaseClassNameMatches[1]));\n\t\t\t}\n\t\t} elseif ($this->packageKey == '*') {\n\t\t\t$packages = $packageManager->getActivePackages();\n\t\t\t$this->testcaseClassName = '.*Test';\n\t\t} elseif ($packageManager->isPackageActive($this->packageKey)) {\n\t\t\t$packages = array($packageManager->getPackage($this->packageKey));\n\t\t\t$this->testcaseClassName = '.*Test';\n\t\t}\n\n\t\tshuffle($packages);\n\t\tforeach ($packages as $package) {\n\t\t\tif (in_array($package->getPackageKey(), $this->testBlacklist)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tforeach (array(\n\t\t\t\t\tself::TYPE_UNIT => \\F3\\FLOW3\\Package\\Package::DIRECTORY_TESTS_UNIT,\n\t\t\t\t\tself::TYPE_INTEGRATION => \\F3\\FLOW3\\Package\\Package::DIRECTORY_TESTS_INTEGRATION,\n\t\t\t\t\tself::TYPE_SYSTEM => \\F3\\FLOW3\\Package\\Package::DIRECTORY_TESTS_SYSTEM,\n\t\t\t\t) as $type => $directory) {\n\t\t\t\t$testPath = $package->getPackagePath() . $directory;\n\t\t\t\tif (is_dir($testPath)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$testsDirectoryIterator = new \\RecursiveDirectoryIterator($testPath);\n\n\t\t\t\t\t\t$testcaseFilenames[$type] = $this->readDirectories($testcaseFilenames[$type], $testsDirectoryIterator);\n\t\t\t\t\t\t\\PHPUnit_Util_Filter::removeDirectoryFromFilter($package->getPackagePath() . 'Classes');\n\t\t\t\t\t} catch(\\Exception $exception) {\n\t\t\t\t\t\tthrow new \\RuntimeException($exception->getMessage(), 1170236926);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tshuffle($testcaseFilenames[$type]);\n\t\t\t}\n\t\t}\n\t\treturn $testcaseFilenames;\n\t}", "public function run()\n {\n $labOrder = factory(LabOrder::class)->create();\n $SKUs = SKU::where('item_type', 'lab-test')->get()->shuffle();\n\n for ($i=0; $i < 5; $i++) {\n $labTest = factory(LabTest::class)->create([\n 'lab_order_id' => $labOrder->id,\n 'sku_id' => $SKUs->pop()->id,\n ]);\n if (maybe()) {\n factory(LabTestResult::class)->create([\n 'lab_test_id' => $labTest->id,\n ]);\n }\n }\n }", "public function generateDataForTest()\r\n {\r\n return array(\r\n array(\r\n \"\r\n\t\t\t\t\tUser-Agent: *\r\n\t\t\t\t\",\r\n null,\r\n ),\r\n array(\r\n \"\r\n\t\t\t\t\tUser-Agent: *\r\n\t\t\t\t\tHost: www.example.com\r\n\t\t\t\t\",\r\n 'www.example.com',\r\n ),\r\n array(\r\n \"\r\n\t\t\t\t\tHost: example.com\r\n\t\t\t\t\",\r\n 'example.com',\r\n ),\r\n array(\r\n \"\r\n\t\t\t\tHost: example.com\r\n\t\t\t\tUser-Agent: google\r\n\t\t\t\tHost: www.example.com\r\n\t\t\t\t\",\r\n 'example.com',\r\n 'expected first host value'\r\n ),\r\n array(\r\n \"\r\n\t\t\t\tUser-Agent: google\r\n\t\t\t\tHost: example.com\r\n\t\t\t\tHost: www.example.com\r\n\t\t\t\t\",\r\n 'example.com',\r\n 'expected assign host to * because host is cross-section directive'\r\n ),\r\n );\r\n }", "function morestepdata() {\n $this->auth(SUPER_ADM_LEVEL);\n $this->load->model('m_testdata');\n $users = $this->m_user->getAll(400);\n // insert random steps\n // simulation of user is required to insert steps\n foreach ($users as $user) {\n $d = new JDate();\n $this->_simulate($user->id);\n for ($i = 0; $i < 3; $i++) {\n $this->m_step->create_x($user->id, 1, $this->_randomSteps(), $d->getDate());\n $d->subDays(1);\n }\n $this->_stopsimulate();\n }\n echo 'Success! hopefully ;)' ;\n }", "public function provideTestData(): array\n {\n return [\n 'Role may handle the command' => [new FakeCommand(), 'ROLE_ADMIN'],\n 'Test role hierarchy' => [new FakeCommand(), 'ROLE_SUPER_ADMIN'],\n 'Role may not handle the command' => [new FakeCommand(), 'ROLE_USER', AccessDeniedException::class],\n 'Deny access if command is not in the mapping' => [new stdClass(), 'ROLE_SUPER_ADMIN', AccessDeniedException::class],\n ];\n }", "private function getTestData()\n {\n return [\n 'url' => 'http://www.mystore.com',\n 'access-token' => 'thisisaccesstoken',\n 'integration-token' => 'thisisintegrationtoken',\n 'method' => \\Magento\\Framework\\HTTP\\ZendClient::POST,\n 'body'=> ['token' => 'thisisintegrationtoken','url' => 'http://www.mystore.com'],\n ];\n }", "public function run()\n {\n \n // Creating Rough Reports\n factory(App\\Report::class,4)->create();\n // Adding Paramters to Reports\n\t\t$faker = Faker\\Factory::create();\n\t\tfor ( $i = 1; $i < 4; $i++) // generate same no. of records as the no. in Report above\n { \n\t\t\t$report = App\\Report::whereId($i)->first();\t\t\t\n\t\t\tfor ( $j=1; $j < 6 ; $j++) { \n\t\t\t\t$score = $faker->numberBetween($min = 1, $max = 100);\n\t\t\t \t$parameter = App\\Parameter::whereId($j)->first();\n\t\t\t \t$report->parameters()->save($parameter, ['score' => $score, 'remark' => $faker->sentence($nbWords = 4)]);\n\t\t\t} \n\t\t} \t\t\n }", "public function test_scenario3() {\n\n $data = array(array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_1.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_1.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => true, \"stem_words\" => true, \"use_stopwords\" => false, \"language\" => \"en\"))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_2.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_2.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => true, \"stem_words\" => true, \"use_stopwords\" => false))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_3.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_3.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => false, \"stem_words\" => false, \"use_stopwords\" => false, \"language\" => \"en\"))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_4.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_4.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => false, \"stem_words\" => true, \"use_stopwords\" => true, \"language\" => \"en\"))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_5.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_5.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"token_mode\" => \"full_terms_only\", \"language\" => \"en\" )))))\n );\n\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a model and translate the tree model into a set of IF-THEN rules\\n\";\n\n print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the source is ready\\n\";\n $resource = self::$api->_check_resource($source->resource, null, 10000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I update the source with options \" . json_encode($item[\"options\"]) . \"\\n\";\n\t $source = self::$api->update_source($source->resource, $item[\"options\"]);\n\t $this->assertEquals(BigMLRequest::HTTP_ACCEPTED, $source->code);\n\n print \"And I create dataset with local source\\n\";\n $dataset = self::$api->create_dataset($source->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n $resource = self::$api->_check_resource($dataset->resource, null, 10000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n $model = self::$api->create_model($dataset->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wait until the model is ready \". $model->resource . \"\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 10000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n $local_model = new Model($model->resource, self::$api);\n print \"And I translate the tree into IF_THEN rules\\n\";\n\n $fp = fopen($item[\"local_file\"], 'w');\n $local_model->rules($fp);\n fclose($fp);\n print \" Then I check the output is like \" . $item[\"expected_file\"] . \" expected file\\n\";\n $this->assertEquals(0, strcmp(trim(file_get_contents($item[\"local_file\"])), trim(file_get_contents($item[\"expected_file\"]))));\n\n }\n }", "private function testCollect() {\n $custom_data = array();\n\n // Collect all custom data provided by hook_insight_custom_data().\n $collections = \\Drupal::moduleHandler()->invokeAll('acquia_connector_spi_test');\n\n foreach ($collections as $test_name => $test_params) {\n $status = new TestStatusController();\n $result = $status->testValidate(array($test_name => $test_params));\n\n if ($result['result']) {\n $custom_data[$test_name] = $test_params;\n }\n }\n\n return $custom_data;\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n $start_date = array(\"2020-09-28\", \"2020-09-29\", \"2020-09-30\", \"2020-10-01\", \"2020-10-02\");\n $end_date = array(\"2020-10-10\", \"2020-10-12\", \"2020-10-11\", \"2020-10-15\", \"2020-10-18\");\n $customer = array(329, 344, 346, 349, 351, 352, 353, 354, 355, 356, 360, 361, 362, 363);\n\n for ($i = 1; $i <= 1000; $i++) {\n $planogram = new Planogram;\n $planogram->organisation_id = 61;\n $planogram->customer_id = $customer[array_rand($customer)];\n $planogram->name = $faker->name;\n $planogram->start_date = $start_date[array_rand($start_date)];\n $planogram->end_date = $end_date[array_rand($end_date)];\n $planogram->status = 1;\n $planogram->save();\n }\n }", "public function run()\n {\n // Student::truncate(); // to regenerate whole table data\n $faker = \\Faker\\Factory::create();\n\n // take all the programme id and put into array\n $list = Programme::all()->pluck('programme_id');\n\n // create 100 students from different programme\n for ($i=0;$i<100;$i++){\n Student::create([\n 'programme_id'=>$faker->randomElement($list),\n 'student_id'=> $faker->regexify('20WMD[1-9]{5}'), // condition 20WMD, follow by 5 random numbers\n 'name'=>$faker->name,\n 'age'=>$faker->numberBetween(19,30),\n 'gender'=>$faker->randomElement(['M','F']),\n 'class'=>$faker->numberBetween(1,17),\n 'CGPA'=>$faker->randomFloat(2,2.0,4.0),\n 'address'=>$faker->address,\n 'email'=>$faker->email\n ]);\n }\n }", "public function run()\n {\n \t$faker = Faker\\Factory::create();; \n foreach (range(1, 55) as $key => $value) {\n \tApp\\Student::create([\n \t\t 'name' => $faker->name,\n 'father_name' => $faker->name('male'),\n 'mother_name' => $faker->name('female'),\n 'phone_number' => $faker->phoneNumber,\n 'home_number' => $faker->phoneNumber,\n 'email' => $faker->unique()->safeEmail,\n 'gender' => 'male',\n 'roll_number' => $faker->randomNumber(),\n 'reg_number' => $faker->randomNumber(),\n 'department_id' => $faker->randomNumber(1),\n 'shift' => 'second',\n 'semester' => 'eight',\n 'present_address' => $faker->address,\n 'permanent_address' => $faker->address,\n \t]);\n }\n }", "public function run()\n {\n // *****Data Using Manually*********\n // $student = [\n // [\n // 'name'=>'Jogi',\n // 'lastname'=>'Singh',\n // ],\n // [\n // 'name'=>'Jonty',\n // 'lastname'=>'Singh',\n // ],\n // [\n // 'name'=>'Harsh',\n // 'lastname'=>'Srivastav',\n // ],\n \n // ];\n\n // foreach ($student as $key => $value) {\n // Student::create($value);\n // }\n // *******End Data Manually*************\n // *****************Data Dump Using Faker*******************\n $faker = Faker::create();\n foreach (range(1,100) as $key => $value) {\n Student::create(\n [\n 'name'=>$faker->name,\n 'lastname'=>$faker->lastname\n ]\n );\n }\n\n }", "function randomTest(){\n $treatment = $this->getTreatment();\n $username = $this->generateUsername();\n $hashed = $this->generateMD5Pass();\n $extra = array('username' =>$username,\n\t\t 'treatment' => $treatment,\n\t\t 'hash' => $hashed);\n $output = $this->outputBoilerplate('test.html', $extra);\n return $output; \n }", "public function testDynamicFixture()\n {\n $fixture = new Mad_Test_Fixture_Base($this->_conn, 'unit_tests');\n $fixture->load();\n $record = $fixture->getRecord('unit_test_2');\n \n $this->assertEquals(date(\"Y-m-d\"), $record['date_value']);\n }", "public function getTestResults()\n\t{\n\t\t/*\n\t\t * Wenn die Tests noch nicht ausgeführt wurden, dies nun tun\n\t\t */\n\t\tif ($this->_needRun === true)\n\t\t{\n\t\t\t$this->run();\n\t\t}\n\t\tforeach ($this->_testCases as $key => $testCase)\n\t\t{\n\t\t\t/*\n\t\t\t * Zusicherung nicht erfüllt\n\t\t\t*/\n\t\t\tif ($testCase['assert'] !== $testCase['result'])\n\t\t\t{\n\t\t\t\t$this->_testResults[$key] = $this->_testCases[$key]['functionName'].\": fehlgeschlagen \".\n\t\t\t\t\t$this->boolToString($testCase['assert']).\" != \".$this->boolToString($testCase['result']).\"<br>\";\n\t\t\t\t$this->_failedTests++;\n\t\t\t}\n\t\t\t/*\n\t\t\t * Zusicherung erfüllt\n\t\t\t*/\n\t\t\telse \n\t\t\t{\n\t\t\t\t$this->_testResults[$key] = $this->_testCases[$key]['functionName'].\": erfolgreich \".\n\t\t\t\t\t$this->boolToString($testCase['assert']).\" == \".$this->boolToString($testCase['result']).\"<br>\";\n\t\t\t\t$this->_passedTests++;\n\t\t\t}\n\t\t} \n\t\treturn $this->_testResults;\t\n\t}", "public function testMain()\n {\n echo \"\\n >----------- Test Main : ---------> \\n\";\n// $this->getRandomNumber();\n// $this->getLoggedUserMail();\n// $this->saveVerificationCode();\n// $this->verification();\n// $this->checkEmailVerification();\n// $this->checkSendCode();\n }", "public function createData()\n {\n // TODO: Implement createData() method.\n }", "public function run()\n {\n $faker = Factory::create();\n Template::factory()->count(500)->has(\n TemplateChecklist::factory()->count(1),\n 'checklist'\n )->has(\n TemplateItem::factory()->count($faker->numberBetween(1, 100)),\n 'items'\n )->create();\n }", "public function testCreateTestCaseWithDetails()\n {\n $user = factory(App\\User::class)->create();\n\n $this->actingAs($user)\n ->visit('/library')\n ->click('#newCase')\n ->seePageIs('/library/testcase/create')\n ->type('TestCase2', 'name1')\n ->select('1', 'testSuite1')\n ->type('someDecription','description1')\n ->type('somePrefixes','prefixes1')\n ->type('someSteps','steps1')\n ->type('someResult','expectedResult1')\n ->type('someSuffixes','suffixes1')\n ->press('submit');\n\n $this->seeInDatabase('TestCaseHistory', [\n 'TestCaseDescription' => 'someDecription',\n 'TestCasePrefixes' => 'somePrefixes',\n 'TestSteps' => 'someSteps',\n 'ExpectedResult' => 'someResult',\n 'TestCaseSuffixes' => 'someSuffixes'\n ]);\n }", "public function testConstructor()\n {\n echo \"\\n//////////////////////////////////\";\n echo \"\\n/// Test Constructor Method\";\n foreach ($this->dataSet as $key => $data) {\n echo \"\\n\".$key.' : '.$data['test'];\n try {\n new PaymentGateway(\n $data['apiBaseUrl'],\n $data['apiKey'],\n $data['mobile']\n );\n } catch (\\Exception $e) {\n $this->assertEquals($data['isAssertion'], false, 'Error:dataSet number ' . $key . ' is not passed'.\n \"\\nTest:\".$data['test']);\n }\n }\n $this->assertTrue(true);\n }", "public function testGetUserrecordingsSummary()\n {\n }", "public function seed()\n\t{\n\t\t$this->createDataType();\n\t\t$this->createDataRowForColumns();\n\t}", "public function print_test()\n {\n $clientname = $this->configsys->get_config_value('clientname');\n $clientaddress = $this->configsys->get_config_value('clientaddress');\n $clientcity = $this->configsys->get_config_value('clientcity');\n $clientstate = $this->configsys->get_config_value('clientstate');\n $clientzip = $this->configsys->get_config_value('clientzip');\n $clientphone = $this->configsys->get_config_value('clientphone');\n $clientwebsite = $this->configsys->get_config_value('clientwebsite');\n\n $client_data = array(\n 'clientname' => $clientname,\n 'clientaddress' => $clientaddress,\n 'clientcity' => $clientcity,\n 'clientstate' => $clientstate,\n 'clientzip' => $clientzip,\n 'clientphone' => $clientphone,\n 'clientwebsite' => $clientwebsite\n );\n\n $data['client_data'] = $client_data;\n\n $view_vars = array(\n 'title' => $this->config->item('Company_Title'),\n 'heading' => $this->config->item('Company_Title'),\n 'description' => $this->config->item('Company_Description'),\n 'company' => $this->config->item('Company_Name'),\n 'logo' => $this->config->item('Company_Logo'),\n 'author' => $this->config->item('Company_Author')\n );\n $data['page_data'] = $view_vars;\n\n $post_payment_data = array(\n 'OrderNumber' => '77777',\n 'IsApproved' => 1,\n 'ReturnCode' => 'ReturnCode',\n 'ResponseHTML' => 'This is the response HTML',\n 'UpdateDate' => date('Y-n-j H:i:s')\n );\n $result_data = $post_payment_data;\n $data['result_data'] = $result_data;\n\n\n $submitted_data['transaction_id'] = '12345676';\n $submitted_data['creditcard'] = '1111';\n $submitted_data['expirationmonth'] = '08';\n $submitted_data['expirationyear'] = 2012;\n $submitted_data['cvv2'] = '123';\n $submitted_data['PaymentSource'] = 'VT';\n $submitted_data['amount'] = '125.34';\n $submitted_data['cclast4'] = '4444';\n $submitted_data['name'] = 'John Doe';\n\n $data['submitted_data'] = $submitted_data;\n\n $this->load->view('virtualterminalformresult', $data);\n\n }", "protected abstract function createTestTable();", "protected function createTests() :void\n {\n $directory = app_path('tests');\n\n Storage::makeDirectory($directory, true);\n PhpUnit::create('phpunit', app_path());\n }", "public function run()\n {\n $faker = Faker::create();\n foreach(range(1,10) as $index) {\n \tEmployee::create([\n \t\t'name'=>$faker->name(),\n \t\t'code'=>$faker->unique()->randomDigit,\n \t\t'designation'=>$faker->randomElement($array=array('Developer','Desginer','Tester','Businees Analyist','Admin','HR','Recuirtment','House Keeping')),\n \t\t'department'=>$faker->jobTitle,\n \t\t'status'=>$faker->randomElement($status = [0,1]), \t\t\n \t\t'location'=>$faker->country\n \t\t]);\n }\n }", "public function run()\n {\n $faker = Faker::create();\n //echo $faker->word();die();\n //var_dump($faker);die();\n\n for($i=0; $i<100; $i++) \n {\n Maker::create\n ([\n 'name' => $faker->unique()->company(),\n 'phone' => $faker->phoneNumber()\n ]);\n }\n }", "public function setUp()\n {\n $this->data = array(\n 'folder_name_1' => array(\n 'src' => 'source_1',\n 'dst' => 'destination_1',\n ),\n 'folder_name_2' => array(\n 'src' => 'source_2',\n 'dst' => 'destination_2',\n 'client' => 'test'\n )\n );\n }", "public function getTestAddAndGetData()\n {\n return [\n ['namespace_1', 'key_11'],\n ['namespace_2', 'key_21'],\n ];\n }", "public function test_process_data() {\n global $DB, $CFG;\n\n $this->resetAfterTest(true);\n\n $course = $this->getDataGenerator()->create_course();\n\n // Create and enrol a student.\n $student = $this->getDataGenerator()->create_user(array('username' => 'Student Sam'));\n $role = $DB->get_record('role', array('shortname' => 'student'), '*', MUST_EXIST);\n $this->getDataGenerator()->enrol_user($student->id, $course->id, $role->id);\n\n // Test with limited grades.\n $CFG->unlimitedgrades = 0;\n\n $forummax = 80;\n $forum1 = $this->getDataGenerator()->create_module('forum', array('assessed' => 1, 'scale' => $forummax, 'course' => $course->id));\n // Switch the stdClass instance for a grade item instance.\n $forum1 = grade_item::fetch(array('itemtype' => 'mod', 'itemmodule' => 'forum', 'iteminstance' => $forum1->id, 'courseid' => $course->id));\n\n $report = $this->create_report($course);\n $testgrade = 60.00;\n\n $data = new stdClass();\n $data->id = $course->id;\n $data->report = 'grader';\n $data->timepageload = time();\n\n $data->grade = array();\n $data->grade[$student->id] = array();\n $data->grade[$student->id][$forum1->id] = $testgrade;\n\n $warnings = $report->process_data($data);\n $this->assertEquals(count($warnings), 0);\n\n $studentgrade = grade_grade::fetch(array('itemid' => $forum1->id, '' => $student->id));\n $this->assertEquals($studentgrade->finalgrade, $testgrade);\n\n // Grade above max. Should be pulled down to max.\n $toobig = 200.00;\n $data->grade[$student->id][$forum1->id] = $toobig;\n $data->timepageload = time();\n $warnings = $report->process_data($data);\n $this->assertEquals(count($warnings), 1);\n\n $studentgrade = grade_grade::fetch(array('itemid' => $forum1->id, '' => $student->id));\n $this->assertEquals($studentgrade->finalgrade, $forummax);\n\n // Grade below min. Should be pulled up to min.\n $toosmall = -10.00;\n $data->grade[$student->id][$forum1->id] = $toosmall;\n $data->timepageload = time();\n $warnings = $report->process_data($data);\n $this->assertEquals(count($warnings), 1);\n\n $studentgrade = grade_grade::fetch(array('itemid' => $forum1->id, '' => $student->id));\n $this->assertEquals($studentgrade->finalgrade, 0);\n\n // Test unlimited grades so we can give a student a grade about max.\n $CFG->unlimitedgrades = 1;\n\n $data->grade[$student->id][$forum1->id] = $toobig;\n $data->timepageload = time();\n $warnings = $report->process_data($data);\n $this->assertEquals(count($warnings), 0);\n\n $studentgrade = grade_grade::fetch(array('itemid' => $forum1->id, '' => $student->id));\n $this->assertEquals($studentgrade->finalgrade, $toobig);\n }", "protected function setUp()\r\n {\r\n $this->object = new Json;\r\n mkdir('data/tests');\r\n file_put_contents('data/tests/test.json', json_encode(\\MockObject\\FileDataStub::getData()));\r\n }", "public function test() {\n $results = [];\n $results[\"testAddUser\"] = $this->testAddUser();\n\n return $results;\n }", "public function run()\n {\n $faker = Faker::create();\n $preUach = PreUach::all();\n $samples_temp = [];\n\n foreach ($preUach as $item)\n {\n\n\n $samples_temp[] = [\n 'postulante' => $item->postulante,\n 'persona_matricula'=> $faker->lastName.' '. $faker->firstName,\n 'fecha_matricula'=>$faker->dateTimeBetween($startDate = '-5 months', $endDate = 'now')\n ]; \t\n }\n\n Declaracion::insert($samples_temp);\n \n }", "public function buildDataProvider()\n {\n $name = 'company * product';\n $phone = '333-22-22-333';\n $url = 'https://test.url.mage.com';\n return [\n [\n 'descriptors' => [\n 'name' => $name,\n 'phone' => $phone,\n 'url' => $url,\n ],\n 'expected' => [\n 'descriptor' => [\n 'name' => $name,\n 'phone' => $phone,\n 'url' => $url,\n ],\n ],\n ],\n [\n 'descriptors' => [\n 'name' => $name,\n 'phone' => $phone,\n ],\n 'expected' => [\n 'descriptor' => [\n 'name' => $name,\n 'phone' => $phone,\n ],\n ],\n ],\n [\n 'descriptors' => [\n 'name' => $name,\n ],\n 'expected' => [\n 'descriptor' => [\n 'name' => $name,\n ],\n ],\n ],\n [\n 'descriptors' => [],\n 'expected' => [],\n ],\n ];\n }", "public function run()\n {\n factory(App\\Subject::class,'assessment',3)->create();\n factory(App\\Group::class,'assessment',3)->create();\n factory(App\\Student::class,'assessment',14)->create();\n factory(App\\Assessment::class,'assessment',40)->create();\n }", "public function run()\n {\n// Test data\n for($i=1;$i<100; $i++)\n {\n $dates = [\n \"2021-04-28 22:32:57\",\n \"2021-02-10 22:32:57\",\n \"2021-01-28 22:32:57\",\n \"2021-01-12 22:32:57\",\n \"2020-12-28 22:32:57\",\n \"2020-11-28 22:32:57\"\n ];\n\n $device = Device::create([\n \"uid\"=>$i,\n \"app_id\"=>$i,\n \"language\"=> \"TR\",\n \"operating_system\"=> \"iOS\",\n \"client_token\"=> generateClientToken(),\n ]);\n\n Application::create([\n \"device_id\"=>$device->id,\n 'username' => \"test\".$i,\n 'password' => encrypt(\"\"),\n 'callback_url' => getBaseUrl(). \"api/test-callback\"\n ]);\n\n Subscription::create([\n \"device_id\"=>$device->id,\n 'expire_date' => $dates[rand(0, 5)],\n 'status' => SUBSCRIPTON_STATUS_STARTED\n ]);\n }\n // \\App\\Models\\User::factory(10)->create();\n }", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "public function run()\n {\n for ($i = 10; $i < rand(1910, 2010); $i++) {\n $pairValue = ['key' => \"key$i\", 'value' => \"value$i\", 'ttl' => '5 mins', 'delete_time' => Carbon::now()->addSeconds(rand(-300, 300))->toDateTimeString()];\n App\\DataModel::create($pairValue);\n }\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n $kelamin = \"laki-laki\";\n foreach (range(1, 100) as $i) {\n \tKajian::create([\n \t\t'waktu'\t\t\t\t=> $faker->dateTimeThisCentury($max = 'now', $timezone = date_default_timezone_get()), \n\n \t\t'tema'\t\t\t\t=> $faker->sentence($nbWords = 6, $variableNbWords = true), \n \t\t'pemateri'\t\t\t=> $faker->name($gender = null|'male'|'female'), \n \t\t'alamat'\t\t\t=> $faker->streetAddress, \n \t\t'deskripsi'\t\t\t=> $faker->paragraph($nbSentences = 3, $variableNbSentences = true), \n \t\t'jenis_peserta'\t\t=> $kelamin, \n \t\t'latitude'\t\t\t=> $faker->latitude, \n \t\t'longitude'\t\t\t=> $faker->longitude,\n 'isRutin' => $faker->boolean\n \t]);\n }\n }", "function setUp() {\n\t\t$this->dataLong = file_get_contents(__DIR__ . '/../lib/crypt.php');\n\t\t$this->dataShort = 'hats';\n\t\t$this->dataUrl = __DIR__ . '/../lib/crypt.php';\n\t\t$this->legacyData = __DIR__ . '/legacy-text.txt';\n\t\t$this->legacyEncryptedData = __DIR__ . '/legacy-encrypted-text.txt';\n\t\t$this->randomKey = Encryption\\Crypt::generateKey();\n\n\t\t$keypair = Encryption\\Crypt::createKeypair();\n\t\t$this->genPublicKey = $keypair['publicKey'];\n\t\t$this->genPrivateKey = $keypair['privateKey'];\n\n\t\t$this->view = new \\OC_FilesystemView('/');\n\n\t\t\\OC_User::setUserId(\\Test_Encryption_Keymanager::TEST_USER);\n\t\t$this->userId = \\Test_Encryption_Keymanager::TEST_USER;\n\t\t$this->pass = \\Test_Encryption_Keymanager::TEST_USER;\n\n\t\t$userHome = \\OC_User::getHome($this->userId);\n\t\t$this->dataDir = str_replace('/' . $this->userId, '', $userHome);\n\n\t\t// remember files_trashbin state\n\t\t$this->stateFilesTrashbin = OC_App::isEnabled('files_trashbin');\n\n\t\t// we don't want to tests with app files_trashbin enabled\n\t\t\\OC_App::disable('files_trashbin');\n\t}", "function getTestDataFromFile($file) {\n return require $file;\n}", "public function testCreateWithAllFields(): void\n {\n $this->doTestCreate('createWithAllFields.json');\n }", "function test_all () {\n\n\t\t$this->layout = 'test';\n\n\t\t$tests_folder = new Folder('../tests');\n\n\t\t$results = array();\n\t\t$total_errors = 0;\n\t\tforeach ($tests_folder->findRecursive('.*\\.php') as $test) {\n\t\t\tif (preg_match('/^(.+)\\.php/i', basename($test), $r)) {\n\t\t\t\trequire_once($test);\n\t\t\t\t$test_name = Inflector::Camelize($r[1]);\n\t\t\t\tif (preg_match('/^(.+)Test$/i', $test_name, $r)) {\n\t\t\t\t\t$module_name = $r[1];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$module_name = $test_name;\n\t\t\t\t}\n\t\t\t\t$suite = new TestSuite($test_name);\n\t\t\t\t$result = TestRunner::run($suite);\n\n\t\t\t\t$total_errors += $result['errors'];\n\n\t\t\t\t$results[] = array(\n\t\t\t\t\t'name'=>$module_name,\n\t\t\t\t\t'result'=>$result,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t$this->set('success', !$total_errors);\n\t\t$this->set('results', $results);\n\t}", "public function run()\n {\n $faker = Faker::create();\n $patients = Patient::all();\n foreach ($patients as $patient) {\n for ($i=0;$i<5;$i++){\n $data = [\n 'patient_id' => $patient->id,\n 'name' => $faker->realText(10),\n 'description' => $faker->realText(500),\n 'image' => $faker->imageUrl(300,400)\n ];\n Report::create($data);\n }\n }\n }", "private function generateTestClass()\n {\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $dir = $this->bundle->getPath() .'/Tests/Controller';\n $target = $dir .'/'. str_replace('\\\\', '/', $entityNamespace).'/'. $entityClass .'ControllerTest.php';\n\n $this->renderFile($this->skeletonDir, 'tests/test.php', $target, array(\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'actions' => $this->actions,\n 'dir' => $this->skeletonDir,\n ));\n }", "public function getTestData() {\n $big_data = [];\n for ($i = 1; $i <= 10000; $i++) {\n $big_data[] = [\n 'id' => $i,\n 'name' => UUID::v4()\n ];\n }\n return [\n [\n $big_data,\n \"10000 results\",\n \"Showing results 1 to 5\",\n \"offset=2000\",\n true\n ],\n [\n [\n\n [\n 'id' => 1,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 2,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 3,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 4,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 5,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 6,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 7,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 8,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 9,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 10,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 11,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 12,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 13,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 14,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 15,\n 'name' => 'johnny bravo'\n ]\n ],\n \"15 results\",\n \"Showing results 1 to 5\",\n \"offset=3\",\n false\n ],\n [\n [\n [\n 'id' => 1,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 2,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 3,\n 'name' => 'johnny bravo'\n ]\n ],\n \"3 results\",\n \"results\",\n \"results\",\n true\n ]\n ];\n }" ]
[ "0.74458015", "0.7135655", "0.6897274", "0.6881263", "0.68571585", "0.6828665", "0.66274965", "0.6596069", "0.65485215", "0.6547817", "0.65441424", "0.65346164", "0.6529172", "0.6521252", "0.645993", "0.64151686", "0.6414389", "0.6404725", "0.63242847", "0.63128835", "0.62972754", "0.62391365", "0.6226959", "0.62237406", "0.6220799", "0.62095755", "0.6202102", "0.6190546", "0.61846167", "0.6149261", "0.6144428", "0.61281", "0.6116856", "0.6094028", "0.60881966", "0.60827935", "0.6070333", "0.6061792", "0.6035937", "0.6029223", "0.60207075", "0.59926105", "0.5979941", "0.5975625", "0.5971494", "0.59617686", "0.5960796", "0.5951123", "0.5942309", "0.59197915", "0.5919161", "0.5913972", "0.5897225", "0.589653", "0.5887523", "0.5880784", "0.58680797", "0.5860628", "0.58585656", "0.58495593", "0.5834696", "0.5814025", "0.58068275", "0.5798023", "0.5787932", "0.5785563", "0.5780045", "0.5770174", "0.57674956", "0.5741523", "0.57381237", "0.5737945", "0.57364917", "0.5727685", "0.571912", "0.57162935", "0.5716286", "0.57146215", "0.5712605", "0.5708059", "0.56992775", "0.56902146", "0.56898934", "0.56886053", "0.56816614", "0.56814986", "0.5678378", "0.5678378", "0.5678378", "0.5678378", "0.5678378", "0.5678378", "0.5670926", "0.5669144", "0.5668953", "0.5664116", "0.5661409", "0.566023", "0.56556904", "0.5655137", "0.56503046" ]
0.0
-1
Generate test case data
public function IsUrlAllowWithSpecificUserAgentProvider() { return array( array( array( '*' => array( 'disallow' => array( '/fr/' ), ), ), '/fr/page2', 'MyUserAgent', false ), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function createSampleData()\n\t{\n\t\tself::createSampleObject(1, \"Issue 1\", 1);\n\t\tself::createSampleObject(2, \"Issue 2\", 1);\n\t}", "public function dataProviderTestGenerate()\n {\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 10,\n 'format' => [\n [-1, -1],\n [-1, -1],\n ],\n ],\n ];\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 4,\n 'format' => [\n [-1, 2],\n [-1, -1],\n ],\n ],\n ];\n }", "public function testData()\n {\n $output = $this->primer->getPatterns(array('components/test-group/data-autoload'), false);\n\n $this->assertEquals($output, '1.2');\n }", "abstract protected function getTestData() : array;", "abstract public function getTestData(): array;", "protected function getTestData(){\n\t\treturn \"application/testdata/Pagers.php\" ;\n\t}", "public function provideTestData()\n {\n return [\n ['9141405', true],\n ['1709107983', true],\n ['0122116979', true],\n ['0121114867', true],\n ['9030101192', true],\n ['9245500460', true],\n\n ['9141406', false],\n ['1709107984', false],\n ['0122116970', false],\n ['0121114868', false],\n ['9030101193', false],\n ['9245500461', false],\n ];\n }", "public function provideTestData()\n {\n return [\n // variant one\n ['1197423162', true],\n ['1000000606', true],\n\n // variant one\n ['8137423260', false],\n ['600000606', false],\n ['51234309', false],\n\n // variant two\n ['1000000406', true],\n ['1035791538', true],\n ['1126939724', true],\n ['1197423460', true],\n\n // variant two\n ['1000000405', false],\n ['1035791539', false],\n ['8035791532', false],\n ['535791830', false],\n ['51234901', false],\n ];\n }", "public function provideTestData()\n {\n return [\n // variant 1\n ['1016', true],\n ['26260', true],\n ['242243', true],\n ['242248', true],\n ['18002113', true],\n ['1821200043', true],\n ['1011', false],\n ['26265', false],\n ['18002118', false],\n ['6160000024', false],\n\n // variant 2\n ['1015', true],\n ['26263', true],\n ['242241', true],\n ['18002116', true],\n ['1821200047', true],\n ['3456789012', true],\n ['242249', false],\n ['1234567890', false],\n ];\n }", "public function generateTestCases(): iterable\n {\n yield 'When arrays are same without fuzzy' => [\n 'actual' => ['key' => 'value'],\n 'expected' => ['key' => 'value'],\n 'exception' => null\n ];\n\n yield 'Test array same with fuzzy' =>\n [\n 'actual' => ['key' => 'value', 'date' => '2010-10-10T01:03:06Z'],\n 'expected' => ['key' => 'value', 'date' => ':fuzzy:'],\n 'exception' => null\n ];\n\n yield 'Test array same fails' =>\n [\n 'actual' => ['key' => 'value'],\n 'expected' => ['key' => 'missing'],\n 'exception' => new AssertionFailedError(\n 'Failed asserting that two arrays are identical.'\n ),\n 'comparisionCreated' => true\n ];\n\n yield 'Test when actual is not an array' =>\n [\n 'actual' => '',\n 'expected' => ['key' => 'value'],\n 'exception' => new AssertionFailedError('Failed asserting that string is an array.'),\n 'comparisionCreated' => false\n ];\n }", "public function getTestData()\n {\n return [\n 'user_id' => 1,\n 'status' => 1,\n 'created_at' => '2016-01-21 15:00:00',\n 'updated_at' => '2016-01-21 18:00:00'\n ];\n }", "public function provideTestData()\n {\n return [\n // Variant 1\n ['6100272324', true],\n ['6100273479', true],\n\n ['6100272885', false],\n ['6100273377', false],\n ['6100274012', false],\n\n // Variant 2\n ['5700000000', true],\n ['5700000001', true],\n ['5799999998', true],\n ['5799999999', true],\n\n ['5699999999', false],\n ['5800000000', false],\n ];\n }", "public function getTestData()\n {\n yield [false, false, '-5 days', '+5 days', true];\n // changing before last dockdown period is not allowed with grace permission\n yield [false, true, '-5 days', '+5 days', true];\n // changing before last dockdown period is allowed with full permission\n yield [true, true, '-5 days', '+5 days', false];\n yield [true, false, '-5 days', '+5 days', false];\n // changing a value in the last lockdown period is allowed during grace period\n yield [false, false, '+5 days', '+5 days', false];\n // changing outside grace period is not allowed\n yield [false, false, '+5 days', '+11 days', true];\n // changing outside grace period is allowed with grace and full permission\n yield [false, true, '+5 days', '+11 days', false];\n yield [true, false, '+5 days', '+11 days', false];\n yield [true, true, '+5 days', '+11 days', false];\n }", "public function getTestIterationData()\n {\n $cases = [];\n\n // Case #0 Standard iterator.\n $cases[] = [\n [\n 'hits' => [\n 'total' => 1,\n 'hits' => [\n [\n '_type' => 'content',\n '_id' => 'foo',\n '_score' => 0,\n '_source' => ['header' => 'Test header'],\n ],\n ],\n ],\n ],\n [\n [\n '_type' => 'content',\n '_id' => 'foo',\n '_score' => 0,\n '_source' => ['header' => 'Test header'],\n ],\n ],\n ];\n\n return $cases;\n }", "public function run()\n {\n $projectNum = Project::count();\n $faker = Faker::create();\n $project_limit=require('Config.php');\n for($i=1;$i<=$projectNum;$i++)\n {\n if($i%200 ==0)\n $this->command->info('Test Suite Seed :'.$i.' out of: '.$projectNum);\n $TestsTestArch = DB::table('project_assignments')->select('user_id','role_id')->\n where([['project_id','=',$i]])->\n whereIn('role_id',[7,8,9])->get();\n //let's say Tester, Test Lead and Test Architect together create around 20-40 folder per projects\n $numberOfTestSuites = rand($project_limit['projects']['min_test_suite'],$project_limit['projects']['max_test_suite']);\n for($j=0;$j<$numberOfTestSuites;++$j)\n {\n TestSuite::create(array(\n 'project_id'=>$i,\n 'name'=>$faker->sentence(4),\n //let's say only 90% of Test Suite have description\n 'description'=>rand(0,100)<80?$faker->paragraph(6):null,\n 'creator_id'=>$faker->randomElement($TestsTestArch)->user_id\n ));\n }\n }\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n\n for($i = 0; $i < 1000; $i++) {\n App\\TestData::create([\n 'username' => $faker->userName,\n 'name' => $faker->name,\n \n ]);\n }\n }", "public function provideTestCases()\n {\n return [\n ['time', ['time'], false],\n ['bar', null, true],\n ];\n }", "protected function fixtureData() {\n\t\t$rows = array();\n\t\tfor($i = 0; $i < 50; $i++) {\n\t\t\t$rows[] = array(\n\t\t\t\t\"name\" => \"Test Item \".$i,\n\t\t\t\t\"popularity\" => $i,\n\t\t\t\t\"author\" => \"Test Author \".$i,\n\t\t\t\t\"description\" => str_repeat(\"lorem ipsum dolor est \",rand(3,20)),\n\n\t\t\t);\n\t\t}\n\t\treturn $rows;\n\t}", "public function dataProviderTestInit()\n {\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 10,\n 'format' => [\n [-1, -1],\n [-1, -1],\n ],\n ],\n ];\n }", "public function test_scenario1() {\n\n $data = array(array(\"filename\"=> \"data/iris.csv\",\n\t \"local_file\" => \"tmp/if_then_rules_iris.txt\",\n\t\t\t \"expected_file\" => \"data/model/if_then_rules_iris.txt\"),\n array(\"filename\"=> \"data/iris_sp_chars.csv\",\n \"local_file\" => \"tmp/iris_sp_chars.txt\",\n \"expected_file\" => \"data/model/if_then_rules_iris_sp_chars.txt\"),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam.txt\"),\n array(\"filename\"=> \"data/grades.csv\",\n \"local_file\" => \"tmp/if_then_rules_grades.txt\",\n \"expected_file\" => \"data/model/if_then_rules_grades.txt\"),\n array(\"filename\"=> \"data/diabetes.csv\",\n \"local_file\" => \"tmp/if_then_rules_diabetes.txt\",\n \"expected_file\" => \"data/model/if_then_rules_diabetes.txt\"),\n array(\"filename\"=> \"data/iris_missing2.csv\",\n \"local_file\" => \"tmp/if_then_rules_iris_missing2.txt\",\n \"expected_file\" => \"data/model/if_then_rules_iris_missing2.txt\"),\n array(\"filename\"=> \"data/tiny_kdd.csv\",\n \"local_file\" => \"tmp/if_then_rules_tiny_kdd.txt\",\n \"expected_file\" => \"data/model/if_then_rules_tiny_kdd.txt\")\n\t );\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a model and translate the tree model into a set of IF-THEN rules\\n\";\n\t print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n\t $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n\t $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n\t $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the local source is ready\\n\";\n\t $resource = self::$api->_check_resource($source->resource, null, 3000, 30);\n\t $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create dataset with local source\\n\";\n\t $dataset = self::$api->create_dataset($source->resource);\n\t $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n\t $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n\t $resource = self::$api->_check_resource($dataset->resource, null, 3000, 30);\n\t $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n\t $model = self::$api->create_model($dataset->resource);\n\t $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wail until the model is ready\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n\t $local_model = new Model($model->resource, self::$api);\n print \"I translate the tree into IF_THEN rules\\n\";\n\n\t $fp = fopen($item[\"local_file\"], 'w');\n $local_model->rules($fp);\n fclose($fp);\n\t print \" Then I check the output is like \" . $item[\"expected_file\"] . \" expected file\\n\";\n $this->assertEquals(0, strcmp(trim(file_get_contents($item[\"local_file\"])), trim(file_get_contents($item[\"expected_file\"]))));\n\n }\n\n\n }", "public function actionGenerate()\n {\n \\bariew\\yii2Tools\\tests\\FixtureManager::init();\n }", "public function testSampleData()\n {\n $_SESSION['behat']['GenesisSqlExtension']['notQuotableKeywords'] = [];\n\n $types = [\n 'boolean' => 'false',\n 'integer' => self::INT_NUMBER,\n 'double' => self::INT_NUMBER,\n 'int' => self::INT_NUMBER,\n 'tinyint' => self::TINY_INT_NUMBER,\n 'string' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'text' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'varchar' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'character varying' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'tinytext' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'char' => \"'f'\",\n 'timestamp' => 'NOW()',\n 'timestamp with time zone' => 'NOW()',\n 'null' => null,\n 'longtext' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'randomness' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\"\n ];\n\n // Assert\n foreach ($types as $type => $val) {\n // Execute\n $result = $this->testObject->sampleData($type);\n\n $this->assertEquals($val, $result);\n }\n }", "public function run()\n {\n $faker = Faker::create();\n\n foreach (range(1, 92) as $index) {\n\t $data = new Eptparticipant;\n $data->id_user = $faker->unique()->numberBetween($min = 7, $max = 98);\n\t $data->id_major = $faker->numberBetween($min = 1, $max = 102);\n\t $data->idnumber_eptparticipant = $this->random10();\n\t $data->gender = $faker->randomElement($array = array ('Male','Female'));\n\t $data->place_of_birth = $faker->city;\n $data->date_of_birth = $faker->date($format = 'Y-m-d', $max = 'now');\n\t $data->address = $faker->streetAddress;\n\t $data->handphone_number = $faker->tollFreePhoneNumber;\n $data->created_at = Carbon::now();\n $data->updated_at = Carbon::now();\n $data->save();\n }\n }", "public function generateTestClass($testClass, $testCases);", "protected function createTestData()\n {\n // Cleanup any old objects\n $this->deleteTestData();\n \n // Get datamapper\n $dm = $this->account->getServiceManager()->get(\"Entity_DataMapper\");\n \n // Create a campaign for filtering\n $obj = $this->account->getServiceManager()->get(\"EntityLoader\")->create(\"marketing_campaign\");\n $obj->setValue(\"name\", \"Unit Test Aggregates\");\n $this->campaignId = $dm->save($obj);\n if (!$this->campaignId)\n throw new \\Exception(\"Could not create campaign\");\n\n // Create first opportunity\n $obj = $this->account->getServiceManager()->get(\"EntityLoader\")->create(\"opportunity\");\n $obj->setValue(\"name\", \"Website\");\n $obj->setValue(\"f_won\", false);\n $obj->setValue(\"probability_per\", 50);\n $obj->setValue(\"campaign_id\", $this->campaignId);\n $obj->setValue(\"amount\", 100);\n $oid = $dm->save($obj);\n \n // Create first opportunity\n $obj = $this->account->getServiceManager()->get(\"EntityLoader\")->create(\"opportunity\");\n $obj->setValue(\"name\", \"Application\");\n $obj->setValue(\"f_won\", true);\n $obj->setValue(\"probability_per\", 75);\n $obj->setValue(\"campaign_id\", $this->campaignId);\n $obj->setValue(\"amount\", 50);\n $oid = $dm->save($obj);\n }", "public function conversionTestingDataProvider() {}", "public function readTestData()\n {\n return $this->testData->get();\n }", "public static function get_tests()\n {\n }", "public function testData() {\n $subscription = $this->mockSubscription('[email protected]', (object) [\n 'fields' => [\n ['name' => 'FIRSTNAME'],\n ['name' => 'LASTNAME'],\n ],\n ]);\n\n // Test new item.\n list($cr, $api) = $this->mockProvider();\n $source1 = new ArraySource([\n 'firstname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source1);\n list($data, $fingerprint) = $cr->data($subscription, []);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n ], $data);\n\n // Test item with existing data.\n list($cr, $api) = $this->mockProvider();\n $source2 = new ArraySource([\n 'lastname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source2);\n list($data, $fingerprint) = $cr->data($subscription, $data);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n 'LASTNAME' => 'test',\n ], $data);\n }", "public function runTests()\n {\n $this->testCase(1, array (1, 1));\n $this->testCase(2, array (1, 2));\n $this->testCase(3, array (2, 2));\n $this->testCase(4, array (2, 2));\n $this->testCase(5, array (2, 3));\n $this->testCase(6, array (2, 3));\n $this->testCase(7, array (3, 3));\n $this->testCase(8, array (3, 3));\n $this->testCase(9, array (3, 3));\n $this->testCase(10, array(2, 5));\n $this->testCase(11, array(3, 4));\n $this->testCase(12, array(3, 4));\n $this->testCase(13, array(4, 4));\n $this->testCase(14, array(4, 4));\n $this->testCase(15, array(4, 4));\n $this->testCase(16, array(4, 4));\n $this->testCase(17, array(3, 6));\n $this->testCase(18, array(3, 6));\n $this->testCase(19, array(4, 5));\n $this->testCase(20, array(4, 5));\n $this->testCase(21, array(3, 7));\n $this->testCase(22, array(5, 5));\n $this->testCase(23, array(5, 5));\n $this->testCase(24, array(5, 5));\n $this->testCase(25, array(5, 5));\n $this->testCase(26, array(4, 7));\n $this->testCase(27, array(4, 7));\n $this->testCase(28, array(4, 7));\n $this->testCase(29, array(5, 6));\n $this->testCase(30, array(5, 6));\n $this->testCase(31, array(4, 8));\n $this->testCase(32, array(4, 8));\n $this->testCase(33, array(6, 6));\n $this->testCase(34, array(6, 6));\n $this->testCase(35, array(6, 6));\n $this->testCase(36, array(6, 6));\n $this->testCase(37, array(5, 8));\n $this->testCase(38, array(5, 8));\n $this->testCase(39, array(5, 8));\n $this->testCase(40, array(5, 8));\n $this->testCase(41, array(6, 7));\n $this->testCase(42, array(6, 7));\n $this->testCase(43, array(5, 9));\n $this->testCase(44, array(5, 9));\n $this->testCase(45, array(5, 9));\n $this->testCase(46, array(7, 7));\n $this->testCase(47, array(7, 7));\n $this->testCase(48, array(7, 7));\n $this->testCase(49, array(7, 7));\n $this->testCase(50, array(5, 10));\n $this->testCase(51, array(6, 9));\n $this->testCase(52, array(6, 9));\n $this->testCase(53, array(6, 9));\n $this->testCase(54, array(6, 9));\n $this->testCase(55, array(7, 8));\n $this->testCase(56, array(7, 8));\n $this->testCase(57, array(6, 10));\n $this->testCase(58, array(6, 10));\n $this->testCase(59, array(6, 10));\n $this->testCase(60, array(6, 10));\n $this->testCase(61, array(8, 8));\n $this->testCase(62, array(8, 8));\n $this->testCase(63, array(8, 8));\n $this->testCase(64, array(8, 8));\n $this->testCase(65, array(6, 11));\n $this->testCase(66, array(6, 11));\n $this->testCase(67, array(7, 10));\n $this->testCase(68, array(7, 10));\n $this->testCase(69, array(7, 10));\n $this->testCase(70, array(7, 10));\n $this->testCase(71, array(8, 9));\n $this->testCase(72, array(8, 9));\n $this->testCase(73, array(7, 11));\n $this->testCase(74, array(7, 11));\n $this->testCase(75, array(7, 11));\n $this->testCase(76, array(7, 11));\n $this->testCase(77, array(7, 11));\n $this->testCase(78, array(9, 9));\n $this->testCase(79, array(9, 9));\n $this->testCase(80, array(9, 9));\n $this->testCase(81, array(9, 9));\n $this->testCase(82, array(7, 12));\n $this->testCase(83, array(7, 12));\n $this->testCase(84, array(7, 12));\n $this->testCase(85, array(8, 11));\n $this->testCase(86, array(8, 11));\n $this->testCase(87, array(8, 11));\n $this->testCase(88, array(8, 11));\n $this->testCase(89, array(9, 10));\n $this->testCase(90, array(9, 10));\n $this->testCase(91, array(7, 13));\n $this->testCase(92, array(8, 12));\n $this->testCase(93, array(8, 12));\n $this->testCase(94, array(8, 12));\n $this->testCase(95, array(8, 12));\n $this->testCase(96, array(8, 12));\n $this->testCase(97, array(10, 10));\n $this->testCase(98, array(10, 10));\n $this->testCase(99, array(10, 10));\n $this->testCase(100, array(10, 10));\n }", "public function test_scenario1() {\n\n $data = array(\n array(\"model\" =>\n array(\"topic_model\" =>\n array(\"alpha\" => 0.08,\n \"beta\" => 0.1,\n \"hashed_seed\" => 0,\n \"language\" => \"en\",\n \"bigrams\" => True,\n \"case_sensitive\" => False,\n \"term_topic_assignments\" => array(array(0, 0, 1, 2),\n array(0, 1, 2, 0),\n array(1, 2, 0, 0),\n array(0, 0, 2, 0)),\n \"termset\" => array(\"cycling\", \"playing\", \"shouldn't\", \"uńąnimous court\"),\n \"options\" => [],\n \"topics\" => array(array(\"name\" => \"Topic 1\",\n \"id\" => \"000000\",\n \"top_terms\" => array(\"a\", \"b\"),\n \"probability\" => 0.1),\n array(\"name\" => \"Topic 2\",\n \"id\" => \"000001\",\n \"top_terms\" => array(\"c\", \"d\"),\n \"probability\" => 0.1),\n array(\"name\" => \"Topic 3\",\n \"id\" => \"000000\",\n \"top_terms\" => array(\"e\", \"f\"),\n \"probability\" => 0.1),\n array(\"name\" => \"Topic 4\",\n \"id\" => \"000000\",\n \"top_terms\" => array(\"g\", \"h\"),\n \"probability\" => 0.1)),\n \"fields\" => array(\"000001\" => array(\"datatype\" => \"string\",\n \"name\" => \"TEST TEXT\",\n \"optype\" => \"text\",\n \"order\" => 0,\n \"preferred\" => True,\n \"summary\" => [],\n \"term_analysis\" => []))),\n \"resource\" => \"topicmodel/aaaaaabbbbbbccccccdddddd\",\n \"status\" => array(\"code\" => 5)),\n \"text\" => array(\"TEST TEXT\" => \"uńąnimous court 'UŃĄNIMOUS COURT' `play``the plays PLAYing SHOULDN'T CYCLE cycling shouldn't uńąnimous or court's\"),\n \"expected\" => array(array(\"name\" => 'Topic 1', \"probability\" => 0.17068527918781726),\n array(\"name\" => 'Topic 2', \"probability\" => 0.1865482233502538),\n array(\"name\" => 'Topic 3', \"probability\" => 0.5157043147208121),\n array(\"name\" => 'Topic 4', \"probability\" => 0.12706218274111675))));\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a local distribution from a Topic Model\\n\";\n print \"I create a local topic model\\n\";\n $object = json_decode(json_encode($item[\"model\"]), FALSE);\n $local_topic_model = new TopicModel($object);\n\n print \"I create a distribution for local topic model\\n\";\n $distribution = $local_topic_model->distribution($item[\"text\"]);\n\n print \"And the distribution for local topic model equals the expected values.\\n\";\n $this->assertEquals($distribution, $item[\"expected\"]);\n }\n }", "public function getTests();", "function getTestCaseData($testCaseID, $theSubjectID, $roundID, $studyID, $clientID) {\n global $definitions;\n\n $testCaseParentTestCategoryPropertyID = getClientPropertyID_RelatedWith_byName($definitions['testcasesFolderID'], $clientID);\n\n $theTestCase = array();\n $theTestCase['TC_ID'] = $testCaseID;\n $theTestCase['ROUND_ID'] = $roundID;\n $theTestCase['STUDY_ID'] = $studyID;\n $theTestCase['SUBJECT_ID'] = $theSubjectID;\n\n //Also, get the parent testCategory for the test case\n $theTestCase['PARENT_TC_ID'] = getItemPropertyValue($testCaseID, $testCaseParentTestCategoryPropertyID, $clientID);\n\n //Get the steps for this testCase\n $theSteps = array();\n\n $theSteps = getStepsScriptsForTestCase($testCaseID, $theSubjectID, $roundID, $studyID, $clientID);\n //print(\"Steps scritps details for testCase $testCaseID and subject $theSubjectID\\n\\r\" );\n //print_r($theSteps);\n $stepsCount = 0;\n //Only returns the testcase if any step of the test case is automated and has the type passed (TODO this last)\n $hasAutomatedSteps = \"NO\";\n\n //Add the steps to the result\n for ($i = 0; $i < count($theSteps); $i++) {\n if ($theSteps[$i]['scriptAppValue'] == 'steps.types.php') {\n //print(\"found automated step\\n\\r\");\n $theTestCase['STEP_ID_' . $stepsCount] = $theSteps[$i]['ID'];\n $theTestCase['STEP_TYPE_' . $stepsCount] = $theSteps[$i]['stepType'];\n $theTestCase['STEP_APPTYPE_' . $stepsCount] = $theSteps[$i]['scriptAppValue'];\n $theTestCase['STEP_RESULT_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_Result_ID'];\n //Get the stepUnits values\n\n if (isset($theSteps[$i]['stepUnit_SELENIUMRESULT_ID'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULT_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUMRESULT_ID'];\n }\n if (isset($theSteps[$i]['stepUnit_SELENIUMRESULT_DESCRIPTION_ID'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULT_DESCRIPTION_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUMRESULT_DESCRIPTION_ID'];\n }\n if (isset($theSteps[$i]['stepUnit_SELENIUM_LASTRESULT_ID'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULT_LASTRESULT_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUM_LASTRESULT_ID'];\n\n }\n if (isset($theSteps[$i]['stepUnit_SELENIUMDESCRIPTION_LASTRESULT_ID'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULTDESCRIPTION_LASTRESULT_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUMDESCRIPTION_LASTRESULT_ID'];\n\n }\n if (isset($theSteps[$i]['stepUnit_SELENIUMRESULT_EXECVALUE'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULTEXECVALUE_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUMRESULT_EXECVALUE'];\n\n }\n\n $stepsCount++;\n $hasAutomatedSteps = \"YES\";\n }\n }\n\n if ($hasAutomatedSteps == \"YES\") {\n //And return the test case\n //print (\"Return automated testCase: $testCaseID\\n\\r\");\n return $theTestCase;\n } else {\n //print (\"Not automated testCase $testCaseID. Return null\\n\\r\");\n return null;\n }\n\n}", "public function run()\n {\n $table_count = env('TABLE_COUNT');\n $grant_count = Grant::all()->count();\n $counter = 0;\n $faker = Faker::create();\n\n for ($i = 1; $i <= env('MAJOR_TABLE_COUNT'); $i++) {\n factory(Sample::class)->create([\n 'user_id' => rand(1, $table_count),\n 'analysis_id' => (++$counter < $table_count) ? rand(0, 1) ? $faker->unique()->numberBetween(1, $table_count) : NULL : NULL,\n 'spectrometer_id' => rand(1, $table_count),\n 'solvent_id' => rand(1, $table_count),\n // Not all samples need to be marked as analysed\n // neither belong to grant\n 'grant_id' => rand(0, 1) ? rand(1, $grant_count) : NULL,\n ]);\n }\n }", "public function testAllData()\n {\n Runner::truncate();\n Runner::factory()->count(15)->create();\n\n $headers['Accept'] = 'application/json';\n\n $response = $this->get('/api/v1/runner/1/form-data', $headers);\n\n $response->assertStatus(200)->assertJsonStructure(['success', 'data', 'status']);\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n $data = [];\n foreach (range( 1, 10 ) as $key => $value) {\n $data[] = [ 'name' => 'tag' . $faker->randomNumber(),\n 'hot'=>$faker->randomNumber(),\n 'create_at'=>\\Carbon\\Carbon::now()->toDateTimeString(),\n 'update_at'=>\\Carbon\\Carbon::now()->toDateTimeString()\n ];\n }\n }", "public function unitTestDataProvider()\n {\n\n return [\n 'test1' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL,\n ],\n\n 'test2' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n $fav->add('<abc2>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL\n .'<abc2>'.PHP_EOL,\n ],\n\n 'test3' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n $fav->add('<abc>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL,\n ],\n ];\n }", "public function testCanBeCreatedFromGetData(): void\n {\n $this->assertEquals(\n 'C:\\Documents\\Word\\Work\\Current\\1\\2\\3<br>',\n (new Read)->getData('current')\n );\n $this->assertIsString((new Read)->getData('current'));\n\n $this->assertEquals(\n 'C:\\Documents\\Software Engineer\\Projects\\AnnualReport.xls<br>',\n (new Read)->getData('software engineer')\n );\n $this->assertIsString((new Read)->getData('software engineer'));\n\n $this->assertEquals(\n 'C:\\Documents\\Salary\\Accounting\\Accounting.xls<br>',\n (new Read)->getData('accounting')\n );\n $this->assertIsString((new Read)->getData('accounting'));\n }", "abstract public function generateData(array $data);", "public function run()\n {\n // $faker = \\Faker\\Factory::create();\n // Assessment::create([\n // 'teacher_id' => rand(0, 10),\n // 'pupil_id' => rand(0, 10),\n // 'test_id' => rand(0, 10),\n // 'assessment_no' => rand(0, 120),\n // 'assessment_date' => $faker->date,\n // ]);\n factory(App\\Models\\Assessment::class, 10)->create();\n }", "public function run()\n {\n $count = CountString::$countTests;\n $ar = $this->getAr();\n for ($i = 1, $ii = 1; $i <= $count; $i++, $ii++) {\n if ($ii > 3) {\n $ii = 1;\n }\n\n if ((Test::where('id', '=', $i)->first()) === null) {\n $Test = Test::create([\n 'user_id' => '1',\n 'grade_id' => $ii ,\n 'subject_id' => $ii,\n 'page_id' => $ii,\n 'name' => ($i) . '-й тест',\n 'slug' => str_slug(($i) . '-й тест', '_', 'en'),\n\n\n 'text_input' => $ar['input'][$ii-1],\n 'text_html' => $ar['html'][$ii-1],\n\n 'difficulty' => 0,\n 'difficulty_2' => 0,\n 'difficulty_3' => 0,\n\n\n 'comment' => 'comment - ' . $i,\n 'description' => 'description - ' . $i,\n\n\n 'active' => 1,\n 'published_at' => now()\n\n ]);\n\n $Test->save();\n }\n }\n }", "public function generateSampleCode() {\n\t\t$sampleCode = new SampleCode();\n\t\treturn array($sampleCode);\n\t}", "public function providerTestGeneration() {\n return [\n 1 => [1, \"I\"],\n 2 => [2, \"II\"],\n 3 => [3, \"III\"],\n 4 => [4, \"IV\"],\n 5 => [5, \"V\"],\n 6 => [6, \"VI\"],\n 9 => [9, \"IX\"],\n 27 => [27, \"XXVII\"],\n 48 => [48, \"XLVIII\"],\n 59 => [59, \"LIX\"],\n 93 => [93, \"XCIII\"],\n 141 => [141, \"CXLI\"],\n 163 => [163, \"CLXIII\"],\n 402 => [402, \"CDII\"],\n 575 => [575, \"DLXXV\"],\n 911 => [911, \"CMXI\"],\n 1024 => [1024, \"MXXIV\"],\n 3000 => [3000, \"MMM\"]\n ];\n }", "public function test_scenario6() {\n $data = array(array('filename' => 'data/iris.csv', 'expected_file' => 'data/model/summarize_iris.txt', 'local_file' => 'tmp/summarize_iris.txt'),\n array('filename' => 'data/iris_sp_chars.csv', 'expected_file' => 'data/model/summarize_iris_sp_chars.txt', 'local_file' => 'tmp/summarize_iris_sp_chars.txt'),\n array('filename' => 'data/spam.csv', 'expected_file' => 'data/model/summarize_spam.txt', 'local_file' => 'tmp/summarize_spam.txt'),\n array('filename' => 'data/grades.csv', 'expected_file' => 'data/model/summarize_grades.txt', 'local_file' => 'tmp/summarize_grades.txt'),\n array('filename' => 'data/diabetes.csv', 'expected_file' => 'data/model/summarize_diabetes.txt', 'local_file' => 'tmp/summarize_diabetes.txt'),\n array('filename' => 'data/iris_missing2.csv', 'expected_file' => 'data/model/summarize_iris_missing2.txt', 'local_file' => 'tmp/summarize_iris_missing2.txt'),\n array('filename' => 'data/tiny_kdd.csv', 'expected_file' => 'data/model/summarize_tiny_kdd.txt', 'local_file' => 'tmp/summarize_tiny_kdd.txt')\n );\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a model and check its summary information:\\n\";\n print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the source is ready\\n\";\n $resource = self::$api->_check_resource($source->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create dataset with local source\\n\";\n $dataset = self::$api->create_dataset($source->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n $resource = self::$api->_check_resource($dataset->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n $model = self::$api->create_model($dataset->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wait until the model is ready \". $model->resource . \"\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n $local_model = new Model($model->resource, self::$api);\n print \"And I translate the tree into IF_THEN rules\\n\";\n\t $local_model->summarize(fopen($item[\"local_file\"],'w'));\n print \"Then I check the predictions distribution with \". $item[\"expected_file\"] . \" file\\n\";\n\t $this->assertEquals(0, strcmp(trim(file_get_contents($item[\"local_file\"])), trim(file_get_contents($item[\"expected_file\"]))));\n\n }\n\n }", "public function test_scenario5() {\n\n $data = array(array('filename' => 'data/iris.csv', 'expected_file' => 'data/model/predictions_distribution_iris.txt'),\n array('filename' => 'data/iris_sp_chars.csv', 'expected_file' => 'data/model/predictions_distribution_iris_sp_chars.txt'),\n array('filename' => 'data/spam.csv', 'expected_file' => 'data/model/predictions_distribution_spam.txt'),\n array('filename' => 'data/grades.csv', 'expected_file' => 'data/model/predictions_distribution_grades.txt'),\n array('filename' => 'data/diabetes.csv', 'expected_file' => 'data/model/predictions_distribution_diabetes.txt'),\n array('filename' => 'data/iris_missing2.csv', 'expected_file' => 'data/model/predictions_distribution_iris_missing2.txt'),\n array('filename' => 'data/tiny_kdd.csv', 'expected_file' => 'data/model/predictions_distribution_tiny_kdd.txt')\n );\n\n foreach($data as $item) {\n print \"\\n Successfully creating a model and check its predictions distribution\\n\";\n\n print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the source is ready\\n\";\n $resource = self::$api->_check_resource($source->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create dataset with local source\\n\";\n $dataset = self::$api->create_dataset($source->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n $resource = self::$api->_check_resource($dataset->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n $model = self::$api->create_model($dataset->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wait until the model is ready \". $model->resource . \"\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n $local_model = new Model($model->resource, self::$api);\n print \"Then I check the predictions distribution with \". $item[\"expected_file\"] . \" file\\n\";\n\n $file_distribution = file_get_contents($item[\"expected_file\"]);\n $distribution = $local_model->get_prediction_distribution();\n $distribution_str='';\n\n foreach($distribution as $key => $value) {\n $distribution_str= $distribution_str . \"[\" . $key . \",\" . $value . \"]\\n\";\n }\n\n $this->assertEquals(trim($distribution_str), trim($file_distribution));\n\n }\n }", "public function run()\n {\n $faker= \\Faker\\Factory::create();\n for ($i=0; $i < 20; $i++)\n {\n \tHuongDanVien::create([\n \t\t'tenhdv'=> $faker->name,\n \t\t'phai'=> $faker->word,\n \t\t'diachi'=> $faker->word,\n \t\t'sdt'=> $faker->number_format(0122000000),\n \t\t]);\n }\n }", "public function jsonViewTestData() {}", "protected function createTests()\n {\n $name = $this->getNameInput();\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Store{$name}Test\",\n '--model' => $name,\n '--type' => 'store',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Update{$name}Test\",\n '--model' => $name,\n '--type' => 'update',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/View{$name}Test\",\n '--model' => $name,\n '--type' => 'view',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Delete{$name}Test\",\n '--model' => $name,\n '--type' => 'delete',\n ]);\n }", "function deploytestdata() {\n $this->auth(SUPER_ADM_LEVEL);\n $this->load->model('m_testdata');\n if(!$this->m_step->isTestDataLoaded()){\n // inserts from file\n $docRoot = getenv(\"DOCUMENT_ROOT\");\n $filename = $docRoot . '/db/initial_data.sql';\n $lines = file($filename);\n $row_id = 0;\n $success = TRUE;\n foreach ($lines as $line_num => $line) {\n if(!strstr($line, '--')){\n $row_id = $this->m_testdata->runSqlInsert($line);\n }\n if($row_id < 0){\n echo \"problem with file $filename at row $line_num <br/> $line <br/>\";\n $success = FALSE;\n break;\n }\n }\n //create some more users\n $data = array('Filippa', 'Mimmi', 'Tobbe', 'Carlfelix', 'Simpan', 'Mogge', 'janbanan', 'BigRed', 'bigbird', 'Bjork', 'johanna', 'jwalker','Lapen', 'greengreen', 'M', 'tomtekalendern', 'loffe', 'Klaas', 'Kaniin');\n $this->m_testdata->creteUsers($data);\n // insert random steps\n // simulation of user is required to insert steps\n $users = $this->m_user->getAll(400);\n foreach ($users as $user) {\n $d = new JDate();\n $this->_simulate($user->id);\n for($i = 0; $i < 31; $i++ ){\n $this->m_step->create_x($user->id, 1, $this->_randomSteps(), $d->getDate());\n $d->subDays(1);\n }\n $this->_stopsimulate();\n }\n\n echo $success ? 'Success! hopefully ;)': '';\n } else {\n echo 'Testdata allready run';\n }\n }", "protected function getTestcaseFilenames() {\n\t\t$packageManager = $this->objectManager->getObject('F3\\FLOW3\\Package\\PackageManagerInterface');\n\t\t$packages = array();\n\t\t$testcaseFilenames = array(self::TYPE_UNIT => array(), self::TYPE_INTEGRATION => array(), self::TYPE_SYSTEM => array());\n\n\t\t$testcaseClassNameMatches = array();\n\t\tpreg_match('/F3\\\\\\\\([^\\\\\\\\]*)\\\\\\\\(.*)/', $this->testcaseClassName, $testcaseClassNameMatches);\n\t\tif (count($testcaseClassNameMatches) === 3) {\n\t\t\t$this->testcaseClassName = $testcaseClassNameMatches[2];\n\t\t\tif ($testcaseClassNameMatches[1] === '.*') {\n\t\t\t\t$packages = $packageManager->getActivePackages();\n\t\t\t} elseif ($packageManager->isPackageActive($testcaseClassNameMatches[1])) {\n\t\t\t\t$packages = array($packageManager->getPackage($testcaseClassNameMatches[1]));\n\t\t\t}\n\t\t} elseif ($this->packageKey == '*') {\n\t\t\t$packages = $packageManager->getActivePackages();\n\t\t\t$this->testcaseClassName = '.*Test';\n\t\t} elseif ($packageManager->isPackageActive($this->packageKey)) {\n\t\t\t$packages = array($packageManager->getPackage($this->packageKey));\n\t\t\t$this->testcaseClassName = '.*Test';\n\t\t}\n\n\t\tshuffle($packages);\n\t\tforeach ($packages as $package) {\n\t\t\tif (in_array($package->getPackageKey(), $this->testBlacklist)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tforeach (array(\n\t\t\t\t\tself::TYPE_UNIT => \\F3\\FLOW3\\Package\\Package::DIRECTORY_TESTS_UNIT,\n\t\t\t\t\tself::TYPE_INTEGRATION => \\F3\\FLOW3\\Package\\Package::DIRECTORY_TESTS_INTEGRATION,\n\t\t\t\t\tself::TYPE_SYSTEM => \\F3\\FLOW3\\Package\\Package::DIRECTORY_TESTS_SYSTEM,\n\t\t\t\t) as $type => $directory) {\n\t\t\t\t$testPath = $package->getPackagePath() . $directory;\n\t\t\t\tif (is_dir($testPath)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$testsDirectoryIterator = new \\RecursiveDirectoryIterator($testPath);\n\n\t\t\t\t\t\t$testcaseFilenames[$type] = $this->readDirectories($testcaseFilenames[$type], $testsDirectoryIterator);\n\t\t\t\t\t\t\\PHPUnit_Util_Filter::removeDirectoryFromFilter($package->getPackagePath() . 'Classes');\n\t\t\t\t\t} catch(\\Exception $exception) {\n\t\t\t\t\t\tthrow new \\RuntimeException($exception->getMessage(), 1170236926);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tshuffle($testcaseFilenames[$type]);\n\t\t\t}\n\t\t}\n\t\treturn $testcaseFilenames;\n\t}", "public function run()\n {\n $labOrder = factory(LabOrder::class)->create();\n $SKUs = SKU::where('item_type', 'lab-test')->get()->shuffle();\n\n for ($i=0; $i < 5; $i++) {\n $labTest = factory(LabTest::class)->create([\n 'lab_order_id' => $labOrder->id,\n 'sku_id' => $SKUs->pop()->id,\n ]);\n if (maybe()) {\n factory(LabTestResult::class)->create([\n 'lab_test_id' => $labTest->id,\n ]);\n }\n }\n }", "public function generateDataForTest()\r\n {\r\n return array(\r\n array(\r\n \"\r\n\t\t\t\t\tUser-Agent: *\r\n\t\t\t\t\",\r\n null,\r\n ),\r\n array(\r\n \"\r\n\t\t\t\t\tUser-Agent: *\r\n\t\t\t\t\tHost: www.example.com\r\n\t\t\t\t\",\r\n 'www.example.com',\r\n ),\r\n array(\r\n \"\r\n\t\t\t\t\tHost: example.com\r\n\t\t\t\t\",\r\n 'example.com',\r\n ),\r\n array(\r\n \"\r\n\t\t\t\tHost: example.com\r\n\t\t\t\tUser-Agent: google\r\n\t\t\t\tHost: www.example.com\r\n\t\t\t\t\",\r\n 'example.com',\r\n 'expected first host value'\r\n ),\r\n array(\r\n \"\r\n\t\t\t\tUser-Agent: google\r\n\t\t\t\tHost: example.com\r\n\t\t\t\tHost: www.example.com\r\n\t\t\t\t\",\r\n 'example.com',\r\n 'expected assign host to * because host is cross-section directive'\r\n ),\r\n );\r\n }", "function morestepdata() {\n $this->auth(SUPER_ADM_LEVEL);\n $this->load->model('m_testdata');\n $users = $this->m_user->getAll(400);\n // insert random steps\n // simulation of user is required to insert steps\n foreach ($users as $user) {\n $d = new JDate();\n $this->_simulate($user->id);\n for ($i = 0; $i < 3; $i++) {\n $this->m_step->create_x($user->id, 1, $this->_randomSteps(), $d->getDate());\n $d->subDays(1);\n }\n $this->_stopsimulate();\n }\n echo 'Success! hopefully ;)' ;\n }", "public function provideTestData(): array\n {\n return [\n 'Role may handle the command' => [new FakeCommand(), 'ROLE_ADMIN'],\n 'Test role hierarchy' => [new FakeCommand(), 'ROLE_SUPER_ADMIN'],\n 'Role may not handle the command' => [new FakeCommand(), 'ROLE_USER', AccessDeniedException::class],\n 'Deny access if command is not in the mapping' => [new stdClass(), 'ROLE_SUPER_ADMIN', AccessDeniedException::class],\n ];\n }", "private function getTestData()\n {\n return [\n 'url' => 'http://www.mystore.com',\n 'access-token' => 'thisisaccesstoken',\n 'integration-token' => 'thisisintegrationtoken',\n 'method' => \\Magento\\Framework\\HTTP\\ZendClient::POST,\n 'body'=> ['token' => 'thisisintegrationtoken','url' => 'http://www.mystore.com'],\n ];\n }", "public function run()\n {\n \n // Creating Rough Reports\n factory(App\\Report::class,4)->create();\n // Adding Paramters to Reports\n\t\t$faker = Faker\\Factory::create();\n\t\tfor ( $i = 1; $i < 4; $i++) // generate same no. of records as the no. in Report above\n { \n\t\t\t$report = App\\Report::whereId($i)->first();\t\t\t\n\t\t\tfor ( $j=1; $j < 6 ; $j++) { \n\t\t\t\t$score = $faker->numberBetween($min = 1, $max = 100);\n\t\t\t \t$parameter = App\\Parameter::whereId($j)->first();\n\t\t\t \t$report->parameters()->save($parameter, ['score' => $score, 'remark' => $faker->sentence($nbWords = 4)]);\n\t\t\t} \n\t\t} \t\t\n }", "public function test_scenario3() {\n\n $data = array(array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_1.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_1.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => true, \"stem_words\" => true, \"use_stopwords\" => false, \"language\" => \"en\"))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_2.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_2.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => true, \"stem_words\" => true, \"use_stopwords\" => false))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_3.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_3.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => false, \"stem_words\" => false, \"use_stopwords\" => false, \"language\" => \"en\"))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_4.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_4.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => false, \"stem_words\" => true, \"use_stopwords\" => true, \"language\" => \"en\"))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_5.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_5.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"token_mode\" => \"full_terms_only\", \"language\" => \"en\" )))))\n );\n\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a model and translate the tree model into a set of IF-THEN rules\\n\";\n\n print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the source is ready\\n\";\n $resource = self::$api->_check_resource($source->resource, null, 10000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I update the source with options \" . json_encode($item[\"options\"]) . \"\\n\";\n\t $source = self::$api->update_source($source->resource, $item[\"options\"]);\n\t $this->assertEquals(BigMLRequest::HTTP_ACCEPTED, $source->code);\n\n print \"And I create dataset with local source\\n\";\n $dataset = self::$api->create_dataset($source->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n $resource = self::$api->_check_resource($dataset->resource, null, 10000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n $model = self::$api->create_model($dataset->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wait until the model is ready \". $model->resource . \"\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 10000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n $local_model = new Model($model->resource, self::$api);\n print \"And I translate the tree into IF_THEN rules\\n\";\n\n $fp = fopen($item[\"local_file\"], 'w');\n $local_model->rules($fp);\n fclose($fp);\n print \" Then I check the output is like \" . $item[\"expected_file\"] . \" expected file\\n\";\n $this->assertEquals(0, strcmp(trim(file_get_contents($item[\"local_file\"])), trim(file_get_contents($item[\"expected_file\"]))));\n\n }\n }", "private function testCollect() {\n $custom_data = array();\n\n // Collect all custom data provided by hook_insight_custom_data().\n $collections = \\Drupal::moduleHandler()->invokeAll('acquia_connector_spi_test');\n\n foreach ($collections as $test_name => $test_params) {\n $status = new TestStatusController();\n $result = $status->testValidate(array($test_name => $test_params));\n\n if ($result['result']) {\n $custom_data[$test_name] = $test_params;\n }\n }\n\n return $custom_data;\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n $start_date = array(\"2020-09-28\", \"2020-09-29\", \"2020-09-30\", \"2020-10-01\", \"2020-10-02\");\n $end_date = array(\"2020-10-10\", \"2020-10-12\", \"2020-10-11\", \"2020-10-15\", \"2020-10-18\");\n $customer = array(329, 344, 346, 349, 351, 352, 353, 354, 355, 356, 360, 361, 362, 363);\n\n for ($i = 1; $i <= 1000; $i++) {\n $planogram = new Planogram;\n $planogram->organisation_id = 61;\n $planogram->customer_id = $customer[array_rand($customer)];\n $planogram->name = $faker->name;\n $planogram->start_date = $start_date[array_rand($start_date)];\n $planogram->end_date = $end_date[array_rand($end_date)];\n $planogram->status = 1;\n $planogram->save();\n }\n }", "public function run()\n {\n // Student::truncate(); // to regenerate whole table data\n $faker = \\Faker\\Factory::create();\n\n // take all the programme id and put into array\n $list = Programme::all()->pluck('programme_id');\n\n // create 100 students from different programme\n for ($i=0;$i<100;$i++){\n Student::create([\n 'programme_id'=>$faker->randomElement($list),\n 'student_id'=> $faker->regexify('20WMD[1-9]{5}'), // condition 20WMD, follow by 5 random numbers\n 'name'=>$faker->name,\n 'age'=>$faker->numberBetween(19,30),\n 'gender'=>$faker->randomElement(['M','F']),\n 'class'=>$faker->numberBetween(1,17),\n 'CGPA'=>$faker->randomFloat(2,2.0,4.0),\n 'address'=>$faker->address,\n 'email'=>$faker->email\n ]);\n }\n }", "public function run()\n {\n \t$faker = Faker\\Factory::create();; \n foreach (range(1, 55) as $key => $value) {\n \tApp\\Student::create([\n \t\t 'name' => $faker->name,\n 'father_name' => $faker->name('male'),\n 'mother_name' => $faker->name('female'),\n 'phone_number' => $faker->phoneNumber,\n 'home_number' => $faker->phoneNumber,\n 'email' => $faker->unique()->safeEmail,\n 'gender' => 'male',\n 'roll_number' => $faker->randomNumber(),\n 'reg_number' => $faker->randomNumber(),\n 'department_id' => $faker->randomNumber(1),\n 'shift' => 'second',\n 'semester' => 'eight',\n 'present_address' => $faker->address,\n 'permanent_address' => $faker->address,\n \t]);\n }\n }", "public function run()\n {\n // *****Data Using Manually*********\n // $student = [\n // [\n // 'name'=>'Jogi',\n // 'lastname'=>'Singh',\n // ],\n // [\n // 'name'=>'Jonty',\n // 'lastname'=>'Singh',\n // ],\n // [\n // 'name'=>'Harsh',\n // 'lastname'=>'Srivastav',\n // ],\n \n // ];\n\n // foreach ($student as $key => $value) {\n // Student::create($value);\n // }\n // *******End Data Manually*************\n // *****************Data Dump Using Faker*******************\n $faker = Faker::create();\n foreach (range(1,100) as $key => $value) {\n Student::create(\n [\n 'name'=>$faker->name,\n 'lastname'=>$faker->lastname\n ]\n );\n }\n\n }", "function randomTest(){\n $treatment = $this->getTreatment();\n $username = $this->generateUsername();\n $hashed = $this->generateMD5Pass();\n $extra = array('username' =>$username,\n\t\t 'treatment' => $treatment,\n\t\t 'hash' => $hashed);\n $output = $this->outputBoilerplate('test.html', $extra);\n return $output; \n }", "public function testDynamicFixture()\n {\n $fixture = new Mad_Test_Fixture_Base($this->_conn, 'unit_tests');\n $fixture->load();\n $record = $fixture->getRecord('unit_test_2');\n \n $this->assertEquals(date(\"Y-m-d\"), $record['date_value']);\n }", "public function getTestResults()\n\t{\n\t\t/*\n\t\t * Wenn die Tests noch nicht ausgeführt wurden, dies nun tun\n\t\t */\n\t\tif ($this->_needRun === true)\n\t\t{\n\t\t\t$this->run();\n\t\t}\n\t\tforeach ($this->_testCases as $key => $testCase)\n\t\t{\n\t\t\t/*\n\t\t\t * Zusicherung nicht erfüllt\n\t\t\t*/\n\t\t\tif ($testCase['assert'] !== $testCase['result'])\n\t\t\t{\n\t\t\t\t$this->_testResults[$key] = $this->_testCases[$key]['functionName'].\": fehlgeschlagen \".\n\t\t\t\t\t$this->boolToString($testCase['assert']).\" != \".$this->boolToString($testCase['result']).\"<br>\";\n\t\t\t\t$this->_failedTests++;\n\t\t\t}\n\t\t\t/*\n\t\t\t * Zusicherung erfüllt\n\t\t\t*/\n\t\t\telse \n\t\t\t{\n\t\t\t\t$this->_testResults[$key] = $this->_testCases[$key]['functionName'].\": erfolgreich \".\n\t\t\t\t\t$this->boolToString($testCase['assert']).\" == \".$this->boolToString($testCase['result']).\"<br>\";\n\t\t\t\t$this->_passedTests++;\n\t\t\t}\n\t\t} \n\t\treturn $this->_testResults;\t\n\t}", "public function testMain()\n {\n echo \"\\n >----------- Test Main : ---------> \\n\";\n// $this->getRandomNumber();\n// $this->getLoggedUserMail();\n// $this->saveVerificationCode();\n// $this->verification();\n// $this->checkEmailVerification();\n// $this->checkSendCode();\n }", "public function createData()\n {\n // TODO: Implement createData() method.\n }", "public function run()\n {\n $faker = Factory::create();\n Template::factory()->count(500)->has(\n TemplateChecklist::factory()->count(1),\n 'checklist'\n )->has(\n TemplateItem::factory()->count($faker->numberBetween(1, 100)),\n 'items'\n )->create();\n }", "public function testCreateTestCaseWithDetails()\n {\n $user = factory(App\\User::class)->create();\n\n $this->actingAs($user)\n ->visit('/library')\n ->click('#newCase')\n ->seePageIs('/library/testcase/create')\n ->type('TestCase2', 'name1')\n ->select('1', 'testSuite1')\n ->type('someDecription','description1')\n ->type('somePrefixes','prefixes1')\n ->type('someSteps','steps1')\n ->type('someResult','expectedResult1')\n ->type('someSuffixes','suffixes1')\n ->press('submit');\n\n $this->seeInDatabase('TestCaseHistory', [\n 'TestCaseDescription' => 'someDecription',\n 'TestCasePrefixes' => 'somePrefixes',\n 'TestSteps' => 'someSteps',\n 'ExpectedResult' => 'someResult',\n 'TestCaseSuffixes' => 'someSuffixes'\n ]);\n }", "public function testConstructor()\n {\n echo \"\\n//////////////////////////////////\";\n echo \"\\n/// Test Constructor Method\";\n foreach ($this->dataSet as $key => $data) {\n echo \"\\n\".$key.' : '.$data['test'];\n try {\n new PaymentGateway(\n $data['apiBaseUrl'],\n $data['apiKey'],\n $data['mobile']\n );\n } catch (\\Exception $e) {\n $this->assertEquals($data['isAssertion'], false, 'Error:dataSet number ' . $key . ' is not passed'.\n \"\\nTest:\".$data['test']);\n }\n }\n $this->assertTrue(true);\n }", "public function testGetUserrecordingsSummary()\n {\n }", "public function seed()\n\t{\n\t\t$this->createDataType();\n\t\t$this->createDataRowForColumns();\n\t}", "public function print_test()\n {\n $clientname = $this->configsys->get_config_value('clientname');\n $clientaddress = $this->configsys->get_config_value('clientaddress');\n $clientcity = $this->configsys->get_config_value('clientcity');\n $clientstate = $this->configsys->get_config_value('clientstate');\n $clientzip = $this->configsys->get_config_value('clientzip');\n $clientphone = $this->configsys->get_config_value('clientphone');\n $clientwebsite = $this->configsys->get_config_value('clientwebsite');\n\n $client_data = array(\n 'clientname' => $clientname,\n 'clientaddress' => $clientaddress,\n 'clientcity' => $clientcity,\n 'clientstate' => $clientstate,\n 'clientzip' => $clientzip,\n 'clientphone' => $clientphone,\n 'clientwebsite' => $clientwebsite\n );\n\n $data['client_data'] = $client_data;\n\n $view_vars = array(\n 'title' => $this->config->item('Company_Title'),\n 'heading' => $this->config->item('Company_Title'),\n 'description' => $this->config->item('Company_Description'),\n 'company' => $this->config->item('Company_Name'),\n 'logo' => $this->config->item('Company_Logo'),\n 'author' => $this->config->item('Company_Author')\n );\n $data['page_data'] = $view_vars;\n\n $post_payment_data = array(\n 'OrderNumber' => '77777',\n 'IsApproved' => 1,\n 'ReturnCode' => 'ReturnCode',\n 'ResponseHTML' => 'This is the response HTML',\n 'UpdateDate' => date('Y-n-j H:i:s')\n );\n $result_data = $post_payment_data;\n $data['result_data'] = $result_data;\n\n\n $submitted_data['transaction_id'] = '12345676';\n $submitted_data['creditcard'] = '1111';\n $submitted_data['expirationmonth'] = '08';\n $submitted_data['expirationyear'] = 2012;\n $submitted_data['cvv2'] = '123';\n $submitted_data['PaymentSource'] = 'VT';\n $submitted_data['amount'] = '125.34';\n $submitted_data['cclast4'] = '4444';\n $submitted_data['name'] = 'John Doe';\n\n $data['submitted_data'] = $submitted_data;\n\n $this->load->view('virtualterminalformresult', $data);\n\n }", "protected abstract function createTestTable();", "protected function createTests() :void\n {\n $directory = app_path('tests');\n\n Storage::makeDirectory($directory, true);\n PhpUnit::create('phpunit', app_path());\n }", "public function run()\n {\n $faker = Faker::create();\n foreach(range(1,10) as $index) {\n \tEmployee::create([\n \t\t'name'=>$faker->name(),\n \t\t'code'=>$faker->unique()->randomDigit,\n \t\t'designation'=>$faker->randomElement($array=array('Developer','Desginer','Tester','Businees Analyist','Admin','HR','Recuirtment','House Keeping')),\n \t\t'department'=>$faker->jobTitle,\n \t\t'status'=>$faker->randomElement($status = [0,1]), \t\t\n \t\t'location'=>$faker->country\n \t\t]);\n }\n }", "public function run()\n {\n $faker = Faker::create();\n //echo $faker->word();die();\n //var_dump($faker);die();\n\n for($i=0; $i<100; $i++) \n {\n Maker::create\n ([\n 'name' => $faker->unique()->company(),\n 'phone' => $faker->phoneNumber()\n ]);\n }\n }", "public function setUp()\n {\n $this->data = array(\n 'folder_name_1' => array(\n 'src' => 'source_1',\n 'dst' => 'destination_1',\n ),\n 'folder_name_2' => array(\n 'src' => 'source_2',\n 'dst' => 'destination_2',\n 'client' => 'test'\n )\n );\n }", "public function getTestAddAndGetData()\n {\n return [\n ['namespace_1', 'key_11'],\n ['namespace_2', 'key_21'],\n ];\n }", "public function test_process_data() {\n global $DB, $CFG;\n\n $this->resetAfterTest(true);\n\n $course = $this->getDataGenerator()->create_course();\n\n // Create and enrol a student.\n $student = $this->getDataGenerator()->create_user(array('username' => 'Student Sam'));\n $role = $DB->get_record('role', array('shortname' => 'student'), '*', MUST_EXIST);\n $this->getDataGenerator()->enrol_user($student->id, $course->id, $role->id);\n\n // Test with limited grades.\n $CFG->unlimitedgrades = 0;\n\n $forummax = 80;\n $forum1 = $this->getDataGenerator()->create_module('forum', array('assessed' => 1, 'scale' => $forummax, 'course' => $course->id));\n // Switch the stdClass instance for a grade item instance.\n $forum1 = grade_item::fetch(array('itemtype' => 'mod', 'itemmodule' => 'forum', 'iteminstance' => $forum1->id, 'courseid' => $course->id));\n\n $report = $this->create_report($course);\n $testgrade = 60.00;\n\n $data = new stdClass();\n $data->id = $course->id;\n $data->report = 'grader';\n $data->timepageload = time();\n\n $data->grade = array();\n $data->grade[$student->id] = array();\n $data->grade[$student->id][$forum1->id] = $testgrade;\n\n $warnings = $report->process_data($data);\n $this->assertEquals(count($warnings), 0);\n\n $studentgrade = grade_grade::fetch(array('itemid' => $forum1->id, '' => $student->id));\n $this->assertEquals($studentgrade->finalgrade, $testgrade);\n\n // Grade above max. Should be pulled down to max.\n $toobig = 200.00;\n $data->grade[$student->id][$forum1->id] = $toobig;\n $data->timepageload = time();\n $warnings = $report->process_data($data);\n $this->assertEquals(count($warnings), 1);\n\n $studentgrade = grade_grade::fetch(array('itemid' => $forum1->id, '' => $student->id));\n $this->assertEquals($studentgrade->finalgrade, $forummax);\n\n // Grade below min. Should be pulled up to min.\n $toosmall = -10.00;\n $data->grade[$student->id][$forum1->id] = $toosmall;\n $data->timepageload = time();\n $warnings = $report->process_data($data);\n $this->assertEquals(count($warnings), 1);\n\n $studentgrade = grade_grade::fetch(array('itemid' => $forum1->id, '' => $student->id));\n $this->assertEquals($studentgrade->finalgrade, 0);\n\n // Test unlimited grades so we can give a student a grade about max.\n $CFG->unlimitedgrades = 1;\n\n $data->grade[$student->id][$forum1->id] = $toobig;\n $data->timepageload = time();\n $warnings = $report->process_data($data);\n $this->assertEquals(count($warnings), 0);\n\n $studentgrade = grade_grade::fetch(array('itemid' => $forum1->id, '' => $student->id));\n $this->assertEquals($studentgrade->finalgrade, $toobig);\n }", "protected function setUp()\r\n {\r\n $this->object = new Json;\r\n mkdir('data/tests');\r\n file_put_contents('data/tests/test.json', json_encode(\\MockObject\\FileDataStub::getData()));\r\n }", "public function test() {\n $results = [];\n $results[\"testAddUser\"] = $this->testAddUser();\n\n return $results;\n }", "public function run()\n {\n $faker = Faker::create();\n $preUach = PreUach::all();\n $samples_temp = [];\n\n foreach ($preUach as $item)\n {\n\n\n $samples_temp[] = [\n 'postulante' => $item->postulante,\n 'persona_matricula'=> $faker->lastName.' '. $faker->firstName,\n 'fecha_matricula'=>$faker->dateTimeBetween($startDate = '-5 months', $endDate = 'now')\n ]; \t\n }\n\n Declaracion::insert($samples_temp);\n \n }", "public function buildDataProvider()\n {\n $name = 'company * product';\n $phone = '333-22-22-333';\n $url = 'https://test.url.mage.com';\n return [\n [\n 'descriptors' => [\n 'name' => $name,\n 'phone' => $phone,\n 'url' => $url,\n ],\n 'expected' => [\n 'descriptor' => [\n 'name' => $name,\n 'phone' => $phone,\n 'url' => $url,\n ],\n ],\n ],\n [\n 'descriptors' => [\n 'name' => $name,\n 'phone' => $phone,\n ],\n 'expected' => [\n 'descriptor' => [\n 'name' => $name,\n 'phone' => $phone,\n ],\n ],\n ],\n [\n 'descriptors' => [\n 'name' => $name,\n ],\n 'expected' => [\n 'descriptor' => [\n 'name' => $name,\n ],\n ],\n ],\n [\n 'descriptors' => [],\n 'expected' => [],\n ],\n ];\n }", "public function run()\n {\n factory(App\\Subject::class,'assessment',3)->create();\n factory(App\\Group::class,'assessment',3)->create();\n factory(App\\Student::class,'assessment',14)->create();\n factory(App\\Assessment::class,'assessment',40)->create();\n }", "public function run()\n {\n// Test data\n for($i=1;$i<100; $i++)\n {\n $dates = [\n \"2021-04-28 22:32:57\",\n \"2021-02-10 22:32:57\",\n \"2021-01-28 22:32:57\",\n \"2021-01-12 22:32:57\",\n \"2020-12-28 22:32:57\",\n \"2020-11-28 22:32:57\"\n ];\n\n $device = Device::create([\n \"uid\"=>$i,\n \"app_id\"=>$i,\n \"language\"=> \"TR\",\n \"operating_system\"=> \"iOS\",\n \"client_token\"=> generateClientToken(),\n ]);\n\n Application::create([\n \"device_id\"=>$device->id,\n 'username' => \"test\".$i,\n 'password' => encrypt(\"\"),\n 'callback_url' => getBaseUrl(). \"api/test-callback\"\n ]);\n\n Subscription::create([\n \"device_id\"=>$device->id,\n 'expire_date' => $dates[rand(0, 5)],\n 'status' => SUBSCRIPTON_STATUS_STARTED\n ]);\n }\n // \\App\\Models\\User::factory(10)->create();\n }", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "public function run()\n {\n for ($i = 10; $i < rand(1910, 2010); $i++) {\n $pairValue = ['key' => \"key$i\", 'value' => \"value$i\", 'ttl' => '5 mins', 'delete_time' => Carbon::now()->addSeconds(rand(-300, 300))->toDateTimeString()];\n App\\DataModel::create($pairValue);\n }\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n $kelamin = \"laki-laki\";\n foreach (range(1, 100) as $i) {\n \tKajian::create([\n \t\t'waktu'\t\t\t\t=> $faker->dateTimeThisCentury($max = 'now', $timezone = date_default_timezone_get()), \n\n \t\t'tema'\t\t\t\t=> $faker->sentence($nbWords = 6, $variableNbWords = true), \n \t\t'pemateri'\t\t\t=> $faker->name($gender = null|'male'|'female'), \n \t\t'alamat'\t\t\t=> $faker->streetAddress, \n \t\t'deskripsi'\t\t\t=> $faker->paragraph($nbSentences = 3, $variableNbSentences = true), \n \t\t'jenis_peserta'\t\t=> $kelamin, \n \t\t'latitude'\t\t\t=> $faker->latitude, \n \t\t'longitude'\t\t\t=> $faker->longitude,\n 'isRutin' => $faker->boolean\n \t]);\n }\n }", "function setUp() {\n\t\t$this->dataLong = file_get_contents(__DIR__ . '/../lib/crypt.php');\n\t\t$this->dataShort = 'hats';\n\t\t$this->dataUrl = __DIR__ . '/../lib/crypt.php';\n\t\t$this->legacyData = __DIR__ . '/legacy-text.txt';\n\t\t$this->legacyEncryptedData = __DIR__ . '/legacy-encrypted-text.txt';\n\t\t$this->randomKey = Encryption\\Crypt::generateKey();\n\n\t\t$keypair = Encryption\\Crypt::createKeypair();\n\t\t$this->genPublicKey = $keypair['publicKey'];\n\t\t$this->genPrivateKey = $keypair['privateKey'];\n\n\t\t$this->view = new \\OC_FilesystemView('/');\n\n\t\t\\OC_User::setUserId(\\Test_Encryption_Keymanager::TEST_USER);\n\t\t$this->userId = \\Test_Encryption_Keymanager::TEST_USER;\n\t\t$this->pass = \\Test_Encryption_Keymanager::TEST_USER;\n\n\t\t$userHome = \\OC_User::getHome($this->userId);\n\t\t$this->dataDir = str_replace('/' . $this->userId, '', $userHome);\n\n\t\t// remember files_trashbin state\n\t\t$this->stateFilesTrashbin = OC_App::isEnabled('files_trashbin');\n\n\t\t// we don't want to tests with app files_trashbin enabled\n\t\t\\OC_App::disable('files_trashbin');\n\t}", "function getTestDataFromFile($file) {\n return require $file;\n}", "public function testCreateWithAllFields(): void\n {\n $this->doTestCreate('createWithAllFields.json');\n }", "function test_all () {\n\n\t\t$this->layout = 'test';\n\n\t\t$tests_folder = new Folder('../tests');\n\n\t\t$results = array();\n\t\t$total_errors = 0;\n\t\tforeach ($tests_folder->findRecursive('.*\\.php') as $test) {\n\t\t\tif (preg_match('/^(.+)\\.php/i', basename($test), $r)) {\n\t\t\t\trequire_once($test);\n\t\t\t\t$test_name = Inflector::Camelize($r[1]);\n\t\t\t\tif (preg_match('/^(.+)Test$/i', $test_name, $r)) {\n\t\t\t\t\t$module_name = $r[1];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$module_name = $test_name;\n\t\t\t\t}\n\t\t\t\t$suite = new TestSuite($test_name);\n\t\t\t\t$result = TestRunner::run($suite);\n\n\t\t\t\t$total_errors += $result['errors'];\n\n\t\t\t\t$results[] = array(\n\t\t\t\t\t'name'=>$module_name,\n\t\t\t\t\t'result'=>$result,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t$this->set('success', !$total_errors);\n\t\t$this->set('results', $results);\n\t}", "public function run()\n {\n $faker = Faker::create();\n $patients = Patient::all();\n foreach ($patients as $patient) {\n for ($i=0;$i<5;$i++){\n $data = [\n 'patient_id' => $patient->id,\n 'name' => $faker->realText(10),\n 'description' => $faker->realText(500),\n 'image' => $faker->imageUrl(300,400)\n ];\n Report::create($data);\n }\n }\n }", "private function generateTestClass()\n {\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $dir = $this->bundle->getPath() .'/Tests/Controller';\n $target = $dir .'/'. str_replace('\\\\', '/', $entityNamespace).'/'. $entityClass .'ControllerTest.php';\n\n $this->renderFile($this->skeletonDir, 'tests/test.php', $target, array(\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'actions' => $this->actions,\n 'dir' => $this->skeletonDir,\n ));\n }", "public function getTestData() {\n $big_data = [];\n for ($i = 1; $i <= 10000; $i++) {\n $big_data[] = [\n 'id' => $i,\n 'name' => UUID::v4()\n ];\n }\n return [\n [\n $big_data,\n \"10000 results\",\n \"Showing results 1 to 5\",\n \"offset=2000\",\n true\n ],\n [\n [\n\n [\n 'id' => 1,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 2,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 3,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 4,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 5,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 6,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 7,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 8,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 9,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 10,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 11,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 12,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 13,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 14,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 15,\n 'name' => 'johnny bravo'\n ]\n ],\n \"15 results\",\n \"Showing results 1 to 5\",\n \"offset=3\",\n false\n ],\n [\n [\n [\n 'id' => 1,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 2,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 3,\n 'name' => 'johnny bravo'\n ]\n ],\n \"3 results\",\n \"results\",\n \"results\",\n true\n ]\n ];\n }" ]
[ "0.74458015", "0.7135655", "0.6897274", "0.6881263", "0.68571585", "0.6828665", "0.66274965", "0.6596069", "0.65485215", "0.6547817", "0.65441424", "0.65346164", "0.6529172", "0.6521252", "0.645993", "0.64151686", "0.6414389", "0.6404725", "0.63242847", "0.63128835", "0.62972754", "0.62391365", "0.6226959", "0.62237406", "0.6220799", "0.62095755", "0.6202102", "0.6190546", "0.61846167", "0.6149261", "0.6144428", "0.61281", "0.6116856", "0.6094028", "0.60881966", "0.60827935", "0.6070333", "0.6061792", "0.6035937", "0.6029223", "0.60207075", "0.59926105", "0.5979941", "0.5975625", "0.5971494", "0.59617686", "0.5960796", "0.5951123", "0.5942309", "0.59197915", "0.5919161", "0.5913972", "0.5897225", "0.589653", "0.5887523", "0.5880784", "0.58680797", "0.5860628", "0.58585656", "0.58495593", "0.5834696", "0.5814025", "0.58068275", "0.5798023", "0.5787932", "0.5785563", "0.5780045", "0.5770174", "0.57674956", "0.5741523", "0.57381237", "0.5737945", "0.57364917", "0.5727685", "0.571912", "0.57162935", "0.5716286", "0.57146215", "0.5712605", "0.5708059", "0.56992775", "0.56902146", "0.56898934", "0.56886053", "0.56816614", "0.56814986", "0.5678378", "0.5678378", "0.5678378", "0.5678378", "0.5678378", "0.5678378", "0.5670926", "0.5669144", "0.5668953", "0.5664116", "0.5661409", "0.566023", "0.56556904", "0.5655137", "0.56503046" ]
0.0
-1
Generate test case data
public function getRelativeUrlProvider() { return [ [ 'http://example.com/test', '/test', ], [ 'https://example.com/test/path', '/test/path', ], [ '/test/any/path', '/test/any/path', ], [ 'http://example.com', '/', ], [ 'http://example.com/', '/', ], [ '/', '/', ], [ '/some/path', '/some/path', ] ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function createSampleData()\n\t{\n\t\tself::createSampleObject(1, \"Issue 1\", 1);\n\t\tself::createSampleObject(2, \"Issue 2\", 1);\n\t}", "public function dataProviderTestGenerate()\n {\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 10,\n 'format' => [\n [-1, -1],\n [-1, -1],\n ],\n ],\n ];\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 4,\n 'format' => [\n [-1, 2],\n [-1, -1],\n ],\n ],\n ];\n }", "public function testData()\n {\n $output = $this->primer->getPatterns(array('components/test-group/data-autoload'), false);\n\n $this->assertEquals($output, '1.2');\n }", "abstract protected function getTestData() : array;", "abstract public function getTestData(): array;", "protected function getTestData(){\n\t\treturn \"application/testdata/Pagers.php\" ;\n\t}", "public function provideTestData()\n {\n return [\n ['9141405', true],\n ['1709107983', true],\n ['0122116979', true],\n ['0121114867', true],\n ['9030101192', true],\n ['9245500460', true],\n\n ['9141406', false],\n ['1709107984', false],\n ['0122116970', false],\n ['0121114868', false],\n ['9030101193', false],\n ['9245500461', false],\n ];\n }", "public function provideTestData()\n {\n return [\n // variant one\n ['1197423162', true],\n ['1000000606', true],\n\n // variant one\n ['8137423260', false],\n ['600000606', false],\n ['51234309', false],\n\n // variant two\n ['1000000406', true],\n ['1035791538', true],\n ['1126939724', true],\n ['1197423460', true],\n\n // variant two\n ['1000000405', false],\n ['1035791539', false],\n ['8035791532', false],\n ['535791830', false],\n ['51234901', false],\n ];\n }", "public function provideTestData()\n {\n return [\n // variant 1\n ['1016', true],\n ['26260', true],\n ['242243', true],\n ['242248', true],\n ['18002113', true],\n ['1821200043', true],\n ['1011', false],\n ['26265', false],\n ['18002118', false],\n ['6160000024', false],\n\n // variant 2\n ['1015', true],\n ['26263', true],\n ['242241', true],\n ['18002116', true],\n ['1821200047', true],\n ['3456789012', true],\n ['242249', false],\n ['1234567890', false],\n ];\n }", "public function generateTestCases(): iterable\n {\n yield 'When arrays are same without fuzzy' => [\n 'actual' => ['key' => 'value'],\n 'expected' => ['key' => 'value'],\n 'exception' => null\n ];\n\n yield 'Test array same with fuzzy' =>\n [\n 'actual' => ['key' => 'value', 'date' => '2010-10-10T01:03:06Z'],\n 'expected' => ['key' => 'value', 'date' => ':fuzzy:'],\n 'exception' => null\n ];\n\n yield 'Test array same fails' =>\n [\n 'actual' => ['key' => 'value'],\n 'expected' => ['key' => 'missing'],\n 'exception' => new AssertionFailedError(\n 'Failed asserting that two arrays are identical.'\n ),\n 'comparisionCreated' => true\n ];\n\n yield 'Test when actual is not an array' =>\n [\n 'actual' => '',\n 'expected' => ['key' => 'value'],\n 'exception' => new AssertionFailedError('Failed asserting that string is an array.'),\n 'comparisionCreated' => false\n ];\n }", "public function getTestData()\n {\n return [\n 'user_id' => 1,\n 'status' => 1,\n 'created_at' => '2016-01-21 15:00:00',\n 'updated_at' => '2016-01-21 18:00:00'\n ];\n }", "public function provideTestData()\n {\n return [\n // Variant 1\n ['6100272324', true],\n ['6100273479', true],\n\n ['6100272885', false],\n ['6100273377', false],\n ['6100274012', false],\n\n // Variant 2\n ['5700000000', true],\n ['5700000001', true],\n ['5799999998', true],\n ['5799999999', true],\n\n ['5699999999', false],\n ['5800000000', false],\n ];\n }", "public function getTestData()\n {\n yield [false, false, '-5 days', '+5 days', true];\n // changing before last dockdown period is not allowed with grace permission\n yield [false, true, '-5 days', '+5 days', true];\n // changing before last dockdown period is allowed with full permission\n yield [true, true, '-5 days', '+5 days', false];\n yield [true, false, '-5 days', '+5 days', false];\n // changing a value in the last lockdown period is allowed during grace period\n yield [false, false, '+5 days', '+5 days', false];\n // changing outside grace period is not allowed\n yield [false, false, '+5 days', '+11 days', true];\n // changing outside grace period is allowed with grace and full permission\n yield [false, true, '+5 days', '+11 days', false];\n yield [true, false, '+5 days', '+11 days', false];\n yield [true, true, '+5 days', '+11 days', false];\n }", "public function getTestIterationData()\n {\n $cases = [];\n\n // Case #0 Standard iterator.\n $cases[] = [\n [\n 'hits' => [\n 'total' => 1,\n 'hits' => [\n [\n '_type' => 'content',\n '_id' => 'foo',\n '_score' => 0,\n '_source' => ['header' => 'Test header'],\n ],\n ],\n ],\n ],\n [\n [\n '_type' => 'content',\n '_id' => 'foo',\n '_score' => 0,\n '_source' => ['header' => 'Test header'],\n ],\n ],\n ];\n\n return $cases;\n }", "public function run()\n {\n $projectNum = Project::count();\n $faker = Faker::create();\n $project_limit=require('Config.php');\n for($i=1;$i<=$projectNum;$i++)\n {\n if($i%200 ==0)\n $this->command->info('Test Suite Seed :'.$i.' out of: '.$projectNum);\n $TestsTestArch = DB::table('project_assignments')->select('user_id','role_id')->\n where([['project_id','=',$i]])->\n whereIn('role_id',[7,8,9])->get();\n //let's say Tester, Test Lead and Test Architect together create around 20-40 folder per projects\n $numberOfTestSuites = rand($project_limit['projects']['min_test_suite'],$project_limit['projects']['max_test_suite']);\n for($j=0;$j<$numberOfTestSuites;++$j)\n {\n TestSuite::create(array(\n 'project_id'=>$i,\n 'name'=>$faker->sentence(4),\n //let's say only 90% of Test Suite have description\n 'description'=>rand(0,100)<80?$faker->paragraph(6):null,\n 'creator_id'=>$faker->randomElement($TestsTestArch)->user_id\n ));\n }\n }\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n\n for($i = 0; $i < 1000; $i++) {\n App\\TestData::create([\n 'username' => $faker->userName,\n 'name' => $faker->name,\n \n ]);\n }\n }", "public function provideTestCases()\n {\n return [\n ['time', ['time'], false],\n ['bar', null, true],\n ];\n }", "protected function fixtureData() {\n\t\t$rows = array();\n\t\tfor($i = 0; $i < 50; $i++) {\n\t\t\t$rows[] = array(\n\t\t\t\t\"name\" => \"Test Item \".$i,\n\t\t\t\t\"popularity\" => $i,\n\t\t\t\t\"author\" => \"Test Author \".$i,\n\t\t\t\t\"description\" => str_repeat(\"lorem ipsum dolor est \",rand(3,20)),\n\n\t\t\t);\n\t\t}\n\t\treturn $rows;\n\t}", "public function dataProviderTestInit()\n {\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 10,\n 'format' => [\n [-1, -1],\n [-1, -1],\n ],\n ],\n ];\n }", "public function test_scenario1() {\n\n $data = array(array(\"filename\"=> \"data/iris.csv\",\n\t \"local_file\" => \"tmp/if_then_rules_iris.txt\",\n\t\t\t \"expected_file\" => \"data/model/if_then_rules_iris.txt\"),\n array(\"filename\"=> \"data/iris_sp_chars.csv\",\n \"local_file\" => \"tmp/iris_sp_chars.txt\",\n \"expected_file\" => \"data/model/if_then_rules_iris_sp_chars.txt\"),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam.txt\"),\n array(\"filename\"=> \"data/grades.csv\",\n \"local_file\" => \"tmp/if_then_rules_grades.txt\",\n \"expected_file\" => \"data/model/if_then_rules_grades.txt\"),\n array(\"filename\"=> \"data/diabetes.csv\",\n \"local_file\" => \"tmp/if_then_rules_diabetes.txt\",\n \"expected_file\" => \"data/model/if_then_rules_diabetes.txt\"),\n array(\"filename\"=> \"data/iris_missing2.csv\",\n \"local_file\" => \"tmp/if_then_rules_iris_missing2.txt\",\n \"expected_file\" => \"data/model/if_then_rules_iris_missing2.txt\"),\n array(\"filename\"=> \"data/tiny_kdd.csv\",\n \"local_file\" => \"tmp/if_then_rules_tiny_kdd.txt\",\n \"expected_file\" => \"data/model/if_then_rules_tiny_kdd.txt\")\n\t );\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a model and translate the tree model into a set of IF-THEN rules\\n\";\n\t print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n\t $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n\t $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n\t $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the local source is ready\\n\";\n\t $resource = self::$api->_check_resource($source->resource, null, 3000, 30);\n\t $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create dataset with local source\\n\";\n\t $dataset = self::$api->create_dataset($source->resource);\n\t $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n\t $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n\t $resource = self::$api->_check_resource($dataset->resource, null, 3000, 30);\n\t $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n\t $model = self::$api->create_model($dataset->resource);\n\t $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wail until the model is ready\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n\t $local_model = new Model($model->resource, self::$api);\n print \"I translate the tree into IF_THEN rules\\n\";\n\n\t $fp = fopen($item[\"local_file\"], 'w');\n $local_model->rules($fp);\n fclose($fp);\n\t print \" Then I check the output is like \" . $item[\"expected_file\"] . \" expected file\\n\";\n $this->assertEquals(0, strcmp(trim(file_get_contents($item[\"local_file\"])), trim(file_get_contents($item[\"expected_file\"]))));\n\n }\n\n\n }", "public function actionGenerate()\n {\n \\bariew\\yii2Tools\\tests\\FixtureManager::init();\n }", "public function testSampleData()\n {\n $_SESSION['behat']['GenesisSqlExtension']['notQuotableKeywords'] = [];\n\n $types = [\n 'boolean' => 'false',\n 'integer' => self::INT_NUMBER,\n 'double' => self::INT_NUMBER,\n 'int' => self::INT_NUMBER,\n 'tinyint' => self::TINY_INT_NUMBER,\n 'string' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'text' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'varchar' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'character varying' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'tinytext' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'char' => \"'f'\",\n 'timestamp' => 'NOW()',\n 'timestamp with time zone' => 'NOW()',\n 'null' => null,\n 'longtext' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'randomness' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\"\n ];\n\n // Assert\n foreach ($types as $type => $val) {\n // Execute\n $result = $this->testObject->sampleData($type);\n\n $this->assertEquals($val, $result);\n }\n }", "public function run()\n {\n $faker = Faker::create();\n\n foreach (range(1, 92) as $index) {\n\t $data = new Eptparticipant;\n $data->id_user = $faker->unique()->numberBetween($min = 7, $max = 98);\n\t $data->id_major = $faker->numberBetween($min = 1, $max = 102);\n\t $data->idnumber_eptparticipant = $this->random10();\n\t $data->gender = $faker->randomElement($array = array ('Male','Female'));\n\t $data->place_of_birth = $faker->city;\n $data->date_of_birth = $faker->date($format = 'Y-m-d', $max = 'now');\n\t $data->address = $faker->streetAddress;\n\t $data->handphone_number = $faker->tollFreePhoneNumber;\n $data->created_at = Carbon::now();\n $data->updated_at = Carbon::now();\n $data->save();\n }\n }", "public function generateTestClass($testClass, $testCases);", "protected function createTestData()\n {\n // Cleanup any old objects\n $this->deleteTestData();\n \n // Get datamapper\n $dm = $this->account->getServiceManager()->get(\"Entity_DataMapper\");\n \n // Create a campaign for filtering\n $obj = $this->account->getServiceManager()->get(\"EntityLoader\")->create(\"marketing_campaign\");\n $obj->setValue(\"name\", \"Unit Test Aggregates\");\n $this->campaignId = $dm->save($obj);\n if (!$this->campaignId)\n throw new \\Exception(\"Could not create campaign\");\n\n // Create first opportunity\n $obj = $this->account->getServiceManager()->get(\"EntityLoader\")->create(\"opportunity\");\n $obj->setValue(\"name\", \"Website\");\n $obj->setValue(\"f_won\", false);\n $obj->setValue(\"probability_per\", 50);\n $obj->setValue(\"campaign_id\", $this->campaignId);\n $obj->setValue(\"amount\", 100);\n $oid = $dm->save($obj);\n \n // Create first opportunity\n $obj = $this->account->getServiceManager()->get(\"EntityLoader\")->create(\"opportunity\");\n $obj->setValue(\"name\", \"Application\");\n $obj->setValue(\"f_won\", true);\n $obj->setValue(\"probability_per\", 75);\n $obj->setValue(\"campaign_id\", $this->campaignId);\n $obj->setValue(\"amount\", 50);\n $oid = $dm->save($obj);\n }", "public function conversionTestingDataProvider() {}", "public function readTestData()\n {\n return $this->testData->get();\n }", "public static function get_tests()\n {\n }", "public function testData() {\n $subscription = $this->mockSubscription('[email protected]', (object) [\n 'fields' => [\n ['name' => 'FIRSTNAME'],\n ['name' => 'LASTNAME'],\n ],\n ]);\n\n // Test new item.\n list($cr, $api) = $this->mockProvider();\n $source1 = new ArraySource([\n 'firstname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source1);\n list($data, $fingerprint) = $cr->data($subscription, []);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n ], $data);\n\n // Test item with existing data.\n list($cr, $api) = $this->mockProvider();\n $source2 = new ArraySource([\n 'lastname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source2);\n list($data, $fingerprint) = $cr->data($subscription, $data);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n 'LASTNAME' => 'test',\n ], $data);\n }", "public function runTests()\n {\n $this->testCase(1, array (1, 1));\n $this->testCase(2, array (1, 2));\n $this->testCase(3, array (2, 2));\n $this->testCase(4, array (2, 2));\n $this->testCase(5, array (2, 3));\n $this->testCase(6, array (2, 3));\n $this->testCase(7, array (3, 3));\n $this->testCase(8, array (3, 3));\n $this->testCase(9, array (3, 3));\n $this->testCase(10, array(2, 5));\n $this->testCase(11, array(3, 4));\n $this->testCase(12, array(3, 4));\n $this->testCase(13, array(4, 4));\n $this->testCase(14, array(4, 4));\n $this->testCase(15, array(4, 4));\n $this->testCase(16, array(4, 4));\n $this->testCase(17, array(3, 6));\n $this->testCase(18, array(3, 6));\n $this->testCase(19, array(4, 5));\n $this->testCase(20, array(4, 5));\n $this->testCase(21, array(3, 7));\n $this->testCase(22, array(5, 5));\n $this->testCase(23, array(5, 5));\n $this->testCase(24, array(5, 5));\n $this->testCase(25, array(5, 5));\n $this->testCase(26, array(4, 7));\n $this->testCase(27, array(4, 7));\n $this->testCase(28, array(4, 7));\n $this->testCase(29, array(5, 6));\n $this->testCase(30, array(5, 6));\n $this->testCase(31, array(4, 8));\n $this->testCase(32, array(4, 8));\n $this->testCase(33, array(6, 6));\n $this->testCase(34, array(6, 6));\n $this->testCase(35, array(6, 6));\n $this->testCase(36, array(6, 6));\n $this->testCase(37, array(5, 8));\n $this->testCase(38, array(5, 8));\n $this->testCase(39, array(5, 8));\n $this->testCase(40, array(5, 8));\n $this->testCase(41, array(6, 7));\n $this->testCase(42, array(6, 7));\n $this->testCase(43, array(5, 9));\n $this->testCase(44, array(5, 9));\n $this->testCase(45, array(5, 9));\n $this->testCase(46, array(7, 7));\n $this->testCase(47, array(7, 7));\n $this->testCase(48, array(7, 7));\n $this->testCase(49, array(7, 7));\n $this->testCase(50, array(5, 10));\n $this->testCase(51, array(6, 9));\n $this->testCase(52, array(6, 9));\n $this->testCase(53, array(6, 9));\n $this->testCase(54, array(6, 9));\n $this->testCase(55, array(7, 8));\n $this->testCase(56, array(7, 8));\n $this->testCase(57, array(6, 10));\n $this->testCase(58, array(6, 10));\n $this->testCase(59, array(6, 10));\n $this->testCase(60, array(6, 10));\n $this->testCase(61, array(8, 8));\n $this->testCase(62, array(8, 8));\n $this->testCase(63, array(8, 8));\n $this->testCase(64, array(8, 8));\n $this->testCase(65, array(6, 11));\n $this->testCase(66, array(6, 11));\n $this->testCase(67, array(7, 10));\n $this->testCase(68, array(7, 10));\n $this->testCase(69, array(7, 10));\n $this->testCase(70, array(7, 10));\n $this->testCase(71, array(8, 9));\n $this->testCase(72, array(8, 9));\n $this->testCase(73, array(7, 11));\n $this->testCase(74, array(7, 11));\n $this->testCase(75, array(7, 11));\n $this->testCase(76, array(7, 11));\n $this->testCase(77, array(7, 11));\n $this->testCase(78, array(9, 9));\n $this->testCase(79, array(9, 9));\n $this->testCase(80, array(9, 9));\n $this->testCase(81, array(9, 9));\n $this->testCase(82, array(7, 12));\n $this->testCase(83, array(7, 12));\n $this->testCase(84, array(7, 12));\n $this->testCase(85, array(8, 11));\n $this->testCase(86, array(8, 11));\n $this->testCase(87, array(8, 11));\n $this->testCase(88, array(8, 11));\n $this->testCase(89, array(9, 10));\n $this->testCase(90, array(9, 10));\n $this->testCase(91, array(7, 13));\n $this->testCase(92, array(8, 12));\n $this->testCase(93, array(8, 12));\n $this->testCase(94, array(8, 12));\n $this->testCase(95, array(8, 12));\n $this->testCase(96, array(8, 12));\n $this->testCase(97, array(10, 10));\n $this->testCase(98, array(10, 10));\n $this->testCase(99, array(10, 10));\n $this->testCase(100, array(10, 10));\n }", "public function test_scenario1() {\n\n $data = array(\n array(\"model\" =>\n array(\"topic_model\" =>\n array(\"alpha\" => 0.08,\n \"beta\" => 0.1,\n \"hashed_seed\" => 0,\n \"language\" => \"en\",\n \"bigrams\" => True,\n \"case_sensitive\" => False,\n \"term_topic_assignments\" => array(array(0, 0, 1, 2),\n array(0, 1, 2, 0),\n array(1, 2, 0, 0),\n array(0, 0, 2, 0)),\n \"termset\" => array(\"cycling\", \"playing\", \"shouldn't\", \"uńąnimous court\"),\n \"options\" => [],\n \"topics\" => array(array(\"name\" => \"Topic 1\",\n \"id\" => \"000000\",\n \"top_terms\" => array(\"a\", \"b\"),\n \"probability\" => 0.1),\n array(\"name\" => \"Topic 2\",\n \"id\" => \"000001\",\n \"top_terms\" => array(\"c\", \"d\"),\n \"probability\" => 0.1),\n array(\"name\" => \"Topic 3\",\n \"id\" => \"000000\",\n \"top_terms\" => array(\"e\", \"f\"),\n \"probability\" => 0.1),\n array(\"name\" => \"Topic 4\",\n \"id\" => \"000000\",\n \"top_terms\" => array(\"g\", \"h\"),\n \"probability\" => 0.1)),\n \"fields\" => array(\"000001\" => array(\"datatype\" => \"string\",\n \"name\" => \"TEST TEXT\",\n \"optype\" => \"text\",\n \"order\" => 0,\n \"preferred\" => True,\n \"summary\" => [],\n \"term_analysis\" => []))),\n \"resource\" => \"topicmodel/aaaaaabbbbbbccccccdddddd\",\n \"status\" => array(\"code\" => 5)),\n \"text\" => array(\"TEST TEXT\" => \"uńąnimous court 'UŃĄNIMOUS COURT' `play``the plays PLAYing SHOULDN'T CYCLE cycling shouldn't uńąnimous or court's\"),\n \"expected\" => array(array(\"name\" => 'Topic 1', \"probability\" => 0.17068527918781726),\n array(\"name\" => 'Topic 2', \"probability\" => 0.1865482233502538),\n array(\"name\" => 'Topic 3', \"probability\" => 0.5157043147208121),\n array(\"name\" => 'Topic 4', \"probability\" => 0.12706218274111675))));\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a local distribution from a Topic Model\\n\";\n print \"I create a local topic model\\n\";\n $object = json_decode(json_encode($item[\"model\"]), FALSE);\n $local_topic_model = new TopicModel($object);\n\n print \"I create a distribution for local topic model\\n\";\n $distribution = $local_topic_model->distribution($item[\"text\"]);\n\n print \"And the distribution for local topic model equals the expected values.\\n\";\n $this->assertEquals($distribution, $item[\"expected\"]);\n }\n }", "public function getTests();", "function getTestCaseData($testCaseID, $theSubjectID, $roundID, $studyID, $clientID) {\n global $definitions;\n\n $testCaseParentTestCategoryPropertyID = getClientPropertyID_RelatedWith_byName($definitions['testcasesFolderID'], $clientID);\n\n $theTestCase = array();\n $theTestCase['TC_ID'] = $testCaseID;\n $theTestCase['ROUND_ID'] = $roundID;\n $theTestCase['STUDY_ID'] = $studyID;\n $theTestCase['SUBJECT_ID'] = $theSubjectID;\n\n //Also, get the parent testCategory for the test case\n $theTestCase['PARENT_TC_ID'] = getItemPropertyValue($testCaseID, $testCaseParentTestCategoryPropertyID, $clientID);\n\n //Get the steps for this testCase\n $theSteps = array();\n\n $theSteps = getStepsScriptsForTestCase($testCaseID, $theSubjectID, $roundID, $studyID, $clientID);\n //print(\"Steps scritps details for testCase $testCaseID and subject $theSubjectID\\n\\r\" );\n //print_r($theSteps);\n $stepsCount = 0;\n //Only returns the testcase if any step of the test case is automated and has the type passed (TODO this last)\n $hasAutomatedSteps = \"NO\";\n\n //Add the steps to the result\n for ($i = 0; $i < count($theSteps); $i++) {\n if ($theSteps[$i]['scriptAppValue'] == 'steps.types.php') {\n //print(\"found automated step\\n\\r\");\n $theTestCase['STEP_ID_' . $stepsCount] = $theSteps[$i]['ID'];\n $theTestCase['STEP_TYPE_' . $stepsCount] = $theSteps[$i]['stepType'];\n $theTestCase['STEP_APPTYPE_' . $stepsCount] = $theSteps[$i]['scriptAppValue'];\n $theTestCase['STEP_RESULT_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_Result_ID'];\n //Get the stepUnits values\n\n if (isset($theSteps[$i]['stepUnit_SELENIUMRESULT_ID'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULT_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUMRESULT_ID'];\n }\n if (isset($theSteps[$i]['stepUnit_SELENIUMRESULT_DESCRIPTION_ID'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULT_DESCRIPTION_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUMRESULT_DESCRIPTION_ID'];\n }\n if (isset($theSteps[$i]['stepUnit_SELENIUM_LASTRESULT_ID'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULT_LASTRESULT_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUM_LASTRESULT_ID'];\n\n }\n if (isset($theSteps[$i]['stepUnit_SELENIUMDESCRIPTION_LASTRESULT_ID'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULTDESCRIPTION_LASTRESULT_ID_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUMDESCRIPTION_LASTRESULT_ID'];\n\n }\n if (isset($theSteps[$i]['stepUnit_SELENIUMRESULT_EXECVALUE'])) {\n $theTestCase['STEP_STEPUNITS_SELENIUMRESULTEXECVALUE_' . $stepsCount] = $theSteps[$i]['stepUnit_SELENIUMRESULT_EXECVALUE'];\n\n }\n\n $stepsCount++;\n $hasAutomatedSteps = \"YES\";\n }\n }\n\n if ($hasAutomatedSteps == \"YES\") {\n //And return the test case\n //print (\"Return automated testCase: $testCaseID\\n\\r\");\n return $theTestCase;\n } else {\n //print (\"Not automated testCase $testCaseID. Return null\\n\\r\");\n return null;\n }\n\n}", "public function run()\n {\n $table_count = env('TABLE_COUNT');\n $grant_count = Grant::all()->count();\n $counter = 0;\n $faker = Faker::create();\n\n for ($i = 1; $i <= env('MAJOR_TABLE_COUNT'); $i++) {\n factory(Sample::class)->create([\n 'user_id' => rand(1, $table_count),\n 'analysis_id' => (++$counter < $table_count) ? rand(0, 1) ? $faker->unique()->numberBetween(1, $table_count) : NULL : NULL,\n 'spectrometer_id' => rand(1, $table_count),\n 'solvent_id' => rand(1, $table_count),\n // Not all samples need to be marked as analysed\n // neither belong to grant\n 'grant_id' => rand(0, 1) ? rand(1, $grant_count) : NULL,\n ]);\n }\n }", "public function testAllData()\n {\n Runner::truncate();\n Runner::factory()->count(15)->create();\n\n $headers['Accept'] = 'application/json';\n\n $response = $this->get('/api/v1/runner/1/form-data', $headers);\n\n $response->assertStatus(200)->assertJsonStructure(['success', 'data', 'status']);\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n $data = [];\n foreach (range( 1, 10 ) as $key => $value) {\n $data[] = [ 'name' => 'tag' . $faker->randomNumber(),\n 'hot'=>$faker->randomNumber(),\n 'create_at'=>\\Carbon\\Carbon::now()->toDateTimeString(),\n 'update_at'=>\\Carbon\\Carbon::now()->toDateTimeString()\n ];\n }\n }", "public function unitTestDataProvider()\n {\n\n return [\n 'test1' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL,\n ],\n\n 'test2' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n $fav->add('<abc2>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL\n .'<abc2>'.PHP_EOL,\n ],\n\n 'test3' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n $fav->add('<abc>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL,\n ],\n ];\n }", "public function testCanBeCreatedFromGetData(): void\n {\n $this->assertEquals(\n 'C:\\Documents\\Word\\Work\\Current\\1\\2\\3<br>',\n (new Read)->getData('current')\n );\n $this->assertIsString((new Read)->getData('current'));\n\n $this->assertEquals(\n 'C:\\Documents\\Software Engineer\\Projects\\AnnualReport.xls<br>',\n (new Read)->getData('software engineer')\n );\n $this->assertIsString((new Read)->getData('software engineer'));\n\n $this->assertEquals(\n 'C:\\Documents\\Salary\\Accounting\\Accounting.xls<br>',\n (new Read)->getData('accounting')\n );\n $this->assertIsString((new Read)->getData('accounting'));\n }", "abstract public function generateData(array $data);", "public function run()\n {\n // $faker = \\Faker\\Factory::create();\n // Assessment::create([\n // 'teacher_id' => rand(0, 10),\n // 'pupil_id' => rand(0, 10),\n // 'test_id' => rand(0, 10),\n // 'assessment_no' => rand(0, 120),\n // 'assessment_date' => $faker->date,\n // ]);\n factory(App\\Models\\Assessment::class, 10)->create();\n }", "public function run()\n {\n $count = CountString::$countTests;\n $ar = $this->getAr();\n for ($i = 1, $ii = 1; $i <= $count; $i++, $ii++) {\n if ($ii > 3) {\n $ii = 1;\n }\n\n if ((Test::where('id', '=', $i)->first()) === null) {\n $Test = Test::create([\n 'user_id' => '1',\n 'grade_id' => $ii ,\n 'subject_id' => $ii,\n 'page_id' => $ii,\n 'name' => ($i) . '-й тест',\n 'slug' => str_slug(($i) . '-й тест', '_', 'en'),\n\n\n 'text_input' => $ar['input'][$ii-1],\n 'text_html' => $ar['html'][$ii-1],\n\n 'difficulty' => 0,\n 'difficulty_2' => 0,\n 'difficulty_3' => 0,\n\n\n 'comment' => 'comment - ' . $i,\n 'description' => 'description - ' . $i,\n\n\n 'active' => 1,\n 'published_at' => now()\n\n ]);\n\n $Test->save();\n }\n }\n }", "public function generateSampleCode() {\n\t\t$sampleCode = new SampleCode();\n\t\treturn array($sampleCode);\n\t}", "public function providerTestGeneration() {\n return [\n 1 => [1, \"I\"],\n 2 => [2, \"II\"],\n 3 => [3, \"III\"],\n 4 => [4, \"IV\"],\n 5 => [5, \"V\"],\n 6 => [6, \"VI\"],\n 9 => [9, \"IX\"],\n 27 => [27, \"XXVII\"],\n 48 => [48, \"XLVIII\"],\n 59 => [59, \"LIX\"],\n 93 => [93, \"XCIII\"],\n 141 => [141, \"CXLI\"],\n 163 => [163, \"CLXIII\"],\n 402 => [402, \"CDII\"],\n 575 => [575, \"DLXXV\"],\n 911 => [911, \"CMXI\"],\n 1024 => [1024, \"MXXIV\"],\n 3000 => [3000, \"MMM\"]\n ];\n }", "public function test_scenario6() {\n $data = array(array('filename' => 'data/iris.csv', 'expected_file' => 'data/model/summarize_iris.txt', 'local_file' => 'tmp/summarize_iris.txt'),\n array('filename' => 'data/iris_sp_chars.csv', 'expected_file' => 'data/model/summarize_iris_sp_chars.txt', 'local_file' => 'tmp/summarize_iris_sp_chars.txt'),\n array('filename' => 'data/spam.csv', 'expected_file' => 'data/model/summarize_spam.txt', 'local_file' => 'tmp/summarize_spam.txt'),\n array('filename' => 'data/grades.csv', 'expected_file' => 'data/model/summarize_grades.txt', 'local_file' => 'tmp/summarize_grades.txt'),\n array('filename' => 'data/diabetes.csv', 'expected_file' => 'data/model/summarize_diabetes.txt', 'local_file' => 'tmp/summarize_diabetes.txt'),\n array('filename' => 'data/iris_missing2.csv', 'expected_file' => 'data/model/summarize_iris_missing2.txt', 'local_file' => 'tmp/summarize_iris_missing2.txt'),\n array('filename' => 'data/tiny_kdd.csv', 'expected_file' => 'data/model/summarize_tiny_kdd.txt', 'local_file' => 'tmp/summarize_tiny_kdd.txt')\n );\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a model and check its summary information:\\n\";\n print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the source is ready\\n\";\n $resource = self::$api->_check_resource($source->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create dataset with local source\\n\";\n $dataset = self::$api->create_dataset($source->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n $resource = self::$api->_check_resource($dataset->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n $model = self::$api->create_model($dataset->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wait until the model is ready \". $model->resource . \"\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n $local_model = new Model($model->resource, self::$api);\n print \"And I translate the tree into IF_THEN rules\\n\";\n\t $local_model->summarize(fopen($item[\"local_file\"],'w'));\n print \"Then I check the predictions distribution with \". $item[\"expected_file\"] . \" file\\n\";\n\t $this->assertEquals(0, strcmp(trim(file_get_contents($item[\"local_file\"])), trim(file_get_contents($item[\"expected_file\"]))));\n\n }\n\n }", "public function test_scenario5() {\n\n $data = array(array('filename' => 'data/iris.csv', 'expected_file' => 'data/model/predictions_distribution_iris.txt'),\n array('filename' => 'data/iris_sp_chars.csv', 'expected_file' => 'data/model/predictions_distribution_iris_sp_chars.txt'),\n array('filename' => 'data/spam.csv', 'expected_file' => 'data/model/predictions_distribution_spam.txt'),\n array('filename' => 'data/grades.csv', 'expected_file' => 'data/model/predictions_distribution_grades.txt'),\n array('filename' => 'data/diabetes.csv', 'expected_file' => 'data/model/predictions_distribution_diabetes.txt'),\n array('filename' => 'data/iris_missing2.csv', 'expected_file' => 'data/model/predictions_distribution_iris_missing2.txt'),\n array('filename' => 'data/tiny_kdd.csv', 'expected_file' => 'data/model/predictions_distribution_tiny_kdd.txt')\n );\n\n foreach($data as $item) {\n print \"\\n Successfully creating a model and check its predictions distribution\\n\";\n\n print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the source is ready\\n\";\n $resource = self::$api->_check_resource($source->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create dataset with local source\\n\";\n $dataset = self::$api->create_dataset($source->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n $resource = self::$api->_check_resource($dataset->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n $model = self::$api->create_model($dataset->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wait until the model is ready \". $model->resource . \"\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n $local_model = new Model($model->resource, self::$api);\n print \"Then I check the predictions distribution with \". $item[\"expected_file\"] . \" file\\n\";\n\n $file_distribution = file_get_contents($item[\"expected_file\"]);\n $distribution = $local_model->get_prediction_distribution();\n $distribution_str='';\n\n foreach($distribution as $key => $value) {\n $distribution_str= $distribution_str . \"[\" . $key . \",\" . $value . \"]\\n\";\n }\n\n $this->assertEquals(trim($distribution_str), trim($file_distribution));\n\n }\n }", "public function run()\n {\n $faker= \\Faker\\Factory::create();\n for ($i=0; $i < 20; $i++)\n {\n \tHuongDanVien::create([\n \t\t'tenhdv'=> $faker->name,\n \t\t'phai'=> $faker->word,\n \t\t'diachi'=> $faker->word,\n \t\t'sdt'=> $faker->number_format(0122000000),\n \t\t]);\n }\n }", "public function jsonViewTestData() {}", "protected function createTests()\n {\n $name = $this->getNameInput();\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Store{$name}Test\",\n '--model' => $name,\n '--type' => 'store',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Update{$name}Test\",\n '--model' => $name,\n '--type' => 'update',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/View{$name}Test\",\n '--model' => $name,\n '--type' => 'view',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Delete{$name}Test\",\n '--model' => $name,\n '--type' => 'delete',\n ]);\n }", "function deploytestdata() {\n $this->auth(SUPER_ADM_LEVEL);\n $this->load->model('m_testdata');\n if(!$this->m_step->isTestDataLoaded()){\n // inserts from file\n $docRoot = getenv(\"DOCUMENT_ROOT\");\n $filename = $docRoot . '/db/initial_data.sql';\n $lines = file($filename);\n $row_id = 0;\n $success = TRUE;\n foreach ($lines as $line_num => $line) {\n if(!strstr($line, '--')){\n $row_id = $this->m_testdata->runSqlInsert($line);\n }\n if($row_id < 0){\n echo \"problem with file $filename at row $line_num <br/> $line <br/>\";\n $success = FALSE;\n break;\n }\n }\n //create some more users\n $data = array('Filippa', 'Mimmi', 'Tobbe', 'Carlfelix', 'Simpan', 'Mogge', 'janbanan', 'BigRed', 'bigbird', 'Bjork', 'johanna', 'jwalker','Lapen', 'greengreen', 'M', 'tomtekalendern', 'loffe', 'Klaas', 'Kaniin');\n $this->m_testdata->creteUsers($data);\n // insert random steps\n // simulation of user is required to insert steps\n $users = $this->m_user->getAll(400);\n foreach ($users as $user) {\n $d = new JDate();\n $this->_simulate($user->id);\n for($i = 0; $i < 31; $i++ ){\n $this->m_step->create_x($user->id, 1, $this->_randomSteps(), $d->getDate());\n $d->subDays(1);\n }\n $this->_stopsimulate();\n }\n\n echo $success ? 'Success! hopefully ;)': '';\n } else {\n echo 'Testdata allready run';\n }\n }", "protected function getTestcaseFilenames() {\n\t\t$packageManager = $this->objectManager->getObject('F3\\FLOW3\\Package\\PackageManagerInterface');\n\t\t$packages = array();\n\t\t$testcaseFilenames = array(self::TYPE_UNIT => array(), self::TYPE_INTEGRATION => array(), self::TYPE_SYSTEM => array());\n\n\t\t$testcaseClassNameMatches = array();\n\t\tpreg_match('/F3\\\\\\\\([^\\\\\\\\]*)\\\\\\\\(.*)/', $this->testcaseClassName, $testcaseClassNameMatches);\n\t\tif (count($testcaseClassNameMatches) === 3) {\n\t\t\t$this->testcaseClassName = $testcaseClassNameMatches[2];\n\t\t\tif ($testcaseClassNameMatches[1] === '.*') {\n\t\t\t\t$packages = $packageManager->getActivePackages();\n\t\t\t} elseif ($packageManager->isPackageActive($testcaseClassNameMatches[1])) {\n\t\t\t\t$packages = array($packageManager->getPackage($testcaseClassNameMatches[1]));\n\t\t\t}\n\t\t} elseif ($this->packageKey == '*') {\n\t\t\t$packages = $packageManager->getActivePackages();\n\t\t\t$this->testcaseClassName = '.*Test';\n\t\t} elseif ($packageManager->isPackageActive($this->packageKey)) {\n\t\t\t$packages = array($packageManager->getPackage($this->packageKey));\n\t\t\t$this->testcaseClassName = '.*Test';\n\t\t}\n\n\t\tshuffle($packages);\n\t\tforeach ($packages as $package) {\n\t\t\tif (in_array($package->getPackageKey(), $this->testBlacklist)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tforeach (array(\n\t\t\t\t\tself::TYPE_UNIT => \\F3\\FLOW3\\Package\\Package::DIRECTORY_TESTS_UNIT,\n\t\t\t\t\tself::TYPE_INTEGRATION => \\F3\\FLOW3\\Package\\Package::DIRECTORY_TESTS_INTEGRATION,\n\t\t\t\t\tself::TYPE_SYSTEM => \\F3\\FLOW3\\Package\\Package::DIRECTORY_TESTS_SYSTEM,\n\t\t\t\t) as $type => $directory) {\n\t\t\t\t$testPath = $package->getPackagePath() . $directory;\n\t\t\t\tif (is_dir($testPath)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$testsDirectoryIterator = new \\RecursiveDirectoryIterator($testPath);\n\n\t\t\t\t\t\t$testcaseFilenames[$type] = $this->readDirectories($testcaseFilenames[$type], $testsDirectoryIterator);\n\t\t\t\t\t\t\\PHPUnit_Util_Filter::removeDirectoryFromFilter($package->getPackagePath() . 'Classes');\n\t\t\t\t\t} catch(\\Exception $exception) {\n\t\t\t\t\t\tthrow new \\RuntimeException($exception->getMessage(), 1170236926);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tshuffle($testcaseFilenames[$type]);\n\t\t\t}\n\t\t}\n\t\treturn $testcaseFilenames;\n\t}", "public function run()\n {\n $labOrder = factory(LabOrder::class)->create();\n $SKUs = SKU::where('item_type', 'lab-test')->get()->shuffle();\n\n for ($i=0; $i < 5; $i++) {\n $labTest = factory(LabTest::class)->create([\n 'lab_order_id' => $labOrder->id,\n 'sku_id' => $SKUs->pop()->id,\n ]);\n if (maybe()) {\n factory(LabTestResult::class)->create([\n 'lab_test_id' => $labTest->id,\n ]);\n }\n }\n }", "public function generateDataForTest()\r\n {\r\n return array(\r\n array(\r\n \"\r\n\t\t\t\t\tUser-Agent: *\r\n\t\t\t\t\",\r\n null,\r\n ),\r\n array(\r\n \"\r\n\t\t\t\t\tUser-Agent: *\r\n\t\t\t\t\tHost: www.example.com\r\n\t\t\t\t\",\r\n 'www.example.com',\r\n ),\r\n array(\r\n \"\r\n\t\t\t\t\tHost: example.com\r\n\t\t\t\t\",\r\n 'example.com',\r\n ),\r\n array(\r\n \"\r\n\t\t\t\tHost: example.com\r\n\t\t\t\tUser-Agent: google\r\n\t\t\t\tHost: www.example.com\r\n\t\t\t\t\",\r\n 'example.com',\r\n 'expected first host value'\r\n ),\r\n array(\r\n \"\r\n\t\t\t\tUser-Agent: google\r\n\t\t\t\tHost: example.com\r\n\t\t\t\tHost: www.example.com\r\n\t\t\t\t\",\r\n 'example.com',\r\n 'expected assign host to * because host is cross-section directive'\r\n ),\r\n );\r\n }", "function morestepdata() {\n $this->auth(SUPER_ADM_LEVEL);\n $this->load->model('m_testdata');\n $users = $this->m_user->getAll(400);\n // insert random steps\n // simulation of user is required to insert steps\n foreach ($users as $user) {\n $d = new JDate();\n $this->_simulate($user->id);\n for ($i = 0; $i < 3; $i++) {\n $this->m_step->create_x($user->id, 1, $this->_randomSteps(), $d->getDate());\n $d->subDays(1);\n }\n $this->_stopsimulate();\n }\n echo 'Success! hopefully ;)' ;\n }", "public function provideTestData(): array\n {\n return [\n 'Role may handle the command' => [new FakeCommand(), 'ROLE_ADMIN'],\n 'Test role hierarchy' => [new FakeCommand(), 'ROLE_SUPER_ADMIN'],\n 'Role may not handle the command' => [new FakeCommand(), 'ROLE_USER', AccessDeniedException::class],\n 'Deny access if command is not in the mapping' => [new stdClass(), 'ROLE_SUPER_ADMIN', AccessDeniedException::class],\n ];\n }", "private function getTestData()\n {\n return [\n 'url' => 'http://www.mystore.com',\n 'access-token' => 'thisisaccesstoken',\n 'integration-token' => 'thisisintegrationtoken',\n 'method' => \\Magento\\Framework\\HTTP\\ZendClient::POST,\n 'body'=> ['token' => 'thisisintegrationtoken','url' => 'http://www.mystore.com'],\n ];\n }", "public function run()\n {\n \n // Creating Rough Reports\n factory(App\\Report::class,4)->create();\n // Adding Paramters to Reports\n\t\t$faker = Faker\\Factory::create();\n\t\tfor ( $i = 1; $i < 4; $i++) // generate same no. of records as the no. in Report above\n { \n\t\t\t$report = App\\Report::whereId($i)->first();\t\t\t\n\t\t\tfor ( $j=1; $j < 6 ; $j++) { \n\t\t\t\t$score = $faker->numberBetween($min = 1, $max = 100);\n\t\t\t \t$parameter = App\\Parameter::whereId($j)->first();\n\t\t\t \t$report->parameters()->save($parameter, ['score' => $score, 'remark' => $faker->sentence($nbWords = 4)]);\n\t\t\t} \n\t\t} \t\t\n }", "public function test_scenario3() {\n\n $data = array(array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_1.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_1.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => true, \"stem_words\" => true, \"use_stopwords\" => false, \"language\" => \"en\"))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_2.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_2.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => true, \"stem_words\" => true, \"use_stopwords\" => false))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_3.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_3.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => false, \"stem_words\" => false, \"use_stopwords\" => false, \"language\" => \"en\"))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_4.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_4.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => false, \"stem_words\" => true, \"use_stopwords\" => true, \"language\" => \"en\"))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_5.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_5.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"token_mode\" => \"full_terms_only\", \"language\" => \"en\" )))))\n );\n\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a model and translate the tree model into a set of IF-THEN rules\\n\";\n\n print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the source is ready\\n\";\n $resource = self::$api->_check_resource($source->resource, null, 10000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I update the source with options \" . json_encode($item[\"options\"]) . \"\\n\";\n\t $source = self::$api->update_source($source->resource, $item[\"options\"]);\n\t $this->assertEquals(BigMLRequest::HTTP_ACCEPTED, $source->code);\n\n print \"And I create dataset with local source\\n\";\n $dataset = self::$api->create_dataset($source->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n $resource = self::$api->_check_resource($dataset->resource, null, 10000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n $model = self::$api->create_model($dataset->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wait until the model is ready \". $model->resource . \"\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 10000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n $local_model = new Model($model->resource, self::$api);\n print \"And I translate the tree into IF_THEN rules\\n\";\n\n $fp = fopen($item[\"local_file\"], 'w');\n $local_model->rules($fp);\n fclose($fp);\n print \" Then I check the output is like \" . $item[\"expected_file\"] . \" expected file\\n\";\n $this->assertEquals(0, strcmp(trim(file_get_contents($item[\"local_file\"])), trim(file_get_contents($item[\"expected_file\"]))));\n\n }\n }", "private function testCollect() {\n $custom_data = array();\n\n // Collect all custom data provided by hook_insight_custom_data().\n $collections = \\Drupal::moduleHandler()->invokeAll('acquia_connector_spi_test');\n\n foreach ($collections as $test_name => $test_params) {\n $status = new TestStatusController();\n $result = $status->testValidate(array($test_name => $test_params));\n\n if ($result['result']) {\n $custom_data[$test_name] = $test_params;\n }\n }\n\n return $custom_data;\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n $start_date = array(\"2020-09-28\", \"2020-09-29\", \"2020-09-30\", \"2020-10-01\", \"2020-10-02\");\n $end_date = array(\"2020-10-10\", \"2020-10-12\", \"2020-10-11\", \"2020-10-15\", \"2020-10-18\");\n $customer = array(329, 344, 346, 349, 351, 352, 353, 354, 355, 356, 360, 361, 362, 363);\n\n for ($i = 1; $i <= 1000; $i++) {\n $planogram = new Planogram;\n $planogram->organisation_id = 61;\n $planogram->customer_id = $customer[array_rand($customer)];\n $planogram->name = $faker->name;\n $planogram->start_date = $start_date[array_rand($start_date)];\n $planogram->end_date = $end_date[array_rand($end_date)];\n $planogram->status = 1;\n $planogram->save();\n }\n }", "public function run()\n {\n // Student::truncate(); // to regenerate whole table data\n $faker = \\Faker\\Factory::create();\n\n // take all the programme id and put into array\n $list = Programme::all()->pluck('programme_id');\n\n // create 100 students from different programme\n for ($i=0;$i<100;$i++){\n Student::create([\n 'programme_id'=>$faker->randomElement($list),\n 'student_id'=> $faker->regexify('20WMD[1-9]{5}'), // condition 20WMD, follow by 5 random numbers\n 'name'=>$faker->name,\n 'age'=>$faker->numberBetween(19,30),\n 'gender'=>$faker->randomElement(['M','F']),\n 'class'=>$faker->numberBetween(1,17),\n 'CGPA'=>$faker->randomFloat(2,2.0,4.0),\n 'address'=>$faker->address,\n 'email'=>$faker->email\n ]);\n }\n }", "public function run()\n {\n \t$faker = Faker\\Factory::create();; \n foreach (range(1, 55) as $key => $value) {\n \tApp\\Student::create([\n \t\t 'name' => $faker->name,\n 'father_name' => $faker->name('male'),\n 'mother_name' => $faker->name('female'),\n 'phone_number' => $faker->phoneNumber,\n 'home_number' => $faker->phoneNumber,\n 'email' => $faker->unique()->safeEmail,\n 'gender' => 'male',\n 'roll_number' => $faker->randomNumber(),\n 'reg_number' => $faker->randomNumber(),\n 'department_id' => $faker->randomNumber(1),\n 'shift' => 'second',\n 'semester' => 'eight',\n 'present_address' => $faker->address,\n 'permanent_address' => $faker->address,\n \t]);\n }\n }", "public function run()\n {\n // *****Data Using Manually*********\n // $student = [\n // [\n // 'name'=>'Jogi',\n // 'lastname'=>'Singh',\n // ],\n // [\n // 'name'=>'Jonty',\n // 'lastname'=>'Singh',\n // ],\n // [\n // 'name'=>'Harsh',\n // 'lastname'=>'Srivastav',\n // ],\n \n // ];\n\n // foreach ($student as $key => $value) {\n // Student::create($value);\n // }\n // *******End Data Manually*************\n // *****************Data Dump Using Faker*******************\n $faker = Faker::create();\n foreach (range(1,100) as $key => $value) {\n Student::create(\n [\n 'name'=>$faker->name,\n 'lastname'=>$faker->lastname\n ]\n );\n }\n\n }", "function randomTest(){\n $treatment = $this->getTreatment();\n $username = $this->generateUsername();\n $hashed = $this->generateMD5Pass();\n $extra = array('username' =>$username,\n\t\t 'treatment' => $treatment,\n\t\t 'hash' => $hashed);\n $output = $this->outputBoilerplate('test.html', $extra);\n return $output; \n }", "public function testDynamicFixture()\n {\n $fixture = new Mad_Test_Fixture_Base($this->_conn, 'unit_tests');\n $fixture->load();\n $record = $fixture->getRecord('unit_test_2');\n \n $this->assertEquals(date(\"Y-m-d\"), $record['date_value']);\n }", "public function getTestResults()\n\t{\n\t\t/*\n\t\t * Wenn die Tests noch nicht ausgeführt wurden, dies nun tun\n\t\t */\n\t\tif ($this->_needRun === true)\n\t\t{\n\t\t\t$this->run();\n\t\t}\n\t\tforeach ($this->_testCases as $key => $testCase)\n\t\t{\n\t\t\t/*\n\t\t\t * Zusicherung nicht erfüllt\n\t\t\t*/\n\t\t\tif ($testCase['assert'] !== $testCase['result'])\n\t\t\t{\n\t\t\t\t$this->_testResults[$key] = $this->_testCases[$key]['functionName'].\": fehlgeschlagen \".\n\t\t\t\t\t$this->boolToString($testCase['assert']).\" != \".$this->boolToString($testCase['result']).\"<br>\";\n\t\t\t\t$this->_failedTests++;\n\t\t\t}\n\t\t\t/*\n\t\t\t * Zusicherung erfüllt\n\t\t\t*/\n\t\t\telse \n\t\t\t{\n\t\t\t\t$this->_testResults[$key] = $this->_testCases[$key]['functionName'].\": erfolgreich \".\n\t\t\t\t\t$this->boolToString($testCase['assert']).\" == \".$this->boolToString($testCase['result']).\"<br>\";\n\t\t\t\t$this->_passedTests++;\n\t\t\t}\n\t\t} \n\t\treturn $this->_testResults;\t\n\t}", "public function testMain()\n {\n echo \"\\n >----------- Test Main : ---------> \\n\";\n// $this->getRandomNumber();\n// $this->getLoggedUserMail();\n// $this->saveVerificationCode();\n// $this->verification();\n// $this->checkEmailVerification();\n// $this->checkSendCode();\n }", "public function createData()\n {\n // TODO: Implement createData() method.\n }", "public function run()\n {\n $faker = Factory::create();\n Template::factory()->count(500)->has(\n TemplateChecklist::factory()->count(1),\n 'checklist'\n )->has(\n TemplateItem::factory()->count($faker->numberBetween(1, 100)),\n 'items'\n )->create();\n }", "public function testCreateTestCaseWithDetails()\n {\n $user = factory(App\\User::class)->create();\n\n $this->actingAs($user)\n ->visit('/library')\n ->click('#newCase')\n ->seePageIs('/library/testcase/create')\n ->type('TestCase2', 'name1')\n ->select('1', 'testSuite1')\n ->type('someDecription','description1')\n ->type('somePrefixes','prefixes1')\n ->type('someSteps','steps1')\n ->type('someResult','expectedResult1')\n ->type('someSuffixes','suffixes1')\n ->press('submit');\n\n $this->seeInDatabase('TestCaseHistory', [\n 'TestCaseDescription' => 'someDecription',\n 'TestCasePrefixes' => 'somePrefixes',\n 'TestSteps' => 'someSteps',\n 'ExpectedResult' => 'someResult',\n 'TestCaseSuffixes' => 'someSuffixes'\n ]);\n }", "public function testConstructor()\n {\n echo \"\\n//////////////////////////////////\";\n echo \"\\n/// Test Constructor Method\";\n foreach ($this->dataSet as $key => $data) {\n echo \"\\n\".$key.' : '.$data['test'];\n try {\n new PaymentGateway(\n $data['apiBaseUrl'],\n $data['apiKey'],\n $data['mobile']\n );\n } catch (\\Exception $e) {\n $this->assertEquals($data['isAssertion'], false, 'Error:dataSet number ' . $key . ' is not passed'.\n \"\\nTest:\".$data['test']);\n }\n }\n $this->assertTrue(true);\n }", "public function testGetUserrecordingsSummary()\n {\n }", "public function seed()\n\t{\n\t\t$this->createDataType();\n\t\t$this->createDataRowForColumns();\n\t}", "public function print_test()\n {\n $clientname = $this->configsys->get_config_value('clientname');\n $clientaddress = $this->configsys->get_config_value('clientaddress');\n $clientcity = $this->configsys->get_config_value('clientcity');\n $clientstate = $this->configsys->get_config_value('clientstate');\n $clientzip = $this->configsys->get_config_value('clientzip');\n $clientphone = $this->configsys->get_config_value('clientphone');\n $clientwebsite = $this->configsys->get_config_value('clientwebsite');\n\n $client_data = array(\n 'clientname' => $clientname,\n 'clientaddress' => $clientaddress,\n 'clientcity' => $clientcity,\n 'clientstate' => $clientstate,\n 'clientzip' => $clientzip,\n 'clientphone' => $clientphone,\n 'clientwebsite' => $clientwebsite\n );\n\n $data['client_data'] = $client_data;\n\n $view_vars = array(\n 'title' => $this->config->item('Company_Title'),\n 'heading' => $this->config->item('Company_Title'),\n 'description' => $this->config->item('Company_Description'),\n 'company' => $this->config->item('Company_Name'),\n 'logo' => $this->config->item('Company_Logo'),\n 'author' => $this->config->item('Company_Author')\n );\n $data['page_data'] = $view_vars;\n\n $post_payment_data = array(\n 'OrderNumber' => '77777',\n 'IsApproved' => 1,\n 'ReturnCode' => 'ReturnCode',\n 'ResponseHTML' => 'This is the response HTML',\n 'UpdateDate' => date('Y-n-j H:i:s')\n );\n $result_data = $post_payment_data;\n $data['result_data'] = $result_data;\n\n\n $submitted_data['transaction_id'] = '12345676';\n $submitted_data['creditcard'] = '1111';\n $submitted_data['expirationmonth'] = '08';\n $submitted_data['expirationyear'] = 2012;\n $submitted_data['cvv2'] = '123';\n $submitted_data['PaymentSource'] = 'VT';\n $submitted_data['amount'] = '125.34';\n $submitted_data['cclast4'] = '4444';\n $submitted_data['name'] = 'John Doe';\n\n $data['submitted_data'] = $submitted_data;\n\n $this->load->view('virtualterminalformresult', $data);\n\n }", "protected abstract function createTestTable();", "protected function createTests() :void\n {\n $directory = app_path('tests');\n\n Storage::makeDirectory($directory, true);\n PhpUnit::create('phpunit', app_path());\n }", "public function run()\n {\n $faker = Faker::create();\n foreach(range(1,10) as $index) {\n \tEmployee::create([\n \t\t'name'=>$faker->name(),\n \t\t'code'=>$faker->unique()->randomDigit,\n \t\t'designation'=>$faker->randomElement($array=array('Developer','Desginer','Tester','Businees Analyist','Admin','HR','Recuirtment','House Keeping')),\n \t\t'department'=>$faker->jobTitle,\n \t\t'status'=>$faker->randomElement($status = [0,1]), \t\t\n \t\t'location'=>$faker->country\n \t\t]);\n }\n }", "public function run()\n {\n $faker = Faker::create();\n //echo $faker->word();die();\n //var_dump($faker);die();\n\n for($i=0; $i<100; $i++) \n {\n Maker::create\n ([\n 'name' => $faker->unique()->company(),\n 'phone' => $faker->phoneNumber()\n ]);\n }\n }", "public function setUp()\n {\n $this->data = array(\n 'folder_name_1' => array(\n 'src' => 'source_1',\n 'dst' => 'destination_1',\n ),\n 'folder_name_2' => array(\n 'src' => 'source_2',\n 'dst' => 'destination_2',\n 'client' => 'test'\n )\n );\n }", "public function getTestAddAndGetData()\n {\n return [\n ['namespace_1', 'key_11'],\n ['namespace_2', 'key_21'],\n ];\n }", "public function test_process_data() {\n global $DB, $CFG;\n\n $this->resetAfterTest(true);\n\n $course = $this->getDataGenerator()->create_course();\n\n // Create and enrol a student.\n $student = $this->getDataGenerator()->create_user(array('username' => 'Student Sam'));\n $role = $DB->get_record('role', array('shortname' => 'student'), '*', MUST_EXIST);\n $this->getDataGenerator()->enrol_user($student->id, $course->id, $role->id);\n\n // Test with limited grades.\n $CFG->unlimitedgrades = 0;\n\n $forummax = 80;\n $forum1 = $this->getDataGenerator()->create_module('forum', array('assessed' => 1, 'scale' => $forummax, 'course' => $course->id));\n // Switch the stdClass instance for a grade item instance.\n $forum1 = grade_item::fetch(array('itemtype' => 'mod', 'itemmodule' => 'forum', 'iteminstance' => $forum1->id, 'courseid' => $course->id));\n\n $report = $this->create_report($course);\n $testgrade = 60.00;\n\n $data = new stdClass();\n $data->id = $course->id;\n $data->report = 'grader';\n $data->timepageload = time();\n\n $data->grade = array();\n $data->grade[$student->id] = array();\n $data->grade[$student->id][$forum1->id] = $testgrade;\n\n $warnings = $report->process_data($data);\n $this->assertEquals(count($warnings), 0);\n\n $studentgrade = grade_grade::fetch(array('itemid' => $forum1->id, '' => $student->id));\n $this->assertEquals($studentgrade->finalgrade, $testgrade);\n\n // Grade above max. Should be pulled down to max.\n $toobig = 200.00;\n $data->grade[$student->id][$forum1->id] = $toobig;\n $data->timepageload = time();\n $warnings = $report->process_data($data);\n $this->assertEquals(count($warnings), 1);\n\n $studentgrade = grade_grade::fetch(array('itemid' => $forum1->id, '' => $student->id));\n $this->assertEquals($studentgrade->finalgrade, $forummax);\n\n // Grade below min. Should be pulled up to min.\n $toosmall = -10.00;\n $data->grade[$student->id][$forum1->id] = $toosmall;\n $data->timepageload = time();\n $warnings = $report->process_data($data);\n $this->assertEquals(count($warnings), 1);\n\n $studentgrade = grade_grade::fetch(array('itemid' => $forum1->id, '' => $student->id));\n $this->assertEquals($studentgrade->finalgrade, 0);\n\n // Test unlimited grades so we can give a student a grade about max.\n $CFG->unlimitedgrades = 1;\n\n $data->grade[$student->id][$forum1->id] = $toobig;\n $data->timepageload = time();\n $warnings = $report->process_data($data);\n $this->assertEquals(count($warnings), 0);\n\n $studentgrade = grade_grade::fetch(array('itemid' => $forum1->id, '' => $student->id));\n $this->assertEquals($studentgrade->finalgrade, $toobig);\n }", "protected function setUp()\r\n {\r\n $this->object = new Json;\r\n mkdir('data/tests');\r\n file_put_contents('data/tests/test.json', json_encode(\\MockObject\\FileDataStub::getData()));\r\n }", "public function test() {\n $results = [];\n $results[\"testAddUser\"] = $this->testAddUser();\n\n return $results;\n }", "public function run()\n {\n $faker = Faker::create();\n $preUach = PreUach::all();\n $samples_temp = [];\n\n foreach ($preUach as $item)\n {\n\n\n $samples_temp[] = [\n 'postulante' => $item->postulante,\n 'persona_matricula'=> $faker->lastName.' '. $faker->firstName,\n 'fecha_matricula'=>$faker->dateTimeBetween($startDate = '-5 months', $endDate = 'now')\n ]; \t\n }\n\n Declaracion::insert($samples_temp);\n \n }", "public function buildDataProvider()\n {\n $name = 'company * product';\n $phone = '333-22-22-333';\n $url = 'https://test.url.mage.com';\n return [\n [\n 'descriptors' => [\n 'name' => $name,\n 'phone' => $phone,\n 'url' => $url,\n ],\n 'expected' => [\n 'descriptor' => [\n 'name' => $name,\n 'phone' => $phone,\n 'url' => $url,\n ],\n ],\n ],\n [\n 'descriptors' => [\n 'name' => $name,\n 'phone' => $phone,\n ],\n 'expected' => [\n 'descriptor' => [\n 'name' => $name,\n 'phone' => $phone,\n ],\n ],\n ],\n [\n 'descriptors' => [\n 'name' => $name,\n ],\n 'expected' => [\n 'descriptor' => [\n 'name' => $name,\n ],\n ],\n ],\n [\n 'descriptors' => [],\n 'expected' => [],\n ],\n ];\n }", "public function run()\n {\n factory(App\\Subject::class,'assessment',3)->create();\n factory(App\\Group::class,'assessment',3)->create();\n factory(App\\Student::class,'assessment',14)->create();\n factory(App\\Assessment::class,'assessment',40)->create();\n }", "public function run()\n {\n// Test data\n for($i=1;$i<100; $i++)\n {\n $dates = [\n \"2021-04-28 22:32:57\",\n \"2021-02-10 22:32:57\",\n \"2021-01-28 22:32:57\",\n \"2021-01-12 22:32:57\",\n \"2020-12-28 22:32:57\",\n \"2020-11-28 22:32:57\"\n ];\n\n $device = Device::create([\n \"uid\"=>$i,\n \"app_id\"=>$i,\n \"language\"=> \"TR\",\n \"operating_system\"=> \"iOS\",\n \"client_token\"=> generateClientToken(),\n ]);\n\n Application::create([\n \"device_id\"=>$device->id,\n 'username' => \"test\".$i,\n 'password' => encrypt(\"\"),\n 'callback_url' => getBaseUrl(). \"api/test-callback\"\n ]);\n\n Subscription::create([\n \"device_id\"=>$device->id,\n 'expire_date' => $dates[rand(0, 5)],\n 'status' => SUBSCRIPTON_STATUS_STARTED\n ]);\n }\n // \\App\\Models\\User::factory(10)->create();\n }", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "public function run()\n {\n for ($i = 10; $i < rand(1910, 2010); $i++) {\n $pairValue = ['key' => \"key$i\", 'value' => \"value$i\", 'ttl' => '5 mins', 'delete_time' => Carbon::now()->addSeconds(rand(-300, 300))->toDateTimeString()];\n App\\DataModel::create($pairValue);\n }\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n $kelamin = \"laki-laki\";\n foreach (range(1, 100) as $i) {\n \tKajian::create([\n \t\t'waktu'\t\t\t\t=> $faker->dateTimeThisCentury($max = 'now', $timezone = date_default_timezone_get()), \n\n \t\t'tema'\t\t\t\t=> $faker->sentence($nbWords = 6, $variableNbWords = true), \n \t\t'pemateri'\t\t\t=> $faker->name($gender = null|'male'|'female'), \n \t\t'alamat'\t\t\t=> $faker->streetAddress, \n \t\t'deskripsi'\t\t\t=> $faker->paragraph($nbSentences = 3, $variableNbSentences = true), \n \t\t'jenis_peserta'\t\t=> $kelamin, \n \t\t'latitude'\t\t\t=> $faker->latitude, \n \t\t'longitude'\t\t\t=> $faker->longitude,\n 'isRutin' => $faker->boolean\n \t]);\n }\n }", "function setUp() {\n\t\t$this->dataLong = file_get_contents(__DIR__ . '/../lib/crypt.php');\n\t\t$this->dataShort = 'hats';\n\t\t$this->dataUrl = __DIR__ . '/../lib/crypt.php';\n\t\t$this->legacyData = __DIR__ . '/legacy-text.txt';\n\t\t$this->legacyEncryptedData = __DIR__ . '/legacy-encrypted-text.txt';\n\t\t$this->randomKey = Encryption\\Crypt::generateKey();\n\n\t\t$keypair = Encryption\\Crypt::createKeypair();\n\t\t$this->genPublicKey = $keypair['publicKey'];\n\t\t$this->genPrivateKey = $keypair['privateKey'];\n\n\t\t$this->view = new \\OC_FilesystemView('/');\n\n\t\t\\OC_User::setUserId(\\Test_Encryption_Keymanager::TEST_USER);\n\t\t$this->userId = \\Test_Encryption_Keymanager::TEST_USER;\n\t\t$this->pass = \\Test_Encryption_Keymanager::TEST_USER;\n\n\t\t$userHome = \\OC_User::getHome($this->userId);\n\t\t$this->dataDir = str_replace('/' . $this->userId, '', $userHome);\n\n\t\t// remember files_trashbin state\n\t\t$this->stateFilesTrashbin = OC_App::isEnabled('files_trashbin');\n\n\t\t// we don't want to tests with app files_trashbin enabled\n\t\t\\OC_App::disable('files_trashbin');\n\t}", "function getTestDataFromFile($file) {\n return require $file;\n}", "public function testCreateWithAllFields(): void\n {\n $this->doTestCreate('createWithAllFields.json');\n }", "function test_all () {\n\n\t\t$this->layout = 'test';\n\n\t\t$tests_folder = new Folder('../tests');\n\n\t\t$results = array();\n\t\t$total_errors = 0;\n\t\tforeach ($tests_folder->findRecursive('.*\\.php') as $test) {\n\t\t\tif (preg_match('/^(.+)\\.php/i', basename($test), $r)) {\n\t\t\t\trequire_once($test);\n\t\t\t\t$test_name = Inflector::Camelize($r[1]);\n\t\t\t\tif (preg_match('/^(.+)Test$/i', $test_name, $r)) {\n\t\t\t\t\t$module_name = $r[1];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$module_name = $test_name;\n\t\t\t\t}\n\t\t\t\t$suite = new TestSuite($test_name);\n\t\t\t\t$result = TestRunner::run($suite);\n\n\t\t\t\t$total_errors += $result['errors'];\n\n\t\t\t\t$results[] = array(\n\t\t\t\t\t'name'=>$module_name,\n\t\t\t\t\t'result'=>$result,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t$this->set('success', !$total_errors);\n\t\t$this->set('results', $results);\n\t}", "public function run()\n {\n $faker = Faker::create();\n $patients = Patient::all();\n foreach ($patients as $patient) {\n for ($i=0;$i<5;$i++){\n $data = [\n 'patient_id' => $patient->id,\n 'name' => $faker->realText(10),\n 'description' => $faker->realText(500),\n 'image' => $faker->imageUrl(300,400)\n ];\n Report::create($data);\n }\n }\n }", "private function generateTestClass()\n {\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $dir = $this->bundle->getPath() .'/Tests/Controller';\n $target = $dir .'/'. str_replace('\\\\', '/', $entityNamespace).'/'. $entityClass .'ControllerTest.php';\n\n $this->renderFile($this->skeletonDir, 'tests/test.php', $target, array(\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'actions' => $this->actions,\n 'dir' => $this->skeletonDir,\n ));\n }", "public function getTestData() {\n $big_data = [];\n for ($i = 1; $i <= 10000; $i++) {\n $big_data[] = [\n 'id' => $i,\n 'name' => UUID::v4()\n ];\n }\n return [\n [\n $big_data,\n \"10000 results\",\n \"Showing results 1 to 5\",\n \"offset=2000\",\n true\n ],\n [\n [\n\n [\n 'id' => 1,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 2,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 3,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 4,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 5,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 6,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 7,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 8,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 9,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 10,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 11,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 12,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 13,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 14,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 15,\n 'name' => 'johnny bravo'\n ]\n ],\n \"15 results\",\n \"Showing results 1 to 5\",\n \"offset=3\",\n false\n ],\n [\n [\n [\n 'id' => 1,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 2,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 3,\n 'name' => 'johnny bravo'\n ]\n ],\n \"3 results\",\n \"results\",\n \"results\",\n true\n ]\n ];\n }" ]
[ "0.74458015", "0.7135655", "0.6897274", "0.6881263", "0.68571585", "0.6828665", "0.66274965", "0.6596069", "0.65485215", "0.6547817", "0.65441424", "0.65346164", "0.6529172", "0.6521252", "0.645993", "0.64151686", "0.6414389", "0.6404725", "0.63242847", "0.63128835", "0.62972754", "0.62391365", "0.6226959", "0.62237406", "0.6220799", "0.62095755", "0.6202102", "0.6190546", "0.61846167", "0.6149261", "0.6144428", "0.61281", "0.6116856", "0.6094028", "0.60881966", "0.60827935", "0.6070333", "0.6061792", "0.6035937", "0.6029223", "0.60207075", "0.59926105", "0.5979941", "0.5975625", "0.5971494", "0.59617686", "0.5960796", "0.5951123", "0.5942309", "0.59197915", "0.5919161", "0.5913972", "0.5897225", "0.589653", "0.5887523", "0.5880784", "0.58680797", "0.5860628", "0.58585656", "0.58495593", "0.5834696", "0.5814025", "0.58068275", "0.5798023", "0.5787932", "0.5785563", "0.5780045", "0.5770174", "0.57674956", "0.5741523", "0.57381237", "0.5737945", "0.57364917", "0.5727685", "0.571912", "0.57162935", "0.5716286", "0.57146215", "0.5712605", "0.5708059", "0.56992775", "0.56902146", "0.56898934", "0.56886053", "0.56816614", "0.56814986", "0.5678378", "0.5678378", "0.5678378", "0.5678378", "0.5678378", "0.5678378", "0.5670926", "0.5669144", "0.5668953", "0.5664116", "0.5661409", "0.566023", "0.56556904", "0.5655137", "0.56503046" ]
0.0
-1
Constructor method for InsolvencyReport
public function __construct($report_id = null, $title = null, $date = null, $is_final = null) { $this ->setReport_id($report_id) ->setTitle($title) ->setDate($date) ->setIs_final($is_final); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($report)\n {\n $this->report=$report;\n }", "public function _construct()\n {\n $this->_init('visitorreport/visitorreport', 'id_visitorreport');\n }", "public function __construct(Report $report)\n {\n $this->report = $report;\n }", "public function __construct(Report $report)\n {\n $this->report = $report;\n }", "public function __construct() {\n parent::__construct(new ReportProblemInfo());\n }", "public function __construct()\n\t{\n\t\t$this->incomeData = FieldMap::getFieldLabel(\"income_data\",\"\",1);\n\t\t$this->removeIncomeFlag = 0;\n\t}", "public function __construct(StatusReport $report)\n {\n parent::__construct();\n\n $this->report = $report;\n }", "function Reports() {\n //$objCore = new Core();\n //default constructor for this class\n }", "public function __construct(DevReport $report)\n {\n $this->report = $report;\n }", "public function __construct($reportId)\n {\n $this->reportId = $reportId;\n }", "public function __construct(int $assessmentReportId)\n {\n $this->assessmentReportId = $assessmentReportId;\n }", "public function __construct()\n {\n parent::__construct();\n $this->setCompatibleDataType(Common::MULTIPLE_GROUPED_REPORT_TYPE);\n }", "function __construct() \n\t{\n\t\t//Modificar aka segun la forma del papel del reporte \n\t\tparent::__construct('P','mm','A4'); \n\t\t//parent::__construct('P','mm','Letter'); \n\t}", "public function __construct(ReportContract $report)\n {\n $this->middleware('auth');\n $this->report = $report;\n }", "public function __construct()\n {\n parent::_construct();\n $this->setModel('adminhtml/report_item');\n $this->_resource = Mage::getResourceModel('sales/report')->init($this->_aggregationTable);\n $this->setConnection($this->getResource()->getReadConnection());\n }", "public function __construct()\n {\n if (23 == func_num_args()) {\n $this->id = func_get_arg(0);\n $this->fiscalYearId = func_get_arg(1);\n $this->insuranceCoverageId = func_get_arg(2);\n $this->coverageRial = func_get_arg(3);\n $this->coverageEuro = func_get_arg(4);\n $this->fromPrice = func_get_arg(5);\n $this->toPrice = func_get_arg(6);\n $this->isDiscount = func_get_arg(7);\n $this->coverageValueType = func_get_arg(8);\n $this->coverageStringValue = func_get_arg(9);\n $this->insuranceTypeIds = func_get_arg(10);\n $this->insuranceCompanyIds = func_get_arg(11);\n $this->selected = func_get_arg(12);\n $this->isVisible = func_get_arg(13);\n $this->insuranceTypeId = func_get_arg(14);\n $this->insurancePlansIds = func_get_arg(15);\n $this->isActive = func_get_arg(16);\n $this->insuranceTypeTitles = func_get_arg(17);\n $this->insuranceCompanyTitles = func_get_arg(18);\n $this->insurancePlanTitles = func_get_arg(19);\n $this->insuranceTypeTitle = func_get_arg(20);\n $this->createdBy = func_get_arg(21);\n $this->isPlan = func_get_arg(22);\n }\n }", "public function __construct($report)\n {\n // $this->onQueue('audits');\n $this->report = $report;\n // $this->report = $report;\n }", "public function __construct()\n {\n $this->invoice = $invoice;\n }", "public function __construct( $subject, $args )\n {\n parent::__construct( $subject, 'report', $args );\n }", "public function __construct(Report $report, array $data = [], AgentContract $agent = null)\n {\n $this->report = $report;\n $this->data = $data;\n $this->agent = $agent;\n }", "function __construct() {\r\n\t\t$this->production_total = \"0\";\r\n\t\t$this->id_state = 1;\r\n\t}", "public function __construct() {\n\t\ttry {\n\t\t\t// Construct an array with predefined date(s) which we will use to run a report\n\n\t\t\t$lastDay = intval(date(\"t\", strtotime(\"-1 month\")));\n\t\t\t$previousMonth = intval(date(\"m\", strtotime(\"-1 month\")));\n\t\t\t// Set variables\n\t\t\t$all = (array)array();\n\t\t\t$this->setFileName(self::DOC_FILE_NAME .date(\"-Y-m\", strtotime(\"-1 month\")));\n\t\t\t$this->setExcelFile(\"/export/\" . $this->getFileName());\n\t\t\tfor($i = 1; $i <= $lastDay; $i++) {\n\t\t\t\tif ($i == $lastDay) {\n\t\t\t\t\t$d = 1; $m = $previousMonth + 1;\n\t\t\t\t} else {\n\t\t\t\t\t$d = ($i + 1); $m = $previousMonth;\n\t\t\t\t}\n\t\t\t\t$reportData = array(date(\"Y-m-\" . strval($i) . \" 00:00:00\", strtotime(\"-1 month\")), date(\"Y-\" . strval($m) . \"-\" . strval($d) . \" 00:00:00\"));\n\t\t\t\t$reportUrl = $this->getApiUrl().\"report=\" . strval(self::REPORT_NUMBER) . \"&responseFormat=csv&Start_Date=\" . $reportData[0] . \"&Stop_Date=\" . $reportData[1] . \"&Business_Unit=1,4\";\n\t\t\t\t// Clean out whitespace characters and replace with %20\n\t\t\t\t$reportUrl = str_replace(\" \", \"%20\", $reportUrl);\n\t\t\t\t$fileParser = new FileParser($reportUrl);\n\t\t\t\t$fileParser->setCurlFile($this->getFileName() . \".csv\");\n\t\t\t\t$data = $fileParser->parseFile();\n\t\t\t\t$all[] = $data;\n\t\t\t\tprint(\".\");\n\t\t\t}\n\t\t\tprint(PHP_EOL);\n\t\t\t$this->writeExcelFile(dirname(__FILE__) . $this->getExcelFile() . \".xlsx\", $all, self::REPORT_NAME . date(\" Y-m\", strtotime(\"-1 month\")));\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\techo \"Caught exception: \", $e->getMessage(), \"\\n\";\n\t\t\texit;\n\t\t}\n\t}", "public function __construct()\n\t{\n\t\t/*if (!$measureCommodity)\n\t\t{\n\t\t\t$measureCommodity = CommodityFactory::build('FRN');\n\t\t}\n\n\t\t$this->measureCommodity = $measureCommodity;\n\t\t*/\n\t\t$this->measureCommodity = CommodityFactory::build('FRN');\n\t}", "public function __construct()\n {\n $this->purchaseOperation = '';\n $this->startDate = '';\n $this->stopDate = '';\n }", "public function __construct() {\n\t\tforeach ($this as $key => $value) \n\t\t\t$this->$key = '';\n\t\t$this->log_date = $this->seller_PP_ProfileStartDate = $this->timestmp = '0000-00-00 00:00:00';\n\t\t$this->vendor_id = 0;\n\t}", "public function __construct()\n {\n $this->_policyModel = new Datasource_Insurance_LegacyPolicies();\n $this->_enquiryModel = new Datasource_ReferencingLegacy_Enquiry();\n \n $this->_declinerenewalModel = new Datasource_Insurance_Policy_DeclineRenewal();\n $this->_declinerenewalquestionsModel = new Datasource_Insurance_Policy_DeclineRenewalQuestions();\n $this->_declinerenewalresponsesModel = new Datasource_Insurance_Policy_DeclineRenewalResponses();\n }", "private function initReport()\n {\n $this->report = new \\stdClass();\n\n $this->searchDiffs();\n }", "public function __construct(ReportInterface $report)\n {\n $this->middleware('auth');\n $this->resource = $report;\n }", "public function __construct( $args = array() ) {\n\t\t$this->reports = $this->get_reports( $args );\n\t\t$this->total_reports = count( $this->reports );\n\t}", "function __construct()\n {\n $this->_table = \"invoices\";\n $this->_prefix = \"invoice_\";\n $this->_primary = \"id\";\n $this->date = date('Y-m-d');\n $this->delete = 0;\n $this->terms = 30;\n }", "protected function _construct()\n\t{\n\t\t$this->_init(\n\t\t\t'Unilab\\Inquiry\\Model\\Inquiry',\n\t\t\t'Unilab\\Inquiry\\Model\\ResourceModel\\Inquiry');\n\t}", "function __construct()\n\t{\n\t\t// $this->cust_code = $cust_code;\n\t\t// $this->fecha_interaccion = $fecha_interaccion;\n\t\t// $this->tipo_interaccion = $tipo_interaccion;\n\t\t// $this->time_stamp = $time_stamp;\n }", "public function __construct($report_name)\n {\n $timeoff_types = \\App\\Models\\Employee\\TimeoffType::all();\n\n foreach ($timeoff_types as $timeoff_type) {\n $this->report_columns[$timeoff_type->id] = [\n 'color' => $timeoff_type->color,\n 'title' => $timeoff_type->title,\n 'is_bar' => true\n ];\n }\n\n $this->report_columns['total'] = [\n 'color' => '#3598dc',\n 'title' => trans('reports.' . $report_name . '.total'),\n 'is_bar' => false\n ];\n\n parent::__construct($report_name);\n }", "public function __construct($in)\n\t{\n\t\tparent::__construct($in);\n\n\t\ttry {\n\t\t\t$this->titleOfSeries = $this->_getSingleChildElementText('TitleOfSeries');\n\t\t} catch (\\Exception $e) {\n\t\t}\n\n\t\ttry {\n\t\t\t$this->numberWithinSeries = $this->_getSingleChildElementText('NumberWithinSeries');\n\t\t} catch (\\Exception $e) {\n\t\t}\n\n\t\t$this->cleanValue();\n\n\t\t// Save memory.\n\t\t$this->_forgetSource();\n\t}", "public function __construct()\n\t{\n\t\t$SecurityPolicy = ClassRegistry::init('SecurityPolicy');\n\n\t\t$this\n\t\t\t->setSlug('security-policy-item-default-report')\n\t\t\t->setReport([\n\t\t\t\t'model' => 'SecurityPolicy',\n\t\t\t\t'name' => __('System Report - Item')\n\t\t\t])\n\t\t\t->setReportTemplate([\n\t\t\t\t'type' => ReportTemplate::TYPE_ITEM,\n\t\t\t\t'name' => __('System Report Template - Item')\n\t\t\t])\n\t\t\t->addTextBlock(\n\t\t\t\tReportBlock::SIZE_12,\n\t\t\t\t__(\n\t\t\t\t\t'<h1><b>Security Policy Report: %s</b></h1><p>This report general attributes for this policy.</p>',\n\t\t\t\t\t$SecurityPolicy->getMacroByName('title')\n\t\t\t\t)\n\t\t\t)\n\t\t\t->addTableBlock(\n\t\t\t\tReportBlock::SIZE_12,\n\t\t\t\t'SecurityPolicy',\n\t\t\t\t[\n\t\t\t\t\t'short_description', 'published_date', 'version', 'Owner', 'Collaborator'\n\t\t\t\t],\n\t\t\t\t__('<h2><b>Basic Attributes</b></h2><p>The table below shows general settings for this policy.</p>')\n\t\t\t)\n\t\t\t->addChartBlock(\n\t\t\t\tReportBlock::SIZE_12,\n\t\t\t\t'SecurityPolicy',\n\t\t\t\t6,\n\t\t\t\t__('<h2><b>Related Risk Items</b></h2><p>This tree chart shows all related risk items linked.</p>')\n\t\t\t)\n\t\t\t->addChartBlock(\n\t\t\t\tReportBlock::SIZE_12,\n\t\t\t\t'SecurityPolicy',\n\t\t\t\t5,\n\t\t\t\t__('<h2><b>Related Compliance Items</b></h2><p>This tree chart shows all related compliance requirements linked to this item.</p>')\n\t\t\t)\n\t\t\t->addChartBlock(\n\t\t\t\tReportBlock::SIZE_12,\n\t\t\t\t'SecurityPolicy',\n\t\t\t\t1,\n\t\t\t\t__('<h2><b>Policies by Mitigation</b></h2><p>This ven diagram shows the proportion on how policies are used against Internal Controls, Asset Risks, Third Party Risks, Business Risks, Compliance and Data Flow Analysis.</p>')\n\t\t\t)\n\t\t\t->addTableBlock(\n\t\t\t\tReportBlock::SIZE_12,\n\t\t\t\t'SecurityPolicyReview',\n\t\t\t\t[\n\t\t\t\t\t'planned_date', 'actual_date', 'description', 'version', 'use_attachments'\n\t\t\t\t],\n\t\t\t\t__('<h2><b>Document Reviews</b></h2><p>The table below shows a list of all reviews for this document.</p>')\n\t\t\t)\n\t\t\t->addChartBlock(\n\t\t\t\tReportBlock::SIZE_12,\n\t\t\t\t'SecurityPolicy',\n\t\t\t\t3,\n\t\t\t\t__('<h2><b>Policy Reviews Over Time</b></h2><p>This chart shows all policy review records over time: completed, missing and pending. It also shows the quantity based on the size of the circle.</p>')\n\t\t\t);\n\t}", "public function __construct($reporter){\r\n\t\t\t$this->_reporter = $reporter;\r\n\t\t}", "public function __construct($invoice)\n {\n $this->invoice = $invoice;\n }", "public function __construct($params=null,$report=null)\n {\n parent::__construct();\n $this->params = $params;\n $this->report = $report;\n $this->onInit();\n }", "function __construct(){\n\t\t\tparent::__construct('prmonitoring_model');\n\t\t\t$this->set_page_title('Purchase Request Monitoring');\n\t\t\t$this->default_limit = 50;\n\t\t\t$this->template_dir = 'procurement/prmonitoring';\n\t\t\t$session_id = $this->UserLogin->isLogin();\n\t\t\t$this->users = $session_id['username'];\n\t\t}", "function __construct()\n {\n // Some default values of the class\n $this->gatewayUrl = 'https://test.ipgonline.com/connect/gateway/processing';\n $this->ipnLogFile = PAID_SUBS_DIR.'/ipn/logs/firstdata.ipn_results.log';\n \n global $paidSub;\n \n if($paidSub->configs['test_mode']=='enabled')\n $this->enableTestMode();\n }", "public function __construct()\n {\n // $this->invoice = $invoice;\n // $this->quiz = $quiz;\n }", "public function __construct()\n {\n $this->result = unserialize(file_get_contents($this->getCoverageDir() . \"coverage.txt\"));\n $this->sortBy =\"percentage\"; // default sort\n }", "public function __construct(Invoice $invoice)\n {\n $this->invoice = $invoice;\n }", "public function __construct() {\n parent::__construct(\"tr_125t_detail\");\n $this->primary_key = \"id_f125t_detail\";\n\n $this->attribute_labels = array_merge_recursive($this->_continuously_attribute_label, $this->attribute_labels);\n $this->rules = array_merge_recursive($this->_continuously_rules, $this->rules);\n }", "public function makeReport()\n {\n }", "function __construct()\n {\n parent::__construct();\n /* LOAD MODEL */\n $this->load->model('report_abuse_model');\n }", "public function __construct(ReportService $reportService)\n {\n $this->reportService = $reportService;\n }", "public function __construct()\n {\n $now = new \\DateTime();\n $this->number = 'CR' . $now->format('Y') . $now->format('m') . '-';\n $this->dateCreation = new \\DateTime();\n $this->dateEnlevement = new \\DateTime();\n $this->heureEnlevement = new \\DateTime('14:00');\n $this->dateRetour = new \\DateTime('NOW + 2 day');\n $this->heureRetour = new \\DateTime('14:00');\n $this->effectue = false;\n $this->annule = false;\n $this->factureRecue = false;\n $this->mailSent = false;\n $this->nbJoursExploit = 1;\n $this->avecHayon = false;\n }", "public function __construct()\n {\n if (1 == func_num_args()) {\n $this->insuranceTypesCount = func_get_arg(0);\n }\n }", "public function __construct() {\n\n // Use ArrayCollection to hold Bug references\n // @see vendor\\doctrine\\collections\\lib\\Doctrine\\Common\\Collections\\ArrayCollection\n $this->reportedBugs = new ArrayCollection();\n $this->assignedBugs = new ArrayCollection();\n\n }", "public function __construct($_statementDt = NULL,$_numberOfTransactions = NULL,$_numberOfNSFs = NULL,$_balanceAmt = NULL,$_verifiedDt = NULL,$_statementBalAmt = NULL)\n {\n MicrobiltCriminalReportWsdlClass::__construct(array('StatementDt'=>$_statementDt,'NumberOfTransactions'=>$_numberOfTransactions,'NumberOfNSFs'=>$_numberOfNSFs,'BalanceAmt'=>$_balanceAmt,'VerifiedDt'=>$_verifiedDt,'StatementBalAmt'=>$_statementBalAmt),false);\n }", "function __construct()\n {\n parent::__construct();\n\t\t$this->load->model(array('Report','Loan_product'));\n }", "public function __construct()\n {\n if (21 == func_num_args()) {\n $this->liabilityDoctorInsurancePolicyExtendView = func_get_arg(0);\n $this->liabilityDoctorInsurancePolicyFilter = func_get_arg(1);\n $this->id = func_get_arg(2);\n $this->selectedInsurancePolicyHasBeenChanged = func_get_arg(3);\n $this->isPaymented = func_get_arg(4);\n $this->payable = func_get_arg(5);\n $this->paymented = func_get_arg(6);\n $this->conflict = func_get_arg(7);\n $this->hasConflictDocument = func_get_arg(8);\n $this->initialPrice = func_get_arg(9);\n $this->finalPrice = func_get_arg(10);\n $this->insuranceCompanyName = func_get_arg(11);\n $this->insuranceCentreName = func_get_arg(12);\n $this->isInsuranceCentreAdmin = func_get_arg(13);\n $this->insurancePolicyPaymentDocuments = func_get_arg(14);\n $this->insurancePolicyConflict = func_get_arg(15);\n $this->insurancePolicyCondition = func_get_arg(16);\n $this->person = func_get_arg(17);\n $this->insurancePolicy = func_get_arg(18);\n $this->shoppingCard = func_get_arg(19);\n $this->shoppingCardPostalPacket = func_get_arg(20);\n }\n }", "public function __construct($nation='india')\n {\n $this->nation = $nation;\n $api = \"https://covid19-server.chrismichael.now.sh/api/v1/ReportsByCountries/\".$nation;\n $response = Http::get($api);\n $this->report = $response->json()['report'];\n }", "public function __construct($reportid = null, $sApiKey = null, $iGame = null, $sSteamid = null) {\n $this->set_key($sApiKey);\n $this->set_game((int) $iGame);\n $this->set_steamid($sSteamid);\n $this->set_reportid($reportid);\n }", "public function __construct()\n {\n infolog('[BulkInventory] __construct at '. now());\n }", "final private function __construct() {\n\t\t\t}", "public function __construct()\n {\n parent::__construct();\n\n $this->result = [\n 'count' => 0,\n 'sum' => 0,\n 'create' => 0,\n 'update' => 0,\n 'missing_advertiser',\n 'missing_sum' => 0\n ];\n }", "function __construct()\n {\n // init the arrays\n $this->nameArray = array('Controller LoadData()','Controller ProcessData()', 'Generating PDF', 'Generating PDF 1 Staff', 'Writing Transactions to DB', 'generating html', 'load by renID', 'getHrdbNssrenList', 'mergeAccounts getHTML', 'AccessRenList getDropList', 'getHRDBRen', 'getHRDBRegion', 'getHRDBAccess', 'access getXML');\n $this->stackArray = array();\n $this->numCallsArray = array();\n $this->totalTimeArray = array();\n \n for($i=0; $i < CodeProfiler::TOTAL_NUM_OPS; $i++)\n {\n $this->stackArray[$i] = array();\n $this->numCallsArray[$i] = 0;\n $this->totalTimeArray[$i] = 0;\n }\n }", "function __construct()\n {\n parent:: __construct();\n $this->load->model('admin/accounts_model');\n $this->load->model('admin/emails_model');\n $this->data['app_settings'] = $this->settings_model->get_settings_data();\n $this->load->helper('invoice');\n }", "public function __construct()\n\t\t{\n\t\t\t//\n\t\t}", "function __construct()\n {\n $this->id = 0;\n $this->issuedDate = date('Y-m-d H:i:s');\n $this->returnDate = date('Y-m-d H:i:s');\n $this->fine = 0;\n $this->bookId = 0;\n $this->userId = 0;\n }", "protected function _construct()\n {\n $this->_init(\\Mage2\\Inquiry\\Model\\ResourceModel\\Inquiry::class);\n }", "public function __construct() {\r\n parent::__construct(\"tr_102E1_detail\");\r\n $this->primary_key = \"id_f102E1_detail\";\r\n\r\n $this->attribute_labels = array_merge_recursive($this->_continuously_attribute_label, $this->attribute_labels);\r\n $this->rules = array_merge_recursive($this->_continuously_rules, $this->rules);\r\n }", "protected function __construct() {\n $this->state = State::PENDING;\n $date = date('Y-m-d H:i:s');\n $this->createTime = new \\DateTime();\n $this->updateTime = new \\DateTime();\n $this->appt = null;\n $this->invoiceId = -1;\n }", "function __construct()\n\t{\n\t\tparent::__construct(); \n \n \n\t\tif(!$this->access->is_login())redirect(base_url());\n \t\t$this->load->helper(array('url','form','mylib_helper','browse_select'));\n $this->load->library('sysvar');\n\t\t$this->load->library('template');\n\t\t$this->load->library('form_validation');\n\t\t$this->load->model('inventory_products_model');\n\t\t$this->load->model('inventory_model');\n\t\t$this->load->model('shipping_locations_model');\n\t\t$this->load->model('syslog_model');\n $this->load->library(\"list_of_values\"); \n $this->sql=\"select distinct shipment_id,\n concat(year(date_received),'-',month(date_received),'-',day(date_received)) as date_received,\n ip.warehouse_code,\n ip.supplier_number, ip.doc_type\n from inventory_products ip \n where receipt_type='$this->receipt_type' and doc_type='$this->doc_type'\n \";\n $this->load->model(\"replicate_model\");\n \n\t}", "function __construct (Account $actAccount)\n\t\t{\n\t\t\t$intAccount = $actAccount->Pull ('Id')->getValue ();\n\t\t\t\n\t\t\t// Get the list\n\t\t\t$arrPDFs = listPDF ($intAccount);\n\t\t\t\n\t\t\t// Create Information Objects\n\t\t\tforeach ($arrPDFs as $intYear => $arrYear)\n\t\t\t{\n\t\t\t\tforeach ($arrYear as $intMonth => $strName)\n\t\t\t\t{\n\t\t\t\t\t$this->Push (\n\t\t\t\t\t\tnew Invoice_PDF (\n\t\t\t\t\t\t\t$intAccount, $intYear, $intMonth, $strName\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tparent::__construct ('Invoices-PDFs', 'Invoice', 'Invoice');\n\t\t}", "public function __construct() {\n // Adding values to the variabels\n $this->currentYear = date(\"Y\");\n $this->offsetYear = 0;\n $this->multiplier = 1;\n }", "public function __construct()\n {\n $this->adresse = new Adresse();\n $this->competence = new ArrayCollection();\n $this->lerners = new ArrayCollection();\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->load->library(array('Mpdf'));\n $this->load->model(array('Barang/Barang_model',\n 'Invoice/Invoice_model',\n 'Invoice/Detailinvoice_model',\n 'Cabang/Cabang_model',\n 'Aktifitas/aktifitas_model'\n ));\n\n date_default_timezone_set(\"Asia/Bangkok\");\n\n $this->template->title('Report Piutang');\n $this->template->page_icon('fa fa-table');\n }", "public function __construct() {\n\t\t$this->csv = array('header' => array(), 'body' => array());\n\t\t$this->maxNumberOfDatabaseRows = array('contact' => 1, 'member' => 1, 'phone' => 0, 'mail' => 0, 'address' => 0, 'study' => 0);\n\t\t$this->base = new BaseDataController();\t\n\t}", "public function __construct(Invoice $invoice)\n {\n $this->invoice = $invoice;\n }", "public function __construct(Invoice $invoice)\n {\n $this->invoice = $invoice;\n }", "public function __construct(Invoice $invoice)\n {\n $this->invoice = $invoice;\n }", "public function __construct(Invoice $invoice)\n {\n $this->invoice = $invoice;\n }", "public function __construct(Report $report, Comment $comment)\n {\n $this->report = $report;\n $this->goal = $report->goal;\n $this->objective = $report->goal->objective;\n $this->comment = $comment;\n }", "public function __construct()\n {\n /*\n * include utility functions for our class\n */\n include_once 'functions.php';\n include_once 'MidoDb.php';\n include_once 'InputValidation.php';\n $this->dateIn = createLocalDate('d/m/Y');\n $this->timeIn = createLocalDate('H:i:s');\n\n }", "public function __construct() {\n parent::__construct();\n $this->setOdataType('#microsoft.graph.windows10SecureAssessmentConfiguration');\n }", "public function __construct() {\n $this->request = new \\RedLink\\Analysis\\AnalysisRequest();\n }", "public function __construct() {\n $this->controller_name = \"reportes\";\n parent::__construct($this->controller_name);\n }", "public function __construct($invoice_id)\n {\n $this->invoice_id = $invoice_id;\n }", "public function __construct()\n\t\t{\n\t\t\t# code...\n\t\t}", "public function __construct() \n\t{\n\t\t$strSqlModel = \n\t\t'SELECT cat.*, prd.* \n\t\tFROM \n\t\t(\n\t\t\t(\n\t\t\t\t(\n\t\t\t\t\t(\n\t\t\t\t\t\tproducts prd INNER JOIN categories cat ON (prd.prd_cat_id = cat.cat_id)\n\t\t\t\t\t) INNER JOIN prices pri ON (prd.prd_id = pri.pri_prd_id)\n\t\t\t\t) INNER JOIN countries cnt ON (pri.pri_cnt_id = cnt.cnt_id)\n\t\t\t) INNER JOIN currencies cur ON (cnt.cnt_cur_id = cur.cur_id)\n\t\t)\n\t\tINNER JOIN stocks stk ON (prd.prd_id = stk.stk_prd_id) \n\t\t'.CONF_TAG_LIST_SQL_CRITERIA.' \n\t\tGROUP BY prd.prd_id \n\t\tORDER BY cat.cat_id ASC, prd.prd_id ASC \n\t\t'.CONF_TAG_LIST_SQL_LIMIT.'';\n\t\t\n\t\t$intPageNbRow = CONF_LIST_PAGE_COUNT_ROW_PROD;\n\t\t\n\t\t$tabCritOperation = array();\n\t\t$tabCritOperation['cur_id'] = \"(cur.cur_id = \".CONF_TAG_LIST_SQL_OPE_VALUE.\")\";\n\t\t\n\t\tparent::__construct($strSqlModel, $tabCritOperation, $intPageNbRow);\n\t}", "public function __construct()\n {\n $this->currency = NULL;\n $this->order = NULL;\n $this->customer = NULL;\n $this->fraudScreeningRequest = NULL;\n $this->statementDescriptor = NULL;\n $this->amount = 0;\n $this->amountOriginal = 0;\n $this->amountSurcharge = 0;\n }", "function __construct()\n\t{\n\t\t//$this->PaypalAdaptivePayments = Paypaladaptive::initialize();\n\t\t$this->paypal_transaction = Paypaladaptive::initializePaypalTransaction();\n\t\t$this->shop_order_obj = Webshoporder::initialize();\n\t\t$this->invoice_obj = Webshoporder::initializeInvoice();\n\t\t$this->product_obj = Products::initialize();\n\t\t$this->common_invoice_obj = Products::initializeCommonInvoice();\n\t\t$this->manage_credits_obj = Products::initializeManageCredits();\n\t}", "public function __construct() {\n\n\t\t}", "protected function _construct()\n {\n $this->_init('Dotpay\\Payment\\Model\\Resource\\Instruction');\n }", "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "protected function __construct()\r\n\t\t{\r\n\t\t}", "public function __construct()\n {\n if (17 == func_num_args()) {\n $this->id = func_get_arg(0);\n $this->number = func_get_arg(1);\n $this->name = func_get_arg(2);\n $this->balance = func_get_arg(3);\n $this->type = func_get_arg(4);\n $this->aggregationStatusCode = func_get_arg(5);\n $this->status = func_get_arg(6);\n $this->customerId = func_get_arg(7);\n $this->institutionId = func_get_arg(8);\n $this->balanceDate = func_get_arg(9);\n $this->aggregationSuccessDate = func_get_arg(10);\n $this->aggregationAttemptDate = func_get_arg(11);\n $this->createdDate = func_get_arg(12);\n $this->currency = func_get_arg(13);\n $this->lastTransactionDate = func_get_arg(14);\n $this->institutionLoginId = func_get_arg(15);\n $this->displayPosition = func_get_arg(16);\n }\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->loadParams();\n $this->loadInstrument();\n }", "public function __construct() {\r\n\t\t// TODO Auto-generated constructor\r\n\t}", "public function __construct() {\r\n\t\t// TODO Auto-generated constructor\r\n\t}", "public function __construct() {\r\n\t\t// TODO Auto-generated constructor\r\n\t}" ]
[ "0.728132", "0.7176749", "0.7088685", "0.7088685", "0.69860864", "0.68330586", "0.68112195", "0.6807271", "0.68008876", "0.66916704", "0.66848636", "0.66563165", "0.65547407", "0.648446", "0.64566165", "0.64261466", "0.6424506", "0.63843226", "0.6362328", "0.6362101", "0.6357383", "0.63388944", "0.63107836", "0.6300573", "0.6297172", "0.62953204", "0.62669057", "0.6241429", "0.62382454", "0.62367374", "0.6232153", "0.62295467", "0.6225194", "0.62175846", "0.6217237", "0.6210439", "0.619754", "0.6192719", "0.6177497", "0.61404145", "0.612677", "0.6112698", "0.6106081", "0.60997295", "0.60906124", "0.60782963", "0.607468", "0.60745955", "0.6065311", "0.6058083", "0.6054812", "0.60512847", "0.6046935", "0.60434866", "0.6040543", "0.60372305", "0.6033159", "0.6032888", "0.6023283", "0.60217434", "0.6017703", "0.6016248", "0.60159117", "0.6013027", "0.60091573", "0.6006658", "0.59877205", "0.5987628", "0.5983268", "0.598118", "0.59738564", "0.5972412", "0.5972412", "0.5972412", "0.5972412", "0.5959366", "0.5948769", "0.5940473", "0.59382546", "0.59330577", "0.59287435", "0.59192556", "0.59192055", "0.5914548", "0.5909673", "0.59071", "0.5902965", "0.58916146", "0.58916146", "0.58916146", "0.58916146", "0.58916146", "0.58916146", "0.58916146", "0.5886531", "0.58845073", "0.5882426", "0.587907", "0.587907", "0.587907" ]
0.59732383
71
Method called when an object has been exported with var_export() functions It allows to return an object instantiated with the values
public static function __set_state(array $array) { return parent::__set_state($array); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ExportObject() {\n // Init object\n $plugin = new stdClass();\n // Set values\n $plugin->Name = $this->Name;\n $plugin->Version = $this->Version;\n $plugin->Author = $this->Author;\n $plugin->About = $this->About;\n $plugin->Root = $this->Root;\n $plugin->Identifier = $this->Identifier;\n \n // Return result\n return $plugin;\n }", "protected function constructExportObject()\n\t{\n\t\t//default export is \"all public fields\"\n\t\treturn (object) Arrays::getPublicPropertiesOfObject($this);\n\t}", "function from_export($value) {\n return $value;\n }", "public function export(): mixed;", "public function ExportObject() {\n // Init object\n $col = new stdClass();\n \n // Set values\n $col->id = $this->Id;\n $col->type = $this->Type;\n $col->label = $this->Label;\n $col->p = $this->P;\n \n // Return values\n return $col;\n }", "public function exportData() {\n\t\treturn $this->constructExportObject();\n\t}", "public function toObject();", "function ctools_export_new_object($table, $set_defaults = TRUE) {\r\n $schema = ctools_export_get_schema($table);\r\n $export = $schema['export'];\r\n\r\n $object = new $export['object'];\r\n foreach ($schema['fields'] as $field => $info) {\r\n if (isset($info['object default'])) {\r\n $object->$field = $info['object default'];\r\n }\r\n else if (isset($info['default'])) {\r\n $object->$field = $info['default'];\r\n }\r\n else {\r\n $object->$field = NULL;\r\n }\r\n }\r\n\r\n if ($set_defaults) {\r\n // Set some defaults so this data always exists.\r\n // We don't set the export_type property here, as this object is not saved\r\n // yet. We do give it NULL so we don't generate notices trying to read it.\r\n $object->export_type = NULL;\r\n $object->{$export['export type string']} = t('Local');\r\n }\r\n return $object;\r\n}", "public function export();", "public function export();", "public function export();", "public function export();", "public function export();", "public function createExport();", "public function newInstance(): object;", "public static function createFromGlobals();", "public function export (){\n\n }", "function &object(object $value, string $namespace = 'default'): object\n{\n $var = new Variable\\ObjectVariable($value);\n Repository::add($var, $namespace);\n return $var->getValue();\n}", "public function getObj();", "public static function toObject(){\r\n $args = func_get_args();\r\n \r\n if(count($args) >=2){\r\n $className = '\\\\'.str_replace('.', '\\\\', $args[0]);\r\n $refClass = new \\ReflectionClass($className);\r\n $toObjInstance = $refClass->newInstance();\r\n\r\n unset($args[0]);\r\n \r\n foreach($args as $arg){\r\n \r\n if(is_object($arg)){\r\n $arg = Obj::getProperties($arg);\r\n }\r\n \r\n if(is_array($arg)){\r\n foreach($arg as $propertyName=>$propertyValue){\r\n if($refClass->hasProperty($propertyName)){\r\n $property = $refClass->getProperty($propertyName);\r\n $property->setAccessible(true);\r\n $property->setValue($toObjInstance, $propertyValue);\r\n }\r\n }\r\n }\r\n }\r\n return $toObjInstance;\r\n }\r\n }", "public function export()\n {\n }", "function &stdClass(stdClass $value, string $namespace = 'default'): stdClass\n{\n $var = new Variable\\StdClassVariable($value);\n Repository::add($var, $namespace);\n return $var->getValue();\n}", "public function getExportableValues() {\n\t\telgg_deprecated_notice(__METHOD__ . ' has been deprecated by toObject()', 1.9);\n\t\treturn array(\n\t\t\t'id',\n\t\t\t'entity_guid',\n\t\t\t'name',\n\t\t\t'value',\n\t\t\t'value_type',\n\t\t\t'owner_guid',\n\t\t\t'type',\n\t\t);\n\t}", "public function ExportObject() {\n // Init object\n $overviewChart = new stdClass();\n \n // Set values\n $overviewChart->Types = $this->Types;\n $overviewChart->Chart = $this->Chart->ExportObject();\n \n //return result\n return $overviewChart;\n }", "public function export()\n {\n \n }", "public function newInstance(): object\n {\n return $this->instantiator->instantiate($this->name);\n }", "public function getter () {\n return (object)[\n get_plugin_name => $this->plugin_name,\n get_plugin_version => $this->plugin_version,\n get_translation_slug => $this->translation_slug,\n get_admin_page_slug => $this->admin_page_slug,\n get_api_namespace => $this->api_namespace,\n get_options_name => $this->options_name\n ];\n }", "public function getObject() {}", "public function getObject() {}", "public function export()\n {\n //\n }", "function _instantiateExportDeployment($context) {\n\t\t$exportDeploymentClassName = $this->getExportDeploymentClassName();\n\t\t$this->import($exportDeploymentClassName);\n\t\t$exportDeployment = new $exportDeploymentClassName($context, $this);\n\t\treturn $exportDeployment;\n\t}", "function get_obj()\n {\n $object = new ApiRest;\n return $object;\n }", "public function newInstance();", "public function newInstance();", "public function __CONSTRUCT(){\n\t}", "public function getInstance(): object;", "public function exportedVars(): iterable;", "public static function fromGlobals() {}", "public function ExportObject() {\n // Init object\n $submission = new stdClass();\n \n // Set values\n $submission->Id = $this->Id;\n $submission->DateTime = $this->DateTime;\n $submission->GitHash = $this->GitHash;\n $submission->Categories = array();\n \n // Export each category\n foreach ($this->Categories as $category) {\n $submission->Categories[] = $category->ExportObject();\n }\n \n // return result\n return $submission;\n }", "public function getInstance(): object\n {\n }", "function ctools_get_default_object($table, $name) {\r\n $schema = ctools_export_get_schema($table);\r\n $export = $schema['export'];\r\n\r\n if (!$export['default hook']) {\r\n return;\r\n }\r\n\r\n // Try to load individually from cache if this cache is enabled.\r\n if (!empty($export['cache defaults'])) {\r\n $defaults = _ctools_export_get_some_defaults($table, $export, array($name));\r\n }\r\n else {\r\n $defaults = _ctools_export_get_defaults($table, $export);\r\n }\r\n\r\n $status = variable_get($export['status'], array());\r\n\r\n if (!isset($defaults[$name])) {\r\n return;\r\n }\r\n\r\n $object = $defaults[$name];\r\n\r\n // Determine if default object is enabled or disabled.\r\n if (isset($status[$object->{$export['key']}])) {\r\n $object->disabled = $status[$object->{$export['key']}];\r\n }\r\n\r\n $object->{$export['export type string']} = t('Default');\r\n $object->export_type = EXPORT_IN_CODE;\r\n $object->in_code_only = TRUE;\r\n\r\n return $object;\r\n}", "public function toStdClass() {\n $stdClass = new stdClass();\n $stdClass->number = $this->_number;\n $stdClass->internal = $this->_internal;\n return $stdClass;\n }", "public function getObject(): object;", "public function get_export_data()\n {\n\n $l_sql = \"SELECT isys_obj_type__id, isys_obj_type__title, isys_verinice_types__title, isys_verinice_types__const \" . \"FROM isys_obj_type \" . \"INNER JOIN isys_verinice_types ON isys_obj_type__isys_verinice_types__id = isys_verinice_types__id \";\n\n return $this->retrieve($l_sql);\n\n }", "public function dataProviderExport()\n {\n // Regular :\n $data = [\n [\n 'test string',\n var_export('test string', true),\n ],\n [\n 75,\n var_export(75, true),\n ],\n [\n 7.5,\n var_export(7.5, true),\n ],\n [\n null,\n 'null',\n ],\n [\n true,\n 'true',\n ],\n [\n false,\n 'false',\n ],\n [\n [],\n '[]',\n ],\n ];\n // Arrays :\n $var = [\n 'key1' => 'value1',\n 'key2' => 'value2',\n ];\n $expectedResult = <<<'RESULT'\n[\n 'key1' => 'value1',\n 'key2' => 'value2',\n]\nRESULT;\n $data[] = [$var, $expectedResult];\n $var = [\n 'value1',\n 'value2',\n ];\n $expectedResult = <<<'RESULT'\n[\n 'value1',\n 'value2',\n]\nRESULT;\n $data[] = [$var, $expectedResult];\n $var = [\n 'key1' => [\n 'subkey1' => 'value2',\n ],\n 'key2' => [\n 'subkey2' => 'value3',\n ],\n ];\n $expectedResult = <<<'RESULT'\n[\n 'key1' => [\n 'subkey1' => 'value2',\n ],\n 'key2' => [\n 'subkey2' => 'value3',\n ],\n]\nRESULT;\n $data[] = [$var, $expectedResult];\n // Objects :\n $var = new \\StdClass();\n $var->testField = 'Test Value';\n $expectedResult = \"unserialize('\" . serialize($var) . \"')\";\n $data[] = [$var, $expectedResult];\n $var = function () {return 2;};\n $expectedResult = 'function () {return 2;}';\n $data[] = [$var, $expectedResult];\n return $data;\n }", "public static function export()\n {\n return null;\n }", "function create()\n\t{\n\t\t$names = $this->_fields;\n\t\t$object = new StdClass;\n\t\tforeach ($names as $name)\n\t\t\t$object->$name = \"\";\n\t\treturn $object;\n\t}", "public function construct()\n {\n return $this->object;\n }", "public function metaExport($object = false);", "public function vars()\n {\n \n return new ArrayWrapper(get_object_vars($this->object));\n \n }", "public function getValuesObject()\n {\n $obj = new \\stdClass;\n\n foreach ( $this->keyValues as $key => $value )\n {\n $obj->$key = $value;\n }\n\n return $obj;\n }", "public function getObject();", "public function getObject();", "function newDataObject() {\n\t\t$ofrPlugin =& PluginRegistry::getPlugin('generic', $this->parentPluginName);\n\t\t$ofrPlugin->import('classes.ObjectForReviewPerson');\n\t\treturn new ObjectForReviewPerson();\n\t}", "public function __construct(VariableExportInterface $variableExport)\n {\n $this->serialized = $variableExport->toSerialize();\n }", "public function as_object($class = TRUE, $arguments = array());", "function var_export($expression, $return = false)\n{\n}", "function getObject();", "function getObject();", "abstract public function object();", "public function __construct()\r\n {\r\n $this->_internalObject = new stdClass();\r\n\t\t$a=serialize($this->_internalObject);\r\n\t\t\"echo $a<br>\";\r\n }", "abstract protected function createObject();", "function &getInstance($module_srl)\n\t{\n\t\treturn new ExtraVar($module_srl);\n\t}", "abstract function exportData();", "function createProduct($name,$price,$qty,$id):stdClass\n{\n$product=new stdClass();\n$product->name=$name;\n$product->price=$price;\n$product->quantity= $qty;\n$product->id=$id;\n\nreturn $product;\n}", "abstract protected function exportFunctions();", "public static function factory()\n {\n $class = get_called_class();\n $object = new $class();\n foreach (static::getDefaults() as $field => $value) {\n $object->{$field} = $value;\n }\n return $object;\n }", "public function &__invoke()\r\n\t{\r\n\t\t$result = new stdClass();\r\n\t\tAdhoc::eachTrap('Registry',\r\n\t\t\tfunction ($trap) use (&$result)\r\n\t\t\t{\r\n\t\t\t\t$data =& $trap->GetList();\r\n\t\t\t\tforeach ($data as $k=>$v)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (!isset($result->$k) and isset($v))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$result->$k = $v;\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\t\r\n\t\treturn $result;\r\n\t}", "public static function instantation($the_record){\n\n // can be used to retrieve a string with the name of the called class and static:: introduces its scope.\n $calling_class = get_called_class();\n\n $the_object = new $calling_class;\n\n\n // doing a loop to get all of the values in the object ]\n foreach($the_record as $key => $value) {\n\n if($the_object->has_the_key($key)){\n $the_object->$key = $value;\n \n }\n }\n\n return $the_object;\n }", "public static function get_object() {\n\t\treturn self::$object;\n\t}", "function adminer_object() {\r\n include_once \"./plugins/plugin.php\";\r\n \r\n // autoloader\r\n foreach (glob(\"plugins/*.php\") as $filename) {\r\n include_once \"./$filename\";\r\n }\r\n \r\n $plugins = array(\r\n // specify enabled plugins here\r\n // new AdminerDumpXml,\r\n // new AdminerTinymce,\r\n // new AdminerFileUpload(\"data/\"),\r\n // new AdminerSlugify,\r\n // new AdminerTranslation,\r\n // new AdminerForeignSystem,\r\n // new AdminerLoginPasswordLess(password_hash(\"\", PASSWORD_DEFAULT)),\r\n );\r\n \r\n /* It is possible to combine customization and plugins:\r\n class AdminerCustomization extends AdminerPlugin {\r\n }\r\n return new AdminerCustomization($plugins);\r\n */\r\n class AdminerCustomization extends AdminerPlugin {\r\n function login($login, $password) {\r\n // validate user submitted credentials\r\n return true;\r\n }\r\n }\r\n return new AdminerCustomization($plugins);\r\n \r\n // return new AdminerPlugin($plugins);\r\n}", "public function ExportItem() {\n // Init object\n $submission = new stdClass();\n \n // Set values\n $submission->Id = $this->Id;\n $submission->DateTime = $this->DateTime;\n $submission->ImportDateTime = $this->ImportDateTime;\n $submission->User = $this->User;\n $submission->Good = $this->Good;\n $submission->Bad = $this->Bad;\n $submission->Strange = $this->Strange;\n $submission->GitHash = $this->GitHash;\n $submission->SequenceNumber = $this->SequenceNumber;\n \n // Return result\n return $submission;\n }", "private static function _instantiateThisObject() {\r\n $className = get_called_class();\r\n return new $className();\r\n }", "function instance($obj) {\n\tif (is_string($obj)) {\n\t\t$obj = new $obj;\n\t}\n\treturn $obj;\n}", "function ctools_var_export($var, $prefix = '') {\r\n if (is_array($var)) {\r\n if (empty($var)) {\r\n $output = 'array()';\r\n }\r\n else {\r\n $output = \"array(\\n\";\r\n foreach ($var as $key => $value) {\r\n $output .= $prefix . \" \" . ctools_var_export($key) . \" => \" . ctools_var_export($value, $prefix . ' ') . \",\\n\";\r\n }\r\n $output .= $prefix . ')';\r\n }\r\n }\r\n else if (is_object($var) && get_class($var) === 'stdClass') {\r\n // var_export() will export stdClass objects using an undefined\r\n // magic method __set_state() leaving the export broken. This\r\n // workaround avoids this by casting the object as an array for\r\n // export and casting it back to an object when evaluated.\r\n $output = '(object) ' . ctools_var_export((array) $var, $prefix);\r\n }\r\n else if (is_bool($var)) {\r\n $output = $var ? 'TRUE' : 'FALSE';\r\n }\r\n else {\r\n $output = var_export($var, TRUE);\r\n }\r\n\r\n return $output;\r\n}", "public function getOutputObject()\n {\n $baseObject = parent::getOutputObject();\n $baseObject->name = $this->getName();\n\n return $baseObject;\n }", "public function init_objects() {\n $this->controller_oai = new \\Tainacan\\OAIPMHExpose\\OAIPMH_Expose();\n $this->list_sets = new \\Tainacan\\OAIPMHExpose\\OAIPMH_List_Sets();\n $this->list_metadata_formats = new \\Tainacan\\OAIPMHExpose\\OAIPMH_List_Metadata_Formats();\n $this->list_records = new \\Tainacan\\OAIPMHExpose\\OAIPMH_List_Records();\n $this->get_record = new \\Tainacan\\OAIPMHExpose\\OAIPMH_Get_Record();\n $this->identify = new \\Tainacan\\OAIPMHExpose\\OAIPMH_Identify();\n $this->identifiers = new \\Tainacan\\OAIPMHExpose\\OAIPMH_List_Identifiers();\n }", "public function _construct(){\n\t\treturn $this->data;\n\t}", "public function _construct(){\n\t\treturn $this->data;\n\t}", "public function regularNew() {}", "public function newInstance()\n {\n return $this->newInstanceArgs(func_get_args());\n }", "function data2Object($data) { \n\t\t\t$class_object = new getData($data); \n\t\t\treturn $class_object; \n\t\t}", "function _construct(){ }", "function ctools_export_object($table, $object, $indent = '', $identifier = NULL, $additions = array(), $additions2 = array()) {\r\n $schema = ctools_export_get_schema($table);\r\n if (!isset($identifier)) {\r\n $identifier = $schema['export']['identifier'];\r\n }\r\n\r\n $output = $indent . '$' . $identifier . ' = new ' . get_class($object) . \"();\\n\";\r\n\r\n if ($schema['export']['can disable']) {\r\n $output .= $indent . '$' . $identifier . '->disabled = FALSE; /* Edit this to true to make a default ' . $identifier . ' disabled initially */' . \"\\n\";\r\n }\r\n if (!empty($schema['export']['api']['current_version'])) {\r\n $output .= $indent . '$' . $identifier . '->api_version = ' . $schema['export']['api']['current_version'] . \";\\n\";\r\n }\r\n\r\n // Put top additions here:\r\n foreach ($additions as $field => $value) {\r\n $output .= $indent . '$' . $identifier . '->' . $field . ' = ' . ctools_var_export($value, $indent) . \";\\n\";\r\n }\r\n\r\n $fields = $schema['fields'];\r\n if (!empty($schema['join'])) {\r\n foreach ($schema['join'] as $join) {\r\n if (!empty($join['load'])) {\r\n foreach ($join['load'] as $join_field) {\r\n $fields[$join_field] = $join['fields'][$join_field];\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Go through our schema and joined tables and build correlations.\r\n foreach ($fields as $field => $info) {\r\n if (!empty($info['no export'])) {\r\n continue;\r\n }\r\n if (!isset($object->$field)) {\r\n if (isset($info['default'])) {\r\n $object->$field = $info['default'];\r\n }\r\n else {\r\n $object->$field = '';\r\n }\r\n }\r\n\r\n // Note: This is the *field* export callback, not the table one!\r\n if (!empty($info['export callback']) && function_exists($info['export callback'])) {\r\n $output .= $indent . '$' . $identifier . '->' . $field . ' = ' . $info['export callback']($object, $field, $object->$field, $indent) . \";\\n\";\r\n }\r\n else {\r\n $value = $object->$field;\r\n if ($info['type'] == 'int') {\r\n if (isset($info['size']) && $info['size'] == 'tiny') {\r\n $info['boolean'] = (!isset($info['boolean'])) ? $schema['export']['boolean'] : $info['boolean'];\r\n $value = ($info['boolean']) ? (bool) $value : (int) $value;\r\n }\r\n else {\r\n $value = (int) $value;\r\n }\r\n }\r\n\r\n $output .= $indent . '$' . $identifier . '->' . $field . ' = ' . ctools_var_export($value, $indent) . \";\\n\";\r\n }\r\n }\r\n\r\n // And bottom additions here\r\n foreach ($additions2 as $field => $value) {\r\n $output .= $indent . '$' . $identifier . '->' . $field . ' = ' . ctools_var_export($value, $indent) . \";\\n\";\r\n }\r\n\r\n return $output;\r\n}", "public function createValidObject() : object {\n\t\treturn (object) [\"tweetContent\" => bin2hex(random_bytes(12))];\n\t}", "public function _init_obj()\n {\n // dummy\n }", "protected function make_object( \\stdClass $data ) {\n\t\treturn new Purchase( $data );\n\t}", "public function as_object()\n {\n $this->return_as = 'object';\n return $this;\n }", "static public function fromObj($anObj) {\n\t\t$theClassName = get_called_class();\n\t\t$o = new $theClassName();\n\t\treturn $o->setDataFrom($anObj);\n\t}", "function adminer_object() {\n\t\tinclude_once \"plugins/plugin.php\";\n\t\t// autoloader\n\t\tforeach (glob(\"plugins/*.php\") as $filename) {\n\t\t\tinclude_once $filename;\n\t\t}\n\t\t$plugins = array(\n\t\t\t// specify enabled plugins here\n\t\t\tnew AdminerDatabaseHide(array('information_schema', 'mysql', 'performance_schema')),\n\t\t\t//new AdminerDumpJson,\n\t\t\t//new AdminerDumpBz2,\n\t\t\t//new AdminerDumpZip,\n\t\t\t//new AdminerDumpXml,\n\t\t\t//new AdminerDumpAlter,\n\t\t\t//~ new AdminerSqlLog(\"past-\" . rtrim(`git describe --tags --abbrev=0`) . \".sql\"),\n\t\t\t//new AdminerFileUpload(\"\"),\n\t\t\t//new AdminerJsonColumn,\n\t\t\t//new AdminerSlugify,\n\t\t\t//new AdminerTranslation,\n\t\t\t//new AdminerForeignSystem,\n\t\t\t//new AdminerEnumOption,\n\t\t\t//new AdminerTablesFilter,\n\t\t\t//new AdminerEditForeign,\n\t\t);\n\n\t\treturn new AdminerPlugin($plugins);\n\t}", "public function newCObj() {}", "private function PREPARE_OBJECT_VARIABLE_METHOD()\r\r {\r\r if($this->_type === 'POST')\r\r {\r\r foreach($this->_fields as $key=>$field)\r\r {\r\r $this->_object[$key]['VALUE'] = isset($_POST[$key])?$_POST[$key]:false;\r\r } \r\r } \r\r else if($this->_type === 'GET')\r\r {\r\r foreach($this->_fields as $key=>$field)\r\r {\r\r $this->_object[$key]['VALUE'] = isset($_GET[$key])?$_GET[$key]:false;\r\r } \r\r } \r\r }", "public function toStdClass() {\n $stdClass = new stdClass();\n $stdClass->amountInsuranceBase = $this->_amountInsuranceBase;\n $stdClass->fragile = $this->_fragile;\n $stdClass->parcelsCount = $this->_parcelsCount;\n $stdClass->serviceTypeId = $this->_serviceTypeId;\n return $stdClass;\n }", "public function toStdClass() {\n $stdClass = new stdClass();\n $stdClass->billOfLading = $this->_billOfLading;\n $stdClass->secondaryPickingType = $this->_secondaryPickingType;\n return $stdClass;\n }", "abstract public function prepare_new_object(array $args);", "protected function getRealScriptUserObj() {}", "public function export(bool $private = FALSE, bool $meta = FALSE) {\n\t\t$keys = [];\n\t\t$ret = [];\n\n\t\tif ($private) {\n\t\t\t$keys = static::$PRIVATE;\n\t\t} else {\n\t\t\t$keys = static::$PUBLIC;\n\t\t}\n\n\t\tif (!empty(array_intersect(EXP_RESERVED, $keys))) {\n\t\t\tthrow new ExportableException(\n\t\t\t\t\"Reserved key '\".EXP_CLASSNAME.\"' used in object.\"\n\t\t\t);\n\t\t}\n\n\t\tif ($meta) { // Add metadata.\n\t\t\t$ret[EXP_CLASSNAME] = get_class($this);\n\t\t\t$ret[EXP_VISIBILITY] = $private ? 'private' : 'public';\n\t\t}\n\n\t\tforeach ($keys as $k) {\n\t\t\t$current = $this->__exportable_get($k);\n\t\t\tswitch (gettype($current)) {\n\t\t\t\tcase 'object':\n\t\t\t\t\t$ret[$k] = $this->exp_obj(\n\t\t\t\t\t\t$current, $private, $meta\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'array':\n\t\t\t\t\t$ret[$k] = $this->exp_array(\n\t\t\t\t\t\t$current, $private, $meta\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$ret[$k] = $current;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $ret;\n\t}", "public static function & GetInstance ();", "public function getInstance(): mixed;", "public function convertToUserIntObject() {}", "function FetchObj() {}" ]
[ "0.6951056", "0.69235533", "0.6576406", "0.6377145", "0.61438453", "0.6123597", "0.60555947", "0.60385406", "0.5922576", "0.5922576", "0.5922576", "0.5922576", "0.5922576", "0.5859328", "0.58386916", "0.58126146", "0.5800945", "0.5715804", "0.571534", "0.5712997", "0.5688761", "0.5658427", "0.5640244", "0.56017965", "0.5525057", "0.5512275", "0.54624516", "0.54065686", "0.54065686", "0.5402593", "0.53759634", "0.5372155", "0.5371501", "0.5371501", "0.53698903", "0.5342519", "0.5334929", "0.5315758", "0.5307627", "0.5297458", "0.5262869", "0.5260146", "0.5248292", "0.5244241", "0.52275795", "0.51874787", "0.51795346", "0.5150348", "0.5141145", "0.513255", "0.5131906", "0.5117587", "0.5117587", "0.5117466", "0.5112706", "0.51077455", "0.50988156", "0.50935", "0.50935", "0.5078365", "0.50393796", "0.50392556", "0.5032243", "0.500829", "0.500578", "0.50021815", "0.49989748", "0.4986421", "0.4985877", "0.49773422", "0.49751663", "0.49675283", "0.4957486", "0.49566287", "0.49518955", "0.49497175", "0.49412116", "0.49269983", "0.49269983", "0.4919096", "0.4918042", "0.49162993", "0.4907476", "0.49073106", "0.48962304", "0.48928276", "0.4889555", "0.48821777", "0.48817694", "0.4876133", "0.48756412", "0.48639464", "0.48624778", "0.48621023", "0.48483175", "0.4845858", "0.48404086", "0.48386553", "0.48385635", "0.48351642", "0.4834503" ]
0.0
-1
Method returning the class name
public function __toString() { return __CLASS__; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClassName();", "public function getClassName();", "public function getClassName() ;", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName()\n {\n return __CLASS__;;\n }", "private function get_class_name() {\n\t\t\treturn !is_null($this->class_name) ? $this->class_name : get_class($this);\n\t\t}", "public function getClassName() {\r\n\t\treturn($this->class_name);\r\n\t}", "public static function get_class_name() {\r\n\t\treturn __CLASS__;\r\n\t}", "public function getClassName() { return __CLASS__; }", "public static function getClassName() {\n\t\treturn get_called_class();\n\t}", "public function getClassName(): string\n {\n return $this->get(self::CLASS_NAME);\n }", "public static function getClassName()\n\t{\n\t\treturn get_called_class();\n\t}", "public static function getClassName()\n {\n return get_called_class();\n }", "public function getClassName()\n {\n return $this->class;\n }", "public function getClassName()\n {\n return $this->class;\n }", "public static function className() : string {\n return get_called_class();\n }", "public function getName()\n {\n return __CLASS__;\n }", "public function getName()\n\t{\n\t\treturn str_replace('\\\\', '_', __CLASS__);\n\t}", "public function getClassName()\n {\n return $this->class_name;\n }", "public function class_name() {\n\t\treturn strtolower(get_class($this));\n\t}", "public function getName(): string\n {\n return __CLASS__;\n }", "public static function getClassName() {\n return get_called_class();\n }", "public function getClassname(){\n\t\treturn $this->classname;\n\t}", "public function getClassname()\n\t{\n\t\treturn $this->classname;\n\t}", "public function getClassName()\n {\n return $this->_sClass;\n }", "public function get_just_class_name() {\n\n\t\t$full_path = $this->get_called_class();\n\n\t\treturn substr( strrchr( $full_path, '\\\\' ), 1 );\n\n\t}", "protected function getClassName(): string\n {\n return $this->className;\n }", "public static function getClassName() {\n return self::$className;\n }", "public function getClassName(): string;", "public function getClassName() : string;", "public function getName() {\r\n $parsed = Parser::parseClassName(get_class());\r\n return $parsed['className'];\r\n }", "public function getClassName() : string\n {\n return $this->className;\n }", "public function getClassName()\n {\n $fullClass = get_called_class();\n $exploded = explode('\\\\', $fullClass);\n\n return end($exploded);\n }", "public static function getClassName()\n {\n $classNameArray = explode('\\\\', get_called_class());\n\n return array_pop($classNameArray);\n }", "public function getClassName(): string\n {\n return $this->className;\n }", "public function getClassName(): string\n {\n return $this->className;\n }", "public function getClassName() {\t\t\n\t\treturn MemberHelper::getClassName($this->classNumber);\n\t}", "public function getName()\n\t{\n\t\treturn substr(__CLASS__, 7);\n\t}", "public function getName()\n\t{\n\t\treturn substr(__CLASS__, 7);\n\t}", "public function getClassName() {\r\n\t\treturn $this->strClassName;\r\n\t}", "public function getClassName() : string\n {\n\n return $this->className;\n }", "public function getClassName()\n {\n return $this->className;\n }", "public function getClassName()\n {\n return $this->className;\n }", "public function getClassName()\n {\n return $this->className;\n }", "public function getClassName()\n {\n return $this->className;\n }", "public function getClassName()\n {\n return $this->className;\n }", "public function getClassName()\n {\n return $this->className;\n }", "public function getClassName()\n {\n return $this->className;\n }", "public function getClassName()\n {\n return $this->className;\n }", "public static function staticGetClassName()\n {\n return __CLASS__;\n }", "public function getClassName() {\n return $this->className;\n }", "public function getClassName() {\n\t\treturn $this->className;\n\t}", "public function getClassName(): string\n {\n return $this->makeClassFromFilename($this->filename);\n }", "public function getClassName() {\n\t\treturn $this->_className;\n\t}", "public function getClassName() {\n return $this->className;\n }", "public function getClassName() {\n return $this->className;\n }", "public function getClassName ()\n {\n $className = explode('\\\\', get_class($this));\n\n return array_pop($className);\n }", "function getClassName()\n {\n // TODO: Implement getClassName() method.\n }", "public static function getClassName(){\n $parts = explode('\\\\', static::class);\n return end($parts);\n }", "function getClassName(){\n echo __CLASS__ . \"<br><br>\"; \n }", "public function name()\n {\n $name = get_class($this);\n\n return substr($name, strrpos($name, '\\\\') + 1);\n }", "public function class()\n {\n // @codingStandardsIgnoreLine\n return $this->class ?? \"\";\n }", "public function getClass()\n {\n return $this->_className;\n }", "private function getClassName() {\n return (new \\ReflectionClass(static::class))->getShortName();\n }", "public function getName() {\n\t\t\n\t\t// cut last part of class name\n\t\treturn substr( get_class( $this ), 0, -11 );\n\t\t\n\t}", "public function getClassNm()\r\n {\r\n\t\t$tabInfo = $this->getPathInfo();\r\n\t\treturn $tabInfo[1];\r\n }", "public function className()\n {\n $full_path = explode('\\\\', get_called_class());\n return end($full_path);\n }", "private function className () {\n $namespacedClass = explode(\"\\\\\", get_class($this));\n\n return end($namespacedClass);\n }", "public function getClass(): string\n {\n return $this->class;\n }", "public static function getFullyQualifiedClassName() {\n $reflector = new \\ReflectionClass(get_called_class());\n return $reflector->getName();\n }", "public function getClassName()\n\t{\n\t\tif (null === $this->_className) {\n\t\t\t$this->setClassName(get_class($this));\n\t\t}\n\t\t\n\t\treturn $this->_className;\n\t}", "public function getClassName() : string {\n if ($this->getType() != Router::CLOSURE_ROUTE) {\n $path = $this->getRouteTo();\n $pathExplode = explode(DS, $path);\n\n if (count($pathExplode) >= 1) {\n $fileNameExplode = explode('.', $pathExplode[count($pathExplode) - 1]);\n\n if (count($fileNameExplode) == 2 && $fileNameExplode[1] == 'php') {\n return $fileNameExplode[0];\n }\n }\n }\n\n return '';\n }", "public function getName(){\n\t\treturn get_class($this);\n\t}", "public function getClassName() {\r\n return $this->myCRUD()->getClassName();\r\n }", "public static function className()\n\t{\n\t\treturn static::class;\n\t}", "public function toClassName(): string\n {\n return ClassName::full($this->name);\n }", "public function getName()\n {\n return static::CLASS;\n }", "public function getClass(): string;", "public function getClass(): string;", "public function getClass(): string;", "public function getClass(): string;", "public function getClass(): string;", "public function getClass(): string;", "function getName()\n {\n return get_class($this);\n }", "public function className(): string\n {\n return $this->taskClass->name();\n }", "public static function getClassName($class)\n {\n return static::splitClassName($class)[1];\n }", "function getName()\r\n\t{\r\n\t\treturn get_class($this);\r\n\t}", "public function getName() {\n return get_class($this);\n }", "public function getName() {\n return get_class($this);\n }", "public function toString()\n {\n return __CLASS__;\n }", "public function getName()\n\t{\n\t\treturn $this->name ?: class_basename($this);\n\t}", "public function getNamespacedName()\n {\n return get_class();\n }", "protected function name() {\n\t\treturn strtolower(str_replace('\\\\', '_', get_class($this)));\n\t}", "protected function getClassName()\n {\n return ucwords(camel_case($this->getNameInput())) . 'TableSeeder';\n }", "function getClassName($name)\n{\n return str_replace('_', ' ', snake_case(class_basename($name)));\n}", "public function getClassName(): ?string {\n\t\treturn Hash::get($this->_config, 'className');\n\t}", "public function __toString() {\n\t\treturn $this->className();\n\t}", "public static function name()\n {\n return lcfirst(self::getClassShortName());\n }" ]
[ "0.87522393", "0.87522393", "0.8751158", "0.87397957", "0.87397957", "0.87397957", "0.87397957", "0.8731564", "0.8696754", "0.8673495", "0.8638432", "0.8615335", "0.8603119", "0.8566906", "0.8562364", "0.8555002", "0.85503733", "0.85503733", "0.85425884", "0.8533183", "0.8529981", "0.85237026", "0.8502733", "0.8493115", "0.8491238", "0.8488943", "0.8484194", "0.847459", "0.8441478", "0.8418852", "0.8399611", "0.83950585", "0.83949184", "0.83853173", "0.8378261", "0.837777", "0.8372544", "0.8355432", "0.8355432", "0.83479965", "0.8325877", "0.8325877", "0.8312873", "0.83027107", "0.8272631", "0.8272631", "0.8272631", "0.8272631", "0.8272631", "0.8272631", "0.8272631", "0.8272631", "0.82474744", "0.8242934", "0.8202995", "0.8185409", "0.8184752", "0.81829107", "0.81829107", "0.8176191", "0.81761754", "0.8162896", "0.8142928", "0.81323636", "0.8062757", "0.80528253", "0.8045769", "0.8033823", "0.8026215", "0.8001116", "0.79949147", "0.79779136", "0.79672754", "0.7957633", "0.790449", "0.78617185", "0.7860126", "0.7847096", "0.78195953", "0.7817044", "0.780094", "0.780094", "0.780094", "0.780094", "0.780094", "0.780094", "0.77821547", "0.7761565", "0.77588034", "0.7747239", "0.77409905", "0.77409905", "0.7710985", "0.76808393", "0.7670475", "0.76640886", "0.76514393", "0.76499707", "0.76323646", "0.76005036", "0.75937456" ]
0.0
-1
Save the object to the database
public function save(DeviceHistory $object) { $bObject = ($object->id > 0) ? R::load(self::$tbl, $object->id) : R::dispense(self::$tbl); $bObject = $this->toBean($object, $bObject); $object->id = R::store($bObject); return $object; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save()\n {\n\n // generate all column's sql query\n $column_names = '';\n $column_values = '';\n foreach ($this->columns as $field_name => $column_obj)\n {\n if ($column_obj->columnName === null) {\n $column_names .= $field_name.', ';\n } else {\n $column_names .= $column_obj->columnName.', ';\n }\n $column_values .= $column_obj->generateValueForSQL().', ';\n }\n $column_names = substr($column_names, 0, -1);\n $column_values = substr($column_values, 0, -1);\n $this_table_name = $this->table_name;\n $this_id = $this->id;\n\n if ($this->id === 0) {\n // This object is not saved yet.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values);';\n // Execute query\n } else {\n // This object is on the DB.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values) WHERE id=$this_id;';\n // Execute query\n }\n\n mysql_run_query($query);\n\n }", "public function save() {\r\n $conn = GFSalsaConnector::instance();\r\n if ($conn) {\r\n $conn->saveObject($this->object, $this);\r\n }\r\n }", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save() {}", "public function save() {}", "public function save() {}", "public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }", "public function save() {\n $db = self::getDbConnection();\n $table = static::getTable();\n $data = get_object_vars($this);\n if ($table == 'posts') {\n $data['name'] = Service::get('session')->userEmail;\n }\n\n if (isset($data['id'])) {\n $query = $db->prepare($this->getUpdateString($data, $table));\n } else {\n $query = $db->prepare($this->getInsertString($data, $table));\n }\n\n if (!$query->execute()) {\n throw new DatabaseException('Cant save object');\n }\n }", "public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }", "public function save($object);", "public function save()\n {\n if ($this->id) {\n $this->update();\n } else {\n $this->id = $this->insert();\n }\n }", "public function save()\n\t{\n\t\t$this->copyAttributesToValues() ;\n\t\tif( $this->factory )\n\t\t{\n\t\t\tswitch( $this->todo )\n\t\t\t{\n\t\t\t\tcase 1: // Insert\n\t\t\t\t\tif( $this->factory->insertObjectIntoDB( $this ) ) $this->state = \"inserted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 2: // update\n\t\t\t\t\tif( $this->factory->updateObjectIntoDB( $this ) ) $this->state = \"updated\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 3: // delete\n\t\t\t\t\tif( $this->factory->deleteObjectIntoDB( $this ) ) $this->state = \"deleted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t}", "public function saveToDB()\n {\n }", "public function save() {\n\t\t\t\n\t\t}", "public function save()\n {\n }", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'author_id' => $this->author_id,\n 'clothingname' => $this->clothingname,\n 'clothingtype' => $this->clothingtype,\n 'tempmin' => $this->tempmin,\n 'tempmax' => $this->tempmax\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save()\r\n {\r\n \r\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function save()\n \t{\n \t $this->getMapper()->save($this);\n \t}", "public abstract function save();", "abstract public function save();", "abstract public function save();", "abstract public function save();", "abstract public function save();", "abstract public function save();", "public final function save() {\n }", "public function saveToDb()\n\t{\n\t\t$this->addDocument();\n\t\tparent::saveToDb();\n\t}", "public function save() {\n $db = Db::instance();\n // omit id \n $db_properties = array(\n 'firstName' => $this->firstName,\n 'lastName' => $this->lastName,\n 'description' => $this->description,\n 'user' => $this->user,\n 'password' => $this->password,\n 'image' => $this->image,\n 'gender' => $this->gender,\n 'topic_id' => $this->topic_id,\n 'topic_id1' => $this->topic_id1,\n 'role_id' => $this->role_id,\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save() {\n $db = Db::instance();\n $db_properties = array(\n 'action' => $this->action,\n 'url_mod' => $this->url_mod,\n 'description' => $this->description,\n 'target_id' => $this->target_id,\n 'target_name' => $this->target_name,\n 'creator_id' => $this->creator_id,\n 'creator_username' => $this->creator_username\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "function save() {\n\n\t\t// calls generic ORM save (insert or update)\n\t\tparent::save();\n\n\t}", "public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }", "public final function save()\n {\n }", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'username' => $this->username,\n 'password_hash' => $this->password_hash,\n 'email' => $this->email,\n 'first_name' => $this->first_name,\n 'last_name' => $this->last_name,\n 'user_type' => $this->user_type,\n 'bio' => $this->bio,\n 'creation_date' => $this->creation_date,\n 'gender' => $this->gender,\n 'color' => $this->color\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "protected function save()\n\t{\n\t\t$this->saveItems();\n\t\t//$this->saveAssignments();\n\t\t//$this->saveRules();\n\t}", "public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n {\n $entity->delete();\n } \n else if ($entity->getMarkedAsUpdated())\n {\n $entity->saveWithDetails();\n }\n }\n }\n );\n }", "public\tfunction\tsave()\n\t\t{\n\t\t}", "public function save()\n\t{\n\n\t}", "public function save()\n {\n $this->persist($this->state);\n }", "public function save() {\n }", "public function save() {\n }", "public function save()\r\n {\r\n //\r\n }", "public function persist();", "public function save(){\n }", "public function save()\n {\n \treturn FactoryAbastract::dao(get_class($this))->save($this);\n }", "public function save() {\n }", "public function save($obj)\n {\n DB::table('position_responsibilities')->insert($obj);\n }", "function save() {\r\n foreach ($this->_data as $v)\r\n $v -> save();\r\n }", "public function save(){\n\t\t$db = static::getDatabaseConnection();\n\t\t//Find the columns from the model\n\t\t$columns = static::$columns;\n\n\t\t//because ID is AI we dont want to put a value in it\n\t\tunset($columns[array_search('id', $columns)]);\n\t\t//Same with timestamp\n\t\tunset($columns[array_search('timestamp', $columns)]);\n\n\t\t//Create an insert query which gets linked to the database\n\t\t$query = \"INSERT INTO \" . static::$tableName . \" (\". implode(\",\", $columns) . \") VALUES (\";\n\n\t\t//create a variable called insesrtcols. This is where we put the values\n\t\t$insertcols = [];\n\t\t//For each of the columns in the columns array, add that column into the insert cols array, and seperate it with a :\n\t\tforeach ($columns as $column) {\n\t\t\tarray_push($insertcols, \":\" . $column);\n\t\t}\n\t\t//turn the insertcols array into 1 string and put a , between each entry\n\t\t$query .= implode(\",\", $insertcols);\n\t\t//close the query\n\t\t$query .= \")\";\n\n\t\t//Prepare the query\n\t\t$statement = $db->prepare($query);\n\n\t\t//Foreach of the columns run this function\n\t\tforeach ($columns as $column) {\n\t\t\t//Attach the value to each of the columns\n\t\t\t//Hash the password\n\t\t\tif($column === 'password'){\n\t\t\t\t$this->$column = password_hash($this->$column, PASSWORD_DEFAULT);\n\t\t\t}\n\t\t\t$statement->bindValue(\":\" . $column , $this->$column);\n\t\t}\n\n\t\t//Run the query\n\t\t$statement->execute();\n\n\t\t//Get the id of the query which was just added\n\t\t$this->id = $db->lastInsertID();\n\t}", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }", "public function save(): void\n {\n $this->em->persist($this->model);\n $this->em->flush();\n }", "public function save()\n {\n $this->hasTableName();\n $pk = $this->pk;\n $condition = \"\";\n if ($this->isNew) {\n $sql = \"INSERT INTO \" . $this->table_name . \" SET \";\n $update = '';\n } else {\n if (!isset($this->$pk))\n throw new Exception('Update em objeto sem chave definida', 403);\n\n $sql = \"UPDATE \" . $this->table_name . \" SET \";\n $update = \" WHERE `\" . $this->pk . \"` = '\" . $this->$pk . \"'\";\n }\n foreach ($this->rules() as $key => $validation) {\n if ($this->validateField($key, $validation) && isset($this->$key) && $this->$key != \"\") {\n $sql .= \" `\" . $key . \"` = '\" . $this->$key . \"',\";\n $condition .= \" `\" . $key . \"` = '\" . $this->$key . \"' AND\";\n }\n }\n if (!$this->getErrors()) {\n $sql = substr($sql, 0, -1) . $update;\n if (Database::dbactionf($sql)) {\n if ($this->isNew) {\n $this->$pk = Database::lastID();\n $this->persisted();\n }\n return true;\n }\n }\n return false;\n }", "public function persist($obj)\r\n {\r\n }", "public function Save(){\r\n\t\t$this->db->save();\r\n\t}", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'event_type_id' => $this->event_type_id,\n 'user_1_id' => $this->user_1_id,\n 'user_2_id' => $this->user_2_id,\n 'user_1_name' => $this->user_1_name,\n 'user_2_name' => $this->user_2_name,\n 'product_1_name' => $this->product_1_name,\n 'product_2_name' => $this->product_2_name,\n 'data_1' => $this->data_1,\n 'data_2' => $this->data_2\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save()\n {\n }", "public function save()\n {\n }", "public function save()\n {\n //\n }", "public function save()\n {\n // If deposit is new, will get assigned database ID.\n $this->dbID = $this->db->saveDeposit($this);\n }", "public function save(){\r\n\t\tif ($this->new){\r\n\t\t\treturn $this->insert();\r\n\t\t} else {\r\n\t\t\treturn $this->update();\r\n\t\t}\r\n\t}", "public function save()\n {\n $db = DatabaseUtil::db_connect($this->database);\n $db->query('update ' . $this->table . 'set ' . $this->column . ' = ' . $this->value . ' where ID=' . $this->ID);\n $db->close();\n }", "public function save()\n {\n // For V2.0\n }", "public function save($object = null) {\n if ($object != null) {\n try {\n if ($object->getId() > 0) {\n //return $this->_update($object);\n $where = $this->getAdapter()->quoteInto('objid = ?', $object->getId());\n return $this->update($this->_preparePersistData($object), $where);\n } else {\n //return $this->_insert($object);\n return $this->insert($this->_preparePersistData($object));\n }\n } catch (Exception $e) {\n throw $e;\n }\n } else {\n throw new Agana_Exception('Cannont persist a null object');\n }\n }", "public function persist($object);", "public function save() {\n if ($this->id) {\n return $this->update();\n } else {\n return $this->insert();\n }\n }", "public function save()\n {\n $DB = DB::singleton(dsn());\n\n if ( $this->update ) {\n $SQL = SQL::newUpdate('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addUpdate('entry_' . $column, $this->{$column});\n }\n $SQL->addWhereOpr('entry_id', $this->id);\n $SQL->addWhereOpr('entry_blog_id', $this->blog_id);\n $DB->query($SQL->get(dsn()), 'exec');\n } else {\n $SQL = SQL::newInsert('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addInsert('entry_' . $column, $this->{$column});\n }\n $DB->query($SQL->get(dsn()), 'exec');\n }\n\n EntryHelper::saveColumn($this->units, $this->id, $this->blog_id);\n Common::saveField('eid', $this->id, $this->fields);\n Common::saveFulltext('eid', $this->id, Common::loadEntryFulltext($this->id));\n }", "public function save(){\n $tableName = $this->tableName();\n $attributes = $this->attributes();\n $params = array_map(fn($attr) => \":$attr\", $attributes);\n $statement = self::prepare(\"INSERT INTO $tableName (\".implode(',', $attributes).\") \n VALUES (\".implode(',', $params).\")\");\n \n foreach($attributes as $attribute){\n $statement->bindValue(\":$attribute\", $this->{$attribute});\n }\n \n $statement->execute();\n return true;\n }", "public function save()\n {\n if ($conn = $this->_getConnection()) {\n $data = $this->getData();\n unset($data['user']);\n if ($this->id) {\n $fields = array();\n foreach ($data as $_field => $_value) {\n $fields[] = \"`{$_field}`='{$_value}'\";\n }\n $sql = \"UPDATE `{$this->_dbTable}` SET \" . implode(\",\", $fields) . \" WHERE `id`={$this->id};\";\n } else {\n $sql = \"INSERT INTO `{$this->_dbTable}` (`\" . implode('`,`', array_keys($data)) . \"`)\n VALUES('\" . implode(\"','\", $data) . \"');\";\n }\n $result = $conn->query($sql);\n app::log(array($sql, $result, $conn->errno, $conn->error)); //!!!!\n if ($conn->errno) {\n app::log('Error saving model \"' . $this->_modelName . '\" into DB with ID=' . $this->id, app::LOG_LEVEL_ERROR . \"\\n{$conn->errno} - {$conn->error}\");\n }\n if (!$this->id) {\n $this->id = $conn->insert_id;\n }\n }\n app::log($this->_data); //!!!!\n return $this;\n }", "public function SaveObject($object) {\n\t\trequire_once dirname(__FILE__) . '/' . get_class($object) . '.php';\n\t\t$object->Save();\n\t}", "public function save() {\n\n }", "public function save(){\n $data = file_get_contents('php://input');\n //saving data and getting inserted id or the existing one\n $this->id = $this->_so->save($data);\n //returning saved object for frontend sync\n return $this->byId();\n }", "public function save($object)\n {\n $this->driver->save($object);\n }", "public function save()\n {\n $this->_validateModifiable();\n\n if($this->isNew())\n {\n $this->_getDataSource()->create($this);\n }\n else\n {\n $this->_getDataSource()->update($this);\n }\n\n $this->_saveRelations();\n $this->_setNew(false);\n }", "public function saveToDb()\n\t{\n\t\tparent::saveToDb();\n\t\t$this->insertAttachment();\n\t}", "public function save() {\n if ($this->loaded) {\n return $this->update();\n }else{\n return $this->create();\n }\n }", "public function save($data);", "public function save($data);", "public function save($data);", "public function save(){\n $tableName = $this->tableName();\n $attributes = $this->attributes();\n $params = array_map(fn($attr)=> \":$attr\", $attributes);\n\n $st = self::prepare(\n \"INSERT INTO $tableName (\".implode(',', $attributes).\")\n VALUES(\".implode(',', $params).\")\"\n );\n\n foreach($attributes as $attribute){\n $st->bindValue(\":$attribute\", $this->{$attribute});\n }\n\n $st->execute();\n return true;\n }", "public function save():void;", "public function save()\n {\n $ins = $this->valores();\n unset($ins[\"idInscription\"]);\n\n $ins['idUser'] = $this->userO->idUser;\n unset($ins[\"userO\"]);\n\n $ins['idProject'] = $this->project->idProject;\n unset($ins[\"project\"]);\n\n if (empty($this->idInscription)) {\n $this->insert($ins);\n $this->idInscription = self::$conn->lastInsertId();\n } else {\n $this->update($this->idInscription, $ins);\n }\n }", "public function persist() {}", "public function save() {\n\n $data = array(\n 'name' => $this->getName(),\n 'description' => $this->getDescription(),\n 'metatitle' => $this->getMetatitle(),\n 'metakeywords' => $this->getMetakeywords(),\n 'metadescription' => $this->getMetadescription()\n );\n $data['parent_id'] = 0; // by default it is 0, becouse right now there is no use of parent id in this application\n if (null === ($id = $this->getId())) {\n unset($data['id']);\n $data['status'] = 1;\n return $this->getMapper()->getDbTable()->insert($data);\n } else {\n $data['status'] = $this->getStatus();\n return $this->getMapper()->getDbTable()->update($data, array('id = ?' => $id));\n }\n\n }", "public function save($obj)\r\n {\r\n $params = array(\r\n \"property1\" => $obj->getProperty1(),\r\n \"property2\" => $obj->getProperty2()\r\n );\r\n $pk = (int) $obj->getId();\r\n if($pk > 0){\r\n $this->getTable()->update($params, array(\"id\" => $pk));\r\n }else{\r\n $pk = $this->getTable()->insert($params);\r\n $obj->setId($pk);\r\n }\r\n }", "public function save(){\r\n\t \t\treturn isset($this->id) ? $this->update() : $this->create();\r\n\t\t}" ]
[ "0.8131476", "0.7943055", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7929245", "0.7824086", "0.7824086", "0.78224176", "0.77825636", "0.7761152", "0.77610934", "0.7757206", "0.7757115", "0.7724955", "0.7706446", "0.76492727", "0.7638693", "0.7630916", "0.76161844", "0.7589169", "0.7562018", "0.753869", "0.75339055", "0.75339055", "0.75339055", "0.75339055", "0.75339055", "0.7487223", "0.7486625", "0.7485624", "0.74774384", "0.7450202", "0.74217826", "0.7414379", "0.7403044", "0.7395", "0.7387687", "0.73717654", "0.73323506", "0.73291373", "0.7303015", "0.7303015", "0.7300187", "0.72993934", "0.7279337", "0.72742015", "0.72399646", "0.72222126", "0.7203845", "0.72025234", "0.7198022", "0.71575373", "0.7155429", "0.7153048", "0.71430176", "0.71226954", "0.7121419", "0.7121419", "0.712095", "0.7098849", "0.70967764", "0.7095148", "0.7079859", "0.7076904", "0.70710987", "0.70666254", "0.70616895", "0.7060966", "0.70425975", "0.7041004", "0.7019792", "0.7017907", "0.7010516", "0.70006305", "0.69987506", "0.6980121", "0.69418204", "0.69418204", "0.69418204", "0.6934735", "0.6934547", "0.6933822", "0.69259", "0.6920866", "0.6920581", "0.69189745" ]
0.0
-1
Load an object from the database
public function load($id) { $bObject = R::load(self::$tbl, $id); if ($bObject->id > 0) { $object = $this->toObject($bObject); } return isset($object) ? $object : new DeviceHistory(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final function loadObjectFromDb()\n {\n # TODO: would be far preferable to use the objectsFromDestinations() code, possibly by refactoring into another shareable function. this is needed because otherwise we're in object A and OrmClass->load() is generating object B, instead of populating object A\n # TODO:NOTE01\n # TODO: must use $this->setLoadedFromDb() per class\n throw new Exception('TODO');\n }", "function load() {\n\t\tglobal $mysql;\n //if(!$this->exists()) return;\n \t$id \t\t= $mysql->escape($this->id);\n \t$tablename \t= $this->class_name();\n \t$this->data = $mysql->executeSql(\"SELECT * FROM \".$tablename.\" WHERE id=$id;\");\n \t$this->id\t= $this->data['id'];\n \tunset($this->data['id']);\n }", "public function loadFromDB()\n {\n }", "public function load( &$object );", "public function load() : Persistable;", "public function loadById($id);", "public function loadById($id);", "public static function loadById($id) {\n $db = Db::instance();\n $obj = $db->fetchById($id, __CLASS__, self::DB_TABLE);\n return $obj;\n }", "function loadObject( &$object ) {\n\t\tif ($object != null) {\n\t\t\tif (!($cur = $this->query())) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif ($array = mysql_fetch_assoc( $cur )) {\n\t\t\t\tmysql_free_result( $cur );\n\t\t\t\tmosBindArrayToObject( $array, $object, null, null, false );\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\tif ($cur = $this->query()) {\n\t\t\t\tif ($object = mysql_fetch_object( $cur )) {\n\t\t\t\t\tmysql_free_result( $cur );\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\t$object = null;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "abstract protected function load(Connection $db);", "public static function loadById($id) {\n $db = Db::instance();\n $obj = $db->fetchById($id, __CLASS__, self::DB_TABLE);\n return $obj;\n }", "public static function loadById($id) {\n $db = Db::instance();\n $obj = $db->fetchById($id, __CLASS__, self::DB_TABLE);\n return $obj;\n }", "public static function loadById($id) {\n $db = Db::instance();\n $obj = $db->fetchById($id, __CLASS__, self::DB_TABLE);\n return $obj;\n }", "public static function loadById($id) {\n $db = Db::instance();\n $obj = $db->fetchById($id, __CLASS__, self::DB_TABLE);\n return $obj;\n }", "public function load($objid = NULL){\n $k = $this->_table_key;\n if ($objid !== null) {\n $this->$k = $objid;\n }\n $objid = $this->$k;\n if ($objid === null) {\n return false;\n }\n $db = &$this->_dbo;\n $query = \"SELECT * FROM \" . $this->_table . \" WHERE \" . $this->_table_key . \" = '\" . $objid . \"'\";\n $db->setQuery( $query );\n if ($result = $db->loadObject( )) {\n return $this->bind($result);\n }\n else {\n return false;\n }\n }", "protected function read_object_from_database() {\n\t\t$this->data_store = WC_Data_Store::load( 'pos_host_outlet' );\n\n\t\tif ( $this->get_id() > 0 ) {\n\t\t\t$this->data_store->read( $this );\n\t\t}\n\t}", "public function load($id = null){\n\t\n\t\tif(!isset($id)){\n\t\t\t$id = $this->__get('id');\n\t\t}\n\t\t$class = strtolower(substr_replace(get_class($this) ,\"\",-5));\n\t\t$data = $this->getById($id);\n\t\t\n\t\t$class = ucfirst($class.'Model');\n\t\tif(count($data) > 0){\n\t\t\t$object = new $class;\n\t\t\tforeach ($data as $key => $v){\n\t\t\t\t$object->__set($key,$v);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $object;\n\t\t\n\t}", "public function fetchObject();", "public function fetchObject();", "public static function load(int $id);", "private function load()\r\n {\r\n $this->dbFields = MySQL::fetchRecord(MySQL::executeQuery('SELECT * FROM training_slideshow WHERE ts_id='.(int)$this->id),MySQL::fmAssoc);\r\n }", "public static function loadById(?int $id);", "public function load( &$object ) {\n\t\t// TODO: Implement load() method.\n\t}", "public abstract function fetchObject();", "private function load() {\n\n $db = Database::getInstance(); \n\t $con = $db->getConnection();\n \n $query = \"SELECT * FROM Products ORDER by ID DESC\";\n \n if ($result = $con->query($query)) {\n \t/* fetch object array */\n \t while ($prod = $result->fetch_object(\"Product\")) {\n\t\t\t \tarray_push($this->products, $prod);\n \t}\n \t/* free result set */\n \t$result->close();\n }\n\t}", "public function load($id){\n\n /*\n * select from the database\n */\n $query = $this->db->get_where($this::DB_TABLE, array($this::DB_TABLE_PK => $id));\n\n /**\n * Populate to an object\n */\n if(!empty($query->row())){\n $this->populate($query->row());\n return true;\n } else {\n return false;\n }\n }", "abstract public function load_object(array $args);", "public function loadById($identifier): ?object;", "abstract function load(Model $model);", "public function testLoadBasic()\r\n\t\t{\r\n\t\t\tORM::init('mysql:host=localhost;dbname=rocket_orm', 'orm_username', 'orm_password');\r\n\t\t\t\r\n\t\t\t$user = User::load(1);\r\n\t\t\t\r\n\t\t\t$this->assertEquals($user->get('user_id'), '1');\r\n\t\t}", "function _load()\n\t{\n\t\tif($this->primary_key)\n\t\t{\n\t\t\t$row = $this->db->get_where($this->table_name, array(\n\t\t\t\t$this->primary_key => $this->{$this->primary_key},\n\t\t\t))->result();\n\t\t\t\n\t\t\tif(count($row))\n\t\t\t\t$this->load_db_values($row[0]);\n\t\t}\n\t}", "public function testLoadInvalidObjectIDType()\r\n\t\t{\r\n\t\t\tORM::init('mysql:host=localhost;dbname=rocket_orm', 'orm_username', 'orm_password');\r\n\t\t\t\r\n\t\t\t$user = User::load(array());\r\n\t\t}", "function load($id)\n {\n $ins = $this->getById($id);\n if (!empty($ins)) {\n foreach ($this->fields as $field) {\n if ($field == \"userO\") {\n $usuario = new User();\n $usuario->load($ins['idUser']);\n $this->$field = $usuario;\n } elseif ($field == \"project\") {\n $project = new Project();\n $project->load($ins['idProject']);\n $this->$field = $project;\n } else {\n $this->$field = $ins[\"$field\"];\n }\n }\n } else {\n throw new Exception(\"No existe ese registro\");\n }\n }", "public function loadFromObject($object){\n foreach ($object as $property => $value) {\n //we must ignore this fields\n if(\\in_array($property,['_type','_primary_key','id'])){\n continue;\n }\n $this->{$property}=$value;\n }\n # we set the real short class name\n if(property_exists($model,'_type')){\n $this->setTableName($model->_type);\n }else{\n $modelObj->setTableName(RedBeanEngine::classNameToTableName($model)); \n }\n }", "private function _load_db()\n {\n $json_string = file_get_contents(\"dbmov.json\");\n $this->_db = json_decode($json_string, true);\n }", "abstract public function load();", "abstract public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load($id)\n {\n\n // instancia instruo de SELECT\n $sql = new TSqlSelect();\n $sql->setEntity($this->getEntity());\n $sql->addColumn('*');\n\n\n // cria critrio de seleo baseado no ID\n $criteria = new TCriteria();\n $criteria->add(new TFilter('id', '=', $id));\n // define o critrio de seleo de dados\n $sql->setCriteria($criteria);\n // inicia transao\n if ($conn = TTransaction::get()) {\n\n // cria mensagem de log e executa a consulta\n TTransaction::log($sql->getInstruction());\n $result = $conn->Query($sql->getInstruction());\n\n // se retornou algum dado\n if ($result) {\n// echo $sql->getInstruction();\n\n // retorna os dados em forma de objeto\n $object = $result->fetchObject(get_class($this));\n\n }\n\n return $object;\n } else {\n // se no tiver transao, retorna uma exceo\n throw new \\Exception('No h transao ativa !!');\n }\n }", "public function __doLoad()\n {\n $strSQL = $this->getSelectSql();\n $_SESSION[\"logger\"]->info(\"__doLoad: \" . $strSQL);\n\n $result = $this->query($strSQL);\n $_SESSION[\"logger\"]->info(\"Results: \" . $this->rowCount($result));\n if ($result && $this->rowCount($result) > 0) {\n $this->exists = true;\n $this->dxHashToClass($this->torecord($result));\n } else {\n $this->exists = false;\n }\n }", "public abstract function FetchObject();", "public abstract function load();", "public function load($id)\n {\n $this->_checkRecordInstance();\n $result = $this->_entity->getTable()->find($id);\n if ($result) {\n $this->_entity = $result;\n return $this;\n } else {\n return false;\n }\n }", "function load($criteria=NULL,$order=NULL,$offset=0) {\n\t\tif (method_exists($this,'beforeLoad') && !$this->beforeLoad())\n\t\t\treturn;\n\t\tif (!is_null($offset) && $offset>-1) {\n\t\t\t$this->offset=NULL;\n\t\t\tif ($m2=$this->findOne($criteria,$order,1,$offset)) {\n\t\t\t\t// Hydrate M2\n\t\t\t\tforeach ($m2->object as $key=>$val)\n\t\t\t\t\t$this->object[$key]=$val;\n\t\t\t\tlist($this->criteria,$this->order,$this->offset)=\n\t\t\t\t\tarray($criteria,$order,$offset);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t$this->reset();\n\t\tif (method_exists($this,'afterLoad'))\n\t\t\t$this->afterLoad();\n\t}", "public function load($data);", "public function load($id) {\n\t\t$this->logger->debug('[EntityManager]Loading Entity with id '.$id);\n\t\treturn $this->getRepository()\n\t\t->find($id);\n\t}", "public function loadModel()\n {\n $data = ModelsPegawai::find($this->dataId);\n $this->name = $data->name;\n $this->email = $data->email;\n $this->username = $data->username;\n $this->password = $data->password;\n $this->level = $data->level;\n\n }", "public function loadDataFromId(){\r\n\t\t\t$this -> loadFromId();\r\n\t }", "public function load($id)\n {\n $record =& $this->getTable();\n if ($record->load((int)$id)) {\n $this->id = $record->id;\n $this->userId = $record->user_id;\n $this->profileId = $record->profile_id;\n $this->paymentId = $record->payment_id;\n $this->shippingId = $record->shipping_id;\n }\n }", "public function load()\n {\n $pdo = $this->getDbConnection();\n $query = \"SELECT * FROM {$this->dbTable}\";\n $data = $pdo->query($query)->fetchAll(\\PDO::FETCH_ASSOC);\n\n foreach ($data as ['key' => $key, 'value' => $value]) {\n $this->setData($key, $value);\n }\n }", "public function DoctrineLoad()\n {\n // and call __load method\n }", "protected function load(){\r\n\t\r\n\t$qq1 = Db::result(\"SELECT * FROM \"._SQLPREFIX_.$this->tableName.\" WHERE \".$this->fieldName.\" = \".(int)$this->id);\r\n\t$this->profileData = count($qq1)>0 ? $qq1[0]: null; \r\n\t\r\n\tif($this->metaUse){\r\n\t\t$qq2 = Db::result(\"SELECT * FROM \"._SQLPREFIX_.$this->metaTypesTableName.\" WHERE active = 1 ORDER BY public_ord, id\");\r\n\t\t$this->metaData = count($qq2)>0 ? $qq2: array(); \r\n\t}\r\n}", "public function load() { }", "public function load($relation);", "public function load()\n {\n $data = $this->storage->load();\n $this->collection->load($data);\n\n $this->refresh();\n }", "public function load($id){\n\t\t$sql = 'SELECT * FROM ano_letivo WHERE id = ?';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$sqlQuery->setNumber($id);\n\t\treturn $this->getRow($sqlQuery);\n\t}", "public function load($object, $group);", "public function loadItem($id){\n\t\tif($id){\n\n\t\t\t//$this->firephp->info($id);\n\t\t\t\n\t\t\t//get some db credentials\n\t\t\t$session = new Session();\n\t\t\t\n\t\t\tif(!$session->get('dbcreds')){\n\t\t\t\t$dbcreds = xmlToArray::getArray(CONFIG.'/'.Constants::config,'config-root','config','database');\n\t\t\t\t//$session->set('dbcreds',$dbcreds);\n\t\t\t} else {\n\t\t\t\t$dbcreds = $session->get('dbcreds');\n\t\t\t}\n\t\t\t\n\t\t\t//load from db\n\t\t\t$mode = QueryBuilder::QUERYSELECT;\n\t\t\t$query = new QueryBuilder($mode);\n\t\t\t$query->setTable($this->table);\t\n\t\t\t$query->setKey($id);\n\t\t\t$query->setKeyName($this->keyName);\t\n\t\t\t$query_str = $query->parse();\n\t\t\t//$this->firephp->info($query_str);\n\n\t\t\t$this->wrapper = DBConn::getInstance();\n\t\t\t$this->wrapper->query($query_str);\n\n\t\t\t\n\t\t\tif($this->wrapper->getNumrows() == 0) {\n\t\t\t\tLogger::logError('WARNING - ' . $this->wrapper->getError() . \" (QUERY:$query_str)\");\n\t\t\t\tthrow new yafException($this->wrapper->getError(),yafException::WARNING);\n\t\t\t}\n\t\t\n\t\t\t$this->attributes = $this->wrapper->fetch_assoc_row();\t\t\t\n\n\t\t}\n\t\t\n\t\t\n\t}", "public function load()\n\t{\n\t\t$this->list_table->load();\n\t}", "function load(){\n $sql = 'SELECT * FROM worlds where id=?';\n $w = $this->app['db']->fetchAssoc($sql, array($this->id));\n if(!$w){ \n return false;\n }\n $this->name = $w['name'];\n $this->world = $w['world_json'];\n return true;\n }", "public function load($persistenceIdentifier);" ]
[ "0.8006788", "0.73985064", "0.7235853", "0.7030275", "0.7015539", "0.70094645", "0.70094645", "0.69436646", "0.6813867", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.6802997", "0.67324513", "0.67186314", "0.67186314", "0.67186314", "0.67186314", "0.66939646", "0.66120094", "0.65750843", "0.6541099", "0.6541099", "0.65032077", "0.64820987", "0.6480719", "0.64739287", "0.6465258", "0.6455284", "0.63415504", "0.6324598", "0.63181645", "0.63138866", "0.6305023", "0.62967116", "0.62963736", "0.6293927", "0.62592363", "0.62469435", "0.62356305", "0.62356305", "0.62221825", "0.62221825", "0.62221825", "0.62221825", "0.62221825", "0.62221825", "0.62221825", "0.62221825", "0.62221825", "0.62221825", "0.62221825", "0.62221825", "0.62221825", "0.6217554", "0.62149537", "0.61765826", "0.6167663", "0.6166077", "0.61586756", "0.61486775", "0.6118276", "0.6117929", "0.61145884", "0.61058867", "0.6101021", "0.60931796", "0.60856104", "0.60808325", "0.60770786", "0.60551614", "0.60469145", "0.60443246", "0.60416627", "0.6019729", "0.60149044", "0.6012216" ]
0.0
-1
Retrieve all values for an device
public function getArrayByDevice(Device $device) { $bObjects = R::find( self::$tbl, ' deviceId = :deviceId ', array("deviceId"=>$device->id)); $objects = array(); foreach ($bObjects as $bObject) { $objects[] = $this->toObject($bObject); } return $objects; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllDevice(){\n $query = \"select distinct device_id from $this->basicSensorLog_tableName\";\n $result = $this->dbh->query($query);\n if($result->rowCount() > 0){\n return $result->fetchAll();\n }\n return null;\n }", "function get() \n {\n //parse params\n $this->parseGetParams();\n $responseData = array();\n\n foreach ($this->parameters as $key => $value)\n {\n if (strtolower($value) == \"all\")\n {\n $responseData = $this->queryAllDIIDInfo();\n }\n else\n {\n $responseData = $this->queryDIIDInfo($value);\n }\n }\n\n $this->generateResponseXML($responseData, \"device_instance\");\n }", "public static function get_all()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$devices = DB::table('devices')->get();\n\t\t\treturn $devices;\n\t\t}\n\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\tLog::write('error', $e->getMessage());\n\t\t\tthrow $e;\n\t\t}\n\t}", "function getDevicesResult() {\n\treturn db_query(\"SELECT name as Name, lpad(hex(serial),16,'0') as Serial, type as Type, active as Active FROM Devices\");\n}", "public function all_devices() {\n\t\t// Global\n\t\tglobal $wpdb;\n\t\t\n\t\t// Load the devices from the database as an array\n\t\t$sql = \"SELECT * FROM `\" . rpids_tableprefix() . \"rpids_devices` ORDER BY `did` ASC;\";\n\t\t$devices = $wpdb->get_results( $sql, ARRAY_A );\n\t\t\n\t\t// Set the return object\n\t\t$return = new StdClass();\n\t\t\n\t\t// Loop through each device\n\t\tforeach( $devices as $device ) {\n\t\t\t// Add the device info to the return object\n\t\t\t$return->$device['id'] = new StdClass();\n $return->$device['id']->id = $device['id'];\n\t\t\t$return->$device['id']->did = $device['did'];\n\t\t\t$return->$device['id']->model = $device['model'];\n\t\t\t$return->$device['id']->hversion = $device['hversion'];\n\t\t\t$return->$device['id']->sversion = $device['sversion'];\n\t\t\t$return->$device['id']->type = $device['type'];\n\t\t\t$return->$device['id']->builder = $device['builder'];\n\t\t}\n\t\treturn (object) $return;\n\t}", "public static function list_devices()\n {\n return self::$devices;\n }", "public function getAllValues();", "static public function getAll()\r\n {\r\n return self::$values;\r\n }", "public function listDevices()\n {\n\t\t$data = $this->call(array(), \"GET\", \"devices.json\");\n\t\t$data = $data->{'devices'};\n\t\t$deviceArray = new ArrayObject();\n\t\tfor($i = 0; $i<count($data);$i++){\n\t\t\t$deviceArray->append(new Device($data[$i], $this));\n\t\t}\n\t\treturn $deviceArray;\n }", "public function getDevices()\n {\n return $this->devices;\n }", "public function getAll()\n {\n return $this->values;\n }", "public function getAll()\n {\n return $this->values;\n }", "public function getValues() {}", "public function getValues() {}", "public function getDeviceAttributes() {}", "abstract public function listDevices();", "public function get_devices()\n {\n $this->db->from('device');\n $this->db->order_by('name', 'ASC');\n $this->db->join('device__types', 'device__types.id_type = device.device_type');\n $query = $this->db->get();\n return $query->result_array();\n }", "public function getValues();", "public function index()\n {\n return Device::all();\n }", "public function get_all () {\r\n\t\treturn $this->_data;\r\n\t}", "public function all()\n {\n return $this->values;\n }", "public static function get_values()\n {\n }", "public static function get_values()\n {\n }", "public static function get_values()\n {\n }", "public function getAllUsers() {\n $result = mysql_query(\"SELECT * FROM gcm_devices\");\n return $result;\n }", "function devices_get()\n {\n // // Authenticate user (by session)\n // // Check if a user is currently logged in\n if(!$this->session->userdata('LoggedIn')){\n // die(\"Login Required\");\n }\n\n // Load the device model\n $this->load->model('device_model');\n\n // If the optional roomid parameter is supplied\n if($this->get('roomid')){\n // Get the devices from particular room\n $deviceList = $this->device_model->getAvailableDevicesByRoom( $this->get('roomid') );\n }else{\n // Get the from all rooms\n $deviceList = $this->device_model->getAvailableDevices();\n }\n\n // If the deviceList is not FALSE or NULL\n if($deviceList){\n $this->response($deviceList, 200); // 200 being the HTTP response code\n }else{\n $this->response(NULL, 404);\n }\n }", "public function getAll(){\n\t\treturn $this->configValues;\n\t}", "function all () {\n return $this -> data;\n }", "function getRegisteredDevices() {\n\trequire_once __DIR__ . '/firebase.php';\n\n\t$firebase = new Firebase();\n\t$clientsJson = $firebase->getJson('');\n\t$devices = json_decode($clientsJson, true);\n\tforeach ( $devices as $key => $device ) {\n\t\tunset( $device[ 'messages' ] );\n\t\t$device[ 'deviceKey' ] = $key;\n\t\t$devices[ $key ] = $device;\n\t}\n\techo json_encode( $devices );\n}", "public function all()\n {\n return $this->data;\n }", "public function all()\n {\n return $this->data;\n }", "public function all()\n {\n return $this->data;\n }", "public function all() {\n\t\treturn $this->data;\n\t}", "public function all()\n\t{\n\t\treturn $this->data;\n\t}", "public function all()\n\t{\n\t\treturn $this->data;\n\t}", "public function all()\n\t{\n\t\treturn $this->data;\n\t}", "public function get_all_data()\n\t{\n\t\treturn $this->_data;\n\t}", "public function devices()\n {\n $this->db->select('*');\n $this->db->select('*');\n $query = $this->db->get('analytics');\n \n }", "function getAllDevices() {\n //get devices from tdtool\n $devs = shell_exec(\"tdtool --list-devices\");\n\n //turn raw result into array\n $devicelist = array();\n preg_match_all('/type=(?<type>\\w+)\\tid=(?<id>\\d+)\\tname=(?<name>[a-zA-ZæøåÆØÅ\\-]+)\\tlastsentcommand=(?<lastcommand>\\w+)/', $devs, $matches);\n for ($x = 0; $x < count($matches[0]); $x++) {\n $devicelist[] = array(\"id\" => $matches[\"id\"][$x], \"name\" => $matches[\"name\"][$x], \"lastcommand\" => $matches[\"lastcommand\"][$x]);\n }\n return $devicelist;\n}", "public function getAllData() {\n\t\treturn $this->data;\n\t}", "function getAllDataValues() {\n\t\t$conn = Doctrine_Manager::connection(); \n\t\t$resultvalues = $conn->fetchAll(\"SELECT * FROM lookuptypevalue WHERE lookuptypeid = '\".$this->getID().\"' order by lookupvaluedescription asc \");\n\t\treturn $resultvalues;\t\n\t}", "public function get_values()\n {\n $stm = $this->prepare(\"SELECT time, water_level, temperature, ph, dis_oxygen FROM readings WHERE system_id = 1\n ORDER BY TIME DESC\");\n $stm->execute();\n $res = $stm->fetchAll(PDO::FETCH_CLASS); // returns array of objects\n if (count($res) > 0)\n return $res;\n else\n return FALSE;\n }", "function device_get()\n {\n // // Authenticate user (by session)\n // // Check if a user is currently logged in\n if(!$this->session->userdata('LoggedIn')){\n // die(\"Login Required\");\n }\n\n if(!$this->get('id')){\n $this->response(NULL, 400);\n }\n\n // Load the device model\n $this->load->model('device_model');\n \n // Get the required device parameters from the POST data\n $postDevice = $this->input->get('device');\n \n // Get the full device/system information\n $device = $this->device_model->getDeviceInfo( $this->get('id') );\n \n if($device){\n $this->response($device, 200); // 200 being the HTTP response code\n }else{\n $this->response(NULL, 404);\n }\n }", "public function all() {\n return $this->_data;\n }", "public function getAll()\n\t{\n\t\treturn $this->data;\n\t}", "public function getAllFunc(){\n $result = $this->db->query('SELECT * FROM storage');\n while($row = $result->fetchArray()){\n echo $row['name'] . \" \" . $row['value'] . PHP_EOL;\n }\n }", "public function getAll() {\n\t\treturn $this->data;\n\t}", "public function getAllData() {\n\t\treturn $this->_data;\n\t}", "public function getAll() {\n $data=[];\n\n foreach($this->settings AS $name=>$value) {\n $data[$name]=$this->get($name);\n }\n\n return $data;\n }", "public function getValues()\n {\n return $this->getVal('value', []);\n }", "function all()\n\t{\n\t\treturn $this->_data;\n\t}", "public function getValues()\n {\n\n\t\t$record = ProductAttributeValues::whereIn('avid',[1,6])->get();\n\t\t$rec = $record->pluck('pro_att_value');\n\t\treturn $rec;\n }", "public function readValoraciones(){\n $sql='SELECT valoracion, producto.nombre as producto, cliente.nombre as cliente FROM cliente, producto, valoraciones WHERE producto.idProducto=valoraciones.idProducto AND cliente.idCliente=valoraciones.idCliente and producto.idProducto = ?';\n $params=array($this->id);\n return Database::getRows($sql, $params);\n }", "function getDataValues(){\n\t\t$this->getData();\n\t\treturn $this->_dataValues;\n\t}", "private function getDevices()\r\n {\r\n $UDN = $this->info->device->device->UDN;\r\n $data = '<?xml version=\"1.0\"?>\r\n <s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\r\n <s:Body>\r\n <u:GetEndDevices xmlns:u=\"urn:Belkin:service:bridge:1\">\r\n <ReqListType>SCAN_LIST</ReqListType>\r\n <DevUDN>'.$UDN.'</DevUDN>\r\n </u:GetEndDevices>\r\n </s:Body>\r\n </s:Envelope>';\r\n\r\n $headers_array = array(\r\n 'Content-type: text/xml; charset=\"utf-8\"',\r\n 'SOAPACTION: \"urn:Belkin:service:bridge:1#GetEndDevices\"',\r\n 'Accept: ',\r\n );\r\n $url = \"http://\".WEMO_IP.\":\".WEMO_PORT.\"/upnp/control/bridge1\";\r\n $response = $this->sendCurl($url,$data,$headers_array);\r\n\r\n // Fix the xml\r\n $response = str_replace('&lt;', '<', $response);\r\n $response = str_replace('&gt;', '>', $response);\r\n $response = str_replace('&quot;', '\"', $response);\r\n $response = str_replace(':', '', $response);\r\n // To be valid xml, the xml string must be at the front\r\n $response = str_replace('<?xml version=\"1.0\" encoding=\"utf-8\"?>', '', $response);\r\n $response = '<?xml version=\"1.0\" encoding=\"utf-8\"?>'.$response;\r\n\r\n // return $response;\r\n $response = $this->parseXML($response)->sBody->uGetEndDevicesResponse->DeviceLists\r\n ->DeviceLists->DeviceList->DeviceInfos;\r\n return $response;\r\n }", "public function getAll()\n {\n return $this->_info;\n\n }", "public function getData()\n\t{\n\t\treturn array_merge($this->values, $this->rest, array('id' => $this->getID()));\n\t}", "function getAll(){\r\n \treturn $this->data;\r\n }", "public function getAll() {\n return $this->data;\n }", "public function getAll()\n {\n return $this->data;\n }", "public function getAll()\n {\n return $this->data;\n }", "public function getValuesList(){\n return $this->_get(1);\n }", "public function getAll() {\n $query = $this->db->get('tb_medida_valor');\n return $query->result();\n }", "public function getDeployedDevices(){\r\n global $pdo;\r\n $select = $pdo->prepare(\"SELECT * FROM devices LEFT JOIN device_installations \r\n \t\tON devices.id=device_installations.device_id WHERE device_installations.status=1\");\r\n \t$select->execute();\r\n\t$devices=array();\r\n\twhile($row = $select->fetch(PDO::FETCH_ASSOC)){\r\n\t\t$devices[$row['device_id_string']]=$row;\r\n\t}\r\n\treturn $devices;\r\n\r\n}", "public function get_data($serial = '')\n {\n\n $out = array();\n $temp = array();\n if (! $this->authorized()) {\n $out['error'] = 'Not authorized';\n } else {\n $bluetooth = new bluetooth_model;\n foreach ($bluetooth->retrieve_records($serial) as $prefs) {\n $temp[] = $prefs->rs;\n }\n foreach ($temp as $value) {\n $out[$value['device_type']] = $value['battery_percent'];\n }\n }\n\n $obj = new View();\n $obj->view('json', array('msg' => $out));\n }", "public function getMultipleData();", "public function getData()\n {\n return $this->parameters->all();\n }", "function getDeviceEntries($serialNum) {\n\t\ttry {\n\t\t\t$query = \"SELECT c.cycleID, c.startSalinity, c.startTempIn, c.startTempOut, c.powerSupply AS 'startPowerSupply', c.startCell1,\n\t\t\t\t\t\t\tc.startCell2, c.startCell3, c.startCell4, c.totalCurrent AS 'startTotalCurrent', c.startDateTime,\n\t\t\t\t\t e.entryID, TIME_TO_SEC(e.seconds) AS 'seconds', e.salinity, e.flowrate, e.dutyCycle,\n\t\t\t\t\t e.tempIn, e.tempOut, e.powerSupply, e.cell1, e.cell2, e.cell3, e.cell4, e.totalCurrent\n\t\t\t\t\t\tFROM CYCLE c\n\t\t\t\t\t\tJOIN DEVICE\td ON d.deviceID = c.deviceID\n\t\t\t\t\t LEFT OUTER JOIN ENTRY e ON e.cycleID = c.cycleID\n\t\t\t\t\t WHERE d.serialNum = :serialNum\n\t\t\t\t\t ORDER BY c.startDateTime\n\t\t\t\t\t LIMIT 2000;\";\n\t\t\t$sth = database()->prepare($query);\n\t\t\t$sth->bindValue(':serialNum', $serialNum, PDO::PARAM_INT);\n\t\t\t$sth->execute();\n\n\t\t\treturn $sth->fetchall();\n\t\t} catch (Exception $e) {\n\t\t\treturn errorMessage($e->getMessage());\n\t\t}\n\t}", "public function queryAll(){\n\t\t$sql = 'SELECT * FROM patient_info';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "public function all(): array\n {\n return $this->values;\n }", "public function values();", "public function values();", "public function values();", "public function values();", "public function values();", "public function getAll()\n {\n if (!isset($this->data)) {\n $this->init();\n }\n\n return $this->data;\n }", "public function queryValues(Device $device)\n {\n $values = new TimeBoundArray();\n\n $probes = $device->getProbes();\n\n /** @var Probe $probe */\n foreach ($probes as $probe) {\n $id = $probe->getId();\n\n if (!isset($this->lastValues[$id])) {\n $this->lastValues[$id] = 0;\n }\n\n $delta = rand(0, 10) / 10;\n $values->set($id, $this->lastValues[$id] + $delta);\n $this->lastValues[$id] = $values->get($id);\n }\n\n return [$values];\n }", "public function getDevice(Request $request)\n {\n $onlineDevices = Device::where([['MANUFACTURER_ID',1],\n ['ONLINE_FLAG',1]])->get()->count();\n $offlineDevices = Device::where([['MANUFACTURER_ID',1],\n ['ONLINE_FLAG',0]])->get()->count();\n $devices = array(\n ['status' => 'Online Device/s', 'count' => $onlineDevices,\n 'color' => '#28a745'],\n ['status' => 'Offline Device/s', 'count' => $offlineDevices,\n 'color' => '#cc0000'],\n );\n return $devices;\n }", "public function fetch()\n\t{\n\t\treturn $this->values;\n\t}", "public function readAll( ) {\n\n\t\treturn $this->_data;\n\t}", "public function getAll(): array\n {\n return $this->localValues;\n }", "public function getValues(): array;", "public function getValues(): array;", "public function get_values(){ return $this->values; }", "public function findAll()\n {\n return $this->find('/admin/v1/phones', '\\\\DuoAuth\\\\Devices\\\\Phone');\n }", "function getValues()\n {\n return $this->type->getValues();\n }", "public function all_att_value()\n\t{\n\t\t$rest_id=$this->session->userdata('user_rest_uns');\n\t\t$dbResult = $this->db->query(\"SELECT * FROM `food_att_value` WHERE food_att_value.rest_id= ? AND food_att_value.f_att_v_deleted=? ORDER BY food_att_value.f_att_v_id desc\", array($rest_id,0));\n\t\tif($dbResult->num_rows()>0)\n\t\t{\n\t\t\treturn $dbResult;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t}", "public static function getAll() {}", "public function getAllFull() {\n $data=[];\n\n foreach($this->settings AS $name=>$value) {\n $data[$name]=$this->getFull($name);\n }\n\n return $data;\n }", "public function Values()\n {\n return $this->values;\n }", "public function get_devices_almacen_all() {\n\n $query = $this->db->select('devices_almacen.*, device.*')\n ->join('device','devices_almacen.id_device = device.id_device')\n ->or_where('devices_almacen.status','En stock')\n ->or_where('devices_almacen.status','En stock')\n ->order_by('device.device')\n ->order_by('devices_almacen.imei desc')\n ->get('devices_almacen');\n\n return $query->result();\n }", "public static function values()\n {\n return self::$values;\n }", "public function all(){\n $values = Values::all([\n 'id', 'value'\n ]);\n\n return Response::success($values);\n }", "function GetAllDataMDDevice($param = [])\n {\n if (isset($param['search_value']) && $param['search_value'] != '') {\n $this->db->group_start();\n $i = 0;\n foreach ($param['search_field'] as $row => $val) {\n if ($val['searchable'] == 'true') {\n if ($i == 0) {\n $this->db->like('LCASE(`'.$val['data'].'`)', strtolower($param['search_value']));\n } else {\n $this->db->or_like('LCASE(`'.$val['data'].'`)', strtolower($param['search_value']));\n }\n $i++;\n }\n }\n $this->db->group_end();\n }\n if (isset($param['row_from']) && isset($param['length'])) {\n $this->db->limit($param['length'], $param['row_from']);\n }\n if (isset($param['order_field'])) {\n if (isset($param['order_sort'])) {\n $this->db->order_by($param['order_field'], $param['order_sort']);\n } else {\n $this->db->order_by($param['order_field'], 'desc');\n }\n } else {\n $this->db->order_by('IMEI', 'desc');\n }\n $data = $this->db\n ->select('master_device_only.*')\n ->where('master_device_only.is_delete',0)\n ->get('master_device_only')\n ->result_array();\n\n return $data;\n }", "public function getAllNoneGuestDevices()\n {\n $sql = \"SELECT * FROM `devices` LEFT JOIN users ON (devices.user_id = users.user_id) WHERE users.user_id != 1\";\n\t$query = mysqli_query($this->db_connection, $sql) or trigger_error(mysql_error().\" \".$sql);\n\t$result_data_array = array();\n\twhile($row = mysqli_fetch_assoc($query))\n\t{\n $result_data_array[] = $row;\n }\n return $result_data_array;\n }", "function device_update_get()\n {\n // Only the TP link smart plugs support broadcast scanning so far\n $deviceParams = array('id' => $this->get('id'), 'model' => 'HS110');\n $this->load->library('drivers/hs1xx', $deviceParams);\n\n print_r($this->hs1xx->updateDevices());\n }", "public static function allTapgadgets() {\n $query = \"SELECT SUBSTRING(tapdevice.tapdevice_guid, 1, 10) AS true_guid,\n COUNT(tapdevice.tapdevice_guid) AS num_incs,\n `ble_board`.base36_identifier AS b36_id\n FROM tapdevice\n LEFT JOIN `ble_board`\n ON SUBSTRING(tapdevice.tapdevice_guid, 1, 10)=`ble_board`.vindaloo_board_identifier\n GROUP BY SUBSTRING(tapdevice.tapdevice_guid, 1, 10);\";\n\n $devices = DB::select(DB::raw($query));\n\n return $devices;\n }", "public function getValues()\n {\n return $this->values;\n }", "public function getValues()\n {\n return $this->values;\n }", "public function getValues()\n {\n return $this->values;\n }", "public function getValues()\n {\n return $this->values;\n }" ]
[ "0.70851636", "0.69093764", "0.68112594", "0.67724496", "0.676738", "0.6767131", "0.6728665", "0.6648627", "0.6645937", "0.65865904", "0.65835595", "0.65835595", "0.65132505", "0.65132505", "0.64975464", "0.64951086", "0.6411156", "0.63590866", "0.6266051", "0.62638247", "0.6244592", "0.6242498", "0.6242498", "0.6242498", "0.6196917", "0.6160741", "0.61551136", "0.61278856", "0.61168516", "0.61128736", "0.61128736", "0.61128736", "0.61094344", "0.60953933", "0.60953933", "0.60953933", "0.6082185", "0.6079939", "0.6067374", "0.60541576", "0.6049537", "0.6047695", "0.60165167", "0.6015461", "0.6015319", "0.60110873", "0.6004995", "0.6001268", "0.5999418", "0.59906185", "0.59874296", "0.59587073", "0.5946094", "0.59357077", "0.59322274", "0.59312606", "0.5927405", "0.59269327", "0.59124035", "0.59064806", "0.59064806", "0.5901915", "0.5892925", "0.58857566", "0.5855677", "0.5841298", "0.5838914", "0.5828858", "0.5824517", "0.5820622", "0.5811202", "0.5811202", "0.5811202", "0.5811202", "0.5811202", "0.57915026", "0.5771634", "0.5753867", "0.57536227", "0.5752416", "0.5746929", "0.57440066", "0.57440066", "0.573079", "0.5724885", "0.5723251", "0.5696524", "0.569584", "0.5690895", "0.5677732", "0.56657636", "0.56652546", "0.56606734", "0.5660233", "0.56599796", "0.56590986", "0.56540596", "0.5652664", "0.5652664", "0.5652664", "0.5652664" ]
0.0
-1
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 }", "static function addHistory( $order_id, $action, $msg, $details = array(), $success = true ) {\n\t\tglobal $wpdb;\n\n\t\t$table = $wpdb->prefix . self::TABLENAME;\n\n\t\t// build history record\n\t\t$record = new stdClass();\n\t\t$record->action = $action;\n\t\t$record->msg = $msg;\n\t\t$record->details = $details;\n\t\t$record->success = $success;\n\t\t$record->time = time();\n\n\t\t// load history\n\t\t$history = $wpdb->get_var( \"\n\t\t\tSELECT history\n\t\t\tFROM $table\n\t\t\tWHERE order_id = '$order_id'\n\t\t\" );\n\n\t\t// init with empty array\n\t\t$history = maybe_unserialize( $history );\n\t\tif ( ! $history ) $history = array();\n\n\t\t// prevent fatal error if $history is not an array\n\t\tif ( ! is_array( $history ) ) {\n\t\t\tWPLA()->logger->error( \"invalid history value in OrdersImporter::addHistory(): \".$history);\n\n\t\t\t// build history record\n\t\t\t$rec = new stdClass();\n\t\t\t$rec->action = 'reset_history';\n\t\t\t$rec->msg = 'Corrupted history data was cleared';\n\t\t\t$rec->details = array();\n\t\t\t$rec->success = 'ERROR';\n\t\t\t$rec->time = time();\n\n\t\t\t$history = array();\n\t\t\t$history[] = $record;\n\t\t}\n\n\t\t// add record\n\t\t$history[] = $record;\n\n\t\t// update history\n\t\t$history = serialize( $history );\n\t\t$wpdb->query( \"\n\t\t\tUPDATE $table\n\t\t\tSET history = '$history'\n\t\t\tWHERE order_id = '$order_id'\n\t\t\" );\n\n\t}", "public function created(History $history)\n {\n //\n }", "protected function loadUniqueStatHistory()\n\t{\n\t\tif (!$this->stat_history && $this->getApplicationID())\n\t\t{\n\t\t\t$this->stat_history = $this->findUniqueStatHistoryByTrackApp(\n\t\t\t\t$this->getTrackKey(),\n\t\t\t\t$this->getApplicationID()\n\t\t\t);\n\t\t}\n\t}", "function createHistory(RosaSymbol $symbol) {\n $symbolName = $symbol->getName();\n $startDay = (int)$symbol->getHistoryStartM1('U'); // FXT\n $startDay -= $startDay%DAY; // 00:00 FXT Starttag\n $today = ($today=fxTime()) - $today%DAY; // 00:00 FXT aktueller Tag\n\n\n // MT4-HistorySet erzeugen\n $config = Application::getConfig();\n $directory = $config['app.dir.data'].'/history/mt4/'.$config['rt.metatrader.server-name'];\n $hstSet = HistorySet::create($symbol, $format=400, $directory);\n\n\n // Gesamte Zeitspanne tageweise durchlaufen\n for ($day=$startDay, $lastMonth=-1; $day < $today; $day+=1*DAY) {\n $shortDate = gmdate('D, d-M-Y', $day);\n $month = (int) gmdate('m', $day);\n if ($month != $lastMonth) {\n echoPre('[Info] '.gmdate('M-Y', $day));\n $lastMonth = $month;\n }\n\n // ausser an Wochenenden: RT-History verarbeiten\n if (!isWeekend($day)) {\n if (is_file($file=getVar('rtFile.compressed', $symbolName, $day))) {} // wenn komprimierte RT-Datei existiert\n else if (is_file($file=getVar('rtFile.raw' , $symbolName, $day))) {} // wenn unkomprimierte RT-Datei existiert\n else {\n echoPre('[Error] '.$symbolName.' Rosatrader history for '.$shortDate.' not found');\n return false;\n }\n // Bars einlesen und der MT4-History hinzufuegen\n $bars = Rost::readBarFile($file, $symbolName);\n $hstSet->appendBars($bars);\n }\n Process::dispatchSignals(); // check for Ctrl-C\n }\n $hstSet->close();\n\n echoPre('[Ok] '.$symbolName);\n return true;\n}", "function updateUpdateHistoryTable() {\n try {\n $update_history_table = TABLE_PREFIX . 'update_history';\n\n DB::execute(\"ALTER TABLE $update_history_table CHANGE created_on created_on DATETIME NULL\");\n DB::execute(\"ALTER TABLE $update_history_table ADD INDEX (created_on)\");\n\n $versions = DB::execute(\"SELECT version, COUNT(id) AS 'row_count' FROM $update_history_table GROUP BY version\");\n if($versions) {\n foreach($versions as $version) {\n $duplicates = (integer) $version['row_count'] - 1;\n\n if($duplicates > 0) {\n DB::execute(\"DELETE FROM $update_history_table WHERE version = ? ORDER BY created_on DESC LIMIT $duplicates\", $version['version']);\n } // if\n } // foreach\n } // if\n\n DB::execute(\"ALTER TABLE $update_history_table ADD UNIQUE INDEX (version)\");\n\n return true;\n } catch(Exception $e) {\n return $e->getMessage();\n } // try\n }", "public function actionHistory()\n {\n $this->pageTitle = 'Your Viewing History';\n\n $data['pageHistory'] = History::model()->all('page');\n $data['pdfHistory'] = History::model()->all('pdf');\n\n $this->render('//content/history', $data);\n }", "public function addChatHistory(Request $request) {\n echo $request->history;\n echo $request->time;\n }", "public function addStatByDevice($deviceId) {\n $jssdk = $this->sdk;\n\n $statInfo = $jssdk->statDevice($deviceId);\n $statlength=count($statInfo);\n for($y=0;$y<$statlength;$y++) {\n $stat = $statInfo[$y];\n $ftime = date(\"Y-m-d h:i:s\", $stat->ftime);\n\n $sql = 'select ftime from cj_statisticsweixin WHERE ftype=0 AND id='.$deviceId.'AND ftime=\"'.$ftime.'\"';\n $jssdk->printMe(\"addStatByDevice() sql1: \",$sql);\n $query = mysql_query($sql);\n if(mysql_num_rows($query)==0){\n $sql = \"INSERT INTO cj_statisticsweixin (id, ftime, ftype, click_pv, click_uv,shake_pv,shake_uv)\n VALUES($deviceId,'$ftime',0,$stat->click_pv,$stat->click_uv,$stat->shake_pv,$stat->shake_uv)\";\n $jssdk->printMe(\"addStatByDevice() sql2: \",$sql);\n $query = mysql_query($sql);\n if (!$query) die('Error: ' . mysql_error());\n $jssdk->printMe(\"msg\",\"1 record added to statistics_weixin\");\n }\n }\n }", "public function modifyHistory(array $inputArray = array(), $history = '')\r\n {\r\n try {\r\n if (empty($inputArray)) {\r\n return;\r\n }\r\n \r\n if (empty($history)) {\r\n $history = new \\Cx\\Core_Modules\\LinkManager\\Model\\Entity\\History;\r\n }\r\n $history->updateFromArray($inputArray);\r\n \r\n $this->em->persist($history);\r\n $this->em->flush();\r\n } catch (\\Exception $e) {\r\n $this->updateCrawlerStatus('', self::RUN_STATUS_INCOMPLETE);\r\n die('History Query ERROR!'.$e);\r\n }\r\n }", "public function initHistorys()\n\t{\n\t\t$this->collHistorys = array();\n\t}", "public function change()\n {\n $this->table('change_history')\n ->setComment('数据修改记录')\n ->setEngine('InnoDB')\n ->addColumn('model_type','string', ['comment' => '数据模型类名'])\n ->addColumn('model_id', 'integer', ['comment' => '数据ID'])\n ->addColumn('before', 'text', ['comment' => '修改前内容'])\n ->addColumn('after', 'text', ['comment' => '修改后内容'])\n ->addColumn('method', 'string', ['comment' => '请求方式'])\n ->addColumn('url', 'text', ['comment' => '请求url'])\n ->addColumn('param', 'text', ['comment' => '请求参数'])\n ->addFingerPrint()\n ->create();\n }", "private function getHistory()\n {\n $history = [];\n\n foreach ($this->getResponse()->data as $k => $v) {\n $history[$k]['tanggal'] = Utils::setDate($v->Tanggal);\n\n switch ($v->StatusInternal) {\n case 'Baru':\n $history[$k]['posisi'] = preg_replace('/Diterima di Sales Counter (.*)/', '$1', $v->TrackStatusNama);\n break;\n\n case 'Manifest Pickup':\n $posisi = preg_replace('/Di pickup oleh petugas (.*)/', '$1', $v->TrackStatusNama);\n $history[$k]['posisi'] = $posisi;\n $this->kotaPengirim = strtoupper($posisi);\n break;\n\n case 'Serah Terima Pickup':\n $history[$k]['posisi'] = preg_replace('/Diterima di fasilitas (.*)/', '$1', $v->TrackStatusNama);\n break;\n\n case 'Moda Angkutan':\n $history[$k]['posisi'] = preg_replace('/Pengiriman dari (.*) ke (.*)/', '$1', $v->TrackStatusNama);\n break;\n\n case 'Serah Terima Surat Muatan':\n $history[$k]['posisi'] = preg_replace('/Diterima di fasilitas (.*)/', '$1', $v->TrackStatusNama);\n break;\n\n case 'Serah Terima Manifest':\n $history[$k]['posisi'] = preg_replace('/Diterima di fasilitas (.*)/', '$1', $v->TrackStatusNama);\n break;\n\n case 'Surat Jalan Kurir':\n $history[$k]['posisi'] = preg_replace('/Proses pengantaran oleh kurir (.*), (.*)/', '$1', $v->TrackStatusNama);\n break;\n\n case 'Terkirim/Diterima':\n $history[$k]['posisi'] = 'Diterima';\n $this->tanggalTerima = $v->Tanggal;\n $this->namaPenerima = preg_replace('/Diterima oleh (.*)\\((.*)/', '$1', $v->TrackStatusNama);\n break;\n\n default:\n $history[$k]['posisi'] = null;\n break;\n }\n\n $history[$k]['message'] = $v->TrackStatusNama;\n }\n\n return $history;\n }", "function push_historial($usuario, $operacion){\n\n $fecha = Carbon::now();\n\n $so = getOS();\n\n $host = gethostname();\n\n $ip = \\Request::ip();\n\n \\DB::table('historials')\n ->insert(\n array(\n \n 'ip' => $ip,\n 'so' => $host,\n 'operacion' => $operacion,\n 'fecha' => $fecha,\n 'user_id' => $usuario,\n )\n );\n}", "public function Insert_WO_Resource_Change_history($data)\n {\n $this->db->insert('wo_resource_change_history', $data);\n return 1;\n }", "function addToAuditLog($jsonArray, $oldinfo, $id, $type ){\n\t\t\t\n\t\t\t$array = array(); \n\n\t\t\tforeach ($jsonArray as $key => $value) {\n\n\t\t\t\t\t$k = $key;\n\t\t\t\t\tif ($k == 'Reference') {continue; } //skip the reference\n\t\t\t\t\tif ($k == 'Comments') {continue; } //skip the reference\n\t\t\t\t\tif ($k == 'Name'){ $k = 'FullName'; } //cuz Name is stored as FullName in db\n\n\t\t\t\t\t//compare the json assoc array value and the old db value\n\t\t\t\t\tif ($oldinfo[0][$k] != $value){\n\t\t\t\t\t\t$delta = new DELTA();\n\n\t\t\t\t\t\t$delta->FieldName = $k;\n\t\t\t\t\t\t$delta->OldValue = $oldinfo[0][$k];\n\t\t\t\t\t\t$delta->NewValue = $value;\n\n\t\t\t\t\t\tarray_push($array, $delta);\n\n\t\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tif (count($array) > 0 ){\n\t\t\t\t//create the database object\n\t\t\t\t$database = createDb();\n\n\t\t\t\t$database->insert(\"AuditLog\", [\n\t\t\t\t\t\"ChangeText\" => json_encode($array),\n\t\t\t\t\t\"Type\"\t\t\t=>\t$type,\n\t\t\t\t\t\"Id\"\t\t\t=>\t$id\n\t\t\t\t]);\n\t\t\t}\n\n\t}", "public static function history($who,$table,$type,$where){\n $history = DB::select(\"select history from $table where $where\");\n $history = MD::row_array($history);\n // mengecek history ada atau tidak \n // untuk memulai dari awal atau menambah\n if($history['history']==null){\n $history = array();\n }else{\n $history = json_decode($history['history']);\n }\n $object = new \\stdClass();\n $object->status = $type;\n $object->by = $who;\n $object->time = date(\"Y-m-d H:i:s\");\n array_push($history,$object);\n $arr = [\n 'history'=>json_encode($history)\n ];\n // where string \"id=2\"\n // memisahkan string dengan =\n $where = explode(\"=\",$where);\n DB::table($table)->where($where[0],$where[1])->update($arr);\n }", "public function add_device_token_detail($data) {\n # Delete the old device entry \n $this->db->where(\"device_id\", $data['device_id']);\n $this->db->delete(\"device_detail\");\n\n #==========================================================\n # insert the device detail\n $this->db->insert(\"device_detail\", $data);\n }", "public function fetchHistory(): array;", "function write_transfer_history($transfer){\r\n\tforeach($transfer as $key => $value){\r\n\t\t$values[] = array(\"col\" => $key, \"value\" => $value);\r\n\t}\r\n\t$ID = uli_insert_record('transfers', $values);\r\n\tif ($ID){return TRUE;}\r\n\telse {return FALSE;}\r\n}", "public function add_history($id, $uid,$id6){\n $q = $this->db->where('01_id', $uid)\n ->where('07_status', 0)\n ->get('watch_history_07');\n $resq = $q->row_array();\n if(!isset($resq)){\n\n $price = $this->db->where('06_id', $id6)\n ->get('campaign_rules_06');\n $get_price = $price->row_array();\n\n $cid = $this->db->where('05_id', $id)\n ->get('campaign_05');\n $company_id = $cid->row_array();\n\n $get_balance = $this->db->select('04_balance_left')\n ->where('04_id', $company_id['04_id'])\n ->get('company_04');\n $balance = $get_balance->row_array();\n $balance = $balance['04_balance_left'];\n \n $remaining_bal = $this->db->select('05_remaining_budget')\n ->where('05_id', $id)\n ->get('campaign_05');\n $remaining_budget = $remaining_bal->row_array();\n $remaining_budget = $remaining_budget['05_remaining_budget'];\n \n\n if($balance >= $get_price['06_price'] && $remaining_budget>=$get_price['06_price']){\n \n $remaining_budget = $remaining_budget - $get_price['06_price'];\n $this->db->where('05_id', $id)->set('05_remaining_budget', $remaining_budget)->update('campaign_05');\n \n $reserve_bal = $balance - $get_price['06_price'];\n $this->db->where('04_id', $company_id['04_id'])->set('04_balance_left', $reserve_bal)->update('company_04');\n\n $data = array(\n '01_id' =>$uid,\n '05_id' =>$id,\n '07_start_time' =>0,\n '07_video_seconds' =>0,\n '07_pay_me' =>0,\n '07_status' =>0,\n '07_amount' =>$get_price['06_price'],\n '07_date' => date('Y-m-d H:i:s'),\n );\n $query = $this->db->insert('watch_history_07', $data);\n if($query){\n return \"true\";\n }else{\n return \"false\";\n }\n }\n else{\n return '-1';\n }\n }\n else{\n return $resq['07_id'];\n }\n }", "public function load($id) {\n\t\t$bObject = R::load(self::$tbl, $id);\n\t\tif ($bObject->id > 0) {\n\t\t\t$object = $this->toObject($bObject);\n\t\t}\n\t\treturn isset($object) ? $object : new DeviceHistory();\n\t}", "public function updateLog () {\n\t\t$this->log = json_encode($this->SYN_Log);\n\t\t$this->save();\n\t}", "public function addHistoryStatus(NostoOrderStatusInterface $status)\n {\n $this->historyStatuses[] = $status;\n }", "function simple_history_add($args) {\n\n\t$defaults = array(\n\t\t\"action\" => null,\n\t\t\"object_type\" => null,\n\t\t\"object_subtype\" => null,\n\t\t\"object_id\" => null,\n\t\t\"object_name\" => null,\n\t\t\"user_id\" => null,\n\t\t\"description\" => null\n\t);\n\n\t$args = wp_parse_args( $args, $defaults );\n\n\t$action = esc_sql($args[\"action\"]);\n\t$object_type = esc_sql($args[\"object_type\"]);\n\t$object_subtype = esc_sql($args[\"object_subtype\"]);\n\t$object_id = esc_sql($args[\"object_id\"]);\n\t$object_name = esc_sql($args[\"object_name\"]);\n\t$user_id = $args[\"user_id\"];\n\t$description = esc_sql($args[\"description\"]);\n\n\tglobal $wpdb;\n\t$tableprefix = $wpdb->prefix;\n\tif ($user_id) {\n\t\t$current_user_id = $user_id;\n\t} else {\n\t\t$current_user = wp_get_current_user();\n\t\t$current_user_id = (int) $current_user->ID;\n\t}\n\n\t// date, store at utc or local time\n\t// anything is better than now() anyway!\n\t// WP seems to use the local time, so I will go with that too I think\n\t// GMT/UTC-time is: date_i18n($timezone_format, false, 'gmt')); \n\t// local time is: date_i18n($timezone_format));\n\t$localtime = current_time(\"mysql\");\n\t$sql = \"\n\t\tINSERT INTO {$tableprefix}simple_history \n\t\tSET \n\t\t\tdate = '$localtime', \n\t\t\taction = '$action', \n\t\t\tobject_type = '$object_type', \n\t\t\tobject_subtype = '$object_subtype', \n\t\t\tuser_id = '$current_user_id', \n\t\t\tobject_id = '$object_id', \n\t\t\tobject_name = '$object_name',\n\t\t\taction_description = '$description'\n\t\t\";\n\t$wpdb->query($sql);\n}", "public function actionCron_jobs_history()\n {\n $request = Yii::app()->request;\n $model = new ConsoleCommandListHistory('search');\n $model->unsetAttributes();\n\n $model->attributes = (array)$request->getQuery($model->modelName, array());\n \n $this->setData(array(\n 'pageMetaTitle' => $this->data->pageMetaTitle . ' | '. Yii::t('cronjobs', 'View cron jobs history'),\n 'pageHeading' => Yii::t('cronjobs', 'View cron jobs history'),\n 'pageBreadcrumbs' => array(\n Yii::t('cronjobs', 'Cron jobs history'),\n )\n ));\n\n $this->render('cron-jobs-history', compact('model'));\n }", "public function onUpdateRecord()\n {\n $this->updated = new \\DateTime();\n $this->rev++;\n }", "public function setEmployeeHistory()\n {\n \ttry {\n \n $this->employeeHistory->setEmployeeHistory($this->request->ipaddress, $this->request->url, $this->request->date);\n\n return json_encode(['status' => true, 'message' => 'Added a new Employee visited URL']);\n } catch(Exception $e) {\n // dd($e);\n return json_encode(['status' => false, 'message' => $e->getMessage()]);\n }\n }", "abstract protected function populateEntry(HistoryEntry $entry);", "function history() {\n if ($this->getRequestMethod() != \"GET\") {\n $this->response('', 406);\n }\n $id = (int)$this->_request['user_id'];\n $auth = $this->getAuthorization();\n if (!$this->validateAuthorization($id, $auth)) {\n $this->response('', 400);\n }\n\n if ($id > 0) {\n $query = \"select * from videos where id in (select video_id from history where user_id=$id group by video_id order by view_date desc);\"; \n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n if($r->num_rows > 0) {\n $result = array();\n while ($row = $r->fetch_assoc()) {\n $result[] = $row;\n } \n $this->response(json_encode($result), 200); \n } else {\n $this->response('',204);\n }\n } else {\n $this->response('', 400);\n }\n }", "public function getStatusHistories();", "public function getNewUniqueStatHistory()\n\t{\n\t\treturn $this->new_stat_history;\n\t}", "public function actionHistory($id)\n\t\t{\n\t\t\t\t$model = $this->findModel($id);\n\n\t\t\t\t$query = new Query();\n\t\t\t\t$orderHistory = new ActiveDataProvider([\n\t\t\t\t\t\t'query' => OrderHistory::find()->where([\n\t\t\t\t\t\t\t\t'order_id' => $model->order_id,\n\t\t\t\t\t\t\t\t// 'attribute' => 'order_status_id'\n\t\t\t\t\t\t]),\n\t\t\t\t\t\t'sort' => [\n\t\t\t\t\t\t\t\t'defaultOrder' => [\n\t\t\t\t\t\t\t\t\t\t// 'attribute' => SORT_ASC,\n\t\t\t\t\t\t\t\t\t\t'create_time' => SORT_ASC\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'pagination' => [\n\t\t\t\t\t\t\t\t'pageSize' => 20,\n\t\t\t\t\t\t],\n\t\t\t\t]);\n\n\t\t\t\treturn $this->render('history', [\n\t\t\t\t\t\t'model' => $model,\n\t\t\t\t\t\t'orderHistory' => $orderHistory,\n\t\t\t\t\t\t'subData' => $this->subData\n\t\t\t\t]);\n\t\t}", "protected function createHistoryRecord() {\n\t\t/** @var HasHistory $model */\n\t\t$model = $this->model;\n\n\t\t$history = HistoryModel::create();\n\t\t$history->save();\n\n\t\t$model->setHistoryId($history->getId());\n\n\t\treturn $history;\n\t}", "private function _updateHistory($object_uid, $mod_ts, $action)\n {\n global $registry;\n\n if (!isset($registry)) {\n return;\n }\n\n $app = $registry->getApp();\n if (empty($app) || is_a($app, 'PEAR_Error')) {\n /**\n * Ignore the history if we are not in application\n * context.\n */\n return $app;\n }\n\n if (!class_exists('Horde_History')) {\n return;\n }\n\n /* Log the action on this item in the history log. */\n try {\n $GLOBALS['injector']->getInstance('Horde_History')\n ->log($app . ':' . $this->_folder->getShareId() . ':' . $object_uid,\n array('action' => $action, 'ts' => $mod_ts),\n true);\n } catch (Horde_Exception $e) {\n }\n }", "public function saveNew_history($data)\n {\n $this->db->insert('historialDeposito', $data);\n return $this->db->insert_id();\n }", "public function addLog($data);", "public function getHistoryDeviceData($device_name, $token)\n {\n\n if($this->tokenizer->isValidDeviceToken($token, $device_name) == false) {\n print json_encode(array('error'=>true));\n return 401;\n }\n\n $result = [];\n $metrics = [];\n array_push($result, $this->getHistory($device_name));\n\n for ($i = 0; $i < $result[0]['total_documents']; $i++) {\n array_push($metrics, $result[0]['result'][$i]['data']['Merania']);\n }\n\n print json_encode(array('data'=>$metrics));\n return 200;\n }", "function get_history() {\n\t\treturn $this->history;\n\t}", "public function addEntry(\\Yana\\Db\\Ddl\\Logs\\AbstractLog $log)\n {\n array_unshift($this->changes, $log);\n }", "protected function populateDatastreamInfo() {\n $this->datastreamHistory = $this->getDatastreamHistory();\n $this->datastreamInfo = $this->datastreamHistory[0];\n }", "public function historiesCreate(Request $request)\n {\n $user = Auth::user();\n\n $emotion = $request->input('emotion_id');\n\n $h = $user->histories()->create([\n 'description' => $request->input('description'),\n 'history_date' => $request->input('history_date'),\n 'city_id' => $request->input('city'),\n 'emotion_id' => $emotion,\n 'active' => true\n ]);\n\n $histories_to_connect = \\App\\History::whereHas('emotion', function ($query) use($emotion, $user) {\n return $query->where('id', '=', $emotion)->where('user_id', '!=', $user->id);\n })->inRandomOrder()->limit(3)->get();\n\n $h->histories()->saveMany($histories_to_connect);\n\n $histories_to_connect->each(function ($item, $key) use($h) {\n $item->histories()->save($h);\n $item->refresh();\n $item->load('histories');\n });\n\n $h->refresh();\n\n $h->load('histories');\n\n return $h;\n }", "private function addUndo()\n\t{\n\t\t// Check, if the undo function was called (so no new entry to the undo array must be added) and if there were changes\n\t\tif ((!$this->undoCalled) && ($this->undoMd5 != $this->getUndoMd5()))\n\t\t{\n\t\t\t// Build a new entry\n\t\t\t$undoStep = array();\n\t\t\t$undoStep['wp'] = $this->wantedPartitioning;\n\t\t\t$undoStep['ps'] = $this->partitionSteps;\n\n\t\t\t// and add it\n\t\t\tarray_push($this->undoArray, $undoStep);\n\t\t\t$this->updateUndoMd5();\n\t\t}\n\t}", "public function setPostHistory($post)\n {\n session()->push('postsHistory', $post );\n }", "public function create()\n {\n $devices = Device::all();\n $users = User::all();\n return view('history.create', compact('devices', 'users'));\n }", "public function recordParentTopicsHistory($new_topic_list, $old_topic_list = null) {\n $user = Auth::user();\n\n // not old_topic_list parameters\n if (!is_array($old_topic_list)) {\n $old_topic_list = $this->parent_topics()->lists('parent_topic_id')->all();\n }\n\n $new = array_diff($new_topic_list, $old_topic_list);\n $delete = array_diff($old_topic_list, $new_topic_list);\n // set remove topics history\n foreach ($delete as $topic_id) {\n $this->histories()->save(History::create([\n 'user_id' => $user->id,\n 'type' => 4,\n 'text' => $topic_id\n ]));\n }\n // set new topics history\n foreach ($new as $topic_id) {\n $this->histories()->save(History::create([\n 'user_id' => $user->id,\n 'type' => 3,\n 'text' => $topic_id\n ]));\n }\n }", "public function add(Array $intend)\r\n\t\t{\r\n\t\t\t\t$Db = Db::classCache();\r\n\t\t\t\t$Session = Session::classCache();\r\n\r\n\t\t\t\t//history valueType kolonu\r\n\t\t\t\t$valueType = $intend['historyValueType'];\r\n\t\t\t\t/**\r\n\t\t\t\t * historyIntend icin cloumns degiskenini hazirlamak uzere \r\n\t\t\t\t * history tablosunun kolonlari aliniyor ve string haline getiriliyor\r\n\t\t\t\t */\r\n\t\t\t\t$columns = \"`\" . implode(\"`,`\", $Db->readTableColumns('history')) . \"`\";\r\n\t\t\t\t/**\r\n\t\t\t\t * historyIntend icin values degiskenini hazirlamak uzere\r\n\t\t\t\t * degiskenler toplaniyor ve values'a ekleniyor\r\n\t\t\t\t */\r\n\t\t\t\t$values = \"'\" . $this->getNewCode();\r\n\t\t\t\t$values .= \"','\" . $this->_getDateTime();\r\n\t\t\t\t$values .= \"','\" . $intend['table'];\r\n\t\t\t\t$values .= \"','\" . $intend['tableCode'];\r\n\t\t\t\t$values .= \"','\" . implode(\"<+>\", $intend['columnsBackup']);\r\n\t\t\t\t$values .= \"','\" . $valueType;\r\n\t\t\t\t$values .= \"','\" . implode(\"<+>\", $intend['valuesBackup']);\r\n\t\t\t\t$values .= \"','\" . $Session->get('username') . \"'\";\r\n\t\t\t\t/**\r\n\t\t\t\t * eklenecek tum bilgileri intend dizisine aktar\r\n\t\t\t\t */\r\n\t\t\t\t$historyIntend = (array(\r\n\t\t\t\t\t\t'table' => 'history',\r\n\t\t\t\t\t\t'columns' => $columns,\r\n\t\t\t\t\t\t\"values\" => $values\r\n\t\t\t\t));\r\n\t\t\t\t/**\r\n\t\t\t\t * debug et\r\n\t\t\t\t */\r\n\t\t\t\tif (debugger(\"History\")) {\r\n\t\t\t\t\t\techo 'DEBUG : ' . getCallingClass() . '->History->add($historyIntend) : ';\r\n\t\t\t\t\t\td($historyIntend);\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * eklenecek array nesnesini döndür\r\n\t\t\t\t */\r\n\t\t\t\treturn $historyIntend;\r\n\t\t}", "public function createHistoricalUpdate($table, $keys, $values) {\r\n\t\tif ($this->skipHistoricalCommand) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t$db = $this->getConnection();\r\n\t\t$this->logHistoricalUpdate($table, $keys, $values);\r\n\t}", "private function add_to_xml_history($_state, $_xml_file, $_shipmentNo, $_action)\n {\n $_filename = preg_replace(\"@\\/|\\\\\\@\", self::DS, getenv(self::ENV_VAR)) . SELF::DS . self::HISTORY_FILE;\n \n // Check if config path is defined & shipment is valid & xml file is set and the file exists\n if ($_action && is_string($_action) && file_exists($_filename) && $_shipmentNo && is_string($_shipmentNo) && strlen($_shipmentNo) > 1 && $_xml_file && is_string($_xml_file) && $_state && is_string($_state)) {\n \n $this->add_to_log(__FUNCTION__, 'Attempting to create xml file for each state of the MMS order');\n $this->add_to_log(__FUNCTION__, \"XML history log file: $_filename, state: $_state, XML File: $_xml_file, shipmentNumber: $_shipmentNo, action: $_action\");\n \n $_data = (array) array();\n $_record = array(\n $_shipmentNo => array(\n $_state => array(\n \"xml_file\" => $_xml_file,\n \"shipment_no\" => $_shipmentNo,\n \"action\" => $_action\n )\n )\n );\n \n if (file_exists($_filename)) {\n $_data = $this->load_json_file(self::HISTORY_FILE);\n }\n \n $_found = FALSE;\n \n if ($_data && is_array($_data)) {\n \n foreach ($_data as $_key => $_value) {\n if ($_value && is_array($_value)) {\n if (key($_value) == $_shipmentNo) {\n $_found = TRUE;\n \n $_data[$_key][$_shipmentNo][$_state] = array(\n \"xml_file\" => $_xml_file,\n \"shipment_no\" => $_shipmentNo,\n \"action\" => $_action\n );\n }\n }\n }\n }\n \n if (! $_found) {\n $_data[] = $_record;\n }\n \n if ($_data) {\n $this->write_to_file($_filename, json_encode($_data));\n }\n }\n }", "public function append ($path)\n {\n // make sure we don't have a duplicate filename - highly unusual as two people should not be using Studio/MB concurrently, but when testing quite possible to do two appends within one second...\n // because so unlikely in normal use we handle this the naive way by waiting a second so our naming scheme doesn't get overelaborated\n $retries = 0 ;\n\n $now = TimeDate::getInstance()->getNow();\n $new_file = null;\n for($retries = 0; !file_exists($new_file) && $retries < 5; $retries ++)\n {\n $now->modify(\"+1 second\");\n $time = $now->__get('ts');\n $new_file = $this->getFileByTimestamp( $time );\n }\n // now we have a unique filename, copy the file into the history\n copy ( $path, $new_file ) ;\n \t $this->_list [ ] = $time ;\n\n // finally, trim the number of files we're holding in the history to that specified in the configuration\n // truncate the oldest files, keeping only the most recent $GLOBALS['sugar_config']['studio_max_history'] files (zero=keep them all)\n $to_delete = $this->getCount() - $this->_historyLimit;\n if ($this->_historyLimit != 0 && $to_delete)\n {\n // most recent files are at the end of the list, so we strip out the first count-max_history records\n // can't just use array_shift because it renumbers numeric keys (our timestamp keys) to start from zero...\n for ( $i = 0 ; $i < $to_delete ; $i ++ )\n {\n $timestamp = array_shift( $this->_list ) ;\n if (! unlink ( $this->getFileByTimestamp( $timestamp ) ))\n {\n $GLOBALS [ 'log' ]->warn ( \"History.php: unable to remove history file {$timestamp} from directory {$this->_dirname} - permissions problem?\" ) ; }\n }\n }\n\n // finally, remove any history preview file that might be lurking around - as soon as we append a new record it supercedes any old preview, so that must be removed (bug 20130)\n if (file_exists($this->_previewFilename))\n {\n $GLOBALS [ 'log' ]->debug( get_class($this).\"->append(): removing old history file at {$this->_previewFilename}\");\n unlink($this->_previewFilename);\n }\n\n return $time ;\n }", "public static function performOrderStatusHistory($data)\n {\n $sql_data_array = array(\n 'orders_id' => $data['orders_id'],\n 'orders_status_id' => $data['order_status_id'],\n 'date_added' => 'now()',\n 'customer_notified' => '1',\n 'comments' =>\n sprintf(\n \"[{$data['type']}]\" . PHP_EOL .\n \"- Unique ID: %s\" . PHP_EOL .\n \"- Status: %s\". PHP_EOL .\n \"- Message: %s\",\n $data['payment']['unique_id'],\n $data['payment']['status'],\n $data['payment']['message']\n ),\n );\n\n zen_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);\n }", "function add()\n\t{\n\t\t$this->_updatedata();\n\t}", "function post_updateItem($history=1) {\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 $items_1 = $this->getItemsForLog(static::$itemtype_1, static::$items_id_1);\n $items_2 = $this->getItemsForLog(static::$itemtype_2, static::$items_id_2);\n\n $new1 = $items_1['new'];\n if (isset($items_1['previous'])) {\n $previous1 = $items_1['previous'];\n } else {\n $previous1 = $items_1['new'];\n }\n\n $new2 = $items_2['new'];\n if (isset($items_2['previous'])) {\n $previous2 = $items_2['previous'];\n } else {\n $previous2 = $items_2['new'];\n }\n\n $oldvalues = $this->oldvalues;\n unset($oldvalues[static::$itemtype_1]);\n unset($oldvalues[static::$items_id_1]);\n unset($oldvalues[static::$itemtype_2]);\n unset($oldvalues[static::$items_id_2]);\n\n foreach ($oldvalues as $field => $value) {\n $changes = $this->getHistoryChangeWhenUpdateField($field);\n if ((!is_array($changes)) || (count($changes) != 3)) {\n continue;\n }\n /// TODO clean management of it\n if ($new1 && $new1->dohistory\n && static::$logs_for_item_1) {\n Log::history($new1->getID(), $new1->getType(), $changes,\n get_called_class().'#'.$field, static::$log_history_1_update);\n }\n if ($new2 && $new2->dohistory\n && static::$logs_for_item_2) {\n Log::history($new2->getID(), $new2->getType(), $changes,\n get_called_class().'#'.$field, static::$log_history_2_update);\n }\n }\n\n if (isset($items_1['previous']) || isset($items_2['previous'])) {\n\n if ($previous2\n && $previous1 && $previous1->dohistory\n && static::$logs_for_item_1) {\n $changes[0] = '0';\n $changes[1] = addslashes($this->getHistoryNameForItem1($previous2,\n 'update item previous'));\n $changes[2] = \"\";\n Log::history($previous1->getID(), $previous1->getType(), $changes,\n $previous2->getType(), static::$log_history_1_delete);\n }\n\n if ($previous1\n && $previous2 && $previous2->dohistory\n && static::$logs_for_item_2) {\n $changes[0] = '0';\n $changes[1] = addslashes($this->getHistoryNameForItem2($previous1,\n 'update item previous'));\n $changes[2] = \"\";\n Log::history($previous2->getID(), $previous2->getType(), $changes,\n $previous1->getType(), static::$log_history_2_delete);\n }\n\n if ($new2\n && $new1 && $new1->dohistory\n && static::$logs_for_item_1) {\n $changes[0] = '0';\n $changes[1] = \"\";\n $changes[2] = addslashes($this->getHistoryNameForItem1($new2, 'update item next'));\n Log::history($new1->getID(), $new1->getType(), $changes, $new2->getType(),\n static::$log_history_1_add);\n }\n\n if ($new1\n && $new2 && $new2->dohistory\n && static::$logs_for_item_2) {\n $changes[0] = '0';\n $changes[1] = \"\";\n $changes[2] = addslashes($this->getHistoryNameForItem2($new1, 'update item next'));\n Log::history($new2->getID(), $new2->getType(), $changes, $new1->getType(),\n static::$log_history_2_add);\n }\n }\n }", "public function addHistory(History $l)\n\t{\n\t\tif ($this->collHistorys === null) {\n\t\t\t$this->initHistorys();\n\t\t}\n\t\tif (!in_array($l, $this->collHistorys, true)) { // only add it if the **same** object is not already associated\n\t\t\tarray_push($this->collHistorys, $l);\n\t\t\t$l->setUser($this);\n\t\t}\n\t}", "private function _updateOrderItemHist($_id, $status = 'P', $notified = 1, $comment = '')\n {\n $_orderHist = $this->getTable('order_item_histories');\n $_orderHist->virtuemart_order_item_id = $_id;\n $_orderHist->order_status_code = $status;\n $_orderHist->customer_notified = $notified;\n $_orderHist->comments = $comment;\n $_orderHist->store();\n }", "public function write(History $history)\n\t\t{\n\t\t\t$dialled_party = $history->getDialledParty();\n\t\t\t$username = $history->getUsername();\t\t\t\n\t\t\t\n\t\t\t$result = pg_query_params(\n\t\t\t\t\t$this->connection,\n\t\t\t\t\t'INSERT INTO history (dialled_party, date_from, date_to, username) values ($1, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, $2)',\n\t\t\t\t\tarray($dialled_party, $username));\n\n\t\t\tif(!$result)\n\t\t\t{\n\t\t\t\techo 'Error: object not saved';\n\t\t\t\treturn null;\n\t\t\t}\t\n\t\t\t\t\t\n\t\t\tpg_free_result($result);\n\t\t\treturn $result;\n\t\t\n\t\t}", "function logger_device_clone($device_id) {\n\n $device = db_select('logger_devices', 'd')\n ->fields('d')\n ->condition('device', $device_id)\n ->execute()\n ->fetchObject();\n\n $new_device_id = md5(uniqid(rand(), TRUE));\n $new_serial = time() + 5000000000;\n\n db_insert('logger_devices')\n ->fields(array(\n 'device' => $new_device_id,\n 'serial' => $new_serial,\n 'uid' => 0,\n 'sha' => $new_device_id,\n 'created' => $device->created,\n 'access' => $device->access,\n 'version' => $device->version,\n 'resets' => $device->resets,\n 'country' => $device->country,\n 'firmware_id' => 0\n ))\n ->execute();\n\n $sensors = db_select('logger_meters', 'm')\n ->fields('m')\n ->condition('device', $device_id)\n ->condition('virtual', 0)\n ->execute();\n\n foreach ($sensors as $sensor) {\n\n $new_meter = md5(uniqid(rand(), TRUE));\n\n db_insert('logger_meters')\n ->fields(array(\n 'device' => $new_device_id,\n 'meter' => $new_meter,\n 'uid' => 0,\n 'function' => empty($sensor->function) ? NULL : substr(\"C $sensor->function\", 0, 16),\n 'created' => $sensor->created,\n 'access' => $sensor->access,\n 'price' => $sensor->price,\n 'forecast' => $sensor->forecast,\n 'latitude' => $sensor->latitude,\n 'longitude' => $sensor->longitude\n ))\n ->execute();\n\n if ($sensor->forecast == 1) {\n pvcast_create_plant($new_meter, $sensor->latitude, $sensor->longitude);\n }\n\n $new_token = md5(uniqid(rand(), TRUE));\n\n db_insert('logger_tokens')\n ->fields(array(\n 'token' => $new_token,\n 'meter' => $new_meter,\n 'permissions' => 62\n ))\n ->execute();\n\n exec('/bin/ln -s ' . LOGGER_PATH . \"/data/base/$sensor->meter.rrd \" . LOGGER_PATH . \"/data/base/$new_meter.rrd\");\n }\n\n return t(\"Device %device has been successfuly cloned. The cloned device id is: %new_device_id.\", array(\n '%device' => $device,\n '%new_device_id' => $new_device_id\n ));\n}", "function removeHistory()\n {\n $db = eZDB::instance();\n $orderID = (int)$this->OrderNr;\n $db->query( \"DELETE FROM ezorder_status_history WHERE order_id=$orderID\" );\n }", "public function populate_list_key_history($start = 0, $limit = -1) {\n\t\t$key_status_id = $this -> get_id();\n\t\t$this -> list_key_history = key_history_model::list_by_key_status_id($key_status_id, $start, $limit);\n\t}", "public function getHistory(): array\n {\n return $this->history;\n }", "public function getHistory(): array\n {\n return $this->history;\n }", "function rebuildDeviceData() {\n\t\tsystemLog::notice('Starting rebuild of device data');\n\t\t$oStmt = dbManager::getInstance()->prepare('SELECT deviceID FROM '.system::getConfig()->getDatabase('wurfl').'.devices WHERE rootDevice = 1');\n\t\tif ( $oStmt->execute() ) {\n\t\t\tforeach ( $oStmt as $row ) {\n\t\t\t\tsystemLog::getInstance()->setSource('rebuild]['.$row['deviceID']);\n\t\t\t\t$oDevice = wurflManager::getInstance($row['deviceID']);\n\t\t\t\tsystemLog::notice('Processing deviceID '.$row['deviceID']);\n\t\t\t\t$oDevice->setModelName($oDevice->getCapabilities()->getCapability('model_name'));\n\t\t\t\t\n\t\t\t\t$oMan = wurflManufacturer::getInstance($oDevice->getCapabilities()->getCapability('brand_name'));\n\t\t\t\tif ( $oMan->getManufacturerID() > 0 ) {\n\t\t\t\t\t$oDevice->setManufacturerID($oMan->getManufacturerID());\n\t\t\t\t}\n\t\t\t\t$oDevice->save();\n\t\t\t}\n\t\t}\n\t}", "static function showHistory($ID_port) {\n global $DB,$LANG,$INFOFORM_PAGES,$CFG_GLPI;\n\n include (GLPI_ROOT . \"/plugins/fusioninventory/inc_constants/snmp.mapping.constant.php\");\n\n $CommonItem = new CommonItem;\n $np = new Netport;\n\n $query = \"\n SELECT * FROM(\n SELECT * FROM (\n SELECT ID, date as date, process_number as process_number,\n FK_port_source, FK_port_destination,\n creation as Field, NULL as old_value, NULL as new_value\n\n FROM glpi_plugin_fusioninventory_snmphistoryconnections\n WHERE `FK_port_source`='\".$ID_port.\"'\n OR `FK_port_destination`='\".$ID_port.\"'\n ORDER BY date DESC\n LIMIT 0,30\n )\n AS DerivedTable1\n UNION ALL\n SELECT * FROM (\n SELECT ID, date_mod as date, FK_process as process_number,\n FK_ports AS FK_port_source, NULL as FK_port_destination,\n Field, old_value, new_value\n\n FROM glpi_plugin_fusioninventory_snmphistories\n WHERE `FK_ports`='\".$ID_port.\"'\n ORDER BY date DESC\n LIMIT 0,30\n )\n AS DerivedTable2)\n AS MainTable\n ORDER BY date DESC, ID DESC\n LIMIT 0,30\";\n //echo $query.\"<br/>\";\n $text = \"<table class='tab_cadre' cellpadding='5' width='950'>\";\n\n $text .= \"<tr class='tab_bg_1'>\";\n $text .= \"<th colspan='8'>\";\n $text .= \"Historique\";\n $text .= \"</th>\";\n $text .= \"</tr>\";\n\n $text .= \"<tr class='tab_bg_1'>\";\n $text .= \"<th>\".$LANG['plugin_fusioninventory'][\"snmp\"][50].\"</th>\";\n $text .= \"<th>\".$LANG[\"common\"][1].\"</th>\";\n $text .= \"<th>\".$LANG[\"event\"][18].\"</th>\";\n $text .= \"<th></th>\";\n $text .= \"<th></th>\";\n $text .= \"<th></th>\";\n $text .= \"<th>\".$LANG[\"common\"][27].\"</th>\";\n $text .= \"</tr>\";\n\n if ($result=$DB->query($query)) {\n while ($data=$DB->fetch_array($result)) {\n $text .= \"<tr class='tab_bg_1'>\";\n if (!empty($data[\"FK_port_destination\"])) {\n // Connections and disconnections\n if ($data['Field'] == '1') {\n $text .= \"<td align='center'><img src='\".GLPI_ROOT.\"/plugins/fusioninventory/pics/connection_ok.png'/></td>\";\n } else {\n $text .= \"<td align='center'><img src='\".GLPI_ROOT.\"/plugins/fusioninventory/pics/connection_notok.png'/></td>\";\n }\n if ($ID_port == $data[\"FK_port_source\"]) {\n $np->getFromDB($data[\"FK_port_destination\"]);\n if (isset($np->fields[\"on_device\"])) {\n $CommonItem->getFromDB($np->fields[\"device_type\"],\n $np->fields[\"on_device\"]);\n $link1 = $CommonItem->getLink(1);\n $link = \"<a href=\\\"\" . $CFG_GLPI[\"root_doc\"] . \"/front/networking.port.php?ID=\" . $np->fields[\"ID\"] . \"\\\">\";\n if (rtrim($np->fields[\"name\"]) != \"\")\n $link .= $np->fields[\"name\"];\n else\n $link .= $LANG['common'][0];\n $link .= \"</a>\";\n $text .= \"<td align='center'>\".$link.\" \".$LANG['networking'][25].\" \".$link1.\"</td>\";\n } else {\n $text .= \"<td align='center'><font color='#ff0000'>\".$LANG['common'][28].\"</font></td>\";\n }\n\n } else if ($ID_port == $data[\"FK_port_destination\"]) {\n $np->getFromDB($data[\"FK_port_source\"]);\n if (isset($np->fields[\"on_device\"])) {\n $CommonItem->getFromDB($np->fields[\"device_type\"],\n $np->fields[\"on_device\"]);\n $link1 = $CommonItem->getLink(1);\n $link = \"<a href=\\\"\" . $CFG_GLPI[\"root_doc\"] . \"/front/networking.port.php?ID=\" . $np->fields[\"ID\"] . \"\\\">\";\n if (rtrim($np->fields[\"name\"]) != \"\")\n $link .= $np->fields[\"name\"];\n else\n $link .= $LANG['common'][0];\n $link .= \"</a>\";\n $text .= \"<td align='center'>\".$link.\" \".$LANG['networking'][25].\" \".$link1.\"</td>\";\n } else {\n $text .= \"<td align='center'><font color='#ff0000'>\".$LANG['common'][28].\"</font></td>\";\n }\n }\n $text .= \"<td align='center' colspan='4'></td>\";\n $text .= \"<td align='center'>\".convDateTime($data[\"date\"]).\"</td>\";\n\n } else {\n // Changes values\n $text .= \"<td align='center' colspan='2'></td>\";\n $text .= \"<td align='center'>\".$FUSIONINVENTORY_MAPPING[NETWORKING_TYPE][$data[\"Field\"]]['name'].\"</td>\";\n $text .= \"<td align='center'>\".$data[\"old_value\"].\"</td>\";\n $text .= \"<td align='center'>-></td>\";\n $text .= \"<td align='center'>\".$data[\"new_value\"].\"</td>\";\n $text .= \"<td align='center'>\".convDateTime($data[\"date\"]).\"</td>\";\n }\n $text .= \"</tr>\";\n }\n }\n\n /*\n $pthc = new PluginFusioninventorySnmphistoryconnection;\n\n $data_connections = $pthc->find('`FK_port_source`=\"'.$ID_port.'\"\n OR `FK_port_destination `=\"'.$ID_port.'\"',\n '`date` DESC',\n '0,30');\n $query = \"SELECT *\n FROM `glpi_plugin_fusioninventory_snmphistories`\n WHERE `FK_ports`='\".$ID_port.\"'\n ORDER BY `date_mod` DESC\n LIMIT 0,30;\";\n\n\n $text = \"<table class='tab_cadre' cellpadding='5' width='950'>\";\n\n $text .= \"<tr class='tab_bg_1'>\";\n $text .= \"<th colspan='8'>\";\n $text .= \"Historique\";\n $text .= \"</th>\";\n $text .= \"</tr>\";\n\n $text .= \"<tr class='tab_bg_1'>\";\n $text .= \"<th>\".$LANG['plugin_fusioninventory'][\"snmp\"][50].\"</th>\";\n $text .= \"<th>\".$LANG[\"common\"][1].\"</th>\";\n $text .= \"<th>\".$LANG[\"networking\"][15].\"</th>\";\n $text .= \"<th>\".$LANG[\"event\"][18].\"</th>\";\n $text .= \"<th></th>\";\n $text .= \"<th></th>\";\n $text .= \"<th></th>\";\n $text .= \"<th>\".$LANG[\"common\"][27].\"</th>\";\n $text .= \"</tr>\";\n\n if ($result=$DB->query($query)) {\n while ($data=$DB->fetch_array($result)) {\n $text .= \"<tr class='tab_bg_1'>\";\n\n if (($data[\"old_device_ID\"] != \"0\") OR ($data[\"new_device_ID\"] != \"0\")) {\n // Connections and disconnections\n if ($data[\"old_device_ID\"] != \"0\") {\n $text .= \"<td align='center'>\".$LANG['plugin_fusioninventory'][\"history\"][2].\"</td>\";\n $CommonItem->getFromDB($data[\"old_device_type\"],$data[\"old_device_ID\"]);\n $text .= \"<td align='center'>\".$CommonItem->getLink(1).\"</td>\";\n $text .= \"<td align='center'>\".$data[\"old_value\"].\"</td>\";\n } else if ($data[\"new_device_ID\"] != \"0\") {\n $text .= \"<td align='center'>\".$LANG['plugin_fusioninventory'][\"history\"][3].\"</td>\";\n $CommonItem->getFromDB($data[\"new_device_type\"],$data[\"new_device_ID\"]);\n $text .= \"<td align='center'>\".$CommonItem->getLink(1).\"</td>\";\n $text .= \"<td align='center'>\".$data[\"new_value\"].\"</td>\";\n }\n $text .= \"<td align='center' colspan='4'></td>\";\n $text .= \"<td align='center'>\".convDateTime($data[\"date_mod\"]).\"</td>\";\n\n } else if (($data[\"old_device_ID\"] == \"0\") AND ($data[\"new_device_ID\"] == \"0\") AND ($data[\"Field\"] == \"0\")) {\n // Unknown Mac address\n if (!empty($data[\"old_value\"])) {\n $text .= \"<td align='center' background='#cf9b9b' class='tab_bg_1_2'>\".$LANG['plugin_fusioninventory'][\"history\"][2].\"</td>\";\n $CommonItem->getFromDB($data[\"old_device_type\"],$data[\"old_device_ID\"]);\n $text .= \"<td align='center' background='#cf9b9b' class='tab_bg_1_2'>\".$CommonItem->getLink(1).\"</td>\";\n $text .= \"<td align='center' background='#cf9b9b' class='tab_bg_1_2'>\".$data[\"old_value\"].\"</td>\";\n } else if (!empty($data[\"new_value\"])) {\n $text .= \"<td align='center' background='#cf9b9b' class='tab_bg_1_2'>\".$LANG['plugin_fusioninventory'][\"history\"][3].\"</td>\";\n $CommonItem->getFromDB($data[\"new_device_type\"],$data[\"new_device_ID\"]);\n $text .= \"<td align='center' background='#cf9b9b' class='tab_bg_1_2'>\".$CommonItem->getLink(1).\"</td>\";\n $text .= \"<td align='center' background='#cf9b9b' class='tab_bg_1_2'>\".$data[\"new_value\"].\"</td>\";\n }\n $text .= \"<td align='center' colspan='4' background='#cf9b9b' class='tab_bg_1_2'></td>\";\n $text .= \"<td align='center' background='#cf9b9b' class='tab_bg_1_2'>\".convDateTime($data[\"date_mod\"]).\"</td>\";\n } else {\n // Changes values\n $text .= \"<td align='center' colspan='3'></td>\";\n $text .= \"<td align='center'>\".$data[\"Field\"].\"</td>\";\n $text .= \"<td align='center'>\".$data[\"old_value\"].\"</td>\";\n $text .= \"<td align='center'>-></td>\";\n $text .= \"<td align='center'>\".$data[\"new_value\"].\"</td>\";\n $text .= \"<td align='center'>\".convDateTime($data[\"date_mod\"]).\"</td>\";\n }\n $text .= \"</tr>\";\n }\n }\n */\n $text .= \"<tr class='tab_bg_1'>\";\n $text .= \"<th colspan='8'>\";\n $text .= \"<a href='\".GLPI_ROOT.\"/plugins/fusioninventory/report/switch_ports.history.php?FK_networking_ports=\".$ID_port.\"'>Voir l'historique complet</a>\";\n $text .= \"</th>\";\n $text .= \"</tr>\";\n $text .= \"</table>\";\n return $text;\n }", "public function GetHistoryInfo()\n\t{\n\t if ($this->m_Stateless == \"Y\")\n\t return;\n\t if (!$this->m_NoHistoryInfo)\n\t {\n\t $histInfo[] = $this->m_RecordId;\n $histInfo[] = $this->m_CurrentPage;\n $histInfo[] = $this->m_SearchRule;\n $histInfo[] = $this->m_SortRule;\n\t return $histInfo;\n\t }\n\t return null;\n\t}", "public function addpaymenthistory($data)\n {\n $this->db->insert(\"payment_history\", $data);\n return $this->db->insert_id();\n }", "public function addDevice($dev){\n try{\n $this->validateDevice($dev);\n }catch (Exception $e){\n $this->processException($e);\n }\n\n $devDisplayName=$this->getDisplayNameForDevice($dev);\n $devUnits=$this->getUnitsForDevice($dev);\n $devColor=$this->getColorForDevice($dev);\n\n $this->report[\"devices\"][$dev]=array(\n \"displayName\"=>$devDisplayName,\n \"units\"=>$devUnits,\n \"color\"=>$devColor,\n \"data\"=>array()\n );\n }", "public function getFullHistory($id)\n {\n $data = [];\n if (!$id) {\n throw new InputException(__('Id required'));\n }\n /** @var OrderInterface $entity */\n $order = $this->_objectManager->create('Magento\\Sales\\Model\\Order')->loadByIncrementId($id);\n if (!$order->getEntityId()) {\n throw new NoSuchEntityException(__('Requested entity doesn\\'t exist'));\n }\n\n $history = [];\n foreach ($order->getAllStatusHistory() as $orderComment) {\n $history['order'][] = $this->_prepareHistoryItem(\n $orderComment->getStatusLabel(),\n $orderComment->getIsCustomerNotified(),\n $orderComment->getCreatedAt(),\n $orderComment->getComment()\n );\n }\n\n foreach ($order->getCreditmemosCollection() as $_memo) {\n $history['memo'][] = $this->_prepareHistoryItem(\n __('Credit memo #%1 created', $_memo->getIncrementId()),\n $_memo->getEmailSent(),\n $this->getOrderAdminDate($_memo->getCreatedAt())\n );\n\n foreach ($_memo->getCommentsCollection() as $_comment) {\n $history[] = $this->_prepareHistoryItem(\n __('Credit memo #%1 comment added', $_memo->getIncrementId()),\n $_comment->getIsCustomerNotified(),\n $_comment->getCreatedAt(),\n $_comment->getComment()\n );\n }\n }\n\n foreach ($order->getShipmentsCollection() as $_shipment) {\n $history['shipment'][] = $this->_prepareHistoryItem(\n __('Shipment #%1 created', $_shipment->getIncrementId()),\n $_shipment->getEmailSent(),\n $_shipment->getCreatedAt()\n );\n\n foreach ($_shipment->getCommentsCollection() as $_comment) {\n $history[] = $this->_prepareHistoryItem(\n __('Shipment #%1 comment added', $_shipment->getIncrementId()),\n $_comment->getIsCustomerNotified(),\n $_comment->getCreatedAt(),\n $_comment->getComment()\n );\n }\n }\n\n foreach ($order->getInvoiceCollection() as $_invoice) {\n $history['invoice'][] = $this->_prepareHistoryItem(\n __('Invoice #%1 created', $_invoice->getIncrementId()),\n $_invoice->getEmailSent(),\n $_invoice->getCreatedAt()\n );\n\n foreach ($_invoice->getCommentsCollection() as $_comment) {\n $history[] = $this->_prepareHistoryItem(\n __('Invoice #%1 comment added', $_invoice->getIncrementId()),\n $_comment->getIsCustomerNotified(),\n $_comment->getCreatedAt(),\n $_comment->getComment()\n );\n }\n }\n\n foreach ($order->getTracksCollection() as $_track) {\n $history['tracking'][] = $this->_prepareHistoryItem(\n __('Tracking number %1 for %2 assigned', $_track->getNumber(), $_track->getTitle()),\n false,\n $_track->getCreatedAt()\n );\n }\n\n $data[] = $history;\n\n return $data;\n }", "function device_update_get()\n {\n // Only the TP link smart plugs support broadcast scanning so far\n $deviceParams = array('id' => $this->get('id'), 'model' => 'HS110');\n $this->load->library('drivers/hs1xx', $deviceParams);\n\n print_r($this->hs1xx->updateDevices());\n }", "function list_history_medication()\r\n {\r\n $data['offline_mode']\t\t=\t$this->config->item('offline_mode');\r\n $data['debug_mode']\t\t =\t$this->config->item('debug_mode');\r\n\t\t$data['patient_id'] = $this->uri->segment(3);\r\n $data['patient_info'] = $this->memr_rdb->get_patient_details($data['patient_id']);\r\n $data['patient_info']['name'] = $data['patient_info']['patient_name'];\r\n \t\t$data['title'] = \"PR-\".$data['patient_info']['name'];\r\n $data['medication_list']= $this->memr_rdb->get_recent_medication($data['patient_id'],99,0);\r\n $data['diagnoses_list'] = $this->memr_rdb->get_recent_diagnoses($data['patient_id']);\r\n\t\t$this->load->vars($data);\r\n\t\tif ($_SESSION['thirra_mode'] == \"ehr_mobile\"){\r\n $new_header = \"ehr/header_xhtml-mobile10\";\r\n $new_banner = \"ehr/banner_ehr_ovrvw_wap\";\r\n $new_sidebar= \"ehr/sidebar_ehr_patients_ovrvw_wap\";\r\n //$new_body = \"ehr/ehr_indv_list_history_vitals_wap\";\r\n $new_body = \"ehr/ehr_indv_list_history_medication_html\";\r\n $new_footer = \"ehr/footer_emr_wap\";\r\n\t\t} else {\r\n //$new_header = \"ehr/header_xhtml1-strict\";\r\n $new_header = \"ehr/header_xhtml1-transitional\";\r\n $new_banner = \"ehr/banner_ehr_ovrvw_html\";\r\n $new_sidebar= \"ehr/sidebar_ehr_patients_ovrvw_html\";\r\n $new_body = \"ehr/ehr_indv_list_history_medication_html\";\r\n $new_footer = \"ehr/footer_emr_html\";\r\n\t\t}\r\n\t\t$this->load->view($new_header);\t\t\t\r\n\t\t$this->load->view($new_banner);\t\t\t\r\n\t\t$this->load->view($new_sidebar);\t\t\t\r\n\t\t$this->load->view($new_body);\t\t\t\r\n\t\t$this->load->view($new_footer);\t\t\r\n\t\t\r\n }", "public function addToHistory(string $item): void {\n\t\t// as before. Also don't store empty values to history.\n\t\tif (trim($item) === '' || $this->lastItem === $item) {\n\t\t\treturn;\n\t\t}\n\n\t\t\\readline_add_history($item);\n\t\t$this->lastItem = $item;\n\n\t}", "function getHistory() {\n\t\treturn db_query_params ('SELECT * FROM artifact_history_user_vw WHERE artifact_id=$1 ORDER BY entrydate DESC, id ASC',\n\t\t\t\t\tarray ($this->getID())) ;\n\t}" ]
[ "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.519742", "0.51526743", "0.51418763", "0.5139151", "0.5138104", "0.51042676", "0.510295", "0.5088252", "0.5072422", "0.506929", "0.50553787", "0.5047199", "0.504698", "0.5043704", "0.5040894", "0.5033459", "0.5025107", "0.5024747", "0.5016207", "0.5002838", "0.49853012", "0.49840134", "0.49830768", "0.49782798", "0.4970278", "0.49626085", "0.4951717", "0.49442628", "0.4942891", "0.4941122", "0.493884", "0.49368712", "0.49290276", "0.49264833", "0.49065244", "0.48989993", "0.4897739", "0.48942405", "0.48884472", "0.48810846", "0.48751462", "0.48723727", "0.48716077", "0.4869598", "0.48630103", "0.48551923", "0.4851137", "0.48504865", "0.48493114", "0.48381406", "0.48358026", "0.48355022", "0.48329347", "0.48314717", "0.48037905", "0.48010036", "0.48007718", "0.4784292", "0.47841007", "0.47841007", "0.47787628", "0.47782865", "0.47775477", "0.47760242", "0.47725424", "0.47659174", "0.47592744", "0.47518006", "0.47474724", "0.47471794" ]
0.6487874
0
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $model_name = $this->qualifyClass($this->getNameInput());\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $model_name,\n ]);\n\n $path = base_path() . \"/app/Http/Controllers/{$controller}Controller.php\";\n $this->cleanupDummy($path, $name);\n }", "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }", "protected function createController()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n if ($this->option('api')) {\n $params['--api'] = true;\n }\n\n $this->call('wizard:controller', $params);\n }", "public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }", "public static function newController($controller)\n\t{\n\t\t$objController = \"App\\\\Controllers\\\\\".$controller;\n\t\treturn new $objController;\n\t}", "public function createController()\n\t{\n\t\tif(class_exists($this->controller))\n\t\t{\n\t\t\t// get the parent class he extends\n\t\t\t$parents = class_parents($this->controller);\n\n\t\t\t// $parents = class_implements($this->controller); used if our Controller was just an interface not a class\n\n\t\t\t// check if the class implements our Controller Class\n\t\t\tif(in_array(\"Controller\", $parents))\n\t\t\t{\n\t\t\t\t// check if the action in the request exists in that class\n\t\t\t\tif(method_exists($this->controller, $this->action))\n\t\t\t\t{\n\t\t\t\t\treturn new $this->controller($this->action, $this->request);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is not exist\n\t\t\t\t\techo 'Method '. $this->action .' doesn\\'t exist in '. $this->controller;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The controller doesn't extends our Controller Class\n\t\t\t\techo $this->controller.' doesn\\'t extends our Controller Class';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Controller Doesn't exist\n\t\t\techo $this->controller.' doesn\\'t exist';\n\t\t}\n\t}", "public function createController( ezcMvcRequest $request );", "public function createController() {\n //check our requested controller's class file exists and require it if so\n /*if (file_exists(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\")) {\n require(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\");\n } else {\n throw new Exception('Route does not exist');\n }*/\n\n try {\n require_once __DIR__ . '/../Controllers/' . $this->controllerName . '.php';\n } catch (Exception $e) {\n return $e;\n }\n \n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n \n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\",$parents)) { \n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->endpoint)) {\n return new $this->controllerClass($this->args, $this->endpoint, $this->domain);\n } else {\n throw new Exception('Action does not exist');\n }\n } else {\n throw new Exception('Class does not inherit correctly.');\n }\n } else {\n throw new Exception('Controller does not exist.');\n }\n }", "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "private function controller()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n\n if (!empty($this->args['subdirectories']))\n {\n $location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n $relative_location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n }\n\n if (!is_dir($location))\n {\n mkdir($location, 0755, TRUE);\n }\n\n $relative_location .= $this->args['filename'];\n $filename = $location . $this->args['filename'];\n\n $args = array(\n \"class_name\" => ApplicationHelpers::camelize($this->args['name']),\n \"filename\" => $this->args['filename'],\n \"application_folder\" => $this->args['application_folder'],\n \"parent_class\" => (isset($this->args['parent'])) ? $this->args['parent'] : $this->args['parent_controller'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n 'helper_name' => strtolower($this->args['name']) . '_helper',\n );\n\n $template = new TemplateScanner(\"controller\", $args);\n $controller = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Controller already exists : ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'light_blue');\n }\n $message .= $relative_location;\n }\n elseif (file_put_contents($filename, $controller))\n {\n $message .= 'Created controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'green');\n }\n $message .= $relative_location;\n }\n else\n {\n $message .= 'Unable to create controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n // The controller has been generated, output the confirmation message\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the helper files.\n $this->helpers();\n\n $this->assets();\n\n // Create the view files.\n $this->views();\n\n return;\n }", "public function createController( $controllerName ) {\r\n\t\t$refController \t\t= $this->instanceOfController( $controllerName );\r\n\t\t$refConstructor \t= $refController->getConstructor();\r\n\t\tif ( ! $refConstructor ) return $refController->newInstance();\r\n\t\t$initParameter \t\t= $this->setParameter( $refConstructor );\r\n\t\treturn $refController->newInstanceArgs( $initParameter ); \r\n\t}", "public function create($controllerName) {\r\n\t\tif (!$controllerName)\r\n\t\t\t$controllerName = $this->defaultController;\r\n\r\n\t\t$controllerName = ucfirst(strtolower($controllerName)).'Controller';\r\n\t\t$controllerFilename = $this->searchDir.'/'.$controllerName.'.php';\r\n\r\n\t\tif (preg_match('/[^a-zA-Z0-9]/', $controllerName))\r\n\t\t\tthrow new Exception('Invalid controller name', 404);\r\n\r\n\t\tif (!file_exists($controllerFilename)) {\r\n\t\t\tthrow new Exception('Controller not found \"'.$controllerName.'\"', 404);\r\n\t\t}\r\n\r\n\t\trequire_once $controllerFilename;\r\n\r\n\t\tif (!class_exists($controllerName) || !is_subclass_of($controllerName, 'Controller'))\r\n\t\t\tthrow new Exception('Unknown controller \"'.$controllerName.'\"', 404);\r\n\r\n\t\t$this->controller = new $controllerName();\r\n\t\treturn $this;\r\n\t}", "private function createController($controllerName)\n {\n $className = ucfirst($controllerName) . 'Controller';\n ${$this->lcf($controllerName) . 'Controller'} = new $className();\n return ${$this->lcf($controllerName) . 'Controller'};\n }", "public function createControllerObject(string $controller)\n {\n $this->checkControllerExists($controller);\n $controller = $this->ctlrStrSrc.$controller;\n $controller = new $controller();\n return $controller;\n }", "public function create_controller($controller, $action){\n\t $creado = false;\n\t\t$controllers_dir = Kumbia::$active_controllers_dir;\n\t\t$file = strtolower($controller).\"_controller.php\";\n\t\tif(file_exists(\"$controllers_dir/$file\")){\n\t\t\tFlash::error(\"Error: El controlador '$controller' ya existe\\n\");\n\t\t} else {\n\t\t\tif($this->post(\"kind\")==\"applicationcontroller\"){\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends ApplicationController {\\n\\n\\t\\tfunction $action(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tif(@file_put_contents(\"$controllers_dir/$file\", $filec)){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends StandardForm {\\n\\n\\t\\tpublic \\$scaffold = true;\\n\\n\\t\\tpublic function __construct(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tfile_put_contents(\"$controllers_dir/$file\", $filec);\n\t\t\t\tif($this->create_model($controller, $controller, \"index\")){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($creado){\n\t\t\t Flash::success(\"Se cre&oacute; correctamente el controlador '$controller' en '$controllers_dir/$file'\");\n\t\t\t}else {\n\t\t\t Flash::error(\"Error: No se pudo escribir en el directorio, verifique los permisos sobre el directorio\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t}", "private function instanceController( string $controller_class ): Controller {\n\t\treturn new $controller_class( $this->request, $this->site );\n\t}", "public function makeController($controller_name)\n\t{\n\t\t$model\t= $this->_makeModel($controller_name, $this->_storage_type);\n\t\t$view\t= $this->_makeView($controller_name);\n\t\t\n\t\treturn new $controller_name($model, $view);\n\t}", "public function create()\n {\n $output = new \\Symfony\\Component\\Console\\Output\\ConsoleOutput();\n $output->writeln(\"<info>Controller Create</info>\");\n }", "protected function createDefaultController() {\n Octopus::requireOnce($this->app->getOption('OCTOPUS_DIR') . 'controllers/Default.php');\n return new DefaultController();\n }", "private function createControllerDefinition()\n {\n $id = $this->getServiceId('controller');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('controller'));\n $definition\n ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])\n ->addMethodCall('setContainer', [new Reference('service_container')])\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "public function createController( $ctrlName, $action ) {\n $args['action'] = $action;\n $args['path'] = $this->path . '/modules/' . $ctrlName;\n $ctrlFile = $args['path'] . '/Controller.php';\n // $args['moduleName'] = $ctrlName;\n if ( file_exists( $ctrlFile ) ) {\n $ctrlPath = str_replace( CITRUS_PATH, '', $args['path'] );\n $ctrlPath = str_replace( '/', '\\\\', $ctrlPath ) . '\\Controller';\n try { \n $r = new \\ReflectionClass( $ctrlPath ); \n $inst = $r->newInstanceArgs( $args ? $args : array() );\n\n $this->controller = Citrus::apply( $inst, Array( \n 'name' => $ctrlName, \n ) );\n if ( $this->controller->is_protected == null ) {\n $this->controller->is_protected = $this->is_protected;\n }\n return $this->controller;\n } catch ( \\Exception $e ) {\n prr($e, true);\n }\n } else {\n return false;\n }\n }", "protected function createTestController() {\n\t\t$controller = new CController('test');\n\n\t\t$action = $this->getMock('CAction', array('run'), array($controller, 'test'));\n\t\t$controller->action = $action;\n\n\t\tYii::app()->controller = $controller;\n\t\treturn $controller;\n\t}", "public static function newController($controllerName, $params = [], $request = null) {\n\n\t\t$controller = \"App\\\\Controllers\\\\\".$controllerName;\n\n\t\treturn new $controller($params, $request);\n\n\t}", "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "public function createController($pi, array $params)\n {\n $class = $pi . '_Controller_' . ucfirst($params['page']);\n\n return new $class();\n }", "public function createController() {\n //check our requested controller's class file exists and require it if so\n \n if (file_exists(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\" ) && $this->controllerName != 'error') {\n require(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\");\n \n } else {\n \n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n\n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\", $parents)) {\n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->action)) { \n return new $this->controllerClass($this->action, $this->urlValues);\n \n } else {\n //bad action/method error\n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badview\", $this->urlValues);\n }\n } else {\n $this->urlValues['controller'] = \"error\";\n //bad controller error\n echo \"hjh\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"b\", $this->urlValues);\n }\n } else {\n \n //bad controller error\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n }", "protected static function createController($name) {\n $result = null;\n\n $name = self::$_namespace . ($name ? $name : self::$defaultController) . 'Controller';\n if(class_exists($name)) {\n $controllerClass = new \\ReflectionClass($name);\n if($controllerClass->hasMethod('run')) {\n $result = new $name();\n }\n }\n\n return $result;\n }", "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok) {\n # 2. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = $this->worker($this->args);\n\n if ($results) {\n # Redirect the user to the NDSE view\n # Don't use an iFrame!\n # State can be stored/recovered using the framework's session or a\n # query parameter on the returnUrl\n header('Location: ' . $results[\"redirect_url\"]);\n exit;\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "protected function createController($controllerClass)\n {\n $cls = new ReflectionClass($controllerClass);\n return $cls->newInstance($this->environment);\n }", "protected function createController($name)\n {\n $controllerClass = 'controller\\\\'.ucfirst($name).'Controller';\n\n if(!class_exists($controllerClass)) {\n throw new \\Exception('Controller class '.$controllerClass.' not exists!');\n }\n\n return new $controllerClass();\n }", "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "public function makeTestController(TestController $controller)\r\n\t{\r\n\t}", "static function factory($GET=array(), $POST=array(), $FILES=array()) {\n $type = (isset($GET['type'])) ? $GET['type'] : '';\n $objectController = $type.'_Controller';\n $addLocation = $type.'/'.$objectController.'.php';\n foreach ($_ENV['locations'] as $location) {\n if (is_file($location.$addLocation)) {\n return new $objectController($GET, $POST, $FILES);\n } \n }\n throw new Exception('The controller \"'.$type.'\" does not exist.');\n }", "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "public function makeController($controllerNamespace, $controllerName, Log $log, $session, Request $request, Response $response)\r\n\t{\r\n\t\t$fullControllerName = '\\\\Application\\\\Controller\\\\' . (!empty($controllerNamespace) ? $controllerNamespace . '\\\\' : '') . $controllerName;\r\n\t\t$controller = new $fullControllerName();\r\n\t\t$controller->setConfig($this->config);\r\n\t\t$controller->setRequest($request);\r\n\t\t$controller->setResponse($response);\r\n\t\t$controller->setLog($log);\r\n\t\tif (isset($session))\r\n\t\t{\r\n\t\t\t$controller->setSession($session);\r\n\t\t}\r\n\r\n\t\t// Execute additional factory method, if available (exists in \\Application\\Controller\\Factory)\r\n\t\t$method = 'make' . $controllerName;\r\n\t\tif (is_callable(array($this, $method)))\r\n\t\t{\r\n\t\t\t$this->$method($controller);\r\n\t\t}\r\n\r\n\t\t// If the controller has an init() method, call it now\r\n\t\tif (is_callable(array($controller, 'init')))\r\n\t\t{\r\n\t\t\t$controller->init();\r\n\t\t}\r\n\r\n\t\treturn $controller;\r\n\t}", "public static function create()\n\t{\n\t\t//check, if an AccessGroupController instance already exists\n\t\tif(AccessGroupController::$accessGroupController == null)\n\t\t{\n\t\t\tAccessGroupController::$accessGroupController = new AccessGroupController();\n\t\t}\n\n\t\treturn AccessGroupController::$accessGroupController;\n\t}", "public static function buildController()\n\t{\n\t\t$file = CONTROLLER_PATH . 'indexController.class.php';\n\n\t\tif(!file_exists($file))\n\t\t{\n\t\t\tif(\\RCPHP\\Util\\Check::isClient())\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \"Welcome RcPHP!\\n\";\n }\n}';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \\'<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: \"微软雅黑\"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style=\"padding: 24px 48px;\"> <h1>:)</h1><p>Welcome <b>RcPHP</b>!</p></div>\\';\n }\n}';\n\t\t\t}\n\t\t\tfile_put_contents($file, $controller);\n\t\t}\n\t}", "public function getController( );", "public static function getInstance() : Controller {\n if ( null === self::$instance ) {\n self::$instance = new self();\n self::$instance->options = new Options(\n self::OPTIONS_KEY\n );\n }\n\n return self::$instance;\n }", "static function appCreateController($entityName, $prefijo = '') {\n\n $controller = ControllerBuilder::getController($entityName, $prefijo);\n $entityFile = ucfirst(str_replace($prefijo, \"\", $entityName));\n $fileController = \"../../modules/{$entityFile}/{$entityFile}Controller.class.php\";\n\n $result = array();\n $ok = self::createArchive($fileController, $controller);\n ($ok) ? array_push($result, \"Ok, {$fileController} created\") : array_push($result, \"ERROR creating {$fileController}\");\n\n return $result;\n }", "public static function newInstance($path = \\simpleChat\\Utility\\ROOT_PATH)\n {\n $request = new Request();\n \n \n if ($request->isAjax())\n {\n return new AjaxController();\n }\n else if ($request->jsCode())\n {\n return new JsController();\n }\n else\n {\n return new StandardController($path);\n }\n }", "private function createInstance()\n {\n $objectManager = new \\Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager($this);\n $this->controller = $objectManager->getObject(\n \\Magento\\NegotiableQuote\\Controller\\Adminhtml\\Quote\\RemoveFailedSku::class,\n [\n 'context' => $this->context,\n 'logger' => $this->logger,\n 'messageManager' => $this->messageManager,\n 'cart' => $this->cart,\n 'resultRawFactory' => $this->resultRawFactory\n ]\n );\n }", "function loadController(){\n $name = ucfirst($this->request->controller).'Controller' ;\n $file = ROOT.DS.'Controller'.DS.$name.'.php' ;\n /*if(!file_exists($file)){\n $this->error(\"Le controleur \".$this->request->controller.\" n'existe pas\") ;\n }*/\n require_once $file;\n $controller = new $name($this->request);\n return $controller ;\n }", "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "public static function & instance()\n {\n if (self::$instance === null) {\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Include the Controller file\n require Router::$controller_path;\n\n try {\n // Start validation of the controller\n $class = new ReflectionClass(ucfirst(Router::$controller).'_Controller');\n } catch (ReflectionException $e) {\n // Controller does not exist\n Event::run('system.404');\n }\n\n if ($class->isAbstract() or (IN_PRODUCTION and $class->getConstant('ALLOW_PRODUCTION') == false)) {\n // Controller is not allowed to run in production\n Event::run('system.404');\n }\n\n // Run system.pre_controller\n Event::run('system.pre_controller');\n\n // Create a new controller instance\n $controller = $class->newInstance();\n\n // Controller constructor has been executed\n Event::run('system.post_controller_constructor');\n\n try {\n // Load the controller method\n $method = $class->getMethod(Router::$method);\n\n // Method exists\n if (Router::$method[0] === '_') {\n // Do not allow access to hidden methods\n Event::run('system.404');\n }\n\n if ($method->isProtected() or $method->isPrivate()) {\n // Do not attempt to invoke protected methods\n throw new ReflectionException('protected controller method');\n }\n\n // Default arguments\n $arguments = Router::$arguments;\n } catch (ReflectionException $e) {\n // Use __call instead\n $method = $class->getMethod('__call');\n\n // Use arguments in __call format\n $arguments = array(Router::$method, Router::$arguments);\n }\n\n // Stop the controller setup benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Start the controller execution benchmark\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');\n\n // Execute the controller method\n $method->invokeArgs($controller, $arguments);\n\n // Controller method has been executed\n Event::run('system.post_controller');\n\n // Stop the controller execution benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_execution');\n }\n\n return self::$instance;\n }", "protected function instantiateController($class)\n {\n $controller = new $class();\n\n if ($controller instanceof Controller) {\n $controller->setContainer($this->container);\n }\n\n return $controller;\n }", "public function __construct (){\n $this->AdminController = new AdminController();\n $this->ArticleController = new ArticleController();\n $this->AuditoriaController = new AuditoriaController();\n $this->CommentController = new CommentController();\n $this->CourseController = new CourseController();\n $this->InscriptionsController = new InscriptionsController();\n $this->ModuleController = new ModuleController();\n $this->PlanController = new PlanController();\n $this->ProfileController = new ProfileController();\n $this->SpecialtyController = new SpecialtyController();\n $this->SubscriptionController = new SubscriptionController();\n $this->TeacherController = new TeacherController();\n $this->UserController = new UserController();\n $this->WebinarController = new WebinarController();\n }", "protected function makeController($prefix)\n {\n new MakeController($this, $this->files, $prefix);\n }", "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "public static function createFrontController()\n {\n return self::createInjectorWithBindings(self::extractArgs(func_get_args()))\n ->getInstance('net::stubbles::websites::stubFrontController');\n }", "public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }", "protected static function instantiateMockController()\n {\n /** @var Event $oEvent */\n $oEvent = Factory::service('Event');\n\n if (!$oEvent->hasBeenTriggered(Events::SYSTEM_STARTING)) {\n\n require_once BASEPATH . 'core/Controller.php';\n\n load_class('Output', 'core');\n load_class('Security', 'core');\n load_class('Input', 'core');\n load_class('Lang', 'core');\n\n new NailsMockController();\n }\n }", "private static function controller()\n {\n $files = ['Controller'];\n $folder = static::$root.'MVC'.'/';\n\n self::call($files, $folder);\n }", "public function createController()\n\t{\n\t\t$originalFile = app_path('Http/Controllers/Reports/SampleReport.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.php';\n\n\t\t// Read original file\n\t\tif( ! $content = file_get_contents($originalFile))\n\t\t\treturn false;\n\n\t\t// Replace class name\n\t\t$content = str_replace('SampleReport', $this->class . $this->sufix, $content);\n\n\t\t// Write new file\n\t\treturn (bool) file_put_contents($newFile, $content);\n\t}", "public function runController() {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t // Set the method to load\n \t $sController = ucwords(\"{$this->getController()}Controller\");\n } else {\n\n // Set the controller with the router\n $sController = ucwords(\"{$this->getController()}\".ucfirst($this->getRouter()).\"Controller\");\n }\n \t// Check for class\n \tif (class_exists($sController, true)) {\n \t\t// Set a new instance of Page\n \t\t$this->setPage(new Page());\n \t\t// The class exists, load it\n \t\t$oController = new $sController();\n\t\t\t\t// Now check for the proper method \n\t\t\t\t// inside of the controller class\n\t\t\t\tif (method_exists($oController, $this->loadConfigVar('systemSettings', 'controllerLoadMethod'))) {\n\t\t\t\t\t// We have a valid controller, \n\t\t\t\t\t// execute the initializer\n\t\t\t\t\t$oController->init($this);\n\t\t\t\t\t// Set the variable scope\n\t \t\t$this->setViewScope($oController);\n\t \t\t// Render the layout\n\t \t\t$this->renderLayout();\n\t\t\t\t} else {\n\t\t\t\t\t// The initializer does not exist, \n\t\t\t\t\t// which means an invalid controller, \n\t\t\t\t\t// so now we let the caller know\n\t\t\t\t\t$this->setError($this->loadConfigVar('errorMessages', 'invalidController'));\n\t\t\t\t\t// Run the error\n\t\t\t\t\t// $this->runError();\n\t\t\t\t}\n \t// The class does not exist\n \t} else {\n\t\t\t\t// Set the system error\n\t \t\t$this->setError(\n\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t':controllerName', \n\t\t\t\t\t\t$sController, \n\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t'controllerDoesNotExist'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n \t\t// Run the error\n\t\t\t\t// $this->runError();\n \t}\n \t// Return instance\n \treturn $this;\n }", "public function controller()\n\t{\n\t\n\t}", "protected function buildController()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n\n $permissions = [\n 'create:'.$this->module->createPermission->name,\n 'edit:'.$this->module->editPermission->name,\n 'delete:'.$this->module->deletePermission->name,\n ];\n\n $this->controller = [\n 'name' => $this->class,\n '--model' => $this->class,\n '--request' => $this->class.'Request',\n '--permissions' => implode('|', $permissions),\n '--view-folder' => snake_case($this->module->name),\n '--fields' => $columns,\n '--module' => $this->module->id,\n ];\n }", "function getController(){\n\treturn getFactory()->getBean( 'Controller' );\n}", "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "public function __construct()\n {\n $this->controller = new DHTController();\n }", "public function createController($controllers) {\n\t\tforeach($controllers as $module=>$controllers) {\n\t\t\tforeach($controllers as $key=>$controller) {\n\t\t\t\tif(!file_exists(APPLICATION_PATH.\"/modules/$module/controllers/\".ucfirst($controller).\"Controller.php\")) {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",\"Create '\".ucfirst($controller).\"' controller in $module\");\t\t\t\t\n\t\t\t\t\texec(\"zf create controller $controller index-action-included=0 $module\");\t\t\t\t\t\n\t\t\t\t}\telse {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",ucfirst($controller).\"' controller in $module already exists\");\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "protected function instantiateController($class)\n {\n return new $class($this->routesMaker);\n }", "private function createController($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . 'Controller.php';\n\n // Prepare the Class scheme inside the controller\n $contents = '<?php '.$fileName.' ?>';\n\n\n // Return a boolean to process completed\n return Storage::disk('controllers')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "public function GetController()\n\t{\n\t\t$params = $this->QueryVarArrayToParameterArray($_GET);\n\t\tif (!empty($_POST)) {\n\t\t\t$params = array_merge($params, $this->QueryVarArrayToParameterArray($_POST));\n\t\t}\n\n\t\tif (!empty($_GET['q'])) {\n\t\t\t$restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']);\n\t\t\tif (count($restparams) > 0)\n\t\t\t\t$params = array_merge($params, $restparams);\n\t\t}\n\n\t\t$controller = null;\n\n\t\t$action = null;\n\t\tif (!empty($params['action']))\n\t\t\t$action = $params['action'];\n\n\t\tswitch ($action) {\n\n\n\t\t\tcase 'search':\n\t\t\t\t$controller = new GitPHP_Controller_Search();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commitdiff':\n\t\t\tcase 'commitdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Commitdiff();\n\t\t\t\tif ($action === 'commitdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blobdiff':\n\t\t\tcase 'blobdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Blobdiff();\n\t\t\t\tif ($action === 'blobdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'history':\n\t\t\t\t$controller = new GitPHP_Controller_History();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'shortlog':\n\t\t\tcase 'log':\n\t\t\t\t$controller = new GitPHP_Controller_Log();\n\t\t\t\tif ($action === 'shortlog')\n\t\t\t\t\t$controller->SetParam('short', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'snapshot':\n\t\t\t\t$controller = new GitPHP_Controller_Snapshot();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tree':\n\t\t\tcase 'trees':\n\t\t\t\t$controller = new GitPHP_Controller_Tree();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tags':\n\t\t\t\tif (empty($params['tag'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Tags();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tcase 'tag':\n\t\t\t\t$controller = new GitPHP_Controller_Tag();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'heads':\n\t\t\t\t$controller = new GitPHP_Controller_Heads();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blame':\n\t\t\t\t$controller = new GitPHP_Controller_Blame();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blob':\n\t\t\tcase 'blobs':\n\t\t\tcase 'blob_plain':\t\n\t\t\t\t$controller = new GitPHP_Controller_Blob();\n\t\t\t\tif ($action === 'blob_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'atom':\n\t\t\tcase 'rss':\n\t\t\t\t$controller = new GitPHP_Controller_Feed();\n\t\t\t\tif ($action == 'rss')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);\n\t\t\t\telse if ($action == 'atom')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commit':\n\t\t\tcase 'commits':\n\t\t\t\t$controller = new GitPHP_Controller_Commit();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'summary':\n\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'project_index':\n\t\t\tcase 'projectindex':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('txt', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'opml':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('opml', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'login':\n\t\t\t\t$controller = new GitPHP_Controller_Login();\n\t\t\t\tif (!empty($_POST['username']))\n\t\t\t\t\t$controller->SetParam('username', $_POST['username']);\n\t\t\t\tif (!empty($_POST['password']))\n\t\t\t\t\t$controller->SetParam('password', $_POST['password']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'logout':\n\t\t\t\t$controller = new GitPHP_Controller_Logout();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'graph':\n\t\t\tcase 'graphs':\n\t\t\t\t//$controller = new GitPHP_Controller_Graph();\n\t\t\t\t//break;\n\t\t\tcase 'graphdata':\n\t\t\t\t//$controller = new GitPHP_Controller_GraphData();\n\t\t\t\t//break;\n\t\t\tdefault:\n\t\t\t\tif (!empty($params['project'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\t} else {\n\t\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t}\n\t\t}\n\n\t\tforeach ($params as $paramname => $paramval) {\n\t\t\tif ($paramname !== 'action')\n\t\t\t\t$controller->SetParam($paramname, $paramval);\n\t\t}\n\n\t\t$controller->SetRouter($this);\n\n\t\treturn $controller;\n\t}", "public function testCreateTheControllerClass()\n {\n $controller = new Game21Controller();\n $this->assertInstanceOf(\"\\App\\Http\\Controllers\\Game21Controller\", $controller);\n }", "public static function createController( MShop_Context_Item_Interface $context, $name = null );", "public function __construct()\n {\n\n $url = $this->splitURL();\n // echo $url[0];\n\n // check class file exists\n if (file_exists(\"../app/controllers/\" . strtolower($url[0]) . \".php\")) {\n $this->controller = strtolower($url[0]);\n unset($url[0]);\n }\n\n // echo $this->controller;\n\n require \"../app/controllers/\" . $this->controller . \".php\";\n\n // create Instance(object)\n $this->controller = new $this->controller(); // $this->controller is an object from now on\n if (isset($url[1])) {\n if (method_exists($this->controller, $url[1])) {\n $this->method = $url[1];\n unset($url[1]);\n }\n }\n\n // run the class and method\n $this->params = array_values($url); // array_values 값들인 인자 0 부터 다시 배치\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "public function getController();", "public function getController();", "public function getController();", "public function createController($pageType, $template)\n {\n $controller = null;\n\n // Use factories first\n if (isset($this->controllerFactories[$pageType])) {\n $callable = $this->controllerFactories[$pageType];\n $controller = $callable($this, 'templates/'.$template);\n\n if ($controller) {\n return $controller;\n }\n }\n\n // See if a default controller exists in the theme namespace\n $class = null;\n if ($pageType == 'posts') {\n $class = $this->namespace.'\\\\Controllers\\\\PostsController';\n } elseif ($pageType == 'post') {\n $class = $this->namespace.'\\\\Controllers\\\\PostController';\n } elseif ($pageType == 'page') {\n $class = $this->namespace.'\\\\Controllers\\\\PageController';\n } elseif ($pageType == 'term') {\n $class = $this->namespace.'\\\\Controllers\\\\TermController';\n }\n\n if (class_exists($class)) {\n $controller = new $class($this, 'templates/'.$template);\n\n return $controller;\n }\n\n // Create a default controller from the stem namespace\n if ($pageType == 'posts') {\n $controller = new PostsController($this, 'templates/'.$template);\n } elseif ($pageType == 'post') {\n $controller = new PostController($this, 'templates/'.$template);\n } elseif ($pageType == 'page') {\n $controller = new PageController($this, 'templates/'.$template);\n } elseif ($pageType == 'search') {\n $controller = new SearchController($this, 'templates/'.$template);\n } elseif ($pageType == 'term') {\n $controller = new TermController($this, 'templates/'.$template);\n }\n\n return $controller;\n }", "private function loadController($controller)\r\n {\r\n $className = $controller.'Controller';\r\n \r\n $class = new $className($this);\r\n \r\n $class->init();\r\n \r\n return $class;\r\n }", "public static function newInstance ($class)\n {\n try\n {\n // the class exists\n $object = new $class();\n\n if (!($object instanceof sfController))\n {\n // the class name is of the wrong type\n $error = 'Class \"%s\" is not of the type sfController';\n $error = sprintf($error, $class);\n\n throw new sfFactoryException($error);\n }\n\n return $object;\n }\n catch (sfException $e)\n {\n $e->printStackTrace();\n }\n }", "public function create()\n {\n //TODO frontEndDeveloper \n //load admin.classes.create view\n\n\n return view('admin.classes.create');\n }", "private function generateControllerClass()\n {\n $dir = $this->bundle->getPath();\n\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $target = sprintf(\n '%s/Controller/%s/%sController.php',\n $dir,\n str_replace('\\\\', '/', $entityNamespace),\n $entityClass\n );\n\n if (file_exists($target)) {\n throw new \\RuntimeException('Unable to generate the controller as it already exists.');\n }\n\n $this->renderFile($this->skeletonDir, 'controller.php', $target, array(\n 'actions' => $this->actions,\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'dir' => $this->skeletonDir,\n 'bundle' => $this->bundle->getName(),\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'format' => $this->format,\n ));\n }", "static public function Instance()\t\t// Static so we use classname itself to create object i.e. Controller::Instance()\r\n {\r\n // Only one object of this class is required\r\n // so we only create if it hasn't already\r\n // been created.\r\n if(!isset(self::$_instance))\r\n {\r\n self::$_instance = new self();\t// Make new instance of the Controler class\r\n self::$_instance->_commandResolver = new CommandResolver();\r\n\r\n ApplicationController::LoadViewMap();\r\n }\r\n return self::$_instance;\r\n }", "private function create_mock_controller() {\n eval('class TestController extends cyclone\\request\\SkeletonController {\n function before() {\n DispatcherTest::$beforeCalled = TRUE;\n DispatcherTest::$route = $this->_request->route;\n }\n\n function after() {\n DispatcherTest::$afterCalled = TRUE;\n }\n\n function action_act() {\n DispatcherTest::$actionCalled = TRUE;\n }\n}');\n }", "public function AController() {\r\n\t}", "protected function initializeController() {}", "public function dispatch()\n { \n $controller = $this->formatController();\n $controller = new $controller($this);\n if (!$controller instanceof ControllerAbstract) {\n throw new Exception(\n 'Class ' . get_class($controller) . ' is not a valid controller instance. Controller classes must '\n . 'derive from \\Europa\\ControllerAbstract.'\n );\n }\n $controller->action();\n return $controller;\n }", "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "private function addController($controller)\n {\n $object = new $controller($this->app);\n $this->controllers[$controller] = $object;\n }", "function Controller($ControllerName = Web\\Application\\DefaultController) {\n return Application()->Controller($ControllerName);\n }", "public function getController($controllerName) {\r\n\t\tif(!isset(self::$instances[$controllerName])) {\r\n\t\t $package = $this->getPackage(Nomenclature::getVendorAndPackage($controllerName));\r\n\t\t if(!$package) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t return $controller;\r\n\t\t //return false;\r\n\t\t }\r\n\r\n\t\t if(!$package || !$package->controllerExists($controllerName)) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t $package->addController($controller);\r\n\t\t } else {\r\n\t\t $controller = $package->getController($controllerName);\r\n\t\t }\r\n\t\t} else {\r\n\t\t $controller = self::$instances[$controllerName];\r\n\t\t}\r\n\t\treturn $controller;\r\n\t}", "public function testInstantiateSessionController()\n {\n $controller = new SessionController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\SessionController\", $controller);\n }", "private static function loadController($str) {\n\t\t$str = self::formatAsController($str);\n\t\t$app_controller = file_exists(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t$lib_controller = file_exists(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\n\t\tif ( $app_controller || $lib_controller ) {\n\t\t\tif ($app_controller) {\n\t\t\t\trequire_once(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\n\t\t\t$controller = new $str();\n\t\t\t\n\t\t\tif (!$controller instanceof Controller) {\n\t\t\t\tthrow new IsNotControllerException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ControllerNotExistsException($str);\n\t\t}\n\t}", "public function __construct()\n {\n // and $url[1] is a controller method\n if ($_GET['url'] == NULL) {\n $url = explode('/', env('defaultRoute'));\n } else {\n $url = explode('/', rtrim($_GET['url'],'/'));\n }\n\n $file = 'controllers/' . $url[0] . '.php';\n if (file_exists($file)) {\n require $file;\n $controller = new $url[0];\n\n if (isset($url[1])) {\n $controller->{$url[1]}();\n }\n } else {\n echo \"404 not found\";\n }\n }", "protected function _controllers()\n {\n $this['watchController'] = $this->factory(static function ($c) {\n return new Controller\\WatchController($c['app'], $c['searcher']);\n });\n\n $this['runController'] = $this->factory(static function ($c) {\n return new Controller\\RunController($c['app'], $c['searcher']);\n });\n\n $this['customController'] = $this->factory(static function ($c) {\n return new Controller\\CustomController($c['app'], $c['searcher']);\n });\n\n $this['waterfallController'] = $this->factory(static function ($c) {\n return new Controller\\WaterfallController($c['app'], $c['searcher']);\n });\n\n $this['importController'] = $this->factory(static function ($c) {\n return new Controller\\ImportController($c['app'], $c['saver'], $c['config']['upload.token']);\n });\n\n $this['metricsController'] = $this->factory(static function ($c) {\n return new Controller\\MetricsController($c['app'], $c['searcher']);\n });\n }", "public function __construct() {\r\n $this->controllerLogin = new ControllerLogin();\r\n $this->controllerGame = new ControllerGame();\r\n $this->controllerRegister = new ControllerRegister();\r\n }", "public function controller ($post = array())\n\t{\n\n\t\t$name = $post['controller_name'];\n\n\t\tif (is_file(APPPATH.'controllers/'.$name.'.php')) {\n\n\t\t\t$message = sprintf(lang('Controller_s_is_existed'), APPPATH.'controllers/'.$name.'.php');\n\n\t\t\t$this->msg[] = $message;\n\n\t\t\treturn $this->result(false, $this->msg[0]);\n\n\t\t}\n\n\t\t$extends = null;\n\n\t\tif (isset($post['crud'])) {\n\n\t\t\t$crud = true;\n\t\t\t\n\t\t}\n\t\telse{\n\n\t\t\t$crud = false;\n\n\t\t}\n\n\t\t$file = $this->_create_folders_from_name($name, 'controllers');\n\n\t\t$data = '';\n\n\t\t$data .= $this->_class_open($file['file'], __METHOD__, $extends);\n\n\t\t$crud === FALSE || $data .= $this->_crud_methods_contraller($post);\n\n\t\t$data .= $this->_class_close();\n\n\t\t$path = APPPATH . 'controllers/' . $file['path'] . strtolower($file['file']) . '.php';\n\n\t\twrite_file($path, $data);\n\n\t\t$this->msg[] = sprintf(lang('Created_controller_s'), $path);\n\n\t\t//echo $this->_messages();\n\t\treturn $this->result(true, $this->msg[0]);\n\n\t}", "protected function getController(Request $request) {\n try {\n $controller = $this->objectFactory->create($request->getControllerName(), self::INTERFACE_CONTROLLER);\n } catch (ZiboException $exception) {\n throw new ZiboException('Could not create controller ' . $request->getControllerName(), 0, $exception);\n }\n\n return $controller;\n }", "public function create() {}", "public function __construct()\n {\n $this->dataController = new DataController;\n }", "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "private function setUpController()\n {\n $this->controller = new TestObject(new SharedControllerTestController);\n\n $this->controller->dbal = DBAL::getDBAL('testDB', $this->getDBH());\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }" ]
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.6877748", "0.68702674", "0.68622285", "0.6839049", "0.6779292", "0.6703522", "0.66688496", "0.66600126", "0.6650373", "0.66436416", "0.6615505", "0.66144013", "0.6588728", "0.64483404", "0.64439476", "0.6429303", "0.6426485", "0.6303757", "0.6298291", "0.6293319", "0.62811387", "0.6258778", "0.62542456", "0.616827", "0.6162314", "0.61610043", "0.6139887", "0.613725", "0.61334985", "0.6132223", "0.6128982", "0.61092585", "0.6094611", "0.60889256", "0.6074893", "0.60660255", "0.6059098", "0.60565156", "0.6044235", "0.60288006", "0.6024102", "0.60225666", "0.6018304", "0.60134345", "0.60124683", "0.6010913", "0.6009284", "0.6001683", "0.5997471", "0.5997012", "0.59942573", "0.5985074", "0.5985074", "0.5985074", "0.5967613", "0.5952533", "0.5949068", "0.5942203", "0.5925731", "0.5914304", "0.5914013", "0.59119135", "0.5910308", "0.5910285", "0.59013796", "0.59003943", "0.5897524", "0.58964556", "0.58952993", "0.58918965", "0.5888943", "0.5875413", "0.5869938", "0.58627135", "0.58594996", "0.5853714", "0.5839484", "0.5832913", "0.582425", "0.58161044", "0.5815566" ]
0.0
-1
Show the application dashboard.
public function index(Request $request) { $data = Grocery::select('name','quantity','date','status','id'); if($request->date){ $data->where('date','=',$request->date); } $data=$data->paginate(20); return view('home',['data'=>$data]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n return View('admin.dashboard');\n\t\t\t\n }", "public function showDashboard()\n {\n return View::make('users.dashboard', [\n 'user' => Sentry::getUser(),\n ]);\n }", "public function dashboard()\n {\n return view('backend.dashboard.index');\n }", "public function index() {\n return view(\"admin.dashboard\");\n }", "public function dashboard()\n {\n return $this->renderContent(\n view('dashboard'),\n trans('sleeping_owl::lang.dashboard')\n );\n }", "public function dashboard(){\n return view('backend.admin.index');\n }", "public function showDashBoard()\n {\n \treturn view('Admins.AdminDashBoard');\n }", "public function dashboard()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('admin.dashboard', ['title' => 'Dashboard']);\n }", "public function dashboard() \r\n {\r\n return view('admin.index');\r\n }", "public function dashboard()\n\t{\n\t\t$page_title = 'organizer dashboard';\n\t\treturn View::make('organizer.dashboard',compact('page_title'));\n\t}", "public function dashboard()\n {\n\t\t$traffic = TrafficService::getTraffic();\n\t\t$devices = TrafficService::getDevices();\n\t\t$browsers = TrafficService::getBrowsers();\n\t\t$status = OrderService::getStatus();\n\t\t$orders = OrderService::getOrder();\n\t\t$users = UserService::getTotal();\n\t\t$products = ProductService::getProducts();\n\t\t$views = ProductService::getViewed();\n\t\t$total_view = ProductService::getTotalView();\n\t\t$cashbook = CashbookService::getAccount();\n $stock = StockService::getStock();\n\n return view('backend.dashboard', compact('traffic', 'devices', 'browsers', 'status', 'orders', 'users', 'products', 'views', 'total_view', 'cashbook', 'stock'));\n }", "public function dashboard()\n {\n\n return view('admin.dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('adm.dashboard');\n }", "public function dashboard()\n {\n $users = \\App\\User::all()->count();\n $roles = \\Spatie\\Permission\\Models\\Role::all()->count();\n $permissions = \\Spatie\\Permission\\Models\\Permission::all()->count();\n $banner = \\App\\Banner::all();\n $categoria = \\App\\Categoria::all();\n $entidadOrganizativa = \\App\\Entidadorganizativa::all();\n $evento = \\App\\Evento::all();\n $fichero = \\App\\Fichero::all();\n $recurso = \\App\\Recurso::all();\n $redsocial = \\App\\Redsocial::all();\n $subcategoria = \\App\\Subcategoria::all();\n $tag = \\App\\Tag::all();\n\n $entities = \\Amranidev\\ScaffoldInterface\\Models\\Scaffoldinterface::all();\n\n return view('scaffold-interface.dashboard.dashboard',\n compact('users', 'roles', 'permissions', 'entities',\n 'banner', 'categoria', 'entidadOrganizativa',\n 'evento', 'fichero', 'recurso', 'redsocial', 'subcategoria', 'tag')\n );\n }", "public function show()\n {\n return view('dashboard');\n }", "public function index()\n\t{\n\t\treturn View::make('dashboard');\n\t}", "public function index() {\n return view('modules.home.dashboard');\n }", "public function show()\n {\n return view('dashboard.dashboard');\n \n }", "public function index()\n {\n return view('admin.dashboard.dashboard');\n\n }", "public function dashboard()\n { \n return view('jobposter.dashboard');\n }", "public function show()\n\t{\n\t\t//\n\t\t$apps = \\App\\application::all();\n\t\treturn view('applications.view', compact('apps'));\n\t}", "public function index()\n {\n return view('pages.admin.dashboard');\n }", "public function indexAction()\n {\n $dashboard = $this->getDashboard();\n\n return $this->render('ESNDashboardBundle::index.html.twig', array(\n 'title' => \"Dashboard\"\n ));\n }", "public function index()\n {\n //\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard.index');\n }", "public function dashboard()\n {\n return view('pages.backsite.dashboard');\n }", "public function index()\n {\n // return component view('dashboard.index');\n return view('layouts.admin_master');\n }", "public function index()\n {\n\n $no_of_apps = UploadApp::count();\n $no_of_analysis_done = UploadApp::where('isAnalyzed', '1')->count();\n $no_of_visible_apps = AnalysisResult::where('isVisible', '1')->count();\n\n return view('admin.dashboard', compact('no_of_apps', 'no_of_analysis_done', 'no_of_visible_apps'));\n }", "public function getDashboard() {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('smartcrud.auth.dashboard');\n }", "public function index()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n $this->global['pageTitle'] = 'Touba : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "public function dashboard() {\n $data = ['title' => 'Dashboard'];\n return view('pages.admin.dashboard', $data)->with([\n 'users' => $this->users,\n 'num_services' => Service::count(),\n 'num_products' => Product::count(),\n ]);\n }", "public function index()\n {\n return view('board.pages.dashboard-board');\n }", "public function index()\n {\n return view('admin::settings.development.dashboard');\n }", "public function index()\n {\n return view('dashboard.dashboard');\n }", "public function show()\n {\n return view('dashboard::show');\n }", "public function adminDash()\n {\n return Inertia::render(\n 'Admin/AdminDashboard', \n [\n 'data' => ['judul' => 'Halaman Admin']\n ]\n );\n }", "public function dashboard()\n {\n return view('Admin.dashboard');\n }", "public function show()\n {\n return view('admins\\auth\\dashboard');\n }", "public function index()\n {\n // Report =============\n\n return view('Admin.dashboard');\n }", "public function index()\n {\n return view('bitaac::account.dashboard');\n }", "public function index()\n { \n return view('admin-views.dashboard');\n }", "public function getDashboard()\n {\n return view('dashboard');\n }", "function showDashboard()\n { \n $logeado = $this->checkCredentials();\n if ($logeado==true)\n $this->view->ShowDashboard();\n else\n $this->view->showLogin();\n }", "public function index()\n { \n $params['crumbs'] = 'Home';\n $params['active'] = 'home';\n \n return view('admin.dashboard.index', $params);\n }", "public function index()\n\t{\n\t\treturn view::make('customer_panel.dashboard');\n\t}", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index() {\n // return view('home');\n return view('admin-layouts.dashboard.dashboard');\n }", "public function index()\r\n {\r\n return view('user.dashboard');\r\n }", "public function index() {\n return view('dashboard', []);\n }", "public function index()\n {\n //\n return view('dashboard.dashadmin', ['page' => 'mapel']);\n }", "public function index()\n {\n return view('back-end.dashboard.index');\n //\n }", "public function index()\n\t{\n\t\t\n\t\t$data = array(\n\t\t\t'title' => 'Administrator Apps With Laravel',\n\t\t);\n\n\t\treturn View::make('panel/index',$data);\n\t}", "public function index() {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('page.dashboard.index');\n }", "public function index()\n {\n\n return view('dashboard');\n }", "public function dashboardview() {\n \n $this->load->model('Getter');\n $data['dashboard_content'] = $this->Getter->get_dash_content();\n \n $this->load->view('dashboardView', $data);\n\n }", "public function index()\n {\n $this->authorize(DashboardPolicy::PERMISSION_STATS);\n\n $this->setTitle($title = trans('auth::dashboard.titles.statistics'));\n $this->addBreadcrumb($title);\n\n return $this->view('admin.dashboard');\n }", "public function action_index()\r\n\t{\t\t\t\t\r\n\t\t$this->template->title = \"Dashboard\";\r\n\t\t$this->template->content = View::forge('admin/dashboard');\r\n\t}", "public function index()\n {\n $info = SiteInfo::limit(1)->first();\n return view('backend.info.dashboard',compact('info'));\n }", "public function display()\n\t{\n\t\t// Set a default view if none exists.\n\t\tif (!JRequest::getCmd( 'view' ) ) {\n\t\t\tJRequest::setVar( 'view', 'dashboard' );\n\t\t}\n\n\t\tparent::display();\n\t}", "public function index()\n {\n $news = News::all();\n $posts = Post::all();\n $events = Event::all();\n $resources = Resources::all();\n $admin = Admin::orderBy('id', 'desc')->get();\n return view('Backend/dashboard', compact('admin', 'news', 'posts', 'events', 'resources'));\n }", "public function index()\n {\n\n return view('superAdmin.adminDashboard')->with('admin',Admininfo::all());\n\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n $this->template->set('title', 'Dashboard');\n $this->template->load('admin', 'contents' , 'admin/dashboard/index', array());\n }", "public function index()\n {\n return view('/dashboard');\n }", "public function index()\n {\n \treturn view('dashboard');\n }", "public function index()\n {\n return view('ketua.ketua-dashboard');\n }", "public function index(){\n return View::make('admin.authenticated.dashboardview');\n }", "public function admAmwDashboard()\n {\n return View::make('admission::amw.admission_test.dashboard');\n }", "public function index()\n {\n return view('adminpanel.home');\n }", "public function dashboard()\n\t{\n\t\t$this->validation_access();\n\t\t\n\t\t$this->load->view('user_dashboard/templates/header');\n\t\t$this->load->view('user_dashboard/index.php');\n\t\t$this->load->view('user_dashboard/templates/footer');\n\t}", "public function index()\n {\n return view('dashboard.home');\n }", "public function index()\n {\n $admins = $this->adminServ->all();\n $adminRoles = $this->adminTypeServ->all();\n return view('admin.administrators.dashboard', compact('admins', 'adminRoles'));\n }", "public function index()\n {\n if (ajaxCall::ajax()) {return response()->json($this -> dashboard);}\n //return response()->json($this -> dashboard);\n JavaScript::put($this -> dashboard);\n return view('app')-> with('header' , $this -> dashboard['header']);\n //return view('home');\n }", "public function index()\n {\n $userinfo=User::all();\n $gateinfo=GateEntry::all();\n $yarninfo=YarnStore::all();\n $greyinfo=GreyFabric::all();\n $finishinfo=FinishFabric::all();\n $dyesinfo=DyeChemical::all();\n return view('dashboard',compact('userinfo','gateinfo','yarninfo','greyinfo','finishinfo','dyesinfo'));\n }", "public function actionDashboard(){\n \t$dados_dashboard = Yii::app()->user->getState('dados_dashbord_final');\n \t$this->render ( 'dashboard', $dados_dashboard);\n }", "public function index()\n {\n $user = new User();\n $book = new Book();\n return view('admin.dashboard', compact('user', 'book'));\n }", "public function dashboard() {\n if (!Auth::check()) { // Check is user logged in\n // redirect to dashboard\n return Redirect::to('login');\n }\n\n $user = Auth::user();\n return view('site.dashboard', compact('user'));\n }", "public function dashboard()\n {\n $users = User::all();\n return view('/dashboard', compact('users'));\n }", "public function index()\n {\n $lineChart = $this->getLineChart();\n $barChart = $this->getBarChart();\n $pieChart = $this->getPieChart();\n\n return view('admin.dashboard.index', compact(['lineChart', 'barChart', 'pieChart']));\n }" ]
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7241342", "0.7236133", "0.7235562", "0.7218318", "0.71989936", "0.7197427", "0.71913266", "0.71790016", "0.71684825", "0.71577966", "0.7146797", "0.7133428", "0.7132746", "0.71298903", "0.71249074", "0.71218014", "0.71170413", "0.7110151", "0.7109032", "0.7107029", "0.70974076", "0.708061", "0.7075653", "0.70751685", "0.7064041", "0.70550334", "0.7053102", "0.7051273", "0.70484304", "0.7043605", "0.70393986", "0.70197886", "0.70185125", "0.70139873", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.6992477", "0.6979631", "0.69741416", "0.69741327", "0.6968815", "0.6968294", "0.69677526", "0.69652885", "0.69586027", "0.6944985", "0.69432825", "0.69419175", "0.6941512", "0.6941439", "0.6938837", "0.6937524", "0.6937456", "0.6937456", "0.69276494", "0.6921651", "0.69074917", "0.69020325", "0.6882262", "0.6869339", "0.6867868", "0.68557185", "0.68479055", "0.684518", "0.68408877", "0.6838798", "0.6833479", "0.6832326", "0.68309164", "0.6826798", "0.6812457" ]
0.0
-1
Process all incoming requests passed to this controller, checking that the file exists and passing the file through if possible.
public function handleRequest(SS_HTTPRequest $request, DataModel $model) { $response = new SS_HTTPResponse(); $filename = $request->getURL(); if (strpos($filename, 'cdnassets') === 0) { $filename = 'assets/' . substr($filename, strlen('cdnassets/')); } $file = null; if (strpos($filename, '_resampled') !== false) { $file = ContentServiceAsset::get()->filter('Filename', $filename)->first(); } else if (strpos($filename, '/_versions/') !== false) { $file = FileVersion::get()->filter('Filename', "/" . $filename)->first(); } else { $file = File::get()->filter('filename', $filename)->first(); } if ($file && $file->canView()) { if (!$file->CDNFile && !$file->FilePointer) { return $this->httpError(404); } // Permission passed redirect to file $redirectLink = ''; if ($file->getViewType() != CDNFile::ANYONE_PERM) { if ($file->hasMethod('getSecureURL')) { $redirectLink = $file->getSecureURL(180); } if (!strlen($redirectLink)) { // can we stream it? return $this->sendFile($file); } } else { $redirectLink = $file->getURL(); } if ($redirectLink && trim($redirectLink, '/') != $request->getURL()) { $response->redirect($redirectLink); } else { return $this->httpError(404); } } else { if (class_exists('SecureFileController')) { $handoff = SecureFileController::create(); return $handoff->handleRequest($request, $model); } elseif ($file instanceof File) { // Permission failure Security::permissionFailure($this, 'You are not authorised to access this resource. Please log in.'); } else { // File doesn't exist $response = new SS_HTTPResponse('File Not Found', 404); } } return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function action_index()\n\t{\n\t\t// Load the configuration\n\t\t$config = Kohana::$config->load('assets');\n\n\t\t// Get the filename from current request\n\t\t$file = $this->request->param('file');\n\n\t\textract(pathinfo($file), EXTR_SKIP);\n\n\t\tif (in_array($extension, $config['ignore_exts']))\n\t\t{\n\t\t\tthrow new HTTP_Exception(415, 'Unsupported media type :ext', [':ext' => $extension]);\n\t\t}\n\n\t\t$filename = $dirname.DIRECTORY_SEPARATOR.$filename;\n\t\t$source_file = Kohana::find_file($config['source_dir'], $filename, $extension);\n\t\t\n\t\tif (empty($source_file))\n\t\t{\n\t\t\tthrow new HTTP_Exception(404, 'File :name not found', [':name' => $filename]);\n\t\t}\n\t\t\n\t\tforeach ($config['ignore_dirs'] as $dir)\n\t\t{\n\t\t\tif (strpos($source_file, $dir) !== FALSE)\n\t\t\t{\n\t\t\t\tthrow new HTTP_Exception(403, 'Access to file :name forbidden', [':name' => basename($source_file)]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Get the application name from current request\n\t\t$application = $this->request->param('application');\n\t\t\n\t\t$assets_path = $config['assets_path'].DIRECTORY_SEPARATOR.$application.DIRECTORY_SEPARATOR.$dirname;\n\t\t\n\t\tif (!file_exists($assets_path))\n\t\t{\n\t\t\t// Create a file path in a public storage\n\t\t\tmkdir($assets_path, 0755, TRUE);\n\t\t}\n\t\t\n\t\t$assets_file = $assets_path.DIRECTORY_SEPARATOR.$basename;\n\t\t\n\t\t// Copy file in public storage\n\t\tcopy($source_file, $assets_file);\n\t\t\n\t\t$filetime = filemtime($assets_file);\n\t\t// Check if the browser sent an \"if-none-match: <etag>\" header, and tell if the file hasn't changed\n\t\t$this->check_cache(sha1($this->request->uri()).$filetime);\n\t\t// Send the file content as the response\n\t\t$this->response->body(file_get_contents($assets_file));\n\t\t// Set the proper headers to allow caching\n\t\t$this->response->headers([\n\t\t\t'content-type' => File::mime_by_ext($extension),\n\t\t\t'last-modified' => date('r', $filetime),\n\t\t];\n\t}", "function hcpu_catch_file_request() {\n\tif ( ! isset( $_GET['hc-get-file'] ) ) {\n\t\treturn;\n\t}\n\n\t// Serve file or redirect to login.\n\tif ( is_user_member_of_blog() ) {\n\t\thcpu_serve_file();\n\t} else {\n\t\tbp_do_404();\n\t}\n}", "public static function controller()\n {\n self::initialize();\n\n /* get some uri specific datas */\n $requestUri = $_SERVER['REQUEST_URI'];\n $requestedFile = basename($requestUri);\n\n /* do some uri specific datas */\n switch ($requestedFile) {\n case 'live.json':\n self::printJsonLiveValues();\n break;\n\n case 'update.json':\n self::printJsonUpdateStatus();\n break;\n\n case 'update-library.json':\n self::printJsonUpdateLibrary();\n break;\n\n default:\n ApacheHostViewer::printJsonMessageStatus(\"Unknown requested file \\\"$requestedFile\\\".\", 'failed');\n break;\n }\n }", "public function request_handler(){\r\n\t\t$route = new Router;\r\n\t\t$session = new Session;\r\n\t\t$segments = $route->urlRoute();\r\n\t\t#check if controller/action exist\r\n\t\t#if not use default_controller / default_action\r\n\t\tif( count($segments) == 0 || count($segments) == 1 ){\r\n\t\t\tinclude_class_method( default_controller , default_action );\r\n\t\t}else{\r\n\t\t#if controller/action exist in the url\r\n\t\t#then check the controller if it's existed in the file\r\n\t\t\tif( file_exists( CONTROLLER_DIR . $segments[0] . CONT_EXT ) )\r\n\t\t\t{\r\n\t\t\t\t#check for segments[1] = actions\r\n\t\t\t\t#if segments[1] exist, logically segments[0] which is the controller is also exist!!\r\n\t\t\t\t//if( isset($segments[1]) ){\r\n\t\t\t\t\tinclude_class_method( $segments[0], $segments[1] . 'Action' );\r\n\t\t\t\t//}\r\n\t\t\t}else{\r\n\t\t\t\terrorHandler(CONTROLLER_DIR . $segments[0] . CONT_EXT);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private function checkFile()\n {\n $absDir = DIRREQ.$this->dir;\n if (file_exists($absDir.$this->file.'.php')) {\n $this->page = $absDir.$this->file.'.php';\n } elseif (file_exists($absDir.'index.php')) {\n $this->page = $absDir.'index.php';\n } else {\n $this->page = DIRREQ.'views/404.php'; \n }\n }", "public function request(Request $request)\n {\n if (file_exists($this->getFilename())) {\n return new Response(file_get_contents($this->getFilename()), 200);\n } else {\n return new Response('', 500);\n }\n }", "public function fileNeedsProcessing() {}", "public function run() {\n // 1. Getting the request string\n $uri = $this->getURI();\n $uri_arr = explode('/', $uri);\n if ($uri_arr !== false) {\n $flag = false;\n foreach ($uri_arr as $key=>$item) {\n if (($item === 'articles' or $item === 'auth') and $key > 0) {\n define('FOLDER_NAME', $uri_arr[$key - 1]);\n $flag = true;\n }\n }\n if (!$flag) {\n define('FOLDER_NAME', '');\n }\n }\n\n // 2. Checking if the request exists in routes\n foreach ($this->routes as $req=>$act) {\n // 3. If getting match then define the controller and action\n if (preg_match('@'.$req.'@', $uri)) {\n // 4. Importing file of chosen controller\n if ($req !== '') {\n $internal = preg_replace('@' . $req . '@', $act, $uri);\n }\n else {\n $internal = $act;\n }\n $matches = array();\n preg_match('@(articles/.*$|main/.*$|auth/.*$)@', $internal, $matches);\n $internal = $matches[0];\n $full_request = explode('/', $internal);\n $controller = ucfirst($full_request[0].'Controller');\n $action = 'action'.explode('?', ucfirst($full_request[1]))[0];\n $params = array();\n for ($i = 2; $i < count($full_request); $i++) {\n $params[$i - 2] = $full_request[$i];\n }\n $file = ROOT.'/controllers/'.$controller.'.php';\n if (file_exists($file)) {\n include_once($file);\n }\n // 5. Creating object and doing action\n try {\n $chosenController = new $controller;\n $is_done = call_user_func_array(array($chosenController, $action), $params);\n }\n catch (TypeError $e) {\n header(\"HTTP/1.0 404 Not Found\");\n $is_done = false;\n }\n if ($is_done) break;\n }\n }\n\n }", "public function distribute()\n {\n try {\n Container::get('request')->parse();\n } catch (\\Exception $e) {\n $this->error($e->getMessage(), Response::STATUS_BAD_REQUEST);\n }\n\n if (\n !Container::get('request')->isMethod('get') &&\n !Container::get('request')->isMethod('post') &&\n !Container::get('request')->isMethod('head')\n ) {\n $this->error(\n sprintf('Request method \"%s\" is not allowed!', Container::get('request')->getMethod()),\n Response::STATUS_METHOD_NOT_ALLOWED\n );\n }\n\n // analyze request headers\n foreach (Container::get('request')->getHeaders() as $name=>$value) {\n switch($name) {\n case 'Time-Zone':\n if (in_array($value, timezone_identifiers_list())) {\n date_default_timezone_set($value);\n } else {\n $this->warning(\n sprintf('The \"%s\" timezone defined is not valid!', $value)\n );\n }\n break;\n default: break;\n }\n }\n\n // user files\n $type = Container::get('request')->getData('source_type', 'data_input');\n $this->setSourceType($type);\n if ($this->getSourceType() == 'file') {\n $files = Container::get('request')->getFiles();\n if (!empty($files)) {\n foreach ($files as $name=>$path) {\n $this->addSource(\n file_get_contents($path), $name\n );\n }\n }\n }\n\n // any test to launch\n $test = Container::get('request')->getData('test');\n if (!empty($test)) {\n $method = 'testAction_'.$test;\n if (method_exists($this, $method)) {\n call_user_func(array($this, $method));\n } else {\n $this->warning(\n sprintf('Test method \"%s\" not found!', $test)\n );\n }\n }\n\n // end here if no 'source' or 'sources' post data\n $source = Container::get('request')->getData('source');\n $sources = Container::get('request')->getData('sources');\n $_sources = $this->getSources();\n if (empty($source) && empty($sources) && empty($_sources)) {\n $this\n ->warning('No source to parse!')\n ->serve();\n } else {\n if (!empty($sources)) {\n $this->setSources(array_merge(\n $_sources, $sources\n ));\n }\n if (!empty($source)) {\n $this->addSource($source);\n }\n }\n\n // debug mode on?\n $this->setDebug(Container::get('request')->getData('debug', false));\n\n // load the MDE parser\n if (!class_exists('\\MarkdownExtended\\MarkdownExtended')) {\n $this->error('Class \"\\MarkdownExtended\\MarkdownExtended\" not found!');\n }\n Container::set('mde_parser', new \\MarkdownExtended\\MarkdownExtended());\n\n return $this;\n }", "private function run()\n {\n $dispatcher = $this->getDispatcher(self::getConfigSection('routes'));\n\n $routeInfo = $dispatcher->dispatch(self::getRequest('method'), self::getRequest('path'));\n\n switch ($routeInfo[0]) {\n case \\FastRoute\\Dispatcher::NOT_FOUND:\n $this->errorNotFound();\n break;\n case \\FastRoute\\Dispatcher::METHOD_NOT_ALLOWED:\n $this->error405();\n break;\n case \\FastRoute\\Dispatcher::FOUND:\n $this->actionParams = $routeInfo[2];\n $handler = explode('.', $routeInfo[1]);\n $this->controllerName = 'app\\controllers\\\\' . ucfirst($handler[0]) . 'Controller';\n $controllerFile = ucfirst($handler[0]) . 'Controller.php';\n $this->actionName = 'action' . ucfirst($handler[1]);\n $this->actionSlug = $handler[0] . '.' . $handler[1];\n if (!file_exists(self::$request['root_path'] . '/app/controllers/' . $controllerFile) ||\n !method_exists($this->controllerName, $this->actionName)) {\n //there is not a controller file or action name == index\n if (App::getConfig('app.debug')) {\n echo 'There is not a controller file \"' . $controllerFile . '\" or action name == index';\n }\n $this->errorNotFound();\n }\n if (isset($handler[2])) {\n //part of hangler for checking permissions\n if ($handler[2] == 'auth') {\n //need login and not logged\n if (App::isGuest()) {\n $this->redirect(App::getConfig('app.login_url'));\n }\n } else {\n //check permission for $handler[2]\n $auth = self::getComponent('auth');\n $user = self::getUser();\n $checkUser = $user ? $auth->hasAccessTo($user->email, $handler[2]) : false;\n if (!$checkUser) {\n //user does not exists or user does not have a permission\n $this->error405();\n }\n }\n }\n break;\n }\n $this->startAction();\n }", "public function handleRequest() {\n\t\t\n\t\tif (is_null($this->itemObj)) {\n\t\t\t$this->itemObj = MovieServices::getVcdByID($this->getParam('vcd_id'));\n\t\t}\n\t\t\n\t\t$action = $this->getParam('action');\n\t\t\n\t\tswitch ($action) {\n\t\t\tcase 'upload':\n\t\t\t\t$this->uploadImages();\n\t\t\t\t// reload and close upon success\n\t\t\t\tredirect('?page=addscreens&vcd_id='.$this->itemObj->getID().'&close=true');\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'fetch':\n\t\t\t\t$this->fetchImages();\n\t\t\t\t// reload and close upon success\n\t\t\t\tredirect('?page=addscreens&vcd_id='.$this->itemObj->getID().'&close=true');\n\t\t\t\tbreak;\n\t\t\n\t\t\tdefault:\n\t\t\t\tredirect();\n\t\t\t\tbreak;\n\t\t}\n\t}", "public function run()\r\r\n\t{\r\r\n\t\t// Make sure there are no attempts to hack the file system\r\r\n\t\tif (preg_match('@^\\.+@i', $this->strImage) || preg_match('@\\.+/@i', $this->strImage) || preg_match('@(://)+@i', $this->strImage))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 404 Not Found');\r\r\n\t\t\tdie('Invalid file name');\r\r\n\t\t}\r\r\n\r\r\n\t\t// Limit image processing to the tl_files directory\r\r\n\t\tif (!preg_match('@^' . preg_quote($GLOBALS['TL_CONFIG']['uploadPath'], '@') . '@i', $this->strImage))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 404 Not Found');\r\r\n\t\t\tdie('Invalid path');\r\r\n\t\t}\r\r\n\r\r\n\t\t$strImage = $this->getImage($this->strImage, $this->Input->get('width'), $this->Input->get('height'));\r\r\n\t\t$arrImage = getimagesize($strImage);\r\r\n\r\r\n\t\theader('Content-type: ' . $arrImage['mime']);\r\r\n\t\treadfile(TL_ROOT . '/' . $strImage);\r\r\n\t}", "public function processRequest()\n {\n $params = json_decode(file_get_contents('php://input'),true);\n\n if ( $_POST [ 'action' ] == 'setScreenVars' )\n {\n $this->setScreenVars();\n\n } \n elseif ( $_POST [ 'action' ] == 'loadHero' )\n\n {\n $this->loadHero();\n\n } \n elseif ( $_POST [ 'action' ] == 'loadThumb' )\n\n {\n $this->loadThumb();\n\n } \n elseif ( $_POST [ 'action' ] == 'setScreenVars' )\n\n {\n $this->setScreenVars();\n }\n //this one sent from angular, use $params\n elseif ( $params [ 'action' ] == 'getSiteData' )\n {\n $this->getSiteData();\n }\n elseif ( $_POST [ 'action' ] == 'contactFormSubmit' )\n {\n $this->contactFormSubmit();\n }\n else \n {\n\n if ( $_SESSION['user']['access'] == '2' ) {\n if ( $_POST [ 'action' ] == 'sortUpdate' )\n {\n $this->sortUpdate();\n }\n elseif ( $_POST [ 'action' ] == 'imgStatusUpdate' )\n {\n $this->imgStatusUpdate();\n }\n elseif ( $_POST [ 'action' ] == 'deleteImage' )\n {\n $this->deleteImage();\n }\n elseif ( $_POST [ 'action' ] == 'saveCaption' )\n {\n $this->saveCaption();\n }\n }\n else \n {\n //no action requested, just notifify this file being accessed\n echo ( 'ajax file' );\n } \n }\n\n }", "public function setAsMainFile(Request $request) {\n // TODO\n exit;\n }", "public function handleUploads()\n\t{\n\t\t// Iterate over all received files\n\t\t$this->processFiles($this->httpRequest->getFiles());\n\t\treturn true; // Skip all next\n\t}", "public function process($path, Request $request);", "abstract protected function process(Request $request);", "public function run(){\n $this->session->start();\n $this->request->prepareUrl();\n $this->file->require('App/index.php');\n list($controller,$method,$arguments) = $this->route->getProperRoute();\n }", "public function run()\r\r\n\t{\r\r\n\t\t// Make sure there are no attempts to hack the file system\r\r\n\t\tif (preg_match('@^\\.+@i', $this->strFile) || preg_match('@\\.+/@i', $this->strFile) || preg_match('@(://)+@i', $this->strFile))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 404 Not Found');\r\r\n\t\t\tdie('Invalid file name');\r\r\n\t\t}\r\r\n\r\r\n\t\t// Limit downloads to the tl_files directory\r\r\n\t\tif (!preg_match('@^' . preg_quote($GLOBALS['TL_CONFIG']['uploadPath'], '@') . '@i', $this->strFile))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 404 Not Found');\r\r\n\t\t\tdie('Invalid path');\r\r\n\t\t}\r\r\n\r\r\n\t\t// Check whether the file exists\r\r\n\t\tif (!file_exists(TL_ROOT . '/' . $this->strFile))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 404 Not Found');\r\r\n\t\t\tdie('File not found');\r\r\n\t\t}\r\r\n\r\r\n\t\t// Die if there is no token or if the tokens do not match\r\r\n\t\tif (!strlen($this->Input->get('token')) || !is_array($_SESSION['downloadToken']) || !in_array($this->Input->get('token'), $_SESSION['downloadToken']))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 403 Forbidden');\r\r\n\t\t\tdie('Invalid download token');\r\r\n\t\t}\r\r\n\r\r\n\t\t// Die if the file is not allowed\r\r\n\t\tif (!is_array($_SESSION['downloadFiles']) || !in_array($this->strFile, $_SESSION['downloadFiles']) || !preg_match('/^' . preg_quote($GLOBALS['TL_CONFIG']['uploadPath'], '/') . '\\//i', $this->strFile))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 403 Forbidden');\r\r\n\t\t\tdie(sprintf('Download of file \"%s\" is not allowed', $this->strFile));\r\r\n\t\t}\r\r\n\r\r\n\t\t$objFile = new File($this->strFile);\r\r\n\t\t$arrAllowedTypes = trimsplit(',', strtolower($GLOBALS['TL_CONFIG']['allowedDownload']));\r\r\n\r\r\n\t\tif (!in_array($objFile->extension, $arrAllowedTypes))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 403 Forbidden');\r\r\n\t\t\tdie(sprintf('File type \"%s\" is not allowed', $objFile->extension));\r\r\n\t\t}\r\r\n\r\r\n\t\t// Open the \"save as...\" dialogue\r\r\n\t\theader('Content-Type: ' . $objFile->mime);\r\r\n\t\theader('Content-Transfer-Encoding: binary');\r\r\n\t\theader('Content-Disposition: attachment; filename=\"'.$objFile->basename.'\"');\r\r\n\t\theader('Content-Length: '.$objFile->filesize);\r\r\n\t\theader('Cache-Control: must-revalidate, post-check=0, pre-check=0'); \r\r\n\t\theader('Pragma: public');\r\r\n\t\theader('Expires: 0');\r\r\n\r\r\n\t\t$resFile = fopen(TL_ROOT . '/' . $this->strFile, 'rb');\r\r\n\t\tfpassthru($resFile);\r\r\n\t\tfclose($resFile);\r\r\n\r\r\n\t\t// HOOK: post download callback\r\r\n\t\tif (array_key_exists('postDownload', $GLOBALS['TL_HOOKS']) && is_array($GLOBALS['TL_HOOKS']['postDownload']))\r\r\n\t\t{\r\r\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['postDownload'] as $callback)\r\r\n\t\t\t{\r\r\n\t\t\t\t$this->import($callback[0]);\r\r\n\t\t\t\t$this->$callback[0]->$callback[1]($this->strFile);\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\t}", "public function fileAction() \n {\n // Get the file name from GET variable\n $fileName = $this->params()->fromQuery('name', '');\n \n $postId = $this->params()->fromQuery('id', '');\n \n // Check whether the user needs a thumbnail or a full-size image\n $isThumbnail = (bool)$this->params()->fromQuery('thumbnail', false);\n \n // Validate input parameters\n if (empty($fileName) || strlen($fileName)>128) {\n throw new \\Exception('File name is empty or too long');\n }\n \n // Get path to image file\n $fileName = $this->imageManager->getImagePathByName($fileName, $postId);\n \n if($isThumbnail) { \n // Resize the image\n $fileName = $this->imageManager->resizeImage($fileName);\n }\n \n // Get image file info (size and MIME type).\n $fileInfo = $this->imageManager->getImageFileInfo($fileName); \n if ($fileInfo===false) {\n // Set 404 Not Found status code\n $this->getResponse()->setStatusCode(404); \n return;\n }\n \n // Write HTTP headers.\n $response = $this->getResponse();\n $headers = $response->getHeaders();\n $headers->addHeaderLine(\"Content-type: \" . $fileInfo['type']); \n $headers->addHeaderLine(\"Content-length: \" . $fileInfo['size']);\n \n // Write file content \n $fileContent = $this->imageManager->getImageFileContent($fileName);\n if($fileContent!==false) { \n $response->setContent($fileContent);\n } else { \n // Set 500 Server Error status code\n $this->getResponse()->setStatusCode(500);\n return;\n }\n \n if($isThumbnail) {\n // Remove temporary thumbnail image file.\n unlink($fileName);\n }\n \n // Return Response to avoid default view rendering.\n return $this->getResponse();\n }", "private function processGet($send)\r\n {\r\n $file = $this->directory.$this->getFilename();\r\n\r\n if (file_exists($file) === false || is_readable($file) === false) {\r\n throw new RequestException('The file '.$this->uuid.' doesn\\'t exist', 404);\r\n }\r\n\r\n $this->response = new Response(null, 200);\r\n $this->addCommonHeader();\r\n\r\n $this->response->headers['Content-Type'] = 'application/force-download';\r\n $this->response->headers['Content-disposition'] = 'attachment; filename=\"'.str_replace('\"', '', basename($this->uuid)).'\"';\r\n $this->response->headers['Content-Transfer-Encoding'] = 'application/octet-stream';\r\n $this->response->headers['Pragma'] = 'no-cache';\r\n $this->response->headers['Cache-Control'] = 'must-revalidate, post-check=0, pre-check=0, public';\r\n $this->response->headers['Expires'] = true;\r\n $this->response->headers['Content-Length'] = filesize($file);\r\n\r\n if ($send === true) {\r\n $this->response->sendHeaders();\r\n\r\n readfile($file);\r\n exit;\r\n }\r\n }", "public function run()\n {\n $requested_url = explode('/', $this->requestUrl);\n\n if (!empty($this->definedRoutes[$this->requestMethod])) {\n foreach ($this->definedRoutes[$this->requestMethod] as $route => $action) {\n $route = explode('/', $route);\n $route_depth = count($route);\n\n // Check for defined route parameters\n for( $i = 0; $i < $route_depth; $i++) {\n if (preg_match('/\\{([\\w?]+?)\\}/',$route[$i])) {\n if (isset($requested_url[$i])) {\n array_push($this->requestParameters, $requested_url[$i]);\n // replace defined route parameters with peer request url parameter for final comparison\n $route[$i] = $requested_url[$i];\n }\n }\n }\n\n // Check for unreplaced route parameters and delete them if are optional parameters (for final comparison)\n for ($j = 0; $j < $route_depth; $j++) {\n if (preg_match('/\\{([\\w]+?)\\?}/', $route[$j])) {\n unset($route[$j]);\n }\n }\n\n $route = implode('/', $route);\n\n // Final comparision. Check requested url is equal to current checking route\n if ($route == $this->requestUrl) {\n $this->matched = true;\n\n if ($action instanceof Closure) {\n return call_user_func_array($action, $this->requestParameters);\n } else if($this->isController($action)) {\n return $this->loadController($action);\n } else {\n throw new Exception('Invalid action for route');\n }\n break; // Route found, stop the operations\n } else {\n $this->reset();\n }\n }\n }\n\n if ($this->matched === false) {\n return $this->exception->notFound();\n }\n }", "public function FileNotFound() {\n $this->Render();\n }", "public function process() : Response\n {\n \t$this->parseRequestParameter();\n\n $this->baseDirectorySaveFile = $this->getSetting('baseDirectorySaveFile');\n $this->baseDirectorySaveTemporaryFile = $this->getSetting('baseDirectorySaveTemporaryFile');\n\n $uploadHandler = new UploadHandler(\n $this->baseDirectorySaveTemporaryFile,\n $this->baseDirectorySaveFile,\n $this->indentifier,\n $this->fileName,\n $this->numberChunkedOfFile\n );\n\n $this->callEventListener('onload');\n\n // handle multi upload\n foreach ($this->request->getUploadedFiles() as $uploadedFile) {\n $uploadHandler->receiveUploadChunked($uploadedFile, $this->chunkedNumber);\n\n $uploadHandler->addEventListener('onprogress', function() {\n $this->callEventListener('onprogress');\n $this->response = $this->response->withStatus(202);\n });\n\n $uploadHandler->addEventListener('onerror', function($error) {\n $this->callEventListener('onerror', $error);\n $this->response = $this->response->withStatus(500);\n });\n\n $uploadHandler->addEventListener('onfinished', function() {\n $this->callEventListener('onfinished');\n $this->response = $this->response->withStatus(200);\n });\n\n $uploadHandler->process();\n }\n\n\t\treturn $this->response;\n }", "public function handleRequest()\n {\n $router = new Router();\n $controllerClass = $router->resolve()->getController();\n $controllerAction = $router->getAction();\n\n \n\n if(!class_exists($controllerClass)\n || !method_exists($controllerClass,$controllerAction)\n ){\n header('Not found', true, 404);\n exit;\n }\n\n $controller = new $controllerClass();\n call_user_func([$controller, $controllerAction]);\n\n }", "public function handle()\n {\n // and should exist on the server. If we can find a matching partial file, we're\n // good and we'll resume that.\n if(PartialFile::exists($this->patch())) {\n $this->file = PartialFile::find($this->patch());\n return;\n }\n\n // Sometimes the client actually did upload the last chunk but didn't receive\n // a successful confirmation, and is retrying. If we can find a matching completed\n // file we'll use it, and will tell the client that it's all good.\n if(File::exists($this->patch())) {\n $this->file = File::find($this->patch());\n return;\n }\n\n // If we found no matching file at all, I'm not really sure what happened.\n // Maybe the client stalled, and sat for hours before hitting retry, and\n // the partial file was already cleaned up? In any event, we have to treat\n // it as a new upload that is just starting.\n $this->file = PartialFile::initialize($this->patch());\n }", "public function index() \n\t{\n\t\tif(! $this->xmlHttpRequest){\n\t\t\t$this->registry->template->show($this->file . $this->extension);\n\t\t}\n\t\telse{\n\t\t\t$this->process();\n\t\t}\n\t}", "public function main($country = Null, $file = Null) {\n CakeLog::config('apache.log', array(\n 'engine' => 'CustomFileLog',\n 'path' => dirname(APP) . DS . \"app\" . DS . \"tmp\" . DS . \"logs\" . DS\n ));\n\n // Get the requested country\n $requestedCountry = $this->request->params['country'];\n\n // The download directory\n $downloadsDirectory = dirname(APP) . DS . \"Data\" . DS . ucfirst($requestedCountry);\n\n // Get the request file\n $requestedFile = $this->request->params['file'];\n\n $parts = explode(\".\", $requestedFile);\n\n $filename = implode(\".\" , array_slice($parts, 0, -1));\n $suffix = $parts[count($parts) - 1];\n\n $filepath = $downloadsDirectory . DS . $requestedFile;\n\n if (!file_exists($filepath)) {\n // Log an error attempt\n $message = array(\n 'clientIp' => $this->request->clientIp(),\n 'method' => $this->request->method(),\n 'here' => $this->request->here,\n 'referer' => $this->request->referer(),\n 'status' => 401,\n 'filesize' => 0,\n 'text' => \"File does not exist: \" . $downloadsDirectory . DS . $requestedFile\n );\n CakeLog::write(\"apache_error\", $message);\n throw new NotFoundException(\"File not found.\");\n }\n\n // Log a successful download\n $message = array(\n 'clientIp' => $this->request->clientIp(),\n 'method' => $this->request->method(),\n 'here' => $this->request->here,\n 'referer' => $this->request->referer(),\n 'status' => 200,\n 'filesize' => filesize($downloadsDirectory . DS . $requestedFile)\n );\n CakeLog::write(\"apache_access\", $message);\n\n $this->viewClass = 'Media';\n\n // Return app/files/file\n $params = array(\n 'id' => $requestedFile,\n 'name' => $filename,\n 'extension' => $suffix,\n 'download' => true,\n 'mimeType' => array(\n $suffix => 'application/octet-stream'\n ),\n 'path' => $downloadsDirectory . DS\n );\n\n $this->set($params);\n }", "private function resolveRequest(){\n\t\t$controllers_dir = puppy::getAppDir().'controllers';\n\t\t$path_segments = explode('/', $this->getPathInfo());\n\t\t\n\t\t$controller_location = null;\n\t\t$controller_name = null;\n\t\t$action_name = null;\n\t\t\n\t\t//build path to controller\n\t\t$build_path = $controllers_dir;\n\t\tforeach($path_segments as $k => $dir){\n\t\t\t$build_path = $build_path.'/'.$dir;\n\t\t\tif(file_exists($build_path.\"/\")){\n\t\t\t\tif(is_dir($build_path)){\n\t\t\t\t\t$controller_location = $build_path;\n\t\t\t\t\tif(is_file($build_path.'/'.$dir.'.php')){\n\t\t\t\t\t\t$controller_name = $dir;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$action_name = $dir;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//call action\n\t\tif(file_exists($controller_location.'/'.$controller_name.'.php')){\n\t\t\t//wrap require in try catch to state file has error\n\t\t\trequire_once($controller_location.'/'.$controller_name.'.php');\n\t\t\t$controller = new $controller_name();\n\t\t\tif($action_name !== null)\n\t\t\t\t$controller->$action_name();\n\t\t}\n\t}", "public static function process(RouteInfo $r)\n\t{\n\t\t$params_required = ['oz_file_id', 'oz_file_key', 'oz_file_quality'];\n\t\t$args = $r->getArgs();\n\n\t\tAssert::assertForm($args, $params_required, new NotFoundException());\n\n\t\t$file_id = $args['oz_file_id'];\n\t\t$file_key = $args['oz_file_key'];\n\t\t$file_quality = (int) ($args['oz_file_quality']);\n\t\t$file_src = null;\n\t\t$access = SettingsManager::get('oz.files', 'OZ_GET_FILE_ACCESS_LEVEL');\n\t\t$users_manager = $r->getContext()\n\t\t\t\t\t\t ->getUsersManager();\n\n\t\tif ($access === 'users') {\n\t\t\t$picid = $file_id . '_' . $file_key;\n\n\t\t\tif (!$users_manager->userVerified() && !self::isLastUserPic($r->getContext(), $picid)) {\n\t\t\t\tthrow new ForbiddenException();\n\t\t\t}\n\t\t}\n\n\t\t$result = FilesUtils::getFileWithId($file_id, $file_key);\n\n\t\tif (!$result) {\n\t\t\tthrow new NotFoundException();\n\t\t}\n\n\t\tif ($file_quality > 0) {\n\t\t\t// if the client wants a thumbnails and we do not have it\n\t\t\t// then we notify it; the client should be able to handle this situation\n\t\t\tif (empty($result->getThumb())) {\n\t\t\t\tthrow new NotFoundException();\n\t\t\t}\n\n\t\t\t$file_src = $result->getThumb();\n\t\t} else {\n\t\t\t$file_src = $result->getPath();\n\t\t}\n\n\t\tif (empty($file_src) || !\\file_exists($file_src) || !\\is_file($file_src) || !\\is_readable($file_src)) {\n\t\t\t// NOTE keep this log, helpful for debugging\n\t\t\t$real_error = new InternalErrorException('The file is in the database but not at specified path.', [\n\t\t\t\t'file_id' => $file_id,\n\t\t\t\t'file_src' => $file_src,\n\t\t\t]);\n\n\t\t\tthrow new NotFoundException(null, null, $real_error);\n\t\t}\n\n\t\t$path_parts = \\pathinfo($file_src);\n\t\t$real_file_extension = \\strtolower($path_parts['extension']);\n\t\t$file_mime = FilesUtils::extensionToMimeType($real_file_extension);\n\t\t$file_name = SettingsManager::get('oz.files', 'OZ_GET_FILE_NAME');\n\n\t\t// when the request provide an extension and the extension\n\t\t// does not match the file extension\n\t\t// we just return a not found\n\t\tif (isset($args['oz_file_extension'])) {\n\t\t\t$request_file_extension = \\strtolower($args['oz_file_extension']);\n\n\t\t\tif ($request_file_extension !== $real_file_extension) {\n\t\t\t\tthrow new NotFoundException();\n\t\t\t}\n\t\t}\n\n\t\tif (\\strlen($file_name)) {\n\t\t\t$file_name = \\str_replace([\n\t\t\t\t'{oz_file_id}',\n\t\t\t\t'{oz_file_quality}',\n\t\t\t\t'{oz_file_extension}',\n\t\t\t], [\n\t\t\t\t$file_id,\n\t\t\t\t$file_quality,\n\t\t\t\t$real_file_extension,\n\t\t\t], $file_name);\n\t\t} else {\n\t\t\t$file_name = $result->getName();\n\t\t}\n\n\t\t$fis = new FilesServer();\n\n\t\treturn $fis->serve($r->getContext(), [\n\t\t\t'file_src' => $file_src,\n\t\t\t'file_quality' => $file_quality,\n\t\t\t'file_name' => $file_name,\n\t\t\t'file_mime' => $file_mime,\n\t\t]);\n\t}", "public function run()\n {\n // if the pattern does not match with the route then\n // set the flag value to false\n $flag = true;\n\n // The relative path excluding the host name\n $path = substr($_SERVER['PHP_SELF'], 0, strpos($_SERVER['PHP_SELF'],'index.php'));\n\n // RequestURL excluding the script file[index.php]\n $request = $this->getURL();\n\n if(SITE_URL === $path) {\n\n $realRoute = (stripos($request, $path) !== false) ?\n (string) substr($request, strlen(SITE_URL)) : \"\";\n\n\n\n foreach ($this->routes as $urlPattern => $path) {\n\n if (preg_match(\"~$urlPattern~\", $realRoute)) {\n\n $internalRoute = preg_replace(\"~$urlPattern~\", $path, $realRoute, 1);\n $internalRoute = trim($internalRoute,'/');\n $parts = explode('/', $internalRoute);\n\n $controllerName = 'ShopApp\\\\Controllers\\\\' . ucfirst(array_shift($parts)) . 'Controller';\n $actionName = 'action' . ucfirst(array_shift($parts));\n $urlParams = $parts;\n\n if (class_exists($controllerName)) {\n\n $ref = new \\ReflectionClass($controllerName);\n\n if ($ref->hasMethod($actionName)) {\n\n if ($ref->isInstantiable()) {\n $controller = $ref->newInstance();\n $action = $ref->getMethod($actionName);\n\n $callAction = $action->invokeArgs($controller, $urlParams);\n break;\n }\n }\n else{\n $flag = false;\n }\n }\n\n }\n }\n } else {\n try {\n throw new \\Exception('<p style=\"color:red\">Не правильный адресс сайта.</p>');\n } catch (\\Exception $e) {\n echo $e->getMessage();\n exit();\n }\n }\n\n if(!$flag) {\n\n throw new ContrExeption(\n '<p style=\"color:red\">\n Неверно заданы маршруты\n в конфигурационном файле\n </p>'\n );\n }\n }", "public function process()\n\t{\n\t\t$action = $this->getAction();\n\t\tswitch (strtolower($action))\n\t\t{\n\t\t\tcase 'get':\n\t\t\tcase 'put':\n\t\t\tcase 'post':\n\t\t\tcase 'delete':\n\t\t}\t\n\t}", "public function processRequest() {\r\n switch($this->requestMethod) {\r\n case 'GET':\r\n if($this->id) {\r\n $response = $this->get($this->id);\r\n }\r\n else {\r\n $response = $this->getAll();\r\n }\r\n break;\r\n case 'POST':\r\n $response = $this->create();\r\n break;\r\n case 'PUT':\r\n $response = $this->update($this->id);\r\n break;\r\n case 'DELETE':\r\n $response = $this->delete($this->id);\r\n break;\r\n case 'OPTIONS':\r\n break;\r\n default:\r\n $response = $this->notFoundResponse();\r\n break;\r\n }\r\n\r\n header($response['status_code_header']);\r\n\r\n // If there is a body then echo it\r\n if($response['body']) {\r\n echo $response['body'];\r\n }\r\n }", "public function process(Aloi_Serphlet_Application_HttpRequest $request, Aloi_Serphlet_Application_HttpResponse $response) {\r\n\r\n\t\ttry {\r\n\t\t\t// Identify the path component we will use to select a mapping\r\n\t\t\t$path = $this->processPath($request, $response);\r\n\t\t\tif (is_null($path)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (self::$log->isDebugEnabled()) {\r\n\t\t\t\tself::$log->debug('Processing a \"' . $request->getMethod() . '\" for path \"' . $path . '\"');\r\n\t\t\t}\r\n\r\n\t\t\t// Select a Locale for the current user if requested\r\n\t\t\t$this->processLocale($request, $response);\r\n\r\n\t\t\t// Set the content type and no-caching headers if requested\r\n\t\t\t$this->processContent($request, $response);\r\n\t\t\t$this->processNoCache($request, $response);\r\n\r\n\t\t\t// General purpose preprocessing hook\r\n\t\t\tif (!$this->processPreprocess($request, $response)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t//Identify the mapping for this request\r\n\t\t\t$mapping = $this->processMapping($request, $response, $path);\r\n\t\t\tif (is_null($mapping)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Check for any role required to perform this action\r\n\t\t\tif (!$this->processRoles($request, $response, $mapping)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Process any ActionForm bean related to this request\r\n\t\t\t$form = $this->processActionForm($request, $response, $mapping);\r\n\t\t\t$this->processPopulate($request, $response, $form, $mapping);\r\n\t\t\tif (!$this->processValidate($request, $response, $form, $mapping)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Process a forward or include specified by this mapping\r\n\t\t\tif (!$this->processForward($request, $response, $mapping)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (!$this->processInclude($request, $response, $mapping)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Create or acquire the Action instance to process this request\r\n\t\t\t$action = $this->processActionCreate($request, $response, $mapping);\r\n\t\t\tif (is_null($action)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Call the Action instance itself\r\n\t\t\t$forward = $this->processActionPerform($request, $response, $action, $form, $mapping);\r\n\r\n\t\t\t// Process the returned ActionForward instance\r\n\t\t\t$this->processForwardConfig($request, $response, $forward);\r\n\t\t} catch (ServletException $e) {\r\n\t\t\tthrow $e;\r\n\t\t}\r\n\t}", "private function handleCall() { //$this->request\n $err = FALSE;\n // route call to method\n $this->logToFile($this->request['action']);\n switch($this->request['action']) {\n // Edit form submitted\n case \"edit\":\n // TODO: improve error handling\n try {\n $this->logToFile(\"case: edit\");\n $this->edit($this->request['filename']);\n //$this->save();\n } catch (Exception $e) {\n $err = \"Something went wrong: \";\n $err .= $e.getMessage();\n }\n break;\n }\n // TODO: set error var in response in case of exception / error\n // send JSON response\n if($err !== FALSE) {\n $this->request['error_msg'] = $err;\n }\n $this->giveJSONResponse($this->request);\n }", "public function run()\n\t{\n\n\t\t$finded = false;\n\n\t\t$method = $this->request->getMethod();\n\n\t\tforeach((array)$this->reg[ $method ] as $route=>$opts)\n\t\t{\n\t\n\t\t\t$pattern = \"/^\" . str_replace(array(\"/\", \"*\", \"%any\", \"%part\", \"%num\"), array(\"\\/\", \".*\", \"(.*)\", \"([^\\/]*)\", \"([0-9]+)\"), $route) . \"\\/?$/\";\n\n\t\t\t// echo $this->request->path();\n\t\t\t\n\t\t\tif( preg_match($pattern, $this->request->path(), $m) )\n\t\t\t{ \n\n\t\t\t\tcall_user_func_array($opts['function'], array_slice($m, 1));\n\n\t\t\t\t// TODO: implementar execucao de middlewares\n\t\t\t\tif( array_key_exists('middleware', $opts) )\n\t\t\t\t{\n\n\t\t\t\t\tforeach($opts['middleware'] as $middle_name)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t$refl = new \\ReflectionClass(\"\\Coupe\\Middleware\\\\\" . $middle_name);\n\n\t\t\t\t\t\t$inst = $refl->newInstanceArgs(array($this->request));\n\n\t\t\t\t\t\t$inst();\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$finded = true;\n\t\t\t\t\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t// TODO: fazer redirect para pagina de erro 404\n\t\tif( ! $finded )\n\t\t{\n\t\t\tthrow new \\Exception(\"Caminho não encontrado.\", 1);\n\t\t}\n\n\t\tparent::run();\n\t\t\n\t\texit(0);\n\n\t}", "public function index() {\n // Retrieves file name from parameters\n $file = $this->request->query('file');\n\n if($file == 'config_species') {\n $this->set('read', $this->readConfigSpecies());\n }\n else if( $file == 'config_bogas') {\n $this->set('read', $this->readConfigBogas());\n }\n else {\n $this->error404('Requested resource has not been found!');\n return;\n }\n\n // Sets response header as 200 OK\n $this->response->statusCode(200);\n // Defines response as yaml\n $this->RequestHandler->renderAs($this, 'application/x-yaml');\n $this->set('_serialize', 'read');\n }", "public function onRequestUrl(&$url)\n {\n // if hash match, handle request\n if (substr($url, 0, strlen($this->hash)) === $this->hash) {\n // check user rights\n if (!$this->setRights()) {\n $url = '403';\n header('HTTP/1.1 403 Forbidden');\n exit;\n }\n $method = $_SERVER['REQUEST_METHOD'];\n switch($method) {\n case 'POST':\n $save = $this->createFile();\n if ($save) {\n echo 'ok';\n } else {\n header('HTTP/1.1 400 Bad Request');\n echo $this->info;\n }\n break;\n case 'PUT':\n $save = $this->editFile();\n if ($save) {\n echo 'ok';\n } else {\n header('HTTP/1.1 400 Bad Request');\n echo $this->info;\n }\n break;\n case 'DELETE':\n $save = $this->deleteFile();\n if ($save) {\n echo 'ok';\n } else {\n header('HTTP/1.1 400 Bad Request');\n echo $this->info;\n }\n break;\n case 'GET':\n // read file content and output\n if (file_exists(CONTENT_DIR . $_GET['path'] . CONTENT_EXT)) {\n readFile(CONTENT_DIR . $_GET['path'] . CONTENT_EXT);\n } else {\n echo $this->formatContent(file_get_contents(CONTENT_DIR . $this->template));\n }\n break;\n }\n exit; // stop everything!\n }\n }", "public function execute()\n\t{\t\n\t\t$this->controller = new Controller($this->path);\n\t\t$this->static_server = new StaticServer($this->path);\n\t\t\n\t\tCurrent::$plugins->hook('prePathParse', $this->controller, $this->static_server);\n\t\t\n\t\tif ( $this->static_server->isFile() )\n\t\t{\n\t\t\tCurrent::$plugins->hook('preStaticServe', $this->static_server);\n\t\t\t\n\t\t\t// Output the file\n\t\t\t$this->static_server->render();\n\t\t\t\n\t\t\tCurrent::$plugins->hook('postStaticServe', $this->static_server);\n\t\t\t\n\t\t\texit;\n\t\t}\n\t\t\n\t\t// Parse arguments from path and call appropriate command\n\t\tCowl::timer('cowl parse');\n\t\t$request = $this->controller->parse();\n\t\tCowl::timerEnd('cowl parse');\n\t\n\t\tif ( COWL_CLI )\n\t\t{\n\t\t\t$this->fixRequestForCLI($request);\n\t\t}\n\t\t\n\t\t$command = new $request->argv[0];\n\t\t\n\t\t// Set template directory, which is the command directory mirrored\n\t\t$command->setTemplateDir(Current::$config->get('paths.view') . $request->app_directory);\n\t\t\n\t\tCurrent::$plugins->hook('postPathParse', $request);\n\t\t\n\t\tCowl::timer('cowl command run');\n\t\t$ret = $command->run($request);\n\t\tCowl::timerEnd('cowl command run');\n\t\t\n\t\tCurrent::$plugins->hook('postRun');\n\t\t\n\t\tif ( is_string($ret) )\n\t\t{\n\t\t\tCowl::redirect($ret);\n\t\t}\n\t}", "public function run( ) \n\t{\n\t\t//This is for IE which doens't handle 'Content-type: application/json' correctly\n\t header( 'Vary: Accept' );\n\t if( isset( $_SERVER['HTTP_ACCEPT'] ) \n\t && (strpos( $_SERVER['HTTP_ACCEPT'], 'application/json' ) !== false) ) {\n\t header( 'Content-type: application/json' );\n\t } else {\n\t header( 'Content-type: text/plain' );\n\t }\n\t \n\t //Here we check if we are deleting and uploaded file\n\t if( isset( $_GET[\"_method\"] ) ) {\n\t if( $_GET[\"_method\"] == \"delete\" ) {\n\t if( $_GET[\"file\"][0] !== '.' ) {\n\t $file = $path.$_GET[\"file\"];\n\t if( is_file( $file ) ) {\n\t unlink( $file );\n\t }\n\t }\n\t echo json_encode( true );\n\t }\n\t }\n\t\telse {\n\t\t\t//$this->init( );\n\t\t\t$file = CUploadedFile::getInstanceByName('file' );\n\t //We check that the file was successfully uploaded\n\t if( $file !== null ) {\n\t\t\t\t$modelName = $this->modelName;\n\t \t$model = $modelName::loadModel();\n\t \t$fileType = $file->getExtensionName();\n\t\t //if( $this->subfolderVar !== null ) {\n\t\t // $this->_subfolder = Yii::app( )->request->getQuery( $this->subfolderVar, date( \"mdY\" ) );\n\t\t if( $this->subfolderVar !== null && isset($model->attributes[$this->subfolderVar]) ) {\n\t\t $this->_subfolder = $model->attributes[$this->subfolderVar];\n\t\t }\n\t\t $path = ($this->_subfolder != \"\") ? \"{$this->path}/{$this->_subfolder}/\" : \"{$this->path}/\";\n $dirPath = Yii::app() -> getBasePath() . $path;\n //$dirPath = Yii::app()->params['fileRoot'] . \"/\" . $path;\n //$publicPath = Yii::app()->params['publicFilePath'];\n //$publicPath = ($this->_subfolder != \"\") ? \"{$this->publicPath}/{$this->_subfolder}/\" : \"{$this->publicPath}/\";\n $publicPath = Yii::app() -> getBaseUrl() . $path;\n $filename = $file->getName(). \".\".$file->getExtensionName( );\n if (!file_exists( $dirPath )){\n\t\t\t\t\tmkdir( $dirPath, 0775, true);\n\t\t }\n if ($file->saveAs($dirPath . \"/\" . $file->name)) { \t\n // add it to the main model now\n $file_add = new File();\n $file_add->name = $file->getName(); \n $file_add->type = $fileType; \n $file_add->path = $path; // this might be a little long to save in DB....\n $file_add->save(); // DONE\n\t\t\t\t\t//if(isset($model->id)) { // save to assignemnt to file relation table\n\t\t\t $fileAssociation = new FileAssociation();\n\t\t\t $fileAssociation->file_id = $file_add->id;\n\t\t\t $fileAssociation->model_id = $model->id;\n\t\t\t $fileAssociation->model_name = $modelName;\n\t\t\t $fileAssociation->save();\n\t\t\t //}\n\t //Now we need to tell our widget that the upload was succesfull\n\t //We do so, using the json structure defined in\n\t // https://github.com/blueimp/jQuery-File-Upload/wiki/Setup\n\t $responseData = array(\n\t \"name\" => $file_add->name,\n\t \"type\" => $file->getType( ),\n\t \"size\" => $file->getSize( ),\n\t \"url\" => $publicPath.$file->getName(),\n\t //\"thumbnail_url\" => $publicPath.\"thumbs/$filename\",\n\t \"delete_url\" => $this->controller->createUrl( \"XUpload\", array(\n\t \"_method\" => \"delete\",\n\t \"file\" => $filename\n\t ) ),\n\t \"delete_type\" => \"POST\",\n \t\t\t\t'redirect' => $this->controller->createUrl('files', $_REQUEST),\n\t );\n\t //if ($this->redirectUrl){\n\t //\t$responseData[\"redirect\"] = $this->redirectUrl;\n\t //}\n\t echo json_encode( array( $responseData ) );\n }\n else {\n\t //If the upload failed for some reason we log some data and let the widget know\n\t echo json_encode( array( \n\t array( \"error\" => \"Could Not Save File\",\n\t ) ) );\n\t Yii::log( \"XUploadAction: Could Not Save File\",\n\t CLogger::LEVEL_ERROR, \"FileController.actionXUpload\" \n\t );\n }\n\t } else {\n\t throw new CHttpException( 500, \"Could not upload file\" );\n\t }\n\t\t} \n\t}", "public function process_file() {\n //\n $done = false;\n $error = '';\n //\n $filelist = directory_map('/var/lib/mysql-files/uploads/', 1);\n //\n // returns the table selected in the drop down\n //\n $table_name = $this->input->post('tablename');\n //\n // returns the array position of the selected item on the \n // dropdown list\n $fileno = $this->input->post('filename');\n //\n // get text as an array of strings, the dropdown returns a number\n //\n $textarray = $this->read_text($filelist[$fileno]);\n //\n // gets the first line of the text file\n //\n $text_line = $textarray[0];\n //\n $return_value = $this->check_import_match($table_name, $text_line);\n //\n // get list of table columns\n //\n $filepath = '/var/lib/mysql-files/uploads/'.$filelist[$fileno];\n // \n // loads a list of table names into an array\n //\n $tables = $this->load_table_names();\n // send back to import page with message\n if ($return_value === 0) { \n $this->data_driver->load_data($table_name, $filepath);\n //\n $message = 'Your data has been successfully imported';\n // this checks that new users have a role assigned\n $this->check_access_type();\n }\n else\n {\n $message = $return_value; \n }\n // call page\n $this->call_page($tables, $filelist, $message);\n }", "public function route() {\n\t\t$file = $this->app_directory . '/controllers/' . $this->controller . '.php';\n\t\tif(\\mfw\\helpers\\FileHelper::fileExists($file)) {\n\t\t\tinclude $this->app_directory . '/controllers/' . $this->controller . '.php';\n\t\t\t$controller = new $this->controller($this->controller, $this->app_directory);\n\t\t\tcall_user_func_array(array($controller, $this->method), $this->arguments);\n\t\t} else {\n\t\t\tif(defined('DOC_ROOT')) {\n\t\t\t\tinclude DOC_ROOT . '/404.php';\n\t\t\t} else {\n\t\t\t\tthrow new \\Exception(\"404 Page not found\");\n\t\t\t}\n\t\t}\n\t}", "public function handleRequest()\n {\n $route = $this->router->match();\n\n if ($route) {\n $controllerName = $route['target']['controllerName'];\n $methodName = $route['target']['methodName'];\n\n $controller = new $controllerName();\n\n $controller->$methodName($route['params']);\n } else {\n header(\"HTTP:1.0 404 not Found\");\n echo json_encode([\n \"error_code\" => 404,\n \"reason\" => \"page not found\"\n ]);\n }\n }", "abstract public function handle_request();", "public function Start()\n\t{\n\t\t$Request=HttpRequest::InternalPath();\n\t\tif (substr($Request,0,strlen(self::$StaticPrefix)+1)==self::$StaticPrefix.\"/\") //static requset\n\t\t{\n\t\t\treturn $this->StaticContent(substr($Request,strlen(self::$StaticPrefix)+1));\n\t\t}\n\t\telse\n\t\t{\t\t\t\n\t\t\t$file=$this->MatchRoutes($Request);\n\t\t\treturn $this->StartController($file);\n\t\t}\n\t}", "function ServeRequest() \n\t\t{\n\t\t\t//Startet den WebDAV Server und verarbeitet die Anfrage\n\t\t parent::ServeRequest();\n\t\t\t\n\t\t\t//Temp Dateien löschen (die bei GET entstanden sind)\n\t\t\tforeach ($this->tmp_files as $key => $value) {\n\t\t\t\tunlink($value);\n\t\t\t}\n\t\t}", "public function serve()\n {\n $type = $this->getSourceType();\n $sources = $this->getSources();\n $contents = $this->getContents();\n if ($type!='file' && count($sources)==1) {\n $response_data = array(\n 'source' => $sources[0],\n 'content' => $contents[0],\n );\n } else {\n $response_data = array(\n 'sources' => $sources,\n 'contents' => $contents,\n );\n }\n\n $errors_collection = $this->getErrors();\n $errors = array();\n foreach ($errors_collection as $_error) {\n $errors[] = $_error->getFullMessage();\n }\n $response_data['errors'] = $errors;\n\n if ($this->isDebug()) {\n $response_data['dump'] = serialize($this);\n }\n\n if (Container::get('request')->isMethod('head')) {\n Container::get('response')->fetchHeaders();\n exit(PHP_EOL);\n } else {\n try {\n Container::get('response')->send($response_data);\n } catch (\\Exception $e) {\n $this->warning($e->getMessage());\n Container::get('response')\n ->setContent(array('errors'=>$this->getErrors()))\n ->fetch();\n }\n }\n }", "public function run()\n {\n $routeInfo = $this->foundRoute();\n\n if (isset($routeInfo['middleware'])) {\n $middleware = $this->gatherMiddlewareClassNames($routeInfo['middleware']);\n $this->runMiddleware($middleware);\n }\n $response = $this->callControllerAction($routeInfo);\n\n $this->sendRequest($this->response ?: $response);\n\n }", "public function process() {\n\n try {\n \n /*\n * !! IMPORTANT !!\n * Collections with a name starting with '$' character are not collection\n * but reserved actions \n */\n if ($this->request['collection'] && substr($this->request['collection'], 0 , 1) === '$') {\n \n /*\n * Action always returns JSON\n */\n $this->request['format'] = self::DEFAULT_RESPONSE_FORMAT;\n \n /*\n * QueryAnalyzer standalone service\n */\n if ($this->request['collection'] === '$analyzeQuery' && class_exists('QueryAnalyzer')) {\n \n /*\n * Change parameter keys to model parameter key\n * and remove unset parameters\n */\n $params = array();\n foreach ($this->request['params'] as $key => $value) {\n if ($value) {\n foreach(array_keys(RestoController::$searchFiltersDescription) as $filterKey) {\n if ($key === RestoController::$searchFiltersDescription[$filterKey]['osKey']) {\n $params[$filterKey] = $value;\n }\n }\n }\n }\n $qa = new QueryAnalyzer($this->dictionary, RestoController::$searchFiltersDescription, class_exists('Gazetteer') ? new Gazetteer($this) : null);\n $this->response = $qa->analyze($params);\n $this->responseStatus = 200;\n }\n else {\n throw new Exception('Not Found', 404);\n }\n }\n /*\n * Collection is requested\n */\n else if ($this->request['collection']) {\n \n /*\n * Collection does not exist\n */\n if (!$this->collections[$this->request['collection']]) {\n throw new Exception('Not Found', 404);\n }\n \n /*\n * Search collection Controller name within collections list\n */\n $controllerName = null;\n foreach (glob(realpath(dirname(__FILE__)) . '/../controllers/*.php', GLOB_NOSORT) as $controller) {\n if ($this->collections[$this->request['collection']]['controller'] === basename($controller, '.php')) {\n $controllerName = basename($controller, '.php');\n break;\n }\n }\n\n /*\n * Invalid controller \n */\n if (!$controllerName) {\n throw new Exception('Invalid collection', 500);\n }\n \n /*\n * HTTP method is PUT, POST or DELETE and no identifier is set\n * \n * HTTP DELETE - Delete new collection (if CollectionManager module is active)\n * HTTP PUT - Update new collection (if CollectionManager module is active)\n */\n if ($this->request['method'] === 'put' && !$this->request['identifier']) {\n if (class_exists('CollectionManager')) {\n $collectionManager = new CollectionManager($this);\n $this->response = $collectionManager->update();\n }\n else {\n throw new Exception('Forbidden', 403);\n }\n }\n else if ($this->request['method'] === 'delete' && !$this->request['identifier']) {\n if (class_exists('CollectionManager')) {\n $collectionManager = new CollectionManager($this);\n $this->response = $collectionManager->delete();\n }\n else {\n throw new Exception('Forbidden', 403);\n }\n }\n /*\n * HTTP GET method on /collection\n * HTTP POST, PUT DELETE on /collection/identifier\n */\n else {\n \n /*\n * Instantiate RestoController\n */\n $controller = new ReflectionClass($controllerName);\n if (!$controller->isInstantiable()) {\n throw new Exception('Bad Request', 400);\n }\n try {\n $method = $controller->getMethod($this->request['method']);\n } catch (ReflectionException $re) {\n throw new Exception('Forbidden', 403);\n }\n\n /*\n * Initialize a controller instance\n */\n if (!$method->isStatic()) {\n $controllerInstance = $controller->newInstance($this);\n $method->invoke($controllerInstance);\n $this->response = $controllerInstance->getResponse();\n $this->responseStatus = $controllerInstance->getResponseStatus();\n $this->responseDescription = $controllerInstance->getDescription();\n } else {\n throw new Exception('Static methods not supported in Controllers', 500);\n }\n if (is_null($this->response)) {\n throw new Exception('Method not allowed', 405);\n }\n }\n }\n /*\n * No collection requested \n * \n * HTTP GET - HTTP 200 (will redirect to home page - see htmlResponse)\n * HTTP POST - Create new collection (if CollectionManager module is active)\n * HTTP PUT - Not allowed\n * HTTP DELETE - Not allowed\n * \n */\n else {\n if ($this->request['method'] === 'get') {\n $this->responseStatus = 200;\n }\n else if ($this->request['method'] === 'post' && class_exists('CollectionManager')) {\n $collectionManager = new CollectionManager($this);\n $this->response = $collectionManager->create();\n }\n else {\n throw new Exception('Method Not Allowed', 405);\n }\n }\n } catch (Exception $re) {\n $this->responseStatus = $re->getCode();\n $this->response = array('ErrorCode' => $re->getCode(), 'ErrorMessage' => $re->getMessage());\n }\n\n /*\n * Special case for stream !\n */\n if ($controllerInstance && $this->responseDescription['forceStream']) {\n return;\n }\n\n /*\n * Output result\n */\n $this->response()->send();\n }", "public function run()\n {\n $uri = $this->getURI();\n\n // Check the availability of this request in the array of routes (routesOld.php)\n foreach ($this->routes as $uriPattern => $path) {\n\n // Compare $uriPattern and $uri\n if (preg_match(\"~$uriPattern~\", $uri)) {\n\n $internalRoute = preg_replace(\"~$uriPattern~\", $path, $uri);\n\n\n $segments = explode('/', $internalRoute);\n\n $controllerName = array_shift($segments) . 'Controller';\n $controllerName = ucfirst($controllerName);\n\n $action = array_shift($segments);\n $actionName = 'action' . ucfirst($action);\n\n $parameters = $segments;\n\n $controllerName = $this->controlNameSpace . $controllerName;\n $controllerObject = new $controllerName;\n\n return ['ref' => $controllerObject,\n 'actionName' => $actionName,\n 'args' => $parameters];\n\n }\n }\n }", "public function handleRequest() {\n $this->loadErrorHandler();\n\n $this->sanitizeRequest();\n $this->modx->invokeEvent('OnHandleRequest');\n if (!$this->modx->checkSiteStatus()) {\n header('HTTP/1.1 503 Service Unavailable');\n if (!$this->modx->getOption('site_unavailable_page',null,1)) {\n $this->modx->resource = $this->modx->newObject('modDocument');\n $this->modx->resource->template = 0;\n $this->modx->resource->content = $this->modx->getOption('site_unavailable_message');\n } else {\n $this->modx->resourceMethod = \"id\";\n $this->modx->resourceIdentifier = $this->modx->getOption('site_unavailable_page',null,1);\n }\n } else {\n $this->checkPublishStatus();\n $this->modx->resourceMethod = $this->getResourceMethod();\n $this->modx->resourceIdentifier = $this->getResourceIdentifier($this->modx->resourceMethod);\n if ($this->modx->resourceMethod == 'id' && $this->modx->getOption('friendly_urls', null, false) && !$this->modx->getOption('request_method_strict', null, false)) {\n $uri = $this->modx->context->getResourceURI($this->modx->resourceIdentifier);\n if (!empty($uri)) {\n if ((integer) $this->modx->resourceIdentifier === (integer) $this->modx->getOption('site_start', null, 1)) {\n $url = $this->modx->getOption('site_url', null, MODX_SITE_URL);\n } else {\n $url = $this->modx->getOption('site_url', null, MODX_SITE_URL) . $uri;\n }\n $this->modx->sendRedirect($url, array('responseCode' => 'HTTP/1.1 301 Moved Permanently'));\n }\n }\n }\n if (empty ($this->modx->resourceMethod)) {\n $this->modx->resourceMethod = \"id\";\n }\n if ($this->modx->resourceMethod == \"alias\") {\n $this->modx->resourceIdentifier = $this->_cleanResourceIdentifier($this->modx->resourceIdentifier);\n }\n if ($this->modx->resourceMethod == \"alias\") {\n $found = $this->findResource($this->modx->resourceIdentifier);\n if ($found) {\n $this->modx->resourceIdentifier = $found;\n $this->modx->resourceMethod = 'id';\n } else {\n $this->modx->sendErrorPage();\n }\n }\n $this->modx->beforeRequest();\n $this->modx->invokeEvent(\"OnWebPageInit\");\n\n if (!is_object($this->modx->resource)) {\n if (!$this->modx->resource = $this->getResource($this->modx->resourceMethod, $this->modx->resourceIdentifier)) {\n $this->modx->sendErrorPage();\n return true;\n }\n }\n\n return $this->prepareResponse();\n }", "public function serve()\n {\n// header('HTTP/1.1 301');\n// header('Location: ' . $this->saveHandler->getPublicServePath() . $this->getFilename());\n// die();\n\n // read file and output\n // this is definitely slower - however current use case is to put it behind a cdn distribution\n $file = $this->saveHandler->getPublicServePath() . $this->getFilename();\n $mimetype = exif_imagetype($file);\n header('Content-Type: '.$mimetype);\n readfile($file);\n die();\n }", "public function process()\n {\n if ($this->request->isCancelled() === true) {\n $this->setSessionData();\n $this->response->send();\n return;\n }\n \n $this->interceptorInitializer->setDescriptor($this->processorResolver->getInterceptorDescriptor($this->request))\n ->init();\n foreach ($this->interceptorInitializer->getPreInterceptors() as $preInterceptor) {\n $preInterceptor->preProcess($this->request, $this->session, $this->response);\n if ($this->request->isCancelled() === true) {\n $this->setSessionData();\n $this->response->send();\n return;\n }\n }\n \n $processor = null;\n try {\n $processor = $this->processorResolver->resolve($this->request, $this->session, $this->response);\n $processor->startup(new stubDummyUriRequest($this->request->readHeader('REQUEST_URI')->unsecure()));\n if ($processor->forceSsl() === true && $processor->isSsl() === false) {\n $this->response->addHeader('Location', 'https://' . $this->request->getURI());\n $this->request->cancel();\n $this->response->send();\n return;\n }\n \n $processor->process();\n } catch (stubProcessorException $pe) {\n $this->response->setStatusCode($pe->getStatusCode());\n }\n \n if (null !== $processor) {\n $processor->cleanup();\n }\n \n if ($this->request->isCancelled() === false) {\n foreach ($this->interceptorInitializer->getPostInterceptors() as $postInterceptor) {\n $postInterceptor->postProcess($this->request, $this->session, $this->response);\n if ($this->request->isCancelled() === true) {\n break;\n }\n }\n }\n \n $this->setSessionData();\n $this->response->send();\n }", "public static function route(){\n\t\t$request=(isset($_GET['request']))?$_GET['request']:'/index';\n\t\t$route_found=false;\n\t\t\n\t\t$vanilla_route_found=self::check_route($request);\n\t\t\n\t\tif(!$vanilla_route_found){\n\t\t\t$xml_request=self::xml_route();\n\t\t\tif($xml_request!==$request){\n\t\t\t\t$route_found=true;\n\t\t\t\t$request=$xml_request;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$args=explode(\"/\",$request);\n\t\tarray_shift($args);\n\t\tif(count($args)>1){\n\t\t\t$controller=$args[0];\n\t\t\tarray_shift($args);\n\t\t\t$action=$args[0];\n\t\t\tarray_shift($args);\n\t\t}else{\n\t\t\t$controller=$args[0];\n\t\t\tarray_shift($args);\n\t\t\t$action=\"index\";\n\t\t}\n\t\t\n\t\t// Add post arguments to args array\n\t\tif($_SERVER['REQUEST_METHOD']!=\"GET\"){\n\t\t\t$args=array_merge($args,$_POST);\n\t\t}\n\t\tif(!empty($_FILES)){\n\t\t\t$args=array_merge($args,array(\"uploads\" => $_FILES));\n\t\t}\n\t\t\n\t\ttry{\n\t\t\trequire_once('controllers/error_controller.php');\n\t\t\tif(file_exists('controllers/'.$controller.'_controller.php')){\n\t\t\t\trequire_once('controllers/'.$controller.'_controller.php');\n\t\t\t\t$maj_controller=ucfirst($controller).'Controller';\n\t\t\t\tif(method_exists($maj_controller,$action)){\n\t\t\t\t\t//print \"Found\";\n\t\t\t\t\t$controller=ucfirst($controller).'Controller';\n\t\t\t\t\t$controller=new $controller();\n\t\t\t\t\t$controller->$action($args);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($route_found){\n\t\t\t\t//print \"Gone\";\n\t\t\t\t$controller=new ErrorController();\n\t\t\t\t$controller->gone();\n\t\t\t}else{\n\t\t\t\t//print \"Not Found\";\n\t\t\t\t$controller=new ErrorController();\n\t\t\t\t$controller->notfound();\n\t\t\t}\n\t\t}catch(Exception $e){\n\t\t\t//print \"Error\";\n\t\t\t$controller=new ErrorController();\n\t\t\t$controller->server();\n\t\t}\n\t}", "public function requests()\n\t{\n\t\t$this->checkRequest();\n\t\t$this->getResponse();\n\t}", "public function upload() {\n\t\tif(!$this->request->files->has(\"replayfile\")) {\n\t\t\tthrow new RuntimeException(\"Upload started with no file submitted\", 400);\n\t\t}\n\n\t\tif(stripos($this->request->files->get(\"replayfile\")[\"name\"], \".sc2replay\") !== false) {\n\t\t\ttry {\n\t\t\t\t$importer = new ImportHelper($this->request->files->get(\"replayfile\")[\"tmp_name\"]);\n\t\t\t\tyield \"error\" => \"\";\n\t\t\t\tyield \"idMatch\" => $importer->process();\n\t\t\t} catch (ParseException $e) {\n\t\t\t\tFWLogger::error($e->getMessage());\n\t\t\t\tyield \"error\" => $e->getMessage();\n\t\t\t}\n\t\t} else {\n\t\t\tyield \"error\" => \"uploaded file is not a .SC2replay file\";\n\t\t}\n\n\t\t$this->respondTo(\"json\")->addCallback(function($data) {\n\t\t\t$ret = [\"error\" => $data[\"error\"]];\n\t\t\tif(isset($data[\"idMatch\"])) {\n\t\t\t\t$ret[\"idMatch\"] = $data[\"idMatch\"];\n\t\t\t}\n\t\t\treturn $ret;\n\t\t});\n\t}", "public function run() {\n $base = $this->request->getNextRoute();\n if ($base !== BASE) {\n $this->response->notFound();\n }\n $start = $this->request->getNextRoute();\n if ($rs = $this->getRs($start)) {\n if ($this->request->isOptions()) {\n $this->response->okEmpty();\n return;\n }\n try {\n $this->response->ok($rs->handleRequest());\n\n } catch (UnauthorizedException $e) {\n $this->response->unauthorized();\n\n } catch (MethodNotAllowedException $e) {\n $this->response->methodNotAllowed();\n\n } catch (BadRequestExceptionInterface $e) {\n $this->response->badRequest($e->getMessage());\n\n } catch (UnavailableExceptionInterface $e) {\n $this->response->unavailable($e->getMessage());\n\n } catch (Exception $e) {\n $this->response->unavailable($e->getMessage());\n }\n } else {\n $this->response->badRequest();\n }\n }", "protected function initRequest()\n {\n $context = new RequestContext();\n $context->fromRequest(self::$request);\n $matcher = new UrlMatcher($this->routCollection, $context);\n\n try {\n $attributes = $matcher->match(self::$request->getPathInfo());\n $response = $this->callController($attributes);\n } catch (ResourceNotFoundException $e) {\n $response = new Response('Not Found', 404);\n } catch (Exception $e) {\n $response = new Response('An error occurred', 500);\n }\n\n $response->send();\n }", "protected function processChangedAndNewFiles() {}", "abstract public function processFile($fileName);", "function getFileController($req, $res, $config) {\n\n\t$db = connect($config);\n\n\t//If database error\n\tif(is_string($db)) {\n\t\treturn render('404.php', $res, array_merge($config,\n\t\t\t[\n\t\t\t\t'path'\t => '/'\n\t\t\t]\n\t\t));\n\t}\n\n\t//If filename does not exist\n\tif(!filenameExists($db, $config['file'])) {\n\t\treturn render('404.php', $res, array_merge($config,\n\t\t\t[\n\t\t\t\t'path'\t => '/'\n\t\t\t]\n\t\t));\n\t}\n\n\tlist($stream, $media, $date, $size) = getFile($db, $config['file']);\n\t\n\t$body = $res->getBody();\n\t$body->write($stream);\n\n\t$last_modified_time = strtotime($date);\n\t$etag = md5($last_modified_time);\n\t$cacheTime = 60*60*24*7; //1 week\n\n\t$res = $res->withBody($body)\n\t\t\t ->withHeader('Content-Type', $media)\n\t\t\t ->withHeader('Content-Length', $size)\n\t\t\t ->withHeader('Last-Modified', gmdate('D, d M Y H:i:s ', $last_modified_time).'GMT')\n\t\t\t ->withHeader('Cache-control', 'public, max-age='.$cacheTime)\n\t\t\t ->withHeader('ETag', $etag);\n\n\tif(\n\t\t($req->hasHeader('If-Modified-Since') && strtotime($req->getHeader('if-modified-since')['0']) == $last_modified_time) ||\n\t\t($req->hasHeader('If-None-Match') && $etag == trim($req->getHeader('if-none-match')['0']))\n\t) {\n\t\t$res = $res->withStatus(304);\n\t}\n\n\treturn $res;\n\n}", "private function _processRequest()\n\t{\n\t\t// prevent unauthenticated access to API\n\t\t$this->_secureBackend();\n\n\t\t// get the request\n\t\tif (!empty($_REQUEST)) {\n\t\t\t// convert to object for consistency\n\t\t\t$this->request = json_decode(json_encode($_REQUEST));\n\t\t} else {\n\t\t\t// already object\n\t\t\t$this->request = json_decode(file_get_contents('php://input'));\n\t\t}\n\n\t\t//check if an action is sent through\n\t\tif(!isset($this->request->action)){\n\t\t\t//if no action is provided then reply with a 400 error with message\n\t\t\t$this->reply(\"No Action Provided\", 400);\n\t\t\t//kill script\n\t\t\texit();\n\t\t}\n\n\t\t//check if method for the action exists\n\t\tif(!method_exists($this, $this->request->action)){\n\t\t\t//if method doesn't exist, send 400 code and message with reply'\n\t\t\t$this->reply(\"Action method not found\",400);\n\t\t\t//kill script\n\t\t\texit();\n\t\t}\n \n\t\tswitch($this->request->action){\n\t\t\tcase \"hello\":\n\t\t\t\t$this->hello($this->request->data);\n\t\t\t\tbreak;\n\t\t\tcase \"submit_video\":\n\t\t\t\t//error_log(\"formSubmit has been sent through\");\n\t\t\t\t$this->submit_video($this->request, $_FILES);\n\t\t\t\tbreak;\n\t\t\tcase \"remove_video\":\n\t\t\t\t//error_log(\"formSubmit has been sent through\");\n\t\t\t\t$this->remove_video($this->request);\n\t\t\t\tbreak;\n\t\t\tcase \"isSubmitted\":\n\t\t\t\t$this->isSubmitted($this->request);\n\t\t\tdefault:\n\t\t\t\t$this->reply(\"action switch failed\",400);\n\t\t\tbreak;\n\t\t}\n\n\n\n\t}", "private function performAction() {\n\t\t\theader('Cache-Control: no-cache, no-store, must-revalidate');\n\t\t\theader('Expires: 0');\n\n\t\t\t// Open mailbox backup system on the provided folder\n\t\t\t$mailboxBackupSystem = new MailboxBackupSystem($this->folder, $this->username, $this->password);\n\t\t\t$mailboxBackupSystem->open();\n\n\t\t\t// Read existing files and order by date (newest first)\n\t\t\t$files = $mailboxBackupSystem->getFiles();\n\t\t\t$lastDate = FALSE;\n\t\t\tif(count($files) > 0) {\n\t\t\t\tusort($files, \"MailboxFile::compareNewestFirst\");\n\t\t\t\t$lastDate = $files[0]->getDate();\n\t\t\t}\n\n\t\t\t// Handle request action\n\t\t\tswitch($this->action) {\n\t\t\t\tcase 'HEAD':\n\t\t\t\t\tif($lastDate) {\n\n\t\t\t\t\t\t// Only set necessary header\n\t\t\t\t\t\theader('Last-Modified: ' . $lastDate->format('D, d M Y H:i:s') . ' GMT');\n\n\t\t\t\t\t\t// Success\n\t\t\t\t\t\t$this->responseCode = RESPONSE_SUCCESS;\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// No resource available, ie Resource not found\n\t\t\t\t\t\t$this->responseCode = RESPONSE_RESOURCE_NOT_FOUND;\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase 'GET':\n\t\t\t\t\tif($lastDate) {\n\n\t\t\t\t\t\t// Read file content\n\t\t\t\t\t\t$fileContent = $mailboxBackupSystem->readFile($files[0]);\n\n\t\t\t\t\t\t// Set necessary headers\n\t\t\t\t\t\theader('Last-Modified: ' . $lastDate->format('D, d M Y H:i:s') . ' GMT');\n\t\t\t\t\t\theader(\"Content-Length: \" . strlen($fileContent));\n\t\t\t\t\t\theader('Content-Transfer-Encoding: binary');\n\n\t\t\t\t\t\t// Add file content\n\t\t\t\t\t\tprint($fileContent);\n\n\t\t\t\t\t\t// Success\n\t\t\t\t\t\t$this->responseCode = RESPONSE_SUCCESS;\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// No resource available, ie Resource not found\n\t\t\t\t\t\t$this->responseCode = RESPONSE_RESOURCE_NOT_FOUND;\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase 'PUT':\n\n\t\t\t\t\t// Read content\n\t\t\t\t\t$fileContent = file_get_contents('php://input');\n\t\t\t\t\tif($fileContent !== FALSE) {\n\n\t\t\t\t\t\t// Create file\n\t\t\t\t\t\t$file = MailboxFile::fromContent($fileContent);\n\n\t\t\t\t\t\t// Store file\n\t\t\t\t\t\t$mailboxBackupSystem->addFile($file);\n\n\t\t\t\t\t\t// Apply backup policy (ie remove files not within policy)\n\t\t\t\t\t\t$this->applyPolicy($mailboxBackupSystem, $files);\n\n\t\t\t\t\t\t// Resource created\n\t\t\t\t\t\t$this->responseCode = RESPONSE_RESOURCE_CREATED;\n\t\t\t\t\t} else {\n\t\t\t\t\t\terror_log('MailboxBackupSystem: No file content for PUT.');\n\n\t\t\t\t\t\t// Bad request?\n\t\t\t\t\t\t$this->responseCode = RESPONSE_BAD_REQUEST;\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\terror_log('MailboxBackupSystem: Unknown method/action \"' . $this->action . '\".');\n\n\t\t\t\t\t// Bad request\n\t\t\t\t\t$this->responseCode = RESPONSE_BAD_REQUEST;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public function checkBatchCode(){\n\t\t$post = $this->input->post();\n\t\t$data['mainContent'] = 'landingPage/howToRequestFile';\n\t\t$this->landingPageRenderer('landingPage/howToRequestFile',$data);\n\t}", "public function getFile()\r\n {\r\n // check permission\r\n $this->_check_group_permission();\r\n\r\n $access_full_path = $this->_get_access_full_path();\r\n $filename = $this->input->get_post('filename');\r\n $alt = $this->input->get_post('alt');\r\n\r\n // insert userlog\r\n if (empty($alt))\r\n {\r\n $this->_insert_userlog(Userlog_model::FILE_PREVIEW);\r\n }\r\n\r\n if ($this->files_model->is_document($filename))\r\n {\r\n header('Location: /files/preview?'. $_SERVER['QUERY_STRING']);\r\n return;\r\n }\r\n if ($this->files_model->is_extension($filename, 'nes'))\r\n {\r\n header('Location: /files/jsnes?'. $_SERVER['QUERY_STRING']);\r\n return;\r\n }\r\n if ( ! $this->files_model->is_browser_viewable($filename))\r\n {\r\n header('Location: /files/show_download?'. $_SERVER['QUERY_STRING']);\r\n return;\r\n }\r\n\r\n $this->files_model->get_file($access_full_path, $filename, $alt);\r\n }", "protected function process($filename)\n {\n $this->filename = $filename;\n if (file_exists($this->filename)) {\n $this->sheet_proccess = new SheetsController();\n $this->sheet = $this->sheet_proccess->store($this->filename);\n Excel::queueImport(new ProductsImport, $this->filename)->chain([\n new NotifyUserOfCompletedImport($this->sheet),\n ]);\n } else {\n return response()->json([\n 'message' => 'File '.$this->filename.' not exist!',\n 'status' => 'error'\n ], 404);\n }\n\n return response()->json([\n 'message' => 'Sheet has queue (id:'.$this->sheet['id'].')',\n 'status' => 'ok'\n ], 201);\n }", "public static function run()\n {\n global $req;\n global $session;\n\n $get = $req->query->all();\n $post = $req->request->all();\n $files = $req->files->all();\n\n self::$get = $get;\n self::$post = $post;\n self::$files = $files;\n\n $route = self::getRoute();\n self::$route = $route;\n\n switch ($route['base']) {\n case '' :\n\n $controller = new BaseController();\n $controller->showHomepage();\n break;\n\n case 'admin' :\n\n self::routeAdmin();\n break;\n\n case 'account' :\n\n self::routeAccount();\n break;\n\n case 'logout' :\n\n Security::requireAuth();\n Security::logout();\n break;\n\n case 'catalog' :\n\n $controller = new CatalogController();\n\n if (!empty($route['section'])) {\n if (is_numeric($route['page']) && !empty($route['action'])) {\n $controller->showProductPage(\n $route['page'], $route['section']\n );\n } else {\n $controller->showCatalogPage($route['section'], $post);\n }\n } else {\n self::redirect('/');\n }\n\n break;\n\n case 'cart':\n\n $controller = new CartController();\n\n if (!is_numeric($route['page']) &&\n in_array($route['section'], ['add', 'remove'])\n ) {\n self::redirect('/cart');\n } else {\n $prodId = $route['page'];\n }\n\n switch ($route['section']) {\n case 'add' :\n $controller->addToCart($prodId);\n break;\n\n case 'remove' :\n $controller->removeFromCart($prodId);\n break;\n\n case 'update' :\n $controller->updateCart($post);\n break;\n\n case '' :\n default :\n $controller->showCartPage();\n }\n break;\n\n case 'checkout' :\n\n $controller = new CheckoutController();\n\n switch($route['section']) {\n case 'step-one' :\n $controller->showStepOnePage();\n break;\n\n case 'add-shipping' :\n if (!empty($post)) {\n $controller->addShipping($post);\n } else {\n self::redirect('/checkout/step-one');\n }\n break;\n\n case 'step-two' :\n $controller->showStepTwoPage();\n break;\n\n case 'prepare-order' :\n if (!empty($post)) {\n $controller->prepareOrder($post);\n } else {\n self::redirect('/checkout/step-two');\n }\n break;\n\n case 'step-three' :\n $controller->showStepThreePage();\n break;\n\n default :\n self::redirect('/checkout/step-one');\n }\n break;\n\n default:\n self::redirect('/');\n // 404 NOT_FOUND\n }\n }", "protected abstract function handleRequest();", "public function process_request() {\n if(!empty($this->POST)) {\n return $this->handlePOST();\n } else {\n return $this->handleGET();\n }\n }", "function fileNeedsProcessing() ;", "public function process() {\r\n if(!in_array($this->getRouter()->getAction(), $this->getAllowActions()) || $this->getRouter()->getAction() == null) {\r\n $this->defaultAction();\r\n } else {\r\n $customAction = $this->getRouter()->getAction().Globals::getConfig()->action->suffix;\r\n $this->$customAction();\r\n }\r\n }", "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $envelope_id= $this->args['envelope_id'];\n $envelope_documents = isset($_SESSION['envelope_documents']) ? $_SESSION['envelope_documents'] : false;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok && $envelope_id&& $envelope_documents) {\n # Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = EnvelopeGetDocService::worker($this->args, $this->clientService);\n\n if ($results) {\n # See https://stackoverflow.com/a/27805443/64904\n header(\"Content-Type: {$results['mimetype']}\");\n header(\"Content-Disposition: attachment; filename=\\\"{$results['doc_name']}\\\"\");\n ob_clean();\n flush();\n $file_path = $results['data']->getPathname();\n readfile($file_path);\n exit();\n }\n } elseif (! $token_ok) {\n $this->clientService->needToReAuth($this->eg);\n } elseif (! $envelope_id|| ! $envelope_documents) {\n $this->clientService->envelopeNotCreated(\n basename(__FILE__),\n $this->routerService->getTemplate($this->eg),\n $this->routerService->getTitle($this->eg),\n $this->eg,\n ['envelope_ok' => false, 'documents_ok' => false]\n );\n }\n }", "public function run()\n {\n if ($this->match()) {\n $path = 'AlDente\\controllers\\\\' . ucfirst($this->params['controller']) . 'Controller';\n if (class_exists($path)) {\n $action = $this->params['action'] . 'Action';\n if (method_exists($path, $action)) {\n $controller = new $path($this->params);\n $controller->$action();\n } else {\n View::errorCode(404);\n }\n } else {\n View::errorCode(404);\n }\n } else {\n View::errorCode(404);\n }\n }", "public function serveStaticFile(Request $request) {\n $root = static::getGuiPath();\n $presumed_path = sprintf('%s%s', $root, urldecode($request->getPathInfo()));\n if (is_file($presumed_path)) {\n return static::serveStaticFileAtPath($presumed_path);\n } else {\n return FALSE;\n }\n }", "public function check_files()\n {\n }", "static function file($file, array $data = []){\n // Do you love displaying blank pages?\n if($file === 'index' || $file === 'index.php'){\n Debugger::report(404, true);\n }else{\n /**\n * Get the path of the calling script and get it's containing Directory\n * to enable include() style of accessing files\n */\n $callingScriptPath = debug_backtrace()[0]['file'];\n $callingScriptDirectory = realpath(dirname($callingScriptPath));\n if(file_exists($callingScriptDirectory.'/'.$file)){\n self::render($callingScriptDirectory.'/'.$file, $data);\n }else if(file_exists($callingScriptDirectory.'/'.$file.'.php')){\n self::render($callingScriptDirectory.'/'.$file.'.php', $data);\n }else if(file_exists(SS_PATH.$file)){\n self::render($file, $data);\n }else if(file_exists(SS_PATH.$file.'.php')){\n self::render(SS_PATH.$file.'.php', $data);\n }else{\n Debugger::report(404, true);\n }\n }\n }", "private static function viewCheckFileExists(): void\n {\n /**\n * The template file is required, so, if it doesn't exist, an exception is thrown.\n */\n if (self::$viewTemplateFile->fileNotExists()) {\n throw new Exception(self::TEMPLATE_FILE_NOT_FOUND[1], self::TEMPLATE_FILE_NOT_FOUND[0], [self::$viewTemplateFile->get()]);\n }\n\n /**\n * The view file isn't required if the 'viewPath' parameter wasn't defined in the route\n * configuration. In this case, if the file doesn't exist in the view directory, the\n * $viewPath property will be set as null. However, if there is a 'viewPath' parameter\n * defined, then an exception will be thrown if the file doesn't exist.\n */\n if (self::$viewPath->fileNotExists()) {\n if (empty(self::$routeController->getViewPath())) {\n self::$viewPath->set(null);\n } else {\n throw new Exception(self::VIEW_FILE_NOT_FOUND[1], self::VIEW_FILE_NOT_FOUND[0], [self::$viewPath->get()]);\n }\n }\n }", "public function view_file() {\n\t\t$currentPath = implode('/', $this->passedArgs);\n\t\t$fullPath = $this->path . $currentPath;\n\t\t$previousPath = implode('/', array_slice($this->passedArgs, 0, count($this->passedArgs) -1));\n\t\t$upOneFolder = implode('/', array_slice($this->passedArgs, 0, count($this->passedArgs) -2));\n\n\t\tif (!file_exists($fullPath)) {\n\t\t\t$this->_notFound(__('No file exists with that name', true));\n\t\t}\n\t\ttry {\n\t\t\t$docs = $this->ApiFile->loadFile($fullPath);\n\t\t} catch(Exception $e) {\n\t\t\t$this->_notFound($e->getMessage());\n\t\t}\n\t\t$classIndex = ClassRegistry::init('ApiGenerator.ApiClass')->getClassIndex();\n\t\tlist($dirs, $files) = $this->ApiFile->read($this->path . $previousPath);\n\n\t\tif (!empty($docs)) {\n\t\t\t$this->set('showSidebar', true);\n\t\t\t$this->set('sidebarElement', 'sidebar/file_sidebar');\n\t\t\t$this->set(compact('currentPath', 'previousPath', 'upOneFolder', 'docs', 'dirs', 'files', 'classIndex'));\n\t\t} else {\n\t\t\t$this->set('previousPath', $previousPath);\n\t\t\t$this->render('no_class');\n\t\t}\n\t}", "private function _loadExistingController()\r\n {\r\n $file = $this->_controller_path . $this->_url[0] . '.php';\r\n if (file_exists($file)) {\r\n require_once $file;\r\n $this->_controller = new $this->_url[0];\r\n $this->_controller->loadModel($this->_url[0],$this->_model_path);\r\n } else {\r\n $this->_error();\r\n return FALSE;\r\n //throw new Exception(\"The file $file does not exist\"); \r\n }\r\n }", "public function serve_request()\n {\n }", "public function __invoke(\n ServerRequestInterface $request,\n ResponseInterface $response,\n array $args\n ): ResponseInterface {\n\n $this->request = $request;\n $this->response = $response;\n\n $sendFile = $this->model->getFile($args['vendor'], $args['file']);\n\n if (! $sendFile->isReadable()) {\n throw new NotFoundException($request, $response);\n }\n\n $this->logFile($sendFile);\n\n return $this->sendFile($sendFile);\n }", "public function processRequest();", "public function handle(Request $request)\n {\n\n // Getter to get the global var which hold our form field value\n $method = $request->getMethod();\n $getterHolder = \"get\" . ucfirst(strtolower($method));\n $holder = $request->$getterHolder();\n\n\n if ($holder->isSet()) {\n $fileFieldKey = [];\n\n $fieldKeysName = array_keys($this->fields);\n\n // Add post \n foreach ($fieldKeysName as $key) {\n\n // Skype the file field\n if (new $this->fields[$key]['class'] instanceof FileField) {\n $fileFieldKey[] = $key;\n continue;\n }\n\n // Create new instance of this field class\n $object = new $this->fields[$key]['class'];\n\n // Cast the value into the right type\n $this->data[$key] = $object::cast($holder->get($key));\n }\n\n // If any file, add it data\n if ($request->hasUploadedFile()) {\n \n $files = $request->getFiles();\n foreach ($fileFieldKey as $key) {\n $this->data[$key] = $files->get($key);\n }\n \n }\n $this->isSubmitted = true;\n }\n \n }", "public function handleRequest() {}", "public function store(Request $request)\n {\n return $this->process($request['filename']);\n }", "public function run()\n {\n if (isset($_SERVER[\"PATH_INFO\"]))\n {\n $requestPath = $_SERVER[\"PATH_INFO\"];\n }\n else\n {\n $requestPath =\"/\";\n }\n\n $router = Router::getInstance();\n $requestRoute = $router->getRoute($requestPath);\n\n $controllerName=$requestRoute[\"controller\"].\"Controller\";\n $controller = new $controllerName();\n $methodName=$requestRoute[\"method\"].\"Action\";\n\n if (method_exists($controller, $methodName))\n {\n $this->viewData = array_merge($this->viewData, (array)$controller->$methodName());\n $this->renderResponse();\n }\n else\n {\n throw new ErrorException(\"methode \\\" $methodName\\\" inconnue dans \\\" $controllerName\\\"\") ;\n }\n\n\n }", "function handleRequest (&$request, &$context) {\n\n\t\t/* cycle through our process callback queue. using each() vs.\n\t\t * foreach, etc. so we may add elements to the callback array\n\t\t * later. probably primarily used for conditional callbacks. */\n\t\treset ($this->_processCallbacks);\n\t\twhile ($c = each ($this->_processCallbacks)) {\n\n\t\t\t// test for a successful view dispatch\n\t\t\tif ($this->_processProcess ($this->_processCallbacks[$c['key']],\n\t\t\t $request,\n\t\t\t $context))\n\t\t\t\treturn;\n\t\t}\n\n\t\t// if no view has been found yet attempt our default\n\t\tif ($this->defaultViewExists ())\n\t\t\t$this->renderDefaultView ($request, $context);\n\t}", "public function process() {\n\t\t\n\t\t//Validate the upload\n\t\ttry {\n\t\t\t$this->validate();\n\t\t} catch(Exception $e) {\n\t\t\tthrow $e;\n\t\t}\n\t\t\n\t\t$filename = $this->getFilename();\n\t\t\n\t\t$full_path = $this->path . $filename;\n\t\t\n\t\t$uploaded = move_uploaded_file($this->file['tmp_name'], $full_path);\n\t\t\n\t\tif($uploaded === false) {\n\t\t\tthrow new Exception('Upload failed', '403');\n\t\t}\n\t\t\n\t\treturn $filename;\n\t\t\n\t}", "public function includeControllerFile() : bool\n {\n if(file_exists($this->routerEntity->getControllerFile())){\n include_once ($this->routerEntity->getControllerFile());\n return true;\n }\n return false;\n }", "protected function processing()\n {\n $this->response = $this->response->withStatus(203);\n $this->jsonBody($this->payload->getOutput());\n }", "public function any(Request $request)\n {\n $query = ($request->query());\n $url = $request->path() == '/' ? '/' : '/' . $request->path();\n $format = strtolower(pathinfo($url, PATHINFO_EXTENSION));\n\n if ($format === '') {\n $format = 'html';\n } else {\n $url = substr($url, 0, strrpos($url, \".\"));\n }\n $url = preg_replace('/\\/index$/', '', $url);$filename = strtolower(pathinfo($url, PATHINFO_FILENAME));\n\n // Search for the entity is being called by its url, ignore inactive and soft deleted.\n $search_result = EntityContent::where([[\"value\", \"=\", $url], [\"field\", \"=\", \"url\"]])->first();\n if (!$search_result) {\n return ('404 not found');\n }\n $request->request->add(['lang' => $search_result->lang]);\n $entity = Entity::findOrFail($search_result->entity_id);\n if (!$entity->isPublished()) {\n return ('Temporary not available');\n }\n $method_name = $entity->model;\n $controllerClassName = ucfirst($format) . 'Controller';\n require_once(base_path('app/Controllers/Web/' . $controllerClassName . \".php\"));\n $controller = new \\app\\Controllers\\Web\\HtmlController;\n if (method_exists($controller, $method_name)) {\n return ($controller->$method_name($request, $entity));\n } else {\n //TODO: Send 404 or what the controller sends as 404 (for example a json error)\n //TODO: Hide sensitive data if not in debug mode?\n return (\"Error: method '\" . $method_name . \"' not found in app/Controllers/Web/\" . $controllerClassName);\n }\n }", "public function run()\n {\n $column = array_column($this->routes[GlobalHelper::method()], 'path');\n $url = $this->url;\n if (str_contains($url, '?')) {\n $this->query = explode(\"?\", $url);\n $url = $this->query[0];\n }\n $validPath = array_filter($column, function ($path) use ($url) {\n $regex = $this->compileRoute($path);\n $ok = preg_match($regex, $url, $match);\n return $ok === 1 ? $path : false;\n });\n if (!empty($validPath) || $url === \"\") {\n foreach ($this->routes[GlobalHelper::method()] as $route) {\n $regex = $this->compileRoute($route->path);\n if ($route->matches($this->url, $regex)) {\n $route->execute($this);\n }\n }\n } elseif (empty($validPath)) {\n print_r(call_user_func([new \\App\\Controllers\\Error404Controller(), \"index\"], $this));\n }\n }", "public function process() {\n // on va lui passer le contexte en premier paramètre\n // puis on va lui passer les paramètres du path comme\n // paramètres supplémentaires\n $args = array_merge(\n array($this->_context),\n $this->_context->route->params\n );\n\n $this->_context->require_part('controller', $this->controller);\n $controller = new $this->controller;\n\n // CALL STAGES BEFORE ACTION\n\n $stages = array(\n '_before_action'\n );\n\n $_response = null;\n $responses_stack = array();\n\n foreach($stages as $stage) {\n $_response = $this->call_stage($controller,$stage,$this->action, $responses_stack);\n\n // Si on obtient un objet de type Response, on stoppe\n\n if($_response instanceof Response) {\n return $this->output($_response); // ! RETURN\n }\n else {\n $responses_stack[$stage] = $_response;\n }\n }\n\n\n // CALL ACTION\n if(! method_exists($controller, $this->action)) {\n throw new \\InvalidArgumentException('Action '.$this->action.' does not exists in controller '. get_class($controller));\n }\n $action_response = call_user_func_array(array($controller, $this->action), $args);\n\n if($action_response instanceof Response) {\n return $this->output($action_response); // ! RETURN\n }\n\n\n if(is_null($action_response)) {\n // si la réponse est nulle, on ne fait rien tout simplement\n //@todo : faire autre chose, envoyer un 204 ?\n $class = get_class($controller);\n r(\"@todo : empty $class return\");\n return; // ! RETURN\n }\n elseif(is_string($action_response)) {\n $response = new Response($action_response, $headers=array());\n return self::output($response); // ! RETURN\n }\n\n\n }", "protected function processRedirect() {}", "protected static function controller()\n {\n foreach (self::fetch('resources/controllers', false) as $file) {\n Bus::need($file);\n }\n }", "function handleRequest() {\n // I. On récupère l'action demandée par l'utilisateur, avec retrocompatibilité\n // Controller et Entité\n $entityName = (isset($_GET['controller']) ? $_GET['controller'] : \"article\");\n // on retravaille le nom pour obtenir un nom de la forme \"Article\"\n $entityName = ucfirst(strtolower($entityName));\n\n // Action\n $actionName = (isset($_GET['action']) ? $_GET['action'] : \"index\");\n $actionName = strtolower($actionName);\n\n // II à IV sont maintenant dans loadDep\n $controller = $this->loadDependencies($entityName);\n\n // V. On regarde si l'action de controller existe, puis on la charge\n // on retravaille la var obtenue pour obtenir un nom de la forme \"indexAction\"\n $action = $actionName . \"Action\";\n\n // si la méthode demandée n'existe pas, remettre \"index\"\n if (!method_exists($controller, $action)) {\n $actionName = \"index\";\n $action = \"indexAction\";\n }\n\n // on stock le titre sous la forme \"Article - Index\"\n $this->title = $entityName . \" - \" . $actionName;\n\n // on appelle dynamiquement la méthode de controller\n $this->content = $controller->$action();\n }", "protected function process()\n {\n // Assign raw URI\n $uri = $this->getRequest()->getRequestUri();\n $this->view()->assign('uri', $uri);\n\n // Assign all route params\n $params = $this->params()->fromRoute();\n $this->view()->assign('params', $params);\n\n // Specify template,\n // otherwise template will be set up as {controller}-{action}\n $this->view()->setTemplate('demo-route');\n\n // Assign route list to template\n $this->loadRoutes();\n }", "public function processApi() {\n $request = $this->_request['request'];\n $values = $this->_request;\n\n // WARNING: This method needs to add some ways to authenticate the user\n // and should also filter out any dangerous or magic methods before it\n // would be safe. This code is for demonstration purposes only!\n\n if (method_exists($this->database, $request)) {\n if (!empty($_REQUEST['request'])) {\n unset($values['request']);\n $result = $this->database->processRequest($request, $values);\n if (!empty($result)) {\n $this->response($this->json($result), 200);\n }\n else {\n // If no records \"No Content\" status\n $this->response('',204);\n }\n }\n else {\n // If the method not exist with in this class, response would be \"Page not found\".\n $this->response('',404);\n }\n }\n }", "public function prepareFile()\n {\n // TODO: Implement prepareFile() method.\n }", "public function run()\n {\n\n if (isset($this->request[\"p\"])) {\n switch ($this->request[\"p\"]) {\n\n case \"new_task\":\n case \"tasks\":\n $taskController = new TasksController();\n $taskController->run();\n $this->content = $taskController->getTaskById();\n break;\n\n case \"login\":\n\n $login = new Login();\n $login->validateInput($this->request);\n\n break;\n\n case \"logout\":\n Login::logout();\n break;\n\n case \"register\":\n if (isset($this->request[\"register\"][\"submit\"])) {\n $input = new Input();\n $user = $input->validateRegister($this->request[\"register\"]);\n $reg = new Register();\n if ($user !== false) {\n $reg->saveRegistration($user);\n }\n }\n\n break;\n\n case \"user-admin\":\n if (isset($_SESSION[\"active_user\"]) && $_SESSION[\"active_user\"]->getRole() == __ADMIN__) {\n try {\n (new UserController())->run();\n } catch (\\Exception $e) {\n Notice::set(\"error\", $e->getMessage());\n }\n } else {\n header(\"Location: ?p=home\");\n exit();\n }\n break;\n\n case \"news\":\n case \"news-admin\":\n if (isset($_SESSION[\"active_user\"]) && $_SESSION[\"active_user\"]->getRole() == __ADMIN__) {\n try {\n $news = new NewsController();\n $news->run();\n\n $this->content = $news->getUploadedImages();\n } catch (\\Exception $e) {\n Notice::set(\"error\", $e->getMessage());\n }\n } else {\n header(\"Location: ?p=home\");\n exit();\n }\n break;\n\n case \"contact\":\n $input = new Input();\n if (isset($this->request[\"contact\"][\"submit\"])) {\n $input->validateContact($this->request[\"contact\"]);\n }\n break;\n\n }\n }\n }" ]
[ "0.64384407", "0.6399136", "0.6019967", "0.5965162", "0.5957636", "0.5849406", "0.57927537", "0.5789957", "0.5722492", "0.5692433", "0.569197", "0.5668956", "0.56435895", "0.5637041", "0.560999", "0.5600878", "0.55831087", "0.5571375", "0.5566083", "0.55614144", "0.555771", "0.5523413", "0.5516088", "0.55136067", "0.5493843", "0.548826", "0.5475521", "0.54719245", "0.5460999", "0.5458299", "0.545652", "0.54500806", "0.5445873", "0.5434367", "0.54290956", "0.54196984", "0.5417331", "0.5416612", "0.54150504", "0.54142976", "0.5387814", "0.5384819", "0.53822273", "0.5379814", "0.5362817", "0.5357534", "0.53481936", "0.5344721", "0.53346634", "0.53335476", "0.53319025", "0.5308866", "0.5308433", "0.53079396", "0.52906626", "0.5289968", "0.528355", "0.5277627", "0.52751154", "0.5268171", "0.526019", "0.5250374", "0.5247886", "0.5245268", "0.5241976", "0.5240392", "0.5235484", "0.5232306", "0.5232298", "0.5228865", "0.5225038", "0.5220947", "0.5219451", "0.5209483", "0.5206371", "0.5198022", "0.51925224", "0.5183849", "0.5180513", "0.5170727", "0.5164795", "0.5164611", "0.5161691", "0.51616156", "0.51561266", "0.51500064", "0.5131674", "0.5129797", "0.5110768", "0.51099426", "0.5109269", "0.51074135", "0.5106799", "0.5105479", "0.5102023", "0.50920254", "0.50824183", "0.5080489", "0.5078286", "0.507715" ]
0.53039706
54
Output file to the browser. For performance reasons, we avoid SS_HTTPResponse and just output the contents instead.
public function sendFile($file) { $reader = $file->reader(); if (!$reader || !$reader->isReadable()) { return; } if(class_exists('SapphireTest', false) && SapphireTest::is_running_test()) { return $reader->read(); } $type = HTTP::get_mime_type($file->Filename); $disposition = strpos($type, 'image') !== false ? 'inline' : 'attachment'; header('Content-Description: File Transfer'); // Quotes needed to retain spaces (http://kb.mozillazine.org/Filenames_with_spaces_are_truncated_upon_download) header(sprintf('Content-Disposition: %s; filename="%s"', $disposition, basename($file->Filename))); header('Content-Length: ' . $file->FileSize); header('Content-Type: ' . $type); header('Content-Transfer-Encoding: binary'); // Ensure we enforce no-cache headers consistently, so that files accesses aren't cached by CDN/edge networks header('Pragma: no-cache'); header('Cache-Control: private, no-cache, no-store'); increase_time_limit_to(0); // Clear PHP buffer, otherwise the script will try to allocate memory for entire file. while (ob_get_level() > 0) { ob_end_flush(); } // Prevent blocking of the session file by PHP. Without this the user can't visit another page of the same // website during download (see http://konrness.com/php5/how-to-prevent-blocking-php-requests/) session_write_close(); echo $reader->read(); die(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected final function output ()\n\t{\n\t\tif ($this->isFailed() || !$this->isOutputSet())\n\t\t{\n\t\t\t$this->outputData();\n\t\t}\n\t\telse\n\t\t{\n\t\t\theader('Content-Description: File Download');\n\t\t\theader('Content-Type: ' . $this->outputContentType);\n\t\t\t$disposition = $this->attachResult ?\n\t\t\t\t\t'attachment; filename=' . $this->outputFileName :\n\t\t\t\t\t'inline';\n\t\t\theader('Content-Disposition: ' . $disposition);\n\t\t\theader('Content-Transfer-Encoding: binary');\n\t\t\theader('Content-Length: ' . filesize($this->outputFile));\n\n\t\t\twhile (ob_get_level()) {\n\t\t\t\tob_end_clean();\n\t\t\t}\n\t\t\tflush();\n\t\t\treadfile($this->outputFile);\n\t\t}\n\t}", "public function output_file()\n {\n $file_data = $this->get_cached_path();\n // Create the headers\n $this->_create_headers($file_data);\n\n // Get the file data\n $data = file_get_contents($file_data);\n\n // Send the image to the browser in bite-sized chunks\n $chunk_size = 1024 * 8;\n $fp = fopen('php://memory', 'r+b');\n\n // Process file data\n fwrite($fp, $data);\n rewind($fp);\n while ( ! feof($fp))\n {\n echo fread($fp, $chunk_size);\n flush();\n }\n fclose($fp);\n\n exit();\n }", "public function sendResponse(){\n\t\theader( 'Content-Type:' . $this->getMimeType() );\n\t\t\n\t\t$encodedName = rawurlencode($this->getFilename());\n\t\tif (preg_match(\"/MSIE/\", $_SERVER[\"HTTP_USER_AGENT\"])){\n\t\t\theader(\n\t\t\t\t\t'Content-Disposition: attachment; filepath=\"' . $encodedName . '\"'\n\t\t\t\t\t);\n\t\t} else {\n\t\t\theader('Content-Disposition: attachment; filepath*=UTF-8\\'\\'' . $encodedName\n\t\t\t\t\t. '; filepath=\"' . $encodedName . '\"');\n\t\t}\n\t\t\n\t\theader('Content-Length: ' . $this->view->filesize($this->filepath));\n\n\t\t\\OC_Util::obEnd();\n\t\t $this->view->readfile($this->filepath);\n\t}", "private function output_file() {\n\t\t$file = wp_json_encode( $this->get_info(), JSON_PRETTY_PRINT );\n\t\theader( 'Content-Description: File Transfer' );\n\t\theader( 'Content-Type: application/octet-stream' );\n\t\theader( 'Content-Disposition: attachment; filename=\"ep-troubleshoot.json\"' );\n\t\theader( 'Expires: 0' );\n\t\theader( 'Cache-Control: must-revalidate' );\n\t\theader( 'Pragma: public' );\n\t\theader( 'Content-Length: ' . strlen( $file ) );\n\t\techo $file;\n\t\texit;\n\t}", "public function serve()\n {\n// header('HTTP/1.1 301');\n// header('Location: ' . $this->saveHandler->getPublicServePath() . $this->getFilename());\n// die();\n\n // read file and output\n // this is definitely slower - however current use case is to put it behind a cdn distribution\n $file = $this->saveHandler->getPublicServePath() . $this->getFilename();\n $mimetype = exif_imagetype($file);\n header('Content-Type: '.$mimetype);\n readfile($file);\n die();\n }", "public function renderToOutput()\n {\n header( 'Content-Type: ' . $this->getMimeType() );\n $this->render( 'php://output' );\n }", "function output_file($file) {\n\t\tif(!is_readable($file)) die('<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\"><HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>Not Found</H1><P>The requested URL '.$_SERVER['REQUEST_URI'].' was not found on this server.</P></BODY></HTML>');\n\t\t\n\t\theader('Content-Description: File Transfer');\n\t\theader('Content-Type: application/octet-stream');\n\t\theader('Content-Disposition: attachment; filename='.basename($file));\n\t\theader('Content-Transfer-Encoding: binary');\n\t\theader('Expires: 0');\n\t\theader('Cache-Control: must-revalidate, post-check=0, pre-check=0');\n\t\theader('Pragma: public');\n\t\theader('Content-Length: ' . filesize($file));\n\n\t\treadfile($file);\n\t\texit;\n\t}", "function output($file)\n {\n $fp=fopen($file,\"w\");\n fwrite($fp,$this->file());\n fclose($fp);\n\t\t\n\t\theader(\"Pragma: public\");\n\t\theader(\"Expires: 0\");\n\t\theader(\"Cache-Control: must-revalidate, post-check=0, pre-check=0\");\n\t\theader(\"Cache-Control: private\",false);\n\t\theader(\"Content-Type: application/zip\");\n\t\theader(\"Content-Disposition: attachment; filename=\".basename($file).\";\" );\n\t\theader(\"Content-Transfer-Encoding: binary\");\n\t\theader(\"Content-Length: \".filesize($file));\n\t\treadfile(\"$file\");\n\t\t@unlink($file); \n }", "public function output()\n {\n $imageFile = $this->storage->getPath($this);\n\n if(file_exists($imageFile))\n {\n header('Content-Type: image');\n header('Content-Length: ' . filesize($imageFile));\n\n readfile($imageFile);\n exit;\n }\n }", "public function getFile()\n {\n header('Content-type: ' . $this->mime_type);\n header('Content-Disposition: attachment; filename=' . $this->original_name);\n \n echo gzuncompress(base64_decode($this->content));\n \n die();\n }", "public function render()\n\t{\n\t\t$this->addHTTPHeader('Content-Type', $this->getMimeType());\n\n\t\t$name = $this->getName();\n\n\t\tif (!empty($name))\n\t\t{\n\t\t\t$this->addHTTPHeader('Content-Disposition', 'attachment; filename=\"' . $name . '.csv\"', true);\n\t\t}\n\n\t\t$this->outputHTTPHeaders();\n\n echo $this->getBuffer();\n\t}", "function outputDown($file=\"invoice.html\",$size=\"\"){\n\t// PARAM $file : filename\n\t// $size : file size (optional)\n\n\t\theader('Content-Type: application/octet-stream');\n\t\theader('Content-Disposition: attachment; filename='.$file);\n\t\theader('Expires: 0');\n\t\theader('Cache-Control: must-revalidate');\n\t\theader('Pragma: public');\n\t\tif (is_numeric($size)) { header('Content-Length: ' . $size); }\n\t}", "function _output_file($file, $name)\r\n\t{\r\n\t\tif (!JFile::exists($file))\r\n\t\t\tdie('file not exist!');\r\n\t\t$size = filesize($file);\r\n\t\t$name = rawurldecode($name);\r\n\r\n\t\tif (preg_match('/Opera(/| )([0-9].[0-9]{1,2})/', $_SERVER['HTTP_USER_AGENT']))\r\n\t\t\t$UserBrowser = \"Opera\";\r\n\t\telseif (preg_match('/MSIE ([0-9].[0-9]{1,2})/', $_SERVER['HTTP_USER_AGENT']))\r\n\t\t\t$UserBrowser = \"IE\";\r\n\t\telse\r\n\t\t\t$UserBrowser = '';\r\n\r\n\t\t/* important for download im most browser */\r\n\t\t$mime_type = ($UserBrowser == 'IE' || $UserBrowser == 'Opera') ?\r\n\t\t 'application/octetstream' : 'application/octet-stream';\r\n\t\t@ob_end_clean();\r\n\t\t/* decrease cpu usage extreme */\r\n\t\theader('Content-Type: ' . $mime_type);\r\n\t\theader('Content-Disposition: attachment; filename=\"'.$name.'\"');\r\n\t\theader(\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\");\r\n\t\theader('Accept-Ranges: bytes');\r\n\t\theader(\"Cache-control: private\");\r\n\t\theader('Pragma: private');\r\n\r\n\t\t/* multipart-download and resume-download */\r\n\t\tif (isset($_SERVER['HTTP_RANGE'])) {\r\n\t\t\tlist($a, $range) = explode(\"=\",$_SERVER['HTTP_RANGE']);\r\n\t\t\tstr_replace($range, \"-\", $range);\r\n\t\t\t$size2 = $size-1;\r\n\t\t\t$new_length = $size-$range;\r\n\t\t\theader(\"HTTP/1.1 206 Partial Content\");\r\n\t\t\theader(\"Content-Length: $new_length\");\r\n\t\t\theader(\"Content-Range: bytes $range$size2/$size\");\r\n\t\t} else {\r\n\t\t\t$size2=$size-1;\r\n\t\t\theader(\"Content-Length: \".$size);\r\n\t\t}\r\n\t\t$chunksize = 1*(1024*1024);\r\n\t\t$this->bytes_send = 0;\r\n\t\tif ($file = fopen($file, 'r')) {\r\n\t\t\tif (isset($_SERVER['HTTP_RANGE']))\r\n\t\t\t\tfseek($file, $range);\r\n\t\t\twhile(!feof($file) and (connection_status()==0)) {\r\n\t\t\t\t$buffer = fread($file, $chunksize);\r\n\t\t\t\tprint($buffer);\r\n\t\t\t\tflush();\r\n\t\t\t\t$this->bytes_send += strlen($buffer);\r\n\t\t\t\t/*sleep(1); decrease download speed */\r\n\t\t\t}\r\n\t\tfclose($file);\r\n\r\n\t\t}else\r\n\t\t\tdie('error can not open file');\r\n\t\tif (isset($new_length))\r\n\t\t\t$size = $new_length;\r\n\t}", "private function _export() {\r\n $file = $this->writeJSON('load');\r\n if(file_exists($file)) {\r\n header('Content-Description: File Transfer');\r\n header('Content-Type: application/octet-stream');\r\n header('Content-Disposition: attachment; filename='.basename($file));\r\n header('Content-Transfer-Encoding: binary');\r\n header('Expires: 0');\r\n header('Cache-Control: must-revalidate, post-check=0, pre-check=0');\r\n header('Pragma: public');\r\n header('Content-Length: ' . filesize($file));\r\n ob_clean();\r\n flush();\r\n readfile($file);\r\n exit;\r\n }\r\n }", "public function viewAction()\n {\n $request = Request::createFromGlobals();\n $file = $request->query->get( 'file' );\n\n $portal = $this->container->get('arii_core.portal');\n $workspace = $portal->getWorkspace();\n $path = $portal->getSessionVar('path');\n \n $filename = str_replace('//','/',$workspace.'/'.$path.'/'.$file );\n if ($this->isUtf8($filename))\n $filename = utf8_decode($filename);\n \n if (!($content = file_get_contents($filename)))\n throw new \\Exception('File not found: '.$file);\n \n $response = new Response();\n $ext = strtolower(substr($file,-3));\n switch ($ext) {\n case 'png':\n case 'jpg':\n $type = 'image/'.$ext;\n break;\n// case 'xml':\n// $type = 'text/'.$ext;\n// break;\n case 'xls':\n if (!$this->isUtf8($content))\n $content = utf8_encode($content);\n $response->headers->set('Content-type', 'application/vnd.ms-excel; charset=utf-8');\n $response->headers->set(\"Content-disposition\", \"attachment; filename=$file\"); \n $response->setContent($content);\n return $response;\n break; \n default:\n if (!$this->isUtf8($content))\n $content = utf8_encode($content);\n $type = 'text/plain';\n }\n $response->headers->set('Content-Type', $type);\n $response->setContent($content);\n return $response;\n }", "public function outputResponse($response)\n {\n $path = public_path('test_output/index.html');\n file_put_contents($path, $response->getContent());\n }", "public function render()\n\t{\n\t\t$this->addHTTPHeader('Content-Type', $this->getMimeType());\n\n\t\t$name = $this->getName();\n\n\t\tif (!empty($name))\n\t\t{\n\t\t\t$this->addHTTPHeader('Content-Disposition', 'attachment; filename=\"' . $name . '.json\"', true);\n\t\t}\n\n\t\t$this->outputHTTPHeaders();\n\n\t\tif ($this->useHashes)\n\t\t{\n\t\t\techo '###' . $this->getBuffer() . '###';\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo $this->getBuffer();\n\t\t}\n\t}", "function output($fileName = '', $saveInPath = '')\n {\n $this->endSession();\n \n $outputCode = '';\n $outputCode .= \"<html xmlns:o=\\\"urn:schemas-microsoft-com:office:office\\\"\\n\";\n $outputCode .= \" xmlns:w=\\\"urn:schemas-microsoft-com:office:word\\\"\\n\";\n $outputCode .= \" xmlns=\\\"http://www.w3.org/TR/REC-html40\\\">\\n\";\n \n $outputCode .= $this->getHeader();\n \n $outputCode .= $this->getBody();\n \n $outputCode .= \"</html>\\n\";\n \n $fileName = $fileName != '' ? $fileName : basename($_SERVER['PHP_SELF'], '.php') . '.doc';\n \n if ($saveInPath == '') {\n if ($this->isDebugging) {\n echo nl2br(htmlentities($outputCode));\n } else {\n header(\"Content-Type: application/msword; charset=\\$this->documentCharset\\\"\");\n \n header(\"Content-Disposition: attachment; filename=\\\"$fileName\\\"\");\n \n echo $outputCode;\n }\n } else {\n if (substr($saveInPath, - 1) != \"/\")\n $saveInPath = $saveInPath . \"/\";\n \n file_put_contents($saveInPath . $fileName, $outputCode);\n }\n $this->documentBuffer = '';\n }", "public function output($filename = null)\n {\n $iterator = $this->getIterator();\n //@codeCoverageIgnoreStart\n if (! is_null($filename) && self::isValidString($filename)) {\n $filename = (string) $filename;\n $filename = filter_var($filename, FILTER_UNSAFE_RAW, ['flags' => FILTER_FLAG_STRIP_LOW]);\n header('Content-Type: application/octet-stream');\n header('Content-Transfer-Encoding: binary');\n header('Content-Disposition: attachment; filename=\"'.$filename.'\"');\n if (! $iterator instanceof SplTempFileObject) {\n header('Content-Length: '.$iterator->getSize());\n }\n }\n //@codeCoverageIgnoreEnd\n $iterator->rewind();\n $iterator->fpassthru();\n }", "public function serve()\n {\n $type = $this->getSourceType();\n $sources = $this->getSources();\n $contents = $this->getContents();\n if ($type!='file' && count($sources)==1) {\n $response_data = array(\n 'source' => $sources[0],\n 'content' => $contents[0],\n );\n } else {\n $response_data = array(\n 'sources' => $sources,\n 'contents' => $contents,\n );\n }\n\n $errors_collection = $this->getErrors();\n $errors = array();\n foreach ($errors_collection as $_error) {\n $errors[] = $_error->getFullMessage();\n }\n $response_data['errors'] = $errors;\n\n if ($this->isDebug()) {\n $response_data['dump'] = serialize($this);\n }\n\n if (Container::get('request')->isMethod('head')) {\n Container::get('response')->fetchHeaders();\n exit(PHP_EOL);\n } else {\n try {\n Container::get('response')->send($response_data);\n } catch (\\Exception $e) {\n $this->warning($e->getMessage());\n Container::get('response')\n ->setContent(array('errors'=>$this->getErrors()))\n ->fetch();\n }\n }\n }", "public function file(){\n\t\theader('Content-Type: image/'.$this->extension);\n\t\tdie( readfile( $this->path ) );\n\t}", "public function show()\n {\n try {\n header(sprintf('Content-Type: %s', $this->getMimeType(), true));\n $this->save(null);\n } catch (\\Exception $ex) {\n header(sprintf('Content-Type: text/html'), true);\n /* rethrow it */\n throw $ex;\n }\n }", "private function output($file, $type) {\r\r\n\t\tswitch ($type) {\r\r\n\t\t\t// output file as data\r\r\n\t\t\tcase \"data\":\r\r\n\t\t\t\techo $file;\r\r\n\t\t\t\tbreak;\r\r\n\t\t\t// output file as filename\r\r\n\t\t\tcase \"file\":\r\r\n\t\t\t\treadfile($file);\r\r\n\t\t\t\tbreak;\r\r\n\t\t\t// mod_xsendfile as filename\r\r\n\t\t\tcase \"xsendfile\":\r\r\n\t\t\t\t$this->setHeader(\"X-Sendfile\", $file);\r\r\n\t\t\t\tbreak;\r\r\n\t\t}\r\r\n\t}", "function sendFile ($name = \"export.tex\") {\n header('Content-type: application/text');\n\t header('Content-Transfer-Encoding: binary');\n header(\"Content-Disposition: attachment; filename=$name\");\n echo $this->content;\n }", "public function download() {\n\t\theader('Content-Disposition: attachment; filename=\"' . basename($this->fileName) . '\"');\n\t\t$this->show();\n\t}", "public function download()\n {\n header('Content-Description: File Transfer');\n header('Content-Type: application/octet-stream');\n header('Content-Disposition: attachment; filename=' . $this->getFilename());\n header('Content-Transfer-Encoding: binary');\n header('Expires: 0');\n header('Cache-Control: must-revalidate, post-check=0, pre-check=0');\n header('Pragma: public');\n header('Content-Length: ' . $this->getSize());\n \\Oka\\Web\\Buffer::Clean();\n\n $this->read();\n exit;\n }", "public function download() {\n $this->autoRender = false;\n $filename = $this->request->params['pass'][3];\n $orgfilename = $this->request->params['pass'][4];\n// pr($this->request->params); exit;\n $this->response->file(\n 'webroot/uploads/post/files/' . $filename, array(\n 'download' => true,\n 'name' => $orgfilename\n )\n );\n// return $this->response;\n }", "public function download()\n\t{\n\t\tR::selectDatabase('oxid');\n\t\t$files = $this->getFilesByName(Flight::request()->query->file);\n\t\tif (empty($files)) $this->redirect('/');\n\t\t$file = reset($files);\n\t\t$dwnloadDir = substr($file['OXSTOREHASH'], 0, 2);\n\t\t$dwnloadFile = Flight::get('oxid_dir_downloads').$dwnloadDir.'/'.$file['OXSTOREHASH'];\n\t\tif ( ! is_file($dwnloadFile)) $this->redirect('/');\n\t\t//error_log($dwnloadFile);\n\t\theader('Content-type: application/pdf');\n\t\theader('Content-Disposition: inline; filename=\"'.$file['OXFILENAME'].'\"');\n\t\t@readfile($dwnloadFile);\n\t}", "function output_file($file, $name, $mime_type = '') {\r\n if (!is_readable($file))\r\n die('File not found or inaccessible!');\r\n\r\n $size = filesize($file);\r\n $name = rawurldecode($name);\r\n\r\n /* Figure out the MIME type (if not specified) */\r\n $known_mime_types = array(\r\n \"pdf\" => \"application/pdf\",\r\n \"txt\" => \"text/plain\",\r\n \"html\" => \"text/html\",\r\n \"htm\" => \"text/html\",\r\n \"exe\" => \"application/octet-stream\",\r\n \"zip\" => \"application/zip\",\r\n \"doc\" => \"application/msword\",\r\n \"xls\" => \"application/vnd.ms-excel\",\r\n \"ppt\" => \"application/vnd.ms-powerpoint\",\r\n \"gif\" => \"image/gif\",\r\n \"png\" => \"image/png\",\r\n \"jpeg\" => \"image/jpg\",\r\n \"jpg\" => \"image/jpg\",\r\n \"php\" => \"text/plain\"\r\n );\r\n\r\n if ($mime_type == '') {\r\n $file_extension = strtolower(substr(strrchr($file, \".\"), 1));\r\n if (array_key_exists($file_extension, $known_mime_types)) {\r\n $mime_type = $known_mime_types[$file_extension];\r\n } else {\r\n $mime_type = \"application/force-download\";\r\n };\r\n };\r\n\r\n @ob_end_clean(); //turn off output buffering to decrease cpu usage\r\n // required for IE, otherwise Content-Disposition may be ignored\r\n if (ini_get('zlib.output_compression'))\r\n ini_set('zlib.output_compression', 'Off');\r\n\r\n header('Content-Type: ' . $mime_type);\r\n header('Content-Disposition: attachment; filename=\"' . $name . '\"');\r\n header(\"Content-Transfer-Encoding: binary\");\r\n header('Accept-Ranges: bytes');\r\n\r\n /* The three lines below basically make the \r\n download non-cacheable */\r\n header(\"Cache-control: private\");\r\n header('Pragma: private');\r\n\r\n // multipart-download and download resuming support\r\n if (isset($_SERVER['HTTP_RANGE'])) {\r\n list($a, $range) = explode(\"=\", $_SERVER['HTTP_RANGE'], 2);\r\n list($range) = explode(\",\", $range, 2);\r\n list($range, $range_end) = explode(\"-\", $range);\r\n $range = intval($range);\r\n if (!$range_end) {\r\n $range_end = $size - 1;\r\n } else {\r\n $range_end = intval($range_end);\r\n }\r\n\r\n $new_length = $range_end - $range + 1;\r\n header(\"HTTP/1.1 206 Partial Content\");\r\n header(\"Content-Length: $new_length\");\r\n header(\"Content-Range: bytes $range-$range_end/$size\");\r\n } else {\r\n $new_length = $size;\r\n header(\"Content-Length: \" . $size);\r\n }\r\n\r\n /* output the file itself */\r\n $chunksize = 1 * (1024 * 1024); //you may want to change this\r\n $bytes_send = 0;\r\n if ($file = fopen($file, 'r')) {\r\n if (isset($_SERVER['HTTP_RANGE']))\r\n fseek($file, $range);\r\n\r\n while (!feof($file) &&\r\n (!connection_aborted()) &&\r\n ($bytes_send < $new_length)\r\n ) {\r\n $buffer = fread($file, $chunksize);\r\n print($buffer); //echo($buffer); // is also possible\r\n flush();\r\n $bytes_send += strlen($buffer);\r\n }\r\n fclose($file);\r\n unlink($file);\r\n } else\r\n die('Error - can not open file.');\r\n\r\n die();\r\n }", "function printContent() {\n\n $this->content.=$this->doc->endPage();\n\t\tif(isset($_REQUEST[export])){\n\t\t\theader(\"Content-type: application/force-download\");\n\t\t\theader(\"Content-Disposition: filename=participants_\".$_REQUEST['cuid'].\".csv\");\n\n\t\t\theader(\"Content-Description: Downloaded File\");\n\n\t\t\techo $this->csvExport($_REQUEST['cuid']);\n\t\t} else {\n\t\t\techo $this->content;\n\t\t}\n }", "public function export() {\n\t\tif ( ! $this->can_export() ) {\n\t\t\twp_die(\n\t\t\t\t__( 'You do not have permission to export data.', 'affiliate-wp' ),\n\t\t\t\t__( 'Error', 'affiliate-wp' ),\n\t\t\t\tarray( 'response' => 403 )\n\t\t\t);\n\t\t}\n\n\t\t// Set headers.\n\t\t$this->headers();\n\n\t\t$file = $this->get_file();\n\n\t\t@unlink( $this->file );\n\n\t\techo $file;\n\n\t\tdie();\n\t}", "public static function renderFile();", "public function output(){\n header('Content-type: text/xml');\n echo $this->getDocument();\n }", "protected function getPageFile()\n\t{\n\t\t// empty the html property (although it's probably empty anyway if we're here)\n\t\t$this->html = '';\n\n\t\t// get the data\n\t\t$this->html = file_get_contents($this->url);\n\t}", "public function renderResponse()\n {\n $cache = null;\n $request = $this->_options->getRequest();\n\n if ($this->_options->getApc()) {\n $cache = new Cache\\Apc($request->getCacheId());\n $content = $cache->load();\n\n if (false !== $content) {\n $this->_display($content, $this->_options->getGzip());\n }\n }\n\n $content = $this->_buildContent($request);\n\n if ($this->_options->getGzip()) {\n // Apply gzip encoding with compression level \"9\"\n $content = gzencode($content, 9);\n }\n\n if ($cache) {\n $cache->store($content, $this->_options->getCacheTtl());\n }\n\n $this->_display($content, $this->_options->getGzip());\n }", "function http_send_file($file) {}", "function downloadHtml() {\n $filePath = './temp.html';\n\n if(file_exists($filePath)) {\n $fileName = basename($filePath);\n $fileSize = filesize($filePath);\n header(\"Cache-Control: private\");\n header(\"Content-Type: application/stream\");\n header(\"Content-Length: \".$fileSize);\n header(\"Content-Disposition: attachment; filename=NEWSLETTER SPRI \".date(\"Y-m-d H:i:s\").\".html\");\n readfile ($filePath); \n exit();\n } else {\n die('The provided file path is not valid.');\n }\n}", "function saveToTxt(){\n\t\t$text=file_get_contents(DIR.$this->filename);\n\t\t$filename=$this->filename+\".xml\";\n\t\theader(\"Content-type: application/text\");\n\t\theader(\"Content-Disposition: attachment; filename=\\\"$filename\\\"\");\n\t\tdie($text);\n\t\theader(\"location:index.php\");\n\t}", "public function download(){\n\t\treturn $this->fpdi->Output($this->fileName, 'D');\n\t}", "public function send()\n {\n // We'll be outputting an excel file\n header('Content-type: application/vnd.ms-excel');\n // It will be called file.xls\n header('Content-Disposition: attachment; filename=\"' . $this->name . '.xlsx\"');\n // Write file to the browser\n\n\n $objWriter = new PHPExcel_Writer_Excel2007( $this->file );\n ob_end_clean();\n\n $objWriter->save( 'php://output' );\n die();\n }", "private static function _output($p_fileName)\n {\n $objWriter = PHPExcel_IOFactory::createWriter(self::$objPHPExcel, self::$excelExtension);\n header('Content-type: application/vnd.ms-excel');\n header('Content-Disposition: attachment;filename=\"' . $p_fileName . '\"');\n header('Cache-Control: max-age=0');\n // If you're serving to IE 9, then the following may be needed\n header('Cache-Control: max-age=1');\n header(\"Content-Transfer-Encoding: binary \");\n $objWriter->save('php://output');\n }", "function output() {\n if (isset($this->status)) {\n $this->send_header(sprintf('HTTP/1.1 %d %s',\n $this->status, $this->reason),\n TRUE,\n $this->status);\n }\n\n foreach ($this->headers as $k => $v) {\n $this->send_header(\"$k: $v\");\n }\n\n echo $this->body;\n }", "public static function renderFile($outputFile, $outputExtension, $attachementName) {\n\t\tif(ini_get('zlib.output_compression'))\n\t\t\tini_set('zlib.output_compression', 'Off');\n\n\t\t$headers = sfConfig::get('app_sfOpenOfficePlugin_headers');\n\t\tif(isset($headers[$outputExtension]))\n\t\t\t$header = array_merge($headers['all'], $headers[$outputExtension]);\n\t\telse\n\t\t\t$header = $headers['all'];\n\n\t\t// $header['Content_Length'] = filesize($outputPath);\n\t\t$header['Content-disposition'] = 'attachment; filename=\"' . $attachementName . '.' . $outputExtension . '\"';\n\n\t\tforeach($header as $name => $value) {\n\t\t\theader(\"$name: $value\");\n\t\t}\n\t\theader(\"Cache-Control: private\", false); // required for certain browsers\n\n\t\treadfile($outputFile);\n\t}", "function downloadFile($filename, $downloadPath)\n{\n App::set_response_header('Content-Type', 'text/plain');\n App::set_response_header('Pragma', 'no-cache');\n App::set_response_header(\n 'Content-Disposition',\n \"attachment; filename={$filename}\"\n );\n readfile($downloadPath);\n}", "function output_file($file, $name, $mime_type='')\n{\n if(!is_readable($file)) die('File not found or inaccessible!');\n \n $size = filesize($file);\n $name = rawurldecode($name);\n \n /* Figure out the MIME type (if not specified) */\n $known_mime_types=array(\n \t\"pdf\" => \"application/pdf\",\n \t\"txt\" => \"text/plain\",\n \t\"html\" => \"text/html\",\n \t\"htm\" => \"text/html\",\n\t\"exe\" => \"application/octet-stream\",\n\t\"zip\" => \"application/zip\",\n\t\"doc\" => \"application/msword\",\n\t\"xls\" => \"application/vnd.ms-excel\",\n\t\"ppt\" => \"application/vnd.ms-powerpoint\",\n\t\"gif\" => \"image/gif\",\n\t\"png\" => \"image/png\",\n\t\"jpeg\"=> \"image/jpg\",\n\t\"jpg\" => \"image/jpg\",\n\t\"php\" => \"text/plain\",\n \"xml\" => \"text/xml\",\n \"csv\" => \"text/csv\"\n );\n \n if($mime_type==''){\n\t $file_extension = strtolower(substr(strrchr($file,\".\"),1));\n\t if(array_key_exists($file_extension, $known_mime_types)){\n\t\t$mime_type=$known_mime_types[$file_extension];\n\t } else {\n\t\t$mime_type=\"application/force-download\";\n\t };\n };\n \n @ob_end_clean(); //turn off output buffering to decrease cpu usage\n \n // required for IE, otherwise Content-Disposition may be ignored\n if(ini_get('zlib.output_compression'))\n ini_set('zlib.output_compression', 'Off');\n \n header('Content-Type: ' . $mime_type);\n header('Content-Disposition: attachment; filename=\"'.$name.'\"');\n header(\"Content-Transfer-Encoding: binary\");\n header('Accept-Ranges: bytes');\n \n /* The three lines below basically make the \n download non-cacheable */\n header(\"Cache-control: private\");\n header('Pragma: private');\n header(\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\");\n \n // multipart-download and download resuming support\n if(isset($_SERVER['HTTP_RANGE']))\n {\n\tlist($a, $range) = explode(\"=\",$_SERVER['HTTP_RANGE'],2);\n\tlist($range) = explode(\",\",$range,2);\n\tlist($range, $range_end) = explode(\"-\", $range);\n\t$range=intval($range);\n\tif(!$range_end) {\n\t\t$range_end=$size-1;\n\t} else {\n\t\t$range_end=intval($range_end);\n\t}\n \n\t$new_length = $range_end-$range+1;\n\theader(\"HTTP/1.1 206 Partial Content\");\n\theader(\"Content-Length: $new_length\");\n\theader(\"Content-Range: bytes $range-$range_end/$size\");\n } else {\n\t$new_length=$size;\n\theader(\"Content-Length: \".$size);\n }\n \n /* output the file itself */\n $chunksize = 1*(1024*1024); //you may want to change this\n $bytes_send = 0;\n if ($file = fopen($file, 'r'))\n {\n\tif(isset($_SERVER['HTTP_RANGE']))\n\tfseek($file, $range);\n \n\twhile(!feof($file) && \n\t\t(!connection_aborted()) && \n\t\t($bytes_send<$new_length)\n\t )\n\t{\n\t\t$buffer = fread($file, $chunksize);\n\t\tprint($buffer); ////echo($buffer); // is also possible\n\t\tflush();\n\t\t$bytes_send += strlen($buffer);\n\t}\n fclose($file);\n } else die('Error - can not open file.');\n \ndie();\n}", "function Output($name='',$dest='')\n\t\t{\n\t\t\tglobal $HTTP_SERVER_VARS;\n\n\t\t\t//Finish document if necessary\n\t\t\tif($this->state < 3) $this->Close();\n\t\t\t//Normalize parameters\n\t\t\tif(is_bool($dest)) $dest=$dest ? 'D' : 'F';\n\t\t\t$dest=strtoupper($dest);\n\t\t\tif($dest=='')\n\t\t\t{\n\t\t\t\tif($name=='')\n\t\t\t\t{\n\t\t\t\t\t$name='doc.pdf';\n\t\t\t\t\t$dest='I';\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$dest='F';\n\t\t\t}\n\t\t\tswitch($dest)\n\t\t\t{\n\t\t\t\tcase 'I':\n\t\t\t\t\t//Send to standard output\n\t\t\t\t\tif(isset($HTTP_SERVER_VARS['SERVER_NAME']))\n\t\t\t\t\t{\n\t\t\t\t\t\t//We send to a browser\n\t\t\t\t\t\tHeader('Content-Type: application/pdf');\n\t\t\t\t\t\tif(headers_sent())\n\t\t\t\t\t\t\t$this->Error('Some data has already been output to browser, can\\'t send PDF file');\n\t\t\t\t\t\tHeader('Content-Length: '.strlen($this->buffer));\n\t\t\t\t\t\tHeader('Content-disposition: inline; filename='.$name);\n\t\t\t\t\t}\n\t\t\t\t\techo $this->buffer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D':\n\t\t\t\t\t//Download file\n\t\t\t\t\tif(isset($HTTP_SERVER_VARS['HTTP_USER_AGENT']) and strpos($HTTP_SERVER_VARS['HTTP_USER_AGENT'],'MSIE'))\n\t\t\t\t\t\tHeader('Content-Type: application/force-download');\n\t\t\t\t\telse\n\t\t\t\t\t\tHeader('Content-Type: application/octet-stream');\n\t\t\t\t\tif(headers_sent())\n\t\t\t\t\t\t$this->Error('Some data has already been output to browser, can\\'t send PDF file');\n\t\t\t\t\tHeader('Content-Length: '.strlen($this->buffer));\n\t\t\t\t\tHeader('Content-disposition: attachment; filename='.$name);\n\t\t\t\t\techo $this->buffer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'F':\n\t\t\t\t\t//Save to local file\n\t\t\t\t\t$f=fopen($name,'wb');\n\t\t\t\t\tif(!$f) $this->Error('Unable to create output file: '.$name);\n\t\t\t\t\tfwrite($f,$this->buffer,strlen($this->buffer));\n\t\t\t\t\tfclose($f);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'S':\n\t\t\t\t\t//Return as a string\n\t\t\t\t\treturn $this->buffer;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->Error('Incorrect output destination: '.$dest);\n\t\t\t}\n\t\t\treturn '';\n\t\t}", "public function output() {\n header('Content-Type: application/xml');\n $dom = new \\DOMDocument('1.0');\n $dom->preserveWhiteSpace = false;\n $dom->formatOutput = true;\n $dom->loadXML($this->xml->asXML());\n echo $dom->saveXML();\n }", "function get_file(){\n extract($this->_url_params);\n /**\n * @var string $file_name\n * @var int $project_id\n */\n $this->load_view(false);\n if(!isset($file_name, $project_id)) goto redirect;\n /**\n * @var \\AWorDS\\App\\Models\\Project $project\n */\n $project = $this->set_model();\n $logged_in = $project->login_check();\n if($logged_in AND $project->verify($project_id)){\n $file_type = null;\n switch($file_name){\n case 'SpeciesRelation.txt': $file_type = Constants::EXPORT_SPECIES_RELATION; break;\n case 'DistantMatrix.txt' : $file_type = Constants::EXPORT_DISTANT_MATRIX; break;\n case 'NeighbourTree.jpg' : $file_type = Constants::EXPORT_NEIGHBOUR_TREE; break;\n case 'UPGMATree.jpg' : $file_type = Constants::EXPORT_UPGMA_TREE;\n }\n if($file_type == null) goto redirect;\n $file = $project->export($project_id, $file_type);\n if($file == null){\n redirect:\n $this->redirect(isset($_SERVER['HTTP_REFERER']) ?\n $_SERVER['HTTP_REFERER'] :\n Config::WEB_DIRECTORY . 'projects');\n exit();\n }\n header('Content-Type: ' . $file['mime']);\n header('Content-Disposition: attachment; filename=\"' . $file['name'] . '\"');\n readfile($file['path']);\n exit();\n }\n goto redirect;\n }", "public static function file($name)\n {\n header('Content-Type: application/octet-stream');\n header('Content-Transfer-Encoding: Binary');\n header('Content-disposition: attachment; filename=\"'.$name.'\"');\n }", "function download()\n {\n $field = $this->GET('field');\n $id = $this->GET('id');\n $file = $this->table->data[$id][$field];\n header('Content-Type: ' . $this->_mime_content_type($file));\n header('Content-Length: ' . strlen($file));\n header('Content-Disposition: attachment; filename=\"' . $field . '_' . $id . '\";');\n echo $file;\n }", "public function downloadFile();", "private function __send_response(){\n http_response_code($this->response_code);\n if($this->_redirect) header(\"Location: \".Config::WEB_DIRECTORY.\"{$this->_redirect_location}\");\n elseif($this->_JSON){\n header('Content-Type: application/json; charset=UTF-8');\n print json_encode($this->_JSON_contents, JSON_PRETTY_PRINT);\n }elseif($this->_HTML){\n if($this->_HTML_load_view) $this->_template->render();\n } /** @noinspection PhpStatementHasEmptyBodyInspection */ else{\n // Do nothing\n }\n }", "public function output()\r\n {\r\n $_SESSION[\"view\"]=$this;\r\n include $this->controller->index();\r\n }", "public function SendFile(){\r\n if(empty($this->XlsData))\r\n throw new exception('Xls data not available');\r\n header(\"Cache-Control: no-cache, must-revalidate\");\r\n header(\"Content-Description: ABG_PhpToXls Generated XLS Data\");\r\n header(\"Content-Disposition: attachment; filename=\\\"$this->_FileName\\\"\");\r\n header('Content-Transfer-Encoding: binary');\r\n header('Content-Type: application/force-download');\r\n header('Content-Type: application/octet-stream');\r\n header(\"Content-type: application/x-msexcel\");\r\n header(\"Expires: Mon, 1 Apr 1974 05:00:00 GMT\");\r\n header(\"Last-Modified: \".gmdate(\"D,d M YH:i:s\").\" GMT\");\r\n header(\"Pragma: no-cache\");\r\n print($this->XlsData);\r\n }", "function download($file = \"\") {\n\t\t// Set maximum execution time in seconds (0 means no limit).\n\n\t\tset_time_limit(0);\n\t\t\n\t\t// Check downloader is admin or manager\n\t\tif(!empty($file)) {\n\t\t\t$file = SITE_DIR.\"public\".base64_decode($file);\n\n\t\t\t$this->output_file($file);\n\t\t} else\n\t\t\t$this->download_forbidden();\n\t\texit;\n\t}", "public function sendPrroductDownloadToBrowser() {\n $transaction = getTransaction($_GET['id']);\n if ($transaction['status'] == \"valid\") {\n header(\"Content-Type: application/octet-stream\");\n header(\"Content-Transfer-Encoding: binary\");\n header(\"Content-Description: File Transfer\");\n if ($_GET[\"oto\"] && $transaction['oto']) {\n $fparts = explode(\"/\", $sys_oto_location);\n $filename = $fparts[count($fparts)-1];\n header(\"Content-Disposition: attachment; filename=$filename\");\n @readfile($sys_oto_location);\n } else {\n $fparts = explode(\"/\", $sys_item_location);\n $filename = $fparts[count($fparts)-1];\n header(\"Content-Disposition: attachment; filename=$filename\");\n @readfile($sys_item_location);\n }\n exit;\n } elseif ($transaction['status'] == \"expired\") {\n $filename = \"downloadexpired.html\";\n } else {\n $filename = \"invalid.html\";\n }\n showTemplate($filename);\n }", "public function outputPdfToBrowser();", "public function sendResponseBody()\n\t{\n\t\t$layoutTemplate = $this->getLayoutTemplate();\n\n\t\t$layoutTemplate['document'] = $this;\n\t\t$layoutTemplate['title'] = $this->getTitle();\n\t\t$layoutTemplate['content'] = $this->getContent();\n\n\t\t$pageHtml = $layoutTemplate->getOutput();\n\n\t\techo $pageHtml;\n\t}", "function _header( $filename )\r\n {\r\n if ( function_exists( 'mb_http_output' ) ) {\r\n mb_http_output( 'pass' );\r\n }\r\n header( 'Content-Type: ' . $this -> mimetype );\r\n if ( preg_match( \"/MSIE ([0-9]\\.[0-9]{1,2})/\", $_SERVER['HTTP_USER_AGENT'] ) ) {\r\n header( 'Content-Disposition: inline; filename=\"' . $filename . '\"' );\r\n header( 'Expires: 0' );\r\n header( 'Cache-Control: must-revalidate, post-check=0, pre-check=0' );\r\n header( 'Pragma: public' );\r\n } else {\r\n header( 'Content-Disposition: attachment; filename=\"' . $filename . '\"' );\r\n header( 'Expires: 0' );\r\n header( 'Pragma: no-cache' );\r\n }\r\n }", "function save($html,$filename) {\n\t\tglobal $modx;\n\t\theader('Content-Type: text/html; charset='.$modx->config[\"modx_charset\"]);\n\t\theader(\"Content-Disposition: attachment; filename=\\\"$filename\\\"\");\n\t\texit($html);\n\t}", "function exportFile($file, $filename,$mimetype=\"\", $detectmime=true)\n{\n\tinclude_once(atkconfig(\"atkroot\").\"atk/atkbrowsertools.inc\");\n\t$browser = getBrowserInfo();\n\tif (preg_match(\"/ie/i\", $browser[\"browser\"]))\n\t{\n\t\t$mime = \"application/octetstream\";\n\t\t$disp = 'attachment';\n\t}\n\telse if (preg_match(\"/opera/i\",$browser[\"browser\"]))\n\t{\n\t\t$mime = \"application/octetstream\";\n\t\t$disp = 'inline';\n\t}\n\telse\n\t{\n\t\t$mime = \"application/octet-stream\";\n\t\t$disp = 'attachment';\n\t}\n\tif($mimetype!=\"\") $mime=$mimetype;\n\telse if ($mimetype==\"\" && $detectmime && function_exists('mime_content_type'))\n\t$mime = mime_content_type($file);\n\n\t$fp = @fopen($file,\"rb\");\n\tif ($fp!=NULL)\n\t{\n\t\theader('Content-Type: '. $mime);\n\t\theader(\"Content-Length: \".filesize($file));\n\t\theader('Content-Disposition: '.$disp.'; filename=\"'.$filename.'\"');\n\t\tif(preg_match(\"/ie/i\", $browser[\"browser\"])) header('Cache-Control: must-revalidate, post-check=0, pre-check=0');\n\t\tif (($_SERVER[\"SERVER_PORT\"] == \"443\" || $_SERVER['HTTP_X_FORWARDED_PROTO' ]==='https') && preg_match(\"/msie/i\", $_SERVER[\"HTTP_USER_AGENT\"]))\n\t\t{\n\t\t\theader('Pragma: public');\n\t\t}\n\t\telse\n\t\t{\n\t\t\theader('Pragma: no-cache');\n\t\t}\n\t\theader('Expires: 0');\n\n\t\theader(\"Content-Description: File Transfer\");\n\t\theader(\"Content-Transfer-Encoding: binary\");\n\n\t\tfpassthru($fp);\n\t\treturn true;\n\t}\n\treturn false;\n}", "public function show() {\n\t\t$this->create();\n\t\theader(\"Content-Type: image/png\");\n\t\theader(\"Content-Transfer-Encoding: binary\");\n\t\theader(\"Content-Length: \" . filesize($this->fileName));\n\t\theader(\"ETag: \" . md5($this->fileName)); // note we calculate md5 from filename, not from the file content\n\t\theader(\"Cache-Control: max-age=3600\");\n\t\theader(\"Expires: \" . gmdate('D, j M Y H:i:s', time() + 3600) . ' GMT');\n\t\tob_clean();\n\t\tflush();\n\t\treadfile($this->fileName);\n\t}", "public function download()\n {\n $this->pdf->Output(\n $this->fileName,\n self::EXPORT_TYPE_DOWNLOAD\n );\n }", "public static function output($response) {\r\n header('Content-Type: application/json');\r\n echo json_encode($response);\r\n exit(0);\r\n }", "public function renderLoadsHtml()\n {\n header('Content-type: application/javascript');\n echo file_get_contents($this->file);\n }", "public function output($filename = null)\n {\n if (null !== $filename) {\n $filename = filter_var($filename, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW);\n header('Content-Type: text/csv');\n header('Content-Transfer-Encoding: binary');\n header(\"Content-Disposition: attachment; filename=\\\"$filename\\\"\");\n }\n\n return $this->fpassthru();\n }", "static function return_output($file){\n ob_start();\n include $file;\n return ob_get_clean();\n }", "function output($req, &$t) {\n\t\t/*\n\t\t$start = BASE_DIR.'var/acct_img';\n\t\t$name = basename($t['file']);\n\t\t$one = $start.'/'.substr($name, 0, 1);\n\t\t$two = $one.'/'.substr($name, 1, 1);\n\t\t$f = @fopen($two.'/w'.$name, 'r');\n\t\t */\n\t\t$f = @fopen($t['file'], 'r');\n\t\tif (!$f) {\n\t\t\t$f = fopen(BASE_DIR.'/media/icons/default/user_icon.png', 'r');\n\t\t}\n\n\t\theader('Cache-Control: public,max-age=5000');\n\t\t//expire in 1 hour, keeps browser from re-requesting every hit\n\t\theader('Pragma: pragma');\n\t\theader('Expires: '.gmdate(\"D, d M Y H:i:s\", time()+3600));\n\t\theader('Content-Type: image/png');\n\t\t//$f = fopen(BASE_DIR.'/media/icons/default/user_icon.png', 'r');\n\t\tfpassthru($f);\n\t\tfclose($f);\n\t}", "function save_response($response){\n $f = fopen('response.html', 'w');\n fwrite($f, $response);\n fclose($f);\n}", "public function getOutput(){\n\n if (is_null($this->output)) {\n\n ob_start();\n\n extract($this->data);\n\n require $this->view;\n\n $this->output = ob_get_clean();\n\n return $this->output;\n }\n }", "function output_file( $file_md5, $name, $mimecontent )\r\n{\r\n\t//register_shutdown_function( 'function_name' );\r\n\r\n\tif(!file_exists($file_md5))\r\n\t die('El archivo para subir no existe !');\r\n\r\n\t$size = filesize($file_md5);\r\n\t\r\n//\t$name = rawurldecode($name);\r\n\t\r\n\tif (ereg('Opera(/| )([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']))\r\n\t\t$UserBrowser = \"Opera\";\r\n\telseif (ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']))\r\n\t\t$UserBrowser = \"IE\";\r\n\telse\r\n\t\t$UserBrowser = '';\r\n\r\n\t/// important for download im most browser\r\n\t$mime_type = ($UserBrowser == 'IE' || $UserBrowser == 'Opera') ?\r\n\t 'application/octetstream' : 'application/octet-stream';\r\n\t \r\n\t@ob_end_clean(); /// decrease cpu usage extreme\r\n\t\r\n\theader('Content-Type: ' . $mime_type);\r\n//\theader(\"Cache-Control: must-revalidate, post-check=0, pre-check=0\");\t //jels\r\n \theader('Content-Disposition: attachment; filename=\"'.$name.'\"');\r\n\theader('Accept-Ranges: bytes');\r\n\theader(\"Cache-control: private\");\r\n\theader('Pragma: private');\r\n\t\r\n\t///// multipart-download and resume-download\r\n\tif(isset($_SERVER['HTTP_RANGE']))\r\n\t{\r\n\t\tlist($a, $range) = explode(\"=\",$_SERVER['HTTP_RANGE']);\r\n\t\tstr_replace($range, \"-\", $range);\r\n\t\t$size2 = $size-1;\r\n\t\t$new_length = $size-$range;\r\n\t\theader(\"HTTP/1.1 206 Partial Content\");\r\n\t\theader(\"Content-Length: $new_length\");\r\n\t\theader(\"Content-Range: bytes $range$size2/$size\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\t$size2=$size-1;\r\n\t\theader(\"Content-Length: \".$size);\r\n\t}\r\n\r\n\t$chunksize = 1*(1024*1024);\r\n\r\n\t$bytes_send = 0;\r\n\r\n\tif ($file = fopen($file_md5, 'r'))\r\n\t{\r\n\t\tif(isset($_SERVER['HTTP_RANGE']))\r\n\t\t fseek($file, $range);\r\n\t\t\r\n\t\twhile(!feof($file) and (connection_status()==0))\r\n\t\t{\r\n\t\t\t$buffer = fread($file, $chunksize);\r\n\t\t\tprint($buffer);\r\n\t\t\tflush();\r\n\t\t\t$bytes_send += strlen($buffer);\r\n\t\t\t//sleep(1);//// decrease download speed\r\n\t\t}\r\n\t\tfclose($file);\r\n\t}\r\n\telse\r\n\t\tdie('No se puede abrir el archivo.');\r\n\t\t\r\n\tif(isset($new_length))\r\n\t\t$size = $new_length;\r\n\t\t\r\n//\tdie();\r\n}", "public function outputStatus()\n {\n if ($this->responseStatus instanceof ResponseStatus) {\n header(sprintf('HTTP/1.1 %d %s', $this->responseStatus->httpStatusCode, $this->responseStatus->httpStatusMessage));\n }\n echo $this->body;\n }", "public function send()\n {\n $this->sendHeader(); // Insure headers are sent before sending content\n\n echo $this->content;\n }", "public function download()\n {\n $hashids = new Hashids(Configure::read('Security.salt'));\n $pk = $hashids->decode($this->request->query['i'])[0];\n $this->loadModel($this->request->query['m']);\n $data = $this->{$this->request->query['m']}->find('first', array(\n 'recursive' => -1,\n 'conditions' => array(\n \"{$this->request->query['m']}.\" . $this->{$this->request->query['m']}->primaryKey => $pk\n ),\n 'fields' => array(\n \"{$this->request->query['m']}.{$this->request->query['f']}\"\n )\n ));\n $file = json_decode($data[$this->request->query['m']][$this->request->query['f']], true);\n\n header('Content-length: ' . $file['size']);\n header('Content-type: ' . $file['type']);\n header('Content-Disposition: inline; filename=' . $file['name']);\n echo base64_decode($file['content']);\n\n die();\n }", "public function output(): string\n {\n $data = $this->data;\n\n // Render data\n ob_start();\n include $this->templateFile;\n $rendered = ob_get_clean();\n return $rendered;\n }", "public function send() {\n /** @var HeaderCollection $headers */\n $headers = Yii::$app->response->headers;\n $headers->removeAll();\n foreach ($this->getHeaders() as $_header => $lines) {\n $headers->add($_header, $this->getHeaderLine($_header));\n }\n Yii::$app->response->version = $this->getProtocolVersion();\n Yii::$app->response->statusCode = $this->getStatusCode();\n Yii::$app->response->statusText = $this->getReasonPhrase();\n Yii::$app->response->content = $this->getBody();\n\n Yii::$app->response->send();\n }", "public function downloadAction()\n {\n $pdf = $this->manager->get();\n\n // Generate response\n $response = new Response();\n\n // Set headers\n $response->headers->set('Cache-Control', 'private');\n $response->headers->set('Content-type', 'application/pdf');\n $response->headers->set('Content-Disposition', 'attachment; filename=\"'.basename($pdf).'\";');\n $response->headers->set('Content-length', filesize($pdf));\n\n // Send headers before outputting anything\n $response->sendHeaders();\n\n $response->setContent(file_get_contents($pdf));\n\n return $response;\n }", "public function downloadAction()\n\t{\n\t\t$settings = $this->getProgressParameters();\n\n\t\tif (!empty($settings['downloadParams']['filePath']) && !empty($settings['downloadParams']['fileName']))\n\t\t{\n\t\t\t$file = new Main\\IO\\File($settings['downloadParams']['filePath']);\n\t\t\tif ($file->isExists())\n\t\t\t{\n\t\t\t\t$response = new Main\\Engine\\Response\\File(\n\t\t\t\t\t$file->getPath(),\n\t\t\t\t\t$settings['downloadParams']['fileName'],\n\t\t\t\t\t$settings['downloadParams']['fileType']\n\t\t\t\t);\n\n\t\t\t\treturn $response;\n\t\t\t}\n\t\t}\n\n\t\t$this->addError(new Error('File not found'));\n\t}", "public function printResult() {\n $this->result->path = $this->getType() . 's/' . $this->getName() . '#tmp';\n\n // text/plain is used to support IE\n header('Cache-Control: no-cache');\n header('Content-Type: text/plain; charset=utf-8');\n\n print $this->getResult();\n }", "public function output()\n {\n $data = $this->model->data;\n $message = $this->model->message;\n require_once $this->model->template;\n }", "public static function dieFile($filePath, $outputFileName = '')\n {\n $fileName = $outputFileName !== '' ? $outputFileName : basename($filePath);\n\n header('Content-Description: File Transfer');\n header('Content-Type: application/octet-stream');\n header('Content-Disposition: attachment; filename=' . $fileName);\n header('Expires: 0');\n header('Cache-Control: must-revalidate');\n header('Pragma: public');\n header('Content-Length: ' . filesize($filePath));\n readfile($filePath);\n\n die(200);\n }", "function output($compress = true, $use_etag = true, $send_body = true)\n {\n $min_gz_size = 1024;\n $page = ob_get_contents();\n $length = strlen($page);\n ob_end_clean();\n \n if ($compress && extension_loaded('zlib') && (strlen($page) > $min_gz_size) && isset($GLOBALS['HTTP_SERVER_VARS']['HTTP_ACCEPT_ENCODING'])) {\n $ae = explode(',', str_replace(' ', '', $GLOBALS['HTTP_SERVER_VARS']['HTTP_ACCEPT_ENCODING']));\n $enc = false;\n if (in_array('gzip', $ae)) {\n $enc = 'gzip';\n } else if (in_array('x-gzip', $ae)) {\n $enc = 'x-gzip';\n }\n \n if ($enc) {\n $page = gzencode($page);\n $length = strlen($page);\n header('Content-Encoding: ' . $enc);\n header('Vary: Accept-Encoding');\n } else {\n $compress = false;\n }\n } else {\n $compress = false;\n }\n \n if ($use_etag) {\n $etag = '\"' . md5($page) . '\"';\n header('ETag: ' . $etag);\n if (isset($GLOBALS['HTTP_SERVER_VARS']['HTTP_IF_NONE_MATCH'])) {\n $inm = explode(',', $GLOBALS['HTTP_SERVER_VARS']['HTTP_IF_NONE_MATCH']);\n foreach ($inm as $i) {\n if (trim($i) == $etag) {\n header('HTTP/1.0 304 Not Modified');\n $send_body = false;\n break;\n }\n }\n }\n }\n \n if ($send_body) {\n header('Content-Length: ' . $length);\n echo $page;\n }\n }", "public function send() {\n\t\theader ( 'Content-Type: ' . $this->getContentType () );\n\t\t\n\t\techo $this->getContent ();\n\t}", "protected function write_output() {\n\t\t\tif ( null === $this->output_stream ) {\n\t\t\t\techo $this->output_string;\n\t\t\t} else {\n\t\t\t\tfwrite( $this->output_stream, $this->output_string );\n\t\t\t}\n\t\t\t$this->output_string = '';\n\t\t}", "public function export()\n {\n $filename = app(ExportHelpCenter::class)\n ->execute($this->request->get('format', 'json'));\n\n return response(file_get_contents($filename), 200, [\n 'Content-Type' => 'text/plain',\n 'Content-Disposition' => 'attachment; filename=\"hc-export.zip'\n ]);\n }", "public function output()\n\t{\n\t\t$template_path = THEMES_DIR.PAGE_PATH.'.html';\n\t\tif(!file_exists($template_path)) {\n\t\t\t// or the first file in the first existing path\n\t\t\t$existing_path = $this->first_realpath(THEMES_DIR, PAGE_PATH);\n\t\t\t$tpl_list = $this->list_files(THEMES_DIR . $existing_path, '*.html');\n\t\t\t$template_path = reset($tpl_list);\n\t\t}\n\t\t$content = file_get_contents($template_path);\n\t\t$content = $this->parse($content, false, true, 'template \"'.$template_path.'\"');\n\t\treturn $content;\n\t}", "public function getApiResponseFile(){\n\t\treturn fopen(\"output/API Response Status.txt\",\"w\");\n\t}", "public static function outputPage() {\n\t\tself::phpSetup();\n\t\t// Set the session\n global $clsession;\n $clsession =new SessionV4;\n //--------------------------------------------------------------\n // Exit if the web is closed for maintenance except\n // when the user is the master\n if( self::ISCLOSED && $_SESSION['usr'] != 'master' )\n exit(pageMaintenance::show());\n # --------------------------------------------------------------\n \t# Show the parameters entered with the request\n self::see();\n\t\tif( self::SEEPHPINFO ) phpinfo();\n\t\t# --------------------------------------------------------------\n\t\t# Reset the session if requested\n\t\tif( isset($_POST['reset']) && $_POST['reset'] == 'XRESET')\n\t\t\t$clsession->logout(sessionV4::NOACT);\n # --------------------------------------------------------------\n\t\t# Open the main class of the system\n\t\trequire_once('main.php');\n $clmain=new main;\n $s=$clmain->execute();\n $shses=(singleton::SHOWSESSION ? $clsession->getSession() : '');\n\t\treturn $s.$shses;\n\t}", "protected function OnOutput()\n\t{\n\t\t$vars = array('title' => $this->title, 'content' => $this->content,'user' => $this->user,'scripts' => $this->scripts,'categories' => $this->categories);\n\t\t$page = $this->Template('view/tpl_main.php', $vars);\n\t\techo $page;\n\t}", "final public function output(): void {\n\t\techo $this->html();\n\t}", "private function render() {\n header('Content-Type: text/html; charset=utf-8', TRUE);\n $view = \"{$this->method}_{$this->resource}\";\n if(file_exists(WEB.\"${view}.php\")) {\n ob_start();\n include ( WEB.\"${view}.php\");\n $response = ob_get_contents();\n ob_end_clean();\n } else {\n $status = HttpStatusCode::NOT_ACCEPTABLE;\n $content = 'No view found';\n $response = static::json();\n }\n\n return $response;\n }", "protected function header( $file_name ) {\n\t\t\tif ( null === $this->output_stream ) {\n\t\t\t\theader( 'Content-type: text/plain; charset=utf-8' );\n\t\t\t\theader( \"Content-Disposition: attachment; filename=wpda_$file_name.sql\" );\n\t\t\t\theader( 'Pragma: no-cache' );\n\t\t\t\theader( 'Expires: 0' );\n\t\t\t}\n\t\t}", "function write($filename)\n\t{\n\t\t// open, but do not truncate leaving data in place for others\n\t\t$fp = fopen($this->folder . $filename . '.html', 'c'); \n\t\tif ($fp === false) \n\t\t{\n error_log(\"Couldn't open \" . $filename . ' cache for updating!');\n }\n\t\t// exclusive lock, but don't block it so others can still read\n\t\tflock($fp, LOCK_EX | LOCK_NB); \n // truncate it now we've got our exclusive lock\n\t\tftruncate($fp, 0);\n\t\tfwrite($fp, ob_get_contents());\n\t\tflock($fp, LOCK_UN); // release lock\n\t\tfclose($fp);\n\t\t// finally send browser output\n\t\tob_end_flush();\n\t}", "public function downloadToFile($file)\n {\n $this->outputFilename = $file;\n }", "function getResponseBody(){\n $page = \"\";\n if ($this->fpopened===FALSE) return $page;\n while (!feof ($this->fpopened)) {\n $page .= fread ($this->fpopened, 1024);\n }\n return $page;\n }", "function tdc_send_file($file_path, $file_name){\n if (file_exists($file_path.\"/\".$file_name)) {\n header($_SERVER[\"SERVER_PROTOCOL\"] . \" 200 OK\");\n header(\"Cache-Control: public\"); // needed for i.e.\n header(\"Content-Type: application/zip\");\n header(\"Content-Transfer-Encoding: Binary\");\n header(\"Content-Length:\".filesize($file_path.\"/\".$file_name));\n header(\"Content-Disposition: attachment; filename=\".$file_name);\n readfile($file_path.\"/\".$file_name);\n return True;\n }\n}", "public function run()\r\r\n\t{\r\r\n\t\t// Make sure there are no attempts to hack the file system\r\r\n\t\tif (preg_match('@^\\.+@i', $this->strFile) || preg_match('@\\.+/@i', $this->strFile) || preg_match('@(://)+@i', $this->strFile))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 404 Not Found');\r\r\n\t\t\tdie('Invalid file name');\r\r\n\t\t}\r\r\n\r\r\n\t\t// Limit downloads to the tl_files directory\r\r\n\t\tif (!preg_match('@^' . preg_quote($GLOBALS['TL_CONFIG']['uploadPath'], '@') . '@i', $this->strFile))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 404 Not Found');\r\r\n\t\t\tdie('Invalid path');\r\r\n\t\t}\r\r\n\r\r\n\t\t// Check whether the file exists\r\r\n\t\tif (!file_exists(TL_ROOT . '/' . $this->strFile))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 404 Not Found');\r\r\n\t\t\tdie('File not found');\r\r\n\t\t}\r\r\n\r\r\n\t\t// Die if there is no token or if the tokens do not match\r\r\n\t\tif (!strlen($this->Input->get('token')) || !is_array($_SESSION['downloadToken']) || !in_array($this->Input->get('token'), $_SESSION['downloadToken']))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 403 Forbidden');\r\r\n\t\t\tdie('Invalid download token');\r\r\n\t\t}\r\r\n\r\r\n\t\t// Die if the file is not allowed\r\r\n\t\tif (!is_array($_SESSION['downloadFiles']) || !in_array($this->strFile, $_SESSION['downloadFiles']) || !preg_match('/^' . preg_quote($GLOBALS['TL_CONFIG']['uploadPath'], '/') . '\\//i', $this->strFile))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 403 Forbidden');\r\r\n\t\t\tdie(sprintf('Download of file \"%s\" is not allowed', $this->strFile));\r\r\n\t\t}\r\r\n\r\r\n\t\t$objFile = new File($this->strFile);\r\r\n\t\t$arrAllowedTypes = trimsplit(',', strtolower($GLOBALS['TL_CONFIG']['allowedDownload']));\r\r\n\r\r\n\t\tif (!in_array($objFile->extension, $arrAllowedTypes))\r\r\n\t\t{\r\r\n\t\t\theader('HTTP/1.0 403 Forbidden');\r\r\n\t\t\tdie(sprintf('File type \"%s\" is not allowed', $objFile->extension));\r\r\n\t\t}\r\r\n\r\r\n\t\t// Open the \"save as...\" dialogue\r\r\n\t\theader('Content-Type: ' . $objFile->mime);\r\r\n\t\theader('Content-Transfer-Encoding: binary');\r\r\n\t\theader('Content-Disposition: attachment; filename=\"'.$objFile->basename.'\"');\r\r\n\t\theader('Content-Length: '.$objFile->filesize);\r\r\n\t\theader('Cache-Control: must-revalidate, post-check=0, pre-check=0'); \r\r\n\t\theader('Pragma: public');\r\r\n\t\theader('Expires: 0');\r\r\n\r\r\n\t\t$resFile = fopen(TL_ROOT . '/' . $this->strFile, 'rb');\r\r\n\t\tfpassthru($resFile);\r\r\n\t\tfclose($resFile);\r\r\n\r\r\n\t\t// HOOK: post download callback\r\r\n\t\tif (array_key_exists('postDownload', $GLOBALS['TL_HOOKS']) && is_array($GLOBALS['TL_HOOKS']['postDownload']))\r\r\n\t\t{\r\r\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['postDownload'] as $callback)\r\r\n\t\t\t{\r\r\n\t\t\t\t$this->import($callback[0]);\r\r\n\t\t\t\t$this->$callback[0]->$callback[1]($this->strFile);\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\t}", "function downloadFile(){\n $file = basename($_GET['file']);\n $file = \"../temp/\".$file; \n if (!$file) { // file does not exist\n die('file not found');\n } else {\n header(\"Cache-Control: public\");\n header(\"Content-Description: File Transfer\");\n header(\"Content-Disposition: attachment; filename=$file\");\n header(\"Content-Type: application/txt\");\n header(\"Content-Transfer-Encoding: binary\");\n // read the file from disk\n readfile($file);\n }\n }", "public function output() {\n\t\tif (\\core\\Quantum::registry(\"application.output_display\") == \"true\") {\n\t\t\techo $this->document->getDocument();\n\t\t} else {\n\t\t\ttrace(\"Not displaying output as defined in project configuration\", $this);\n\t\t}\n\t}", "public function displayFile()\r\n {\r\n $filePath = $this->root.'/'.$this->route;\r\n \r\n if (!self::isFile($this->route)) {\r\n throw new Exception('The route is not a correct file.');\r\n }\r\n if (!file_exists($this->root.'/'.$this->route)) {\r\n throw new Exception('The file '.$filePath.' does not exists.');\r\n }\r\n \r\n echo file_get_contents($filePath);\r\n }" ]
[ "0.7589871", "0.74656993", "0.7374851", "0.73515546", "0.70269644", "0.6875979", "0.68403023", "0.6798319", "0.6770095", "0.66800004", "0.6676733", "0.666618", "0.6660265", "0.65708005", "0.64666605", "0.6411454", "0.6400285", "0.63420564", "0.63388956", "0.6320997", "0.6267782", "0.6255568", "0.6224456", "0.6216007", "0.61821616", "0.61651266", "0.6159999", "0.6138811", "0.61113966", "0.6095231", "0.60784155", "0.6026311", "0.601679", "0.6000679", "0.59883547", "0.5980703", "0.5962498", "0.5944712", "0.5937488", "0.5922168", "0.5897067", "0.5878013", "0.587323", "0.58480614", "0.58403516", "0.5837545", "0.58340126", "0.5824924", "0.5816735", "0.5816432", "0.5784791", "0.5782152", "0.57797647", "0.5776154", "0.5773381", "0.5733813", "0.5723121", "0.5715547", "0.5702118", "0.5695449", "0.56913424", "0.5689424", "0.56733006", "0.56679344", "0.565771", "0.5656333", "0.5648843", "0.5647358", "0.5640931", "0.5637756", "0.5633437", "0.5627247", "0.56203073", "0.56144774", "0.56120443", "0.5598755", "0.55943143", "0.5590981", "0.5588367", "0.5582384", "0.5580686", "0.5579887", "0.5574685", "0.5571655", "0.5571601", "0.5569968", "0.55673087", "0.5564568", "0.55625695", "0.5556903", "0.5550156", "0.55337656", "0.5532512", "0.55321175", "0.5513054", "0.5505942", "0.5504636", "0.5502278", "0.5501331", "0.5499517" ]
0.5638829
69
Display a listing of the resource.
public function index() { $categories=category::get_all(); return view('admin.category.index',compact('categories')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { return view('admin.category.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $data=$request->all(); if($request->file('img')!= null){ $path; if(request()->file('img')->isValid()){ $path = $request->file('img')->storeAs('public', time().'.jpg'); $img_name=str_replace('public/', '', $path); if(empty($path)){ return response()->json([],400); } } category::category_insert($data['name'],$data['description'],$img_name); return redirect('/admin/categories/index'); } return Redirect::back()->withErrors('The image input must not be empty'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function show(Category $category,$id) { $id=$request['id']; $category=category::get($id); return view('admin.category.show',compact('$category')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit(Category $category,$id) { $category=Category::get($id); return view('admin.category.update',compact('category')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request) { $id=$request['id']; $data=$request->all(); if($request->file('img')!= null){ $path; if(request()->file('img')->isValid()){ $path = $request->file('img')->storeAs('public', time().'.jpg'); $img_name=str_replace('public/', '', $path); if(empty($path)){ return response()->json([],400); } } category::category_update($id,$data['name'],$img_name); } else { $category=Category::get($id); category::category_update($id,$data['name'],$category->image); } return redirect('/admin/categories/index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy(Category $category) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
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 }", "function ccategories_create()\n\t{\n\t\tlusers_require(\"categories/create\");\n\n\t\t$post_data = linput_post();\n\t\t$post_data = linput_post_checkbox($post_data, \"content\");\n\t\t$content = $post_data[\"content\"];\n\n\t\tif (hform_validate(array(\"name\", \"link\", \"parentid\")))\n\t\t{\n\t\t\t$cat_created = mcategories_create($post_data);\n\t\t\tif ($content) $content_created = mcontent_create($post_data);\n\t\t\telse $content_created = false;\n\n\t\t\tif (($cat_created && !$content) || ($content && $cat_created && $content_created))\n\t\t\t{\n\t\t\t\tlcache_delete_all();\n\t\t\t\thmessage_set(l(\"Category successfully created.\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ($cat_created) mcategories_delete($post_data[\"link\"]);\n\t\t\t\tif ($content_created) mcontent_delete($post_data[\"link\"]);\n\t\t\t\thmessage_set(l(\"Category create error.\") . \" \" . l(\"Link already in use.\"));\n\t\t\t}\n\n\t\t\tluri_redirect(\"main/user/admin/categories\");\n\t\t}\n\t\telse luri_redirect(\"main/user/admin/categories_create\", l(\"All fields marked with * are required.\"));\n\t}", "private function isUserCategoryExists($ucat_name) {\n\t\t$stmt = $this->conn->prepare(\"SELECT ucat_name from user_category WHERE ucat_name = ? and (status=1 or status=2) \");\n $stmt->bind_param(\"s\", $ucat_name);\n $stmt->execute();\n\t\t$stmt->store_result();\n $num_rows = $stmt->num_rows;\n $stmt->close();\n return !($num_rows == 0); //if no any user number of rows ==0; then get negative of it to send false\n }", "public function testCreateAndFindCategory()\n\t{\n $user = factory(User::class)->create();\n Passport::actingAs($user);\n\n\t\t$array_category = array(\n\t\t 'user_id' => $user->id,\n\t\t\t'name' => 'Temporal'\n\t\t);\n\n\t\t$category = factory(Category::class)->create($array_category);\n\n\t\t$response = $this->get('api/categories/' . $category->id);\n\n\t\t$response->assertStatus(200);\n\t\t$this->assertDatabaseHas('categories', $array_category);\n\t}", "public function save()\n {\n $error = true;\n\n // Save the not language specific part\n $pre_save_category = new self($this->category_id, $this->clang_id);\n\n if (0 === $this->category_id || $pre_save_category !== $this) {\n $query = rex::getTablePrefix() .'d2u_linkbox_categories SET '\n .\"name = '\". addslashes($this->name) .\"' \";\n\n if (0 === $this->category_id) {\n $query = 'INSERT INTO '. $query;\n } else {\n $query = 'UPDATE '. $query .' WHERE category_id = '. $this->category_id;\n }\n $result = rex_sql::factory();\n $result->setQuery($query);\n if (0 === $this->category_id) {\n $this->category_id = (int) $result->getLastId();\n $error = !$result->hasError();\n }\n }\n\n return $error;\n }", "function insert_categories($categories_name) {\n $data = array(\n 'name' => $categories_name\n );\n $this->db->insert('category', $data);\n return ($this->db->affected_rows() != 1 ) ? false : true;\n }", "function categoryAssociationExists($monographId, $categoryId) {\n\t\t$result = $this->retrieve(\n\t\t\t'SELECT COUNT(*) FROM submission_categories WHERE submission_id = ? AND category_id = ?',\n\t\t\tarray((int) $monographId, (int) $categoryId)\n\t\t);\n\t\t$returner = isset($result->fields[0]) && $result->fields[0] == 1 ? true : false;\n\n\t\t$result->Close();\n\t\treturn $returner;\n\t}", "public function exists($name){\nreturn $this->db->query('select count(*) from categories where name=?', array($name))->fetch()['count(*)'];\n}", "public function isValidCat($cat){\r\n \treturn isset($this->categories[$cat]); \r\n\t}", "public function testCreatesCategorySuccess()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/admin/category/create')\n ->type('name','Category News')\n ->press('Submit')\n ->assertPathIs('/admin/category')\n ->assertSee('Create Success');\n });\n $this->assertDatabaseHas('categories', ['name' => 'Category News']);\n }", "function category_exists($cat_name, $category_parent = \\null)\n {\n }", "public function hasCategories()\n {\n return !empty($this->categories);\n }", "public function checkCategoryExist($ssCategory)\n {\n try\n {\n return Doctrine_Query::create()\n ->select(\"MU.*\")\n ->from(\"Model_Category MU\")\n ->where(\"MU.category_name =?\",$ssCategory)\n ->fetchArray();\n }\n catch( Exception $e )\n {\n echo $e->getMessage();\n return false;\n }\n }", "function client_portal_categorized_blog() {\n\n\t$category_count = get_transient( 'client_portal_categories' );\n\n\tif ( false === $category_count ) {\n\n\t\t$category_count_query = get_categories(\n\t\t\tarray(\n\t\t\t\t'fields' => 'count',\n\t\t\t)\n\t\t);\n\n\t\t$category_count = (int) $category_count_query[0];\n\n\t\tset_transient( 'client_portal_categories', $category_count );\n\t}\n\n\treturn $category_count > 1;\n}", "public function isCategoryPage();", "public function categories_is_required()\n {\n $user = User::factory()->create();\n\n $entry = array_filter(Entry::factory()->raw([\n 'category_id' => null,\n 'user_id' => null\n ]));\n\n Sanctum::actingAs($user, ['entries:create']);\n\n $this->jsonApi()->withData([\n 'type' => 'entries',\n 'attributes' => $entry,\n 'relationships' => [\n 'authors' => [\n 'data' => [\n 'id' => $user->getRouteKey(),\n 'type' => 'authors'\n ]\n ],\n ]\n ])->post(route('api.v1.entries.create'))\n ->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY)//422\n ->assertJsonFragment(['source' => ['pointer' => '/data']]);\n\n $this->assertDatabaseMissing('entries', $entry);\n }", "public function isCategory($category): bool;", "public function created(Category $category)\n {\n //\n }", "public function addPost(){\n\n if ($this->input->post(\"category_create\") === null){\n $this->view->redirect(\"/categories/manage\");\n }\n\n if (!$this->auth->isLogged()) {\n $this->view->redirect(\"/user/login\", \"You can not add new categories if you are not logged in!\");\n }\n\n if (!$this->auth->isInRole(\"admin\")) {\n $this->view->redirect(\"/user/login\", \"You can not manage categories if you are not Admin!\");\n }\n\n $categoryName = $this->input->post(\"category_name\");\n\n $this->validate->setRule(\"minlength\",$categoryName,3, \"Category name length must be more then 3 symbols!\");\n\n if ($this->validate->validate() === false){\n $error = $this->validate->getErrors();\n $this->view->redirect(\"/categories/manage\",$error);\n }\n\n $categoryModel = new CategoriesModel();\n try{\n if ($categoryModel->hasCategory($categoryName)){\n $this->view->redirect(\"/categories/manage\",\"This categories already exist!\");\n }\n\n if($categoryModel->addNewCategory($categoryName)){\n $this->view->redirect(\"/categories/manage\",\"Category created successfully!\",\"success\");\n }\n }catch (\\Exception $exception){\n $this->view->redirect(\"/categories/manage\",$exception);\n }\n }", "public function insert_category($category){\n\n\t\t mysql_query(\"INSERT INTO `categories` SET `cat` = '$category'\");\n\n\t\t\treturn true;\n\n\t}", "public function add_post()\n {\n $input = $this->input->post();\n $user=$this->session->userdata('uid');\n $data=$this->Category_model->insertData($input,$user);\n if($data==1)\n $this->response('Category information added.', REST_Controller::HTTP_CREATED);\n else\n $this->response('Category already present!', REST_Controller::HTTP_OK);\n }", "function ppo_categorized_blog() {\n if (false === ( $all_the_cool_cats = get_transient('ppo_category_count') )) {\n // Create an array of all the categories that are attached to posts\n $all_the_cool_cats = get_categories(array(\n 'hide_empty' => 1,\n ));\n\n // Count the number of categories that are attached to the posts\n $all_the_cool_cats = count($all_the_cool_cats);\n\n set_transient('ppo_category_count', $all_the_cool_cats);\n }\n\n if (1 !== (int) $all_the_cool_cats) {\n // This blog has more than 1 category so ppo_categorized_blog should return true\n return true;\n } else {\n // This blog has only 1 category so ppo_categorized_blog should return false\n return false;\n }\n}", "public function checkcategoryid($id){\n\t\t$this->db->where('CategoryId', $id);\n\t\t$result=$this->db->get('tbl_category');\n\t\tif($result->num_rows()==1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public function hasCategories() {\n return $this->_has(16);\n }", "private function check_category_taxonomy($category_name){\n\t\t$query = $this->db->prepare(\"SELECT count(`taxonomy_id`) FROM `nw_taxonomy` WHERE `taxonomy_value` = ?\");\n\t\t$query->bindValue(1, $category_name);\n\n\t\ttry{\n\t\t\t$query->execute();\n\t\t\t$rows = $query->fetchColumn();\n\n\t\t\tif($rows == 0){\n\t\t\t\treturn true;\n\t\t\t}else if($rows >= 1){\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t}catch(PDOException $e){\n\t\t\tdie($e ->getMessage());\n\t\t}\n\t}", "protected function _initCategory()\n {\n $category = $this->request->getPostValue('category');\n if (!$category) {\n return false;\n }\n\n try {\n $category = $this->categoryFactory->create()->loadByAttribute('url_key',$category);\n } catch (NoSuchEntityException $e) {\n return false;\n }\n\n $category->setStoreId($this->_storeManager->getStore()->getId());\n return $category;\n }", "public function checkCategory($categoryText)\n {\n $categoryID = $this->getCategoryID($categoryText);\n\n if ($categoryID == false) {\n $categoryID = $this->createCategory($categoryText);\n }\n return $categoryID;\n }", "public function testCreateAndDeleteCategory()\n\t{\n $user = factory(User::class)->create();\n Passport::actingAs($user);\n\n $array_category = array(\n 'user_id' => $user->id,\n\t\t\t'name' => 'Temporal'\n\t\t);\n\n\t\t$category = factory(Category::class)->create($array_category);\n\t\t$this->assertDatabaseHas('categories', $array_category);\n\n\t\t$response = $this->delete('api/categories/' . $category->id);\n\t\t$response->assertStatus(201);\n\t\t$this->assertDatabaseMissing('categories', $array_category);\n\t}", "public function created(Category $category)\n {\n //\n }", "public function created(Category $category)\n {\n //\n }", "function isCategoryExist($categoryName)\n {\n $allCategories = $this->data->getAllCategories();\n while ($category = $allCategories->fetch_assoc())\n {\n if ($category['CategoryName'] == $categoryName)\n {\n return true;\n }\n }\n return false;\n }", "public function isValidCategory($id){\n\n $query = 'SELECT * FROM '.$this->table.' WHERE id = :id';\n $stmt = $this->conn->prepare($query);\n $stmt->bindValue(':id', $id, PDO::PARAM_STR);\n\n $stmt->execute();\n $result=$stmt->fetch(PDO::FETCH_ASSOC);\n if ($result) {\n return true;\n } else {\n return false;\n }\n }", "function is_new_category_allowed($parent_category){\n\t$max_depth = Modules::Run('site_settings/get_max_category_depth');\n\t// get current category depth\n\t$current_depth = $this->get_category_depth($parent_category);\n\t// figure out if a new category is allowed\n\tif ($current_depth < $max_depth){\n\t\treturn TRUE;\n\t} else {\n\t\treturn FALSE;\n\t}\n\n}", "public function testCategoryData(){\n\n $count = Category::all()->count();\n $this->assertEquals($count, 3);\n $this->assertDatabaseHas('categories', ['titulo' => 'Minería Windows']);\n $this->assertDatabaseHas('categories', ['titulo' => 'Minería Linux']);\n $this->assertDatabaseHas('categories', ['titulo' => 'Minería IOS']);\n }", "public function testSuccessAddCategory()\n {\n $categoryName = 'New category' ;\n $service = $this->app->make(CategoryServiceInterface::class);\n $new = $service->save(null, $categoryName);\n\n $this->assertInstanceOf(Model::class, $new);\n $this->assertDatabaseHas('categories', [\n 'name' => $categoryName\n ]);\n }", "public function beforeDelete()\n {\n if (!parent::beforeDelete()) {\n return false;\n }\n switch ($this->type) {\n case ModelRegistry::TRANSACTION:\n Transaction::updateAll(\n ['category_id' => null],\n ['category_id' => $this->id]\n );\n break;\n case ModelRegistry::PRODUCT:\n Product::updateAll(\n ['category_id' => null],\n ['category_id' => $this->id]\n );\n break;\n default:\n throw new Exception('invalid category type : ' . $this->type);\n }\n return true;\n }", "public function add($category_id) {\n\n $query = \"INSERT INTO agrishop__production_categories (category, farm)\n VALUES ( ? , ? );\";\n\n $options = [ 'types' => ['ii'], 'params' => [$category_id, Session::get('id')] ];\n\n $this->db->directQuery($query, $options);\n\n return ($this->db->getAffectedNum() === 1);\n\n }", "function prepareCategoriesTable() {\n $engine = defined('DB_CAN_TRANSACT') && DB_CAN_TRANSACT ? 'InnoDB' : 'MyISAM';\n\n try {\n $project_objects_table = TABLE_PREFIX . 'project_objects';\n\n DB::execute(\"CREATE TABLE \" . TABLE_PREFIX . \"categories (\n id int(11) unsigned NOT NULL auto_increment,\n type varchar(50) NOT NULL default 'Category',\n parent_type varchar(50) default NULL,\n parent_id int(10) unsigned default NULL,\n name varchar(100) NOT NULL default '',\n created_on datetime default NULL,\n created_by_id int(10) unsigned NOT NULL default '0',\n created_by_name varchar(100) default NULL,\n created_by_email varchar(150) default NULL,\n PRIMARY KEY (id),\n KEY parent (parent_type,parent_id),\n KEY type (type)\n ) ENGINE=$engine DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci\");\n\n DB::execute(\"ALTER TABLE $project_objects_table ADD category_id int UNSIGNED NULL DEFAULT NULL AFTER parent_type\");\n DB::execute(\"ALTER TABLE $project_objects_table ADD INDEX category_id (category_id)\");\n\n // Category creation should not be displayed in activity log\n DB::execute('DELETE FROM ' . TABLE_PREFIX . 'activity_logs WHERE type = ? AND parent_type = ?', 'ObjectCreatedActivityLog', 'category');\n } catch(Exception $e) {\n return $e->getMessage();\n } // try\n\n return true;\n }", "public function store(Request $request)\n {\n\n $categoryCheck = category::where('categoryname', $request->categoryname)->first();\n\n if ($categoryCheck == null) {\n category::create(['categoryname' => $request->categoryname]);\n $request->session()->flash('success', 'Add category success fully');\n return redirect()->action('CategoryController@index');\n } else {\n $request->session()->flash('danger', 'category has already exit');\n return redirect()->action('CategoryController@index');\n }\n //\n }", "private function categories()\n\t{\n\t\t$categories = ORM::factory('forum_cat')->find_all();\n\t\tif(0 == $categories->count())\n\t\t\treturn FALSE;\n\t\t\t\n\t\treturn $categories;\n\t}", "public function thisTopicWasAlreadyExisted():bool\n {\n \t$column = $this->topic->getColumn();\n\t\t$tableName = $this->topic->getTableName();\n\t\t$columIdSubCat = 'id_sub_category';\n\n\t\t$is_exist = (int)(new Requestor())->getContentWith2Where('id', 'f_topics', 'content', $this->topic->getContent(), 'id_sub_category', $this->topic->getIdSubCategory());\n\n\t\tif ($is_exist > 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n }", "function check_category_code($category_code){\n\t\t\tif($this->db->get_where('category',array('code'=>$category_code))->num_rows()>0 ){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "function categoryCheck($cond = array())\n\t{\n\t\t$select = 'addoncategory_id';\n\t\treturn $this->CI->AdminModel->getCondSelectedData($cond,$select,$this->tableName);\n\t}", "private function runCategory()\n {\n $num = (int) $this->ask('How many records do you want to create for the categories table?');\n factory(Category::class, $num)->create();\n }", "public function add_attr_cat()\n\t{\n\t\t$rest_id=$this->session->userdata('user_rest_uns');\n\t\t$cat_name=$this->input->post('cat_name');\n\t\t$query=$this->db->insert(\"food_attribute\",array(\"f_att_name\"=>$cat_name,\"rest_id\"=>$rest_id));\n\t\t\n\t\tif($query)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "function canCreate() {\r\n\t\treturn !DataObject::get_one($this->class);\r\n\t}", "public function testCategoriesAreListed()\n {\n $category = factory(Category::class)->create();\n\n $this->actingAs(factory(User::class)->states('admin')->create())\n ->get('categories')\n ->assertSuccessful()\n ->assertSee($category->name);\n }", "public function validCategory($data) {\n $categories = $this->categories();\n return array_key_exists(current($data), $categories);\n }", "public function testCategoriesMinimal()\n {\n $category = CertificateCategory::create([\n 'name' => 'TestNaam'\n ]);\n\n $this->assertDatabaseHas('certificate_categories', [\n 'id' => $category->id,\n 'slug' => 'testnaam',\n 'name' => 'TestNaam',\n 'name_short' => null,\n 'description' => null,\n 'default_expire_years' => null,\n 'is_required' => false\n ]);\n\n $found = CertificateCategory::find($category->id);\n\n $this->assertEquals($category->name, $found->name);\n $this->assertEquals('TestNaam', $category->name_short);\n $this->assertEquals('TestNaam', $found->name_short);\n }", "public function addCategory($category_name){\n\n $check_sql=\"SELECT * FROM categories WHERE category_name='$category_name'\";\n $result_check=$this->conn->query($check_sql);\n\n if($result_check->num_rows>0){\n header(\"location:categories.php?success=0&message=The Category name is already in the table.\");\n }elseif(!empty($category_name)){\n $sql=\"INSERT INTO categories (`category_name`)VALUES('$category_name')\";\n $result=$this->conn->query($sql);\n\n if($result==TRUE){\n header(\"location:categories.php?success=1&message=The category was successfuly created\");\n }else{\n header(\"location:categories.php?success=0&message=Kindly try it again.\");\n }\n }\n }", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('catalog/categories');\n }", "public function addcategory($args)\n {\n if (!SecurityUtil::checkPermission('Dizkus::', \"::\", ACCESS_ADMIN)) {\n return LogUtil::registerPermissionError();\n }\n \n if (isset($args['cat_title'])) {\n $args['cat_order'] = DBUtil::selectObjectCount('dizkus_categories') + 1;\n $obj = DBUtil::insertObject($args, 'dizkus_categories', 'cat_id');\n return $obj['cat_id'];\n }\n \n return false;\n }", "public function validateCatalogEvents()\n {\n // instead of generic (we are capped by allowed store groups root categories)\n // check whether attempting to create event for wrong category\n if (self::ACTION_NEW === $this->getActionName()) {\n $categoryId = $this->_request->getParam('category_id');\n if (!$categoryId) {\n $this->_forward();\n return;\n }\n\n try {\n $category = $this->categoryRepository->get($categoryId);\n } catch (NoSuchEntityException $e) {\n $this->_forward();\n return;\n }\n\n if (!$this->_isCategoryAllowed($category) || !$this->_role->getIsWebsiteLevel()) {\n $this->_forward();\n return;\n }\n }\n }", "function createCategories($pg, $categoriesList){\n\t\t$cats = array();\n\t\tforeach($categoriesList as $cat){\n\t\t\tif($cat != 'None'){\n\t\t\t\t$pc = new ProjectCategory($pg);\n\t\t\t\tif ($pc){\n\t\t\t\t\tif (!$pc->create($cat)) {\n\t\t\t\t\t\tdb_rollback();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$cats[$cat] = $pc->getID();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$cats['None'] = 100;\n\t\t\t}\n\t\t}\n\t\treturn $cats;\n\t}", "public function addCategory($data)\n {\n $item=array(\n 'name'=>$data['name']\n );\n\n $this->db->insert('defect_categories',$item);\n return true;\n }", "public function createCategory($categoryText)\n {\n $sqlQuery = \"INSERT INTO categories (categoryText) values (:categoryText)\";\n\n if ($stmt = $this->dbHandle->prepare($sqlQuery)) {\n // Bind variables to the prepared statement as parameters\n $stmt->bindParam(\":categoryText\", $param_categoryText, PDO::PARAM_STR);\n\n // Set parameters\n $param_categoryText = trim($categoryText);\n\n // Attempt to execute the prepared statement\n if ($stmt->execute()) {\n $result = $this->getCategoryID($categoryText);\n return $result;\n } else {\n return false;\n }\n } else {\n return false;\n }\n // Close statement\n unset($stmt);\n // Close connection\n unset($pdo);\n }", "function store()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n\r\n $db->begin( );\r\n\r\n $name = $db->escapeString( $this->Name );\r\n $description = $db->escapeString( $this->Description );\r\n\r\n if ( !isset( $this->ID ) )\r\n {\r\n $db->lock( \"eZImageCatalogue_Category\" );\r\n\r\n $this->ID = $db->nextID( \"eZImageCatalogue_Category\", \"ID\" );\r\n\r\n $db->query( \"INSERT INTO eZImageCatalogue_Category\r\n ( ID, Name, Description, UserID, ParentID, SectionID ) VALUES\r\n ( '$this->ID', '$name', '$description', '$this->UserID', '$this->ParentID', '$this->SectionID' )\" );\r\n $db->unlock();\r\n }\r\n else\r\n {\r\n $db->query( \"UPDATE eZImageCatalogue_Category SET\r\n Name='$name',\r\n Description='$description',\r\n UserID='$this->UserID',\r\n ParentID='$this->ParentID',\r\n SectionID='$this->SectionID' WHERE ID='$this->ID'\" );\r\n }\r\n\r\n\r\n if ( $dbError == true )\r\n $db->rollback( );\r\n else\r\n $db->commit();\r\n\r\n\r\n return true;\r\n }", "public function categoryExists($categoryID) {\n\t\t$this->load->model('BreweriesModel', '', true);\n\t\t// get the brewery information\n\t\t$rs = $this->BreweriesModel->getCategoryCheck($categoryID);\n\t\t// check if it really exists\n\t\t$boolean = count($rs) > 0 ? true : false;\n\t\t// check the boolean\n\t\tif($boolean === false) {\n\t\t\t$this->form_validation->set_message('categoryExists', 'The %s you have chosen doesn\\'t exists. Please choose another.');\n\t\t}\n\t\treturn $boolean;\n\t}", "function addPostCategory(){\n\t\t$this->check_permission();\n\t \t\n\t\t\n\t \t$this->load->library('form_validation');\n\t\t$this->form_validation->set_rules('category_parent_id','Category','is_unique[tbl_category.category_title]|required');\n\t\t$this->form_validation->set_rules('category_title','Category Title','is_unique[tbl_category.category_title]|required');\n\t\t\n\t\tif($this->form_validation->run()) \n { \n $params = array(\n\t\t\t\t'display_in_menu' => $this->input->post('display_in_menu'),\n\t\t\t\t'category_parent_id' => $this->input->post('category_parent_id'),\n\t\t\t\t'category_title' => $this->input->post('category_title'),\n\t\t\t\t'status' => $this->input->post('status'),\n\t\t\t\t'createdby' => $this->session->userdata('id'),\n\t\t\t\t'createdon' => date_timestamp_get(date_create()),\n );\n \n $category_id = $this->Post_model->insert_data('tbl_post_category',$params);\n if($category_id){\n\t\t\t$this->session->set_flashdata('msg', '<div class=\"alert alert-success\">record Added!</div>');\n\t\t\tredirect('secure/post/addpostcategory');\n\t\t\t}\n }\n else\n {\t\t\t$data['all_categorylist'] = $this->Post_model->get_post_categorylist();\n \n \n\t\t\t$this->render_template('secure/post/addPostCategory',$data);\n }\n\t}", "public function test_admin_user_can_add_category_test()\n {\n $this->factory\n ->createCategory()\n ->createUser()\n ->signIn($this);\n\n $attribute = [\n 'name' => 'Test Category'\n ];\n\n $response = $this->post('api/category', $attribute);\n\n $response->assertOk();\n\n $this->assertEquals('Test Category', $response->getOriginalContent()['data']['category']['name']);\n }", "function addCategory()\r\n{\r\n global $conn;\r\n global $_POST;\r\n \r\n \r\n if(isset($_POST[\"cat_name\"]) && $_POST[\"cat_name\"]<>''){ \r\n \r\n\t $catname = $_POST[\"cat_name\"];\r\n\t \r\n\t $sqlquery = \"select * from tbl_categories where cat_name= '$catname'\";\r\n\t \r\n\t $result = mysql_query($sqlquery,$conn) or die(mysql_error());\r\n\t if(mysql_num_rows($result) >0){\r\n\t \t$str = \"Data Already Exists\";\r\n\t }else{\r\n\t $sql = \"insert into `tbl_categories` (`cat_name`, `cat_description`) \r\n\t \t\t\tvalues (\" . strtoupper(sqlvalue(@$_POST[\"cat_name\"], true)).\", \" . strtoupper(sqlvalue(@$_POST[\"cat_description\"], true)).\")\";\r\n\t //echo \"SQL :\".$sql;\r\n \tmysql_query($sql, $conn) or die(mysql_error());\r\n\t \tif(mysql_affected_rows()>0){\r\n\t \t\t$str = \"Record Added Successfully\";\r\n\t \t}\r\n\t }\r\n }else{\r\n \t\t$str = \"Wrong Data Entry \";\r\n }\r\n echo $str;\r\n}", "public function add_new_category_post(){\n $data = $this->security->xss_clean($_POST);\n $data = $this->DeviceCategory_model->add_new_category($data);\n if (isset($data['status']) == 'FALSE')\n {\n $this->response($data, REST_Controller::HTTP_SEE_OTHER);\n }\n $this->set_response($data, REST_Controller::HTTP_CREATED);\n }", "public function new_category() {\n\t\t$this->use_layout=false;\n\t\t$cat = new CmsCategory;\n\t\t$cat->name = Request::get(\"cat\");\n\t\t$cat->save();\n\t\tif(!$this->all_categories = $cat->clear()->all()) $this->all_categories=array();\t\t\n\t\t$this->cat_list = $this->render_partial(\"cat_list\");\t\n\t}", "function insertName($data){\n \n if ($this->db->insert('category', $data)) {\n \n return true;\n } else {\n \n return false;\n }\n }", "function have_category() {\n global $categories_index, $discussion, $categories, $categories_count;\n\n $categories_count = count(get_categories());\n $categories = get_categories();\n\n if ($categories && $categories_index + 1 <= $categories_count) {\n $categories_index++;\n return true;\n } else {\n $categories_count = 0;\n return false;\n }\n}", "function IsCategoryByName($Name) {\n\n\t\tUnset($CategoryID);\n\n\t\t$sql = \"-- \" . __FILE__ . '::' . __FUNCTION__ . \"\\n\" . \"SELECT id FROM categories where name = $1\";\n\n\t\tif ($this->Debug) echo \"sql = '$sql'<br>\";\n\n\t\t$result = pg_query_params($this->dbh, $sql, array($Name));\n\t\tif ($result) {\n\t\t\t$numrows = pg_num_rows($result);\n\t\t\tif ($numrows == 1) {\n\t\t\t\t$myrow = pg_fetch_array ($result, 0);\n\t\t\t\t$CategoryID = $myrow['id'];\n\t\t\t}\n\t\t}\n\n\t\treturn $CategoryID;\n\t}", "function insertCategoryForUser($userID, $categoryName)\n{\n\n $dbconfigs = include('../config.db.php');\n\n $db = mysqli_connect($dbconfigs->hostname, $dbconfigs->username, $dbconfigs->password, $dbconfigs->database);\n if (!$db) {\n die(\"Connection failed: \" . mysqli_connect_error());\n }\n\n $checkQuery = \"SELECT category, status FROM category WHERE category = '\" . $categoryName . \"' AND userId = '\" . $userID . \"'\";\n $result = mysqli_query($db, $checkQuery);\n\n $row = mysqli_fetch_array($result);\n $fcats = $row['category'];\n $fcstatus = $row['status'];\n\n $check_count = mysqli_num_rows($result);\n\n if ($check_count > 0 && $fcstatus == 'ACTIVE') {\n return 2;\n } else if ($check_count > 0 && $fcstatus == 'DELETED') {\n $updatecat = \"UPDATE category SET status='ACTIVE' WHERE category='$fcats'\";\n mysqli_query($db, $updatecat);\n return 1;\n } else if ($check_count == 0) {\n $insertCat = \"INSERT INTO category VALUES (NULL, '\" . $categoryName . \"', \" . $userID . \", 'ACTIVE')\";\n mysqli_query($db, $insertCat);\n return 1;\n }\n\n mysqli_close($db);\n}", "public function isCategory( $name ) {\n $query = $this->db->query( \"SELECT DISTINCT category_id FROM \" . DB_PREFIX . \"category_description WHERE name = '\" . $name . \"'\" );\n\n return $query->row;\n }", "public function category()\n { \n if($this->access_role->is_Admin() == false) show_404();\n $this->load->model('Category_Model');\n \n if($_SERVER['REQUEST_METHOD'] == 'POST')\n {\n if($this->form_validation->run('category_insert') ){\n $this->Category_Model->add_category(); \n } else {\n $error = ['class'=>'warning','text'=> validation_errors()];\n $this->session->set_flashdata('sms_flash', $error); \n redirect('Dashboard/category');\n }\n } \n else{\n $data = $this->Category_Model->view_category();\n }\n \n $this->load->view('admin/category_content',$data);\n }", "public function testCategoriesFull() {\n $category = CertificateCategory::create([\n 'name' => 'TestNaam Full',\n 'name_short' => 'Naam Full',\n 'description' => 'Een volledig ingevuld CertificateCategory',\n 'default_expire_years' => 4,\n 'is_required' => true\n ]);\n\n $this->assertEquals('Naam Full', $category->name_short);\n\n $this->assertDatabaseHas('certificate_categories', [\n 'name' => 'TestNaam Full',\n 'name_short' => 'Naam Full',\n 'slug' => 'naam-full',\n 'description' => 'Een volledig ingevuld CertificateCategory',\n 'default_expire_years' => 4,\n 'is_required' => true\n ]);\n }", "public function testPost()\n {\n try {\n $category = factory(Category::class)->create();\n } catch (\\Exception $e) {\n $this->assertTrue(false);\n }\n\n /**\n * |-------------------------------------------\n * | Creation of an post\n * |-------------------------------------------\n */\n try {\n factory(Post::class)->create([\n 'category_id' => $category->id\n ]);\n } catch (\\Exception $e) {\n $this->assertTrue(false);\n }\n\n $this->assertEquals($category->name, (Post::find(1)->category)->name);\n\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.6240048", "0.62296855", "0.61866593", "0.6185461", "0.61742026", "0.61741483", "0.61486924", "0.61450374", "0.6140251", "0.61396587", "0.6130881", "0.61234576", "0.6123279", "0.611915", "0.61141056", "0.61140454", "0.61074644", "0.6100881", "0.60998476", "0.60709476", "0.6070627", "0.60700613", "0.6069456", "0.6066567", "0.6061467", "0.6043345", "0.6037408", "0.6011658", "0.6011658", "0.6010577", "0.6010419", "0.60056627", "0.59971523", "0.59890884", "0.5985442", "0.59834933", "0.5982154", "0.59743404", "0.5972502", "0.596881", "0.5963581", "0.5955904", "0.59555185", "0.59530693", "0.59272945", "0.59165746", "0.59058243", "0.59057957", "0.5905016", "0.5897849", "0.58972526", "0.589194", "0.58862287", "0.58763796", "0.5870898", "0.5870396", "0.5869118", "0.58653057", "0.5861131", "0.58611155", "0.58545345", "0.58503234", "0.58442515", "0.5843352", "0.58368224", "0.5836713", "0.5836543", "0.583628", "0.5834621", "0.58296984" ]
0.8032583
0
Get sender email name
public function getEmailSenderName() { $from = $this->scopeConfig->getValue( self::XML_ADMIN_EMAIL_SENDER, ScopeInterface::SCOPE_STORE ); $result = $this->helperData->getSenderResolver()->resolve($from); return $result['name']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getSenderEmailName() {}", "protected function getSenderEmailName() {}", "public function getSender()\n {\n return strtolower($this->getFrom()->getEmail());\n }", "public function getSenderName()\n {\n return $this->get(self::_SENDER_NAME);\n }", "protected function getSenderEmailAddress() {}", "protected function getSenderEmailAddress() {}", "public function getEmailFromName() { return $this->_emailFromName; }", "function getSender(){\n $return = \"\";\n if( $this->FromName != \"\" ) $return .= $this->FromName.\" (\";\n $return .= $this->From;\n if( $this->FromName != \"\" ) $return .= \")\";\n return $return;\n }", "public function getMailFromName() {\n return $this->mailFromName;\n }", "private function retrieveSender() : string {\n\n // Get min & max length of the whole sender information\n $senderInformationLength = $this->getSenderInformationLength();\n\n // Retrieve the sender information from email with regex\n $sender = $this->retrieveInformation($this->currentEmail, [\n self::REGEX_NEEDLE_START_SENDER,\n \".{\" . $senderInformationLength[\"min\"] . \",\" . $senderInformationLength[\"max\"] . \"}\"\n ], true,\"Sender information\",\n self::ATTRIBUTE_RETRIEVAL_SOURCE_NAME, true, 0);\n\n // Return sender information without whitespaces at end and beginning\n return trim($sender);\n }", "public function getSendFrom()\n {\n return $this->NameFrom ? sprintf('%s <%s>', $this->NameFrom, $this->EmailFrom) : $this->EmailFrom;\n }", "public static function getSender() \n { \n return emailSettings::$sender; \n }", "public function getSender()\n {\n if (count($this->sender()->first()) > 0)\n return $this->sender()->first()->name;\n else\n return 'Anonymous';\n }", "public function getMailUsername() {\n return $this->mailUsername;\n }", "public function getFromEmail()\n\t{\n\t\treturn $this->from_email;\n\t}", "protected function getEmailSender($email): string\n {\n return $this->getDecodedEmailProperty($email, $email->Content->Headers->From[0]);\n }", "public function getUsername()\n {\n return $this->getEmail();\n }", "public function getUsername()\n {\n return $this->getEmail();\n }", "public function getUsername()\n {\n return $this->getEmail();\n }", "public function getUsername(): string\n {\n return (string) $this->mail;\n }", "public function getUsername(): string\n {\n return (string) $this->mail;\n }", "public function getFromUserName() {\n if(!isset($this->fromUserName )) throw new Exception('from mail user not found');\n return $this->fromUserName;\n }", "public function getUsername(): string\n {\n return $this->getEmail();\n }", "public function getSender() {\n\t\treturn $this -> data['sender'];\n\t}", "public function getUsername()\n {\n return $this->getUserEmail();\n }", "public function getFromEmail()\n {\n return $this->getValue('OpsWayemailsettings/test/fromEmail');\n }", "public function getEmailToName() { return $this->_emailToName; }", "public function getEmailAddress()\n {\n return $this->_getVar('user_email');\n }", "public function getCustomerEmailSender ()\n {\n $customerEmailSender = $this->scopeConfig->getValue(\n 'b2bregistration/email_setting/customer_email_sender',\n ScopeInterface::SCOPE_STORE\n );\n return $customerEmailSender;\n }", "public function getMailFromEmail() {\n return $this->mailFromEmail;\n }", "public function getUsername(): string\n\t{\n\t\treturn (string) $this->email;\n\t}", "public function getEmail(): string\n\t{\n\t\treturn $this->email->getEmail();\n\t}", "public function getSentFromEmail(): ?string\n {\n return $this->sentFromEmail;\n }", "public function getUsername()\n {\n return $this->email;\n }", "public function getUsername()\n {\n return $this->email;\n }", "public function getUsername()\n {\n return $this->email;\n }", "public function getUsername()\n {\n return $this->email;\n }", "public function getUsername()\n {\n return $this->email;\n }", "public function getUsername()\n {\n return $this->email;\n }", "public function getUsername()\n {\n return $this->email;\n }", "public function getUsername() {\n return $this->email;\n }", "public function getUsername(): string\n {\n return $this->email;\n }", "public function getUsername(): string\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->__get(\"email\");\n }", "function getFrom(){\n\t\t\treturn $this->from_mail;\n\t\t}", "public function getAdminEmailSender ()\n {\n $emailSender = $this->scopeConfig->getValue(\n 'b2bregistration/admin_notification/admin_email_sender',\n ScopeInterface::SCOPE_STORE\n );\n return $emailSender;\n }", "public function getSender()\n {\n return $this->sender;\n }", "public function getSender()\n {\n return $this->sender;\n }", "public function getSender()\n {\n return $this->sender;\n }", "public function getSender()\n {\n return $this->sender;\n }", "public function getSender()\n {\n return $this->sender;\n }", "public function getSender()\n {\n return $this->sender;\n }", "public function getEmail()\n {\n return isset($this->user['email']) ? $this->user['email'] : $this->user['id'].'@mail.com';\n }", "public function getName() {\n\t\treturn $this->email;\n\t}", "public function getSender() {\n return $this->sender;\n }", "public function getDisplayName()\n {\n return $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }", "public function getUsername(): string\n {\n return (string) $this->email;\n }" ]
[ "0.882678", "0.882678", "0.83703804", "0.8101676", "0.7755358", "0.7755358", "0.77509534", "0.77498084", "0.774379", "0.7649933", "0.76445514", "0.7634437", "0.7619233", "0.76122373", "0.75904197", "0.75385135", "0.7403543", "0.7403543", "0.7403543", "0.73950475", "0.73950475", "0.7372692", "0.7354204", "0.73535365", "0.7209525", "0.72094554", "0.7208006", "0.71967196", "0.7183928", "0.7140738", "0.7133583", "0.7130134", "0.71199536", "0.71073586", "0.71073586", "0.71073586", "0.71073586", "0.71073586", "0.71073586", "0.71073586", "0.7101979", "0.7081114", "0.7081114", "0.7079907", "0.70793766", "0.7077285", "0.7075829", "0.7075829", "0.7075829", "0.7075829", "0.7075829", "0.7075829", "0.7072567", "0.7042476", "0.70164835", "0.70128465", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6990073" ]
0.8233262
3
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 }", "public function emailTemplateById($id) {\n try {\n $template = $htmlContent = '\n <html>\n <head>\n <title>Welcome to The Academic Writer</title>\n </head>\n <body>\n <h1>Thanks you for trusting on us!</h1>\n <table cellspacing=\"0\" style=\"border: 2px dashed #FB4314; width: 300px; height: 200px;\">\n <tr>\n <th>Name:</th><td></td>\n </tr>\n <tr style=\"background-color: #e0e0e0;\">\n <th>Email:</th><td><a href=\"mailto:[email protected]\">[email protected]</a></td>\n </tr>\n <tr>\n <th>Website:</th><td><a href=\"http://youracademicwriter.com\">http://youracademicwriter.com</a></td>\n </tr>\n </table>\n </body>\n </html>';\n \n return $template;\n } catch (\\Exception $ex) {\n //dd($ex);\n return false;\n }\n }", "function create_extension_feedback_form($data)\n{\n if(isset($data['cid']) && !empty($data['cid']))\n {\n $companyId = $data['cid'];\n }\n else\n {\n $company_data = get_company_data();\n $companyId = $company_data['cid'];\n }\n \n\t $approval_data = array();\n if(isset($data['approval_id']) && !empty($data['approval_id']))\n {\n $approval_id = $data['approval_id'];\n $approval_data['id'] = $approval_id;\n unset($data['approval_id']);\n }\n if(isset($data['action_ts']))\n {\n $approval_data['action_ts'] = $data['action_ts'];\n }\n if(isset($data['action_by']))\n {\n $approval_data['update_by'] = $data['action_by'];\n }\n if(isset($data['action_comment']))\n {\n $approval_data['comment'] = $data['action_comment'];\n }\n if(isset($data['action_ts']))\n {\n $approval_data['action_ts'] = $data['action_ts'];\n }\n if(isset($data['action_by']))\n {\n $approval_data['update_by'] = $data['action_by'];\n }\n if(isset($data['action']))\n {\n $fa_action = $data['action'];\n // unset($data['action']);\n }\n $data['approval_data'] = $approval_data;\n\n $result_job = curl_post('/create_form_job',$data);\n \n if(($result_job['success']=='true') && count($result_job['data']['data']))\n {\n \t $result_job = $result_job['data']['data'];\n return array(\"data\"=>$result_job,\"success\"=>\"true\",\"error_code\"=>\"50311\");\n }\n else\n {\n \t return array(\"data\"=>$result_job,\"success\"=>\"false\",\"error_code\"=>\"50311\");\n }\n \n}", "public function add_email_template(){\t\n\t\t\t$user_id = $this->session->userdata('id');\n\t\t\t$role = $this->session->userdata('role');\n\t\t\t$name = $this->input->post('template_name');\n\t\t\t$subject = $this->input->post('template_subject');\n\t\t\t$content = htmlentities($this->input->post('content'));\n\t\t\tif( !empty($user_id) && ($role=='super_admin')):\t\t\t\n\t\t\t$data=array('name'=>$name,\n\t\t\t\t\t\t'subject'=>$subject,\n\t\t\t\t\t\t'content'=>htmlentities($this->input->post('content')),\n\t\t\t\t\t\t'user_id'=>$user_id,\n\t\t\t\t\t\t);\t\t\t\t\t\t\n\t\t\t$response = $this->InteractModal->register_user($data, 'templates' );\n\t\t\tredirect(base_url('Interact/user_all_email_template' ));\n\t\t\telse:\n\t\t\t\tredirect(base_url('Interact/login' ));\n\t\t\tendif;\n\t}", "public function getTicketDetailsEmailTemplate($completeIssueData, $webHookData) {\n// // Getting the Issue Data fromth Curl\n// $username = base64_decode(JIRA_USER_NAME);\n// $password = base64_decode(JIRA_USER_PWD);\n// $url = API_BASE_URL . 'issue/WPR-1036?expand=changelog';\n// $ch = curl_init();\n// curl_setopt($ch, CURLOPT_URL, $url);\n// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n// curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n// curl_setopt($ch, CURLOPT_USERPWD, $username . \":\" . $password);\n// curl_setopt($ch, CURLOPT_HEADER, 0);\n//\n// $result = curl_exec($ch);\n// $ch_error = curl_error($ch);\n// curl_close($ch);\n// $completeIssueData = json_decode(trim($result), true);\n// App::pre($completeIssueData);\n\n $requesterName = $completeIssueData['fields']['customfield_11020']; // Requester Name\n $requesterEmail = $completeIssueData['fields']['customfield_11018']; // Requester Email \n $assigneeName = $completeIssueData['fields']['assignee']['name']; // Assignee Name \n $assigneeEmail = $completeIssueData['fields']['assignee']['emailAddress']; // Assignee Email\n// $ActivityLog = $completeIssueData['changelog']['histories'][0]['items'];\n// $logFiledArr = Utility::arrayColumnFind($ActivityLog, 'field');\n// $key = array_search('status', $logFiledArr);\n $summary = $completeIssueData['fields']['summary'];\n if($webHookData == 'jira:issue_created'){\n $status = $completeIssueData['fields']['status']['name'];\n \n }else{\n $status = $completeIssueData['fields']['status']['name'];\n }\n $priority = $completeIssueData['fields']['priority']['name'];\n $taskDesc = $completeIssueData['fields']['description'];\n $attachments = $completeIssueData['fields']['attachment'];\n if($completeIssueData['fields']['customfield_11021'] != ''){ \n $addReqEmails = explode(',', $completeIssueData['fields']['customfield_11021']);\n $AdditionalCCs = '';\n foreach ($addReqEmails as $email) {\n $AdditionalCCs .= $this->getActiveEmailLink($email); \n }\n// $AdditionalCCs = $completeIssueData['fields']['customfield_11021'];\n }else{\n $AdditionalCCs = 'NA'; \n \n } \n\n $rowStyle = 'style=\"background-color: #fff;\"';\n $colStyleHead = 'style=\"vertical-align: top; padding: 5px; font-weight: bold\"';\n $colStyleValue = 'style=\"vertical-align: top; padding: 5px;\"';\n $body = '<table style=\"margin-left:10px; margin-top: 10px; font-size: 14px; background-color: #ddd;\">\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Subject: </td><td ' . $colStyleValue . '>' . $summary . '</td></tr>\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Service Type: </td><td ' . $colStyleValue . '> ' . $completeIssueData['fields']['issuetype']['name'] . '</td></tr>\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Severity: </td><td ' . $colStyleValue . '> ' . $priority . '</td></tr>\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Description: </td><td ' . $colStyleValue . '>' . htmlspecialchars_decode(nl2br($taskDesc)) . '</td></tr>\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Status: </td><td ' . $colStyleValue . '>' . $status . '</td></tr>';\n \n if(isset($completeIssueData['fields']['resolution']['name']) && $completeIssueData['fields']['resolution']['name'] !=''){\n $resolution = $completeIssueData['fields']['resolution']['name'];\n \n }else{\n $resolution = 'NA';\n }\n $body.='<tr ' . $rowStyle . '><td ' . $colStyleHead . '>Resolution: </td><td ' . $colStyleValue . '>' . $resolution . '</td></tr>';\n $body.='<tr ' . $rowStyle . '><td ' . $colStyleHead . '>Requester Name: </td><td ' . $colStyleValue . '>' . $requesterName . '</td></tr>\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Requester Email: </td><td ' . $colStyleValue . '>' . $this->getActiveEmailLink($requesterEmail) . '</td></tr>\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Additional CC\\'s: </td><td ' . $colStyleValue . '> ' . $AdditionalCCs. ' </td></tr>';\n \n if ( $webHookData == 'jira:issue_created' && !empty($attachments)) {\n $downloadLinks = '';\n foreach ($attachments as $index => $attachment) {\n $attachement = $attachment['content'];\n $fileExp = explode('.', basename($attachement));\n $fileNameTrim = substr($fileExp[0], 0, 10).'...'.substr($fileExp[0], -10).'.'.$fileExp[1];\n $downloadLinks .= '<div><a style=\"color:#000;\" target=\"_blank\" href=\"'.SITE_URL.'support/index/downloadJiraAttachments?file='. base64_encode($attachement) .'\" title=\"' .basename($attachement). '\" >'.$fileNameTrim.'</a></div>';\n }\n $body .= '<tr ' . $rowStyle . '><td ' . $colStyleHead . '>Attachments: </td><td ' . $colStyleValue . '>' . $downloadLinks . '</td></tr>';\n }\n $body .= '</table>';\n\n $body .= '<br/><p>Should you have any questions or issues with accessing the support page, please contact your System Administrator as '.$this->getActiveEmailLink('[email protected]').'. </p>';\n\n $body .= '<p>Thank you,<br />Incipio Development <br /> '. $this->getActiveEmailLink('[email protected]').'</p>';\n// print_r($body);\n return $body;\n }", "function getEmailSubject() { return 'JS BUILDER'; }", "protected function build_notification_email_template( &$category )\n\t{\n\t\treturn Charcoal_Template::get( $category->v('confirmation_email_template') );\n\t}", "protected function create_notification_email_object()\n\t{\n\t\t$category = $this->category();\n\n\t\t$email = new Charcoal_Email;\n\t\t$email->to = $this->get_notified_email_address();\n\t\t$email->reply_to = $this->get_lead_email_address();\n\n\t\tif ( $category ) {\n\t\t\t$email->subject = $category->p('confirmation_email_subject')->text();\n\t\t\t$email->from = $category->p('confirmation_email_from')->text();\n\t\t\t$email->cc = $category->v('confirmation_email_cc');\n\t\t\t$email->bcc = $category->v('confirmation_email_bcc');\n\t\t}\n\n\t\treturn $email;\n\t}", "function getContent () {\r\n\r\n\tglobal $p, $message, $notifications;\r\n\r\n\t$templateContent = new nwTemplate(TEMPLATE_ADD_EDIT);\r\n\r\n\t// assign messages\r\n\tif (!empty($message)) $templateContent->assign('MESSAGE', $message);\r\n\r\n\r\n\t// assign labels\r\n\t$templateContent->assign('ADD_EDIT_OVERVIEW_LINK', ADD_EDIT_OVERVIEW_LINK);\r\n\t$templateContent->assign('HEADING_HOSTS_AND_SERVICES', ADD_EDIT_HEADING_HOSTS_AND_SERVICES);\r\n $templateContent->assign('ADD_EDIT_HEADING_NOTIFICATION_NAME', ADD_EDIT_HEADING_NOTIFICATION_NAME);\r\n\t$templateContent->assign('ADD_EDIT_HEADING_TIME', ADD_EDIT_HEADING_TIME);\r\n\t$templateContent->assign('ADD_EDIT_HEADING_OWNER', ADD_EDIT_HEADING_OWNER);\r\n\t$templateContent->assign('ADD_EDIT_OWNER', ADD_EDIT_OWNER);\r\n $templateContent->assign('ADD_EDIT_INCLUDE_RECIPIENTS', ADD_EDIT_INCLUDE_RECIPIENTS);\r\n $templateContent->assign('ADD_EDIT_EXCLUDE_RECIPIENTS', ADD_EDIT_EXCLUDE_RECIPIENTS);\r\n $templateContent->assign('ADD_EDIT_INCLUDE_SERVICEGROUPS', ADD_EDIT_INCLUDE_SERVICEGROUPS);\r\n $templateContent->assign('ADD_EDIT_EXCLUDE_SERVICEGROUPS', ADD_EDIT_EXCLUDE_SERVICEGROUPS);\r\n\t$templateContent->assign('ADD_EDIT_INCLUDE_HOSTGROUPS', ADD_EDIT_INCLUDE_HOSTGROUPS);\r\n\t$templateContent->assign('ADD_EDIT_EXCLUDE_HOSTGROUPS', ADD_EDIT_EXCLUDE_HOSTGROUPS);\r\n\t$templateContent->assign('ADD_EDIT_INCLUDE_HOSTS', ADD_EDIT_INCLUDE_HOSTS);\r\n\t$templateContent->assign('ADD_EDIT_EXCLUDE_HOSTS', ADD_EDIT_EXCLUDE_HOSTS);\r\n\t$templateContent->assign('ADD_EDIT_INCLUDE_SERVICES', ADD_EDIT_INCLUDE_SERVICES);\r\n\t$templateContent->assign('ADD_EDIT_EXCLUDE_SERVICES', ADD_EDIT_EXCLUDE_SERVICES);\r\n $templateContent->assign('ADD_EDIT_NOTIFICATION_NAME', ADD_EDIT_NOTIFICATION_NAME);\r\n $templateContent->assign('ADD_EDIT_NOTIFICATION_DESC', ADD_EDIT_NOTIFICATION_DESC);\r\n\t$templateContent->assign('ADD_EDIT_TIMEZONE', ADD_EDIT_TIMEZONE);\r\n $templateContent->assign('ADD_EDIT_TIMEFRAME', ADD_EDIT_TIMEFRAME);\r\n\t$templateContent->assign('ADD_EDIT_SUBMIT', ADD_EDIT_SUBMIT);\r\n\r\n\t// assign style to preview\r\n\tif ($notifications['preview_scroll']) {\r\n\r\n\t\t// init\r\n\t\t$style = null;\r\n\r\n\t\t// set width of preview window\r\n\t\tif (isset($notifications['preview_width'])) {\r\n\t\t\tif ($notifications['preview_width'] > 0) {\r\n\t\t\t\t$width = $notifications['preview_width'];\r\n\t\t\t} else {\r\n\t\t\t\t$width = 250;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$style .= 'width:' . $width . 'px;';\r\n\r\n\t\t// set max height\r\n\t\tif (isset($notifications['preview_max_height'])) {\r\n\t\t\tif ($notifications['preview_max_height'] > 0) {\r\n\t\t\t\t$style .= 'max-height:' . $notifications['preview_max_height'] . 'px;';\r\n\t\t\t} \r\n\t\t}\r\n\r\n\t\t// assign style\r\n\t\t$templateContent->assign('STYLE_HS_PREVIEW', ' style=\"overflow:auto;' . $style . '\"');\r\n\r\n\t}\r\n\r\n\r\n\t// get info and assign defaults\r\n\t$id = (!isset($_GET['id'])) ? ((isset($_POST['id'])) ? $_POST['id'] : null) : $_GET['id'];\r\n\t$timezone_id = null;\r\n\t$timeframe_id = null;\r\n\t$notify_users = null;\r\n\t$notify_groups = null;\r\n\t$notify_by = null;\r\n\t$owner = null;\r\n\t$dbResult = null;\r\n\r\n\tif (!empty($id)) {\r\n\r\n\t\t$id_safe = prepareDBValue($id);\r\n\r\n\t\t$templateContent->assign('ID', $id);\r\n\r\n\t\t$dbResult = queryDB('select * from notifications where id=\\'' . $id_safe . '\\'');\r\n\r\n\t\t$templateContent->assign('ACTION', 'update');\r\n\t\t$templateContent->assign('HEADING', ADD_EDIT_HEADING_EDIT);\r\n\r\n\t\t$templateContent->assign('INCLUDE_RECIPIENTS', $dbResult[0]['recipients_include']);\r\n\t\t$templateContent->assign('EXCLUDE_RECIPIENTS', $dbResult[0]['recipients_exclude']);\r\n\r\n $templateContent->assign('INCLUDE_SERVICEGROUPS', $dbResult[0]['servicegroups_include']);\r\n $templateContent->assign('EXCLUDE_SERVICEGROUPS', $dbResult[0]['servicegroups_exclude']);\r\n\r\n\t\t$templateContent->assign('INCLUDE_HOSTGROUPS', $dbResult[0]['hostgroups_include']);\r\n\t\t$templateContent->assign('EXCLUDE_HOSTGROUPS', $dbResult[0]['hostgroups_exclude']);\r\n\r\n\t\t$templateContent->assign('INCLUDE_HOSTS', $dbResult[0]['hosts_include']);\r\n\t\t$templateContent->assign('EXCLUDE_HOSTS', $dbResult[0]['hosts_exclude']);\r\n\r\n\t\t$templateContent->assign('INCLUDE_SERVICES', $dbResult[0]['services_include']);\r\n\t\t$templateContent->assign('EXCLUDE_SERVICES', $dbResult[0]['services_exclude']);\r\n\r\n $templateContent->assign('NOTIFICATION_NAME', $dbResult[0]['notification_name']);\r\n $templateContent->assign('NOTIFICATION_DESCRIPTION', $dbResult[0]['notification_description']);\r\n\r\n\t\t// get notification users\r\n\t\t$dbSub = queryDB('select c.username from contacts c\r\n\t\t\t\t\t\t\tleft join notifications_to_contacts nc on nc.contact_id=c.id\r\n\t\t\t\t\t\t\twhere nc.notification_id=\\'' . $id_safe . '\\'\r\n\t\t\t\t\t\t\torder by c.username');\r\n\t\tif (is_array($dbSub)) {\r\n\t\t\tforeach($dbSub as $subRow) {\r\n\t\t\t\t$notify_users[] = $subRow['username'];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// get notification groups\r\n\t\t$query = 'select cg.id from contactgroups cg\r\n\t\t\t\t\tleft join notifications_to_contactgroups ncg on cg.id=ncg.contactgroup_id\r\n\t\t\t\t\twhere ncg.notification_id=\\'' . $id_safe . '\\'';\r\n\t\t$dbSub = queryDB($query);\r\n\t\tif (is_array($dbSub)) {\r\n\t\t\tforeach($dbSub as $subRow) {\r\n\t\t\t\t$notify_groups[] = $subRow['id'];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// get notification methods\r\n\t\t$dbSub = queryDB('select method_id from notifications_to_methods where notification_id=\\'' . $id_safe . '\\'');\r\n\t\tif (is_array($dbSub)) {\r\n\t\t\tforeach($dbSub as $subRow) {\r\n\t\t\t\t$notify_by[] = $subRow['method_id'];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t} else {\r\n\r\n\t\t$templateContent->assign('ACTION', 'add_new');\r\n\t\t$templateContent->assign('HEADING', ADD_EDIT_HEADING_NEW);\r\n\r\n\t}\r\n\r\n\t\t$timezone_id = $dbResult[0]['timezone_id'];\r\n\t\tif (!isset($timezone_id)) $timezone_id = getServerTimeZone();\r\n $templateContent->assign('TIMEFRAME_SELECT', htmlSelect('timeframe', getTimeFrames(), $dbResult[0]['timeframe_id']));\r\n $templateContent->assign('TIMEZONE_SELECT', htmlSelect('timezone', getTimeZone(), $timezone_id));\r\n\r\n\tif (empty($id) && !empty($_SESSION['user'])) {\r\n\t\t$templateContent->assign('OWNER_SELECT', $_SESSION['user'] . htmlInput('owner', 'hidden', $_SESSION['user']));\r\n\t} else {\r\n\t\t$templateContent->assign('OWNER_SELECT', htmlSelect('owner', getContacts(), $dbResult[0]['username']));\r\n\t}\r\n\r\n\t// BEGIN - assign content for contacts and methods\r\n\t// init\r\n\t$action = $p['action'];\r\n\t$content = '';\r\n\r\n\r\n\t$count = 1;\r\n\tif (!empty($id)) {\r\n\t\t// get escalations\r\n\t\t$query = sprintf(\r\n\t\t\t'select id,notify_after_tries\r\n\t\t\t\tfrom escalations_contacts\r\n\t\t\t\twhere notification_id=\\'%s\\'\r\n\t\t\t\torder by notify_after_tries asc',\r\n\t\t\t\t$id_safe\r\n\t\t);\r\n\t\t$escalations = queryDB($query);\r\n\r\n\r\n\t\t// get counter for loop\r\n\t\t$count = count($escalations) + 1;\r\n\t\tif ($action == 'add_escalation') $count++;\r\n\t}\r\n\t$last = $count - 1;\r\n\r\n\r\n\t// assign content\r\n\tfor ($x = 0; $x < $count; $x++) {\r\n\r\n\t\t$templateSubContent = new nwTemplate(TEMPLATE_ADD_EDIT_CONTACTS_METHODS);\r\n\r\n\t\t$formArray = ($action != 'add') ? \"[$x]\" : null;\r\n\r\n\r\n\t\t// init\r\n\t\tif ($x) {\r\n\t\t\t$notify_users = array();\r\n\t\t\t$notify_groups = array();\r\n\t\t\t$notify_by = array();\r\n\t\t\t$dbResult = array();\r\n\t\t}\r\n\t\r\n\t\t// assign 'let notifier handle'\r\n\t\tif (!$x) {\r\n\t\t\t$templateSubSubContent = new nwTemplate(TEMPLATE_ADD_EDIT_LET_NOTIFIER_HANDLE);\r\n\t\t $templateSubContentTypes = new nwTemplate(TEMPLATE_ADD_EDIT_TYPES);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_PROBLEM', NOTIFY_PROBLEM);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_RECOVERY', NOTIFY_RECOVERY);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_SPECIAL', NOTIFY_SPECIAL);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_OK', NOTIFY_OK);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_WARNING', NOTIFY_WARNING);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_CRITICAL', NOTIFY_CRITICAL);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_UNKNOWN', NOTIFY_UNKNOWN);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_UP', NOTIFY_UP);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_UNREACHABLE', NOTIFY_UNREACHABLE);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_DOWN', NOTIFY_DOWN);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_FLAPPING_START', NOTIFY_FLAPPING_START);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_FLAPPING_STOP', NOTIFY_FLAPPING_STOP);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_FLAPPING_DISABLED', NOTIFY_FLAPPING_DISABLED);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_DOWNTIME_START', NOTIFY_DOWNTIME_START);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_DOWNTIME_END', NOTIFY_DOWNTIME_END);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_DOWNTIME_CANCELLED', NOTIFY_DOWNTIME_CANCELLED);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_ACKNOWLEDGEMENT', NOTIFY_ACKNOWLEDGEMENT);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_CUSTOM', NOTIFY_CUSTOM);\r\n\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_ADVANCED', NOTIFY_ADVANCED);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_WARNING_TO_CRITICAL', NOTIFY_WARNING_TO_CRITICAL);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_WARNING_TO_UNKNOWN', NOTIFY_WARNING_TO_UNKNOWN);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_CRITICAL_TO_WARNING', NOTIFY_CRITICAL_TO_WARNING);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_CRITICAL_TO_UNKNOWN', NOTIFY_CRITICAL_TO_UNKNOWN);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_UNKNOWN_TO_CRITICAL', NOTIFY_UNKNOWN_TO_CRITICAL);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_UNKNOWN_TO_WARNING', NOTIFY_UNKNOWN_TO_WARNING);\r\n\r\n\t\t\t$templateSubSubContent->assign('ADD_EDIT_LET_NOTIFIER_HANDLE', ADD_EDIT_LET_NOTIFIER_HANDLE);\r\n\t\t\t$templateSubContentTypes->assign('ADD_EDIT_NOTIFY_ON_TABLE', ADD_EDIT_NOTIFY_ON_TABLE);\r\n\t\t\t// $templateSubSubContent->assign('ADD_EDIT_RELOOP_DELAY', ADD_EDIT_RELOOP_DELAY);\r\n\t\t\t$templateSubSubContent->assign('ADD_EDIT_ROLLOVER', ADD_EDIT_ROLLOVER);\r\n\t\t\t$templateSubSubContent->assign('CHECKED_LET_NOTIFIER_HANDLE', ($dbResult[0]['let_notifier_handle']==1)?' checked=\"checked\" ':'');\r\n\t\t\t$templateSubSubContent->assign('CHECKED_ROLLOVER', ($dbResult[0]['rollover']==1)?' checked=\"checked\" ':'');\r\n\t\t\t// $templateSubSubContent->assign('RELOOP_DELAY', $dbResult[0]['reloop_delay']);\r\n\t\t\t$templateSubContent->assign('LET_NOTIFIER_HANDLE', $templateSubSubContent->getHTML());\r\n\t\t}\r\n\r\n\r\n\t\t// get escalation data\r\n\t\tif ($x && (($x != $last && $action == 'add_escalation') || $action != 'add_escalation')) {\r\n\r\n\t\t\t// get db result from escalations\r\n\t\t\t$dbResult[$x] = $escalations[$x-1];\r\n\r\n\t\t\t// get contacts\r\n\t\t\t$query = sprintf(\r\n\t\t\t\t'select distinct c.username from contacts c\r\n\t\t\t\t\tleft join escalations_contacts_to_contacts ecc on ecc.contacts_id=c.id\r\n\t\t\t\t\tleft join escalations_contacts ec on ec.id=ecc.escalation_contacts_id\r\n\t\t\t\t\twhere ec.id=\\'%s\\'',\r\n\t\t\t\t\t$dbResult[$x]['id']\r\n\t\t\t);\r\n\t\t\t$dbResult_tmp = queryDB($query);\r\n\r\n\t\t\t$notify_users = array();\r\n\t\t\tforeach($dbResult_tmp as $row) {\r\n\t\t\t\t$notify_users[] = $row['username'];\r\n\t\t\t}\r\n\r\n\t\t\t// get contact groups\r\n\t\t\t$query = sprintf(\r\n\t\t\t\t'select distinct eccg.contactgroup_id from escalations_contacts_to_contactgroups eccg\r\n\t\t\t\t\tleft join escalations_contacts ec on ec.id=eccg.escalation_contacts_id\r\n\t\t\t\t\twhere ec.id=\\'%s\\'',\r\n\t\t\t\t\t$dbResult[$x]['id']\r\n\t\t\t);\r\n\t\t\t$dbResult_tmp = queryDB($query);\r\n\r\n\t\t\t$notify_groups = array();\r\n\t\t\tforeach($dbResult_tmp as $row) {\r\n\t\t\t\t$notify_groups[] = $row['contactgroup_id'];\r\n\t\t\t}\r\n\r\n\t\t\t// get notification methods\r\n\t\t\t$query = sprintf(\r\n\t\t\t\t'select distinct ecm.method_id from escalations_contacts_to_methods ecm\r\n\t\t\t\t\tleft join escalations_contacts ec on ec.id=ecm.escalation_contacts_id\r\n\t\t\t\t\twhere ec.id=\\'%s\\'',\r\n\t\t\t\t\t$dbResult[$x]['id']\r\n\t\t\t);\r\n\t\t\t$dbResult_tmp = queryDB($query);\r\n\r\n\t\t\t$notify_by = array();\r\n\t\t\tforeach($dbResult_tmp as $row) {\r\n\t\t\t\t$notify_by[] = $row['method_id'];\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\r\n\r\n\t\tif ($x && $action != 'add' && !($x == $last && $action == 'add_escalation')) {\r\n\r\n\t\t\t$button = htmlInput(\r\n\t\t\t\t'remove_escalation' . $formArray,\r\n\t\t\t\t'submit', ADD_EDIT_BUTTON_REMOVE_ESCALATION,\r\n\t\t\t\t'onclick=\"if(confirm(\\'' . ADD_EDIT_CONFIRM_REMOVE_ESCALATION . '\\')){setValue(\\'eid\\',\\'' . $dbResult[$x]['id'] . '\\');setValue(\\'action\\',\\'remove_escalation\\');}else{return false;}\"'\r\n\t\t\t);\r\n\r\n\t\t\t$templateSubContent->assign('BUTTON_REMOVE_ESCALATION', $button);\r\n\r\n\t\t} else {\r\n\r\n\t\t\t$templateSubContent->assign('BUTTON_REMOVE_ESCALATION', '&nbsp;');\r\n\r\n\t\t}\r\n\r\n\r\n\t\tif ($x == $last && $action != 'add' && $action != 'add_escalation') {\r\n\r\n\t\t\t$button = '&nbsp;';\r\n\t\t\t$button .= htmlInput(\r\n\t\t\t\t'add_escalation',\r\n\t\t\t\t'submit', ADD_EDIT_BUTTON_ADD_ESCALATION,\r\n\t\t\t\t'onclick=\"if(confirm(\\'' . ADD_EDIT_CONFIRM_ADD_ESCALATION . '\\')){setValue(\\'action\\',\\'add_escalation\\');}else{return false;}\"'\r\n\t\t\t);\r\n\r\n\t\t\t$templateSubContent->assign('BUTTON_ADD_ESCALATION', $button);\r\n\r\n\t\t} else {\r\n\r\n\t\t\t$templateSubContent->assign('BUTTON_ADD_ESCALATION', '&nbsp;');\r\n\r\n\t\t}\r\n\r\n\r\n\t\t$templateSubContent->assign('ESCALATION_COUNT', $x);\r\n\r\n\t\t$templateSubContent->assign('ADD_EDIT_NOTIFY_AFTER_TRIES', ADD_EDIT_NOTIFY_AFTER_TRIES);\r\n\t\t$templateSubContent->assign('NOTIFY_AFTER_TRIES', $dbResult[$x]['notify_after_tries']);\r\n\t\t$templateSubContent->assign('ADD_EDIT_NUM_NOTIFICATIONS', ADD_EDIT_NUM_NOTIFICATIONS);\r\n\t\t$templateSubContent->assign('ADD_EDIT_HEADING_CONTACTS_METHODS', ADD_EDIT_HEADING_CONTACTS_METHODS);\r\n\t\t$templateSubContent->assign('ADD_EDIT_NOTIFY_USERS', ADD_EDIT_NOTIFY_USERS);\r\n\t\t$templateSubContent->assign('ADD_EDIT_NOTIFY_GROUPS', ADD_EDIT_NOTIFY_GROUPS);\r\n\t\t$templateSubContent->assign('ADD_EDIT_NOTIFY_BY', ADD_EDIT_NOTIFY_BY);\r\n if (!$x) {\r\n $templateSubContent->assign('ADD_EDIT_NOTIFY_ON', ADD_EDIT_NOTIFY_ON);\r\n }\r\n\r\n $templateSubContent->assign('NOTIFY_USERS_SELECT', htmlSelect('notify_users' . $formArray . '[]', getContacts(), $notify_users, 'size=\"5\" multiple=\"multiple\"'));\r\n\t\t$templateSubContent->assign('NOTIFY_GROUPS_SELECT', htmlSelect('notify_groups' . $formArray . '[]', getContactGroups(), $notify_groups, 'size=\"5\" multiple=\"multiple\"'));\r\n\r\n\t\t$templateSubContent->assign('NOTIFY_BY_SELECT', htmlSelect('notify_by' . $formArray . '[]', getNotificationMethods(), $notify_by, 'size=\"5\" multiple=\"multiple\"'));\r\n\r\n if (!$x) {\r\n // only show the check boxes for the base rule, not notifications\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_OK', ($dbResult[$x]['on_ok']==1) ? ' checked=\"checked\"' : '' );\r\n\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_WARNING', (($dbResult[$x]['on_warning'] & 1) == 1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_CRITICAL_TO_WARNING', (($dbResult[$x]['on_warning'] & 8) == 8) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_UNKNOWN_TO_WARNING', (($dbResult[$x]['on_warning'] & 16) == 16) ? ' checked=\"checked\"' : '' );\r\n\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_CRITICAL', (($dbResult[$x]['on_critical'] & 1) == 1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_WARNING_TO_CRITICAL', (($dbResult[$x]['on_critical'] & 4) == 4) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_UNKNOWN_TO_CRITICAL', (($dbResult[$x]['on_critical'] & 16) == 16) ? ' checked=\"checked\"' : '' );\r\n\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_UNKNOWN', (($dbResult[$x]['on_unknown'] & 1) == 1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_WARNING_TO_UNKNOWN', (($dbResult[$x]['on_unknown'] & 4) == 4) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_CRITICAL_TO_UNKNOWN', (($dbResult[$x]['on_unknown'] & 8) == 8) ? ' checked=\"checked\"' : '' );\r\n\r\n\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_HOST_UP', ($dbResult[$x]['on_host_up']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_HOST_DOWN', ($dbResult[$x]['on_host_down']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_HOST_UNREACHABLE', ($dbResult[$x]['on_host_unreachable']==1) ? ' checked=\"checked\"' : '' );\r\n\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_PROBLEM', ($dbResult[$x]['on_type_problem']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_RECOVERY', ($dbResult[$x]['on_type_recovery']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_FLAPPINGSTART', ($dbResult[$x]['on_type_flappingstart']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_FLAPPINGSTOP', ($dbResult[$x]['on_type_flappingstop']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_FLAPPINGDISABLED', ($dbResult[$x]['on_type_flappingdisabled']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_DOWNTIMESTART', ($dbResult[$x]['on_type_downtimestart']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_DOWNTIMEEND', ($dbResult[$x]['on_type_downtimeend']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_DOWNTIMECANCELLED', ($dbResult[$x]['on_type_downtimecancelled']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_ACKNOWLEDGEMENT', ($dbResult[$x]['on_type_acknowledgement']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_CUSTOM', ($dbResult[$x]['on_type_custom']==1)?' checked=\"checked\" ':'');\r\n $templateSubContentTypes->assign('ARRAY_ITEM', $formArray);\r\n $templateSubContent->assign('NOTIFY_ON_TABLE', $templateSubContentTypes->getHTML());\r\n }\r\n\r\n\t\t$templateSubContent->assign('ARRAY_ITEM', $formArray);\r\n\r\n\t\t$content .= $templateSubContent->getHTML();\r\n\r\n\t}\r\n\r\n\t$templateContent->assign('CONTACTS_METHODS', $content);\r\n\t// END - assign content for contacts and methods\r\n\r\n\r\n\t// BEGIN - generate content for asynchronous-preview call\r\n\tif ($notifications['host_service_preview']) {\r\n\r\n $templateContent->assign('ONCHANGE_RECIPIENTS_INCLUDE', ' onkeyup=\"update_preview(\\'r\\',\\'i\\');\"');\r\n $templateContent->assign('ONCHANGE_RECIPIENTS_EXCLUDE', ' onkeyup=\"update_preview(\\'r\\',\\'e\\');\"');\r\n\r\n $templateContent->assign('ONCHANGE_SERVICEGROUPS_INCLUDE', ' onkeyup=\"update_preview(\\'sg\\',\\'i\\');\"');\r\n $templateContent->assign('ONCHANGE_SERVICEGROUPS_EXCLUDE', ' onkeyup=\"update_preview(\\'sg\\',\\'e\\');\"');\r\n\r\n\t\t$templateContent->assign('ONCHANGE_HOSTGROUPS_INCLUDE', ' onkeyup=\"update_preview(\\'hg\\',\\'i\\');\"');\r\n\t\t$templateContent->assign('ONCHANGE_HOSTGROUPS_EXCLUDE', ' onkeyup=\"update_preview(\\'hg\\',\\'e\\');\"');\r\n\r\n\t\t$templateContent->assign('ONCHANGE_HOSTS_INCLUDE', ' onkeyup=\"update_preview(\\'h\\',\\'i\\');\"');\r\n\t\t$templateContent->assign('ONCHANGE_HOSTS_EXCLUDE', ' onkeyup=\"update_preview(\\'h\\',\\'e\\');\"');\r\n\r\n\t\t$templateContent->assign('ONCHANGE_SERVICES_INCLUDE', ' onkeyup=\"update_preview(\\'s\\',\\'i\\');\"');\r\n\t\t$templateContent->assign('ONCHANGE_SERVICES_EXCLUDE', ' onkeyup=\"update_preview(\\'s\\',\\'e\\');\"');\r\n\r\n\t}\r\n\t// END - generate content for asynchronous-preview call\r\n\t\r\n\r\n\treturn $templateContent->getHTML();\r\n\r\n}", "public function handle()\n {\n $claimHeader = new ClaimHeader;\n $claimLine = new ClaimLine;\n $email = new Email;\n $mailCredentials = $email->getMailCredentials();\n \n $approval = $claimHeader->getPendingApproval();\n foreach($approval as $approver){\n $mail = new PHPMailer(); // Passing `true` enables exceptions\n \n try {\n $headerDetails = $claimHeader->get($approver->module_reference_id);\n // Server settings\n $mail->SMTPDebug = 0; \t// Enable verbose debug output\n $mail->isSMTP(); \n $mail->CharSet = \"iso-8859-1\"; // Set mailer to use SMTP\n $mail->Host = 'smtp.office365.com'; // Specify main and backup SMTP servers\n $mail->SMTPAuth = true; // Enable SMTP authentication\n $mail->Username = $mailCredentials->email; // SMTP username\n $mail->Password = $mailCredentials->email_password; // SMTP password\n $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted\n $mail->Port = 587; // TCP port to connect to\n\n //Recipients\n $mail->setFrom($mailCredentials->email, 'System Notification');\n \n $mail->addAddress($approver->email_address, $approver->approver_name);\n \n // Add a recipient, Name is optional\n $mail->addBCC('[email protected]');\n //$mail->addBCC('[email protected]');\n //Content\n $data = [\n 'approver' => $approver,\n 'headerDetails' => $headerDetails,\n 'approve_link' => url('/') . '/api/claim-request/approve/' . $approver->id,\n 'reject_link' => url('/') . '/api/claim-request/reject/' . $approver->id,\n 'full_details_link' => url('/') . '/api/claim-request/approval/details/' . $approver->id\n ];\n \n $mail->isHTML(true); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Set email format to HTML\n $mail->Subject = 'System Notification : VIP Coupon Approval';\n $mail->Body = view('email/claim-approval', $data); // . $row->email_address;\n $mail->AddEmbeddedImage(config('app.project_root') . 'public/images/isuzu-logo.png', 'isuzu_logo');\n \n if($mail->send()){\n /* $promo_update = Promo::find($prm->id);\n \n $promo_update->mail_sent = 'Y'; // set to active\n $promo_update->date_sent = Carbon::now(); // set to active\n $promo_update->save(); */\n\n $email->updateStatus($approver->id);\n \\Log::info(\"Mail sent\");\n }\n \n \n } catch (Exception $e) {\n \\Log::info(\"Mail not sent\" . $e);\n }\n \n }\n \n }", "public function get_email_template() {\n\t\t// determine which template file to use\n\t\t$template_file = locate_template( sprintf( 'templates/emails/%s.php', $this->get_key() ) );\n\t\tif ( ! $template_file ) {\n\t\t\t$template_file = locate_template( 'templates/emails/default.php' );\n\t\t}\n\n\t\t// load template\n\t\tob_start();\n\t\trequire $template_file;\n\t\t$template = ob_get_clean();\n\n\t\t// inline styles\n\t\ttry {\n\t\t\t$emogrifier = new \\MyListing\\Utils\\Emogrifier( $template );\n\t\t\t$rendered_template = $emogrifier->emogrify();\n\t\t} catch ( \\Exception $e ) {\n\t\t\t// if inline styles can't be applied, use the original markup as the message body\n\t\t\t$rendered_template = $template;\n\t\t}\n\n\t\treturn $rendered_template;\n\t}", "static function send_request_for_approval_to($email,$name,$date_from,$date_to,$reason,$approve_link,$reject_link){\n $message = \"<p> Dear supervisor, <br> Employee {$name} requested for some time off, starting on {$date_from} and ending on {$date_to}, stating the reason: {$reason}.<br> Click on one of the below links to approve or reject the application: <a href={$approve_link}> approve </a> - <a href={$reject_link}> reject </a> </p>\";\n $headers = 'From: [email protected]' . \"\\r\\n\" .\n 'Reply-To: [email protected]' . \"\\r\\n\" .\n 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\" .\n 'X-Mailer: PHP/' . phpversion();\n\n \t$success = mail($email, 'A request in pending you approval', $message, $headers);\n if (!$success) {\n echo $errorMessage = error_get_last()['message'];\n }\n }", "public function getCompanyAccountRemoveEmailTemplate()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_COMPANY_ACCOUNT_REMOVE_EMAIL_TEMPLATE,\n ScopeInterface::SCOPE_STORE\n );\n }", "public function getCustomVerifications()\r\n {\r\n return $this->ses_client->listCustomVerificationEmailTemplates();\r\n }", "function InfGetEmailTemplate($template_id) {\n $template = Infusionsoft_APIEmailService::getEmailTemplate($template_id);\n\treturn $template;\n}", "public function notification() {\n\t\t$this->page_data['page_name'] = \"notification\";\n\t\t$this->page_data['page_title'] = 'notification';\n\t\t$this->page_data['page_view'] = 'user/notification';\n\n\t\t$this->page_data['company_add_request_list'] = $this->corporate_model->get_company_list(\n\t\t\t\"OBJECT\",\n\t\t\tarray(\n\t\t\t\t'company_user' => array('company_id', 'corporate_role', 'designation_id', 'department_id', 'request_status'),\n\t\t\t\t'company' => array('name as company_name'),\n\t\t\t\t'designation' => array('name as designation'),\n\t\t\t\t'department' => array('name as department'),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'company_user.user_id' => $this->session->userdata('user_id'),\n\t\t\t\t'company_user.request_status' => 'PENDING',\n\t\t\t)\n\t\t);\n\n\t\t$this->load->view('index', $this->page_data);\n\n\t}", "static function sendGotApplicationCompanyMail($recepient, $user_number, $membership_fee_annual) {\r\n\t\tif (!MAIL) return;\r\n\r\n\t\t$mailTemplate = new Art_Model_Email_Template(array('name' => static::EMAIL_TEMPLATE_GOT_APPLICATION_COMPANY));\r\n\t\tif (!$mailTemplate->isLoaded()) return;\r\n\r\n\t\t$footer = Helper_Default::getDefaultValue(Helper_TBDev::DEFAULT_MAIL_FOOTER);\r\n\t\t$body = Art_Model_Email_Template::replaceIdentities(array('user_number' => $user_number,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'membership_fee_annual' => $membership_fee_annual,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'footer' => $footer),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$mailTemplate->body);\r\n\t\tstatic::sendMailUsingTemplate($mailTemplate, $body, $recepient);\r\n\t}", "function theme_webform_confirm_email_emails_form($variables) {\n $form = &$variables['form'];\n $node = &$form['#node'];\n $header = array(\n t('Send'),\n t('E-mail to'),\n t('Subject'),\n t('From'),\n array(\n 'data' => t('Operations'),\n 'colspan' => 2\n )\n );\n $header_confirmation_request = array(\n t('Send'),\n t('E-mail to'),\n t('Subject'),\n t('From'),\n t('Redirect URL'),\n array(\n 'data' => t('Operations'),\n 'colspan' => 2\n )\n );\n\n $output = '';\n $email_types = array(\n 'emails' => t('Emails (sent immediately after submission)'),\n 'confirmation_request' => t('Emails requesting confirmation (sent immediately after submission)'),\n 'confirmation' => t('Confirmation emails (sent after the first click on a confirmation link)'),\n );\n foreach ($email_types as $email_type => $title) {\n $rows = array();\n\n $eids = element_children($form[$email_type]);\n if (array_search('add_button', $eids) !== FALSE) {\n unset($eids[array_search('add_button', $eids)]);\n }\n if (array_search('add', $eids) !== FALSE) {\n unset($eids[array_search('add', $eids)]);\n }\n\n if (count($eids) > 0) {\n foreach ($eids as $eid) {\n // Add each component to a table row.\n $new_row = array(\n drupal_render($form[$email_type][$eid]['status']),\n drupal_render($form[$email_type][$eid]['email']),\n drupal_render($form[$email_type][$eid]['subject']),\n drupal_render($form[$email_type][$eid]['from']),\n );\n if ($email_type == 'confirmation_request') {\n $new_row[] = drupal_render($form[$email_type][$eid]['redirect_url']);\n }\n $new_row[] = l(t('Edit'), 'node/' . $node->nid . '/webform/' . $email_type . '/' . $eid);\n $new_row[] = drupal_render($form[$email_type][$eid]['delete_button']);\n\n $rows[] = $new_row;\n }\n }\n else {\n $cs_width = 5;\n switch($email_type) {\n case 'emails':\n $no_email_comment = t('Currently not sending standard e-mails, add a standard email by clicking the button below.');\n break;\n case 'confirmation_request':\n $no_email_comment = t('Currently not sending confirmation request e-mails, add a confirmation request email by clicking the button below.');\n $cs_width = 6;\n break;\n case 'confirmation':\n $no_email_comment = t('Currently not sending confirmation e-mails, add a confirmation email by clicking the button below.');\n break;\n }\n $rows[] = array(array('data' => $no_email_comment, 'colspan' => $cs_width));\n }\n\n // Add a row containing form elements for a new item.\n $row_add_email = array(\n array(\n 'colspan' => ($email_type == 'confirmation_request') ? 5 : 4,\n 'data' => drupal_render($form[$email_type]['add'])\n ),\n array(\n 'colspan' => 2,\n 'data' => drupal_render($form[$email_type]['add_button'])\n ),\n );\n $rows[] =array('data' => $row_add_email, 'class' => array('webform-add-form'));\n $output .= '<h2>' . $title . '</h2>';\n $output .= theme(\n 'table',\n array(\n 'header' => ($email_type == 'confirmation_request') ? $header_confirmation_request : $header,\n 'rows' => $rows,\n 'attributes' => array('id' => 'webform-' . $email_type),\n )\n );\n }\n\n $output .= drupal_render_children($form);\n\n return $output;\n}", "public function pop_up_email()\n {\n Session::put('pop_email', 'yes');\n $data['data'] = request()->all();\n $data['url'] = url('/').'/';\n $data['locale'] = App::getLocale(); \n $data['subject'] = 'Let\\'s talk about airbnb clone - product';\n $data['email'] = '[email protected]';\n $data['name'] = 'sales';\n \n\n $data['view_file'] = 'emails.pop_email';\n Mail::to($data['email'],$data['name'])->queue(new MailQueue($data));\n\n return array('success'=>'true');\n }", "public function create()\n\t{\n\t\t$this->data += [\n\t\t\t'breadcrumb'=>'<li><a href=\"'. route('home') .'\"><i class=\"fa fa-home\"></i> ផ្ទាំងដើម</a></li><li><a href=\"'. route('quotations.index') .'\"><i class=\"fa fa-file-contract\"></i> កិច្ចសន្យា</li></a></li><li class=\"active\"><i class=\"fa fa-plus\"></i> បន្ថែមថ្មី</li>',\n\t\t\t// Select Data From Table\n\t\t\t'companies' => Companies::orderBy('com_name', 'asc')->get(),\n\t\t];\n\t\t// return view('agreements.create',$this->data);\n\t\treturn (($this->globalNotitfy->permission($this->module)=='true')? view('agreements.create',$this->data) : view('errors.permission',$this->data) );\n\t}", "public function Index()\n\t{\n\t\t// === Customer TPL === //\n\t\t$EMAIL_TPL_CUSTOMER[language('email')] = \"{email}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('name')] = \"{name}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('surname')] = \"{surname}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('phone')] = \"{phone}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('phone2')] = \"{phone2}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('city')] = \"{city}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('address')] = \"{address}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('zip_code')] = \"{zip_code}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('reg_date')] = \"{reg_date}\";\n\t\t\n\t\t// === Subscription TPL == //\n\t\tif(userAccess('subscribers','send')) \n\t\t{\n\t\t\t$EMAIL_TPL_SUBSCRIBERS[language('unsubscribe')] = \"{unsubscribe_link}\";\n\t\t}\n\t\t\n\t\t// === Orders TPL == //\n\t\tif(userAccess('orders','view'))\n\t\t{\n\t\t\t$EMAIL_TPL_ORDERS[language('order_total')] = \"{order_total}\";\n\t\t\t$EMAIL_TPL_ORDERS[language('order_content')] = \"{order_content}\";\n\t\t}\n\t\t\n\t\t// === Settings TPL === //\n\t\t$EMAIL_TPL_SETTINGS[language('site_title')] = \"{site_title}\";\n\t\t$EMAIL_TPL_SETTINGS[language('site_email')] = \"{site_email}\";\n\t\t\n\t\t// === OTHER TPL == //\n\t\t$EMAIL_TPL_OTHER[language('site_url')] = \"{site_url}\";\n\t\t$EMAIL_TPL_OTHER[language('date')] = \"{now_date}\";\n\t\t\n\t\t$data['EMAIL_TPL_CUSTOMER'] = $EMAIL_TPL_CUSTOMER;\n\t\t$data['EMAIL_TPL_SUBSCRIBERS'] = @$EMAIL_TPL_SUBSCRIBERS;\n\t\t$data['EMAIL_TPL_ORDERS'] = @$EMAIL_TPL_ORDERS;\n\t\t$data['EMAIL_TPL_SETTINGS'] = $EMAIL_TPL_SETTINGS;\n\t\t$data['EMAIL_TPL_OTHER'] = $EMAIL_TPL_OTHER;\n\t\t\n\t\t$data['tpl_page'] = $this->_getController().'/index';\n\t\tparent::_OnOutput($data);\n\t}", "public function sendEmailWithApplyLink(){\n\t}", "public function actionRetrieveEmail()\n\t{\n\t\tUtilities::updateCallbackURL();\n\t\t$this->render('retrieveEmail');\n\t}", "public function build()\n {\n $token = $this->user->verificationToken()\n ->where('type', 'activate')\n ->first();\n\n return $this->subject('Activate Your Account')\n ->view('activation_mail')\n ->with(['token' => $token]);\n }", "function admin_email_template() {\n\t\t$this->layout=\"admin\";\n\t\tConfigure::write('debug', 0);\n\t\t$staticdatas = $this->EmailTemplate->find('all');\n\t\t//print_r($staticdatas);die;\n\t\t$this->set('manageClass','selected');\n\t\t$this->set(\"staticdatas\",$staticdatas);\n\t}", "function m_dspemails()\n\t{\n\t\t$this->ObTpl=new template();\n\t\t$this->ObTpl->set_file(\"TPL_EMAIL_FILE\",$this->emailTemplate);\n\n\t\t#SETTING ALL TEMPLATE BLOCKS\n\t\t$this->ObTpl->set_block(\"TPL_EMAIL_FILE\",\"TPL_EMAIL_BLK\", \"email_blk\");\n\t\t$this->ObTpl->set_block(\"TPL_EMAIL_FILE\",\"TPL_MESSAGE_BLK\", \"message_blk\");\n\t\t$this->ObTpl->set_block(\"TPL_EMAIL_FILE\",\"TPL_MSG_BLK1\", \"msg_blk1\");\n\n\t\t#SETTING TEMPLATE VARIABLE\n\t\t$this->ObTpl->set_var(\"GRAPHICSMAINPATH\",GRAPHICS_PATH);\t\n\t\t$this->ObTpl->set_var(\"TPL_VAR_SALESURL\",SITE_URL.\"sales/\");\n\n\t\t#INTAILIZING ***\n\t\t$this->ObTpl->set_var(\"email_blk\",\"\");\t\n\t\t$this->ObTpl->set_var(\"message_blk\",\"\");\t\n\t\t$this->ObTpl->set_var(\"msg_blk1\",\"\");\t\n\t\t$this->ObTpl->set_var(\"msg_blk2\",\"\");\t\n\n\t\t$this->request['msg']=$this->libFunc->ifSet($this->request,\"msg\");\n\t\t$this->ObTpl->set_var(\"TPL_VAR_MESSAGE\",\"\");\n\n\t\t#DATABASE QUERY\n\t\t$this->obDb->query = \"SELECT * FROM \".EMAILS;\n\t\t$queryResult = $this->obDb->fetchQuery();\n\t\t$campaigncount = $this->obDb->record_count;\n\t\tif($this->request['msg']==1)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",MSG_EMAIL_INSERTED);\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t\t$this->ObTpl->parse(\"msg_blk2\",\"TPL_MSG_BLK2\");\n\t\t}\n\t\telseif($this->request['msg']==3)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",MSG_EMAIL_DELETED);\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t\t$this->ObTpl->parse(\"msg_blk2\",\"TPL_MSG_BLK2\");\n\t\t}\n\t\telseif($this->request['msg']==5)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",MSG_EMAIL_SENT);\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t\t$this->ObTpl->parse(\"msg_blk2\",\"TPL_MSG_BLK2\");\n\t\t}\n\n\t\tif($campaigncount>0)\n\t\t{\n\t\t\t#PARSING DISCOUNT BLOCK\n\t\t\tfor($j=0;$j<$campaigncount;$j++)\n\t\t\t{\t\t\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_ID\",$queryResult[$j]->iMailid_PK);\n\t\t\t\tif ($queryResult[$j]->vUserList==\"All\"){\n $this->obDb->query = \"SELECT count(*) as cnt FROM \".CUSTOMERS.\" WHERE iStatus=1 AND iMailList !=0\";\n }else{ \n $this->obDb->query = \"SELECT count(*) as cnt FROM \".LEADLIST.\" WHERE iLeadId_FK='\". $queryResult[$j]->vUserList.\"'\";\n }\n\t\t\t\t$qryRs = $this->obDb->fetchQuery();\n\t\t\t\t\n\t\t\t\tif ($queryResult[$j]->vVisitorList==\"1\"){\n $this->obDb->query = \"SELECT count(*) as cnt FROM \".NEWSLETTERS;\n\t\t\t\t $qryVs = $this->obDb->fetchQuery();\n\t\t\t\t $qryRs[0]->cnt = $qryRs[0]->cnt + $qryVs[0]->cnt;\n }\n\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_USERCOUNT\",$qryRs[0]->cnt);\n \n $this->ObTpl->set_var(\"TPL_VAR_SUBJECT\",$this->libFunc->m_displayContent($queryResult[$j]->vSubject));\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_SID\",$this->libFunc->m_displayContent($queryResult[$j]->vSid));\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_BUILDDATE\",$this->libFunc->dateFormat2($queryResult[$j]->tmBuildDate));\t\n\t\t\t\t$sentDate=$this->libFunc->dateFormat2($queryResult[$j]->tmSentDate);\n\t\t\t\tif(empty($sentDate))\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_SENTDATE\",\"Send now\");\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_VIEWLABEL\",\"View/Sent\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_SENTDATE\",$sentDate);\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_VIEWLABEL\",\"View\");\n\t\t\t\t}\n\t\t\t\t$this->ObTpl->parse(\"email_blk\",\"TPL_EMAIL_BLK\",true);\n\t\t\t}\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",$campaigncount.\" records found\");\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MESSAGE\",MSG_NOEMAILS);\n\t\t\t$this->ObTpl->parse(\"message_blk\",\"TPL_MESSAGE_BLK\");\n\t\t}\n\t\n\t\treturn($this->ObTpl->parse(\"return\",\"TPL_EMAIL_FILE\"));\n\t}", "private function ReplaceEmailTaskTemplate($pTemplate, $pDataToFromReplace) {\n\t\t$doc_id = (int)$pDataToFromReplace['document_id'];\n\t\t$role = (int)$pDataToFromReplace['user_role'];\n\t\t$u \t\t= SITE_URL; //JOURNAL_URL; OK until there is only 1 journal.\n\t\t$a \t\t= '<a target=\"_blank\" href=\"' . $u;\n\t\t$lDict = array();\n\t\t\n\t\tif($this->m_customFlag) {\n\t\t\tforeach ($pDataToFromReplace as $key => $value) {\n\t\t\t\t$lDict['{' . $key . '}'] = $value;\n\t\t\t}\n\t\t} else {\n\t\t\t$lDict = array(\n\t\t\t\t'{site_url}' \t\t\t=> $u,\n\t\t\t\t'{upass}'\t\t\t\t=> $this->m_uPass,\n\t\t\t\t'{first_name}' \t\t=> $pDataToFromReplace['first_name'], \n\t\t\t\t'{last_name}' \t\t\t=> $pDataToFromReplace['last_name'], \n\t\t\t\t'{document_id}' \t\t=> $pDataToFromReplace['document_id'], \n\t\t\t\t'{document_title}' \t\t=> trim($pDataToFromReplace['document_title']),\n\t\t\t\t'{usr_title}'\t\t\t=> $pDataToFromReplace['usr_title'],\n\t\t\t\t'{user_name}'\t\t\t=> $pDataToFromReplace['user_name'],\n\t\t\t\t'{author_list}'\t\t\t=> $pDataToFromReplace['author_list'],\n\t\t\t\t'{review_type_name}'\t=> $pDataToFromReplace['review_type_name'],\n\t\t\t\t'{due_date}'\t\t\t=> $pDataToFromReplace['due_date'],\n\t\t\t\t'{due_date_days}' \t\t=> $pDataToFromReplace['due_date_days'],\n\t\t\t\t'{journal_name}' \t\t=> $pDataToFromReplace['journal_name'],\n\t\t\t\t'{journal_email}' \t\t=> $pDataToFromReplace['journal_email'],\n\t\t\t\t'{journal_signature}' \t=> $pDataToFromReplace['journal_signature'],\n\t\t\t\t'{user_role}' \t\t\t=> $pDataToFromReplace['user_role'],\n\t\t\t\t'{journal_id}' \t\t\t=> $pDataToFromReplace['journal_id'],\n\t\t\t\t'{SE_first_name}' \t\t=> $pDataToFromReplace['se_first_name'],\n\t\t\t\t'{SE_last_name}' \t\t=> $pDataToFromReplace['se_last_name'],\n\t\t\t\t'{SE_usr_title}' \t\t=> $pDataToFromReplace['se_usr_title'],\n\t\t\t\t'{SE_email}' \t\t\t=> $pDataToFromReplace['se_email'],\n\t\t\t\t'{R_first_name}' \t\t=> $pDataToFromReplace['r_first_name'],\n\t\t\t\t'{R_last_name}' \t\t=> $pDataToFromReplace['r_last_name'],\n\t\t\t\t'{R_usr_title}' \t\t=> $pDataToFromReplace['r_usr_title'],\n\t\t\t\t'{SE_tax_expertize}' \t=> $pDataToFromReplace['se_tax_expertize'],\n\t\t\t\t'{SE_geo_expertize}' \t=> $pDataToFromReplace['se_geo_expertize'],\n\t\t\t\t'{SE_sub_expertize}' \t=> $pDataToFromReplace['se_sub_expertize'],\n\t\t\t\t'{SE_createusr_tax_expertize}' \t=> $pDataToFromReplace['se_createusr_tax_expertize'],\n\t\t\t\t'{SE_createusr_geo_expertize}' \t=> $pDataToFromReplace['se_createusr_geo_expertize'],\n\t\t\t\t'{SE_createusr_sub_expertize}' \t=> $pDataToFromReplace['se_createusr_sub_expertize'],\n\t\t\t\t'{NomReview_due_days}'\t=> $pDataToFromReplace['nomreview_due_days'],\n\t\t\t\t'{NomReview_due_date}'\t=> $pDataToFromReplace['nomreview_due_date'],\n\t\t\t\t'{PanReview_due_days}'\t=> $pDataToFromReplace['panreview_due_days'],\n\t\t\t\t'{PanReview_due_date}'\t=> $pDataToFromReplace['panreview_due_date'],\n\t\t\t\t'{SE_invite_reviewers_days}'\t=> $pDataToFromReplace['se_invite_reviewers_days'],\n\t\t\t\t'{SE_can_take_decision_days}'\t=> $pDataToFromReplace['se_can_take_decision_days'],\n\t\t\t\t'{site_href}' \t\t\t=> $a . '\">'. $u .'</a>',\n\t\t\t\t'{tasks_href}' \t\t\t=> $a . 'dashboard\">Your tasks</a>',\n\t\t\t\t'{document_editor_href}'=> $a . 'view_document.php?id=' . $doc_id . '&view_role=' . (int)JOURNAL_EDITOR_ROLE . '\">' . $pDataToFromReplace['document_title'] . '</a>',\n\t\t\t\t'{autologging_href}' \t=> $a . 'login.php?u_autolog_hash=' . $pDataToFromReplace['autolog_hash'] . '&document_id=' . $doc_id . '&view_role=' . $role . '\" class=\"' . HIDDEN_EMAIL_ELEMENT . '\">login</a>',\n\t\t\t\t'{autologging_doc_link}'=> $u . 'login.php?u_autolog_hash=' . $pDataToFromReplace['autolog_hash'] . '&document_id=' . $doc_id . '&view_role=' . $role,\n\t\t\t\t'{autologging_link}' \t=> $u . 'login.php?u_autolog_hash=' . $pDataToFromReplace['autolog_hash'],\t\t\n\t\t\t\t'{document_link}' \t\t=> $u . 'view_document.php?id=' . $doc_id . '&view_role=' . $role,\n\t\t\t);\n\t\t}\n\t\t\n\t\t$lTempl = strtr($pTemplate, $lDict);\n\t\treturn $lTempl;\n\t}", "function getCopyDialog()\n {\n $smarty = get_smarty(); \n $smarty->assign(\"scalixEmailAddress\",set_post($this->scalixEmailAddress));\n $str = $smarty->fetch(get_template_path(\"paste_generic.tpl\",TRUE,dirname(__FILE__))); \n $ret = array();\n $ret['string'] = $str;\n $ret['status'] = \"\";\n return($ret);\n \n }", "function bwrt_site_new_message() {\n $templates = bwrt_get_default_pages();\n\n ?>\n <h3>BWR Club Templates</h3>\n <p>This new club site will include <b><?php echo count($templates) ?></b> template page(s).\n To change the club site templates, toggle <em>BWR Template Page</em> in the page editor.</p>\n <?php\n}", "public function getAction()\n {\n $emailTemplatesService = $this->container->get('dft_foapi.email_templates');\n\n return $this->render('dftFoapiBundle:Common:data.json.twig', array(\n \"data\" => $emailTemplatesService->fetchOne(\n $this->container->get('dft_foapi.login')->getAuthenticatedUserId()\n )\n )\n );\n }", "function emailforsurveyCourse($guid, $id, $email, $name, $form, $mentor) {\n\n global $wpdb;\n\n $slug = PAGE_SLUG;\n $btn_url = site_url() . '/' . $slug . '?survey=' . $id . '&guid=' . $guid;\n $btn_url = \"http://www.google.com\";\n\n $date = date(\"Y-m-d H:i:s\");\n $site_name = TR_SITE_NAME;\n $admin_email = get_option('admin_email');\n $headers = 'From: ' . $admin_email . \"\\r\\n\" .\n 'Reply-To: ' . $admin_email . \"\\r\\n\" .\n 'MIME-Version: 1.0' . \"\\r\\n\" .\n 'Content-type: text/html; charset=utf-8' . '\\r\\n' .\n 'X-Mailer: PHP/' . phpversion();\n\n $template = tt_get_template(\"survey_send_course\");\n $subj = $template->subject;\n $subj = str_replace(\"{{course_name}}\", $mentor, $subj);\n $msg = $template->content;\n $msg = str_replace(array('{{username}}', '{{course_name}}', '{{url}}', '{{site_name}}'), array($name, $mentor, $btn_url, $site_name), $msg);\n custom_mail($email, $subj, $msg, EMAIL_TYPE, \"\");\n}", "function show_coppa()\n{\n\n\tglobal $userdata, $template, $lang, $phpbb_root_path, $phpEx, $db, $registration_hash;\n\n\t###############################################\n\n\t$sql = \"SELECT pt.post_subject, pt.post_text \n\t\tFROM \". POSTS_TABLE . \" p, \" . POSTS_TEXT_TABLE . \" pt \n\t\tWHERE (pt.post_id = p.post_id) AND (p.forum_id = 87)\n\t\tORDER BY p.post_id ASC \n\t\t\";\n\n\tif (!$result = $db->sql_query($sql))\n\t{\n\t\tmessage_die(GENERAL_ERROR, 'Could not query agreement information', '', __LINE__, __FILE__, $sql);\n\t}\n\n\t$agree_row = array();\n\twhile ($row = $db->sql_fetchrow($result))\n\t{\n\t\t$agree_row[] = $row;\n\t}\n\n\tfor ($i = 0; $i < count($agree_row); $i++)\n\t{\n\n\t\t$template->assign_block_vars('agree_row', array(\n\t\t\t'TITLE' => $agree_row[$i]['post_subject'],\n\t\t\t'TEXT' => unprepare_message($agree_row[$i]['post_text'])\n\t\t\t)\n\t\t);\n\t}\n\n\t###############################################\n\n\t$template->set_filenames(array(\n\t\t'body' => 'agreement.tpl')\n\t);\n\n\t$template->assign_vars(array(\n\t\t'REGISTRATION' => $lang['Registration'],\n\t\t'AGREEMENT' => str_replace(\"\\n\", \"\\n<br />\\n\", $agreementText),\n\t\t\"AGREE_OVER_13\" => $lang['Agree_over_13'],\n\t\t\"AGREE_UNDER_13\" => $lang['Agree_under_13'],\n\t\t'DO_NOT_AGREE' => $lang['Agree_not'],\n\n\t\t\"U_AGREE_OVER13\" => \"profile.$phpEx?mode=register&amp;agreed=$registration_hash&amp;sid=\" . $userdata['session_id'],\n\t\t\"U_AGREE_UNDER13\" => \"profile.$phpEx?mode=register&amp;agreed=$registration_hash&amp;coppa=true&amp;sid=\" . $userdata['session_id']\n\t\t//\"U_AGREE_OVER13\" => append_sid(\"profile.$phpEx?mode=register&amp;agreed=$registration_hash\"),\n\t\t//\"U_AGREE_UNDER13\" => append_sid(\"profile.$phpEx?mode=register&amp;agreed=$registration_hash&amp;coppa=true\")\n\t\t)\n\t);\n\n\t$template->pparse('body');\n\n}", "public function pageBudgetmailer()\n {\n print new Template( 'options' );\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}", "function generateApprovedFriMessageBody($sender, $receiver) {\n $receivername = $receiver['first_name'].\" \".$receiver['last_name'];\n $sendername = $sender['first_name'].\" \".$sender['last_name'];\n\n $message = \"\";\n $message .=\"<html><head><title></title></head>\n <body>\n <img src='\".BASE_URL.LOGO_URL.\"'>\n <p>\".$receivername.\" approved your MyNotes4u Friend Album</p>\n </body>\n </html>\";\n return $message;\n}", "public function toMail($notifiable)\n {\n // dd(Config(\"auth.user_mode\"));\n $url = url(Config(\"auth.user_mode\").'/reset_password').'/'.$this->token;\n // $url = url('/').'/admin/reset_password/'.$this->token;\n\n $verification_url = '<a target=\"_blank\" style=\"border: 1px solid #ff4747; color: #ffffff; display: block; font-size: 18px; letter-spacing: 0.5px; background-color: #ff4747;\n margin: 0 auto; max-width: 200px; padding: 11px 6px; height: initial; text-align: center; text-transform: capitalize; text-decoration: none; width: 100%; border-radius: 5px;\" href='.$url.'>Reset Password</a><br/>';\n\n // dd($verification_url);\n\n $arr_email_data = [];\n\n $obj_email_data = EmailTemplateModel::where('id','3')->first();\n\n if($obj_email_data)\n {\n $arr_email_data = $obj_email_data->toArray();\n }\n\n $content = '';\n $content .= $arr_email_data['template_html'];\n\n $content = str_replace('##SUBJECT##', $arr_email_data['template_subject'], $content);\n $content = str_replace('##USERNAME##', $notifiable->company_name, $content);\n $content = str_replace('##VERIFICATION_URL##', $verification_url, $content);\n\n return (new MailMessage)->view('user.email.general', array('content'=>$content))->subject(config('app.project.name').' :Forgot Password');\n }", "public function get_applicant_content() {\n \n global $CFG, $SESSION, $USER;\n require_once($CFG->dirroot.'/enrol/locallib.php');\n require_once($CFG->dirroot.'/enrol/ukfilmnet/signuplib.php');\n require_once($CFG->dirroot.'/lib/classes/session/file.php');\n require_once($CFG->dirroot.'/cohort/lib.php');\n \n $applicantinput = '';\n $mform = new applicant_form();\n\n //Form processing and displaying is done here\n if ($mform->is_cancelled()) {\n go_to_page(strval(0));\n } else if ($form_data = $mform->get_data()) {\n //Build a object we can use to pass variables to the email we will send to applicant\n $username = $form_data->email;\n $password = make_random_password();\n $code = generate_random_verification_code();\n $emailvariables = (object) array('username'=>$username, \n 'password'=>$password, \n 'code'=>$code,\n 'helpdesk_url'=>get_string('helpdesk_url', 'enrol_ukfilmnet'),\n 'emailverify_url'=>PAGE_WWWROOT.get_string('emailverify_url', 'enrol_ukfilmnet'));\n // Create a new user\n $newuser = (object) array('email'=>$form_data->email,\n 'username'=>$username,\n 'firstname'=>$form_data->firstname,\n 'lastname'=>$form_data->familyname,\n 'currentrole'=>$form_data->role,\n 'applicationprogress'=>convert_progressnum_to_progressstring(2),\n 'verificationcode'=>$code);\n $user = create_applicant_user($newuser, $password);\n \n // Set the new user's applicationprogress variable\n profile_load_data($user);\n $user->profile_field_applicationprogress = convert_progressnum_to_progressstring(2);\n\n // Add the new user to the Applicants cohort\n $cohort_id = create_cohort_if_not_existing('applicants');\n cohort_add_member($cohort_id, $user->id);\n\n // Make the new user the currently logged in user\n \\core\\session\\manager::set_user($user);\n \n // Email the applicant user\n email_to_user($user, get_admin(), get_string('verification_subject', 'enrol_ukfilmnet'), get_string('verification_text', 'enrol_ukfilmnet', $emailvariables));\n \n } else {\n // this branch is executed if the form is submitted but the data doesn't validate and the form should be redisplayed or on the first display of the form.\n $toform = $mform->get_data();\n //Set default data (if any)\n $mform->set_data($toform);\n //displays the form\n $applicantinput = $mform->render();\n }\n return $applicantinput;\n }", "public function create()\n {\n return $this->form->render('mconsole::personal.form');\n }", "function getEmailContent($config, $row) {\r\n\t\trequire_once JPATH_ROOT.'/administrator/components/com_osmembership/legacy/view.php';\r\n\t\t$db = & JFactory::getDBO() ;\r\n\t\t$viewConfig['name'] = 'form' ;\r\n\t\t$viewConfig['base_path'] = JPATH_ROOT.'/components/com_osmembership/emailtemplates' ;\r\n\t\t$viewConfig['template_path'] = JPATH_ROOT.'/components/com_osmembership/emailtemplates' ;\r\n\t\t$viewConfig['layout'] = 'email' ;\r\n\t\t$view = new LegacyView($viewConfig) ;\r\n\t\t$sql = 'SELECT title FROM #__osmembership_plans WHERE id='.$row->plan_id ;\r\n\t\t$db->setQuery($sql) ;\r\n\t\t$planTitle = $db->loadResult();\r\n\t\t$view->assignRef('planTitle', $planTitle) ;\r\n\t\t$view->assign('config', $config) ;\r\n\t\t$view->assignRef('row', $row) ;\r\n\t\tob_start();\r\n\t\t$view->display() ;\r\n\t\t$text = ob_get_contents() ;\r\n\t\tob_end_clean();\r\n\t\r\n\t\treturn $text ;\r\n\t}", "function sendMail($template, $replace_content, $to, $reply_to_mail = '')\n{\n global $r_debug, $db_lnk, $_server_domain_url;\n if (file_exists(SITE_URL_FOR_SHELL)) {\n include_once SITE_URL_FOR_SHELL;\n }\n $default_content = array(\n '##SITE_NAME##' => SITE_NAME,\n '##SITE_URL##' => $_server_domain_url,\n '##FROM_EMAIL##' => DEFAULT_FROM_EMAIL_ADDRESS,\n '##CONTACT_EMAIL##' => DEFAULT_CONTACT_EMAIL_ADDRESS\n );\n $qry_val_arr = array(\n $template\n );\n $emailFindReplace = array_merge($default_content, $replace_content);\n $templates = executeQuery('SELECT * FROM email_templates WHERE name = $1', $qry_val_arr);\n if ($templates) {\n $message = strtr($templates['email_text_content'], $emailFindReplace);\n $message.= '<div itemscope itemtype=\"http://schema.org/EmailMessage\"><div itemprop=\"potentialAction\" itemscope itemtype=\"http://schema.org/ViewAction\"><link itemprop=\"target\" href=\"' . $_server_domain_url . '\"/><meta itemprop=\"name\" content=\"View on Restyaboard\"/></div><meta itemprop=\"description\" content=\"View on Restyaboard\"/></div>';\n $subject = strtr($templates['subject'], $emailFindReplace);\n $from_email = strtr($templates['from_email'], $emailFindReplace);\n $headers = 'From:' . $from_email . PHP_EOL;\n if (!empty($reply_to_mail)) {\n $headers.= 'Reply-To:' . $reply_to_mail . PHP_EOL;\n }\n $headers.= \"MIME-Version: 1.0\" . PHP_EOL;\n $headers.= \"Content-Type: text/html; charset=UTF-8\" . PHP_EOL;\n $headers.= \"X-Mailer: Restyaboard (0.6.8; +http://restya.com/board)\" . PHP_EOL;\n $headers.= \"X-Auto-Response-Suppress: All\" . PHP_EOL;\n if (is_plugin_enabled('r_sparkpost')) {\n require_once PLUGIN_PATH . DS . 'SparkPost' . DS . 'functions.php';\n $result = SparkPostMail($to, $subject, $message, $headers, DEFAULT_FROM_EMAIL_ADDRESS);\n } else {\n $result = mail($to, $subject, $message, $headers, '-f' . DEFAULT_FROM_EMAIL_ADDRESS);\n }\n if (R_DEBUG) {\n if (!$result) {\n $compose_string = 'F, ' . $from_email . ', ' . $to . ', ' . $subject;\n } else {\n $compose_string = 'S, ' . $from_email . ', ' . $to . ', ' . $subject;\n }\n error_log($compose_string, 3, CACHE_PATH . DS . 'mail.log');\n }\n }\n}", "public function manage_email_template($template='')\n {\n $template = 'booking-mail';\n $this->load->model('admin/admin_model');\n $this->gen_contents['page_heading'] = 'Update Email Template';\n\n if($this->input->post(\"update_et\",true)){\n $post_data['body'] = $this->input->post(\"body\",true);\n $response = $this->admin_model->process_email_template($post_data);\n if($response == \"edited\"){\n sf('success_message', 'Email template has been updated successfully');\n redirect(\"admin/email-template\");\n }\n }\n\n $this->gen_contents['email_template'] = $this->admin_model->get_email_template($template);\n //p($this->gen_contents['booking_details']); exit;\n //rendering page \n $this->template->set_template('admin');\n $this->template->write_view('content', 'admin/email-template-manage', $this->gen_contents);\n $this->template->render();\n }", "protected function getTemplate(){\n\t\treturn 'invoice_form_html.tpl';\n\t}", "public function mailRentalPeriodReminder(Request $request)\n {\n $bike = new Bike(['name' => 'Sample Bike']);\n $bike->id = 1;\n $mail = new Mail\\RentalPeriodReminder($bike);\n \n return $mail;\n }", "public function getNotificationEmail() {}", "function appthemes_bank_transfer_pending_email( $post ) {\n\n\t$content = '';\n\n\t$content .= html( 'p', __( 'A new order is waiting to be processed. Once you receive payment, you should mark the order as completed.', APP_TD ) );\n\n\t$order_link = html_link( get_edit_post_link( $post ), __( 'Review this order', APP_TD ) );\n\n\t$all_orders = html_link(\n\t\tadmin_url( 'edit.php?post_status=tr_pending&post_type=transaction' ),\n\t\t__( 'review all pending orders', APP_TD ) );\n\n\t// translators: <Single Order Link> or <Link to All Orders>\n\t$content .= html( 'p', sprintf( __( '%1$s or %2$s', APP_TD ), $order_link, $all_orders ) );\n\n\t$blogname = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES );\n\n\t$subject = sprintf( __( '[%1$s] Pending Order #%2$d', APP_TD ), $blogname, $post->ID );\n\n\tif( ! function_exists( 'appthemes_send_email' ) )\n\t\treturn false;\n\n\t$email = array( 'to' => get_option( 'admin_email' ), 'subject' => $subject, 'message' => $content );\n\t$email = apply_filters( 'appthemes_email_admin_bt_pending', $email, $post );\n\n\tappthemes_send_email( $email['to'], $email['subject'], $email['message'] );\n}", "protected function getTemplate() {\n\t\treturn new Template('Premanager', 'userForm');\n\t}", "protected function __CarregaEmailTemplate($ref)\n{\n\t$sql = $this->con->prepare('select template_email_assunto,template_email_mensagem from tb_template_email where template_email_ref=:ref');\n\t$sql->bindValue(':ref',$ref,PDO::PARAM_STR);\n\t\n\t$sql->execute();\n\t\n\t$out = $sql->fetch(PDO::FETCH_ASSOC);\n\t\n\t$sql->closeCursor();\n\t\n\treturn $out;\n}", "function parseEmailAction() {\n $request = $this->getRequest()->request;\n $respondToFeedbackService = $this->get('e2w_respond_to_feedback_service');\n $to = $request->get('to') . '';\n $respondToFeedbackService->createFeedbackResponseFromEmail($to, $request->get('html'), $request->get('text'));\n return new Response();\n }", "public function getTemplate() {}", "public function addPickupOrderEmailTemplate()\n {\n $template = $this->templateFactory->create();\n $template->setTemplateCode('New Pickup Order');\n $template->setTemplateText($this->getEmailTemplate());\n $template->setTemplateType(TemplateTypesInterface::TYPE_HTML);\n $template->setTemplateSubject(\n '{{trans \"Your %store_name order confirmation\" store_name=$store.getFrontendName()}}'\n );\n $template->setOrigTemplateCode('sales_email_order_template');\n // @codingStandardsIgnoreLine\n $template->setOrigTemplateVariables('{\"var formattedBillingAddress|raw\":\"Billing Address\",\"var order.getEmailCustomerNote()\":\"Email Order Note\",\"var order.increment_id\":\"Order Id\",\"layout handle=\\\"sales_email_order_items\\\" order=$order area=\\\"frontend\\\"\":\"Order Items Grid\",\"var payment_html|raw\":\"Payment Details\",\"var formattedShippingAddress|raw\":\"Shipping Address\",\"var order.getShippingDescription()\":\"Shipping Description\",\"var shipping_msg\":\"Shipping message\"}');\n\n $this->templateResource->save($template);\n }", "protected function handleGeneratePasswordTemplate()\n {\n $id = $this->config['passwordsetting']['generatepasswordtmpl'];\n if (empty($id)) {\n return;\n }\n $bodyHtml = $this->getEmailTemplateBodyHtml($id);\n $find = '<p> $contact_user_link_guid </p>';\n\n if (!empty($bodyHtml) && false !== strpos($bodyHtml, $find)) {\n $replace = '<p> <a title=\"$contact_user_link_guid\" href=\"$contact_user_link_guid\">$contact_user_link_guid</a> </p>';\n $bodyHtml = str_replace($find, $replace, $bodyHtml);\n\n $this->updateEmailTemplateBodyHtml($id, $bodyHtml);\n }\n }", "public function notifyOwner()\n {\n global $config, $reefless, $account_info;\n\n $reefless->loadClass('Mail');\n\n $mail_tpl = $GLOBALS['rlMail']->getEmailTemplate(\n $config['listing_auto_approval']\n ? 'free_active_listing_created'\n : 'free_approval_listing_created'\n );\n\n if ($config['listing_auto_approval']) {\n $link = $reefless->getListingUrl(intval($this->listingID));\n } else {\n $myPageKey = $config['one_my_listings_page'] ? 'my_all_ads' : 'my_' . $this->listingType['Key'];\n $link = $reefless->getPageUrl($myPageKey);\n }\n\n $mail_tpl['body'] = str_replace(\n array('{username}', '{link}'),\n array(\n $account_info['Username'],\n '<a href=\"' . $link . '\">' . $link . '</a>',\n ),\n $mail_tpl['body']\n );\n $GLOBALS['rlMail']->send($mail_tpl, $account_info['Mail']);\n }", "public function RegistrationUnderApproval() {\n $this->Render();\n }", "function paid_sendEmail_owner($details) {\n\t\t\t\t$currencycode = $details->currCode;\n\t\t\t\t$currencysign = $details->currSymbol;\n\n\t\t\t\t$custid = $details->bookingUser;\n\t\t\t\t$country = $details->userCountry;\n\t\t\t\t$name = $details->userFullName;\n\t\t\t\t$phone = $details->userMobile;\n\t\t\t\t$paymethod = $details->paymethod;\n\t\t\t\t$invoiceid = $details->id;\n\t\t\t\t$refno = $details->code;\n\t\t\t\t$totalamount = $details->checkoutTotal;\n\t\t\t\t$deposit = $details->checkoutAmount;\n\t\t\t\t$duedate = $details->expiry;\n\t\t\t\t$date = $details->date;\n\t\t\t\t$remaining = $details->remainingAmount;\n\t\t\t\t$custemail = $details->accountEmail;\t\t\t\t\n\t\t\t\n\t\t\t\t$sendto = $this->ownerEmail($details->module, $details->itemid);\n\t\t\t\t$sitetitle = \"\";\n\t\t\t\t\n\t\t\t\t$message = $this->mailHeader;\n\t\t\t\t$message .= \"<h4><b>Booking Paid Successfully</b></h4>\";\n\t\t\t\t$message .= \"Invoice No.: \" . $invoiceid . \".<br>\";\n\t\t\t\t//$message .= \"Payment Method: \" . $paymethod . \".<br><br>\";\n\t\t\t\t$message .= \"Deposit Amount: \" . $currencycode . \" \" . $currencysign . $deposit . \"<br>\";\n\t\t\t\t$message .= \"Total Amount: \" . $currencycode . \" \" . $currencysign . $totalamount . \"<br><br>\";\n\t\t\t\t$message .= \"<h4><b>Customer Information</b></h4>\";\n\t\t\t\t$message .= \"Customer ID: \" . $custid . \"<br>\";\n\t\t\t\t$message .= \"Name : \" . $name . \"<br>\";\n\t\t\t\t$message .= \"Email : \" . $custemail . \"<br>\";\n\t\t\t\t$message .= \"Country : \" . $country . \"<br>\";\n\t\t\t\t$message .= \"Phone : \" . $phone . \"<br>\";\n\t\t\t\t$message .= \"<br> To view Invoice <a href=\" . base_url() . \"invoice?id=\" . $invoiceid . \"&sessid=\" . $refno . \" >\" . base_url() . \"invoice?id=\" . $invoiceid . \"&sessid=\" . $refno . \"</a>\";\n\t\t\t\t$message .= $this->mailFooter;\n\t\t\t\t$this->email->set_newline(\"\\r\\n\");\n\t\t\t\t$this->email->from($this->sendfrom);\n\t\t\t\t$this->email->to($sendto);\n\t\t\t\t$this->email->subject('Booking Payment Notification');\n\t\t\t\t$this->email->message($message);\n\t\t\t\t$this->email->send();\n\t\t}", "public function index()\n {\n return view('admin.Mails.create',[\n 'user' => User::all(),\n 'newsletter' => Newsletter::all()\n ]);\n }", "function emailforsurveyresult($survey) {\n\n global $wpdb;\n $id = $survey->id;\n $user_id = $survey->user_id;\n $user = get_user_by('id', $user_id);\n\n $mentor_id = $survey->mentor_id;\n $mentor = get_user_by('id', $mentor_id);\n\n\n $form = $wpdb->get_row\n (\n $wpdb->prepare\n (\n \"SELECT * FROM \" . survey_forms() . \" \"\n . \"WHERE id = %d\", $survey->survey_id\n )\n );\n\n $slug = PAGE_SLUG;\n $url = site_url() . \"/$slug?survey=\" . $id . \"&guid=\" . $survey->guid;\n $btnaccept = \"<a href='\" . $url . \"'>Click Here To Check Your Survey</a> <br/><br/>\";\n\n $date = date(\"Y-m-d H:i:s\");\n $site_name = TR_SITE_NAME;\n $admin_email = get_option('admin_email');\n $headers = 'From: ' . $admin_email . \"\\r\\n\" .\n 'Reply-To: ' . $admin_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 /* for user */\n\n $template = tt_get_template(\"survey_result_user\");\n $subj = $template->subject;\n\n $msg = $template->content;\n $msg = str_replace(array('{{username}}', '{{survey_title}}', '{{mentor_name}}', '{{url}}', '{{site_name}}'), array($user->data->display_name, $form->title, $mentor->data->display_nam, $url, $site_name), $msg);\n\n custom_mail($user->data->user_email, $subj, $msg, EMAIL_TYPE, \"\");\n\n\n /* for mentor */\n\n $url = site_url() . \"/wp-admin/admin.php?page=survey_result&survey_id=\" . $id;\n\n $template = tt_get_template(\"survey_result_mentor\");\n $subj = $template->subject;\n\n $msg = $template->content;\n $msg = str_replace(array('{{username}}', '{{survey_user}}', '{{survey_title}}', '{{url}}', '{{site_name}}'), array($mentor->data->display_name, $user->data->display_name, $form->title, $url, $site_name), $msg);\n\n custom_mail($mentor->data->user_email, $subj, $msg, EMAIL_TYPE, \"\");\n}", "function _erpal_contract_helper_get_billable_text() {\n\n $default_text = t('Payment for !service_category_token contract \"!contract_title_token\"', array('!service_category_token' => '[erpal_contract_billable_subject:service_category]', '!contract_title_token' => '[erpal_contract_billable_subject:contract_title]'));\n return variable_get('erpal_billable_text_erpal_contract', $default_text);\n}", "public function get_content_plain() {\n\t\tob_start();\n\t\twc_get_template($this->template_plain, [\n\t\t\t'email_heading'\t=> $this->get_heading(),\n\t\t\t'sent_to_admin'\t=> true,\n\t\t\t'plain_text'\t=> true,\n\t\t\t'email'\t\t\t=> $this,\n\t\t\t'subscribers'\t=> $this->subscribers,\n\t\t], '', $this->template_base);\n\t\treturn ob_get_clean();\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 getTemplateRequest() {\n $result = $this->db->query(\"select * from tblmvbsmstemprequest where str_client_id_fk=1\");\n return $result->result();\n }", "public function getUrlProcessNewMail() {\r\n return $this->getUrl('*/*/GetNewMailsAjax');\r\n }", "public function create(){\n\t\t$args = $this->getArgs();\n\t\t$out = $this->getModel()->getUcrDataByToken(UserController::getUcrRequestTokenHash($args[\"GET\"][\"token\"]));\n\t\tinclude 'gui/template/UserTemplate.php';\n\t}", "public function create()\n {\n return view('Admin.pages.company.create');\n }", "public function welcome_apply_message() {\n global $OUTPUT;\n\n $a = new \\stdClass();\n $a->uploadpage = get_string('tabutemplatepage3', 'mod_surveypro');\n $a->savepage = get_string('tabutemplatepage2', 'mod_surveypro');\n $message = get_string('welcome_utemplateapply', 'mod_surveypro', $a);\n echo $OUTPUT->notification($message, 'notifymessage');\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 thank_you_page()\r\n {\r\n if ($this->instructions) {\r\n return $this->displayPaymentApprovalInstructions();\r\n }\r\n }", "function get_personal_message_creation_url()\r\n {\r\n return $this->get_url(array(self :: PARAM_ACTION => self :: ACTION_CREATE_PUBLICATION));\r\n }", "public function emailTemplate($body = '')\n {\n $view['body'] = $body;\n return $this->load->view('template/email', $view, true);\n }", "function generateApprovedFamMessageBody($sender, $receiver, $family_relation) {\n $receivername = $receiver['first_name'].\" \".$receiver['last_name'];\n $sendername = $sender['first_name'].\" \".$sender['last_name'];\n\n $message = \"\";\n $message .=\"<html><head><title></title></head>\n <body>\n <img src='\".BASE_URL.LOGO_URL.\"'>\n <p>\n \".$receivername.\" approved your MyNotes4u Family Album\n </p>\n </body>\n </html>\";\n return $message;\n}", "public function index()\n {\n $logged_emp_company_id = MenuPageController::loggedUser('company_id');\n $leave_approval_method = LeaveApprovalMethod::where('company_id',$logged_emp_company_id)->first();\n\n return view('module.settings.leaveApprovalMethod', ['app_method' => $leave_approval_method, 'logged_emp_com' => $logged_emp_company_id]);\n }", "function generateFriMessageBody($user, $content, $friend_id) {\n $approve_url = SMTP_ENDPOINT.\"?type=friend&&from=\".$user['id'].\"&&to=\".$content['id'].\"&&friend_id=\".$friend_id.\"&&status=approved\";\n $delete_url = SMTP_ENDPOINT.\"?type=friend&&from=\".$user['id'].\"&&to=\".$content['id'].\"&&friend_id=\".$friend_id.\"&&status=delete\";\n $message = \"\";\n\n $message .=\"<html><head><title></title></head>\n <body>\n <img src='\".BASE_URL.LOGO_URL.\"'>\n <p>\n Hello \".$content['first_name'].\" \".$content['last_name'].\"!\n </p>\n <p>\n You have been invited to become part of \".$user['first_name'].\" \".$user['last_name'].\" MyNotes4u Friend Album.\n </p>\n <p>\n <span><a href=\".$approve_url.\">Approve</a></span>&nbsp;&nbsp;&nbsp;&nbsp;\n <span><a href=\".$delete_url.\">Delete</a></span>\n </p>\n </body>\n </html>\";\n return $message;\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.53917783", "0.5390267", "0.5369813", "0.5365983", "0.53647316", "0.5363821", "0.5349509", "0.5343096", "0.5341043", "0.53324836", "0.533069", "0.53074914", "0.53048056", "0.5299206", "0.529636", "0.5292791", "0.5284463", "0.5283178", "0.527409", "0.5269913", "0.5268055", "0.52673185", "0.5266359", "0.52612597", "0.52546537", "0.52503204", "0.524442", "0.5240188", "0.52387446", "0.5238362", "0.523664", "0.5232913", "0.52273375", "0.5219411", "0.52174777", "0.52155054", "0.5215426", "0.5206947", "0.5200793", "0.5200311", "0.5196739", "0.51960474", "0.5191931", "0.5189198", "0.5187307", "0.51810855", "0.5180885", "0.5176287", "0.5176136", "0.517247", "0.51710653", "0.51586163", "0.51585406", "0.515713", "0.5150718", "0.51500994", "0.5146894", "0.51406944", "0.5136339", "0.5134717", "0.5128661", "0.51259154", "0.5117807", "0.5115943", "0.51110405", "0.5101886", "0.51004887", "0.5099263", "0.509806", "0.5092075" ]
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}", "function simplenews_subscription_list_remove($form, &$form_state) {\n $form['emails'] = array(\n '#type' => 'textarea',\n '#title' => t('Email addresses'),\n '#cols' => 60,\n '#rows' => 5,\n '#description' => t('Email addresses must be separated by comma, space or newline.'),\n );\n\n $form['newsletters'] = array(\n '#type' => 'fieldset',\n '#description' => t('Unsubscribe from'),\n '#tree' => TRUE,\n );\n\n foreach (simplenews_newsletter_get_all() as $newsletter) {\n $form['newsletters'][$newsletter->newsletter_id] = array(\n '#type' => 'checkbox',\n '#title' => check_plain($newsletter->name),\n '#description' => check_plain($newsletter->description),\n );\n }\n\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Unsubscribe'),\n );\n return $form;\n}", "protected function deleteOwnAccount4()\n\t{\t\n\t\tglobal $ilUser, $ilAuth, $ilSetting, $ilLog;\n\t\t\n\t\tif(!(bool)$ilSetting->get('user_delete_own_account') ||\n\t\t\t$ilUser->getId() == SYSTEM_USER_ID ||\n\t\t\t!$ilUser->hasDeletionFlag())\n\t\t{\n\t\t\t$this->ctrl->redirect($this, \"showGeneralSettings\");\n\t\t}\n\t\t\n\t\t// build notification\n\t\t\n\t\tinclude_once \"./Services/Notification/classes/class.ilSystemNotification.php\";\n\t\t$ntf = new ilSystemNotification();\n\t\t$ntf->setLangModules(array(\"user\"));\t\t\n\t\t$ntf->addAdditionalInfo(\"profile\", $ilUser->getProfileAsString($this->lng), true);\t\t\n\t\t\n\t\t// mail message\n\t\tilDatePresentation::setUseRelativeDates(false);\n\t\t$ntf->setIntroductionDirect(\n\t\t\tsprintf($this->lng->txt(\"user_delete_own_account_email_body\"), \n\t\t\t\t$ilUser->getLogin(), \n\t\t\t\tILIAS_HTTP_PATH, \n\t\t\t\tilDatePresentation::formatDate(new ilDateTime(time(), IL_CAL_UNIX))));\n\t\t\n\t\t$message = $ntf->composeAndGetMessage($ilUser->getId(), null, null, true);\n\t\t$subject = $this->lng->txt(\"user_delete_own_account_email_subject\");\t\n\t\t\n\t\t\n\t\t// send notification\n\t\t\n\t\tinclude_once \"Services/Mail/classes/class.ilMail.php\";\n\t\t$mail = new ilMail(ANONYMOUS_USER_ID);\n\t\t\n\t\t$user_email = $ilUser->getEmail();\t\t\n\t\t$admin_mail = $ilSetting->get(\"user_delete_own_account_email\");\t\t\n\t\t\n\t\t// to user, admin as bcc\n\t\tif($user_email)\n\t\t{\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t$mail->sendMimeMail($user_email, null, $admin_mail, $subject, $message, null, true);\t\t\n\t\t}\n\t\t// admin only\n\t\telse if($admin_mail)\n\t\t{\n\t\t\t$mail->sendMimeMail($admin_mail, null, null, $subject, $message, null, true);\t\t\n\t\t}\n\t\t\n\t\t$ilLog->write(\"Account deleted: \".$ilUser->getLogin().\" (\".$ilUser->getId().\")\");\n\t\t\t\t\n\t\t$ilUser->delete();\n\n\t\t// terminate session\n\t\t$ilAuth->logout();\n\t\tsession_destroy();\t\t\n\t\t\n\t\tilUtil::redirect(\"login.php?accdel=1\");\t\t \t\t\n\t}", "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 }", "public function unlinkAccount()\n {\n }", "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 }", "function webform_confirm_email_delete($node, $email = array()) {\n\n $form_state = array(\n 'build_info' => array(\n 'args' => array(\n $node,\n $email,\n ),\n ),\n 'submit_handlers' => array(\n 'webform_email_delete_form_submit',\n '_webform_confirm_email_delete_submit',\n ),\n );\n $form = drupal_build_form(\n 'webform_email_delete_form',\n $form_state\n );\n\n return $form;\n}", "public function getResetSubUserPasswordEmailTemplate()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_RESET_SUBUSER_PASSWORD_EMAIL_TEMPLATE,\n ScopeInterface::SCOPE_STORE\n );\n }", "function admin_email_template() {\n\t\t$this->layout=\"admin\";\n\t\tConfigure::write('debug', 0);\n\t\t$staticdatas = $this->EmailTemplate->find('all');\n\t\t//print_r($staticdatas);die;\n\t\t$this->set('manageClass','selected');\n\t\t$this->set(\"staticdatas\",$staticdatas);\n\t}", "public function emailtemplatedelete(Request $request,$id=0)\n {\n $del_qry = DB::table('email_templates')->where('id', $id)->delete();\n if($del_qry)\n {\n $request->session()->flash('admin_successmsgdata_sess', 'Template Deleted successfully.');\n }\n return redirect(ADMINSEPARATOR.'/email-template');\n }", "public function getNewMail()\n {\n return $this->get(self::_NEW_MAIL);\n }", "public function plugin_deactive_hook(){\r\n delete_transient( 'woolentor_template_info' );\r\n delete_metadata( 'user', null, 'woolentor_dismissed_lic_notice', null, true );\r\n }", "public function destroy($email_temp_id)\n {\n $emailTemplate = EmailTemplate::find($email_temp_id);\n if (empty($emailTemplate)) {\n return Response()->json(['status'=>false, 'message' => 'Email Template is not exists', 'response' => []], 200);\n }\n $emailTemplate->delete();\n return response()->json(['status'=>true, 'message'=>'Email Template Deleted', 'response'=>compact('emailTemplate')], 200);\n }", "public function deleteTemplate ()\n {\n // Recovering template id\n $target =Input::get('data'); \n \n // Removing template\n $num = DB::update(\"DELETE FROM ezz_templates where id_template = $target\");\n return response () -> json ([\n 'borradas' => $num,\n 'status' => 'success'\n ],200);\n }", "static public function ctrEliminarTipoContacto(){\n\t\tif(isset($_POST[\"accionTipoContacto\"]) && $_POST[\"accionTipoContacto\"] == \"eliminar\"){\n\t\t\t$tabla =\"vtama_tipo_contacto\";\n\t\t\t$datos = $_POST[\"codigoTipoContacto\"];\n\t\t\t$respuesta = ModeloTipoContacto::mdlEliminarTipoContacto($tabla, $datos);\n\t\t\treturn $respuesta;\n\t\t}//if\n\t}", "private function sendMailDeleteUser($data) {\n #data to send in email\n $email_array = array(\n 'server_url' => \\Config::get('variable.SERVER_URL'),\n 'from' => \\Config::get('variable.ADMIN_EMAIL'),\n 'to' =>trim($data['data']['email']),\n 'from_name' =>'Episodic' ,\n 'subject' => 'Episodic',\n 'view' => 'mail.delete_user',\n 'name' => 'Episodic',\n 'data' => $data[\"user_data\"]\n );\n #Send Verification Email\n return $this->sendEmail($email_array); #Send Verification Email \n }", "function delContact ($p) {\r\n\r\n\t// pre checks\r\n\tif (!isAdmin()) return false;\r\n\tif (!isset($p['user'])) return false;\r\n\tif (empty($p['user'])) return false;\r\n\r\n\t// security\r\n\t$userPrep = prepareDBValue($p['user']);\r\n\r\n\t// get contact id\r\n\t$dbResult = queryDB('select id from contacts where username=\\'' . $userPrep . '\\'');\r\n\tif (!isset($dbResult[0]['id'])) return false;\r\n\t$userID = $dbResult[0]['id'];\r\n\r\n\t// delete all notifications assigned to the posted contact\r\n\tqueryDB('delete from notifications_to_contacts where contact_id=\\'' . $userID . '\\'');\r\n\r\n\t// disable all notifications and change usernames of all notifications owned by this user\r\n\tqueryDB('update notifications set active=\\'0\\', username=\\'' . prepareDBValue('[' . $p['user'] . ']') . '\\' where username=\\'' . $userPrep . '\\'');\r\n\r\n\t// finally, delete the user\r\n\tqueryDB('delete from contacts where id=\\'' . $userID . '\\'');\r\n\r\n\treturn true;\r\n\r\n}", "function mailmaga_x_deactivation(){\n\t$mailmaga_x_data = new Mailmaga_x_install();\n\t$mailmaga_x_data->deactivation();\n}", "public function delete()\n\t{\n\t\t/* Check permission */\n\t\t\\IPS\\Dispatcher::i()->checkAcpPermission( 'template_delete' );\n\n\t\t/* Make sure the user confirmed the deletion */\n\t\t\\IPS\\Request::i()->confirmedDelete();\n\n\t\t$key = \\IPS\\Request::i()->t_key;\n\t\t$return = array(\n\t\t\t'template_content' => NULL,\n\t\t\t'template_id' \t => NULL\n\t\t);\n\t\t\n\t\ttry\n\t\t{\n\t\t\t\\IPS\\cms\\Templates::load( $key )->delete();\n\t\t\t\n\t\t\t/* Now reload */\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$template = \\IPS\\cms\\Templates::load( $key );\n\t\t\t\t\n\t\t\t\t$return['template_location'] = $template->location;\n\t\t\t\t$return['template_content'] = $template->content;\n\t\t\t\t$return['template_id']\t\t = $template->id;\n\t\t\t\t$return['InheritedValue'] = ( $template->user_added ) ? 'custom' : ( $template->user_edited ? 'changed' : 0 );\n\t\t\t}\n\t\t\tcatch( \\OutOfRangeException $ex )\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch( \\OutOfRangeException $ex )\n\t\t{\n\t\t\t\\IPS\\Output::i()->error( 'node_error', '3T285/4', 500, '' );\n\t\t}\n\n\t\t/* Clear guest page caches */\n\t\t\\IPS\\Data\\Cache::i()->clearAll();\n\n\t\tif( \\IPS\\Request::i()->isAjax() )\n\t\t{\n\t\t\t\\IPS\\Output::i()->json( $return );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\\IPS\\Output::i()->redirect( \\IPS\\Http\\Url::internal( 'app=cms&module=pages&controller=templates' ), 'completed' );\n\t\t}\n\t}", "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 }", "function get_mail_template( $varname ) {\n // based on the received template name\n $query = $this->db->query(\"Select * from email_templates where template_name='$varname'\");\n\n\t return\t$row = $query->row_array(); \n\t\t\n\t}", "public function getAdminEmailTemplate ()\n {\n $emailTemplate = $this->scopeConfig->getValue(\n 'b2bregistration/admin_notification/admin_email_templates',\n ScopeInterface::SCOPE_STORE\n );\n return $emailTemplate;\n }", "function InfGetEmailTemplate($template_id) {\n $template = Infusionsoft_APIEmailService::getEmailTemplate($template_id);\n\treturn $template;\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 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 }", "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 Deactivateusermail($to, $from, $name)\n {\n $sendGrid = Yii::$app->sendGrid;\n $status = '';\n // get forgot password mail\n $deactivate_mail_templates = EmailTemplates::find()->where(\n [\n 'email_type_id' => 4\n ]\n )->One();\n\n if (! empty($deactivate_mail_templates)) {\n // removing place holders in mail body\n $body = str_replace(\"&lt;&lt;name&gt;&gt;\", $name, $deactivate_mail_templates->body);\n\n $message = $sendGrid->compose();\n $status = $message->setFrom($from)->setTo($to)->setReplyTo($from)->setSubject($deactivate_mail_templates->subject)->setHtmlBody($body)->send($sendGrid);\n }\n\n return $status;\n\n }", "public function removeContact(Request $request){\n $cid = $request->cid;\n $gid = $request->gid;\n $emailcontact = EmailContact::find($cid);\n $removeContact=$emailcontact->groups()->detach($gid);\n if(isset($removeContact)){\n return 'true';\n\n }else{\n return 'false';\n }\n }", "function m_dspemails()\n\t{\n\t\t$this->ObTpl=new template();\n\t\t$this->ObTpl->set_file(\"TPL_EMAIL_FILE\",$this->emailTemplate);\n\n\t\t#SETTING ALL TEMPLATE BLOCKS\n\t\t$this->ObTpl->set_block(\"TPL_EMAIL_FILE\",\"TPL_EMAIL_BLK\", \"email_blk\");\n\t\t$this->ObTpl->set_block(\"TPL_EMAIL_FILE\",\"TPL_MESSAGE_BLK\", \"message_blk\");\n\t\t$this->ObTpl->set_block(\"TPL_EMAIL_FILE\",\"TPL_MSG_BLK1\", \"msg_blk1\");\n\n\t\t#SETTING TEMPLATE VARIABLE\n\t\t$this->ObTpl->set_var(\"GRAPHICSMAINPATH\",GRAPHICS_PATH);\t\n\t\t$this->ObTpl->set_var(\"TPL_VAR_SALESURL\",SITE_URL.\"sales/\");\n\n\t\t#INTAILIZING ***\n\t\t$this->ObTpl->set_var(\"email_blk\",\"\");\t\n\t\t$this->ObTpl->set_var(\"message_blk\",\"\");\t\n\t\t$this->ObTpl->set_var(\"msg_blk1\",\"\");\t\n\t\t$this->ObTpl->set_var(\"msg_blk2\",\"\");\t\n\n\t\t$this->request['msg']=$this->libFunc->ifSet($this->request,\"msg\");\n\t\t$this->ObTpl->set_var(\"TPL_VAR_MESSAGE\",\"\");\n\n\t\t#DATABASE QUERY\n\t\t$this->obDb->query = \"SELECT * FROM \".EMAILS;\n\t\t$queryResult = $this->obDb->fetchQuery();\n\t\t$campaigncount = $this->obDb->record_count;\n\t\tif($this->request['msg']==1)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",MSG_EMAIL_INSERTED);\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t\t$this->ObTpl->parse(\"msg_blk2\",\"TPL_MSG_BLK2\");\n\t\t}\n\t\telseif($this->request['msg']==3)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",MSG_EMAIL_DELETED);\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t\t$this->ObTpl->parse(\"msg_blk2\",\"TPL_MSG_BLK2\");\n\t\t}\n\t\telseif($this->request['msg']==5)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",MSG_EMAIL_SENT);\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t\t$this->ObTpl->parse(\"msg_blk2\",\"TPL_MSG_BLK2\");\n\t\t}\n\n\t\tif($campaigncount>0)\n\t\t{\n\t\t\t#PARSING DISCOUNT BLOCK\n\t\t\tfor($j=0;$j<$campaigncount;$j++)\n\t\t\t{\t\t\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_ID\",$queryResult[$j]->iMailid_PK);\n\t\t\t\tif ($queryResult[$j]->vUserList==\"All\"){\n $this->obDb->query = \"SELECT count(*) as cnt FROM \".CUSTOMERS.\" WHERE iStatus=1 AND iMailList !=0\";\n }else{ \n $this->obDb->query = \"SELECT count(*) as cnt FROM \".LEADLIST.\" WHERE iLeadId_FK='\". $queryResult[$j]->vUserList.\"'\";\n }\n\t\t\t\t$qryRs = $this->obDb->fetchQuery();\n\t\t\t\t\n\t\t\t\tif ($queryResult[$j]->vVisitorList==\"1\"){\n $this->obDb->query = \"SELECT count(*) as cnt FROM \".NEWSLETTERS;\n\t\t\t\t $qryVs = $this->obDb->fetchQuery();\n\t\t\t\t $qryRs[0]->cnt = $qryRs[0]->cnt + $qryVs[0]->cnt;\n }\n\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_USERCOUNT\",$qryRs[0]->cnt);\n \n $this->ObTpl->set_var(\"TPL_VAR_SUBJECT\",$this->libFunc->m_displayContent($queryResult[$j]->vSubject));\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_SID\",$this->libFunc->m_displayContent($queryResult[$j]->vSid));\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_BUILDDATE\",$this->libFunc->dateFormat2($queryResult[$j]->tmBuildDate));\t\n\t\t\t\t$sentDate=$this->libFunc->dateFormat2($queryResult[$j]->tmSentDate);\n\t\t\t\tif(empty($sentDate))\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_SENTDATE\",\"Send now\");\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_VIEWLABEL\",\"View/Sent\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_SENTDATE\",$sentDate);\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_VIEWLABEL\",\"View\");\n\t\t\t\t}\n\t\t\t\t$this->ObTpl->parse(\"email_blk\",\"TPL_EMAIL_BLK\",true);\n\t\t\t}\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",$campaigncount.\" records found\");\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MESSAGE\",MSG_NOEMAILS);\n\t\t\t$this->ObTpl->parse(\"message_blk\",\"TPL_MESSAGE_BLK\");\n\t\t}\n\t\n\t\treturn($this->ObTpl->parse(\"return\",\"TPL_EMAIL_FILE\"));\n\t}", "function get_email_template_for_sending($template_slug, $email)\n{\n $CI =& get_instance();\n\n $language = get_email_template_language($template_slug, $email);\n\n if (!is_dir(APPPATH . 'language/' . $language)) {\n $language = 'english';\n }\n\n $CI->db->where('language', $language);\n $CI->db->where('slug', $template_slug);\n $template = $CI->db->get('tblemailtemplates')->row();\n\n // Template languages not yet inserted\n // Users needs to visit Setup->Email Templates->Any template to initialize all languages\n if (!$template) {\n $CI->db->where('language', 'english');\n $CI->db->where('slug', $template_slug);\n $template = $CI->db->get('tblemailtemplates')->row();\n } else {\n if ($template && $template->message == '') {\n // Template message blank use the active language default template\n $CI->db->where('language', get_option('active_language'));\n $CI->db->where('slug', $template_slug);\n $template = $CI->db->get('tblemailtemplates')->row();\n\n if ($template->message == '') {\n $CI->db->where('language', 'english');\n $CI->db->where('slug', $template_slug);\n $template = $CI->db->get('tblemailtemplates')->row();\n }\n }\n }\n\n return $template;\n}", "public function unpublish()\n {\n $message = new MailMessage;;\n $message->greeting(\"Hi {$this->post->reporting->name}!\");\n $message->line(\"The post {$this->post->titile} has been unpublished 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 get_user_email_templates_slugs()\n{\n $user_email_templates_slugs = array(\n 'user-password-reseted',\n 'user-forgot-password',\n 'new-user-created',\n\t\t'new-employeecommission-slip'\n );\n\n return do_action('user_email_templates', $user_email_templates_slugs);\n}", "static function sendUnmemberMail($user) {\t\r\n\t\tif (!MAIL || !$user->isLoaded()) return;\r\n\t\t\r\n\t\t$mailTemplate = new Art_Model_Email_Template(array(\r\n\t\t\t'name' => static::EMAIL_TEMPLATE_UNMEMBER)\r\n\t\t);\r\n\t\t\r\n\t\tif (!$mailTemplate->isLoaded()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t$userData = $user->getData();\r\n\t\tif ($userData->gender) {\r\n\t\t\t$genderEnd = '';\r\n\t\t\t$salutation = static::DEAR_SIR.$userData->salutation.',';\r\n\t\t} else {\r\n\t\t\t$genderEnd = 'a';\r\n\t\t\t$salutation = static::DEAR_MADAM.$userData->salutation.',';\r\n\t\t}\r\n\t\t\r\n\t\t$footer = Helper_Default::getDefaultValue(Helper_TBDev::DEFAULT_MAIL_FOOTER);\r\n\t\t$body = Art_Model_Email_Template::replaceIdentities(array('salutation' => $salutation,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'date_termination' => nice_date('now'),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'genderEnd' => $genderEnd,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'footer' => $footer),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$mailTemplate->body);\r\n\t\tstatic::sendMailUsingTemplate($mailTemplate, $body, $userData->email);\r\n\t}", "function remove_footer_admin ()\n{\n echo '<span id=\"footer-thankyou\">Developed by <a href=\"https://www.elpuas.com\" target=\"_blank\">el.puas();</a></span>';\n}", "function account_removal_send_notification($type, $user_guid) {\n\t\n\t$site = elgg_get_site_entity();\n\t\n\t$user = get_user($user_guid);\n\tif (empty($user)) {\n\t\treturn false;\n\t}\n\t\n\tif (!in_array($type, ['remove', 'disable'])) {\n\t\treturn false;\n\t}\n\t\n\t$token = acount_removal_generate_confirm_token($type, $user_guid);\n\tif (empty($token)) {\n\t\treturn false;\n\t}\n\t\n\t$url = elgg_normalize_url(\"account_removal/{$user->username}/confirm/{$type}/?confirm_token={$token}\");\n\t\n\t$subject = elgg_echo(\"account_removal:message:{$type}:subject\", [\n\t\t$site->name,\n\t]);\n\t$message = elgg_echo(\"account_removal:message:{$type}:body\", [\n\t\t$user->name,\n\t\t$url,\n\t]);\n\t\n\tnotify_user($user_guid, $site->getGUID(), $subject, $message, [], 'email');\n\t\n\treturn true;\n}", "function contact_trash($post_id) {\n if (get_post_type($post_id) === 'contact') {\n $cats = wp_get_post_categories($post_id);\n foreach ($cats as $cat_id) {\n delete_contact_from_list($cat_id, get_post_meta($post_id, 'email', true));\n }\n }\n}", "function sensei_cust_remove_content_drip_emails() { \nremove_all_actions( 'woo_scd_daily_cron_hook' );\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 }", "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}", "function booking_cancellation_email_cust($useremail, $bookingid) {\n\t\t\t\t$res = $this->settings_model->get_contact_page_details();\n\t\t\t\t$contact_phone = $res[0]->contact_phone;\n\t\t\t\t$contact_email = $res[0]->contact_email;\n\t\t\t\t$contact_address = $res[0]->contact_address;\n\t\t\t\t$sento = $details->contect_email;\n\n\t\t\t\t$ptheme = pt_default_theme();\n\t\t\t\t$this->_config = config_item('theme');\n\t\t\t\t$uu = $this->_config['url'];\n\t\t\t\t$email_temp_img = $uu.$ptheme.'/email_temp_img/gb_email_temp_img/';\n\t\t\t\t$template = array('{bookingID}','{email_temp_img}','{hotel_name}','{state}','{checkin}','{checkout}','{userFullName}','{contact_phone}','{contact_email}','{contact_address}');\n\t\t\t\t$values = array($useremail->bookingID,$email_temp_img,$useremail->subItem->title,$useremail->title,$useremail->checkin,$useremail->checkout,$useremail->userFullName,$contact_phone,$contact_email,$contact_address);\n\t\t\t\t$HTML_DATA = file_get_contents( $uu.$ptheme.'/cancelled_email.html');\n\t\t\t\t$message = str_replace($template, $values, $HTML_DATA);\n\n\t\t\t\t\n\t\t\t\t$this->email->set_newline(\"\\r\\n\");\n\t\t\t\t$this->email->from($this->sendfrom);\n\t\t\t\t$this->email->to($useremail->accountEmail);\n\t\t\t\t$this->email->subject('Your Booking Cancellation has been Processed.');\n\t\t\t\t$this->email->message($message);\n\t\t\t\t$this->email->send();\n\n\t\t\t/*//to customer\n\t\t\t\t$message = $this->mailHeader;\n\t\t\t\t$message .= \"Dear Customer,<br>\";\n\t\t\t\t$message .= \"Your Booking ID: $bookingid booking has been cancelled.<br>\";\n\t\t\t\t$message .= \"Thanks For using our service.\";\n\t\t\t\t$message .= $this->mailFooter;\n\n\t\t\t\t$this->email->set_newline(\"\\r\\n\");\n\t\t\t\t$this->email->from($this->sendfrom);\n\t\t\t\t$this->email->to($useremail);\n\t\t\t\t$this->email->subject('Your Booking Cancellation has been Processed.');\n\t\t\t\t$this->email->message($message);\n\t\t\t\t$this->email->send();*/\n\t\t}", "function bwrt_site_new_message() {\n $templates = bwrt_get_default_pages();\n\n ?>\n <h3>BWR Club Templates</h3>\n <p>This new club site will include <b><?php echo count($templates) ?></b> template page(s).\n To change the club site templates, toggle <em>BWR Template Page</em> in the page editor.</p>\n <?php\n}", "public function removeAction() : object\n {\n if ($_SESSION['permission'] === \"user\") {\n $form = new UserDeleteForm($this->di);\n $form->check();\n\n $this->page->add(\"user/crud/remove\", [\n \"form\" => $form->getHTML(),\n ]);\n\n return $this->page->render([\n \"title\" => \"Delete account\",\n ]);\n }\n $this->di->get(\"response\")->redirect(\"user/login\");\n }", "public function getCustomerRejectEmailTemplate ()\n {\n $customerRejectEmailTemplate = $this->scopeConfig->getValue(\n 'b2bregistration/email_setting/customer_disapprove_templates',\n ScopeInterface::SCOPE_STORE\n );\n return $customerRejectEmailTemplate;\n }", "protected function __CarregaEmailTemplate($ref)\n{\n\t$sql = $this->con->prepare('select template_email_assunto,template_email_mensagem from tb_template_email where template_email_ref=:ref');\n\t$sql->bindValue(':ref',$ref,PDO::PARAM_STR);\n\t\n\t$sql->execute();\n\t\n\t$out = $sql->fetch(PDO::FETCH_ASSOC);\n\t\n\t$sql->closeCursor();\n\t\n\treturn $out;\n}", "public function getEmailTpl() { return $this->_emailTpl; }", "function deactivate(){\n wp_clear_scheduled_hook('cp_email_notification');\n}", "function createdUserMail($tracking_code ,$type ){\r\n\tglobal $wpdb;\r\n\t\r\n\t\t$table_mail_creation = $wpdb->prefix . \"mail_creation\";\r\n\t\t$table_batch_creation = $wpdb->prefix . \"batch_creation\";\r\n\t\tif($type=='Batch'){\r\n\t\t\t/****that quy find mail creation user name and created date in batch case ***/\r\n\t\t\t$qry=\"SELECT created_by , created_on FROM \".$table_batch_creation.\" WHERE batch_name='\".$tracking_code.\"' or batch_id='\".$tracking_code.\"'\";\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif($type=='Individual'){\r\n\t\t\t/****that quy find mail creation user name and created date in individual case ***/\r\n\t\t\t$qry=\"SELECT created_by , created_on FROM \".$table_mail_creation.\" WHERE tracking_number ='\".$tracking_code.\"'\";\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t$result = $wpdb->get_row(\r\n\t\t\t\t\t\t$qry\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\treturn $result;\r\n\t}", "public function add_email_template(){\t\n\t\t\t$user_id = $this->session->userdata('id');\n\t\t\t$role = $this->session->userdata('role');\n\t\t\t$name = $this->input->post('template_name');\n\t\t\t$subject = $this->input->post('template_subject');\n\t\t\t$content = htmlentities($this->input->post('content'));\n\t\t\tif( !empty($user_id) && ($role=='super_admin')):\t\t\t\n\t\t\t$data=array('name'=>$name,\n\t\t\t\t\t\t'subject'=>$subject,\n\t\t\t\t\t\t'content'=>htmlentities($this->input->post('content')),\n\t\t\t\t\t\t'user_id'=>$user_id,\n\t\t\t\t\t\t);\t\t\t\t\t\t\n\t\t\t$response = $this->InteractModal->register_user($data, 'templates' );\n\t\t\tredirect(base_url('Interact/user_all_email_template' ));\n\t\t\telse:\n\t\t\t\tredirect(base_url('Interact/login' ));\n\t\t\tendif;\n\t}", "function account_removal_send_thank_notification($type, $user_guid) {\n\t\n\t$user = get_user($user_guid);\n\tif (empty($user)) {\n\t\treturn false;\n\t}\n\t\n\tif (!in_array($type, ['remove', 'disable'])) {\n\t\treturn false;\n\t}\n\t\n\t$site = elgg_get_site_entity();\n\t\n\t$subject = elgg_echo(\"account_removal:message:thank_you:{$type}:subject\", [\n\t\t$site->name,\n\t]);\n\t$message = elgg_echo(\"account_removal:message:thank_you:{$type}:body\", [\n\t\t$user->name,\n\t\t$site->name,\n\t]);\n\t\n\tnotify_user($user_guid, $site->getGUID(), $subject, $message, [], 'email');\n\t\n\treturn true;\n}", "function mail_to($item, $template, $mail_companies)\n {\n $headers_mail = array();\n $headers_mail[] = \"From: kanikervanaf.nl <[email protected]>\";\n\n if ($mail_companies) {\n $headers_mail[] = \"Reply-To: \" . $this->user_information->get_first_name() . ' ' . $this->user_information->get_last_name() . '<' . $this->user_information->get_email() . '>';\n $headers_mail[] = \"Cc: \" . $this->user_information->get_email();\n return wp_mail($item->get_email(), $this->SUBJECT . $item->get_name(), $template, $headers_mail);\n } else {\n return wp_mail($this->user_information->get_email(), $this->SUBJECT . $item->get_name(), $template, $headers_mail);\n }\n\n }", "public function getUnsubcribeUrl() {\n\t\treturn $this->getEmailActionLink(\"email/unsubscribeWeeklyNews\");\n\t}", "function cor_remove_personal_options( $subject ) {\n\n $subject = preg_replace( '#<h3>Personal Options</h3>.+?/table>#s', '', $subject, 1 );\n\n return $subject;\n\n }", "public static function CompanyUserUnblockRequest(string $company_name, string $username, string $info): string {\n \n $message = '<!DOCTYPE html>\n <html>\n <head>\n <meta charset=\"UTF-8\">\n <title>New Company Registration</title>\n </head>\n <body style=\"direction:ltr;\">\n <img src=\"'.SystemConstants::LOGO_PATH.'\" alt=\"WiserCut - Support\" style=\"width:156px; height:58px; margin:25px auto; left:0; right:0\">\n <h2 style=\"color:#1973B2; font-size:22px;\">Hello,</h2>\n <p style=\"color:#000;font-size:18px;\">The manager of the company: '.$company_name.', have been requested to unblock the following user:<br></p>\n <p style=\"color:#000;font-size:18px;\">Username: '.$username.'<br>Additional Info:<br>'.$info.'</p>\n <p style=\"font-style:italic;color:#000;\">\n Notice: You can unblock user in your account, on \\'Users\\' tab.\n </p>\n <p style=\"font-style:italic;color:#1973B2;\">\n Best Regards,<br> WiseCut -Support\n </p>\n </body>\n </html>';\n\n return $message;\n }", "public function deleteTemplateGroup()\n\t{\n\t\tforeach( \\IPS\\cms\\Templates::$databaseDefaults as $field => $template )\n\t\t{\n\t\t\t\\IPS\\Db::i()->update( 'cms_databases', array( 'database_template_' . $field => $template ), array( 'database_template_' . $field . ' =?', \\IPS\\Request::i()->group ) );\n\t\t}\n\t\n\t\t\\IPS\\Db::i()->delete( 'cms_templates', array( 'template_location=? and template_group=?', 'database', \\IPS\\Request::i()->group ) );\n\t\t\n\t\tunset( \\IPS\\Data\\Store::i()->cms_databases );\n\t\t\n\t\t\\IPS\\Output::i()->redirect( \\IPS\\Http\\Url::internal( 'app=cms&module=pages&controller=templates' . ( isset( \\IPS\\Request::i()->t_location ) ? '&t_location=' . \\IPS\\Request::i()->t_location : '' ) ), 'deleted' );\n\t}", "function sendMail($template, $replace_content, $to, $reply_to_mail = '')\n{\n global $r_debug, $db_lnk, $_server_domain_url;\n if (file_exists(SITE_URL_FOR_SHELL)) {\n include_once SITE_URL_FOR_SHELL;\n }\n $default_content = array(\n '##SITE_NAME##' => SITE_NAME,\n '##SITE_URL##' => $_server_domain_url,\n '##FROM_EMAIL##' => DEFAULT_FROM_EMAIL_ADDRESS,\n '##CONTACT_EMAIL##' => DEFAULT_CONTACT_EMAIL_ADDRESS\n );\n $qry_val_arr = array(\n $template\n );\n $emailFindReplace = array_merge($default_content, $replace_content);\n $templates = executeQuery('SELECT * FROM email_templates WHERE name = $1', $qry_val_arr);\n if ($templates) {\n $message = strtr($templates['email_text_content'], $emailFindReplace);\n $message.= '<div itemscope itemtype=\"http://schema.org/EmailMessage\"><div itemprop=\"potentialAction\" itemscope itemtype=\"http://schema.org/ViewAction\"><link itemprop=\"target\" href=\"' . $_server_domain_url . '\"/><meta itemprop=\"name\" content=\"View on Restyaboard\"/></div><meta itemprop=\"description\" content=\"View on Restyaboard\"/></div>';\n $subject = strtr($templates['subject'], $emailFindReplace);\n $from_email = strtr($templates['from_email'], $emailFindReplace);\n $headers = 'From:' . $from_email . PHP_EOL;\n if (!empty($reply_to_mail)) {\n $headers.= 'Reply-To:' . $reply_to_mail . PHP_EOL;\n }\n $headers.= \"MIME-Version: 1.0\" . PHP_EOL;\n $headers.= \"Content-Type: text/html; charset=UTF-8\" . PHP_EOL;\n $headers.= \"X-Mailer: Restyaboard (0.6.8; +http://restya.com/board)\" . PHP_EOL;\n $headers.= \"X-Auto-Response-Suppress: All\" . PHP_EOL;\n if (is_plugin_enabled('r_sparkpost')) {\n require_once PLUGIN_PATH . DS . 'SparkPost' . DS . 'functions.php';\n $result = SparkPostMail($to, $subject, $message, $headers, DEFAULT_FROM_EMAIL_ADDRESS);\n } else {\n $result = mail($to, $subject, $message, $headers, '-f' . DEFAULT_FROM_EMAIL_ADDRESS);\n }\n if (R_DEBUG) {\n if (!$result) {\n $compose_string = 'F, ' . $from_email . ', ' . $to . ', ' . $subject;\n } else {\n $compose_string = 'S, ' . $from_email . ', ' . $to . ', ' . $subject;\n }\n error_log($compose_string, 3, CACHE_PATH . DS . 'mail.log');\n }\n }\n}", "public function testDeleteGlobalTemplate()\n {\n\n }", "function mozilla_mailchimp_unsubscribe() {\n\tif ( isset( $_SERVER['REQUEST_METHOD'] ) && 'POST' === $_SERVER['REQUEST_METHOD'] ) {\n\t\t// Verify nonce.\n\t\tif ( ! isset( $_POST['nonce'] ) || false === wp_verify_nonce( sanitize_key( $_POST['nonce'] ), 'mailing-list' ) ) {\n\t\t\tprint wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'status' => 'ERROR',\n\t\t\t\t\t'message' => 'This action is not allowed',\n\t\t\t\t)\n\t\t\t);\n\t\t\tdie();\n\t\t}\n\t\tif ( isset( $_POST['list'] ) && isset( $_POST['campaign'] ) && strlen( sanitize_key( $_POST['list'] ) ) > 0 ) {\n\t\t\t$user = wp_get_current_user();\n\n\t\t\tif ( isset( $user->data->user_email ) ) {\n\t\t\t\t$list = trim( sanitize_key( $_POST['list'] ) );\n\t\t\t\t$campaign_id = intval( sanitize_key( $_POST['campaign'] ) );\n\t\t\t\t$campaign = get_post( $campaign_id );\n\n\t\t\t\tif ( $campaign && 'campaign' === $campaign->post_type ) {\n\n\t\t\t\t\t$result = mozilla_remove_email_from_list( $list, $user->data->user_email );\n\t\t\t\t\t$members_participating = get_post_meta( $campaign->ID, 'members-participating', true );\n\t\t\t\t\t$campaigns = get_user_meta( $user->ID, 'campaigns', true );\n\n\t\t\t\t\tif ( is_array( $members_participating ) ) {\n\t\t\t\t\t\t$key = array_search( $user->ID, $members_participating, true );\n\t\t\t\t\t\tif ( false !== $key ) {\n\t\t\t\t\t\t\tunset( $members_participating[ $key ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$members_participating = array();\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( is_array( $campaigns ) ) {\n\t\t\t\t\t\t$key = array_search( $campaign->ID, $campaigns, true );\n\t\t\t\t\t\tif ( false !== $key ) {\n\t\t\t\t\t\t\tunset( $campaigns[ $key ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$campaigns = array();\n\t\t\t\t\t}\n\n\t\t\t\t\tupdate_post_meta( $campaign->ID, 'members-participating', $members_participating );\n\t\t\t\t\tupdate_user_meta( $user->ID, 'campaigns', $campaigns );\n\t\t\t\t\tprint wp_json_encode( array( 'status' => 'OK' ) );\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tprint wp_json_encode(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'status' => 'ERROR',\n\t\t\t\t\t\t'message' => 'Could not find User email',\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t} else {\n\t\t\tprint wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'status' => 'ERROR',\n\t\t\t\t\t'message' => 'No list provided. Please provide list ID',\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t} else {\n\t\tprint wp_json_encode(\n\t\t\tarray(\n\t\t\t\t'status' => 'ERROR',\n\t\t\t\t'message' => 'This method is not allowed',\n\t\t\t)\n\t\t);\n\t}\n\tdie();\n}", "public function testCreateMailWithoutShopTemplate()\n {\n // Prepare new shop without template\n $entityManager = Shopware()->Container()->get('models');\n $defaultShop = $entityManager->find(\\Shopware\\Models\\Shop\\Shop::class, 1);\n $newShop = new \\Shopware\\Models\\Shop\\Shop();\n $newShop->setMain($defaultShop);\n $newShop->setName('New Shop');\n $entityManager->persist($newShop);\n $entityManager->flush($newShop);\n\n // Test mail creation\n $registerConfirmationMail = $entityManager->find(\\Shopware\\Models\\Mail\\Mail::class, 1);\n $mail = $this->mail->createMail($registerConfirmationMail, [], $newShop);\n static::assertInstanceOf(\\Enlight_Components_Mail::class, $mail);\n\n // Revert changes in the database\n $entityManager->remove($newShop);\n $entityManager->flush($newShop);\n }", "public function registerMailTemplates()\n {\n return [];\n }", "public function destroy(Company $company)\n { \n if($company->tasks->count() > 0)\n {\n session()->flash('error', 'Company connot be deleted because it hase some tasks.');\n\n return redirect()->back();\n }\n $company->delete();\n\n session()->flash('success', 'company deleted successfully');\n\n return view('project.companies')->with('companies', Company::orderBy('name', 'ASC')->get())->with('users', User::orderBy('name', 'ASC')->get());\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}", "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 }", "protected function _fcpoGetClearingDataEmailBody()\n {\n $oLang = $this->_oFcpoHelper->getFactoryObject('oxLang');\n $oShop = $this->_oFcpoHelper->getFactoryObject('oxShop');\n $oShop->load($this->oxorder__oxshopid->value);\n $sBody = $oLang->translateString('FCPO_EMAIL_CLEARING_BODY_WELCOME');\n $sBody = str_replace('%NAME%', $this->oxorder__oxbillfname->value, $sBody);\n $sBody = str_replace('%SURNAME%', $this->oxorder__oxbilllname->value, $sBody);\n $sBody .= $oLang->translateString(\"FCPO_BANKACCOUNTHOLDER\").\": \".$this->getFcpoBankaccountholder().\"\\n\";\n $sBody .= $oLang->translateString(\"FCPO_EMAIL_BANK\").\" \".$this->getFcpoBankname().\"\\n\";\n $sBody .= $oLang->translateString(\"FCPO_EMAIL_ROUTINGNUMBER\").\" \".$this->getFcpoBankcode().\"\\n\";\n $sBody .= $oLang->translateString(\"FCPO_EMAIL_ACCOUNTNUMBER\").\" \".$this->getFcpoBanknumber().\"\\n\";\n $sBody .= $oLang->translateString(\"FCPO_EMAIL_BIC\").\" \".$this->getFcpoBiccode().\"\\n\";\n $sBody .= $oLang->translateString(\"FCPO_EMAIL_IBAN\").\" \".$this->getFcpoIbannumber().\"\\n\";\n $sBody .= $oLang->translateString(\"FCPO_EMAIL_USAGE\").\": \".$this->oxorder__fcpotxid->value.\"\\n\";\n $sBody .= \"\\n\\n\";\n $sThankyou = $oLang->translateString('FCPO_EMAIL_CLEARING_BODY_THANKYOU');\n $sBody .= str_replace('%SHOPNAME%', $oShop->oxshops__oxname->value, $sThankyou);\n\n return $sBody;\n }", "public function deletedusers($userid=0){\n if(!$this->phpsession->get('ciAdmId')){ redirect($this->config->item('base_url').'r/k/admin'); }\n\n if($userid > 0){\n //resend verification mail to user\n $___user = $this->U_Model->getUserById($userid);\n\n $activationcode = $___user->activationcode;\n $verification_code=$userid * 32765;\n // Create link for verification\n $link = \"<a href='\".$this->config->item('base_url').\"register/registerverify/\".$activationcode.\"'>\".$this->config->item('base_url').\"register/registerverify/\".$activationcode.\"</a>\";\n\n $this->load->model('SystemEmail_Model','SE_Model');\n\n $admin_email= $this->SE_Model->getAdminEmails();\n $mail_content= $this->SE_Model->getEmailById(1);\n \n //Email Sending Code\n $this->load->library('email');\n $this->email->from($admin_email->value,'fashionesia');\n $this->email->to($___user->email); // \n $this->email->subject($mail_content->subject);\n\n $message = str_replace(\"[link]\", $link, $mail_content->message);\n $message = str_replace(\"[[username]]\", $___user->first_name, $message);\n $message = str_replace(\"[[email]]\", $___user->email, $message);\n \n $content_message = str_replace(\"[sitename]\", $this->config->item('base_site_name'), $message);\n\n $emailPath = $this->config->item('base_abs_path').\"templates/\".$this->config->item('base_template_dir');\n $email_template = file_get_contents($emailPath.'/email/email.html');\n \n\n $email_template = str_replace(\"[[EMAIL_HEADING]]\", $mail_content->subject, $email_template);\n $email_template = str_replace(\"[[EMAIL_CONTENT]]\", nl2br(utf8_encode($content_message)), $email_template);\n $email_template = str_replace(\"[[SITEROOT]]\", $this->config->item('base_url'), $email_template);\n $email_template = str_replace(\"[[LOGO]]\",$this->config->item('base_url').\"templates/\".$this->config->item('base_template_dir'), $email_template);\n\n $this->email->message(html_entity_decode(($email_template)));\n\n //echo html_entity_decode(($email_template));\n\n $this->email->send();\n\n $this->phpsession->save('success_msg',\"Verification email successfully send to '\".$___user->first_name.\" \".$___user->last_name.\"'.\");\n\n redirect($this->config->item('base_url').\"admin/users/\");\n \n }\n\n $data = array('users' => '', 'PAGING' => '', 'search' => '-','delete'=>'-','fn'=>'-','status'=>'-');\n $this->load->helper(array('pagination'));\n $array = $this->uri->uri_to_assoc(3);\n\n $pages = (@$array['pages']?$array['pages']:1);\n $page = (@$array['page']?$array['page']:1);\n\n $orderb = (@$array['orderby']?@$array['orderby']:\"asc\"); $data['orderby'] = $orderb;\n $fn = (@$array['fn']?@$array['fn']:\"first_name\"); $data['fn'] = $fn;\n $status = (@$array['status']?@$array['status']:\"-\"); $data['status'] = $status; \n $orderby = $fn.\" \".$orderb;\n\n $data['search'] = (@$array['search']?$array['search']:'-');\n $data['delete'] = (@$array['delete']?$array['delete']:'-');\n\n \n if(strlen(trim($this->input->post('submit'))) > 0){\n $user_ids = implode(\",\",$this->input->post('checbox_ids'));\n $action = $this->input->post('action');\n if($action=='delete'){$action = 'permanentdelete';}\n $message = $this->U_Model->users_operations(array('user_ids' => $user_ids),$action);\n //$this->phpsession->save('success_msg',$message);\n $this->message->setMessage($message,\"SUCCESS\");\n }\n\n $PAGE = $page;\n $PAGE_LIMIT = $this->U_Model->countDeletedUsersBySearch($data['search'],$data['delete'],$status); //20;\n $DISPLAY_PAGES = 25;\n $PAGE_LIMIT_VALUE = ($PAGE - 1) * $PAGE_LIMIT;\n\n if($this->input->post('delete')!='')\n {\n// $delete = explode(\"-\",$this->input->post('datepicker'));\n// $delete_date = $delete[2].\"-\".$delete[0].\"-\".$delete[1];\n $data['delete'] =$this->input->post('delete');\n }\n // Get posted search value in variables\n $data['search'] = ($this->input->post('search')?trim($this->input->post('search')):$data['search']);\n $data['delete'] = ($this->input->post('delete')?trim($this->input->post('delete')):$data['delete']);\n \n // Count total users\n $total = $this->U_Model->countDeletedUsersBySearch($data['search'],$data['delete'],$status);\n \n $PAGE_TOTAL_ROWS = $total;\n $PAGE_URL = $this->config->item('base_url').'admin/adminusers/fn/'.$fn.'/orderby/'.$orderb.'/search/'.$data['search'].'/delete/'.$data['delete'].'/status/'.$status;\n $data['PAGING'] = pagination_assoc($PAGE_TOTAL_ROWS,$PAGE_LIMIT,$DISPLAY_PAGES,$PAGE_URL,$page,$pages);\n // Pagination end \n // Get all users\n $data['users'] = $this->U_Model->deletedusers($PAGE_LIMIT_VALUE,$PAGE_LIMIT,$data['search'],$orderby,$data['delete'],$status); \n // set variable to show active menu \n $data['menutab'] = 'network';\n $data['menuitem'] = 'deletedusers'; \n $this->load->view($this->config->item('base_template_dir').'/admin/users_del', $data);\n \n }", "public function setNuevoFormEntidad($template){\n $form_entidad_priv = file_get_contents('app/site/entidad_tpl/nuevo_form_entidad_boton_tpl.html');\n //$form_cliente = file_get_contents('app/site/cliente_tpl/nuevo_form_cliente_tpl.html');\n $form_modificar_entidad = file_get_contents('app/site/entidad_tpl/modificar_form_entidad_boton_tpl.html');\n $dialog_entidad = file_get_contents('app/site/entidad_tpl/dialog_confirm_tpl.html');\n $template = str_replace('{dialog_form}', $form_entidad_priv.$dialog_entidad.$form_modificar_entidad, $template);\n return $template; \n }", "function admin_mail_delete( int $message_id ) : mixed\n{\n // Only administrators can delete admin mail\n user_restrict_to_administrators();\n\n // Sanitize the message id\n $message_id = sanitize($message_id, 'int', 0);\n\n // Error: Message ID not found\n if(!database_row_exists('users_private_messages', $message_id))\n return __('users_message_not_found');\n\n // Fetch some data regarding the message\n $dmessage = mysqli_fetch_array(query(\" SELECT users_private_messages.fk_users_recipient AS 'pm_recipient' ,\n users_private_messages.fk_users_sender AS 'pm_sender' ,\n users_private_messages.hide_from_admin_mail AS 'pm_hide'\n FROM users_private_messages\n WHERE users_private_messages.id = '$message_id'\"));\n\n // Error: Can not delete messages hidden from the admin inbox\n if($dmessage['pm_hide'])\n return __('users_message_ownership');\n\n // Error: Message does not belong to user\n if($dmessage['pm_recipient'] && $dmessage['pm_sender'])\n return __('users_message_ownership');\n\n // Hard delete the message\n query(\" DELETE FROM users_private_messages\n WHERE users_private_messages.id = '$message_id' \");\n\n // All went well, return NULL\n return NULL;\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}", "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 delete_mail($id)\n {\n return $this->db->delete('mail',array('id'=>$id));\n }", "public function prepareRemoveAction(): ResponseInterface\n {\n $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_frpformanswers_domain_model_formentry');\n $queryBuilder->getRestrictions()->removeAll();\n\n $count = $queryBuilder->count('*')\n ->from('tx_frpformanswers_domain_model_formentry')\n ->where($queryBuilder->expr()->eq('pid', $queryBuilder->createNamedParameter($this->pid, \\PDO::PARAM_INT)))\n ->andWhere($queryBuilder->expr()->eq('deleted', $queryBuilder->createNamedParameter(1, \\PDO::PARAM_INT)))\n ->execute()->fetchFirstColumn();\n //DebuggerUtility::var_dump($count);\n $this->view->assign('count', $count[0]);\n\n $moduleTemplate = $this->moduleTemplateFactory->create($this->request);\n\n $this->createMenu($moduleTemplate);\n\t $this->createButtons($moduleTemplate);\n\n $moduleTemplate->setContent($this->view->render());\n return $this->htmlResponse($moduleTemplate->renderContent());\n }", "public function actionUnsubscribe()\n {\n $uid = craft()->request->getQueryStringWithoutPath();\n $uid = substr($uid,0,-1);\n // get PC model based on string\n $PrayerCornerRecord = PrayerCornerRecord::model()->findByAttributes(array('uid' => $uid));\n // if PC record exists\n if (count($PrayerCornerRecord)) {\n\n $entryId = $PrayerCornerRecord->entryId;\n // get entry record\n $entry = craft()->entries->getEntryById($entryId);\n // delete record\n $PrayerCornerRecord->delete();\n craft()->userSession->setFlash('message', 'You have unsubscribed from notifications!');\n // log unsubscribe\n PrayerCornerPlugin::log(\n 'User (' . $PrayerCornerRecord->email . ') has successfully unsubscribed from ' . $entry->title,\n LogLevel::Info,\n true\n );\n // redirect user\n $this->redirect($entry->getUrl());\n } else {\n // log error\n PrayerCornerPlugin::log(\n 'Erroneous unsubscribe link followed (' . $uid. ')',\n LogLevel::Info,\n true\n );\n // redirect user to site root\n $this->redirect( craft()->getSiteUrl() );\n }\n\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.5120599", "0.51170206", "0.51149356", "0.5106376", "0.5105029", "0.51027954", "0.5102757", "0.51013374", "0.5092158", "0.50899994", "0.50866044", "0.5085646", "0.5076807", "0.5076667", "0.50764275", "0.50623053", "0.50601375", "0.5059725", "0.5058935", "0.5053752", "0.50512624", "0.5050781", "0.50500107", "0.50467634", "0.50466764", "0.50405765", "0.5032268", "0.5031491", "0.50138944", "0.5013349", "0.5011589", "0.5003903", "0.50023186", "0.49978986", "0.49940863", "0.4993789", "0.49830183", "0.4982558", "0.4974576", "0.49675888", "0.49571422", "0.4953824", "0.49452844", "0.49378896", "0.49336278", "0.4928907", "0.49244714", "0.49186748", "0.4915284", "0.49119377", "0.49084687", "0.49015012", "0.48931393", "0.4889586", "0.48878402", "0.4885685", "0.48841202", "0.48742127", "0.48721856", "0.48619378", "0.48587394", "0.48584774", "0.48525736", "0.48522836", "0.48504233", "0.48449284", "0.48368225", "0.48358774", "0.4832971", "0.48266935" ]
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 }", "public function forgotPassword()\n {\n if ($this->issetPostSperglobal('email') && !empty($this->getPostSuperglobal('email'))) {\n if ($this->users_manager->resetToken($this->getPostSuperglobal('email'))) {\n $this->session->writeFlash('success', \"Les instructions pour réinitialiser votre mot de passe vous ont été envoyées par email, vous avez 30 minutes pour le faire.\");\n } else {\n $this->session->writeFlash('danger', \"Aucun compte ne correspond à cet adresse mail : {$this->getPostSuperglobal('email')}.\");\n }\n } else {\n $this->session->writeFlash('danger', \"L'adresse mail n'est pas ou est mal renseignée.\");\n }\n $this->render('forgot-password', ['head'=>['title'=>'Mot de passe oublié', 'meta_description'=>'']]);\n }", "Public Function resetPassword()\n\t{\n\t\t$Code = $this->generateResetCode();\n\t\t$Email = $this->email;\n\t\t$Subject = 'Reset Password Request from ' . $_SERVER['HTTP_HOST'];\n\t\t$Body = <<<END\nThis is an automatically generated email from $_SERVER[HTTP_HOST] regarding a password reset.<br/>\nIf you did not request a password reset then please disregard this email.<br/>\n<br/>\nOtherwise, follow this link to reset your password:<br/>\n<a href=\"http://$_SERVER[HTTP_HOST]/BevoMedia/Index/ResetPassword.html?EmailCode=$Code&Email=$Email\">http://$_SERVER[HTTP_HOST]/BevoMedia/Index/ResetPassword.html?EmailCode=$Code&Email=$Email</a>\nEND;\n\t\t\n\t\t$this->ClearResetCode();\n\t\t$this->InsertResetCode($Code);\n\t\t$this->SendEmail($Email, $Subject, $Body);\n\t}", "public function retrieval_mail_body($res,$key) {\n\n\t\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 we received a password reset request from your account</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><tr><td>If you did not request a password reset, no further action is required</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 generateCustomerPasswordResetEmail($customer, $new_password) {\n $email = new Email();\n\n $mailBody = new EmailTemplate();\n $mailBody->loadByKey('customer_password_reset');\n\n\n // output the email template after eval() call into memory buffer\n $message = \"\";\n ob_start();\n eval($this->covernt_text_into_php_code($mailBody->get_email_template()));\n $message = ob_get_contents();\n ob_end_clean();\n\n \n $email->set_recipient($customer->get_email());\n $email->set_subject($mailBody->get_email_template_title());\n $email->set_message($message);\n\n return $email;\n }", "function generateForgotPassMsgBody($token) {\n $reset_url = BASE_URL.'/reset_password.php?token='.$token;\n\n $message = \"\";\n $message .=\"<html><head><title></title></head>\n <body>\n <img src='\".BASE_URL.LOGO_URL.\"'>\n <p>\n We heard that you lost your MyNotes4u.com password. Sorry about that!\n </p>\n <p>\n But don't worry! You can use the following link to reset your password:\n </p>\n <p>\n <span><a href=\".$reset_url.\">Link to reset password</a></span>\n </p>\n <p>\n If you don't use this link within 3 hours, it will expire.\n </p>\n </body>\n </html>\";\n return $message;\n}", "protected function getTemplate() {\n\t\treturn new Template('Premanager', 'changeEmail');\n\t}", "public function actionResetPassword()\n\t{ \n\t\t$model = new Users;\n\t\tif(isset($_GET['id']))\n\t\t{\n\t\t\t$id = $_GET['id'];\n\t\t\t$random_password = $model->randomPassword();\n\t\t\t$model = $model->restPasswordverification($id);\n\t\t\t$unhashedpassword = $random_password;\t\t\t\n\t\t\t$model->password = md5(trim($unhashedpassword));\n\t\t\tif($model->save()){\n\t\t\t\t$et = new EmailTemplates;\n\t\t\t\t$data = $et->getData(9);\n\t\t\t\t// parse Body\n\t\t\t\t$search = array('{name}', '{username}', '{password}');\n\t\t\t\t$replace = array($model->name(), $model->username, $unhashedpassword);\n\t\t\t\t$body = str_ireplace($search, $replace, $data->body);\n\t\t\t\t// ends parse Body\n\t\t\t\t$email_data = array(\n\t\t\t\t\t'body'=> $body,\n\t\t\t\t\t'address'=> $model->email,\n\t\t\t\t\t'ccaddress'=> '',\n\t\t\t\t\t'bccaddress'=> '',\n\t\t\t\t\t'subject' => $data->subject\n\t\t\t\t);\n\n\t\t\t\t// send the email\n\t\t\t\t$this->sendMail($email_data);\n\t\t\t\tYii::app()->user->setFlash('admin','<div align=\"center\" style=\"color:#78AB46;\"><strong><h4>Message has been sent to '.$model->email.'</h4></strong></div>');\n\t\t\t\t$this->redirect(array('admin','id'=>$model->id));\n\t\t\t}\n\t\t}\n\t}", "public function sendReset($email) {\n\n if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {\n return 'Invalid email address';\n }\n\n\n // check to see if the email exists\n $qry = sprintf(\"SELECT uv.userID\n FROM sysUGFValues AS uv\n INNER JOIN sysUsers AS u ON u.itemID=uv.userID\n WHERE uv.sysStatus='active'\n AND uv.sysOpen='1'\n AND u.sysStatus='active'\n AND u.sysOpen='1'\n AND uv.fieldID='3'\n AND uv.value='%s'\",\n $this->db->escape($email));\n $res = $this->db->query($qry);\n if ($this->db->num_rows($res) > 0) {\n\n $mail = new PHPMailer();\n\n while ($u = $this->db->fetch_assoc($res)) {\n\n $hash = $this->generateToken();\n\n // insert a unique hash into the DB to check on later\n $qry = sprintf(\"UPDATE sysUsers SET fpHash='%s' WHERE itemID='%d'\",\n $hash,\n $u['userID']);\n $this->db->query($qry);\n $resetLink = 'http://' . $_SERVER['HTTP_HOST'] . '/reset-password?token=' . $hash;\n\n $mail->Subject = ucwords($_SERVER['HTTP_HOST']) . \" password reset\";\n $mail->AddAddress($email);\n $mail->SetFrom('[email protected]', 'Intervue');\n\n\n $mail->Body = \"<p>Hi there,</p>\n\n <p>There was recently a request to change the password on your account.</p>\n\n <p>If you requested this password change, please set a new password by following the link below:</p>\n\n <p>{$resetLink}</p>\n\n <p>If you don't want to change your password, just ignore this message.</p>\n\n <p>Thanks</p>\";\n\n $mail->AltBody = strip_tags($mail->Body);\n\n if (!$mail->Send()) {\n return false;\n }\n\n $mail->ClearAllRecipients();\n\n }\n\n return true;\n }\n\n return 'No user found';\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 resetPasswordPostAction() {\n $request = Request::createFromGlobals();\n $userEmail = $request->request->get('_username', '');\n \n // Get the user object\n $user = $this->getDoctrine()\n ->getRepository('AppBundle:Users')\n ->findOneBy(array('email' => $userEmail));\n \n if (!$user)\n {\n $error = \"User not found!\";\n }\n else\n {\n // Generate a user hash\n $hash = $this->generateUserHash($user);\n \n // Send reset password email\n $mailer = $this->get('mailer');\n $message = $mailer->createMessage()\n ->setSubject('Tabulit Password Reset')\n ->setFrom('[email protected]') \n ->setTo($user->getEmail())\n ->setBody(\n $this->renderView(\n 'AppBundle:Email:resetPassword.html.twig', array(\n 'id' => $user->getId(),\n 'hash' => $hash->getRc4Key(),\n 'hash_time' => $hash->getCreated())\n ),\n 'text/html'\n );\n $mailer->send($message);\n $this->logAction(\"Reset password mail has been sent for \".$user->getId(), self::LOGTYPE_EDIT, $user->getId());\n $error = \"NONE\";\n }\n \n return $this->resetPasswordAction($error, $userEmail);\n }", "public function send_pw_reset_email($to,$id) {\r\n \r\n $full_url= BASE_URL . \"/#/reset_pw/\" . $id;\r\n $this->mail->addAddress($to); // Add a recipient\r\n $this->mail->Subject = PW_RESET_SUBJECT;\r\n $this->mail->Body = strtr (PW_RESET_BODY, array ('{{res_link}}' => $full_url));;\r\n //$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';\r\n $resp = $this->mail->send();\r\n return $resp;\r\n }", "public function getPasswordReset(){\n return view('auth.passwords.reset');\n }", "public function requestPasswordReset()\n {\n $this->View->render('user/requestPasswordReset');\n }", "function sendAccountResetEmail($registrant, $newPwd)\n{\n $givenName = $registrant['givenName'];\n $familyName = $registrant['familyName'];\n $email = $registrant['email'];\n $accountName = $registrant['accountName'];\n $subject = \"Your contest registration system account.\";\n $mailContent = $givenName . ' ' . $familyName .\n \":\\n\\nHere are your new login credentials\" .\n \" for the contest registration system.\\n\";\n $mailContent .= \"Account name: \" . $accountName . \"\\n\";\n $mailContent .= \"Password: \" . $newPwd . \"\\n\";\n $mailContent .= \"Log-in to change your password right away as email is not secure.\\n\";\n $mailContent .= \"\\nUse the following link to log-in and change your password:\\n\";\n $mailContent .= \"\\n\" . REGISTRATION_URL . \"login.php?url=changePWD.php&uid=\" . urlencode($accountName);\n $mailContent .= \"&pwd=\" . urlencode($newPwd) . \"\\n\";\n $mailContent .= \"\\nIf you have difficulty, please write to the web site administrator: \";\n $mailContent .= \"mailto:\" . ADMIN_EMAIL . \"?subject=\" . urlencode(\"contest registration password reset\");\n $mailContent .= \" or simply reply to this note.\\n\";\n $mailContent .= automatedMessage('contest');\n $fromAddress = \"From: \" . ADMIN_EMAIL . \"\\r\\n\";\n do_email($email, $subject, $mailContent, $fromAddress);\n}", "public function getForgottenPassword()\n {\n return view('users.forgotten_password');\n }", "public function sendResetEmail()\n {\n $resetToken=$this->extractTokenFromCache('reset')['reset_token'];\n\n $url = url('/'.$this->id.'/resetPassword',$resetToken);\n Mail::to($this)->queue(new ResetPasswordEmail($url));\n }", "public function getEmailForPasswordReset()\n {\n return $this->getAttribute('email');\n }", "public function forgot_password() {\n\t\t$this->output->append_title('Forgot Password');\n\t\t$data = array();\n\t\tif($this->input->post())\n\t\t{\n\t\t\t$this->form_validation->set_rules('email', 'Email', 'trim|required');\n\t\t\tif($this->form_validation->run() == TRUE)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$email = $this->input->post('email');\n\t\t\t\t\t$subject = 'Password Reset Confirmation';\n\t\t\t\t\t\n\t\t\t\t\t// Find the user using the user email address\n\t\t\t\t\t$user = Sentry::findUserByLogin($email);\n\t\t\t\t\t\n\t\t\t\t\t// Get the password reset code\n\t\t\t\t\t$resetCode = $user->getResetPasswordCode();\n\t\t\t\t\t$url = website_url('auth/reset/'.$resetCode);\n\t\t\t\t\t$template_data = array(\n\t\t\t\t\t\t'email_title' => 'Forgot Password',\n\t\t\t\t\t\t'email_heading' => 'Hello',\n\t\t\t\t\t\t'email_body' => 'There was recently a request to reset your password.\n\t\t\t\t\t\t<br/>If you requested this password change, please click on the following link to reset your password:<br/> <a href=\"'.$url.'\">'.$url.'</a><br/>\n\t\t\t\t\t\tIf clicking the link does not work, please copy and paste the URL into your browser instead.<br/><br/>\n\t\t\t\t\t\tIf you didn\\'t make this request, you can ignore this message and your password will remail the same.\n\t\t\t\t\t\t'\n\t\t\t\t\t);\n\n\t\t\t\t\t$body = $this->parser->parse('emails/user_registration', $template_data,TRUE);\n\t\t\t\t\tif($this->common->sendEmail($email,$subject,$body))\n\t\t\t\t\t{\n\t\t\t\t\t\t$message = array('type' => 'success','message' => 'An email has been sent to your email address with instructions to reset your password.');\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$message = array('type' => 'warning','message' => 'Unable to send email, please try again later.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Cartalyst\\Sentry\\Users\\UserNotFoundException $e)\n\t\t\t\t{\n\t\t\t\t\t$message = array('type' => 'danger','message' => 'Email does not exists.');\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$message = array('type' => 'danger','message' => $this->message->validation_errors());\n\t\t\t}\n\t\t\t\n\t\t\t$this->message->set($message['type'], $message['message']);\n\t\t}\n\t\t\n\t\t$data['email'] = array('name' => 'email',\n\t\t\t'autofocus' => 'autofocus',\n\t\t\t'id' => 'email',\n\t\t\t'placeholder' => 'Email',\n\t\t\t'class' => 'form-control',\n\t\t\t'type' => 'text',\n\t\t\t//'value' => $this->form_validation->set_value('email')\n\t\t);\n\t\t$this->load->view(parent::$module.'/forgot_password',$data);\n\t}", "function requestpasswordreset_action()\n {\n $login_model = $this->loadModel('Login');\n // set token (= a random hash string and a timestamp) into database\n // to see that THIS user really requested a password reset\n if ($login_model->setPasswordResetDatabaseToken() == true) {\n // send a mail to the user, containing a link with that token hash string\n $login_model->sendPasswordResetMail();\n }\n $this->view->render('login/requestpasswordreset');\n }", "public function forgotpasswordAction() {\n $form = new Admin_Form_ResendPassword();\n if ($this->getRequest()->isPost()) {\n if ($form->isValid($this->_request->getPost())) {\n //check user is registered\n $values = $form->getValues();\n $siteUsersMapper = new Application_Model_Table_AdminUsers();\n $exists = $siteUsersMapper->fetchByUsername($values['email_address']);\n if($exists){\n //user exists\n $recoveryEmailsMapper = new Application_Model_Table_AdminUserRecoveryEmails();\n $recoveryEmail = $recoveryEmailsMapper->createRow();\n $recoveryEmail->admin_user_id = $exists->admin_user_id;\n $recoveryEmail->email_address = $exists->username;\n $recoveryEmail->hashActivationKey();\n $recoveryEmail->save();\n }\n $this->_helper->FlashMessenger->addMessage('You password has been reset, please check your email' , 'successful');\n $this->_helper->redirector->goToRouteAndExit(array(), 'admin-dashboard', true);\n }\n }\n $this->view->form = $form;\n }", "public function forgotPassword()\n {\n\n return view('auth.passwords.email');\n }", "public function forgot_password_action() {\n $email = $this->input->post(\"email\", true);\n $rply = $this->model_customer->check_username($email);\n $this->load->helper('string');\n if ($rply['errorCode'] == 1) {\n $define_param['to_name'] = ($rply['Firstname']) . \" \" . ($rply['Lastname']);\n $define_param['to_email'] = $rply['Email'];\n $userid = $rply['ID'];\n $hidenuseremail = $rply['Email'];\n $hidenusername = ($rply['Firstname']) . \" \" . ($rply['Lastname']);\n //Encryprt data\n $encid = $this->general->encryptData($userid);\n $encemail = $this->general->encryptData($hidenuseremail);\n $url = base_url(\"reset-password/\" . $encid . \"/\" . $encemail);\n\n $update['reset_password_check'] = 0;\n $update['reset_password_requested_on'] = date(\"Y-m-d H:i:S\");\n $result = $this->model_customer->update(\"app_customer\", $update, \"ID='\" . $userid . \"'\");\n\n //Send email\n $subject = translate('reset_password');\n $define_param['to_name'] = $hidenusername;\n $define_param['to_email'] = $hidenuseremail;\n\n $parameter['URL'] = $url;\n $html = $this->load->view(\"email_template/forgot_password\", $parameter, true);\n $this->sendmail->send($define_param, $subject, $html);\n\n $this->session->set_flashdata('msg', $rply['errorMessage']);\n $this->session->set_flashdata('msg_class', 'success');\n redirect('login');\n } else {\n $this->session->set_flashdata('msg', $rply['errorMessage']);\n $this->session->set_flashdata('msg_class', 'failure');\n redirect('forgot-password');\n }\n }", "protected function sendPasswordResetEmail(){\n\t\t// generate the url\n\t\t$url = 'http://'.$_SERVER['HTTP_HOST'].'/password/reset/'.$this->password_reset_token;\n\t\t$text = View::getTemplate('Password/reset_email.txt', ['url' => $url]);\n\t\t$html = View::getTemplate('Password/reset_email.html', ['url' => $url]);\n\t\t\n\t\tMail::send($this->email, 'Password_reset', $text, $html);\n\t}", "public function getAdminEmailTemplate ()\n {\n $emailTemplate = $this->scopeConfig->getValue(\n 'b2bregistration/admin_notification/admin_email_templates',\n ScopeInterface::SCOPE_STORE\n );\n return $emailTemplate;\n }", "public function toMail($notifiable)\n {\n // dd(Config(\"auth.user_mode\"));\n $url = url(Config(\"auth.user_mode\").'/reset_password').'/'.$this->token;\n // $url = url('/').'/admin/reset_password/'.$this->token;\n\n $verification_url = '<a target=\"_blank\" style=\"border: 1px solid #ff4747; color: #ffffff; display: block; font-size: 18px; letter-spacing: 0.5px; background-color: #ff4747;\n margin: 0 auto; max-width: 200px; padding: 11px 6px; height: initial; text-align: center; text-transform: capitalize; text-decoration: none; width: 100%; border-radius: 5px;\" href='.$url.'>Reset Password</a><br/>';\n\n // dd($verification_url);\n\n $arr_email_data = [];\n\n $obj_email_data = EmailTemplateModel::where('id','3')->first();\n\n if($obj_email_data)\n {\n $arr_email_data = $obj_email_data->toArray();\n }\n\n $content = '';\n $content .= $arr_email_data['template_html'];\n\n $content = str_replace('##SUBJECT##', $arr_email_data['template_subject'], $content);\n $content = str_replace('##USERNAME##', $notifiable->company_name, $content);\n $content = str_replace('##VERIFICATION_URL##', $verification_url, $content);\n\n return (new MailMessage)->view('user.email.general', array('content'=>$content))->subject(config('app.project.name').' :Forgot Password');\n }", "public function forgot_password()\n\t{\n\t\t$email = Input::get('email');\n\n\t\t//Get reset code and send email\n\t\tif($resetCode = $this->repo->getResetCode($email))\n\t\t{\n\t\t\treturn View::make('authentication.confirm_reset_code_sent')->with('email',$email)->with('resetCode',$resetCode);\n\t\t}\n\t\treturn View::make('authentication.forgot_password')->withInput(Input::all()); \n\t}", "public function forgot()\n {\n $useremail = $this->input->post(EMAIL);\n $this->load->model('booking/Bookingmodel');\n $constants = $this->Bookingmodel->getConstants();\n $user = $this->user->get_user_by_email_password($useremail);\n if ($user) {\n $slug = md5($user->userID . $user->emailID);\n $message = '<img src=\"' . base_url('assets/images/logo.png') . '\" border=\"0\"><br>It looks like you forgot your password. No problem, we’ll get this cleared up.<br><br>\n <b>To reset your password please click the link below and follow the instructions:</b><br><br>\n **<a href=\"' . base_url('login/reset/' . $user->userID . '/' . $slug) . '\"> ' . base_url('login/reset/' . $user->userID . '/' . $slug) . '</a>\n <br><br>\n If you did not request to reset your password then please ignore this email and no changes will occur.';\n $this->load->library(EMAIL);\n $this->email->from($constants->fromEmail);\n $this->email->to($useremail);\n $this->email->subject('Reset Password');\n $this->email->message($message);\n if (!$this->email->send()) {\n $emailInfo['emailStatus'] = 0;\n $emailInfo['toEmail'] = $useremail;\n $emailInfo['fromEmail'] = $constants->fromEmail;\n $emailInfo['content'] = $message;\n $emailInfo['subject'] = 'Reset Password';\n $this->load->model('profile/Profilemodel');\n $this->Profilemodel->saveEmailStatus($emailInfo);\n }\n echo \"1\";\n } else {\n echo \"0\";\n }\n }", "public function sendResetPasswordInstruction() {\n $data = \\Input::all();\n /**\n * @todo Validate Email\n */\n if (!isset($data['email']) || !$data['email']) {\n return $this->json(array('status' => 'error',\n 'errors' => array('No email address supplied')));\n }\n\n try {\n\n // Find the user using the user email address\n $user = \\Sentry::findUserByLogin($data['email']);\n\n // Get the password reset code\n $resetCode = $user->getResetPasswordCode();\n\n // Send password reset email to the user\n $this->notificationService->sendEmail($data['email'], $user->getEmail(), 'Reset Your Password', 'email.resetpassword', compact('user', 'resetCode'));\n\n return $this->json(array(\"status\" => \"success\", \"message\" => \"Password reset instruction sent\"));\n } catch (Cartalyst\\Sentry\\Users\\UserNotFoundException $e) {\n return $this->json(array('status' => 'error',\n 'errors' => array('User was not found')));\n }\n }", "public function reset($username) {\r\n\t\tglobal $db;\r\n\t\t// Resets a users password.\r\n\t\tif (strpos($username,'@') > 0) {\r\n\t\t\t// Its an Email.\r\n\t\t\t$udata = db::get_array(\"users\",array(\"email\"=>$username));\r\n\t\t} else {\r\n\t\t\t$udata = db::get_array(\"users\",array(\"username\"=>$username));\r\n\t\t}\r\n\t\t// Check if they exist.\r\n\t\tif (count($udata) > 0) {\r\n\t\t\t// Yup\r\n\t\t\t$rand = $this->gen_rand();\r\n\t\t\t$udata = $udata[0];\r\n\t\t\t$uid = $udata['id'];\r\n\t\t\t\r\n\t\t\t// Update their account.\r\n\t\t\tdb::update(\"users\",array(\"passreset\"=>1,\"passresetkey\"=>$rand),array(\"id\"=>$uid));\r\n\t\t\t\r\n\t\t\t// Send them an email.\r\n\t\t\t$e = new email_tmpl();\r\n\t\t\t$e->init($udata['email'],\"Password Reset\");\r\n\t\t\t$e->load(\"password_reset\");\r\n\t\t\t$e->set_var(\"key\",$rand);\r\n\t\t\t$e->set_var(\"username\",$udata['username']);\r\n\t\t\t$eres = $e->send();\r\n\t\t\t\r\n\t\t\t// Add a notification too. C:\r\n\t\t\tif ($eres) {\r\n\t\t\t\t$this->notifications($uid)->create(\"Password Reset\",\"You have requested a password reset, We've sent you an Email to you containing a link to reset your password. If this wasn't you contact support immediately.\");\r\n\t\t\t\treturn array(\"res\"=>true,\"msg\"=>\"Password has been reset and Emailed to {$udata['email']}\",\"email\"=>$udata['email']);\r\n\t\t\t} else {\r\n\t\t\t\t$this->notifications($uid)->create(\"Password Reset\",\"You have requested a password reset. However we were unable to send you an Email. Please open a support ticket or contact us directly via IRC.\");\r\n\t\t\t\treturn array(\"res\"=>true,\"msg\"=>\"Password has been reset but could not be Emailed to {$udata['email']} please open a support ticket if you have account access, e.g. still logged in or talk to staff on IRC.\",\"email\"=>$udata['email']);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Nope.\r\n\t\t\treturn array(\"res\"=>false,\"msg\"=>\"There was no such user with that Username/E-Mail!\");\r\n\t\t}\r\n\t}", "function forgot_password() {\n $datos['titulo'] = \"Restablecer Contraseña\";\n $this->render_page('usuarios/forgot_password', $datos);\n }", "public function sendEmail()\n {\n /* @var $user User */\n $user = User::findOne([\n 'status' => User::STATUS_ACTIVE,\n 'email' => $this->email,\n ]);\n\n if ($user) {\n if (!User::isPasswordResetTokenValid($user->password_reset_token)) {\n $user->generatePasswordResetToken();\n }\n\n if ($user->save()) {\n // return \\Yii::$app->mailer->compose('passwordResetToken', ['user' => $user])\n // ->setFrom([\\Yii::$app->params['supportEmail'] => \\Yii::$app->name . ' robot'])\n // ->setTo($this->email)\n // ->setSubject('Password reset for ' . \\Yii::$app->name)\n // ->send();\n\n//http://localhost/eventone/web/site/reset-password?token=c4psNELzGEz9yAAJqjUasMYsDcm8Z4mt_1424623364\n //send email\n $body = \"<p>\nReset or change your password by clicking the link below\n</p>\n<p>\n <a href=\\\"\" . (\\yii\\helpers\\Url::toRoute('site/reset-password', true)) . \"/?token=\" . $user->password_reset_token . \"\\\">Reset my password</a>.\n</p>\n\n<p>\nIf you have not requested for this email on our web site<br />\nand believe that you have received this email eroneously,<br />\nplease report this to \" . (Yii::$app->params['supportEmail']) . \".<br />\n-----------------------------------------------------------<br />\nThis message was sent by \" . (Yii::$app->params['siteName']) . \" which is powered by \" . (Yii::$app->params['companyName']) . \".<br />\n</p>\n \";\n\n mail($this->email, \"Password Reset\", $body); \n }\n }\n\n return false;\n }", "public function forget_password() {\n $this->layout = 'custom';\n if ($this->request->is('post')) {\n if (empty($this->data['email'])) {\n $errors = 'Please Provide Your Email Adress that You used to Register with Us';\n $this->set('errors', $errors);\n $this->render('/Users/forget_password');\n }\n\n $emails = $this->request->data['email'];\n\n\n // Check if the Email exist\n\n $firstEmail = $this->User->find('first', array(\n 'conditions' => array(\n 'User.email' => $emails,\n ),\n ));\n if (!empty($firstEmail)) {\n \n\n // create the url with the reset function\n $name = $firstEmail['User']['first_name'];\n $id = $firstEmail['User']['id'];\n $hash = base64_encode($id);\n $url = Router::url(array(\n 'controller' => 'users',\n 'action' => 'reset',\n ), true) . '/' . $id;\n \n $dataArry =array('url' => $url,\n 'name' =>$name, );\n // ============Email================//\n\n if ($emails) {\n $Email = new Email();\n $status = $Email->sendEmail($emails, 'forget password', 'reset_password', $dataArry);\n $emailSucces = 'Check Your Email To Reset your password';\n $this->set('successmsg', $emailSucces);\n $this->render('/Users/forget_password');\n } else {\n $errors = 'Please Provide Your Email Adress that You used to Register with Us';\n $this->set('errors', $errors);\n $this->render('/Users/forget_password');\n }\n }\n }\n\n \n $this->render('/Users/forget_password');\n }", "public function resetAndUpdatePassword() {\n $this->validate ( $this->request, $this->getRules () );\n $user = User::where ( 'email', $this->request->email )->first ();\n \n if (!empty($user) && count ( $user->toArray() ) > 0) {\n $user->password = Hash::make ( (true) ? config()->get('app.user_password'): $this->generatePassword() );\n \n $user->save ();\n $this->email = $this->email->fetchEmailTemplate ( 'admin_forgot' );\n $this->email->subject = str_replace(['##SITE_NAME##'], [config ()->get ( 'settings.general-settings.site-settings.site_name' )], $this->email->subject);\n $this->email->content = str_replace (['##USERNAME##','##FORGOTPASSWORD##'],[$user->name,'admin123'],$this->email->content );\n $this->notification->email ( $user, $this->email->subject, $this->email->content );\n return true;\n } else {\n return false;\n }\n }", "public function forget_password_post()\n {\n $admin = User::where('email', request('email'))->first();\n if(!empty($admin))\n {\n $token = app('auth.password.broker')->createToken($admin);\n $data = DB::table('password_resets')->insert([\n 'email' => $admin->email,\n 'token' => $token,\n 'created_at' => Carbon::now()\n ]);\n\n Mail::to($admin->email)->send(new reset_password(['data' => $admin, 'token' => $token]));\n return back();\n }\n }", "public function getForgotPasswordTemplate($variables = array())\n {\n $view = $this->_phpRenderView;\n\n $resolver = $this->_resolver;\n\n $resolver->setMap([\n 'mailTemplate' => __DIR__ . '/../../../view/user/user/forgot-mail-template.phtml'\n ]);\n\n $view->setResolver($resolver);\n\n $viewModel = $this->_viewModel;\n\n $viewModel->setTemplate('mailTemplate');\n\n $viewModel->setVariables($variables);\n\n $content = $view->render($viewModel);\n\n return $content;\n }", "public function displayResetPassword()\n {\n $this->render('reset-password', ['head'=>['title'=>'Réinitialisation de votre mot de passe', 'meta_description'=>'']]);\n }", "public function resetpassAction()\n\t{\n\t\t$email='[email protected]';\n\n\t\t$customer = Mage::getModel('customer/customer')\n ->setWebsiteId(Mage::app()->getStore()->getWebsiteId())\n ->loadByEmail($email);\n\t\t$customer->sendPasswordResetConfirmationEmail();\n\t}", "public function notifyPasswordUpdate($data){\r\n\t$this->sendTemplateEmail($data['email'], $this->app_config['password_reset_notification_subject'], $this->app_config['password_reset_notification_body'], $data);\r\n}", "public function resetPasswordSendEmail()\n {\n // if user is logged in, do not let him access this page\n if( Session::isLoggedIn() )\n {\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }\n\n $studentEmail = SCMUtility::stripTags($_POST['forgot_password_email']);\n\n // create token\n $token = uniqid('',true);\n\n // start session reset password\n $this->resetPasswordSessionActivate($token);\n\n // get student\n $student = User::where('email',$studentEmail)->first();\n\n if( ! $student )\n {\n SCMUtility::setFlashMessage('Sorry, we cannot find any user associated with that email address.','danger');\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }\n\n // send password reset link to email\n $studentMailerService = new StudentMailerService();\n $studentMailerService->sendResetPasswordLink($student->email,$token,$student->id);\n\n SCMUtility::setFlashMessage('A reset password link has been sent to your email. Open your email and follow the link to reset your account password. Please do not close this browser during the process. (If you are not receiving a password reset email, consider contacting me directly.)');\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }", "function requestpasswordreset()\n {\n $this->view->render('login/requestpasswordreset');\n }", "public static function GetForgotPasswordURL() {\n // TODO: when we implement other authentication providers (SAML/etc)\n // this URL will need to be configuable by the system administrator\n // since they likely will not want users attempting to reset ChurchCRM passwords\n // but rather redirect users to some other password reset mechanism.\n return SystemURLs::getRootPath() . \"/session/forgot-password/reset-request\";\n }", "public function sendResetPasswordEmail()\n {\n $passwordReset = $this->generateResetPasswordToken();\n\n SendEmailJob::dispatch($this, 'forgot-password', 'Reset Your Password', ['props' => $passwordReset])->onQueue('account-notifications');\n }", "public function get_forgot_account() {\n return View::make('login.forgot-account');\n }", "public function sendEmail() {\n\t\t/* @var $user User */\n\t\t$user = User::findOne([\n\t\t\t'status' => User::STATUS_ACTIVE,\n\t\t\t'email' => $this->email,\n\t\t]);\n\n\t\tif (!$user) {\n\t\t\tYii::info(\"Send password reset email failed: user not found for {$this->email}.\", __METHOD__);\n\t\t\treturn false;\n\t\t}\n\t\tif (($token = $user->validPasswordResetToken) == null) {\n\t\t\t$token = new PasswordResetToken;\n\t\t\t$token->user_id = $user->id;\n\t\t\t$token->requestIP = Yii::$app->request->userIP;\n\t\t\t$token->expire = time() + Yii::$app->params['user.passwordResetTokenExpire'];\n\t\t\tdo {\n\t\t\t\t$token->token = Yii::$app->security->generateRandomString();\n\t\t\t} while (!$token->validate('token'));\n\t\t\tif (!$token->save()) {\n\t\t\t\tYii::error([\n\t\t\t\t\t\"Save new PasswordRestToken failed\",\n\t\t\t\t\t'error' => $token->errors,\n\t\t\t\t], __METHOD__);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn Yii::$app->mailer->compose([\n\t\t\t\t'html' => 'passwordResetToken-html',\n\t\t\t\t'text' => 'passwordResetToken-text'\n\t\t\t], [\n\t\t\t\t'username' => $user->username,\n\t\t\t\t'token' => $token->token,\n\t\t\t])->setFrom([Yii::$app->params['supportEmail'] => Yii::$app->name . ' robot'])\n\t\t\t->setTo($this->email)\n\t\t\t->setSubject('Password reset for ' . Yii::$app->name)\n\t\t\t->send();\n\t}", "public function ForgotPassword($email)\n {\n $link = base_url(\"admin/redefine-password/{$email['user_uuid']}\");\n\n // PHPMailer object\n $mail = $this->phpmailer_lib->load();\n\n // SMTP configuration\n $mail->isSMTP();\n $mail->SMTPAuth = true;\n $mail->Host = getenv('MAIL_HOST');\n $mail->Username = getenv('MAIL_USER');\n $mail->Password = getenv('MAIL_PASS');\n $mail->Port = intval(getenv('MAIL_PORT'));\n\n $mail->setFrom(getenv('MAIL_USER'), \"Sistema - \" . getenv('SIS_NAME'));\n $mail->addReplyTo(getenv('MAIL_USER'), \"Sistema - \" . getenv('SIS_NAME'));\n\n // Add a recipient\n $mail->addAddress($email['user_email'], $email[\"user_name\"]);\n\n // Email subject\n $mail->Subject = 'Redefinir senha';\n\n // Charset\n $mail->CharSet = 'utf-8';\n\n //Language\n $mail->SetLanguage('pt-Br');\n\n\n // Set email format to HTML\n $mail->isHTML(true);\n\n // Email body content\n $mailContent = \"\n <div style=\\\"margin:0;padding:0;background-color:#f0f0f0;\\\">\n <div style=\\\"background-color:#f0f0f0; padding:5px;\\\">\n <div style=\\\"font-size:10px;line-height:10px\\\">&nbsp;</div>\n <table style=\\\"border-collapse:collapse;table-layout:fixed; margin: 20px auto 0;word-wrap:break-word;word-break:break-word;background-color:#ffffff\\\" align=\\\"center\\\">\n <tbody>\n <tr>\n <td style=\\\"padding:0;text-align:left;vertical-align:top;color:#787778;font-size:14px;line-height:21px;font-family:Ubuntu,sans-serif;width:600px\\\">\n <div style=\\\"Margin-left:20px;Margin-right:20px;Margin-top:24px\\\">\n <div style=\\\"line-height:20px;font-size:1px\\\">&nbsp;</div>\n </div>\n <div style=\\\"Margin-left:20px;Margin-right:20px\\\">\n <h1 style=\\\"Margin-top:0;Margin-bottom:0;font-style:normal;font-weight:normal;color:#565656;font-size:36px;line-height:43px;text-align:center\\\">\n <strong>Redefinir Senha</strong>\n </h1>\n <p>Olá, <b>{$email['user_name']}!</b>.<br/></p>\n <p style=\\\"background-color: #eeeeee; padding: 15px; position: relative; left: -15px;\\\">\n Para garantir uma boa prática de que você realmente pediu para redefinir a senha acesse o link abaixo, pedimos que todos os usuários confirmem a titularidade do e-mail. Assim evitamos enviar mensagens para alguém que não queira recebê-las. <br>\n Clique no <b>LINK</b> abaixo para <b>REDEFINIR A SENHA</b>.\n </p>\n <br/>\n <a href=\\\"{$link}\\\" style=\\\"font-family:'Arial',sans-serif; font-size: 17px; background-color: #5cb85c; padding: 15px; color: #FFFFFF; text-decoration: none;\\\">REDEFINIR A SENHA</a>\n <br/>\n <br/>\n <p>Este e-mail é enviado pelo sistema, por favor não o responda.<br/>Qualquer dúvida entre em contato pelo e-mail <b>\" . getenv('MAIL_SUPORTE') . \"</b>.</p>\n </div>\n <div style=\\\"Margin-left:20px;Margin-right:20px\\\">\n <div style=\\\"line-height:10px;font-size:1px\\\">&nbsp;</div>\n </div>\n <div style=\\\"Margin-left:20px;Margin-right:20px\\\">\n <div style=\\\"line-height:10px;font-size:1px\\\">&nbsp;</div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n <table cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" width=\\\"600\\\" align=\\\"center\\\" bgcolor=\\\"#e0ddd6\\\" border=\\\"0\\\" style=\\\"margin-bottom:20px;\\\">\n <tbody>\n <tr>\n <td width=\\\"15\\\"></td>\n <td>\n <table cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" width=\\\"600\\\" align=\\\"center\\\" bgcolor=\\\"#666666\\\" border=\\\"0\\\" style=\\\"border-bottom-left-radius:4px;border-bottom-right-radius:4px\\\">\n <tbody>\n <tr>\n <td height=\\\"14\\\">\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n <td width=\\\"15\\\"></td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n \";\n\n $mail->Body = $mailContent;\n\n // Send email\n if(!$mail->send()):\n return $mail->ErrorInfo;\n \n else: \n return true;\n\n endif;\n }", "public function toString()\n {\n return 'Customer forgot password message is present on customer account forgot password page.';\n }", "public function getForgotPassword()\n {\n \treturn view('layouts.forgotPassword');\n }", "function sending_forgot_password_email($data, &$content) {\n\t\t// Create content\n\t\t$content = sprintf($this->ci->lang->line('auth_forgot_password_content'), \n\t\t\t$this->ci->config->item('DX_website_name'), \n\t\t\t$data['reset_password_uri'],\n\t\t\t$data['password'],\n\t\t\t$data['key'],\n\t\t\t$this->ci->config->item('DX_webmaster_email'),\n\t\t\t$this->ci->config->item('DX_website_name'));\n\t}", "public function resetPassword($user)\n {\n $message = (new \\Swift_Message('Votre nouveau mot de passe sur Ynovagroup.com'))\n ->setFrom('[email protected]')\n ->setTo($user->getEmail())\n ->setBody($this->twig->render('email/resetpassword.html.twig', ['user' => $user]), 'text/html');\n\n return $this->mailer->send($message);\n }", "public function forgot_password()\n {\n return View::make(Config::get('confide::forgot_password_form'));\n }", "public function actionRequestpasswordreset() {\n\t\treturn $this->render('requestpasswordreset');\n\t}", "public static function sendEmailToResetPassword($data)\n {\n $email = $data['email'];\n $user = \\Modules\\Frontend\\Auth\\User::where('email', $email)\n ->first();\n if (empty($user)) {\n return ['rs'=>System::FAIL, 'msg'=>STheme::lang('lang.msg.user_not_exists')];\n } else {\n DB::beginTransaction();\n try {\n $newPass = Functions::generateRandomString(6);\n $user->password = Hash::make($newPass);\n $user->save();\n $params = [\n 'email' => $email,\n 'name' => $user->first_name.' '.$user->last_name,\n 'subject' => STheme::lang('lang.general.reset_password'),\n 'data' => ['newPass'=>$newPass],\n 'template' => 'mails.resetPassword'\n ];\n DB::commit();\n System::sendMail($params);\n if (Mail::failures()) {// check for failures\n return ['rs'=>System::FAIL, 'msg'=>STheme::lang('lang.msg.mail_not_send')];\n }\n Session::flash(System::FLASH_SUCCESS, STheme::lang('lang.msg.send_mail_forgot_password_success'));\n return [\n 'rs'=>System::SUCCESS,\n 'msg'=>'',\n 'redirect_url'=>'/forgot-password'\n ];\n } catch (\\Exception $e) {\n DB::rollBack();\n return ['rs'=>System::FAIL, 'msg'=>$e->getMessage()];\n }\n }\n }", "public function generateEmailResetToken()\n {\n $this->reset_token = \"E\" . Yii::$app->security->generateRandomString() . '_' . time();\n }", "private function getHTMLPassReset($firstname, $username, $action){\n $random = $this->generateRandomString(40);\n $Db = new Database();\n $Db->addPassResetToUser($username,$random);\n $message = file_get_contents('mails/resetPassword.html');\n $message = str_replace('%firstname%', $firstname, $message);\n $message = str_replace('%username%', $username, $message);\n\n $message = str_replace('%action%', $action , $message);\n $message = str_replace('%secret%', $random, $message);\n return $message;\n }", "public function sendPasswordResetRequest() {\r\n\t\t$user_model = $this->load_model('UserModel');\t\r\n\t\t$user_data = $user_model->getUserByEmail($this->params['forgotten_password_email']);\r\n\t\t\r\n\t\tif($user_data !== null){\r\n\t\t\t$password_reset = $this->generatePasswordResetLink($user_data['ID'], $this->params['forgotten_password_email']);\r\n\t\t\t\r\n\t\t\t$password_reset_model = $this->load_model('PasswordResetModel');\r\n\t\t\t$password_reset_model->insertHash($user_data['ID'], $password_reset['hash']);\r\n\t\t\t\r\n\t\t\tif(Utils::sendPasswordResetEmail($this->params['forgotten_password_email'], $password_reset['link'])){\r\n\t\t\t\t$this->sendResponse(1, true);\r\n\t\t\t} else {\r\n\t\t\t\t$this->sendResponse(0, ErrorCodes::EMAIL_ERROR);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t$this->sendResponse(0, array('field' => 'forgotten_password_email', 'error_code' => ErrorCodes::EMAIL_NOT_FOUND));\r\n\t\t}\r\n\t}", "public function forgot_password() {\n $flash = null;\n // if the user has tried logging in\n if(isset($_POST['username'])){\n $email = $_POST['username'];\n $user = $this->User->getByEmail($email);\n $pass = rand(111111, 999999);\n if($this->User->setPassword($user['id'], $pass)) {\n $text = <<<END\nBecause of a request on our site, your password has been reset. To change your password, go to /users/change_password\nYour username is: {$email}\nYour password is: {$pass}\nEND;\n $email = self::getLib('email');\n $html = $email->text2html($text, email);\n $email->setSender('support');\n $email->setReplyTo('support');\n $email->setRecipients( array($recipient) );\n $email->setSubject(\"Your password has been reset\");\n $email->addMessagePart($text);\n $email->addMessagePart($html, \"html\");\n $email->send();\n $flash = \"An email with your new password has been sent to you. You should receive it shortly.\";\n } else {\n $flash = \"An error occured.\";\n }\n } else {\n $flash = \"Please enter a user name.\";\n }\n return array('flash' => $flash);\n }", "protected function _send_reset_password_email($user, $code) {\n $data[\"base\"] = base_url();\n $data[\"user\"] = $user;\n $data[\"code\"] = $code;\n\n $content = $this->load->view(\"auth/email/forgot_password\", $data, true);\n $lib = new Email();\n $lib->setFrom(\"Kukua B.V. <[email protected]>\");\n $lib->setTo($user->first_name . \" \" . $user->last_name . \" <\" . $user->email . \">\");\n $lib->setSubject(\"Password reset\");\n $lib->setContent($content);\n $lib->send();\n\t}", "protected function _sendPasswordReset($admin = null, $options = array()) {\t\t\t\n\t\tif (!empty($this->request->data)) {\n\t\t\t\n\t\t\t$user = $this->User->passwordReset($this->request->data);\n\n\t\t\tif (!empty($user)) {\n\t\t\t\t$options = array(\n\t\t\t\t\t\t\t\t\t'layout'=>'password_reset_request',\n\t\t\t\t\t\t\t\t\t'subject'=>'Password Reset',\n\t\t\t\t\t\t\t\t\t'view'=>'default'\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t$viewVars = array('token'=>$user['User']['password_token'],'user'=>$user);\n\t\n\t\t\t\t//Send the email\n\t\t\t\t$this->_sendEmail($user['User']['email'],$options,$viewVars);\n\t\t\t\t\n\t\t\t\t$this->set('token', $user['User']['password_token']);\n\t\t\t\tif ($admin) {\n\t\t\t\t\t$this->Session->setFlash(sprintf(\n\t\t\t\t\t\t__('%s has been sent an email with instruction to reset their password.', true),\n\t\t\t\t\t\t$user['User']['email']));\n\t\t\t\t\t$this->redirect(array('action' => 'index', 'admin' => true));\n\t\t\t\t} else {\n\t\t\t\t\t$this->Session->setFlash(__('You should receive an email with further instructions shortly.', true));\n\t\t\t\t\t$this->redirect(array('action' => 'login'));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(__('No user was found with that email.', true));\n\t\t\t\t$this->redirect($this->referer('/'));\n\t\t\t}\n\t\t}\n\t\t$this->render('request_password_change');\n\t}", "public function send_email_reset_password($user_id)\n {\n $user_id = clean_number($user_id);\n $user = $this->auth_model->get_user($user_id);\n if (!empty($user)) {\n $token = $user->token;\n //check token\n if (empty($token)) {\n $token = generate_token();\n $data = array(\n 'token' => $token\n );\n $this->db->where('id', $user->id);\n $this->db->update('users', $data);\n }\n\n $data = array(\n 'subject' => trans(\"reset_password\"),\n 'to' => $user->email,\n 'template_path' => \"email/email_reset_password_api\",\n 'token' => $token,\n 'general_settings' => $this->api_general_settings->getAll(),\n 'settings' => $this->settings_model->get_settings('2'),\n 'lang_base_url' => base_url()\n );\n\n $this->send_email($data);\n }\n }", "public function reset(){\n\n $this->load->config('email');\n $this->load->library('email');\n\n\t$id = $this->generateID();\n \n $from = $this->config->item('smtp_user');\n $to = $this->input->post('user_email');\n $subject = 'Password Reset Confirmation';\n\n $resetURL = \"https://\" . $_SERVER['SERVER_NAME'] . '/user/reset_confirmation?id=' . $id . '&email=' . $to;\n\n $message = 'This password reset email was requested via our website. Please use the link below to reset your password. /r/r';\n $message .= $resetURL . '/r/r';\n $message .= 'If you did not request this email, please contact us.';\n\n $this->email->set_newline(\"\\r\\n\");\n $this->email->from($from);\n $this->email->to($to);\n $this->email->subject($subject);\n $this->email->message($message);\n\n //write reset link to db\n\t$this->Reset_model->storeResetLink($to, $id);\n\n if ($this->email->send()) {\n\t\t\t\n\t\techo $this->session->set_flashdata('msg','Your password reset email has been sent. Please check your email for the link to finish the password reset.');\n\n\t\tredirect('user');\n\n } else {\n \n\t\tshow_error($this->email->print_debugger());\n\n }\n\n\t}", "public function forgotPassword()\n {\n return \\View::make('pageblok::users.forgotPasswordForm');\n }", "public function forgot_password(){\n\n $this->data[\"title_tag\"]=\"Lobster | Accounts | Forgot Password\";\n\n $this->view(\"accounts/forgot_password\",$this->data);\n }", "public function onResetPassword(AdminEvent $event)\n {\n $user = $event->{AdminEvent::ENTITY};\n $password = $event->{AdminEvent::PASSWORD};\n $this->mailUser(\n $user->getEmail(),\n $user->getRealname(),\n $this->_(self::EMAIL_RESET_SUBJECT),\n $this->_(self::EMAIL_RESET_BODY,[\n \"username\"=>$user->getUsername(),\n \"password\"=>$password\n ])\n );\n return;\n }", "public function ResetPassword()\n\t{\n\t\t$siteConfig = SiteConfig::current_site_config();\n\t\t$this->NewTempPassword = $this->GeneratePassword();\n\t\t$passwordData = $this->EncryptPassword($this->NewTempPassword);\n\t\t$this->TempPassword = $passwordData['Password'];\n\t\t$this->TempPasswordSalt = $passwordData['Salt'];\n\n\t\t$explode = array_reverse(explode('.',$_SERVER['HTTP_HOST']));\n\t\t$domain = implode('.',array_reverse(array(array_shift($explode),array_shift($explode))));\n\t\tEmail::create()\n\t\t\t->setTo($this->Email,$this->FirstName.' '.$this->LastName)\n\t\t\t->setFrom($this->getAdminEmail())\n\t\t\t->setSubject($siteConfig->Title.' Password Reset')\n\t\t\t->setHTMLTemplate('emails/email_PasswordReset')\n\t\t\t->setData($this)\n\t\t\t->send();\n\t\t// write after email is sent so new password isn't lost\n\t\t$this->write();\n\t\treturn $this;\n\t}", "public function Forgotpasswordmail($to, $from, $name, $link)\n {\n $sendGrid = Yii::$app->sendGrid;\n $status = '';\n // get forgot password mail\n $forgot_mail_templates = EmailTemplates::find()->where(\n [\n 'email_type_id' => 1\n ]\n )->One();\n\n if (! empty($forgot_mail_templates)) {\n // removing place holders in mail body\n $body = str_replace(\"&lt;&lt;name&gt;&gt;\", $name, $forgot_mail_templates->body);\n $body = str_replace(\n \"&lt;&lt;password_btn&gt;&gt;\",\n '<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"mcnButtonBlock\" style=\"min-width:100%;\">\n\t\t\t <tbody class=\"mcnButtonBlockOuter\">\n\t\t\t <tr>\n\t\t\t <td style=\"padding-top:0; padding-right:18px; padding-bottom:18px; padding-left:18px;\" valign=\"top\" align=\"center\" class=\"mcnButtonBlockInner\">\n\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mcnButtonContentContainer\" style=\"border-collapse: separate !important;border-radius: 3px;background-color: #0076BC;\">\n\t\t\t <tbody>\n\t\t\t <tr>\n\t\t\t <td align=\"center\" valign=\"middle\" class=\"mcnButtonContent\" style=\"font-family: Arial; font-size: 16px; padding: 15px;\">\n\t\t\t <a class=\"mcnButton \" title=\"Reset Your Password\" href=\"'.$link.'\" target=\"_blank\" style=\"font-weight: bold;letter-spacing: normal;line-height: 100%;text-align: center;text-decoration: none;color: #FFFFFF;\">Reset Your Password</a>\n\t\t\t </td>\n\t\t\t </tr>\n\t\t\t </tbody>\n\t\t\t </table>\n\t\t\t </td>\n\t\t\t </tr>\n\t\t\t </tbody>\n\t\t\t</table>',\n $body\n );\n\n $message = $sendGrid->compose();\n $status = $message->setFrom($from)->setTo($to)->setReplyTo($from)->setSubject($forgot_mail_templates->subject)->setHtmlBody($body)->send($sendGrid);\n }//end if\n\n return $status;\n\n }", "public function setEmailTpl($value){$this->_emailTpl = $value;}", "public function forgetpasswordAction() {\n \n $modelPlugin = $this->modelplugin();\n $dynamicPath = $modelPlugin->dynamicPath();\n $phpprenevt = $this->phpinjectionpreventplugin(); \n $mailplugin = $this->mailplugin();\n $jsonArray = $modelPlugin->jsondynamic();\n $email = $phpprenevt->stringReplace($_POST['eid']);\n $publisheremailarray = array('email' => $email);\n $chkemail = $modelPlugin->getpublisherTable()->selectEmail($publisheremailarray);\n $currentDatetime = strtotime(date(\"Y-m-d h:i:s\"));\n $restpassallow = 0;\n if ($chkemail[0]['forgetpassTimestamp']) {\n $databaseDatetime = strtotime($chkemail[0]['forgetpassTimestamp']);\n $all = $currentDatetime - $databaseDatetime;\n $day = round(($all % 604800) / 86400);\n $hours = round((($all % 604800) % 86400) / 3600);\n $m = round(((($all % 604800) % 86400) % 3600) / 60);\n\n if ($day <= 0) {\n if ($hours <= 0) {\n if ($m <= 15) {\n $restpassallow = 1;\n $contentone['minutes'] = 15 - $m;\n }\n }\n }\n }\n if (count($chkemail) == 0) {\n $contentone['data'] = 0;\n } else if ($restpassallow == 1) {\n $contentone['data'] = 2;\n } else {\n $id = $chkemail[0][\"publisherId\"];\n $pass1 = password_hash($email, PASSWORD_BCRYPT);\n $arraypass = str_replace('/', '', $pass1);\n $buttonclick = $dynamicPath . \"/Gallery/galleryview/resetpassword/\" . $arraypass;\n $mail_link = \"<a href='\" . $buttonclick . \"' style='background-color: #04ad6a; border: medium none; border-radius: 19px; padding: 12px; color: #fff; text-align: center; text-decoration: none; text-transform: uppercase;'>Click here</a>\";\n $subject = \"[Smartfanpage] Set your password\";\n $from = $jsonArray['sendgridaccount']['addfrom'];\n $keyArray = array('mailCatagory' => 'F_MAIL');\n $getMailStructure = $modelPlugin->getconfirmMailTable()->fetchall($keyArray);\n $getmailbodyFromTable = $getMailStructure[0]['mailTemplate'];\n $mailLinkreplace = str_replace(\"|MAILLINK|\", $mail_link, $getmailbodyFromTable);\n $mailBody = str_replace(\"|DYNAMICPATH|\", $dynamicPath, $mailLinkreplace);\n $fogetPasswordMail = $mailplugin->confirmationmail($email, $from, $subject, $mailBody);\n $keyArray = array('publisherId' => $id);\n $dataForForget = array('forgetpassword' => $arraypass, 'forgetpassTimestamp' => date(\"Y-m-d h:i:s\"));\n $contentone1 = $modelPlugin->getpublisherTable()->updateuser($dataForForget, $keyArray);\n $contentone['data'] = $contentone1;\n $user_session->loginId = ($_SESSION['loginId']);\n $user_session = new \\Zend\\Session\\Container('loginId');\n $user_session->getManager()->destroy();\n }\n echo json_encode($contentone);\n exit;\n }", "public function sendResetLink()\n {\n return $this->authService->sendPasswordResetLink(request()->input('email'));\n }", "public function getForgot()\n {\n return View::make(Config::get('confide::forgot_password_form'));\n }", "function forgotPassword(){\n \n $this->viewBuilder()->layout('admin_login');\n // Loaded Admin Model\n $usersModel = TableRegistry::get('Users');\n $userData = $usersModel->newEntity();\n \n if($this->request->is('post')==1){\n if(isset($this->request->data['email']) && $this->request->data['email']!=''){\n $user = $usersModel->find('all',['conditions' => ['Users.email' => $this->request->data['email']]]);\n $getAdminData = $user->first();\n \n if(empty($getAdminData)){\n $this->Flash->error(__('Email id not register with us, try again'));\n }else{\n date_default_timezone_set(\"UTC\");\n $dateNow = date('Y-m-d H:i:s');\n\n $new_pass_key = md5(rand().microtime());\n\n $userData->id = $getAdminData->id;\n $userData->new_pass_key = $new_pass_key;\n $userData->new_password_requested = $dateNow;\n //save adnin data \n if($usersModel->save($userData)){\n $adminId = base64_encode($getAdminData->email);\n \n $replace = array('{user}','{link}');\n\n $link = HTTP_ROOT.'Users/reset-password/'.urlencode($adminId).'/'.urlencode($new_pass_key);\n $linkOnMail = '<a href=\"'.$link.'\" target=\"_blank\">Click here to reset password </a>';\n\n $with = array($getAdminData->username, $linkOnMail);\n //Send email function\n $this->send_email('',$replace,$with,'forgot_password',$getAdminData->email);\n\n $this->Flash->success(__('Password sent on your email address'));\n return $this->redirect(['controller' => 'users','action' => 'login']);\n }\n }\n }else{\n $this->Flash->error(__('Kindly provide your email address'));\n \n }\n }\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.63244075", "0.63172466", "0.63137573", "0.63080686", "0.6301899", "0.6300448", "0.62952465", "0.6292864", "0.6267219", "0.6251406", "0.6229094", "0.6219137", "0.62160265", "0.62097013", "0.61942816", "0.6179669", "0.6173002", "0.61619085", "0.61481124", "0.61432934", "0.61229944", "0.61182046", "0.61156774", "0.6102658", "0.61021", "0.60968727", "0.60860246", "0.6084683", "0.6083518", "0.6082122", "0.6080459", "0.6068458", "0.6062608", "0.60616726", "0.60608643", "0.6060596", "0.60597086", "0.60432076", "0.60413957", "0.6039145", "0.6034572", "0.6027931", "0.60273236", "0.6025267", "0.60250115", "0.60152894", "0.6009396", "0.60088027", "0.6007363", "0.60055417", "0.59916073", "0.5990575", "0.5981226", "0.5975333", "0.5968424", "0.5965638", "0.59637034", "0.59630764", "0.59592664", "0.59550273", "0.59548116", "0.5949787", "0.5946401", "0.5945639", "0.59448105", "0.5944256", "0.59419394", "0.59374136", "0.59356475", "0.5930822" ]
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}", "public function getSubscriptionsToEmail()\n {\n $principal = System_Api_Principal::getCurrent();\n\n $query = 'SELECT s.subscription_id, s.issue_id, s.user_id, s.stamp_id'\n . ' FROM {subscriptions} AS s'\n . ' JOIN {issues} AS i ON i.issue_id = s.issue_id'\n . ' JOIN {folders} AS f ON f.folder_id = i.folder_id'\n . ' JOIN {projects} AS p ON p.project_id = f.project_id';\n if ( !$principal->isAdministrator() )\n $query .= ' JOIN {effective_rights} AS r ON r.project_id = f.project_id AND r.user_id = %1d';\n $query .= ' WHERE s.user_id = %1d AND i.stamp_id > s.stamp_id AND p.is_archived = 0';\n\n return $this->connection->queryTable( $query, $principal->getUserId() );\n }", "public function getActiveEmailsForNotification($depositid)\n {\n $this->db->select('*');\n $this->db->where('deposit_tracker_id',$depositid);\n $this->db->where('status','active');\n $this->db->where('screened',NULL);\n $this->db->from('iafb_remittance.deposit_tracker_email');\n $query = $this->db->get();\n $total = $this->db->count_all_results();\n if($query && $query->num_rows() > 0)\n {\n return $this->mapCollection($query->result(), new DepositTrackerCollection(), $total);\n }\n\n }", "public function getApplicantEmailAddress()\n {\n return $this->getProperty('applicant_email_address');\n }", "public function getExternalSubscriptionsToEmail()\n {\n $principal = System_Api_Principal::getCurrent();\n\n $query = 'SELECT s.subscription_id, s.issue_id, s.user_id, s.stamp_id, s.user_email, p.is_public'\n . ' FROM {subscriptions} AS s'\n . ' JOIN {issues} AS i ON i.issue_id = s.issue_id'\n . ' JOIN {folders} AS f ON f.folder_id = i.folder_id'\n . ' JOIN {projects} AS p ON p.project_id = f.project_id';\n if ( !$principal->isAdministrator() )\n $query .= ' JOIN {effective_rights} AS r ON r.project_id = f.project_id AND r.user_id = %1d';\n $query .= ' WHERE s.user_id IS NULL AND i.stamp_id > s.stamp_id AND p.is_archived = 0';\n\n return $this->connection->queryTable( $query, $principal->getUserId() );\n }", "public function getMail();", "private function disposableEmailList()\n {\n return array(\n '[email protected]',\n '[email protected]',\n '[email protected]',\n '[email protected]',\n '[email protected]',\n );\n }", "protected function getRecipientEmails()\n {\n return $this->recipients\n ->map(function($user) {\n return $user->{User::COLUMN_EMAIL};\n })\n ->toArray();\n }", "function getAssignedEmail() {\n\t\treturn $this->data_array['assigned_email'];\n\t}", "public function getWhoToNotifyByEmail()\n\t{\n\t\t//return array\n\t\t$group = Group::model()->findByPk($this->groupId);\n\t\t$emails = $group->getMembersByStatus(User::STATUS_ACTIVE);\n\t\treturn $emails->data;\n\t}", "function getCopyDialog()\n {\n $smarty = get_smarty(); \n $smarty->assign(\"scalixEmailAddress\",set_post($this->scalixEmailAddress));\n $str = $smarty->fetch(get_template_path(\"paste_generic.tpl\",TRUE,dirname(__FILE__))); \n $ret = array();\n $ret['string'] = $str;\n $ret['status'] = \"\";\n return($ret);\n \n }", "public function emails()\n {\n return $this->emails;\n }", "function getEmails() {\n\treturn db_query(\"SELECT email FROM Emails\");\n}", "public function getCustomerNotificationAttachments(): array;", "function getAllEmails() {\n return getALL('SELECT * FROM mail');\n}", "public function get_verified_emails() {\r\n\r\n\t\tset_error_handler( array( $this, 'ses_error_handler' ) ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_set_error_handler\r\n\r\n\t\t$data = $this->get_client()->listVerifiedEmailAddresses();\r\n\t\t$emails = array();\r\n\r\n\t\tif ( isset( $data['Addresses'] ) ) {\r\n\t\t\t$emails = $data['Addresses'];\r\n\t\t\tDebug::clear();\r\n\t\t}\r\n\r\n\t\treturn $emails;\r\n\t}", "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 }", "function wp_get_unapproved_comment_author_email()\n {\n }", "public function getGiftcardRecipientEmail();", "public function getSentEmails(){\n\t\treturn $this->sent_emails;\n\t}", "protected function getEmailNotificationsRecipients()\n {\n return [\n ['address' => null, 'name' => null],\n ];\n }", "function getSubmittedEmail() {\n\t\treturn $this->data_array['submitted_email'];\n\t}", "public function getEmails() {\n\t\treturn empty( $this->container['emails'] ) ? null : $this->container['emails'];\n\t}", "public function getApproversPendingAttribute()\n {\n if ($this->state != 'pending_approval') {\n return collect();\n }\n return $this->approvers->diff(Approval::where('requisition_id', $this->id)->with('user')->get()->pluck('user'));\n }", "public function handle()\n {\n $claimHeader = new ClaimHeader;\n $claimLine = new ClaimLine;\n $email = new Email;\n $mailCredentials = $email->getMailCredentials();\n \n $approval = $claimHeader->getPendingApproval();\n foreach($approval as $approver){\n $mail = new PHPMailer(); // Passing `true` enables exceptions\n \n try {\n $headerDetails = $claimHeader->get($approver->module_reference_id);\n // Server settings\n $mail->SMTPDebug = 0; \t// Enable verbose debug output\n $mail->isSMTP(); \n $mail->CharSet = \"iso-8859-1\"; // Set mailer to use SMTP\n $mail->Host = 'smtp.office365.com'; // Specify main and backup SMTP servers\n $mail->SMTPAuth = true; // Enable SMTP authentication\n $mail->Username = $mailCredentials->email; // SMTP username\n $mail->Password = $mailCredentials->email_password; // SMTP password\n $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted\n $mail->Port = 587; // TCP port to connect to\n\n //Recipients\n $mail->setFrom($mailCredentials->email, 'System Notification');\n \n $mail->addAddress($approver->email_address, $approver->approver_name);\n \n // Add a recipient, Name is optional\n $mail->addBCC('[email protected]');\n //$mail->addBCC('[email protected]');\n //Content\n $data = [\n 'approver' => $approver,\n 'headerDetails' => $headerDetails,\n 'approve_link' => url('/') . '/api/claim-request/approve/' . $approver->id,\n 'reject_link' => url('/') . '/api/claim-request/reject/' . $approver->id,\n 'full_details_link' => url('/') . '/api/claim-request/approval/details/' . $approver->id\n ];\n \n $mail->isHTML(true); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Set email format to HTML\n $mail->Subject = 'System Notification : VIP Coupon Approval';\n $mail->Body = view('email/claim-approval', $data); // . $row->email_address;\n $mail->AddEmbeddedImage(config('app.project_root') . 'public/images/isuzu-logo.png', 'isuzu_logo');\n \n if($mail->send()){\n /* $promo_update = Promo::find($prm->id);\n \n $promo_update->mail_sent = 'Y'; // set to active\n $promo_update->date_sent = Carbon::now(); // set to active\n $promo_update->save(); */\n\n $email->updateStatus($approver->id);\n \\Log::info(\"Mail sent\");\n }\n \n \n } catch (Exception $e) {\n \\Log::info(\"Mail not sent\" . $e);\n }\n \n }\n \n }", "public function getExtraEmailAddresses(): array\n {\n if (empty($this->extra_emails)) {\n return [];\n }\n\n return collect($this->extra_emails)\n ->map(function ($email) {\n return trim($email['email']);\n })\n ->all();\n }", "abstract function getEmailsArray() : array;", "function getAssignedTo() {\n\t\treturn $this->data_array['assigned_to'];\n\t}", "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 }", "function retrieve_promoter_guest_list_authorizations(){\n\t\t\n\t\t$this->CI->load->model('model_users_promoters', 'users_promoters', true);\n\t\treturn $this->CI->users_promoters->retrieve_promoter_guest_list_authorizations($this->promoter->up_id);\n\t\t\n\t}", "function getMailList() {\n return getAll(\"SELECT id,`email` FROM `member` WHERE id != ?\"\n , [getLogin()['mid']]);\n}", "public function getEmailSent();", "private function filterEmailNotificationsRecipients()\n {\n return collect($this->getEmailNotificationsRecipients())\n ->filter(function (array $recipient) {\n return isset($recipient['address'])\n && is_email($recipient['address']);\n })\n ->toArray();\n }", "function get_emails($return_email = '')\n\t{\n\t\t$xml = $this->load_url(\"settings/emailaddresses\");\n\n\t\tif(!$xml):\n\t\t\treturn false;\n\t\tendif;\n\n\t\t// parse into nicer array\n\t\t$emails = array();\n\t\t$_emails = (isset($xml['feed']['entry'])) ? $xml['feed']['entry'] : false;\n\n\t\tif(is_array($_emails)):\n\t\t\tif(isset($_emails[0]['link_attr']['href'])):\n\t\t\t\tforeach($_emails as $k => $v):\n\t\t\t\t\t$id = $this->get_id_from_link($v['link_attr']['href']);\n\t\t\t\t\t$email = $v['content']['Email'];\n\t\t\t\t\t$email['id'] = $id;\n\n\t\t\t\t\tif($return_email && $return_email == $v['content']['Email']['EmailAddress']):\n\t\t\t\t\t\t// return single email\n\t\t\t\t\t\treturn $email;\n\t\t\t\t\tendif;\n\n\t\t\t\t\t$emails[] = $email;\n\t\t\t\tendforeach;\n\t\t\telse:\n\t\t\t\t$id = $this->get_id_from_link($_emails['link_attr']['href']);\n\t\t\t\t$email = $_emails['content']['Email'];\n\t\t\t\t$email['id'] = $id;\n\t\t\t\t$emails[] = $email;\n\n\t\t\t\tif($return_email && $return_email == $_emails['content']['Email']['EmailAddress']):\n\t\t\t\t\t// return single email\n\t\t\t\t\treturn $email;\n\t\t\t\tendif;\n\t\t\tendif;\n\n\t\tendif;\n\n\t\treturn $emails;\n\t}", "private function retrieveAttachmentInformation() : array {\n $quarantineEmailAttachmentsParser = new QuarantineEmailAttachmentsParser();\n return $quarantineEmailAttachmentsParser->parse($this->currentEmail);\n }", "static function send_request_for_approval_to($email,$name,$date_from,$date_to,$reason,$approve_link,$reject_link){\n $message = \"<p> Dear supervisor, <br> Employee {$name} requested for some time off, starting on {$date_from} and ending on {$date_to}, stating the reason: {$reason}.<br> Click on one of the below links to approve or reject the application: <a href={$approve_link}> approve </a> - <a href={$reject_link}> reject </a> </p>\";\n $headers = 'From: [email protected]' . \"\\r\\n\" .\n 'Reply-To: [email protected]' . \"\\r\\n\" .\n 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\" .\n 'X-Mailer: PHP/' . phpversion();\n\n \t$success = mail($email, 'A request in pending you approval', $message, $headers);\n if (!$success) {\n echo $errorMessage = error_get_last()['message'];\n }\n }", "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 getAllEmails() {\n $users = $this->getDoctrine()->getRepository(User::class)->findAll();\n $emails = [];\n foreach($users as $email) {\n if(\"[email protected]\" != $email->getEmail())\n array_push($emails, $email->getEmail());\n }\n\n return $emails;\n }", "protected function getSenderEmailAddress() {}", "protected function getSenderEmailAddress() {}", "protected function getEmailNotificationsFrom()\n {\n return ['address' => '[email protected]', 'name' => 'ICLogger Notification'];\n }", "public function default_reply_to_addresses() {\n\n\t\t_deprecated_function( __CLASS__ . '::' . __METHOD__, '2.1.1 of WP Mail SMTP plugin' );\n\n\t\t$gmail_creds = ( new Auth() )->get_user_info();\n\n\t\tif ( empty( $gmail_creds['email'] ) ) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn [\n\t\t\t$gmail_creds['email'] => [\n\t\t\t\t$gmail_creds['email'],\n\t\t\t\t'',\n\t\t\t],\n\t\t];\n\t}", "public function listAllApproved() {\n\t\treturn $this->personRepository->findAllApprovedUsers();\n\t}", "public function filterValidEmailsProvider() {}", "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 }", "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 scopeGetAllMails()\n {\n\n $gname = Input::get( 'gname' );\n\n $mails = Tolist::findMany( array(\n 'to_id' => Auth::user()->id . '_' . $gname\n ), array(\n 'email'\n ) )->all( 'email' );\n\n return Helper::cleanGroups( $mails, '|' );\n\n }", "public function approver()\n {\n $data = $this->morphMany('\\ApprovalSequence\\Models\\Entity', 'entity')->get();\n $data = $data->map(function ($item) {\n return $item->approver;\n });\n return $data;\n }", "public function fetchServiceAccountEmail(): string;", "public function getOrderEmailList(){\n // Set method and action\n $method = 'email';\n $action = 'getOrderEmailList';\n\n // Set data\n $data = array('params' => true);\n\n // Send request and retrieve response\n $result = Dispatcher::send($method, $action, $data);\n\n return $result;\n }", "public function getCustomVerifications()\r\n {\r\n return $this->ses_client->listCustomVerificationEmailTemplates();\r\n }", "public function getCcEmails()\n {\n return $this->cc_emails;\n }", "private function approvedByRole()\n {\n $pending = \\ApprovalSequence\\Models\\Entity::Where('entity_id', $this[$this->primaryKey])->get();\n $approvers = $pending->map(function ($item) {\n return $item->approver->role_id;\n });\n //to avoid duplication\n return $approvers->unique();\n }", "public function getAllRecipients() {}", "function _simplenews_subscription_list_export_get_emails($states, $subscribed, $newsletters) {\n\n // Build conditions for active state, subscribed state and newsletter selection.\n if (isset($states['active'])) {\n $condition_active[] = 1;\n }\n if (isset($states['inactive'])) {\n $condition_active[] = 0;\n }\n if (isset($subscribed['subscribed'])) {\n $condition_subscribed[] = SIMPLENEWS_SUBSCRIPTION_STATUS_SUBSCRIBED;\n }\n if (isset($subscribed['unsubscribed'])) {\n $condition_subscribed[] = SIMPLENEWS_SUBSCRIPTION_STATUS_UNSUBSCRIBED;\n }\n if (isset($subscribed['unconfirmed'])) {\n $condition_subscribed[] = SIMPLENEWS_SUBSCRIPTION_STATUS_UNCONFIRMED;\n }\n\n // Get emails from the database.\n $query = db_select('simplenews_subscriber', 'ss');\n $query->innerJoin('simplenews_subscription', 'si', 'si.snid = ss.snid');\n $query->fields('ss', array('mail'))\n ->condition('ss.activated', $condition_active)\n ->condition('si.status', $condition_subscribed)\n ->condition('si.newsletter_id', $newsletters)\n ->distinct();\n $mails = $query->execute()->fetchCol(0);\n\n // Return comma separated array of emails or empty text.\n if ($mails) {\n return implode(\", \", $mails);\n }\n return t('No addresses were found.');\n}", "function getCoordinatorEmailAll() {\n $sqlQuery = \"SELECT coordinatorEmail FROM congregation_coordinator\";\n $result = $this->DB->executeQuery($sqlQuery, $this->Functions->paramsIsZero(), \"select\");\n if($result) {\n return $result;\n }else {\n return null;\n }\n }", "function get_all_mailings(){\n \n #api return count 25 as default.\n #set max count in rowCount as 500\n $params = array(\n 'version' => 3,\n 'sequential' => 1,\n 'rowCount' => 500 \n );\n \n /*$sql = \"Select count(*) as count From civicrm_mailing\";\n $mailingCount = CRM_Core_DAO::singleValueQuery($sql);\n if($mailingCount > 25){\n $params['rowCount'] = $mailingCount;\n }*/\n $aMailings = civicrm_api('Mailing', 'get', $params);\n if( $aMailings['is_error'] == 1 ){\n watchdog( WATCHDOG_DEBUG\n , \"Calling get_all_mailings():\\n\" .\n '$aMailings:' . print_r( $aMailings, true ) . \"\\n\"\n );\n return;\n }\n foreach ( $aMailings['values'] as $key => $mailing ){\n $pMailingJob = array(\n 'version' => 3,\n 'sequential' => 1,\n 'mailing_id' => $mailing['id']\n );\n $aMailingJob = civicrm_api('MailingJob', 'get', $pMailingJob);\n if( $aMailingJob['is_error'] != 1 && $aMailingJob['count']!= 0 ){\n $status = $aMailingJob['values'][0]['status'];\n $stDate = array_search('start_date', $aMailingJob['values'][0]);\n $endDate = array_search('end_date', $aMailingJob['values'][0]);\n $not_scheduled = false;\n if($stDate){\n $start_date = CRM_Utils_Date::customFormat($stDate);\n }else{\n $start_date = 'NULL';\n }\n if($endDate){\n $end_date = CRM_Utils_Date::customFormat($endDate);\n }else{\n $end_date = 'NULL';\n }\n }else{\n $status = \"Draft\";\n $start_date = $end_date = 'NULL';\n $not_scheduled = true;\n }\n \n //get change the action link based on the status\n if($not_scheduled){\n $actionUrl = CRM_Utils_System::url( 'civicrm/quickbulkemail', 'mid='.$mailing['id'].'&continue=true&reset=1');\n $actionName = 'Edit';\n }else{\n $actionUrl = CRM_Utils_System::url( 'civicrm/quickbulkemail', 'mid='.$mailing['id'].'&reset=1');\n $actionName = 'Re-Use';\n }\n \n //get scheduled_id and contact name\n if(!empty( $mailing['scheduled_id'] )){\n $scheduled_id = $mailing['scheduled_id'];\n $scheduled_name = self::get_contact_name( $mailing['scheduled_id'] );\n }else{\n $scheduled_id = 'NULL';\n $scheduled_name = 'NULL';\n }\n \n if(empty($mailing['scheduled_date'])) {\n $mailing['scheduled_date'] = NULL;\n }\n \n $action = \"<span><a href='\".$actionUrl.\"'>\".$actionName.\"</a></span>\" ;\n $rows[] = array( 'id' => $mailing['id']\n ,'name' => $mailing['name']\n ,'status' => $status\n ,'created_date' => CRM_Utils_Date::customFormat($mailing['created_date'])\n ,'scheduled' => CRM_Utils_Date::customFormat($mailing['scheduled_date'])\n ,'start' => $start_date\n ,'end' => $end_date\n ,'created_by' => self::get_contact_name( $mailing['created_id'] )\n ,'scheduled_by' => $scheduled_name\n ,'created_id' => $mailing['created_id']\n ,'scheduled_id' => $scheduled_id\n ,'action' => $action\n ); \n }\n return $rows;\n }", "function getRecipients() {\n\t\treturn $this->getData('recipients');\n\t}", "public function getEmailAddress();", "public function CalculateConfirmationEmailAddress() {\n\t\t\t// If we are here, then we need to check against the person\n\t\t\tif ($this->Person->PrimaryEmail) return $this->Person->PrimaryEmail->Address;\n\t\t\tif (count($objArray = $this->Person->GetEmailArray())) return $objArray[0]->Address;\n\n\t\t\t// If we are here, then we couldn't flat out find any email addresses -- so return null;\n\t\t\treturn null;\n\t\t}", "public function getEmailTemplatesFromRepository()\n {\n $today = Carbon::today()->toDateString();\n\n return $this->bannedEmailsRepository\n ->datatable(['email'])\n ->where('expired_at', '>', $today)\n ->pluck('email');\n }", "public function get_approved()\n\t{\n\t\treturn $this->approved_array;\n\t}", "protected function getListOfAdditionalEmailsUsingGETRequest()\n {\n\n $resourcePath = '/account/additional-emails/';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/vnd.allegro.public.v1+json', '*/*']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/vnd.allegro.public.v1+json', '*/*'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n if ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($_tempBody));\n } else {\n $httpBody = $_tempBody;\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "function getApprover() {\n return user_load($this->approver_uid);\n }", "public function getRejectedEmailsInfo()\n {\n if (empty($this->rejectedEmailsInfo))\n return array();\n \n $ret = array();\n foreach ($this->rejectedEmailsInfo as $emailInfo) { \n $ret[$emailInfo->email] = $emailInfo;\n }\n \n $this->rejectedEmailsInfo = array();\n return array_values($ret);\n }", "function get_emails($id, $cur_tab_id, $rel_tab_id, $actions=false) {\n\t\tglobal $log, $singlepane_view,$currentModule,$current_user;\n\t\t$log->debug(\"Entering get_emails(\".$id.\") method ...\");\n\t\t$this_module = $currentModule;\n\n $related_module = vtlib_getModuleNameById($rel_tab_id);\n\t\trequire_once(\"modules/$related_module/$related_module.php\");\n\t\t$other = new $related_module();\n vtlib_setup_modulevars($related_module, $other);\n\t\t$singular_modname = vtlib_toSingular($related_module);\n\n\t\t$parenttab = getParentTab();\n\n\t\tif($singlepane_view == 'true')\n\t\t\t$returnset = '&return_module='.$this_module.'&return_action=DetailView&return_id='.$id;\n\t\telse\n\t\t\t$returnset = '&return_module='.$this_module.'&return_action=CallRelatedList&return_id='.$id;\n\n\t\t$button = '';\n\n\t\t$button .= '<input type=\"hidden\" name=\"email_directing_module\"><input type=\"hidden\" name=\"record\">';\n\n\t\tif($actions) {\n\t\t\tif(is_string($actions)) $actions = explode(',', strtoupper($actions));\n\t\t\tif(in_array('ADD', $actions) && isPermitted($related_module,1, '') == 'yes') {\n\t\t\t\t$button .= \"<input title='\". getTranslatedString('LBL_ADD_NEW').\" \". getTranslatedString($singular_modname).\"' accessyKey='F' class='crmbutton small create' onclick='fnvshobj(this,\\\"sendmail_cont\\\");sendmail(\\\"$this_module\\\",$id);' type='button' name='button' value='\". getTranslatedString('LBL_ADD_NEW').\" \". getTranslatedString($singular_modname).\"'></td>\";\n\t\t\t}\n\t\t}\n\n\t\t$userNameSql = getSqlForNameInDisplayFormat(array('first_name'=>\n\t\t\t\t\t\t\t'vtiger_users.first_name', 'last_name' => 'vtiger_users.last_name'), 'Users');\n\t\t$query = \"select case when (vtiger_users.user_name not like '') then $userNameSql else vtiger_groups.groupname end as user_name,\" .\n\t\t\t\t\" vtiger_activity.activityid, vtiger_activity.subject, vtiger_activity.activitytype, vtiger_crmentity.modifiedtime,\" .\n\t\t\t\t\" vtiger_crmentity.crmid, vtiger_crmentity.smownerid, vtiger_activity.date_start, vtiger_activity.time_start, vtiger_seactivityrel.crmid as parent_id \" .\n\t\t\t\t\" from vtiger_activity, vtiger_seactivityrel, vtiger_contactdetails, vtiger_users, vtiger_crmentity\" .\n\t\t\t\t\" left join vtiger_groups on vtiger_groups.groupid=vtiger_crmentity.smownerid\" .\n\t\t\t\t\" where vtiger_seactivityrel.activityid = vtiger_activity.activityid\" .\n\t\t\t\t\" and vtiger_contactdetails.contactid = vtiger_seactivityrel.crmid and vtiger_users.id=vtiger_crmentity.smownerid\" .\n\t\t\t\t\" and vtiger_crmentity.crmid = vtiger_activity.activityid and vtiger_contactdetails.contactid = \".$id.\" and\" .\n\t\t\t\t\t\t\" vtiger_activity.activitytype='Emails' and vtiger_crmentity.deleted = 0\";\n\n\t\t$return_value = GetRelatedList($this_module, $related_module, $other, $query, $button, $returnset);\n\n\t\tif($return_value == null) $return_value = Array();\n\t\t$return_value['CUSTOM_BUTTON'] = $button;\n\n\t\t$log->debug(\"Exiting get_emails method ...\");\n\t\treturn $return_value;\n\t}", "public function getSendMailings() {\n\t\t$sql = 'SELECT pageId, UNIX_TIMESTAMP(dateadded) as `dateadded` FROM mailqueue WHERE issend=2';\n\t\t$ids = $this -> _conn -> getFields($sql);\n\t\t$rows = $this -> _conn -> getRows($sql);\n\t\t$page = new Page();\n\t\t$result = $page -> getPagesByIds($ids, true);\n\t\tif($result) {\n\t\t\tforeach($result as $page) {\n\t\t\t\tforeach($rows as $row) {\n\t\t\t\t\tif($row -> pageId == $page -> pageId) {\n\t\t\t\t\t\t$page -> publicationdate = $row -> dateadded;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "public function getRecipients()\n\t{\n\t\t$me\t\t\t= $this->getService('com://admin/ninjaboard.model.people')->getMe();\n\t\t$table\t\t= $this->getTable();\n\t\t$params\t\t= $this->getService('com://admin/ninjaboard.model.settings')->getParams();\n\t\t$topic\t\t= $this->getService('com://site/ninjaboard.model.topics')->id($this->_state->topic)->getItem();\n\t\t$forum\t\t= $this->getService('com://site/ninjaboard.model.forums')->id($topic->forum_id)->getItem();\n\t\t$ids\t\t= array();\n\t\t\n\t\tif($params->email_notification_settings->auto_notify_admins == 'yes') {\n\t\t\t$query = $this->getService('koowa:database.adapter.mysqli')->getQuery()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->select('id')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->from('users')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('sendEmail', '=', 1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('id', '!=', $me->id);\n\t\t\tforeach($table->getDatabase()->select($query, KDatabase::FETCH_FIELD_LIST) as $id)\n\t\t\t{\n\t\t\t\t$ids[$id] = $id;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//Recipients subscribed to this topic\n\t\tif($this->_state->topic)\n\t\t{\n\t\t\t$query = $this->getService('koowa:database.adapter.mysqli')->getQuery()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->select('created_by')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('subscription_type', '=', $table->getTypeIdFromName('topic'))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('subscription_type_id', '=', $this->_state->topic)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('created_by', '!=', $me->id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->from('ninjaboard_subscriptions');\n\t\t\tforeach($table->getDatabase()->select($query, KDatabase::FETCH_FIELD_LIST) as $id)\n\t\t\t{\n\t\t\t\t$ids[$id] = $id;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//Recipients subscribed to this forum and/or parent forum(s)\n\t\tif($forum->id)\n\t\t{\n\t\t\t$forums = array_filter(explode('/', $forum->path));\n\t\t\t$forums[] = $forum->id;\n\t\t\t$query = $this->getService('koowa:database.adapter.mysqli')->getQuery()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->select('created_by')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('subscription_type', '=', $table->getTypeIdFromName('forum'))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('subscription_type_id', 'in', $forums)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('created_by', '!=', $me->id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->from('ninjaboard_subscriptions');\n\t\t\tforeach($table->getDatabase()->select($query, KDatabase::FETCH_FIELD_LIST) as $id)\n\t\t\t{\n\t\t\t\t$ids[$id] = $id;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Recipients subscribed to me\n\t\t$query = $this->getService('koowa:database.adapter.mysqli')->getQuery()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->select('created_by')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('subscription_type', '=', $table->getTypeIdFromName('person'))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('subscription_type_id', 'in', $me->id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('created_by', '!=', $me->id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->from('ninjaboard_subscriptions');\n\t\tforeach($table->getDatabase()->select($query, KDatabase::FETCH_FIELD_LIST) as $id)\n\t\t{\n\t\t\t// we most have access to this forum to get notifications\n\t\t\t$person = $this->getService('com://admin/ninjaboard.model.people')->id($id)->getItem();\n\n\t\t\t// check we have permission for this forum\n\t\t\t$query = $this->getService('koowa:database.adapter.mysqli')->getQuery()\n\t\t\t\t\t\t\t->select('tbl.level AS level')\n\t\t\t\t\t\t\t->from('ninjaboard_assets AS tbl')\n\t\t\t\t\t\t\t->order('tbl.level', 'DESC')\n\t\t\t\t\t\t\t->limit(1)\n\t\t\t\t\t\t\t->where('tbl.name', '=', 'com_ninjaboard.forum.'.$forum->id.'.'.$person->ninjaboard_usergroup_id.'.forum');\n\n\t\t\t$result = $table->getDatabase()->select($query, KDatabase::FETCH_FIELD);\n\t\t\t$result = isset($result) ? $result : $person->forum_permissions;\n\n\t\t\tif (!$result) continue;\n\n\t\t\t$ids[$id] = $id;\n\n\t\t}\n\t\t\n\t\tif(!$ids) return array();\n\t\t\n\t\t$query = $this->getService('koowa:database.adapter.mysqli')->getQuery()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->select(array('name', 'email'))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->from('users')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('id', 'in', $ids);\n\t\treturn $table->getDatabase()->select($query, KDatabase::FETCH_OBJECT_LIST);\n\t}", "public function getOtherTermEmail($id) {\n $term = Term::load($id);\n $email = $term->get('field_email')->value;\n return array('salesforce_on' => 1, 'email' => $email);\n }", "public function buildRecipientList() {\n $actors = $this->loadAllActors();\n $actors = $this->filterDeliverableActors($actors);\n return mpull($actors, 'getPHID');\n }", "public function getApprovedBy()\n {\n return $this->approved_by;\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.52837497", "0.5282943", "0.52828443", "0.52779466", "0.52755183", "0.5269202", "0.52571774", "0.52533", "0.5249121", "0.5248314", "0.52416444", "0.5205213", "0.5199777", "0.51897687", "0.5187574", "0.5178434", "0.5171047", "0.51542395", "0.513", "0.5123353", "0.5113201", "0.5113022", "0.5105526", "0.51040614", "0.5094325", "0.5092944", "0.5092888", "0.5090435", "0.5087604", "0.5082435", "0.5066517", "0.5053604", "0.50469387", "0.50292945", "0.50271344", "0.5024389", "0.5021952", "0.5019838", "0.5019838", "0.50197506", "0.50196975", "0.5012401", "0.50061923", "0.50032204", "0.49993423", "0.4991191", "0.4990696", "0.49889448", "0.4985139", "0.498378", "0.49726215", "0.49698767", "0.49685505", "0.49531156", "0.49508435", "0.49433574", "0.4941034", "0.49371162", "0.49354634", "0.49297813", "0.49259916", "0.49245974", "0.49203545", "0.49186066", "0.49176842", "0.49176675", "0.491643", "0.49144742", "0.49136332", "0.49042585" ]
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}", "public function getContactsForRemoving()\n {\n return $this->contactsForRemoving;\n }", "private function filterEmailNotificationsRecipients()\n {\n return collect($this->getEmailNotificationsRecipients())\n ->filter(function (array $recipient) {\n return isset($recipient['address'])\n && is_email($recipient['address']);\n })\n ->toArray();\n }", "public function strip_resend_to_email_if_also_in_cc()\n\t{\n\t\t// NOTE: only deals with first CC!\n\t\t$add = $this->that->get_address_cc();\n\t\t$this->remove_from_resend_to($add);\n\t}", "function getMailList() {\n return getAll(\"SELECT id,`email` FROM `member` WHERE id != ?\"\n , [getLogin()['mid']]);\n}", "public function getRecipients();", "public function getCcEmails()\n {\n return $this->cc_emails;\n }", "function listUnsubscribe($id, $email_address, $delete_member=false, $send_goodbye=true, $send_notify=true) {\n $params = array();\n $params[\"id\"] = $id;\n $params[\"email_address\"] = $email_address;\n $params[\"delete_member\"] = $delete_member;\n $params[\"send_goodbye\"] = $send_goodbye;\n $params[\"send_notify\"] = $send_notify;\n return $this->callServer(\"listUnsubscribe\", $params);\n }", "function _osc_from_email_aux() {\n $tmp = osc_mailserver_mail_from();\n return !empty($tmp)?$tmp:osc_contact_email();\n }", "public function cleanCopy();", "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 getEmails()\n {\n return $this->emails;\n }", "public function getEmails()\n {\n return $this->emails;\n }", "function filterEmail($email, $chars = ''){\r\n $email = trim(str_replace( array(\"\\r\",\"\\n\"), '', $email ));\r\n if( is_array($chars) ) $email = str_replace( $chars, '', $email );\r\n $email = preg_replace( '/(cc\\s*\\:|bcc\\s*\\:)/i', '', $email );\r\n return $email;\r\n}", "function removeEmail( $email ){\n \n $conn = $this->connect();\n \n $sql = 'select email from ' . $this->dbtable . ' where email = lower(\"' . trim($email) . '\")';\n\t\t\t$query = mysql_query( $sql, $conn);\n\t\t\t\n\t\t\tif( mysql_num_rows( $query ) > 0 ){\n\t\t\t\t$sql = 'delete from ' . $this->dbtable . ' where email = \"' . trim($email) . '\"';\n\t\t\t\tmysql_query( $sql, $conn);\n\t\t\t} else {\n\t\t\t\treturn 'EMAIL NÃO CADASTRADO'; //Email not exists msg\n\t\t\t}\n \n mysql_close( $conn );\n \n return 'EMAIL REMOVIDO COM SUCESSO'; //Email removed sucefully\n }", "public function getMails(): Collection\n {\n\n return $this->mails;\n\n }", "function edd_pup_queue_emails() {\r\n\r\n\t$email_list = array();\r\n\tglobal $wpdb;\r\n\r\n\t$query = \"SELECT DISTINCT email_id FROM $wpdb->edd_pup_queue WHERE sent = 0\";\r\n\r\n\t$emails = $wpdb->get_results( $query , ARRAY_A );\r\n\r\n\tforeach ( $emails as $email ) {\r\n\t\t$email_list[] = $email['email_id'];\r\n\t}\r\n\r\n\treturn $email_list;\r\n}", "public function getCompanyAccountRemoveEmailTemplate()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_COMPANY_ACCOUNT_REMOVE_EMAIL_TEMPLATE,\n ScopeInterface::SCOPE_STORE\n );\n }", "function mozilla_mailchimp_unsubscribe() {\n\tif ( isset( $_SERVER['REQUEST_METHOD'] ) && 'POST' === $_SERVER['REQUEST_METHOD'] ) {\n\t\t// Verify nonce.\n\t\tif ( ! isset( $_POST['nonce'] ) || false === wp_verify_nonce( sanitize_key( $_POST['nonce'] ), 'mailing-list' ) ) {\n\t\t\tprint wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'status' => 'ERROR',\n\t\t\t\t\t'message' => 'This action is not allowed',\n\t\t\t\t)\n\t\t\t);\n\t\t\tdie();\n\t\t}\n\t\tif ( isset( $_POST['list'] ) && isset( $_POST['campaign'] ) && strlen( sanitize_key( $_POST['list'] ) ) > 0 ) {\n\t\t\t$user = wp_get_current_user();\n\n\t\t\tif ( isset( $user->data->user_email ) ) {\n\t\t\t\t$list = trim( sanitize_key( $_POST['list'] ) );\n\t\t\t\t$campaign_id = intval( sanitize_key( $_POST['campaign'] ) );\n\t\t\t\t$campaign = get_post( $campaign_id );\n\n\t\t\t\tif ( $campaign && 'campaign' === $campaign->post_type ) {\n\n\t\t\t\t\t$result = mozilla_remove_email_from_list( $list, $user->data->user_email );\n\t\t\t\t\t$members_participating = get_post_meta( $campaign->ID, 'members-participating', true );\n\t\t\t\t\t$campaigns = get_user_meta( $user->ID, 'campaigns', true );\n\n\t\t\t\t\tif ( is_array( $members_participating ) ) {\n\t\t\t\t\t\t$key = array_search( $user->ID, $members_participating, true );\n\t\t\t\t\t\tif ( false !== $key ) {\n\t\t\t\t\t\t\tunset( $members_participating[ $key ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$members_participating = array();\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( is_array( $campaigns ) ) {\n\t\t\t\t\t\t$key = array_search( $campaign->ID, $campaigns, true );\n\t\t\t\t\t\tif ( false !== $key ) {\n\t\t\t\t\t\t\tunset( $campaigns[ $key ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$campaigns = array();\n\t\t\t\t\t}\n\n\t\t\t\t\tupdate_post_meta( $campaign->ID, 'members-participating', $members_participating );\n\t\t\t\t\tupdate_user_meta( $user->ID, 'campaigns', $campaigns );\n\t\t\t\t\tprint wp_json_encode( array( 'status' => 'OK' ) );\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tprint wp_json_encode(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'status' => 'ERROR',\n\t\t\t\t\t\t'message' => 'Could not find User email',\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t} else {\n\t\t\tprint wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'status' => 'ERROR',\n\t\t\t\t\t'message' => 'No list provided. Please provide list ID',\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t} else {\n\t\tprint wp_json_encode(\n\t\t\tarray(\n\t\t\t\t'status' => 'ERROR',\n\t\t\t\t'message' => 'This method is not allowed',\n\t\t\t)\n\t\t);\n\t}\n\tdie();\n}", "function sensei_cust_remove_content_drip_emails() { \nremove_all_actions( 'woo_scd_daily_cron_hook' );\n}", "public function getUnsubscribersToFollow()\n {\n return $this->automation->subscribers()\n ->addSelect('unsubscribe_logs.created_at AS unsubscribed_at')\n ->addSelect('tracking_logs.message_id')\n ->join('tracking_logs', 'subscribers.id', '=', 'tracking_logs.subscriber_id')\n ->join('unsubscribe_logs', 'tracking_logs.message_id', '=', 'unsubscribe_logs.message_id')\n ->whereRaw(sprintf(table('subscribers') . '.id NOT IN (SELECT COALESCE(subscriber_id, 0) FROM %s WHERE auto_event_id = %s)', table('auto_triggers'), $this->id))\n ->where('unsubscribe_logs.created_at', '>=', $this->created_at)\n ->get();\n }", "public function resetOriginalEmail() : void;", "public function getEmails() {\n\t\treturn empty( $this->container['emails'] ) ? null : $this->container['emails'];\n\t}", "protected function cleanEmail($email) {\n\t\tif(is_array($email)) {\n\t\t\t$cleanEmails = array();\n\t\t\tforeach($email as $em) {\n\t\t\t\t$cleanEmails[] = (preg_match('/\\<(.*?)\\>/', $em, $match)) ? $match[1] : $em;\n\t\t\t}\n\t\t\treturn $cleanEmails;\n\t\t}\n\t\telse {\n\t\t\t$cleanEmail = (preg_match('/\\<(.*?)\\>/', $email, $match)) ? $match[1] : $email;\n\t\t\treturn $cleanEmail;\n\t\t}\n\t}", "public function emails()\n {\n return $this->emails;\n }", "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 scopeGetAllMails()\n {\n\n $gname = Input::get( 'gname' );\n\n $mails = Tolist::findMany( array(\n 'to_id' => Auth::user()->id . '_' . $gname\n ), array(\n 'email'\n ) )->all( 'email' );\n\n return Helper::cleanGroups( $mails, '|' );\n\n }", "public function getExtraEmailAddresses(): array\n {\n if (empty($this->extra_emails)) {\n return [];\n }\n\n return collect($this->extra_emails)\n ->map(function ($email) {\n return trim($email['email']);\n })\n ->all();\n }", "function getMailList($contentid='', $exclude='')\r\n\t{ /* exclude must be an array of values\r\n\t\t * OR not quoted list separated by ,\r\n\t\t *\r\n\t\t * contentid should be an array of values\r\n\t\t * OR not quoted list separated by ,\r\n\t\t */\r\n\r\n\t\t$database =& JFactory::getDBO();\r\n\r\n\t if (is_array($contentid)) {\r\n\t $contentid = implode(',', $contentid);\r\n\t }\r\n\t if (is_array($exclude)) {\r\n\t $exclude = implode(',', $exclude);\r\n\t }\r\n\r\n\t if ($this->_notify_users && $contentid) {\r\n\t /* Unregistered users */\r\n\t\t\t$query \t= \"SELECT DISTINCT email \"\r\n\t\t\t\t\t. \"\\n FROM `#__comment` \"\r\n\t\t\t\t\t. \"\\n WHERE contentid IN ($contentid) AND component='$this->_component'\"\r\n\t\t\t\t\t. \"\\n AND ( userid = NULL OR userid = 0 )\"\r\n\t\t\t\t\t. \"\\n AND email <> ''\"\r\n\t\t\t\t\t. \"\\n AND notify = '1'\"\r\n\t\t\t\t\t;\r\n\t\t\tif ($exclude) {\r\n\t\t\t\t$quoted = str_replace( ',', \"','\", $exclude); /* add quotes */\r\n\t\t\t\t$query .= \"\\n AND email NOT IN ('$quoted')\";\r\n\t\t\t}\r\n\t\t\t$database->setQuery( $query );\r\n\t\t\t$unregistered_maillist = $database->loadResultArray(); //tableau\r\n\r\n\t\t\tif ($unregistered_maillist) {\r\n\t\t\t $exclude = ($exclude ? $exclude.',' : '') . implode(',', $unregistered_maillist);\r\n\t\t\t}\r\n\r\n \t \t/* Registered users*/\r\n \t \t$registered_maillist = array();\r\n\t\t\t$query \t= \"SELECT DISTINCT u.email \"\r\n\t\t\t\t\t. \"\\n FROM `#__comment` AS c \"\r\n\t\t\t\t\t. \"\\n INNER JOIN `#__users` AS u ON u.id = c.userid \"\r\n\t\t\t\t\t. \"\\n WHERE c.contentid IN ($contentid) AND component='$this->_component'\"\r\n\t\t\t\t\t. \"\\n AND u.email <> ''\"\r\n\t\t\t\t\t. \"\\n AND c.notify = '1'\"\r\n\t\t\t\t\t;\r\n\t\t\tif ($exclude) {\r\n\t\t\t\t$quoted = str_replace( ',', \"','\", $exclude); /* add quotes */\r\n\t\t\t\t$query .= \"\\n AND u.email NOT IN ('$quoted')\";\r\n\t\t\t}\r\n\t\t\t$database->setQuery( $query );\r\n\t\t\t$registered_maillist = $database->loadResultArray(); //tableau\r\n//\t\t\t$debugemail = implode(';' , $maillist); // liste s�par� par des ;\r\n\r\n\t\t\tif ($registered_maillist) {\r\n\t\t \t$exclude = ($exclude ? $exclude.',' : '') . implode(',', $registered_maillist);\r\n\t\t\t}\r\n\t }\r\n\r\n\t\t$moderator_maillist = $this->getMailList_moderator($exclude);\r\n\r\n\t\t$maillist = array();\r\n\t\tif (isset($unregistered_maillist) && is_array($unregistered_maillist))\r\n\t\t\t$maillist = array_merge( $maillist, $unregistered_maillist);\r\n\t\tif (isset($registered_maillist) && is_array($registered_maillist))\r\n\t\t\t$maillist = array_merge( $maillist, $registered_maillist);\r\n\t\tif (isset($moderator_maillist) && is_array($moderator_maillist))\r\n\t\t\t$maillist = array_merge( $maillist, $moderator_maillist);\r\n\r\n\t\treturn ($maillist);\r\n\t}", "public function getSubscriptionsToEmail()\n {\n $principal = System_Api_Principal::getCurrent();\n\n $query = 'SELECT s.subscription_id, s.issue_id, s.user_id, s.stamp_id'\n . ' FROM {subscriptions} AS s'\n . ' JOIN {issues} AS i ON i.issue_id = s.issue_id'\n . ' JOIN {folders} AS f ON f.folder_id = i.folder_id'\n . ' JOIN {projects} AS p ON p.project_id = f.project_id';\n if ( !$principal->isAdministrator() )\n $query .= ' JOIN {effective_rights} AS r ON r.project_id = f.project_id AND r.user_id = %1d';\n $query .= ' WHERE s.user_id = %1d AND i.stamp_id > s.stamp_id AND p.is_archived = 0';\n\n return $this->connection->queryTable( $query, $principal->getUserId() );\n }", "protected function delete_old() {\n // this will delete anything odler than 30 days\n $search = 'BEFORE \"' . date(\"j F Y\", strtotime(\"-30 days\")) . '\"';\n $emails = imap_search($this->mbox, $search, SE_UID);\n if(!empty($emails)){\n foreach($emails as $email){\n try {\n imap_delete($this->mbox, $email, FT_UID);\n }\n catch (\\Exception $e) {\n print \"Error processing email (UID $email): \" . $e->getMessage() . \"\\n\";\n }\n }\n }\n\n imap_expunge($this->mbox);\n }", "static function unwrap_email($html_email) {\n\n if (self::_has_markers($html_email)) {\n $html_email = self::unwrap_html_element($html_email);\n } else {\n //KEEP FOR OLD EMAIL COMPATIBILITY\n // Extracts only the body part\n $x = strpos($html_email, '<body');\n if ($x) {\n $x = strpos($html_email, '>', $x);\n $y = strpos($html_email, '</body>');\n $html_email = substr($html_email, $x + 1, $y - $x - 1);\n }\n\n /* Cleans up uncorrectly stored newsletter bodies */\n $html_email = preg_replace('/<style\\s+.*?>.*?<\\\\/style>/is', '', $html_email);\n $html_email = preg_replace('/<meta.*?>/', '', $html_email);\n $html_email = preg_replace('/<title\\s+.*?>.*?<\\\\/title>/i', '', $html_email);\n $html_email = trim($html_email);\n }\n\n // Required since esc_html DOES NOT escape the HTML entities (apparently)\n $html_email = str_replace('&', '&amp;', $html_email);\n $html_email = str_replace('\"', '&quot;', $html_email);\n $html_email = str_replace('<', '&lt;', $html_email);\n $html_email = str_replace('>', '&gt;', $html_email);\n\n return $html_email;\n }", "public function filterValidEmailsProvider() {}", "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 }", "function & _getDestinationUsernames() {\n\t\tif (empty($this->_destination_usernames)) {\n\t\t\t$params = & $this->_getParams();\n\t\t\t\n\t\t\t$usernames = trim($params->get('alerts_jabber_destination'), \", \\r\\n\");\n\t\t\t$usernames = explode(',', $usernames);\n\t\t\t\n\t\t\t\n\t\t\t$validUsernames = array();\n\t\t\t\n\t\t\tforeach ($usernames as $k => $v) {\n\t\t\t\t$v = trim($v, \", \\r\\n\");\n\t\t\t\t\n\t\t\t\tif ($this->_isValidUsername($v))\n\t\t\t\t\t$validUsernames [ ] = $v; \n\t\t\t}\n\t\t\t\n\t\t\t$this->_destination_usernames = $validUsernames;\n\t\t}\n\t\t\n\t\treturn $this->_destination_usernames;\n\t}", "public function unsubscribe($data) {\n if (empty($data['email'])) {\n throw new MailerException(\"Unsubscribe email is required.\");\n }\n\n $path = 'mailinglists/unsubscribe.json';\n $data = array('unsubscribe' => $data);\n return $this->request($path, 'POST', $data);\n }", "public function getNewsletterRecipientIDs();", "public function getAllEmails() {\n $users = $this->getDoctrine()->getRepository(User::class)->findAll();\n $emails = [];\n foreach($users as $email) {\n if(\"[email protected]\" != $email->getEmail())\n array_push($emails, $email->getEmail());\n }\n\n return $emails;\n }", "public function clearAddresses()\n {\n foreach ($this->to as $to) {\n unset($this->all_recipients[strtolower($to[0])]);\n }\n $this->to = array();\n $this->clearQueuedAddresses('to');\n }", "protected function removeFilterFromForMailer(): void\n {\n if ($this->fromEmail()) {\n \\remove_filter('wp_mail_from', [$this, 'fromEmail'], 500);\n }\n\n if ($this->fromName()) {\n \\remove_filter('wp_mail_from_name', [$this, 'fromName'], 500);\n }\n }", "protected function getRecipientEmails()\n {\n return $this->recipients\n ->map(function($user) {\n return $user->{User::COLUMN_EMAIL};\n })\n ->toArray();\n }", "public static function remove($email)\n\t{\n\t\t// Delete from database\n\t\t$db = BluApplication::getDatabase();\n\t\t$query = 'DELETE FROM maillist\n\t\t\tWHERE email = \"'.$email.'\"';\n\t\t$db->setQuery($query);\n\t\t$db->query();\n\n\t\t// Remove from constant contact\n\t\t$constantContact = self::_getConstantContact();\n\t\treturn $constantContact->remove($email);\n\t}", "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}", "private function clone_mail()\n {\n return clone $this->mail_transport;\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}", "public function getRecipients ()\n\t\t{\n\t\t\t$recipients = array();\n\t\t\t$n = imap_num_msg ( $this->mbox );\n\t\t\tfor ( $i = 1; $i <= $n; $i++ )\t// Yes: starts with 1, not 0\n\t\t\t{\n\t\t\t\t$recipients[$i] = $this->getRecipient ( $i );\n\t\t\t}\t\n\t\t\t\n\t\t\treturn $recipients;\n\t\t}", "public function clearAllRecipients()\n {\n }", "private function getUndeliveredList($campaign) {\n $sql = \"SELECT origin FROM smsMessages\n WHERE 1 \n AND messageId LIKE '{$campaign}' \n AND status != 2\n ORDER BY id DESC\";\n $results=$this->db->query($sql,2);\n return $results;\n }", "function membersemailist($memberquery){\n\t$f3=$this->f3;\n\t$members =\tnew Member($this->db);\n\t$memblist=$members->load();\n\t$membemails= $this->db->exec('SELECT distinct(email) as unqemail from members where u3ayear = '.'\"2015-2016\"'. ' and status =\"Active\" and email <> \"\" ' .$memberquery.' order by unqemail;');\n\t$output = iterator_to_array(new RecursiveIteratorIterator(\n new RecursiveArrayIterator($membemails)), FALSE);\n\treturn array_values($output);\n\t\n\t\n}", "function simplenews_subscription_list_remove($form, &$form_state) {\n $form['emails'] = array(\n '#type' => 'textarea',\n '#title' => t('Email addresses'),\n '#cols' => 60,\n '#rows' => 5,\n '#description' => t('Email addresses must be separated by comma, space or newline.'),\n );\n\n $form['newsletters'] = array(\n '#type' => 'fieldset',\n '#description' => t('Unsubscribe from'),\n '#tree' => TRUE,\n );\n\n foreach (simplenews_newsletter_get_all() as $newsletter) {\n $form['newsletters'][$newsletter->newsletter_id] = array(\n '#type' => 'checkbox',\n '#title' => check_plain($newsletter->name),\n '#description' => check_plain($newsletter->description),\n );\n }\n\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Unsubscribe'),\n );\n return $form;\n}", "public function getMail();", "function clear_bcc () {\n $this->sendbcc = array();\n $this->all_emails = array();\n }", "private function cleanEmail($email)\n { \n foreach($email as $email)\n $return[] = trim(strtolower($email));\n \n return $return;\n }", "private static function canRemoveEmail() {\n\t\treturn\n\t\t\tRights::hasRight(Right::getByName('Premanager', 'registerWithoutEmail'));\n\t}", "function getMailList_moderator($exclude='')\r\n\t{\r\n\t\t/* exclude must be an array of values\r\n\t\t * OR not quoted list separated by ,\r\n\t\t */\r\n\r\n\t\t$database =& JFactory::getDBO();\r\n\r\n\t if (is_array($exclude)) {\r\n\t $exclude = implode(',', $exclude);\r\n\t }\r\n\r\n /* Moderators(if requested) */\r\n\r\n $moderator_maillist = array();\r\n\r\n if ($this->_notify_moderator && $this->_moderator) {\r\n $usertype = '';\r\n foreach($this->_moderator as $moderator) {\r\n $usertype .= ($usertype ? ',':'') . \"'\" . JOSC_utils::getJoomlaUserType($moderator) . \"'\";\r\n }\r\n\t\t\t$query \t= \"SELECT DISTINCT email \"\r\n\t\t\t\t\t. \"\\n FROM `#__users` \"\r\n\t\t\t\t\t. \"\\n WHERE email <> '' \"\r\n\t\t\t\t\t. \"\\n AND usertype IN ($usertype)\"\r\n\t\t\t\t\t;\r\n\t\t\tif ($exclude) {\r\n\t\t\t\t$quoted = str_replace( ',', \"','\", $exclude); /* add quotes */\r\n\t\t\t\t$query .= \"\\n AND email NOT IN ('$quoted')\";\r\n\t\t\t}\r\n\t\t\t$database->setQuery( $query );\r\n\t\t\t$moderator_maillist = $database->loadResultArray(); //tableau\r\n\t\t\t//echo implode(';' , $moderator_maillist); // liste s�par� par des ;\r\n } elseif ($this->_notify_admin && $this->_notify_email <> '') {\r\n $moderator_maillist[] = $this->_notify_email;\r\n }\r\n return $moderator_maillist;\r\n\t}", "public function getUserMails()\r\n\t{\r\n\t\t$userDir = __DIR__ . '/../../settings/users';\r\n\t\t\t\t\r\n\t\t/* check if users directory exists */\r\n\t\tif(!is_dir($userDir)){ return array(); }\r\n\t\t\r\n\t\t/* get all user files */\r\n\t\t$users = array_diff(scandir($userDir), array('..', '.'));\r\n\t\t\r\n\t\t$usermails\t= array();\r\n\r\n\t\tforeach($users as $key => $user)\r\n\t\t{\r\n\t\t\tif($user == '.logins'){ continue; }\r\n\r\n\t\t\t$contents \t= file_get_contents($userDir . DIRECTORY_SEPARATOR . $user);\r\n\r\n\t\t\tif($contents === false){ continue; }\r\n\r\n\t\t\t$searchfor \t= 'email:';\r\n\r\n\t\t\t# escape special characters in the query\r\n\t\t\t$pattern \t= preg_quote($searchfor, '/');\r\n\t\t\t\r\n\t\t\t# finalise the regular expression, matching the whole line\r\n\t\t\t$pattern \t= \"/^.*$pattern.*\\$/m\";\r\n\r\n\t\t\t# search, and store first occurence in $matches\r\n\t\t\tif(preg_match($pattern, $contents, $match)){\r\n\t\t\t\t$usermails[] = trim(str_replace(\"email:\", \"\", $match[0]));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $usermails;\r\n\t}", "public function getDeleteObjectsFromSourceAfterTransfer()\n {\n return $this->delete_objects_from_source_after_transfer;\n }", "public function getDeleteObjectsFromSourceAfterTransfer()\n {\n return $this->delete_objects_from_source_after_transfer;\n }", "public function getMatchedEmailAddress();", "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 getMailUsers()\n {\n return $this->userRepo->getMailUsers(\\Auth::user()->id);\n }", "public function expunge()\n {\n return imap_expunge($this->stream());\n }", "public function getUnreadVoicemail()\n {\n return $this->_getAndParse($this->_serverPath['voicemail'], false);\n\t}", "function getAllEmails() {\n return getALL('SELECT * FROM mail');\n}", "public function unsetAdditionalRecipients(): void\n {\n $this->additionalRecipients = [];\n }", "public function getExternalSubscriptionsToEmail()\n {\n $principal = System_Api_Principal::getCurrent();\n\n $query = 'SELECT s.subscription_id, s.issue_id, s.user_id, s.stamp_id, s.user_email, p.is_public'\n . ' FROM {subscriptions} AS s'\n . ' JOIN {issues} AS i ON i.issue_id = s.issue_id'\n . ' JOIN {folders} AS f ON f.folder_id = i.folder_id'\n . ' JOIN {projects} AS p ON p.project_id = f.project_id';\n if ( !$principal->isAdministrator() )\n $query .= ' JOIN {effective_rights} AS r ON r.project_id = f.project_id AND r.user_id = %1d';\n $query .= ' WHERE s.user_id IS NULL AND i.stamp_id > s.stamp_id AND p.is_archived = 0';\n\n return $this->connection->queryTable( $query, $principal->getUserId() );\n }", "private function emailList()\n {\n return array(\n '[email protected]',\n '[email protected]',\n '[email protected]',\n );\n }", "public function getAllUnreadEmailsSenders()\n {\n $messages = collect(LaravelGmail::message()->unread()->preload()->all());\n $fromList = [];\n\n $messages->each(function ($message) use (&$fromList) {\n $fromList[] = $message->getFrom();\n });\n\n // TODO: can be optimized\n return $this->getUnreadEmailsList($fromList);\n }", "function getEmails() {\n\treturn db_query(\"SELECT email FROM Emails\");\n}", "function getDestKeys() {\n return $this->destKeys;\n }", "public function unpublish()\n {\n $message = new MailMessage;;\n $message->greeting(\"Hi {$this->post->reporting->name}!\");\n $message->line(\"The post {$this->post->titile} has been unpublished 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 }" ]
[ "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.52424985", "0.52419966", "0.52339536", "0.5218387", "0.5204054", "0.51908195", "0.5189021", "0.51805174", "0.5177554", "0.51711875", "0.51686436", "0.51686436", "0.5161084", "0.5151828", "0.5150452", "0.5144682", "0.51325125", "0.5131554", "0.5131204", "0.5119665", "0.510478", "0.51024276", "0.5091693", "0.50756735", "0.5070797", "0.50677294", "0.506454", "0.5061999", "0.50605255", "0.5056474", "0.5038293", "0.50369334", "0.50309825", "0.5019303", "0.5008672", "0.50065714", "0.5003441", "0.49959886", "0.49900824", "0.49814346", "0.49814165", "0.49777946", "0.4976981", "0.49746168", "0.49688718", "0.49679044", "0.496145", "0.4957722", "0.4953433", "0.49499726", "0.49496704", "0.49361745", "0.4932891", "0.493062", "0.4929327", "0.4927974", "0.4927974", "0.4923423", "0.49208668", "0.49150687", "0.49141777", "0.49035117", "0.49026957", "0.49026394", "0.49013215", "0.49008468", "0.48982966", "0.48879057", "0.48760325", "0.48576373" ]
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);", "public function register()\n {\n foreach ($this->all() as $theme) {\n $this->registerNamespace($theme);\n }\n }", "public function setNamespace($namespace) {\n $this->namespace = $namespace;\n }", "public function identifiedByNamespace(string $namespace): self\n {\n $this->getCurrent()->addNamespace($namespace);\n return $this;\n }", "public static function setNamespace($namespace) {\n\t\tself::$namespace = $namespace;\n\t}", "public function setNamespace($var)\n {\n GPBUtil::checkString($var, True);\n $this->namespace = $var;\n\n return $this;\n }", "public function setNamespace($var)\n {\n GPBUtil::checkString($var, True);\n $this->namespace = $var;\n\n return $this;\n }", "public function setNamespace($var)\n {\n GPBUtil::checkString($var, True);\n $this->namespace = $var;\n\n return $this;\n }", "public function setNamespace($var)\n {\n GPBUtil::checkString($var, True);\n $this->namespace = $var;\n\n return $this;\n }", "public function setNamespace($var)\n {\n GPBUtil::checkString($var, True);\n $this->namespace = $var;\n\n return $this;\n }", "public function setNamespace($var)\n {\n GPBUtil::checkString($var, True);\n $this->namespace = $var;\n\n return $this;\n }", "public function addNamespace($namespace, $hint)\n {\n $this->hints[$namespace] = $hint;\n }", "private function getNamespace($uid) {\n $select = 'uid,name';\n $from = 'tx_siwiki_namespaces';\n $where = 'uid = '.$this->s($uid);\n\n $query = $GLOBALS['TYPO3_DB']->exec_SELECTquery($select,$from,$where);\n if($query){\n while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($query)) {\n $this->namespace = $row;\n }\n }\n }", "public function addNamespace(string $namespace, string $hint): void\n {\n $this->hints[$namespace] = $hint;\n }", "public function registerNamespaces(array $namespaces)\n\t{\n\t\tforeach($namespaces as $namespace => $locations)\n\t\t{\n\t\t\t$this->namespaces[$namespace] = (array) $locations;\n\t\t}\n\t}", "public function set($namespace, $tagName, $value) {}", "public function prependNamespace($namespace, $hints);", "public function addNamespacesToRegistry($namespaces)\n {\n collect((array) $namespaces)->each(function ($namespace) {\n // Get path from namespace.\n $path = $this->getPathFromNamespace($namespace);\n\n if (file_exists($path)) {\n // Register each annotations file found in the namespace.\n foreach (Finder::create()->files()->name('*.php')->in($path) as $file) {\n $this->addFilesToRegistry($file->getRealPath());\n }\n }\n });\n\n return $this;\n }", "public static function setNamespace($namespace)\n {\n self::$namespace = $namespace;\n }", "public function setNamespace($namespace)\n {\n if (is_string($namespace)) {\n $this->namespace = $namespace;\n }\n }", "function getNamespace();", "function getNamespace();", "protected function registerNamespace() {\n // get the laravel view path\n $viewPath = Config::get('view.paths')[0];\n \n // set the view name space \n if (file_exists($viewPath . '/cms')) {\n $this->loadViewsFrom($viewPath . '/cms', 'cms');\n } else {\n $this->loadViewsFrom(__DIR__ . '/views', 'cms');\n }\n }", "private function replace($old_xpath, $new_xml, $insert_ns = FALSE) {\n $hits = $this->xpath->query($old_xpath, null, false);\n if ($hits && count($hits) > 0) {\n if ($insert_ns) {\n $new_xml = XMLPatcher::insert_namespaces($new_xml, $this->namespaces);\n }\n foreach ($hits as $hit) {\n $parent = $hit->parentNode;\n //error_log('new_xml is ' . $new_xml);\n $replace = dom_import_simplexml(simplexml_load_string($new_xml));\n if ($replace !== FALSE) {\n $replace = $this->dom->importNode($replace, TRUE);\n $parent->replaceChild($replace, $hit);\n $this->changed = TRUE;\n }\n }\n }\n }", "public function prependNamespace(string $namespace, $hints);", "static public function register($namespace, $path, $root = true): Autoloader {\n spl_autoload_register([\n $self = new self(\n $namespace .= '\\\\',\n $path,\n $root ? null : $namespace\n ),\n 'load',\n ], true, true);\n return $self;\n }", "function getNamespace ();", "public function registerNamespaces(array $namespaces)\n\t{\n\t\tforeach($namespaces as $namespace => $path)\n\t\t{\n\t\t\t$this->registerNamespace($namespace, $path);\n\t\t}\n\t}", "public function getNamespace();", "public function getNamespace();", "public function getNamespace();", "function register($name,$in=array(),$out=array(),$namespace=false,$soapaction=false,$style=false,$use=false,$documentation='',$encodingStyle='')\n {\n if ($namespace==false) $namespace=$this->_namespace;\n\n $this->_server->register($name,$in,$out,$namespace,$soapaction,$style,$use,$documentation,$encodingStyle);\n }", "public function register($namespace, $directory)\n {\n $this->prefixes[$namespace] = realpath($directory);\n return $this;\n }", "function xmlXpath( $xpath, $xml = null ){\n\t\tif( $xml === null ){\n\t\t\t$xml = $this->xml;\n\t\t}\n\t\t$this->xml = $xml->xpath( $xpath );\n\t}", "public function addAssetNamespace($namespace, $hints, $area)\n {\n if ($this->container['config']->get('deploying', false)) {\n $this->container['theme.asset.resolver']->addNamespace($namespace, $hints, $area);\n }\n }", "public function setNamespace($namespace)\n {\n // check if the namespace is valid\n if (!in_array($namespace, $this->_getNamespaces())) {\n throw Faett_Channel_Exceptions_InvalidNamespaceException::create(\n \t'Invalid namespace ' . $namespace\n );\n }\n // initialize the namespace\n $this->_namespace = 'http://pear.php.net/dtd/' . $namespace;\n }", "public function addPath($path, $namespace = null)\n {\n $this->paths[$namespace] = $path;\n\n $viewRegistry = $this->renderer->getViewRegistry();\n $viewRegistry->appendPath($path);\n\n $layoutRegistry = $this->renderer->getLayoutRegistry();\n $layoutRegistry->appendPath($path);\n }", "public function updateXmp($namespace, $tagName, $value) {}", "public function callMacroNamespace($namespace = null)\n\t{\n\t\t$this->namespace[] = $namespace ?: $this->getDefaultNamespace();\n\n\t\treturn $this;\n\t}", "public static /*internal*/ function registerPrefixes()\n\t{\n\t\tif(count(self::$namespaces))\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tself::$namespaces = array();\n\t\tself::$namespaces[self::xml] = 'xml';\n\t\tself::$namespaces[self::xmlns] = 'xmlms';\n\t\tself::$namespaces[self::rdf] = 'rdf';\n\t\tself::$namespaces[self::rdfs] = 'rdfs';\n\t\tself::$namespaces[self::owl] = 'owl';\n\t\tself::$namespaces[self::foaf] = 'foaf';\n\t\tself::$namespaces[self::skos] = 'skos';\n\t\tself::$namespaces[self::time] = 'time';\n\t\tself::$namespaces[self::dc] = 'dc';\n\t\tself::$namespaces[self::dcterms] = 'dct';\n\t\tself::$namespaces[self::rdfg] = 'rdfg';\n\t\tself::$namespaces[self::geo] = 'geo';\n\t\tself::$namespaces[self::frbr] = 'frbr';\n\t\tself::$namespaces[self::xhtml] = 'xhtml';\n\t\tself::$namespaces[self::xhv] = 'xhv';\n\t\tself::$namespaces[self::dcmit] = 'dcmit';\n\t\tself::$namespaces[self::xsd] = 'xsd';\n\t\tself::$namespaces[self::gn] = 'gn';\n\t\tself::$namespaces[self::exif] = 'exif';\n\t\tself::$namespaces[self::void] = 'void';\n\t\tself::$namespaces[self::olo] = 'olo';\t\t\n\t}", "public function useNamespace ( $namespace ) {\n\n if(null === $this->_namespaces)\n $this->initializeNamespaces();\n\n if(false === $prefix = array_search($namespace, $this->_namespaces))\n throw new Exception(\n 'The namespace %s does not exist in the document %s.',\n 5, array($namespace, $this->getInnerStream()->getStreamName()));\n\n $this->getStream()->registerXPathNamespace('__current_ns', $namespace);\n\n return $this;\n }", "public function testLookupNamespaceReturnsStringWhenAddedToElementElementAndParentPrefixBoundToNamespace(): void\n {\n $parent = new ElementElement();\n $parent->setTypeElement($this->sut);\n $parent->bindNamespace('foo', 'http://example.org/foo');\n self::assertSame('http://example.org/foo', $this->sut->lookupNamespace('foo'));\n }", "public function g( $namespace )\n\t{\n\t\t$namespace = trim( $namespace, '\\\\' ) ;\n\n\t\t$name = $this->lpop( $namespace );\n\n\t\tif( isset($this->map[$name]) )\n\t\t{\n\t\t\t$namespace = str_replace( $name, $this->map[$name], $namespace ) ;\n\t\t}\n\n\t\treturn str_replace( '\\\\', '/', $namespace );\n\t}", "public function xpath(): Xpath {\n if (\n $this->_xpath instanceof Xpath &&\n $this->_xpath->document === $this\n ) {\n return $this->_xpath;\n }\n $this->_xpath = new Xpath($this);\n foreach ($this->_namespaces as $prefix => $namespaceURI) {\n $this->_xpath->registerNamespace($prefix, $namespaceURI);\n }\n return $this->_xpath;\n }", "public function evaluate ($expression, DomNode $contextNode = null, $registerNodeNS = null) {}", "public function setNamespaceName($namespace) {\n $this->nsname= $namespace;\n }", "function wpfc_podcast_add_namespace() {\n\techo 'xmlns:itunes=\"http://www.itunes.com/dtds/podcast-1.0.dtd\"';\n}", "public function setNamespace(ckXsdNamespace $value)\r\n {\r\n $this->namespace = $value;\r\n }", "public function testLookupNamespaceReturnsStringWhenAddedToSchemaElementAndParentPrefixBoundToNamespace(): void\n {\n $parent = new SchemaElement();\n $parent->addAttributeElement($this->sut);\n $parent->bindNamespace('foo', 'http://example.org/foo');\n self::assertSame('http://example.org/foo', $this->sut->lookupNamespace('foo'));\n }", "public function __construct( $namespace ){ \n \n $this->setNamespace( $namespace );\n \n }", "private function add($parent_xpath, $new_xml, $insert_ns = FALSE) {\n if ($insert_ns) {\n $new_xml = XMLPatcher::insert_namespaces($new_xml, $this->namespaces);\n }\n $hits = $this->xpath->query($parent_xpath);\n foreach ($hits as $hit) {\n $new_node = dom_import_simplexml(simplexml_load_string($new_xml));\n if ($new_node !== FALSE) {\n $new_node = $this->dom->importNode($new_node, TRUE);\n $hit->appendChild($new_node);\n $this->changed = TRUE;\n }\n }\n }", "public function appendNamespace($namespace)\r\n {\r\n $this->namespace .= (string) $namespace;\r\n\r\n return $this;\r\n }", "public function __construct($namespace)\t{\n\t\t# Initialize\n\t\t$this->rootNS =& $namespace;\n\t}", "public function registerNamespace($theme)\n {\n $this->viewFactory->addNamespace('theme', $this->getThemePath($theme));\n }", "public function setNamespaces($namespaces)\n {\n $this->_namespaces = (array) $namespaces;\n }", "public function addTwigPath(string $namespace, string $path): ExtensionInterface\n {\n $this->twigNamespaces[$namespace][] = $path;\n\n return $this;\n }", "public function declareNamespace( $namespace ){\n \n $this->namespace_heap[ $namespace ] = null;\n \n return $this;\n \n }", "public function addPath(string $namespace, ?string $path = null): void\n {\n $this->twig->getLoader()->addPath($path, $namespace);\n }", "private function namespaceSet($var, $value) {\r\n\t\t$_SESSION[self::SESSION_NAMESPACE][$var] = $value;\r\n\t}", "public function __construct($namespace);", "public function getNamespace()\n {\n return 'tax';\n }", "protected function setNamespace( $namespace ){\n\n // clean up namespace before use\n $this->resetNamespaceHeap();\n \n // validate app namespace\n $this->namespace = \\Altumo\\Validation\\Strings::assertNonEmptyString(\n $namespace,\n '$namespace must be a non-empty string' \n );\n \n // add default app sub-namespaces\n $sub_namespaces = array(\n 'model',\n 'view',\n 'app',\n 'config'\n );\n \n // add main app namespace to the heap\n $this->declareNamespace( $this->namespace );\n \n // add sub-namespaces to the heap\n foreach( $sub_namespaces as $sub_namespace ){\n \n $this->declareNamespace( $this->namespace . '.' . $sub_namespace );\n \n }\n \n // add altumo namespaces to the heap\n $this->declareNamespace( 'altumo.app.App' );\n \n return $this;\n \n }", "protected function add_namespace_to_xml(SimpleXmlWriter $xw) {\n $xw->create_attribute('xmlns:unit', 'urn:proforma:tests:unittest:v1.1');\n $xw->create_attribute('xmlns:cs', 'urn:proforma:tests:java-checkstyle:v1.1');\n }", "public function query ($expression, DomNode $contextNode = null, $registerNodeNS = null) {}", "public function setNamespacing( $namespace )\n {\n $this->namespacing = $namespace;\n }", "function getNamespacePrefix(String $var1, String $var2): String;", "public function addViewNamespace($namespace, $hints)\n {\n $areas = array_merge(['frontend'], array_values($this->container['config']->get('app.areas', [])));\n $xmlLocations = [];\n foreach ($areas as $area) {\n $areaNamespace = $namespace.'_'.$area;\n if (is_dir($appPath = $this->container->resourcePath().'/views/processed/'.$area.'/'.$namespace)) {\n $this->view->addNamespace($areaNamespace, $appPath);\n }\n $paths = $this->themeResolver->getPaths($area)->toArray();\n foreach ($paths as $path) {\n if (is_dir($appPath = $path.'/templates/') && !isset(static::$themeTemplatePath[md5($appPath)])) {\n $this->view->addNamespace($area, $appPath);\n static::$themeTemplatePath[md5($appPath)] = $appPath;\n }\n if (is_dir($appPath = $path.'/templates/'.$namespace)) {\n $this->view->addNamespace($areaNamespace, $appPath);\n }\n }\n foreach ((array) $hints as $path) {\n if (is_dir($appPath = $path.'/'.$area.'/templates/')) {\n $this->view->addNamespace($areaNamespace, $appPath);\n }\n if (is_dir($appPath = $path.'/'.$area.'/layouts/')) {\n static::$layoutXmlLocation[$area][md5($appPath)] = $appPath;\n }\n }\n }\n }", "public function setXpathPrefix($prefix)\n {\n $this->xpathPrefix = $prefix;\n }", "public function addNamespace(string $sNamespace, string $sDirectory, string $sExtension = '')\n {}", "public function registerTestNamespaces() {\n if (isset($this->testNamespaces)) {\n return $this->testNamespaces;\n }\n $this->testNamespaces = [];\n\n $existing = $this->classLoader->getPrefixesPsr4();\n\n // Add PHPUnit test namespaces of Drupal core.\n $this->testNamespaces['Drupal\\\\Tests\\\\'] = [$this->root . '/core/tests/Drupal/Tests'];\n $this->testNamespaces['Drupal\\\\BuildTests\\\\'] = [$this->root . '/core/tests/Drupal/BuildTests'];\n $this->testNamespaces['Drupal\\\\KernelTests\\\\'] = [$this->root . '/core/tests/Drupal/KernelTests'];\n $this->testNamespaces['Drupal\\\\FunctionalTests\\\\'] = [$this->root . '/core/tests/Drupal/FunctionalTests'];\n $this->testNamespaces['Drupal\\\\FunctionalJavascriptTests\\\\'] = [$this->root . '/core/tests/Drupal/FunctionalJavascriptTests'];\n $this->testNamespaces['Drupal\\\\TestTools\\\\'] = [$this->root . '/core/tests/Drupal/TestTools'];\n\n $this->availableExtensions = [];\n foreach ($this->getExtensions() as $name => $extension) {\n $this->availableExtensions[$extension->getType()][$name] = $name;\n\n $base_path = $this->root . '/' . $extension->getPath();\n\n // Add namespace of disabled/uninstalled extensions.\n if (!isset($existing[\"Drupal\\\\$name\\\\\"])) {\n $this->classLoader->addPsr4(\"Drupal\\\\$name\\\\\", \"$base_path/src\");\n }\n // Add Simpletest test namespace.\n $this->testNamespaces[\"Drupal\\\\$name\\\\Tests\\\\\"][] = \"$base_path/src/Tests\";\n\n // Add PHPUnit test namespaces.\n $this->testNamespaces[\"Drupal\\\\Tests\\\\$name\\\\Unit\\\\\"][] = \"$base_path/tests/src/Unit\";\n $this->testNamespaces[\"Drupal\\\\Tests\\\\$name\\\\Kernel\\\\\"][] = \"$base_path/tests/src/Kernel\";\n $this->testNamespaces[\"Drupal\\\\Tests\\\\$name\\\\Functional\\\\\"][] = \"$base_path/tests/src/Functional\";\n $this->testNamespaces[\"Drupal\\\\Tests\\\\$name\\\\Build\\\\\"][] = \"$base_path/tests/src/Build\";\n $this->testNamespaces[\"Drupal\\\\Tests\\\\$name\\\\FunctionalJavascript\\\\\"][] = \"$base_path/tests/src/FunctionalJavascript\";\n\n // Add discovery for traits which are shared between different test\n // suites.\n $this->testNamespaces[\"Drupal\\\\Tests\\\\$name\\\\Traits\\\\\"][] = \"$base_path/tests/src/Traits\";\n }\n\n foreach ($this->testNamespaces as $prefix => $paths) {\n $this->classLoader->addPsr4($prefix, $paths);\n }\n\n $loader = require __DIR__ . '/../../../../../autoload.php';\n // Ensure we have a valid TestCase class.\n ClassWriter::mutateTestBase($loader);\n\n return $this->testNamespaces;\n }", "public function getAttributeNamespaceURI($index = null);" ]
[ "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.5275672", "0.52730834", "0.52630365", "0.52613765", "0.5254736", "0.5254736", "0.5254736", "0.5254736", "0.5254736", "0.5254736", "0.52542293", "0.52460486", "0.5242959", "0.5239053", "0.5232729", "0.52222717", "0.52172035", "0.5177545", "0.51599413", "0.5134793", "0.5134793", "0.51223916", "0.5115669", "0.5091394", "0.50892144", "0.50750804", "0.5053094", "0.50444233", "0.50444233", "0.50444233", "0.500434", "0.5001925", "0.4996318", "0.49834874", "0.49805284", "0.4972804", "0.49631146", "0.49622256", "0.49614233", "0.49481696", "0.4939961", "0.49274483", "0.49269763", "0.4912471", "0.4911527", "0.4910213", "0.49022722", "0.48891085", "0.48871776", "0.48550174", "0.48513302", "0.48343712", "0.48249874", "0.4813231", "0.47999355", "0.47928524", "0.47852966", "0.47787037", "0.47522876", "0.47432348", "0.47273552", "0.47268596", "0.47263065", "0.47005305", "0.46984738", "0.46958616", "0.46936056", "0.46900582", "0.46867663", "0.4677147" ]
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 }", "public function testUploadCertificateImage()\n {\n }", "function new_post($request,$url) {\n ##Data Post\n $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, $request);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n return curl_exec($ch);\n}", "protected function uploadComponentRequest($repository, $yum_directory = null, $yum_asset = null, $yum_asset_filename = null, $rubygems_asset = null, $nuget_asset = null, $raw_directory = null, $raw_asset1 = null, $raw_asset1_filename = null, $raw_asset2 = null, $raw_asset2_filename = null, $raw_asset3 = null, $raw_asset3_filename = null, $npm_asset = null, $maven2_group_id = null, $maven2_artifact_id = null, $maven2_version = null, $maven2_generate_pom = null, $maven2_packaging = null, $maven2_asset1 = null, $maven2_asset1_classifier = null, $maven2_asset1_extension = null, $maven2_asset2 = null, $maven2_asset2_classifier = null, $maven2_asset2_extension = null, $maven2_asset3 = null, $maven2_asset3_classifier = null, $maven2_asset3_extension = null, $pypi_asset = null)\n {\n // verify the required parameter 'repository' is set\n if ($repository === null || (is_array($repository) && count($repository) === 0)) {\n throw new InvalidArgumentException(\n 'Missing the required parameter $repository when calling uploadComponent'\n );\n }\n\n $resourcePath = '/v1/components';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if ($repository !== null) {\n $queryParams['repository'] = ObjectSerializer::toQueryValue($repository);\n }\n\n\n // form params\n if ($yum_directory !== null) {\n $formParams['yum.directory'] = ObjectSerializer::toFormValue($yum_directory);\n }\n // form params\n if ($yum_asset !== null) {\n $multipart = true;\n $formParams['yum.asset'] = try_fopen(ObjectSerializer::toFormValue($yum_asset), 'rb');\n }\n // form params\n if ($yum_asset_filename !== null) {\n $formParams['yum.asset.filename'] = ObjectSerializer::toFormValue($yum_asset_filename);\n }\n // form params\n if ($rubygems_asset !== null) {\n $multipart = true;\n $formParams['rubygems.asset'] = try_fopen(ObjectSerializer::toFormValue($rubygems_asset), 'rb');\n }\n // form params\n if ($nuget_asset !== null) {\n $multipart = true;\n $formParams['nuget.asset'] = try_fopen(ObjectSerializer::toFormValue($nuget_asset), 'rb');\n }\n // form params\n if ($raw_directory !== null) {\n $formParams['raw.directory'] = ObjectSerializer::toFormValue($raw_directory);\n }\n // form params\n if ($raw_asset1 !== null) {\n $multipart = true;\n $formParams['raw.asset1'] = try_fopen(ObjectSerializer::toFormValue($raw_asset1), 'rb');\n }\n // form params\n if ($raw_asset1_filename !== null) {\n $formParams['raw.asset1.filename'] = ObjectSerializer::toFormValue($raw_asset1_filename);\n }\n // form params\n if ($raw_asset2 !== null) {\n $multipart = true;\n $formParams['raw.asset2'] = try_fopen(ObjectSerializer::toFormValue($raw_asset2), 'rb');\n }\n // form params\n if ($raw_asset2_filename !== null) {\n $formParams['raw.asset2.filename'] = ObjectSerializer::toFormValue($raw_asset2_filename);\n }\n // form params\n if ($raw_asset3 !== null) {\n $multipart = true;\n $formParams['raw.asset3'] = try_fopen(ObjectSerializer::toFormValue($raw_asset3), 'rb');\n }\n // form params\n if ($raw_asset3_filename !== null) {\n $formParams['raw.asset3.filename'] = ObjectSerializer::toFormValue($raw_asset3_filename);\n }\n // form params\n if ($npm_asset !== null) {\n $multipart = true;\n $formParams['npm.asset'] = try_fopen(ObjectSerializer::toFormValue($npm_asset), 'rb');\n }\n // form params\n if ($maven2_group_id !== null) {\n $formParams['maven2.groupId'] = ObjectSerializer::toFormValue($maven2_group_id);\n }\n // form params\n if ($maven2_artifact_id !== null) {\n $formParams['maven2.artifactId'] = ObjectSerializer::toFormValue($maven2_artifact_id);\n }\n // form params\n if ($maven2_version !== null) {\n $formParams['maven2.version'] = ObjectSerializer::toFormValue($maven2_version);\n }\n // form params\n if ($maven2_generate_pom !== null) {\n $formParams['maven2.generate-pom'] = ObjectSerializer::toFormValue($maven2_generate_pom);\n }\n // form params\n if ($maven2_packaging !== null) {\n $formParams['maven2.packaging'] = ObjectSerializer::toFormValue($maven2_packaging);\n }\n // form params\n if ($maven2_asset1 !== null) {\n $multipart = true;\n $formParams['maven2.asset1'] = try_fopen(ObjectSerializer::toFormValue($maven2_asset1), 'rb');\n }\n // form params\n if ($maven2_asset1_classifier !== null) {\n $formParams['maven2.asset1.classifier'] = ObjectSerializer::toFormValue($maven2_asset1_classifier);\n }\n // form params\n if ($maven2_asset1_extension !== null) {\n $formParams['maven2.asset1.extension'] = ObjectSerializer::toFormValue($maven2_asset1_extension);\n }\n // form params\n if ($maven2_asset2 !== null) {\n $multipart = true;\n $formParams['maven2.asset2'] = try_fopen(ObjectSerializer::toFormValue($maven2_asset2), 'rb');\n }\n // form params\n if ($maven2_asset2_classifier !== null) {\n $formParams['maven2.asset2.classifier'] = ObjectSerializer::toFormValue($maven2_asset2_classifier);\n }\n // form params\n if ($maven2_asset2_extension !== null) {\n $formParams['maven2.asset2.extension'] = ObjectSerializer::toFormValue($maven2_asset2_extension);\n }\n // form params\n if ($maven2_asset3 !== null) {\n $multipart = true;\n $formParams['maven2.asset3'] = try_fopen(ObjectSerializer::toFormValue($maven2_asset3), 'rb');\n }\n // form params\n if ($maven2_asset3_classifier !== null) {\n $formParams['maven2.asset3.classifier'] = ObjectSerializer::toFormValue($maven2_asset3_classifier);\n }\n // form params\n if ($maven2_asset3_extension !== null) {\n $formParams['maven2.asset3.extension'] = ObjectSerializer::toFormValue($maven2_asset3_extension);\n }\n // form params\n if ($pypi_asset !== null) {\n $multipart = true;\n $formParams['pypi.asset'] = try_fopen(ObjectSerializer::toFormValue($pypi_asset), 'rb');\n }\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['multipart/form-data']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = build_query($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "function request(string $url, string $fields = '', int $isPost = 0)\n{\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POST, $isPost);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n if ($isPost) {\n curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);\n }\n $requestHeaders = array(\n 'Content-type: application/x-www-form-urlencoded',\n 'Content-Length: ' . strlen($fields),\n );\n curl_setopt($ch, CURLOPT_HTTPHEADER, $requestHeaders);\n return curl_exec($ch);\n}", "function getUploadUrls($mimeType) {\n\techo \"Getting upload urls. </br>\";\n\t$mimeParam = \"?mimeType=\" . $mimeType;\n\t$response = getRequestWithParam('/api/file/getpreupload', $mimeParam);\n\tprintInfo($response);\n}", "function testVerifyFileSubmission()\n {\n $this->deleteLog($this->logfilename);\n //Verify file exists in the database\n $query = $this->db->query(\"SELECT buildid, fileid FROM build2uploadfile\");\n if(count($query) == 0)\n {\n $this->fail('No build2upload records were added to the database');\n return;\n }\n $this->BuildId = $query[0]['buildid'];\n\n $content = $this->connect($this->url.\"/viewFiles.php?buildid=$this->BuildId\");\n if(!$content)\n {\n return;\n }\n \n $this->assertClickable('http://www.kitware.com/company/about.html');\n \n $this->clickLink('CMakeCache.txt');\n if(!$this->checkLog($this->logfilename))\n {\n return;\n }\n\n //Verify symlink and content exist on disk\n $query = $this->db->query(\"SELECT id, sha1sum FROM uploadfile WHERE filename='CMakeCache.txt'\");\n if(count($query) == 0)\n {\n $this->fail('CMakeCache.txt was not added to the uploadfile table');\n return;\n }\n $this->FileId = $query[0]['id'];\n $this->Sha1Sum = $query[0]['sha1sum'];\n\n global $cdashpath;\n global $CDASH_DOWNLOAD_RELATIVE_URL;\n $dirName = $cdashpath.'/'.$CDASH_DOWNLOAD_RELATIVE_URL.'/'.$this->Sha1Sum;\n if(!is_dir($dirName))\n {\n $this->fail(\"Directory $dirName was not created\");\n return;\n }\n if(!file_exists($dirName.'/'.$this->Sha1Sum))\n {\n $this->fail(\"File contents were not written to $dirName/$this->Sha1Sum\");\n return;\n }\n if(!file_exists($dirName.'/CMakeCache.txt'))\n {\n $this->fail(\"File symlink was not written to $dirName/CMakeCache.txt\");\n return;\n }\n $this->pass('Uploaded file exists in database and on disk');\n }", "private function initCurl() {\n\t\tif( $this->valid() ) {\n\t\t\t$this->ch = curl_init();\n\t\t\tcurl_setopt( $this->ch, CURLOPT_URL, \t\t\t\t$this->config['postUrl'] );\n\t\t\tcurl_setopt( $this->ch, CURLOPT_RETURNTRANSFER, \tTRUE);\n\t\t\tcurl_setopt( $this->ch, CURLOPT_FOLLOWLOCATION, \tTRUE);\n\t\t\tcurl_setopt( $this->ch, CURLOPT_TIMEOUT, \t\t\t10);\n\t\t\tcurl_setopt( $this->ch, CURLOPT_HEADER, \t\t\tFALSE ); \n\t\t\tcurl_setopt( $this->ch, CURLOPT_POST, \t\t\t\tcount( $this->getFieldsAsString() ) );\n\t\t\tcurl_setopt( $this->ch, CURLOPT_POSTFIELDS, \t\t$this->getFieldsAsString() ); \n\t\t\tcurl_setopt( $this->ch, CURLOPT_REFERER, \t\t\t$this->config['referrerUrl'] );\n\t\t\tcurl_setopt( $this->ch, CURLOPT_USERAGENT, \t\t\t$this->config['userAgent']);\n\t\t\tcurl_setopt( $this->ch, CURLOPT_AUTOREFERER, \t\tTRUE);\n\t\t\tcurl_setopt( $this->ch, CURLOPT_VERBOSE, \t\t\tFALSE);\n\t\t\tcurl_setopt( $this->ch, CURLOPT_COOKIEJAR, \t\t\t$this->config['cookieFile']);\n\t\t\treturn TRUE;\n\t\t}\n\t\treturn FALSE;\n\t}", "private function submit_request($url, $data)\n { // Returns cURL response\n\n $credentials = base64_encode($this->consumer_key . ':' . $this->consumer_secret);\n if ($this->env == 'live') {\n $cred_url = 'https://api.safaricom.co.ke/oauth/v1/generate?grant_type=client_credentials';\n } else {\n $cred_url = 'https://sandbox.safaricom.co.ke/oauth/v1/generate?grant_type=client_credentials';\n }\n $client = new Client();\n try {\n $request = $client->get($cred_url, array(\n 'headers' => array('content-type' => 'application/json', 'Authorization' => 'Basic ' . $credentials)\n ));\n if ($body = $request->getBody()) {\n $response = $body->getContents();\n } else {\n return false;\n }\n } catch (RequestException $e) {\n if ($e->hasResponse()) {\n $response = $e->getResponse()->getBody()->getContents();\n } else {\n return false;\n }\n }\n\n $response = @json_decode($response);\n $access_token = @$response->access_token;\n\n // The above $access_token expires after an hour, find a way to cache it to minimize requests to the server\n if (!$access_token) {\n //throw new Exception(\"Invalid access token generated\");\n return false;\n }\n\n if ($access_token != '' || $access_token !== FALSE) {\n\n $client = new Client();\n try {\n $request = $client->post($url, array(\n 'headers' => array('content-type' => 'application/json', 'Authorization' => 'Bearer ' . $access_token),\n 'body' => $data\n ));\n if ($body = $request->getBody()) {\n $response = $body->getContents();\n } else {\n return false;\n }\n } catch (RequestException $e) {\n if ($e->hasResponse()) {\n $response = $e->getResponse()->getBody()->getContents();\n } else {\n return false;\n }\n }\n return $response;\n } else {\n return FALSE;\n }\n }", "function curlRequest( $url, $curl_handle, $fail_on_error = false ) {\n global $curl_requests;\n\n if ( $curl_handle === false ) {\n return false;\n }\n if ( $fail_on_error === true ) {\n curl_setopt( $curl_handle, CURLOPT_FAILONERROR, true );\n }\n curl_setopt( $curl_handle, CURLOPT_SSL_VERIFYPEER, false );\n curl_setopt( $curl_handle, CURLOPT_RETURNTRANSFER, true );\n curl_setopt( $curl_handle, CURLOPT_USERAGENT, 'Verus PHP EXT Tools' );\n curl_setopt( $curl_handle, CURLOPT_URL, $url );\n $curl_requests++;\n return curl_exec( $curl_handle );\n}", "function checkExternalFile($url)\n{\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_NOBODY, true);\n curl_exec($ch);\n $retCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n\n return $retCode;\n}", "function doGoogleVisionRequest($filename, $type=\"SAFE_SEARCH_DETECTION\") {\n $request['requests'] = ['image'=>[], 'features'=>[\"type\"=>$type, \"maxResults\"=>999]];\n\n $data = file_get_contents($filename);\n if ($data===FALSE) {\n die(\"Invalid file/url: $filename\\n\");\n }\n\n $request['requests']['image']['content'] = base64_encode($data);\n $payload = json_encode($request);\n\n $ch = curl_init(GOOGLE_VISION_END_POINT . GOOGLE_VISION_KEY);\n curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload );\n curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));\n curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );\n $result = curl_exec($ch);\n curl_close($ch);\n\n return $result;\n}", "public function execute()\n {\n if( !extension_loaded('curl') || !function_exists('curl_version') ) {\n return $this->_error('noCurl');\n }\n\n // Get curl info\n $info = curl_version();\n\n // Check features\n if( $this->_ipv6 && !($info['features'] & CURL_VERSION_IPV6) ) {\n $this->_error('noIpv6');\n }\n if( $this->_kerberos4 && !($info['features'] & CURL_VERSION_KERBEROS4) ) {\n $this->_error('noKerberos4');\n }\n if( $this->_libz && !($info['features'] & CURL_VERSION_LIBZ) ) {\n $this->_error('noLibz');\n }\n if( $this->_ssl && !($info['features'] & CURL_VERSION_SSL) ) {\n $this->_error('noSsl');\n }\n\n // Check ssl version\n if( ($this->_minSslVersion || $this->_maxSslVersion) ) {\n if( empty($info['ssl_version']) ||\n !($info['features'] & CURL_VERSION_SSL) ||\n !preg_match('/[\\d.]+/', $info['ssl_version'], $matches) ||\n !($sslVersion = $matches[0]) ) {\n $this->_error('noSsl');\n } else {\n if( $this->_minSslVersion && version_compare($sslVersion, $this->_minSslVersion, '<') ) {\n $this->_error('tooLowSslVersion');\n }\n if( $this->_maxSslVersion && version_compare($sslVersion, $this->_maxSslVersion, '>') ) {\n $this->_error('tooHighSslVersion');\n }\n }\n }\n\n // Check curl lib version\n if( $this->_minVersion && version_compater($info['version'], $this->_minVersion, '<') ) {\n $this->_error('tooLowVersion');\n }\n if( $this->_maxVersion && version_compare($info['version'], $this->_maxVersion, '>') ) {\n $this->_error('tooHighVersion');\n }\n\n // Check protocols\n if( is_array($this->_protocols) && !empty($this->_protocols) ) {\n $missingProtocols = array_diff($this->_protocols, $info['protocols']);\n if( !empty($missingProtocols) ) {\n $this->_error('missingProtocols');\n }\n }\n\n return $this;\n }", "public function testComDayCqDamPimImplSourcingUploadProcessProductAssetsUploadPro()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.day.cq.dam.pim.impl.sourcing.upload.process.ProductAssetsUploadProcess';\n\n $crawler = $client->request('POST', $path);\n }", "private function getUploadUrl() {\n // Before anything else, we need the ID.\n $bucket_id = $this->getBucketId();\n\n // Grab the needed token, URLs etc\n list($api_url, $token, $download_url) = $this->authorizeAccount();\n $full_url = $api_url.'/b2api/v1/b2_get_upload_url';\n\n // Execute\n $response = self::execCurl(\n $full_url, 'POST', array(\n 'Authorization: '.$token,\n ),\n json_encode(array(\n 'bucketId' => $bucket_id,\n )));\n\n // Parse and get back a sane JSON value.\n $json = self::isValidJson($response);\n\n // Now, check the JSON map has every key-value pair we expect.\n self::jsonHasKeys(\n $json, array(\n 'bucketId',\n 'authorizationToken',\n 'uploadUrl',\n ));\n\n // And, just to be sure: make sure we get the right bucket ID back.\n self::jsonKeyIs($json, 'bucketId', $bucket_id);\n\n // Done: return the needed values\n return array(\n $json['uploadUrl'],\n $json['authorizationToken'],\n );\n }", "function _kala_migrate_curl($url) {\n // Many tries and headaches but this curl gets em all\n $agent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)';\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);\n curl_setopt($ch, CURLOPT_ENCODING, '');\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_TIMEOUT_MS, 5000);\n curl_setopt($ch, CURLOPT_USERAGENT, $agent);\n $check = curl_exec($ch);\n $info = curl_getinfo($ch);\n curl_close($ch);\n\n $result = array($check, $info);\n return $result;\n}", "function mi_http_request($url, $data)\r\n{\r\n\r\n $curl = curl_init($url);\r\n curl_setopt($curl, CURLOPT_POST, true);\r\n curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));\r\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\r\n $response = curl_exec($curl);\r\n curl_close($curl);\r\n return $response;\r\n}", "public function step_2_manage_upload()\n {\n }", "function validateCurl(){\n\t// Before anything else, check if we have php-curl is installed\n\tif (!function_exists('curl_init')) {\n\t\terror_log(\"Kindly install/enable php-curl module and try again. This standard module allows the webserver to communicate with the EMS.\");\n\t\texit();\n\t}\n}", "function http($url, $args = array()) {\n\n\t\tglobal $CONFIG;\n\n\t\t$userAgent = '(Elgg ' . $CONFIG->release . ')';\n\n\t\t$ch = curl_init();\n\t\t//curl_setopt($ch, CURLOPT_HTTPHEADER, \"Host: api.dropbox.com\");\n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, $userAgent);\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\n\t\tcurl_setopt($ch, CURLOPT_FAILONERROR, true);\n\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n\t\tcurl_setopt($ch, CURLOPT_AUTOREFERER, true);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 20);\n\t\tcurl_setopt($ch, CURLOPT_VERBOSE, true);\n\t\t\n\t\t/**\n\t\t * This is needed to remove problems with certificate \n\t\t * authentication against the dropbox server. \n\t\t */\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n\t\t\n\t\tif (!empty($args['username']) && !empty($args['password'])) {\n\t\t\tcurl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);\n\t\t\tcurl_setopt($ch, CURLOPT_USERPWD, $args['username'] . ':' . $args['password']);\n\t\t}\n\n\t\tif (!empty($args['post'])) {\n\t\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $args['data']);\n\t\t}\n\n\t\tif (!empty($args['headers'])) {\n\t\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $args['headers']);\n\t\t}\n\n\t\t$html = curl_exec($ch);\n\t\t\n\t\t$rc = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n\t\t$info = curl_getinfo($ch);\n\t\t$err = curl_error($ch);\n\t\t$errno = curl_errno($ch);\n\n\t\tcurl_close($ch);\n\t\t\n\t\treturn array('rc' => $rc, \n\t\t\t 'html' => $html, \n\t\t\t 'errno' => $errno,\n\t\t\t 'err' => $err,\n\t\t\t 'info' => $info);\n\t}", "function postDataEncuestaDemograficaPractico($url, $ruta, $data, $termino, $sistema, $tipoEstudiante, $pregunta)\n\t{\n\t\tset_time_limit(500);\n\t\t$target_url = $url; \n\t\t$fname = $ruta.$data; \n\t\t$cfile = new CURLFile(realpath($fname)); \n\t\t$post = array \n\t\t(\n\t\t\t'archivo' => $cfile,\n\t\t\t'termino' => $termino,\n\t\t\t'sistema' => $sistema,\n\t\t\t'tipoEstudiante' => $tipoEstudiante,\n\t\t\t'pregunta' => $pregunta\n\t\t); \n\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $target_url);\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/4.0 (compatible;)\"); \n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER,array('Content-Type: multipart/form-data'));\n\t\tcurl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); \n\t\tcurl_setopt($ch, CURLOPT_FORBID_REUSE, 1); \n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 0);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\n\t\t\n\t\t$resultadoExec = curl_exec ($ch);\n\t\t\n\t\tif ($resultadoExec === FALSE) {\n\t\t\t$response = \"Error sending\" . $fname . \" \" . curl_error($ch);\n\t\t\tcurl_close ($ch);\n\t\t}else{\n\t\t\tcurl_close ($ch);\n\t\t\t$response = \"Result: \" . $resultadoExec;\n\t\t}\n\t\t\n\t\treturn $response;\n\t}", "protected function _curl_buildRequest($method,$url,$data) {\n\t\t$http = curl_init($url);\n\t\t$http_headers = array('Accept: application/json,text/html,text/plain,*/*') ;\n\t\tif ( is_object($data) OR is_array($data) )\n\t\t\t$data = json_encode($data);\n\n\t\tcurl_setopt($http, CURLOPT_CUSTOMREQUEST, $method);\n\n\t\tif ( $method == 'COPY') {\n\t\t\t$http_headers[] = \"Destination: $data\";\n\t\t} elseif ($data) {\n\t\t\tcurl_setopt($http, CURLOPT_POSTFIELDS, $data);\n\t\t}\n\t\tcurl_setopt($http, CURLOPT_HTTPHEADER,$http_headers);\n\t\treturn $http;\n\t}", "public function testAddVendorComplianceSurveyFileByURL()\n {\n }", "function postDataEncuestaSatisfaccionPractico($url, $ruta, $data, $termino, $sistema, $tipoEstudiante, $pregunta)\n\t{\n\t\tset_time_limit(500);\n\t\t$target_url = $url; \n\t\t$fname = $ruta.$data; \n\t\t$cfile = new CURLFile(realpath($fname)); \n\t\t$post = array \n\t\t(\n\t\t\t'archivo' => $cfile,\n\t\t\t'termino' => $termino,\n\t\t\t'sistema' => $sistema,\n\t\t\t'tipoEstudiante' => $tipoEstudiante,\n\t\t\t'pregunta' => $pregunta\n\t\t); \n\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $target_url);\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/4.0 (compatible;)\"); \n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER,array('Content-Type: multipart/form-data'));\n\t\tcurl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); \n\t\tcurl_setopt($ch, CURLOPT_FORBID_REUSE, 1); \n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 0);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\n\t\t\n\t\t$resultadoExec = curl_exec ($ch);\n\t\t\n\t\tif ($resultadoExec === FALSE) {\n\t\t\t$response = \"Error sending\" . $fname . \" \" . curl_error($ch);\n\t\t\tcurl_close ($ch);\n\t\t}else{\n\t\t\tcurl_close ($ch);\n\t\t\t$response = \"Result: \" . $resultadoExec;\n\t\t}\n\t\t\n\t\treturn $response;\n\t}", "function learndash_upload_essay() {\n\n\tif ( ! isset( $_POST['nonce'] ) || ! isset( $_POST['question_id'] ) || ! isset( $_FILES['essayUpload'] ) ) {\n\t\twp_send_json_error();\n\t\tdie();\n\t}\n\n\t$nonce = $_POST['nonce'];\n\t$question_id = intval( $_POST['question_id'] );\n\tif ( empty( $question_id ) ) {\n\t\twp_send_json_error();\n\t\tdie();\n\t}\n\n\t/**\n\t * Changes in v2.5.4 to include the question_id as part of the nonce\n\t */\n\tif ( ! wp_verify_nonce( $nonce, 'learndash-upload-essay-'. $question_id ) ) {\n\t\twp_send_json_error();\n\t\tdie( 'Security check' );\n\t} else {\n\n\t\tif ( !is_user_logged_in() ) {\n\t\t\tif ( !apply_filters('learndash_essay_upload_user_check', false, $question_id ) ) {\n\t\t\t\twp_send_json_error();\n\t\t\t\tdie();\n\t\t\t}\n\t\t}\n\n\t\t$file_desc = learndash_essay_fileupload_process( $_FILES['essayUpload'], $question_id );\n\n\t\tif ( ! empty( $file_desc ) ) {\n\t\t\twp_send_json_success( $file_desc );\n\t\t} else {\n\t\t\twp_send_json_error();\n\t\t}\n\t\tdie();\n\t}\n}", "public function upload($input);", "function CheckCurlWork($sCheckUrl) \n{\n\tif(function_exists('curl_init') == true) \n\t{\n\t\tif(CheckAvalibility($sCheckUrl) === true) \n\t\t{\t\t\n\t\t\treturn true;\n\t\t}\n\t}\n\t\n\treturn false;\n}", "function postDataEncuestaDemograficaTeoricoPractico($url, $ruta, $data, $termino, $sistema, $tipoEstudiante, $pregunta)\n\t{\n\t\tset_time_limit(500);\n\t\t$target_url = $url; \n\t\t$fname = $ruta.$data; \n\t\t$cfile = new CURLFile(realpath($fname)); \n\t\t$post = array \n\t\t(\n\t\t\t'archivo' => $cfile,\n\t\t\t'termino' => $termino,\n\t\t\t'sistema' => $sistema,\n\t\t\t'tipoEstudiante' => $tipoEstudiante,\n\t\t\t'pregunta' => $pregunta\n\t\t); \n\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $target_url);\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/4.0 (compatible;)\"); \n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER,array('Content-Type: multipart/form-data'));\n\t\tcurl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); \n\t\tcurl_setopt($ch, CURLOPT_FORBID_REUSE, 1); \n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 0);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\n\t\t\n\t\t$resultadoExec = curl_exec ($ch);\n\t\t\n\t\tif ($resultadoExec === FALSE) {\n\t\t\t$response = \"Error sending\" . $fname . \" \" . curl_error($ch);\n\t\t\tcurl_close ($ch);\n\t\t}else{\n\t\t\tcurl_close ($ch);\n\t\t\t$response = \"Result: \" . $resultadoExec;\n\t\t}\n\t\t\n\t\treturn $response;\n\t}", "function LibraryMediaFileUpload() {\n $file = file_get_contents('test_files/test.csv');\n $payload = base64_encode($file);\n\n $params = array(\n 'service' => 'rest',\n 'method' => 'LibraryMediaFileUpload',\n 'response' => RESPONSE,\n 'fileId' => NULL,\n 'checksum' => md5($payload),\n 'payload' => $payload\n );\n\n callService($params, true);\n}", "public function testUploadSuccess()\n {\n $test_headers = ['ETag' =>['some-etag']];\n $mock_response = new MockHttpResponse(200,\n json_encode([\n 'filename' => 'somefilename.jpg',\n 'size' => '1000',\n 'type' => 'image/jpg',\n 'url' => 'https://cdn.filestack.com/somefilehandle',\n 'uri' => 'https://uploaduri/handle&partNum=1',\n 'region' => 'us-east-1',\n 'upload_id' => 'test-upload-id',\n 'headers' => []\n ]),\n $test_headers\n );\n\n $stub_http_client = $this->createMock(\\GuzzleHttp\\Client::class);\n $stub_http_client->method('request')\n ->willReturn($mock_response);\n\n $client = new FilestackClient(\n $this->test_api_key,\n $this->test_security,\n $stub_http_client\n );\n\n $filelink = $client->upload($this->test_filepath);\n\n $this->assertNotNull($filelink);\n }", "function init_curl()\n\t{\n\t\t$this->ch = curl_init();\n\t\t$user_agent = $this->user_agent;\n\t\t$header[] = \"Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/jpeg, application/x-ms-xbap, application/x-shockwave-flash, */*\";\n\t\t$header[] = \"Accept-Language: en-US\";\n\t\t$header[] = \"User-Agent: \" . $user_agent;\n\t\t$header[] = \"Connection: Keep-Alive\";\n\t\t$header[] = \"Pragma:\";\n\t\t$header[] = \"Expect:\";\n\t\t$header[] = \"Content-Type:\";\n\n\t\t$this->header = $header;\n\n\t\t$header2[] = \"Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/jpeg, application/x-ms-xbap, application/x-shockwave-flash, */*\";\n\t\t$header2[] = \"Accept-Language: en-US\";\n\t\t$header2[] = \"User-Agent: \" . $user_agent;\n\t\t$header2[] = \"Connection: Keep-Alive\";\n\t\t$header2[] = \"Content-Type: application/x-www-form-urlencoded\";\n\t\t$header2[] = \"Pragma:\";\n\t\t$header2[] = \"Expect:\";\n\n\t\t$this->header_post = $header2;\n\n\t\t$header3[] = \"Accept: application/json, text/javascript, */*\";\n\t\t$header3[] = \"Accept-Language: en-US\";\n\t\t$header3[] = \"User-Agent: \" . $user_agent;\n\t\t$header3[] = \"Content-Type: application/x-www-form-urlencoded\";\n\t\t$header3[] = \"x-requested-with: XMLHttpRequest\";\n\t\t$header3[] = \"Connection: Keep-Alive\";\n\t\t$header3[] = \"Pragma:\";\n\t\t$header3[] = \"Expect:\";\n\n\t\t$this->header_json = $header3;\n\n\t\t$header4[] = \"Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/jpeg, application/x-ms-xbap, application/x-shockwave-flash, */*\";\n\t\t$header4[] = \"Accept-Language: en-US\";\n\t\t$header4[] = \"User-Agent: \" . $user_agent;\n\t\t$header4[] = \"Connection: Keep-Alive\";\n\t\t$header4[] = \"Content-Type: multipart/form-data\";\n\t\t$header4[] = \"Pragma:\";\n\t\t$header4[] = \"Expect:\";\n\n\t\t$this->header_multipart = $header4;\n\n\t\tcurl_setopt($this->ch, CURLOPT_USERAGENT, $user_agent);\n\t\tcurl_setopt($this->ch, CURLOPT_COOKIEJAR, $this->opt[\"cookie_dir\"].\"/\".$this->id);\n\t\tcurl_setopt($this->ch, CURLOPT_COOKIEFILE, $this->opt[\"cookie_dir\"].\"/\".$this->id);\n\t\t//curl_setopt($this->ch, CURLOPT_ENCODING, 'gzip, deflate');\n\t\tcurl_setopt($this->ch, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($this->ch, CURLOPT_HEADER, 1);\n\t\tcurl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, 1);\n\t\tcurl_setopt($this->ch, CURLOPT_VERBOSE, $this->opt[\"verbose\"]);\n\t\tcurl_setopt($this->ch, CURLOPT_TIMEOUT, $this->opt[\"timeout\"]);\n\t\tcurl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\t\tcurl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n\n\t\tif ($this->opt[\"use_proxy\"] && isset($proxy))\n\t\tcurl_setopt($this->ch, CURLOPT_PROXY, $proxy);\n\t\t//print \"Set Curl Proxy $proxy\\n\";\n\t\t//curl_setopt($this->ch, CURLOPT_PROXYUSERPWD, \"ocbeta:echo11ra\");\n\n\t\t//if ($this->opt[\"use_ips\"])\n\t\t//curl_setopt($this->ch, CURLOPT_INTERFACE, $this->get_ip());\n\t}", "function http_post_fields($url, ?array $data = null, ?array $files = null, ?array $options = null, ?array &$info = null) {}", "private function uploadPhoto()\n {\n try\n {\n \n $request = $_POST;\n\n //check if user logged in\n if(!userid())\n throw_error_msg( lang(\"you_not_logged_in\") ) ;\n\n //check if title provided\n if( !isset($request['photo_title']) || $request['photo_title']==\"\")\n throw_error_msg(\"photo_title not provided\");\n else\n $insert_array['photo_title'] = mysql_clean($request['photo_title']);\n\n //check if description provided\n if( !isset($request['photo_description']) || $request['photo_description']==\"\")\n throw_error_msg(\"photo_description not provided\");\n else\n $insert_array['photo_description'] = mysql_clean($request['photo_description']);\n\n //check if tags provided\n if(!isset($request['photo_tags']) || $request['photo_tags']==\"\")\n throw_error_msg(\"photo_tags not provided\");\n else\n $insert_array['photo_tags'] = mysql_clean($request['photo_tags']);\n\n //check if collection provided\n if(!isset($request['collection_id']) || $request['collection_id']==\"\")\n throw_error_msg(\"collection_id not provided\");\n elseif(!is_numeric($request['collection_id']))\n throw_error_msg('invalid collection_id');\n else\n $insert_array['collection_id'] = mysql_clean($request['collection_id']);\n\n if(!isset($_FILES['photo_file']))\n throw_error_msg(\"photo file not provided\");\n\n $info = pathinfo($_FILES['photo_file']['name']);\n \n $extension = strtolower($info['extension']);\n\n $tmp_file = FILES_DIR.'/temp/temp_photo_'.time().'.'.$extension;\n \n @move_uploaded_file($_FILES['photo_file']['tmp_name'], $tmp_file);\n\n $photo_upload_url = BASEURL.\"/actions/photo_uploader.php\";\n\n $post_array['plupload'] = 'yes';\n $post_array['name'] = $_FILES['photo_file']['name'];\n $post_array['file'] = '@'.$tmp_file;\n \n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL,$photo_upload_url);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post_array);\n \n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $server_output = curl_exec ($ch);\n\n curl_close ($ch);\n \n $output = json_decode($server_output,true);\n\n if(isset($output['error']))\n {\n throw_error_msg( $output['error'] ) ;\n }\n else\n {\n //get ouput \n /*$insert_array['filename'] = $output['filename'];\n \n $insert_array['folder'] = createDataFolders(PHOTOS_DIR);*/\n $post_insert_array['insertPhoto'] = 'yes';\n $post_insert_array['photo_title'] = $insert_array['photo_title'];\n $post_insert_array['photo_description'] = $insert_array['photo_description'];\n $post_insert_array['photo_tags'] = $insert_array['photo_tags'];\n $post_insert_array['collection_id'] = $insert_array['collection_id']; \n $post_insert_array['file_name'] = $output['file_name'];\n $post_insert_array['title'] = $info['filename']; //$_FILES['photo_file']['name'];\n $post_insert_array['ext'] = $output['extension'];\n $post_insert_array['userid'] = userid();\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL,$photo_upload_url);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post_insert_array);\n \n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $server_output = curl_exec ($ch);\n\n curl_close ($ch);\n \n $output = json_decode($server_output,true);\n \n if(isset($output['success']))\n {\n global $cbphoto;\n\n $photo = $cbphoto->get_photo($output['photoID']);\n $cbphoto->collection->add_collection_item($photo['photo_id'],$photo['collection_id']);\n \n $photo_details = format_photos( array($photo) );\n }\n else\n {\n throw_error_msg( $output['error'] ) ; \n }\n\n $data = array('code' => \"200\", 'status' => \"success\", \"msg\" => \"success\", \"data\" => $photo_details);\n $this->response($this->json($data));\n } \n \n }\n catch(Exception $e)\n {\n $this->getExceptionDelete($e->getMessage());\n } \n }", "private function sendRequest($url,$total){\n $client = new Client();\n $requests = function ($total) use ($url){\n $uri = $url;\n for ($i = 0; $i < $total; $i++) {\n yield new Request('POST', $uri);\n }\n };\n $pool = new Pool($client, $requests($total), [\n 'concurrency' => 6,\n 'fulfilled' => function (Response $response, $index) {\n $this->info('Request number '.($index+1).' - Response: Successful request');\n },\n 'rejected' => function (RequestException $e, $index) {\n $this->comment('Request number '.($index+1).' - Response: The API:\"https://atomic.incfile.com/fakepost\" is not available now');\n },\n ]);\n $promise = $pool->promise();\n $promise->wait();\n }", "public function testParseRequest()\n {\n $files = [\n 'file_1' => __DIR__ . '/files/file_1.txt',\n 'file_2' => __DIR__ . '/files/file_2.txt',\n 'file_3' => 'this is a test file content.',\n ];\n\n $this->mockResponse();\n $this->httpClient()->upload('http://localhost/demo', $files);\n\n $parser = new MultipartParser();\n $multipart = $parser->parseRequest($this->lastRequest());\n\n foreach ($this->expectedMultipart() as $expected) {\n $this->assertTrue($this->hasItemMultiPart($multipart, $expected));\n }\n }", "function send_requests($json_payload, $url){\n $ch = curl_init(\"$url\");\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n curl_setopt($ch, CURLOPT_POSTFIELDS, $json_payload);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n 'Content-Type: application/json',\n 'Content-Length: ' . strlen($json_payload))\n ); \n return curl_exec($ch);\n}", "function request_post_api($url=\"\",$post=\"\") {\n\tif(empty($url))\n\t\treturn false;\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL,$url);\n\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n\tif($post){\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); \t\t\n\t}\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t$response = curl_exec($ch);\n\tcurl_close($ch);\n\treturn $response;\n}", "function postDataEncuestaSatisfaccionTeoricoPractico($url, $ruta, $data, $termino, $sistema, $tipoEstudiante, $pregunta)\n\t{\n\t\tset_time_limit(500);\n\t\t$target_url = $url; \n\t\t$fname = $ruta.$data; \n\t\t$cfile = new CURLFile(realpath($fname)); \n\t\t$post = array \n\t\t(\n\t\t\t'archivo' => $cfile,\n\t\t\t'termino' => $termino,\n\t\t\t'sistema' => $sistema,\n\t\t\t'tipoEstudiante' => $tipoEstudiante,\n\t\t\t'pregunta' => $pregunta\n\t\t); \n\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $target_url);\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/4.0 (compatible;)\"); \n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER,array('Content-Type: multipart/form-data'));\n\t\tcurl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); \n\t\tcurl_setopt($ch, CURLOPT_FORBID_REUSE, 1); \n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 0);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\n\t\t\n\t\t$resultadoExec = curl_exec ($ch);\n\t\t\n\t\tif ($resultadoExec === FALSE) {\n\t\t\t$response = \"Error sending\" . $fname . \" \" . curl_error($ch);\n\t\t\tcurl_close ($ch);\n\t\t}else{\n\t\t\tcurl_close ($ch);\n\t\t\t$response = \"Result: \" . $resultadoExec;\n\t\t}\n\t\t\n\t\treturn $response;\n\t}", "function _device_can_upload()\n {\n }", "function files_post() {\n if (empty($_FILES) || empty($_FILES['file']['tmp_name'])) {\n return json_result(array('message' => 'BAD_REQUEST'), 400);\n }\n $from = $_FILES['file']['tmp_name'];\n $uuid = hash_file('md5', $from); // use checksum as uuid\n if (data_exists('.files', $uuid)) {\n $meta = data_read('.files_meta', $uuid);\n return json_result(array(\"files\" => $meta, 'count' => 1, 'message' => 'RESOURCE_CREATED'), 201);\n //return json_result(array(\"files\" => data_read(\".files_meta\", $uuid), 'count' => 1, 'message' => 'RESOURCE_EXISTS'), 409);\n }\n $dir = $GLOBALS['SYSTEM']['data_base'] . '/.files/';\n if (!file_exists($dir)) {\n @mkdir($dir, 0750, true);\n }\n $meta = array(\n \"name\" => $_FILES['file']['name'],\n \"uuid\" => $uuid,\n \"type\" => $_FILES['file']['type'],\n );\n if (exif_imagetype($from) === IMAGETYPE_JPEG) {\n load_library(\"exif\", \"images\");\n $exif_data = exif_get($from);\n $meta = array_merge($meta, $exif_data);\n }\n if (exif_imagetype($from) !== false) {\n list($width, $height) = getimagesize($from);\n $meta['width'] = $width;\n $meta['height'] = $height;\n $meta['orientation'] = $width >= $height ? 'landscape' : 'portrait';\n $meta['aspect_ratio'] = $width / $height;\n }\n if (data_create('.files_meta', $uuid, $meta) && move_uploaded_file($from, $dir . $uuid) === true) {\n return json_result(array(\"files\" => $meta, 'count' => 1, 'message' => 'RESOURCE_CREATED'), 201);\n }\n return json_result(array('message' => 'RESOURCE_CREATE_FAILED'), 500);\n}", "function rest_put_data($url, $data)\n{\n if (is_array($data)) {\n $data = json_encode($data);\n }\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $result = curl_exec($ch);\n curl_close($ch);\n return $result;\n}", "function chargeAPI($api_url, $server_key, $request_body){\n $ch = curl_init();\n $curl_options = array(\n CURLOPT_URL => $api_url,\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_POST => 1,\n CURLOPT_HEADER => 0,\n // Tambahkan heder ke permintaan, termasuk Otorisasi yang dihasilkan dari kunci server\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json',\n 'Authorization: Basic ' . base64_encode($server_key . ':')\n ),\n CURLOPT_POSTFIELDS => $request_body\n );\n curl_setopt_array($ch, $curl_options);\n $result = array(\n 'body' => curl_exec($ch),\n 'http_code' => curl_getinfo($ch, CURLINFO_HTTP_CODE),\n );\n return $result;\n}", "public function upload()\n\t{\n\t}", "function humcore_check_dependencies() {\n\n\tif ( ! in_array( 'curl', get_loaded_extensions() ) ) {\n\t\ttrigger_error( __( 'cURL is not installed on your server. In order to make this plugin work, you need to install cURL on your server.', 'humcore_domain' ), E_USER_ERROR );\n\t}\n\n}", "function run_curl($p_path) {\r\n\r\n global $CURL_OPTIONS;\r\n\r\n $tp_result = array();\r\n $tp_curl = curl_init($p_path);\r\n curl_setopt_array($tp_curl, $CURL_OPTIONS);\r\n $tp_result['content'] = curl_exec($tp_curl);\r\n $tp_result['code'] = curl_getinfo($tp_curl, CURLINFO_HTTP_CODE);\r\n curl_close($tp_curl);\r\n return $tp_result;\r\n\r\n}", "public function update_download_specs($post_id, $version, $changelog, $size, $requires)\n {\n if ($version)\n {\n $_POST['edd_sl_version'] = $version;\n update_post_meta($post_id, '_edd_sl_version', $_POST['edd_sl_version']);\n }\n if ($changelog)\n {\n $_POST['edd_sl_changelog'] = $changelog;\n // p_l($_POST['edd_sl_changelog']);\n update_post_meta($post_id, '_edd_sl_changelog', $_POST['edd_sl_changelog']);\n }\n if (class_exists('EDD_Software_Specs'))\n {\n $prefix = '_smartest_';\n $_POST[$prefix . 'lastupdate'] = defined('SCB_IN_API_HOOK') ? time() : date(\"m/d/Y\", time());\n\n update_post_meta($post_id, $prefix . 'lastupdate', $_POST[$prefix . 'lastupdate']);\n if ($version)\n {\n $_POST[$prefix . 'currentversion'] = $version;\n update_post_meta($post_id, $prefix . 'currentversion', $_POST[$prefix . 'currentversion']);\n }\n\n $_POST[$prefix . 'filetype'] = '.zip';\n update_post_meta($post_id, $prefix . 'filetype', $_POST[$prefix . 'filetype']);\n if ($size)\n {\n $_POST[$prefix . 'filesize'] = size_format($size);\n update_post_meta($post_id, $prefix . 'filesize', $_POST[$prefix . 'filesize']);\n }\n if ($requires)\n {\n $_POST[$prefix . 'requirements'] = 'WordPress ' . $requires;\n update_post_meta($post_id, $prefix . 'requirements', $_POST[$prefix . 'requirements']);\n }\n $_POST[$prefix . 'pricecurrency'] = 'USD';\n update_post_meta($post_id, $prefix . 'pricecurrency', $_POST[$prefix . 'pricecurrency']);\n\n }\n\n }", "function retrieve_remote_file_size_type($url,$token=NULL){\n $ch = curl_init($url);\n\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_HEADER, TRUE);\n curl_setopt($ch, CURLOPT_NOBODY, TRUE);\n if(!empty($token)){\n curl_setopt($ch,CURLOPT_HTTPHEADER,array('Authorization: Bearer '.$token));\n }\n\n $data = curl_exec($ch);\n $size = curl_getinfo($ch, CURLINFO_CONTENT_LENGTH_DOWNLOAD);\n\t $type = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);\n\n curl_close($ch);\n\n\t $result =array(\"size\"=>$size,\"type\"=>$type);\n return $result;\n}", "function upload()\n\t{\t\t\n\t\t$rfc1867 = function_exists('apc_fetch') && ini_get('apc.rfc1867');\n\n\t\tif(!function_exists('json_encode')) \n\t\t{\n\t\t\tdie('{\"error\" : \"Image upload host does not have the required dependicies (json_encode/decode)\"}');\n\t\t}\n\n\t\t$id = $_POST['APC_UPLOAD_PROGRESS'];\n\t\tif(empty($id)) \n\t\t{\n\t\t\t$id = $_GET['id'];\n\t\t}\n\n\t\tif($_SERVER['REQUEST_METHOD']=='POST') \n\t\t{ \n\t\t\t// Upload is complete\n\t\t\tif(empty($id) || !is_numeric($id)) \n\t\t\t{\n\t\t\t\t$this->_nicupload_error('Invalid Upload ID');\n\t\t\t}\n\t\t\tif(!is_dir($this->nicupload_path) || !is_writable($this->nicupload_path)) \n\t\t\t{\n\t\t\t\t$this->_nicupload_error('Upload directory '.$this->nicupload_path.' must exist and have write permissions on the server');\n\t\t\t}\n\t\t\n\t\t\t$file = $_FILES['nicImage'];\n\t\t\t$image = $file['tmp_name'];\n\t\t\n\t\t\t$max_upload_size = $this->_ini_max_upload_size();\n\t\t\tif(!$file) \n\t\t\t{\n\t\t\t\t$this->_nicupload_error('Must be less than '.$this->_bytes_to_readable($max_upload_size));\n\t\t\t}\n\t\t\n\t\t\t$ext = strtolower(substr(strrchr($file['name'], '.'), 1));\n\t\t\t@$size = getimagesize($image);\n\t\t\tif(!$size || !in_array($ext, $this->nicupload_allowed_extensions)) \n\t\t\t{\n\t\t\t\t$this->_nicupload_error('Invalid image file, must be a valid image less than '.$this->_bytes_to_readable($max_upload_size));\n\t\t\t}\n\t\t\n\t\t\t$filename = $id.'.'.$ext;\n\t\t\t$path = $this->nicupload_path.'/'.$filename;\n\t\t\n\t\t\tif(!move_uploaded_file($image, $path)) \n\t\t\t{\n\t\t\t\t$this->_nicupload_error('Server error, failed to move file');\n\t\t\t}\n\t\t\n\t\t\tif($rfc1867) \n\t\t\t{\n\t\t\t\t$status = apc_fetch('upload_'.$id);\n\t\t\t}\n\t\t\tif(!$status)\n\t\t\t{\n\t\t\t\t$status = array();\n\t\t\t}\n\t\t\t$status['done'] = 1;\n\t\t\t$status['width'] = $size[0];\n\t\t\t$status['url'] = $this->_nicupload_file_uri($filename);\n\t\t\n\t\t\tif($rfc1867) \n\t\t\t{\n\t\t\t\tapc_store('upload_'.$id, $status);\n\t\t\t}\n\n\t\t\t$this->_nicupload_output($status, $rfc1867);\n\t\t\texit;\n\t\t} \n\t\telse if(isset($_GET['check'])) \n\t\t{ \n\t\t\t// Upload progress check\n\t\t\t$check = $_GET['check'];\n\t\t\tif(!is_numeric($check)) \n\t\t\t{\n\t\t\t\t$this->_nicupload_error('Invalid upload progress id');\n\t\t\t}\n\t\t\n\t\t\tif($rfc1867) \n\t\t\t{\n\t\t\t\t$status = apc_fetch('upload_'.$check);\n\t\t\t\t\n\t\t\t\tif($status['total'] > 500000 && $status['current']/$status['total'] < 0.9 ) \n\t\t\t\t{ \n\t\t\t\t\t// Large file and we are < 90% complete\n\t\t\t\t\t$status['interval'] = 3000;\n\t\t\t\t} \n\t\t\t\telse if($status['total'] > 200000 && $status['current']/$status['total'] < 0.8 ) \n\t\t\t\t{ \n\t\t\t\t\t// Is this a largeish file and we are < 80% complete\n\t\t\t\t\t$status['interval'] = 2000;\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t$status['interval'] = 1000;\n\t\t\t\t}\n\t\t\t\t$this->_nicupload_output($status);\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\t$status = array();\n\t\t\t\t$status['noprogress'] = true;\n\t\t\t\tforeach($this->nicupload_allowed_extensions as $e) \n\t\t\t\t{\n\t\t\t\t if(file_exists($this->nicupload_path.'/'.$check.'.'.$e)) \n\t\t\t\t\t{\n\t\t\t\t $ext = $e;\n\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tif($ext) \n\t\t\t\t{\n\t\t\t\t $status['url'] = $this->_nicupload_file_uri($check.'.'.$ext);\n\t\t\t\t}\n\t\t\t\t$this->_nicupload_output($status);\n\t\t\t}\n\t\t}\n\t}", "function uploadFilePUT($dest)\n{\n\tif(!($putdata = fopen(\"php://input\", \"r\")))\n\t{\n\t\terror_log('Could not read Input data');\n\t}\n\n\t/* Open a file for writing */\n\tif(!($fp = fopen($dest, \"w\")))\n\t{\n\t\terror_log('Could not open output file: '.$dest);\n\t}\n\n\t/* Read the data 1 KB at a time and write to the file */\n\twhile ($data = fread($putdata, 1024))\n \t\tfwrite($fp, $data);\n\n\t/* Close the streams */\n\tfclose($fp);\n\tfclose($putdata);\n\n\treturn true;\n}", "function testSetUploadQuota()\n {\n $this->deleteLog($this->logfilename);\n $this->login();\n $query = $this->db->query(\"SELECT id FROM project WHERE name = 'EmailProjectExample'\");\n $projectid = $query[0]['id'];\n $content = $this->connect($this->url.'/createProject.php?projectid='.$projectid);\n\n if($content == false)\n {\n return;\n }\n\n // set the upload quota to 1 GB\n $this->setField('uploadQuota','1');\n $this->clickSubmitByName('Update');\n }", "function doUpload(&$drive_service, &$client, &$file, &$parentFolderID, &$configObj)\n{\n //Currently, resumable upload uses chunks of 1000 bytes \n $chunk_size = 1000; \n //doUpload with exponential backoff, five tries\n for ($n = 0; $n < 5; ++$n) \n {\n try \n {\n //Choose between media and resumable depending on file size \n if ($file->size > $chunk_size)\n {\n insertFileResumable($drive_service, &$client, getFileName($file->path), \"\", $parentFolderID, $file->type, $file->path, $configObj);\n }\n else\n {\n insertFileMedia($drive_service, getFileName($file->path), \"\", $parentFolderID, $file->type, $file->path, $configObj);\n }\n //If upload succeeded, return null\n return;\n } \n catch (Google_Exception $e) \n {\n if ($e->getCode() == 403 || $e->getCode() == 503) \n {\n $logline = date('Y-m-d H:i:s') . \" Error: \" . $e->getMessage() . \"\\n\"; \n $logline = $logline . date('Y-m-d H:i:s'). \"Retrying... \\n\";\n fwrite($configObj->logFile, $logline);\n // Apply exponential backoff.\n usleep((1 << $n) * 1000000 + rand(0, 1000000));\n }\n } \n catch (Exception $e)\n {\n $logline = date('Y-m-d H:i:s'). \": Unable to upload file.\\n\";\n $logline = $logline . \"Reason: \" . $e->getCode() . \" : \" . $e->getMessage() . \"\\n\";\n fwrite($configObj->logFile, $logline);\n //If upload failed because of unrecognized error, return the file\n return $file;\n }\n }\n //If upload failed, return the file\n return $file;\n}", "function testSubmitUploadXML()\n {\n $this->deleteLog($this->logfilename);\n $rep = dirname(__FILE__).\"/data/EmailProjectExample\";\n $file = \"$rep/1_upload.xml\";\n if(!$this->submission('EmailProjectExample',$file))\n {\n return;\n }\n if(!$this->checkLog($this->logfilename))\n {\n return;\n }\n $this->pass(\"Submission of $file has succeeded\");\n }", "function makeRequest($url) {\n\n //Tell cURL to make the request using the brower's user-agent if there is one, or a fallback user-agent otherwise.\n $user_agent = $_SERVER[\"HTTP_USER_AGENT\"];\n if (empty($user_agent)) {\n $user_agent = \"Mozilla/5.0 (compatible; melbin.in/proxy)\";\n }\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);\n\n //Proxy the browser's request headers.\n $browserRequestHeaders = getallheaders();\n \n //rewrite req headers and content length\n unset($browserRequestHeaders[\"Host\"]);\n unset($browserRequestHeaders[\"Content-Length\"]);\n \n //Remove the browser's Accept-Encoding header if any;\n //let cURL make the request using gzip if possible.\n unset($browserRequestHeaders[\"Accept-Encoding\"]);\n curl_setopt($ch, CURLOPT_ENCODING, \"\");\n //Transform the associative array from getallheaders() into an\n //indexed array of header strings to be passed to cURL.\n $curlRequestHeaders = array();\n foreach ($browserRequestHeaders as $name => $value) {\n $curlRequestHeaders[] = $name . \": \" . $value;\n }\n curl_setopt($ch, CURLOPT_HTTPHEADER, $curlRequestHeaders);\n\n //Proxy any received GET/POST/PUT data.\n switch ($_SERVER[\"REQUEST_METHOD\"]) {\n case \"GET\":\n $getData = array();\n foreach ($_GET as $key => $value) {\n $getData[] = urlencode($key) . \"=\" . urlencode($value);\n }\n if (count($getData) > 0) {\n //Remove any GET data from the URL, and re-add what was read.\n //It reads, strips, then re-adds all GET data; this may be a no-op.\n $url = substr($url, 0, strrpos($url, \"?\"));\n $url .= \"?\" . implode(\"&\", $getData);\n }\n break;\n case \"POST\":\n curl_setopt($ch, CURLOPT_POST, true);\n \n curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents(\"php://input\"));\n break;\n case \"PUT\":\n curl_setopt($ch, CURLOPT_PUT, true);\n curl_setopt($ch, CURLOPT_INFILE, fopen(\"php://input\"));\n break;\n }\n\n //Other cURL options.\n curl_setopt($ch, CURLOPT_HEADER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt ($ch, CURLOPT_FAILONERROR, true);\n\n //Set the request URL.\n curl_setopt($ch, CURLOPT_URL, $url);\n\n //Make the request.\n $response = curl_exec($ch);\n $responseInfo = curl_getinfo($ch);\n $headerSize = curl_getinfo($ch, CURLINFO_HEADER_SIZE);\n curl_close($ch);\n\n //Setting CURLOPT_HEADER to true above forces the response headers and body\n //to be output together--separate them.\n $responseHeaders = substr($response, 0, $headerSize);\n $responseBody = substr($response, $headerSize);\n\n return array(\"headers\" => $responseHeaders, \"body\" => $responseBody, \"responseInfo\" => $responseInfo);\n}", "function _vip_contrib_add_upload_cap() {\n\tif ( ! is_admin() && ! defined( 'XMLRPC_REQUEST' ) )\n\t\treturn;\n\n\twpcom_vip_add_role_caps( 'contributor', array( 'upload_files' ) );\n}", "private function submitRequest($url, $data) { \n\t\t$accessToken = $this->getAccessToken();\n\t\tif($accessToken == '' || $accessToken == FALSE) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$curl = curl_init();\n\t\tcurl_setopt($curl, CURLOPT_URL, $url);\n\t\tcurl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Authorization: Bearer '.$accessToken));\n\n\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($curl, CURLOPT_POST, true);\n\t\tcurl_setopt($curl, CURLOPT_POSTFIELDS, $data);\n\n\t\t$response = curl_exec($curl);\n\t\tcurl_close($curl);\n\n\t\treturn $response;\n\t}", "public function _curl_c($url,$postFields=NULL)\n {\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_HEADER, false);\n\n if ($postFields!==NULL){\n if (is_array($postFields)){\n $postStr = json_encode($postFields);\n curl_setopt($ch,CURLOPT_POSTFIELDS,$postStr);\n }\n if (is_string($postFields)){\n curl_setopt($ch,CURLOPT_POSTFIELDS,$postFields);\n }\n }\n $result = curl_exec($ch);\n \n \n if (curl_errno($ch)){\n \t\n $errNo = curl_errno($ch);\n curl_close($ch);\n return $this->resultStatus(false,curl_strerror($errNo));\n }else{\n \tcurl_close($ch);\n return $this->resultStatus(true,json_decode($result,true));\n }\n }", "function uploadBeltBuckleSiteHostedPicturesRequest()\n{\n\t// so that subsequent calls to this function itterate through them to upload their images.\n\tif(isset($_GET['firstCall']) && strcmp($_GET['firstCall'], \"true\") == 0)\n\t{\n\t\t// Use this on mySqlFront to determine missing clans:\n\t\t// SELECT * FROM clan WHERE active = '1' AND Id NOT IN (SELECT clan_id FROM clan_no_stone_images);\n\t\t// Execute query, populate php array & pass to session.\n\t\t$query = \"SELECT * FROM clan WHERE active = 1;\";\n\t\t// $query = \"SELECT * FROM clan WHERE Id > 310 AND active = 1;\";\n\t\t// use this for any image uploads that failed.\n\t\t// $query = \"SELECT * FROM clan WHERE Id = 7 OR Id = 78 OR Id = 119 OR Id = 136 OR Id = 145 OR Id = 149 OR Id = 150 OR Id = 167 OR Id = 174 OR Id = 208 OR Id = 254 OR Id = 274 OR Id = 311 AND active = 1;\";\n\t\t// $query = \"SELECT * FROM clan WHERE Id = 150 AND active = 1;\";\n\t\t// $query = \"SELECT * FROM clan WHERE active = 4;\";\n\t\t$result = @mysql_query($query); // Run the query.\n\t\tif($result)\n\t\t{\n\t\t\twhile($row = mysql_fetch_array($result, MYSQL_ASSOC))\n\t\t\t{\n\t\t\t\t$clanIdArray[] = $row['Id'];\n\t\t\t\t$clanNameArray[] = $row['name'];\n\t\t\t\t// $clanId = $row['Id'];\n\t\t\t}\n\t\t}\n\t\t// Now that the array has been constructed, assign to session variable.\n\t\t$_SESSION['clanIdArray'] = $clanIdArray;\n\t\t$_SESSION['clanNameArray'] = $clanNameArray;\n\t\t$_SESSION['test'] = \"test\";\n\t\techo sizeof($clanIdArray);\n\t}\n\telseif(isset($_GET['position']))\n\t{\n\t\t// subsequent calls to invoke uploadSiteHostedPicturesRequest eBay API based on array index position.\n\t\t$position = $_GET['position'];\n\t\t$clanIdArray = $_SESSION['clanIdArray'];\n\t\t$clanNameArray = $_SESSION['clanNameArray'];\n\t\t$clanId = $clanIdArray[$position];\n\t\t$clanName = $clanNameArray[$position];\n\t\t\n\t\t// Make the API call.\n\t\tglobal $responseXmlUploadSiteHostedPicturesRequest;\n\t\terror_reporting(E_ALL); // Turn on all errors, warnings, and notices for easier debugging.\n\t\t// API request variables.\n\t\t// sandbox\n\t\t// $endpoint = 'https://api.sandbox.ebay.com/ws/api.dll'; // URL to call.\n\t\t\n\t\t// production\n\t\t$endpoint = 'https://api.ebay.com/ws/api.dll'; // URL to call.\n\t\t\n\t\t// Load the call and capture the response returned by the eBay API\n\t\t// The constructCallAndGetResponseNoStonesUploadSiteHostedPicturesRequest function is defined below.\n\t\t$resp = simplexml_load_string(constructCallAndGetResponseBeltBuckleUploadSiteHostedPicturesRequest($endpoint, $clanId, $clanName));\n\t\t\n\t\t// We can now do stuff with the reponse onject like parse it etc...\n\t\tif ($resp->Ack == \"Success\") {\n\t\t\t\n\t\t\t$result = \"<pre>\" . htmlentities($responseXmlUploadSiteHostedPicturesRequest) . \"</pre>\";\n\t\t\t$timeStamp = $resp->Timestamp;\n\t\t\t$build = $resp->Build;\n\t\t\t$version = $resp->Version;\n\t\t\t$pictureSystemVersion = $resp->PictureSystemVersion;\n\t\t\t\n\t\t\t$pictureName = $resp->SiteHostedPictureDetails->PictureName;\n\t\t\t$pictureSet = $resp->SiteHostedPictureDetails->PictureSet;\n\t\t\t$pictureFormat = $resp->SiteHostedPictureDetails->PictureFormat;\n\t\t\t$fullURL = $resp->SiteHostedPictureDetails->FullURL;\n\t\t\t$baseURL = $resp->SiteHostedPictureDetails->BaseURL;\n\t\t\t$externalPictureURL = $resp->SiteHostedPictureDetails->ExternalPictureURL;\n\t\t\t$useByDate = $resp->SiteHostedPictureDetails->UseByDate;\n\t\t\t\n\t\t\t// Insert record into clan_images table.\n\t\t\t$query = \"INSERT INTO clan_belt_buckle_images(Id, clan_id, ack, time_stamp, build, version, \npicture_system_version, return_xml, picture_name, picture_set, picture_format, \nfull_url, base_url, external_picture_url, use_by_date, date_time) VALUES(\n'', $clanId, '$resp->Ack', '$timeStamp', '$build', '$version', '$pictureSystemVersion', '$result', '$pictureName', '$pictureSet', \n'$pictureFormat', '$fullURL', '$baseURL', '$externalPictureURL', '$useByDate', NOW());\";\n\t\t\t$resultDB = @mysql_query($query); // Run the query.\n\t\t\tif($resultDB)\n\t\t\t{\n\t\t\t\t// Insert successfull.\n\t\t\t\t$int_id = mysql_insert_id();\n\n\t\t\t\t\n\t\t\t\tforeach($resp->SiteHostedPictureDetails->PictureSetMember as $PictureSetMember) {\n\t\t\t\t\t$MemberURL = $PictureSetMember->MemberURL;\n\t\t\t\t\t$PictureHeight = $PictureSetMember->PictureHeight;\n\t\t\t\t\t$PictureWidth = $PictureSetMember->PictureWidth;\n\t\t\t\t\t\n\n\t\t\t\t\t$query2 = \"INSERT INTO clan_belt_buckle_images_members(Id, clan_images, member_url, picture_height, picture_width, date_time) \n\tVALUES('', $int_id, '$MemberURL', $PictureHeight, $PictureWidth, NOW());\";\n\t\t\t\t\t$resultDB2 = @mysql_query($query2); // Run the query.\n\t\t\t\t\tif($resultDB2)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Insert successfull.\n\t\t\t\t\t\t$int_id2 = mysql_insert_id();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\techo \"Success - $int_id\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo \"Fail\";\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t$result = \"<pre>\" . htmlentities($responseXmlUploadSiteHostedPicturesRequest) . \"</pre>\";\n\t\t\t$result .= \"<p>Sorry, there was a problem with the request</p>\" . $resp->Ack;\n\t\t\techo $result;\n\t\t}\n\t}\n}", "function updateCurl($url,$method){\r\n \r\n $curl = curl_init();\r\n // Set some options - we are passing in a useragent too here\r\n curl_setopt_array($curl, array(\r\n CURLOPT_RETURNTRANSFER => 1,\r\n CURLOPT_URL => $url,\r\n CURLOPT_USERAGENT => 'Codular Sample cURL Request'\r\n ));\r\n // Send the request & save response to $resp\r\n $resp = curl_exec($curl);\r\n // Close request to clear up some resources\r\n curl_close($curl);\r\n return $resp;\r\n \r\n \r\n}", "protected function curl_put($uri, $fp,$access_token) {\n\n\t $output = \"\";\n\n\t try {\n\n\t \t$pointer = fopen($fp, 'r+');\n\n\t \t$stat = fstat($pointer);\n\n\t \t$pointersize = $stat['size'];\n\n\t\t$ch = curl_init($uri);\n\n\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');\n\n\t\tcurl_setopt($ch, CURLOPT_PUT, true);\n\n\t\tcurl_setopt($ch, CURLOPT_INFILE, $pointer);\n\n\t\tcurl_setopt($ch, CURLOPT_INFILESIZE, (int)$pointersize);\n\n\t\t//curl_setopt($ch, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer '.$access_token));\n\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 60);\n\n\t\tcurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);\n\n\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\n\t\tcurl_setopt($ch, CURLOPT_FRESH_CONNECT, TRUE);\n\n\t\t\n\n\t\t//HTTP response code 100 workaround\n\n\t\t//see http://www.php.net/manual/en/function.curl-setopt.php#82418\n\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));\t\t\t\n\n\t\t\n\n\t\t$output = curl_exec($ch);\n\n\t\t$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n\n\t } catch (Exception $e) {\n\n\t }\n\n\t \tif ($httpcode == \"200\" || $httpcode == \"201\") {\n\n\t \t\treturn json_decode($output, true);\n\n\t \t} else {\n\n\t \t\treturn array('error' => 'HTTP status code not expected - got ', 'description' => $httpcode);\n\n\t \t}\n\n\t\t\n\n\t}", "public function testCurlAction()\n {\n \t$username = '[email protected]';\n \t$password = 'strip0';\n \n \t$payloadName = array('ddd' => 'ddd');\n \n \t$path_to_log_file = APPLICATION_PATH . \"/../corn/provision.zip\";\n \n \t// $file_name_with_full_path = '';\n \n \t$post['provisions'] = '@'.$path_to_log_file;\n \n \n \t$process = curl_init('http://api.nexva.com/metaflow/submit');\n \t//curl_setopt($process, CURLOPT_HTTPHEADER, array('Content-Type: application/xml', $additionalHeaders));\n \t// curl_setopt($process, CURLOPT_HEADER, 1);\n \tcurl_setopt($process, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n \tcurl_setopt($process, CURLOPT_USERPWD, $username . \":\" . $password);\n \tcurl_setopt($process, CURLOPT_TIMEOUT, 30);\n \tcurl_setopt($process, CURLOPT_POST, 1);\n \tcurl_setopt($process, CURLOPT_POSTFIELDS, $post);\n \tcurl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);\n \t$return = curl_exec($process);\n \n \n \tZend_Debug::dump( $return );\n \tdie();\n \n \n \t$request_xml = null;\n \n \t$ch = curl_init();\n \tcurl_setopt($ch, CURLOPT_URL, 'http://api.nexva.com/metaflow/submit ');\n \tcurl_setopt($ch, CURLOPT_USERPWD, $username.':'.$password);\n \tcurl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);\n \tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n \tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n \tcurl_setopt($ch, CURLOPT_TIMEOUT, 4);\n \tcurl_setopt($ch, CURLOPT_POSTFIELDS, $request_xml);\n \t// curl_setopt($ch, CURLOPT_HTTPHEADER, array('Connection: close'));\n \n \t//Execute the request and also time the transaction ( optional )\n \t$start = array_sum(explode(' ', microtime()));\n \t$result = curl_exec($ch);\n \t$stop = array_sum(explode(' ', microtime()));\n \t$totalTime = $stop - $start;\n \n \t//Check for errors ( again optional )\n \tif ( curl_errno($ch) ) {\n \t\t$result = 'ERROR -> ' . curl_errno($ch) . ': ' . curl_error($ch);\n \t} else {\n \t\t$returnCode = (int)curl_getinfo($ch, CURLINFO_HTTP_CODE);\n \t\tswitch($returnCode){\n \t\t\tcase 200:\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\t$result = 'HTTP ERROR -> ' . $returnCode;\n \t\t\t\tbreak;\n \t\t}\n \t}\n \n \t//Close the handle\n \tcurl_close($ch);\n \n \t//Output the results and time\n \techo 'Total time for request: ' . $totalTime . \"\\n\";\n \techo $result;\n \n \n }", "function uploadFilePUT($dest)\n{\n\tif(!($putdata = fopen(\"php://input\", \"r\")))\n\t{\n\t\terrorlog_withlevel('Could not read Input data',1);\n\t}\n\n\t/* Open a file for writing */\n\tif(!($fp = fopen($dest, \"w\")))\n\t{\n\t\terrorlog_withlevel('Could not open output file: '.$dest,2);\n\t}\n\n\t/* Read the data 1 KB at a time and write to the file */\n\twhile ($data = fread($putdata, 1024))\n \t\tfwrite($fp, $data);\n\n\t/* Close the streams */\n\tfclose($fp);\n\tfclose($putdata);\n\n\treturn true;\n}", "public function request_url(&$url)\n\t{\n\t\t// you will need this URL to set up a webhook on Draft settings page //adamcarlstenblog in sha1\n\t\tif ('055d36c7df7e62b5397deeea0f3661c086983bb2' == $url) {\n\t\t\t// getting the payload, decoding it and saving to file system inside content dir\n\t\t\tif ($_POST['payload']) {\n\t\t\t\t// we have a request from Draft, let's save it to file\n\t\t\t\t$payload = json_decode($_POST['payload']);\n\t\t\t\t$fileName = strtolower($payload->name) . CONTENT_EXT;\n\t\t\t\t@file_put_contents(CONTENT_DIR . $fileName, $payload->content);\n\t\t\t}\n\t\t\texit; // stop everything!\n\t\t}\n\t}", "function tincanlaunch_send_api_request($auth, $method, $url) {\n $options = func_num_args() === 4 ? func_get_arg(3) : array();\n\n if (!isset($options['contentType'])) {\n $options['contentType'] = 'application/json';\n }\n\n $http = array(\n // We don't expect redirects.\n 'max_redirects' => 0,\n // This is here for some proxy handling.\n 'request_fulluri' => 1,\n // Switching this to false causes non-2xx/3xx status codes to throw exceptions.\n // but we need to handle the \"error\" status codes ourselves in some cases.\n 'ignore_errors' => true,\n 'method' => $method,\n 'header' => array()\n );\n\n array_push($http['header'], 'Authorization: ' . $auth);\n\n if (($method === 'PUT' || $method === 'POST') && isset($options['content'])) {\n $http['content'] = $options['content'];\n array_push($http['header'], 'Content-length: ' . strlen($options['content']));\n array_push($http['header'], 'Content-Type: ' . $options['contentType']);\n }\n\n $context = stream_context_create(array('http' => $http));\n $fp = fopen($url, 'rb', false, $context);\n if (!$fp) {\n return array(\n \"metadata\" => null,\n \"content\" => null,\n \"status\" => 0\n );\n }\n $metadata = stream_get_meta_data($fp);\n $content = stream_get_contents($fp);\n $responsecode = (int) explode(' ', $metadata[\"wrapper_data\"][0])[1];\n\n fclose($fp);\n\n if ($options['contentType'] == 'application/json') {\n $content = json_decode($content);\n }\n\n return array(\n \"metadata\" => $metadata,\n \"content\" => $content,\n \"status\" => $responsecode\n );\n}", "private static function execCurl($full_url, $type,\n $headers, $post_data = null) {\n $curl_request = self::getCurlRequestType($type);\n\n if ($post_data !== null) {\n if ($type !== 'POST') {\n throw new Exception('Cannot post field data with non-POST request!');\n }\n }\n\n $session = curl_init($full_url);\n curl_setopt($session, CURLOPT_SSL_VERIFYPEER, true);\n curl_setopt($session, CURLOPT_SSL_VERIFYHOST, 2);\n curl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($session, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($session, $curl_request, true);\n if ($post_data !== null) {\n curl_setopt($session, CURLOPT_POSTFIELDS, $post_data);\n }\n\n // Do it\n $server_output = curl_exec($session);\n curl_close($session);\n\n if ($server_output === false) {\n throw new Exception(\"Couldn't make cURL request!\");\n }\n\n return $server_output;\n }", "public function actionVerificationUpload()\n {\n try {\n $types = isset($this->params['types']) ? explode(',', $this->params['types']) : [];\n $comments = isset($this->params['mandatorycomments']) ? explode(',', $this->params['mandatorycomments']) : [];\n $commentLabel = isset($this->params['commentlabel']) ? $this->params['commentlabel'] : '';\n $btnLabel = isset($this->params['uploadbuttonlabel']) ? $this->params['uploadbuttonlabel'] : 'Upload';\n $anotherBtnLabel = isset($this->params['uploadanotherbuttonlabel']) ? $this->params['uploadanotherbuttonlabel'] : 'Upload another document';\n\n $allTypes = Verification_Upload::getCategoriesTypesList();\n // excludes unavailable types\n $filteredTypes = [];\n foreach ($types as $typeId) {\n if (isset($allTypes[$typeId])) {\n $filteredTypes[$typeId] = $allTypes[$typeId];\n }\n }\n // excludes unavailable comments by types\n $filteredComments = array_intersect($comments, array_keys($allTypes));\n\n $secureParams = json_encode(\n [\n 'types' => $filteredTypes,\n 'mandatorycomments' => $filteredComments,\n 'microtime' => microtime(true),\n ]\n );\n $security = new Security();\n $signature = $security->getSignature($secureParams);\n\n $result = [\n 'success' => false,\n 'errors' => [],\n ];\n $messageBlock = '';\n\n $traderId = \\TSInit::$app->trader->get('crmId', 0);\n\n if (\\TSInit::$app->request->isPost) {\n $csrfData = base64_decode(\\TSInit::$app->request->post('csrf'));\n if ($security->getSignature($csrfData) !== \\TSInit::$app->request->post('signature')) {\n $result['errors'][] = 'Signature is wrong!';\n die(json_encode($result));\n }\n $data = json_decode($csrfData, true);\n $model = new Verification_Upload($traderId, $data['types'], $data['mandatorycomments']);\n\n $model->file = Upload_File::getInstance('file');\n $model->setCategoryTypeId(\\TSInit::$app->request->post('categoryTypeId', 0));\n $model->comment = esc_html(\\TSInit::$app->request->post('comment', ''));\n if ($model->validate()) {\n $result = $model->save();\n } else {\n $result['errors'] += $model->getErrors('file');\n $result['errors'] += $model->getErrors('categoryTypeId');\n $result['errors'] += $model->getErrors('comment');\n }\n\n if (\\TSInit::$app->request->isAjax) {\n $response = [\n 'isSuccess' => $result['success'],\n 'validationErrors' => $result['errors'],\n ];\n die(json_encode($response));\n }\n\n if ($result['errors']) {\n $this->_setVar('modalVerificationUploadModel', new Verification_Upload($traderId));\n $messageBlock .= \\tradersoft\\View::load('modal/varification-upload-error', ['messages' => $result['errors']]);\n } elseif ($result['success']) {\n $this->_setVar('modalVerificationUploadModel', new Verification_Upload($traderId));\n $messageBlock .= \\tradersoft\\View::load('modal/varification-upload-success');\n }\n }\n\n $verificationUploadModel = new Verification_Upload($traderId);\n $uploadFileDetails = $verificationUploadModel->getUploadFileDetails();\n\n $this->_setVar('csrf', base64_encode($secureParams));\n $this->_setVar('signature', $signature);\n $this->_setVar('types', $filteredTypes);\n $this->_setVar('mandatorycomments', $filteredComments);\n $this->_setVar('commentlabel', $commentLabel);\n $this->_setVar('uploadbuttonlabel', $btnLabel);\n $this->_setVar('uploadanotherbuttonlabel', $anotherBtnLabel);\n $this->_setVar('verificationUploadModel', $verificationUploadModel);\n $this->_setVar('maxUploadFileSize', Config::get('verification_upload.img-validation.size.max'));\n $this->_setVar('messageBlock', $messageBlock);\n $this->_setVar('canUploadDocuments', Arr::get($uploadFileDetails, 'canUploadDocuments', true));\n $this->_setVar('forbidUploadDocumentsReason', Arr::get($uploadFileDetails, 'forbidUploadDocumentsReason', ''));\n } catch (\\Exception $e) {\n wp_die($e->getMessage());\n }\n }", "function send_request($http_method, $url, $auth_header=null, $postData=null) {\n $curl = curl_init($url);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($curl, CURLOPT_FAILONERROR, false);\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\n\n switch($http_method) {\n case 'GET':\n if ($auth_header) {\n curl_setopt($curl, CURLOPT_HTTPHEADER, array($auth_header)); \n }\n break;\n case 'POST':\n curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/atom+xml', \n $auth_header)); \n curl_setopt($curl, CURLOPT_POST, 1); \n curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);\n break;\n case 'PUT':\n curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/atom+xml', \n $auth_header)); \n curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $http_method);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);\n break;\n case 'DELETE':\n curl_setopt($curl, CURLOPT_HTTPHEADER, array($auth_header)); \n curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $http_method); \n break;\n }\n $response = curl_exec($curl);\n if (!$response) {\n $response = curl_error($curl);\n }\n curl_close($curl);\n return $response;\n}", "function github_request($url)\r\n{\r\n $ch = curl_init();\r\n\r\n $access = 'username:db1ff77b2eb06b3aa967e28f1943193ac831f064';\r\n\r\n curl_setopt($ch, CURLOPT_URL, $url);\r\n //curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/xml'));\r\n curl_setopt($ch, CURLOPT_USERAGENT, 'Agent smith');\r\n curl_setopt($ch, CURLOPT_HEADER, 0);\r\n curl_setopt($ch, CURLOPT_USERPWD, $access);\r\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\r\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\r\n $output = curl_exec($ch);\r\n curl_close($ch);\r\n $result = json_decode(trim($output), true);\r\n return $result;\r\n}", "public function testAddPackingPlanFileByURL()\n {\n }", "public function execute(Carerix_Api_Rest_Request $request)\n {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $request->getUrl());\n // This constant is not available when open_basedir or safe_mode are enabled.\n// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n // [AY] CURLOPT_VERBOSE, CURLOPT_HEADER required for capturing response headers\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_HEADER, 1);\n curl_setopt($ch, CURLINFO_HEADER_OUT, 1); // [AY] required for capturing request headers\n curl_setopt($ch, CURLOPT_HTTPHEADER, ['Expect:']);\n curl_setopt($ch, CURLOPT_USERAGENT, __CLASS__);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\n $proxy = $request->getProxy();\n if ($proxy) {\n $proxy = parse_url($proxy);\n curl_setopt($ch, CURLOPT_PROXY, $proxy['host']);\n if (array_key_exists('port', $proxy)) {\n curl_setopt($ch, CURLOPT_PROXYPORT, $proxy['port']);\n }\n }\n\n $username = $request->getUsername();\n $password = $request->getPassword();\n\n if ($username && $password) {\n curl_setopt($ch, CURLOPT_USERPWD, $username . ':' . $password);\n }\n\n switch ($request->getMethod()) {\n case self::POST:\n case self::PUT:\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $request->getMethod());\n switch ($request->getResponseType()) {\n case 'xml':\n $contentType = 'application/xml';\n break;\n\n case 'json':\n $contentType = 'application/json';\n break;\n\n case 'sencha':\n case 'js':\n $contentType = 'application/javascript';\n break;\n }\n curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: ' . $contentType]);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $request->getBody());\n break;\n case self::DELETE:\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');\n break;\n case self::GET:\n default:\n break;\n }\n\n $response = curl_exec($ch);\n\n $this->last_request = curl_getinfo($ch, CURLINFO_HEADER_OUT);\n $this->last_request .= $request->getBody();\n // [AY] in case of 204 No content response response is always empty\n if ($response === false) {\n $errorNumber = curl_errno($ch);\n $error = curl_error($ch);\n curl_close($ch);\n\n throw new Exception($errorNumber . ': ' . $error);\n }\n\n $response = $this->parseResponse($response);\n $this->last_response = $response;\n\n [$header, $body] = explode(\"\\r\\n\\r\\n\", $response, 2);\n\n $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n if (!in_array($code, ['200', '201', '204'])) {\n throw new Carerix_Api_Rest_Exception($body, $code);\n }\n curl_close($ch);\n\n return $body;\n }", "public function upload($fileName, $cod_doc, $cod_stud, $cod_mat)\n {\n $http_server = \"http://unimolshare.altervista.org\";\n $ftp_server = \"ftp.unimolshare.altervista.org\";\n $ftp_username = \"unimolshare\";\n $ftp_password = \"FAq3EG9G3ufj\";\n //Indirizzi\n $ftpFolder = \"/file/documents/\";\n $localFolder = \"../FILETMP/\";\n $response = \"\";\n //$linkFtp = 'ftp://' . $ftp_username . ':' . $ftp_password . '@' . $ftp_server . $ftpFolder . $fileName;\n $linkHttp = $http_server . $ftp_username . ':' . $ftp_password . '@' . $ftp_server . $ftpFolder . $fileName;\n\n $ch = curl_init();\n $localfile = $localFolder . $fileName;\n $fp = fopen($localfile, 'r');\n curl_setopt($ch, CURLOPT_URL, $linkHttp);\n curl_setopt($ch, CURLOPT_UPLOAD, 1);\n curl_setopt($ch, CURLOPT_INFILE, $fp);\n curl_setopt($ch, CURLOPT_INFILESIZE, filesize($localfile));\n curl_exec($ch);\n $error = curl_error($ch);\n $error_no = curl_errno($ch);\n curl_close($ch);\n if ($error_no == 0) {\n\n $link = $http_server . $ftpFolder . $fileName . \".pdf\";\n //Aggiorno il link nel db tramite servizio REST\n $urlRest = 'http://unimolshare.altervista.org/logic/UnimolShare/public/index.php/caricadocumento';\n if ($cod_doc !== \"\") {\n $data = array(\n 'titolo' => $fileName,\n 'codice_docente' => $cod_doc,\n 'codice_materia' => $cod_mat,\n 'link' => $link\n );\n } else {\n $data = array(\n 'titolo' => $fileName,\n 'codice_studente' => $cod_stud,\n 'codice_materia' => $cod_mat,\n 'link' => $link\n );\n }\n\n $options = array(\n 'http' => array(\n 'method' => 'POST',\n 'header' => \"Content-type: application/x-www-form-urlencoded\\r\\n\",\n 'content' => http_build_query($data)\n )\n );\n $context = stream_context_create($options);\n $response = file_get_contents($urlRest, false, $context);\n\n if ((json_decode($response))->{'error'}) {\n $response = \"Si è verificato un errore durante l'aggiornamento del DB!\";\n } else {\n $response = (json_decode($response))->{'message'};\n }\n\n } else {\n $response = 'Errore durantante il caricamento del file: '.$error;\n }\n\n return $response;\n }", "private function setPostFields(CurlHandle $curlHandle, HttpClientRequestInterface $request): void\n {\n $rawContent = $request->getRawContent();\n if ($rawContent !== '') {\n curl_setopt($curlHandle, CURLOPT_POSTFIELDS, $rawContent);\n\n return;\n }\n\n $postFields = [];\n $hasFiles = false;\n\n foreach ($request->getFiles() as $name => $filePath) {\n /** @var FilePathInterface $filePath */\n $curlFile = curl_file_create($filePath->__toString(), mime_content_type($filePath->__toString()), $filePath->getFilename());\n $postFields[$name] = $curlFile;\n $hasFiles = true;\n }\n\n foreach ($request->getPostFields() as $name => $value) {\n $postFields[$name] = $value;\n }\n\n if (count($postFields) !== 0) {\n curl_setopt($curlHandle, CURLOPT_POSTFIELDS, $hasFiles ? $postFields : http_build_query($postFields));\n }\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.50984204", "0.50922", "0.50744724", "0.5066496", "0.50612485", "0.5057971", "0.50513864", "0.5042477", "0.5037266", "0.5028958", "0.50247294", "0.50131786", "0.5010792", "0.5005586", "0.49981153", "0.49949566", "0.49922568", "0.4982227", "0.4978219", "0.49779016", "0.4965411", "0.49557608", "0.4954338", "0.49393243", "0.4929097", "0.4921338", "0.4914234", "0.49038243", "0.48882586", "0.48854402", "0.4883189", "0.4871051", "0.48694375", "0.4867173", "0.48577154", "0.48523954", "0.48487264", "0.48480004", "0.48455086", "0.48443082", "0.48436543", "0.48421016", "0.4841645", "0.48397458", "0.48385608", "0.48338893", "0.48296645", "0.48187876", "0.48184597", "0.4818447", "0.4808835", "0.47951025", "0.47941092", "0.4794074", "0.4791383", "0.47901484", "0.47899488", "0.47869748", "0.47834557", "0.47819316", "0.47795373", "0.4773526", "0.47712785", "0.47694075", "0.47684377", "0.47675544", "0.47651583", "0.47640556", "0.4762176", "0.47597262" ]
0.65039
0
Upload requirements on with PHP sockets
public static function uploadWithSocket(array $requirements, $syncToken);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function uploadtoserver() {\r\n $targetDir = $_SERVER['DOCUMENT_ROOT'] . '/uploads/items/';\r\n\r\n //$cleanupTargetDir = false; // Remove old files\r\n //$maxFileAge = 60 * 60; // Temp file age in seconds\r\n // 5 minutes execution time\r\n @set_time_limit(5 * 60);\r\n\r\n // Uncomment this one to fake upload time\r\n // usleep(5000);\r\n // Get parameters\r\n $chunk = isset($_REQUEST[\"chunk\"]) ? $_REQUEST[\"chunk\"] : 0;\r\n $chunks = isset($_REQUEST[\"chunks\"]) ? $_REQUEST[\"chunks\"] : 0;\r\n $fileName = isset($_REQUEST[\"name\"]) ? $_REQUEST[\"name\"] : '';\r\n // Clean the fileName for security reasons\r\n $fileName = preg_replace('/[^\\w\\._]+/', '', $fileName);\r\n\r\n // Make sure the fileName is unique but only if chunking is disabled\r\n if ($chunks < 2 && file_exists($targetDir . DIRECTORY_SEPARATOR . $fileName)) {\r\n unlink($targetDir . DIRECTORY_SEPARATOR . $fileName);\r\n /*$ext = strrpos($fileName, '.');\r\n $fileName_a = substr($fileName, 0, $ext);\r\n $fileName_b = substr($fileName, $ext);\r\n\r\n $count = 1;\r\n while (file_exists($targetDir . DIRECTORY_SEPARATOR . $fileName_a . '_' . $count . $fileName_b))\r\n $count++;\r\n\r\n $fileName = $fileName_a . '_' . $count . $fileName_b;*/\r\n }\r\n\r\n // Create target dir\r\n if (!file_exists($targetDir))\r\n @mkdir($targetDir);\r\n\r\n if (isset($_SERVER[\"HTTP_CONTENT_TYPE\"]))\r\n $contentType = $_SERVER[\"HTTP_CONTENT_TYPE\"];\r\n\r\n if (isset($_SERVER[\"CONTENT_TYPE\"]))\r\n $contentType = $_SERVER[\"CONTENT_TYPE\"];\r\n\r\n // Handle non multipart uploads older WebKit versions didn't support multipart in HTML5\r\n if (strpos($contentType, \"multipart\") !== false) {\r\n if (isset($_FILES['file']['tmp_name']) && is_uploaded_file($_FILES['file']['tmp_name'])) {\r\n // Open temp file\r\n $out = fopen($targetDir . DIRECTORY_SEPARATOR . $fileName, $chunk == 0 ? \"wb\" : \"ab\");\r\n if ($out) {\r\n // Read binary input stream and append it to temp file\r\n $in = fopen($_FILES['file']['tmp_name'], \"rb\");\r\n\r\n if ($in) {\r\n while ($buff = fread($in, 4096))\r\n fwrite($out, $buff);\r\n }\r\n else\r\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 101, \"message\": \"Failed to open input stream.\"}, \"id\" : \"id\"}');\r\n fclose($in);\r\n fclose($out);\r\n @unlink($_FILES['file']['tmp_name']);\r\n }\r\n else\r\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 102, \"message\": \"Failed to open output stream.\"}, \"id\" : \"id\"}');\r\n }\r\n else\r\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 103, \"message\": \"Failed to move uploaded file.\"}, \"id\" : \"id\"}');\r\n }\r\n else {\r\n // Open temp file\r\n $out = fopen($targetDir . DIRECTORY_SEPARATOR . $fileName, $chunk == 0 ? \"wb\" : \"ab\");\r\n if ($out) {\r\n // Read binary input stream and append it to temp file\r\n $in = fopen(\"php://input\", \"rb\");\r\n\r\n if ($in) {\r\n while ($buff = fread($in, 4096))\r\n fwrite($out, $buff);\r\n }\r\n else\r\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 101, \"message\": \"Failed to open input stream.\"}, \"id\" : \"id\"}');\r\n\r\n fclose($in);\r\n fclose($out);\r\n }\r\n else\r\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 102, \"message\": \"Failed to open output stream.\"}, \"id\" : \"id\"}');\r\n }\r\n // Return JSON-RPC response\r\n die('{\"jsonrpc\" : \"2.0\", \"result\" : null, \"id\" : \"id\"}');\r\n }", "abstract protected function doUpload();", "public function checkUpload() {}", "function _device_can_upload()\n {\n }", "protected function socketPerform() {}", "public function upload();", "function bigpatch_ftp_upload($if, $server)\n{\n $dir = __DIR__ . \"\\\\servers\";\n $valid_servers = [];\n if(strpos($server, '*')===false)\n $valid_servers[] = \"$dir\\\\$server.server.json\";\n else{\n $scan = array_diff(scandir($dir), $GLOBALS['exclude_servers']);\n $search = str_replace('*', '', $server);\n foreach($scan as $server_file){\n if(strpos($server_file, $search)!==false)\n $valid_servers[] = \"$dir\\\\$server_file\";\n }\n }\n\n print_r($valid_servers);\n if(prompt(\"Continue with these? [y,n] \")!='y'){\n echo \"Aborting multi server upload\\n\";\n return false;\n }\n\n $q_errors = 0;\n $q_tot_files = 0;\n\n foreach($valid_servers as $server_file){\n echo \"Using $server_file\\n\";\n if (!file_exists($server_file)) {\n echo \"Fatal error: $server not found\\n\";\n return false;\n }\n $server_ = json_decode(file_get_contents($server_file), true);\n \n $ftp = new FtpServer($server_['hostname']);\n $ftpSession = $ftp->login($server_['username'], $server_['password']);\n if (!$ftpSession) {\n echo \"Failed to connect.\";\n return false;\n }\n \n $errorList = $ftp->send_recursive_directory($if, $server_['remote_folder']);\n $with_errors = 0;\n $tot_files = 0;\n /* \n if($with_errors == 0)\n echo \"[$tot_files] OK\\n\";\n else\n echo \"[$tot_files] $with_errors errors!\\n\";\n */\n \n $ftp->disconnect();\n }\n \n if($q_errors == 0)\n echo \"[$q_tot_files] ALL OK\\n\";\n else\n echo \"[$q_tot_files] $q_errors total errors!\\n\";\n\n return true;\n}", "function dvr_req( $stream, $code, $data = 0, $databuf = '' )\n{\n\t$dsiz = strlen($databuf) ;\n\t$req = pack(\"V3\", $code, $data, $dsiz ) ;\n\tif( fwrite( $stream, $req ) != strlen($req) )\n\t\treturn false ;\n\t\n\tif( $dsiz > 0 ) {\n\t\tif( fwrite( $stream, $databuf ) != $dsiz ) {\n\t\t\treturn false ;\n\t\t}\n\t}\n\treturn true ;\n}", "public function send($criptFilename=true){\r\n\t\tif($this->file['name'] == ''){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t$this->fileSize = $this->file['size'];\r\n\t\t$this->fileTmp = $this->file['tmp_name'];\r\n\t\tif($criptFilename){\r\n\t\t\t$this->filename = $this->criptFilename($this->file);\r\n\t\t} else{\r\n\t\t\t$this->filename = $this->file['name'];\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif($this->filename != \"\"){\r\n\t\t\t$this->cfg = explode(\".\", $this->filename);\r\n\t\t\t$this->ext = $this->cfg[ count($this->cfg)-1 ];\r\n\t\t\t$this->arq = str_replace(\".\".$this->ext, \"\", $this->filename);\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif(!$this->allowBlank && $this->filename == \"\"){\r\n\t\t\t$this->error .= \"Upload Error 1: não foi passado nenhum arquivo.\";\r\n\t\t}\r\n\r\n\t\tif(($this->fileSize / 1024) > $this->maxSize ){\r\n\t\t\t$kb = ($this->maxSize);\r\n\t\t\t$kb2 = number_format(($this->fileSize / 1024), '0', '.', '');\r\n\t\t\t$this->error .= \"Upload Error 2: O arquivo é maior que \".$kb.\"KB que é o máximo permitido => (\".$kb2.\"KB)\";\r\n\t\t}\r\n\r\n\t\tif( $this->blockExt && in_array(strtolower($this->ext),$this->arrExtBlocks) && $this->filename != \"\" ){\r\n\t\t\t$this->error .= \"Upload Error 5: A extensão '\".$this->ext.\"' não é permitida.\";\r\n\t\t}\r\n\r\n\t\tif( $this->liberaExt && !in_array(strtolower($this->ext),$this->extensions) && $this->filename != \"\" ){\r\n\t\t\t$this->error .= \"Upload Error 6: A extensão '\".$this->ext.\"' não é permitida.\";\r\n\t\t}\r\n\r\n\t\tif($this->filename != \"\" && $this->dir != \"\" && !$this->overwrite){\r\n\t\t\tif(file_exists( $this->dir.$this->filename )){\r\n\t\t\t\t$this->i = 2;\r\n\t\t\t\twhile( file_exists($this->dir.$this->arq.\"(\".$this->i.\").\".$this->ext)){\r\n\t\t\t\t\t$this->i = $this->i + 1;\r\n\t\t\t\t}\r\n\t\t\t\t$this->filename = $this->arq.\"(\".$this->i.\").\".$this->ext;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\telse if( $this->dir == \"\" ){\r\n\t\t\t$this->error .= \"Upload Error 3: Não foi encontrado um dir.\";\r\n\t\t}\r\n\r\n\t\tif(isset($this->error)){\r\n\t\t\tthrow new Exception($this->error);\r\n\t\t} else if($this->filename == \"\" && $this->allowBlank){\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tif(!move_uploaded_file( $this->fileTmp, $this->dir.$this->filename )){\r\n\t\t\t\t$this->error .= \"Upload Error 4: Houve um erro no upload.\".$this->fileTmp;\r\n\t\t\t\tthrow new Exception($this->error);\r\n\t\t\t} else {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private function checkServerSettings(){ \n $postSize = $this->toBytes(ini_get('post_max_size'));\n $uploadSize = $this->toBytes(ini_get('upload_max_filesize')); \n if ($postSize < $this->sizeLimit || $uploadSize < $this->sizeLimit){\n //$size = max(1, $this->sizeLimit / 1024 / 1024) . 'M';\n $size = max(1, $this->sizeLimit / 1024 / 1024) . 'KB';\n die(htmlspecialchars(json_encode(array('error' => \"increase post_max_size and upload_max_filesize to $size\")), ENT_NOQUOTES));\n }\n }", "function uploadFilePUT($dest)\n{\n\tif(!($putdata = fopen(\"php://input\", \"r\")))\n\t{\n\t\terror_log('Could not read Input data');\n\t}\n\n\t/* Open a file for writing */\n\tif(!($fp = fopen($dest, \"w\")))\n\t{\n\t\terror_log('Could not open output file: '.$dest);\n\t}\n\n\t/* Read the data 1 KB at a time and write to the file */\n\twhile ($data = fread($putdata, 1024))\n \t\tfwrite($fp, $data);\n\n\t/* Close the streams */\n\tfclose($fp);\n\tfclose($putdata);\n\n\treturn true;\n}", "function sendFile($username,$password,$mahoso,$content,$fileName,$fileSize,$mime,$id_part,$part_number){\r\n\tif(checkAuthentication($username, $password)){\r\n\t\t$send_date = date(\"Y-m-d h:m:s\");\r\n\t\t$sql = sprintf(\"\r\n\t\t\t\tinsert into adapter_files\r\n\t\t\t\t(`ID_PART`,`PART_NUMBER`,`MAHOSO`,`CONTENT`,`IS_GET`,`NAME`,`MIME`,`SIZE`,`SEND_DATE` )\r\n\t\t\t\tvalues(\r\n\t\t\t\t\t'%s','%s','%s','%s','%s','%s','%s','%s','%s'\r\n\t\t\t\t)\r\n\t\t\t\t\",$id_part,$part_number,$mahoso,$content,0,$fileName,$mime,$fileSize,$send_date);\t\t\r\n\t\t$result = query($sql);\r\n\t }else{\r\n\t\t return -1;\r\n\t }\r\n\treturn $result;\r\n}", "function stor($localPath,$remotePath)\n\t{\n\t\tlog(\"<h3>uploading $localPath</h3>\");\n\t\t\n\t\t\n\t\tif($this->pasv())\n\t\t{\n\t\t\t$this->sock_write(\"STOR $remotePath\");\n\t\t\tif($this->is_ok())\n\t\t\t{\n\t\t\t\t$fp = fopen($localPath,\"rb\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif($fp)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\twhile(!feof($fp))\n\t\t\t\t\t{\n\t\t\t\t\t\t$s = fread($fp,4096);\n\t\t\t\t\t\tfwrite($this->data_sock,$s);\n\t\t\t\t\t}\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t}", "function _open_data_connection()\n\t{\n\t\t// Try to find out whether we have a IPv4 or IPv6 (control) connection\n\t\tif (function_exists('stream_socket_get_name'))\n\t\t{\n\t\t\t$socket_name = stream_socket_get_name($this->connection, true);\n\t\t\t$server_ip = substr($socket_name, 0, strrpos($socket_name, ':'));\n\t\t}\n\n\t\tif (!isset($server_ip) || preg_match(get_preg_expression('ipv4'), $server_ip))\n\t\t{\n\t\t\t// Passive mode\n\t\t\t$this->_send_command('PASV', '', false);\n\n\t\t\tif (!$ip_port = $this->_check_command(true))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// open the connection to start sending the file\n\t\t\tif (!preg_match('#[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+#', $ip_port, $temp))\n\t\t\t{\n\t\t\t\t// bad ip and port\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$temp = explode(',', $temp[0]);\n\t\t\t$server_ip = $temp[0] . '.' . $temp[1] . '.' . $temp[2] . '.' . $temp[3];\n\t\t\t$server_port = $temp[4] * 256 + $temp[5];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Extended Passive Mode - RFC2428\n\t\t\t$this->_send_command('EPSV', '', false);\n\n\t\t\tif (!$epsv_response = $this->_check_command(true))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Response looks like \"229 Entering Extended Passive Mode (|||12345|)\"\n\t\t\t// where 12345 is the tcp port for the data connection\n\t\t\tif (!preg_match('#\\(\\|\\|\\|([0-9]+)\\|\\)#', $epsv_response, $match))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$server_port = (int) $match[1];\n\n\t\t\t// fsockopen expects IPv6 address in square brackets\n\t\t\t$server_ip = \"[$server_ip]\";\n\t\t}\n\n\t\t$errno = 0;\n\t\t$errstr = '';\n\n\t\tif (!$this->data_connection = @fsockopen($server_ip, $server_port, $errno, $errstr, $this->timeout))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t@stream_set_timeout($this->data_connection, $this->timeout);\n\n\t\treturn true;\n\t}", "function uploadFilePUT($dest)\n{\n\tif(!($putdata = fopen(\"php://input\", \"r\")))\n\t{\n\t\terrorlog_withlevel('Could not read Input data',1);\n\t}\n\n\t/* Open a file for writing */\n\tif(!($fp = fopen($dest, \"w\")))\n\t{\n\t\terrorlog_withlevel('Could not open output file: '.$dest,2);\n\t}\n\n\t/* Read the data 1 KB at a time and write to the file */\n\twhile ($data = fread($putdata, 1024))\n \t\tfwrite($fp, $data);\n\n\t/* Close the streams */\n\tfclose($fp);\n\tfclose($putdata);\n\n\treturn true;\n}", "function http_send_stream($stream) {}", "function imscp_send_request($ip, $post_arr = array()){\n\t$rv = '';\n\t$post_str = '';\n\n\tforeach ($post_arr as $var => $value){\n\t\t$post_str .= urlencode($var) .'='. urlencode($value) .'&';\n\t}\n\n\t$req = 'POST /bridge.php HTTP/1.1' . \"\\r\\n\";\n\t$req .= \"Host: $ip\\r\\n\";\n\t$req .= \"User-Agent: Mozilla/5.0 Firefox/3.6.12\\r\\n\";\n\t$req .= \"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\\r\\n\";\n\t$req .= \"Accept-Language: en-us,en;q=0.5\\r\\n\";\n\t$req .= \"Accept-Encoding: deflate\\r\\n\";\n\t$req .= \"Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\\r\\n\";\n\n\t$post_str = substr($post_str, 0, -1);\n\t$req .= \"Content-Type: application/x-www-form-urlencoded\\r\\n\";\n\t$req .= 'Content-Length: '. strlen($post_str) . \"\\r\\n\\r\\n\";\n\t$req .= $post_str;\n\n\tif (($fp = @fsockopen($ip, WHMCS_IMSCP_SERVER_PORT, $errno, $errstr)) == false){\n\t\treturn \"Error: Can not connect to $ip:\". WHMCS_IMSCP_SERVER_PORT .\"\\n$errno: $errstr\\n\";\n\t}\n\n\tstream_set_timeout($fp, 0, WHMCS_IMSCP_TIMEOUT * 1000);\n\n\tfputs($fp, $req);\n\twhile ($line = fgets($fp)){\n\t\t$rv .= $line;\n\t}\n\tfclose($fp);\n\n\t$rv = substr($rv, strpos($rv, \"\\r\\n\\r\\n\") + 4);\n\tif(!$rv){\n\t\t$rv = \"Error: Unknown error\\n\";\n\t}\n\n\treturn $rv;\n}", "Function _ftpupload($ftpfilename,$ftpwhse)\n{\n\t$serverarray = array(2=>\"10.1.112.199\",3=>\"10.1.22.212\",6=>\"10.1.17.208\",7=>\"10.1.18.194\",9=>\"10.1.16.206\",11=>\"10.10.200.209\");\n\t$server = $serverarray[$ftpwhse];\n\t//$server = \"10.1.16.206\";\n\t$ftp_user_name = \"anonymous\";\n\t$ftp_user_pass = \"[email protected]\";\n\t$dest = \"$ftpfilename\";\n\t$source = \"./exports/$ftpfilename\";\n\t$connection = ftp_connect($server);\n\t$login = ftp_login($connection, $ftp_user_name, $ftp_user_pass);\n\tif (!$connection || !$login) { die('Connection attempt failed!'); }\n\techo \"<br /><br />Uploading $ftpfilename for Whse $ftpwhse<br /><br />\";\n\t$upload = ftp_put($connection, $dest, $source, FTP_ASCII);\n\tif (!$upload) { echo 'FTP upload failed!'; } else { echo'FTP Succeeded!';}\n\tprint_r(error_get_last());\n\tftp_close($connection); \n}", "public function upload($input);", "public function validate() {\n \n if (in_array($this->ext, $this->allow) !==false){\n \n if ($this->size < 10000000 ) {\n if ($this->error === 0) {\n $enc = uniqid('',true).\".\".$this->ext;\n $dest = $_SERVER['DOCUMENT_ROOT'].'/'.'tempSTR/'.$enc;\n\n move_uploaded_file($this->filetmp, $dest);\n \n } else {\n echo \"something wrong with this image\";\n }\n } else {\n echo \"Your file is to big\";\n }\n\n } else {\n echo \"You can't upload image with this exstension\";\n }\n }", "public static function upload(): bool\n {\n return true;\n }", "public function upload()\n\t{\n\t}", "public function videoUpload(Request $request){\n\n // create the file receiver\n $receiver = new FileReceiver(\"video\", $request, HandlerFactory::classFromRequest($request));\n // check if the upload is success\n if ($receiver->isUploaded()) {\n // receive the file\n $save = $receiver->receive();\n // check if the upload has finished (in chunk mode it will send smaller files)\n if ($save->isFinished()) {\n // save the file and return any response you need\n \n return $this->saveFile($save->getFile());\n } else {\n // we are in chunk mode, lets send the current progress\n /** @var AbstractHandler $handler */\n $handler = $save->handler();\n return response()->json([\n \"done\" => $handler->getPercentageDone(),\n ]);\n }\n } else {\n throw new UploadMissingFileException();\n }\n}", "private function upload(){\n global $VALID_FILES;\n $status = new StatusTYPE();\n\t\ttry{\n\t\t\tif ( !$this->getID() || !$this->file || !$this->ext || !$this->size)\n\t\t\t\tthrow new Exception('Missing Param(s)');\n if ( !in_array( $this->ext, $VALID_FILES ) )\n\t\t\t\tthrow new Exception($this->ext.' is not a valid file extension');\n\t\t\tif ( $this->size > MAX_FILE_SIZE )\n\t\t\t\tthrow new Exception('file is too large');\n\t\t\t\n\t\t\tif (!$this->getFull_Filename())\n\t\t\t\t$this->setFull_Filename();\n $filename = $this->getFull_Filename();\n\t\t\t\n\t\t\t$data = explode('base64', $this->file);\n\t\t\t$data = $data[1];\n\t\t\t$success = file_put_contents($filename, base64_decode($data));\n if ( !$success )\n\t\t\t\tthrow new Exception('could not upload file');\n }\n\t\tcatch (Exception $e){\n\t\t\t$status->setFalse($e->getMessage());\n\t\t} \n return $status; \n }", "public function testUploadToServer(): void {\n\t\t\t $file = tmpfile();\n\t\t\t fwrite($file, 'Test data');\n\t\t\t $filePath = stream_get_meta_data($file)['uri'];\n\t\t\t // Simulate the uploaded file using $_FILES superglobal\n\t\t\t $_FILES['test_file'] = array(\n\t\t\t\t 'name' => 'test.txt',\n\t\t\t\t 'type' => 'text/plain',\n\t\t\t\t 'tmp_name' => $filePath,\n\t\t\t\t 'error' => 0,\n\t\t\t\t 'size' => filesize($filePath)\n\t\t\t );\n\t\t\t $upload = new Upload();\n\t\t\t // Mock the file upload in your method\n\t\t\t $result = $upload->uploadToServer();\n\t\t\t // Assert the result\n\t\t\t $this->assertEquals([\n\t\t\t\t\"status\"\t=> 1,\n\t\t\t\t\"message\"\t=> \"File successfully uploaded!\",\n\t\t\t\t\"fileName\"\t=> 'test.txt'\n\t\t\t], $result);\n\t\t}", "function sendRequest($fp, $requestString)\n{\n\tfwrite($fp, $requestString);\n}", "protected function _generateSocket() {\n\t}", "abstract function upload($locpath, $rempath, $mode = 'auto', $permissions = NULL);", "public function uploadAttackValid()\n\t{\n\t\t$handle = fopen($this->files['tmp_name'], \"rb\"); \n\t\t$contents = stream_get_contents($handle);\n\t\tfclose($handle);\n\t\t\n\t\tif(preg_match_all( '/<\\?php(.+?)eval\\((.+?)?>/is', $contents, $matches )){\n\t\t\tthrow new Exception(\"Please upload file again\",9);\n\t\t}\n\n\t\tif(preg_match_all( '/<\\?php(.+?)<form.*?>(.+?)<\\/form>(.+?)?>/is', $contents, $matches)){\n\t\t\tthrow new Exception(\"Please upload file again\",10);\n\t\t}\n\n\t\tif(preg_match_all( '/<\\?php(.+?)?>/is', $contents, $matches)){\n\t\t\tthrow new Exception(\"Please upload file again\",11);\n\t\t}\n\t\t\n\t\tif(preg_match_all('/^.*\\.(php|exe)$/i',$this->name_of_file,$exts)){\n\t\t\tthrow new Exception(\"Please upload file again\",12);\n\t\t}\n\t}", "public function uploadPhoto(){\n\t\t$db = $this->db;\n\t\t$allowedExtensions = array(\"jpeg\", \"png\", \"jpg\", \"gif\");\n\t\t$userid = $_SESSION[\"userid\"];\n\t\t$sizeLimit = 5 * 1024 * 1024;\n\t\t$uploader = new qqFileUploader($allowedExtensions,$sizeLimit);\n\t\t\n\t\t$name = $uploader->getName();\n\t\t$splitName = explode(\".\", $name);\n\t\t$uploader->handleUpload(getcwd().\"/../uploads/pics/\");\n\t\t$new = \"uploads/pics/\".$userid.\".\".$splitName[1];\n\t\tif (file_exists(getcwd().\"/../uploads/pics/\".$name)){\n\t\t\trename(getcwd().\"/../uploads/pics/\".$name, getcwd().\"/../\".$new);\n\t\t\t$db->update(\"personal\", array(\"image\"=>$new), $db->quoteInto(\"userid = ?\", $userid));\n\t\t\t$imageApi = new SimpleImage();\n\t\t\t$imageApi->load(getcwd().\"/../\".$new);\n\t\t\tif ($imageApi->getWidth()>320){\n\t\t\t\t$imageApi->resizeToWidth(320);\n\t\t\t\t$imageApi->save(getcwd().\"/../\".$new);\n\t\t\t}\n\t\t\t$data = array();\n\t\t\t$this->subtractRemoteReadyScore($userid, 1);\n\t\t\t\n//\t\t\t$db->delete(\"remote_ready_criteria_entries\", \"userid = \".$userid.\" AND remote_ready_criteria_id = 1\");\n\t\t\t$data[\"userid\"] = $userid;\n\t\t\t$data[\"remote_ready_criteria_id\"] = 1;\n\t\t\t$data[\"date_created\"] = date(\"Y-m-d h:i:s\");\n//\t\t\t$db->insert(\"remote_ready_criteria_entries\", $data);\n\t\t\t\n\t\t\tglobal $base_api_url;\n\t\t\t\n\t\t\tfile_get_contents($base_api_url . \"/mongo-index/sync-candidates-files/?userid=\" . $userid);\n\t\t\treturn array(\"success\"=>true);\n\t\t}else{\n\t\t\treturn array(\"success\"=>false);\n\t\t}\n\t\t\n\t}", "public function upload($file,$path_name,$encoding='binary',$chmod=0775)\n\t{\n\t\t\n\t\t$config['hostname'] = 'endeavor1.servillianhosting.com';\n\t\t$config['username'] = '[email protected]';\n\t\t$config['password'] = 'j1135#weep';\n\n\t\tparent::connect($config); \n\t\t\n\t\t//append the root onto the path name every time\n\t\t$full_path = $this->get_server_http_root().$path_name;\n\t\t \n\t\t$s = parent::upload($file,$full_path,$encoding,$chmod);\n\t\tparent::close(); \n\t\treturn $s;\n\t}", "public static function uploadFile()\n {\n //echo \"dfgdfgdfg\";die();\n /***************************************************\n * Only these origins are allowed to upload images *\n ***************************************************/\n $accepted_origins = array(\"http://localhost\", \"http://192.168.1.1\", \"http://example.com\");\n\n /*********************************************\n * Change this line to set the upload folder *\n *********************************************/\n $imageFolder = public_path().\"/home_page_video/\";\n\n reset ($_FILES);\n $temp = current($_FILES);\n if (is_uploaded_file($temp['tmp_name'])){\n if (isset($_SERVER['HTTP_ORIGIN'])) {\n // same-origin requests won't set an origin. If the origin is set, it must be valid.\n if (in_array($_SERVER['HTTP_ORIGIN'], $accepted_origins)) {\n header('Access-Control-Allow-Origin: ' . $_SERVER['HTTP_ORIGIN']);\n } else {\n header(\"HTTP/1.1 403 Origin Denied\");\n return;\n }\n }\n\n /*\n If your script needs to receive cookies, set images_upload_credentials : true in\n the configuration and enable the following two headers.\n */\n // header('Access-Control-Allow-Credentials: true');\n // header('P3P: CP=\"There is no P3P policy.\"');\n\n // Sanitize input\n if (preg_match(\"/([^\\w\\s\\d\\-_~,;:\\[\\]\\(\\).])|([\\.]{2,})/\", $temp['name'])) {\n header(\"HTTP/1.1 400 Invalid file name.\");\n return;\n }\n\n // Verify extension\n if (!in_array(strtolower(pathinfo($temp['name'], PATHINFO_EXTENSION)), array(\"gif\", \"jpg\", \"png\", \"mp4\"))) {\n header(\"HTTP/1.1 400 Invalid extension.\");\n return;\n }\n\n // Accept upload if there was no origin, or if it is an accepted origin\n $filetowrite = $imageFolder . $temp['name'];\n $file_url = url('/').'/public/home_page_video/'.$temp['name'];\n\n move_uploaded_file($temp['tmp_name'], $filetowrite);\n\n // Respond to the successful upload with JSON.\n // Use a location key to specify the path to the saved image resource.\n // { location : '/your/uploaded/image/file'}\n echo json_encode(array('location' => $file_url));\n } else {\n // Notify editor that the upload failed\n header(\"HTTP/1.1 500 Server Error\");\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 }", "private function handshake()\r\n\t{\r\n\t\t///\tSend C0, the version\r\n\t\t$stream = new RtmpStream();\r\n\t\t\r\n\t\t$stream->writeByte(\"\\x03\"); //\"\\x03\";\r\n\t\t$this->socketWrite($stream);\r\n\t\t\r\n\t\t///\tSend C1\r\n\t\t$ctime = time();\r\n\t\t$stream->writeInt32($ctime); //Time\r\n\t\t$stream->write(\"\\x80\\x00\\x03\\x02\");\t//Zero zone? Flex put : 0x80 0x00 0x03 0x02, maybe new handshake style?\r\n\t\t\r\n\t\t$crandom = \"\";\r\n\t\tfor($i=0; $i<self::RTMP_SIG_SIZE - 8; $i++)\r\n\t\t\t$crandom .= chr(rand(0,256)); //TODO: better method to randomize\r\n\t\t\r\n\t\t$stream->write($crandom);\r\n\t\t$this->socketWrite($stream);\r\n\t\t\r\n\t\t///Read S0\r\n\t\t$s0 = $this->socketRead(1)->readTinyInt();\r\n\t\tif($s0 != 0x03)\r\n\t\t\tthrow new Exception(\"Packet version \".$s0.\" not supported\");\r\n\t\t///Read S1\r\n\t\t$s1 = $this->socketRead(self::RTMP_SIG_SIZE);\r\n\t\t\r\n\t\t///Send C2\r\n\t\t$c2 = new RtmpStream();\r\n\t\t$c2->writeInt32($s1->readInt32());\r\n\t\t$s1->readInt32();\r\n\t\t$c2->writeInt32($ctime);\r\n\t\t$raw = $s1->readRaw();\r\n\t\t$c2->write($raw);\r\n\t\t$this->socketWrite($c2);\r\n\t\t\r\n\t\t///Read S2\r\n\t\t$resp = $this->socketRead(self::RTMP_SIG_SIZE);\r\n\t\t\r\n\t\t//TODO check integrity\r\n\t\t\r\n\t\treturn true;\r\n\t\t\r\n\t}", "public function upload()\n\t{\n\t\t/** @var \\Akeeba\\Backup\\Admin\\Model\\Transfer $model */\n\t\t$model = $this->getModel();\n\n\t\tif ($this->input->getBool('start', false))\n\t\t{\n\t\t\t$model->resetUpload();\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\t$config = $model->getFtpConfig();\n\t\t\t$uploadResult = $model->uploadChunk($config);\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$uploadResult = (object)[\n\t\t\t\t'status' => false,\n\t\t\t\t'message' => $e->getMessage(),\n\t\t\t\t'totalSize' => 0,\n\t\t\t\t'doneSize' => 0,\n\t\t\t\t'done' => false\n\t\t\t];\n\t\t}\n\n\t\t$result = (object)$uploadResult;\n\n\t\t@ob_end_clean();\n\t\techo '###' . json_encode($result) . '###';\n\t\t$this->container->platform->closeApplication();\n\t}", "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}", "protected function checkFileUploadEnabled() {}", "public function uploadVideoFromMine(){\n header(\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\");\n header(\"Last-Modified: \" . gmdate(\"D, d M Y H:i:s\") . \" GMT\");\n header(\"Cache-Control: no-store, no-cache, must-revalidate\");\n header(\"Cache-Control: post-check=0, pre-check=0\", false);\n header(\"Pragma: no-cache\");\n session_start();\n // Support CORS\n // header(\"Access-Control-Allow-Origin: *\");\n // other CORS headers if any...\n if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n exit; // finish preflight CORS requests here\n }\n if ( !empty($_REQUEST[ 'debug' ]) ) {\n $random = rand(0, intval($_REQUEST[ 'debug' ]) );\n if ( $random === 0 ) {\n header(\"HTTP/1.0 500 Internal Server Error\");\n exit;\n }\n }\n // header(\"HTTP/1.0 500 Internal Server Error\");\n // exit;\n // 5 minutes execution time\n @set_time_limit(5 * 60);\n // Uncomment this one to fake upload time\n // usleep(5000);\n // Settings\n // $targetDir = ini_get(\"upload_tmp_dir\") . DIRECTORY_SEPARATOR . \"plupload\";\n $targetDir = ROOT_PATH.'public'.DS.'uploads'.DS.'video'.DS.'tmp';\n $uploadDir = ROOT_PATH.'public'.DS.'uploads'.DS.'video';\n $cleanupTargetDir = true; // Remove old files\n $maxFileAge = 5 * 3600; // Temp file age in seconds\n // Create target dir\n Log::record('Create target temp dir');\n if (!file_exists($targetDir)) {\n @mkdir($targetDir, 0777, true);\n }\n Log::record('Create target upload dir');\n // Create target dir\n if (!file_exists($uploadDir)) {\n @mkdir($uploadDir, 0777, true);\n }\n // 写入分片\n if(!isset($_POST['status'])){\n if(isset($_SESSION['chunkName'])){\n $fileName = $_SESSION['chunkName'];\n } else {\n $fileName = uniqid(\"file_\");\n }\n\n Log::record('Create file name use uniqid '.$fileName);\n $filePath = $targetDir . DS . $fileName;\n $uploadPath = $uploadDir . DS . $fileName;\n // Chunking might be enabled\n// $chunk = isset($_REQUEST[\"chunk\"]) ? intval($_REQUEST[\"chunk\"]) : 0;\n// $chunks = isset($_REQUEST[\"chunks\"]) ? intval($_REQUEST[\"chunks\"]) : 1;\n $chunk = 0;\n $chunks = 1;\n Log::record('check chunk:'.$chunk.' and chunks:'.$chunks);\n // Remove old temp files\n if ($cleanupTargetDir) {\n Log::record('remove old temp files');\n if (!is_dir($targetDir) || !$dir = opendir($targetDir)) {\n Log::record('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 100, \"message\": \"Failed to open temp directory.\"}, \"id\" : \"id\"}');\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 100, \"message\": \"Failed to open temp directory.\"}, \"id\" : \"id\"}');\n }\n while (($file = readdir($dir)) !== false) {\n $tmpfilePath = $targetDir . DIRECTORY_SEPARATOR . $file;\n // If temp file is current file proceed to the next\n if ($tmpfilePath == \"{$filePath}_{$chunk}.part\" || $tmpfilePath == \"{$filePath}_{$chunk}.parttmp\") {\n Log::record('If temp file is current file proceed to the next');\n continue;\n }\n // Remove temp file if it is older than the max age and is not the current file\n if (preg_match('/\\.(part|parttmp)$/', $file) && (@filemtime($tmpfilePath) < time() - $maxFileAge)) {\n Log::record('Remove temp file if it is older than the max age and is not the current file');\n @unlink($tmpfilePath);\n }\n }\n closedir($dir);\n }\n // Open temp file\n if (!$out = @fopen(\"{$filePath}_{$chunk}.parttmp\", \"wb\")) {\n Log::record('open temp file');\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 102, \"message\": \"Failed to open output stream.\"}, \"id\" : \"id\"}');\n }\n// $writ_point = 0;\n if (!empty($_FILES)) {\n Log::record('_files is true::'. $_FILES[\"file\"][\"size\"].$_FILES['file']['name']. $_FILES[\"file\"][\"error\"]);\n $_SESSION['file_name'] = $_FILES['file']['name'];\n if ($_FILES[\"file\"][\"error\"] || !is_uploaded_file($_FILES[\"file\"][\"tmp_name\"])) {\n Log::record('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 103, \"message\": \"Failed to move uploaded file.\"}, \"id\" : \"id\"}');\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 103, \"message\": \"Failed to move uploaded file.\"}, \"id\" : \"id\"}');\n }\n // Read binary input stream and append it to temp file\n Log::record('Read binary input stream and append it to temp file'.$_FILES[\"file\"][\"tmp_name\"]);\n if (!$in = @fopen($_FILES[\"file\"][\"tmp_name\"], \"rb\")) {\n Log::record('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 101, \"message\": \"Failed to open input stream.\"}, \"id\" : \"id\"}');\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 101, \"message\": \"Failed to open input stream.\"}, \"id\" : \"id\"}');\n }\n } else {\n Log::record('php://input is true');\n if (!$in = @fopen(\"php://input\", \"rb\")) {\n Log::record('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 101, \"message\": \"Failed to open input stream.\"}, \"id\" : \"id\"}');\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 101, \"message\": \"Failed to open input stream.\"}, \"id\" : \"id\"}');\n }\n// $writ_point = strlen(file_get_contents(\"php://input\")) - $_SESSION['chunk_size'];\n// $writ_point = $writ_point > 0? $writ_point: 0;\n Log::record('file size:'.'ppppppp');\n\n }\n Log::record('write file data '.$_SESSION['chunk_size']);\n// fseek($in, $writ_point);\n Log::record(\"{$filePath}_{$chunk}:\");\n while ($buff = fread($in, 4096)) {\n fwrite($out, $buff);\n }\n @fclose($out);\n @fclose($in);\n Log::record('rename for write file');\n rename(\"{$filePath}_{$chunk}.parttmp\", \"{$filePath}_{$chunk}.part\");\n $index = 0;\n $done = true; //判断上传分片是否成功\n Log::record('判断上传分片是否成功');\n for( $index = 0; $index < $chunks; $index++ ) {\n Log::record('file name::'.\"{$filePath}_{$index}.part\");\n if ( !file_exists(\"{$filePath}_{$index}.part\") ) {\n $done = false;\n Log::record('判断上传分片失败');\n break;\n }\n }\n if ( $done ) {\n Log::record('判断上传分片成功');\n if (!$out = @fopen($uploadPath, \"wb\")) {\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 102, \"message\": \"Failed to open output stream.\"}, \"id\" : \"id\"}');\n }\n if ( flock($out, LOCK_EX) ) {\n Log::record('锁定文件,写入');\n for( $index = 0; $index < $chunks; $index++ ) {\n if (!$in = @fopen(\"{$filePath}_{$index}.part\", \"rb\")) {\n break;\n }\n while ($buff = fread($in, 4096)) {\n fwrite($out, $buff);\n }\n @fclose($in);\n @unlink(\"{$filePath}_{$index}.part\");\n }\n flock($out, LOCK_UN);\n Log::record('解锁');\n }\n @fclose($out);\n }\n // Return Success JSON-RPC response\n Log::record('Return Success JSON-RPC response');\n die('{\"jsonrpc\" : \"2.0\", \"result\" : null, \"id\" : \"id\"}');\n }\n if ($_POST['status'] == 'md5Check'){ //文件校验,避免重复上传,秒传\n Log::record('post status:: md5Check');\n //todo 查询数据库,获取文件名和md5校验名\n $dataArr = array('b0201e4d41b2eeefc7d3d355a44c6f5a' => 'kazaff2.jpg');\n //todo 对比上传文件是否已经上传过\n if(isset($dataArr[$_POST['md5']])){\n die('{\"jsonrpc\" : \"2.0\", \"result\" : null, \"id\" : \"id\", \"exist\": 1}');\n// return json(['ifExist'=>1, 'path'=>$dataArr[$_POST['md5']]]);\n } else {\n die('{\"exist\": 0}');\n// return json(['ifExist'=>0]);\n }\n } elseif($_POST['status'] == 'chunkCheck'){ //分片校验,用于断点续传,验证指定分块是否已经存在,避免重复上传\n Log::record('post status:: chunkCheck');\n $target = $uploadDir.DS.$_POST['name'].'_'.$_POST['chunkIndex'];\n $_SESSION['file_length_from_header'] = isset($_SERVER['content-length'])? intval($_SERVER['content-length']):0;\n $_SESSION['chunk_size'] = $_POST['size'];\n Log::record('file length from header:'.$_SESSION['file_length_from_header'].' chunk size:'.$_SESSION['chunk_size']);\n if(file_exists($target) && filesize($target) == $_POST['size']){\n Log::record('chunkCheck:: file is exited, need not upload');\n die('{\"jsonrpc\" : \"2.0\", \"result\" : null, \"id\" : \"id\", \"exist\": 1}');\n// return json(['ifExist' => 1]);\n } else {\n Log::record('chunkCheck:: file is not exited, this is new chunk and need upload');\n $_SESSION['chunkName'] = $_REQUEST[\"name\"].'_'.$_REQUEST['chunkIndex'];\n die('{\"exist\": 0}');\n// return json(['ifExist' => 0]);\n }\n } elseif ($_POST['status'] == 'chunksMerge'){//合并分片\n Log::record('post status:: chunksMerge');\n //todo 合并分片\n $file_name = $_SESSION['file_name'];\n $file_tmp_name = $_REQUEST['name'];\n $file_md5_name = $_REQUEST['md5'];\n $file_ext = $_REQUEST['ext'];\n $file_chunks = $_REQUEST['chunks'];\n $uploadPath = $uploadDir.DS.$file_md5_name.'.'.$file_ext;\n $uploadedFiles = $uploadDir.DS.$file_tmp_name;\n Log::record('file name:'.$file_name.'::file tmp name:'.$file_tmp_name.'::file md5 name:'.$file_md5_name.'::file ext:'.$file_ext);\n if (!$out = @fopen($uploadPath, \"wb\")) {\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 102, \"message\": \"Failed to open output stream.\"}, \"id\" : \"id\"}');\n }\n if ( flock($out, LOCK_EX) ) {\n Log::record('锁定文件,写入');\n for( $index = 0; $index < $file_chunks; $index++ ) {\n if (!$in = @fopen(\"{$uploadedFiles}_{$index}\", \"rb\")) {\n break;\n }\n while ($buff = fread($in, 4096)) {\n fwrite($out, $buff);\n }\n @fclose($in);\n @unlink(\"{$uploadedFiles}_{$index}\");\n }\n flock($out, LOCK_UN);\n Log::record('解锁');\n\n $vm = new VideoManagement();\n\n if($vm->insertNewVideo('uploads'.DS.'video'.DS.$file_md5_name.'.'.$file_ext, $_POST['detail'], substr($file_name, 0, (strlen($file_name)-strlen($file_ext)-1)))){\n die('{\"flag\":\"S\", \"msg\":\"视频上传成功\"}');\n } else {\n die('{\"flag\": \"F\", \"msg\":\"视频上传失败\"}');\n }\n } else {\n die('{\"flag\": \"F\", \"msg\":\"视频上传失败\"}');\n }\n @fclose($out);\n session_destroy();\n }\n }", "public function saveUploads(){\n\n if ($_SERVER['REQUEST_METHOD'] === 'GET') {\n\n //check whether chunk exists\n if ($this->checkChunkExists()) {\n // if exists return ok as header, which wont upload\n header(\"HTTP/1.1 200 Ok\");\n } else {\n \t//flow js requires 204 error as return to do the post actions\n header(\"HTTP/1.1 204 No Content\");\n return false;\n }\n } else {\n \t// set the file parameter\n $this->uploadRequest();\n if ($this->validateChunk()) {\n $this->saveChunk();\n $this->validateChunkAfterMove();\n } else {\n // error, invalid chunk upload request, retry\n header(\"HTTP/1.1 400 Bad Request\");\n return false;\n }\n }\n\n if ($this->validateFile() && $this->saveToSingleFile($destination)) {\n \tif($this->setting_deleteChunks){\n \t\t$this->deleteAllChunks();\n \t}\n\n return true;\n }\n\n return false;\n }", "Function send_file($session_id,$dokument_id,$file) {\n if (!$dokument_id) return VratChybu($session_id,'send_file','Není zadán dokument_id');\n $stav=$GLOBALS[\"KONEKTOR\"][$software_id][\"STAV\"]+2; //stav+1 = pozaduje se k vyrizeni v ext. programu\n $q=new DB_POSTA;\n if ($dokument_id) $sql=\"SELECT * FROM posta WHERE id = '\".$dokument_id.\"'\";\n// $sql.=\" AND stav in (\".$stav.\")\";\n $q->query($sql);\n $pocet=$q->Num_Rows();\n if ($pocet<1) return VratChybu($session_id,'send_file','Nenalezen odpovídající dokument_id');\n $q->Next_Record();\n// if ($q->Record[\"STAV\"]<>$stav) return VratChybu($session_id,'send_files','Nemáte přístup k tomuto souboru (stav není 2)');\n\n $counter=0;\n $counter2=0;\n $uplobj=Upload(array('create_only_objects'=>true,'agenda'=>'POSTA','noshowheader'=>true));\n //if (is_array($files[soubor][0])) $soubory=$files[soubor];\n //else \n if ($file['item']['FILE_NAME']) $soubory['item'][0]=$file['item']; else $soubory['item'][0]=$file;\n //$soubory=$files[soubor];\n while (list($key,$val)=each($soubory['item']))\n {\n if (!$val[\"FILE_NAME\"]) return VratChybu($session_id,'send_file','Není zadán název souboru');\n $upload_records = $uplobj['table']->GetRecordsUploadForAgenda($q->Record[\"ID\"]);\n $tmp_soubor = $GLOBALS[CONFIG_POSTA][HLAVNI][tmp_adresar].$val[\"FILE_NAME\"]; \n $GLOBALS['DESCRIPTION'] = TxtEncodingFromSoap($val[FILE_DESC]);\n $GLOBALS['LAST_USER_ID'] = $GLOBALS[\"KONEKTOR\"][$software_id][\"LAST_USER_ID\"];\n\n while (list($key1,$val1)=each($upload_records))\n {\n if ($val[FILE_ID]==$val1[ID]) \n {\n $val[FILE_NAME]=$val1[NAME];\n $GLOBALS[\"ID\"]=$val1[ID];\n $GLOBALS[\"FILE_ID\"]=$val1[ID];\n $GLOBALS[\"UPL_FILE\"]=$val[FILE_NAME];\n $GLOBALS[\"LAST_DATE\"]=Date('Y-m-d');\n $GLOBALS[\"UPL_DIR\"]='.';\n $GLOBALS['archiv_file_system']=true;\n $tmp_soubor='/tmp/upload/'.$val[FILE_NAME];\n $GLOBALS['COSTIM']='archiv_a'; //archivuj puvodni\n $GLOBALS['show_typ']=2;\n $GLOBALS['EDIT_ID']=$val[FILE_ID];\n\n }\n }\n\n //$tmp_soubor=TxtEcondingFromSoap(FileSystemConvertFNToFS($tmp_soubor));\n if (is_file($tmp_soubor)) unlink($tmp_soubor);\n $data=base64_decode($val[\"FILE_DATA\"]);\n if (strlen($data)<1) return VratChybu($session_id,'send_file','Není k dispozici obsah souboru '.$val[\"FILE_NAME\"]);\n if (!$fp=fopen($tmp_soubor,'w')) return VratChybu($session_id,'send_file','Chyba pri ulozeni tmp souboru '.$tmp_soubor);\n fwrite($fp,$data);\n fclose($fp);\n \n if (JePodepsanyDokument($data, 0)) {\n $GLOBALS['DESCRIPTION'] = 'el. podepsano';\n }\n \n $tmp_soubor_2=TxtEncodingFromSoap($tmp_soubor);\n //$tmp_soubor_2=$tmp_soubor;\n //echo $tmp_soubor_2;\n $ret = $uplobj['table']->SaveFileToAgendaRecord($tmp_soubor_2, $dokument_id);\n if ($ret[err_msg]>0) return VratChybu($session_id,'send_file','Chyba pri ulozeni souboru '.$val[\"FILE_NAME\"].': '.$ret[err_msg]);\n //print_r($ret);\n $file_ident=$ret[file_id];\n $text='(SEND_FILE) - k dokumentu ('.$dokument_id.') byl vložen soubor '.$val[\"FILE_NAME\"].' - ID: ('.$file_ident.')';\n WriteLog($software_id,$text,$session_id);\n $file[$counter2][FILE_ID]=$file_ident;\n $file[$counter2][FILE_NAME]=$val[\"FILE_NAME\"];\n $file[$counter2][FILE_DESC]=TxtEncoding4Soap($GLOBALS['DESCRIPTION']);\n $file[$counter2][FILE_SIZE]=' ';\n $file[$counter2][BIND_TYPE]=' ';\n $file[$counter2][FILE_DATA]=' ';\n if (is_file($tmp_soubor)) unlink($tmp_soubor);\n\n $counter2++;\n \n }\n// print_r($file);\n $text='Operace proběhla v pořádku';\n $value = array('RESULT'=>'OK','DESCRIPTION'=>TxtEncoding4Soap($text));\n $vysledek = array(\n 'return'=>new soapval('Result', 'tns:Result', $value),\n 'soubory'=>new soapval('soubor', 'tns:soubory',$file),\n );\n return VratVysledek($vysledek);\n}", "function tcp_write(&$info) {\n\t$sock=$info['sock'];\n\t$buf=&$info['buf'];\n\t$sockid=$info['sockid'];\n\tif (!isset($GLOBALS['SOCKETS'][$sockid])) return false; // shutdown this socket !\n\tif (!$buf) return true;\n\tif (defined('IN_ERROR')) {\n\t\tkill_socket($sockid);\n\t\treturn false;\n\t}\n\t$w=array($sock);\n\t$ret=socket_select($r=null,$w,$e=null,0);\n\tif ($ret===false) {\n\t\t// error !\n\t\t$GLOBALS['BtWindow']->gtk_error(socket_strerror(socket_last_error($sock)).' on socket_select [write]');\n\t\treturn;\n\t}\n\tif ($ret<=0) return true; // can't write yet !\n\t// ok, we can send data !\n\t$ret=@socket_write($sock,$buf);\n\tif ($ret===false) {\n//\t\t$GLOBALS['BtWindow']->gtk_error(socket_strerror(socket_last_error($sock)).' on socket_write');\n\t\techo 'Non-fatal error: '.socket_strerror(socket_last_error($sock)).\"\\n\";\n\t\tkill_socket($sockid);\n\t\treturn;\n\t}\n\t$GLOBALS['COUNTERS']['up']+=$ret;\n\t$GLOBALS['COUNT']['up']+=$ret;\n\t$buf=substr($buf,$ret);\n\tif ($buf===false) $buf='';\n\treturn true;\n}", "function processSocket($msg){\n\n\t\t// NOTE. Apache on Windows can generate the following warning\n\t\t// Warning: fgets(): SSL: fatal protocol error in ...\n\t\t// This is not really fatal so we set the following:\n\t\terror_reporting(E_ERROR | E_PARSE);\n\n\t\tif ($this->test)\n\t\t\t$host = $this->testURL;\n\t\telse\n\t\t\t$host = $this->liveURL;\n\n\t\t// Break the URL into usable parts\n\t\t$path = explode('/',$host);\n\n\n\t\t$host = $path[2];\n\t\tunset($path[0], $path[1], $path[2]);\n\t\t$path = '/'.(implode('/',$path));\n\n\t\t// i.e.\n\t\t// $host = 'www.securepay.com.au';\n\t\t// $path = '/xmlapi/payment';\n\n\t\t// Prepare the post query\n\t\t$post = \"POST $path HTTP/1.1\\r\\n\";\n\t\t$post .= \"Host: $host\\r\\n\";\n\t\t$post .= \"Content-type: application/x-www-form-urlencoded\\r\\n\";\n\t\t$post .= \"Content-length: \". strlen($msg).\"\\r\\n\";\n\t\t$post .= \"Connection: close\\r\\n\\r\\n$msg\";\n\n\t\t/***********************************************/\n\t\t/* Open the secure socket and post the message */\n\t\t/***********************************************/\n\t\t$h = fsockopen(\"ssl://\".$host, 443, $errno, $errstr);\n//\t\tif ($errstr) {\n\t\tif (!$h) {\n\t\t\t$response = \"Error: \".$errstr.\" (\".$errno.\")\";\n\t\t} else {\n\t\t\tfwrite($h,$post);\n\n\t\t\t/*******************************************/\n\t\t\t/* Retrieve the HTML headers (and discard) */\n\t\t\t/*******************************************/\n\t\t\t$count = 0;\n\t\t\twhile (!feof($h)) {\n\t\t\t\t$s = fgets($h, 128);\n\t\t\t\tif ( $s == \"\\r\\n\" ) {\n\t\t\t\t\t$count++;\n\t\t\t\t\t/*******************************************/\n\t\t\t\t\t/* Ignore the first \\n\\n\n\t\t\t\t\t/* This check will skip both\n\t\t\t\t\t/* HTTP/1.1 100 Continue and \n\t\t\t\t\t/* HTTP/1.1 200 OK headers\n\t\t\t\t\t/* Otherwise the loop will just skip the\n\t\t\t\t\t/* 100 Continue header and will take\n\t\t\t\t\t/* 200 OK and the XML as the response\n\t\t\t\t\t/*******************************************/\n\t\t\t\t\tif ( $count == 2 ) {\n\t\t\t\t\t\t$foundBody = true;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( $foundBody ) {\n\t\t\t\t\t$body .= $s;\n\t\t\t\t} else {\n\t\t\t\t\tif ( ($followRedirects) && (stristr($s, \"location:\") != false) ) {\n\t\t\t\t\t\t$redirect = preg_replace(\"/location:/i\", \"\", $s);\n\t\t\t\t\t\treturn ffl_HttpGet( trim($redirect) );\n\t\t\t\t\t}\n\t\t\t\t\t$header .= $s;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$response = $body;\n\t\t}\n\t\t// Close the socket\n\t\tfclose($h);\n\n\t\t// Return the body of the response\n\t\t// This will either be the transaction response\n\t\t// or an error string.\n\t\treturn $response;\n\t}", "function media_upload()\r\n{\r\n\tglobal $DIR_MEDIA, $member, $CONF, $manager;\r\n\r\n\t$uploadInfo = postFileInfo('uploadfile');\r\n\r\n\t$filename = $uploadInfo['name'];\r\n\t$filetype = $uploadInfo['type'];\r\n\t$filesize = $uploadInfo['size'];\r\n\t$filetempname = $uploadInfo['tmp_name'];\r\n\t$fileerror = intval($uploadInfo['error']);\r\n\t$mediatocu = $manager->getPlugin('NP_Mediatocu');\r\n// added yama 20080131\r\n\tif ($mediatocu->getOption('filename_rule') == \"ascii\") {\r\n\t\t$path_parts = pathinfo($filename);\r\n\t\t$filename = time() . \".\" . $path_parts['extension'];\r\n\t}\r\n// end\r\n\t\r\n\tswitch ($fileerror) {\r\n\t\tcase 0: // = UPLOAD_ERR_OK\r\n\t\t\tbreak;\r\n\t\tcase 1: // = UPLOAD_ERR_INI_SIZE\r\n\t\tcase 2: // = UPLOAD_ERR_FORM_SIZE\r\n\t\t\tmedia_doError(_ERROR_FILE_TOO_BIG);\r\n\t\t\tbreak;\r\n\t\tcase 3: // = UPLOAD_ERR_PARTIAL\r\n\t\tcase 4: // = UPLOAD_ERR_NO_FILE\r\n\t\tcase 6: // = UPLOAD_ERR_NO_TMP_DIR\r\n\t\tcase 7: // = UPLOAD_ERR_CANT_WRITE\r\n\t\tdefault:\r\n\t\t\t// include error code for debugging\r\n\t\t\t// (see http://www.php.net/manual/en/features.file-upload.errors.php)\r\n\t\t\tmedia_doError(_ERROR_BADREQUEST . ' (' . $fileerror . ')');\r\n\t\t\tbreak;\r\n\t}\r\n\t// T.Kosugi add 2006.9.1\r\n\tif (stristr($filename, '%00')) {\r\n\t\tmedia_doError(_MEDIA_PHP_38);\r\n\t}\r\n\t// T.Kosugi add end\r\n\tif (strpos($filename,\"\\0\") !== false) {\r\n\t\tmedia_doError(_MEDIA_PHP_38);\r\n\t}\r\n\tif ($filesize > $CONF['MaxUploadSize']) {\r\n\t\tmedia_doError(_ERROR_FILE_TOO_BIG);\r\n\t}\r\n\r\n\t// check file type against allowed types\r\n\t$ok = 0;\r\n\t$allowedtypes = explode (',', $CONF['AllowedTypes']);\r\n\tforeach ( $allowedtypes as $type ) {\r\n\t\tif (eregi(\"\\.\" .$type. \"$\",$filename)) {\r\n\t\t\t$ok = 1;\r\n\t\t}\r\n\t}\r\n\tif (!$ok) {\r\n\t\tmedia_doError(_ERROR_BADFILETYPE);\r\n\t}\r\n\r\n\tif (!is_uploaded_file($filetempname)) {\r\n\t\tmedia_doError(_ERROR_BADREQUEST);\r\n\t}\r\n\r\n\t// prefix filename with current date (YYYY-MM-DD-)\r\n\t// this to avoid nameclashes\r\n\tif ($CONF['MediaPrefix']) {\r\n\t\t$filename = strftime(\"%Y%m%d-\", time()) . $filename;\r\n\t}\r\n\r\n\t// Filename should not contain '/' or '\\'.\r\n\tif (preg_match('#(/|\\\\\\\\)#',$filename)) media_doError(_ERROR_DISALLOWED);\r\n\r\n\t$collection = media_requestVar('collection');\r\n\t$res = MEDIA::addMediaObject($collection, $filetempname, $filename);\r\n\r\n\tif ($res != '') {\r\n\t\tmedia_doError($res);\r\n\t}\r\n\t$uppath = $DIR_MEDIA.$collection . \"/\";\r\n\t$upfile = $DIR_MEDIA.$collection . \"/\" . $filename;\r\n\r\n\t$res = move_uploaded_file($filetempname, $upfile);\r\n\tif ($res != '') {\r\n\t media_doError($res);\r\n\t}\r\n\r\n\tmake_thumbnail($DIR_MEDIA, $collection, $upfile, $filename);\r\n\r\n\t// shows updated list afterwards\r\n\tmedia_select();\r\n}", "function http_send_file($file) {}", "public function doUpload()\n\t{\n\t\t//use the multup library to perform the upload\n\t\t$result = Multup::open('file', 'image|max:' . $this->sizeLimit * 1000, $this->location, $this->naming)\n\t\t\t->sizes($this->sizes)\n\t\t\t->set_length($this->length)\n\t\t\t->upload();\n\n\t\treturn $result[0];\n\t}", "public function applyConnection()\n\t{\n\t\t$result = (object) [\n\t\t\t'status' => true,\n\t\t\t'message' => '',\n\t\t\t'ignorable' => false,\n\t\t];\n\n\t\t// Get the parameters from the request\n\t\t$transferOption = $this->input->getCmd('method', 'ftp');\n\t\t$force = $this->input->getInt('force', 0);\n\t\t$ftpHost = $this->input->get('host', '', 'raw', 2);\n\t\t$ftpPort = $this->input->getInt('port', null);\n\t\t$ftpUsername = $this->input->get('username', '', 'raw', 2);\n\t\t$ftpPassword = $this->input->get('password', '', 'raw', 2);\n\t\t$ftpPubKey = $this->input->get('public', '', 'raw', 2);\n\t\t$ftpPrivateKey = $this->input->get('private', '', 'raw', 2);\n\t\t$ftpPassive = $this->input->getInt('passive', 1);\n\t\t$ftpPassiveFix = $this->input->getInt('passive_fix', 1);\n\t\t$ftpDirectory = $this->input->get('directory', '', 'raw', 2);\n\t\t$chunkMode = $this->input->getCmd('chunkMode', 'chunked');\n\t\t$chunkSize = $this->input->getInt('chunkSize', '5242880');\n\n\t\t// Fix the port if it's missing\n\t\tif (empty($ftpPort))\n\t\t{\n\t\t\tswitch ($transferOption)\n\t\t\t{\n\t\t\t\tcase 'ftp':\n\t\t\t\tcase 'ftpcurl':\n\t\t\t\t\t$ftpPort = 21;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'ftps':\n\t\t\t\tcase 'ftpscurl':\n\t\t\t\t\t$ftpPort = 990;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'sftp':\n\t\t\t\tcase 'sftpcurl':\n\t\t\t\t\t$ftpPort = 22;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// Store everything in the session\n\t\t$this->container->platform->setSessionVar('transfer.transferOption', $transferOption, 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.force', $force, 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.ftpHost', $ftpHost, 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.ftpPort', $ftpPort, 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.ftpUsername', $ftpUsername, 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.ftpPassword', $ftpPassword, 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.ftpPubKey', $ftpPubKey, 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.ftpPrivateKey', $ftpPrivateKey, 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.ftpDirectory', $ftpDirectory, 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.ftpPassive', $ftpPassive ? 1 : 0, 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.ftpPassiveFix', $ftpPassiveFix ? 1 : 0, 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.chunkMode', $chunkMode, 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.chunkSize', $chunkSize, 'akeeba');\n\n\t\t/** @var \\Akeeba\\Backup\\Admin\\Model\\Transfer $model */\n\t\t$model = $this->getModel();\n\n\t\ttry\n\t\t{\n\t\t\t$config = $model->getFtpConfig();\n\t\t\t$model->testConnection($config);\n\t\t}\n\t\tcatch (TransferIgnorableError $e)\n\t\t{\n\t\t\t$result = (object) [\n\t\t\t\t'status' => false,\n\t\t\t\t'ignorable' => true,\n\t\t\t\t'message' => $e->getMessage(),\n\t\t\t];\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$result = (object) [\n\t\t\t\t'status' => false,\n\t\t\t\t'message' => $e->getMessage(),\n\t\t\t\t'ignorable' => false,\n\t\t\t];\n\t\t}\n\n\t\t@ob_end_clean();\n\t\techo '###' . json_encode($result) . '###';\n\t\t$this->container->platform->closeApplication();\n\t}", "function FtpUpload($dest_file, $src_file){\n\n $server='localhost'; // ftp server\n $connection = ftp_connect($server); // connection\n\n // login to ftp server\n $user = \"linkrx7\";\n $pass = \"rotary\";\n $result = ftp_login($connection, $user, $pass);\n// check connection\nif ((!$connection) || (!$result)) { \n echo \"FTP connection has failed!\";\n echo \"Attempted to connect to $ftp_server for user $ftp_user_name\"; \n exit; \n}\n// upload the file\n$upload = ftp_put($connection, $dest_file, $src_file, FTP_BINARY); \n\n// check upload status\nif (!$upload) { \n echo \"FTP upload has failed!\";\n }\n// close the FTP stream \nftp_close($connection);\n}", "public function send_cached_file($video)\n {\n $id=$video[\"id\"];\n\n //\n // Open cache file.\n //\n bench(\"start\");\n if (($fp = fopen($this->cache_filename, 'rb')) === FALSE) {\n $this->log(2,__FUNCTION__,\"Cannot open cache file: [{$this->cache_filename}]\");\n return FALSE;\n }\n // Log it.\n $this->log(1,__FUNCTION__,\"Cache file opened for reading\");\n // Insert visit into db.\n $this->add_visit($id,filesize($this->cache_filename));\n $this->file_access_time=bench();\n \n //\n // Read headers using fgets\n //\n $hs=unserialize($video[\"reply_headers\"]);\n/*\n $hs = array();\n while (!feof($fp)) {\n if (($ln = fgets($fp)) === FALSE)\n $this->logdie(2,__FUNCTION__,\"Cannot read cache file: [{$this->cache_filename}]\");\n else if (($ln = rtrim($ln)) == '')\n break;\n else if (!preg_match('/^([^:]+): *(.*)$/', $ln, $mo))\n $this->logdie(2,__FUNCTION__,\"Invalid cached header in [{$this->cache_filename}]: [{$ln}]\");\n else\n $hs[$mo[1]] = $mo[2];\n }\n*/\n // Range request\n if (isset($this->client_request_headers['Range'])) {\n $range = $this->client_request_headers['Range'];\n if (!preg_match('/bytes[=\\s]+([0-9]+)/', $range, $mo))\n $this->log(2,__FUNCTION__,\"Unsupported Range header value: [{$range}]\");\n else {\n $firstbyte = $mo[1];\n $size = $hs['Content-Length'];\n $lastbyte = $size - $firstbyte - 1;\n $hs['Content-Range'] = \"bytes $firstbyte-$lastbyte/$size\";\n $hs['Content-Length'] -= $firstbyte;\n header('HTTP/1.0 206 Partial Content');\n if (fseek($fp, $firstbyte, SEEK_CUR))\n $this->log(2,__FUNCTION__,\"Cannot seek to position $firstbyte: [{$this->cache_filename}]\");\n }\n } // range\n // Set headers\n foreach ($hs as $n => $v) {\n header(\"$n: $v\");\n $this->log(0,__FUNCTION__,\"Cached header > client: [$n: $v]\");\n }\n $this->send_dynamic_headers_to_client();\n\n //\n // Send content.\n //\n // 'fpassthru($fp)' seems to attempt to mmap the file, and hits the PHP memory limit.\n // As a workaround, use a 'feof / fread / echo' loop.\n //\n\n $transferred=0;$tcount=0;\n bench(\"start\");\n while (!feof($fp)) {\n if (($data = fread($fp, $this->chunksize)) === FALSE) {\n $this->log(2,__FUNCTION__,\"Cannot read cache file: [{$this->cache_filename}]\");\n fclose($fp);\n return FALSE;\n } else {\n $transferred+=strlen($data);$tcount++;\n if ($tcount==1) //first packet\n if (substr($data,0,4)==chr(0x12).chr(00).chr(03).chr(0x4b)) //header missing, try to fix it\n $data=\"FLV\".chr(0x01).chr(0x05).chr(00).chr(00).chr(00).chr(0x09).chr(00).chr(00).chr(00).chr(00).$data;\n echo $data;\n }\n }\n fclose($fp);\n $transfer_time=bench();\n if ($transfer_time<1) $transfer_time=1;\n $bytes_per_sec=ROUND($transferred/ROUND($transfer_time/1000));\n $this->troughput_local=$bytes_per_sec;\n $this->log(1,__FUNCTION__,\"Served request {$this->cache_request} from cache, {$transferred} bytes transferred\");\n return true;\n }", "function onBeforeUpload(&$man, $cmd, $input) {\r\n\t\treturn true;\r\n\t}", "public function transferStart() {\n $this->_transferStarted = TRUE;\n $this->_transferSize = filesize($this->filePath);\n $this->_transferFile = fopen( $this->filePath, 'r' );\n\n return array( 'application/octet-stream', $this->_transferSize );\n }", "function upload()\n\t{\t\t\n\t\t$rfc1867 = function_exists('apc_fetch') && ini_get('apc.rfc1867');\n\n\t\tif(!function_exists('json_encode')) \n\t\t{\n\t\t\tdie('{\"error\" : \"Image upload host does not have the required dependicies (json_encode/decode)\"}');\n\t\t}\n\n\t\t$id = $_POST['APC_UPLOAD_PROGRESS'];\n\t\tif(empty($id)) \n\t\t{\n\t\t\t$id = $_GET['id'];\n\t\t}\n\n\t\tif($_SERVER['REQUEST_METHOD']=='POST') \n\t\t{ \n\t\t\t// Upload is complete\n\t\t\tif(empty($id) || !is_numeric($id)) \n\t\t\t{\n\t\t\t\t$this->_nicupload_error('Invalid Upload ID');\n\t\t\t}\n\t\t\tif(!is_dir($this->nicupload_path) || !is_writable($this->nicupload_path)) \n\t\t\t{\n\t\t\t\t$this->_nicupload_error('Upload directory '.$this->nicupload_path.' must exist and have write permissions on the server');\n\t\t\t}\n\t\t\n\t\t\t$file = $_FILES['nicImage'];\n\t\t\t$image = $file['tmp_name'];\n\t\t\n\t\t\t$max_upload_size = $this->_ini_max_upload_size();\n\t\t\tif(!$file) \n\t\t\t{\n\t\t\t\t$this->_nicupload_error('Must be less than '.$this->_bytes_to_readable($max_upload_size));\n\t\t\t}\n\t\t\n\t\t\t$ext = strtolower(substr(strrchr($file['name'], '.'), 1));\n\t\t\t@$size = getimagesize($image);\n\t\t\tif(!$size || !in_array($ext, $this->nicupload_allowed_extensions)) \n\t\t\t{\n\t\t\t\t$this->_nicupload_error('Invalid image file, must be a valid image less than '.$this->_bytes_to_readable($max_upload_size));\n\t\t\t}\n\t\t\n\t\t\t$filename = $id.'.'.$ext;\n\t\t\t$path = $this->nicupload_path.'/'.$filename;\n\t\t\n\t\t\tif(!move_uploaded_file($image, $path)) \n\t\t\t{\n\t\t\t\t$this->_nicupload_error('Server error, failed to move file');\n\t\t\t}\n\t\t\n\t\t\tif($rfc1867) \n\t\t\t{\n\t\t\t\t$status = apc_fetch('upload_'.$id);\n\t\t\t}\n\t\t\tif(!$status)\n\t\t\t{\n\t\t\t\t$status = array();\n\t\t\t}\n\t\t\t$status['done'] = 1;\n\t\t\t$status['width'] = $size[0];\n\t\t\t$status['url'] = $this->_nicupload_file_uri($filename);\n\t\t\n\t\t\tif($rfc1867) \n\t\t\t{\n\t\t\t\tapc_store('upload_'.$id, $status);\n\t\t\t}\n\n\t\t\t$this->_nicupload_output($status, $rfc1867);\n\t\t\texit;\n\t\t} \n\t\telse if(isset($_GET['check'])) \n\t\t{ \n\t\t\t// Upload progress check\n\t\t\t$check = $_GET['check'];\n\t\t\tif(!is_numeric($check)) \n\t\t\t{\n\t\t\t\t$this->_nicupload_error('Invalid upload progress id');\n\t\t\t}\n\t\t\n\t\t\tif($rfc1867) \n\t\t\t{\n\t\t\t\t$status = apc_fetch('upload_'.$check);\n\t\t\t\t\n\t\t\t\tif($status['total'] > 500000 && $status['current']/$status['total'] < 0.9 ) \n\t\t\t\t{ \n\t\t\t\t\t// Large file and we are < 90% complete\n\t\t\t\t\t$status['interval'] = 3000;\n\t\t\t\t} \n\t\t\t\telse if($status['total'] > 200000 && $status['current']/$status['total'] < 0.8 ) \n\t\t\t\t{ \n\t\t\t\t\t// Is this a largeish file and we are < 80% complete\n\t\t\t\t\t$status['interval'] = 2000;\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t$status['interval'] = 1000;\n\t\t\t\t}\n\t\t\t\t$this->_nicupload_output($status);\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\t$status = array();\n\t\t\t\t$status['noprogress'] = true;\n\t\t\t\tforeach($this->nicupload_allowed_extensions as $e) \n\t\t\t\t{\n\t\t\t\t if(file_exists($this->nicupload_path.'/'.$check.'.'.$e)) \n\t\t\t\t\t{\n\t\t\t\t $ext = $e;\n\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tif($ext) \n\t\t\t\t{\n\t\t\t\t $status['url'] = $this->_nicupload_file_uri($check.'.'.$ext);\n\t\t\t\t}\n\t\t\t\t$this->_nicupload_output($status);\n\t\t\t}\n\t\t}\n\t}", "public function validateCanUpload()\n {\n //do not allow upload for active session\n if (StreamSession::activeExists($this->shop->getId())) {\n $this->addError('file', Yii::t('app', 'You cannot upload products while Live Stream is active'));\n }\n }", "function synch($remote, $local)\n{\n\tscan();\n\t$ch = curl_init($remote.\"/myp/index.php?process=synchreq&remote=\".$local);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $result = curl_exec($ch); \n curl_close($ch);\n\t$synch_data=json_decode($result);\n\t\n\t$pdata=json_decode(file_get_contents(\"../.mypfiles\", true));\n\tfclose($mypfiles);\n\t\n\t//create a log variables\n\t$remfiles=0;\n\t$copfiles=0;\n\t\t\n\tforeach($synch_data as $sd)\n\t{\n\t\t$existence=search_loc_index_stdcls($pdata, $sd->loc);\n\t\t\n\t\tif($existence)\n\t\t{\n\t\t\t$index=array_search($sd, $synch_data);\n\t\t\tif(($sd->flag==0) && ($pdata[$existence]->flag==1))\n\t\t\t{\n\t\t\t\tif(is_dir($sd->loc)) rmdir($sd->loc); //{ echo \"Hi\"; die(); }//exec(\"rm -rf \".$sd->loc);\n\t\t\t\telse unlink($sd->loc);\n\t\t\t\t$remfiles++;\n\t\t\t}\n\t\t\t//if exist then check file creation time. if file exists at remote server with different creation date then copy it here. File is newly created.\n\t\t\telseif($sd->flag!=0)\n\t\t\t{\n\t\t\t\tif((($sd->mtime - $pdata[$existence]->mtime)>1) && ($pdata[$existence]->type!='dir'))\n\t\t\t\t{\n\t\t\t\t\tunlink($sd->loc);\n\t\t\t\t\t$remfiles++;\n\t\t\t\t\t\n\t\t\t\t\t$copy[]=$sd->loc;\n\t\t\t\t\t$copfiles++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//add the file into copy list\n\t\t\tif(($sd->flag!=0) && (!file_exists($sd->loc))) \n\t\t\t{\n\t\t\t\t$copy[]=$sd->loc;\n\t\t\t\t$copfiles++;\n\t\t\t}\t\t\t\n\t\t}\t\n\t}\n\t\n\tif((isset($copy))&& (count($copy)>0))\n\t{\n\t\t//now sending a file copying request to remote server\n\t\t$copy=json_encode($copy);\n\t\t$url = $remote.\"/myp/?process=copyreq&remote=\".$local;\n\t\t\n\t\t$fields=array('copy'=>$copy, 'process'=>'copyreq'); //current server url should be passed to ensure security\n\t\tforeach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }\n\t\trtrim($fields_string, '&');\n\n\t\t//open connection\n\t\t$ch = curl_init($url);\n\t\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\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);\n\t\t\n\t\t$file_to_dl=$remote.\"/myp/tmp/\".$result.\".zip\";\n\t\texec(\"wget -O tmp/\".$result.\".zip \".$file_to_dl);\t\t\n\t\t\n\t\t//ask remote server to delete it's temp zip file\n\t\t$chd = curl_init($remote.\"/myp/index.php?process=delreq&remote=\".$local.\"&file=\".$result);\n\t\tcurl_setopt($chd, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($chd, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_exec($chd);\n\t\tcurl_close($chd);\n\t\t\n\t\texec(\"unzip -B tmp/\".$result.\".zip -d ../\");\n\t\tunlink(\"tmp/\".$result.\".zip\");\n\t}\n\t\n\tif(!file_exists(\".myplog\"))\n\t{\n\t\tfopen(\".myplog\", \"w\");\n\t\t$break=\"\";\n\t}\n\telse $break=\"\\n\";\n\t\n\tif(($remfiles>0) || ($copfiles>0)) \n\t{\n\t\t$logs=file_get_contents(\".myplog\");\n\t\t$logs=$logs.$break.\"Time: \".date(\"Y-m-d H:i:s\").\" Node: \".$remote.\" Removed: \".$remfiles.\" Added: \".$copfiles;\n\t\tfile_put_contents(\".myplog\", $logs);\n\t}\n}", "public function handle_upload()\n {\n }", "function fileUpload()\n{\n\tglobal $files;\n\tglobal $herr;\n\tglobal $CONFIGVAR;\n\tglobal $dbapp;\n\tglobal $ajax;\n\n\t// Setup\n\t$basePath = $CONFIGVAR['files_base_path']['value'] . '/' .\n\t\t$CONFIGVAR['files_turned_in']['value'];\n\t$maxSize = $CONFIGVAR['files_max_upload_size']['value'];\n\t$extensions = $CONFIGVAR['files_allowed_extensions']['value'];\n\t$extList = explode(' ', $extensions);\n\n\t// Upload\n\t$filelist = $files->fileUpload($basePath, '/', $maxSize, true);\n\n\t// Verify that the extension of the file(s) are allowed.\n\tif (is_array($filelist))\n\t{\n\t\tforeach($filelist as $kx => $vx)\n\t\t{\n\t\t\t// Get the file extension\n\t\t\t$filename = basename($kx);\n\t\t\t$component = explode('.', $filename);\n\t\t\tif (!is_array($component)) continue;\n\t\t\tif (count($component) == 0) continue;\n\t\t\t$ext = $component[count($component) - 1];\n\n\t\t\t// Filter through the extension list. If it's not\n\t\t\t// on the list, then add to the error message.\n\t\t\t$eflag = true;\n\t\t\tforeach($extList as $kxa)\n\t\t\t{\n\t\t\t\tif (strcasecmp($ext, $kxa) == 0)\n\t\t\t\t{\n\t\t\t\t\t$eflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($eflag)\n\t\t\t{\n\t\t\t\t// Not on the list, so delete the file.\n\t\t\t\t$herr->puterrmsg('The file ' . $filename .\n\t\t\t\t\t' does not have a valid extension. File has been removed.');\n\t\t\t\tunlink($basePath . '/' . $vx);\n\t\t\t\t$filelist[$kx] = NULL;\n\t\t\t}\n\t\t}\n\t}\n\telse\n\t{\n\t\thandleError('Upload Error: No files received.');\n\t}\n\n\t// Parse the parameter block in the request header.\n\t$params = $_SERVER['HTTP_X_PARAMETER'];\n\tparse_str($params, $_POST);\n\t$student = $_SESSION['userId'];\n\t$assign = getPostValue('assignment');\n\t$step = getPostValue('step');\n\n\t// Get the assignment information\n\t$rxa = $dbapp->queryAssignment($assign);\n\tif ($rxa == false)\n\t{\n\t\tif ($herr->checkState())\n\t\t\thandleError($herr->errorGetMessage());\n\t\telse\n\t\t\thandleError('Database Error: Unable to retrieve assignment information.');\n\t}\n\n\t// Write the turnin data into the database.\n\t$result = $dbapp->insertTurnin($student, $assign, $step, $rxa['courseid'], time());\n\tif ($result == false)\n\t{\n\t\tif ($herr->checkState())\n\t\t\thandleError($herr->errorGetMessage());\n\t\telse\n\t\t\thandleError('Database Error: Unable to insert turnin information.');\n\t}\n\t$rxa = $dbapp->queryTurninStudentAssignAll($student, $assign);\n\tif ($rxa == false)\n\t{\n\t\tif ($herr->checkState())\n\t\t\thandleError($herr->errorGetMessage());\n\t\telse\n\t\t\thandleEerror('Database Error: Unable to retrieve turnin information.');\n\t}\n\n\t$maxCount = -1;\n\tforeach($rxa as $kx => $vx)\n\t{\n\t\tif ($vx['subcount'] > $maxCount) $maxCount = $vx['subcount'];\n\t}\n\n\tforeach($filelist as $kx => $vx)\n\t{\n\t\t$result = $dbapp->insertFilename($student, $assign, $step,\n\t\t\t$maxCount, $kx, $vx);\n\t\tif ($result == false)\n\t\t{\n\t\t\t$dbapp->deleteFilenameCount($student, $assign, $step, $maxCount);\n\t\t\tfileError($basePath, $filelist);\n\t\t\tif ($herr->checkState())\n\t\t\t\thandleError($herr->errorGetMessage());\n\t\t\telse\n\t\t\t\thandleEerror('Database Error: Unable to save file information.');\n\t\t}\n\t}\n\n\t// Refresh page\n\t$mainContent = formPage($assign, $step);\n\t$ajax->loadQueueCommand(ajaxClass::CMD_OKDISP,\n\t\t'Assignment has been submitted successfully.');\n\t$ajax->loadQueueCommand(ajaxClass::CMD_WMAINPANEL, $mainContent);\n\t$ajax->sendQueue();\n}", "public function validUpload() {\t\n\t\tif($this->file['error'] == 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static function upload() {\n if(isset($_POST['q1'])){\n $nomexpediteur = $_POST['q1'];\n }\n \n $choixg = isset($_POST['q1']) ? $_POST['q1'] : NULL;\n \n if(empty($choixg)){\n echo \"Remplis l'information Nom de famille<br>\";\n }else {\n }\n\n if (!preg_match(\"/^[a-zA-Z ]*$/\",$choixg)) {\n echo \"un chiffre dans le nom ?<br>\";\n }\n\n //recupere le mail de l'expediteur \n if(isset($_POST['q2'])){\n $mailUploader = $_POST['q2'];\n }\n $choixi = isset($_POST['q2']) ? $_POST['q2'] : NULL;\n\n if (empty($_POST[\"q2\"])) {\n $CourrielErr = \"Email is required\";\n echo $CourrielErr;\n } else if (!filter_var($choixi, FILTER_VALIDATE_EMAIL)) {\n $CourrielErr = \"Invalid email format\"; \n echo $CourrielErr;\n } \n //recupere recipent \n if(isset($_POST['q3'])){\n $recipent = $_POST['q3'];\n }\n\n //recupere le mail for friends \n if(isset($_POST['q4'])){\n $mailFriends = $_POST['q4'];\n }\n\n $choixig = isset($_POST['q4']) ? $_POST['q4'] : NULL;\n\n if (empty($_POST[\"q4\"])) {\n $CourrielErr = \"Email is required\";\n echo $CourrielErr;\n } else if (!filter_var($choixi, FILTER_VALIDATE_EMAIL)) {\n $CourrielErr = \"Invalid email format\"; \n echo $CourrielErr;\n } \n\n //recupere le messagesender \n if(isset($_POST['message'])){\n $messagesender = $_POST['message'];\n }\n $choixh = isset($_POST['message']) ? $_POST['message'] : NULL;\n //$testcommentaires = Wetransfert::test_input($choixh);\n \n $nb_erreur = 0;\n if(!empty($_FILES)){\n \n if(isset($_FILES['q6']['error'])){\n switch($_FILES['q6']['error']){\n case 1:\n $message['urlImg'] = '';\n $message['msg'] = \"Votre fichier ne doit pas dépasser 1Go\";\n $message['type'] = 'error';\n $nb_erreur++;\n break;\n case 2:\n $message['urlImg'] = '';\n $message['msg'] = \"Erreur\";\n $message['type'] = 'error';\n $nb_erreur++;\n break;\n case 3:\n $message['urlImg'] = '';\n $message['msg'] = \"Une erreur est survenue lors du téléchargement.\";\n $message['type'] = 'error';\n $nb_erreur++;\n break;\n case 4:\n $message['urlImg'] = '';\n $message['msg'] = \"Aucun fichier n'a été séléctionné.\";\n $message['type'] = 'error';\n $nb_erreur++;\n break; \n }\n }\n \n if($nb_erreur == 0){\n $file_name = Wetransfert::cryptFileName($_FILES['q6']);\n //$img = $_FILES['q6'];\n //$ext = substr($img['name'], strrpos($img['name'], '.') + 1);\n //$allow_ext = array(\"jpg\", \"JPG\", \"png\", \"PNG\", \"JPEG\", \"jpeg\", \"GIF\", \"gif\");\n \n //if(in_array($ext, $allow_ext)){\n //définit l'image en cours\n //$file_name = 'file_'.substr(md5($img['name']), 0, 5).'_'.time().'.'.$ext;\n \n //Récupère le chemin temporaire + la direction où on veux l'envoyer.\n $tmp_name = $_FILES[\"q6\"][\"tmp_name\"];\n $directory = $_SERVER['DOCUMENT_ROOT'].\"/we_transfer_like/app/assets/dossier/\".$file_name;\n //var_dump($_SERVER['DOCUMENT_ROOT']);die();\n move_uploaded_file($tmp_name, $directory);\n //}\n \n $dateUpload = date('d-m-Y-G-i');\n\n\n //upload\n $db = Database::getInstance();\n $stmt = $db->prepare(\"INSERT INTO upload(fichierUpload,mailUploader,dateUpload) VALUES (:fichierUpload,:mailUploader,:dateUpload)\");\n \n $stmt->setFetchMode(PDO::FETCH_ASSOC);\n \n $stmt->bindParam(':fichierUpload',$file_name);\n $stmt->bindParam(':mailUploader',$mailUploader);\n $stmt->bindParam(':dateUpload',$dateUpload); \n $stmt->execute();\n \n }\n }\n }", "public function upload_to_fb()\n {\n if(array_key_exists('output_file', $this->config))\n {\n // build md5 hash of previous stored xml without <mod_time> Elements\n $oldphonebhash = md5(preg_replace(\"/<mod_time>(\\\\d{10})/\",\"\",file_get_contents($this->config['output_file'],'r'),-1,$debugoldtsreplace));\n $output = fopen($this->config['output_file'], 'w');\n if($output)\n {\n fwrite($output, $this->fbxml);\n fclose($output);\n print \" Saved to file \" . $this->config['output_file'] . PHP_EOL;\n }\n\t if (array_key_exists('output_and_upload', $this->config) and $this->config['output_and_upload'])\n\t {\n\t \t$newphonebhash = md5(preg_replace(\"/<mod_time>(\\\\d{10})/\",\"\",file_get_contents($this->config['output_file'],'r'),-1,$debugnewtsreplace));\n\t \tprint \" INFO: Compare old and new phonebook file versions.\" . PHP_EOL . \" INFO: old version: \" . $oldphonebhash . PHP_EOL . \" INFO: new version: \" . $newphonebhash . PHP_EOL;\n\t \tif($oldphonebhash === $newphonebhash)\n \t{\n \tprint \" INFO: Same versions ==> No changes in phonebook or images\" . PHP_EOL . \" EXIT: No need to upload phonebook to the FRITZ!Box.\". PHP_EOL;\n \treturn 0;\n \t}\n \telse\n \tprint \" INFO: Different versions ==> Changes in phonebook.\" . PHP_EOL . \" INFO: Changes dedected! Continue with upload.\" . PHP_EOL;\n }\n\t else\n return 0; \n }\n // now we upload the photo jpgs first being stored in the\n // temp directory.\n\n // perform an ftps-connection to copy over the photos to a specified directory\n $ftp_server = $this->config['fritzbox_ip_ftp'];\n $conn_id = ftp_ssl_connect($ftp_server);\n if($conn_id == false)\n {\n print \" WARNING: Secure connection to FTP-server '\" . $ftp_server . \"' failed, retrying without SSL.\" . PHP_EOL;\n $conn_id = ftp_connect($ftp_server);\n }\n\n if($conn_id != false)\n {\n ftp_set_option($conn_id, FTP_TIMEOUT_SEC, 60);\n $login_result = ftp_login($conn_id, $this->config['fritzbox_user'], $this->config['fritzbox_pw']);\n if($login_result === true)\n {\n ftp_pasv($conn_id, true);\n\n // create remote photo path on FRITZ!Box if it doesn't exist\n $remote_path = $this->config['usb_disk'] . \"/FRITZ/fonpix\";\n $all_existing_files = ftp_nlist($conn_id, $remote_path);\n if($all_existing_files == false)\n {\n ftp_mkdir($conn_id, $remote_path);\n $all_existing_files = array();\n }\n\n // now iterate through all jpg files in tempdir and upload them if necessary\n $dir = new DirectoryIterator($this->tmpdir);\n foreach($dir as $fileinfo)\n {\n if(!$fileinfo->isDot())\n {\n if($fileinfo->getExtension() == \"jpg\")\n {\n $file = $fileinfo->getFilename();\n\n print \" FTP-Upload '\" . $file . \"'...\";\n if(!in_array($remote_path . \"/\" . $file, $all_existing_files))\n {\n if(!ftp_put($conn_id, $remote_path . \"/\" . $file, $fileinfo->getPathname(), FTP_BINARY))\n {\n // retry when a fault occurs.\n print \" retrying... \";\n $conn_id = ftp_ssl_connect($ftp_server);\n if($conn_id == false)\n {\n print \" WARNING: Secure re-connection to FTP-server '\" . $ftp_server . \"' failed, retrying without SSL.\" . PHP_EOL;\n $conn_id = ftp_connect($ftp_server);\n }\n\n if($conn_id == false)\n {\n print \" ERROR: couldn't re-connect to FTP server '\" . $ftp_server . \"', abortіng.\" . PHP_EOL;\n break;\n }\n\n $login_result = ftp_login($conn_id, $this->config['fritzbox_user'], $this->config['fritzbox_pw']);\n if($login_result === false)\n {\n print \" ERROR: couldn't re-login to FTP-server '\" . $ftp_server . \"' with provided username/password settings.\" . PHP_EOL;\n break;\n }\n\n ftp_pasv($conn_id, true);\n if(!ftp_put($conn_id, $remote_path . \"/\" . $file, $fileinfo->getPathname(), FTP_BINARY))\n print \" ERROR: while uploading file \" . $fileinfo->getFilename() . PHP_EOL;\n else\n print \" ok.\" . PHP_EOL;\n }\n else\n print \" ok.\" . PHP_EOL;\n\n // cleanup old files\n foreach($all_existing_files as $existing_file)\n {\n if(strpos($existing_file, $remote_path . \"/\" . substr($file, 0, -10)) !== false)\n {\n print \" FTP-Delete: \" . $existing_file . PHP_EOL;\n ftp_delete($conn_id, $remote_path . \"/\" . basename($existing_file));\n }\n }\n }\n else\n print \" already exists.\" . PHP_EOL;\n }\n }\n }\n }\n else\n print \" ERROR: couldn't login to FTP-server '\" . $ftp_server . \"' with provided username/password settings.\" . PHP_EOL;\n\n // close ftp connection\n ftp_close($conn_id);\n }\n else\n print \" ERROR: couldn't connect to FTP server '\" . $ftp_server . \"'.\" . PHP_EOL;\n \n // lets post the phonebook xml to the FRITZ!Box\n print \" Uploading Phonebook XML to \" . $this->config['fritzbox_ip'] . PHP_EOL;\n try\n {\n $fritz = new fritzbox_api($this->config['fritzbox_pw'],\n $this->config['fritzbox_user'],\n $this->config['fritzbox_ip'],\n $this->config['fritzbox_force_local_login']);\n\n $formfields = array(\n 'PhonebookId' => $this->config['phonebook_number']\n );\n\n $filefileds = array('PhonebookImportFile' => array(\n 'type' => 'text/xml',\n 'filename' => 'updatepb.xml',\n 'content' => $this->fbxml,\n )\n );\n\n $raw_result = $fritz->doPostFile($formfields, $filefileds); // send the command\n $msg = $this->_parse_fb_result($raw_result);\n unset($fritz); // destroy the object to log out\n\n print \" FRITZ!Box returned message: '\" . $msg . \"'\" . PHP_EOL;\n }\n catch(Exception $e)\n {\n print \" ERROR: \" . $e->getMessage() . PHP_EOL; // show the error message in anything failed\n return false;\n }\n return true;\n }", "function get_http_request() {\n\t\t$url_parts = get_url_parts();\n\t\t$path = '/' . implode('/', $url_parts);\n\t\t$is_logout = $path == '/logout';\n\t\t$method = strtoupper(trim($_SERVER['REQUEST_METHOD']));\n\t\t$verified_user_id = 0;\n\t\t$login_id = null;\n\t\t$name = null;\n\t\t$is_admin = false;\n\t\t$ip = trim($_SERVER['REMOTE_ADDR']);\n\t\t$content = null;\n\t\t$form = array();\n\t\t$content_type = null;\n\t\t$raw_content = null;\n\t\t$files = array();\n\t\t$cookies = array();\n\t\tforeach ($_COOKIE as $k => $v) {\n\t\t\t$cookies[$k] = $v;\n\t\t}\n\t\t\n\t\tif ($method != 'GET') {\n\t\t\t$content_type = trim(isset($_SERVER['CONTENT_TYPE']) ? $_SERVER['CONTENT_TYPE'] : $_SERVER['HTTP_CONTENT_TYPE']);\n\t\t\tif (strpos($content_type, 'application/x-www-form-urlencoded') === 0 || strpos($content_type, 'multipart/form-data') === 0) {\n\t\t\t\tforeach ($_POST as $key => $value) {\n\t\t\t\t\t$form[$key] = $value;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tforeach ($_FILES as $key => $value) {\n\t\t\t\t\t$file_info = array(\n\t\t\t\t\t\t'id' => $key,\n\t\t\t\t\t\t'mime' => $value['type'],\n\t\t\t\t\t\t'type' => get_file_type($value['type']),\n\t\t\t\t\t\t'size' => $value['size'],\n\t\t\t\t\t\t'path' => $value['tmp_name'],\n\t\t\t\t\t\t'is_image' => false);\n\t\t\t\t\t\n\t\t\t\t\tif ($file_info['type'] == 'PNG' || \n\t\t\t\t\t\t$file_info['type'] == 'JPEG' || \n\t\t\t\t\t\t$file_info['type'] == 'GIF') {\n\t\t\t\t\t\t$file_info['is_image'] = true;\n\t\t\t\t\t\t$dim = @getimagesize($file_info['path']);\n\t\t\t\t\t\tif (is_array($dim) && count($dim) >= 2) {\n\t\t\t\t\t\t\t$file_info['image_width'] = $dim[0];\n\t\t\t\t\t\t\t$file_info['image_height'] = $dim[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tarray_push($files, $file_info);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$raw_content = file_get_contents('php://input');\n\t\t\t}\n\t\t}\n\t\t\n\t\t$session_token = trim($cookies['nptoken']);\n\t\t$client = trim($cookies['npclient']);\n\t\t\n\t\t$ttl_hours = 24 * 30; // change this for other clients upon request.\n\t\t\n\t\tif (!$is_logout && isset($form['login_username'])) {\n\t\t\t$login_result = api_account_create_session($login_result['name'], $form['login_password'], $client, $ip, $ttl_hours);\n\t\t\tif ($login_result['status'] == 'OK') {\n\t\t\t\t$user_id = $login_result['user_id'];\n\t\t\t\t$session_token = $login_result['token'];\n\t\t\t}\n\t\t}\n\t\t\n\t\t$login_failure = false;\n\t\t$user_info = null;\n\t\tif (!$is_logout && strlen($session_token) > 0) {\n\t\t\t$user_info = api_account_authenticate_with_session($session_token, $ip);\n\t\t\tif ($user_info['status'] != 'OK') {\n\t\t\t\t$user_info = null;\n\t\t\t\t$login_failure = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($user_info !== null) {\n\t\t\t$verified_user_id = $user_info['user_id'];\n\t\t\t$is_admin = $user_info['is_admin'];\n\t\t\t$login_id = $user_info['login_id'];\n\t\t\t$name = $user_info['name'];\n\t\t\t$avatar = $user_info['avatar'];\n\t\t}\n\t\t\n\t\tif ($is_logout) {\n\t\t\t$session_token = '';\n\t\t}\n\t\t\n\t\tsetcookie('npclient', 'web', $expire);\n\t\tsetcookie('nptoken', $session_token, $expire);\n\t\t\n\t\treturn array(\n\t\t\t'method' => $method,\n\t\t\t'path' => $path,\n\t\t\t'path_parts' => $url_parts,\n\t\t\t'user_id' => $verified_user_id,\n\t\t\t'login_id' => $login_id,\n\t\t\t'logged_in' => $verified_user_id > 0,\n\t\t\t'login_failure' => $login_failure,\n\t\t\t'name' => $name,\n\t\t\t'is_admin' => $is_admin,\n\t\t\t'content_type' => $content_type,\n\t\t\t'form' => $form,\n\t\t\t'raw_content' => $raw_content,\n\t\t\t'files' => $files,\n\t\t\t'cookies' => $cookies,\n\t\t\t'ip' => $ip,\n\t\t\t'avatar' => $avatar,\n\t\t\t'now' => time(),\n\t\t);\n\t}", "public function testDiskFlooding()\n {\n $objRequest = \\Symfony\\Component\\HttpFoundation\\Request::create('http://localhost' . AjaxAction::generateUrl(MultiFileUpload::NAME, MultiFileUpload::ACTION_UPLOAD), 'post');\n $objRequest->headers->set('X-Requested-With', 'XMLHttpRequest'); // xhr request\n $objRequest->request->set('requestToken', \\RequestToken::get());\n $objRequest->request->set('files', []);\n\n @copy(UNIT_TESTING_FILES . '/file name.zip', UNIT_TESTING_FILES . '/tmp/file name.zip');\n @copy(UNIT_TESTING_FILES . '/file---name.zip', UNIT_TESTING_FILES . '/tmp/file---name.zip');\n @copy(UNIT_TESTING_FILES . '/file--.--.-.--name.zip', UNIT_TESTING_FILES . '/tmp/file--.--.-.--name.zip');\n @copy(UNIT_TESTING_FILES . '/file...name..zip', UNIT_TESTING_FILES . '/tmp/file...name..zip');\n @copy(UNIT_TESTING_FILES . '/file___name.zip', UNIT_TESTING_FILES . '/tmp/file___name.zip');\n @copy(UNIT_TESTING_FILES . '/.~file name#%&*{}:<>?+|\"\\'.zip', UNIT_TESTING_FILES . '/tmp/.~file name#%&*{}:<>?+|\"\\'.zip');\n\n // simulate upload of php file hidden in an image file\n $arrFiles = [\n new UploadedFile(// Path to the file to send\n UNIT_TESTING_FILES . '/tmp/file name.zip', // Name of the sent file\n 'file name.zip', // mime type\n 'application/zip', // size of the file\n 48140, null, true),\n new UploadedFile(// Path to the file to send\n UNIT_TESTING_FILES . '/tmp/file---name.zip', // Name of the sent file\n 'file---name.zip', // mime type\n 'application/zip', // size of the file\n 48140, null, true),\n new UploadedFile(// Path to the file to send\n UNIT_TESTING_FILES . '/tmp/file--.--.-.--name.zip', // Name of the sent file\n 'file--.--.-.--name.zip', // mime type\n 'application/zip', // size of the file\n 48140, null, true),\n new UploadedFile(// Path to the file to send\n UNIT_TESTING_FILES . '/tmp/file...name..zip', // Name of the sent file\n 'file...name..zip', // mime type\n 'application/zip', // size of the file\n 48140, null, true),\n new UploadedFile(// Path to the file to send\n UNIT_TESTING_FILES . '/tmp/file___name.zip', // Name of the sent file\n 'file___name.zip', // mime type\n 'application/zip', // size of the file\n 48140, null, true),\n new UploadedFile(// Path to the file to send\n UNIT_TESTING_FILES . '/tmp/.~file name#%&*{}:<>?+|\"\\'.zip', // Name of the sent file\n '.~file name#%&*{}:<>?+|\"\\'.zip', // mime type\n 'application/zip', // size of the file\n 48140, null, true),\n ];\n\n $objRequest->files->add(['files' => $arrFiles]);\n\n Request::set($objRequest);\n\n $arrDca = [\n 'inputType' => 'multifileupload',\n 'eval' => [\n 'uploadFolder' => UNIT_TESTING_FILES . 'uploads/',\n 'extensions' => 'zip',\n 'maxFiles' => 2,\n 'fieldType' => 'checkbox',\n ],\n ];\n\n $arrAttributes = \\Widget::getAttributesFromDca($arrDca, 'files');\n\n try {\n $objUploader = new FormMultiFileUpload($arrAttributes);\n // unreachable code: if no exception is thrown after form was created, something went wrong\n $this->expectException(\\HeimrichHannot\\Ajax\\Exception\\AjaxExitException::class);\n } catch (AjaxExitException $e) {\n $objJson = json_decode($e->getMessage());\n\n $this->assertSame('Bulk file upload violation.', $objJson->message);\n }\n }", "public function __construct($file, $content_type = 'video/mp4')\n {\n\n // PHP-FCGI getallheaders support\n if (!function_exists('getallheaders')) {\n function getallheaders() {\n $headers = [];\n foreach ($_SERVER as $name => $value) {\n if (substr($name, 0, 5) == 'HTTP_') {\n $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;\n }\n }\n return $headers;\n }\n } \n\n // Make sure the files exists\n if (!file_exists($file)) {\n parent::__construct(Response::$statusTexts[Response::HTTP_INVALID_REQUEST],Response::HTTP_INVALID_REQUEST);\n }\n\n // Get file size\n $filesize = sprintf(\"%u\", filesize($file));\n\n // Handle 'Range' header\n if (isset($_SERVER['HTTP_RANGE'])){\n $range = $_SERVER['HTTP_RANGE'];\n } elseif($apache = getallheaders()){\n $headers = array();\n foreach ($apache as $header => $val){\n $headers[strtolower($header)] = $val;\n }\n if(isset($headers['range'])){\n $range = $headers['range'];\n }\n else $range = FALSE;\n } else $range = FALSE;\n\n //Is range\n if ($range) {\n $partial = true;\n list($param, $range) = explode('=',$range);\n // Bad request - range unit is not 'bytes'\n if(strtolower(trim($param)) != 'bytes'){\n parent::__construct(Response::$statusTexts[Response::HTTP_INVALID_REQUEST],Response::HTTP_INVALID_REQUEST);\n }\n // Get range values\n $range = explode(',',$range);\n $range = explode('-',$range[0]);\n // Deal with range values\n if ($range[0] === ''){\n $end = $filesize - 1;\n $start = $end - intval($range[0]);\n } else if ($range[1] === '') {\n $start = intval($range[0]);\n $end = $filesize - 1;\n }else{\n // Both numbers present, return specific range\n $start = intval($range[0]);\n $end = intval($range[1]);\n if ($end >= $filesize || (!$start && (!$end || $end == ($filesize - 1)))) $partial = false;\n }\n $length = $end - $start + 1;\n }\n // No range requested\n else {\n $partial = false;\n $length = $filesize;\n }\n\n $headers = [\n \"Content-Type: $content_type\",\n \"Content-Length: $length\",\n \"Accept-Ranges: bytes\"\n ];\n\n $content = '';\n\n // send extra headers for range handling...\n if ($partial) {\n $headers[] = \"HTTP/1.1 206 Partial Content\";\n $headers[] = \"Content-Range: bytes $start-$end/$filesize\";\n if (!$fp = fopen($file, 'rb')) { // Error out if we can't read the file\n parent::__construct(Response::$statusTexts[Response::HTTP_INTERNAL_SERVER_ERROR],Response::HTTP_INTERNAL_SERVER_ERROR);\n }\n if ($start) fseek($fp,$start);\n while($length){\n set_time_limit(0);\n $read = ($length > 8192) ? 8192 : $length;\n $length -= $read;\n $content .= fread($fp,$read);\n }\n fclose($fp);\n }\n //just send the whole file\n else {\n $content = file_get_contents($file);\n }\n\n\n parent::__construct($content, 200, $headers);\n\n }", "function transfer()\n\t{\n\t\tglobal $phpbb_root_path;\n\n\t\t$this->file_perms\t= 0644;\n\t\t$this->dir_perms\t= 0777;\n\n\t\t// We use the store directory as temporary path to circumvent open basedir restrictions\n\t\t$this->tmp_path = $phpbb_root_path . 'store/';\n\t}", "protected function _init_transfers()\n {\n foreach ($this->_files as $_k => $_file) {\n if (!$_file instanceof File) {\n continue;\n }\n $connection = ftp_connect(\n $this->_options['hostname'], \n $this->_options['port'], \n $this->_options['timeout']\n );\n if (false === $connection) {\n break;\n }\n $login = ftp_login(\n $connection, \n $this->_options['username'], \n $this->_options['password']\n );\n if ($login === false) {\n ftp_close($connection);\n break;\n }\n if (!file_exists($_file->get_full_path())) {\n emit(\n $this->_sig_failure,\n new EV_Failure($_file)\n );\n } else {\n $transfer = ftp_nb_put(\n $connection,\n $_file->get_name(),\n $_file->get_full_path(),\n $_file->get_transfer_mode()\n );\n if ($transfer === FTP_MOREDATA) {\n $this->_uploading[] = [\n $connection,\n $_file\n ];\n } else {\n if ($transfer == FTP_FINISHED) {\n emit(\n $this->_sig_complete,\n new EV_Complete($_file)\n );\n // Close the FTP connection to that file\n ftp_close($connection);\n $this->_uploaded[] = $_file;\n } else {\n emit(\n $this->_sig_failure,\n new EV_Failure($_file)\n );\n // Close the FTP connection to that file\n ftp_close($connection);\n }\n }\n }\n unset($this->_files[$_k]);\n }\n }", "private function uploadFile($local_file, $source, $remote_file, $remote_dir) {\n if (($fh = fopen(\"$source$local_file\", \"rb\"))) {\n $buffer = fread($fh, 4096);\n fclose($fh);\n }\n if (empty($buffer))\n throw new Exception(\"Could not open local file: $source$local_file.\");\n\n $fh = fopen(\"$source$local_file\", \"rb\");\n if ($fh) {\n $maxBytes = WikiGlobalConfig::getConf('maxVarLengthFTP', 'wikiiocmodel');\n $remote_dir = \"/\".trim($remote_dir,\"/\").\"/\";\n ssh2_sftp_mkdir($this->sftp, $remote_dir, 0777, TRUE);\n\n $stream = @fopen(\"ssh2.sftp://{$this->sftp}$remote_dir$remote_file\", 'w');\n if (! $stream)\n throw new Exception(\"Could not open remote file: $remote_dir$remote_file\");\n\n while (! feof($fh)) {\n $data_to_send = @fread($fh, $maxBytes); //Llegir 1 MB\n if (@fwrite($stream, $data_to_send) === false)\n throw new Exception(\"Could not send data from file: $source$local_file.\");\n }\n $ret = fclose($stream);\n fclose($fh);\n }\n //Logger::debug(\"FtpSender::uploadFile-end: \\$ret=$ret\", 0, __LINE__, basename(__FILE__), 1);\n return $ret;\n }", "public function upload()\n {\n if (!ini_get('file_uploads'))\n {\n throw new Exception(\"Server setting forbids file uploads\");\n }\n if (empty($_FILES['uploadFile']))\n {\n throw new Exception(\"No file uploaded\");\n }\n\n $this->fileInfo = $_FILES['uploadFile'];\n\n if ($this->fileInfo['error'] != UPLOAD_ERR_OK)\n {\n if ($this->fileInfo['error'] == UPLOAD_ERR_INI_SIZE)\n {\n throw new Exception(\"File too big\");\n }\n elseif ($this->fileInfo['error'] == UPLOAD_ERR_FORM_SIZE)\n {\n throw new Exception(\"File too big\");\n }\n elseif ($this->fileInfo['error'] == UPLOAD_ERR_PARTIAL)\n {\n throw new Exception(\"Incomplete file upload\");\n }\n elseif ($this->fileInfo['error'] == UPLOAD_ERR_NO_FILE)\n {\n throw new Exception(\"No file selected or uploaded\");\n }\n elseif ($this->fileInfo['error'] == UPLOAD_ERR_NO_TMP_DIR)\n {\n throw new Exception(\"SYSTEM: Missing upload temp directory\");\n }\n elseif ($this->fileInfo['error'] == UPLOAD_ERR_CANT_WRITE)\n {\n throw new Exception(\"SYSTEM: Can't write to upload directory\");\n }\n elseif ($this->fileInfo['error'] == UPLOAD_ERR_EXTENSION)\n {\n throw new Exception(\"SYSTEM: Stopped by PHP extension\");\n }\n }\n\n if ($this->fileInfo['type'] != 'text/css'){\n throw new Exception(\"Plain vanilla CSS files only please\");\n }\n\n $this->tmpFile = $this->fileInfo['tmp_name'];\n\n // would need to spend some time to get this nailed down. returing text/x-c++ on sample css files I've tried\n /*\n $finfo = finfo_open(FILEINFO_MIME_TYPE);\n echo \"<br/>MIME: \" . finfo_file($finfo, $tmpFile);\n finfo_close($finfo);\n */\n\n if (!is_uploaded_file($this->tmpFile))\n {\n throw new Exception(\"SYSTEM: Temp file is not a legitimate uploaded file\");\n }\n\n if (!is_dir($this->uploadDir))\n {\n throw new Exception(\"SYSTEM: Can't find upload dir\");\n }\n\n // save uploaded file\n $this->filepath = $this->uploadDir . DIRECTORY_SEPARATOR . $this->fileInfo['name'];\n\n if (!move_uploaded_file($this->tmpFile, $this->filepath))\n {\n throw new Exception(\"SYSTEM: Unable to move temp file to upload dir\");\n }\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}", "public function isThisYourUpload()\n\t{\n\t\treturn !($this->httpRequest->getHeader('user-agent') === 'Shockwave Flash');\n\t}", "function sendRequest(){\n $this->fpopened = $this->fopen($this->urltoopen);\n if ($this->fpopened!==false) return true;\n return false;\n }", "function onUpload(&$man, $cmd, $input) {\r\n\t\treturn null;\r\n\t}", "function upload($path) {\r\n\t\t$ok = false;\r\n\r\n\t\t$this->uploadpath .= $path . '/';\r\n\r\n\t\tif ($this->validate()) {\r\n\t\t\t$this->filename = $this->params['form']['Filedata']['name'];\r\n\t\t\t$ok = $this->write();\r\n\t\t}\r\n\t\t\r\n\t\tif (!$ok) {\r\n\t\t\theader(\"HTTP/1.0 500 Internal Server Error\");\t//this should tell SWFUpload what's up\r\n\t\t\t$this->setError();\t//this should tell standard form what's up\r\n\t\t}\r\n\t\t\r\n\t\treturn ($ok);\r\n\t}", "public function upload()\n {\n }", "private function scanStreamSend($scan_fh, $socket, $file): bool\n {\n $chunksize = filesize($file) < 8192 ? filesize($file) : 8192;\n $command = \"zINSTREAM\\0\";\n socket_send($socket, $command, strlen($command), 0);\n\n while (!feof($scan_fh)) {\n $data = fread($scan_fh, $chunksize);\n $packet = pack(sprintf(\"Na%d\", strlen($data)), strlen($data), $data);\n socket_send($socket, $packet, strlen($packet), 0);\n }\n\n $packet = pack(\"Nx\",0);\n socket_send($socket, $packet, strlen($packet), 0);\n socket_recv($socket, $scan, config('clamavfileupload.clamd_sock_len'), 0);\n socket_close($socket);\n\n if($scan === false) {\n $this->message = trans('clamavfileupload::clamav.not_running');\n ClamavIsNotRunning::dispatch();\n\n return false;\n }\n\n $scanMessage = trim(substr(strrchr($scan, \":\"), 1));\n if($scanMessage == 'OK') {\n $this->message = $scanMessage;\n return true;\n }\n\n $this->message = trans('clamavfileupload::clamav.file_not_safe',\n ['name' => $file]);\n return false;\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}", "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 send_read($data){\n\t\n\t\t$address = gethostbyname($this->vars['host']);\n\t\t$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n\t\t$result = socket_connect($socket, $address, $this->vars['port']);\n\n\t\t$transfer = json_encode($this->vars[function_list]);\n\t\t\n\t\t$count = strlen($transfer);\n\t\tprint \"abc\";\n\t\tsocket_send($socket,$count,strlen($count),MSG_DONTROUTE); #send length data to server\n\n\t\tsocket_recv($socket , $buf , 2 , MSG_WAITALL ); #become ack\n\n\t\tsocket_send($socket,$transfer,$count,MSG_DONTROUTE); #send data to server\n\t\t\n\t\tsocket_recv($socket , $count , 30 , MSG_WAITALL ); #income char lentgh\n\t\t\n\t\tsocket_send($socket,'ok',2,MSG_DONTROUTE); #send ack\n\t\t\n\t\tsocket_recv($socket , $buf , $count , MSG_WAITALL ); #income new data\n\n\t\t$returner = json_decode($buf,true);\n\t\tsocket_close($socket);\n\t\treturn($returner);\n\t\t\n\t}", "function version_check()\n{\n\t$fp = @fsockopen(\"www.68kb.com\", 80, $errno, $errstr, 30);\n\t\n\t$return = '';\n\t\n\tif ( ! $fp) \n\t{\n\t echo \"$errstr ($errno)<br />\\n\";\n\t} \n\telse \n\t{\n\t $out = \"GET /downloads/latest/version.txt HTTP/1.1\\r\\n\";\n\t $out .= \"Host: www.68kb.com\\r\\n\";\n\t $out .= \"Connection: Close\\r\\n\\r\\n\";\n\n\t fwrite($fp, $out);\n\t\n\t while ( ! feof($fp)) \n\t {\n\t $return .= fgets($fp, 128);\n\t }\n\t\n\t\t// Get rid of HTTP headers\n\t\t$content = explode(\"\\r\\n\\r\\n\", $return);\n\t\t$content = explode($content[0], $return);\n\n\t\t// Assign version to var\n\t\t$version = trim($content[1]);\n\t\t\n\t fclose($fp);\n\t\n\t\treturn $version;\n\t}\n}", "function processSocket($msg){\n\n\t\t// NOTE. Apache on Windows can generate the following warning\n\t\t// Warning: fgets(): SSL: fatal protocol error in ...\n\t\t// This is not really fatal so we set the following:\n\t\terror_reporting(E_ERROR | E_PARSE);\n\n\t\tif ($this->test)\n\t\t\t$host = $this->testURL;\n\t\telse\n\t\t\t$host = $this->liveURL;\n\n\t\t// Break the URL into usable parts\n\t\t$path = explode('/',$host);\n\n\n\t\t$host = $path[2];\n\t\tunset($path[0], $path[1], $path[2]);\n\t\t$path = '/'.(implode('/',$path));\n\n\t\t// i.e.\n\t\t// $host = 'www.securepay.com.au';\n\t\t// $path = '/xmlapi/payment';\n\n\t\t// Prepare the post query\n\t\t$post = \"POST /pxpost.aspx HTTP/1.1\\r\\n\";\n\t\t$post .= \"Host: \".$host.\"\\r\\n\";\n\t\t$post .= \"Content-type: application/x-www-form-urlencoded\\r\\n\";\n\t\t$post .= \"Content-length: \". strlen($msg).\"\\r\\n\";\n\t\t$post .= \"Accept: */*\\r\\n\";\n\t\t$post .= \"Connection: close\\r\\n\\r\\n$msg\";\n\n\t\t/***********************************************/\n\t\t/* Open the secure socket and post the message */\n\t\t/***********************************************/\n\t\t$h = fsockopen(\"ssl://\".$host, 443, $errno, $errstr);\n//\t\tif ($errstr) {\n\t\tif (!$h) {\n\t\t\t$response = \"Error: \".$errstr.\" (\".$errno.\")\";\n\t\t} else {\n\t\t\tfwrite($h,$post);\n\t\t\tfflush($h);\n\t\t\t\n\n\t\t\t/*******************************************/\n\t\t\t/* Retrieve the HTML headers (and discard) */\n\t\t\t/*******************************************/\n\t\t\t$count = 0;\n\t\t\twhile (!feof($h)) { $response.=fread($h, 128); }\n\t\t\t\n\t\t\t$start = strpos($response,'<Txn>');\n\t\t\t$end = strpos($response,'</Txn>');\n\t\t\t$response = substr($response,$start,$end-$start+6);\n\t\t\t\n\t\t\t//echo $response;\n\t\t}\n\t\t// Close the socket\n\t\tfclose($h);\n\n\t\t// Return the body of the response\n\t\t// This will either be the transaction response\n\t\t// or an error string.\n\t\treturn $response;\n\t\t\n\t\t\n\t}", "public static function rpc_uploadFile()\r\n\t{\r\n\t\tSERIA_RPCHost::requireAuthentication();\r\n\t\t$results = array();\r\n\t\tforeach ($_FILES as $nam => $fileinfo) {\r\n\t\t\tswitch ($fileinfo['error']) {\r\n\t\t\t\tcase UPLOAD_ERR_OK:\r\n\t\t\t\t\t$error = false;\r\n\t\t\t\t\t$file = new SERIA_File($fileinfo['tmp_name'], $fileinfo['name']);\r\n\t\t\t\t\t$sha1 = sha1_file($file->get('localPath'));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase UPLOAD_ERR_INI_SIZE:\r\n\t\t\t\t\t$error = _t('Upload was denied because of size. (php.ini)');\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase UPLOAD_ERR_FORM_SIZE:\r\n\t\t\t\t\t$error = _t('Upload was denied because of size. (form specified max)');\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase UPLOAD_ERR_PARTIAL:\r\n\t\t\t\t\t$error = _t('Upload was truncated.');\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase UPLOAD_ERR_NO_FILE:\r\n\t\t\t\t\t$error = _t('No file received.');\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase UPLOAD_ERR_NO_TMP_DIR:\r\n\t\t\t\t\t$error = _t('Can\\'t find a tmp directory.');\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase UPLOAD_ERR_CANT_WRITE:\r\n\t\t\t\t\t$error = _t('Can\\'t write files to tmp.');\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase UPLOAD_ERR_EXTENSION:\r\n\t\t\t\t\t$error = _t('An extension has denied upload.');\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t$error = _t('Unknown upload error.');\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t$results[$nam] = array(\r\n\t\t\t\t'id' => ($error === false ? $file->get('id') : false),\r\n\t\t\t\t'error' => $error,\r\n\t\t\t\t'sha1' => ($error === false ? $sha1 : false)\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn $results;\r\n\t}", "public function uploadlength() {\n return $this->info['upload_content_length'];\n }", "function check_file_uploaded($filename) {\n\t\t// If this request falls under any of them, treat it invalid.\n\t\tif (\n\t\t\t!isset($_FILES[$filename]['error']) ||\n\t\t\tis_array($_FILES[$filename]['error'])\n\t\t) {\n\t\t\tthrow new RuntimeException('Invalid parameters.');\n\t\t}\n\n\t\t// Check $_FILES[$filename]['error'] value.\n\t\tswitch ($_FILES[$filename]['error']) {\n\t\t\tcase UPLOAD_ERR_OK:\n\t\t\t\tbreak;\n\t\t\tcase UPLOAD_ERR_NO_FILE:\n\t\t\t\tthrow new RuntimeException('No file sent.');\n\t\t\tcase UPLOAD_ERR_INI_SIZE:\n\t\t\tcase UPLOAD_ERR_FORM_SIZE:\n\t\t\t\tthrow new RuntimeException('Exceeded filesize limit.');\n\t\t\tdefault:\n\t\t\t\tthrow new RuntimeException('Unknown errors.');\n\t\t}\n\t}", "public function upfile()\n {\n $accepted_origins = array(\"http://localhost\", \"http://192.168.82.130\", \"\");\n\n // Images upload path\n $imageFolder = \"./upload/image/\";\n\n reset($_FILES);\n $temp = current($_FILES);\n if (is_uploaded_file($temp['tmp_name'])) {\n if (isset($_SERVER['HTTP_ORIGIN'])) {\n // Same-origin requests won't set an origin. If the origin is set, it must be valid.\n if (in_array($_SERVER['HTTP_ORIGIN'], $accepted_origins)) {\n header('Access-Control-Allow-Origin: ' . $_SERVER['HTTP_ORIGIN']);\n } else {\n header(\"HTTP/1.1 403 Origin Denied\");\n return;\n }\n }\n\n $temp['name'] = str_replace(' ','',$temp['name']);\n $temp['name'] = str_replace('(','',$temp['name']);\n $temp['name'] = str_replace(')','',$temp['name']);\n\n // Sanitize input\n if (preg_match(\"/([^\\w\\s\\d\\-_~,;:\\[\\]\\(\\).])|([\\.]{2,})/\", $temp['name'])) {\n header(\"HTTP/1.1 400 Invalid file name.\");\n return;\n }\n\n // Verify extension\n if (!in_array(strtolower(pathinfo($temp['name'], PATHINFO_EXTENSION)), array(\"gif\", \"jpg\", \"png\"))) {\n header(\"HTTP/1.1 400 Invalid extension.\");\n return;\n }\n\n // Accept upload if there was no origin, or if it is an accepted origin\n $filetowrite = $imageFolder . $temp['name'];\n move_uploaded_file($temp['tmp_name'], $filetowrite);\n\n $link = base_url('upload/image/'.$temp['name']);\n // Respond to the successful upload with JSON.\n echo json_encode(array('location' => $link));\n } else {\n // Notify editor that the upload failed\n header(\"HTTP/1.1 500 Server Error\");\n }\n }", "public function upload($fileName, $cod_doc, $cod_stud, $cod_mat)\n {\n $http_server = \"http://unimolshare.altervista.org\";\n $ftp_server = \"ftp.unimolshare.altervista.org\";\n $ftp_username = \"unimolshare\";\n $ftp_password = \"FAq3EG9G3ufj\";\n //Indirizzi\n $ftpFolder = \"/file/documents/\";\n $localFolder = \"../FILETMP/\";\n $response = \"\";\n //$linkFtp = 'ftp://' . $ftp_username . ':' . $ftp_password . '@' . $ftp_server . $ftpFolder . $fileName;\n $linkHttp = $http_server . $ftp_username . ':' . $ftp_password . '@' . $ftp_server . $ftpFolder . $fileName;\n\n $ch = curl_init();\n $localfile = $localFolder . $fileName;\n $fp = fopen($localfile, 'r');\n curl_setopt($ch, CURLOPT_URL, $linkHttp);\n curl_setopt($ch, CURLOPT_UPLOAD, 1);\n curl_setopt($ch, CURLOPT_INFILE, $fp);\n curl_setopt($ch, CURLOPT_INFILESIZE, filesize($localfile));\n curl_exec($ch);\n $error = curl_error($ch);\n $error_no = curl_errno($ch);\n curl_close($ch);\n if ($error_no == 0) {\n\n $link = $http_server . $ftpFolder . $fileName . \".pdf\";\n //Aggiorno il link nel db tramite servizio REST\n $urlRest = 'http://unimolshare.altervista.org/logic/UnimolShare/public/index.php/caricadocumento';\n if ($cod_doc !== \"\") {\n $data = array(\n 'titolo' => $fileName,\n 'codice_docente' => $cod_doc,\n 'codice_materia' => $cod_mat,\n 'link' => $link\n );\n } else {\n $data = array(\n 'titolo' => $fileName,\n 'codice_studente' => $cod_stud,\n 'codice_materia' => $cod_mat,\n 'link' => $link\n );\n }\n\n $options = array(\n 'http' => array(\n 'method' => 'POST',\n 'header' => \"Content-type: application/x-www-form-urlencoded\\r\\n\",\n 'content' => http_build_query($data)\n )\n );\n $context = stream_context_create($options);\n $response = file_get_contents($urlRest, false, $context);\n\n if ((json_decode($response))->{'error'}) {\n $response = \"Si è verificato un errore durante l'aggiornamento del DB!\";\n } else {\n $response = (json_decode($response))->{'message'};\n }\n\n } else {\n $response = 'Errore durantante il caricamento del file: '.$error;\n }\n\n return $response;\n }", "function CreateAndCheckConnFile($fileName) {\n\n global $SUB_DIRECTORY;\n\n if (file_exists($fileName)){\n $newFile = @fopen($fileName, 'a');\n if($newFile)\n fclose($newFile);\n else\n echo \"<b>Error</b>: Failed to open ($fileName) file: Permission denied.\";\n \n }\n else{\n if(!is_dir($SUB_DIRECTORY)){\n mkdir($SUB_DIRECTORY);\n }\n $newFile = @fopen($fileName, 'w');\n if($newFile){\n fwrite($newFile, \"<?php echo 'Devart HTTP tunnel temporary file.'; exit; ?>\\r\\n\"); // forbid viewing this file through browser\n fclose($newFile);\n }\n else\n echo \"<b>Error</b>: Failed to create ($fileName) file: Permission denied.\";\n }\n \n if(!$newFile)\n exit;\n}", "public static function transfer($socket, $request) {\n assert(is_resource($socket));\n assert(is_string($request));\n\n @fwrite($socket, $request);\n @fflush($socket);\n\n $result = '';\n while (!feof($socket)) {\n $read = @fread($socket, self::CHUNK_SIZE);\n $result .= $read;\n if (strlen($read) < self::CHUNK_SIZE) {\n break;\n }\n }\n\n return $result;\n }", "public function oxd_socket_request($data,$char_count = 8192){\n if (!self::$socket = stream_socket_client( $this->oxd_host_ip . ':' . $this->oxd_host_port, $errno, $errstr, STREAM_CLIENT_PERSISTENT)) {\n $this->log(\"Client: socket::socket_connect is not connected, error: \",$errstr);\n die($errno);\n }else{\n $this->log(\"Client: socket::socket_connect\", \"socket connected\");\n }\n $this->log(\"Client: oxd_socket_request\", fwrite(self::$socket, $data));\n fwrite(self::$socket, $data);\n $result = fread(self::$socket, $char_count);\n if($result){\n $this->log(\"Client: oxd_socket_response\", $result);\n }else{\n $this->log(\"Client: oxd_socket_response\", 'Error socket reading process.');\n }\n if(fclose(self::$socket)){\n $this->log(\"Client: oxd_socket_connection\", \"disconnected.\");\n }\n return $result;\n }", "function process_unlock_set_king($socket, $data)\n{\n if ($socket->process === true) {\n $user_id = $data;\n $player = id_to_player($user_id, false);\n if (isset($player)) {\n $player->gainPart('head', 28, true);\n $player->gainPart('body', 26, true);\n $player->gainPart('feet', 24, true);\n $player->gainPart('eHead', 28);\n $player->gainPart('eBody', 26);\n $player->gainPart('eFeet', 24);\n $player->sendCustomizeInfo();\n }\n $socket->write('{\"status\":\"ok\"}');\n }\n}", "function fopen($url) {\n\t\t$this->lastResponse = Array ();\n\n\t\t/*\n\t\t preg_match( \"~([a-z]*://)?([^:^/]*)(:([0-9]{1,5}))?(/.*)?~i\", $url, $matches );\n\n\t\t $protocol = $matches [1];\n\t\t $server = $matches [2];\n\t\t $port = $matches [4];\n\t\t $path = $matches [5];\n\t\t */\n\n\t\t//$protocol = \"http\";\n\t\t$server = \"arxiv.org\";\n\t\t$port = 80;\n\t\t$path = \"/abs/$url\";\n\n\t\tif ($port != \"\") {\n\t\t\t$this->setPort ( $port );\n\t\t}\n\t\tif ($path == \"\")\n\t\t$path = \"/\";\n\t\t\t\n\t\t$socket = fsockopen ( $server, $this->port );\n\t\tif ($socket) {\n\t\t\tif ($this->debug)\n\t\t\techo '<br><b>socket opened...</b>';\n\t\t\t\t\n\t\t\t$this->headerLines [\"Host\"] = $server;\n\t\t\t\t\n\t\t\tif ($this->authUser != \"\" && $this->authPass != \"\") {\n\t\t\t\t$this->headerLines [\"Authorization\"] = \"Basic \" . base64_encode ( $this->authUser . \":\" . $this->authPass );\n\t\t\t}\n\t\t\t\t\n\t\t\t/*\n\t\t\t if (count ( $this->postData ) == 0) {\n\t\t\t\t$request = \"GET $path HTTP/1.0\\r\\n\";\n\t\t\t\t} else {\n\t\t\t\t$request = \"POST $path HTTP/1.0\\r\\n\";\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t$request = \"GET $path HTTP/1.1\\r\\n\";\n\t\t\t\t\n\t\t\t\t\n\t\t\tif ($this->debug)\n\t\t\techo \"<br><b>REQUEST:</b> $request\";\n\t\t\tfputs ( $socket, $request );\n\t\t\t\t\n\t\t\tif($this->debug) {\n\t\t\t\techo '<b>count ( $this->postData ):</b> ' . count ( $this->postData );\n\t\t\t}\n\t\t\tif (count ( $this->postData ) > 0) {\n\t\t\t\t$PostStringArray = Array ();\n\t\t\t\tforeach ( $this->postData as $key => $value ) {\n\t\t\t\t\t$PostStringArray [] = \"$key=$value\";\n\t\t\t\t}\n\t\t\t\t$PostString = join ( \"&\", $PostStringArray );\n\t\t\t\t$this->headerLines [\"Content-Length\"] = strlen ( $PostString );\n\t\t\t}\n\t\t\t\t\n\t\t\tif ($this->debug)\n\t\t\techo \"<br><b>key & values:</b> \";\n\t\t\tforeach ( $this->headerLines as $key => $value ) {\n\t\t\t\tif ($this->debug)\n\t\t\t\techo \"$key: $value\\n\";\n\t\t\t\tfputs ( $socket, \"$key: $value\\r\\n\" );\n\t\t\t}\n\t\t\t\t\n\t\t\tif ($this->debug)\n\t\t\techo \"\\n\";\n\t\t\tfputs ( $socket, \"\\r\\n\" );\n\t\t\t\t\n\t\t\t\t\n\t\t\tif (count ( $this->postData ) > 0) {\n\t\t\t\tif ($this->debug)\n\t\t\t\techo \"$PostString\";\n\t\t\t\tfputs ( $socket, $PostString . \"\\r\\n\" );\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tif ($this->debug)\n\t\techo \"\\n\";\n\t\tif ($socket) {\n\t\t\tif ($this->debug)\n\t\t\techo \"<br><b>SOCKET:</b> $socket\";\n\t\t\t\t\n\t\t\t$line = fgets ( $socket, 1000 );\n\t\t\t// try 5 times more\n\t\t\tif($line == '') {\n\t\t\t\treturn FALSE;\n\t\t\t\t/*\n\t\t\t\t for($i = 0; $i < 5; $i++) {\n\t\t\t\t\tsleep(1);\n\t\t\t\t\t$line = fgets ( $socket, 1000 );\n\t\t\t\t\tif($line != '') {\n\t\t\t\t\tif ($this->debug)\n\t\t\t\t\techo \"<br>Times tried: $i\";\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t*/\n\t\t\t}\n\t\t\tif ($this->debug)\n\t\t\techo \"<br>Line 1: $line\";\n\n\t\t\t$this->lastResponse [] = $line;\n\t\t\t$status = substr ( $line, 9, 3 );\n\t\t\t$i = 1;\n\t\t\twhile ( trim ( $line = fgets ( $socket, 1000 ) ) != \"\" ) {\n\t\t\t\t$i++;\n\t\t\t\tif ($this->debug)\n\t\t\t\techo \"<br>Line $i: $line\";\n\t\t\t\t$this->lastResponse [] = $line;\n\t\t\t\tif ($status == \"401\" and strpos ( $line, \"WWW-Authenticate: Basic realm=\\\"\" ) === 0) {\n\t\t\t\t\tif ($this->debug)\n\t\t\t\t\techo \"401\\n\";\n\t\t\t\t\tfclose ( $socket );\n\t\t\t\t\treturn FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif ($this->debug)\n\t\t\techo \"<br><b>SOCKET Broken</b>\";\n\t\t}\n\t\treturn $socket;\n\t}", "function is_upload_space_available()\n {\n }", "public function upload(){\n\n\t\tif(move_uploaded_file($this->tmp_name,$this->uploadFile)){\n\n\t\t\treturn true;\n\n\t\t}\n\n\t\t// throw exception according to error number\n\n\t\tswitch($this->error){\n\n\t\t\tcase 1:\n\n\t\t\tthrow new Exception('Target file exceeds maximum allowed size.');\n\n\t\t\tbreak;\n\n\t\t\tcase 2:\n\n\t\t\tthrow new Exception('Target file exceeds the MAX_FILE_SIZE value specified on the upload form.');\n\n\t\t\tbreak;\n\n\t\t\tcase 3:\n\n\t\t\tthrow new Exception('Target file was not uploaded completely.');\n\n\t\t\tbreak;\n\n\t\t\tcase 4:\n\n\t\t\tthrow new Exception('No target file was uploaded.');\n\n\t\t\tbreak;\n\n\t\t\tcase 6:\n\n\t\t\tthrow new Exception('Missing a temporary folder.');\n\n\t\t\tbreak;\n\n\t\t\tcase 7:\n\n\t\t\tthrow new Exception('Failed to write target file to disk.');\n\n\t\t\tbreak;\n\n\t\t\tcase 8:\n\n\t\t\tthrow new Exception('File upload stopped by extension.');\n\n\t\t\tbreak;\n\n\t\t}\n\n\t}", "private function copyServerFile($src, $des){\n /* \n if(ftp_chdir($this->conn, $src)){\n $rawList = ftp_nlist($conn, \".\"); \n if (!in_array($destDir, $rawList)) \n { \n ftp_mkdir($conn, $destDir); \n //@ftp_chmod($conn, 0777, $image_dir); \n }\n }\n \n $files = ftp_nlist($this->ftp_conn, $path);\n foreach ($files as $file)\n {\n $this->delete($path.'/'.$file);\n }\n return $this->delete($path);\n\n $srcDir = $this->fieldarray['sourceItemId']; \n $destDir = $this->fieldarray['itemId']; \n $localDir = PUBLIC_PATH . 'photos/' . $this->fieldarray['imageType'] . '/original/' . $this->fieldarray['itemId']; \n \n if ($conn = ftp_connect(PHOTO_SERVER)) \n { \n if (ftp_login($conn, PHOTO_SERVER_USER, PHOTO_SERVER_PW)) \n { \n ftp_pasv($conn, true); \n if (ftp_chdir($conn, PHOTO_SERVER_UPLOAD_DIR)) \n { \n $rawList = ftp_nlist($conn, \".\"); \n if (!in_array($destDir, $rawList)) \n { \n ftp_mkdir($conn, $destDir); \n //@ftp_chmod($conn, 0777, $image_dir); \n } \n \n $files = ftp_nlist($conn, $srcDir); \n foreach ($files as $file) \n { \n if ($file != \".\" && $file != \"..\") \n { \n $srcFile = PHOTO_SERVER_FTP_GET_SRC_DIR . '/' . $srcDir . '/' . $file; \n $localFile = $localDir . '/' . $file; \n \n if (ftp_get($conn, $localFile, $srcFile, FTP_BINARY)) \n { \n $upload = ftp_put($conn, $destDir . \"/\" . $file, $localFile, FTP_BINARY); \n } \n } \n } \n } \n }\n }*/\n }", "function upload_file($src, $dest){\t\n\t\tif(!empty($src)){\t\t\t\n\t\t\t// copy the file to the image path\t\t\t\n\t\t\tif(!copy($src, $dest)){\n\t\t\t\techo 'failed to copy the file';\n\t\t\t}else{\t\t\t\t\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t}", "public function uploadFile()\r\n\t{\r\n\t\t// Validate the container\r\n\t\t$this->_container = $this->getContainer();\r\n\t\tif ($this->_container == NULL)\r\n\t\t\treturn array('error' => Yii::t('ciims.misc', 'Unable to attach OpenStack Container.'));\r\n\r\n\t\t$validation = $this->validateFile();\r\n \r\n if (isset($validation['error']))\r\n \treturn $validation;\r\n else\r\n {\r\n \t$filename = $validation['data']['filename'];\r\n \t$data = $validation['data']['data'];\r\n \t$ext = $validation['data']['ext'];\r\n }\r\n\r\n try {\r\n \t$response = $this->_container->uploadObject($filename.'.'.$ext, $data, array());\r\n \tif ($response)\r\n\t \t return array('success'=>true,'filename'=> $filename.'.'.$ext, 'url' => $this->_container->getCDN()->getMetadata()->getProperty('Ssl-Uri'));\r\n\t else\r\n\t \treturn array('error'=> Yii::t('ciims.misc', 'Could not save uploaded file. The upload was cancelled, or server error encountered'));\r\n } catch (Exception $e) {\r\n \treturn array('error'=> Yii::t('ciims.misc', 'The server encountered an error during uploading. Please verify that you have saufficient space in the container and that your quota has not been reached.'));\r\n }\r\n\t}", "function FTPupload($origen,$destino='',$borrar=true){\n\t#origen: donde esta la imagen. destino: donde ira la imagen.\n\t#borrar: falso si no se quiere eliminar la imagen original\n\t#las rutas deben ser relativas a img. si destino es vacio o false, se colocara en la misma ruta del origen\n\t//validaciones previas\n\tglobal $config;\n\tif(!is_file(\"$config->relpath/img/$origen\")) return \"404 file $config->relpath/img/$origen not found\";\n\tglobal $config;\n\t$error=0;\n\tif($destino=='') $destino=$origen;\n\t$file=end(explode('/',$destino));\n\tif(!$file) $error=400;\n\t$path=isset($config->ftp->folder)?$config->ftp->folder.'/':'';\n\t$path.=dirname($destino);\n\t$data=\" P:$path F:$file O:$origen D:$destino\";\n\tif(!$error)\n\tif(isset($config->ftp)){\n\t\tif(!isset($img_ftp_con)){\n\t\t\t$img_ftp_con=ftp_connect($config->ftp->host,isset($config->ftp->port)?$config->ftp->port:21);\n\t\t\t$login=@ftp_login($img_ftp_con,$config->ftp->user,$config->ftp->pass);\n\t\t\tif(!$login){\n\t\t\t\t$img_ftp_con=0;\n\t\t\t\treturn 403;\n\t\t\t}\n\t\t\tftp_pasv($img_ftp_con,true);\n\t\t}\n\t\t#vamos a la carpeta raiz\n\t\t// ftp_cdup($img_ftp_con);\n\t\t#Nos vamos a la carpeta destino. Se crean las carpetas que no existan.\n\t\t$foldercount=0;\n\t\t$folders=explode('/',$path);\n\t\tforeach($folders as $folder){\n\t\t\tif($folder!=''){\n\t\t\t\tif(@ftp_chdir($img_ftp_con,$folder)){#abrir carpeta\n\t\t\t\t\t$foldercount++;\n\t\t\t\t}elseif(@ftp_mkdir($img_ftp_con,$folder)){#crear y abrir carpeta\n\t\t\t\t\tftp_chdir($img_ftp_con,$folder);\n\t\t\t\t\t$foldercount++;\n\t\t\t\t\t@ftp_put($img_ftp_con,'index.html',RELPATH.'img/index.html',FTP_BINARY);\n\t\t\t\t}else{\n\t\t\t\t\t$error=412;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!$error){\n\t\t\t$data=' PWD:'.ftp_pwd($img_ftp_con).$data;\n\t\t\t#Copiamos el archivo\n\t\t\t$error=(@ftp_put($img_ftp_con,$file,RELPATH.'img/'.$origen,FTP_BINARY)) ? 200 : 401;\n\t\t\t#Borramos la imagen de origen si es requerido\n\t\t\tif($borrar&&$error==200&&!@unlink(RELPATH.'img/'.$origen)) $error=206;\n\t\t}\n\t\tftp_quit($img_ftp_con);\n\t// }elseif(!$config->local){\n\t\t#Si no es local movemos al servidor de imagenes\n\t}else{\n\t\t#movemos al servidor de imagenes\n\t\t$_origen=RELPATH.'img/'.$origen;\n\t\t$_destino=$config->img_server_path.'img/'.$destino;\n\t\t$data.=\"<br>FO: $_origen FD: $_destino\";\n\t\tif(!is_dir($config->img_server_path.'img/'.$path))\n\t\t\tif(!@mkdir($config->img_server_path.'img/'.$path,0775,true)) $error=412;\n\t\tif(!$error)\n\t\tif($borrar)\n\t\t\t$error=(!@rename($_origen,$_destino))?408:200;\n\t\telse\n\t\t\t$error=(!@copy($_origen,$_destino))?409:200;\n/*\t}elseif($destino!=$origen){\n\t\t#Cuando no es ftp, y el origen es distinto al destino, se mueve/copia el archivo\n\t\tif(!is_dir(RELPATH.'img/'.$path))\n\t\t\tif(!@mkdir(RELPATH.'img/'.$path,0777,true)) $error=412;\n\t\tif(!$error)\n\t\tif($borrar)\n\t\t\t$error=(!@rename(RELPATH.'img/'.$origen,RELPATH.'img/'.$destino))?408:200;\n\t\telse\n\t\t\t$error=(!@copy(RELPATH.'img/'.$origen,RELPATH.'img/'.$destino))?409:200;\n*/\t}\n\treturn $error.$data;#descomentar data si decea ver los mensajes de error\n}", "function process_unlock_set_djinn($socket, $data)\n{\n if ($socket->process === true) {\n $user_id = $data;\n $player = id_to_player($user_id, false);\n if (isset($player)) {\n $player->gainPart('head', 35, true);\n $player->gainPart('body', 35, true);\n $player->gainPart('feet', 35, true);\n $player->gainPart('eHead', 35);\n $player->gainPart('eBody', 35);\n $player->gainPart('eFeet', 35);\n $player->sendCustomizeInfo();\n }\n $socket->write('{\"status\":\"ok\"}');\n }\n}", "function uploadFileDB2($user,$name,$type,$filesize,$fileKey, $fileIV,$hint,$keyIV){\n $conn = db_connect();\n \n $fileName= mysql_real_escape_string($name);\n $fileType= mysql_real_escape_string($type);\n //$data= $conn->real_escape_string(file_get_contents($_FILES ['uploaded_file']['tmp_name']));\n $fileSize= intval($filesize);\n $hint = mysql_real_escape_string($hint);\n $fileKey = base64_encode($fileKey);\n $fileIV = base64_encode($fileIV);\n $keyIV= base64_encode($keyIV);\n\n // if ok, put in db\n $query = \"INSERT INTO testappdb.uploads (username,file_name, type, size,HashKey,IV,Hint,keyIV) VALUES ('$user','$fileName', '$fileType', '$fileSize', '$fileKey', '$fileIV','$hint', '$keyIV')\";\n \n $result = mysql_query($query);\n\n //Check if it was successfull\n if($result) {\n echo 'Success! Your file was successfully added!';\n echo \"<br>File $fileName uploaded<br>\";\n return true;\n}\nelse{\n echo 'Error! Failed to insert the file';\n return false;\n}\n\nmysql_close($conn);\n}", "public function initialiseUpload()\n\t{\n\t\t$result = (object)[\n\t\t\t'status' => true,\n\t\t\t'message' => '',\n\t\t\t'ignorable' => false,\n\t\t];\n\n\t\t/** @var \\Akeeba\\Backup\\Admin\\Model\\Transfer $model */\n\t\t$model = $this->getModel();\n\n\t\ttry\n\t\t{\n\t\t\t$config = $model->getFtpConfig();\n\t\t\t$model->initialiseUpload($config);\n\t\t}\n\t\tcatch (TransferIgnorableError $e)\n\t\t{\n\t\t\t$result = (object) [\n\t\t\t\t'status' => false,\n\t\t\t\t'message' => $e->getMessage(),\n\t\t\t\t'ignorable' => true,\n\t\t\t];\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$result = (object)[\n\t\t\t\t'status' => false,\n\t\t\t\t'message' => $e->getMessage(),\n\t\t\t\t'ignorable' => false,\n\t\t\t];\n\t\t}\n\n\t\t@ob_end_clean();\n\t\techo '###' . json_encode($result) . '###';\n\t\t$this->container->platform->closeApplication();\n\t}", "function sendResampledFile($command, $name){\n\t\t// Now let's send the header\n\t\t// CRUCIAL: //\n\t\tignore_user_abort(false);\n\t\theader(\"ICY 200 OK\");\n\t\theader(\"icy-name: $name\");\n\t\theader(\"Content-type: audio/mpeg\");\n\t\t// header(\"Content-length: \".(string)(filesize($file))); // TODO: get the real filesize.\n\t\theader(\"Content-Disposition: inline; filename=\\\"\".$name.\"\\\"\");\n\t\theader(\"Connection: close\");\n\t\tpassthru($command);\t\n\t}", "private function uploadFile()\n {\n $uid = $this->param[2];\n $src = $_FILES['Filedata']['tmp_name'];\n $dst = TEMP_DIR . '/' . $uid . $_FILES['Filedata']['name'];\n \n if(@move_uploaded_file($src, $dst))\n {\n $data = \"{$_FILES['Filedata']['name']}:$dst:{$_FILES['Filedata']['size']}\";\n echo $data;\n }\n exit;\n }", "function upload_picture($path, $name, $fieldname)\n\t{\n\t\t// possible PHP upload errors\n\t\t$errors = array(1 => 'php.ini max file size exceeded',\n\t\t\t\t\t\t2 => 'html form max file size exceeded',\n\t\t\t\t\t\t3 => 'file upload was only partial',\n\t\t\t\t\t\t4 => 'no file was attached');\n\t\t\t\t\t\n\t\t// check for PHP's built-in uploading errors\n\t\tif ($_FILES[$fieldname]['error'] != 0)\n\t\t\treturn $errors[$_FILES[$fieldname]['error']];\n\t\t\t\n\t\t// check that the file we are working on really was the subject \n\t\t//of an HTTP upload\n\t\tif (!@is_uploaded_file($_FILES[$fieldname]['tmp_name']))\n\t\t\treturn 'not an HTTP upload';\n\t\t\t\n\t\t// validation... since this is an image upload script we should run a check \n\t\t// to make sure the uploaded file is in fact an image. Here is a simple check:\n\t\t// getimagesize() returns false if the file tested is not an image.\n\t\tif (!@getimagesize($_FILES[$fieldname]['tmp_name']))\n\t\t\treturn 'only image uploads are allowed';\n\t\t\t\n\t\t// make a unique filename for the uploaded file and check it is not already\n\t\t// taken... if it is already taken keep trying until we find a vacant one\n\t\t// sample filename: 1140732936-filename.jpg\n\n\t\t$uploadFilename = $path . $name;\n\t\tif (file_exists($uploadFilename))\n\t\t\treturn \"A picture for this file already exists as \" . $uploadFilename;\n\n\t\t// now let's move the file to its final location and allocate the new filename to it\n\t\tif (!@move_uploaded_file($_FILES[$fieldname]['tmp_name'], $uploadFilename))\n\t\t\treturn 'receiving directory insuffiecient permission';\n\t\t\n\t\treturn false;\n\t}", "public function post($callback=null, $stage = false) {\n \n //holds file upload object\n $upload = isset($_FILES[$this->options['param_name']]) ? $_FILES[$this->options['param_name']] : null;\n \n //will hold all the file information\n $upload_info = array();\n \n if ($upload && is_array($upload['tmp_name'])) {\n \n // param_name is an array identifier like \"files[]\",\n // $_FILES is a multi-dimensional array:\n foreach ($upload['tmp_name'] as $index => $value) {\n \n //adds a new file object to the info array\n $upload_info[] = $this->handle_file_upload(\n //file\n $upload['tmp_name'][$index],\n //name\n isset($_SERVER['HTTP_X_FILE_NAME']) ? $_SERVER['HTTP_X_FILE_NAME'] : $upload['name'][$index],\n //size\n isset($_SERVER['HTTP_X_FILE_SIZE']) ? $_SERVER['HTTP_X_FILE_SIZE'] : $upload['size'][$index],\n //type\n isset($_SERVER['HTTP_X_FILE_TYPE']) ? $_SERVER['HTTP_X_FILE_TYPE'] : $upload['type'][$index],\n //errors\n $upload['error'][$index],\n //index\n $index,\n //stage\n $stage\n );\n }\n }\n \n elseif ($upload || isset($_SERVER['HTTP_X_FILE_NAME'])) {\n // param_name is a single object identifier like \"file\",\n // $_FILES is a one-dimensional array:\n \n //adds a new file object to the info array\n $upload_info[] = $this->handle_file_upload(\n //file\n isset($upload['tmp_name']) ? $upload['tmp_name'] : null,\n //name\n isset($_SERVER['HTTP_X_FILE_NAME']) ? $_SERVER['HTTP_X_FILE_NAME'] : (isset($upload['name']) ? $upload['name'] : null),\n //size\n isset($_SERVER['HTTP_X_FILE_SIZE']) ? $_SERVER['HTTP_X_FILE_SIZE'] : (isset($upload['size']) ? $upload['size'] : null),\n //type\n isset($_SERVER['HTTP_X_FILE_TYPE']) ? $_SERVER['HTTP_X_FILE_TYPE'] : (isset($upload['type']) ? $upload['type'] : null),\n //error\n isset($upload['error']) ? $upload['error'] : null,\n null,\n //stage\n $stage\n );\n }\n \n //calls function callback if provided with one\n if(is_callable($callback)) {\n call_user_func($callback, $upload_info);\n }\n \n //for security removes sensitive attributes\n foreach($upload_info as $file) {\n unset($file->file_path);\n unset($file->id);\n }\n \n header('Vary: Accept');\n \n //encodes the output file object\n $json = json_encode($upload_info);\n \n //handles redirect request parameter\n $redirect = isset($_REQUEST['redirect']) ? stripslashes($_REQUEST['redirect']) : null;\n if ($redirect) {\n header('Location: '.sprintf($redirect, rawurlencode($json)));\n return;\n }\n \n //if supported by server, outputs application/json content type\n if (isset($_SERVER['HTTP_ACCEPT']) &&\n (strpos($_SERVER['HTTP_ACCEPT'], 'application/json') !== false)) {\n header('Content-type: application/json');\n } else {\n header('Content-type: text/plain');\n }\n \n //outputs the encoded json\n echo $json;\n \n }" ]
[ "0.60336643", "0.59345865", "0.58590835", "0.5758463", "0.5663463", "0.5640941", "0.56157595", "0.5511779", "0.54309505", "0.54103047", "0.5409403", "0.5377283", "0.53423053", "0.5334258", "0.5319031", "0.52618366", "0.524919", "0.5202482", "0.5198807", "0.5164835", "0.5148346", "0.5130482", "0.50962037", "0.5089958", "0.5085247", "0.50841993", "0.507727", "0.50742793", "0.504958", "0.5021511", "0.50127923", "0.49669415", "0.4960179", "0.49586025", "0.49525186", "0.49480662", "0.49362203", "0.4934847", "0.49340582", "0.49166822", "0.49155834", "0.49146342", "0.4912425", "0.49108472", "0.491011", "0.49080005", "0.4903832", "0.4896354", "0.48837292", "0.488092", "0.48802522", "0.48758295", "0.4847426", "0.48458523", "0.48318642", "0.48289293", "0.4825524", "0.48136866", "0.4807834", "0.48064625", "0.4801741", "0.48015723", "0.48012218", "0.47953817", "0.47890323", "0.47794825", "0.4778553", "0.47703326", "0.4769845", "0.47692809", "0.47677115", "0.47674844", "0.47662854", "0.47611207", "0.47580513", "0.4756028", "0.4753252", "0.47532505", "0.47521716", "0.4751416", "0.47408262", "0.47388187", "0.47345075", "0.4731668", "0.47314543", "0.47149968", "0.47132543", "0.47106755", "0.4705712", "0.47017837", "0.46975967", "0.4695814", "0.46957013", "0.4695202", "0.46923533", "0.46920663", "0.46880394", "0.46845135", "0.4683974", "0.46778074" ]
0.58572423
3
Use safeUp/safeDown to do migration with transaction
public function safeUp() { $this->dropForeignKey('fk_barang_diskon_barang', 'barang_diskon'); $this->alterColumn('barang_diskon', 'barang_id', 'INT(10) UNSIGNED NULL'); $this->addColumn('barang_diskon', 'semua_barang', "TINYINT NOT NULL DEFAULT 0 COMMENT 'perbarang = 0; semua = 1' AFTER `id`"); $this->addForeignKey('fk_barang_diskon_barang', 'barang_diskon', 'barang_id', 'barang', 'id', 'NO ACTION', 'NO ACTION'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function safeUp()\n {\n $this->up();\n }", "public function safeUp()\n {\n $this->up();\n }", "public function safeUp()\r\n {\r\n $this->up();\r\n }", "public function safeUp()\n\t{\n\t\t$this->up();\n\t}", "public function safeUp()\r\n\t{\r\n\t\t$this->up();\r\n\t}", "public function safeUp()\n {\n }", "public function safeUp()\n\t{\n\t $this->addColumn('Rent', 'is_deleted', 'TINYINT DEFAULT 0');\n\t $this->createIndex('is_deleted', 'Rent', 'is_deleted');\n\t}", "public function safeUp()\n\t{\n $sql = <<<SQL\n alter table r add R8 inte;\nSQL;\n\t\t//$this->execute($sql);\n $sql = <<<SQL\n ALTER TABLE r ADD constraint FK_r8_elgz1 FOREIGN KEY (r8) REFERENCES elgz (elgz1) ON DELETE SET DEFAULT ON UPDATE CASCADE;\nSQL;\n //$this->execute($sql);\n\t}", "public function safeUp()\n\t{\n $this->execute(\"\n /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;\n /*!40101 SET NAMES utf8mb4 */;\n /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;\n /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;\n\n DROP TABLE IF EXISTS `Rating`;\n DROP TABLE IF EXISTS `RatingParams`;\n DROP TABLE IF EXISTS `RatingParamsValues`;\n\n /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;\n /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;\n /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;\n \");\n\t}", "public function safeUp()\n\t{\n $this->execute(\"\n -- Дамп структуры для таблица dev_dont_stop.Currencies\n CREATE TABLE IF NOT EXISTS `Currencies` (\n `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Currency ID',\n `name` varchar(50) NOT NULL DEFAULT '' COMMENT 'Currency name',\n `key` varchar(10) NOT NULL DEFAULT '' COMMENT 'Currency key',\n PRIMARY KEY (`id`)\n ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;\n\n -- Дамп данных таблицы dev_dont_stop.Currencies: ~3 rows (приблизительно)\n /*!40000 ALTER TABLE `Currencies` DISABLE KEYS */;\n INSERT INTO `Currencies` (`id`, `name`, `key`) VALUES\n (1, 'Российский рубль', 'RUR'),\n (2, 'Белорусский рубль', 'BYR'),\n (3, 'Доллар США', 'USD');\n /*!40000 ALTER TABLE `Currencies` ENABLE KEYS */;\n /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;\n /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;\n /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;\n \");\n\t}", "public function safeUp()\n {\n $this->createTable($this->tableName, [\n 'post_id' => $this->bigInteger()->notNull(),\n 'category_id' => $this->bigInteger()->notNull(),\n ]);\n\n $this->addForeignKey('post_category_post_id_fk', $this->tableName, 'post_id', '{{%post}}', 'id', 'CASCADE', 'CASCADE');\n $this->addForeignKey('post_category_category_id_fk', $this->tableName, 'category_id', '{{%category}}', 'id', 'CASCADE', 'CASCADE');\n }", "public function safeUp() {\n $this->addColumn('tenant_setting', 'app_version', 'text');\n $this->update('tenant_setting', array('app_version' => '3.0'), null);\n }", "public function safeUp()\n\t{\n $this->execute(\"\n ALTER TABLE `Deals`\n ADD COLUMN `city_id` INT(11) UNSIGNED NULL DEFAULT NULL COMMENT 'City ID' AFTER `user_id`;\n ALTER TABLE `Deals`\n\t ADD CONSTRAINT `FK_Deals_Cities` FOREIGN KEY (`city_id`) REFERENCES `Cities` (`id`) ON UPDATE CASCADE ON DELETE SET NULL;\n \");\n\t}", "public function safeUp()\n {\n $this->addColumn('apartment', 'price', 'DECIMAL(20,2) DEFAULT 0');\n $this->addColumn('apartment', 'room_number', 'int UNSIGNED DEFAULT 0');\n $this->addColumn('apartment', 'square', 'int UNSIGNED DEFAULT 0');\n }", "public function safeUp()\n\t{\n\t\t$this->createTable( 'tbl_auth_item', array(\n\t\t \"name\" => \"varchar(64) not null\",\n\t\t \"type\" => \"integer not null\",\n\t\t \"description\" => \"text\",\n\t\t \"bizrule\" => \"text\",\n\t\t \"data\" => \"text\",\n\t\t \"primary key (name)\",\n\t\t));\n\n\t\t$this->createTable(\"tbl_auth_item_child\", array(\n \t\t\"parent\" => \" varchar(64) not null\",\n\t\t\"child\" => \" varchar(64) not null\",\n \t\t\"primary key (parent,child)\",\n\t\t));\n\n\t\t$this->createTable(\"tbl_auth_assignment\",array(\n \t\t\"itemname\" => \"varchar(64) not null\",\n \t\t\"userid\" => \"varchar(64) not null\",\n \t\t\"bizrule\" => \"text\",\n \t\t\"data\"\t => \"text\",\n \t\t\"primary key (itemname,userid)\",\n\t\t));\n\n\t\t$this->addForeignKey('fk_auth_item_child_parent','tbl_auth_item_child','parent','tbl_auth_item','name','CASCADE','CASCADE');\n\t\t$this->addForeignKey('fk_auth_assignment_itemname','tbl_auth_assignment','itemname','tbl_auth_item','name');\n\t\t$this->addForeignKey('fk_auth_assignment_userid','tbl_auth_assignment','userid','tbl_user','id');\n\t}", "public function safeUp()\n\t{\n\n\t\t$sql=\"ALTER TABLE `article` DROP INDEX `hid`;ALTER TABLE `article` DROP INDEX `IDX_CID_SHOW_TIME`;ALTER TABLE `article` DROP INDEX `IDX_SHOW_TIME`;ALTER TABLE `article` ADD INDEX `IND_SHOWTIME_STATUS_CID` (`show_time`,`status`,`cid`);\";\n\t\t$this->execute($sql);\n\t\t$this->refreshTableSchema('article');\n\t}", "public function safeUp()\n\t{\n\t\t$this->createTable('pesquisa', array(\n\t\t\t'id' => 'serial NOT NULL primary key',\n\t\t\t'nome' => 'varchar',\n\t\t));\n\t}", "public function safeUp()\r\n {\r\n $this->createTable('tbl_job_application', array(\r\n 'id' => 'pk',\r\n 'job_id' => 'integer NOT NULL',\r\n 'user_id' => 'integer NULL',\r\n 'name' => 'string NOT NULL',\r\n 'email' => 'text NOT NULL',\r\n 'phone' => 'text NOT NULL',\r\n 'resume_details' => 'text NOT NULL',\r\n 'create_date' => 'datetime NOT NULL',\r\n 'update_date' => 'datetime NULL',\r\n ));\r\n }", "public function safeUp()\n {\n $this->addColumn('compare_estimated_price_table','house_views_comp',\"tinyint(1) NOT NULL DEFAULT '0'\");\n }", "public function safeUp()\n {\n $this->createTable('tbl_hand_made_item',\n [\n \"id\" => \"int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY\",\n \"price\" => \"integer\",\n \"discount\" => \"integer\",\n \"preview_id\" => \"integer\",\n \"name\" => \"string\",\n \"description\" => \"text\",\n \"short_description\" => \"text\",\n \"slug\" => \"string\",\n ]\n );\n }", "public function safeUp()\n\t{\n\t\t\n\t\t$this->dropColumn('seguimiento_itil', 'per_sm');\n\t\t$this->dropColumn('seguimiento_itil', 'per_client');\n\n\t\t$this->createTable('seguimiento_percepcion_general', array(\n\t\t\t\t'id'=>'pk',\n\t\t\t\t'cliente_id' => 'int NOT NULL',\n\t\t\t\t'per_cliente' => 'int NOT NULL DEFAULT 0',\n\t\t\t\t'per_sm' => 'int NOT NULL DEFAULT 0',\n\t\t\t\t'fecha' => 'int NOT NULL DEFAULT 0')\n\t\t);\n\t\t$this->addForeignKey('FK01_seguimiento_percepcion_general_cliente', 'seguimiento_percepcion_general', 'cliente_id', 'cliente', 'id', 'RESTRICT');\n\t\t\n\t}", "public function safeUp()\n {\n $this->createTable('site', array(\n 'client_id' => self::MYSQL_TYPE_UINT,\n 'domain' => 'string NOT NULL'\n ));\n\n $this->addForeignKey('site_client_id', 'site', 'client_id', 'client', 'id', 'CASCADE', 'RESTRICT');\n\n $this->createTable('site_contract', array(\n 'site_id' => self::MYSQL_TYPE_UINT,\n 'contract_id' => self::MYSQL_TYPE_UINT,\n ));\n\n $this->addForeignKey('site_contract_site_id', 'site_contract', 'site_id', 'site', 'id', 'CASCADE', 'RESTRICT');\n $this->addForeignKey('site_contract_contract_id', 'site_contract', 'contract_id', 'contract', 'id', 'CASCADE', 'RESTRICT');\n }", "public function migrateUp()\n {\n //$this->migrate('up');\n $this->artisan('migrate');\n }", "public function safeUp()\n {\n $this->execute(\"\n create table region(\n code_reg integer primary key,\n name_reg text\n );\n \");\n $this->execute(\"\n create table school(\n id integer primary key,\n name text,\n boss text,\n code_reg integer,\n phone text\n );\n \");\n $this->createIndex('school_fk_reg', 'school', 'code_reg');\n }", "public function safeUp()\n {\n $tables = Yii::$app->db->schema->getTableNames();\n $dbType = $this->db->driverName;\n $tableOptions_mysql = \"CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB\";\n\n /* MYSQL */\n if (!in_array('question_tag', $tables)) {\n if ($dbType == \"mysql\") {\n $this->createTable('{{%question_tag}}', [\n 'question_id' => 'INT(11) NOT NULL',\n 'tag_id' => 'INT(11) NOT NULL',\n ], $tableOptions_mysql);\n }\n }\n }", "public function safeUp()\n {\n $this->createIndex(\n 'idx-tag-tag_category_id',\n 'tag',\n 'tag_category_id'\n );\n\n // add foreign key for table `category`\n $this->addForeignKey(\n 'fk-tag-tag_category_id',\n 'tag',\n 'tag_category_id',\n 'tag_category',\n 'id',\n 'CASCADE'\n );\n }", "public function safeUp()\n {\n $this->insert('category',['name'=>'Uncategorized', 'slug'=>'uncategorized', 'description'=>'Default Category', 'created_at'=> new Expression('NOW()'),\n 'updated_at'=> new Expression('NOW()')]);\n $this->insert('user',['username'=>'Administrator', 'password_hash'=>'$2y$13$6yoLjvVORp/7EO1u8phYTuWYzhMSM4LVVsebZgcqEKj/EQLvo5nJK',\n 'email'=>'[email protected]',\n 'created_at'=> new Expression('NOW()'),\n 'updated_at'=> new Expression('NOW()'),\n 'status'=>1\n ]\n );\n }", "public function safeUp() {\n\n $this->createTable('word', [\n 'word_id' => Schema::TYPE_PK,\n 'word_lang_id' => $this->integer(),\n 'word_name' => $this->string(500) . ' NOT NULL',\n 'word_detais' => $this->string(1000),\n ]);\n\n // Add foreign key\n $this->addForeignKey('fk_language_word_1', 'word',\n 'word_lang_id', 'language', 'lang_id', 'CASCADE', 'NO ACTION');\n \n // Create index of foreign key\n $this->createIndex('word_lang_id_idx', 'word', 'word_lang_id');\n }", "public function safeUp()\n {\n $this->dropForeignKey('option_link_option_fk', '{{%user_option_link}}');\n $this->dropForeignKey('option_category_fk', '{{%option}}');\n $this->dropForeignKey(\"question_option_fk\", \"{{%question}}\");\n\n $this->dropTable('{{%option}}');\n $this->dropTable('{{%category}}');\n }", "public function safeUp()\n {\n $this->alterColumn('item_keuangan', 'created_at', \"TIMESTAMP NOT NULL DEFAULT '2000-01-01 00:00:00'\");\n\n /* Tambah Field */\n $this->addColumn('item_keuangan', 'status', \"TINYINT(1) NOT NULL DEFAULT '1' COMMENT '0=tidak aktif; 1=aktif;' AFTER `jenis`\");\n }", "public function safeUp()\n {\n $this->createTable(\n $this->tableName,\n [\n 'id' => $this->primaryKey(),\n 'user_id' => $this->integer(). ' UNSIGNED NOT NULL' ,\n 'source' => $this->string()->notNull(),\n 'source_id' => $this->string()->notNull(),\n ],\n 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'\n );\n\n $this->addForeignKey('fk_social_auth_user_id_to_user_id', $this->tableName, 'user_id', '{{%user}}', 'id', 'CASCADE', 'CASCADE');\n }", "public function safeUp()\n {\n $this->addColumn($this->table_name, 'fk_category', $this->integer()->notNull()->after('id'));\n\n // creates index for column `fk_category`\n $this->createIndex(\n \"{{%idx-{$this->table_name}-fk_category}}\",\n \"{{%{$this->table_name}}}\",\n 'fk_category'\n );\n\n // add foreign key for table `{{%category}}`\n $this->addForeignKey(\n \"{{%fk-{$this->table_name}-fk_category}}\",\n \"{{%{$this->table_name}}}\",\n 'fk_category',\n \"{{%forum_category}}\",\n 'id',\n 'CASCADE'\n );\n }", "public function safeUp()\n {\n $tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n // http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\n $this->createTable('{{%category_posts}}', [\n 'post_id' => Schema::TYPE_INTEGER,\n 'category_id' => Schema::TYPE_INTEGER,\n ], $tableOptions);\n\n $this->createIndex('FK_category', '{{%category_posts}}', 'category_id');\n $this->addForeignKey(\n 'FK_category_post', '{{%category_posts}}', 'category_id', '{{%category}}', 'id', 'SET NULL', 'CASCADE'\n );\n\n $this->createIndex('FK_post', '{{%category_posts}}', 'post_id');\n $this->addForeignKey(\n 'FK_post_category', '{{%category_posts}}', 'post_id', '{{%post}}', 'id', 'SET NULL', 'CASCADE'\n );\n\n }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t'like',\n\t\t\tarray(\n\t\t\t\t'id'=>'int(11) UNSIGNED NOT NULL AUTO_INCREMENT',\n\t\t\t\t'user_id' => 'int(11) UNSIGNED NOT NULL',\n\t\t\t\t'post_id' => 'int (11) NOT NULL',\n\t\t\t\t'status' => 'TINYINT(1)',\n\t\t\t\t'created_at' => 'int(11)',\n\t\t\t\t'updated_at' => 'int(11)',\n\t\t\t\t'PRIMARY KEY (id)',\n\t\t\t\t),\n\t\t\t'ENGINE=InnoDB'\n\n\t\t\t);\n\t}", "public function safeUp()\n {\n $this->createTable('user', array(\n 'name' => 'string',\n 'username' => 'string NOT NULL',\n 'password' => 'VARCHAR(32) NOT NULL',\n 'salt' => 'VARCHAR(32) NOT NULL',\n 'role' => \"ENUM('partner', 'admin')\"\n ));\n }", "public function safeUp()\n\t{\n\t\t$this->createTable('ejecutivos', array(\n\t\t\t\t'id' => 'pk',\n\t\t\t\t'cliente_id' => 'INT NOT NULL',\n\t\t\t\t'cargo' => 'VARCHAR(45) DEFAULT NULL',\n\t\t\t\t'nombre' => 'VARCHAR(45) DEFAULT NULL',\n\t\t\t\t'apellido' => 'VARCHAR(45) DEFAULT NULL',\n\t\t\t\t'email' => 'VARCHAR(255) DEFAULT NULL',\n\t\t\t\t'telefono' => 'VARCHAR(45) DEFAULT NULL',\n\t\t\t\t'celular' => 'VARCHAR(45) DEFAULT NULL',\n\t\t));\n\t\t$this->addForeignKey('FK01_ejecutivos_cliente', 'ejecutivos', 'cliente_id', 'cliente', 'id', 'RESTRICT');\n\t\n\t}", "public function safeUp()\n {\n $this -> alterColumn('diving_log', 'weight', $this->smallInteger()->notNull()->defaultValue(0)->comment('配重'));\n }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\n\t\t\t\t'application_id' => 'VARCHAR(32) NOT NULL DEFAULT \"\" COMMENT \"Ид приложения\"',\n\n\t\t\t\t'message' => 'TEXT NOT NULL DEFAULT \"\" COMMENT \"Оригинал\"',\n\t\t\t\t'category' => 'VARCHAR(32) NOT NULL DEFAULT \"\" COMMENT \"Категория\"',\n\t\t\t\t'language' => 'VARCHAR(5) NOT NULL DEFAULT \"\" COMMENT \"Язык\"',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\t}", "public function safeUp()\n {\n $this->createTable('site_phrase', array(\n 'site_id' => self::MYSQL_TYPE_UINT,\n 'phrase' => 'string NOT NULL',\n 'hash' => 'varchar(32)',\n 'price' => 'decimal(10,2) NOT NULL',\n 'active' => self::MYSQL_TYPE_BOOLEAN,\n ));\n\n $this->addForeignKey('site_phrase_site_id', 'site_phrase', 'site_id', 'site', 'id', 'CASCADE', 'RESTRICT');\n }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'l_id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\t\t\t\t'model_id' => 'INT UNSIGNED NOT NULL',\n\t\t\t\t'lang_id' => 'VARCHAR(5) NULL DEFAULT NULL',\n\n\t\t\t\t// examples:\n\t\t\t\t'l_label' => 'VARCHAR(200) NULL DEFAULT NULL',\n\t\t\t\t'l_announce' => 'TEXT NULL DEFAULT NULL',\n\t\t\t\t//'l_content' => 'TEXT NULL DEFAULT NULL',\n\n\t\t\t\t'INDEX key_model_id_lang_id (model_id, lang_id)',\n\t\t\t\t'INDEX key_model_id (model_id)',\n\t\t\t\t'INDEX key_lang_id (lang_id)',\n\n\t\t\t\t'CONSTRAINT fk_principles_lang_model_id_to_main_model_id FOREIGN KEY (model_id) REFERENCES ' . $this->relatedTableName . ' (id) ON DELETE CASCADE ON UPDATE CASCADE',\n\t\t\t\t'CONSTRAINT fk_principles_lang_lang_id_to_language_id FOREIGN KEY (lang_id) REFERENCES {{language}} (code) ON DELETE RESTRICT ON UPDATE CASCADE',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\t}", "public function safeUp()\n\t{\n $this->dropForeignKey('client', Yii::app()->getModule('user')->tableUsersClients);\n $this->addForeignKey('client', Yii::app()->getModule('user')->tableUsersClients, 'clients_id', Yii::app()->getModule('user')->tableClients, 'id', 'SET NULL', 'SET NULL');\n\t}", "public function safeUp() {\n\t$this->createTable('post', array(\n 'id' =>\"int(11) NOT NULL AUTO_INCREMENT\",\n 'created_on' =>\"int(11) NOT NULL\",\n 'title' =>\"varchar(255) NOT NULL\",\n 'context' =>\"text NOT NULL\",\n \"PRIMARY KEY (`id`)\"\n\t),'ENGINE=InnoDB DEFAULT CHARSET=utf8');\n }", "public function safeUp() {\n\n $this->createTable('user', [\n 'user_id' => Schema::TYPE_PK,\n 'user_first_name' => $this->string(100) . ' NOT NULL',\n 'user_last_name' => $this->string(100) . ' NOT NULL',\n 'user_email' => $this->string(100) . ' NOT NULL',\n 'user_password' => $this->string(500) . ' NOT NULL',\n 'user_access_token' => $this->string(500),\n 'user_auth_token' => $this->string(500),\n 'user_created_at' => $this->integer() . ' NOT NULL',\n 'user_modified_at' => $this->integer() . ' NOT NULL',\n ]);\n\n // Create index of foreign key\n $this->createIndex('user_email_idx', 'user', 'user_email');\n\n // Create index of foreign key\n $this->createIndex('user_password_idx', 'user', 'user_password');\n }", "public function safeUp()\n {\n $this->addColumn($this->tableName, 'page_hash', $this->string(32));\n\n $this->createIndex('posts_rating_page_hash_idx', $this->tableName, 'page_hash');\n }", "public function safeUp()\n {\n $this->addColumn('{{%organization}}', 'legal_entity', $this->string()->null());\n $this->addColumn('{{%organization}}', 'contact_name', $this->string()->null());\n $this->addColumn('{{%organization}}', 'about', $this->text()->null());\n $this->addColumn('{{%organization}}', 'picture', $this->string()->null());\n }", "public function safeUp()\r\n {\r\n $tableOptions = null;\r\n if ($this->db->driverName === 'mysql') {\r\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB';\r\n }\r\n\r\n $this->createTable('{{%contact_msg}}', [\r\n 'id' => Schema::TYPE_PK,\r\n 'from_email' => Schema::TYPE_STRING . \"(320) NOT NULL\",\r\n 'to_email' => Schema::TYPE_STRING . \"(320) NULL\",\r\n 'subject' => Schema::TYPE_STRING . \"(300) NOT NULL\",\r\n 'text' => Schema::TYPE_TEXT,\r\n 'viewed' => Schema::TYPE_BOOLEAN . \"(1) NOT NULL DEFAULT '0'\",\r\n 'created_at' => Schema::TYPE_TIMESTAMP . \" NULL\",\r\n 'updated_at' => Schema::TYPE_TIMESTAMP . \" NULL\",\r\n ], $tableOptions);\r\n }", "public function safeUp()\n\t{\n\t $json = '{\"settings\":{\"dependencies\":[],\"elements\":{\"fields\":[{\"group\":\"About Page\",\"name\":\"CV\",\"handle\":\"cv\",\"instructions\":\"This is the cv and shadow cv that can be downloaded.\",\"translatable\":\"0\",\"required\":false,\"type\":\"Assets\",\"typesettings\":{\"useSingleFolder\":\"\",\"sources\":[\"resources\"],\"defaultUploadLocationSource\":\"timelinePhotos\",\"defaultUploadLocationSubpath\":\"\",\"singleUploadLocationSource\":\"timelinePhotos\",\"singleUploadLocationSubpath\":\"\",\"restrictFiles\":\"\",\"limit\":\"1\",\"viewMode\":\"list\",\"selectionLabel\":\"Upload CV\"}},{\"group\":\"About Page\",\"name\":\"Speaker Packet\",\"handle\":\"speakerPacket\",\"instructions\":\"This is the professional bio and speaker\\u0027s packet that can be downloaded.\",\"translatable\":\"0\",\"required\":false,\"type\":\"Assets\",\"typesettings\":{\"useSingleFolder\":\"\",\"sources\":[\"resources\"],\"defaultUploadLocationSource\":\"resources\",\"defaultUploadLocationSubpath\":\"\",\"singleUploadLocationSource\":\"timelinePhotos\",\"singleUploadLocationSubpath\":\"\",\"restrictFiles\":\"\",\"limit\":\"1\",\"viewMode\":\"list\",\"selectionLabel\":\"Upload speaker packet\"}}]}}}';\n return craft()->migrationManager_migrations->import($json);\n }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\n\t\t\t\t'label' => 'VARCHAR(20) NULL DEFAULT NULL COMMENT \"language label\"',\n\t\t\t\t'code' => 'VARCHAR(5) NOT NULL COMMENT \"language code\"',\n\t\t\t\t'locale' => 'VARCHAR (5) NULL DEFAULT NULL',\n\n\t\t\t\t'visible' => 'TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT \"0 - not visible; 1 - visible\"',\n\t\t\t\t'published' => 'TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT \"0 - not published; 1 - published\"',\n\t\t\t\t'position' => 'INT UNSIGNED NOT NULL DEFAULT 0 COMMENT \"order by position DESC\"',\n\t\t\t\t'created' => 'INT UNSIGNED NOT NULL COMMENT \"unix timestamp - creation time\"',\n\t\t\t\t'modified' => 'INT UNSIGNED NOT NULL COMMENT \"unix timestamp - last entity modified time\"',\n\n\t\t\t\t'UNIQUE key_unique_code (code)',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\n\t\t$this->insert('{{language}}', array(\n\t\t\t'label' => 'рус',\n\t\t\t'code' => 'ru',\n\t\t\t'locale' => 'ru',\n\t\t));\n\t}", "public function safeUp()\n\t{\n\t\t$this->createTable('quiz_sections', array(\n 'section_id' => 'pk',\n 'title' => 'string NOT NULL',\n ));\n\t}", "public function safeUp()\n\t{\n\t\t$this->dropForeignKey('fk_issue_project','tbl_issue');\n\t\t$this->dropForeignKey('fk_issue_owner','tbl_issue');\n\t\t$this->dropForeignKey('fk_issue_requester','tbl_issue');\n\t\t$this->dropForeignKey('fk_user_project','tbl_project_user_assignment');\n\t\t$this->dropForeignKey('fk_project_user','tbl_project_user_assignment');\n\n\t\t$this->alterColumn('tbl_user','id','varchar(64)');\n\t\t$this->alterColumn('tbl_user','create_user_id','varchar(64)');\n\t\t$this->alterColumn('tbl_user','update_user_id','varchar(64)');\n\t\t$this->alterColumn('tbl_issue','id','varchar(64)');\n\t\t$this->alterColumn('tbl_issue','create_user_id','varchar(64)');\n\t\t$this->alterColumn('tbl_issue','update_user_id','varchar(64)');\n\t\t$this->alterColumn('tbl_issue','project_id','varchar(64)');\n\t\t$this->alterColumn('tbl_issue','status_id','varchar(64)');\n\t\t$this->alterColumn('tbl_issue','owner_id','varchar(64)');\n\t\t$this->alterColumn('tbl_issue','requester_id','varchar(64)');\n\t\t$this->alterColumn('tbl_project','id','varchar(64)');\n\t\t$this->alterColumn('tbl_project','create_user_id','varchar(64)');\n\t\t$this->alterColumn('tbl_project','update_user_id','varchar(64)');\n\t\t$this->alterColumn('tbl_project_user_assignment','project_id','varchar(64)');\n\t\t$this->alterColumn('tbl_project_user_assignment','user_id','varchar(64)');\n\n\n\n\t $this->addForeignkey('fk_issue_project','tbl_issue','project_id','tbl_project','id','CASCADE','RESTRICT');\n\t $this->addForeignkey('fk_issue_owner','tbl_issue','owner_id','tbl_user','id','CASCADE','RESTRICT');\n\t $this->addForeignkey('fk_issue_requester','tbl_issue','requester_id','tbl_user','id','CASCADE','RESTRICT');\n\t $this->addForeignkey('fk_project_user','tbl_project_user_assignment','project_id','tbl_project','id','CASCADE','RESTRICT');\n\t $this->addForeignkey('fk_user_project','tbl_project_user_assignment','user_id','tbl_user','id','CASCADE','RESTRICT');\n\t}", "protected abstract function do_up();", "protected function rollBackTransaction()\n {\n $this->container->make('db')->rollBack();\n }", "public function safeDown()\n\t{\n\t\t$this->dropTable($this->tableName);\n\t}", "public function safeDown()\n\t{\n\t\t$this->dropTable($this->tableName);\n\t}", "public function safeDown()\n\t{\n\t\t$this->dropTable($this->tableName);\n\t}", "abstract public function up();", "abstract public function up();", "abstract public function up();", "public function migrate() {}", "public function migrate()\n {\n $fileSystem = new Filesystem();\n\n $fileSystem->copy(\n __DIR__.'/../database/migrations/2018_06_29_032244_create_laravel_follow_tables.php',\n __DIR__.'/database/migrations/create_laravel_follow_tables.php'\n );\n\n foreach ($fileSystem->files(__DIR__.'/database/migrations') as $file) {\n $fileSystem->requireOnce($file);\n }\n\n (new \\CreateLaravelFollowTables())->up();\n (new \\CreateUsersTable())->up();\n (new \\CreateOthersTable())->up();\n }", "abstract protected function up();", "public function safeDown()\n {\n $this->dropTable($this->tableName);\n }", "public function preUp()\n {\n }", "public function migrate()\n {\n $fileSystem = new Filesystem();\n $classFinder = new ClassFinder();\n\n foreach ($fileSystem->files(__DIR__.'/../../../../tests/NilPortugues/App/Migrations') as $file) {\n $fileSystem->requireOnce($file);\n $migrationClass = $classFinder->findClass($file);\n (new $migrationClass())->down();\n (new $migrationClass())->up();\n }\n }", "public function migrate()\n\t{ \n\t\t(new MigratorInterface)->migrate();\n\t}", "public function isMigratingUp();", "public function safeUp()\n\t{\n\t $json = '{\"settings\":{\"dependencies\":{\"sections\":[{\"name\":\"Resources\",\"handle\":\"resources\",\"type\":\"channel\",\"enableVersioning\":\"1\",\"hasUrls\":\"1\",\"template\":\"resources/_entry\",\"maxLevels\":null,\"locales\":{\"en_us\":{\"locale\":\"en_us\",\"urlFormat\":\"resources/{slug}\",\"nestedUrlFormat\":null,\"enabledByDefault\":\"1\"}},\"entrytypes\":[{\"sectionHandle\":\"resources\",\"hasTitleField\":\"1\",\"titleLabel\":\"Title\",\"name\":\"Resources\",\"handle\":\"resources\",\"fieldLayout\":{\"Content\":[\"description\"]},\"requiredFields\":[]}]}]},\"elements\":{\"sections\":[{\"name\":\"Resources\",\"handle\":\"resources\",\"type\":\"channel\",\"enableVersioning\":\"1\",\"hasUrls\":\"1\",\"template\":\"resources/_entry\",\"maxLevels\":null,\"locales\":{\"en_us\":{\"locale\":\"en_us\",\"urlFormat\":\"resources/{slug}\",\"nestedUrlFormat\":null,\"enabledByDefault\":\"1\"}},\"entrytypes\":[{\"sectionHandle\":\"resources\",\"hasTitleField\":\"1\",\"titleLabel\":\"Title\",\"name\":\"Resources\",\"handle\":\"resources\",\"fieldLayout\":{\"Content\":[\"description\"]},\"requiredFields\":[]}]}]}}}';\n return craft()->migrationManager_migrations->import($json);\n }", "public function migrate()\n {\n $this->syncRepository();\n $this->copyVariables();\n $this->copyDeployKeys();\n $this->reEnableBuilds();\n }", "public function safeUp()\n {\n $fields = (new Query())\n ->select(['*'])\n ->from([Table::FIELDS])\n ->where(['like', 'context', 'superTableBlockType:'])\n ->andWhere(['type' => MissingField::class])\n ->all();\n\n foreach ($fields as $field) {\n $settings = Json::decode($field['settings']);\n\n if (is_array($settings) && array_key_exists('expectedType', $settings)) {\n $expectedType = $settings['expectedType'];\n $newSettings = $settings['settings'] ?? [];\n\n $this->update(Table::FIELDS, [\n 'type' => $expectedType,\n 'settings' => $newSettings,\n ], [\n 'id' => $field['id']\n ]);\n }\n }\n }", "public function up() { return $this->run('up'); }", "public function up()\n {\n if (!$this->isEdu()) {\n return;\n }\n \n $this->edu_up();\n }", "public function safeUp()\n {\n $this->createTable('user', array(\n 'id' => $this->primaryKey(),\n 'user_name' => $this->string(50)->notNull(),\n 'last_name' => $this->string(50)->notNull(),\n 'first_name' => $this->string(50)->notNull(),\n 'email' => $this->string(255)->notNull(),\n 'password' => $this->string(255)->notNull(),\n 'birthday' => $this->date(),\n 'zipcode' => $this->integer(5)->notNull(),\n 'city' => $this->string(50)->notNull(),\n 'country' => $this->string(50)->notNull(),\n 'street' => $this->string(50)->notNull(),\n 'update_time' => $this->dateTime(),\n 'create_time' => $this->dateTime(),\n ) // make für data form wir konnen später tauschen\n , 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB');\n\n\n\n }", "public function migrate()\n\t{\n\t}", "public function safeUp()\n\t{\n\t\t$chargesTable = $this->dbConnection->schema->getTable('{{charges}}');\n\n\t\tif ($chargesTable->getColumn('planCoupon') === null)\n\t\t{\n\t\t\t// Add the 'hash' column to the charges table\n\t\t\t$this->addColumnAfter('charges', 'planCoupon', array('column' => ColumnType::Varchar), 'planAmount');\n\t\t\t$this->addColumnAfter('charges', 'planDiscount', array('column' => ColumnType::Int), 'planAmount');\n\t\t\t$this->addColumnAfter('charges', 'planFullAmount', array('column' => ColumnType::Int), 'planAmount');\n\t\t\t$this->addColumnAfter('charges', 'planCouponStripeId', array('column' => ColumnType::Varchar), 'planCoupon');\n\t\t}\n\n\t\treturn true;\n\t}", "public function safeUp()\n {\n $this->addColumn('contract', 'type_of_payment', 'VARCHAR(255)');\n }", "function migrate(){\n\n create_table();\n save_migration_tables();\n\n}", "abstract public function up(ExceptionalMysqli &$mysqli);", "public function safeDown()\n {\n $this->down();\n }", "public function safeDown()\n {\n $this->down();\n }", "private function rollBack()\n\t{\n\t\tif (self::TRANSACTION) {\n\t\t\t$this->database->rollBack();\n\t\t}\n\t}", "public function preUp(MigrationManager $manager)\n {\n }", "public function preUp(MigrationManager $manager)\n {\n }", "public function preUp(MigrationManager $manager)\n {\n }", "public function up()\n {\n $oldStores = $this->getOldStores(); // update to newest data_version\n $newStores = $this->getNewStores(); // run all upgrade files\n if (!count($oldStores) && !count($newStores)) {\n return;\n }\n\n foreach ($this->getDepends() as $moduleCode) {\n if (0 !== strpos($moduleCode, 'TM_')) {\n continue;\n }\n $this->_getModuleObject($moduleCode)->up();\n }\n $saved = false;\n\n // upgrade currently installed version to the latest data_version\n if (count($oldStores)) {\n foreach ($this->getUpgradesToRun() as $version) {\n // customer able to skip upgrading data of installed modules\n if (!$this->getSkipUpgrade()) {\n $this->getUpgradeObject($version)\n ->setStoreIds($oldStores)\n ->upgrade();\n }\n $this->setDataVersion($version)->save();\n $saved = true;\n }\n }\n\n // install module to the new stores\n if (count($newStores)) {\n foreach ($this->getUpgradesToRun(0) as $version) {\n $this->getUpgradeObject($version)\n ->setStoreIds($newStores)\n ->upgrade();\n $this->setDataVersion($version)->save();\n $saved = true;\n }\n }\n\n if (!$saved) {\n $this->save(); // identity key could be updated without running the upgrades\n }\n }", "protected function rollbackToSavePoint(): void\n {\n foreach ($this->getActiveConnections() as $connection) {\n try {\n while ($connection->isTransactionActive()) {\n $connection->rollBack();\n }\n } catch (\\Exception $e) {\n }\n }\n }", "public function safeDown()\n {\n //return false;\n $this->dropTable($this->tablePost);\n $this->dropTable($this->tableUser);\n }", "public function safeUp() {\n\n $user_id = 2;\n\n $this->insert('{{%category}}', [\n 'title' => 'Games',\n 'description' => 'Contains all games related categoried',\n 'show_in_menu' => TRUE,\n 'created_at' => 1493585108,\n 'updated_at' => 1493585108,\n ]);\n\n $category_id = $this->db->getLastInsertID();\n\n $this->insert('{{%application}}', [\n 'package_id' => 'testingapplicasdfasfasdationasdfasdjflasjdfasdjfl',\n 'title' => 'Sub way surfers',\n 'short_description' => 'This is short description',\n 'description' => 'This is very good game',\n 'playstore_url' => 'http://play.google.com',\n 'user_id' => $user_id,\n 'created_at' => 1493585108,\n 'updated_at' => 1493585108,\n ]);\n\n $app_id = $this->db->getLastInsertID();\n\n $this->insert('{{%application_category}}', [\n 'application_id' => $app_id,\n 'category_id' => $category_id,\n ]);\n\n $this->insert('{{%application}}', [\n 'package_id' => 'testingapplicationasdfasdjflsdfasdfasjdfasdjfl',\n 'title' => 'Candy Crush',\n 'short_description' => 'This is short description',\n 'description' => 'Here you crush candies',\n 'playstore_url' => 'http://play.google.com',\n 'user_id' => $user_id,\n 'created_at' => 1493585108,\n 'updated_at' => 1493585108,\n ]);\n\n $app_id = $this->db->getLastInsertID();\n\n $this->insert('{{%application_category}}', [\n 'application_id' => $app_id,\n 'category_id' => $category_id,\n ]);\n\n //new category\n $this->insert('{{%category}}', [\n 'title' => 'Sports',\n 'description' => 'Contains all sports apps that provide you sports info.',\n 'show_in_menu' => TRUE,\n 'created_at' => 1493585108,\n 'updated_at' => 1493585108,\n ]);\n\n $category_id = $this->db->getLastInsertID();\n\n $this->insert('{{%application}}', [\n 'package_id' => 'testingapplicationasdfasdjflasjdfasdjfasdfasdfl',\n 'title' => 'Ten Sports',\n 'short_description' => 'This is short description',\n 'description' => ' Here you watch ten sports live.',\n 'playstore_url' => 'http://play.google.com',\n 'user_id' => $user_id,\n 'created_at' => 1493585108,\n 'updated_at' => 1493585108,\n ]);\n\n $app_id = $this->db->getLastInsertID();\n\n $this->insert('{{%application_category}}', [\n 'application_id' => $app_id,\n 'category_id' => $category_id,\n ]);\n\n\n\n $this->insert('{{%application}}', [\n 'package_id' => 'testingapplicationasdfasdjflasjdfasdjfl',\n 'title' => 'Espncricinfo',\n 'short_description' => 'This is short description',\n 'description' => ' Here you can check all live cricket matches around the globe.',\n 'playstore_url' => 'http://play.google.com',\n 'user_id' => $user_id,\n 'created_at' => 1493585108,\n 'updated_at' => 1493585108,\n ]);\n\n $app_id = $this->db->getLastInsertID();\n\n $this->insert('{{%application_category}}', [\n 'application_id' => $app_id,\n 'category_id' => $category_id,\n ]);\n\n\n //new category\n $this->insert('{{%category}}', [\n 'title' => 'Health',\n 'description' => 'Contains all health related apps.',\n 'show_in_menu' => TRUE,\n 'created_at' => 1493585108,\n 'updated_at' => 1493585108,\n ]);\n\n\n $this->insert('{{%application}}', [\n 'package_id' => 'testingapplicationasdfas343djflasjdfasdjfl',\n 'title' => 'Doctors online',\n 'short_description' => 'This is short description',\n 'description' => ' Many doctors available to discuss you problems here.',\n 'playstore_url' => 'http://play.google.com',\n 'user_id' => $user_id,\n 'created_at' => 1493585108,\n 'updated_at' => 1493585108,\n ]);\n\n $app_id = $this->db->getLastInsertID();\n\n $this->insert('{{%application_category}}', [\n 'application_id' => $app_id,\n 'category_id' => $category_id,\n ]);\n\n\n $this->insert('{{%application}}', [\n 'package_id' => 'testingapplicationasdfasdjflaasdfas222sjdfasdjfl',\n 'title' => 'Fitnuss club ',\n 'short_description' => 'This is short description',\n 'description' => ' See each and everything related to fitness.',\n 'playstore_url' => 'http://play.google.com',\n 'user_id' => $user_id,\n 'created_at' => 1493585108,\n 'updated_at' => 1493585108,\n ]);\n\n $app_id = $this->db->getLastInsertID();\n\n $this->insert('{{%application_category}}', [\n 'application_id' => $app_id,\n 'category_id' => $category_id,\n ]);\n }", "public function safeUp() {\n $this->addColumn('istat_nazioni','data_soppressione', $this->date()->comment('Data soppressione o variazione'));\n $this->addColumn('istat_nazioni','soppressa', $this->boolean()->notNull()->defaultValue(0)->comment('Nazione soppressa o variata'));\n\n /**\n * Adding a new continent for ISTAT 'codici catastali dipendenze'\n */\n $this->insert('istat_continenti', [\n 'id' => 7,\n 'nome' => 'Dipendenze',\n ]);\n\n /**\n * Data manually extracted from data-sources/amministrazionicomunali_net-ESTERI.xls file\n * Source: https://www.amministrazionicomunali.net/docs/file/ESTERI.XLS (2018-08-18 10:10AM)\n */\n $this->batchInsert(\n \"istat_nazioni\",\n [ 'id', 'nome', 'nome_inglese', 'codice_catastale', 'istat_continenti_id', 'data_soppressione', 'soppressa'],\n [\n [ '2000000', 'Cecoslovacchia', 'Czechoslovakia', 'Z105', 1, '1993-01-01', 1],\n [ '2000001', 'Germania Repubblica Democratica', 'German Democratic Republic', 'Z111', 1, '1990-10-03', 1],\n [ '2000002', 'Germania Repubblica Federale', 'Federal Republic of Germany', 'Z112', 1, '1990-10-03', 1],\n [ '2000003', 'Iugoslavia', 'Yugoslavia', 'Z118', 1, '2003-01-04', 1],\n [ '2000004', 'U.R.S.S. - Unione Repubbliche Socialiste Sovietiche', 'U.S.S.R. - Union of Soviet Socialist Republics', 'Z135', 1, '1992-03-31', 1],\n [ '2000005', 'Georgia', 'Georgia', 'Z135', 3, '1994-01-01', 1],\n [ '2000006', 'Azerbaigian', 'Azerbaijan', 'Z141', 3, '1994-01-01', 1],\n [ '2000007', 'Kirghizistan', 'Kyrgyzstan', 'Z142', 3, '1994-01-01', 1],\n [ '2000008', 'Tagikistan', 'Tajikistan', 'Z147', 3, '1994-01-01', 1],\n [ '2000009', 'Turkmenistan', 'Turkmenistan', 'Z151', 3, '1994-01-01', 1],\n [ '2000010', 'Serbia e Montenegro', 'Serbia and Montenegro', 'Z157', 3, '2006-06-02', 1],\n [ '2000011', 'Arabia Meridionale, Federazione', 'South Arabia, Federation of', 'Z201', 3, '1975-12-31', 1],\n [ '2000012', 'Arabia Meridionale, Protettorato', 'South Arabia, Protectorate of', 'Z202', 3, '1975-12-31', 1],\n [ '2000013', 'Malaysia', 'Malaysia', 'Z230', 3, '1965-08-09', 1],\n [ '2000014', 'Ryukyu (Isole)', 'Ryukyu (Islands)', 'Z238', 3, '1972-05-22', 1],\n [ '2000015', 'Sikkim', 'Sikkim', 'Z239', 3, '1974-06-28', 1],\n [ '2000016', 'Timor (Isola)', 'Timor (Island)', 'Z242', 3, '1976-06-01', 1],\n [ '2000017', 'Vietnam del Sud', 'South Vietnam', 'Z244', 3, '1976-04-25', 1],\n [ '2000040', 'Vietnam del Nord', 'North Vietnam', 'Z245', 3, '1976-04-25', 1],\n [ '2000018', 'Yemen, Repubblica Democratica Popolare', 'People\\'s Democratic Republic of Yemen', 'Z250', 3, '1990-05-22', 1],\n [ '2000019', 'Africa del Sud-Ovest', 'South West Africa', 'Z300', 2, '1990-03-21', 1],\n [ '2000020', 'Basutoland', 'Basutoland', 'Z303', 2, '1966-10-04', 1],\n [ '2000021', 'Beciuania (Botswana)', 'Botswana', 'Z304', 2, '1966-09-30', 1],\n [ '2000022', 'IFNI', 'IFNI', 'Z323', 2, '1984-12-31', 1],\n [ '2000023', 'Sahara Spagnolo', 'Spanish Sahara', 'Z339', 2, '1976-01-01', 1],\n [ '2000024', 'Territorio francese degli Afar e degli Issa', 'French Territory of the Afars and the Issas', 'Z346', 2, '1977-06-27', 1],\n [ '2000025', 'Somalia Francese', 'French Somaliland', 'Z346', 2, '1975-12-31', 1],\n [ '2000026', 'Tanganica', 'Tanganyika', 'Z350', 2, '1964-04-25', 1],\n [ '2000027', 'Zanzibar', 'Zanzibar', 'Z356', 2, '1964-04-25', 1],\n [ '2000028', 'Sahara Meridionale', 'South Sahara', 'Z362', 2, '1976-01-01', 1],\n [ '2000029', 'Sahara Settentrionale', 'North Sahara', 'Z363', 2, '1976-01-01', 1],\n [ '2000030', 'Bophuthatswana', 'Bophuthatswana', 'Z364', 2, '1994-01-01', 1],\n [ '2000031', 'Transkei', 'Transkei', 'Z365', 2, '1994-01-01', 1],\n [ '2000032', 'Venda', 'Venda', 'Z366', 2, '1994-01-01', 1],\n [ '2000033', 'Ciskei', 'Ciskei', 'Z367', 2, '1994-01-01', 1],\n [ '2000034', 'Nyasaland', 'Nyasaland', 'Z369', 2, '1964-07-05', 1],\n [ '2000035', 'Congo Belga', 'Belgian Congo', 'Z370', 2, '1960-01-01', 1],\n [ '2000036', 'Antille Britanniche (Prima del 30-11-1966)', 'British Antilles (Before 1966-11-30)', 'Z500', 4, '1975-12-31', 1],\n [ '2000037', 'Antille Olandesi', 'Dutch Antilles', 'Z501', 4, '1973-07-10', 1],\n [ '2000038', 'Panama Zona Del Canale', 'Panama Canal Zone', 'Z517', 4, '1977-09-07', 1],\n [ '2000039', 'Antille Britanniche (Tra 30-11-1966 e 07-02-1974)', 'British Antilles (Between 30-11-1966 and 07-02-1974)', 'Z521', 4, '1974-02-07', 1],\n [ '2000041', 'Antille Britanniche', 'British Antilles', 'Z523', 4, '1983-09-19', 1],\n [ '2000042', 'Guyana Olandese', 'Dutch Guyana', 'Z608', 4, '1975-12-31', 1],\n [ '2000043', 'Guyana Britannica', 'British Guyana', 'Z606', 4, '1975-12-31', 1],\n [ '2000044', 'Caroline (Isole)', 'Caroline (Islands)', 'Z701', 4, '1984-12-31', 1],\n [ '2000045', 'Gilbert e Ellice (Isole)', 'Gilbert and Ellice Islands', 'Z705', 5, '1980-12-31', 1],\n [ '2000046', 'Marcus (Isole)', 'Marcus (Islands)', 'Z705', 5, '1975-12-31', 1],\n [ '2000047', 'Nuove Ebridi (Isole Condominio Franco-Inglese)', 'New Hebrides', 'Z717', 5, '1980-12-31', 1],\n [ '2000048', 'Nuova Guinea (Prima del 31-12-1975)', 'New Guinea (Before 1975-12-31)', 'Z718', 5, '1975-12-31', 1],\n [ '2000049', 'Papuasia', 'Papuasia', 'Z720', 5, '1975-12-31', 1],\n [ '2000050', 'Dipendenze Canadesi', 'Canada Dependent', 'Z800', 7, null, 0],\n [ '2000051', 'Dipendenze Norvegesi Artiche', 'Norwegian Artic Dependent', 'Z801', 7, null, 0],\n [ '2000052', 'Dipendenze Sovietiche', 'Soviet Union Dependent', 'Z802', 7, '1992-03-31', 1],\n [ '2000053', 'Dipendenze Russe', 'Russia Dependent', 'Z802', 7, null, 0],\n [ '2000054', 'Dipendenze Australiane', 'Australia Dependent', 'Z900', 7, null, 0],\n [ '2000055', 'Dipendenze Britanniche', 'Britain Dependent', 'Z901', 7, null, 0],\n [ '2000056', 'Dipendenze Francesi', 'France Dependent', 'Z902', 7, null, 0],\n [ '2000057', 'Dipendenze Neozelandesi', 'New Zealand Dependent', 'Z903', 7, null, 0],\n [ '2000058', 'Dipendenze Norvegesi Antartiche', 'Norwegian Antartica Dependent', 'Z904', 7, null, 0],\n [ '2000059', 'Dipendenze Statunitensi', 'US Dependent', 'Z905', 7, null, 0],\n [ '2000060', 'Dipendenze Sudafricane', 'South Africa Dependent', 'Z906', 7, null, 0],\n ]\n );\n\n return true;\n\n }", "public function safeDown()\r\n {\r\n $this->down();\r\n }", "public function safeDown()\n\t{\n $sql=\" ALTER TABLE `tbl_venta` DROP `punto_venta_id` ;\";\n $this->execute($sql);\n //quitando la columna pto_venta de tbl_empleado\n $sql=\" ALTER TABLE `tbl_empleado` DROP `punto_venta_id` ;\";\n $this->execute($sql);\n\t}", "function runUp()\n{\n $files = scandir(LIB_ROOT . '/migrations');\n\n $db_migration_version = get_current_migration_version();\n\n $migrations = array();\n\n foreach($files as $file)\n {\n if(preg_match('/migration_([1-9][0-9]*)\\.php/i', $file, $matches))\n {\n $migration_version = $matches[1];\n\n // we only care about this migration if it has not been performed yet\n if($migration_version > $db_migration_version)\n {\n require_once LIB_ROOT . '/migrations/' . $matches[0];\n\n $migrations[$migration_version] = 'Migration_' . $migration_version;\n }\n }\n }\n\n if(count($migrations) == 0)\n echo 'There are no migrations to run; DB is already up to date (at version ' . $db_migration_version . ').' . \"\\n\\n\";\n else\n {\n // sort migrations, so that we execute them in ascending order\n ksort($migrations);\n\n $count = 0;\n\n foreach ($migrations as $id => $class_name)\n {\n $migrationClass = new $class_name();\n\n $count++;\n\n echo 'Running migration ' . $id . ' (' . $count . ' of ' . count($migrations) . ')...' . \"\\n\";\n\n try\n {\n $migrationClass->Up();\n fetch_none('UPDATE migration_version SET version=' . quote_smart($id));\n echo ' done!' . \"\\n\";\n }\n catch(Exception $e)\n {\n echo ' Encountered an exception during migration:' . \"\\n\";\n echo ' ' . $e->getMessage() . \"\\n\";\n echo ' Migration was not completed; the database may be left in a weird state.' . \"\\n\";\n if($count < count($migrations))\n {\n $remaining = (count($migrations) - $count);\n echo $remaining . ' remaining migration' . ($remaining == 1 ? '' : 's') . ' will not be run.' . \"\\n\";\n }\n echo \"\\n\";\n die();\n }\n }\n\n echo 'All done!' . \"\\n\\n\";\n }\n}", "public function safeUp()\n\t{\n $this->insert('options', array('name'=>'user_activity_period','value'=>30));\t \n\t}", "public function up(PhoreDba $db)\n {\n }", "public function safeUp()\n {\n $this->createTable($this->tableName, [\n 'id' => $this->bigPrimaryKey(),\n 'name' => $this->string()->notNull(),\n 'alt_name' => $this->string()->notNull(),\n 'unit' => $this->string()->notNull(),\n 'value' => $this->double()->notNull(),\n 'sex' => $this->string()->notNull(),\n ]);\n\n $this->createIndex('norms_vit_min_alt_name_idx', $this->tableName, 'alt_name');\n $this->createIndex('norms_vit_min_unit_idx', $this->tableName, 'unit');\n $this->createIndex('norms_vit_min_sex_idx', $this->tableName, 'sex');\n\n $norms = [\n ['id' => 1, 'name' => 'Калий', 'alt_name' => 'macro_k',\t'unit' => 'мг', 'value' => 2500, 'sex' => 'a'],\n ['id' => 2, 'name' => 'Кальций', 'alt_name' => 'macro_ca', 'unit' => 'мг', 'value' => 1000, 'sex' => 'a'],\n ['id' => 3, 'name' => 'Магний', 'alt_name' => 'macro_mg', 'unit' => 'мг', 'value' => 400, 'sex' => 'a'],\n ['id' => 4, 'name' => 'Натрий', 'alt_name' => 'macro_na', 'unit' => 'мг', 'value' => 1300, 'sex' => 'a'],\n ['id' => 5, 'name' => 'Сера', 'alt_name' => 'macro_s', 'unit' => 'мг', 'value' => 1000, 'sex' => 'a'],\n ['id' => 6, 'name' => 'Фосфор', 'alt_name' => 'macro_p', 'unit' => 'мг', 'value' => 800, 'sex' => 'a'],\n ['id' => 7, 'name' => 'Хлор', 'alt_name' => 'macro_cl', 'unit' => 'мг', 'value' => 2300, 'sex' => 'a'],\n ['id' => 8, 'name' => 'Железо', 'alt_name' => 'micro_fe', 'unit' => 'мг', 'value' => 10, 'sex' => 'm'],\n ['id' => 9, 'name' => 'Железо', 'alt_name' => 'micro_fe', 'unit' => 'мг', 'value' => 18, 'sex' => 'w'],\n ['id' => 10, 'name' => 'Цинк', 'alt_name' => 'micro_zn', 'unit' => 'мг', 'value' => 12, 'sex' => 'a'],\n ['id' => 11, 'name' => 'Йод', 'alt_name' => 'micro_j', 'unit' => 'мкг', 'value' => 150, 'sex' => 'a'],\n ['id' => 12, 'name' => 'Медь', 'alt_name' => 'micro_cu', 'unit' => 'мг', 'value' => 1, 'sex' => 'a'],\n ['id' => 13, 'name' => 'Марганец', 'alt_name' => 'micro_mn', 'unit' => 'мг', 'value' => 2, 'sex' => 'a'],\n ['id' => 14, 'name' => 'Селен', 'alt_name' => 'micro_se', 'unit' => 'мкг', 'value' => 55, 'sex' => 'w'],\n ['id' => 15, 'name' => 'Селен', 'alt_name' => 'micro_se', 'unit' => 'мкг', 'value' => 70, 'sex' => 'm'],\n ['id' => 16, 'name' => 'Хром', 'alt_name' => 'micro_cr', 'unit' => 'мкг', 'value' => 50, 'sex' => 'a'],\n ['id' => 17, 'name' => 'Молибден', 'alt_name' => 'micro_mo', 'unit' => 'мкг', 'value' => 70, 'sex' => 'a'],\n ['id' => 18, 'name' => 'Фтор', 'alt_name' => 'micro_f', 'unit' => 'мкг', 'value' => 4000, 'sex' => 'a'],\n ['id' => 19, 'name' => 'Кобальт', 'alt_name' => 'micro_co', 'unit' => 'мкг', 'value' => 10, 'sex' => 'a'],\n ['id' => 20, 'name' => 'Кремний', 'alt_name' => 'micro_si', 'unit' => 'мг', 'value' => 30, 'sex' => 'a'],\n ['id' => 21, 'name' => 'Бор', 'alt_name' => 'micro_b', 'unit' => 'мг', 'value' => 2, 'sex' => 'a'],\n ['id' => 22, 'name' => 'Ванадий', 'alt_name' => 'micro_v', 'unit' => 'мкг', 'value' => 40, 'sex' => 'a'],\n ['id' => 23, 'name' => 'Витамин C', 'alt_name' => 'vit_c', 'unit' => 'мг', 'value' => 90, 'sex' => 'a'],\n ['id' => 24, 'name' => 'Витамин B1 (тиамин)', 'alt_name' => 'vit_b1', 'unit' => 'мг', 'value' => 1.5, 'sex' => 'a'],\n ['id' => 25, 'name' => 'Витамин B2 (рибофлавин)', 'alt_name' => 'vit_b2', 'unit' => 'мг', 'value' => 1.8, 'sex' => 'a'],\n ['id' => 26, 'name' => 'Витамин B5 (пантотеновая кислота)', 'alt_name' => 'vit_b5',\t 'unit' => 'мг', 'value' => 5, 'sex' => 'a'],\n ['id' => 27, 'name' => 'Витамин B6 (пиридоксин)', 'alt_name' => 'vit_b6', 'unit' => 'мг', 'value' => 2, 'sex' => 'a'],\n ['id' => 28, 'name' => 'Витамин PP (ниацин)', 'alt_name' => 'vit_pp_niacin', 'unit' => 'мг', 'value' => 20, 'sex' => 'a'],\n ['id' => 29, 'name' => 'Витамин B12 (цианокобаламин)', 'alt_name' => 'vit_b12', 'unit' => 'мкг', 'value' => 3, 'sex' => 'a'],\n ['id' => 30, 'name' => 'Витамин B9 (фолиевая кислота)', 'alt_name' => 'vit_b9', 'unit' => 'мкг', 'value' => 400, 'sex' => 'a'],\n ['id' => 31, 'name' => 'Витамин H (биотин)', 'alt_name' => 'vit_h', 'unit' => 'мкг', 'value' => 50, 'sex' => 'a'],\n ['id' => 32, 'name' => 'Витамин A (РЭ)', 'alt_name' => 'vit_a_re', 'unit' => 'мкг',\t'value' => 900,\t'sex' => 'a'],\n ['id' => 33, 'name' => 'Бета-каротин', 'alt_name' => 'vit_beta_carotene', 'unit' => 'мг', 'value' => 5, 'sex' => 'a'],\n ['id' => 34, 'name' => 'Витамин E (ТЭ)', 'alt_name' => 'vit_e_te', 'unit' => 'мг', 'value' => 15, 'sex' => 'a'],\n ['id' => 35, 'name' => 'Витамин D', 'alt_name' => 'vit_d', 'unit' => 'мкг',\t'value' => 10, 'sex' => 'a'],\n ['id' => 36, 'name' => 'Витамин K (филлохинон)', 'alt_name' => 'vit_k', 'unit' => 'мкг', 'value' => 120, 'sex' => 'a'],\n ['id' => 37, 'name' => 'Холин', 'alt_name' => 'vit_choline',\t 'unit' => 'мг', 'value' => 500, 'sex' => 'a'],\n ];\n\n foreach ($norms as $norm){\n $fields = [];\n $values = [];\n foreach ($norm as $key => $value){\n $fields[] = $key;\n $values[] = ($key == 'id' || $key == 'value') ? $value : \"'$value'\";\n }\n $sql = 'INSERT INTO '.$this->tableName.' ('.implode(',', $fields).') VALUES('.implode(',', $values).')';\n Yii::$app->db->createCommand($sql)->execute();\n }\n }", "public function safeUp()\n {\n $this->createTable('items', [\n 'id' => $this->primaryKey(),\n 'topmenu_id' => $this->integer()->notNull(),//referense to table topmenu //tommenu.id\n 'items_id' => $this->integer()->notNull(),//referense to table_items this topmenu //tommenu.id\n 'name' => $this->string(50)->notNull()//equally table_items this topmenu namepropperty\n ]);\n $this->createIndex(\n 'idx-items_id_top_id',\n 'items',\n 'topmenu_id'//items.top_id\n );\n\n $this->addForeignKey(\n 'fk-items_id_top_id',\n 'items',//table items\n 'topmenu_id',//items.top_id\n 'topmenu',//table topmenu\n 'id',//topmenu.id\n 'CASCADE'\n );\n /**\n *\n */\n\n $this->createTable('properties',[\n 'id' => $this->primaryKey(),\n 'name' => $this->string(50)->notNull(),\n ]);\n /**\n *\n */\n\n $this->createTable('transport_prop',[\n 'id' => $this->primaryKey(),\n 'items_id' => $this->integer()->notNull(),\n 'prop_id' => $this->integer()->notNull(),\n 'value' => $this->string(50)->notNull(),\n ]);\n $this->createIndex(\n 'idx-items_id_transport_prop',\n 'transport_prop',\n 'items_id'//items.top_id\n );\n $this->createIndex(\n 'idx-prop_id_transport_prop',\n 'transport_prop',\n 'prop_id'//items.top_id\n );\n $this->addForeignKey(\n 'fk-prop_id_transport_prop',\n 'transport_prop',//table items\n 'prop_id',//items.top_id\n 'properties',//table topmenu\n 'id',//topmenu.id\n 'CASCADE'\n );\n /**\n *\n */\n\n $this->createTable('properties_group',[\n 'id' => $this->primaryKey(),\n 'groups' => $this->integer(),\n 'prop_id' => $this->integer()->notNull()\n ]);\n $this->createIndex(\n 'idx-items_id_properties_group',\n 'properties_group',\n 'prop_id'//items.top_id\n );\n $this->createIndex(\n 'idx-group_properties_group',\n 'properties_group',\n 'groups'//items.top_id\n );\n $this->addForeignKey(\n 'fk-items_id_properties_group',\n 'properties_group',//table items\n 'prop_id',//items.top_id\n 'properties',//table topmenu\n 'id',//topmenu.id\n 'CASCADE'\n );\n /**\n *\n */\n $this->createTable('items_transport', [\n 'id' => $this->primaryKey(),\n 'user_id' => $this->integer()->notNull(),\n 'catalog_id' => $this->integer()->notNull(),\n 'topmenu_id' => $this->integer()->notNull(),\n 'prop_group' => $this->integer()->notNull(),\n 'created_at' => $this->dateTime()->notNull(),\n 'updated_at' => $this->dateTime()->notNull(),\n 'description' => $this->string()->notNull(),\n 'status' => $this->smallInteger()->defaultValue(0),\n ]);\n $this->createIndex(\n 'idx-user_id_items_transport',\n 'items_transport',\n 'user_id'\n );\n $this->addForeignKey(\n 'fk-user_id_items_transport',\n 'items_transport',//table items\n 'user_id',//items.top_id\n 'users',//table topmenu\n 'id',//topmenu.id\n 'CASCADE'\n );\n $this->createIndex(\n 'idx-catalog_id_items_transport',\n 'items_transport',\n 'catalog_id'\n );\n $this->addForeignKey(\n 'fk-catalog_id_items_transport',\n 'items_transport',//table items\n 'catalog_id',//items.top_id\n 'catalog',//table topmenu\n 'id',//topmenu.id\n 'CASCADE'\n );\n $this->createIndex(\n 'idx-topmenu_id_items_transport',\n 'items_transport',\n 'topmenu_id'\n );\n $this->addForeignKey(\n 'fk-topmenu_id_items_transport',\n 'items_transport',//table items\n 'topmenu_id',//items.top_id\n 'topmenu',//table topmenu\n 'id',//topmenu.id\n 'CASCADE'\n );\n $this->createIndex(\n 'idx-prop_group_items_transport',\n 'items_transport',\n 'prop_group'\n );\n $this->addForeignKey(\n 'fk-prop_group_items_transport',\n 'items_transport',//table items\n 'prop_group',//items.top_id\n 'properties_group',//table topmenu\n 'groups',//topmenu.id\n 'CASCADE'\n );\n\n\n $this->addForeignKey(\n 'fk-items_id_transport_prop',\n 'transport_prop',//table items\n 'items_id',//items.top_id\n 'items_transport',//table topmenu\n 'id',//topmenu.id\n 'CASCADE'\n );\n /**\n *\n */\n $this->createTable('level',[\n 'id' => $this->primaryKey(),\n 'value' => $this->string(50)\n ]);\n\n /***\n *\n */\n\n $this->createTable('profile',[\n 'id' => $this->primaryKey(),\n 'user_id' => $this->integer(),\n 'tel_first' => $this->string(20)->notNull(),\n 'tel_sec' => $this->string(20)->defaultValue(''),\n 'tel_next' => $this->string(20)->defaultValue(''),\n 'name' => $this->string(50)->defaultValue('ded'),\n 'surname' => $this->string(50)->defaultValue('mozay'),\n 'patronymic' => $this->string(50)->defaultValue('klaus'),\n 'city' => $this->string(50)->defaultValue('Atlantida'),\n 'level' => $this->integer()->defaultValue(0)\n ]);\n\n $this->createIndex(\n 'idx-user_id_profile',\n 'profile',\n 'user_id'\n );\n $this->addForeignKey(\n 'fk-user_id_profile',\n 'profile',//table items\n 'user_id',//items.top_id\n 'users',//table topmenu\n 'id',//topmenu.id\n 'CASCADE'\n );\n $this->createIndex(\n 'idx-level_profile',\n 'profile',\n 'level'\n );\n $this->addForeignKey(\n 'fk-level_profile',\n 'profile',//table items\n 'level',//items.top_id\n 'level',//table topmenu\n 'id',//topmenu.id\n 'CASCADE'\n );\n }", "public function safeDown()\r\n\t{\r\n\t\t$this->down();\r\n\t}", "public function runDatabaseMigrations()\n {\n $this->parentRunDatabaseMigrations();\n\n $this->artisan('cms:migrate');\n\n $this->beforeApplicationDestroyed(function () {\n $this->artisan('cms:migrate:rollback');\n });\n }", "public function migrateDb();", "public function rollBack() {\r\n\r\n mysql_query(\"ROLLBACK\");\r\n mysql_query(\"SET AUTOCOMMIT=1\");\r\n\r\n }", "public function postUp(MigrationManager $manager)\n {\n }" ]
[ "0.7831747", "0.7831747", "0.77974", "0.77492934", "0.7730412", "0.76126146", "0.7103458", "0.7056744", "0.7019433", "0.686808", "0.68653876", "0.67907315", "0.67833483", "0.6779402", "0.677009", "0.6753907", "0.6714505", "0.66979295", "0.6674457", "0.66629297", "0.66621137", "0.6657859", "0.6657518", "0.66517824", "0.663475", "0.6610122", "0.65827286", "0.65714085", "0.6565238", "0.6548997", "0.6543551", "0.65302837", "0.6513902", "0.6480387", "0.64771324", "0.6475393", "0.64662755", "0.64604926", "0.6457323", "0.64404863", "0.64300686", "0.64279217", "0.64076346", "0.63700867", "0.636352", "0.6352612", "0.62880504", "0.62846977", "0.62407064", "0.6235668", "0.61976725", "0.61942893", "0.6194176", "0.6194176", "0.6194176", "0.61640126", "0.61640126", "0.61640126", "0.61180234", "0.6111234", "0.61068803", "0.61006767", "0.60806996", "0.607439", "0.60594463", "0.6058456", "0.6036609", "0.6011074", "0.59930515", "0.5973502", "0.59710646", "0.59639454", "0.5963636", "0.5952997", "0.59319353", "0.592054", "0.5916394", "0.5893679", "0.5893679", "0.588015", "0.5879281", "0.5879281", "0.5879281", "0.5870311", "0.5842325", "0.58388215", "0.5836178", "0.5827478", "0.58156645", "0.579084", "0.57896876", "0.5789304", "0.57892954", "0.5763077", "0.5759341", "0.5749299", "0.5743735", "0.5729707", "0.57289255", "0.5725803" ]
0.672025
16
send a nudge to a
function give($request_id = 0, $product_uuid = 0) { $this->loadModel('Product'); if ($product_uuid != 0) { $product = $this->Product->find('first', array( 'conditions' => array('uuid' => $product_uuid) )); $this->Nudge->create(); $this->Nudge->save(array( 'user_id' => $this->Auth->user('id'), 'product_id' => $product['Product']['id'], 'request_id' => $request_id )); return $this->redirect('/nudges/mine'); } // get the request $this->loadModel('Request'); $request = $this->Request->findById($request_id); $this->set(compact('request')); // products for that request $category = $request['Category']['name']; $products = $this->ProductManager->getProductsWithCategory($category); $this->set(compact('products')); // store the products foreach($products as $products){ // look for the uuid $product = $this->Product->find('first', array( 'conditions' => array('uuid' => $products['uuid']) )); if(!empty($product)){ // found continue; } $this->Product->create(); $this->Product->save($products); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function msgsrv_send ($target, $cmd, $content, $link) {}", "private function send_msg() {\r\n }", "function reply($id, $mobile, $message, $cost = 0);", "function vinculum_pingback__drush_send_pingback($nid, $target) {\n $node = node_load($nid);\n if (!$node) {\n drush_set_error('DRUSH_NOT_COMPLETED', \"Node not found.\");\n }\n else {\n $source = url(\"node/{$node->nid}\", array('absolute' => TRUE));\n VinculumPingbackHandler::send($source, $target);\n }\n}", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "abstract function doSend();", "abstract function send();", "function send($number, $message = 'This is a test message', $test = 0){\n\t\t\n\t\t$message = urlencode($message);\n\t\t\n\t\t// Prepare data for POST request\n\t\t$data = \"uname=\".$this->username.\"&pword=\".$this->password.\"&message=\".$message.\"&from=\".$this->from.\"&selectednums=\".$number.\"&info=1&test=\".$test;\n\t\t\n\t\t// Send the POST request with cURL\n\t\t$ch = curl_init($this->apiUrl);\n\t\tcurl_setopt($ch, CURLOPT_POST, true);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tif(curl_exec($ch)){ //This is the result from Txtlocal\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\t\t\n\t\t}\n\t}", "private function onPing()\n {\n $this->send($this->replyEvent());\n }", "public function reply()\n\t{\n\n\t\t$reply = $this->store('reply', '/threads?id=_id_#form-reply');\n\n\t\t(new Thread)->updateTotalReplies($reply->parent_id);\n\n\t\tredirect('/threads?id=' . $reply->parent_id . '#reply-id' . $reply->id);\n\t\n\t}", "protected function send() {}", "protected function sendNumberRequest( string $number ) : void\n {\n $message = \"SEND \" . $this->id . \" 1 \" . $number;\n $this->sendRequest($message);\n }", "public function doNick($nick)\n {\n $this->send('NICK', $nick);\n }", "public function send() {}", "public function send() {}", "public function send() {}", "public function send() {}", "public function send() {}", "public function postSend()\n {\n }", "public function getDianPing($client, $x)\n{\n while($x <= 21){\n $fields = array(\n 'body' => $this->processTextFields('.comment-txt'),\n 'author_id' => $this->processHrefFields('.name > a'),\n 'date' => $this->processTextFields('.time'),\n 'original_grade' => $this->processClassFields('.user-info > span'),\n 'venue' => $this->processHrefFields('.revitew-title > h1 > a'),\n );\n $this->getNewDianPingCritic($fields);\n }\n $x++;\n}", "function send($data);", "function send($data);", "function reply()\r\n\t{\r\n\t\t\r\n\t\t//must be logged in\r\n\t\t$this->dx_auth->check_uri_permissions();\r\n\t\t\r\n\t\t//set the data variable\r\n\t\t$data['parent_id'] = $this->uri->segment(3);\r\n\t\t\r\n\t\t//the parent id is the id we are replying to.\r\n\t\t$this->db->where('meaning_id', $data['parent_id']);\r\n\t\t//we have to do this so we can get the song_id from the parent's meaning\r\n\t\t$data['query'] = $this->db->get('meanings');\r\n\t\t\r\n\t\t//load the meanings reply view\r\n\t\t$this->template->write('title', 'Replying to a meaning');\r\n\t\t$this->template->write_view('content', 'meanings/reply', $data, true);\r\n\t\t$this->template->render();\r\n\t}", "public function triggerNum($num, $data){}", "function recruitTeam($cxn,$player,$request)\r\n {\r\n \r\n }", "public function send()\n {\n }", "public function post(string $n, $fallback = null);", "public function send()\n {\n }", "public function send()\n {\n }", "public function send()\n {\n }", "public function talk();", "function sendFaildVer(){\n\n}", "function sendWinner($gamestate){\n\tsend([\n\t\t'function' => 'winner',\n\t\t'data' => $gamestate,\n\t\t'me' => getSessionVar(\"playernum\"),\n\t\t'winner' => $gamestate['winner'],\n\t]);\n\treset_player();\n}", "public function testDirectReply()\n {\n $this->markTestIncomplete('Not yet implemented.');\n }", "public function reply()\n\t{\n\t\tif($this->return){\n\t\t\t$this->_reply(200, 'Ok', $this->return);\n\t\t}else{\n\t\t\t$this->_reply(200, 'Ok', $this->return);\n\t\t}\n\t\texit();\n\t}", "public function send() {\n\t\t\texit(implode(\"\", func_get_args()));\n\t\t}", "public function send(int $debotHandle, string $message): void\n {\n $this->tonClient->request(\n 'debot.send',\n [\n 'debot_handle' => $debotHandle,\n 'message' => $message,\n ]\n )->wait();\n }", "public function reply_post() {\n\t\t$data['uid'] = $this->input->get('uid');\n\t\t$data['_id'] = $this->input->get('_id');\n\t\t$data['text'] = $this->input->get('text');\n\t\t$data['ts'] = now();\n\t\t\n\t\t$this->Messages_model->reply($data);\n\t}", "public function postAction() {\n\t\t$this->sendMessage();\n\t}", "function get_to_ping($post)\n {\n }", "public function go(int $km): void{\n //parent::go($km);\n // On rajoute\n echo (\"POOOOOOOOOOOOOOOOOOON \");\n }", "public function send(string $address, int $amount)\n {\n }", "public function ask($message);", "function recruitPlayer($cxn,$player,$request)\r\n {\r\n \r\n }", "public function send($message);", "public function send($message);", "public function send($message);", "public function send($message);", "public function send(CommandReply $reply, $wait = false);", "function nick_change(&$irc, &$data)\n\t{\n\t\tglobal $pickup;\n\t\tglobal $users;\n global $pickupstatus;\n\n\t\t$users->nick_change($data->nick, $data->message);\n\t\t$pickup->nick_change($data->nick, $data->message);\n\n\t\t//Update topic\n if($pickup->is_added($users->nicktoqauth($data->nick)) == true)\n {\n if($pickupstatus === true)\n {\n SetTopic();\n }\n }\n\t}", "public function actionSend(): void\n {\n $prizes = UserPrize::find()->alias('user_prize')->JoinWith(['prize','user'])\n ->where([\n 'user_prize.status' => UserPrize::STATUS_RECEIVED,\n 'prize_type' => Prize::TYPE_MONEY,\n ])\n ->limit(self::DEFAULT_NUMBER)\n ->all();\n\n if ($prizes) {\n $this->stdout(\\Yii::t('app', 'Sending {prizes} prize(s)...' . PHP_EOL,\n ['prizes' => count($prizes)]), Console::FG_GREEN);\n } else {\n $this->stdout(\\Yii::t('app', 'Nothing to send!' . PHP_EOL), Console::FG_YELLOW);\n }\n\n foreach ($prizes as $prize) {\n\n $prize->status = UserPrize::STATUS_SENT;\n $prize->save(false);\n\n $this->stdout(\\Yii::t('app', 'Sending {money} money to user {user}...', [\n 'money' =>$prize->quantity,\n 'user' => $prize->user->email\n ]));\n\n\n $this->stdout(\\Yii::t('app', ' [SENT]' . PHP_EOL), Console::FG_GREEN);\n }\n }", "function send($id){\n echo $id;\n}", "function sendGraphite($field, $value) {\n global $graphite_send, $graphite_prefix, $c_name, $fsock;\n\n $send = $graphite_prefix . $c_name . \".\" . $field . \" \" . $value . \" \" . time() . \"\\n\";\n\n if ($graphite_send) {\n fwrite($fsock, $send, strlen($send));\n }\n\n echo $send;\n}", "public function ping()\n {\n }", "private function sendAPN() {\n try {\n $this->apnProvider->pushToAll($this->apn);\n echo \"Successfully pushed notification.\\n\";\n } catch (Exception $e) {\n echo \"Failed to push notification.\\n\";\n throw $e;\n }\n }", "public function sendAction() {\n\t\t$this->certificateAction(TRUE);\n\t\t$this->groupAction(TRUE);\n\t\t$this->statAction(TRUE);\n\t}", "function update_nag()\n {\n }", "public function kick_user($nick, $message)\r\n\t{\r\n\t\t$this->server->send_line(\"KICK {$this->channel} {$nick} :{$message}\");\r\n\t}", "public function setNerve($value)\n {\n $this->nerve = $value;\n }", "function fantacalcio_send_newsletter($vote_round) {\n drupal_set_title(filter_xss('Risultati ' . $vote_round . '&ordf; giornata'));\n \n global $user;\n \n $sql = \"SELECT * FROM {fanta_rounds_competitions} WHERE round = '%d' AND c_id IN (SELECT c_id FROM {fanta_competitions} WHERE newsletter = 1)\";\n $result = db_query($sql, $vote_round);\n while ($row = db_fetch_object($result)) {\n $rounds[$row->c_id] = $row;\n }\n \n //newsletters\n //TODO //Administation\n $tids = array(1 => 13, 2 => 16);\n \n foreach ($rounds as $c_id => $round) {\n\n $tid = $tids[$c_id];\n\n $body = newsletter_create_body($c_id, $round->competition_round);\n $title = \"Riepilogo \" . (!empty($round->round_label) ? $round->round_label : $round->competition_round . \"a Giornata\");\n\n //create node\n $newsletter = array();\n $newsletter = (object) array('title'=> $title, 'body'=> $body, 'type' => 'simplenews', 'uid' => $user->uid, 'language' => 'it');\n\n //taxonomy\n $newsletter->taxonomy[$tid] = taxonomy_get_term($tid);\n $newsletter->simplenews = array('tid' => $tid, 's_format' => 'html', 'send' => SIMPLENEWS_COMMAND_SEND_NOW);\n\n node_save($newsletter);\n\n module_invoke('simplenews', 'simplenews_nodeapi', $newsletter, 'insert');\n\n }\n \n return \"Newsletter inviate\"; \n}", "public function Talk();", "private function _joke()\n {\n $question = str_replace(array(\"!joke \", \"!joke\"), \"\", $this->_data->message);\n $question = escapeshellcmd($question);\n \n if ($question == \"\") {\n $value = `ruby jokes.rb`;\n }\n else {\n $value = `ruby jokes.rb $question`; \n }\n \n if ($value) {\n $this->_message($this->_data->nick.': '. $value); \n }\n else {\n $this->_message($this->_data->nick.': No jokes about '. $question .'');\n \n }\n \n }", "function generic_ping($post_id = 0)\n {\n }", "public function sendReplyEnd()\n {\n }", "public function sendRequest( ) {\n\n }", "public function handle_kill($data)\n\t{\n\t\t/*\n\t\t * params:\n\t\t * pos (kan være på formen X-X, hvor X er posisjon)\n\t\t * attacked_rank (kan være på formen -X for å telle fra øverste rank, og X+ for å telle fra og med X)\n\t\t * (-X+[X] er også tillatt, -4+3 betyr de tre nest øverste rankene)\n\t\t * etterlyst\n\t\t */\n\t\t\n\t\t// sjekk posisjon\n\t\tif ($pos = $this->a->params->get(\"pos\"))\n\t\t{\n\t\t\t$range = explode(\"-\", $pos);\n\t\t\tif (count($range) > 1)\n\t\t\t{\n\t\t\t\tsort($range);\n\t\t\t\t\n\t\t\t\t// sjekk verdi\n\t\t\t\tif ($data['up']->rank['pos'] < $range[0] || $data['up']->rank['pos'] > $range[1]) return;\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\t// sjekk verdi\n\t\t\t\tif ($data['up']->rank['pos'] != $pos) return;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// sjekk rank\n\t\tif ($rank = $this->a->params->get(\"attacked_rank\"))\n\t\t{\n\t\t\t$max = count(game::$ranks['items']);\n\t\t\t$rank = explode(\"+\", $rank);\n\t\t\t\n\t\t\tif ($rank[0] < 0) $rank[0] = $max + $rank[0] + 1;\n\t\t\t$rank[0] = max(1, min($max, $rank[0]));\n\t\t\t\n\t\t\t// inneholder avgrensning?\n\t\t\tif (isset($rank[1]))\n\t\t\t{\n\t\t\t\tif (empty($rank[1])) $rank[1] = $max;\n\t\t\t\tsort($rank);\n\t\t\t\t\n\t\t\t\t// sjekk verdi\n\t\t\t\tif ($data['up']->rank['number'] < $rank[0] || $data['up']->rank['number'] > $rank[1]) return;\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\t// sjekk verdi\n\t\t\t\tif ($data['up']->rank['number'] != $rank[0]) return;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// etterlyst?\n\t\tif ($etterlyst = $this->a->params->get(\"etterlyst\"))\n\t\t{\n\t\t\t$ret = isset($data['res']) ? $data['res'] : $data['attack'];\n\t\t\t\n\t\t\t// var ikke etterlyst?\n\t\t\t// man får ikke kreditert prestasjonen hvis en spiller under 40 % som er etterlyst deaktiverer seg\n\t\t\tif (empty($ret['hitlist'])) return;\n\t\t\t\n\t\t\t// etterlyst for under 24 timer siden?\n\t\t\tif ($ret['hitlist_oldest_time'] > time()-86400)\n\t\t\t{\n\t\t\t\tputlog(\"DF\", $this->up->data['up_name'].' (#'.$this->up->id.') oppnådde ikke etterlyst-prestasjon mot '.$data['up']->data['up_name'].' (#'.$data['up']->id.') grunnet at etterlysningen var for ny.');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// marker som utført\n\t\t$this->load_active(true);\n\t\t$this->mark_complete();\n\t}", "public abstract function sendMessage();", "public function send() {\r\n\t\t\t$this->sent = true;\r\n\t\t}", "function jailPlayer($api, $serverid) {\n\n $username = $_POST['playername'];\n \n $api->sendConsoleCommand($serverid, \"jail \".$username.\" jail\");\n \n return $username;\n\n}", "function reply($message) {\n echo $message;\n exit();\n }", "public function send($message)\n {\n }", "public function run()\n {\n $attachment=new Image('https://picsum.photos/200/300');\n $response=OutgoingMessage::create('Este es mi nuevo producto')\n ->withAttachment($attachment);\n $this->say($response);\n $this->returnOrExit(Interactives::class);\n }", "function pong($recipient)\n\t{\n\t\t$this->sendMessageToServer(\"PONG $recipient\");\n\t}", "public function sendMessage(){\n\n\n }", "abstract public function send($data);", "public function send(?Ts $v): Awaitable<?(Tk, Tv)> {}", "function playerSentToPenaltyBox($currentPlayer) {\n\t}", "function goOnline($d){\n ///$d = email\n addOnline($d);\n }", "function callBackUpdate($_TELEGRAM, $th, $tc){\n // YOUR BOT CODE GOES HERE\n if ($_TELEGRAM['text'] == \"/start\")\n {\n send($_TELEGRAM['cid'], \"Hi! Welcome on MTgBot Example!\\nThis message was sent by Thread #$th.\\nThe Thread #$th sent $tc messages.\");\n }\n\n}", "public function client_send($data, $command = '')\n {\n }", "function awake_ping(){\n\t\tsayaword(lang('aoi_awake_ping'), $this->$friends);\n\t}", "public function sendRequest()\n {\n }", "public function sentCount();", "function send($response)\n {\n }", "private function postHop () {\n\t\t$this->result = curl_exec ( $this->ch );\n\t\tcurl_close ( $this->ch );\n\t}", "public function execute() {\n \n $message = $this->getMessage(); // Get Message object\n\n $chat_id = $message->getChat()->getId(); // Get the current Chat ID\n $nama = $message->getFrom()->getFirstName() .' '. $message->getFrom()->getLastName();\n\t$host = trim($message->getText(true));\n\n\tif($host === '') {\n\t\t$host = \"ilkom2017bot.herokuapp.com\";\n\t}\n \n $start = microtime(true);\n \t$fp = fsockopen($host, 80, $errorCode, $errorCode, 5);\n \t$end = microtime(true);\n \t\tif($fp === false){\n \t\t$hasil = \"Koneksi gagal\";\n \t\t}\n \tfclose($fp);\n \t$diff = $end - $start;\n\t$hasil = $diff * 1000 . \" ms\";\n\t\n\t$text = \"Hasil: $hasil\";\n\t\n Request::sendChatAction([\n \n 'chat_id'=> $chat_id,\n 'action' => 'typing'\n ]);\n \n $kirimpesan = [\n 'chat_id' => $chat_id,\n 'parse_mode' => 'HTML',\n 'text' => $text\n ];\n \n return Request::sendMessage($kirimpesan);\n }", "public function sendToBathroom($guyId, $urinalId)\n {\n }", "function sendVotesEmail($registrant, $jlist)\n{\n $contest = $_SESSION['contest'];\n $name = $_SESSION['ctst_name'];\n $subject = $name . \" vote for judges.\";\n $mailContent = $registrant['givenName'] . ' ' . $registrant['familyName'] .\n ' IAC member number ' . $registrant['iacID'] .\n ' voted as follows for judges at the ' . $name . \"\\n\\n\" . $jlist . \"\\n\\n\";\n $mailContent .= automatedMessage($name);\n $headers = \"From: \" . ADMIN_EMAIL . \"\\r\\n\";\n $headers .= \"CC: \" . $registrant['email'] . \"\\r\\n\";\n do_email($contest['voteEmail'], $subject, $mailContent, $headers);\n}", "static function n2oneSend($channel, $msg, $to='')\r\n\t{\r\n\t\treturn self::send($channel, $msg, array('group'=>'user', 'mapMode'=>'n->1', 'to'=>$to));\r\n\t}", "public function swim(): void\r\n {\r\n echo \"\\nSwimming normally, as a human would do...\";\r\n }", "function msgsrv_request ($target, $cmd, $content, $link, $timeout = 30000) {}" ]
[ "0.5716123", "0.56409943", "0.5636922", "0.55524826", "0.555141", "0.555141", "0.555141", "0.555141", "0.555141", "0.555141", "0.555141", "0.555141", "0.555141", "0.555141", "0.555141", "0.54816234", "0.54781187", "0.54010046", "0.53558046", "0.5351934", "0.5295202", "0.5291408", "0.5250485", "0.5232964", "0.5232964", "0.5232964", "0.5232964", "0.5232964", "0.5190258", "0.516582", "0.51140493", "0.51140493", "0.5113967", "0.509542", "0.50845116", "0.50634825", "0.5053403", "0.5032415", "0.5032415", "0.5032415", "0.50291586", "0.5021598", "0.5013165", "0.50076586", "0.5001379", "0.4971778", "0.49547166", "0.49545905", "0.49475393", "0.49374887", "0.49354398", "0.49295175", "0.4916705", "0.49146426", "0.4899159", "0.4899159", "0.4899159", "0.4899159", "0.48808274", "0.48728734", "0.48685682", "0.48678258", "0.4858926", "0.484235", "0.48413762", "0.4838873", "0.48360234", "0.48336607", "0.4833347", "0.48273107", "0.4821763", "0.48149753", "0.48096085", "0.48034412", "0.4802986", "0.48020205", "0.48011976", "0.48002586", "0.47921288", "0.47891814", "0.47877052", "0.47865155", "0.47842848", "0.47799778", "0.47711366", "0.47699985", "0.4769749", "0.47641277", "0.47628766", "0.4762349", "0.47501552", "0.47464275", "0.47424063", "0.47367257", "0.473635", "0.47267276", "0.47131127", "0.47130597", "0.47100273", "0.47088245", "0.4705229" ]
0.0
-1
get all nudges for the request
function review($request_id = 0, $liked = '') { $nudges = $this->Nudge->find('all', array( 'conditions' => array( 'request_id' => $request_id ) )); $this->set(compact('nudges')); // get the request $this->loadModel('Request'); $request = $this->Request->findById($request_id); $this->set(compact('request')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function find()\n\t{\n\t\t$nudges = $this->Nudge->find('all', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'user_id' => '!= '.$this->Auth->user('id')\n\t\t\t),\n\t\t\t'limit' => 16\n\t\t));\n\t\t$this->set(compact('nudges'));\n\t}", "public function getAll(Request $request) {\n // later will get based on each user preference\n // and slow loading support\n $postList = Post::where('info_flag', '<' , Post::INFO_FLAG_DELETED)\n ->get();\n\n return response()->json([\n 'postList' => PostController::getRequiredPostInfo($postList),\n ]);\n }", "public function index(Request $request)\n {\n \n $resp = Nota::orderBy('id', 'DESC')->get();\n $arrayTree = array();\n foreach($resp as $x)\n {\n $arrayTree[$x->id] = $x->id_father ;\n }\n $a = $this->parseTree($arrayTree);\n return $a;\n }", "public function getAdvertisers(Request $request){\n return $this->repository->getAdvertisers($request->input('limit', env('PAGINATION_LIMIT', 10)));\n }", "public function getAll() {}", "public function getAll() {}", "public function getAll() {}", "public function getAll() {}", "public function getAll() {}", "public function retrieveallinvoices(Request $request)\n {\n $invoices = Invoice::latest()->get();\n\n return InvoicesResource::collection($invoices);\n }", "public function getList(): array\n {\n return $this->client->request(\"/ncm/v1\");\n }", "public static function getAll() {\n return get_posts(array(\n 'post_type' => Admin::POST_TYPE_BADGES,\n 'orderby' => 'name',\n 'order' => 'ASC',\n 'numberposts' => -1\n ));\n }", "public function getMyRequests()\n {\n $owner= $this->getUserFromToken();\n $owner_id = $owner['id'];\n $requests= req::where('sender',$owner_id)->get();\n\n $totalReqs = array();\n foreach ($requests as $req) {\n $user = app('App\\Http\\Controllers\\usersController')->getUserById($req['recipient']);\n if($user!=[]){\n $obj = array(\n 'name' => $user[0]['name'],\n 'username' => $user[0]['username'],\n 'id'=>$user[0]['id']\n );\n array_push($totalReqs,$obj);\n }\n }\n return $totalReqs;\n }", "public static function getAll() {}", "public function getAllVoters(Request $request) {\n $voter = Voter::get()->toJson(JSON_PRETTY_PRINT);\n return response($voter, 200);\n }", "function get_user_group_relationships() {\n\t$policy = new Config;\n\treturn $policy->getUserGroupRelationships();\n}", "public function resolve() : array\n {\n $parents = collect(Arr::pluck($this->keys, 'parent'));\n\n return $this->builder->withoutGlobalScopes()->withCount($this->relation)\n ->findMany($parents->pluck('id'))\n ->mapWithKeys(function ($post) {\n $property = \"{$this->relation}_count\";\n\n return [$post->getKey() => $post->{$property}];\n })\n ->all();\n }", "public function forAllUser(Request $request)\n {\n \n\t\t$licences = $this->licenceService->all();\n\t\t\n\t\tLog::info($licences);\n\n $values = $licences->load('client', 'token')->filter(function ($token) {\n return ! $token->client->firstParty() && ! $token->revoked;\n })->values();\n\t\t\n\t\t\n\t\tLog::info($values);\n\t\t\n\t\treturn $values;\n }", "public function fetchAll($params = [])\n {\n //return new ApiProblem(405, 'The GET method has not been defined for collections');\n $tags = $this->mapper->findAllTags();\n\n return $tags;\n }", "public function myHierarchy_get(){\n\t\t$userId = $this->token_payload[\"user_id\"];\n\t\tresponse($this,true,200,$this->getAllAccessibleProfiles($userId));\n\t}", "public function getAggsByList() {\n return $this->_get(6);\n }", "public function byUser()\n {\n # code...\n $garages = Garage::with('state', 'images', 'tags')->where('user_id', auth()->user()->id)->orderBy('id', 'desc')->get();\n return response()->json($garages, 200);\n }", "public function getAll(): array;", "public function getAll(): array;", "public function getAll(): array;", "public function index(Request $request)\n {\n $result = [];\n\n if ($request->has('type') && in_array($request->type, ['province', 'district', 'subdistrict', 'village'])) {\n $result = $this->regionService->list($request->type, $request->parent_id);\n }\n\n return $result;\n }", "public function getAllDogs(Request $request)\n {\n\n $request = Request::createFromGlobals();\n $page = $request->query->get('page');\n $limit = $request->query->get('limit');\n $all_info = $request->query;\n\n $sql = new Process($this->conn);\n $in = $sql->createInputs($all_info);\n $output = $sql->getAll($page, $limit, $in);\n\n return new JsonResponse(\n $output,\n 200\n );\n }", "public function getAggsList() {\n return $this->_get(1);\n }", "public function list(Request $request)\n {\n return $this->repository->all();\n }", "public function getNursings()\n {\n $db = PDOController::getInstance();\n $req = $db->prepare('SELECT lastname, firstname, email, role ,id \n FROM persons \n WHERE role =?');\n $req->execute([1]);\n return $req->fetchAll();\n }", "public function getAggsList() {\n return $this->_get(3);\n }", "public function actionBridges() {\n\n // # Cache result forever\n $cached = Cache::rememberForever( 'actionBridges', function () {\n\n // # Container init\n $grouped = [];\n\n // # Get all bridges\n $collection = Bridge::all( [ 'id', 'sku', 'sku_short', 'width', 'depth', 'image', \n 'color', 'border', 'texture', 'description','textureImg','ord'] )\n ->sortBy( 'ord' );\n\n\n\n // # Loop through all bridges\n foreach ( $collection as $curBridge) {\n\n $key = \"\".$curBridge['depth'];\n $grouped[ $key ][ 'image' ] = $curBridge['image'];\n $grouped[ $key ][ 'depth' ] = $curBridge['depth'];\n $grouped[ $key ][ 'id' ] = $curBridge['depth'];\n $grouped[ $key ][ 'width' ] = $curBridge['width'];\n\n $grouped[ $key ][ 'items' ][] = $curBridge;\n }\n\n // # toJson\n return json_encode($grouped);\n });\n\n return response()->make($cached);\n }", "public function getConnections(Request $request)\n {\n $connections = User::where('email', $request->input('AuthEmail'))->first()->connections()->sortBy('name');\n $connectionsReturn = [];\n foreach($connections as $connection)\n { \n $r = ReportedUsers::where('user_id', $connection->id)->first();\n \n if(!$r || (isset($r) && $r->blocked ==0)){\n $con['id'] = $connection->id;\n $con['name'] = $connection->name;\n $con['avatar'] = $connection->getAvatarListUrl();\n $connectionsReturn[] = $con;\n }\n }\n return response()->json($connectionsReturn);\n }", "public function findAll()\n {\n $results = $this->createQueryBuilder('u')\n ->getQuery();\n return $results->getResult();\n }", "protected function getAll() {}", "public function all()\n {\n return $this->service->all();\n }", "public function get_all(): array\n {\n return $this->nodes;\n }", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getAll();", "public function getGatewayAll(Request $request)\n {\n return $this->createGetResponse($request, (new Gateway)->newQuery());\n }", "public function index()\n {\n return Guru::all();\n }", "public function index(Request $request)\n {\n $tag = Tag::where(function () {});\n\n $relations = [];\n if ($request->has('relations')) {\n $relations = explode(\",\", $request->input('relations'));\n }\n\n return new TagCollection($tag->with($relations)->paginate(20));\n }", "public function index()\n {\n $user = Auth::user();\n $grupos = Group::where('tenantid','=',$user->tenantid)->get();\n $docents = Docent::where('tenantid','=',$user->tenantid)->with('user')->get();\n return response()->json(['results'=>$grupos,'docents'=>$docents]);\n }", "function AllReponces(){\n return $this->db->get($this->reponce)->result();\n }", "public function showAllAction( Request $request)\n { $em = $this->getDoctrine()->getManager();\n\n $entrepots = $em->getRepository('GererEntrepotBundle:Entrepot')->findAll();\n\n\n return $this->render('@GererEntrepot/admin/index.html.twig', array(\n 'entrepots' => $entrepots,\n ));\n\n }", "public function getall() {\n\n\t\techo json_encode(array_merge($this->response, Person::getall()));\n\n\t}", "public static function handlesCuries(): array\n {\n $curies = MessageResolver::findAllUsingMixin('gdbots:iam:mixin:search-users-request:v1', false);\n $curies[] = 'gdbots:iam:request:search-users-request';\n return $curies;\n }", "private function collectNLAIdentifiers()\n {\n // find all records that has an nla identifier\n $this->log(\"Fetching all records which are related to NLA identifiers or have an NLA party identifier...\");\n\n $prefix = $this->config['party']['prefix'];\n\n $this->nlaIdentifiers = [];\n\n // has nla identifier\n $identifiers = Identifier::where('identifier', 'like', \"%{$prefix}%\")->pluck('identifier')->unique()->values()->toArray();\n $this->nlaIdentifiers = array_merge($this->nlaIdentifiers, $identifiers);\n $count = count($identifiers);\n $this->log(\"NLA identifier(s): {$count}\");\n\n // directly relates to nla identifier\n $identifiers = Relationship::where('related_object_key', 'like', \"%{$prefix}%\")->pluck('related_object_key')->unique()->values()->toArray();\n $this->nlaIdentifiers = array_merge($this->nlaIdentifiers, $identifiers);\n $count = count($identifiers);\n $this->log(\"Related Object NLA Identifier(s): {$count}\");\n\n // has related info parties\n $identifiers = IdentifierRelationship::where('related_object_identifier', 'like', \"%{$prefix}%\")->pluck('related_object_identifier')->unique()->values()->toArray();\n $this->nlaIdentifiers = array_merge($this->nlaIdentifiers, $identifiers);\n $count = count($identifiers);\n $this->log(\"Related Info NLA Identifier(s): {$count}\");\n\n $this->nlaIdentifiers = array_values(array_unique($this->nlaIdentifiers));\n }", "public static function getAll(): array;", "public function getBadges();", "function zwemlijst_taxonomy_get_groups() {\n\n $page = filter_input( INPUT_GET, 'page' , FILTER_SANITIZE_NUMBER_INT );\n $q = filter_input( INPUT_GET, 'q' , FILTER_SANITIZE_STRING );\n\n $max_per_page = 10;\n\n $terms = get_terms( [ 'taxonomy' => 'groep' , 'hide_empty' => false ] );\n\n $row = array();\n\n foreach ( $terms as $term ) {\n\n \t\tif ( $term->slug == 'gestopt' ) continue;\n\n $row[] = array( 'id' => $term->term_id , 'text' => $term->name . \" (aantal: {$term->count})\" );\n\n }\n\n // only return a select number of results\n $row = array_slice( $row , ( $page - 1 ) * $max_per_page , $max_per_page );\n\n echo json_encode( array( 'results' => $row , 'pagination' => array( 'more' => ( sizeof( $terms ) > ( $page * $max_per_page ) ) ) ) );\n\n\n wp_die();\n}", "public function retrieveGroups()\n {\n return $this->start()->uri(\"/api/group\")\n ->get()\n ->go();\n }", "function _get_nodes($bundle, array $options = array()){\n // Get all nodes related by region\n $query = new EntityFieldQuery();\n $query->entityCondition('entity_type', 'node')\n ->entityCondition('bundle', $bundle)\n ->propertyCondition('status', NODE_PUBLISHED);\n \n //->fieldOrderBy('field_photo', 'fid', 'DESC')\n if (isset($options['ref_nid'])){\n $query->fieldCondition('field_ref_brand', 'target_id', $options['ref_nid']);\n }\n $query->addMetaData('account', user_load(1)); // Run the query as user 1.\n $query->execute();\n\n if (isset($query->ordered_results)){\n $nodes = $query->ordered_results;\n $nodes_id = array();\n foreach ( $nodes as $node ) {\n array_push ($nodes_id, $node->entity_id );\n }\n $nodes = node_load_multiple($nodes_id);\n } else {\n $nodes = false;\n }\n return $nodes;\n}", "public function all_personnel()\n\t{\n\t\t$this->db->where('personnel_status = 1');\n\t\t$query = $this->db->get('personnel');\n\t\t\n\t\treturn $query;\n\t}", "public function get_all ();", "public function listsAllergiesGet()\r\n {\r\n $response = Allergies::all(); \r\n return response()->json($response, 200); \r\n }", "function get_user_relationships() {\n\t$policy = new Config;\n\treturn $policy->getUserRelationships();\n}", "public static function getAllReference()\n {\n return self::with('profiles')->get()->pluck('profiles.0.name', 'user_id')->filter()->toArray();\n }", "public function getAll()\n {\n return $this->query()->get();\n }", "public function getAll()\n {\n return $this->query()->get();\n }", "public abstract function getAll();", "public function allAnnonce(){\n $annonces=$this->repAnnonce->findBy(['disponibilite' =>'1']);\n return $annonces;\n }", "public function GetAllUnite() {\n if ($this->get_request_method() != \"GET\") {\n $this->response('', 406);\n }\n\n $sql = $this->db->prepare(\"SELECT * FROM unite\");\n $sql->execute();\n if ($sql->rowCount() > 0) {\n $result = array();\n while ($rlt = $sql->fetchAll()) {\n $result[] = $rlt;\n }\n // If success everythig is good send header as \"OK\" and return list of users in JSON format\n $this->response($this->json($result[0]), 200);\n }\n $this->response('', 204); // If no records \"No Content\" status\n }", "public function fetch(Request $request)\n {\n /* Get default variable */\n $user = \\Auth::user();\n\n\n /* Query */\n $notifications = $user->notifications();\n\n /* Do the pagination */\n $pagination = $notifications ? $notifications->paginate(10) : array_merge($notifications, ['data' => []]);\n\n return response()->json([\n 'lists' => $pagination,\n ]);\n }", "public function countableQueries()\n {\n return [];\n }", "public function index()\n {\n return Potager::valid()\n ->with('owners', 'gardeners')\n // ->withCount('gardeners')\n ->orderBy('updated_at', 'desc')\n ->get();\n\n }", "public function toArray($request)\n {\n return [\n 'old_votings' => $this->collection\n // 'tag1_id' => $this->tag1_id,\n // 'tag2_id' => $this->tag2_id,\n // 'tag1_num' => $this->tag1_num,\n // 'tag2_num' => $this->tag2_num,\n ];\n }", "public function unidades()\n {\n return $this->em->createQuery('\n SELECT\n e.id, e.codigo, e.nome, e.mensagemImpressao\n FROM\n Novosga\\Model\\Unidade e\n WHERE\n e.status = 1\n ORDER BY\n e.nome ASC\n ')->getResult();\n }", "public function getImages(Request $request)\n\t{\n\t\t$response = Image::all($request);\n\t\t\n\t\tforeach($response['records'] as &$row) {\n\t\t\t$row['rel'] = [\n\t\t\t\t'pages' => sprintf('#visibility', $row['url_hash']),\n\t\t\t];\n\t\t}\n\n\t\treturn $this->response($response, 'images', $request);\n\t}", "public static function getAll();", "public static function getAll();", "public function listTags() {\n\t\t$request = $this->send(\"GET\", \"contacts/\" . $this->contactId . '/tags', [\n\t\t\t'headers' => [\n\t\t\t\t'Accept' => 'application/json, */*',\n\t\t\t],\n\t\t]);\n\t\treturn $request;\n\t}", "public function getAll()\n {\n }", "public function getAll()\n {\n }", "public function getAll()\n {\n }", "public function getAll()\n {\n }", "public function getAll()\n {\n }", "public function getAll()\n {\n }", "public function getAll()\n {\n }", "public function getAll()\n {\n }", "public function getAll()\n {\n return $this->processQuery($this->buildQuery());\n }" ]
[ "0.6118828", "0.5599009", "0.5405369", "0.5389535", "0.53586346", "0.53586346", "0.5358125", "0.5358125", "0.5358125", "0.53495145", "0.5328417", "0.5319966", "0.52885044", "0.5278087", "0.5236082", "0.5235626", "0.52335685", "0.52308714", "0.5225743", "0.5224571", "0.5203794", "0.5175327", "0.51657116", "0.51657116", "0.51657116", "0.51646394", "0.51644623", "0.51644015", "0.5163163", "0.5162915", "0.51610315", "0.5160654", "0.51604897", "0.5132413", "0.511709", "0.5116666", "0.511619", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.51042634", "0.5103789", "0.5080972", "0.50773114", "0.5073889", "0.50729585", "0.50725454", "0.5063616", "0.5063038", "0.5058941", "0.50487214", "0.5040316", "0.5039353", "0.503088", "0.5026799", "0.502422", "0.50203836", "0.5016664", "0.5014226", "0.50092554", "0.5005326", "0.5005326", "0.5003012", "0.50019795", "0.4998453", "0.49973756", "0.49932304", "0.49916667", "0.49893373", "0.49889338", "0.49888435", "0.49820936", "0.49820936", "0.49813694", "0.49807203", "0.49807203", "0.49807203", "0.49807203", "0.49807203", "0.49807203", "0.49807203", "0.49807203", "0.49646476" ]
0.0
-1
get all of my nudges
function mine() { $this->Nudge->recursive = 2; $nudges = $this->Nudge->find('all', array( 'conditions' => array('Nudge.user_id' => $this->Auth->user('id')) )); $this->set(compact('nudges')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function find()\n\t{\n\t\t$nudges = $this->Nudge->find('all', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'user_id' => '!= '.$this->Auth->user('id')\n\t\t\t),\n\t\t\t'limit' => 16\n\t\t));\n\t\t$this->set(compact('nudges'));\n\t}", "public function getNursings()\n {\n $db = PDOController::getInstance();\n $req = $db->prepare('SELECT lastname, firstname, email, role ,id \n FROM persons \n WHERE role =?');\n $req->execute([1]);\n return $req->fetchAll();\n }", "public function judges()\n {\n return $this->members()->wherePivot('role', '=', Member::ROLE_JUDGE)->get();\n }", "function get_user_group_relationships() {\n\t$policy = new Config;\n\treturn $policy->getUserGroupRelationships();\n}", "public function getMyNoticesUsers()\n {\n\t\t// Get my related departments\n\t\t$related_departments = [];\n\n $c_related = $this->getRelatedDepartments();\n\n if (!$c_related) return [];\n\n foreach ($c_related as $rel){\n\t\t\t$related_departments [] = $rel->id;\n\t\t}\n\n\n\t\t/*\n\t\t *\tGet related Departamental users from my related departments\n\t\t *\n\t\t * Conditions:\n\t\t * - agent ticketit_department in related_departments\n\t\t * - agent person in related_departments\n\t\t*/\n\t\t$related_users = \\PanicHDMember::where('id','!=',$this->id)\n\t\t\t->whereIn('ticketit_department', $related_departments);\n\n\t\t// Get users that are visible by all departments\n\t\t$all_dept_users = \\PanicHDMember::where('ticketit_department','0');\n\n\t\tif (version_compare(app()->version(), '5.3.0', '>=')) {\n\t\t\t$related_users = $related_users->pluck('id')->toArray();\n\t\t\t$related_users = array_unique(array_merge($related_users, $all_dept_users->pluck('id')->toArray()));\n\t\t}else{\n\t\t\t$related_users = $related_users->lists('id')->toArray();\n\t\t\t$related_users = array_unique(array_merge($related_users, $all_dept_users->lists('id')->toArray()));\n\t\t}\n\n\t\treturn $related_users;\n\t}", "public static function getAllReference()\n {\n return self::with('profiles')->get()->pluck('profiles.0.name', 'user_id')->filter()->toArray();\n }", "public function getBadges();", "public function myHierarchy_get(){\n\t\t$userId = $this->token_payload[\"user_id\"];\n\t\tresponse($this,true,200,$this->getAllAccessibleProfiles($userId));\n\t}", "function retrieve_promoter_guest_list_authorizations(){\n\t\t\n\t\t$this->CI->load->model('model_users_promoters', 'users_promoters', true);\n\t\treturn $this->CI->users_promoters->retrieve_promoter_guest_list_authorizations($this->promoter->up_id);\n\t\t\n\t}", "public function getAggsByList() {\n return $this->_get(6);\n }", "function listUsers($gid)\n {\n return array();\n }", "function MakeAllBadges()\n{\n $loc = 'badges_showall.php->MakeAllBadges';\n $sql = 'SELECT * FROM UserView ORDER BY BadgeID';\n $result = SqlQuery($loc, $sql);\n $nempty = 0;\n $nmade = 0;\n $nfail = 0;\n while($row = $result->fetch_assoc()) \n {\n if($row[\"Active\"] == false) continue;\n $tags = ArrayFromSlashStr($row[\"Tags\"]);\n if(!in_array(\"member\", $tags)) continue;\n $badgeid = $row[\"BadgeID\"];\n if(empty($badgeid)) {$nempty++; continue; }\n $r = MakeBadge($row);\n if($r === true) $nmade++;\n else $nfail++;\n }\n $status = 'Badges Made: ' . $nmade . ', Members without BadgeIDs: ' . $nempty;\n if($nfail > 0) $status .= ', Failures: ' . $nfail . '. (See sys log!)';\n log_msg($loc, array('All badges remade!', $status));\n return $status;\n}", "public function all_personnel()\n\t{\n\t\t$this->db->where('personnel_status = 1');\n\t\t$query = $this->db->get('personnel');\n\t\t\n\t\treturn $query;\n\t}", "function get_user_relationships() {\n\t$policy = new Config;\n\treturn $policy->getUserRelationships();\n}", "function listAllUsers($gid)\n {\n return array();\n }", "public function getAggsList() {\n return $this->_get(3);\n }", "public function pledges()\n {\n return $this->hasManyThrough('App\\Pledge', 'pledges_tbl');\n }", "public function badges($uid = false)\r\n {\r\n global $db;\r\n if ($uid) {\r\n $badges = db::get_array(\"ubadges\", array(\"user\" => $uid));\r\n if (count($badges) <= 0) {\r\n $badges = array();\r\n }\r\n // Cycle all badges check if the user deserves one\r\n $all = db::get_array(\"badges\");\r\n $lvl = $this->level($uid);\r\n foreach ($all as $b) {\r\n if ($b['level'] != \"-1\") {\r\n if ($b['level'] <= $lvl) {\r\n $badges[] = array(\"badge\" => $b['id'], \"stamp\" => \"0\");\r\n }\r\n }\r\n }\r\n\r\n return $badges;\r\n } else {\r\n return db::get_array(\"ubadges\");\r\n }\r\n }", "public function villages()\n {\n return $this->hasMany('App\\Model\\Village');\n }", "private function collectAllKnownMembers()\n {\n return $this->getDoctrine()->getRepository(Board::class)->findAllKnownMembers($this->getUser());\n }", "public function getAggsList() {\n return $this->_get(1);\n }", "public function villages()\n {\n return $this->hasMany('App\\Models\\Village');\n }", "public function getMembersTagsList()\r\n {\r\n \t$tmpUser = new Warecorp_User();\r\n \t$EntityTypeId = $tmpUser->EntityTypeId;\r\n \t$EntityTypeName = $tmpUser->EntityTypeName;\r\n \tunset($tmpUser);\r\n\r\n \t$group = Warecorp_Group_Factory::loadById($this->getGroupId());\r\n \t$members = $group->getMembers()->setAssocValue('zua.id')->returnAsAssoc()->getList();\r\n\r\n $query = $this->_db->select();\r\n if ( $this->isAsAssoc() ) {\r\n $fields = array();\r\n $fields[] = ( $this->getAssocKey() === null ) ? 'ztd.id' : $this->getAssocKey();\r\n $fields[] = ( $this->getAssocValue() === null ) ? 'ztd.name' : $this->getAssocValue();\r\n $query->from(array('ztr' => 'zanby_tags__relations'), $fields);\r\n } else {\r\n $query->from(array('ztr' => 'zanby_tags__relations'), new Zend_Db_Expr('DISTINCT ztd.id'));\r\n }\r\n $query->joininner(array('ztd' => 'zanby_tags__dictionary'), 'ztr.tag_id = ztd.id');\r\n\r\n if ( $this->getWhere() ) $query->where($this->getWhere());\r\n $query->where('entity_type_id = ?', $EntityTypeId);\r\n $query->where('entity_id IN (?)', $members);\r\n $query->where('ztr.status IN (?)', $this->getTagStatus());\r\n\r\n if ( $this->getCurrentPage() !== null && $this->getListSize() !== null ) {\r\n $query->limitPage($this->getCurrentPage(), $this->getListSize());\r\n }\r\n if ( $this->getOrder() !== null ) $query->order($this->getOrder());\r\n else $query->order('ztd.name');\r\n\r\n\t\t$items = $this->getTagListFromSQL($query, false);\r\n return $items;\r\n }", "public function getAllPersonne() {\n $qb = $this ->createQueryBuilder('p')\n ->select('p')\n ->orderBy('p.nom');\n return $qb->getQuery()->getResult();\n }", "function getAll( )\n {\n $this->dbInit(); \n $user_group_array = 0;\n \n array_query( $user_group_array, \"SELECT * FROM Grp ORDER BY Name\" );\n \n return $user_group_array;\n }", "function getAllOwners($currpg,$url)\n\t{\n\t\t$sql = \"Select * from tblowner order by organization_name\";\t// sql statement \n\t\t$result = paging($sql,$currpg, $this->pagesize,$url); // execute sql statement \n\t\treturn $result;\t\t\t\t\t\t// return result from sql \n\t}", "function retrieve_promoter_clients_list(){\n\t\t\n\t\t$this->CI->load->model('model_users_promoters', 'users_promoters', true);\n\t\t$clients = $this->CI->users_promoters->retrieve_promoter_clients_list($this->promoter->up_id, $this->promoter->team->t_fan_page_id);\n\t\tforeach($clients as $key => &$client){\n\t\t\t\n\t\t\tif($client->pglr_user_oauth_uid === null){\n\t\t\t\tunset($clients[$key]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t$client = $client->pglr_user_oauth_uid;\n\t\t}\n\t\treturn $clients;\n\t\t\n\t}", "public function byUser()\n {\n # code...\n $garages = Garage::with('state', 'images', 'tags')->where('user_id', auth()->user()->id)->orderBy('id', 'desc')->get();\n return response()->json($garages, 200);\n }", "public function getBannedUids() {}", "public static function getAll() {\n return get_posts(array(\n 'post_type' => Admin::POST_TYPE_BADGES,\n 'orderby' => 'name',\n 'order' => 'ASC',\n 'numberposts' => -1\n ));\n }", "public function findAll()\n {\n $results = $this->createQueryBuilder('u')\n ->getQuery();\n return $results->getResult();\n }", "public function allergies()\n {\n return $this->belongsToJson(Allergy::class,'allergy_ids');\n }", "function wporphanageex_get_all_users() {\n\tglobal $wpdb;\n\n\t$results = $wpdb->get_col( \"SELECT ID FROM $wpdb->users\" );\n\treturn $results;\n}", "public function getAwardedBountyUsers();", "public function getUsers()\r\n {\r\n return $this->hasMany(User::className(), ['id' => 'user_id'])\r\n ->via('glu');\r\n }", "function get_list() {\n\t\t$query = \"select pr_id, pr_cu_id from \".$this->_db_table;\n\t\t$cloudprofile_name_array = array();\n\t\t$cloudprofile_name_array = htvcenter_db_get_result_double ($query);\n\t\treturn $cloudprofile_name_array;\n\t}", "function get_users()\n {\n //Unimplemented\n }", "public function getReferencesList(){\n return $this->_get(1);\n }", "public function getRelationList();", "function getUsers() {\n\n\tglobal $db;\n\treturn $db->getUsersByGroup ( $GLOBALS [\"targetId\"] );\n\n}", "public function junglehunter_get_all() {\n return rest_ensure_response(JungleHunter_Database::junglehunter_get_all());\n }", "public function Badges() {\n\t\t\n\t\tif (!empty($this->profil)) {\n\t\t\t\n\t\t\t$arrayBadges = array();\n\t\t\n\t\t\tforeach ($this->profil['user']['topBadges'] as $topbadge) {\n\t\t\t\t\n\t\t\t\t$data = new ArrayData(array(\n\t\t\t\t\t\t\t\t'imageURL75px' => $topbadge['image75px'],\n\t\t\t\t\t\t\t\t'marketingDescription' => $topbadge['marketingDescription']\n\t\t\t\t\t\t\t));\n\t\t\t\t\n\t\t\t\tarray_push($arrayBadges, $data);\n\t\t\t}\n\t\t\t\n\t\t\treturn new ArrayList($arrayBadges);\n\t\t}\n\t}", "public function allupgraders(){\n // SQL statement\n $sql = \"SELECT * FROM user WHERE special = 1 AND (role = 'account' OR role = 'administrator') \";\n $result = $this->con->query($sql);\n\n // check if there is a user\n $count = $result->num_rows;\n if ($count != 0) {\n while ($row = $result->fetch_assoc()){\n $array[] = $row;\n }\n return $array;\n }\n }", "private function getUserResources()\n {\n $result = array();\n $userdata = $this->get('security.context')->getToken()->getUser();\n $groups = $userdata->getUserGroups()->toArray();\n foreach ($groups as $grp) {\n $resources = $grp->getResources();\n foreach ($resources as $res) {\n $result[$res->getId()] = $res->getName();\n }\n }\n\n return $result;\n }", "public function all()\n {\n return $this->get('/user/memberships/orgs');\n }", "public function get_all_godzina(){\n\t\t$data['godziny']=array();\n\t\t$query = $this->db->query('select * from godzina');\t\n\t\tforeach($query->result() as $row){\n\t\t\t\tarray_push($data['godziny'],array('id_godzina'=>$row->id_godzina,'godzina'=>$row->godzina));\n\t\t\t\n\t\t}\n\t\treturn $data;\n\t}", "public function index()\n {\n return Potager::valid()\n ->with('owners', 'gardeners')\n // ->withCount('gardeners')\n ->orderBy('updated_at', 'desc')\n ->get();\n\n }", "public function listAction()\n {\n $user = $this->get('security.context')->getToken()->getUser();\n $repositories = $user->getRepositorys();\n\n return array(\n 'name' => $user->getUsernameCanonical(),\n 'repositories' => $repositories\n );\n }", "public function index()\n {\n return Guru::all();\n }", "public static function all(){\n \t\ttry{\n $index = 0;\n $con = new Database;\n $query = $con->prepare('SELECT unnest(enum_range(null::membership_type))');\n $query->execute();\n $con->close();\n \n $results = $query->fetchAll(PDO::FETCH_OBJ);\n \n $memberships = array();\n\n if(!empty($results)){\n foreach($results as $result){\n $temp = new Membership;\n $temp->setAttributes($index, $result->unnest);\n $index = $index+1;\n array_push($memberships, $temp);\n }\n }\n\n return $memberships;\n \t\t}\n catch(PDOException $e){\n \t echo $e->getMessage();\n \t }\n }", "public function listGunners(){\n $sql = \"SELECT j.nome AS nome, \n t.nome AS nome_time, \n j.numero AS numero , \n SUM(gol) AS gols\n FROM dados d,jogador j,time t\n WHERE j.id_jogador = d.jogador_id_jogador\n AND j.time_id_time = t.id_time\n GROUP BY jogador_id_jogador\n ORDER BY gols DESC\";\n $result = $this->connection->dataBase->Execute($sql);\n while($record = $result->FetchNextObject()){\n $gunner['playerName'] = $record->NOME;\n $gunner['teamName'] = $record->NOME_TIME;\n $gunner['amountGoals'] = $record->GOLS;\n $gunner['playerNumber'] = $record->NUMERO;\n $arrayGunner[] = $gunner;\n }\t\n return $arrayGunner;\n\t}", "public function unidades()\n {\n return $this->em->createQuery('\n SELECT\n e.id, e.codigo, e.nome, e.mensagemImpressao\n FROM\n Novosga\\Model\\Unidade e\n WHERE\n e.status = 1\n ORDER BY\n e.nome ASC\n ')->getResult();\n }", "public function GetAllUnite() {\n if ($this->get_request_method() != \"GET\") {\n $this->response('', 406);\n }\n\n $sql = $this->db->prepare(\"SELECT * FROM unite\");\n $sql->execute();\n if ($sql->rowCount() > 0) {\n $result = array();\n while ($rlt = $sql->fetchAll()) {\n $result[] = $rlt;\n }\n // If success everythig is good send header as \"OK\" and return list of users in JSON format\n $this->response($this->json($result[0]), 200);\n }\n $this->response('', 204); // If no records \"No Content\" status\n }", "public function getNiveles(){\n\t\t//Se debe realizar conexion en BD. Ver propiedad de config/Autoload.php para eliminar\n\t\t//esta instruccion de carga de los controladores y modelos.\n\t\t$this->load->database();\n\t\t$this->load->model(\"Criticidad\");\n\t\t$listaNiveles = $this->Criticidad->obtenerNivelesDeCriticidad();\n\t\tforeach ($listaNiveles as $row){\n\t\t\t$nivel = array('id'=>$row[\"id\"],'nombre' => $row[\"nombre\"], 'descripcion'=>$row[\"descripcion\"]);\n\t\t\techo json_encode($nivel);\n\t\t\techo \"/\";\n\t\t}\n\t}", "public function getGumballs(){\n\n return $this->gumballs;\n\n }", "public function getLivraison()\n\t{\n\t\t$this->db->where('titre = \"livraison\"');\n\t\t$Query = $this->db->get(\"mention\");\n\t\tif($Query->num_rows() > 0 ){\n\t\t\tforeach ($Query->result() as $mentionsLivraisons)\n\t\t\t{\n\t\t\t\t$data[] = $mentionsLivraisons;\n\t\t\t}\n\t\n\t\t\treturn $data;\n\t\t}\n\t}", "function ef_notifications_get_users($rid) {\n $uids = array();\n $query = db_select('users_roles', 'ur')\n ->fields('ur', array('uid'))\n ->condition('ur.rid', $rid);\n $query->distinct();\n $result = $query->execute();\n foreach ($result as $row) {\n $uids[] = $row->uid;\n }\n $users = array();\n $users = user_load_multiple($uids);\n return $users;\n}", "public function seniorContributors()\n {\n $query = \"SELECT identifier FROM \".$this->_name.\" WHERE status='Active' AND profile_type='senior'\";\n if(($result = $this->getQuery($query,true)) != NULL)\n {\n for($i=0; $i<count($result); $i++)\n {\n $result[$i]= $result[$i]['identifier'];\n }\n return $result;\n }\n else\n return \"NO\";\n }", "public function memberships_get()\n {\n\n $em = $this->doctrine->em;\n\n $maembershipRepo = $em->getRepository('Entities\\Membership');\n $memberships = $maembershipRepo->findAll();\n $result[\"desc\"] = \"Listado de membresias\";\n $result[\"data\"] = $memberships;\n $this->set_response($result, REST_Controller::HTTP_OK);\n }", "public function list()\n {\n return view('groupe.list', ['my_groupes' => Auth::user()->founding_groupes()->get(), 'joined_groupes' => Auth::user()->joined_groupes()->get()]);\n }", "public function allergies()\n {\n return $this->belongsToMany(Allergy::class);\n }", "public function getProvinsiAll()\n {\n $provinsi = ProvinsiMdl::all();\n /**\n * Add data provinsi to variabel\n */\n $dr = ['provinsi' => $provinsi];\n /**\n * Return response json format\n */\n return \\Response::json($dr);\n }", "function getAllUser_Privilage() {\n\t\t$SQL=\"SELECT * FROM user_privilage_tab\";\n\t\t$this->db->executeQuery($SQL);\n\n\t\t$result = array();\n\t\t$count = 0;\n\n\t\twhile($rs = $this->db->nextRecord())\n\t\t{\n\t\t\t$user_privilage = new User_Privilage();\n\t\t\t$user_privilage->setId($rs['id']);\n\t\t\t$user_privilage->setOrder_no($rs['order_no']);\n\t\t\t$user_privilage->setCode($rs['code']);\n\t\t\t$user_privilage->setUser_id($rs['user_id']);\n\t\t\t$user_privilage->setPrivilage_id($rs['privilage_id']);\n\t\t\t$user_privilage->setIs_view($rs['is_view']);\n\t\t\t$user_privilage->setIs_save($rs['is_save']);\n\t\t\t$user_privilage->setIs_edit($rs['is_edit']);\n\t\t\t$user_privilage->setIs_delete($rs['is_delete']);\n\t\t\t$user_privilage->setData_date($rs['data_date']);\n\t\t\t$user_privilage->setStatus($rs['status']);\n\t\t\t$user_privilage->setDate_($rs['date_']);\n\t\t\t$result[$count++] = $user_privilage;\n\t\t}\n\n\t\t$this->db->closeRs();\n\t\treturn $result;\n\n\t}", "public function get_all_hotspot_user(){\n return $this->query('/ip/hotspot/user/getall');\n }", "public function getPostersArray() {\n\t\treturn icms::handler('icms_member')->getUserList();\n\t}", "function get_users(){\n global $conf;\n global $LDAP_CON;\n\n $sr = ldap_list($LDAP_CON,$conf['usertree'],\"ObjectClass=inetOrgPerson\");\n $result = ldap_get_binentries($LDAP_CON, $sr);\n $users = array();\n if(count($result)){\n foreach ($result as $entry){\n if(!empty($entry['sn'][0])){\n $users[$entry['dn']] = $entry['givenName'][0].\" \".$entry['sn'][0];\n }\n }\n }\n return $users;\n}", "public function getDonations() {\r\n $rights = MOD_right::get();\r\n if ($rights->hasRight('Treasurer')) {\r\n $limitClause = \"\";\r\n } else {\r\n $limitClause = \"LIMIT 25\";\r\n }\r\n $query = \"\r\n SELECT\r\n *\r\n FROM\r\n donations\r\n ORDER BY\r\n created DESC\r\n $limitClause\r\n \";\r\n $result = $this->dao->query($query);\r\n $donations = array();\r\n while ($row = $result->fetch(PDB::FETCH_OBJ)) {\r\n if ($row->IdCountry == 0) {\r\n $countryName = \"Unknown country\";\r\n } else {\r\n $idCountry = intval($row->IdCountry);\r\n $resultcountry = $this->dao->query(\"\r\n SELECT\r\n name\r\n FROM\r\n geonames_cache\r\n WHERE\r\n geonameId = $idCountry\r\n \");\r\n $country = $resultcountry->fetch(PDB::FETCH_OBJ);\r\n $countryName = $country->name;\r\n }\r\n $row->CountryName = $countryName;\r\n array_push($donations, $row);\r\n }\r\n return $donations;\r\n }", "public function accounts()\n {\n return $this->get('ach/relationships');\n }", "public function allAnnonce(){\n $annonces=$this->repAnnonce->findBy(['disponibilite' =>'1']);\n return $annonces;\n }", "public function get_all_registerd_cat() {\n\t\t\n\t\t$query = $this->db->prepare(\"SELECT client_cat.client_cat_id, users.user_id,users.user_confirmed,users.admin_confirmed, users.user_name, users.user_email, users.user_comp_name, users.user_number, users.client_cat_id, client_cat.client_cat_id, users.user_time, client_cat.client_cat_name FROM client_cat LEFT JOIN users ON users.client_cat_id = client_cat.client_cat_id\");\n\t\t\t\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\t$query->execute();\n\t\t\t$result = $query->fetchAll();\n\t\t\treturn $result;\n\t\t}catch(PDOException $e){\n\n\t\t\tdie($e->getMessage());\n\t\t}\n\t}", "protected function getGroupList() {}", "protected function getGroupList() {}", "public function getDashboardNotices() {\n \n return $this->createQueryBuilder('n')\n ->select('n, u, ur, l, ng, ngi, ug, ugi, t, v, pt')\n ->join('n.user', 'u')\n ->join('u.user_regular', 'ur')\n ->join('n.gallery', 'ng')\n ->join('n.location', 'l')\n ->join('n.type', 't')\n ->leftJoin('ng.images', 'ngi')\n ->leftJoin('u.gallery', 'ug')\n ->leftJoin('ug.images', 'ugi')\n ->leftJoin('n.values', 'v')\n ->leftJoin('v.property', 'pt')\n ->where('n.on_dashboard = true')\n ->orderBy('n.created_at', 'DESC')\n ->getQuery()\n ->getResult();\n \n }", "function db_get_untagged_projects($snuuid)\n{\n $sql = \"select projname, projshortdesc, projid\n from projects where projid not in\n (select projid from project_tagging where snuuid=$1)\";\n $result = pg_query_params($sql, array($snuuid));\n return $result;\n}", "public function getall() {\n\n\t\techo json_encode(array_merge($this->response, Person::getall()));\n\n\t}", "function users(): array { return $this->users; }", "function system_get_all_gnames()\n{\n//\t$retv[id1]=100;\n//\t$retv[gname1]=\"tt\";\n\treturn($retv);\n}", "public function listsAllergiesGet()\r\n {\r\n $response = Allergies::all(); \r\n return response()->json($response, 200); \r\n }", "public function owners(){\n $users = User::with('potagers')\n ->owners()\n ->orderBy('updated_at', 'desc')\n ->paginate(100);\n\n return view('admin.users.owners', compact('users'));\n }", "public function select_users_gerentes (){\n $gerentes = User::join('personal','users.id','=','personal.id')\n ->select('users.usuario','personal.id','personal.nombre','personal.apellidos')\n ->where('users.rol_id','=','4')\n ->get();\n\n return['gerentes' => $gerentes];\n }", "public function users()\n {\n $users = User::with([\n 'socialAccounts', 'contacts', 'academic', 'companies', 'graduates.academic',\n 'responses', 'achievement.rank', 'rewards', 'preference'\n ])->get();\n\n return response()->json(compact('users'));\n }", "function AllPDOsOfUser($uid){\n$sdb = dbconnect();\n$Uc = new MongoCollection($sdb,'Users');\n$userpdos = $Uc->aggregate(\narray('$match' => array('_id' => new MongoId($uid))),\narray('$unwind' => '$PDO_linked'),\narray('$project' => array('PDO_linked.pdo_id'=>1, '_id'=>0))\n);\n\n$AllPDOs = $userpdos['result'];\nreturn $AllPDOs;\n\n}", "public function getRelations();", "public function getRelations();", "public function FetchAllGRN(){\n \t\t$data = '';\n \t\treturn view(\"store_management.view_grn\");\n }", "public function relations()\n\t{\n\t\tYii::import('application.modules.profile.models.*');\n\n\t\t//$relations = Yii::app()->cache->get('yum_user_relations');\n $relations=false;\n\t\tif($relations === false) {\n\t\t\t$relations = array();\n\n\t\t\t\t\t\n\n\t\t\tif (Yum::hasModule('profile')) {\n\t\t\t\t$relations['visits'] = array(\n\t\t\t\t\t\tself::HAS_MANY, 'YumProfileVisit', 'visited_id');\n\t\t\t\t$relations['visited'] = array(\n\t\t\t\t\t\tself::HAS_MANY, 'YumProfileVisit', 'visitor_id');\n\t\t\t\t$relations['profile'] = array(\n\t\t\t\t\t\tself::HAS_ONE, 'YumProfile', 'user_id');\n\t\t\t\t$relations['privacy'] = array(\n\t\t\t\t\t\tself::HAS_ONE, 'YumPrivacySetting', 'user_id');\n\t\t\t}\n \n $relations['role'] = array(\n\t\t\t\t\t\tself::MANY_MANY, 'Role',\n\t\t\t\t\t\t UserRole::model()->tableName().'(user_id, role_id)');\n \n\t\t\tYii::app()->cache->set('yum_user_relations', $relations, 3600);\n\t\t}\n\n\t\treturn $relations;\n\t}", "protected function listBadges()\n\t{\n\t\t$badges = array(\n\t\t\t\tself::BADGES_DEFAULT,\n\t\t\t\tself::BADGES_SUCCESS,\n\t\t\t\tself::BADGES_WARNING,\n\t\t\t\tself::BADGES_IMPORTANT,\n\t\t\t\tself::BADGES_INFO,\n\t\t\t\tself::BADGES_INVERSE,\n\t\t);\t\t\n\t\treturn $badges;\n\t\t\n\t}", "function get_all_groupe_user($params = array())\n {\n $this->db->order_by('id', 'desc');\n if(isset($params) && !empty($params))\n {\n $this->db->limit($params['limit'], $params['offset']);\n }\n return $this->db->get('groupe_user')->result_array();\n }", "function get_all_ids() {\n\t\t$cloudprofile_list = array();\n\t\t$query = \"select pr_id from \".$this->_db_table;\n\t\t$db=htvcenter_get_db_connection();\n\t\t$rs = $db->Execute($query);\n\t\tif (!$rs)\n\t\t\t$this->_event->log(\"get_all_ids\", $_SERVER['REQUEST_TIME'], 2, \"cloudprofile.class.php\", $db->ErrorMsg(), \"\", \"\", 0, 0, 0);\n\t\telse\n\t\twhile (!$rs->EOF) {\n\t\t\t$cloudprofile_list[] = $rs->fields;\n\t\t\t$rs->MoveNext();\n\t\t}\n\t\treturn $cloudprofile_list;\n\n\t}", "private function _getUPGroups()\n\t{\n\t\ttry{\n\t\t\t$preferences = trim(Factory::service(\"UserPreference\")->getOption(Core::getUser(), self::PREFERENCE_PARAM_NAME));\n\t\t\t$return = ($preferences === '' ? array() : json_decode($preferences,true));\n\t\t\treturn $return;\n\t\t}\n\t\tcatch(Exception $ex){\n\t\t\treturn array();\n\t\t}\n\t}", "public function fellows() {\n\t\t$list = array();\n\t\t$db = Db::getInstance();\n\t\t$req = $db->prepare('SELECT IdSeguace FROM Seguaci WHERE IdUtente = :id');\n\t\t$req->execute(array('id' => $this->id()));\n\t\tforeach ($req->fetchAll() as $result) {\n\t\t\t$list[] = $result['IdSeguace'];\n\t\t}\n\t\treturn $list;\n\t}", "public function getUsers();", "public function getUsers();", "public function getUsers();", "public function getLoans() { // This function returns the array \n return $this->loans;\n }", "function AllReponces(){\n return $this->db->get($this->reponce)->result();\n }", "public function getAllSupervisors()\n {\n return $this->getMineListSupervisors();\n }", "public function index()\n {\n $user = Auth::user();\n $grupos = Group::where('tenantid','=',$user->tenantid)->get();\n $docents = Docent::where('tenantid','=',$user->tenantid)->with('user')->get();\n return response()->json(['results'=>$grupos,'docents'=>$docents]);\n }", "function getPersons(){\n\t\t \n\t\t $linksObj = new dbXML_dbLinks;\n\t\t $creatorRels = $linksObj->relToCreator;\n\t\t $contribRels = $linksObj->relToContributor;\n\t\t \n\t\t $db = $this->startDB();\n\t\t $result = false;\n\t\t \n\t\t $sql = \"SELECT actTab.uuid, links.targ_uuid, links.link_type,\n\t\t persons.combined_name, persons.last_name, persons.first_name, persons.mid_init\n\t\t FROM \".$this->penelopeTabID.\" AS actTab\n\t\t JOIN links ON actTab.uuid = links.origin_uuid\n\t\t JOIN persons ON persons.uuid = links.targ_uuid\n\t\t WHERE links.targ_type LIKE '%person%' ;\n\t\t \";\n\t\t \n\t\t $resultA = $db->fetchAll($sql);\n\t\t \n\t\t $sql =\t\"\t\n\t\t\t\tSELECT actTab.uuid, links.targ_uuid, links.link_type, \n\t\t\t\tusers.combined_name, users.last_name, users.first_name, users.mid_init\n\t\t\t\tFROM \".$this->penelopeTabID.\" AS actTab\n\t\t\t\tJOIN links ON actTab.uuid = links.origin_uuid\n\t\t\t\tJOIN users ON users.uuid = links.targ_uuid\n\t\t\t\tWHERE links.targ_type LIKE '%person%'\n\t\t\t\t \n\t\t\t\t\";\n\t\t \n\t\t $resultB = $db->fetchAll($sql);\n\t\t if($resultA && $resultB){\n\t\t\t\t$result = array();\n\t\t\t\tforeach($resultA as $row){\n\t\t\t\t\t $ukey = md5($row[\"uuid\"].$row[\"targ_uuid\"].$row[\"link_type\"]);\n\t\t\t\t\t $result[$ukey] = $row;\n\t\t\t\t}\n\t\t\t\tforeach($resultB as $row){\n\t\t\t\t\t $ukey = md5($row[\"uuid\"].$row[\"targ_uuid\"].$row[\"link_type\"]);\n\t\t\t\t\t if(!array_key_exists($ukey, $result)){\n\t\t\t\t\t\t $result[$ukey] = $row;\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t }\n\t\t elseif($resultB && !$resultA){\n\t\t\t\t$result = $resultB;\n\t\t }\n\t\t elseif(!$resultB && $resultA){\n\t\t\t\t$result = $resultA;\n\t\t }\n\t\t \n\t\t if($result){\n\t\t\t\t\n\t\t\t\t$rawCreators = array();\n\t\t\t\t$rawContributors = array();\n\t\t\t\t$persons = array();\n\t\t\t\tforeach($result as $row){\n\t\t\t\t\t $uuid = $row[\"targ_uuid\"];\n\t\t\t\t\t $uri = self::personBaseURI.$uuid;\n\t\t\t\t\t $name = $row[\"combined_name\"];\n\t\t\t\t\t $linkType = $row[\"link_type\"];\n\t\t\t\t\t if(in_array($linkType, $creatorRels)){\n\t\t\t\t\t\t if(!array_key_exists($uri, $rawCreators)){\n\t\t\t\t\t\t\t\t$rawCreators[$uri] = array(\"name\" => $name, \"count\" => 1);\n\t\t\t\t\t\t\t\t$rawCreators[$uri][\"rel\"] = $this->getLinkedPerson($uuid);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else{\n\t\t\t\t\t\t\t\t$rawCreators[$uri][\"count\"] ++ ; \n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\t elseif(in_array($linkType, $contribRels)){\n\t\t\t\t\t\t if(!array_key_exists($uri, $rawContributors)){\n\t\t\t\t\t\t\t\t$rawContributors[$uri] = array(\"name\" => $name, \"count\" => 1);\n\t\t\t\t\t\t\t\t$rawContributors[$uri][\"rel\"] = $this->getLinkedPerson($uuid);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else{\n\t\t\t\t\t\t\t\t$rawContributors[$uri][\"count\"] = $rawContributors[$uri][\"count\"] + 1; \n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t\t if(!array_key_exists($uri, $persons)){\n\t\t\t\t\t\t $persons[$uri] = array(\"name\" => $name, \"count\" => 1);\n\t\t\t\t\t\t $persons[$uri][\"rel\"] = $this->getLinkedPerson($uuid);\n\t\t\t\t\t }\n\t\t\t\t\t else{\n\t\t\t\t\t\t $persons[$uri][\"count\"] ++ ; \n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//combine URIs for the same person, choose the URI with the most associated items\n\t\t\t\t$rawCreators = $this->consolidateRelatedURIs($rawCreators);\n\t\t\t\t$rawContributors = $this->consolidateRelatedURIs($rawContributors);\n\t\t\t\t$persons = $this->consolidateRelatedURIs($persons);\n\t\t\t\t\n\t\t\t\t//sort the array by count, from high to low\n\t\t\t\t$rawCreators = $this->orderURIs($rawCreators);\n\t\t\t\t$rawContributors = $this->orderURIs($rawContributors);\n\t\t\t\t$persons = $this->orderURIs($persons);\n\t\t\t\t\n\t\t\t\t$this->rawCreators = $rawCreators;\n\t\t\t\t$this->rawContributors = $rawContributors;\n\t\t\t\t$this->rawLinkedPersons = $persons;\n\t\t\t\t\n\t\t }\n\t }", "public function getAllOrgs()\n {\n $sql = \"SELECT * FROM organization\";\n $values=array();\n \n $orgs=$this->getInfo($sql,$values);\n\n return $orgs;\n }" ]
[ "0.64481926", "0.59153277", "0.59079325", "0.5756441", "0.57472205", "0.5663118", "0.5661324", "0.56344706", "0.5593876", "0.5557899", "0.55435276", "0.55377865", "0.55298537", "0.5506458", "0.54949856", "0.5468198", "0.5434881", "0.5432605", "0.54296374", "0.54236746", "0.5418413", "0.539233", "0.53911054", "0.5386612", "0.53790385", "0.5357775", "0.5343105", "0.53424114", "0.532224", "0.532018", "0.5317024", "0.5307914", "0.5300352", "0.52836305", "0.5260224", "0.5252196", "0.524854", "0.52419925", "0.5238", "0.52196556", "0.52190053", "0.52180237", "0.52036184", "0.5197605", "0.5196678", "0.51964706", "0.5194429", "0.51901746", "0.5183316", "0.5181467", "0.5177848", "0.517459", "0.51703", "0.5166529", "0.51636446", "0.51574355", "0.51521444", "0.5142215", "0.51416194", "0.51377714", "0.51354766", "0.51354754", "0.5134171", "0.5134061", "0.5133952", "0.5128661", "0.51278126", "0.51274276", "0.5126406", "0.5121809", "0.5113699", "0.5113699", "0.5112249", "0.51035637", "0.51018655", "0.50979835", "0.50964123", "0.5091477", "0.5089732", "0.5089271", "0.5084707", "0.50807637", "0.5080279", "0.5080279", "0.5079041", "0.50738496", "0.50732565", "0.5072799", "0.5070949", "0.50655", "0.5064743", "0.5063941", "0.5063941", "0.5063941", "0.5062694", "0.5062401", "0.505787", "0.50568354", "0.5047038", "0.50418526" ]
0.53254265
28
list all requests that this user can nudge on
function find() { $nudges = $this->Nudge->find('all', array( 'conditions' => array( 'user_id' => '!= '.$this->Auth->user('id') ), 'limit' => 16 )); $this->set(compact('nudges')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMyRequests()\n {\n $owner= $this->getUserFromToken();\n $owner_id = $owner['id'];\n $requests= req::where('sender',$owner_id)->get();\n\n $totalReqs = array();\n foreach ($requests as $req) {\n $user = app('App\\Http\\Controllers\\usersController')->getUserById($req['recipient']);\n if($user!=[]){\n $obj = array(\n 'name' => $user[0]['name'],\n 'username' => $user[0]['username'],\n 'id'=>$user[0]['id']\n );\n array_push($totalReqs,$obj);\n }\n }\n return $totalReqs;\n }", "public function getRequests()\n {\n return $this->hasMany(Request::className(), ['users_id' => 'id']);\n }", "protected function get_possible_requests(){\n\t\treturn array( \n\t\t\t'view_cashflows',\n\t\t\t'add_cashflow',\n\t\t\t$this->get_request(),\n\t\t);\n\t}", "public function requests()\n {\n return $this->hasMany('Restboat\\Models\\Request', 'user_id', 'id');\n }", "public function showRequests()\n {\n $honeys = [];\n $requests = DB::table('userlinkrequests')\n ->where('them', Auth::user()->id)\n ->get();\n foreach ($requests as $link) {\n $honeys[] = User::find($link->you);\n }\n return View::make('honeys.requests', ['requests' => $honeys]);\n }", "public function viewmymaintenancerequestsAction(){\n\t\t$maint = new Maintenance_Model_MaintenanceRequest();\n\t\t$records = $maint->fetchMyRequests();\n\n\t\tif( $records ) {\n\t\t $this->view->paginator = $this->paginate($records);\n\t\t}\n\t}", "public function viewallmaintenancerequestsAction(){\n\t\t$maint = new Maintenance_Model_MaintenanceRequest();\n\t\t$records = $maint->fetchAllRequests();\n\n\t\tif( $records ){\n\t\t $this->view->paginator = $this->paginate($records);\n\t\t}\n\t}", "function requestOutgoingFriendRequests() {\n $username = $_GET['username'];\n\n $response = retrieveOutgoingFriendRequests($username);\n\n if ($response['status'] == 'SUCCESS') {\n echo json_encode($response['response']);\n } else {\n errorHandler($response['status'], $response['code']);\n }\n }", "#[Route(path: '/access-requests', name: 'translationalresearch_accessrequest_list', methods: ['GET'])]\n #[Template('AppUserdirectoryBundle/AccessRequest/access_request_list.html.twig')]\n public function accessRequestIndexAction(Request $request)\n {\n return parent::accessRequestIndexAction($request);\n }", "public function getListRequest()\n {\n $db = $this->dblocal;\n try\n {\n $stmt = $db->prepare(\"SELECT @rownum := @rownum + 1 AS urutan,t.* FROM m_request t, \n (SELECT @rownum := 0) r ORDER BY id_request 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 listRequests()\r\n {\r\n return $this->BunqClient->getHttpService()->get(\r\n $this->getResourceEndpoint()\r\n );\r\n }", "public function actionGetFriendRequestList(){\n\t\t// and only friend who has been requested to be a friend can approve frienship\n\t\t$sqlCount = 'SELECT count(*)\n\t\t\t\t\t FROM '. Friends::model()->tableName() . ' f \n\t\t\t\t\t WHERE friend2 = '.Yii::app()->user->id.' \n\t\t\t\t\t\t AND status= 0';\n\n\t\t$count=Yii::app()->db->createCommand($sqlCount)->queryScalar();\n\n\t\t/**\n\t\t * because we use same view in listing users, we put requester field as false\n\t\t * to make view show approve link,\n\t\t * requester who make friend request cannot approve request\n\t\t */\n\t\t$sql = 'SELECT u.Id as id, u.realname as Name, f.Id as friendShipId, f.status,\n\t\t\t\t\t false as requester\t \n\t\t\t\tFROM '. Friends::model()->tableName() . ' f \n\t\t\t\tLEFT JOIN ' . Users::model()->tableName() . ' u\n\t\t\t\t\tON u.Id = f.friend1\n\t\t\t\tWHERE friend2='.Yii::app()->user->id.' AND status= 0' ;\n\n\t\t$dataProvider = new CSqlDataProvider($sql, array(\n\t\t \t\t\t\t\t\t\t\t\t\t\t'totalItemCount'=>$count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'sort'=>array(\n\t\t\t\t\t\t \t\t\t\t\t\t\t'attributes'=>array(\n\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t'id', 'Name',\n\t\t),\n\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'pagination'=>array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'pageSize'=>Yii::app()->params->itemCountInOnePage,\n\t\t),\n\t\t));\n\t\t\t\n\t\tYii::app()->clientScript->scriptMap['jquery.js'] = false;\n\t\tYii::app()->clientScript->scriptMap['jquery.yiigridview.js'] = false;\n\t\t$this->renderPartial('userListDialog',array('dataProvider'=>$dataProvider), false, true);\n\n\t}", "public function getPrequestList(){\n return $this->_get(5);\n }", "function getRequests($action) {\n switch ($action) {\n case 'LOGIN':\n requestLogin();\n break;\n case 'PROFILE':\n requestProfile();\n break;\n case 'COMMENTS':\n requestComments();\n break;\n case 'SEARCH':\n searchNewFriends();\n break;\n case 'IN_FRIEND_REQUEST':\n requestIncomingFriendRequests();\n break;\n case 'OUT_FRIEND_REQUEST':\n requestOutgoingFriendRequests();\n break;\n case 'FRIENDS':\n requestFriends();\n break;\n case 'SESSION':\n retrieveSession();\n break;\n }\n }", "public function index()\n\t{\n\t\t$requests = RequestAccess::all();\n return $requests->toArray();\n\t}", "function requestIncomingFriendRequests() {\n $username = $_GET['username'];\n\n $response = retrieveIncomingFriendRequests($username);\n\n if ($response['status'] == 'SUCCESS') {\n echo json_encode($response['response']);\n } else {\n errorHandler($response['status'], $response['code']);\n }\n }", "public function requests() : array\n {\n return $this->requests;\n }", "public function getRequests()\n {\n return $this->requests;\n }", "public function index()\n {\n $this->repository->pushCriteria(app('Prettus\\Repository\\Criteria\\RequestCriteria'));\n return $this->repository->all();\n }", "protected function get_request_counts()\n {\n }", "public function get_all_hotspot_user(){\n return $this->query('/ip/hotspot/user/getall');\n }", "public function getRequests()\n {\n return $this->data['requests'];\n }", "public function getList(Request $request)\n\t{\n\t\t$params = $this->queryValidator->Everything($request, User::class, null, ['password', 'threads', 'comments']);\n\t\t\n\t\treturn $this->userRepo->findByPaginated([], $params['ordering'], $params['pagination']);\n\t}", "public function listNoAdminAction(Request $request)\n {\n $repository = $this\n ->getDoctrine()\n ->getManager()\n ->getRepository('SCUserBundle:User');\n \n \n //$listNoAdmin = $repository->findAll();//tous le monde \n //$listNoAdmin = $repository->noAdmin();//Que les clients \n $listNoAdmin = $repository->findby(array('isActive'=>true,'isPrimaire'=>true));//que les comptes actifs et primaire\n return $this->render('SCUserBundle:Admin:listNoAdmin.html.twig',\n array('listNoAdmin'=>$listNoAdmin )\n );\n \n \n }", "public function GetRouteGetRequestsOnly ();", "public function getRequests() {\n $secure = false;\n $haveLocations = false;\n return getRequests($this->testInfo->getId(), $this->testInfo->getRootDirectory(), $this->run,\n $this->cached ? 1 : 0, $secure, $haveLocations, false, true);\n }", "static function getAll() {\n $c = new UserLoginReq();\n $c->active = true;\n $c->LoginReq = new LoginReq(); \n $c->UserStub = UserStub_Req::asRequiredJoin();\n $recs = UserLoginReq::fetchAllBy($c);\n $recs = UserLoginReq::checkExpiration($recs);\n Rec::sort($recs, new RecSort('loginReqId','status','_daysLeft','-dateRcvd'));\n return $recs;\n }", "public function requestLogs()\n {\n return $this->hasManyThrough(\n 'Restboat\\Models\\RequestLog', 'Restboat\\Models\\Request',\n 'user_id', 'request_id'\n );\n }", "public function getrequest()\n {\n $request = User::getrequest();\n return result::repsonse(true,$request);\n }", "public function getRequests()\n {\n return $this->hasMany(Request::className(), ['PK_Trip' => 'PK_Trip']);\n }", "public function get_sup_requests($user_id){\r\n\t\r\n\t$req = $this->data_client->get_sup_requests($user_id);\r\n\treturn $req;\r\n\t}", "public function myQuests(Request $request)\n {\n return Auth::user()->quests;\n }", "public function getAwardedBountyUsers();", "public static function listRequests($limit = 100)\n {\n /*$userid = self::getLoggedInUser()->id;\n\n $usersa = new Collection;\n\n $usersb = new Collection;\n\n $friendsa = Friends::where('user_that_sent_request', $userid)->where('accepted', '0')->take($limit)->get();\n\n //$friendsa = $friendsa->keyBy('user_that_accepted_request');\n\n //$friendsa = $friendsa->keyBy(function($item) { return \"U\" . $item['user_that_accepted_request']; });\n\n foreach ($friendsa as $result) {\n\n $u = User::where('id', $result['user_that_accepted_request'])->get();\n $usersa->push($u[0]);\n\n }\n\n $friendsb = Friends::where('user_that_accepted_request', $userid)->where('accepted', '0')->take($limit)->get();\n\n //$friendsb = $friendsb->keyBy('user_that_sent_request');\n\n //$friendsb = $friendsb->keyBy(function($item) { return \"U\" . $item['user_that_sent_request']; });\n\n foreach ($friendsb as $result) {\n\n $u = User::where('id', $result['user_that_sent_request'])->get();\n $usersb->push($u[0]);\n\n }\n\n $users = $usersa->merge($usersb);\n\n $users = $users->shuffle();\n\n $users = $users->take($limit);\n\n return $users;*/\n\n $users = new Collection();\n\n $limit = Helpers::unlimited($limit);\n\n $requests = Friends::friendRequests(null)->take($limit)->get();\n\n foreach ($requests as $user) {\n $users->push(UserUtil::getUser($user->id));\n }\n\n $requests = Friends::sentRequests(null)->take($limit)->get();\n\n foreach ($requests as $user) {\n $users->push(UserUtil::getUser($user->id));\n }\n\n $users = $users->shuffle();\n\n $users = $users->take($limit);\n\n return $users;\n }", "public function getList()\n {\n $requests = Request::orderBy('id', 'desc')->paginate(15);\n return view('dj.requests', ['requests' => $requests]);\n }", "public function requestes()\n {\n \t$uid = Auth::user()->id;\n \t$friendrequest = DB::table('friendships as f')\n \t ->rightjoin('users as u','u.id','=','f.requester')\n \t ->where('status',0)\n \t ->where('f.user_requested',$uid)->get();\n return view('profile.requestes',compact('friendrequest')); \n }", "public function getRequests() {\n\n $requests = isset($this->data['requests']) ? $this->data['requests'] : array();\n\n return $requests;\n }", "public function getallAction()\n\t{\n\t\t$resource_id = (int) $this->getRequest()->getParam('resource_id');\n\t\t$resource_type = $this->getRequest()->getParam('resource_type');\n\t\t\n\t\t$Likes = new Application_Model_Likes();\n\t\t\n\t\t$ret = $Likes->getUsersLiked($resource_type, $resource_id);\n\t\t\n\t\t$this->getHelper('json')->sendJson($ret);\n\t}", "public function requestCount()\n {\n return DB::table('userlinkrequests')\n ->where('them', $this->id)\n ->count();\n }", "public function results()\n {\n if(!(php_sapi_name() == 'cli-server'))\n return 403;\n\n if($this->request->server['REMOTE_ADDR'] != '127.0.0.1' && $this->request->server['REMOTE_ADDR'] != '::1')\n return 403;\n\n $matcher = new SurveyMatcher();\n $matcher->match((isset($this->request->get['limit']) ? $this->request->get['limit'] : null));\n }", "function index() {\n $identifier = $this->input->get('rid');\n $request_id = convert_to_string($identifier);\n $request = $this->orequest->get_request_data($request_id);\n\n if ($request) {\n $this->addjs(theme_url(\"js/app/visitors/orequest.js\"), TRUE);\n $this->add_js_inline(array('request' => $request));\n\n $this->bulid_layout(\"visitors/reply\");\n } else {\n $this->bulid_layout(\"no-permission\");\n }\n }", "public function getAllUserRequests($user_id) {\n $stmt = $this->conn->prepare(\"SELECT r.* , e.name, e.mobile from service_request r inner join employee e on (r.employee_id = e.id) where r.user_id= ? && (r.status = 0 || r.status = 1)\");\n $stmt->bind_param(\"i\", $user_id);\n $stmt->execute();\n $requests = $stmt->get_result();\n $stmt->close();\n return $requests;\n }", "public function requests() : int;", "public function getAll(Request $request) {\n // later will get based on each user preference\n // and slow loading support\n $postList = Post::where('info_flag', '<' , Post::INFO_FLAG_DELETED)\n ->get();\n\n return response()->json([\n 'postList' => PostController::getRequiredPostInfo($postList),\n ]);\n }", "public function userlist(Request $req){\n\n $name = Moderator::all();\n return view('home.list')->with('list', $name);\n\n }", "public function printUserRequests($email){\n\n\t\t\t$query = \"SELECT * FROM requests WHERE owner_email = '$email'\";\n\n\t\t\t$result = $this->db->query($query);\n\n\t\t\tif(!$result)\n\t\t\t\tprintError($this->db->error);\n\n\t\t\techo \"<h4>Users Requests</h4>\";\n\t\t\techo \"<table class=\\\"table\\\"><thead class=\\\"thead-dark\\\">\";\n\t\t\techo \"<tr>\";\n\t\t\techo \"<th>Requester</th>\";\n\t\t\techo \"<th>My Book</th>\";\n\t\t\techo \"<th>Book Offered</th>\";\n\t\t\techo \"</tr></thead><tbody>\";\n\n\t\t\twhile ($row = $result->fetch_array(MYSQLI_NUM)){\n\t\t\t\t\n\t\t\t\techo \"<tr>\";\n\t\t\t\techo \"<td>\".$row[3].\"</td>\";\n\t\t\t\techo \"<td>\".$this->book->getBookTitle($row[2]).\"</td>\";\n\t\t\t\techo \"<td>\".$this->book->getBookTitle($row[4]).\"</td>\";\n\t\t\t\techo \"<td><a href=\\\"requests.php?status=accept&b_isbn=\".$row[2].\"&t_isbn=\".$row[4].\"&r_email=\".$row[3].\"\\\">Accept</a></td>\";\n\t\t\t\techo \"<td><a href=\\\"requests.php?status=reject&b_isbn=\".$row[2].\"\\\">Decline</a></td>\";\n\t\t\t\techo \"</tr>\";\n\t\t\t}\n\t\t\techo \"</tbody></table>\";\n\n\t\t}", "public function showAllRequest()\n\t{\n\t\t// get all his/her job\n\t\t$logged_user_id = Auth::user()->id;\n\t\t$user_info = UserInfo::find($logged_user_id);\n\t\t$freelancer_info = FreelancerInfo::find($user_info->user_id);\n\n $jobs = Job::where('freelancer_info_id', $freelancer_info->user_info_id)->get();\n\n $query = \"SELECT jr.job_id, jr.seeker_id, j.deskripsi \";\n $query = $query.\"FROM job_request jr, job j \";\n $query = $query.\"WHERE j.freelancer_info_id = \". $freelancer_info->user_info_id .\" and j.id = jr.job_id\";\n\t\t$job_requests = DB::select(DB::raw($query));\n\n\t\t$job_requests_data = [];\n\t\tforeach ($job_requests as $a_job_req => $value) {\n\t\t\t# code...\n\t\t\t$job_id = $value->job_id;\n\t\t\t$job_deskripsi = $value->deskripsi;\n\t\t\t$seeker_id = $value->seeker_id;\n\t\t\t$seeker_email = User::find($seeker_id)->email;\n\n\t\t\t$a_job_req_data = array(\n\t\t\t\t'job_id' => $job_id,\n\t\t\t\t'job_deskripsi' => $job_deskripsi,\n\t\t\t\t'seeker_id' => $seeker_id,\n\t\t\t\t'seeker_email' => $seeker_email\n\t\t\t);\n\t\t\tarray_push($job_requests_data, $a_job_req_data);\n\t\t}\n\n\t\treturn View::make('job.requests')\n ->with('job_requests_data', $job_requests_data);\n\t}", "public function operationlist(Request $req)\n {\n $user = Report::all();\n \treturn view('nurse.OperationList', ['user'=>$user]);\n \n }", "public function index(Request $request)\n {\n return Task::with('user')->get();\n }", "public static function acceptMembershipRequests(\\Elgg\\Event $event): void {\n\t\t$entity = $event->getObject();\n\t\tif (!$entity instanceof \\ElggGroup || !$entity->canEdit()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (elgg_get_plugin_setting('auto_accept_membership_requests', 'group_tools') !== 'yes') {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (!$entity->isPublicMembership()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// just in case\n\t\tset_time_limit(0);\n\t\t\n\t\t// get pending requests\n\t\t/* @var $pending_requests \\ElggBatch */\n\t\t$pending_requests = $entity->getEntitiesFromRelationship([\n\t\t\t'type' => 'user',\n\t\t\t'relationship' => 'membership_request',\n\t\t\t'inverse_relationship' => true,\n\t\t\t'limit' => false,\n\t\t\t'batch' => true,\n\t\t\t'batch_inc_offset' => false,\n\t\t]);\n\t\t/* @var $requesting_user \\ElggUser */\n\t\tforeach ($pending_requests as $requesting_user) {\n\t\t\t// join the group\n\t\t\tif (!$entity->join($requesting_user)) {\n\t\t\t\t$pending_requests->reportFailure();\n\t\t\t}\n\t\t}\n\t}", "private function getDeletionRequests()\n {\n return $this->db_get_account_del_req();\n }", "public function pending(Request $request)\n {\n $users = UsersDirectory::orderBy('id', 'desc')->get();\n return response()->json($users);\n }", "public function friendRequests()\n\t{\n\t\treturn $this->friendsOfMine()->wherePivot('accepted',false)->get();\n\t}", "public function index()\n {\n $this->repository->pushCriteria(app('Prettus\\Repository\\Criteria\\RequestCriteria'));\n $users = $this->repository->all();\n\n return response()->json([\n 'data' => $users,\n ]);\n }", "public function index()\n {\n $userRequests = DoctorPatientRequest::where('status','Accepted')->with('doctor','patient')->paginate(15);\n return view('dashboard.requests.index',compact('userRequests'));\n }", "public function forAllUser(Request $request)\n {\n \n\t\t$licences = $this->licenceService->all();\n\t\t\n\t\tLog::info($licences);\n\n $values = $licences->load('client', 'token')->filter(function ($token) {\n return ! $token->client->firstParty() && ! $token->revoked;\n })->values();\n\t\t\n\t\t\n\t\tLog::info($values);\n\t\t\n\t\treturn $values;\n }", "public function index()\n {\n $users = $this->user->findByCancelFlag('N');\n return compact('users');\n }", "public function listPendingSubmissions(Request $request) {\n\t\t$pager = $this->pager($request, $this->getDoctrine()->getRepository(JokeSubmission::class)->findPending());\n\t\treturn $this->render('Joke/listSubmissions.html.twig', ['pager' => $pager]);\n\t}", "public function index( Request $request ) {\n\t\ttry {\n\t\t\t// $requests = UserRequests::RequestHistory()->paginate($this->perpage);\n\t\t\t// $pagination=(new Helper)->formatPagination($requests);\n\n\t\t\t$from_date = $request->input( 'from_date' );\n\t\t\t$to_date = $request->input( 'to_date' );\n\t\t\t$type = $request->input( 'date_filter' );\n\n\t\t\t$req_query = UserRequests::RequestHistory();\n\t\t\tif ( $from_date && $to_date && $type ) {\n\t\t\t\tswitch ( $type ) {\n\t\t\t\t\tcase 'tday':\n\t\t\t\t\tcase 'yday':\n\t\t\t\t\t\t$req_query = $req_query->whereDate( 'created_at',\n\t\t\t\t\t\t\tdate( 'Y-m-d', strtotime( $from_date ) ) );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$req_query = $req_query->whereBetween( 'created_at',\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\tCarbon::createFromFormat( 'Y-m-d', $from_date ),\n\t\t\t\t\t\t\t\tCarbon::createFromFormat( 'Y-m-d', $to_date ),\n\t\t\t\t\t\t\t] );\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$requests = $req_query->get();\n\t\t\tforeach ( $requests as $key => $value ) {\n\t\t\t\tif ( $value->user === null ) {\n\t\t\t\t\tunset( $requests[ $key ] );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$admin = Admin::where( 'id', 1 )->first();\n\t\t\t$trips = $requests;\n\t\t\t// dd($trips);\n\t\t\t// return view('admin.request.index', compact('requests', 'pagination', 'trips', 'admin', 'dates'));\n\n\t\t\t$dates['yesterday'] = Carbon::yesterday()->format( 'Y-m-d' );\n\t\t\t$dates['today'] = Carbon::today()->format( 'Y-m-d' );\n\t\t\t$dates['pre_week_start'] =\n\t\t\t\tdate( \"Y-m-d\", strtotime( \"last week monday\" ) );\n\t\t\t$dates['pre_week_end'] =\n\t\t\t\tdate( \"Y-m-d\", strtotime( \"last week sunday\" ) );\n\t\t\t$dates['cur_week_start'] =\n\t\t\t\tCarbon::today()->startOfWeek()->format( 'Y-m-d' );\n\t\t\t$dates['cur_week_end'] =\n\t\t\t\tCarbon::today()->endOfWeek()->format( 'Y-m-d' );\n\t\t\t$dates['pre_month_start'] =\n\t\t\t\tCarbon::parse( 'first day of last month' )->format( 'Y-m-d' );\n\t\t\t$dates['pre_month_end'] =\n\t\t\t\tCarbon::parse( 'last day of last month' )->format( 'Y-m-d' );\n\t\t\t$dates['cur_month_start'] =\n\t\t\t\tCarbon::parse( 'first day of this month' )->format( 'Y-m-d' );\n\t\t\t$dates['cur_month_end'] =\n\t\t\t\tCarbon::parse( 'last day of this month' )->format( 'Y-m-d' );\n\t\t\t$dates['pre_year_start'] =\n\t\t\t\tdate( \"Y-m-d\", strtotime( \"last year January 1st\" ) );\n\t\t\t$dates['pre_year_end'] =\n\t\t\t\tdate( \"Y-m-d\", strtotime( \"last year December 31st\" ) );\n\t\t\t$dates['cur_year_start'] =\n\t\t\t\tCarbon::parse( 'first day of January' )->format( 'Y-m-d' );\n\t\t\t$dates['cur_year_end'] =\n\t\t\t\tCarbon::parse( 'last day of December' )->format( 'Y-m-d' );\n\t\t\t$dates['nextWeek'] =\n\t\t\t\tCarbon::today()->addWeek()->format( 'Y-m-d' );\n\n\t\t\treturn view( 'admin.request.index',\n\t\t\t\tcompact( 'requests',\n\t\t\t\t\t'trips',\n\t\t\t\t\t'admin',\n\t\t\t\t\t'dates',\n\t\t\t\t\t'from_date',\n\t\t\t\t\t'to_date' ) );\n\t\t} catch ( Exception $e ) {\n\t\t\treturn back()->with( 'flash_error',\n\t\t\t\ttrans( 'admin.something_wrong' ) );\n\t\t}\n\t}", "public function requests(){\n return $this->hasMany('App\\UserRequest');\n }", "function printUserReplyNeeded() {\r\n $criteria = array('status' => Appeal::$STATUS_AWAITING_USER);\r\n return printAppealList($criteria);\r\n}", "public function index(Request $request)\n {\n $requests = $request->user()->requests;\n\n return view('requests.index', compact('requests'));\n }", "function show_request()\n\t{\n\t\tprint_r($this->http_request);\n\t}", "public function index(Request $req){\n $users = User::with(['roles'])\n ->whereHas('roles', function($q){$q->whereNotIn('name', ['agent', 'superAgent', 'client']);})\n ->orderBy('id')->get();\n\n $agents = User::with(['roles', 'agent'])\n ->whereHas('roles', function($q){$q->whereIn('name',['agent', 'superAgent']);})\n ->where('ditta', RedisUser::get('location'))\n ->orderBy('id')->get();\n\n return view('user.index', [\n 'users' => $users,\n 'agents' => $agents,\n ]);\n }", "public function index(Request $request)\n {\n $limit = $request->limit ? $request->limit : 10;\n $user = $request->user();\n if ($user->can('super_admin')) {\n return $this->repository->paginate($limit);\n } else {\n return $this->repository->where('customer_id', '=', $user->id)->paginate($limit);\n }\n }", "public function retrieveUserActions()\n {\n return $this->start()->uri(\"/api/user-action\")\n ->get()\n ->go();\n }", "public function index()\n {\n\n $threads = Thread::forUser(Auth::id())->with([\n 'users' => function ($query) {\n $query->select('avatar', 'name', 'agent_name');\n },\n 'messages' => function ($query) {\n $query->latest()->first();\n },\n ])\n ->groupBy('threads.id')\n ->latest('updated_at')\n ->paginate();\n\n $threads->getCollection()->transform(function ($value) {\n $value->isUnread = $value->isUnread(Auth::id());\n\n return $value;\n });\n\n\n return response()->json($threads);\n }", "public function viewAllQuery($request=null)\n {\n $user = $this->getUser();\n\n $mappings = [\n 1 => 'getAdminData',\n 6 => 'getDiaData',\n 2 => 'getAdminData', \n 3 => 'getAdminData',\n 4 => 'getNodalDeaprtment',\n 5 => 'getSiaData',\n 6 => 'getSiaData',\n 7 => 'getSiaData',\n 8 => 'getSiaData',\n 9 => 'getSiaData',\n 10 => 'getSiaData',\n 11 => 'getSiaData',\n \n ];\n\n if (isset($mappings[$user->role])) {\n return call_user_func([$this, $mappings[$user->role]], $user,$request);\n }\n\n return abort(403,'Role based query is not defined.');\n }", "public function actionIndex()\n {\n $searchModel = new RequestsSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function list(Request $request)\n {\n return $this->repository->all();\n }", "public function allAnnonce(){\n $annonces=$this->repAnnonce->findBy(['disponibilite' =>'1']);\n return $annonces;\n }", "private static function getRemainingRequestsParams()\n {\n return [\n Config::$itones_request_maximum,\n MyRadio_User::getInstance()->getID(),\n Config::$itones_request_period,\n ];\n }", "public function indexAction(Request $request)\n {\n global $kernel;\n $user = $kernel->getContainer()->get('security.token_storage')->getToken()->getUser();\n\n\n if ($user!=='anon.' && $user->getFonctionuser()==2){\n $em = $this->getDoctrine()->getManager();\n\n $rendezVouses = $em->getRepository('VeterinaireBundle:RendezVous')->findBy(array('idVet'=>$user->getId()));\n $paginator = $this->get('knp_paginator');\n $pagination = $paginator->paginate(\n $rendezVouses, /* query NOT result */\n $request->query->getInt('page', 1)/*page number*/,\n 6/*limit per page*/\n );\n\n return $this->render('rendezvous/index.html.twig', array(\n 'pagination' => $pagination,\n 'rdv'=>$rendezVouses\n ));\n }else{\n return $this->redirectToRoute('user_homepage');\n\n }\n }", "public function getApprovalRequests()\n {\n return $this->approval_requests;\n }", "public function index(Request $request)\n {\n if($request->user()->tokenCan('user:coment'))\n {\n return comentario::all();\n }\n else\n {\n return abort(401,\"Tienes 0 permiso de estar aqui\");\n }\n }", "function getBorrowRequests($user_id)\n\t{\n\t $table = $this->query->getBorrowRequests($user_id);\n\t return $table->result_array();\n\t}", "public function index_get()\n {\n $response = $this->UserM->all_user();\n $this->response($response);\n }", "public function friendRequests() {\n return $this->friendsOfMine()->wherePivot('accepted', false)->get();\n }", "public function recruitersList(Request $request) {\n\t\tif(Auth::user()->can('manage_recruiters')) {\n\t\t\t$recruiter = Recruiter::orderBy('email')->get();\n\t\t\t$customers = Organization::all();\n\t\t\t$recruitersList = [];\n\t\t\tfor ($i=0; $i < count($recruiter); $i++) {\n\t\t\t\tfor ($j=0; $j < count($customers); $j++) {\n\t\t\t\t\tif($customers[$j]->is_whitelisted == '1') {\n\t\t\t\t\t\tif(!in_array($recruiter[$i], $recruitersList, true)) {\n\t\t\t\t\t\t\tarray_push($recruitersList, $recruiter[$i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn view('recruiters/recruiters_list', ['recruitersList' => $recruitersList]);\n\t\t}\n\t\telse {\n\t\t\treturn redirect()->route('dashboard')->with('warning', 'You do not have permission for this action!');\n\t\t}\n\t}", "public function indexAction(Request $request)\n { $securityContext = $this->container->get('security.authorization_checker');\n if ( $securityContext->isGranted('IS_AUTHENTICATED_REMEMBERED') )\n {\n $user = $this->container->get('security.token_storage')->getToken()->getUser();\n $em = $this->getDoctrine()->getManager();\n\n $entrepots = $em->getRepository('GererEntrepotBundle:Entrepot')->findBy(array('id'=>$user));\n /**\n * @var $paginator \\Knp\\Component\\Pager\\Paginator\n */\n $paginator = $this->get('knp_paginator');\n\n $result =$paginator->paginate(\n $entrepots, /* query NOT result */\n $request->query->getInt('page', 1), /*page number*/\n $request->query->getInt('limit',10) /*limit per page*/\n );\n\n\n return $this->render('@GererEntrepot/entrepot/index.html.twig', [\n 'entrepots' => $result,\n ]);\n }\n # if user not logged in yet\n else\n {\n return $this->redirectToRoute('fos_user_security_login');\n }\n }", "public function index(Request $request)\n\t{\n\t\tif(!in_array(10, $this->privsArray)) {\t\t\t\n\t\t\treturn redirect()->back();\n\t\t}\n\t\treturn view('user.show_users', compact('users'));\n\t}", "public function index()\n {\n if(auth('api')->user()->hasRole('superadmin')){\n $permisions = Permission::paginate(10);\n foreach($permisions as $key => $value){\n $permisions[$key]['role'] = $value->getRoleNames();\n $permisions[$key]['count'] = count($value->getRoleNames());\n }\n return $permisions;\n }\n }", "function getAllAccess() {\n return ['download', 'remoteAccess', 'remoteService', 'enclave','notAvailable'];\n}", "public function getUsers(Request $request)\n {\n if (Auth::check()) {\n $data = $request->all();\n $start = $data['start'];\n $limit = $data['limit'];\n $current = Auth::user();\n $totalUsers = User::where('id', '!=', $current['id'])->get();\n $users = User::where('id', '!=', $current['id'])->skip($start)->take($limit)->orderBy('id', 'DESC')->get();\n\n return response()->json(['success' => true, 'status' => 1, 'users' => $users, 'total' => count($totalUsers)]);\n }\n\n return response()->json(['success' => false, 'status' => 0]);\n }", "public function getPendingRelRequests(Member $member);", "public function listAction(){\n $r=$this->getRequest();\n $query=Doctrine_Query::create()\n ->select(\"uo.orgid, u.ID, u.nome,u.cognome,u.user,u.active,u.data_iscrizione,r.role\")\n ->from(\"Users u\")\n ->leftJoin(\"u.Role r\")\n ->leftJoin(\"u.UsersOrganizations uo\")\n ->where(\"uo.orgid=\".$r->getParam('orgid'))\n ->addWhere(\"uo.active=\".Constants::UTENTE_ATTIVO);\n list($users,$total)=DBUtils::pageQuery($query,array(),$this->getLimit(),$this->getOffset());\n $this->emitTableResult($users,$total);\n }", "public function getAllUsersAction(Request $request)\n {\n $user = $this->user;\n if (!$user) {\n return $this->redirectToRoute('login');\n }\n\n $entityManager = $this->em;\n $repoU = $entityManager->getRepository(User::class);\n $organization = $user->getOrganization();\n $orgEnabledUserCreatingUser = false;\n $orgEnabledUserSeeAllUsers = false;\n $orgEnabledUserSeePeersResults = false;\n $enabledUserSeeSnapshotSupResults = false;\n $enabledSuperiorOverviewSubResults = false;\n $enabledSuperiorSettingTargets = false;\n $enabledSuperiorModifySubordinate = false;\n $nbViewableInternalUsers = 0;\n\n\n // Only administrators or roots can create/update users who have the ability to create users themselves\n $orgOptions = $organization->getOptions();\n foreach ($orgOptions as $orgOption) {\n switch ($orgOption->getOName()->getName()) {\n case 'enabledSuperiorModifySubordinate':\n $enabledSuperiorModifySubordinate = $orgOption->isOptionTrue();\n break;\n case 'enabledSuperiorOverviewSubResults':\n $enabledSuperiorOverviewSubResults = $orgOption->isOptionTrue();\n break;\n case 'enabledSuperiorSettingTargets':\n $enabledSuperiorSettingTargets = $orgOption->isOptionTrue();\n break;\n case 'enabledUserCreatingUser':\n $orgEnabledUserCreatingUser = $orgOption->isOptionTrue();\n break;\n case 'enabledUserSeeAllUsers':\n $orgEnabledUserSeeAllUsers = $orgOption->isOptionTrue();\n break;\n case 'enabledUserSeeSnapshotPeersResults':\n $orgEnabledUserSeePeersResults = $orgOption->isOptionTrue();\n break;\n case 'enabledUserSeeSnapshotSupResults':\n $enabledUserSeeSnapshotSupResults = $orgOption->isOptionTrue();\n break;\n case 'enabledUserSeeRanking':\n $orgEnabledUserSeeRanking = $orgOption->isOptionTrue();\n break;\n }\n }\n\n $clientFirms = new ArrayCollection;\n $clientTeams = new ArrayCollection;\n $clientIndividuals = new ArrayCollection;\n $clients = $organization->getClients();\n $totalClientUsers = 0;\n\n foreach ($clients as $client) {\n $canSeeClient = $user->getRole() == 4 || $user->getRole() == 1 || $organization->getPlan() > ORGANIZATION::PLAN_ENTERPRISE || $client->getInitiator() == $user;\n if ($canSeeClient) {\n switch ($client->getClientOrganization()->getType()) {\n case 'F':\n $clientFirms->add($client);\n break;\n case 'T':\n $clientTeams->add($client);\n break;\n case 'I':\n case 'C':\n $clientIndividuals->add($client);\n break;\n }\n }\n }\n\n $totalClientUsers = 0;\n\n foreach ($organization->getClients() as $client) {\n $totalClientUsers += count($client->getExternalUsers()) - 1;\n }\n\n $nbViewableInternalUsers = count($organization->getActiveUsers());\n\n $users = $organization->getActiveUsers();\n //$usersWithDpt = $users->filter(fn(User $u) => $u->getDepartment() != null);\n $usersWithoutDpt = $users->filter(fn(User $u) => !$u->getDepartment() && !$u->isSynthetic());\n\n $viewableUsersWithoutDpt = $usersWithoutDpt;\n\n /*foreach ($usersWithoutDpt as $userWithoutDpt) {\n $canSeeUserWithoutDpt = $user->getRole() == 4 || ($user->getRole() == 1) || ($user->getInitiator() == $user);\n if ($canSeeUserWithoutDpt) {$viewableUsersWithoutDpt[] = $userWithoutDpt;}\n }*/\n\n $viewableTeams = $organization->getTeams()->filter(function (Team $t) {return $t->getDeleted() == null;});\n\n //$dealingFirms = $organization->getDealingFirms();\n //$dealingTeams = $organization->getDealingTeams();\n $dealingTeams = $this->em->getRepository(Organization::class)->getDealingTeams($organization);\n\n return $this->render(\n 'user_list.html.twig',\n [\n 'rootDisplay' => false,\n //'dealingFirms' => $dealingFirms,\n 'clientFirms' => $clientFirms,\n 'clientTeams' => $clientTeams,\n 'clientIndividuals' => $clientIndividuals,\n 'setClientIconForm' => $this->createForm(SetClientIconForm::class),\n //'usersWithDpt' => $usersWithDpt,\n 'organization' => $organization,\n //'viewableDepartments' => $this->em->getRepository(Organization::class)->getUserSortedDepartments($this->user),\n 'viewableDepartments' => $organization->getDepartments()->filter(fn(Department $d) => $d->getActiveUsers()->count() > 0),\n 'viewableTeams' => $viewableTeams,\n 'dealingTeams' => $dealingTeams,\n 'totalClientUsers' => $totalClientUsers,\n 'usersWithoutDpt' => $viewableUsersWithoutDpt,\n 'orgEnabledUserCreatingUser' => $orgEnabledUserCreatingUser,\n 'orgEnabledUserSeeAllUsers' => $orgEnabledUserSeeAllUsers,\n 'orgEnabledUserSeePeersResults' => $orgEnabledUserSeePeersResults,\n 'enabledUserSeeSnapshotSupResults' => $enabledUserSeeSnapshotSupResults,\n 'enabledSuperiorOverviewSubResults' => $enabledSuperiorOverviewSubResults,\n 'enabledSuperiorSettingTargets' => $enabledSuperiorSettingTargets,\n 'enabledSuperiorModifySubordinate' => $enabledSuperiorModifySubordinate,\n 'nbViewableInternalUsers' => $nbViewableInternalUsers,\n 'orgEnabledUserSeeRanking' => $orgEnabledUserSeeRanking ?? false,\n ]\n );\n }", "public function listSubmissions(Request $request) {\n\t\t$pager = $this->pager($request, $this->getUser()->getJokeSubmissions());\n\t\treturn $this->render('Joke/listSubmissions.html.twig', ['pager' => $pager]);\n\t}", "public function showAllUsers(Request $request)\n {\n return User::all();\n }", "function printNewRequests() {\r\n $criteria = array('status' => Appeal::$STATUS_NEW);\r\n return printAppealList($criteria);\r\n}", "public function getRequests_() {\n return $this->__requests;\n }", "public function moderatorRequests(): MorphToMany\r\n {\r\n return $this->_moderators()->where('status', 'request');\r\n }", "public function showAllAction( Request $request)\n { $em = $this->getDoctrine()->getManager();\n\n $entrepots = $em->getRepository('GererEntrepotBundle:Entrepot')->findAll();\n\n\n return $this->render('@GererEntrepot/admin/index.html.twig', array(\n 'entrepots' => $entrepots,\n ));\n\n }", "public function PaginatedListOfUsers ()\n {\n $url = \"https://reqres.in/api/users\";\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_URL,$url);\n $result=curl_exec($ch);\n curl_close($ch);\n return $result;\n }", "public function index() {\n\t\t$this->authorize('list', LeaveRequest::class);\n\n\t\t$leave_requests = $this->repo->paginate($this->request->all());\n\n\t\t$filters = $this->repo->getFilters();\n\n\t\treturn $this->success(compact('leave_requests', 'filters'));\n\t}", "public function userlist()\n {\n $filter = Param::get('filter');\n\n $current_page = max(Param::get('page'), SimplePagination::MIN_PAGE_NUM);\n $pagination = new SimplePagination($current_page, MAX_ITEM_DISPLAY);\n $users = User::filter($filter);\n $other_users = array_slice($users, $pagination->start_index + SimplePagination::MIN_PAGE_NUM);\n $pagination->checkLastPage($other_users);\n $page_links = createPageLinks(count($users), $current_page, $pagination->count, 'filter=' . $filter);\n $users = array_slice($users, $pagination->start_index -1, $pagination->count);\n \n $this->set(get_defined_vars());\n }", "function requestComments() {\n $username = $_GET['username'];\n \n $response = retrieveComments($username);\n\n if ($response['status'] == 'SUCCESS') {\n echo json_encode($response['response']);\n } else {\n errorHandler($response['status'], $response['code']);\n }\n }", "public function request() { if($this->allowed(USER_WORKER)) {\n switch($this->action) {\n case 'pendingAmount':\n $this->getPending();\n break;\n case 'pendingList':\n $this->getRequests();\n break;\n case 'rejectedList':\n $this->getRequests('rejected');\n break;\n case 'acceptedList':\n $this->getRequests('accepted');\n break;\n case 'reject':\n $this->reject();\n break;\n case 'accept':\n $this->accept();\n break;\n default:\n $this->updateValue();\n break;\n }\n // direct update\n // TODO\n } else if ( ! $this->action ) {\n if($this->institution && testInstitution($this->institution)) {\n $this->appendToQueue();\n } else {\n $this->denied();\n }\n }\n }", "public function allUser(){\n\n\t\t\t$data=$this->all('oops');\n\t\t\treturn $data;\n\t\t}", "public function index(Request $request): JsonResponse\n {\n activity(\"Admin\")\n ->withProperties([\n ['IP' => $request->ip()],\n ])\n ->log('Get Users');\n\n return UserResource::collection(User::with('plans')->get())->response();\n }" ]
[ "0.6572602", "0.6230596", "0.61561286", "0.60475296", "0.6036218", "0.5969133", "0.59368336", "0.59354275", "0.59335876", "0.58844167", "0.5863848", "0.58580464", "0.5836039", "0.5807121", "0.5792764", "0.576627", "0.57535744", "0.57410425", "0.5720357", "0.5703238", "0.5689783", "0.5683529", "0.56429344", "0.5639219", "0.5622857", "0.55777925", "0.557485", "0.5569749", "0.5560697", "0.5559754", "0.5533069", "0.5528721", "0.55256957", "0.5520277", "0.5508053", "0.5506072", "0.5504087", "0.54939073", "0.5474838", "0.5462341", "0.5449658", "0.5437175", "0.54289925", "0.5423309", "0.54035026", "0.5399808", "0.5398233", "0.5390575", "0.5380263", "0.53747463", "0.5345435", "0.53432244", "0.5335185", "0.5334655", "0.5334003", "0.5328559", "0.5327208", "0.53210825", "0.53173447", "0.53172284", "0.53167987", "0.53166777", "0.5312531", "0.53089505", "0.5303128", "0.5298503", "0.5295794", "0.5293785", "0.5290484", "0.5285672", "0.528394", "0.52818173", "0.5281258", "0.52770185", "0.52723444", "0.52661747", "0.52592605", "0.52566886", "0.52548695", "0.52508545", "0.5243693", "0.5241201", "0.523813", "0.5236189", "0.52359813", "0.52282804", "0.5222738", "0.5221972", "0.52210206", "0.5220175", "0.52126426", "0.5212521", "0.5211794", "0.52052855", "0.52017343", "0.5198228", "0.51963097", "0.51931983", "0.51924235", "0.5190553" ]
0.5474486
39
Constructor Initialize the model needed
private function __construct() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n $this ->model = $this ->makeModel($this ->model());\n }", "function __construct () {\n\t\t$this->_model = new Model();\n\t}", "public function __construct() {\n $this->porcentajesCursoModel = $this->model('PorcentajesCursoModel');\n $this->tipoModuloModel = $this->model('TipoModuloModel');\n $this->cursoModel = $this->model('CursoModel');\n }", "function __construct(){\n\t\tparent::__construct();\n\t\t\t$this->set_model();\n\t}", "function __construct()\n {\n // 呼叫模型(Model)的建構函數\n parent::__construct();\n \n }", "public function __construct() {\n $this->docenteModel = $this->model('DocenteModel');\n }", "function __construc()\r\n\t{\r\n\t\tparent::Model();\r\n\t}", "private function __construct($model)\r\n {\r\n\r\n }", "function __construct() {\r\n parent::Model();\r\n }", "public function __construct() {\n\t\tparent::__construct();\n\t\t$this->load->model('data');\n\t}", "public function __construct()\n {\n parent::__construct();\n //自动加载相对应的数据模型\n if ($this->auto_load_model) {\n $model_name = $this->model_name ? $this->model_name . '_model' : $this->router->fetch_class() . '_model';\n $this->load->model($model_name, 'model');\n }\n $this->_set_user();\n $this->_check_resource();\n }", "function __construct()\r\n {\r\n parent::Model();\r\n }", "public function __construct(){\n\t\tparent::__construct();\n\t\t$this->load->model('Model');\n\t}", "public function __construct(){\n\t\tparent::__construct();\n\t\t$this->load->model('Model');\n\t}", "public function __construct()\n\t{\n\t\t$this->modelProducts = new ProductsModel();\n\t\t/* ********** fin initialisation Model ********** */\n\t}", "function __construct() {\n\t\t$this->cotizacionModel = new cotizacionModel();\n\t}", "public function __construct()\n {\n\n $this->SubCategory = new SubCategoriesModel;\n $this->Functions = new ModelFunctions();\n }", "protected function _construct()\n {\n $this->_init(Model::class, ResourceModel::class);\n }", "public function __construct()\n\t{\n\t\t// \\ladybug_dump($model);\n\t}", "public function __construct(){\n\t\tinclude_once(\"model/crews_model.php\");\n\t\t$this->model = new crews_model();\n\t}", "public function __construct() {\n // und lädt das zugehörige Model\n $this->userModel = $this->model('User');\n }", "public function __construct()\n\t{\n\t\tif (!$this->model_name)\n\t\t{\n\t\t\t$this->model_name = str_replace('Model_', '', get_class($this));\n\t\t}\n\t\t$this->model_name = strtolower($this->model_name);\n\t\t\n\t\t$this->_initialize_db();\n\t}", "public function __construct() {\n // load our model\n $this->userModel = $this->model('User'); // will check models folder for User.php\n }", "public function __construct() {\n // Call the Model constructor\n parent::__construct();\n }", "function\t__construct()\t{\n\t\t\t\t/* contrutor da classe pai */\n\t\t\t\tparent::__construct();\n\t\t\t\t/* abaixo deverão ser carregados helpers, libraries e models utilizados\n\t\t\t\t\t por este model */\n\t\t}", "function __construct()\n {\n parent::__construct();\n\n\t\t$this->load->model('floatplan_model');\n\t\t$this->load->model('user_model');\n }", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->load->model('LeBabeModel');\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->load->model('LeBabeModel');\n\t}", "function __construct() {\n // Call the Model constructor \n parent::__construct();\n }", "public function __construct() {\n\t\t$this->orgModel = new OrgModel(); // TODO: \n\t }", "function __construct()\n\t\t{\n\t\t\t// Call the Model constructor\n\t\t\tparent::__construct();\n\t\t $this->load->database();\t\n\t\t}", "public function __construct()\n {\n parent::__construct();\n $this->load->model(['m_voting', 'm_master', 'm_prospects', 'm_factors']);\n }", "public function __construct(){\n $this->sliderModel = $this->model('Slider');\n $this->siteInfoModel = $this->model('SiteInfo');\n $this->officeModel = $this->model('Office');\n $this->categoryModel = $this->model('Category');\n $this->brandModel = $this->model('Brands');\n $this->productModel = $this->model('Products');\n $this->imgModel = $this->model('Image');\n }", "public function __construct() {\n $this->openConnection();\n $this->model();\n }", "function __construct()\n {\n parent::__construct();\n $this->__resTraitConstruct();\n $this->load->model('VSMModel');\n $this->load->model('TextPreprocessingModel');\n\n }", "function __construct()\n {\n $this->openDatabaseConnection();\n $this->loadModel();\n }", "public function init()\n {\n\t\t$this->user_model = new Application_Model_Users;\n\t\t$this->request_model = new Application_Model_Requests;\n\t\t$this->material_model = new Application_Model_Materials;\n\t\t$this->course_model = new Application_Model_Courses;\n\t\t$this->comment_model = new Application_Model_Comments;\n\t\t$this->category_model = new Application_Model_Categories;\n \t$this->assoc_rules_model = new Application_Model_Assocrules;\n }", "function __construct() {\n $this->loteModel = new loteModel();\n }", "function __construct()\n {\n parent::__construct();\n $this->load->model(['encuentros_model']);\n }", "public function __construct() {\n $this->load = new Load();\n $this->model = new Model();\n }", "public function __construct () {\n $this->model = 'App\\\\' . $this->model;\n $this->model = new $this->model();\n\n // Get the column listing for a given table\n $this->table_columns = Schema::getColumnListing( $this->table );\n }", "function __construct()\n {\n parent::Model();\n }", "public function __construct() {\n\n parent::__construct();\n\n // Load models\n $this->load->model(\"attributesModel\", \"attributes\");\n\n }", "function __construct()\n {\n // Call the Model constructor\n parent::__construct();\n }", "function __construct()\n {\n // Call the Model constructor\n parent::__construct();\n }", "function __construct()\n {\n // Call the Model constructor\n parent::__construct();\n }", "function __construct()\n {\n // Call the Model constructor\n parent::__construct();\n }", "public function __construct() {\n parent::__construct();\n $this->load->model(array('dt_diag_klsf_model','dt_obat_model','dt_pasien_model','dt_pemeriksaan_model','dt_proses_model','dt_thpan_model'));\n }", "public function __construct()\n {\n $this->model = app()->make($this->model());\n }", "public function __construct()\n {\n parent::__construct();\n\n\t\t$this->load->model(\"options_model\");\n\t\t$this->load->model(\"selections_model\");\n\t\t$this->load->model(\"info_model\");\n\t\t$this->load->model(\"dealer_model\");\n\t\t$this->load->library(\"encrypt\");\n\t\t$this->load->model(\"promocode_model\");\n\t}", "public function __construct()\n {\n $this->model = new BaseModel;\n }", "public function __construct() {\n\t\t$this->empleadoModel = $this->model('Empleado');\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->load->model('Request_model');\n\t\t$this->load->model('Book_model');\n\t}", "function __construct() {\n parent::__construct();\n $this->load->model('Fontend_model');\n $this->load->model('Package_model');\n }", "function __construct()\n {\n $this->view = new View();\n $this->model = new si_cf_parametroModel();\n }", "public function __construct()\n {\n $this->imageModel = new ImageModel();\n $this->userModel = new User();\n $this->psychologySupervisorModel = new PsychologySupervisor();\n $this->registerSupervisionModel = new RegisterSupervision();\n $this->updateSupervisionModel = new UpdateSupervisionModel();\n }", "function __construct()\n {\n // load model\n Load::loadModel(\"helpDesk\");\n }", "public function __construct($initModel = true) {\n if ($initModel)\n $this->model = new Model();\n }", "public function __construct () {\n\t\tparent::__construct ();\n\t\t\n\t\tif ($this->models)\n\t\tforeach ($this->models as $model) {\n\t\t\tunset ($this->models[$model]);\n\t\t\t$this->models[$model] = $this->session->getModel ($model,$this);\n\t\t\t$this->$model = $this->models[$model];\n\t\t}\n\t}", "public function __construct()\n {\n if (verifyCsrf()) {\n redirect('error/show/csrf');\n exit();\n }\n /**Instancia del Modelo Usuario*/\n $this->usuarioModel = $this->model('Usuario');\n /**Instancia del Modelo Mesas Finales*/\n $this->mesaFinalModel = $this->model('MesaFinal');\n /**Instancia del Modelo Inscripciones Finales*/\n $this->inscripcionFinalModel = $this->model('InscripcionMesa');\n }", "public function __construct()\r\n\t{\r\n\tparent::__construct();\r\n\t\r\n\t//load database libray manually\r\n\t$this->load->database();\r\n\t\r\n\t//load Model\r\n\t$this->load->model('Hello_Model');\r\n\t}", "public function __construct()\n {\n $this->model = New Checklist();\n $this->modelEvents = New Event();\n $this->fractal = new Manager();\n }", "public function __CONSTRUCT(){\n $this->model = new Estadobien();\n }", "public function __construct() {\r\n\t\tparent::__construct();\r\n\t\t$this->load->model(\"bibliotecaModel\");\r\n\t}", "public function __construct()\n {\n $this->ModelUser = new LoginRegisterModel();\n $this->modelCategorie = new CategoriesModel();\n\t\t/* ********** fin initialisation Model ********** */\n }", "public function __construct()\n {\n parent::__construct();\n $this->path = __DIR__.'/../';\n\n $this->Model = '';\n $this->model = '';\n $this->Models = '';\n $this->models = '';\n\n $this->schema = '';\n $this->field_names = '';\n $this->table_header = '';\n $this->table_data = '';\n $this->details = '';\n $this->seeder_data = '';\n }", "function __construct(){\n\t\t\t$this->model = new model(); //variabel model merupakan objek baru yang dibuat dari class model\n\t\t\t$this->model->table=\"tb_dosen\";\n\t\t}", "public function __construct()\n {\n $this->userModel = new User();\n $this->instituteModel = new Institute(UserCommon::getLoggedInUserId());\n $this->common = new InstituteType();\n \n }", "public function __construct() {\n $this->model = new Model_Jiafuyun_Regulator();\n\t}", "public function __construct()\n {\n $this->MemberModel = new MemberModel();\n }", "function __construct() {\n parent::__construct();\n $this->load->model('Callcenter_model');\n }", "function __construct()\n\t{\n\t\t// this->model = new Producto();\n\t}", "public function __construct(){\n $this->vehicle_model = VehicleModel::getVehicleModel();\n }", "public function __construct()\n\t\t{\n\t\t\t/*goi thang den ham _init trong ResourceModel*/\n\t\t\tparent::_init('lienhe', 'id', new ContactModel);\n\t\t}", "public function __construct()\n {\n parent::__construct();\n $this->load->model('toko_model');\n }", "public function __construct() {\n\t\t\n\t\tparent::__construct();\n\n\t\t$this->load->model('user_m');\n\t\t$this->load->model('setup_m');\n\t\t$this->load->model('material_m');\n\t\t$this->load->model('assessment_m');\n\t\t$this->load->model('assignment_m');\n\n\n\t}", "public function __construct(){\n\n\t\t$this->types_model = new Types();\n\t}", "public function __construct()\n\t{\n\t\t$this->model = new Layout_Model();\n\t}", "function __construct() {\n parent::__construct();\n \n $this->load->model('SiswaModel');\n }", "public function __construct()\n {\n parent::Model();\n\n }", "public function __construct() {\n parent::__construct();\n $this->load->model('Thematic_model');\n }", "function __construct() {\r\n parent::__construct();\r\n $this->load->model(\"Siswa\"); //constructor yang dipanggil ketika memanggil siswa.php untuk melakukan pemanggilan pada model : siswa_model.php yang ada di folder models\r\n }", "function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->load->model(\"mahasiswa_model\");\n\t}", "public function __construct()\n {\n parent::__construct();\n\n $this->load->model('dict_model');\n $this->load->library('common_tools');\n }", "public function __construct() {\n parent::__construct('md_rent_car', 'md_order');\n $this->log->log_debug('RentCarAffairModel model be initialized');\n }", "public function __construct()\n\t{\n\t\t//MVC: makes CodeIgniter style $this->load->model() available to my controllers\n\t\t$this->load = new modelLoader($this);\n\t}", "public function __construct()\n {\n // All of my models are like this\n parent::__construct(get_class($this));\n // Calling methods to get the relevant data\n $this->generateNewsData();\n $this->generateAnalyticsData();\n $this->generatePostsData();\n }", "public function __construct() {\n // Init security library object\n $this->securityLibObj = new SecurityLib();\n\n // Init DateTimeLib library object\n $this->dateTimeLibObj = new DateTimeLib();\n\n // Init Search model object\n $this->searchObj = new Search();\n\n // Init UtilityLib library object\n $this->utilityLibObj = new UtilityLib();\n\n // Init Patients model object\n $this->patientsObj = new Patients();\n\n // Init StaticDataConfig model object\n $this->staticDataObj = new StaticDataConfig();\n\n // Init DoctorProfile model object\n $this->doctorprofileObj = new DoctorProfile();\n\n // Init DoctorProfile model object\n $this->appointmentCategoryObj = new AppointmentCategory();\n\n // Init ManageCalendar model object\n $this->manageCalendarObj = new ManageCalendar();\n\n // Init ManageCalendar model object\n $this->timingObj = new Timing();\n }", "function __construct()\n\t{\n\t\tparent::__construct();\n\n\t\t$this->load->model('colleges_model', 'colleges');\n\t\t// $this->load->model('programs');\n\t\t$this->load->model('courses_model', 'courses');\n\t\t$this->load->model('user_model', 'user');\n\t\t$this->load->model('forms_model', 'forms');\n\t\t$this->load->model('evaluation_model', 'evaluation');\n\t}", "public function __construct()\n {\n parent::__construct();\n\n $this->session->set('docFrom', 'doc');\n\n $this->libs = $this->doc->getLibPairs();\n $this->loadModel('user');\n $this->loadModel('tree');\n $this->loadModel('action');\n $this->loadModel('project', 'proj');\n }", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->load->model('TimeTable_model', 'tmtl');\n\t\t$this->load->model('Schools_model', 'schl');\n\t}", "public function __construct(){\n $this->user = $this->model('users');\n $this->mailer = $this->model('mailer');\n $this->friendModel = $this->model('Friends_relationship');\n }", "public function __construct(){\n parent::__construct();\n $this->load->model(\"Cuartel_model\");\n\n\t}", "public function __construct(){\n\t\t$mysql = MySQL::getInstance(array('localhost', 'root', '', 'amdb'));\n\t\t$this->bewertungsmodel = new Model($mysql, 'bewertung');\n\t\t$this->videomodel = new Model($mysql, 'lied');\n\t}", "function __construct() {\n parent::__construct();\n $this->load->model('flightModel');\n $this->load->model('flight');\n $this->load->model('wackyModel');\n $this->load->model('fleetModel');\n }", "public function __construct() {\n $this->model = new Model_Jiafuyun_Order();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->load->model('Subscriber_model');\n\t\t$this->load->model('Post_reaction_model');\n\t}", "function __construct() {\n $this->model = new HomeModel();\n }", "function __construct() {\r\n\t\tparent::__construct();\r\n\t\t$this->load->model('event_model');\r\n\t\t$this->load->model('group_model');\r\n\t}", "public function __construct()\n {\n $this->model= new Estudiante;\n $this->curso= new Curso;\n $this->usuario= new Usuario;\n $this->centrointeres= new Centrointeres;\n $this->clase= new Clase;\n $this->grado = new Grado;\n $this->asistencia= new Asistencia;\n }", "public function __construct()\r\n\t{\r\n\t\tparent::__construct();\r\n\t\t\r\n\t\t$this->load->model(array('user_model','program_model'));\r\n\t\t\r\n\t}" ]
[ "0.84535235", "0.8406182", "0.80041707", "0.79808205", "0.7970709", "0.7954706", "0.7887389", "0.7879194", "0.7870295", "0.78641576", "0.78473705", "0.7826628", "0.7823647", "0.7823647", "0.7819304", "0.7813882", "0.7812875", "0.7809273", "0.7794229", "0.7792893", "0.77871144", "0.77835906", "0.77698946", "0.7754187", "0.7753579", "0.77315766", "0.77300584", "0.77300584", "0.7730044", "0.77239394", "0.7707952", "0.7677958", "0.7675461", "0.7671283", "0.7669953", "0.76678914", "0.76621705", "0.76601315", "0.76588815", "0.76520777", "0.76476437", "0.76468194", "0.76420593", "0.76335716", "0.76335716", "0.76335716", "0.76335716", "0.761485", "0.76137406", "0.76073194", "0.76067764", "0.7603353", "0.75678897", "0.75674254", "0.75652725", "0.7550128", "0.7547737", "0.75412065", "0.75339526", "0.7532997", "0.7530605", "0.752801", "0.7517428", "0.75051636", "0.75015265", "0.74993134", "0.7490548", "0.7483904", "0.7477949", "0.74778354", "0.747661", "0.7469082", "0.7465243", "0.74640256", "0.746367", "0.7463417", "0.7453081", "0.7452108", "0.74485785", "0.7447909", "0.7437456", "0.74366903", "0.7432603", "0.7431585", "0.74291617", "0.7429001", "0.74288225", "0.74284595", "0.7424814", "0.74233294", "0.7423258", "0.74222517", "0.74134403", "0.7413065", "0.7412804", "0.7397496", "0.7390975", "0.7390236", "0.7385735", "0.7384946", "0.7382324" ]
0.0
-1
parse base URL and convert to local variables: $scheme, $host, $path
function rel2abs_img( $rel, $base ) { extract( parse_url( $base ) ); if ( strpos( $rel,"//" ) === 0 ) { return $scheme . ':' . $rel; } // return if already absolute URL if ( parse_url( $rel, PHP_URL_SCHEME ) != '' ) { return $rel; } // queries and anchors if ( $rel[0] == '#' || $rel[0] == '?' ) { return $base . $rel; } // remove non-directory element from path $path = preg_replace( '#/[^/]*$#', '', $path ); // destroy path if relative url points to root if ( $rel[0] == '/' ) { $path = ''; } // dirty absolute URL $abs = $path . "/" . $rel; // replace '//' or '/./' or '/foo/../' with '/' $abs = preg_replace( "/(\/\.?\/)/", "/", $abs ); $abs = preg_replace( "/\/(?!\.\.)[^\/]+\/\.\.\//", "/", $abs ); // absolute URL is ready! return $abs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parse_uri() {\n $url = \"http://localhost\" . $this->uri;\n $parsed_url = parse_url($url);\n $this->path = $parsed_url['path'];\n @$this->query = $parsed_url['query'];\n }", "private static function getUrlBase() {\n\t\tif(!isset(self::$usrBbase)) {\n\t\t\tself::$urlBase =\n\t\t\t\tself::getScheme()\n\t\t\t\t. '://'\n\t\t\t\t. self::getHost()\n\t\t\t\t. ((self::getPort() == 80 || self::getPort() == 443)\n\t\t\t\t\t? ''\n\t\t\t\t\t: ':'.self::getPort())\n\t\t\t\t. self::getBasePath();\n\t\t}\n\t\treturn self::$urlBase;\n\t}", "private static function base_url($path=NULL)\n {\n\t\tglobal $url;\n $fullurl=$url.$path;\n return $fullurl;\n\t}", "protected static function baseurl($path=NULL)\n {\n\t\t$res=self::base_url($path);\n\t\treturn $res;\n }", "function get_base_url()\n{\n $url = explode('/',$_SERVER['REQUEST_URI']);\n $segmentOne = isset($url[0]) ? $url[0] : '';\n $segmentTwo = isset($url[1]) ? $url[1] : '';\n $url = 'http://localhost/' . ($segmentOne ? $segmentOne . '/' : '') . ($segmentTwo ? $segmentTwo : '') . '/';\n return $url;\n}", "function get_base_url() {\n $fin_string = '';\n $parts = explode('/', $this->request_uri);\n if (count($parts) > 2) {\n $subparts = array_slice($parts, 2);\n foreach ($subparts as $p)\n $fin_string .= $p . '/';\n return substr($fin_string, 0, -1);\n }\n return $fin_string;\n }", "public function getBaseUri() {}", "public function getBaseUri() {}", "public function base_url()\n {\n if (isset($_SERVER['HTTP_HOST']) && preg_match('/^((\\[[0-9a-f:]+\\])|(\\d{1,3}(\\.\\d{1,3}){3})|[a-z0-9\\-\\.]+)(:\\d+)?$/i', $_SERVER['HTTP_HOST']))\n {\n $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? \"https://\" : \"http://\";\n $baseurl = $protocol.$_SERVER['HTTP_HOST'].substr($_SERVER['SCRIPT_NAME'], 0, strpos($_SERVER['SCRIPT_NAME'], basename($_SERVER['SCRIPT_FILENAME'])));\n }\n else\n {\n $baseurl = 'http://localhost/';\n }\n\n return $baseurl;\n }", "private function buildBaseUrl()\n {\n return $this->scheme() . $this->host;\n }", "function get_base_url($protocol=true)\n{\n return Request::GetBaseUrl($protocol);\n}", "function resolve_href ($base, $href) {\n if (!$href) {\n return $base;\n }\n\n // href=\"http://...\" ==> href isn't relative\n $rel_parsed = parse_url($href);\n if (array_key_exists('scheme', $rel_parsed)) {\n return $href;\n }\n\n // add an extra character so that, if it ends in a /, we don't lose the last piece.\n $base_parsed = parse_url(\"$base \");\n // if it's just server.com and no path, then put a / there.\n if (!array_key_exists('path', $base_parsed)) {\n $base_parsed = parse_url(\"$base/ \");\n }\n\n // href=\"/ ==> throw away current path.\n if ($href{0} === \"/\") {\n $path = $href;\n } else {\n $path = dirname($base_parsed['path']) . \"/$href\";\n }\n\n // bla/./bloo ==> bla/bloo\n $path = preg_replace('~/\\./~', '/', $path);\n\n // resolve /../\n // loop through all the parts, popping whenever there's a .., pushing otherwise.\n $parts = array();\n foreach (\n explode('/', preg_replace('~/+~', '/', $path)) as $part\n ) if ($part === \"..\") {\n array_pop($parts);\n } elseif ($part!=\"\") {\n $parts[] = $part;\n }\n\n return (\n (array_key_exists('scheme', $base_parsed)) ?\n $base_parsed['scheme'] . '://' . $base_parsed['host'] : \"\"\n ) . \"/\" . implode(\"/\", $parts);\n\n}", "public function getBaseUri(): string;", "function get_main_url($url){\r\n $parts = parse_url($url);\r\n $url = $parts[\"scheme\"] .\"://\".$parts[\"host\"];\r\n return $url;\r\n}", "private function parsePath() {\n\n $parsed = array();\n $request_path = strtok($this->uri, '?');\n $base_path_len = strlen(rtrim(dirname($this->script_name), '\\/'));\n\n // Unescape and strip $base_path prefix, leaving q without a leading slash.\n $path = substr(urldecode($request_path), $base_path_len + 1);\n \n //make it clean\n $parsed = filter_var_array(explode('/', trim($path, '/')), FILTER_SANITIZE_STRING);\n\n $this->parsed_path = $parsed; \n\n }", "function _parseUrl($url) {\n\n\t\t// parse url\n\t\t$url = array_merge(array('user' => null, 'pass' => null, 'path' => '/', 'query' => null, 'fragment' => null), parse_url($url));\n\t\t\n\t\t// set scheme\n\t\tif (!isset($url['scheme'])) {\n\t\t\t$url['scheme'] = 'http';\n\t\t}\n\n\t\t// set host\n\t\tif (!isset($url['host'])) {\n\t\t\t$url['host'] = $_SERVER['SERVER_NAME'];\n\t\t}\n\n\t\t// set port\n\t\tif (!isset($url['port'])) {\n\t\t\t$url['port'] = $url['scheme'] == 'https' ? 443 : 80;\n\t\t}\n\n\t\t// set path\n\t\tif (!isset($url['path'])) {\n\t\t\t$url['path'] = '/';\n\t\t}\n\t\t\n\t\treturn $url;\n\t}", "private function detectBaseUrl() {\n $this->baseurl = empty($this->subdir) ? '/' : \"/{$this->subdir}/\";\n }", "public function GetBaseUrl()\n {\n // @TODO Server Object\n $protocol = ((isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] === 'on' || $_SERVER['HTTPS'] == 1)) ? \"https\" : \"http\") . '://';\n $host = $_SERVER['HTTP_HOST'];\n\n // use port if non default\n $port =\n isset($parts['port']) &&\n (($protocol === 'http://' && $parts['port'] !== 80) ||\n ($protocol === 'https://' && $parts['port'] !== 443))\n ? ':' . $parts['port'] : '';\n\n // rebuild\n return $protocol . $host . $port;\n }", "public static function parse() {\n\t\t/* Grab the base URL from the Site class */\n\t\t$baseurl = parse_url( Config::instance()->get('baseurl') );\n\t\t$baseurl = $baseurl['path'];\n\n\t\t/* Start with the entire URL coming from web server... */\n\t\tif(isset($_SERVER['REQUEST_URI']))\n\t\t\t$request = str_replace('?' . $_SERVER['QUERY_STRING'], '', $_SERVER['REQUEST_URI']);\n\t\telse\n\t\t\t$request = $_SERVER['SCRIPT_NAME'] . ( isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '' );\n\n\t\t/* Strip out the base URL from the requested URL */\n\t\t/* but only if the base URL isn't / */\n\t\tif ( '/' != $baseurl ) {\n\t\t\t$request = str_replace($baseurl, '', $request);\n\t\t}\n\n\t\t$request = trim($request, '/');\n\t\tself::$request = $request;\n\t}", "public static function getBaseUri()\n {\n $server = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'];\n return rtrim(self::getProtocol() . '://' . $server, '/');\n }", "public static function setBaseUrl($url) {\n\t if($parts = parse_url($url)) {\n\t if(isset($parts['scheme'])) self::$scheme = $parts['scheme'];\n\t if(isset($parts['host'])) self::$host = $parts['host'];\n\t if(isset($parts['port'])) self::$port = $parts['port'];\n\t if(isset($parts['path'])) self::$basePath = $parts['path'];\n\t }\n\t}", "function vap_url_parse ($url) {\n $sp = null;\n $sp2 = null;\n $len = null;\n $absurl = null;\n $urllen = null;\n $urlparse = null;\n\n if ($url == null) {\n return false;\n }\n\n if (strncasecmp($url, \"http://\", 7) == 0) {\n $urlparse['protocol'] = \"http\";\n $absurl = substr($url, 7);\n } else\n if (strncasecmp($url, \"https://\", 8) == 0) {\n $urlparse['protocol'] = \"https\";\n $absurl = substr($url, 8);\n } else {\n return false;\n }\n\n $urllen = strlen($absurl);\n\n if (($sp = strstr($absurl, \":\")) == null) {\n\n if (($sp = strstr($absurl, \"/\")) == null) {\n $urlparse['host'] = $absurl;\n $urlparse['file'] = \"/\";\n } else {\n $len = strlen($absurl) - strlen($sp);\n $urlparse['host'] = substr($absurl, 0, $len);\n $urlparse['file'] = $sp;\n }\n\n $urlparse['port'] = \"80\";\n } else {\n $len = strlen($absurl) - strlen($sp);\n\n $urlparse['host'] = substr($absurl, 0, $len);\n\n if (($sp2 = strstr($sp, \"/\")) == null) {\n $urlparse['port'] = substr($sp, 1);\n $urlparse['file'] = \"/\";\n } else {\n $len = null;\n\n $len = strlen($sp) - strlen($sp2) - 1;\n\n $urlparse['port'] = substr($sp, 1, $len);\n\n if (strcmp($sp2, substr($absurl, $urllen - 1)) == 0) {\n\n $urlparse['file'] = \"/\";\n } else {\n $urlparse['file'] = $sp2;\n }\n }\n }\n\n if (! eregi(\n \"([a-zA-Z0-9][a-zA-Z0-9_\\-\\.]*[a-zA-Z0-9]+\\.)([a-zA-Z0-9][a-zA-Z0-9_\\-]*[a-zA-Z0-9]+)(\\.cn$|\\.com$|\\.net$|\\.name$|\\.org$|\\.com\\.cn$|\\.com\\.ru$|\\.net\\.cn$|\\.org\\.cn$|\\.gov\\.cn$|\\.info$|\\.biz$|\\.tv$|\\.cc$)\",\n $urlparse['host'])) {\n return false;\n }\n\n if (! eregi(\n \"\\.([a-zA-Z0-9][a-zA-Z0-9_\\-]*[a-zA-Z0-9]+)(\\.cn$|\\.com$|\\.net$|\\.name$|\\.org$|\\.com\\.cn$|\\.com\\.ru$|\\.net\\.cn$|\\.org\\.cn$|\\.gov\\.cn$|\\.info$|\\.biz$|\\.tv$|\\.cc$)\",\n $urlparse['host'], $ee)) {\n return false;\n }\n\n $urlparse['domain'] = substr($ee[0], 1);\n\n if (! eregi(\"^[0-9]+$\", $urlparse['port'])) {\n return false;\n }\n\n return $urlparse;\n }", "protected function ResolveURL() {\n\n\n $Server= $this->GetOption('RequestContext')->SERVER;\n $URL= $Server['REQUEST_URI'];\n\n // expand relative URL\n if (strpos($URL, '://') === false) {\n $SSL= $this->IsSecure();\n $Scheme= $SSL ? 'https' : 'http';\n $Host= $this->GetHost();\n $Port= $this->GetPort();\n $Port= (!$SSL && $Port === 80) || ($SSL && $Port === 443)\n ? ''\n : ':'.$Port;\n $Relative= trim($URL, '/');\n $Relative= ($Relative) ? '/'.$Relative : '';\n $URL= $Scheme.'://'.$Host.$Port.$Relative;\n }\n\n // store URL\n $this->URL= $URL;\n\n // get URL components\n $Parts= parse_url($this->URL);\n if (!is_array($Parts)) {\n $this->Error('Request/ResolveURL: Bad URL ('.$this->URL.').');\n return;\n }\n $Parts += array(\n 'scheme' => 'http',\n 'host' => 'localhost',\n 'port' => $this->IsSecure() ? '443' : '80', // default ports\n 'path' =>'/',\n 'query' => '', // after the question mark (?)\n 'fragment'=> '', // after the hashmark (#)\n 'user' => '',\n 'pass' => '',\n );\n $this->UrlParts= $Parts;\n }", "protected function determineBaseUrl() {}", "function get_base_url() {\n $protocol = strtolower(substr($_SERVER[\"SERVER_PROTOCOL\"], 0, 5)) == 'https://' ? 'https://' : 'http://';\n\n /* returns /myproject/index.php */\n $path = $_SERVER['PHP_SELF'];\n /*\n * returns an array with:\n * Array (\n * [dirname] => /myproject/\n * [basename] => index.php\n * [extension] => php\n * [filename] => index\n * )\n */\n $path_parts = pathinfo($path);\n $directory = $path_parts['dirname'];\n /*\n * If we are visiting a page off the base URL, the dirname would just be a \"/\",\n * If it is, we would want to remove this\n */\n $directory = ($directory == \"/\") ? \"\" : $directory;\n\n /* Returns localhost OR mysite.com */\n $host = $_SERVER['HTTP_HOST'];\n\n /*\n * Returns:\n * http://localhost/mysite\n * OR\n * https://mysite.com\n */\n return $protocol . $host . $directory;\n}", "function GetMainBaseFromURL()\n{\n\t$url = (!empty($_SERVER['HTTPS'])) ? \"https://\".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : \"http://\".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];\n\n\t$chars = preg_split('//', $url, -1, PREG_SPLIT_NO_EMPTY);\n\t$slash = 3; // 3rd slash\n\t$i = 0;\n\tforeach($chars as $key => $char)\n\t{\n\t\tif($char == '/')\n\t\t{\n\t\t $j = $i++;\n\t\t}\n\t\n\t\tif($i == 3)\n\t\t{\n\t\t $pos = $key; break;\n\t\t}\n\t}\n\tif($_REQUEST['CFSystem']['url_friendly'])\n\t{\n\t\t$url = (!empty($_SERVER['HTTPS'])) ? \"https://\".$_SERVER['SERVER_NAME']: \"http://\".$_SERVER['SERVER_NAME'];\n\t\t$main_base = rtrim($url.'/'.basename($_REQUEST['CFSystem']['baseurl']),'/');\n\t}\n\telse\n\t{\n\t\t$main_base = substr($url, 0, $pos);\n\t}\n\treturn $main_base.'/';\t\n}", "public function getBaseUrl($parts = \"\") {\n\t\treturn UrlHelper::getBaseUrl($parts);\n\t}", "private function parseURL()\n {\n $request = trim($_SERVER['REQUEST_URI'], '/');\n\n\n //If our request has question mark, then we got parameters\n if( strpos($request, '?') )\n {\n //Removing all GET parameters from the request\n $request = substr($request, 0, strpos($request, '?'));\n }\n\n if (!empty($request)) {\n\n $url = explode('/', $request); //split everything by slashes\n // var_dump($url);\n\n if ($url) {\n //The pattern of the url is ==> localhost/controller/action\n //controller is the first element of the url \n //(basically we're checking for the files with Controller as the \n //last part of their name, in the CONTROLLER directory, \n //for instance, we have a file with name imageController.php in the CONTROLLER directory)\n $this->controller = $url[0] . 'Controller';\n //action is the second element of the url and if it is set we're using it,\n //otherwise we use index page\n $this->action = isset($url[1]) ? $url[1] : $this->action;\n }\n }\n }", "public function extractUrl($base, $input)\n {\n if (strpos($input, 'http://') === false) {\n return str_replace(\"{id}\", $input, $base);\n }\n\n return $input;\n }", "private static function calculatePaths()\n\t{\n\n\t\t//get the raw URI path depth and create relative path to root\n\t\tself::$baseRelativePath = \"\";\n\t\tfor( $x=0; $x<self::$URIRawDepth; $x++ )\n\t\t\tself::$baseRelativePath .= \"../\";\n\n\t\t//create base URL\n//TODO - need to validate HTTP_HOST, can be spoofed by client\n//TODO - need to correctly handle $_SERVER['SERVER_PORT'] VARIANTS http !== 80 || https !== 443, put port\n//TODO - check for multiple consecutive slashes in path (should be fixed for end of path)??\n\t\t$protocol = ( isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] !== 'off' ) ? \"https\" : \"http\";\n\t\t$path = parse_url( $_SERVER['SCRIPT_NAME'], PHP_URL_PATH );\n\t\t$path = substr( $path, 0, strrpos( $path, \"/\" )+1 );\n\t\tself::$baseURL = \"{$protocol}://{$_SERVER['HTTP_HOST']}{$path}\";\n\t}", "function base_path($uri = '', $protocol = NULL)\n\t{\n\t\treturn get_instance()->config->base_path($uri, $protocol);\n\t}", "function url(string $path = '')\n{\n // server protocol\n $protocol = empty($_SERVER['HTTPS']) ? 'http' : 'https';\n\n // domain name\n $domain = $_SERVER['SERVER_NAME'];\n\n // server port\n $port = $_SERVER['SERVER_PORT'];\n $disp_port = ($protocol == 'http' && $port == 80 || $protocol == 'https' && $port == 443) ? '' : \":$port\";\n\n // put em all together to get the complete base URL\n return \"${protocol}://${domain}${disp_port}\" . (!ROOT_URL ? '' : DS . ROOT_URL) . ($path && $path[0] !== '/' ? '/' : '') . ($path ? htmlspecialchars($path) : '');\n}", "function _http_build_url($parts) { \n return implode(\"\", array(\n isset($parts['scheme']) ? $parts['scheme'] . '://' : '',\n isset($parts['user']) ? $parts['user'] : '',\n isset($parts['pass']) ? ':' . $parts['pass'] : '',\n (isset($parts['user']) || isset($parts['pass'])) ? \"@\" : '',\n isset($parts['host']) ? $parts['host'] : '',\n isset($parts['port']) ? ':' . intval($parts['port']) : '',\n isset($parts['path']) ? $parts['path'] : '',\n isset($parts['query']) ? '?' . $parts['query'] : '',\n isset($parts['fragment']) ? '#' . $parts['fragment'] : ''\n ));\n}", "function base_url(){\n $url = BASE_URL;\n return $url;\n }", "public static function parse($URI, array $baseURI = array('scheme' => '', 'path' => '', 'query' => array()));", "private function course_bank_get_hosturl() {\n\n if (isset($this->hosturl)) {\n return $this->hosturl;\n }\n\n // Defaults.\n $scheme = 'http://';\n $host = rtrim(trim($this->get_config()->url), '/');\n $port = '';\n $path = '';\n\n // Parse URL from the config.\n $parsedurl = parse_url($this->get_config()->url);\n\n // Get scheme: http or https.\n if (isset($parsedurl['scheme'])) {\n $scheme = $parsedurl['scheme'] . '://';\n }\n // Get host.\n if (isset($parsedurl['host'])) {\n $host = $parsedurl['host'];\n }\n // Get port.\n if (isset($parsedurl['port'])) {\n $port = ':' . $parsedurl['port'];\n }\n // Get path only if host is set.\n if (isset($parsedurl['path']) and isset($parsedurl['host'])) {\n $path = $parsedurl['path'];\n }\n\n $this->hosturl = $scheme . $host . $port . $path;\n\n return $this->hosturl;\n }", "private function getBaseURL() {\n $pageURL = 'http';\n if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') {\n $pageURL .= 's';\n }\n $pageURL .= '://';\n if ($_SERVER['SERVER_PORT'] !== '80') {\n $pageURL .= $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];\n } else {\n $pageURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\n }\n $splitted = explode('?', $pageURL);\n if (substr($splitted[0], -1) === '/') {\n return $splitted[0];\n }\n\n return $splitted[0] . '/';\n }", "private function ParseUrl()\n {\n $url = explode('/', trim(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/'), 3);\n\n if (isset($url[0]) AND $url[0] != '') {\n $this->_controller = $url[0];\n }\n if (isset($url[1]) AND $url[1] != '') {\n $this->_action = $url[1];\n }\n if (isset($url[2]) AND $url[2] != '') {\n $this->_params = explode('/', $url[2]);\n }\n }", "protected function _getBaseuri()\n {\n if (!$this->_baseUri instanceof UriHttp) {\n $simplexml = $this->readResource();\n $headBase = new \\Diggin\\Scraper\\Helper\\Simplexml\\HeadBaseHref($simplexml);\n $headBase->setOption(array('baseUrl' => $this->_baseUri));\n $this->_baseUri = new UriHttp($headBase->getBaseUrl());\n }\n\n return $this->_baseUri;\n }", "function getBaseUrl() {\n if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')\n $link = \"https\";\n else\n $link = \"http\";\n\n // Here append the common URL characters.\n $link .= \"://\";\n\n // Append the host(domain name, ip) to the URL.\n $link .= $_SERVER['HTTP_HOST'];\n\n // Append the requested resource location to the URL\n $link .= $_SERVER['REQUEST_URI'];\n\n // Print the link\n echo substr($link, 0, strrpos($link, '/') + 1);\n}", "function getBaseUrl(){\n return $_SERVER['SERVER_NAME'];\n}", "function get_base_url_api($protocol=true)\n{\n return Request::GetBaseUrlAPI($protocol);\n}", "function base_url(){\n return BASE_URL;\n }", "function rel2abs($rel, $base) {\n if (parse_url($rel, PHP_URL_SCHEME) != '')\n return $rel;\n if ($rel[0] == '#' || $rel[0] == '?')\n return $base . $rel;\n extract(parse_url($base));\n\t\t\n\t\tif(!isset($path))\n\t\t\treturn;\n\t\t\n $path = preg_replace('#/[^/]*$#', '', $path);\n if ($rel[0] == '/')\n $path = '';\n $abs = \"$host$path/$rel\";\n $re = array('#(/\\.?/)#', '#/(?!\\.\\.)[^/]+/\\.\\./#');\n for ($n = 1; $n > 0; $abs = preg_replace($re, '/', $abs, -1, $n)) {\n \n }\n $abs = str_replace(\"../\", \"\", $abs);\n return $scheme . '://' . $abs;\n }", "public function get_base_url()\r\n\t\t{\r\n\t\t\t$url = \"http\";\r\n \t\t\tif ( isset( $_SERVER[ 'HTTPS' ] ) && $_SERVER[ 'HTTPS' ] == \"on\" ) $url .= \"s\";\r\n\t\t\t$url .= \"://\";\r\n \t\t\tif ( $_SERVER[ 'SERVER_PORT' ] != \"80\" )\r\n\t\t\t\t$url .= $_SERVER[ 'SERVER_NAME' ]. \":\" . $_SERVER[ 'SERVER_PORT' ] . $_SERVER[ 'REQUEST_URI' ];\r\n\t\t\telse\r\n\t\t\t\t$url .= $_SERVER[ 'SERVER_NAME' ] . \"/\";\r\n\t\t\t\r\n\t\t\treturn $url . self::HOME_DIR;\r\n\t\t}", "private function getUri(){\n return $this->uri = parse_url($_SERVER['REQUEST_URI']);\n }", "function build_url($base,$url) {\n $base_parts=url_parts($base);\n\n # https://code.google.com/p/add-mvc-framework/issues/detail?id=81\n if (preg_match('/^javascript\\:/',$url)) {\n return $url;\n }\n\n if ($url[0]==='/') {\n return rtrim($base_parts['protocol_domain'],'/').$url;\n }\n if ($url[0]==='?') {\n if (!$base_parts['pathname'])\n $base_parts['pathname']='/';\n return $base_parts['protocol_domain'].$base_parts['pathname'].$url;\n }\n if ($url[0]==='#') {\n\n }\n if (preg_match('/^https?\\:\\/+/',$url)) {\n return $url;\n }\n\n return rtrim($base_parts['protocol_domain'],\"/\").$base_parts['path'].$url;\n}", "public static function splitURL($url) {\n // Protokoll der URL hinzuf�gen (da ansonsten parse_url nicht klarkommt)\n if (!preg_match(\"#^[a-z]+://# i\", $url))\n $url = \"http://\" . $url;\n\n $parts = @parse_url($url);\n\n if (!isset($parts)):\n return null;\n endif;\n\n $protocol = $parts[\"scheme\"] . \"://\";\n $host = (isset($parts[\"host\"]) ? $parts[\"host\"] : \"\");\n $path = (isset($parts[\"path\"]) ? $parts[\"path\"] : \"\");\n $query = (isset($parts[\"query\"]) ? \"?\" . $parts[\"query\"] : \"\");\n $auth_username = (isset($parts[\"user\"]) ? $parts[\"user\"] : \"\");\n $auth_password = (isset($parts[\"pass\"]) ? $parts[\"pass\"] : \"\");\n $port = (isset($parts[\"port\"]) ? $parts[\"port\"] : \"\");\n\n // File\n preg_match(\"#^(.*/)([^/]*)$#\", $path, $match); // Alles ab dem letzten \"/\"\n if (isset($match[0])) {\n $file = trim($match[2]);\n $path = trim($match[1]);\n } else {\n $file = \"\";\n }\n\n // Der Domainname aus dem Host\n // Host: www.foo.com -> Domain: foo.com\n $parts = @explode(\".\", $host);\n if (count($parts) <= 2) {\n $domain = $host;\n } else if (preg_match(\"#^[0-9]+$#\", str_replace(\".\", \"\", $host))) { // IP\n $domain = $host;\n } else {\n $pos = strpos($host, \".\");\n $domain = substr($host, $pos + 1);\n }\n\n // DEFAULT VALUES f�r protocol, path, port etc. (wenn noch nicht gesetzt)\n // Wenn Protokoll leer -> Protokoll ist \"http://\"\n if ($protocol == \"\"):\n $protocol = \"http://\";\n endif;\n\n // Wenn Port leer -> Port setzen auf 80 or 443\n // (abh�ngig vom Protokoll)\n if ($port == \"\") {\n if (strtolower($protocol) == \"http://\")\n $port = 80;\n if (strtolower($protocol) == \"https://\")\n $port = 443;\n }\n\n // Wenn Pfad leet -> Pfad ist \"/\"\n if ($path == \"\"):\n $path = \"/\";\n endif;\n\n // Rockgabe-Array\n $url_parts[\"protocol\"] = $protocol;\n $url_parts[\"host\"] = $host;\n $url_parts[\"path\"] = $path;\n $url_parts[\"file\"] = $file;\n $url_parts[\"query\"] = $query;\n $url_parts[\"domain\"] = $domain;\n $url_parts[\"port\"] = $port;\n\n $url_parts[\"auth_username\"] = $auth_username;\n $url_parts[\"auth_password\"] = $auth_password;\n\n return $url_parts;\n }", "public static function baseurl() {\n return stripos($_SERVER['SERVER_PROTOCOL'],'https') === true ? 'https://' : 'http://' . $_SERVER['HTTP_HOST'] . \"/Gym/\";\n }", "function rel2abs($rel, $base) {\n if (empty($rel)) $rel = \".\";\n if (parse_url($rel, PHP_URL_SCHEME) != \"\" || strpos($rel, \"//\") === 0) return $rel; //Return if already an absolute URL\n if ($rel[0] == \"#\" || $rel[0] == \"?\") return $base.$rel; //Queries and anchors\n extract(parse_url($base)); //Parse base URL and convert to local variables: $scheme, $host, $path\n $path = isset($path) ? preg_replace('#/[^/]*$#', \"\", $path) : \"/\"; //Remove non-directory element from path\n if ($rel[0] == '/') $path = \"\"; //Destroy path if relative url points to root\n $port = isset($port) && $port != 80 ? \":\" . $port : \"\";\n $auth = \"\";\n if (isset($user)) {\n $auth = $user;\n if (isset($pass)) {\n $auth .= \":\" . $pass;\n }\n $auth .= \"@\";\n }\n $abs = \"$auth$host$path$port/$rel\"; //Dirty absolute URL\n for ($n = 1; $n > 0; $abs = preg_replace(array(\"#(/\\.?/)#\", \"#/(?!\\.\\.)[^/]+/\\.\\./#\"), \"/\", $abs, -1, $n)) {} //Replace '//' or '/./' or '/foo/../' with '/'\n return $scheme . \"://\" . $abs; //Absolute URL is ready.\n}", "function brv_url()\n{\n return brv_scheme() . brv_host();\n}", "function router_base_url($with_scheme = false)\n{\n static $url;\n if (!is_null($url)) {\n return $with_scheme ? router_scheme() . $url : $url;\n }\n\n $domain = request_host();\n $dir = superglobal('server')['SCRIPT_NAME'];\n if (router_use_rewriting()) {\n $dir = dirname($dir);\n }\n if (strpos($dir, '/') !== 0) {\n $dir = '/'.$dir;\n }\n if (substr($dir, -1) !=='/') {\n $dir .= '/';\n }\n $url = '//'.$domain.$dir;\n return $with_scheme ? router_scheme() . $url : $url;\n}", "public function base($path = null)\n\t{\n\t\treturn ($this->baseUrl ? rtrim($this->baseUrl, '/' ).'/' : '/').($path ? trim($path, '/') : '');\n\t}", "public function baseUrl($parts = \"\") {\n return UrlHelper::getBaseUrl($parts);\n }", "function url_parser($url) {\n$url = preg_replace('/(\\/{2,})/','//',$url);\n\n$parse_url = parse_url($url);\n\nif(empty($parse_url[\"scheme\"])) {\n $parse_url[\"scheme\"] = \"http\";\n}\nif(empty($parse_url[\"host\"]) && !empty($parse_url[\"path\"])) {\n // Strip slash from the beginning of path\n $parse_url[\"host\"] = ltrim($parse_url[\"path\"], '\\/');\n $parse_url[\"path\"] = \"\";\n} \n\n$return_url = \"\";\n\n// Check if scheme is correct\nif(!in_array($parse_url[\"scheme\"], array(\"http\", \"https\", \"gopher\"))) {\n $return_url .= 'http'.'://';\n} else {\n $return_url .= $parse_url[\"scheme\"].'://';\n}\n\n// Check if the right amount of \"www\" is set.\n$explode_host = explode(\".\", $parse_url[\"host\"]);\n\n// Remove empty entries\n$explode_host = array_filter($explode_host);\n// And reassign indexes\n$explode_host = array_values($explode_host);\n\n// Contains subdomain\nif(count($explode_host) > 2) {\n // Check if subdomain only contains the letter w(then not any other subdomain).\n if(substr_count($explode_host[0], 'w') == strlen($explode_host[0])) {\n // Replace with \"www\" to avoid \"ww\" or \"wwww\", etc.\n $explode_host[0] = \"www\";\n\n }\n}\n$return_url .= implode(\".\",$explode_host);\n\nif(!empty($parse_url[\"port\"])) {\n $return_url .= \":\".$parse_url[\"port\"];\n}\nif(!empty($parse_url[\"path\"])) {\n $return_url .= $parse_url[\"path\"];\n}\nif(!empty($parse_url[\"query\"])) {\n $return_url .= '?'.$parse_url[\"query\"];\n}\nif(!empty($parse_url[\"fragment\"])) {\n $return_url .= '#'.$parse_url[\"fragment\"];\n}\n\n\nreturn $return_url;\n}", "function set_base_url()\n{\n $s = &$_SERVER;\n $ssl = (!empty($s['HTTPS']) && $s['HTTPS'] == 'on') ? true : false;\n $sp = strtolower($s['SERVER_PROTOCOL']);\n $protocol = substr($sp, 0, strpos($sp, '/')) . (($ssl) ? 's' : '');\n $port = $s['SERVER_PORT'];\n $port = ((!$ssl && $port == '80') || ($ssl && $port == '443')) ? '' : ':' . $port;\n $host = isset($s['HTTP_X_FORWARDED_HOST']) ? $s['HTTP_X_FORWARDED_HOST'] : isset($s['HTTP_HOST']) ? $s['HTTP_HOST'] : $s['SERVER_NAME'];\n $uri = $protocol . '://' . $host . $port . dirname($_SERVER['SCRIPT_NAME']);\n define('BASE_URL', rtrim($uri, '/') . '/');\n}", "function return_base_URL(){\n\t$current_url = \"http://\" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\n\t$current_url = explode('/', $current_url);\n\tunset($current_url[count($current_url) - 1]);\n\t$current_url = implode('/', $current_url);\n\n\treturn $current_url . '/';\n}", "public function parseURL()\n {\n if (isset($_GET['url'])) {\n $url = rtrim($_GET['url'], '/'); //menghapus tanda / di akhir url\n $url = filter_var($url, FILTER_SANITIZE_URL);//memfilter url dari karakter aneh (hack)\n $url = explode('/', $url); //memecah url yang diinput dengan delimiter / dan menjadikannya array\n return $url;\n }\n }", "public function base_url() {\n\t\t$protocol = ( ! empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? 'https' : 'http';\n\t\t$host = $_SERVER['HTTP_HOST'];\n\t\t$script = dirname($_SERVER['SCRIPT_NAME']);\n\t\treturn $protocol . '://' . $host . $script . '/';\n\t}", "public function initialize(){ \n $protocol = 'http';\n $host = 'localhost';\n $path = '';\n $url = '';\n \n if (isset($_SERVER['HTTP_HOST'])) {\n $protocol = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https' : 'http';\n $host = $_SERVER['HTTP_HOST'];\n $path = str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);\n $url = $protocol.'://'.$host.$path;\n }\n \n $url = trim($url, '/');\n\n $request = $_SERVER[\"REQUEST_URI\"];\n $request = trim($request, '/'); \n $request = explode('?', $request); \n \n // Remove the folder segments from the uri if the application is warking in a subfolder.\n $parts = explode('/', $url);\n $this->segments = explode('/', $request[0]);\n foreach($this->segments as $key => $segment){\n if(in_array($segment, $parts)){\n unset($this->segments[$key]);\n }\n else{\n $this->segments[$key] = $this->sanitize($segment);\n }\n }\n // Re-index the segments\n $this->segments = array_values($this->segments);\n \n $this->url = $protocol.'://'.$host.'/'.$_SERVER[\"REQUEST_URI\"];\n \n return $this->url;\n }", "function getBaseUrl()\n{\n $port = ':' . $_SERVER['SERVER_PORT'];\n if (($_SERVER['REQUEST_SCHEME']=='http' && $_SERVER['SERVER_PORT']=='80')\n || ($_SERVER['REQUEST_SCHEME']=='https' && $_SERVER['SERVER_PORT']=='443')\n ) {\n $port = '';\n }\n $path = $_SERVER['SCRIPT_NAME'];\n if (strrpos($path,'index.php')==strlen($path)-9) {\n $path = substr($path,0,-9);\n }\n $baseUrl = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['SERVER_NAME'] . $port . $path;\n return $baseUrl;\n}", "private function base_uri( $localizable = TRUE ) {\r\n\t\treturn implode ( '/', array (\r\n\t\t\t\t$this->host,\r\n\t\t\t\tself::API_VERSION \r\n\t\t) );\r\n\t}", "function _parse_request_uri($path, array $headers)\n{\n $hostKey = array_filter(array_keys($headers), function ($k) {\n return strtolower($k) === 'host';\n });\n\n // If no host is found, then a full URI cannot be constructed.\n if (!$hostKey) {\n return $path;\n }\n\n $host = $headers[reset($hostKey)][0];\n $scheme = substr($host, -4) === ':443' ? 'https' : 'http';\n\n return $scheme . '://' . $host . '/' . ltrim($path, '/');\n}", "public function splitUrl() {\n if (isset($_GET['url'])) {\n\n // split URL\n $url = trim($_GET['url'], '/');\n $url = filter_var($url, FILTER_SANITIZE_STRING);\n $url = explode('/', $url);\n\n // parse custom urls\n $url = $this->parseRoutes($url);\n\n if ($this->app->language->enabled) {\n // set lang key\n $this->lang_key = isset($url[0]) ? $url[0] : null;\n // set controller\n $this->url_controller = isset($url[1]) ? $url[1] : null;\n // and action\n $this->url_action = isset($url[2]) ? $url[2] : null;\n\n // store URL parts\n $this->url_parts = array_values($url);\n\n // remove controller and action from URL parts\n unset($url[0], $url[1], $url[2]);\n } else {\n // set controller\n $this->url_controller = isset($url[0]) ? $url[0] : null;\n // and action\n $this->url_action = isset($url[1]) ? $url[1] : null;\n\n // store URL parts\n $this->url_parts = array_values($url);\n\n // remove controller and action from URL parts\n unset($url[0], $url[1]);\n }\n\n // store action params\n $this->action_params = array_values($url);\n\n }\n }", "function rel2abs($rel, $base)\n{\n if (parse_url($rel, PHP_URL_SCHEME) != '') return $rel;\n\n /* Url begins with // */\n if($rel[0] == '/' && $rel[1] == '/'){\n return 'https:' . $rel;\n }\n\n /* queries and anchors */\n if ($rel[0]=='#' || $rel[0]=='?') return $base.$rel;\n\n /* parse base URL and convert to local variables:\n $scheme, $host, $path */\n extract(parse_url($base));\n\n /* remove non-directory element from path */\n $path = preg_replace('#/[^/]*$#', '', $path);\n\n /* destroy path if relative url points to root */\n if ($rel[0] == '/') $path = '';\n\n /* dirty absolute URL */\n $abs = \"$host$path/$rel\";\n\n /* replace '//' or '/./' or '/foo/../' with '/' */\n $re = array('#(/\\.?/)#', '#/(?!\\.\\.)[^/]+/\\.\\./#');\n for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {}\n\n /* absolute URL is ready! */\n return $scheme.'://'.$abs;\n}", "function website_baseurl() {\n if ($_SERVER['SERVER_NAME'] === \"localhost\") {\n $base = \"http://localhost/websites/bop-trips/\";\n return $base;\n } else {\n $base = \"http://boptrips.com/\";\n return $base;\n }\n}", "public function get_http_url()\n {\n $parts = parse_url($this->http_url);\n\n $port = @$parts['port'];\n $scheme = $parts['scheme'];\n $host = $parts['host'];\n $path = @$parts['path'];\n\n $port or $port = ($scheme == 'https') ? '443' : '80';\n\n if (($scheme == 'https' && $port != '443')\n || ($scheme == 'http' && $port != '80')) {\n $host = \"$host:$port\";\n }\n\n return \"$scheme://$host$path\";\n }", "function base_url() {\n return Micro::get(Config::class)->get('app.base_url');\n }", "function basedir($link)\n{\n$link = str_replace(\"http://\", null, $link);\nif(isstr(\"/\", $link)) {\n$link = explode(\"/\", $link);\n$result = $link[0];\n} else { $result = $link; }\nreturn\"http://\".$result;\n}", "private static function loadUrl(){\n\n $uri = $_SERVER['REQUEST_URI'];\n\n if (ENCRYPTURL == '1')\n $uri = CR::decrypt($uri);\n\n BASEDIR == '/' || $uri = str_replace(BASEDIR,'', $uri);\n $uri = explode('/', $uri);\n\n array_walk($uri, function(&$item){\n strpos($item, '?') == false ||\n $item = substr($item, 0, strpos($item, '?'));\n });\n\n return $uri;\n }", "public function getBaseUri()\n {\n return $this->baseUri;\n }", "function getBaseUrl()\n{\n $doc_root_folders = utf8_explode(\"/\", $_SERVER['DOCUMENT_ROOT']);\n $cwd__folders = utf8_explode(\"/\", getcwd());\n //the difference between those is the path from doc root to the folder where\n //all files for this URI reside\n $path_from_doc_root = implode(\"/\", array_diff($cwd__folders, $doc_root_folders));\n return $_SERVER['HTTP_HOST'].'/'.$path_from_doc_root;\n}", "function parseUrl($url) {\n $url_parts = parse_url($url);\n\n if (!isset($url_parts['scheme'])) {\n $url_parts = parse_url('http://' . $url);\n }\n\n return $url_parts;\n}", "public static function getBaseURL(){\n return self::$baseURL;\n }", "function setBaseDomain($full_url) {\n $urlParts = parse_url($full_url);\n //add case for localhost\n // print_r($urlParts);\n $host=$urlParts['host'];\n if($host==\"localhost\") {\n \n $this->base_domain = $host;\n }\n else {\n $hostParts = explode('.', $urlParts['host']);\n $hostParts = array_reverse($hostParts);\n // $host = $hostParts[1] . '.' . $hostParts[0]; with final extension\n if (($hostParts[1])!== null) {\n $host = $hostParts[1];\n $this->base_domain = $host;\n }\n }\n\n }", "private function base_url( $path = null ) {\n\t\t$parts = wp_parse_url( get_option( 'home' ) );\n\t\t$base_url = trailingslashit( $parts['scheme'] . '://' . $parts['host'] );\n\n\t\tif ( ! is_null( $path ) ) {\n\t\t\t$base_url .= ltrim( $path, '/' );\n\t\t}\n\n\t\treturn $base_url;\n\t}", "function get_base()\n\t{\n\t\t$site_url = get_site_option('siteurl');\n\t\t$base = trim(preg_replace('#https?://[^/]+#ui', '', $site_url), '/');\n\n\t\t// @since 1.3.0 - guess min dir to check for any dir that we have to\n\t\t// remove from the base\n\t\t$this->_guess_min_dir();\n\n\t\t$this->base = !empty($this->remove_from_base)\n\t\t\t? preg_replace('#^' . $this->remove_from_base . '/?#ui', '', $base, 1)\n\t\t\t: $base;\n\t}", "function get_base_domain_address($page_base)\n {\n for ($pointer=8; $pointer<strlen($page_base); $pointer++)\n {\n if (substr($page_base, $pointer, 1)==\"/\")\n {\n $domain_base=substr($page_base, 0, $pointer);\n break;\n }\n }\n\n $last_two_characters = substr($page_base, strlen($page_base)-2, 2);\n if($last_two_characters==\"//\")\n $page_base = substr($page_base, 0, strlen($page_base)-1);\n\n return $domain_base;\n }", "public function get_normalized_http_url() {\n $parts = parse_url($this->http_url);\n\n $port = @$parts['port'];\n $scheme = $parts['scheme'];\n $host = $parts['host'];\n $path = @$parts['path'];\n\n $port or $port = ($scheme == 'https') ? '443' : '80';\n\n if (($scheme == 'https' && $port != '443')\n || ($scheme == 'http' && $port != '80')) {\n $host = \"$host:$port\";\n }\n return \"$scheme://$host$path\";\n }", "public function getBaseUrl();", "public function getBaseUrl();", "public function getBaseUrl();", "public function getBaseUrl();", "public function getBaseUrl();", "public function determineBaseUrl()\n {\n // why this works at all :)\n return dirname($_SERVER['SCRIPT_NAME']);\n }", "public function parseUrl($url)\r\n\t{\r\n\t\tpreg_match('`^([a-z0-9]+://)?([^/:]+)(/.*$)?`i', $url, $out);\r\n\r\n\t\t$components = parse_url($url);\r\n\t\t$scheme = $components['scheme'];\r\n\t\t$host = $components['host'];\r\n\t\t$path = $components['path'];\r\n\t\tif ($scheme == 'http')\r\n\t\t{\r\n\t\t\t$this->is_ssl = false;\r\n\t\t\t$this->port = 80;\r\n\t\t}\r\n\t\tif ($scheme == 'https')\r\n\t\t{\r\n\t\t\t$this->is_ssl = true;\r\n\t\t\t$this->port = 443;\r\n\t\t}\r\n\t\t$this->host = $host;\r\n\t\t$this->path = $path;\r\n\t}", "function parseURL()\n{\n if (isset($_GET['url'])) {\n $url = rtrim($_GET['url'], '/');\n $url = filter_var($url, FILTER_SANITIZE_URL);\n $url = explode('/', $url);\n return $url;\n }\n}", "function api_baseurl() {\n if ($_SERVER['SERVER_NAME'] === \"localhost\") {\n $base = \"http://localhost/websites/bop-trips-api/\";\n return $base;\n } else {\n $base = \"http://boptrips.com/api/\";\n return $base;\n }\n}", "public function base_url()\n\t{\n\t\treturn URL::base();\n\t}", "function build_url($parts)\n{\n return ( isset($parts['scheme']) ? \"{$parts['scheme']}:\" : '' ) .\n ( ( isset($parts['user']) || isset($parts['host']) ) ? '//' : '' ) .\n ( isset($parts['user']) ? \"{$parts['user']}\" : '' ) .\n ( isset($parts['pass']) ? \":{$parts['pass']}\" : '' ) .\n ( isset($parts['user']) ? '@' : '' ) .\n ( isset($parts['host']) ? \"{$parts['host']}\" : '' ) .\n ( isset($parts['port']) ? \":{$parts['port']}\" : '' ) .\n ( isset($parts['path']) ? \"{$parts['path']}\" : '' ) .\n ( isset($parts['query']) ? \"?{$parts['query']}\" : '' ) .\n ( isset($parts['fragment']) ? \"#{$parts['fragment']}\" : '' );\n}", "function get_base_url() {\n return $this->base_url;\n }", "public function getBaseURL() {\n $url = $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://';\n \n $url .= $_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']);\n \n return $url;\n }", "public function getSchemeAndHttpHost()\n {\n return $this->getScheme() . '://' . $this->getHttpHost();\n }", "function base_url($uri=null){\n\t$base_url = 'http://localhost/KoperasiSimpanPinjam/';\n\tif($uri == null){\n\t\treturn $base_url;\n\t}else{\n\t\treturn $base_url.$uri;\n\t}\n}", "function getpath() {\n\t\n\t$parseurl = parse_url(\"http://\".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);\n\t$path = explode('/', $parseurl['path']); \n\n\treturn $path;\n}", "function getUri()\r\n{\r\n\treturn explode(\"/\", parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));\r\n}", "public function getURLBase($url)\n\t{\n\t\tif(strpos($url, 'http') !== false)\n\t\t{\n\t\t\t$urlBits = explode('//', $url);\n\t\t\t$proto = $urlBits[0] . '//';\n\t\t\t$base = (strpos($urlBits[1], '/')) ? substr($urlBits[1], 0, strrpos($urlBits[1], '/')) : $urlBits[1];\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$proto = '';\n\t\t\t$base = (strpos($url, '/')) ? substr($url, 0, strpos($url, '/')) : $url;\n\t\t}\n\t\t\n\t\treturn $proto . $base . '/';\n\t}", "function _fetch_uri_string()\n\t{\n\t\tif (strtoupper($this->config->item('uri_protocol')) == 'AUTO')\n\t\t{\n\t\t\t// If the URL has a question mark then it's simplest to just\n\t\t\t// build the URI string from the zero index of the $_GET array.\n\t\t\t// This avoids having to deal with $_SERVER variables, which\n\t\t\t// can be unreliable in some environments\n\t\t\tif (is_array($_GET) && count($_GET) == 1 && trim(key($_GET), '/') != '')\n\t\t\t{\n\t\t\t\t$this->uri_string = key($_GET);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Is there a PATH_INFO variable?\n\t\t\t// Note: some servers seem to have trouble with getenv() so we'll test it two ways\n\t\t\t$path = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO');\n\t\t\tif (trim($path, '/') != '' && $path != \"/\".SELF)\n\t\t\t{\n\t\t\t\t$this->uri_string = $path;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// No PATH_INFO?... What about QUERY_STRING?\n\t\t\t$path = (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING');\n\t\t\tif (trim($path, '/') != '')\n\t\t\t{\n\t\t\t\t$this->uri_string = $path;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// No QUERY_STRING?... Maybe the ORIG_PATH_INFO variable exists?\n\t\t\t$path = (isset($_SERVER['ORIG_PATH_INFO'])) ? $_SERVER['ORIG_PATH_INFO'] : @getenv('ORIG_PATH_INFO');\n\t\t\tif (trim($path, '/') != '' && $path != \"/\".SELF)\n\t\t\t{\n\t\t\t\t// remove path and script information so we have good URI data\n\t\t\t\t$this->uri_string = str_replace($_SERVER['SCRIPT_NAME'], '', $path);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// We've exhausted all our options...\n\t\t\t$this->uri_string = '';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$uri = strtoupper($this->config->item('uri_protocol'));\n\n\t\t\tif ($uri == 'REQUEST_URI')\n\t\t\t{\n\t\t\t\t$this->uri_string = $this->_parse_request_uri();\n\t\t\t\treturn;\n\t\t\t}\n\n elseif($uri == 'PATH_INFO'){\n if(@getenv($uri)){\n $this->uri_string = (isset($_SERVER[$uri])) ? $_SERVER[$uri] : @getenv($uri);\n }else{\n $this->uri_string = $this->_parse_pathinfo_uri();\n }\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$this->uri_string = (isset($_SERVER[$uri])) ? $_SERVER[$uri] : @getenv($uri);\n\t\t}\n\n\t\t// If the URI contains only a slash we'll kill it\n\t\tif ($this->uri_string == '/')\n\t\t{\n\t\t\t$this->uri_string = '';\n\t\t}\n\t}", "public function parseURI() {\n $uri = explode(\"/\", $this->getRequestURI());\n $rootDIR = array_search($this->getProjectDIR(), $uri);\n\n return array_splice($uri, ($rootDIR+1));\n }", "function parse() {\n static $_url;\n static $COMPONENTS;\n\t\n\t//flush static\n\tif($_url != $this->url) {\n\t\t$_url = $this->url;\n\t\t$_CMPNNTS = $this->isValid(1);\n\t\t$COMPONENTS = array(\n\t\t\tprotocol => $_CMPNNTS[2],\n\t\t\tuser => $_CMPNNTS[4],\n\t\t\tpassword => $_CMPNNTS[5],\n\t\t\tsub_domain => ereg_replace('\\.$', '', $_CMPNNTS[6]),\n\t\t\tSUB_DOMAINS => ($_CMPNNTS[6])\n\t\t\t\t?explode('.', ereg_replace('\\.$', '', $_CMPNNTS[6])):NULL,\n\t\t\tdomain => $_CMPNNTS[9],\n\t\t\ttld => $_CMPNNTS[10],\n\t\t\tdomain_name => ($_CMPNNTS[9] && $_CMPNNTS[10])?\n\t\t\t\t$_CMPNNTS[9] . \".\" . $_CMPNNTS[10]:NULL,\n\t\t\tport => $_CMPNNTS[12],\n\t\t\thost => ($_CMPNNTS[6]\n\t\t\t\t&& $_CMPNNTS[9]\n\t\t\t\t&& $_CMPNNTS[10])?$_CMPNNTS[6]\n\t\t\t\t\t.$_CMPNNTS[9] . \".\"\n\t\t\t\t\t.$_CMPNNTS[10]:NULL,\n\t\t\tpath => $_CMPNNTS[13],\n\t\t\tPATH =>($_CMPNNTS[13])?\n\t\t\t\texplode('/', ereg_replace('^/(.*)/$', '\\\\1', $_CMPNNTS[13])):NULL,\n\t\t\tquery => $_CMPNNTS[15]\n\t\t\t);\n\t\t}\n\treturn $COMPONENTS;\n\t}", "public function getBaseUrl() {}" ]
[ "0.6720313", "0.67132604", "0.65448284", "0.64820665", "0.64583147", "0.64285654", "0.6420429", "0.64189893", "0.6401401", "0.638202", "0.6377883", "0.6372038", "0.63403517", "0.6315363", "0.63018614", "0.6268825", "0.62493044", "0.62312037", "0.6215672", "0.620505", "0.61900175", "0.61667025", "0.61517864", "0.6145427", "0.61407727", "0.6119907", "0.6097842", "0.6061528", "0.6042033", "0.6026058", "0.6004483", "0.60037315", "0.60001045", "0.597788", "0.5976489", "0.5963576", "0.59504366", "0.5946987", "0.5907624", "0.5890311", "0.58897215", "0.5877579", "0.5873612", "0.5856992", "0.58553517", "0.58503777", "0.58296376", "0.5828865", "0.58239", "0.5818113", "0.5814387", "0.5801366", "0.5794717", "0.5792231", "0.5791649", "0.579052", "0.5788956", "0.5785076", "0.57764024", "0.57665664", "0.5753872", "0.5737218", "0.5734264", "0.57129455", "0.57043153", "0.57027733", "0.56990314", "0.569793", "0.5692596", "0.5691132", "0.56893", "0.56804436", "0.5679074", "0.56782734", "0.56728286", "0.56714493", "0.5670692", "0.5666128", "0.56562275", "0.56556314", "0.56556314", "0.56556314", "0.56556314", "0.56556314", "0.564549", "0.5636356", "0.56322706", "0.5631994", "0.5623453", "0.5621223", "0.5621007", "0.5620366", "0.56177217", "0.56109625", "0.56064373", "0.5605507", "0.56030345", "0.55999744", "0.55950487", "0.5592619", "0.5592552" ]
0.0
-1
Create a new command instance.
public function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "public function createCommand()\r\n\t{\r\n\t\t$obj = new DbCommand($this,$this->dbms);\r\n\t\treturn $obj;\r\n\t}", "public function createCommand() {\n\t\treturn new UnboxedCommand( $this );\n\t}", "protected function createCommand($args) {\n $command = new Command();\n $command->id = ifseta($args, 'id');\n $command->name = ifseta($args, 'name');\n $command->url = ifseta($args, 'url');\n $command->description = ifseta($args, 'description');\n $command->uses = ifseta($args, 'uses');\n $command->creationDate = ifseta($args, 'creation_date');\n $command->lastUseDate = ifseta($args, 'last_use_date');\n $command->goldenEggDate = ifseta($args, 'golden_egg_date');\n return $command;\n }", "static public function create($cmd = null, $args = null)\n {\n return new self($cmd, $args);\n }", "public function createCommand($kernel, string $commandName = null, string $commandDescription = null): Command;", "public function makeCommand() \n {\n if($this->CrontabCommandObject === NULL)\n {\n $this->CrontabCommandObject = new \\root\\library\\Crontab\\CrontabCommand\\CrontabCommand();\n }\n \n return $this->CrontabCommandObject;\n }", "public function testInstantiation()\n {\n $command = new CreateRule('dummy name');\n }", "public function command(Command $command);", "public function __construct($command)\n {\n $this->command = $command;\n }", "public static function create(array $data)\n {\n $command = new static();\n $command->exchangeArray($data);\n return $command;\n }", "protected function getCreateCommand()\n {\n $command = new IndexCreateCommand();\n $command->setContainer($this->getContainer());\n\n return $command;\n }", "public function createCommand($string = '')\n {\n return $this->createStringable($string);\n }", "public function createCommand($type) {\r\n $command = $this->xml->createElement('command');\r\n $command->setAttribute('xsi:type', $type);\r\n $command->setAttribute('xmlns', '');\r\n $this->xmlSchema($command);\r\n return $command;\r\n }", "public function __construct()\n {\n // We will go ahead and set the name, description, and parameters on console\n // commands just to make things a little easier on the developer. This is\n // so they don't have to all be manually specified in the constructors.\n if (isset($this->signature)) {\n $this->configureUsingFluentDefinition();\n } else {\n parent::__construct($this->name);\n }\n\n // Once we have constructed the command, we'll set the description and other\n // related properties of the command. If a signature wasn't used to build\n // the command we'll set the arguments and the options on this command.\n $this->setDescription((string) $this->description);\n\n $this->setHelp((string) $this->help);\n\n $this->setHidden($this->isHidden());\n\n if (! isset($this->signature)) {\n $this->specifyParameters();\n }\n }", "public function make(string $name, PreprocessorInterface $preprocessor = null): CommandInterface;", "private function _getCommandByClassName($className)\n {\n return new $className;\n }", "public function newCommand($regex, $callable) {\n $cmd = new Command();\n $cmd->regex = $regex;\n $cmd->callable = $callable;\n return $this->addCommand($cmd);\n }", "public static function create($commandID, ...$args)\n {\n $arguments = func_get_args();\n\n return new static(array_shift($arguments), $arguments);\n }", "private function __construct($command = null)\n {\n $this->command = $command;\n }", "public static function factory(string $command, string $before = '', string $after = ''): self\n {\n return new self($command, $before, $after);\n }", "public function getCommand() {}", "protected function buildCommand()\n {\n $command = new Command(\\Tivie\\Command\\ESCAPE);\n $command\n ->chdir(realpath($this->repoDir))\n ->setCommand($this->gitDir)\n ->addArgument(new Argument('tag', null, null, false))\n ->addArgument(new Argument($this->tag, null, null, true));\n\n return $command;\n }", "public function testCanBeInstantiated()\n {\n $command = $this->createInstance();\n $this->assertInstanceOf('\\\\Dhii\\\\ShellInterop\\\\CommandInterface', $command, 'Command must be an interoperable command');\n $this->assertInstanceOf('\\\\Dhii\\\\ShellCommandInterop\\\\ConfigurableCommandInterface', $command, 'Command must be a configurable command');\n $this->assertInstanceOf('\\\\Dhii\\\\ShellCommandInterop\\\\MutableCommandInterface', $command, 'Command must be a mutable command');\n }", "public function getCommand();", "protected function createCommand($name, array $parameters = [])\n {\n return new Fluent(\n array_merge(\n compact('name'),\n $parameters)\n );\n }", "public function testCanPassCommandStringToConstructor()\n {\n $command = new Command('/bin/ls -l');\n\n $this->assertEquals('/bin/ls -l', $command->getExecCommand());\n }", "public function makeCommandInstanceByType(...$args): CommandInterface\n {\n $commandType = array_shift($args);\n\n switch ($commandType) {\n case self::PROGRAM_READ_MODEL_FETCH_ONE_COMMAND:\n return $this->makeFetchOneCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_FIND_COMMAND:\n return $this->makeFindCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_FIND_LITE_COMMAND:\n return $this->makeFindLiteCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_CREATE_TASK_COMMAND:\n return $this->makeItemCreateTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_CREATE_COMMAND:\n return $this->makeItemCreateCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_UPDATE_TASK_COMMAND:\n return $this->makeItemUpdateTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_UPDATE_COMMAND:\n return $this->makeItemUpdateCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_DELETE_TASK_COMMAND:\n return $this->makeItemDeleteTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_DELETE_COMMAND:\n return $this->makeItemDeleteCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_ADD_ID_COMMAND:\n return $this->makeItemAddIdCommand(...$args);\n\n default:\n throw new FactoryException(sprintf('Command bus for type `%s` not found!', (string) $commandType));\n }\n }", "public function __construct($cmd)\n {\n $this->cmd = $cmd;\n }", "public function getCommand()\n {\n }", "public function command($class)\n {\n $runnable = $this->resolveClass($class);\n\n if ( ! $runnable instanceof Command) {\n throw new InvalidArgumentException(get_class($runnable).' must be an instance of '.Command::class.'.');\n }\n\n $command = $runnable;\n\n if ($runnable instanceof Taggable) {\n $command = new Cached($command, $this);\n }\n\n if ($runnable instanceof Transactional) {\n $command = new Transaction($command, $this, $this->makeFromContainer(ConnectionInterface::class));\n }\n\n if ($runnable instanceof Eventable) {\n $command = new Evented($command, $this);\n }\n\n return $this->newBuilder($command);\n }", "protected function createCommandFactory(): CommandFactory\n {\n return new CommandFactory([\n 'CLOSE' => Command\\CLOSE::class,\n ]);\n }", "public static function register() {\n\n if ( !defined( 'WP_CLI' ) || !WP_CLI ) {\n return;\n }\n \n $instance = new static;\n if(empty( $instance->namespace )) {\n throw new \\Exception(\"Command namespace not defined\", 1);\n \n }\n\t\t\\WP_CLI::add_command( $instance->namespace, $instance, $instance->args ?? null );\n\t}", "public function addCommand($command);", "public function add(Command $command);", "abstract protected function getCommand();", "public function createCommand()\r\n\t{\r\n\t\t//start the string\r\n\t\t$command = '';\r\n\t\t\r\n\t\t//add the java command or the path to java\r\n\t\t$command .= $this->java_path;\r\n\t\t\r\n\t\t//add the class path\r\n\t\t$command .= ' -cp \"'. $this->stanford_path . $this->seperator . '*\" ';\r\n\t\t\r\n\t\t//add options\r\n\t\t$options = implode(' ', $this->java_options);\r\n\t\t$command .= '-'.$options;\r\n\t\t\r\n\t\t//add the call to the pipeline object\r\n\t\t$command .= ' edu.stanford.nlp.pipeline.StanfordCoreNLP ';\r\n\r\n\t\t//add the annotators\r\n\t\t$command .= '-annotators '. $this->listAnnotators();\r\n\t\t\r\n\t\t//add the input and output directors\r\n\t\t$command .= ' -file '. $this->tmp_file . ' -outputDirectory '. $this->tmp_path;\r\n\t\t\r\n\t\t//this is for testing purposes\r\n\t\t//$command .= ' -file '. $this->tmp_path .'\\\\nlp3F25.tmp' . ' -outputDirectory '. $this->tmp_path;\r\n\t\t\r\n\t\t//if using regexner add this to the command string\r\n\t\tif($this->annotators['regexner'] === true)\r\n\t\t{\r\n\t\t\t$command .=' -regexner.mapping '. $this->regexner_path . $this->seperator . $this->regexner_file;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn $command;\r\n\t}", "protected function createCommand(string $name, array $parameters = []): Fluent\n {\n return new Fluent(array_merge(compact('name'), $parameters));\n }", "public function __construct()\n {\n parent::__construct(static::NAME, static::VERSION);\n $this->add(new DefaultCommand());\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->command_name = config(\"custom-commands.command_name\");\n\n parent::__construct($this->signature = $this->command_name);\n\n $this->commands = (array) config(\"custom-commands.commands\");\n \n $this->table = config(\"custom-commands.table\");\n\n $this->row = config(\"custom-commands.row\");\n\n $this->changeEnv = (boolean) config(\"custom-commands.change_env\");\n\n }", "protected function createCommandFile()\n {\n $command_file_full_path = $this->command_dir_path . DIRECTORY_SEPARATOR . $this->arg->getCommandFileName();\n\n // Check if the command already exists\n if (file_exists($command_file_full_path)) {\n throw new Exception('Command already exists.');\n }\n\n // Create the file for the new command\n $command_file = fopen($command_file_full_path, 'w');\n\n // TODO: Create Script Generator to generate the PHP scripts for the new command.\n\n fclose($command_file);\n\n $this->console->getOutput()->println('File created at: ' . $command_file_full_path);\n $this->console->getOutput()->success('Command ' . $this->arg->getSignature() . ' created successfully.');\n }", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public static function create(InteropContainer $container)\n {\n $middleware = $container->get('cmd.middleware');\n return new CommandBusFactory($middleware);\n }", "private function createCli() {\n $this->cli = new Cli();\n $this->commands = $this->commandParser->getAllCommands();\n\n foreach ($this->commands as $command) {\n if ($command->isDefault()) {\n $this->cli->command(\"*\");\n foreach ($command->getOptions() as $option) {\n $this->cli->opt($option->getName(), $option->getDescription(), $option->isRequired(), $option->getType());\n }\n foreach ($command->getArguments() as $argument) {\n if (!$argument->isVariadic())\n $this->cli->arg($argument->getName(), $argument->getDescription(), $argument->isRequired());\n }\n }\n if ($command->getName() != \"\") {\n $this->cli->command($command->getName())->description($command->getDescription());\n foreach ($command->getOptions() as $option) {\n $this->cli->opt($option->getName(), $option->getDescription(), $option->isRequired(), $option->getType());\n }\n foreach ($command->getArguments() as $argument) {\n if (!$argument->isVariadic())\n $this->cli->arg($argument->getName(), $argument->getDescription(), $argument->isRequired());\n }\n }\n }\n\n\n }", "public function testInstantiation()\n {\n $this->assertInstanceOf('Contao\\ManagerBundle\\Command\\InstallWebDirCommand', $this->command);\n }", "public function command(string $command): self\n {\n $this->addCommands[] = $command;\n\n return $this;\n }", "public function create() {}", "protected function createProcess($cmd)\n {\n return new Process(explode(' ', $cmd));\n }", "public function create(){}", "protected function getCommandFactory(): Command\\Factory\n {\n return new Command\\RedisFactory();\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->commandData = new CommandData($this, CommandData::$COMMAND_TYPE_API);\n }", "public function testNewCommand() : void\n {\n $this->assertFalse($this->command->hasArguments());\n $this->assertEquals(\"\", $this->command->getArguments());\n }", "protected function createCommandBuilder()\n\t{\n\t\treturn new CSqliteCommandBuilder($this);\n\t}", "public function __construct($command, $config = [])\n {\n $this->command = $command;\n $this->_output = $this->getDefaultOutput();\n parent::__construct($config);\n }", "public function __construct(){\n\n global $argv;\n\n if(!isset($argv[1])){\n echo 'You must supply a command!' . PHP_EOL;\n exit;\n }//if\n\n $args = $argv;\n\n $scriptName = array_shift($args);\n $method = array_shift($args);\n\n $method = explode('-',$method);\n foreach($method as $k => $v){\n if($k != 0){\n $method[$k] = ucwords($v);\n }//if\n }//foreach\n\n $method = implode('',$method);\n\n $resolved = false;\n\n if(method_exists($this,$method)){\n call_user_func(Array($this,$method), $args);\n $resolved = true;\n }//if\n else {\n foreach(static::$extendedCommands as $commandClass){\n if(method_exists($commandClass,$method)){\n call_user_func(Array($commandClass,$method), $args);\n $resolved = true;\n break;\n }//if\n }//foreach\n }//el\n\n if(!$resolved){\n echo \"`{$method}` is not a valid CLI command!\";\n }//if\n\n echo PHP_EOL;\n exit;\n\n }", "public function forCommand($command)\n {\n $this->command = $command;\n $this->pipe = new NullPipe();\n $this->manager = new InteractiveProcessManager($this->userInteraction);\n\n return $this;\n }", "public function __construct()\n {\n parent::__construct('pwman', '0.1.0');\n\n $getCommand = new Get();\n $this->add($getCommand);\n\n $setCommand = new Set();\n $this->add($setCommand);\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "public function createCommand(?string $sql = null, array $params = []): Command;", "public function __construct($command = NULL, $name = NULL)\n {\n $args = func_get_args();\n\n switch ($command) {\n case self::CONSTR_CMD_POPULATE_SYNCED_ARRAY:\n case self::CONSTR_CMD_POP_FROM_ARR:\n case self::CONSTR_CMD_POP_FROM_OBJ:\n case self::CONSTR_CMD_POP_FROM_DB:\n case self::CONSTR_CMD_NEW:\n $this->setup_name = $name;\n\n # shift off known args\n array_shift($args);\n array_shift($args);\n break;\n }\n\n switch ($command) {\n case self::CONSTR_CMD_POP_FROM_ARR:\n $this->applyArray($args[0]);\n break;\n case self::CONSTR_CMD_POP_FROM_OBJ:\n break;\n case self::CONSTR_CMD_POP_FROM_DB:\n break;\n case self::CONSTR_CMD_POPULATE_SYNCED_ARRAY:\n $this->applyArray($args[0]);\n $this->setAllLoaded();\n break;\n default:\n throw new OrmInputException('Guessing not supported, please explicitly specify construction type');\n self::constructGuess($args);\n }\n\n $this->ensureObjectInDb();\n }", "public function generateCommands();", "protected function newInstanceCommand($commandClass)\n {\n $class = new ReflectionClass($commandClass);\n\n return $class->newInstanceArgs($this->resolveCommandParameters($class));\n }", "protected function buildCommand()\n {\n return $this->command;\n }", "public function makeItemCreateCommand(string $processUuid, array $item): ItemCreateCommand\n {\n $processUuid = ProcessUuid::fromNative($processUuid);\n $uuid = Uuid::fromNative(null);\n $item = Item::fromNative($item);\n\n return new ItemCreateCommand($processUuid, $uuid, $item);\n }", "public function __construct($commandName, $args = [], $description = '') {\n if (!$this->setName($commandName)) {\n $this->setName('--new-command');\n }\n $this->addArgs($args);\n\n if (!$this->setDescription($description)) {\n $this->setDescription('<NO DESCRIPTION>');\n }\n }", "public function getCommand($name, array $args = array())\n {\n return parent::getCommand($name, $args)\n ->setRequestSerializer(RequestSerializer::getInstance());\n }", "protected function buildCommand()\n {\n $command = new Command(\\Tivie\\Command\\DONT_ADD_SPACE_BEFORE_VALUE);\n $command\n ->chdir(realpath($this->repoDir))\n ->setCommand($this->gitDir)\n ->addArgument(new Argument('rev-parse'))\n ->addArgument(new Argument('HEAD'));\n\n return $command;\n }", "protected function instantiateCommand(Request $request, $args)\n {\n $command = new DeletePackageCustomerCommand($args);\n\n $requestBody = $request->getParsedBody();\n\n $this->setCommandFields($command, $requestBody);\n\n return $command;\n }", "public function createCommand($sql = null, $params = [])\n {\n $command = new Command([\n 'db' => $this,\n 'sql' => $sql,\n ]);\n\n return $command->bindValues($params);\n }", "protected function setCommand($value) {\n\t\t$this->_command = trim($value);\n\t\treturn $this;\n\t}", "public function setCommand($command)\n {\n $this->command = $command;\n\n return $this;\n }", "public function buildCommand()\n {\n return parent::buildCommand();\n }", "private function registerMakeModuleCommand()\n {\n $this->app->singleton('command.make.module', function($app) {\n return $app['Caffeinated\\Modules\\Console\\Generators\\MakeModuleCommand'];\n });\n\n $this->commands('command.make.module');\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->currentDirectory = getcwd();\n $this->baseIndentLevel = 0;\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\HelpCommand\", \"help\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\InitializePlanetCommand\", \"init\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PackAndPushUniToolCommand\", \"packpushuni\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PackLightPluginCommand\", \"packlightmap\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PushCommand\", \"push\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PushUniverseSnapshotCommand\", \"pushuni\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\UpdateSubscriberDependenciesCommand\", \"updsd\");\n\n }", "public function getCommand(string $command);", "protected function registerCommand(){\n\t\t$this->app->singleton('fakeid.command.setup', function ($app){\n\t\t\treturn new SetupCommand();\n\t\t});\n\n\t\t$this->commands('fakeid.command.setup');\n\t}", "public function addCommand($command, $args = [], $data = [])\n {\n $item = new ScreenCommand();\n $item->screen_id = $this->id;\n $item->command = $command;\n $item->arguments = $args;\n $item->fill($data);\n $item->save();\n\n return $item;\n }", "public function test_creating_command_from_container()\n {\n $now = new \\DateTime();\n $this->container->add('DateTime', $now);\n $command = 'Spekkionu\\DomainDispatcher\\Test\\Commands\\CommandWithConstructor';\n $result = $this->dispatcher->dispatch($command);\n $this->assertSame($now, $result);\n }", "protected function createProcess(): Process\n {\n $command = [\n $this->settings['executable']\n ];\n\n $command[] = $this->from;\n $command[] = $this->to;\n\n // Set the margins if needed.\n if ($this->settings['marginsType'] !== self::MARGIN_TYPE_NO_MARGINS) {\n $command[] = '--marginsType=' . $this->settings['marginsType'];\n }\n\n // If we need to proxy with node we just need to prepend the $command with `node`.\n if ($this->settings['proxyWithNode']) {\n array_unshift($command, 'node');\n }\n\n // If there's no graphical environment we need to prepend the $command with `xvfb-run\n // --auto-servernum`.\n if (! $this->settings['graphicalEnvironment']) {\n array_unshift($command, '--auto-servernum');\n array_unshift($command, 'xvfb-run');\n }\n\n return new Process($command);\n }", "private function registerCommand()\n {\n $this->app->singleton('command.shenma.push', function () {\n return new \\Larva\\Shenma\\Push\\Commands\\Push();\n });\n\n $this->app->singleton('command.shenma.push.retry', function () {\n return new \\Larva\\Shenma\\Push\\Commands\\PushRetry();\n });\n }", "public function __construct(string $command, string $before = '', string $after = '')\n {\n $this->command = $command;\n $this->before = $before;\n $this->after = $after;\n }", "public function generateCommand($singleCommandDefinition);", "public function create() {\n }", "public function create() {\n }", "public function create() {\r\n }", "public function create() {\n\n\t}", "private function getImportCommand()\n {\n return new IndexImportCommand(self::getContainer());\n }", "public function __construct($command)\n {\n $this->command = $command;\n\n $this->command->line('Installing Images: <info>✔</info>');\n }", "public function __construct()\n {\n self::$instance =& $this;\n\n $commanddir = Config::main('directory');\n $excludes = Config::main('exclude');\n\n if(is_null($commanddir))\n die('Could not find commands directory. It should be specified in the main config.');\n\n //The directory where commands reside should be relative\n //to the directory with the clip executable.\n $dir = realpath(__DIR__.\"/{$commanddir}\");\n\n $cmdfiles = scandir($dir);\n //Loop through each file in the commands directory\n foreach($cmdfiles as $file)\n {\n //Assume that each file uses the standard '.php' file extension.\n $command = substr($file, 0, -4);\n\n //Ignore the unnecessary directories as commands and anything that\n //has been marked for exclusion then attempt to include the valid ones.\n if($file !== '.' && $file !== '..' && array_search($command, $excludes) === false && include(\"{$dir}/{$file}\"))\n {\n if(class_exists($command, false))\n {\n $obj = new $command;\n //Only load commands that use the clip command interface\n if($obj instanceof Command)\n $this->commands[strtolower($command)] = $obj;\n }\n }\n }\n }", "public function __construct($action, $command = null) {\n parent::__construct($action, self::NAME);\n\n $fieldFactory = FieldFactory::getInstance();\n\n $commandField = $fieldFactory->createField(FieldFactory::TYPE_STRING, self::FIELD_COMMAND, $command);\n\n $this->addField($commandField);\n }", "public function createCommand($db = null, $action = 'get')\n {\n if ($db === null) {\n $db = Yii::$app->get(Connection::getDriverName());\n }\n $this->addAction($action);\n $commandConfig = $db->getQueryBuilder()->build($this);\n\n return $db->createCommand($commandConfig);\n }", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();" ]
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315901", "0.6248427", "0.6241929", "0.6194334", "0.6081284", "0.6075819", "0.6069913", "0.60685146", "0.6055616", "0.6027874", "0.60132784", "0.60118896", "0.6011778", "0.5969603", "0.59618074", "0.5954538", "0.59404427", "0.59388787", "0.5929363", "0.5910562", "0.590651", "0.589658", "0.589658", "0.589658", "0.58692765", "0.58665586", "0.5866528", "0.58663124", "0.5852474", "0.5852405", "0.58442044", "0.58391577", "0.58154446", "0.58055794", "0.5795853", "0.5780188", "0.57653266", "0.57640004", "0.57584697", "0.575748", "0.5742612", "0.5739361", "0.5732979", "0.572247", "0.5701043", "0.5686879", "0.5685233", "0.56819254", "0.5675983", "0.56670785", "0.56606543", "0.5659307", "0.56567776", "0.56534046", "0.56343585", "0.56290466", "0.5626615", "0.56255764", "0.5608852", "0.5608026", "0.56063116", "0.56026554", "0.5599553", "0.5599351", "0.55640906", "0.55640906", "0.5561977", "0.5559745", "0.5555084", "0.5551485", "0.5544597", "0.55397296", "0.5529626", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908" ]
0.0
-1
/ Alter accessors to expose the query data to alter hooks. Returns a reference to the fields array for this query. Because this method returns by reference, alter hooks may edit the fields array directly to make their changes. If just adding fields, however, the use of addField() is preferred. Note that this method must be called by reference as well:
public function &getFields();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function &fields(){\n\t\t// check the cache first.\n\t\tif ( isset($this->_cache[__FUNCTION__]) ){\n\t\t\treturn $this->_cache[__FUNCTION__];\n\t\t}\n\t\t\n\t\t// it is not in the cache yet, let's calculate it.\n\t\t$out = array();\n\t\t$data = $this->_parseSQL();\n\t\t$this->_expandGlobs($data);\n\t\t$numCols = count($data['columns']);\n\t\tfor ($i=0; $i<$numCols; $i++){\n\t\t\t$column = $data['columns'][$i];\n\t\t\tif ( $column['type'] == 'ident' ){\n\t\t\t\t// This column is just a normal column that is drawn from a table.\n\t\t\t\t// vs. the alternative which is a function.\n\t\t\t\tif ( $column['table'] ){\n\t\t\t\t\t$table =& $this->getTableOrView($column['table']);\n\t\t\t\t} else {\n\t\t\t\t\tif ( $column['alias'] ){\n\t\t\t\t\t\t$key = $column['alias'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$key = $column['value'];\n\t\t\t\t\t}\n\t\t\t\t\t$tablename = $this->guessColumnTableName($key);\n\t\t\t\t\t$table =& $this->getTableOrView($tablename);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$out[$key] =& $table->getField($key);\n\t\t\t\tunset($table);\n\t\t\t} else {\n\t\t\t\t$out[$column['alias']] = Dataface_Table::_newSchema($column['type'],$column['alias'], $this->name);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->_cache[__FUNCTION__] =& $out;\n\t\t$this->_fields =& $out;\n\t\treturn $out;\n\t\t\n\t\t\n\t}", "public function getQueryFields()\n {\n return array();\n }", "public function getAllFields()\n {\n return array_merge($this->_fields, $this->_changedFields);\n }", "public function &getFields() { return $this->fields; }", "public function getFields()\n {\n if ($this->fields) {\n return $this->fields;\n }\n\n $this->fields = array(\n 'data_type_id',\n 'name',\n 'aliases',\n 'description',\n 'driver',\n );\n\n return $this->fields;\n }", "public function getCurrentQueryFields()\n {\n return $this->fields_of_current_query;\n }", "public function fields(): Fields\n\t{\n\t\treturn $this->blueprint->fields()->addValues($this->raw())->preProcess();\n\t}", "public function & getFields() {\n\t\treturn $this->fields;\n\t}", "final public function getAllFields()\r\n {\r\n return array($this->_field);\r\n }", "public function getFields(){\n return $this->dbFields;\n }", "public function getFieldsWithUpdate()\n {\n return array_filter($this->fieldChanges, function ($fieldChange) {\n return $fieldChange->hasChange();\n });\n }", "public function fields() : array\n {\n $fields = [];\n foreach ($this->queries as $class) {\n $fields[$class::$name] = (new $class)->toArray();\n }\n return $fields;\n }", "public function getFields() {\n if($this->cachedFields == null) {\n $this->cachedFields = $this->createFields();\n }\n\n return $this->cachedFields;\n }", "public function fieldUpdate()\n\t{\n\t\t$fieldUpdate=array();\n\t\tforeach($this->getTable()->result_array() as $row)\n\t\t{\n\t\t\t$fieldUpdate[]=array(\n\t\t\t\t'field'=>$row['Field'],\n\t\t\t\t'max_length'=>preg_match('/varchar/',$row['Type']) ? (preg_replace('/[A-Za-z()]/','',$row['Type'])!=='' ? '\\'maxlength\\'=>'.preg_replace('/[A-Za-z()]/','',$row['Type']).',' : false) : false,\n\t\t\t\t'type'=>preg_match('/text/',$row['Type']) ? 'Area' : 'Field',\n\t\t\t\t'required'=>$row['Null']=='NO' ? true : false,\n\t\t\t\t'input'=>preg_match('/^(password|pass|passwd|passcode)$/i',$row['Field']) ? 'password' : 'text',\n\t\t\t);\n\t\t}\n\t\treturn $fieldUpdate;\n\t}", "public function getFields() {\n $field = $this->get('field');\n return null !== $field ? $field : array();\n }", "private function _fields() {\n if ($this->_table() && empty($this->fields)) {\n $this->fields = $this->db->list_fields($this->_table());\n }\n return $this->fields;\n }", "public function getFields() : FieldCollection;", "public function getFieldsArray() {\n\t\t\treturn $this->fields_array;\n\t\t}", "public function getAllFields() {\n return $this->allFieldsAlias;\n }", "protected function __fields() {\n $Fields = array_keys(get_object_vars($this));\n if (!empty ($this->__onlyFields)) {\n $Fields = $this->__onlyFields;\n }\n $NewFields = array();\n foreach ($Fields as $field) {\n if (in_array ($field, array ('__bound', '__Data', 'cleaned_data', 'label_suffix', 'required_suffix', 'is_editable', 'suppress_errors'))) continue;\n if (!is_object($this->$field)) continue;\n if (!empty ($this->disabled[$field])) continue;\n if (in_array ($field, $this->__Exclude)) continue;\n $NewFields[] = $field;\n }\n return $NewFields;\n }", "protected function getAdditionFields(): array\n {\n return $this->additionFields;\n }", "public function getFields(): array\n {\n return $this->fields;\n }", "public function getFields(): array\n {\n return $this->fields;\n }", "public function getFieldsData()\n {\n $cacheKey = $this->getCacheKey();\n\n if (isset($this->getFieldsDataCache[$cacheKey])) {\n\n return $this->getFieldsDataCache[$cacheKey];\n }\n\n $data = array();\n $db = \\Database::getInstance()->prepare(\"\n SELECT * FROM (\n SELECT\n ld.master_id AS id,\n IFNULL(ff.name, ld.name) AS name,\n IF(ff.label IS NULL OR ff.label='', ld.name, ff.label) AS label,\n ff.type,\n ff.options,\n ld.field_id,\n ld.sorting\n FROM tl_lead_data ld\n LEFT JOIN tl_form_field ff ON ff.id=ld.master_id\n LEFT JOIN tl_lead l ON ld.pid=l.id\n WHERE l.master_id=?\" . (!empty($this->fieldIds) ? (\" AND ld.field_id IN (\" . implode(',', $this->fieldIds) . \")\") : \"\") . \"\n ORDER BY l.master_id!=l.form_id\n ) ld\n GROUP BY field_id\n ORDER BY \" . (!empty($this->fieldIds) ? \\Database::getInstance()->findInSet(\"ld.field_id\", $this->fieldIds) : \"sorting\")\n )->execute($this->formId);\n\n while ($db->next()) {\n $data[$db->id] = $db->row();\n }\n\n $this->getFieldsDataCache[$cacheKey] = $data;\n\n return $data;\n }", "public function getChangedFields() {}", "public function getFields() : array {\n\t\treturn $this->fields;\n\t}", "public function schemaFields() { \n return $this->allFieldsArray;\n }", "public function schemaFields() { \n return $this->allFieldsArray;\n }", "protected function getFields()\n {\n return $this->fields;\n }", "protected function getFields()\n {\n return $this->fields;\n }", "public function get() {\n\t\t$args = func_get_args();\n\t\t$new = (count($args) && is_bool($args[0]) ? array_shift($args) : false);\n\t\t\n\t\t// all fields requested:\n\t\tif (!count($args)) {\n\t\t\treturn ($new ? $this->new_data + $this->rec_data : $this->rec_data);\n\t\t}\n\t\t\n\t\t$res = array();\n\t\tforeach ($args as $arg) {\n\t\t\t// return new field if requested and defined, otherwise fallback to\n\t\t\t// rec_data and finally return null if that's also not found:\n\t\t\tif ($new && isset($this->new_data[$arg])) {\n\t\t\t\t$res[$arg] = $this->new_data[$arg];\n\t\t\t}\n\t\t\telseif (isset($this->rec_data[$arg])) {\n\t\t\t\t$res[$arg] = $this->rec_data[$arg];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$res[$arg] = null;\n\t\t\t}\n\t\t}\n\n\t\treturn (count($res) == 1 ? array_shift($res) : $res);\n\t}", "public function getFields() {\n $fields = $this->_fields;\n\n if ($this->getJoins() && !$fields && $this->getType() === self::SELECT) {\n return array_keys($this->getRepository()->getSchema()->getColumns());\n }\n\n return $fields;\n }", "public function fields() {\n // The fields are passed to the constructor for this plugin.\n return $this->fields;\n }", "public function getAllFields()\n {\n return $this->fields;\n }", "public function getFields()\n\t{\n\t\treturn [];\n\t}", "public function getAllFields() {\n\t\t\t// Database Connection\n\t\t\t$db\t\t\t\t= $GLOBALS['db_q'];\n\t\t\t// Initialize variables\n\t\t\t$return\t\t\t= false;\n\t\t\t// Query set up\t\n\t\t\t$table\t\t\t= 'tb_field';\n\t\t\t$select_what\t= 'id, vc_field AS vc_name';\n\t\t\t$conditions\t\t= \"1 ORDER BY vc_field ASC\";\n\t\t\t$return\t\t\t= $db->getAllRows_Arr($table, $select_what, $conditions);\n\t\t\t// Return\n\t\t\treturn $return;\n\t\t}", "public function fields($fields) {\n $this->_active_query->fields($fields);\n }", "public function get_fields() {\n return $this->fields;\n }", "public function getFields()\r\n {\r\n return $this->fields;\r\n }", "public function getResultFields( $query_id=null );", "public function fields(): array\n {\n $fields = $this->getConfig('fields') ?: [];\n $config = $this->getConfig();\n\n $schema = $this->_table()->getSchema();\n $request = $this->_request();\n\n if ($fields) {\n $fields = Hash::normalize($fields);\n } else {\n $filters = $this->_table()->searchManager()->getFilters($config['collection']);\n\n foreach ($filters as $filter) {\n $opts = $filter->getConfig('form');\n if ($opts === false) {\n continue;\n }\n\n $fields[$filter->name()] = $opts ?: [];\n }\n }\n\n foreach ($fields as $field => $opts) {\n $input = [\n 'required' => false,\n 'type' => 'text',\n ];\n\n if (substr($field, -3) === '_id' && $field !== '_id') {\n $input['type'] = 'select';\n }\n\n $input = (array)$opts + $input;\n\n $input['value'] = $request->getQuery($field);\n\n if (empty($input['options']) && $schema->getColumnType($field) === 'boolean') {\n $input['options'] = [__d('crud', 'No'), __d('crud', 'Yes')];\n $input['type'] = 'select';\n }\n\n /** @psalm-suppress PossiblyUndefinedArrayOffset */\n if ($input['type'] === 'select') {\n $input += ['empty' => true];\n }\n\n if (!empty($input['options'])) {\n $input['empty'] = true;\n if (empty($input['class']) && !$config['select2']) {\n $input['class'] = 'no-select2';\n }\n\n $fields[$field] = $input;\n\n continue;\n }\n\n if (empty($input['class']) && $config['autocomplete']) {\n $input['class'] = 'autocomplete';\n }\n\n /** @psalm-suppress PossiblyUndefinedArrayOffset */\n if (\n !empty($input['class'])\n && strpos($input['class'], 'autocomplete') !== false\n && $input['type'] !== 'select'\n ) {\n $input['type'] = 'select';\n\n if (!empty($input['value'])) {\n $input['options'][$input['value']] = $input['value'];\n }\n\n $input += [\n 'data-input-type' => 'text',\n 'data-tags' => 'true',\n 'data-allow-clear' => 'true',\n 'data-placeholder' => '',\n ];\n }\n\n if (!isset($input['data-url'])) {\n $urlArgs = [];\n\n $fieldKeys = $input['fields'] ?? ['id' => $field, 'value' => $field];\n if (is_array($fieldKeys)) {\n foreach ($fieldKeys as $key => $val) {\n $urlArgs[$key] = $val;\n }\n }\n\n $input['data-url'] = Router::url(['action' => 'lookup', '_ext' => 'json', '?' => $urlArgs]);\n }\n\n unset($input['fields']);\n\n $fields[$field] = $input;\n }\n\n return $fields;\n }", "function update_fields($fields){\n //\n //Get the indexed columns \n //\n //loop through all the columns in this entity \n foreach ($this->entity->columns as $column) {\n //\n //Get the name of the column\n $name= $column->name;\n //\n //if the column is foreign or primary return\n if($column->type==!'primary' || $column->type==!'foreign' ){\n //\n //Test if the column already exist in the fields array\n //first map the columns to get the column names\n $names= array_map(function ($f){return $f->column->name;}, $fields);\n //\n $enn= array_search($name, $names);\n //\n //If the culumn is an indexed column do nothing if false do the following\n if ($enn === false){\n //\n //Test if it is called a name \n if ($name== 'name'){\n //\n array_push($fields, $column);\n }\n //\n //Test if it is called a description \n if ($name== 'description'){\n //\n array_push($fields, $column);\n }\n //\n //Test if it is called a title \n if ($name== 'title'){\n //\n array_push($fields, $column);\n }\n //\n //Test if it is called a id \n if ($name== 'id'){\n //\n array_push($fields, $column);\n }\n }\n }\n }\n //\n //\n return $fields;\n }", "public function Fields()\n {\n foreach ($this->getExtraFields() as $field) {\n if (!$this->fields->fieldByName($field->getName())) {\n $this->fields->push($field);\n }\n }\n\n return $this->fields;\n }", "public function getFields()\n {\n return $this->fields;\n }", "public function getFields()\n {\n return $this->fields;\n }", "public function getFields()\n {\n return $this->fields;\n }", "public function getFields()\n {\n return $this->fields;\n }", "public function getFields()\n {\n return $this->fields;\n }", "public function getFields()\n {\n return $this->fields;\n }", "public function getFields()\n {\n return $this->fields;\n }", "public function getFields()\n {\n return $this->fields;\n }", "public function getFields()\n {\n return $this->fields;\n }", "public function getFields()\n {\n return $this->fields;\n }", "public function getFields()\n {\n return $this->fields;\n }", "public function get_fields() {\r\n\t\treturn $this->fields;\r\n\t}", "public function fields() {\n return $this->fields;\n }", "public function get_fields() {\n\t\treturn $this->fields;\n\t}", "public function getFields() {\n\t\treturn $this->fields;\n\t}", "public function getFields() {\n\t\treturn $this->fields;\n\t}", "public function getFields()\n {\n return $this->_fields;\n }", "public function getFields()\n {\n return $this->_fields;\n }", "public function getFields()\n {\n return $this->arr_defined_fields;\n }", "protected function getFields()\n {\n return $this->Fields;\n }", "public function fields()\r\n {\r\n return $this->fields;\r\n }", "public function getFields()\n\t{\n\t\treturn $this->fields;\n\t}", "public function getFields()\n\t{\n\t\treturn $this->fields;\n\t}", "function get_fields( ) {\n\t\treturn $this->fields_list;\n\t\t}", "public function getFieldList()\n {\n return $this->_fieldList;\n }", "public function getFields()\n\t{\n\t\treturn $this->_fields;\n\t}", "public function fields()\n {\n return $this->fields;\n }", "public function fields()\n {\n return $this->fields;\n }", "public function fields()\n {\n return array_merge(\n parent::fields(),\n [\n 'memberId', 'operation',\n 'operationAt' => function($model) {\n return MongodbUtil::MongoDate2String($model->operationAt);\n },\n 'createdAt' => function($model) {\n return MongodbUtil::MongoDate2String($model->createdAt);\n }\n ]\n );\n }", "public function getChangedFields()\n {\n return $this->_changedFields;\n }", "function fields()\n\t{\n\t\treturn $this->_fields;\n\t}", "function query() {\n $this->field_alias = $this->real_field;\n }", "function query() {\n $this->field_alias = $this->real_field;\n }", "public function getFields() {}", "public function getFields() {}", "public function getFields() {}", "public function getFields()\n\t\t{\n\t\t\treturn $this->fields;\n\t\t}", "public function queryUpdateFields()\n {\n $statement = sprintf(\"SELECT %s, %s, %s FROM %s WHERE deleted = 0 ORDER BY %s\",\n static::FIELDS[0], static::FIELDS[1], static::FIELDS[4], static::TABLE, static::FIELDS[0]);\n $req = $this->db->query($statement);\n $response = $req->fetchAll(PDO::FETCH_ASSOC);\n\n return json_encode($response);\n }", "public function getFields()\n {\n if (is_null($this->fields)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_FIELDS);\n if (is_null($data)) {\n return null;\n }\n\n $this->fields = FieldContainerModel::of($data);\n }\n\n return $this->fields;\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function getFields(): array;", "public function getFields(): array;", "public function getFields(): array;", "public function getFields()\n {\n return $this->fields instanceof OrderFieldBuilder ? $this->fields->build() : $this->fields;\n }", "function field_data()\n\t{\n\t\t$retval = array();\n\t\twhile ($field = mysqli_fetch_field($this->result_id))\n\t\t{\n\t\t\t$F\t\t\t\t= new stdClass();\n\t\t\t$F->name\t\t= $field->name;\n\t\t\t$F->type\t\t= $field->type;\n\t\t\t$F->default\t\t= $field->def;\n\t\t\t$F->max_length\t= $field->max_length;\n\t\t\t$F->primary_key = ($field->flags & MYSQLI_PRI_KEY_FLAG) ? 1 : 0;\n\n\t\t\t$retval[] = $F;\n\t\t}\n\n\t\treturn $retval;\n\t}", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "function &getExtraFieldData() {\n\t\tif (!isset($this->extra_field_data)) {\n\t\t\t$this->extra_field_data = array();\n\t\t\t$res = db_query_params ('SELECT * FROM artifact_extra_field_data WHERE artifact_id=$1 ORDER BY extra_field_id',\n\t\t\t\t\t\tarray ($this->getID())) ;\n\t\t\t$ef = $this->ArtifactType->getExtraFields();\n\t\t\twhile ($arr = db_fetch_array($res)) {\n\t\t\t\t$type=$ef[$arr['extra_field_id']]['field_type'];\n\t\t\t\tif (($type == ARTIFACT_EXTRAFIELDTYPE_CHECKBOX) || ($type==ARTIFACT_EXTRAFIELDTYPE_MULTISELECT)) {\n\t\t\t\t\t//accumulate a sub-array of values in cases where you may have multiple rows\n\t\t\t\t\tif (!array_key_exists($arr['extra_field_id'], $this->extra_field_data) || !is_array($this->extra_field_data[$arr['extra_field_id']])) {\n\t\t\t\t\t\t$this->extra_field_data[$arr['extra_field_id']] = array();\n\t\t\t\t\t}\n\t\t\t\t\t$this->extra_field_data[$arr['extra_field_id']][]=$arr['field_data'];\n\t\t\t\t} else {\n\t\t\t\t\t$this->extra_field_data[$arr['extra_field_id']] = $arr['field_data'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $this->extra_field_data;\n\t}", "function db_get_fields($query)\n{\n\t$args = func_get_args();\n\t//$__result = call_user_func_array('db_query', $args);\n\n//echo 'args:<br>';\n//echo var_dump($args);\t\n\n\tif ($__result = call_user_func_array('db_query', $args)) {\n\n\t\t$_result = array();\n\t\twhile ($arr = driver_db_fetch_array($__result)) {\n\t\t\t$_result[] = $arr;\n\t\t}\n\n\t\tdriver_db_free_result($__result);\n\n\t\tif (is_array($_result)) {\n\t\t\t$result = array();\n\t\t\tforeach ($_result as $k => $v) {\n\t\t\t\tarray_push($result, reset($v));\n\t\t\t}\n\t\t}\n\n\t}\n\n\treturn is_array($result) ? $result : array();\n}", "public function fields()\n {\n return array_map(\n function (array $field) {\n return Field::fromArray($field);\n },\n $this->client->get('field')\n );\n }" ]
[ "0.6477906", "0.6410146", "0.62329745", "0.6229084", "0.6200329", "0.6188569", "0.61614054", "0.6131418", "0.61004496", "0.6092332", "0.6090686", "0.6014096", "0.60136664", "0.6007669", "0.5997587", "0.59926087", "0.59529686", "0.5948688", "0.5902566", "0.58923537", "0.5885078", "0.5883909", "0.5883909", "0.58669966", "0.58644885", "0.5860154", "0.5859033", "0.5859033", "0.58551484", "0.58551484", "0.5849962", "0.58286387", "0.58205646", "0.58190453", "0.58155817", "0.58100045", "0.58013606", "0.5799323", "0.57951784", "0.5793742", "0.579372", "0.57922864", "0.5783443", "0.577855", "0.577855", "0.577855", "0.577855", "0.577855", "0.577855", "0.577855", "0.577855", "0.577855", "0.577855", "0.577855", "0.57749134", "0.5752984", "0.5749531", "0.5749211", "0.5749211", "0.57392615", "0.57392615", "0.57321477", "0.5729058", "0.5725677", "0.57244384", "0.57244384", "0.5704329", "0.5701055", "0.5695776", "0.56944644", "0.56944644", "0.5693983", "0.56891614", "0.5686308", "0.5679887", "0.5679887", "0.5670887", "0.5670887", "0.5670887", "0.56700945", "0.56696767", "0.56551754", "0.56528336", "0.56528336", "0.56528336", "0.56528336", "0.56528336", "0.5649812", "0.5649812", "0.5649812", "0.5643942", "0.5628704", "0.5612379", "0.5612379", "0.5612379", "0.5612379", "0.5612379", "0.5612379", "0.5611839", "0.55999637", "0.5599197" ]
0.0
-1
Returns a reference to the expressions array for this query. Because this method returns by reference, alter hooks may edit the expressions array directly to make their changes. If just adding expressions, however, the use of addExpression() is preferred. Note that this method must be called by reference as well:
public function &getExpressions();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function expressions()\n {\n return $this->expressions;\n }", "public function getExpressions()\n {\n return $this->expressions;\n }", "public function getExpressions()\n {\n return $this->expressions;\n }", "public function getExpressions(): array;", "public function getExpressions();", "public function getExpressionCollection()\n {\n $expressions = array();\n\n /**\n * @var AbstractRuleInterface $rule\n */\n foreach ($this->getRules() as $rule) {\n\n $expressions = array_merge(\n $expressions,\n $rule->getExpressionCollection()->toArray()\n );\n }\n\n return new ArrayCollection($expressions);\n }", "public function getExpression();", "public function createExpression()\n {\n return new ezcQueryExpressionPgsql( $this );\n }", "public function toArray()\n {\n return $this->parse($this->expression());\n }", "public function getExpressionContext()\n {\n return $this->expressionContext;\n }", "public function getExpression()\n {\n return $this->expression;\n }", "public function getExpression()\n {\n return $this->expression;\n }", "public function getExpression() {\n return $this->expression;\n }", "public function expressionFunction();", "public function getExpressionBag()\n {\n return $this->expressionBagNode;\n }", "protected function parseExpression()\n {\n $entities = array();\n while ($e = $this->matchFuncs(array('parseAddition', 'parseEntity'))) {\n $entities[] = $e;\n // operations do not allow keyword \"/\" dimension (e.g. small/20px) so we support that here\n if (!$this->peekReg('/\\\\G\\/[\\/*]/') && ($delim = $this->matchChar('/'))) {\n $entities[] = new ILess_Node_Anonymous($delim);\n }\n }\n if (count($entities) > 0) {\n return new ILess_Node_Expression($entities);\n }\n }", "public function getQueries(){\n \treturn $this->_execedQueries;\n }", "public function getExpression()\n {\n if (array_key_exists(\"expression\", $this->_propDict)) {\n return $this->_propDict[\"expression\"];\n } else {\n return null;\n }\n }", "public function toArray()\n {\n return [\n 'expression' => $this->getExpression(),\n 'command' => $this->getCommand(),\n 'translation' => $this->getTranslation(),\n 'next' => $this->getNext(),\n ];\n }", "public function toArray(): array\n {\n return $this->grammar->compileQuery($this);\n }", "public function setExpressions($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Cloud\\Compute\\V1\\WafExpressionSetExpression::class);\n $this->expressions = $arr;\n\n return $this;\n }", "public static function getNamedExpressions()\n {\n return static::$_namedExpressions;\n }", "public function getListExpr()\n {\n return $this->readOneof(7);\n }", "public function getQueries(): array\r\n\t{\r\n\t\treturn $this->data;\r\n\t}", "public function getExpressionData()\n {\n $values = $this->valueSet;\n if ($values instanceof Select) {\n $specification = '%s IN %s';\n $types = array(self::TYPE_VALUE);\n $values = array($values);\n } else {\n $specification = '%s IN (' . implode(', ', array_fill(0, count($values), '%s')) . ')';\n $types = array_fill(0, count($values), self::TYPE_VALUE);\n }\n\n array_unshift($values, $this->identifier);\n array_unshift($types, self::TYPE_IDENTIFIER);\n\n return array(\n array(\n $specification,\n $values,\n $types,\n )\n );\n }", "public function getExpression(): string\n {\n return $this->expression;\n }", "public function getExpression(): string\n {\n return $this->expression;\n }", "public function getExpression(): string\n {\n return $this->expression;\n }", "public function getQueryArray()\n {\n return $this->query_array;\n }", "public function getExpressionNode()\n {\n return $this->expressionNode;\n }", "public function getQuery(): array {\n\t\treturn $this->query;\n\t}", "public function getExpressionLanguageEvaluator()\n {\n return $this->expressionLanguageEvaluator;\n }", "public function addExpression( $expression ) {\n if ( !$expression ) {\n return;\n }\n else if ( is_array( $expression ) ) {\n $this->expression = array_merge( $this->getExpression(), $expression );\n }\n else {\n $this->expression[] = $expression;\n }\n }", "public function expr()/*# : ExpressionInterface */;", "public function addEvaluatedExpressions(array $expressions)\n {\n foreach ($expressions as $expression => $result) {\n try {\n $this->evaluatedExpressions[] = $this->addVariable($expression, $result);\n } catch (BufferFullException $e) {\n $this->evaluatedExpressions[] = $this->variableTable->bufferFullVariable();\n }\n }\n }", "protected function getExpressionCreated() {\n return implode( \", \", \n array_map( \n function ( $var ) {\n if ( is_object( $var ) && is_a( $var, SqlbuilderDbCore::class_() ) ) {\n return SB::par( SqlbuilderDbCore::get_( $var )->build() );\n }\n return $var;\n }, array_filter( $this->getExpression() ) ) );\n }", "public function asArray()\n {\n return $this->compile();\n }", "public function getWhereExpression()\n {\n if (!count($this->filters)) {\n return null;\n }\n\n $expr = $this->qb->expr()->andX();\n foreach ($this->filters as $filter) {\n $expr = $expr->add($filter->getExpression());\n }\n\n return $expr;\n }", "public function inequalityWithCustomOperatorsPrecedenceProvider(): array\n {\n // https://www.postgresql.org/message-id/12603.1424360914%40sss.pgh.pa.us\n return [\n [\n \"j->>'space' <= j->>'node'\",\n new OperatorExpression(\n '<=',\n new OperatorExpression(\n '->>',\n new ColumnReference(new Identifier('j')),\n new StringConstant('space')\n ),\n new OperatorExpression(\n '->>',\n new ColumnReference(new Identifier('j')),\n new StringConstant('node')\n )\n )\n ]\n ];\n }", "protected function queryRules(): array\n {\n return [\n //\n ];\n }", "protected function queryRules(): array\n {\n return [\n //\n ];\n }", "public function getOperators()\n {\n return array();\n }", "public function getOperators()\n {\n return array();\n }", "public function expression() {\n\t\t$ret = '';\n\t\t$first = true;\n\t\tforeach($this->children as $child) {\n\t\t\tif(!$first) {\n\t\t\t\t$ret .= '+';\n\t\t\t} else {\n\t\t\t\t$first = false;\n\t\t\t}\n\n\t\t\tif($this->precedence() > $child->precedence()) {\n\t\t\t\t$ret .= \"(\" . $child->expression() . \")\";\n\t\t\t} else {\n\t\t\t\t$ret .= $child->expression();\n\t\t\t}\n\t\t}\n\t\treturn $ret;\n\t}", "public function createExpressionBuilder(): ExpressionBuilder\n {\n return new ExpressionBuilder($this);\n }", "function e($expr) \n {\n //call the core evaluation method\n return $this->evaluate($expr);\n }", "abstract protected function createExpression();", "private function getRegEspressions()\r\n {\r\n \t//Si no se han cargado las expresesiones regulares se cargan\r\n \t\tstatic $expressions;\r\n \t\tif (!$expressions)\r\n \t\t\t$expressions = ZendExt_FastResponse::getXML('expresiones');\r\n \t\t\t//$expressions = simplexml_load_file('Aspect/xml/expressions.xml');\r\n \t\treturn $expressions;\r\n }", "function GetArray()\r\n\t{\r\n\t\treturn $this->_arrWhere;\r\n\t}", "public function getQueries() {\r\n\t\treturn $this->queries;\r\n\t}", "protected function getValidator_ExpressionService()\n {\n return $this->services['validator.expression'] = new \\Symfony\\Component\\Validator\\Constraints\\ExpressionValidator();\n }", "function &operatorList()\n {\n return $this->Operators;\n }", "function &operatorList()\n {\n return $this->Operators;\n }", "protected function getStatQueryExpenses()\n\t{\n\t\tif (is_object($this->statQueryExpenses))\n\t\t{\n\t\t\treturn $this->statQueryExpenses;\n\t\t}\n\n\t\t$db\t= $this->getDbo();\n\n\t\t// Compose subquery for statistics of totals\n\t\t$queryTotals = $db->getQuery(true)\n\t\t\t->select($db->quoteName('id_project', 'id'))\n\t\t\t->select(Helper::COMMON_STATE_TOTAL . ' AS state')\n\t\t\t->select('COUNT(*) AS expenses, SUM(price) AS expenses_price')\n\t\t\t->from($db->quoteName(Helper::getTableName('expenses')))\n\t\t\t->group($db->quoteName('id_project'));\n\n\t\t// Compose subquery for statistics of states distribution\n\t\t$this->statQueryExpenses = $db->getQuery(true)\n\t\t\t->select($db->quoteName('id_project', 'id'))\n\t\t\t->select($db->quoteName('state'))\n\t\t\t->select('COUNT(*) AS expenses, SUM(price) AS expenses_price')\n\t\t\t->from($db->quoteName(Helper::getTableName('expenses')))\n\t\t\t->group($db->quoteName('id_project'))\n\t\t\t->group($db->quoteName('state'))\n\t\t\t->union($queryTotals);\n\n\t\treturn $this->statQueryExpenses;\n\t}", "public function getExpr3()\n {\n return $this->expr3;\n }", "public function getQueries()\n {\n return $this->queries;\n }", "public function getQueries()\r\n {\r\n return $this->queries;\r\n }", "public function getQueryAst()\n {\n return $this->query_ast;\n }", "public static function expression($expression) {\n\t\treturn new \\db\\expression($expression);\n\t}", "public function getQueryHistory(): array\n {\n return $this->History;\n }", "public function getQueryAsArray()\n {\n $query = [];\n if ($this->query) {\n parse_str($this->query, $query);\n }\n\n return $query;\n }", "public function isExpression(): bool\n {\n return $this->isExpression;\n }", "public function allEvaluations()\n {\n $qb = $this->em->createQueryBuilder();\n $qb->select('e, bfg')\n ->from(Evaluation::class, 'e')\n ->join('e.branchForGroup', 'bfg');\n $result = $qb->getQuery()->getResult();\n return $result;\n }", "public function evaluations()\n {\n return $this->hasMany(Evaluation::class);\n }", "public function query(WorkflowExpressionQuery $query)\n {\n return $this->getPersistence()->query($query);\n }", "public function where() {\r\n\t\t$args = func_get_args();\r\n\t\t$expr = array_shift($args);\r\n\t\tarray_push($this->_wheres, '(' . $this->_parameterize($expr, $args) . ')');\r\n\t\t$this->_dirty = true;\r\n\t}", "public function query_arr() {\n\t\t\treturn \\uri\\generate::query_array($this->object);\n\t\t}", "public function queries()\n {\n /** @var WPQueries $queries */\n $queries = $this->getModule('WPQueries');\n\n return $queries;\n }", "public function setExpression($val)\n {\n $this->_propDict[\"expression\"] = $val;\n return $this;\n }", "public function getQueries()\n {\n \tparse_str($this->query, $queries);\n\n \treturn $queries;\n }", "public function getEvaluations()\n\t{\n\t\t$this->ensureEvaluationsLoaded();\n\t\treturn new GmthBridgeIterator(new \\ArrayIterator($this->_evaluations),\n\t\t\t$this, '\\PhpExtended\\Gmth\\GmthBridgeEvaluation');\n\t}", "public function expressionNode()\n {\n }", "public function getOperators()\n {\n return array(\n array(\n 'not' => array('precedence' => 50, 'class' => 'Twig_Node_Expression_Unary_Not'),\n '-' => array('precedence' => 500, 'class' => 'Twig_Node_Expression_Unary_Neg'),\n '+' => array('precedence' => 500, 'class' => 'Twig_Node_Expression_Unary_Pos'),\n ),\n array(\n 'or' => array('precedence' => 10, 'class' => 'Twig_Node_Expression_Binary_Or', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n 'and' => array('precedence' => 15, 'class' => 'Twig_Node_Expression_Binary_And', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n 'b-or' => array('precedence' => 16, 'class' => 'Twig_Node_Expression_Binary_BitwiseOr', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n 'b-xor' => array('precedence' => 17, 'class' => 'Twig_Node_Expression_Binary_BitwiseXor', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n 'b-and' => array('precedence' => 18, 'class' => 'Twig_Node_Expression_Binary_BitwiseAnd', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '==' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Equal', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '!=' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_NotEqual', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '<' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Less', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '>' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Greater', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '>=' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_GreaterEqual', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '<=' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_LessEqual', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n 'not in' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_NotIn', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n 'in' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_In', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '..' => array('precedence' => 25, 'class' => 'Twig_Node_Expression_Binary_Range', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '+' => array('precedence' => 30, 'class' => 'Twig_Node_Expression_Binary_Add', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '-' => array('precedence' => 30, 'class' => 'Twig_Node_Expression_Binary_Sub', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '~' => array('precedence' => 40, 'class' => 'Twig_Node_Expression_Binary_Concat', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '*' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_Mul', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '/' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_Div', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '//' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_FloorDiv', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '%' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_Mod', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n 'is' => array('precedence' => 100, 'callable' => array($this, 'parseTestExpression'), 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n 'is not' => array('precedence' => 100, 'callable' => array($this, 'parseNotTestExpression'), 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),\n '**' => array('precedence' => 200, 'class' => 'Twig_Node_Expression_Binary_Power', 'associativity' => Twig_ExpressionParser::OPERATOR_RIGHT),\n ),\n );\n }", "public function getExpression() : string {\n return $this->cronExpr;\n }", "public function getSQLExpression()\n {\n return $this->getDriver()->getColumnSQLExpression($this);\n }", "public function setExpression($expression)\n {\n $this->expression = $expression;\n\n return $this;\n }", "public function queries() {\n return $this->queries;\n }", "public function toArray()\n {\n $vars = get_object_vars($this);\n $vars['type'] = $this->getType();\n\n $queries = array();\n foreach ($vars as $k => $v) {\n if ($v !== null) {\n $values = is_array($v) ? $v : array(':'=>$v);\n foreach ($values as $matcher=>$value) {\n $queries[] = $k . $matcher . $value;\n }\n }\n }\n return $queries;\n }", "public function toArray()\n {\n return [\n 'IntervalExpression' => [\n 'duration' => $this->duration,\n 'type' => $this->type,\n ],\n ];\n }", "public function reverseArray($expression): static;", "public function condition()\n {\n return $this->queries->map(function ($query) {\n return [$query['method'] => $query['arguments']];\n })->toArray();\n }", "public function getQueryHistory(): array;", "public function compile()\n {\n $aOut = [];\n foreach ($this->aTriggers as $mTrigger) {\n if ($mTrigger instanceof self) {\n $aOut = array_merge($aOut, $mTrigger->compile());\n } else {\n $aOut[] = $mTrigger->compile();\n }\n }\n\n return $aOut;\n }", "public function setQuery(array $query)\n {\n $this->_query = new ExtArray($query);\n\n return $this;\n }", "private function _clean_input_field_expr($str)\n {\n if (is_array($str))\n {\n $new_array = array();\n foreach ($str as $key => $val)\n {\n $new_array[$key] = $this->_clean_input_field_expr($val);\n }\n return $new_array;\n }\n return $this->filter_field_expression($str);\n }", "public function getEvaluations() {\n if(!property_exists($this->data, 'evaluations')) $this->loadEvaluations();\n require_once(\"Event.php\");\n $evaluations = array();\n foreach($this->data->classes as $evaluation) {\n //FIXME I could not find a scheduled evaluation at this time in order to get the correct type\n $evaluation->type = \"EVALUATION\";\n $evaluation->period = $evaluation->evaluationPeriod;\n unset($evaluation->evaluationPeriod);\n $evaluations[] = new Event($this->fenixEdu, $evaluation);\n }\n return $evaluations;\n }", "public function getOperators()\n\t{\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'!' => array('precedence' => 50, 'class' => 'Twig_Node_Expression_Unary_Not'),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t// precedence settings are copied from similar operators in Twig core extension\n\t\t\t\t'||' => array('precedence' => 10, 'class' => 'Twig_Node_Expression_Binary_Or', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\t\t\t\t'&&' => array('precedence' => 15, 'class' => 'Twig_Node_Expression_Binary_And', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\n\t\t\t\t'eq' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Equal', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\n\t\t\t\t'ne' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_NotEqual', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\t\t\t\t'neq' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_NotEqual', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\t\t\t\t'<>' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_NotEqual', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\n\t\t\t\t'===' => array('precedence' => 20, 'class' => '\\phpbb\\template\\twig\\node\\expression\\binary\\equalequal', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\t\t\t\t'!==' => array('precedence' => 20, 'class' => '\\phpbb\\template\\twig\\node\\expression\\binary\\notequalequal', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\n\t\t\t\t'gt' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Greater', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\t\t\t\t'gte' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_GreaterEqual', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\t\t\t\t'ge' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_GreaterEqual', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\t\t\t\t'lt' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Less', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\t\t\t\t'lte' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_LessEqual', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\t\t\t\t'le' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_LessEqual', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\n\t\t\t\t'mod' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_Mod', 'associativity' => \\Twig_ExpressionParser::OPERATOR_LEFT),\n\t\t\t),\n\t\t);\n\t}", "public function getQueryAsArray();", "public function newQuery()\n {\n return $this->registerGlobalScopes($this->newQueryWithoutScopes());\n }", "public function getCalculators()\n {\n return $this->calculators;\n }", "public function getInterpreters() : Array\n {\n $ie_collection = $this->getInterpreterEvents();\n if (! $ie_collection->count()) {\n return [];\n }\n if ($this->interpreters) {\n return $this->interpreters;\n }\n $this->interpreters = array_map(function ($ie) {\n return $ie->getInterpreter();\n }, $ie_collection->toArray());\n\n return $this->interpreters;\n }", "public function getExpression(): string\n {\n if ($this->wrapMode > 0) {\n return ($this->wrapMode === static::WRAP_IN_TAGS ? '<?php ' : '<?= ') . $this->expression . ' ?>';\n }\n\n return $this->expression;\n }", "public static function get_table_queries_for_addons(){\n $sqls = [];\n $sqls = apply_filters('latepoint_addons_sqls', $sqls);\n return $sqls;\n }", "public function get(): array\n {\n return [\n 'type' => 'cast',\n 'left' => $this->leftOperand,\n 'right' => $this->rightOperand->get(),\n 'file' => $this->file,\n 'line' => $this->line,\n 'char' => $this->char,\n ];\n }", "public function createMultiQuery()\n {\n $query = new MultiQuery($this->elastic);\n $query->listeners = $this->listeners;\n return $query;\n }", "public function evaluations()\n\t{\n\t\treturn $this->hasMany('App\\Models\\Evaluation', 'application_id');\n\t}", "protected function getContextQuery()\n {\n return $this->contextQuery;\n }", "public function getOperators($expression)\n\t{\n\t\trequire_once \"./Modules/TestQuestionPool/classes/class.ilOperatorsExpressionMapping.php\";\n\t\treturn ilOperatorsExpressionMapping::getOperatorsByExpression($expression);\n\t}", "protected function parseExpressionField($field)\n {\n $tags = [];\n // Parse the field\n $allLines = tx_tesseract_utilities::parseConfigurationField($field);\n // Interpret each line\n foreach ($allLines as $line) {\n try {\n $evaluatedExpression = tx_expressions_parser::evaluateExpression($line);\n\n // If we specifically asked to get all content, we just skip tags selection\n if ($evaluatedExpression === '\\\\all') {\n continue;\n }\n // else we try to find tags\n elseif (!empty($evaluatedExpression)) {\n if (is_array($evaluatedExpression)) {\n $tagList = $evaluatedExpression;\n } elseif (strpos($evaluatedExpression, ',') === false) {\n $tagList = [$evaluatedExpression];\n } else {\n $tagList = t3lib_div::trimExplode(',', $evaluatedExpression, 1);\n }\n foreach ($tagList as $aTag) {\n $tags[] = intval($aTag);\n }\n }\n } catch (Exception $e) {\n // Do nothing if expression parsing failed\n }\n }\n\n return $tags;\n }", "public function getExpr1()\n {\n return $this->expr1;\n }" ]
[ "0.73748434", "0.73160595", "0.73160595", "0.71286756", "0.6994226", "0.6463615", "0.6152274", "0.5935217", "0.5925115", "0.5913215", "0.5843989", "0.5843989", "0.58122367", "0.5542182", "0.5528032", "0.5501835", "0.5494752", "0.54066336", "0.53589207", "0.53466326", "0.5346525", "0.52985483", "0.52925426", "0.52619606", "0.522879", "0.5206117", "0.5206117", "0.5206117", "0.51609623", "0.5148938", "0.5133403", "0.50972044", "0.5060435", "0.5038458", "0.5027893", "0.5020962", "0.50148934", "0.50145835", "0.50001585", "0.49002558", "0.49002558", "0.48832273", "0.48832273", "0.4879459", "0.48710006", "0.48685694", "0.4861572", "0.48440516", "0.48284554", "0.48105186", "0.4801088", "0.4799744", "0.4799744", "0.47925717", "0.47756958", "0.47753775", "0.47611067", "0.47583482", "0.47566465", "0.4738521", "0.47376782", "0.47370124", "0.47297516", "0.4689296", "0.4686867", "0.46794283", "0.4672248", "0.46694934", "0.46685696", "0.4664008", "0.4658747", "0.46457422", "0.4641105", "0.4628319", "0.462419", "0.45952046", "0.45848536", "0.45814386", "0.4579427", "0.45749268", "0.45598555", "0.45575646", "0.4556666", "0.45526692", "0.45475152", "0.45365486", "0.45276093", "0.45164624", "0.451178", "0.4503518", "0.4502822", "0.45009047", "0.44940346", "0.44919762", "0.44838145", "0.44832814", "0.4481429", "0.44760796", "0.4475673", "0.4462418" ]
0.7194113
3
Returns a reference to the order by array for this query. Because this method returns by reference, alter hooks may edit the orderby array directly to make their changes. If just adding additional ordering fields, however, the use of orderBy() is preferred. Note that this method must be called by reference as well:
public function &getOrderBy();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 setOrderBy(array $orderBy);", "function orderBy ()\n {\n $this->A = call_user_func_array ('array_orderBy', array_merge ([$this->A], func_get_args ()));\n return $this;\n }", "public function getOrder()\n {\n return $this->getAdditionalParam('orderBy');\n }", "public function order($orderBy, $reset = false)\n {\n $orderBy = trim($orderBy);\n\n if ($reset) {\n //reset order by\n $this->_order = array();\n }\n\n if (!strlen($orderBy)) {\n //sanity check\n return $this;\n }\n\n //add the where to the array of wheres to use\n $this->_order[] = $orderBy;\n //return this to allow method chaining\n return $this;\n }", "protected function getOrderByQuery()\n {\n\t\t$isWhat = $this->model->isWhat();\n\t\t$remoteTable = $this->model->tableName();\n\t\t$localOrderBy = [];\n\t\t$relations = [\n\t\t\t\\nitm\\widgets\\models\\Vote::tableName() => [\n\t\t\t\t'select' => new Expression('COUNT(*)'),\n\t\t\t],\n\t\t\t\\nitm\\widgets\\models\\Issues::tableName() => [\n\t\t\t\t'select' => new Expression('COALESCE(created_at, updated_at)'),\n\t\t\t],\n\t\t\t\\nitm\\widgets\\models\\Replies::tableName() => [\n\t\t\t\t'select' => new Expression('COALESCE(created_at, updated_at)'),\n\t\t\t],\n\t\t\t\\nitm\\widgets\\models\\Revisions::tableName() => [\n\t\t\t\t'select' => ['COUNT(*)'],\n\t\t\t]\n\t\t];\n\t\tforeach($relations as $table=>$relation){\n\t\t\t$localOrderBy[serialize(new Expression('('.(new Query)\n\t\t\t\t->from($table)\n\t\t\t\t->select($relation['select'])\n\t\t\t\t->where([\n\t\t\t\t\t\"$table.parent_id\" => \"$remoteTable.id\",\n\t\t\t\t\t\"$table.parent_type\" => $isWhat\n\t\t\t\t])->createCommand()->getRawSql().')'))] = SORT_DESC;\n\t\t}\n $localOrderBy = array_merge($localOrderBy, [\n serialize(new Expression(\"(CASE $remoteTable.status\n\t\t\t\tWHEN 'normal' THEN 0\n\t\t\t\tWHEN 'important' THEN 1\n\t\t\t\tWHEN 'critical' THEN 2\n\t\t\tEND)\")) => SORT_DESC,\n ]);\n\n return array_merge($localOrderBy, \\nitm\\helpers\\QueryFilter::getOrderByQuery($this->model));\n }", "public function getOrderBy() {\n return $this->_orderBy;\n }", "public function getOrderBy()\n {\n if (!array_key_exists(self::ORDER_BY, $this->items)) {\n return [];\n }\n\n return $this->items[self::ORDER_BY];\n }", "public function getOrderBy()\n {\n return $this->order_by;\n }", "public function getOrderBy()\n {\n return $this->order_by;\n }", "public function getOrderBy()\n {\n return $this->order_by;\n }", "public function getOrderBy()\r\n\t{\r\n\t\treturn $this->orderBy;\r\n\t}", "public function orderBy(){\r\n $this->orderBy = \"ORDER BY \";\r\n $args = func_get_args();\r\n foreach($args as $arg){\r\n $this->orderBy.= $this->db->formatTableName($arg);\r\n if(end($args) !== $arg){\r\n $this->orderBy.=\", \";\r\n } \r\n\r\n }\r\n return $this;\r\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 getOrderBy()\n {\n $orderby = $this->orderby;\n if (!$orderby) {\n $orderby = [];\n }\n\n if (!is_array($orderby)) {\n // spilt by any commas not within brackets\n $orderby = preg_split('/,(?![^()]*+\\\\))/', $orderby ?? '');\n }\n\n foreach ($orderby as $k => $v) {\n if (strpos($v ?? '', ' ') !== false) {\n unset($orderby[$k]);\n\n $rule = explode(' ', trim($v ?? ''));\n $clause = $rule[0];\n $dir = (isset($rule[1])) ? $rule[1] : 'ASC';\n\n $orderby[$clause] = $dir;\n }\n }\n\n return $orderby;\n }", "private function getOrdering()\n {\n return [[\n 'column' => 0,\n 'dir' => 'asc',\n ]];\n }", "function Orderer($orderBy, $rowSchema = null) {\n\t\tif (!is_array($orderBy))\n\t\t\t$orderBy = array($orderBy);\n\t\tif ($rowSchema)\n\t\t{\n\t\t\t// Fix the comparison types\n\t\t\tforeach ($orderBy as $index => $discard)\n\t\t\t{\n\t\t\t\t$item =& $orderBy[$index]; // PHP4\n\t\t\t\tif ($item->compareAs == DEFAULT_COMPARISON)\n\t\t\t\t{\n\t\t\t\t\t$item->compareAs = get_comparison_type_for_col_type($rowSchema[$item->field]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->orderByList = $orderBy;\n\t}", "private function setCustomOrderBy()\n\t{\n\t\tif (!$this->useDataProvider && $this->customQuery->orderBy) {\n\t\t\t$this->orderBy = $this->customQuery->orderBy;\n\t\t} else {\n\t\t\t$this->sort = $this->customQuery->orderBy; //set $this->sort property for dataProvider sorting\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setOrderBy($var)\n {\n GPBUtil::checkString($var, True);\n $this->order_by = $var;\n\n return $this;\n }", "public function setOrderBy($var)\n {\n GPBUtil::checkString($var, True);\n $this->order_by = $var;\n\n return $this;\n }", "public function setOrderBy($var)\n {\n GPBUtil::checkString($var, True);\n $this->order_by = $var;\n\n return $this;\n }", "public function resetOrderBy(): static\n {\n $this->orderBy = [];\n return $this;\n }", "public function refreshOrderBy()\n {\n $query = $this->model->getQuery();\n unset($query->orders);\n\n $this->model->setQuery($query);\n return $this;\n }", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function orderBy($order = \"\"){\n\t\t\tif(is_string($order) && strlen($order) > 0){\n\t\t\t\t$this->orderBy = \" ORDER BY \" . $order;\n\t\t\t}else{\n\t\t\t\t$this->orderBy = false;\n\t\t\t}\n\t\t\treturn $this;\n\t\t}", "public function setOrderBy(array $orderBy = [])\n {\n if (!empty($orderBy)) {\n $this->items[self::ORDER_BY] = $orderBy;\n } else {\n unset($this->items[self::ORDER_BY]);\n }\n }", "public function order($orderBy) {\r\n $this->sqlOrderBy = $orderBy;\r\n return $this;\r\n }", "public function refreshOrderBy()\r\n\t{\r\n\t\t$query = $this->model->getQuery();\r\n\t\tunset($query->orders);\r\n\r\n\t\t$this->model->setQuery($query);\r\n\t\treturn $this;\r\n\t}", "public function setOrderBy($orderBy)\n {\n return $this->setAdditionalParam('orderBy', $orderBy);\n }", "function getOrderBy()\n\t{\n\t\tglobal $log;\n $log->debug(\"Entering getOrderBy() method ...\");\n\t\tif (isset($_REQUEST['order_by']))\n\t\t\t$order_by = $_REQUEST['order_by'];\n\t\telse\n\t\t\t$order_by = (isset($_SESSION['NOTES_ORDER_BY'])?($_SESSION['NOTES_ORDER_BY']):($this->default_order_by));\n\t\t$log->debug(\"Exiting getOrderBy method ...\");\n\t\treturn $order_by;\n\t}", "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(array $fields, $order = null);", "function getOrdering() {\n return $this->ordering;\n }", "private function getSortOrder()\n {\n return [\n $this->sortOrderBuilder\n ->setDirection(SortOrder::SORT_ASC)\n ->setField(JobConfig::SCHEMA_JOB_FIELD_PRIORITY)\n ->create(),\n $this->sortOrderBuilder\n ->setDirection(SortOrder::SORT_ASC)\n ->setField(JobConfig::SCHEMA_JOB_FIELD_CREATED)\n ->create()\n ];\n }", "protected static function addOrderBy(SugarQuery $q, array $orderByOption)\n {\n foreach ($orderByOption as $orderBy) {\n // ID and date_modified are used to give some order to the system\n if ($orderBy[0] != 'date_modified' && $orderBy[0] != 'id') {\n self::verifyField($q, $orderBy[0]);\n }\n $q->orderBy($orderBy[0], $orderBy[1]);\n }\n }", "public function getSortOrders()\n {\n return Cache::rememberForever(self::sortOrderCacheKey($this->id), function () {\n return \\DB::table('offline_mall_category_product')\n ->where('product_id', $this->id)\n ->get(['category_id', 'sort_order',])\n ->pluck('sort_order', 'category_id')\n ->toArray();\n });\n }", "public function setOrderBy($orderBy) {\n\t\t$this->orderBy = $orderBy;\n\t\treturn $this;\n\t}", "public function getOrderBy() {\n\t\tglobal $log, $adb;\n\t\t$log->debug('> getOrderBy');\n\t\t$cmodule = get_class($this);\n\t\t$order_by = '';\n\t\tif (GlobalVariable::getVariable('Application_ListView_Default_Sorting', 0, $cmodule)) {\n\t\t\t$order_by = GlobalVariable::getVariable('Application_ListView_Default_OrderField', $this->default_order_by, $cmodule);\n\t\t}\n\n\t\tif (isset($_REQUEST['order_by'])) {\n\t\t\t$order_by = $adb->sql_escape_string($_REQUEST['order_by']);\n\t\t} elseif (!empty($_SESSION[$cmodule.'_Order_By'])) {\n\t\t\t$order_by = $adb->sql_escape_string($_SESSION[$cmodule.'_Order_By']);\n\t\t}\n\t\t$log->debug('< getOrderBy');\n\t\treturn $order_by;\n\t}", "public function OrderBy($by = null) {\r\n $this->orderBy = $by;\r\n }", "public function getQueryOrderby() {\n return '`'.$this->name.'`';\n }", "public function setOrderBy($orderBy)\r\n\t{\r\n\t\t$this->orderBy = $orderBy;\r\n\t}", "public function order_by() {\r\n\t\t$fields = func_get_args();\r\n\r\n\t\t// Loop through the columns\r\n\t\tfor ( $i = 0; $i < intval( $_GET['iSortingCols'] ); $i++ ) {\r\n\t\t\t// Add the necessary comman\r\n\t\t\tif ( !empty( $this->order_by ) )\r\n\t\t\t\t$this->order_by .= ',';\r\n\t\t\t\r\n\t\t\t// Compile the fields\r\n\t\t\t$this->order_by .= $fields[$_GET['iSortCol_' . $i]] . ' ' . $_GET['sSortDir_' . $i];\r\n\t\t}\r\n\t\t\r\n\t\t// If it's not empty\r\n\t\tif ( !empty( $this->order_by ) )\r\n\t\t\t$this->order_by = ' ORDER BY ' . $this->order_by;\r\n\t}", "abstract protected function _buildOrderBy( $order );", "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 getOrderBy()\n\t{\n\t\tglobal $log;\n\t\t$log->debug(\"Entering getOrderBy() method ...\");\n\t\tif (isset($_REQUEST['order_by']))\n\t\t\t$order_by = $_REQUEST['order_by'];\n\t\telse\n\t\t\t$order_by = (($_SESSION['PRODUCTS_ORDER_BY'] != '')?($_SESSION['PRODUCTS_ORDER_BY']):($this->default_order_by));\n\t\t$log->debug(\"Exiting getOrderBy method ...\");\n\t\treturn $order_by;\n\t}", "protected function _compile_order_by()\n\t{\n\t\tif (is_array($this->qb_orderby) && count($this->qb_orderby) > 0)\n\t\t{\n\t\t\tfor ($i = 0, $c = count($this->qb_orderby); $i < $c; $i++)\n\t\t\t{\n\t\t\t\tif ($this->qb_orderby[$i]['escape'] !== FALSE && ! $this->_is_literal($this->qb_orderby[$i]['field']))\n\t\t\t\t{\n\t\t\t\t\t$this->qb_orderby[$i]['field'] = $this->protect_identifiers($this->qb_orderby[$i]['field']);\n\t\t\t\t}\n\n\t\t\t\t$this->qb_orderby[$i] = $this->qb_orderby[$i]['field'].$this->qb_orderby[$i]['direction'];\n\t\t\t}\n\n\t\t\treturn $this->qb_orderby = \"\\nORDER BY \".implode(', ', $this->qb_orderby);\n\t\t}\n\t\telseif (is_string($this->qb_orderby))\n\t\t{\n\t\t\treturn $this->qb_orderby;\n\t\t}\n\n\t\treturn '';\n\t}", "public function orderBy($columns)\n\t{\n\t\t$this->query->orderBy = $columns;\n\t\treturn $this;\n\t}", "public function orderBy($field) {\n\t$this->parseQuery->orderBy($field);\n }", "function GetOrderBy() {\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql(\"\", \"\", \"\", \"\", $this->getSqlOrderBy(), \"\", $sSort);\n\t}", "function GetOrderBy() {\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql(\"\", \"\", \"\", \"\", $this->getSqlOrderBy(), \"\", $sSort);\n\t}", "function GetOrderBy() {\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql(\"\", \"\", \"\", \"\", $this->getSqlOrderBy(), \"\", $sSort);\n\t}", "public function getOrderBy(): ?string\n {\n return $this->orderBy;\n }", "function query_orderby( $orderby ) {\n\t\tglobal $wpdb;\n\n\t\t$array_return = [];\n\n\t\tif ( $this->is_woocommerce_search() && ! empty( $this->ordering ) ) {\n\n\t\t\tif ( ! isset( $this->ordering['wc_orderby'] ) ) {\n\t\t\t\t$this->get_woocommerce_ordering();\n\t\t\t}\n\n\t\t\t// depending on the sorting we need to do different things\n\t\t\tif ( isset( $this->ordering['wc_orderby'] ) ) {\n\t\t\t\t$order = isset( $this->ordering['order'] ) ? $this->ordering['order'] : 'ASC';\n\t\t\t\tswitch ( $this->ordering['wc_orderby'] ) {\n\t\t\t\t\tcase 'price':\n\t\t\t\t\tcase 'price-desc':\n\t\t\t\t\tcase 'popularity':\n\t\t\t\t\t\t$order = in_array( $this->ordering['wc_orderby'], array( 'popularity', 'price-desc' ) )\n\t\t\t\t\t\t\t? 'DESC' : $order;\n\n\t\t\t\t\t\t$array_return[] = [\n\t\t\t\t\t\t\t'column' => 'swpwc.meta_value+0',\n\t\t\t\t\t\t\t'direction' => $order,\n\t\t\t\t\t\t];\n\n\t\t\t\t\t\t// SeachWP 3.x compat.\n\t\t\t\t\t\t$orderby = \"ORDER BY swpwc.meta_value+0 {$order}, \" . str_replace( 'ORDER BY', '', $orderby );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t/* case 'price-desc':\n\t\t\t\t\t\t$orderby = \"ORDER BY {$wpdb->postmeta}.meta_value+0 DESC, \" . str_replace( 'ORDER BY', '', $orderby );\n\t\t\t\t\t\tbreak; */\n\t\t\t\t\tcase 'date':\n\t\t\t\t\t\t$array_return[] = [\n\t\t\t\t\t\t\t'column' => \"{$wpdb->posts}.post_date\",\n\t\t\t\t\t\t\t'direction' => 'DESC',\n\t\t\t\t\t\t];\n\n\t\t\t\t\t\t// SeachWP 3.x compat.\n\t\t\t\t\t\t$orderby = 'ORDER BY post_date DESC';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'rating':\n\t\t\t\t\t\t$array_return[] = [\n\t\t\t\t\t\t\t'column' => 'average_rating',\n\t\t\t\t\t\t\t'direction' => 'DESC',\n\t\t\t\t\t\t];\n\t\t\t\t\t\t$array_return[] = [\n\t\t\t\t\t\t\t'column' => \"{$wpdb->posts}.post_date\",\n\t\t\t\t\t\t\t'direction' => 'DESC',\n\t\t\t\t\t\t];\n\n\t\t\t\t\t\t// SeachWP 3.x compat.\n\t\t\t\t\t\t$orderby = \"ORDER BY average_rating DESC, {$wpdb->posts}.post_date DESC\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'name':\n\t\t\t\t\t\t$array_return[] = [\n\t\t\t\t\t\t\t'column' => 'post_title',\n\t\t\t\t\t\t\t'direction' => 'ASC',\n\t\t\t\t\t\t];\n\n\t\t\t\t\t\t// SeachWP 3.x compat.\n\t\t\t\t\t\t$orderby = 'ORDER BY post_title ASC';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $this->is_legacy_searchwp() ? $orderby : $array_return;\n\t}", "public function whereOrder($where, $sort_by, $order_by = 'asc')\n {\n return $this->scopeQuery(function ($query) use ($where, $sort_by, $order_by) {\n $q = $query->where($where);\n // See if there are multi-column sorts\n if (\\is_array($sort_by)) {\n foreach ($sort_by as $key => $sort) {\n $q = $q->orderBy($key, $sort);\n }\n } else {\n $q = $q->orderBy($sort_by, $order_by);\n }\n\n return $q;\n });\n }", "public function dbOrderBy($orderbyCols) {\r\n $this->orderByCols = $orderbyCols;\r\n return $this;\r\n }", "function orderBy($columns, $direction = \"\") {\n\t\t\n\t\tif (gettype($columns) == 'array') {\n\t\t\t$cols = array();\n\t\t\tforeach ($columns as $col => $dir) {\n\t\t\t\t$cols[] = \"`$col` $dir\";\n\t\t\t}\n\t\t\t$cols = implode($cols, \",\");\n\t\t} else {\n\t\t\tif (!preg_match(\"/\\\\)$/\", $columns)) $cols = \"`$columns` $direction\";\n\t\t\telse $cols = \"$columns $direction\";\n\t\t\t// $cols = \"`\" . implode(\"` `\", preg_split(\"/\\s/i\", $columns)) . \"` $direction\";\n\t\t\t// $cols = \"`$columns` $direction\";\n\t\t}\n\t\t\n\t\tif (!isset($this->stmts['orderBy']))\n\t\t\t$cols = \"ORDER BY $cols\";\n\t\t\n\t\t$this->appendStmt('orderBy', \"$cols\");\n\n\t\treturn $this;\n\t}", "private function buildOrderBy() {\n\t\t$hasorderby = false;\n\t\tforeach($this->ordergroup as $key=>$extra) {\n\t\t\tif(strpos(strtoupper($extra), 'ORDER BY') !== false) {\n\t\t\t\t$this->orders[] = str_replace('ORDER BY', \"\", strtoupper($extra));\n\t\t\t\tunset($this->ordergroup[$key]);\n\t\t\t}\n\t\t\tif(strpos(strtoupper($extra), 'LIMIT') !== false) {\n\t\t\t\t$this->limit = $extra;\n\t\t\t\tunset($this->ordergroup[$key]);\n\t\t\t}\n\t\t\tif(strpos(strtoupper($extra), 'GROUP BY') !== false) { \n\t\t\t\t$this->groups[] = str_replace('GROUP BY', \"\", strtoupper($extra));\n\t\t\t\tunset($this->ordergroup[$key]);\n\t\t\t}\n\t\t}\n\t}", "public function orderBy($sql);", "public function order_by($criteria, $order = 'ASC')\n {\n if(is_array($criteria))\n {\n foreach ($criteria as $key=>$value)\n {\n $this->_database->order_by($key, $value);\n }\n }\n else\n {\n $this->_database->order_by($criteria, $order);\n }\n return $this;\n }", "protected function getXXXOrder($orderBy)\n\t{\n\t\t$orderArr = explode('_', (($orderBy == '') ? 'MAX(r.postdate)' : $orderBy));\n\t\tswitch ($orderArr[0]) {\n\t\t\tcase 'title':\n\t\t\t\t$orderField = 'xxx.title';\n\t\t\t\tbreak;\n\t\t\tcase 'posted':\n\t\t\tdefault:\n\t\t\t\t$orderField = 'MAX(r.postdate)';\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn array($orderField, ((isset($orderArr[1]) && preg_match('/^asc|desc$/i', $orderArr[1])) ? $orderArr[1] : 'desc'));\n\t}", "public function getOrder()\n {\n //Note: order by parts are not \"named\" so it's all or nothing\n return $this->_get('_order');\n }", "public function orderBy(array $orderByClause): self\n {\n $this->fetchData[self::ORDER_CLAUSE] = $orderByClause;\n\n return $this;\n }", "private function prepareSort(array $orderBy): array\n {\n $column = array_column($orderBy, 'base_expr');\n $sortParams = array_column($orderBy, 'direction');\n $sortColumn = array_combine($column, $sortParams);\n array_walk($sortColumn,\n function(&$value) {\n if ($value === 'ASC') {\n $value = 1;\n }\n\n if ($value === 'DESC') {\n $value\n = -1;\n }\n });\n\n return $sortColumn;\n }", "public function orderBy($vars){\n\t\t\t$string = self::ORDER_BY;\n\t\t\t\n\t\t\t$cpt = 0;\n\t\t\tforeach($vars as $var){\n\t\t\t\t$string .= ' ' . $var;\n\t\t\t\tif(($cpt+1) < count($vars)){\n\t\t\t\t\t$string .= ', ';\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->_query .= $string . ' ';\n\t\t\treturn $this->_returnObject ? $this : $string;\n\t\t}", "public function orderBy($columns);", "public function getOrderByClause() {\n\n\t\ttx_pttools_assert::isTrue($this->isSortable, array('message' => 'This column is not sortable'));\n\t\tswitch ($this->sortingState) {\n\t\t\tcase self::SORTINGSTATE_NONE: {\n\t\t\t\t$orderBy = '';\n\t\t\t} break;\n\n\t\t\tcase self::SORTINGSTATE_ASC: {\n\t\t\t\t$orderBy = sprintf('%s.%s %s', $this->table, $this->field, 'ASC');\n\t\t\t} break;\n\n\t\t\tcase self::SORTINGSTATE_DESC: {\n\t\t\t\t$orderBy = sprintf('%s.%s %s', $this->table, $this->field, 'DESC');\n\t\t\t} break;\n\n\t\t\tdefault: {\n\t\t\t\tthrow new tx_pttools_exception('Invalid sorting state!');\n\t\t\t} break;\n\t\t}\n\t\treturn $orderBy;\n\t}", "protected function enforceOrderBy()\n {\n if (empty($this->query->orders) && empty($this->query->unionOrders)) {\n $this->orderBy($this->model->getQualifiedKeyName(), 'asc');\n }\n }", "function get_woocommerce_ordering() {\n\t\tif ( ! $this->is_woocommerce_search() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! function_exists( 'WC' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! isset( WC()->query ) && ! is_object( WC()->query ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! method_exists( WC()->query, 'get_catalog_ordering_args' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->ordering = WC()->query->get_catalog_ordering_args();\n\t\t$this->ordering['wc_orderby'] = isset( $_GET['orderby'] ) ? $_GET['orderby'] : '';\n\t}", "public function rawOrderBy($orderBy)\n {\n $this->orderBy = new Expressions\\OrderByClause($orderBy, null, $this);\n return $this;\n }", "private function _buildOrderClause()\n {\n $order = array();\n\n switch ( $this->orderby ) {\n case self::ORDERBY_DATE:\n $order[] = 'date_enreg' . ' ' . $this->ordered;\n break;\n case self::ORDERBY_BEGIN_DATE:\n $order[] = 'date_debut_cotis' . ' ' . $this->ordered;\n break;\n case self::ORDERBY_END_DATE:\n $order[] = 'date_fin_cotis' . ' ' . $this->ordered;\n break;\n case self::ORDERBY_MEMBER:\n $order[] = 'nom_adh' . ' ' . $this->ordered;\n $order[] = 'prenom_adh' . ' ' . $this->ordered;\n break;\n case self::ORDERBY_TYPE:\n $order[] = ContributionsTypes::PK;\n break;\n case self::ORDERBY_AMOUNT:\n $order[] = 'montant_cotis' . ' ' . $this->ordered;\n break;\n /*\n Hum... I really do not know how to sort a query with a value that\n is calculated code side :/\n case self::ORDERBY_DURATION:\n break;*/\n default:\n $order[] = $this->orderby . ' ' . $this->ordered;\n break;\n }\n\n return $order;\n }", "public function setOrder($orderBy)\n {\n return $this->setOrderBy($orderBy);\n }", "private function setOrderBy(QueryBuilder $qb)\n {\n if (isset($this->requestParams['order']) && count($this->requestParams['order'])) {\n $counter = count($this->requestParams['order']);\n\n for ($i = 0; $i < $counter; $i++) {\n $columnIdx = (int) $this->requestParams['order'][$i]['column'];\n $requestColumn = $this->requestParams['columns'][$columnIdx];\n\n if ('true' == $requestColumn['orderable']) {\n $columnName = $this->orderColumns[$columnIdx];\n $orderDirection = $this->requestParams['order'][$i]['dir'];\n\n $qb->addOrderBy($columnName, $orderDirection);\n }\n }\n }\n\n return $this;\n }", "function elm_admin_get_order_by_options() {\n\t$options = array(\n\t\t'asc' => __('ASC', 'elm'),\n\t\t'desc' => __('DESC', 'elm')\n\t);\n\t\n\treturn $options;\n}", "protected function orderBy(array $order){\n $query = \" ORDER BY \";\n foreach ($order as $v){\n $query .= $this->genTableVar($v) . \", \";\n }\n $query = substr($query, 0, -2);\n $this->query .= $query . \" \";\n }", "public function orderField(): array\n {\n return ['id' => 'desc'];\n }" ]
[ "0.7293336", "0.71407413", "0.7022439", "0.6812046", "0.6811274", "0.67910445", "0.6767974", "0.67637426", "0.67394114", "0.67394114", "0.67394114", "0.6726352", "0.67256206", "0.6532762", "0.6524524", "0.6491508", "0.64861536", "0.6437179", "0.64101696", "0.64101696", "0.64101696", "0.6364922", "0.6350435", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63228136", "0.63144433", "0.6294927", "0.6294271", "0.6289789", "0.6275687", "0.625432", "0.62534606", "0.62394184", "0.6216589", "0.6176541", "0.6175405", "0.6174711", "0.61621875", "0.61491305", "0.61132157", "0.6077282", "0.60743564", "0.60450214", "0.60429895", "0.60386264", "0.60343206", "0.600822", "0.59972656", "0.59757894", "0.596971", "0.596971", "0.596971", "0.5967983", "0.5964074", "0.5958883", "0.5951576", "0.5937382", "0.59193695", "0.591082", "0.59042674", "0.59031564", "0.5892886", "0.5886998", "0.58849907", "0.5859967", "0.58592045", "0.58495736", "0.58429176", "0.58348805", "0.58334374", "0.5825364", "0.5789122", "0.57880753", "0.57801694", "0.57687783", "0.5760813" ]
0.7101915
2
Returns a reference to the groupby array for this query. Because this method returns by reference, alter hooks may edit the groupby array directly to make their changes. If just adding additional grouping fields, however, the use of groupBy() is preferred. Note that this method must be called by reference as well:
public function &getGroupBy();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGroupBy() {\n return $this->_groupBy;\n }", "public function getGroupBy()\n {\n return $this->groupby;\n }", "public function get_group_by()\n\t{\n\t\treturn NULL;\n\t}", "public function groupBy()\n {\n $this->groupBy = func_get_args();\n return $this;\n }", "public function group_by($groupBy) \n {\n $this->sql .= \" GROUP BY \". $this->clean($groupBy);\n return $this;\n }", "public function reset_group_by() {\n\t\t$this->_group_by = array();\n\n\t\treturn $this;\n\t}", "private function sql_groupBy()\n {\n // Get WHERE statement\n $groupBy = $this->curr_tableField;\n\n // RETURN GROUP BY statement without GROUP BY\n return $groupBy;\n }", "public function groupBy() {\n $fields = func_get_args();\n\n if (is_array($fields[0])) {\n $fields = $fields[0];\n }\n\n $this->_groupBy = array_unique(array_merge($this->_groupBy, $fields));\n\n return $this;\n }", "public function setGroupBy($groupby)\n {\n $this->groupby = [];\n return $this->addGroupBy($groupby);\n }", "public function getGroupBy()\n\t\t{\n\t\t\treturn $this->groupby;\n\t\t}", "public function group($groupBy) {\r\n $this->sqlGroupBy = $groupBy;\r\n return $this;\r\n }", "function getGroupBy() {\n return $this->getAdditionalProperty('group_by', self::DONT_GROUP);\n }", "function group_by($columns = array())\n {\n if (!is_array($columns)) {\n $columns = array($columns);\n }\n $this->object->_group_by_columns = array_merge($this->object->_group_by_columns, $columns);\n return $this->object;\n }", "public function groupBy($sql) {\n $this->__groupBy__ = $sql;\n return $this;\n }", "function group_by($columns = array())\n {\n if (!isset($this->object->_query_args['group_by_columns'])) {\n $this->object->_query_args['group_by_columns'] = $columns;\n } else {\n $this->object->_query_args['group_by_columns'] = array_merge($this->object->_query_args['group_by_columns'], $columns);\n }\n return $this->object;\n }", "public function groupBy($groupBy)\n {\n if (empty($groupBy)) {\n return $this;\n }\n\n $groupBy = is_array($groupBy) ? $groupBy : func_get_args();\n\n return $this->add('groupBy', $groupBy, false);\n }", "public function clearGroupBy() {\r\n $this->groupBy = \"\";\r\n return $this;\r\n }", "public function groupBy($field)\n {\n $this->groupBy = $field;\n return $this;\n }", "public function groupBy($field);", "public function groupBy($field);", "abstract protected function _buildGroupBy( $group );", "public function group_by ( $mFields )\n {\n /*\n Convert from comma separated list to array.\n */\n if (!is_array($mFields))\n {\n $mFields = explode(',', str_replace(', ', ',', $mFields));\n }\n /*\n Save.\n */\n $this->aGroupBy = array_merge($this->aGroupBy, $mFields);\n /*\n Return for method chaining.\n */\n return $this;\n }", "public function implicitGroupby() {\n\t\treturn true;\n\t}", "public function groupBy($sql);", "public function getQueryGroupby() {\n $R = 'R_'. $this->id;\n return \"$R.value_id\";\n }", "public final function resetGroupBy()\n {\n $this->group_by = '';\n return $this;\n }", "public function groupBy(array $groupByClause): self\n {\n $this->fetchData[self::GROUP_CLAUSE] = $groupByClause;\n\n return $this;\n }", "protected function _compile_group_by()\n\t{\n\t\tif (count($this->qb_groupby) > 0)\n\t\t{\n\t\t\tfor ($i = 0, $c = count($this->qb_groupby); $i < $c; $i++)\n\t\t\t{\n\t\t\t\t// Is it already compiled?\n\t\t\t\tif (is_string($this->qb_groupby[$i]))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$this->qb_groupby[$i] = ($this->qb_groupby[$i]['escape'] === FALSE OR $this->_is_literal($this->qb_groupby[$i]['field']))\n\t\t\t\t\t? $this->qb_groupby[$i]['field']\n\t\t\t\t\t: $this->protect_identifiers($this->qb_groupby[$i]['field']);\n\t\t\t}\n\n\t\t\treturn \"\\nGROUP BY \".implode(', ', $this->qb_groupby);\n\t\t}\n\n\t\treturn '';\n\t}", "public function addGroupBy($groupby)\n {\n if (is_array($groupby)) {\n $this->groupby = array_merge($this->groupby, $groupby);\n } elseif (!empty($groupby)) {\n $this->groupby[] = $groupby;\n }\n\n return $this;\n }", "protected function setGroup() {\r\n //var_dump($this->sql);\r\n if( $this->sqlGroupBy ) {\r\n var_dump($this->sql);\r\n $this->sql .= ' GROUP BY ' . $this->sqlGroupBy;\r\n }\r\n //var_dump($this->sql);\r\n }", "public function getGroupByResults()\n {\n return $this->group_by_results;\n }", "protected function getGroupByAttribute()\n {\n return $this->fetchData[self::GROUP_CLAUSE];\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}", "public function groupby($field)\n\t\t{\n\t\t\t$this->groupby[] = $field;\n\t\t\treturn $this;\n\t\t}", "public function rawGroupBy($groupBy)\n {\n $this->groupBy = new Expressions\\GroupByClause($groupBy, null, $this);\n return $this;\n }", "private function groupBy() {\n $this->sql .= 'GROUP BY inv_agent_id ';\n }", "public final function setGroupBy($val)\n {\n if (is_array($val))\n $val = implode(', ', $val);\n\n $this->group_by = $val;\n return $this;\n }", "public function groupBy( array $group ) {\n $group = array_map(function($n) { return \"@$n\"; }, $group);\n $group = implode(' ', array_merge([count($group)], $group));\n $this->groupBy = \"GROUPBY $group\";\n return $this;\n }", "function groupBy($column) {\n if(!is_array($column)) {\n $column = array($column);\n }\n foreach ($column as $value) {\n $this->group_by .= ', `'.str_replace('.', '`.`', $value).'`';\n }\n $this->group_by = trim($this->group_by, ', ');\n return $this;\n }", "public function group($groupBy, $reset = false)\n {\n $groupBy = trim($groupBy);\n\n if ($reset) {\n $this->_group = array();\n }\n\n if (!strlen($groupBy)) {\n //sanity check\n return $this;\n }\n //add the group to the array of groups to use\n $this->_group[] = $groupBy;\n //return this to allow method chaining\n return $this;\n }", "function groupBy($groupBy)\n {\n if (empty($groupBy)) {\n return false;\n }\n \n $columns = $this->to_string($groupBy);\n \n return 'GROUP BY ' .$columns;\n }", "public function groupByProbe()\n {\n return $this\n ->reverse()\n ->reduce(function (Collection $carry, Collection $results) {\n foreach ($results as $result) {\n $carry->push($result);\n }\n return $carry;\n }, new static())\n ->groupBy('id');\n }", "public function getGroupedBindings() {\n return [\n 'fields' => $this->getBindings(),\n 'where' => $this->getWhere()->getBindings(),\n 'having' => $this->getHaving()->getBindings()\n ];\n }", "public function addGroupBy($field)\n\t{\n\t\tparent::addGroupBy($field);\n\t\treturn $this;\n\t}", "protected abstract function getGroupByClause(array $grouping);", "public function getGrouping()\n {\n return $this->result->getGrouping();\n }", "public function groupBy($group=null)\n {\n $group = LambdaUtils::toSelectCallable($group);\n\n $result = new ObjectArray(array());\n if($this instanceof ObjectArray)\n {\n $result = $this->newInstance();\n }\n\n foreach($this as $record)\n {\n $key = call_user_func($group, $record);\n\n $data = array();\n if($this->__converter instanceof IListConverter)\n {\n $data = $this->newConverterInstance();\n }\n $newitemtype = new ArrayList($data);\n\n $result->get($key, $newitemtype, true)->add($record);\n }\n\n return $result;\n }", "public function groupBy($callback);", "public function a_get_groups()\n {\n $query = Group::query();\n \n $query\n ->select(array(\n \"$this->groups_tb_id as id\",\n \"$this->groups_tb_name as name\",\n ));\n\n return $query\n ->get()\n ->toArray();\n }", "public function addGroupBy($groupBy)\n {\n if (empty($groupBy)) {\n return $this;\n }\n\n $groupBy = is_array($groupBy) ? $groupBy : func_get_args();\n\n return $this->add('groupBy', $groupBy, true);\n }", "public function group_by($columns){\n $columns = func_get_args();\n $this->_group_by = array_merge($this->_group_by, $columns);\n return $this;\n }", "public function groupBy($columns)\n {\n return $this;\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($columns)\n\t{\n\t\t$this->query->groupBy = $columns;\n\t\treturn $this;\n\t}", "public function groupBy($columns);", "public function getQueryGroupby() {\n // SubmittedOn is stored in the artifact\n return 'a.submitted_on';\n }", "public function stripGroupByForGroupByKeywordDataProvider() {}", "public function groups() : array\n {\n return $this->groups;\n }", "public function groups() : array\n {\n return $this->groups;\n }", "public function groupBy(array $fields, $order = null);", "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 groupBy($columns = null)\n\t{\n\t\t$owner = $this->getOwner();\n\t\t$owner->getDbCriteria()->mergeWith(array('group' => $this->generateGroupBy($columns)));\n\t\treturn $owner;\n\t}", "public function groupBy($sGroup)\n {\n $this->clause('GROUP BY', $sGroup);\n\n return $this;\n }", "public function getGrouped()\n {\n if ( ! $this->prepared) {\n $this->prepareForPresentation();\n }\n\n return $this->permissionGroups;\n }", "function setGroupBy($value) {\n if($value == self::GROUP_BY_DATE || $value == self::GROUP_BY_CLIENT || $value == self::GROUP_BY_MONTH || $value == self::GROUP_BY_YEAR) {\n return $this->setAdditionalProperty('group_by', $value);\n } else {\n return $this->setAdditionalProperty('group_by', self::DONT_GROUP);\n } // if\n }", "public function groups()\n {\n return $this->groupModel\n ->orderBy('name', 'asc')\n ->findAll();\n }", "public function groupBy($fields, $overwrite = false);", "public function getGroupByFieldResultItems()\n {\n return $this->group_by_field_result_items;\n }", "function group_by($by)\r\n\t{\r\n\t\t// Check if this is a related object\r\n\t\tif ( ! empty($this->parent))\r\n\t\t{\r\n\t\t\t$this->db->group_by($this->table . '.' . $by);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->db->group_by($by);\r\n\t\t}\r\n\r\n\t\t// For method chaining\r\n\t\treturn $this;\r\n\t}", "public function fetchAllGrouped($sql, $bind = null)\r\n {\r\n return $this->selectPrepare($sql, $bind)->fetchAll(PDO::FETCH_GROUP | PDO::FETCH_ASSOC);\r\n }", "public function group($columns)\n\t{\n\t\tif (is_array($columns)) {\n\t\t\t$this->_group = array_unique(array_merge($this->_group, $columns));\n\t\t} else {\n\t\t\t$this->_group = array_unique(array_merge($this->_group, array($columns)));\n\t\t}\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 group_by($columns)\n {\n $columns = func_get_args();\n foreach($columns as $idx => $column)\n {\n // if an array of columns is passed, flatten it\n if (is_array($column))\n {\n foreach($column as $c)\n {\n $columns[] = $c;\n }\n unset($columns[$idx]);\n }\n }\n\n $this->_group_by = array_merge($this->_group_by, $columns);\n\n return $this;\n }", "function get_group_array()\n{\n\tglobal $db_raid, $table_prefix, $db_raid;\n\tglobal $db_allgroups_id, $db_allgroups_name, $db_table_allgroups ;\n\n\t$group = array();\n\t\n\t$sql = sprintf(\"SELECT \" . $db_allgroups_id . \" , \". $db_allgroups_name .\n\t\t\t\" FROM \" . $table_prefix . $db_table_allgroups .\n\t\t\t\" ORDER BY \". $db_allgroups_id);\n\t\n\t$result_group = $db_raid->sql_query($sql) or print_error($sql, $db_raid->sql_error(), 1);\n\twhile ($data_wrm = $db_raid->sql_fetchrow($result_group,true))\n\t{\n\t\t$group[$data_wrm[$db_allgroups_id]] = $data_wrm[$db_allgroups_name];\n\t}\n\n\treturn $group;\n}", "public function custom_attachments_groupby( $groupby, $query ){\n\t\tglobal $wpdb;\n\n\t\tif(!is_admin() || (!isset($query->query['post_type']) || $query->query['post_type'] != 'attachment')){\n\t\t\treturn $groupby;\n\t\t}\n\n\t\tif( is_main_query() && is_search() ){\n\t\t\t$groupby = \"{$wpdb->posts}.ID\";\n\t\t}\n\n\t\treturn $groupby;\n\t}", "public function groups()\n {\n #$ignore = array('internal', 'id', 'toc', 'todo', 'method');\n $titles = array(\n 'return' => 'Response',\n 'example' => $this->hasMany('example') ? 'Examples' : 'Example',\n 'copyright' => 'Copyright',\n 'see' => 'See also',\n 'link' => $this->hasMany('link') ? 'Links' : 'Link',\n );\n $groups = array();\n\n foreach ($titles as $key => $title) {\n if(\n isset($this->{$key})\n #&& !in_array($key, $ignore)\n ) {\n $groups[] = array(\n 'title' => $title,\n 'items' => (array) $this->get($key)\n );\n }\n }\n\n return $groups;\n }", "public function groups() {\n\t\tif (empty($this->_compiledGroupNames)) {\n\t\t\tforeach ($this->settings['groups'] as $group) {\n\t\t\t\t$this->_compiledGroupNames[] = $this->settings['prefix'] . $group;\n\t\t\t}\n\t\t}\n\n\t\t$groups = $this->_Memcached->getMulti($this->_compiledGroupNames);\n\t\tif (count($groups) !== count($this->settings['groups'])) {\n\t\t\tforeach ($this->_compiledGroupNames as $group) {\n\t\t\t\tif (!isset($groups[$group])) {\n\t\t\t\t\t$this->_Memcached->set($group, 1, 0);\n\t\t\t\t\t$groups[$group] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tksort($groups);\n\t\t}\n\n\t\t$result = array();\n\t\t$groups = array_values($groups);\n\t\tforeach ($this->settings['groups'] as $i => $group) {\n\t\t\t$result[] = $group . $groups[$i];\n\t\t}\n\n\t\treturn $result;\n\t}", "protected function getGroups()\n\t{\n\t\t$groups = array();\n\n\t\t$groups[''] = array();\n\t\t$groups[''][] = JHtml::_('select.option', $this->value, $this->value, 'value', 'text');\n\n\t\t$this->addGroup($groups, 'User', \t\t$this->getUserFields());\n\t\t$this->addGroup($groups, 'Order', \t\t$this->getOrderFields());\n\t\t$this->addGroup($groups, 'Shipping', \t$this->getAddressFields('shipping'));\n\t\t$this->addGroup($groups, 'Billing',\t$this->getAddressFields('billing'));\n\t\t$this->addGroup($groups, 'Item',\t\t$this->getItemFields());\n\n\t\treset($groups);\n\n\t\treturn $groups;\n\t}", "public function groupBy($columns)\n {\n if (!is_array($columns)) {\n $columns = preg_split('/\\s*,\\s*/', trim($columns), -1, PREG_SPLIT_NO_EMPTY);\n }\n $this->groupBy = $columns;\n return $this;\n }", "public function addGroupBy(array $criterion)\n {\n $criterion = new Criterion($criterion);\n $this->criteria->add(\n $criterion->setType('group by')\n );\n\n return $this;\n }", "public function getGroupByAccount()\n {\n return $this->getProperty('groupByAccount');\n }", "protected function prepareGroupByPart()\n {\n $this->groupByQuery = 'GROUP BY ';\n $this->groupByQuery .= implode(', ', $this->groupByPart);\n $this->groupByQuery = \" {$this->groupByQuery} \";\n }", "protected function getGroups() {\n return DB::table('translation_identifiers')->select('group')->groupBy(['group'])->get()->pluck('group');\n }", "public function getRawGroups()\n {\n if (!empty($this->rawGroups)) {\n return $this->rawGroups;\n }\n if ($this->enableCache && isset($this->cache)) {\n if (($data = $this->cache->get(static::className())) !== false) {\n list($rawGroups, $aliases) = $data;\n Alias::setAliases($this->prepareAliases($aliases), false);\n $rawGroups = $this->calculateCacheGroups($rawGroups, $this->groups);\n return $this->rawGroups = $rawGroups;\n }\n }\n list($rawGroups, $aliases) = $this->normalizeGroups($this->groups);\n if ($this->enableCache && isset($this->cache)) {\n $this->cache->set(static::className(), [$this->normalizeCacheGroups($rawGroups), $aliases]);\n }\n return $this->rawGroups = $rawGroups;\n }", "public function groupBy($column)\n\t{\n\t\t$this->groupings[] = $column;\n\t\treturn $this;\n\t}", "public function groups()\n {\n $return = ['everyone'];\n\n $groups = GroupMember::where('user_id', $this->id())\n ->sort('`group` ASC')\n ->all();\n\n foreach ($groups as $group) {\n $return[] = $group->group;\n }\n\n return $return;\n }", "public function groupBy(callable $function);", "public function groupIds(): array {\n return $this->groupList ?? [];\n }", "public function setGrouped()\n {\n $this->isGrouped = true;\n }", "public function get_recursive_groups()\n {\n return $this->_recursive_groups;\n }", "public function providerSortByWithGroupBy() {\n return array(\n array('name','ASC','item-01'),\n array('name','DESC','item-39'),\n );\n }", "public function groups();", "public function groups();", "function restore_group_by($field, $match = null)\n\t{\n\t\treturn get_instance()->kbcore->groups->restore_by($field, $match);\n\t}", "public function groupByModel($groupBy, $model)\n {\n $results = [];\n\n foreach ($this->collection->all() as $key => $value) {\n $groupKeys = is_callable($groupBy) ? $groupBy($value, $key) : $value->$groupBy;\n\n if (! is_array($groupKeys)) {\n $groupKeys = [$groupKeys];\n }\n\n foreach ($groupKeys as $groupKey) {\n $groupKey = is_bool($groupKey) ? (int) $groupKey : $groupKey;\n\n if (! array_key_exists($groupKey, $results)) {\n $results[$groupKey] = (new static)->setModel(is_callable($model) ? $model($value) : $value->$model);\n }\n\n $results[$groupKey]->offsetSet(null, $value);\n }\n }\n\n return (new static($results))->setModel($this->model);\n }", "public function group(): Collection;", "public function getGroups()\n {\n return $this->groups;\n }", "public function getGroups() {\n return $this->groups;\n }", "protected function getGroups()\n {\n $groups = parent::getGroups();\n\n // If an ID is already selected, we don't want the auto-generate option:\n if (!empty($this->value)) {\n unset($groups[0][1]);\n }\n\n return $groups;\n }", "public function get_groups()\n {\n $qry = ee()->db->where('site_id', ee()->publisher_lib->site_id)\n ->order_by('group_name', 'asc')\n ->get('category_groups');\n\n $groups = array();\n\n if ($qry->num_rows())\n {\n foreach ($qry->result() as $group)\n {\n $groups[$group->group_id] = $group;\n }\n }\n\n return $groups;\n }" ]
[ "0.72182965", "0.715938", "0.71469796", "0.7092013", "0.70834625", "0.70159763", "0.70145315", "0.7004815", "0.69843936", "0.698029", "0.6934954", "0.6729857", "0.66268206", "0.6608978", "0.6604372", "0.65205103", "0.6488903", "0.6477456", "0.64724326", "0.64724326", "0.6452679", "0.6443368", "0.64427763", "0.6427894", "0.64169437", "0.6396548", "0.63924366", "0.6348418", "0.63463175", "0.6345027", "0.63446397", "0.6308353", "0.62875086", "0.6221152", "0.6216568", "0.620896", "0.61939996", "0.61726505", "0.6162799", "0.61126506", "0.6100674", "0.60980886", "0.6096068", "0.6082707", "0.60748184", "0.60586107", "0.60486996", "0.60312015", "0.60108185", "0.60100627", "0.5948161", "0.59429425", "0.59365153", "0.58901006", "0.58816737", "0.5872114", "0.5830569", "0.581288", "0.581288", "0.5806626", "0.57743555", "0.5768428", "0.57449275", "0.5739603", "0.5720168", "0.57182336", "0.56900376", "0.5682269", "0.56819475", "0.567545", "0.5659406", "0.5646521", "0.5643017", "0.5642654", "0.56368387", "0.5635303", "0.56322587", "0.5612645", "0.5588221", "0.5583742", "0.55801964", "0.55716556", "0.5566969", "0.55611855", "0.5559733", "0.5555352", "0.5528063", "0.55269104", "0.55182767", "0.5493935", "0.54932225", "0.54724795", "0.54724795", "0.5463639", "0.546165", "0.54575616", "0.5457447", "0.5457008", "0.5453382", "0.5438646" ]
0.7076395
5
Returns a reference to the tables array for this query. Because this method returns by reference, alter hooks may edit the tables array directly to make their changes. If just adding tables, however, the use of the join() methods is preferred. Note that this method must be called by reference as well:
public function &getTables();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function tables()\n {\n $tables = false;\n //\n $Tables = Driver::read('SHOW TABLES', Driver::INDEX);\n // die(var_dump($Tables));\n //\n foreach ($Tables as $row) {\n $target_tables[] = $row[0];\n }\n //\n if ($tables !== false) {\n $target_tables = array_intersect($target_tables, $tables);\n }\n //\n return $target_tables;\n }", "protected function getTables()\n {\n return $this->tables;\n }", "function &tables(){\n\t\tif ( isset( $this->_cache[__FUNCTION__] ) ){\n\t\t\treturn $this->_cache[__FUNCTION__];\n\t\t}\n\t\t\n\t\t// It is not in the cache yet, let's calculate it.\n\t\t$data = $this->_parseSQL();\n\t\t$out = array();\n\t\t$numTables = count($data['tables']);\n\t\tfor ($i=0; $i<$numTables; $i++){\n\t\t\t$tableinfo = $data['tables'][$i];\n\t\t\tif ( $tableinfo['alias'] ) {\n\t\t\t\t$out[$tableinfo['alias']] =& $this->getTableOrView($tableinfo['alias']);\n\t\t\t} else if ( $tableinfo['type'] == 'ident' ) {\n\t\t\t\t$out[$tableinfo['value']] =& $this->getTableOrView($tableinfo['value']);\n\t\t\t} else {\n\t\t\t\ttrigger_error(\"Problem getting tables for view '\".$this->name.\"' because one of the tables in the query does not have an appropriate value.\".Dataface_Error::printStackTrace(), E_USER_ERROR);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->_cache[__FUNCTION__] =& $out;\n\t\treturn $out;\n\t}", "public function getTables() {\n\t\treturn $this->tables;\n\t}", "public function getTables()\n {\n return $this->tables;\n }", "public function getTables()\n {\n return $this->tables;\n }", "public function getTables()\n {\n return $this->tables;\n }", "public function getTables()\n {\n return $this->tables;\n }", "public function getTables()\n {\n return $this->tables;\n }", "public function getAliasedTables()\n {\n if (empty($this->builderCache->aliasedTables)) {\n return [];\n }\n\n return $this->builderCache->aliasedTables;\n }", "abstract public function getTablesArray();", "final public function tables()\n {\n return $this->doTables();\n }", "public function getTables()\n {\n\treturn $this->query('select [name] from [tables]');\n }", "public function _get_table_names() {\n // Must be overridden.\n return array();\n }", "function get_tables()\n {\n return $this->_tables;\n }", "public static function getModifyableTables() {}", "public static function getTables() {\n }", "public function tables(): array\n {\n return [\n 'query' => 'SELECT name FROM sqlite_master WHERE type = \"table\"',\n 'bindings' => []\n ];\n }", "function create_table_list(){\n $tables = \"{$this->table_name}\";\n if(isset($this->joined_tables) && count($this->joined_tables)){\n foreach($this->joined_tables as $t){\n if(array_key_exists('TABLE', $t) && array_key_exists('ON', $t)){\n $type = (array_key_exists('TYPE', $t)? $t['TYPE']: \"INNER JOIN\");\n $tables .= \" $type {$t['TABLE']} ON {$t['ON']}\";\n }\n }\n }\n return $tables;\n }", "public function getTablesModify() {}", "public function getTables();", "public function getTables();", "public function getTables();", "public function get_tables() {\r\n\t\t$tables = $this->query_select ( \"SHOW TABLES;\", \"num\" );\r\n\t\tif (! function_exists ( '__tmp_huy_db_tables' )) {\r\n\t\t\tfunction __tmp_huy_db_tables($val) {\r\n\t\t\t\treturn $val [0];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn array_map ( '__tmp_huy_db_tables', $tables );\r\n\t}", "protected function getTableObjects()\n {\n\n $sm = $this->app['db']->getSchemaManager();\n\n $tables = array();\n\n foreach ($sm->listTables() as $table) {\n if (strpos($table->getName(), $this->prefix) == 0) {\n $tables[$table->getName()] = $table;\n }\n }\n\n return $tables;\n\n }", "public function get_tables()\n\t{\n\t\treturn $this->driver_query('table_list');\n\t}", "public function admin_get_tables() {}", "public function admin_get_tables() {}", "public function getExistingTables()\n {\n if (null === $this->existingTables) {\n $this->existingTables = $this->getAdminReq()->getTablesFromRegex($this->getRegexMatchingTableNames());\n }\n return $this->existingTables;\n }", "protected function getTables() {\n \n $sm = $this->db->getSchemaManager();\n\n $tables = array(); \n \n foreach ($sm->listTables() as $table) {\n if ( strpos($table->getName(), $this->prefix) == 0 ) {\n foreach ($table->getColumns() as $column) {\n $tables[ $table->getName() ][ $column->getName() ] = $column->getType(); \n }\n // $output[] = \"Found table <tt>\" . $table->getName() . \"</tt>.\";\n }\n }\n \n return $tables;\n \n }", "protected function getDatabaseTables() {}", "abstract public function getTables();", "public function tables($arrTables) {\r\n $this->sqlTables = array_merge($this->sqlTables, $arrTables);\r\n return $this;\r\n }", "public function retrieveAbleTables(): array\n {\n $tables = [];\n\n // iterate on every table\n foreach (DbalService::getTablesColumnsMap() as $table => $columns) {\n\n if ($table == $this->internalTable) {\n continue;\n }\n\n foreach ($columns as $columnName => $column) {\n // if the table has one or both columns,\n if (in_array($columnName, [$this->createdAtColumnName, $this->updatedAtColumnName])) {\n $tables[] = $table;\n break;\n }\n }\n\n }\n\n return $tables;\n }", "function get_tables() {\r\n\t\t$tables = $this->query_array('SHOW TABLES');\r\n\t\t$table_names = array();\r\n\r\n\t\tforeach ($tables as $table) {\r\n\t\t\t$table_name = current($table);\r\n\r\n\t\t\t$table_names[$table_name] = $table_name;\r\n\r\n\t\t}\r\n\r\n\t\treturn $table_names;\r\n\r\n\t}", "public function getTables(){\n $pdo = $this->pdo;\n $statement = $pdo->prepare(\"SHOW TABLES FROM $this->name;\");\n $statement->execute();\n $tables = $statement->fetchAll($pdo::FETCH_NUM);\n foreach($tables as &$table)\n $table = $table[0];\n return $tables;\n }", "public function getSchemaTables()\n {\n if ($this->schemaTables !== null) {\n return $this->schemaTables;\n }\n $builder = $this->app['schema.builder'];\n\n /** @deprecated Deprecated since 3.0, to be removed in 4.0. */\n $builder['extensions']->addPrefix($this->app['schema.prefix']);\n\n $schema = new Schema();\n $tables = array_merge(\n $builder['base']->getSchemaTables($schema),\n $builder['content']->getSchemaTables($schema, $this->config),\n $builder['extensions']->getSchemaTables($schema)\n );\n $this->schema = $schema;\n\n return $this->schemaTables = $tables;\n }", "public function getTables()\n {\n return $this->callSql(\"\n SELECT\n *\n FROM\n SYSOBJECTS\n WHERE\n xtype = 'U';\n \");\n\n // Appears that DP has disabled the permissions required for the following query\n // prior to 2021-07-15\n // return $this->callSql(\"\n // SELECT\n // *\n // FROM\n // INFORMATION_SCHEMA.TABLES;\n // \");\n }", "public function get_table_names() {\n // Must be overridden.\n $out = $this->_get_table_names();\n return $out;\n }", "public function getTablesDefinition()\n {\n $query = $this->db_instance->query('SHOW TABLES');\n $tables_a = $query->result_array();\n $tables = array();\n\n foreach ($tables_a as $table) {\n $table = array_pop($table);\n $tables[$table] = $this->getDefinitionFromTable($table);\n }\n\n return $tables;\n }", "public function getTables() {\n\t\treturn $this->adapter->getCol( \"SELECT name FROM sqlite_master\n\t\t\tWHERE type='table' AND name!='sqlite_sequence';\" );\n\t}", "public function getAllTables() {\n return array_unique(array_values($this->alias2table));\n }", "public function getTables(): array {\n global $wpdb;\n return $wpdb->get_results('SHOW TABLES', ARRAY_N);\n }", "public function qsGetDbTables()\n {\n $sql = 'show tables';\n $d = $this->qExecPluck($sql);\n\n return $d;\n }", "public function getTables() {\n $stmt = $this->pdo->query(\"SELECT table_name \n FROM information_schema.tables \n WHERE table_schema= 'public' \n AND table_type='BASE TABLE'\n ORDER BY table_name\");\n $tableList = [];\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n $tableList[] = $row['table_name'];\n }\n \n return $tableList;\n }", "public function getTables() {\n $stmt = $this->pdo->query(\"SELECT table_name \n FROM information_schema.tables \n WHERE table_schema= 'public' \n AND table_type='BASE TABLE'\n ORDER BY table_name\");\n $tableList = [];\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n $tableList[] = $row['table_name'];\n }\n\n return $tableList;\n }", "public static function getTables()\n {\n static $tables = [];\n\n if (!$tables) {\n $prepare = self::getConn()->prepare(\"SHOW TABLES FROM `\" . self::$config['database'] . \"`\");\n $prepare->setFetchMode(PDO::FETCH_ASSOC);\n $prepare->execute();\n $result = $prepare->fetchAll();\n foreach ($result as $key => $value) {\n $result[$key] = current($value);\n }\n }\n return $result;\n }", "public function setTables($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Cloud\\Bigtable\\Admin\\V2\\Table::class);\n $this->tables = $arr;\n\n return $this;\n }", "protected function getUsedTables() : array\n {\n return [ 'roles' ];\n }", "public function getListOfTables() {}", "public function get_tableList()\r\n\t{\r\n\t\treturn $this->_tableList;\r\n\t}", "protected function getCacheTables()\n {\n\n $cacheTables = array(\n #'be_sessions',\n 'sys_log',\n 'sys_lockedrecords',\n 'sys_history',\n #'sys_registry',\n 'sys_file_processedfile',\n 'sys_refindex',\n 'tx_extensionmanager_domain_model_extension',\n );\n\n // Get a list of cache table which should be cleared beforehand and merge them into the $tables variable.\n $tablePrefixes = array(\n 'cf_',\n 'index_',\n 'tx_realurl_',\n );\n\n foreach ($tablePrefixes as $prefix) {\n $result = array();\n\n $request = sprintf(\"SELECT GROUP_CONCAT(DISTINCT table_name) FROM information_schema.tables WHERE table_schema = '%s' AND table_name like '%s%%';\",\n $this->getDatabase(),\n $prefix\n );\n $command = sprintf('%s -u %s -p%s -e \"%s\"',\n $this->getMysqlBinary(),\n $this->getUsername(),\n $this->getPassword(),\n $request\n );\n\n // get the result\n exec($command, $result);\n\n if (!empty($result[1]) && $result[1] !== 'NULL') {\n $cacheTables = array_merge($cacheTables, explode(',', $result[1]));\n }\n\n }\n return $cacheTables;\n }", "public function getJoinedTables()\n {\n return array_keys($this->join);\n }", "public function getTableList()\n\t{\n\t\t$db = new mysql_db();\n\n\t\t$result = $db->query(\"show tables\");\n\t\t\n\t\t$db->fetch_array($result);\n\t\t\n\t\treturn $arr;\n\t}", "public function getTables()\n\t{\n $result = $this->fetchingData(array(\n 'query' => \"SHOW FULL TABLES\"\n ));\n\n return $result;\n\t}", "function getTables() {\n return mysql_query('SHOW TABLES');\n }", "public function get_all_tables() {\n\t\tglobal $wpdb;\n\n\t\t$charset_collate = $this->get_charset();\n\n\t\treturn array(\n\t\t\t\"{$wpdb->prefix}redirection_items\" => $this->create_items_sql( $wpdb->prefix, $charset_collate ),\n\t\t\t\"{$wpdb->prefix}redirection_groups\" => $this->create_groups_sql( $wpdb->prefix, $charset_collate ),\n\t\t\t\"{$wpdb->prefix}redirection_logs\" => $this->create_log_sql( $wpdb->prefix, $charset_collate ),\n\t\t\t\"{$wpdb->prefix}redirection_404\" => $this->create_404_sql( $wpdb->prefix, $charset_collate ),\n\t\t);\n\t}", "public function listTables()\n {\n $nextTableName = null;\n $tables = array();\n \n do {\n $options = new QueryTablesOptions();\n $options->setNextTableName($nextTableName);\n $result = $this->_tableProxy->queryTables();\n $nextTableName = $result->getNextTableName();\n $tables = array_merge($tables, $result->getTables());\n } while(!is_null($nextTableName));\n \n return $tables;\n }", "function tables()\n\t{\n\t\t$this->ipsclass->input['step']++;\n\t\t$uninstall = ( $this->ipsclass->input['un'] == 1 ) ? \"&amp;un=1\" : \"\";\n\t\t\n\t\t$object = ( $this->tasks['tables'] == 1 ) ? 'Database Table' : 'Database Tables';\n\t\t$operation = ( $this->ipsclass->input['un'] ) ? 'dropped' : 'created';\n\t\t$old_data = array();\n\t\t$new_fields = array();\n\t\t\n\t\tforeach ( $this->xml_array['tables_group']['table'] as $k => $v )\n\t\t{\n\t\t\t$this->ipsclass->DB->sql_drop_table( $v['name']['VALUE'].\"_bak\" );\n\t\t\t\n\t\t\tif ( !$this->ipsclass->input['un'] && in_array( SQL_PREFIX.$v['name']['VALUE'], $this->ipsclass->DB->get_table_names() ) )\n\t\t\t{\n\t\t\t\t$this->ipsclass->DB->query( \"RENAME TABLE \".SQL_PREFIX.$v['name']['VALUE'].\" TO \".SQL_PREFIX.$v['name']['VALUE'].\"_bak;\" );\n\t\t\t\t$this->ipsclass->DB->cached_tables[] = SQL_PREFIX.$v['name']['VALUE'].\"_bak\";\n\t\t\t}\n\t\t\t\n\t\t\t$this->ipsclass->DB->sql_drop_table( $v['name']['VALUE'] );\n\t\t\t\n\t\t\tif ( !$this->ipsclass->input['un'] )\n\t\t\t{\n\t\t\t\t$this->ipsclass->DB->query( $this->fix_create_table( \"CREATE TABLE IF NOT EXISTS \".SQL_PREFIX.$v['name']['VALUE'].\" (\".$v['data']['VALUE'].\") TYPE=\".$v['type']['VALUE'] ) );\n\t\t\t\t\n\t\t\t\tif ( in_array( SQL_PREFIX.$v['name']['VALUE'].\"_bak\", $this->ipsclass->DB->get_table_names() ) )\n\t\t\t\t{\n\t\t\t\t\t$this->ipsclass->DB->build_query( array( 'select' => '*',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'from' => $v['name']['VALUE'].\"_bak\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\t );\n\t\t\t\t\t$this->ipsclass->DB->exec_query();\n\t\t\t\t\t\n\t\t\t\t\tif ( $this->ipsclass->DB->get_num_rows() )\n\t\t\t\t\t{\n\t\t\t\t\t\twhile ( $r = $this->ipsclass->DB->fetch_row() )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$old_data[ $v['name']['VALUE'] ][] = $r;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->ipsclass->DB->query( \"SHOW COLUMNS FROM \".SQL_PREFIX.$v['name']['VALUE'].\";\" );\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( $this->ipsclass->DB->get_num_rows() )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twhile ( $row = $this->ipsclass->DB->fetch_row() )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$new_fields[ $v['name']['VALUE'] ][] = $row['Field'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tforeach ( $old_data[ $v['name']['VALUE'] ] as $kk => $vv )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$insert = array();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tforeach ( $vv as $field => $value)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif ( in_array( $field, $new_fields[ $v['name']['VALUE'] ] ) )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$insert[ $field ] = $this->ipsclass->txt_safeslashes( $value );\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 ( count( $insert ) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->ipsclass->DB->do_insert( $v['name']['VALUE'], $insert );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$this->ipsclass->DB->sql_drop_table( $v['name']['VALUE'].\"_bak\" );\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->ipsclass->admin->redirect( \"{$this->ipsclass->form_code}&amp;code=work&amp;mod={$this->ipsclass->input['mod']}&amp;step={$this->ipsclass->input['step']}{$uninstall}&amp;st={$this->ipsclass->input['st']}\", \"{$this->xml_array['mod_info']['title']['VALUE']}<br />{$this->tasks['tables']} {$object} {$operation}....\" );\n\t}", "protected function getTables()\n {\n $sm = $this->app['db']->getSchemaManager();\n\n $tables = array();\n\n foreach ($sm->listTables() as $table) {\n if (strpos($table->getName(), $this->prefix) == 0) {\n foreach ($table->getColumns() as $column) {\n $tables[$table->getName()][$column->getName()] = $column->getType();\n }\n }\n }\n\n return $tables;\n\n }", "public function getInstalledTables()\n {\n if ($this->installedTables !== null) {\n return $this->installedTables;\n }\n\n /** @var $tables \\Doctrine\\DBAL\\Schema\\Table[] */\n $tables = $this->connection->getSchemaManager()->listTables();\n foreach ($tables as $table) {\n $alias = str_replace($this->app['schema.prefix'], '', $table->getName());\n $this->installedTables[$alias] = $table;\n }\n\n return $this->installedTables;\n }", "public function getTables()\n {\n $sqlStm = \"SELECT TABLE_NAME as tableName,\n CASE TABLE_TYPE WHEN 'VIEW' THEN 'true'\n ELSE 'false'\n END as isView\n FROM information_schema.tables\n WHERE TABLE_SCHEMA = ?\";\n \n $query = new DataQuery($sqlStm);\n $param = new DataParameter('schema', DataParameter::TYPE_VARCHAR , $this->schema);\n return $this->query($query, array($param));\n }", "public function getTableNames(): array\n {\n return $this->tableNames;\n }", "public function getTableList() {\n\t\t$db = new mysql_db();\n\n\t\t$result = $db -> query(\"show tables\");\n\n\t\t$db -> fetch_array($result);\n\t\t$db -> close_connection();\n\t\treturn $arr;\n\t}", "public function getTables() {\n $tables = array_map('reset', \\DB::select('SHOW TABLES'));\n return json_encode($tables);\n }", "function get_db_tables(){\n\t\tglobal $GonxAdmin;\n\t\t\n\t\t$result = @$this->list_tables($this->dbName);\n\t\tif (!$result) {\n\t\t print \"Erreur : impossible de lister les tables\\n\";\n\t\t print 'Erreur '.$GonxAdmin[\"dbtype\"].' : ' . $this->error();\n\t\t exit;\n\t\t}\n\t while ($row = $this->fetch_row($result)) {\n\t\t\t$Tables[] = $row[0];\n\t }\n\t\treturn $Tables;\t\t\n\t}", "public function getTableMap()\n {\n return $this->aTables;\n }", "public function setTables($table) {\r\n if( is_array($table) ) {\r\n $this->sqlTables = array_merge($this->sqlTables, $table);\r\n } elseif( is_string($table) ) {\r\n $this->sqlTables[] = $table;\r\n }\r\n return $this;\r\n }", "public function getAll()\n {\n return $this->tables;\n }", "public function getAllTables()\n {\n return $this->fetchColumn(\"SHOW TABLES\");\n }", "public function tableNames() {\n\t\t$inArray = func_get_args();\n\t\t$retVal = array();\n\n\t\tforeach ( $inArray as $name ) {\n\t\t\t$retVal[$name] = $this->tableName( $name );\n\t\t}\n\n\t\treturn $retVal;\n\t}", "final public function fetchTableNames() {\n if ($this->tableNames !== null) {\n return array_values($this->tableNames);\n }\n\n $names = $this->fetchTableNamesDb();\n\n $this->tableNames = [];\n foreach ($names as $name) {\n $name = $this->stripPrefix($name);\n $this->tableNames[strtolower($name)] = $name;\n }\n\n return array_values($this->tableNames);\n }", "public function getTables()\n {\n global $adminer;\n\n $main_actions = [\n 'add-table' => \\adminer\\lang('Create table'),\n ];\n\n $headers = [\n \\adminer\\lang('Table'),\n \\adminer\\lang('Engine'),\n \\adminer\\lang('Collation'),\n // \\adminer\\lang('Data Length'),\n // \\adminer\\lang('Index Length'),\n // \\adminer\\lang('Data Free'),\n // \\adminer\\lang('Auto Increment'),\n // \\adminer\\lang('Rows'),\n \\adminer\\lang('Comment'),\n ];\n\n // From db.inc.php\n // $table_status = \\adminer\\table_status('', true); // Tables details\n $table_status = \\adminer\\table_status(); // Tables details\n\n $details = [];\n foreach($table_status as $table => $status)\n {\n if(!\\adminer\\is_view($status))\n {\n $details[] = [\n 'name' => $adminer->tableName($status),\n 'engine' => \\array_key_exists('Engine', $status) ? $status['Engine'] : '',\n 'collation' => '',\n 'comment' => \\array_key_exists('Comment', $status) ? $status['Comment'] : '',\n ];\n }\n }\n\n $select = \\adminer\\lang('Select');\n return \\compact('main_actions', 'headers', 'details', 'select');\n }", "function diy_get_all_tables($connection = null) {\n\t\treturn collect(DB::connection($connection)->select('show tables'))->map(function ($val) {\n\t\t\tforeach ($val as $tbl) return $tbl;\n\t\t});\n\t}", "public function setTables(array $tables);", "public function schema_tables($schema = NULL)\n\t{\n\t\tif ( ! $schema)\n\t\t{\n\t\t\t// Use default schema\n\t\t\t$schema = 'main';\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( ! $schema instanceof SQL_Identifier)\n\t\t\t{\n\t\t\t\t// Convert to identifier\n\t\t\t\t$schema = new SQL_Identifier($schema);\n\t\t\t}\n\n\t\t\t$schema = $schema->name;\n\t\t}\n\n\t\t$sql =\n\t\t\t\"SELECT tbl_name AS table_name, CASE type WHEN 'table'\"\n\t\t\t.\" THEN 'BASE TABLE' ELSE 'VIEW' END AS table_type, sql\"\n\t\t\t.' FROM '.$this->_quote_left.$schema.$this->_quote_right\n\t\t\t.\".sqlite_master WHERE type IN ('table', 'view')\";\n\n\t\tif ( ! $this->_table_prefix)\n\t\t{\n\t\t\t// No table prefix\n\t\t\treturn $this->execute_query($sql)->as_array('table_name');\n\t\t}\n\n\t\t// Filter on table prefix\n\t\t$sql .= ' AND tbl_name LIKE '.$this->quote_literal(\n\t\t\tstrtr($this->_table_prefix, array('_' => '\\_', '%' => '\\%')).'%'\n\t\t).\" ESCAPE '\\'\";\n\n\t\t$prefix = strlen($this->_table_prefix);\n\t\t$result = array();\n\n\t\tforeach ($this->execute_query($sql) as $table)\n\t\t{\n\t\t\t// Strip table prefix from table name\n\t\t\t$table['table_name'] = substr($table['table_name'], $prefix);\n\t\t\t$result[$table['table_name']] = $table;\n\t\t}\n\n\t\treturn $result;\n\t}", "protected function getTcaTables() {}", "public function getTableList()\n\t{\n\t\t$this->connect();\n\n\t\t$type = 'table';\n\n\t\t$query = $this->getQuery(true)\n\t\t\t->select('name')\n\t\t\t->from('sqlite_master')\n\t\t\t->where('type = :type')\n\t\t\t->bind(':type', $type)\n\t\t\t->order('name');\n\n\t\t$this->setQuery($query);\n\n\t\t$tables = $this->loadColumn();\n\n\t\treturn $tables;\n\t}", "private function getTables(): Collection\n {\n $tableList = collect($this->option('table'));\n if ($tableList->isEmpty()) {\n $tableList = $this->db\n ->newQuery()\n ->selectRaw('TABLE_NAME')\n ->fromRaw('INFORMATION_SCHEMA.TABLES')\n ->whereRaw(\"TABLE_SCHEMA = '{$this->getDatabase()}'\")\n ->get();\n return $tableList->pluck('TABLE_NAME');\n }\n // Check if the table exists\n if ($this->existsTables($tableList)) {\n return $tableList;\n }\n throw new TableNotFoundException(\"One or more tables provided doesn't exists.\");\n }", "public function tables($tables)\n {\n if (!$this->conn) throw new \\PDOException('未建立database链接');\n if (empty($tables)) throw new \\PDOException('表名不能为空');\n return new MoreTableBuilder($tables, $this,[\n 'moreTableTransStartCheck' => self::$moreTableTransStartCheck\n ]);\n }", "protected function _from_tables()\n\t{\n\t\treturn implode(', ', $this->qb_from);\n\t}", "public function getDatabaseTables()\n {\n\n $db_name = $this->db->database;\n\n $show_table_query = $this->db->query(\"SHOW TABLES from $db_name\");\n\n $table_result = $show_table_query->result_array();\n\n $table_list = [];\n\n foreach($table_result as $key => $val) {\n $table_list[] = $val['Tables_in_' . $db_name];\n }\n\n return $table_list;\n }", "public function getTableNames()\n {\n $query = \"\n SELECT DISTINCT\n TABLE_NAME\n FROM INFORMATION_SCHEMA.TABLES\n WHERE\n TABLE_TYPE='BASE TABLE' AND\n TABLE_SCHEMA = ?\n ORDER BY TABLE_NAME\n \";\n\n $query = \"\n select\n RDB$RELATION_NAME as TABLE_NAME\n from RDB$RELATIONS\n where\n ((RDB$RELATION_TYPE = 0) or\n (RDB$RELATION_TYPE is null)) and\n (RDB$SYSTEM_FLAG = 0)\n order by (RDB$RELATION_NAME)\n \";\n\n\n $statement = $this->pdo->prepare($query);\n $statement->execute(array($this->getSchema()));\n\n $tableNames = array();\n while ($tableName = $statement->fetchColumn(0)) {\n $tableNames[] = $tableName;\n }\n\n return $tableNames;\n }", "function get_tables()\n{\n $tableList = array();\n $res = mysqli_query($this->conn,\"SHOW TABLES\");\n while($cRow = mysqli_fetch_array($res))\n {\n $tableList[] = $cRow[0];\n }\n return $tableList;\n}", "public static function get_table_queries_for_addons(){\n $sqls = [];\n $sqls = apply_filters('latepoint_addons_sqls', $sqls);\n return $sqls;\n }", "function extras_tables($connect='') {\r\n\t$a = array();\r\n\tif ($s = sql_showbase(null, $connect)) {\r\n\t\twhile ($t = sql_fetch($s, $connect)) {\r\n\t\t\t\t$a[] = array_pop($t);\r\n\t\t}\r\n\t}\r\n\treturn $a;\r\n}", "public function getTableList()\n\t{\n\t\treturn [];\n\t}", "public function getAllTables()\n {\n return $this->connection->select(\n $this->grammar->compileGetAllTables(\n $this->parseSearchPath(\n $this->connection->getConfig('search_path') ?: $this->connection->getConfig('schema')\n )\n )\n );\n }", "public function getTcaTables() {}", "public function schema_tables($schema = NULL)\n\t{\n\t\tif ($schema instanceof Database_Identifier)\n\t\t{\n\t\t\t$schema = $schema->name;\n\t\t}\n\t\telseif (is_array($schema))\n\t\t{\n\t\t\t$schema = array_pop($schema);\n\t\t}\n\n\t\tif (empty($schema))\n\t\t{\n\t\t\t$schema = $this->_config['connection']['database'];\n\t\t}\n\n\t\t$sql =\n\t\t\t'SELECT table_name, table_type,'\n\t\t\t.' engine, auto_increment, table_collation, table_comment'\n\t\t\t.' FROM information_schema.tables WHERE table_schema = '.$this->quote_literal($schema);\n\n\t\tif ( ! $prefix = $this->table_prefix())\n\t\t{\n\t\t\t// No table prefix\n\t\t\treturn $this->execute_query($sql)->as_array('table_name');\n\t\t}\n\n\t\t// Filter on table prefix\n\t\t$sql .= \" AND table_name LIKE '\".strtr($prefix, array('_' => '\\_', '%' => '\\%')).\"%'\";\n\n\t\t$prefix = strlen($prefix);\n\t\t$result = array();\n\n\t\tforeach ($this->execute_query($sql) as $table)\n\t\t{\n\t\t\t// Strip table prefix from table name\n\t\t\t$table['table_name'] = substr($table['table_name'], $prefix);\n\t\t\t$result[$table['table_name']] = $table;\n\t\t}\n\n\t\treturn $result;\n\t}", "public function buildRefArray(){\n $query = $this->db->query(\" SELECT `TABLE_NAME`\n FROM `INFORMATION_SCHEMA`.`COLUMNS` \n WHERE `TABLE_SCHEMA`= DATABASE()\n \");\n $tablesTmp = $query->result();\n \n \n /**\n * Get each table's column and referance table name with referance column\n */\n $query = $this->db->query(\" SELECT\n INFORMATION_SCHEMA.COLUMNS.TABLE_NAME AS `table_name`,\n INFORMATION_SCHEMA.COLUMNS.COLUMN_NAME AS `column_name`\n FROM INFORMATION_SCHEMA.COLUMNS \n WHERE INFORMATION_SCHEMA.COLUMNS.TABLE_SCHEMA = DATABASE()\n \");\n \n $query2 = $this->db->query(\" SELECT \n INFORMATION_SCHEMA.KEY_COLUMN_USAGE.TABLE_NAME AS `table_name`,\n INFORMATION_SCHEMA.KEY_COLUMN_USAGE.COLUMN_NAME AS `column_name`,\n INFORMATION_SCHEMA.KEY_COLUMN_USAGE.REFERENCED_COLUMN_NAME AS `referenced_column_name`,\n INFORMATION_SCHEMA.KEY_COLUMN_USAGE.REFERENCED_TABLE_NAME AS `referenced_table_name`\n FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE\n WHERE INFORMATION_SCHEMA.KEY_COLUMN_USAGE.TABLE_SCHEMA = DATABASE()\n AND INFORMATION_SCHEMA.KEY_COLUMN_USAGE.REFERENCED_TABLE_SCHEMA = DATABASE()\n \");\n \n /**\n * Setting query array as $refArr['tableName'][columnName] = [refData]\n */\n \n // Step1: Arrange referance column usage array\n foreach($query2->result_array() as $key => $val){ \n $refArr[$val['table_name']] = [$val['column_name'] => ['ref_table_name' => $val['referenced_table_name'], 'ref_column_name' => $val['referenced_column_name']]];\n }\n \n // Step2: Arrange $refArr\n foreach($query->result_array() as $key => $val){\n \n $refArr[$val['table_name']] = !isset($refArr[$val['table_name']]) ? [] : $refArr[$val['table_name']];\n \n $refArr[$val['table_name']][$val['column_name']] = isset($refArr[$val['table_name']]) && isset($refArr[$val['table_name']][$val['column_name']])\n ? [\n \"refTable\" => $refArr[$val['table_name']][$val['column_name']]['ref_table_name'], \n \"refTableCol\" => $refArr[$val['table_name']][$val['column_name']]['ref_column_name']\n ]\n : false;\n }\n \n return $refArr;\n }", "private function getTables()\n {\n $this->emTypeVerify();\n $conn = $this->getDoctrine()->getManager($this->emType)->getConnection();\n $db = $conn->getDatabase();\n $tables = $conn->fetchAll(\"SHOW TABLES FROM $db\");\n return $tables;\n }", "protected function getAllTables()\n {\n return $this->getConnection()->select(\n $this->grammar->compileGetAllTables()\n );\n }", "public function getAllTables(): array\n {\n $names_Tables = [];\n $Schemas = $this->getALLschema();\n foreach ($Schemas as $schema) {\n $names_Tables[] = $schema->getNameTable();\n }\n return $names_Tables;\n }", "function &getTableSchema($tablename);", "public function show_tables()\n\t{\n\t\t$results = $this->get_rows('SHOW TABLES');\n\t\tforeach ($results as $row)\n\t\t{\n\t\t\t$array[] = $row[0];\n\t\t}\n\n\t\treturn $array;\n\t}", "function get_managerDB_base_tableNames(){\n global $msManager_link, $managerDBname;\n $tableNameArr = array();\n $sql = \"SHOW TABLES FROM $managerDBname\";\n $result = mysqli_query($msManager_link, $sql);\n if($result){\n while($row = mysqli_fetch_row($result)){\n if(!strstr($row[0], 'SearchResults') && !strstr($row[0], 'SearchTasks') && !strstr($row[0], 'Plate_Conf')){\n array_push($tableNameArr, $row[0]);\n } \n }\n mysqli_free_result($result);\n }\n if($tableNameArr){\n return $tableNameArr;\n }else{\n return 0;\n } \n}", "public function getUsedTables() : array\n {\n return [ 'products' ];\n }", "public function tableAliases()\n {\n return $this->_tableAliases;\n }", "function getTableNames() {\n\n //Gets tablenames from the database\n Global $serverInfo;\n $conn = connect();\n $sql = \"SHOW TABLES FROM \" . $serverInfo[3];\n $result = $conn->query($sql);\n\n //Outputs data if information was found\n $tableArray = [];\n if ($result->num_rows > 0) {\n\n //Writes found data into an array\n $i = 0;\n while ($row = $result->fetch_assoc() ) {\n $tableArray[$i] = $row[\"Tables_in_\" . $serverInfo[3] ];\n $i++;\n }\n return $tableArray;\n }\n}" ]
[ "0.70117694", "0.69593287", "0.6937593", "0.69193596", "0.69101226", "0.69101226", "0.69101226", "0.69101226", "0.69101226", "0.67669576", "0.6760109", "0.67502767", "0.67005366", "0.66204053", "0.661038", "0.6552361", "0.6534775", "0.6532648", "0.6446319", "0.64217865", "0.6421094", "0.6421094", "0.6421094", "0.6407283", "0.63785243", "0.6376067", "0.6373991", "0.63739544", "0.63272905", "0.63146615", "0.6309524", "0.6307889", "0.62624836", "0.6260184", "0.6235841", "0.6199047", "0.6195646", "0.6186465", "0.6167563", "0.61517507", "0.61060303", "0.609959", "0.60874283", "0.6086827", "0.60778874", "0.6065329", "0.6054889", "0.60460716", "0.60324943", "0.6011631", "0.6009341", "0.6004827", "0.59989053", "0.59882444", "0.59853095", "0.598055", "0.5959194", "0.59472036", "0.5944493", "0.5942544", "0.59382373", "0.59289545", "0.5928502", "0.59138125", "0.5910826", "0.5909424", "0.5897805", "0.58952224", "0.58862233", "0.58849514", "0.5882922", "0.5882317", "0.58801895", "0.58756435", "0.5844918", "0.5840114", "0.5834151", "0.5819551", "0.5813509", "0.5812121", "0.5804181", "0.57952183", "0.5789238", "0.5779827", "0.5754717", "0.57431436", "0.5722704", "0.5718062", "0.5714923", "0.5712501", "0.5702899", "0.56837714", "0.5677799", "0.56661874", "0.5655171", "0.56418973", "0.5641514", "0.5636257", "0.5633236", "0.5629992" ]
0.69344884
3
Returns a reference to the union queries for this query. This include queries for UNION, UNION ALL, and UNION DISTINCT. Because this method returns by reference, alter hooks may edit the tables array directly to make their changes. If just adding union queries, however, the use of the union() method is preferred. Note that this method must be called by reference as well:
public function &getUnion();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unionAll($query, $overwrite = false);", "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 union($query, $all);", "function union($table){\n\t\t$this->union[] = $table;\t\n\t\treturn $this;\t\n\t}", "protected abstract function get_union();", "public function unionQueries( $sqls, $all ) {\n\t\t$glue = $all ? ') UNION ALL (' : ') UNION (';\n\n\t\treturn '(' . implode( $glue, $sqls ) . ')';\n\t}", "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(): self;", "protected function processUnion($tokens) {\n // code which finds UNION and UNION ALL query parts\n $processor = new UnionProcessor();\n return $processor->process($tokens);\n }", "protected function compileUnion(array $union)\n {\n $conduction = $union['all'] ? ' union all ' : ' union ';\n\n return $conduction . '(' . $union['query']->toSql() . ')';\n }", "public function union(SelectInterface $query, $type = '');", "function &tables(){\n\t\tif ( isset( $this->_cache[__FUNCTION__] ) ){\n\t\t\treturn $this->_cache[__FUNCTION__];\n\t\t}\n\t\t\n\t\t// It is not in the cache yet, let's calculate it.\n\t\t$data = $this->_parseSQL();\n\t\t$out = array();\n\t\t$numTables = count($data['tables']);\n\t\tfor ($i=0; $i<$numTables; $i++){\n\t\t\t$tableinfo = $data['tables'][$i];\n\t\t\tif ( $tableinfo['alias'] ) {\n\t\t\t\t$out[$tableinfo['alias']] =& $this->getTableOrView($tableinfo['alias']);\n\t\t\t} else if ( $tableinfo['type'] == 'ident' ) {\n\t\t\t\t$out[$tableinfo['value']] =& $this->getTableOrView($tableinfo['value']);\n\t\t\t} else {\n\t\t\t\ttrigger_error(\"Problem getting tables for view '\".$this->name.\"' because one of the tables in the query does not have an appropriate value.\".Dataface_Error::printStackTrace(), E_USER_ERROR);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->_cache[__FUNCTION__] =& $out;\n\t\treturn $out;\n\t}", "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 }", "public function buildUnions(array $unions = null, array &$values = [])\n {\n if ($unions === null) {\n return null;\n }\n\n $unionKeywords = [];\n $selects = [];\n\n foreach ($unions as $union) {\n list($select, $all) = $union;\n\n if ($select instanceof Select) {\n list($select, $values) = $this->assembleSelect($select, $values);\n }\n\n $unionKeywords[] = ($all ? 'UNION ALL' : 'UNION');\n $selects[] = $select;\n }\n\n return [$unionKeywords, $selects];\n }", "protected function compileUnion(array $union): string\n {\n $joiner = $union['all'] ? ' union all ' : ' union ';\n\n return $joiner.$this->wrapUnion($union['query']->tosql());\n }", "public static function get_table_queries_for_addons(){\n $sqls = [];\n $sqls = apply_filters('latepoint_addons_sqls', $sqls);\n return $sqls;\n }", "public function union($query, $all = false)\n {\n throw new NotImplementedException('Joins are not implemented in Crate');\n }", "function union_tablas($id,$id_usuario = FALSE,$inicio=FALSE,$tamano=FALSE){\n\t\tif ($id_usuario)\n\t\t\t$filtro =\" AND NOT EXISTS (SELECT 1 FROM noticias_eliminar ne WHERE ne.id_noticia = n.id AND ne.id_usuario = \".$id_usuario.\")\";\n\t\telse\n\t\t\t$filtro = \"\";\n\t\tif ($tamano)\n\t\t\t$limit = \"LIMIT $inicio, $tamano\";\n\t\telse\n\t\t\t$limit = \"\";\n\t\tif ($id_usuario)\n\t\t\t$filtro2 =\" AND NOT EXISTS (SELECT 1 FROM ofertas_eliminar oe WHERE oe.id_ofertas = o.id AND oe.id_usuarios = \".$id_usuario.\")\";\n\t\telse\n\t\t\t$filtro2 = \"\";\n\t\t$consulta = \"(SELECT n.id as id_noticia, n.titulo,n.desc_noticia,n.fecha,1 as activo, 'ajax-noticias' as tabla FROM noticias n JOIN noticias_usuarios nu ON nu.id_noticias = n.id WHERE nu.id_tipo_usuarios = \".$id.$filtro.\") UNION ALL (SELECT o.id oferta_id, o.titulo,o.desc_oferta,o.fecha,o.activo, 'ajax-ofertas' as tabla FROM ofertas_trabajo o JOIN ofertas_usuarios ou ON ou.id_ofertas_trabajo = o.id WHERE ou.id_tipo_usuarios = \".$id.$filtro2.\") ORDER BY fecha DESC $limit\";\n\t\t$query = $this->db->query($consulta);\n\t\treturn $query->result();\n\t}", "public function union($values);", "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 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 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 }", "protected function compileUnions(Builder $query)\n {\n $sql = '';\n\n foreach ($query->unions as $union) {\n $sql .= $this->compileUnion($union);\n }\n\n if (!empty($query->unionOrders)) {\n $sql .= ' ' . $this->compileOrders($query, $query->unionOrders);\n }\n\n if (isset($query->unionLimit)) {\n $sql .= ' ' . $this->compileLimit($query, $query->unionLimit);\n }\n\n if (isset($query->unionOffset)) {\n $sql .= ' ' . $this->compileOffset($query, $query->unionOffset);\n }\n\n return ltrim($sql);\n }", "protected function compileUnions(Builder $builder): string\n {\n $sql = '';\n\n foreach ($builder->unions as $union) {\n $sql .= $this->compileUnion($union);\n }\n\n if ( ! empty($builder->unionOrders)) {\n $sql .= ' '.$this->compileOrders($builder, $builder->unionOrders);\n }\n\n if (isset($builder->unionLimit)) {\n $sql .= ' '.$this->compileLimit($builder, $builder->unionLimit);\n }\n\n if (isset($builder->unionOffset)) {\n $sql .= ' '.$this->compileOffset($builder, $builder->unionOffset);\n }\n\n return ltrim($sql);\n }", "public function unions(): self\n {\n $sequence = $this\n ->sorted($this->sortByStartDate(...))\n ->reduce($this->calculateUnion(...), new self())\n ;\n\n if ($sequence->periods === $this->periods) {\n return $this;\n }\n\n return $sequence;\n }", "public function tables($arrTables) {\r\n $this->sqlTables = array_merge($this->sqlTables, $arrTables);\r\n return $this;\r\n }", "public function union(Statement $statement)\n\t\t{\n\t\t\t$this->unions[] = $statement;\n\t\t\treturn $this;\n\t\t}", "protected function wrapUnion($sql): string\n {\n return '('.$sql.')';\n }", "function eliminadas_union($id_usuario,$inicio=FALSE,$tamano=FALSE){\n\t\tif ($tamano)\n\t\t\t$limit = \"LIMIT $inicio, $tamano\";\n\t\telse\n\t\t\t$limit = \"\";\n\n\t\t$consulta = \"(SELECT n.id AS id_noticia, n.titulo, n.desc_noticia, n.fecha, 1 AS activo,'ajax-noticias' as tabla FROM noticias_eliminar ne JOIN noticias n ON ne.id_noticia = n.id WHERE ne.id_usuario = $id_usuario) UNION (SELECT o.id oferta_id, o.titulo, o.desc_oferta, o.fecha, o.activo,'ajax-ofertas' as tabla FROM ofertas_trabajo o JOIN ofertas_eliminar oe ON oe.id_ofertas = o.id WHERE oe.id_usuarios = $id_usuario) ORDER BY fecha DESC $limit\";\n\t\t$query = $this->db->query($consulta);\n\t\treturn $query->result();\n\t}", "public function testUnion() {\n\t\t$array1 = array(1, 2, 3, 5, 6);\n\t\t$array2 = array(1, 4, 5, 7, 8);\n\t\t$result = _::union($array1, $array2);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(8, $result);\n\t\t$this->assertEquals(1, $result[0]);\n\t\t$this->assertEquals(2, $result[1]);\n\t\t$this->assertEquals(3, $result[2]);\n\t\t$this->assertEquals(5, $result[3]);\n\t\t$this->assertEquals(6, $result[4]);\n\t\t$this->assertEquals(4, $result[5]);\n\t\t$this->assertEquals(7, $result[6]);\n\t\t$this->assertEquals(8, $result[7]);\n\t}", "public function getSQLDiffs() {\n \n $diffData = $this->findDiffs();\n if(count($diffData) == 0) {\n return $diffData;\n }\n \n $sqlList = array();\n \n # Add tables...\n foreach($diffData['tables'] as $table) {\n \n if(count($table) == 0) { # This table exists...\n continue;\n }\n\n $sql = array();\n $sql[] = 'CREATE TABLE `'.$table['Name'].'` (';\n \n $colList = array();\n foreach($diffData['columns'][$table['Name']] as $column) {\n $colList[] = $this->getColumnLine($column);\n }\n \n $sql[] = implode(',', $colList);\n $sql[] = ')';\n \n $sql[] = 'ENGINE = '.$table['Engine'];\n $sql[] = 'AUTO_INCREMENT = '.$table['Auto_increment'];\n $sql[] = 'COMMENT = \\''.$table['Comment'].'\\'';\n $sql[] = 'COLLATE '.$table['Collation'];\n \n # Remove it from the columns list\n unset($diffData['columns'][$table['Name']]);\n \n $sqlList[] = implode(' ',$sql).';';\n } \n \n # Now add columns.... \n foreach($diffData['columns'] as $tableName => $columnList) {\n \n foreach($columnList as $columnName => $column) {\n \n $sql = array(); \n \n $sql[] = 'ALTER TABLE `'.$tableName.'` ADD';\n $sql[] = $this->getColumnLine($column);\n \n if($column['prevField'] === null) {\n $sql[] = 'FIRST'; # Insert at top of table\n } else {\n $sql[] = 'AFTER `'.$column['prevField'].'`'; \n }\n \n $sqlList[] = trim(implode(' ', $sql)).';';\n }\n }\n \n # ALTER TABLES for TYPES\n foreach($diffData['types'] as $tableName => $columnList) {\n \n foreach($columnList as $columnName => $column) {\n \n $sql = array(); \n \n $sql[] = 'ALTER TABLE `'.$tableName.'` CHANGE';\n $sql[] = '`'.$columnName.'`';\n $sql[] = $this->getColumnLine($column['newtype']);\n \n $sqlList[] = trim(implode(' ', $sql)).';';\n }\n }\n \n \n # Now create the SQL for generating indexes\n foreach($diffData['indexes'] as $tableName => $indexes) {\n \n if(count($indexes) == 0) {\n continue;\n }\n \n foreach($indexes as $index) {\n $sqlList[] = $this->getIndexLine($index);\n }\n }\n \n return $sqlList;\n }", "public static function tables()\n {\n $tables = false;\n //\n $Tables = Driver::read('SHOW TABLES', Driver::INDEX);\n // die(var_dump($Tables));\n //\n foreach ($Tables as $row) {\n $target_tables[] = $row[0];\n }\n //\n if ($tables !== false) {\n $target_tables = array_intersect($target_tables, $tables);\n }\n //\n return $target_tables;\n }", "public function qbAll()\n {\n return $this->createQueryBuilder(\"s\");\n }", "public function getQueries(){\n \treturn $this->_execedQueries;\n }", "public function unionDataProvider()\n {\n // A, B, expected result\n return [\n [[], [], []],\n [[], ['a'], ['a']],\n [['a'], ['a'], ['a']],\n [['a'], ['b'], ['a', 'b']],\n [['a', 'b'], [], ['a', 'b']],\n ];\n }", "protected function assembleQueries()\n {\n if ($this->getExecutedFilters()) {\n return $this;\n }\n\n $objectType = $this->getObjectType();\n\n $whereConditions = [];\n\n $mainTable = $this->getEntityService()->getTableName($objectType);\n $pre = 'v2';\n $dqlFilters = [];\n $tables = $this->getEntityService()->getVarOptionTables();\n $bindTypes = [];\n $pdoBindTypes = $this->getEntityService()->getPdoBindTypes();\n $filterable = $this->getFilterable();\n\n $x = 0; //count($this->getFilters()); // for tracking bind types\n\n // handle basic filters eg key=value\n // also, special handling of price range\n $filterParams = [];\n if ($this->getFilters()) {\n foreach($this->getFilters() as $field => $value) {\n foreach($filterable as $filterInfo) {\n if ($field == $filterInfo[CartRepositoryInterface::CODE]) {\n\n // handle special case for numerical ranges\n // eg price=100-199 or subtotal=50-100\n // note : the handling of strpos is very intentional, want an index > 0\n if ($filterInfo[CartRepositoryInterface::DATATYPE] == 'number' && strpos($value, '-')) {\n $rangeValues = explode('-', $value);\n $rangeMin = $rangeValues[0];\n $rangeMax = isset($rangeValues[1]) ? $rangeValues[1] : null;\n if (isset($rangeMax)) {\n\n $rangeMin = (float) $rangeMin;\n $rangeMax = (float) $rangeMax;\n\n // minimum\n $this->addAdvFilter([\n 'field' => $field,\n 'op' => 'gte',\n 'value' => $rangeMin,\n ]);\n\n // maximum\n $this->addAdvFilter([\n 'field' => $field,\n 'op' => 'lt',\n 'value' => $rangeMax,\n ]);\n\n break;\n }\n }\n\n if (isset($filterInfo['join'])) {\n $this->joins[] = $filterInfo['join'];\n $field = $filterInfo['join']['table'] . \".{$field}\";\n } elseif (!is_int(strpos($field, '.'))) {\n $field = \"main.{$field}\";\n }\n\n $whereConditions[] = \"{$field} = ?\";\n $filterParams[] = $value;\n\n switch($filterInfo[CartRepositoryInterface::DATATYPE]) {\n case 'boolean':\n $bindTypes[$x] = \\PDO::PARAM_INT;\n break;\n case 'number':\n // todo : make this better\n $bindTypes[$x] = \\PDO::PARAM_INT;\n break;\n case 'string':\n $bindTypes[$x] = \\PDO::PARAM_STR;\n break;\n case 'date':\n $bindTypes[$x] = \\PDO::PARAM_STR;\n break;\n default:\n $bindTypes[$x] = \\PDO::PARAM_STR;\n break;\n }\n\n $x++;\n break;\n }\n }\n }\n }\n\n // handle fulltext search first\n\n // note : use setFulltextIds() if you search somewhere else first eg SOLR / Elasticsearch\n if ($this->getFulltextIds()) {\n // ensure IDs are sanitized before you set them\n $whereConditions[] = \"main.id in (\" . implode(',', $this->getFulltextIds()) . \")\";\n } else if ($this->getQuery()\n && $this->getSearchField()\n && $this->getSearchMethod()) {\n\n if (is_array($this->getSearchField())) {\n if (count($this->getSearchField()) > 1) {\n\n $cond = '';\n foreach($this->getSearchField() as $searchField) {\n $bindTypes[$x] = \\PDO::PARAM_STR;\n\n $tbl = 'main';\n\n if (is_array($searchField)) {\n if (isset($searchField['table']) && isset($searchField['column'])) {\n $tbl = $searchField['table'];\n $searchField = $searchField['column'];\n } else {\n continue;\n }\n }\n\n // cond is empty, add a leading parentheses\n if (!$cond) {\n $cond .= \"({$tbl}.{$searchField} like ?\";\n } else {\n $cond .= \" OR {$tbl}.{$searchField} like ?\";\n }\n $x++;\n }\n $cond .= ')';\n $whereConditions[] = $cond;\n } else {\n\n $fields = $this->getSearchField();\n $searchField = $fields[0];\n if (is_array($searchField)) {\n if (isset($searchField['table']) && isset($searchField['column'])) {\n $tbl = $searchField['table'];\n $searchField = $searchField['column'];\n\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $whereConditions[] = \"{$tbl}.{$searchField} like ?\";\n $x++;\n }\n } else {\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $whereConditions[] = \"main.{$searchField} like ?\";\n $x++;\n }\n }\n } else {\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $whereConditions[] = \"main.{$this->getSearchField()} like ?\";\n $x++;\n }\n }\n\n // handle \"advanced\" filters\n // eg filter_field[x], filter_op[x], filter_val[x]\n // specifies a field, value, and operator ie (id > 100)\n $advFilterParams = [];\n if ($this->getAdvFilters()) {\n foreach($this->getAdvFilters() as $advFilter) {\n\n $field = $advFilter['field'];\n $op = $advFilter['op'];\n $value = $advFilter['value'];\n $table = isset($advFilter['table'])\n ? $advFilter['table']\n : 'main';\n\n $found = false;\n foreach($filterable as $filterInfo) {\n if ($field == $filterInfo[CartRepositoryInterface::CODE]) {\n $found = true;\n\n switch($filterInfo[CartRepositoryInterface::DATATYPE]) {\n case 'boolean':\n $bindTypes[$x] = \\PDO::PARAM_INT;\n $x++;\n break;\n case 'number':\n if ($op == 'in') {\n if (!is_array($value)) {\n $value = explode(',', $value);\n }\n if ($value) {\n foreach($value as $dummy) {\n $bindTypes[$x] = \\PDO::PARAM_INT;\n $x++;\n }\n }\n } else {\n $bindTypes[$x] = \\PDO::PARAM_INT;\n $x++;\n }\n break;\n case 'string':\n if ($op == 'in') {\n if (!is_array($value)) {\n $value = explode(',', $value);\n }\n if ($value) {\n foreach($value as $dummy) {\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $x++;\n }\n }\n } else {\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $x++;\n }\n\n break;\n case 'date':\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $x++;\n break;\n default:\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $x++;\n break;\n }\n\n\n break;\n }\n }\n\n if (!$found || !in_array($op, ['contains', 'starts', 'ends', 'equals', 'gt', 'gte', 'lt', 'lte', 'in'])) {\n continue;\n }\n\n // example:\n // $and->add($qb->expr()->eq('u.id', 1));\n\n switch($op) {\n case 'contains':\n $advFilterParams[] = '%'. $value . '%';\n $whereConditions[] = \"{$table}.{$field} like ?\";\n break;\n case 'starts':\n $advFilterParams[] = $value . '%';\n $whereConditions[] = \"{$table}.{$field} like ?\";\n break;\n case 'ends':\n $advFilterParams[] = '%'. $value;\n $whereConditions[] = \"{$table}.{$field} like ?\";\n break;\n case 'equals':\n $advFilterParams[] = $value;\n $whereConditions[] = \"{$table}.{$field} = ?\";\n break;\n case 'notequal':\n $advFilterParams[] = $value;\n $whereConditions[] = \"{$table}.{$field} != ?\";\n break;\n// todo: this is messing up the counter, but it should be implemented\n// case 'null':\n// $advFilterParams[] = 'NULL';\n// $whereConditions[] = \"{$table}.{$field} IS ?\";\n// break;\n// case 'notnull':\n// $advFilterParams[] = $value;\n// $whereConditions[] = \"{$table}.{$field} IS NOT NULL\";\n// break;\n case 'gt':\n $advFilterParams[] = $value;\n $whereConditions[] = \"{$table}.{$field} > ?\";\n break;\n case 'gte':\n $advFilterParams[] = $value;\n $whereConditions[] = \"{$table}.{$field} >= ?\";\n break;\n case 'lt':\n $advFilterParams[] = $value;\n $whereConditions[] = \"{$table}.{$field} < ?\";\n break;\n case 'lte':\n $advFilterParams[] = $value;\n $whereConditions[] = \"{$table}.{$field} <= ?\";\n break;\n case 'in':\n if (!is_array($value)) {\n $value = explode(',', $value);\n }\n\n if ($value) {\n foreach($value as $val) {\n $advFilterParams[] = $val;\n }\n $paramStr = implode(',', $value);\n $whereConditions[] = \"{$table}.{$field} in ({$paramStr})\";\n }\n\n break;\n default:\n\n break;\n }\n }\n }\n\n // handle category filter with products\n if ($this->getCategoryId()\n && $this->getObjectType() == EntityConstants::PRODUCT) {\n\n $categoryTable = $this->getEntityService()->getTableName(EntityConstants::CATEGORY_PRODUCT);\n $bindTypes[$x] = \\PDO::PARAM_INT;\n // todo : sometime in the future , add a category 'anchor', connecting multiple categories\n $whereConditions[] = \"main.id in (select product_id from {$categoryTable} where category_id = ?)\";\n $x++;\n }\n\n // handle stock, visibility filters with products\n\n\n // handle facet filters\n // ie filters on EAV tables, child tables\n $facetFilterParams = [];\n if ($this->getFacetFilters()) {\n foreach($this->getFacetFilters() as $facetCode => $value) {\n\n $itemVar = $this->getVarByCode($facetCode);\n\n $tblValue = $objectType . '_' . EntityConstants::getVarDatatype($itemVar->getDatatype());\n $values = explode($this->valueSep, $value);\n $joinTbl = $tables[$itemVar->getDatatype()];\n $joinTblPre = 'ivo';\n\n if (count($values) > 1) {\n $conditions = [];\n foreach($values as $itemVarValue) {\n $conditions[] = \"({$pre}.value = ? OR {$joinTblPre}.url_value = ?)\";\n $facetFilterParams[] = $itemVarValue;\n\n $bindTypes[$x] = $pdoBindTypes[$itemVar->getDatatype()];\n $x++;\n\n $bindTypes[$x] = $pdoBindTypes[$itemVar->getDatatype()];\n $x++;\n\n }\n $dqlFilters[] = \"({$pre}.item_var_id={$itemVar->getId()} AND (\".implode(' OR ', $conditions).\"))\";\n } else {\n $dqlFilters[] = \"({$pre}.item_var_id={$itemVar->getId()} AND ({$pre}.value = ? OR {$joinTblPre}.url_value = ?))\";\n $facetFilterParams[] = $value;\n\n $bindTypes[$x] = $pdoBindTypes[$itemVar->getDatatype()];\n $x++;\n\n $bindTypes[$x] = $pdoBindTypes[$itemVar->getDatatype()];\n $x++;\n }\n\n $whereConditions[] = \"main.id in (select parent_id from {$tblValue} {$pre} left join {$joinTbl} {$joinTblPre} on {$pre}.item_var_option_id={$joinTblPre}.id where \". implode(' AND ', $dqlFilters).\")\";\n $dqlFilters = [];\n\n }\n }\n\n // assemble where conditions\n $conditionsSql = implode(' AND ', $whereConditions);\n if (!$conditionsSql) {\n $conditionsSql = '1=1';\n }\n\n // assemble group by\n $groupSql = $this->getGroupBy()\n ? 'group by ' . implode(', ', $this->getGroupBy())\n : '';\n\n // assemble select columns\n $colSql = '';\n if ($this->getColumns()) {\n $cols = [];\n foreach($this->getColumns() as $colData) {\n // add select\n $select = $colData['select'];\n $alias = $colData['alias'];\n if ($alias) {\n $select .= \" as {$alias}\";\n }\n\n $cols[] = $select;\n }\n $colSql = ',' . implode(',', $cols);\n }\n\n // assemble joins\n $joinSql = '';\n if ($this->getJoins()) {\n $joins = [];\n foreach($this->getJoins() as $join) {\n $type = $join['type'];\n $table = $join['table'];\n $column = $join['column'];\n $joinAlias = $join['join_alias'];\n $joinColumn = $join['join_column'];\n $joins[] = \"{$type} join {$table} on {$joinAlias}.{$joinColumn}={$table}.{$column}\";\n }\n $joinSql = implode(' ', $joins);\n }\n\n // main data query without sorting and grouping\n $this->filtersSql = \"select distinct(main.id) from {$mainTable} main {$joinSql} where {$conditionsSql}\";\n // main data query\n $this->mainSql = \"select distinct(main.id), main.* {$colSql} from {$mainTable} main {$joinSql} where {$conditionsSql} {$groupSql}\";\n // main count query, for all rows, not just the current page\n $this->countSql = \"select count(distinct(main.id)) as count from {$mainTable} main {$joinSql} where {$conditionsSql} {$groupSql}\";\n $this->bindTypes = $bindTypes;\n $this->filterParams = $filterParams;\n $this->advFilterParams = $advFilterParams;\n $this->facetFilterParams = $facetFilterParams;\n\n $this->setExecutedFilters(true);\n return $this;\n }", "public function mergeQuery(array $queryToBeAppended);", "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 getQueryBuilders() {\n\t\treturn $this->queryBuilders;\n\t}", "public function getTables()\n {\n $sqlStm = \"SELECT TABLE_NAME as tableName,\n CASE TABLE_TYPE WHEN 'VIEW' THEN 'true'\n ELSE 'false'\n END as isView\n FROM information_schema.tables\n WHERE TABLE_SCHEMA = ?\";\n \n $query = new DataQuery($sqlStm);\n $param = new DataParameter('schema', DataParameter::TYPE_VARCHAR , $this->schema);\n return $this->query($query, array($param));\n }", "public function getSelects() {\n\t\t$sql = \"\";\n\n\t\tif (count($this->fields) > 0) {\n\t\t\tforeach ($this->fields as $field) {\n\t\t\t\t$sql .= $field[0];\n\t\t\t\tif ($field[1] != null) {\n\t\t\t\t\t$sql .= \" AS `{$field[1]}`\";\n\t\t\t\t}\n\t\t\t\t$sql .= \", \";\n\t\t\t}\n\t\t}\n\n\n\n\t\tif (count($this->join) > 0) {\n\t\t\tforeach ($this->join as $jo) {\n\t\t\t\t$j = $jo[2];\n\t\t\t\t$s = $j->getSelects();\n\t\t\t\tif ($s != \"\") {\n\t\t\t\t\t$sql .= \" \".$s.\", \";\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t $j = $jo[1];\n\t\t\t\tif (count($j->fields) == 0) {\n\t\t\t\t$j->fields[] = \"*\";\n\t\t\t\t}\n\t\t\t\tforeach ($j->fields as $field) {\n\t\t\t\tif ($field != \"*\") {\n\t\t\t\t$field = \"`\".$field.\"`\";\n\t\t\t\t}\n\t\t\t\t$sql .= \"`\".$j->getTable().\"`.\".$field.\", \";\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t}\n\t\t}\n\n\t\tif (substr($sql, -2) == \", \") {\n\t\t\t$sql = substr($sql, 0, strlen($sql)-2);\n\t\t}\n\t\treturn $sql;\n\t}", "public function getTables()\n {\n\treturn $this->query('select [name] from [tables]');\n }", "public function getQueries() {\r\n\t\treturn $this->queries;\r\n\t}", "public function getUnionType() : UnionType\n {\n if (null !== ($union_type = $this->getFutureUnionType())) {\n $this->getUnionType()->addUnionType($union_type);\n }\n\n return parent::getUnionType();\n }", "public final function simplify(Context\\Context $ctx_ = null):self {\n $ctx = $ctx_ ?? new Context\\Context(new NullErrorReceiver());\n $union = new Union($this);\n foreach ($this->split() as $type) {\n $union = $union->addType($type, $ctx);\n }\n return $union;\n }", "protected function getBaseQuery()\n {\n return parent::getBaseQuery()\n ->select([\n 'COUNT(DISTINCT ref_sub_components.id) AS total_sub_component',\n 'COUNT(DISTINCT ref_packages.id) AS total_package',\n 'COUNT(DISTINCT ref_service_components.id) AS total_service',\n ])\n ->join('ref_component_sub_components', 'ref_component_sub_components.id_component = ref_components.id', 'left')\n ->join('ref_sub_components', 'ref_sub_components.id = ref_component_sub_components.id_sub_component', 'left')\n ->join('ref_packages', 'ref_packages.id_component = ref_components.id', 'left')\n ->join('ref_service_components', 'ref_service_components.id_component = ref_components.id', 'left')\n ->group_by('ref_components.id');\n }", "public function getQueries()\n {\n return $this->queries;\n }", "protected function _from_tables()\n\t{\n\t\treturn implode(', ', $this->qb_from);\n\t}", "function merge_wp_queries()\n{\n\tglobal $post;\n\t$args = func_get_args();\n\n\tif($args < 2)\n\t\treturn new WP_Query();\n\n\t$merged = array();\n\t\n\t$post_types = array();\n\t$all_post_types = array(); // Will not be reset on iterations, so that there is a record of all post types needed.\n\t// Let's handle each query.\n\tforeach($args as $arg)\n\t{\n\t\t// How many posts to get\n\t\t$numberposts = -1;\n\t\tif(!empty($arg['posts_per_page']))\n\t\t\t$numberposts = $arg['posts_per_page'];\n\t\telseif(!empty($arg['numberposts']))\n\t\t\t$numberposts = $arg['numberposts'];\n\t\telseif(!empty($arg['showposts']))\n\t\t\t$numberposts = $arg['showposts'];\n\t\t\n\t\t$arg['posts_per_page'] = $numberposts;\n\t\t\n\t\t// Make sure only IDs will be returned. We want the query to be lightweight.\n\t\t$arg['fields'] = 'ids';\n\n\t\t// What post types to retrieve\n\t\tif(!empty($arg['post_type']))\n\t\t{\n\t\t\t$post_types = $arg['post_type'];\n\t\t\t\n\t\t\t// Keep the post type(s) for later use.\n\t\t\tif(is_array($post_types))\n\t\t\t\t$all_post_types = array_merge($all_post_types, $post_types);\n\t\t\telse\n\t\t\t\t$all_post_types[] = $post_types;\n\t\t}\n\t\t\n\t\t$this_posts = new WP_Query($arg);\n\n\t\tforeach($this_posts->posts as $p)\n\t\t{\n\t\t\t$merged[] = $p;\n\t\t}\n\n\t\twp_reset_postdata();\n\t\t\n\t}\n\t$all_post_types = array_unique($all_post_types);\n\n\t$merged = array_unique($merged);\n\n\tif(count($merged==0))\n\t\t$merged[]=0;\n\n\t$params = array(\n\t\t'post__in' => $merged,\n\t\t'post_type' => $all_post_types,\n\t\t'posts_per_page' => -1,\n\t\t'suppress_filter' => false,\n\t\t'orderby' => 'post__in'\n\t);\n\n\t$merged_query = new WP_Query( $params );\n\n\treturn $merged_query;\n}", "public function getAllTables()\n {\n return $this->connection->select(\n $this->grammar->compileGetAllTables(\n $this->parseSearchPath(\n $this->connection->getConfig('search_path') ?: $this->connection->getConfig('schema')\n )\n )\n );\n }", "final public function tables()\n {\n return $this->doTables();\n }", "public function getQueries()\r\n {\r\n return $this->queries;\r\n }", "protected function getAllTables()\n {\n return $this->getConnection()->select(\n $this->grammar->compileGetAllTables()\n );\n }", "function optimize($tables)\n\t{\n\t\t$result = $this->db->query( 'VACUUM ' . $tables );\n\n\t\treturn $result;\n\t}", "public function getAllTables() {\n return array_unique(array_values($this->alias2table));\n }", "public function selectUserFilesUnionOtherFiles($viewData = null) {\n\t\t$DB = $this->con->query(\"SELECT * FROM files WHERE user_id = {$_SESSION['user_id']} UNION SELECT * FROM files WHERE user_id != {$_SESSION['user_id']}\")->fetchAll(\\PDO::FETCH_ASSOC);\n\t\treturn $DB;\n\t}", "public function get_sql() {\r\n\t\t// The parts of the final query\r\n\t\t$where = array();\r\n\r\n\t\tforeach ( $this->queries as $key => $query ) {\r\n\t\t\t$where_parts = $this->get_sql_for_subquery( $query );\r\n\t\t\tif ( $where_parts ) {\r\n\t\t\t\t// Combine the parts of this subquery into a single string\r\n\t\t\t\t$where[ $key ] = '( ' . implode( ' AND ', $where_parts ) . ' )';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Combine the subquery strings into a single string\r\n\t\tif ( $where )\r\n\t\t\t$where = ' AND ( ' . implode( \" {$this->relation} \", $where ) . ' )';\r\n\t\telse\r\n\t\t\t$where = '';\r\n\r\n\t\t/**\r\n\t\t * Filter the date query WHERE clause.\r\n\t\t *\r\n\t\t * @since 3.7.0\r\n\t\t *\r\n\t\t * @param string $where WHERE clause of the date query.\r\n\t\t * @param WP_Date_Query $this The WP_Date_Query instance.\r\n\t\t */\r\n\t\treturn apply_filters( 'get_date_sql', $where, $this );\r\n\t}", "protected function getReplacements($tables)\n {\n return [\n 'mutations' => $this->buildMutations($tables),\n ];\n }", "public function from($tables){\n\t\t\t$string = self::FROM;\n\n\t\t\t$string .= ' ' . (count($tables) > 1 ? implode(', ', $tables) : $tables[0]);\n\n\t\t\t$this->_query .= $string . ' ';\n\t\t\treturn $this->_returnObject ? $this : $string;\n\t\t}", "protected function parseUnion() {\n $reader = $this->reader; // alias in local\n\n do {\n // this will ALWAYS stop our loop\n if($reader->nodeType == XMLReader::END_ELEMENT && $reader->name == 'union') {\n break;\n }\n } while($reader->read());\n\n return;\n }", "public static function fullOperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_FULL_OP);\n }", "public function getQueries(): array\r\n\t{\r\n\t\treturn $this->data;\r\n\t}", "public function getAliasedTables()\n {\n if (empty($this->builderCache->aliasedTables)) {\n return [];\n }\n\n return $this->builderCache->aliasedTables;\n }", "public function getTablesModify() {}", "public function getSQL() {\n\t\t$o = $this->obj;\n\t\t$sql = \"SELECT\";\n\t\tif ($this->distinct) {\n\t\t\t$sql .= \" DISTINCT\";\n\t\t}\n\t\t$s = $this->getSelects();\n\t\tif ($s == \"\") {\n\t\t\t$sql .= \" \".$this->getTable().\".*\";\n\t\t} else {\n\t\t\t$sql .= \" \".$s;\n\t\t}\n\t\t$sql .= \" FROM \".$this->getFrom();\n\t\t$sql .= $this->getJoins();\n\t\t$where = $this->getFilters()->getSQL();\n\t\tif ($where != \"\") {\n\t\t\t$sql .= \" WHERE \".$where;\n\t\t}\n\n\n\n\t\tif ($this->group !== false) {\n\t\t\tif ($this->group[1] == false) {\n\t\t\t\t$sql .= \" GROUP BY \".$this->getTable().\".`\".$this->db->escape_string($this->group[0]).\"`\";\n\t\t\t} else {\n\t\t\t\t$sql .= \" GROUP BY \".$this->group[0];\n\t\t\t}\n\t\t}\n\t\t//if ($this->filter) {\n\t\t//\t$sql .= \" WHERE \".$this->filter->getSQL();\n\t\t//}\n\t\tif (count($this->order) > 0) {\n\t\t\tif ($this->order[0][0] === false) {\n\t\t\t\t$sql .= \" ORDER BY RAND()\";\n\t\t\t} elseif (isset($this->order[0][0])) {\n\t\t\t\t$sql .= \" ORDER BY \";\n\t\t\t\tforeach ($this->order as $cols) {\n\t\t\t\t\t$sql .= \"`\".$this->db->escape_string($cols[0]).\"`\";\n\t\t\t\t\tif ($this->orderAsc) {\n\t\t\t\t\t\t$sql .= \" {$cols[1]} \";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$sql .= \" {$cols[1]} \";\n\t\t\t\t\t}\n\t\t\t\t\t$sql .= \", \";\n\t\t\t\t}\n\t\t\t\t$sql = substr($sql, 0, -2);\n\t\t\t}\n\t\t}\n\n\t\tif ($this->start !== false) {\n\t\t\t$sql .= \" LIMIT {$this->start}\";\n\t\t\tif ($this->end !== false) {\n\t\t\t\t$sql .= \",{$this->end}\";\n\t\t\t}\n\t\t}\n\t\treturn $sql;\n\t}", "public function getAll($tables){\n return $this->db->get($tables)->result();\n }", "public function getAll($tables){\n return $this->db->get($tables)->result();\n }", "public function getAll($tables){\n return $this->db->get($tables)->result();\n }", "public function qsGetDbTables()\n {\n $sql = 'show tables';\n $d = $this->qExecPluck($sql);\n\n return $d;\n }", "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 unionSupportsOrderAndLimit() {\n\t\treturn true; // True for almost every DB supported\n\t}", "public function getTables()\n {\n return $this->callSql(\"\n SELECT\n *\n FROM\n SYSOBJECTS\n WHERE\n xtype = 'U';\n \");\n\n // Appears that DP has disabled the permissions required for the following query\n // prior to 2021-07-15\n // return $this->callSql(\"\n // SELECT\n // *\n // FROM\n // INFORMATION_SCHEMA.TABLES;\n // \");\n }", "protected function newBaseQueryBuilder()\n {\n return $this->getConnection()->query();\n }", "public function getSchemaTables()\n {\n if ($this->schemaTables !== null) {\n return $this->schemaTables;\n }\n $builder = $this->app['schema.builder'];\n\n /** @deprecated Deprecated since 3.0, to be removed in 4.0. */\n $builder['extensions']->addPrefix($this->app['schema.prefix']);\n\n $schema = new Schema();\n $tables = array_merge(\n $builder['base']->getSchemaTables($schema),\n $builder['content']->getSchemaTables($schema, $this->config),\n $builder['extensions']->getSchemaTables($schema)\n );\n $this->schema = $schema;\n\n return $this->schemaTables = $tables;\n }", "protected function newBaseQueryBuilder()\n {\n $connection = $this->getConnection();\n\n return $connection->query();\n }", "public function getQueries()\n {\n \tparse_str($this->query, $queries);\n\n \treturn $queries;\n }", "public function queries() {\n return $this->queries;\n }", "public static function getModifyableTables() {}", "function QueryAll()\n\t{\n\t\t$dalSQL = \"select * from \".$this->_connection->addTableWrappers( $this->m_TableName );\n\t\treturn $this->_connection->query( $dalSQL );\n\t}", "function FindTables($strSQL, $bwlStripDatabase=true)\n{\n\t$strSQL=$strSQL . \" \";\n\t$strSQL=deMultiple($strSQL, \" \");\n\t$arrOut=Array();\n\tif(contains(strtolower($strSQL), \"insert into\"))\n\t{\n\t\t$strBeingSought=\"insert into\";\n\t\t$strSelectStatementKeywords=\"(\";\n\t\t$strEndKeywords=\"values (\";\n\t}\n\telse if(contains(strtolower($strSQL), \"create table\"))\n\t{\n\t\treturn Array(); //cop out on this case\n\t}\n\telse if(contains(strtolower($strSQL), \"drop table\"))\n\t{\n\t\treturn Array(); //cop out on this case\n\t}\n\telse if(contains(strtolower($strSQL), \"truncate table\"))\n\t{\n\t\treturn Array(); //cop out on this case\n\t}\n\telse\n\t{\n\t\t$strBeingSought=\"from\";\n\t\t$strSelectStatementKeywords=\"join\";\n\t\t$strEndKeywords=\"where group having order limit procedure into for\";\n\t}\n\t\n\t$strSelectStatementNixFollow=\"on\";\n\t$strSelectStatementNixPre=\"on join\";\n\t\n\t$bwlNixfollow=false;\n\t$out= FindSQLClause($strSQL, $strBeingSought, $strEndKeywords);\n\t//echo $strBeingSought . \" \" . $strEndKeywords . \"<br>\";\n\t//echo $out . \"==initialwhere<br>\";\n\t$out=trim($out);\n\t$tablecount=0;\n\t$intFromFromCounter=0; //counts how many terms are between the from statement and the on, join, or where\n\t//echo $out . \"==initialwhere<br>\";\n\t$out=AllWhiteSpaceToSpace($out);\n\t//echo $out . \"==initialwhere<br>\";\n\tif(contains($out, \"(\") && strpos($out, \"(\")>0)//seems to fix not-working for insert sql\n\t{\n\t\t$arrOut[0]=substr( $out, 0, strpos($out, \"(\"));\n\t}\n\telse if(contains($out, \" \"))\n\t{\n\t\t$out=deMultiple($out, \" \");//might want to leave whitespace in quoted areas alone in a future version\n\t\t$arrTable=explode(\" \", $out);\n\t\t\n\t\tforeach($arrTable as $thispart)\n\t\t{\n\t\t\t//echo $thispart . \"==thispart<br>\";\n\t\t\tif(PosInList($strSelectStatementNixPre, $thispart, \" \", true, $quotechar=\"'\")>-1)\n\t\t\t{ \n\t\t\t\t//echo \"prenix<br>\";\n\t\t\t\t//echo $intFromFromCounter . \"==fromfrom<br>\";\n\t\t\t\tif($intFromFromCounter==2) //in other words, if there is, due to the count of terms since the from, clearly a synonymn after the table name\n\t\t\t\t{\n\t\t\t\t\t//these sql terms mean what preceded was not a table\n\t\t\t\t\t//this code once assumed that join-containing sql will always have a synonym for the table after it \n\t\t\t\t\t//but it no longer has this liability\n\t\t\t\t\t$tablecount--;\n\t\t\t\t\tarray_pop($arrOut);\n\t\t\t\t\t//time to process $intFromFromCounter;\n\t\t\t\t}\n\t\t\t\t$intFromFromCounter=0;\n\t\t\t}\n\t\t\tif(PosInList($strSelectStatementKeywords, $thispart, \" \", true, $quotechar=\"'\")>-1)\n\t\t\t{\n\t\t\t\t$bwlNixfollow=false;\n\t\t\t\t//echo \"nixfollowfalse1<br>\";\n\t\t\t}\n\t\t\telse if(PosInList($strSelectStatementNixFollow, $thispart, \" \", true, $quotechar=\"'\")>-1)\n\t\t\t{\n\t\t\t\t//echo \"nixfollowtrue1<br>\";\n\t\t\t\t$bwlNixfollow=true;\n\t\t\t}\n\t\t\telse if(!$bwlNixfollow)\n\t\t\t{\n\t\t\t\t$intFromFromCounter++;\n\t\t\t\t$bwlNixfollow=false;\n\t\t\t\t$arrOut[$tablecount]=StripDBfromTableSpecIfThere($thispart, $bwlStripDatabase);\n\t\t\t\t$tablecount++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//echo \"else<br>\";\n\t\t\t}\n\t\t}\n\t}\n\telse\n\t{\n\t\t$arrOut[$tablecount]=StripDBfromTableSpecIfThere($out, $bwlStripDatabase);\n\t}\n\t//echo join(\"<br>\", $arrOut) . \"==tables<p>\";\n\treturn $arrOut;\n}", "public static function baseQuery() {\n $sql = 'SELECT*FROM '.static::getTable();\n return $sql;\n }", "public function unionWith(array $items): CollectionInterface;", "function sql($table=null)\n{\n return SQL::query($table);\n}", "function extras_tables($connect='') {\r\n\t$a = array();\r\n\tif ($s = sql_showbase(null, $connect)) {\r\n\t\twhile ($t = sql_fetch($s, $connect)) {\r\n\t\t\t\t$a[] = array_pop($t);\r\n\t\t}\r\n\t}\r\n\treturn $a;\r\n}", "public function getAllTables()\n {\n return $this->connection->select(\n $this->grammar->compileGetAllTables((array) $this->connection->getConfig('schema'))\n );\n }", "public function tables($like = '') {\n\t\t$builder = DB_SQL::select($this->data_source)\n\t\t\t->column('[TABLE_SCHEMA]', 'schema')\n\t\t\t->column('[TABLE_NAME]', 'table')\n\t\t\t->column(DB_SQL::expr(\"'BASE'\"), 'type')\n\t\t\t->from('[INFORMATION_SCHEMA].[TABLES]')\n\t\t\t->where('[TABLE_TYPE]', DB_SQL_Operator::_EQUAL_TO_, 'BASE_TABLE')\n\t\t\t->where(DB_SQL::expr(\"OBJECTPROPERTY(OBJECT_ID([TABLE_NAME]), 'IsMsShipped')\"), DB_SQL_Operator::_EQUAL_TO_, 0)\n\t\t\t->order_by(DB_SQL::expr('UPPER([TABLE_SCHEMA])'))\n\t\t\t->order_by(DB_SQL::expr('UPPER([TABLE_NAME])'));\n\n\t\tif ( ! empty($like)) {\n\t\t\t$builder->where('[TABLE_NAME]', DB_SQL_Operator::_LIKE_, $like);\n\t\t}\n\n\t\treturn $builder->query();\n\t}", "public function applyTo($q) {\n//\t\tprivate $valuesets = array(); // QRYvalueset array (insert/update pairs)\n\n\t\tif ($this->flags & QRY::NAMED_PARAMS) {\n\t\t\t$q->option('named_params', 1);\n\t\t}\n\n\t\tforeach ($this->tablesets as $set) {\n\t\t\tfor ($i = 0; $i < $set->count(); $i++) {\n\t\t\t\t$elem = $set->findByOffset($i);\n\t\t\t\t$q->FROM($elem->asName(), $elem->asAlias());\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->fieldsets as $set) {\n\t\t\t//print_r($set);\n\t\t\tfor ($i = 0; $i < $set->count(); $i++) {\n\t\t\t\t$elem = $set->findByOffset($i);\n\t\t\t\t//print_r($elem);\n\t\t\t\t$q->SELECT($elem->asName());\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->matchsets as $j => $set) {\n\t\t\tfor ($i = 0; $i < $set->count(); $i++) {\n\t\t\t\t$elem = $set->findByOffset($i);\n\t\t\t\tif (get_class($elem) == 'QRYset') {\n\t\t\t\t\t$q->WHERE_literal($elem->toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$left_table = $elem->getLeft()->asTable();\n\t\t\t\t$left_name = $elem->getLeft()->asName();\n\t\t\t\t$left = $elem->getLeft()->asAlias();\n\t\t\t\t$right = $elem->getRight();\n\t\t\t\t$cmp = $elem->asCmp();\n\t\t\t\t$literal = false;\n\t\t\t\t$right_ptr = NULL;\n\t\t\t\tif ($cmp == 'IN' && get_class($right) == 'QRYset') {\n\t\t\t\t\t$param_arr = $right->toArray();\n\t\t\t\t\t$dataset = $this->getSet('data', 0);\n\t\t\t\t\t$dataset_arr = $dataset->toArray();\n\t\t\t\t\t$right_ptr = array();\n\t\t\t\t\tforeach ($param_arr as $offset => $param) {\n\t\t\t\t\t\t$name = $param->asName();\n\t\t\t\t\t\tif (isset($dataset_arr[$name])) {\n\t\t\t\t\t\t\t$right_ptr[] = $dataset_arr[$name];\n\t\t\t\t\t\t} else if (isset($dataset_arr[$offset])) {\n\t\t\t\t\t\t\t$right_ptr[] = $dataset_arr[$offset];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($left == $left_table . '__' . $left_name) {\n\t\t\t\t\t$left = $left_table . '.' . $left_name;\n\t\t\t\t}\n\t\t\t\t$q->WHERE_once($left, $cmp, $right_ptr, $literal);\n\t\t\t}\n\t\t}\n\t\t\n\t\tforeach ($this->ordersets as $set) {\n\t\t\tfor ($i = 0; $i < $set->count(); $i++) {\n\t\t\t\t$elem = $set->findByOffset($i);\n\t\t\t\t$q->ORDER_BY($elem->asName(), $elem->asOrder());\n\t\t\t}\n\t\t}\t\t\n\n\t\tforeach ($this->groupsets as $set) {\n\t\t\tfor ($i = 0; $i < $set->count(); $i++) {\n\t\t\t\t$elem = $set->findByOffset($i);\n\t\t\t\t$q->GROUP_BY($elem->asName());\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t\n\t\t/* datasets */\n\t\t$matchset = $q->getSet('match', 0);\t\n\t\tforeach ($this->datasets as $j => $set) {\n\t\t\t$dataset = $q->getSet('data', $j);\t\n\t\t\tif (!$dataset) $dataset = $q->add_DATASET();\n\t\t\t$k = 0;\n\t\t\tfor ($i = 0; $i < $set->count(); $i++) {\n\t\t\t\t$match = $matchset->findByOffset($k);\n\t\t\t\tif (get_class($match) == 'QRYmatch' && $match->asCmp() == 'IN') {\t\t\t\t\t\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$elem = $set->findByOffset($i);\n\t\t\t\t$key = $set->keyByOffset($i);\n\t\t\t\tif (is_numeric($key)) $key = null;\n\t\t\t\t$q->add_DATA($key, $elem, $dataset); \n\t\t\t\t$k++;\n\t\t\t}\n\t\t\t//$q->DATA($arr);\n\n\t\t}\n\n\t\treturn true;\n\t}", "public static function queries(){\n\t\t$queries=array();\n\t\tforeach(DB::getAll() as $dbname=>$db){\n\t\t\t$dbqueries=$db->getQueries();\n\t\t\tforeach($dbqueries as $query) $queries[$dbname][]=$query['query'];\n\t\t}\n\t\treturn $queries;\n\t}", "function sql_build_query($query, $array)\n\t{\n\t\t$sql = '';\n\t\tswitch ($query)\n\t\t{\n\t\t\tcase 'SELECT':\n\t\t\tcase 'SELECT_DISTINCT';\n\n\t\t\t\t$sql = str_replace('_', ' ', $query) . ' ' . $array['SELECT'] . ' FROM ';\n\n\t\t\t\t// Build table array. We also build an alias array for later checks.\n\t\t\t\t$table_array = $aliases = array();\n\t\t\t\t$used_multi_alias = false;\n\n\t\t\t\tforeach ($array['FROM'] as $table_name => $alias)\n\t\t\t\t{\n\t\t\t\t\tif (is_array($alias))\n\t\t\t\t\t{\n\t\t\t\t\t\t$used_multi_alias = true;\n\n\t\t\t\t\t\tforeach ($alias as $multi_alias)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$table_array[] = $table_name . ' ' . $multi_alias;\n\t\t\t\t\t\t\t$aliases[] = $multi_alias;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$table_array[] = $table_name . ' ' . $alias;\n\t\t\t\t\t\t$aliases[] = $alias;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// We run the following code to determine if we need to re-order the table array. ;)\n\t\t\t\t// The reason for this is that for multi-aliased tables (two equal tables) in the FROM statement the last table need to match the first comparison.\n\t\t\t\t// DBMS who rely on this: Oracle, PostgreSQL and MSSQL. For all other DBMS it makes absolutely no difference in which order the table is.\n\t\t\t\tif (!empty($array['LEFT_JOIN']) && sizeof($array['FROM']) > 1 && $used_multi_alias !== false)\n\t\t\t\t{\n\t\t\t\t\t// Take first LEFT JOIN\n\t\t\t\t\t$join = current($array['LEFT_JOIN']);\n\n\t\t\t\t\t// Determine the table used there (even if there are more than one used, we only want to have one\n\t\t\t\t\tpreg_match('/(' . implode('|', $aliases) . ')\\.[^\\s]+/U', str_replace(array('(', ')', 'AND', 'OR', ' '), '', $join['ON']), $matches);\n\n\t\t\t\t\t// If there is a first join match, we need to make sure the table order is correct\n\t\t\t\t\tif (!empty($matches[1]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$first_join_match = trim($matches[1]);\n\t\t\t\t\t\t$table_array = $last = array();\n\n\t\t\t\t\t\tforeach ($array['FROM'] as $table_name => $alias)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (is_array($alias))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tforeach ($alias as $multi_alias)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t($multi_alias === $first_join_match) ? $last[] = $table_name . ' ' . $multi_alias : $table_array[] = $table_name . ' ' . $multi_alias;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t($alias === $first_join_match) ? $last[] = $table_name . ' ' . $alias : $table_array[] = $table_name . ' ' . $alias;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$table_array = array_merge($table_array, $last);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$sql .= $this->_sql_custom_build('FROM', implode(', ', $table_array));\n\n\t\t\t\tif (!empty($array['LEFT_JOIN']))\n\t\t\t\t{\n\t\t\t\t\tforeach ($array['LEFT_JOIN'] as $join)\n\t\t\t\t\t{\n\t\t\t\t\t\t$sql .= ' LEFT JOIN ' . key($join['FROM']) . ' ' . current($join['FROM']) . ' ON (' . $join['ON'] . ')';\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!empty($array['WHERE']))\n\t\t\t\t{\n\t\t\t\t\t$sql .= ' WHERE ' . $this->_sql_custom_build('WHERE', $array['WHERE']);\n\t\t\t\t}\n\n\t\t\t\tif (!empty($array['GROUP_BY']))\n\t\t\t\t{\n\t\t\t\t\t$sql .= ' GROUP BY ' . $array['GROUP_BY'];\n\t\t\t\t}\n\n\t\t\t\tif (!empty($array['ORDER_BY']))\n\t\t\t\t{\n\t\t\t\t\t$sql .= ' ORDER BY ' . $array['ORDER_BY'];\n\t\t\t\t}\n\n\t\t\tbreak;\n\t\t}\n\n\t\treturn $sql;\n\t}", "public function queryAll(){\r\n\t\t$sql = 'SELECT * FROM connection_tags';\r\n\t\t$sqlQuery = new SqlQuery2($sql);\r\n\t\treturn $this->getList($sqlQuery);\r\n\t}", "public function getAll()\n {\n return $this->tables;\n }", "protected function build()\n {\n if (!is_null($this->rawSql)) {\n return $this->rawSql;\n }\n\n $query = null;\n\n if ($this->isDelete) {\n $query .= 'DELETE FROM ' . $this->table;\n if (!empty($this->where)) {\n $query .= ' WHERE ' . implode(' ', $this->where);\n }\n\n return $query;\n }\n\n if ($this->isInsert) {\n $fields = [];\n foreach (array_keys($this->insert) as $field) {\n $fields[] = $this->escapeField($field);\n }\n\n $values = array_values($this->insert);\n foreach ($values as $value) {\n $this->params[] = trim($value) != '' ? $value : null;\n }\n\n $query .= 'INSERT INTO ' . $this->tableWithoutAlias . ' ';\n $query .= '(' . implode(', ', $fields) . ')';\n $query .= ' VALUES ';\n $query .= '(' . implode(', ', array_fill(1, count($values), '?')) . ')';\n\n return $query;\n }\n\n if ($this->isUpdate) {\n $fields = [];\n foreach (array_keys($this->update) as $field) {\n $fields[] = $this->escapeField($field) . ' = ?';\n }\n\n $values = array_values($this->update);\n\n $params = [];\n foreach ($values as $value) {\n $params[] = trim($value) != '' ? $value : null;\n }\n\n $this->params = array_merge($params, $this->params);\n\n $query .= 'UPDATE ' . $this->table;\n $query .= ' SET ' . implode(', ', $fields);\n if (!empty($this->where)) {\n $query .= ' WHERE ' . implode(' ', $this->where);\n }\n\n return $query;\n }\n\n $query .= 'SELECT ';\n $query .= trim($this->select['prefunction'] . ' ');\n $query .= implode(', ', $this->select['fields']);\n\n $query .= ' FROM ' . $this->table;\n\n if (!empty($this->join)) {\n $query .= ' ' . implode(' ', $this->join);\n }\n\n if (!empty($this->where)) {\n $query .= ' WHERE ' . implode(' ', $this->where);\n }\n\n if (!empty($this->groupBy)) {\n $query .= ' GROUP BY ' . implode(', ', $this->groupBy);\n }\n\n if (!empty($this->having)) {\n $query .= ' HAVING ' . implode(' ', $this->having);\n }\n\n if (!empty($this->orderBy)) {\n $query .= ' ORDER BY ' . implode(', ', $this->orderBy);\n }\n\n if (!empty($this->limit)) {\n $query .= ' LIMIT ' . implode(', ', $this->limit);\n }\n\n return $query;\n }", "public static function findTypesAddedToUnions(\\GraphQL\\Type\\Schema $oldSchema, \\GraphQL\\Type\\Schema $newSchema)\n {\n }", "public function getQueries() {\n\n $out = array();\n for($i = 0; $i < count($this->queries); $i++) {\n\n $colour = $this->queries[$i]['success'] ? \"green\" : \"red\";\n $sql = $this->queries[$i]['sql'];\n $rows = $this->queries[$i]['rows'] . ' row' . ($this->queries[$i]['rows'] == 1 ? '' : 's');\n $time = $this->queries[$i]['time'] . ' ms';\n\n $out[] = array(\n 'colour' => $colour,\n 'number' => $i + 1,\n 'sql' => addslashes($sql),\n 'time' => $time,\n 'rows' => $rows\n );\n }\n\n return $out;\n\n }", "public function testTranslationWithUnionQuery(): void\n {\n $table = $this->getTableLocator()->get('Comments');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table->addBehavior('Translate', ['fields' => ['comment']]);\n $table->setLocale('spa');\n $query = $table->find()->where(['Comments.id' => 6]);\n $query2 = $table->find()->where(['Comments.id' => 5]);\n $query->union($query2);\n $results = $query->all()->sortBy('id', SORT_ASC)->toList();\n $this->assertCount(2, $results);\n\n $this->assertSame('First Comment for Second Article', $results[0]->comment);\n $this->assertSame('Second Comment for Second Article', $results[1]->comment);\n }", "protected function query() {\n $query = Database::getConnection('default', $this->sourceConnection)\n ->select('og_uid', 'ogu')\n // we have a user 0 here for some stupid reason\n ->condition('uid', 0, '>')\n ->fields('ogu', array('nid', 'is_active', 'is_admin', 'uid'));\n return $query;\n }", "public function &getTables();", "public function getTables()\n\t{\n $result = $this->fetchingData(array(\n 'query' => \"SHOW FULL TABLES\"\n ));\n\n return $result;\n\t}", "public function getUpSQL()\n {\n return array();\n }" ]
[ "0.6691476", "0.66648906", "0.666265", "0.6531545", "0.63905555", "0.6286931", "0.61385226", "0.6132889", "0.6113083", "0.60344726", "0.57593054", "0.57313883", "0.5631599", "0.5596455", "0.55864215", "0.55716914", "0.54574275", "0.543442", "0.52706957", "0.5212289", "0.5172825", "0.5167237", "0.51458585", "0.50998837", "0.5067293", "0.5039023", "0.49858993", "0.48697495", "0.4867218", "0.48247102", "0.481802", "0.48082182", "0.4782452", "0.47404248", "0.4740013", "0.4737069", "0.4735116", "0.47329712", "0.47326532", "0.46902767", "0.46899724", "0.4682663", "0.4668622", "0.46575657", "0.46557942", "0.4655138", "0.4638463", "0.4636674", "0.46278146", "0.46235144", "0.4603766", "0.45927402", "0.45865571", "0.45796195", "0.457067", "0.45665315", "0.45546573", "0.4547777", "0.4546691", "0.4545665", "0.4516565", "0.44997063", "0.4498743", "0.4495775", "0.44945142", "0.44796774", "0.44763443", "0.44763443", "0.44763443", "0.4476302", "0.44748417", "0.44706193", "0.44496337", "0.44451112", "0.44315848", "0.44271758", "0.44270277", "0.4425761", "0.44255236", "0.4423716", "0.44230074", "0.44219494", "0.4420991", "0.4416093", "0.44086686", "0.4406419", "0.44019338", "0.4386678", "0.4380334", "0.43716463", "0.43615627", "0.43593618", "0.43587655", "0.4353992", "0.43486902", "0.433788", "0.43364325", "0.43362182", "0.43344432", "0.4333405" ]
0.5916609
10